API Removed unused UMD builds of individual JS files

This has been made obsolete, since those files are all included in the main bundle (see bundle-lib.js).
They should not be referenced individually (e.g. through Requirements::block() or Requirements::javascript()).
This commit is contained in:
Ingo Schommer 2016-09-07 20:41:16 +12:00
parent 5f7b13ee49
commit 0a380a94cd
23 changed files with 8 additions and 1970 deletions

View File

@ -1,50 +0,0 @@
(function (global, factory) {
if (typeof define === "function" && define.amd) {
define('ss.AssetUploadField', ['jQuery'], factory);
} else if (typeof exports !== "undefined") {
factory(require('jQuery'));
} else {
var mod = {
exports: {}
};
factory(global.jQuery);
global.ssAssetUploadField = mod.exports;
}
})(this, function (_jQuery) {
'use strict';
var _jQuery2 = _interopRequireDefault(_jQuery);
function _interopRequireDefault(obj) {
return obj && obj.__esModule ? obj : {
default: obj
};
}
(0, _jQuery2.default)('.ss-assetuploadfield').entwine({
onmatch: function onmatch() {
this._super();
this.find('.ss-uploadfield-editandorganize').hide();
},
onunmatch: function onunmatch() {
this._super();
},
onfileuploadadd: function onfileuploadadd(e) {
this.find('.ss-uploadfield-editandorganize').show();
},
onfileuploadstart: function onfileuploadstart(e) {
this.find('.ss-uploadfield-editandorganize').show();
}
});
(0, _jQuery2.default)('.ss-uploadfield-view-allowed-extensions .toggle').entwine({
onclick: function onclick(e) {
var allowedExt = this.closest('.ss-uploadfield-view-allowed-extensions'),
minHeightVal = this.closest('.ui-tabs-panel').height() + 20;
allowedExt.toggleClass('active');
allowedExt.find('.toggle-content').css('minHeight', minHeightVal);
}
});
});

View File

@ -1,33 +0,0 @@
(function (global, factory) {
if (typeof define === "function" && define.amd) {
define('ss.ConfirmedPasswordField', ['jQuery'], factory);
} else if (typeof exports !== "undefined") {
factory(require('jQuery'));
} else {
var mod = {
exports: {}
};
factory(global.jQuery);
global.ssConfirmedPasswordField = mod.exports;
}
})(this, function (_jQuery) {
'use strict';
var _jQuery2 = _interopRequireDefault(_jQuery);
function _interopRequireDefault(obj) {
return obj && obj.__esModule ? obj : {
default: obj
};
}
(0, _jQuery2.default)(document).on('click', '.confirmedpassword .showOnClick a', function () {
var $container = (0, _jQuery2.default)('.showOnClickContainer', (0, _jQuery2.default)(this).parent());
$container.toggle('fast', function () {
$container.find('input[type="hidden"]').val($container.is(":visible") ? 1 : 0);
});
return false;
});
});

View File

@ -1,55 +0,0 @@
(function (global, factory) {
if (typeof define === "function" && define.amd) {
define('ss.DateField', ['jQuery'], factory);
} else if (typeof exports !== "undefined") {
factory(require('jQuery'));
} else {
var mod = {
exports: {}
};
factory(global.jQuery);
global.ssDateField = mod.exports;
}
})(this, function (_jQuery) {
'use strict';
var _jQuery2 = _interopRequireDefault(_jQuery);
function _interopRequireDefault(obj) {
return obj && obj.__esModule ? obj : {
default: obj
};
}
_jQuery2.default.fn.extend({
ssDatepicker: function ssDatepicker(opts) {
return (0, _jQuery2.default)(this).each(function () {
if ((0, _jQuery2.default)(this).prop('disabled') || (0, _jQuery2.default)(this).prop('readonly') || (0, _jQuery2.default)(this).data('datepicker')) return;
(0, _jQuery2.default)(this).siblings("button").addClass("ui-icon ui-icon-calendar");
var holder = (0, _jQuery2.default)(this).closest('.field.date'),
config = _jQuery2.default.extend(opts || {}, (0, _jQuery2.default)(this).data(), (0, _jQuery2.default)(this).data('jqueryuiconfig'), {});
if (!config.showcalendar) return;
if (config.locale && _jQuery2.default.datepicker.regional[config.locale]) {
config = _jQuery2.default.extend(config, _jQuery2.default.datepicker.regional[config.locale], {});
}
if (config.min) config.minDate = _jQuery2.default.datepicker.parseDate('yy-mm-dd', config.min);
if (config.max) config.maxDate = _jQuery2.default.datepicker.parseDate('yy-mm-dd', config.max);
config.dateFormat = config.jquerydateformat;
(0, _jQuery2.default)(this).datepicker(config);
});
}
});
(0, _jQuery2.default)(document).on("click", ".field.date input.text,input.text.date", function () {
(0, _jQuery2.default)(this).ssDatepicker();
if ((0, _jQuery2.default)(this).data('datepicker')) {
(0, _jQuery2.default)(this).datepicker('show');
}
});
});

View File

@ -1,360 +0,0 @@
(function (global, factory) {
if (typeof define === "function" && define.amd) {
define('ss.GridField', ['jQuery', 'i18n'], factory);
} else if (typeof exports !== "undefined") {
factory(require('jQuery'), require('i18n'));
} else {
var mod = {
exports: {}
};
factory(global.jQuery, global.i18n);
global.ssGridField = mod.exports;
}
})(this, function (_jQuery, _i18n) {
'use strict';
var _jQuery2 = _interopRequireDefault(_jQuery);
var _i18n2 = _interopRequireDefault(_i18n);
function _interopRequireDefault(obj) {
return obj && obj.__esModule ? obj : {
default: obj
};
}
_jQuery2.default.entwine('ss', function ($) {
$('.grid-field').entwine({
reload: function reload(ajaxOpts, successCallback) {
var self = this,
form = this.closest('form'),
focusedElName = this.find(':input:focus').attr('name'),
data = form.find(':input').serializeArray();
if (!ajaxOpts) ajaxOpts = {};
if (!ajaxOpts.data) ajaxOpts.data = [];
ajaxOpts.data = ajaxOpts.data.concat(data);
if (window.location.search) {
ajaxOpts.data = window.location.search.replace(/^\?/, '') + '&' + $.param(ajaxOpts.data);
}
form.addClass('loading');
$.ajax($.extend({}, {
headers: { "X-Pjax": 'CurrentField' },
type: "POST",
url: this.data('url'),
dataType: 'html',
success: function success(data) {
self.empty().append($(data).children());
if (focusedElName) self.find(':input[name="' + focusedElName + '"]').focus();
if (self.find('.filter-header').length) {
var content;
if (ajaxOpts.data[0].filter == "show") {
content = '<span class="non-sortable"></span>';
self.addClass('show-filter').find('.filter-header').show();
} else {
content = '<button type="button" name="showFilter" class="btn font-icon-search btn--no-text btn--icon-large grid-field__filter-open ss-gridfield-button-filter trigger"></button>';
self.removeClass('show-filter').find('.filter-header').hide();
}
self.find('.sortable-header th:last').html(content);
}
form.removeClass('loading');
if (successCallback) successCallback.apply(this, arguments);
self.trigger('reload', self);
},
error: function error(e) {
alert(_i18n2.default._t('GRIDFIELD.ERRORINTRANSACTION'));
form.removeClass('loading');
}
}, ajaxOpts));
},
showDetailView: function showDetailView(url) {
window.location.href = url;
},
getItems: function getItems() {
return this.find('.ss-gridfield-item');
},
setState: function setState(k, v) {
var state = this.getState();
state[k] = v;
this.find(':input[name="' + this.data('name') + '[GridState]"]').val(JSON.stringify(state));
},
getState: function getState() {
return JSON.parse(this.find(':input[name="' + this.data('name') + '[GridState]"]').val());
}
});
$('.grid-field *').entwine({
getGridField: function getGridField() {
return this.closest('.grid-field');
}
});
$('.grid-field :button[name=showFilter]').entwine({
onclick: function onclick(e) {
$('.filter-header').show('slow').find(':input:first').focus();
this.closest('.grid-field').addClass('show-filter');
this.parent().html('<span class="non-sortable"></span>');
e.preventDefault();
}
});
$('.grid-field .ss-gridfield-item').entwine({
onclick: function onclick(e) {
if ($(e.target).closest('.action').length) {
this._super(e);
return false;
}
var editLink = this.find('.edit-link');
if (editLink.length) this.getGridField().showDetailView(editLink.prop('href'));
},
onmouseover: function onmouseover() {
if (this.find('.edit-link').length) this.css('cursor', 'pointer');
},
onmouseout: function onmouseout() {
this.css('cursor', 'default');
}
});
$('.grid-field .action:button').entwine({
onclick: function onclick(e) {
var filterState = 'show';
if (this.button('option', 'disabled')) {
e.preventDefault();
return;
}
if (this.hasClass('ss-gridfield-button-close') || !this.closest('.grid-field').hasClass('show-filter')) {
filterState = 'hidden';
}
this.getGridField().reload({ data: [{ name: this.attr('name'), value: this.val(), filter: filterState }] });
e.preventDefault();
},
actionurl: function actionurl() {
var btn = this.closest(':button'),
grid = this.getGridField(),
form = this.closest('form'),
data = form.find(':input.gridstate').serialize(),
csrf = form.find('input[name="SecurityID"]').val();
data += "&" + encodeURIComponent(btn.attr('name')) + '=' + encodeURIComponent(btn.val());
if (csrf) {
data += "&SecurityID=" + encodeURIComponent(csrf);
}
if (window.location.search) {
data = window.location.search.replace(/^\?/, '') + '&' + data;
}
var connector = grid.data('url').indexOf('?') == -1 ? '?' : '&';
return $.path.makeUrlAbsolute(grid.data('url') + connector + data, $('base').attr('href'));
}
});
$('.grid-field .add-existing-autocompleter').entwine({
onbuttoncreate: function onbuttoncreate() {
var self = this;
this.toggleDisabled();
this.find('input[type="text"]').on('keyup', function () {
self.toggleDisabled();
});
},
onunmatch: function onunmatch() {
this.find('input[type="text"]').off('keyup');
},
toggleDisabled: function toggleDisabled() {
var $button = this.find('.ss-ui-button'),
$input = this.find('input[type="text"]'),
inputHasValue = $input.val() !== '',
buttonDisabled = $button.is(':disabled');
if (inputHasValue && buttonDisabled || !inputHasValue && !buttonDisabled) {
$button.button("option", "disabled", !buttonDisabled);
}
}
});
$('.grid-field .grid-field__col-compact .action.gridfield-button-delete, .cms-edit-form .btn-toolbar button.action.action-delete').entwine({
onclick: function onclick(e) {
if (!confirm(_i18n2.default._t('TABLEFIELD.DELETECONFIRMMESSAGE'))) {
e.preventDefault();
return false;
} else {
this._super(e);
}
}
});
$('.grid-field .action.gridfield-button-print').entwine({
UUID: null,
onmatch: function onmatch() {
this._super();
this.setUUID(new Date().getTime());
},
onunmatch: function onunmatch() {
this._super();
},
onclick: function onclick(e) {
var url = this.actionurl();
window.open(url);
e.preventDefault();
return false;
}
});
$('.ss-gridfield-print-iframe').entwine({
onmatch: function onmatch() {
this._super();
this.hide().bind('load', function () {
this.focus();
var ifWin = this.contentWindow || this;
ifWin.print();
});
},
onunmatch: function onunmatch() {
this._super();
}
});
$('.grid-field .action.no-ajax').entwine({
onclick: function onclick(e) {
window.location.href = this.actionurl();
e.preventDefault();
return false;
}
});
$('.grid-field .action-detail').entwine({
onclick: function onclick() {
this.getGridField().showDetailView($(this).prop('href'));
return false;
}
});
$('.grid-field[data-selectable]').entwine({
getSelectedItems: function getSelectedItems() {
return this.find('.ss-gridfield-item.ui-selected');
},
getSelectedIDs: function getSelectedIDs() {
return $.map(this.getSelectedItems(), function (el) {
return $(el).data('id');
});
}
});
$('.grid-field[data-selectable] .ss-gridfield-items').entwine({
onadd: function onadd() {
this._super();
this.selectable();
},
onremove: function onremove() {
this._super();
if (this.data('selectable')) this.selectable('destroy');
}
});
$('.grid-field .filter-header :input').entwine({
onmatch: function onmatch() {
var filterbtn = this.closest('.extra').find('.ss-gridfield-button-filter'),
resetbtn = this.closest('.extra').find('.ss-gridfield-button-reset');
if (this.val()) {
filterbtn.addClass('filtered');
resetbtn.addClass('filtered');
}
this._super();
},
onunmatch: function onunmatch() {
this._super();
},
onkeydown: function onkeydown(e) {
if (this.closest('.ss-gridfield-button-reset').length) return;
var filterbtn = this.closest('.extra').find('.ss-gridfield-button-filter'),
resetbtn = this.closest('.extra').find('.ss-gridfield-button-reset');
if (e.keyCode == '13') {
var btns = this.closest('.filter-header').find('.ss-gridfield-button-filter');
var filterState = 'show';
if (this.hasClass('ss-gridfield-button-close') || !this.closest('.grid-field').hasClass('show-filter')) {
filterState = 'hidden';
}
this.getGridField().reload({ data: [{ name: btns.attr('name'), value: btns.val(), filter: filterState }] });
return false;
} else {
filterbtn.addClass('hover-alike');
resetbtn.addClass('hover-alike');
}
}
});
$(".grid-field .relation-search").entwine({
onfocusin: function onfocusin(event) {
this.autocomplete({
source: function source(request, response) {
var searchField = $(this.element);
var form = $(this.element).closest("form");
$.ajax({
headers: {
"X-Pjax": 'Partial'
},
dataType: 'json',
type: "GET",
url: $(searchField).data('searchUrl'),
data: encodeURIComponent(searchField.attr('name')) + '=' + encodeURIComponent(searchField.val()),
success: response,
error: function error(e) {
alert(_i18n2.default._t('GRIDFIELD.ERRORINTRANSACTION', 'An error occured while fetching data from the server\n Please try again later.'));
}
});
},
select: function select(event, ui) {
var hiddenField = $('<input type="hidden" name="relationID" class="action_gridfield_relationfind" />');
hiddenField.val(ui.item.id);
$(this).closest(".grid-field").find(".action_gridfield_relationfind").replaceWith(hiddenField);
var addbutton = $(this).closest(".grid-field").find(".action_gridfield_relationadd");
if (addbutton.data('button')) {
addbutton.button('enable');
} else {
addbutton.removeAttr('disabled');
}
}
});
}
});
$(".grid-field .pagination-page-number input").entwine({
onkeydown: function onkeydown(event) {
if (event.keyCode == 13) {
var newpage = parseInt($(this).val(), 10);
var gridfield = $(this).getGridField();
gridfield.setState('GridFieldPaginator', { currentPage: newpage });
gridfield.reload();
return false;
}
}
});
});
});

View File

@ -1,45 +0,0 @@
(function (global, factory) {
if (typeof define === "function" && define.amd) {
define('ss.InlineFormAction', [], factory);
} else if (typeof exports !== "undefined") {
factory();
} else {
var mod = {
exports: {}
};
factory();
global.ssInlineFormAction = mod.exports;
}
})(this, function () {
'use strict';
function _defineProperty(obj, key, value) {
if (key in obj) {
Object.defineProperty(obj, key, {
value: value,
enumerable: true,
configurable: true,
writable: true
});
} else {
obj[key] = value;
}
return obj;
}
Behaviour.register({
'div.inlineformaction input#$ID': {
onclick: function onclick() {
var url = jQuery('base').attr('href') + 'admin-custom/' + this.name.substring(7) + '?ID=' + document.getElementById('Form_EditForm_ID').value + '&ajax=1';
jQuery.ajax(_defineProperty({
'url': url,
success: Ajax.Evaluator
}, 'success', Ajax.Evaluator));
return false;
}
}
});
});

View File

@ -1,92 +0,0 @@
(function (global, factory) {
if (typeof define === "function" && define.amd) {
define('ss.PermissionCheckboxSetField', ['jQuery'], factory);
} else if (typeof exports !== "undefined") {
factory(require('jQuery'));
} else {
var mod = {
exports: {}
};
factory(global.jQuery);
global.ssPermissionCheckboxSetField = mod.exports;
}
})(this, function (_jQuery) {
'use strict';
var _jQuery2 = _interopRequireDefault(_jQuery);
function _interopRequireDefault(obj) {
return obj && obj.__esModule ? obj : {
default: obj
};
}
_jQuery2.default.entwine('ss', function ($) {
$('.permissioncheckboxset .valADMIN input').entwine({
onmatch: function onmatch() {
this._super();
},
onunmatch: function onunmatch() {
this._super();
},
onclick: function onclick(e) {
this.toggleCheckboxes();
},
toggleCheckboxes: function toggleCheckboxes() {
var checkboxes = $(this).parents('.field:eq(0)').find('.checkbox').not(this);
if ($(this).is(':checked')) {
checkboxes.each(function () {
$(this).data('SecurityAdmin.oldChecked', $(this).attr('checked'));
$(this).data('SecurityAdmin.oldDisabled', $(this).attr('disabled'));
$(this).attr('disabled', 'disabled');
$(this).attr('checked', 'checked');
});
} else {
checkboxes.each(function () {
var oldChecked = $(this).data('SecurityAdmin.oldChecked');
var oldDisabled = $(this).data('SecurityAdmin.oldDisabled');
if (oldChecked !== null) $(this).attr('checked', oldChecked);
if (oldDisabled !== null) $(this).attr('disabled', oldDisabled);
});
}
}
});
$('.permissioncheckboxset .valCMS_ACCESS_LeftAndMain input').entwine({
getCheckboxesExceptThisOne: function getCheckboxesExceptThisOne() {
return $(this).parents('.field:eq(0)').find('li').filter(function (i) {
var klass = $(this).attr('class');
return klass ? klass.match(/CMS_ACCESS_/) : false;
}).find('.checkbox').not(this);
},
onmatch: function onmatch() {
this.toggleCheckboxes();
this._super();
},
onunmatch: function onunmatch() {
this._super();
},
onclick: function onclick(e) {
this.toggleCheckboxes();
},
toggleCheckboxes: function toggleCheckboxes() {
var checkboxes = this.getCheckboxesExceptThisOne();
if ($(this).is(':checked')) {
checkboxes.each(function () {
$(this).data('PermissionCheckboxSetField.oldChecked', $(this).is(':checked'));
$(this).data('PermissionCheckboxSetField.oldDisabled', $(this).is(':disabled'));
$(this).prop('disabled', 'disabled');
$(this).prop('checked', 'checked');
});
} else {
checkboxes.each(function () {
$(this).prop('checked', $(this).data('PermissionCheckboxSetField.oldChecked'));
$(this).prop('disabled', $(this).data('PermissionCheckboxSetField.oldDisabled'));
});
}
}
});
});
});

View File

@ -1,41 +0,0 @@
(function (global, factory) {
if (typeof define === "function" && define.amd) {
define('ss.SelectionGroup', ['jQuery'], factory);
} else if (typeof exports !== "undefined") {
factory(require('jQuery'));
} else {
var mod = {
exports: {}
};
factory(global.jQuery);
global.ssSelectionGroup = mod.exports;
}
})(this, function (_jQuery) {
'use strict';
var _jQuery2 = _interopRequireDefault(_jQuery);
function _interopRequireDefault(obj) {
return obj && obj.__esModule ? obj : {
default: obj
};
}
(0, _jQuery2.default)(document).ready(function () {
(0, _jQuery2.default)('ul.SelectionGroup input.selector, ul.selection-group input.selector').live('click', function () {
var li = (0, _jQuery2.default)(this).closest('li');
li.addClass('selected');
var prev = li.prevAll('li.selected');
if (prev.length) {
prev.removeClass('selected');
}
var next = li.nextAll('li.selected');
if (next.length) {
next.removeClass('selected');
}
(0, _jQuery2.default)(this).focus();
});
});
});

View File

@ -1,89 +0,0 @@
(function (global, factory) {
if (typeof define === "function" && define.amd) {
define('ss.TabSet', ['jQuery'], factory);
} else if (typeof exports !== "undefined") {
factory(require('jQuery'));
} else {
var mod = {
exports: {}
};
factory(global.jQuery);
global.ssTabSet = mod.exports;
}
})(this, function (_jQuery) {
'use strict';
var _jQuery2 = _interopRequireDefault(_jQuery);
function _interopRequireDefault(obj) {
return obj && obj.__esModule ? obj : {
default: obj
};
}
_jQuery2.default.entwine('ss', function ($) {
$('.ss-tabset').entwine({
IgnoreTabState: false,
onadd: function onadd() {
var hash = window.location.hash;
this.redrawTabs();
if (hash !== '') {
this.openTabFromURL(hash);
}
this._super();
},
onremove: function onremove() {
if (this.data('tabs')) this.tabs('destroy');
this._super();
},
redrawTabs: function redrawTabs() {
this.rewriteHashlinks();
this.tabs();
},
openTabFromURL: function openTabFromURL(hash) {
var $trigger;
$.each(this.find('.cms-panel-link'), function () {
if (this.href.indexOf(hash) !== -1 && $(hash).length === 1) {
$trigger = $(this);
return false;
}
});
if ($trigger === void 0) {
return;
}
$(window).one('ajaxComplete', function () {
$trigger.click();
});
},
rewriteHashlinks: function rewriteHashlinks() {
$(this).find('ul a').each(function () {
if (!$(this).attr('href')) return;
var matches = $(this).attr('href').match(/#.*/);
if (!matches) return;
$(this).attr('href', document.location.href.replace(/#.*/, '') + matches[0]);
});
}
});
$('.ui-tabs-active .ui-tabs-anchor').entwine({
onmatch: function onmatch() {
this.addClass('nav-link active');
},
onunmatch: function onunmatch() {
this.removeClass('active');
}
});
});
});

View File

@ -1,51 +0,0 @@
(function (global, factory) {
if (typeof define === "function" && define.amd) {
define('ss.ToggleCompositeField', ['jQuery'], factory);
} else if (typeof exports !== "undefined") {
factory(require('jQuery'));
} else {
var mod = {
exports: {}
};
factory(global.jQuery);
global.ssToggleCompositeField = mod.exports;
}
})(this, function (_jQuery) {
'use strict';
var _jQuery2 = _interopRequireDefault(_jQuery);
function _interopRequireDefault(obj) {
return obj && obj.__esModule ? obj : {
default: obj
};
}
_jQuery2.default.entwine('ss', function ($) {
$('.ss-toggle').entwine({
onadd: function onadd() {
this._super();
this.accordion({
heightStyle: "content",
collapsible: true,
active: this.hasClass("ss-toggle-start-closed") ? false : 0
});
},
onremove: function onremove() {
if (this.data('accordion')) this.accordion('destroy');
this._super();
},
getTabSet: function getTabSet() {
return this.closest(".ss-tabset");
},
fromTabSet: {
ontabsshow: function ontabsshow() {
this.accordion("resize");
}
}
});
});
});

View File

@ -1,35 +0,0 @@
(function (global, factory) {
if (typeof define === "function" && define.amd) {
define('ss.ToggleField', ['jQuery'], factory);
} else if (typeof exports !== "undefined") {
factory(require('jQuery'));
} else {
var mod = {
exports: {}
};
factory(global.jQuery);
global.ssToggleField = mod.exports;
}
})(this, function (_jQuery) {
'use strict';
var _jQuery2 = _interopRequireDefault(_jQuery);
function _interopRequireDefault(obj) {
return obj && obj.__esModule ? obj : {
default: obj
};
}
var field = (0, _jQuery2.default)('div.toggleField');
if (field.hasClass('startClosed')) {
field.find('div.contentMore').hide();
field.find('div.contentLess').show();
}
(0, _jQuery2.default)('div.toggleField .triggerLess, div.toggleField .triggerMore').click(function () {
field.find('div.contentMore').toggle();
field.find('div.contentLess').toggle();
});
});

View File

@ -1,414 +0,0 @@
(function (global, factory) {
if (typeof define === "function" && define.amd) {
define('ss.TreeDropdownField', ['jQuery', 'i18n'], factory);
} else if (typeof exports !== "undefined") {
factory(require('jQuery'), require('i18n'));
} else {
var mod = {
exports: {}
};
factory(global.jQuery, global.i18n);
global.ssTreeDropdownField = mod.exports;
}
})(this, function (_jQuery, _i18n) {
'use strict';
var _jQuery2 = _interopRequireDefault(_jQuery);
var _i18n2 = _interopRequireDefault(_i18n);
function _interopRequireDefault(obj) {
return obj && obj.__esModule ? obj : {
default: obj
};
}
_jQuery2.default.entwine('ss', function ($) {
var windowWidth, windowHeight;
$(window).bind('resize.treedropdownfield', function () {
var cb = function cb() {
$('.TreeDropdownField').closePanel();
};
if ($.browser.msie && parseInt($.browser.version, 10) < 9) {
var newWindowWidth = $(window).width(),
newWindowHeight = $(window).height();
if (newWindowWidth != windowWidth || newWindowHeight != windowHeight) {
windowWidth = newWindowWidth;
windowHeight = newWindowHeight;
cb();
}
} else {
cb();
}
});
var strings = {
'openlink': _i18n2.default._t('TreeDropdownField.OpenLink'),
'fieldTitle': '(' + _i18n2.default._t('TreeDropdownField.FieldTitle') + ')',
'searchFieldTitle': '(' + _i18n2.default._t('TreeDropdownField.SearchFieldTitle') + ')'
};
var _clickTestFn = function _clickTestFn(e) {
if (!$(e.target).parents('.TreeDropdownField').length) $('.TreeDropdownField').closePanel();
};
$('.TreeDropdownField').entwine({
CurrentXhr: null,
onadd: function onadd() {
this.append('<span class="treedropdownfield-title"></span>' + '<div class="treedropdownfield-toggle-panel-link"><a href="#" class="ui-icon ui-icon-triangle-1-s"></a></div>' + '<div class="treedropdownfield-panel"><div class="tree-holder"></div></div>');
var linkTitle = strings.openLink;
if (linkTitle) this.find("treedropdownfield-toggle-panel-link a").attr('title', linkTitle);
if (this.data('title')) this.setTitle(this.data('title'));
this.getPanel().hide();
this._super();
},
getPanel: function getPanel() {
return this.find('.treedropdownfield-panel');
},
openPanel: function openPanel() {
$('.TreeDropdownField').closePanel();
$('body').bind('click', _clickTestFn);
var panel = this.getPanel(),
tree = this.find('.tree-holder');
panel.css('width', this.width());
panel.show();
var toggle = this.find(".treedropdownfield-toggle-panel-link");
toggle.addClass('treedropdownfield-open-tree');
this.addClass("treedropdownfield-open-tree");
toggle.find("a").removeClass('ui-icon-triangle-1-s').addClass('ui-icon-triangle-1-n');
if (tree.is(':empty') && !panel.hasClass('loading')) {
this.loadTree(null, this._riseUp);
} else {
this._riseUp();
}
this.trigger('panelshow');
},
_riseUp: function _riseUp() {
var container = this,
dropdown = this.getPanel(),
toggle = this.find(".treedropdownfield-toggle-panel-link"),
offsetTop = toggle.innerHeight(),
elHeight,
elPos,
endOfWindow;
if (toggle.length > 0) {
endOfWindow = $(window).height() + $(document).scrollTop() - toggle.innerHeight();
elPos = toggle.offset().top;
elHeight = dropdown.innerHeight();
if (elPos + elHeight > endOfWindow && elPos - elHeight > 0) {
container.addClass('treedropdownfield-with-rise');
offsetTop = -dropdown.outerHeight();
} else {
container.removeClass('treedropdownfield-with-rise');
}
}
dropdown.css({ "top": offsetTop + "px" });
},
closePanel: function closePanel() {
jQuery('body').unbind('click', _clickTestFn);
var toggle = this.find(".treedropdownfield-toggle-panel-link");
toggle.removeClass('treedropdownfield-open-tree');
this.removeClass('treedropdownfield-open-tree treedropdownfield-with-rise');
toggle.find("a").removeClass('ui-icon-triangle-1-n').addClass('ui-icon-triangle-1-s');
this.getPanel().hide();
this.trigger('panelhide');
},
togglePanel: function togglePanel() {
this[this.getPanel().is(':visible') ? 'closePanel' : 'openPanel']();
},
setTitle: function setTitle(title) {
title = title || this.data('title') || strings.fieldTitle;
this.find('.treedropdownfield-title').html(title);
this.data('title', title);
},
getTitle: function getTitle() {
return this.find('.treedropdownfield-title').text();
},
updateTitle: function updateTitle() {
var self = this,
tree = self.find('.tree-holder'),
val = this.getValue();
var updateFn = function updateFn() {
var val = self.getValue();
if (val) {
var node = tree.find('*[data-id="' + val + '"]'),
title = node.children('a').find("span.jstree_pageicon") ? node.children('a').find("span.item").html() : null;
if (!title) title = node.length > 0 ? tree.jstree('get_text', node[0]) : null;
if (title) {
self.setTitle(title);
self.data('title', title);
}
if (node) tree.jstree('select_node', node);
} else {
self.setTitle(self.data('empty-title'));
self.removeData('title');
}
};
if (!tree.is(':empty') || !val) updateFn();else this.loadTree({ forceValue: val }, updateFn);
},
setValue: function setValue(val) {
this.data('metadata', $.extend(this.data('metadata'), { id: val }));
this.find(':input:hidden').val(val).trigger('valueupdated').trigger('change');
},
getValue: function getValue() {
return this.find(':input:hidden').val();
},
loadTree: function loadTree(params, callback) {
var self = this,
panel = this.getPanel(),
treeHolder = $(panel).find('.tree-holder'),
params = params ? $.extend({}, this.getRequestParams(), params) : this.getRequestParams(),
xhr;
if (this.getCurrentXhr()) this.getCurrentXhr().abort();
panel.addClass('loading');
xhr = $.ajax({
url: this.data('urlTree'),
data: params,
complete: function complete(xhr, status) {
panel.removeClass('loading');
},
success: function success(html, status, xhr) {
treeHolder.html(html);
var firstLoad = true;
treeHolder.jstree('destroy').bind('loaded.jstree', function (e, data) {
var val = self.getValue(),
selectNode = treeHolder.find('*[data-id="' + val + '"]'),
currentNode = data.inst.get_selected();
if (val && selectNode != currentNode) data.inst.select_node(selectNode);
firstLoad = false;
if (callback) callback.apply(self);
}).jstree(self.getTreeConfig()).bind('select_node.jstree', function (e, data) {
var node = data.rslt.obj,
id = $(node).data('id');
if (!firstLoad && self.getValue() == id) {
self.data('metadata', null);
self.setTitle(null);
self.setValue(null);
data.inst.deselect_node(node);
} else {
self.data('metadata', $.extend({ id: id }, $(node).getMetaData()));
self.setTitle(data.inst.get_text(node));
self.setValue(id);
}
if (!firstLoad) self.closePanel();
firstLoad = false;
});
self.setCurrentXhr(null);
}
});
this.setCurrentXhr(xhr);
},
getTreeConfig: function getTreeConfig() {
var self = this;
return {
'core': {
'html_titles': true,
'animation': 0
},
'html_data': {
'data': this.getPanel().find('.tree-holder').html(),
'ajax': {
'url': function url(node) {
var url = $.path.parseUrl(self.data('urlTree')).hrefNoSearch;
return url + '/' + ($(node).data("id") ? $(node).data("id") : 0);
},
'data': function data(node) {
var query = $.query.load(self.data('urlTree')).keys;
var params = self.getRequestParams();
params = $.extend({}, query, params, { ajax: 1 });
return params;
}
}
},
'ui': {
"select_limit": 1,
'initially_select': [this.getPanel().find('.current').attr('id')]
},
'themes': {
'theme': 'apple'
},
'types': {
'types': {
'default': {
'check_node': function check_node(node) {
return !node.hasClass('disabled');
},
'uncheck_node': function uncheck_node(node) {
return !node.hasClass('disabled');
},
'select_node': function select_node(node) {
return !node.hasClass('disabled');
},
'deselect_node': function deselect_node(node) {
return !node.hasClass('disabled');
}
}
}
},
'plugins': ['html_data', 'ui', 'themes', 'types']
};
},
getRequestParams: function getRequestParams() {
return {};
}
});
$('.TreeDropdownField .tree-holder li').entwine({
getMetaData: function getMetaData() {
var matches = this.attr('class').match(/class-([^\s]*)/i);
var klass = matches ? matches[1] : '';
return { ClassName: klass };
}
});
$('.TreeDropdownField *').entwine({
getField: function getField() {
return this.parents('.TreeDropdownField:first');
}
});
$('.TreeDropdownField').entwine({
onclick: function onclick(e) {
this.togglePanel();
return false;
}
});
$('.TreeDropdownField .treedropdownfield-panel').entwine({
onclick: function onclick(e) {
return false;
}
});
$('.TreeDropdownField.searchable').entwine({
onadd: function onadd() {
this._super();
var title = _i18n2.default._t('TreeDropdownField.ENTERTOSEARCH');
this.find('.treedropdownfield-panel').prepend($('<input type="text" class="search treedropdownfield-search" data-skip-autofocus="true" placeholder="' + title + '" value="" />'));
},
search: function search(str, callback) {
this.openPanel();
this.loadTree({ search: str }, callback);
},
cancelSearch: function cancelSearch() {
this.closePanel();
this.loadTree();
}
});
$('.TreeDropdownField.searchable input.search').entwine({
onkeydown: function onkeydown(e) {
var field = this.getField();
if (e.keyCode == 13) {
field.search(this.val());
return false;
} else if (e.keyCode == 27) {
field.cancelSearch();
}
}
});
$('.TreeDropdownField.multiple').entwine({
getTreeConfig: function getTreeConfig() {
var cfg = this._super();
cfg.checkbox = { override_ui: true, two_state: true };
cfg.plugins.push('checkbox');
cfg.ui.select_limit = -1;
return cfg;
},
loadTree: function loadTree(params, callback) {
var self = this,
panel = this.getPanel(),
treeHolder = $(panel).find('.tree-holder');
var params = params ? $.extend({}, this.getRequestParams(), params) : this.getRequestParams(),
xhr;
if (this.getCurrentXhr()) this.getCurrentXhr().abort();
panel.addClass('loading');
xhr = $.ajax({
url: this.data('urlTree'),
data: params,
complete: function complete(xhr, status) {
panel.removeClass('loading');
},
success: function success(html, status, xhr) {
treeHolder.html(html);
var firstLoad = true;
self.setCurrentXhr(null);
treeHolder.jstree('destroy').bind('loaded.jstree', function (e, data) {
$.each(self.getValue(), function (i, val) {
data.inst.check_node(treeHolder.find('*[data-id=' + val + ']'));
});
firstLoad = false;
if (callback) callback.apply(self);
}).jstree(self.getTreeConfig()).bind('uncheck_node.jstree check_node.jstree', function (e, data) {
var nodes = data.inst.get_checked(null, true);
self.setValue($.map(nodes, function (el, i) {
return $(el).data('id');
}));
self.setTitle($.map(nodes, function (el, i) {
return data.inst.get_text(el);
}));
self.data('metadata', $.map(nodes, function (el, i) {
return { id: $(el).data('id'), metadata: $(el).getMetaData() };
}));
});
}
});
this.setCurrentXhr(xhr);
},
getValue: function getValue() {
var val = this._super();
return val.split(/ *, */);
},
setValue: function setValue(val) {
this._super($.isArray(val) ? val.join(',') : val);
},
setTitle: function setTitle(title) {
this._super($.isArray(title) ? title.join(', ') : title);
},
updateTitle: function updateTitle() {}
});
$('.TreeDropdownField input[type=hidden]').entwine({
onadd: function onadd() {
this._super();
this.bind('change.TreeDropdownField', function () {
$(this).getField().updateTitle();
});
},
onremove: function onremove() {
this._super();
this.unbind('.TreeDropdownField');
}
});
});
});

View File

@ -1,541 +0,0 @@
(function (global, factory) {
if (typeof define === "function" && define.amd) {
define('ss.UploadField', ['jQuery', 'i18n'], factory);
} else if (typeof exports !== "undefined") {
factory(require('jQuery'), require('i18n'));
} else {
var mod = {
exports: {}
};
factory(global.jQuery, global.i18n);
global.ssUploadField = mod.exports;
}
})(this, function (_jQuery, _i18n) {
'use strict';
var _jQuery2 = _interopRequireDefault(_jQuery);
var _i18n2 = _interopRequireDefault(_i18n);
function _interopRequireDefault(obj) {
return obj && obj.__esModule ? obj : {
default: obj
};
}
_jQuery2.default.widget('blueimpUIX.fileupload', _jQuery2.default.blueimpUI.fileupload, {
_initTemplates: function _initTemplates() {
this.options.templateContainer = document.createElement(this._files.prop('nodeName'));
this.options.uploadTemplate = window.tmpl(this.options.uploadTemplateName);
this.options.downloadTemplate = window.tmpl(this.options.downloadTemplateName);
},
_enableFileInputButton: function _enableFileInputButton() {
_jQuery2.default.blueimpUI.fileupload.prototype._enableFileInputButton.call(this);
this.element.find('.ss-uploadfield-addfile').show();
},
_disableFileInputButton: function _disableFileInputButton() {
_jQuery2.default.blueimpUI.fileupload.prototype._disableFileInputButton.call(this);
this.element.find('.ss-uploadfield-addfile').hide();
},
_onAdd: function _onAdd(e, data) {
var result = _jQuery2.default.blueimpUI.fileupload.prototype._onAdd.call(this, e, data);
var firstNewFile = this._files.find('.ss-uploadfield-item').slice(data.files.length * -1).first();
var top = '+=' + (firstNewFile.position().top - parseInt(firstNewFile.css('marginTop'), 10) || 0 - parseInt(firstNewFile.css('borderTopWidth'), 10) || 0);
firstNewFile.offsetParent().animate({ scrollTop: top }, 1000);
var fSize = 0;
for (var i = 0; i < data.files.length; i++) {
if (typeof data.files[i].size === 'number') {
fSize = fSize + data.files[i].size;
}
}
(0, _jQuery2.default)('.fileOverview .uploadStatus .details .total').text(data.files.length);
if (typeof fSize === 'number' && fSize > 0) {
fSize = this._formatFileSize(fSize);
(0, _jQuery2.default)('.fileOverview .uploadStatus .details .fileSize').text(fSize);
}
if (data.files.length == 1 && data.files[0].error !== null) {
(0, _jQuery2.default)('.fileOverview .uploadStatus .state').text(_i18n2.default._t('AssetUploadField.UploadField.UPLOADFAIL', 'Sorry your upload failed'));
(0, _jQuery2.default)('.fileOverview .uploadStatus').addClass("bad").removeClass("good").removeClass("notice");
} else {
(0, _jQuery2.default)('.fileOverview .uploadStatus .state').text(_i18n2.default._t('AssetUploadField.UPLOADINPROGRESS', 'Please wait… upload in progress'));
(0, _jQuery2.default)('.ss-uploadfield-item-edit-all').hide();
(0, _jQuery2.default)('.fileOverview .uploadStatus').addClass("notice").removeClass("good").removeClass("bad");
}
return result;
},
_onDone: function _onDone(result, textStatus, jqXHR, options) {
if (this.options.changeDetection) {
this.element.closest('form').trigger('dirty');
}
_jQuery2.default.blueimpUI.fileupload.prototype._onDone.call(this, result, textStatus, jqXHR, options);
},
_onSend: function _onSend(e, data) {
var that = this;
var config = this.options;
if (config.overwriteWarning && config.replaceFile) {
_jQuery2.default.get(config['urlFileExists'], { 'filename': data.files[0].name }, function (response, status, xhr) {
if (response.exists) {
data.context.find('.ss-uploadfield-item-status').text(config.errorMessages.overwriteWarning).addClass('ui-state-warning-text');
data.context.find('.ss-uploadfield-item-progress').hide();
data.context.find('.ss-uploadfield-item-overwrite').show();
data.context.find('.ss-uploadfield-item-overwrite-warning').on('click', function (e) {
data.context.find('.ss-uploadfield-item-progress').show();
data.context.find('.ss-uploadfield-item-overwrite').hide();
data.context.find('.ss-uploadfield-item-status').removeClass('ui-state-warning-text');
_jQuery2.default.blueimpUI.fileupload.prototype._onSend.call(that, e, data);
e.preventDefault();
return false;
});
} else {
return _jQuery2.default.blueimpUI.fileupload.prototype._onSend.call(that, e, data);
}
});
} else {
return _jQuery2.default.blueimpUI.fileupload.prototype._onSend.call(that, e, data);
}
},
_onAlways: function _onAlways(jqXHRorResult, textStatus, jqXHRorError, options) {
_jQuery2.default.blueimpUI.fileupload.prototype._onAlways.call(this, jqXHRorResult, textStatus, jqXHRorError, options);
if (typeof jqXHRorError === 'string') {
(0, _jQuery2.default)('.fileOverview .uploadStatus .state').text(_i18n2.default._t('AssetUploadField.UploadField.UPLOADFAIL', 'Sorry your upload failed'));
(0, _jQuery2.default)('.fileOverview .uploadStatus').addClass("bad").removeClass("good").removeClass("notice");
} else if (jqXHRorError.status === 200) {
(0, _jQuery2.default)('.fileOverview .uploadStatus .state').text(_i18n2.default._t('AssetUploadField.FILEUPLOADCOMPLETED', 'File upload completed!'));
(0, _jQuery2.default)('.ss-uploadfield-item-edit-all').show();
(0, _jQuery2.default)('.fileOverview .uploadStatus').addClass("good").removeClass("notice").removeClass("bad");
}
},
_create: function _create() {
_jQuery2.default.blueimpUI.fileupload.prototype._create.call(this);
this._adjustMaxNumberOfFiles(0);
},
attach: function attach(data) {
if (this.options.changeDetection) {
this.element.closest('form').trigger('dirty');
}
var self = this,
files = data.files,
replaceFileID = data.replaceFileID,
valid = true;
var replacedElement = null;
if (replaceFileID) {
replacedElement = (0, _jQuery2.default)(".ss-uploadfield-item[data-fileid='" + replaceFileID + "']");
if (replacedElement.length === 0) {
replacedElement = null;
} else {
self._adjustMaxNumberOfFiles(1);
}
}
_jQuery2.default.each(files, function (index, file) {
self._adjustMaxNumberOfFiles(-1);
valid = self._validate([file]) && valid;
});
data.isAdjusted = true;
data.files.valid = data.isValidated = valid;
data.context = this._renderDownload(files);
if (replacedElement) {
replacedElement.replaceWith(data.context);
} else {
data.context.appendTo(this._files);
}
data.context.data('data', data);
this._reflow = this._transition && data.context[0].offsetWidth;
data.context.addClass('in');
}
});
_jQuery2.default.entwine('ss', function ($) {
$('div.ss-upload').entwine({
Config: null,
onmatch: function onmatch() {
if (this.is('.readonly,.disabled')) {
return;
}
var $fileInput = this.find('.ss-uploadfield-fromcomputer-fileinput'),
$dropZone = $('.ss-uploadfield-dropzone'),
config = $fileInput.data('config');
$dropZone.on('dragover', function (e) {
e.preventDefault();
});
$dropZone.on('dragenter', function (e) {
$dropZone.addClass('hover active');
});
$dropZone.on('dragleave', function (e) {
if (e.target === $dropZone[0]) {
$dropZone.removeClass('hover active');
}
});
$dropZone.on('drop', function (e) {
$dropZone.removeClass('hover active');
if (e.target !== $dropZone[0]) {
return false;
}
});
this.setConfig(config);
this.fileupload($.extend(true, {
formData: function formData(form) {
var idVal = $(form).find(':input[name=ID]').val();
var data = [{ name: 'SecurityID', value: $(form).find(':input[name=SecurityID]').val() }];
if (idVal) data.push({ name: 'ID', value: idVal });
return data;
},
errorMessages: {
1: _i18n2.default._t('UploadField.PHP_MAXFILESIZE'),
2: _i18n2.default._t('UploadField.HTML_MAXFILESIZE'),
3: _i18n2.default._t('UploadField.ONLYPARTIALUPLOADED'),
4: _i18n2.default._t('UploadField.NOFILEUPLOADED'),
5: _i18n2.default._t('UploadField.NOTMPFOLDER'),
6: _i18n2.default._t('UploadField.WRITEFAILED'),
7: _i18n2.default._t('UploadField.STOPEDBYEXTENSION'),
maxFileSize: _i18n2.default._t('UploadField.TOOLARGESHORT'),
minFileSize: _i18n2.default._t('UploadField.TOOSMALL'),
acceptFileTypes: _i18n2.default._t('UploadField.INVALIDEXTENSIONSHORT'),
maxNumberOfFiles: _i18n2.default._t('UploadField.MAXNUMBEROFFILESSHORT'),
uploadedBytes: _i18n2.default._t('UploadField.UPLOADEDBYTES'),
emptyResult: _i18n2.default._t('UploadField.EMPTYRESULT')
},
send: function send(e, data) {
if (data.context && data.dataType && data.dataType.substr(0, 6) === 'iframe') {
data.total = 1;
data.loaded = 1;
$(this).data('fileupload').options.progress(e, data);
}
},
progress: function progress(e, data) {
if (data.context) {
var value = parseInt(data.loaded / data.total * 100, 10) + '%';
data.context.find('.ss-uploadfield-item-status').html(data.total == 1 ? _i18n2.default._t('UploadField.LOADING') : value);
data.context.find('.ss-uploadfield-item-progressbarvalue').css('width', value);
}
}
}, config, {
fileInput: $fileInput,
dropZone: $dropZone,
form: $fileInput.closest('form'),
previewAsCanvas: false,
acceptFileTypes: new RegExp(config.acceptFileTypes, 'i')
}));
if (this.data('fileupload')._isXHRUpload({ multipart: true })) {
$('.ss-uploadfield-item-uploador').hide().show();
}
this._super();
},
onunmatch: function onunmatch() {
$('.ss-uploadfield-dropzone').off('dragover dragenter dragleave drop');
this._super();
},
openSelectDialog: function openSelectDialog(uploadedFile) {
var self = this,
config = this.getConfig(),
dialogId = 'ss-uploadfield-dialog-' + this.attr('id'),
dialog = jQuery('#' + dialogId);
if (!dialog.length) dialog = jQuery('<div class="ss-uploadfield-dialog" id="' + dialogId + '" />');
var iframeUrl = config['urlSelectDialog'];
var uploadedFileId = null;
if (uploadedFile && uploadedFile.attr('data-fileid') > 0) {
uploadedFileId = uploadedFile.attr('data-fileid');
}
dialog.ssdialog({ iframeUrl: iframeUrl, height: 550 });
dialog.find('iframe').bind('load', function (e) {
var contents = $(this).contents(),
gridField = contents.find('.grid-field');
contents.find('table.grid-field').css('margin-top', 0);
contents.find('input[name=action_doAttach]').unbind('click.openSelectDialog').bind('click.openSelectDialog', function () {
var ids = $.map(gridField.find('.ss-gridfield-item.ui-selected'), function (el) {
return $(el).data('id');
});
if (ids && ids.length) self.attachFiles(ids, uploadedFileId);
dialog.ssdialog('close');
return false;
});
});
dialog.ssdialog('open');
},
attachFiles: function attachFiles(ids, uploadedFileId) {
var self = this,
config = this.getConfig(),
indicator = $('<div class="loader" />'),
target = uploadedFileId ? this.find(".ss-uploadfield-item[data-fileid='" + uploadedFileId + "']") : this.find('.ss-uploadfield-addfile');
target.children().hide();
target.append(indicator);
$.ajax({
type: "POST",
url: config['urlAttach'],
data: { 'ids': ids },
complete: function complete(xhr, status) {
target.children().show();
indicator.remove();
},
success: function success(data, status, xhr) {
if (!data || $.isEmptyObject(data)) return;
self.fileupload('attach', {
files: data,
options: self.fileupload('option'),
replaceFileID: uploadedFileId
});
}
});
}
});
$('div.ss-upload *').entwine({
getUploadField: function getUploadField() {
return this.parents('div.ss-upload:first');
}
});
$('div.ss-upload .ss-uploadfield-files .ss-uploadfield-item').entwine({
onadd: function onadd() {
this._super();
this.closest('.ss-upload').find('.ss-uploadfield-addfile').addClass('borderTop');
},
onremove: function onremove() {
$('.ss-uploadfield-files:not(:has(.ss-uploadfield-item))').closest('.ss-upload').find('.ss-uploadfield-addfile').removeClass('borderTop');
this._super();
}
});
$('div.ss-upload .ss-uploadfield-startall').entwine({
onclick: function onclick(e) {
this.closest('.ss-upload').find('.ss-uploadfield-item-start button').click();
e.preventDefault();
return false;
}
});
$('div.ss-upload .ss-uploadfield-item-cancelfailed').entwine({
onclick: function onclick(e) {
this.closest('.ss-uploadfield-item').remove();
e.preventDefault();
return false;
}
});
$('div.ss-upload .ss-uploadfield-item-remove:not(.ui-state-disabled), .ss-uploadfield-item-delete:not(.ui-state-disabled)').entwine({
onclick: function onclick(e) {
var field = this.closest('div.ss-upload'),
config = field.getConfig('changeDetection'),
fileupload = field.data('fileupload'),
item = this.closest('.ss-uploadfield-item'),
msg = '';
if (this.is('.ss-uploadfield-item-delete')) {
if (confirm(_i18n2.default._t('UploadField.ConfirmDelete'))) {
if (config.changeDetection) {
this.closest('form').trigger('dirty');
}
if (fileupload) {
fileupload._trigger('destroy', e, {
context: item,
url: this.data('href'),
type: 'get',
dataType: fileupload.options.dataType
});
}
}
} else {
if (config.changeDetection) {
this.closest('form').trigger('dirty');
}
if (fileupload) {
fileupload._trigger('destroy', e, { context: item });
}
}
e.preventDefault();
return false;
}
});
$('div.ss-upload .ss-uploadfield-item-edit-all').entwine({
onclick: function onclick(e) {
if ($(this).hasClass('opened')) {
$('.ss-uploadfield-item .ss-uploadfield-item-edit .toggle-details-icon.opened').each(function (i) {
$(this).closest('.ss-uploadfield-item-edit').click();
});
$(this).removeClass('opened').find('.toggle-details-icon').removeClass('opened');
} else {
$('.ss-uploadfield-item .ss-uploadfield-item-edit .toggle-details-icon').each(function (i) {
if (!$(this).hasClass('opened')) {
$(this).closest('.ss-uploadfield-item-edit').click();
}
});
$(this).addClass('opened').find('.toggle-details-icon').addClass('opened');
}
e.preventDefault();
return false;
}
});
$('div.ss-upload:not(.disabled):not(.readonly) .ss-uploadfield-item-edit').entwine({
onclick: function onclick(e) {
var self = this,
editform = self.closest('.ss-uploadfield-item').find('.ss-uploadfield-item-editform'),
itemInfo = editform.prev('.ss-uploadfield-item-info'),
iframe = editform.find('iframe');
if (iframe.parent().hasClass('loading')) {
e.preventDefault();
return false;
}
if (iframe.attr('src') == 'about:blank') {
var disabled = this.siblings();
iframe.attr('src', iframe.data('src'));
iframe.parent().addClass('loading');
disabled.addClass('ui-state-disabled');
disabled.attr('disabled', 'disabled');
iframe.on('load', function () {
iframe.parent().removeClass('loading');
if (iframe.data('src')) {
self._prepareIframe(iframe, editform, itemInfo);
iframe.data('src', '');
}
});
} else {
self._prepareIframe(iframe, editform, itemInfo);
}
e.preventDefault();
return false;
},
_prepareIframe: function _prepareIframe(iframe, editform, itemInfo) {
var disabled;
iframe.contents().ready(function () {
var iframe_jQuery = iframe.get(0).contentWindow.jQuery;
iframe_jQuery(iframe_jQuery.find(':input')).bind('change', function (e) {
editform.removeClass('edited');
editform.addClass('edited');
});
});
if (editform.hasClass('loading')) {} else {
if (this.hasClass('ss-uploadfield-item-edit')) {
disabled = this.siblings();
} else {
disabled = this.find('ss-uploadfield-item-edit').siblings();
}
editform.parent('.ss-uploadfield-item').removeClass('ui-state-warning');
editform.toggleEditForm();
if (itemInfo.find('.toggle-details-icon').hasClass('opened')) {
disabled.addClass('ui-state-disabled');
disabled.attr('disabled', 'disabled');
} else {
disabled.removeClass('ui-state-disabled');
disabled.removeAttr('disabled');
}
}
}
});
$('div.ss-upload .ss-uploadfield-item-editform').entwine({
fitHeight: function fitHeight() {
var iframe = this.find('iframe'),
contents = iframe.contents().find('body'),
bodyH = contents.find('form').outerHeight(true),
iframeH = bodyH + (iframe.outerHeight(true) - iframe.height()),
containerH = iframeH + (this.outerHeight(true) - this.height());
if (!$.browser.msie && $.browser.version.slice(0, 3) != "8.0") {
contents.find('body').css({ 'height': bodyH });
}
iframe.height(iframeH);
this.animate({ height: containerH }, 500);
},
toggleEditForm: function toggleEditForm() {
var itemInfo = this.prev('.ss-uploadfield-item-info'),
status = itemInfo.find('.ss-uploadfield-item-status');
var iframe = this.find('iframe').contents(),
saved = iframe.find('#Form_EditForm_error');
var text = "";
if (this.height() === 0) {
text = _i18n2.default._t('UploadField.Editing', "Editing ...");
this.fitHeight();
this.addClass('opened');
itemInfo.find('.toggle-details-icon').addClass('opened');
status.removeClass('ui-state-success-text').removeClass('ui-state-warning-text');
iframe.find('#Form_EditForm_action_doEdit').click(function () {
itemInfo.find('label .name').text(iframe.find('#Name input').val());
});
if ($('div.ss-upload .ss-uploadfield-files .ss-uploadfield-item-actions .toggle-details-icon:not(.opened)').index() < 0) {
$('div.ss-upload .ss-uploadfield-item-edit-all').addClass('opened').find('.toggle-details-icon').addClass('opened');
}
} else {
this.animate({ height: 0 }, 500);
this.removeClass('opened');
itemInfo.find('.toggle-details-icon').removeClass('opened');
$('div.ss-upload .ss-uploadfield-item-edit-all').removeClass('opened').find('.toggle-details-icon').removeClass('opened');
if (!this.hasClass('edited')) {
text = _i18n2.default._t('UploadField.NOCHANGES', 'No Changes');
status.addClass('ui-state-success-text');
} else {
if (saved.hasClass('good')) {
text = _i18n2.default._t('UploadField.CHANGESSAVED', 'Changes Saved');
this.removeClass('edited').parent('.ss-uploadfield-item').removeClass('ui-state-warning');
status.addClass('ui-state-success-text');
} else {
text = _i18n2.default._t('UploadField.UNSAVEDCHANGES', 'Unsaved Changes');
this.parent('.ss-uploadfield-item').addClass('ui-state-warning');
status.addClass('ui-state-warning-text');
}
}
saved.removeClass('good').hide();
}
status.attr('title', text).text(text);
}
});
$('div.ss-upload .ss-uploadfield-fromfiles').entwine({
onclick: function onclick(e) {
this.getUploadField().openSelectDialog(this.closest('.ss-uploadfield-item'));
e.preventDefault();
return false;
}
});
});
});

View File

@ -1,17 +0,0 @@
(function (global, factory) {
if (typeof define === "function" && define.amd) {
define('ss.UploadField_downloadtemplate', [], factory);
} else if (typeof exports !== "undefined") {
factory();
} else {
var mod = {
exports: {}
};
factory();
global.ssUploadField_downloadtemplate = mod.exports;
}
})(this, function () {
'use strict';
window.tmpl.cache['ss-uploadfield-downloadtemplate'] = tmpl('{% for (var i=0, files=o.files, l=files.length, file=files[0]; i<l; file=files[++i]) { %}' + '<li class="ss-uploadfield-item template-download{% if (file.error) { %} ui-state-error{% } %}" data-fileid="{%=file.id%}">' + '{% if (file.thumbnail_url) { %}' + '<div class="ss-uploadfield-item-preview preview"><span>' + '<img src="{%=file.thumbnail_url%}" alt="" />' + '</span></div>' + '{% } %}' + '<div class="ss-uploadfield-item-info">' + '{% if (!file.error && file.id) { %}' + '<input type="hidden" name="{%=file.fieldname%}[Files][]" value="{%=file.id%}" />' + '{% } %}' + '{% if (!file.error && file.filename) { %}' + '<input type="hidden" value="{%=file.filename%}" name="{%=file.fieldname%}[Filename]" />' + '<input type="hidden" value="{%=file.hash%}" name="{%=file.fieldname%}[Hash]" />' + '<input type="hidden" value="{%=file.variant%}" name="{%=file.fieldname%}[Variant]" />' + '{% } %}' + '<label class="ss-uploadfield-item-name">' + '<span class="name" title="{%=file.name%}">{%=file.name%}</span> ' + '<span class="size">{%=o.formatFileSize(file.size)%}</span>' + '{% if (!file.error) { %}' + '<div class="ss-uploadfield-item-status ui-state-success-text" title="' + ss.i18n._t('UploadField.Uploaded', 'Uploaded') + '">' + ss.i18n._t('UploadField.Uploaded', 'Uploaded') + '</div>' + '{% } else { %}' + '<div class="ss-uploadfield-item-status ui-state-error-text" title="{%=o.options.errorMessages[file.error] || file.error%}">{%=o.options.errorMessages[file.error] || file.error%}</div>' + '{% } %}' + '<div class="clear"><!-- --></div>' + '</label>' + '{% if (file.error) { %}' + '<div class="ss-uploadfield-item-actions">' + '<div class="ss-uploadfield-item-cancel ss-uploadfield-item-cancelfailed delete"><button type="button" class="icon icon-16" data-icon="delete" title="' + ss.i18n._t('UploadField.CANCELREMOVE', 'Cancel/Remove') + '">' + ss.i18n._t('UploadField.CANCELREMOVE', 'Cancel/Remove') + '</button></div>' + '</div>' + '{% } else { %}' + '<div class="ss-uploadfield-item-actions">{% print(file.buttons, true); %}</div>' + '{% } %}' + '</div>' + '{% if (!file.error) { %}' + '<div class="ss-uploadfield-item-editform"><iframe frameborder="0" data-src="{%=file.edit_url%}" src="about:blank"></iframe></div>' + '{% } %}' + '</li>' + '{% } %}');
});

View File

@ -1,41 +0,0 @@
(function (global, factory) {
if (typeof define === "function" && define.amd) {
define('ss.UploadField_select', ['jQuery'], factory);
} else if (typeof exports !== "undefined") {
factory(require('jQuery'));
} else {
var mod = {
exports: {}
};
factory(global.jQuery);
global.ssUploadField_select = mod.exports;
}
})(this, function (_jQuery) {
'use strict';
var _jQuery2 = _interopRequireDefault(_jQuery);
function _interopRequireDefault(obj) {
return obj && obj.__esModule ? obj : {
default: obj
};
}
_jQuery2.default.entwine('ss', function ($) {
$('form.uploadfield-form .TreeDropdownField').entwine({
onmatch: function onmatch() {
this._super();
var self = this;
this.bind('change', function () {
var fileList = self.closest('form').find('.grid-field');
fileList.setState('ParentID', self.getValue());
fileList.reload();
});
},
onunmatch: function onunmatch() {
this._super();
}
});
});
});

View File

@ -1,17 +0,0 @@
(function (global, factory) {
if (typeof define === "function" && define.amd) {
define('ss.UploadField_uploadtemplate', [], factory);
} else if (typeof exports !== "undefined") {
factory();
} else {
var mod = {
exports: {}
};
factory();
global.ssUploadField_uploadtemplate = mod.exports;
}
})(this, function () {
'use strict';
window.tmpl.cache['ss-uploadfield-uploadtemplate'] = tmpl('{% for (var i=0, files=o.files, l=files.length, file=files[0]; i<l; file=files[++i]) { %}' + '<li class="ss-uploadfield-item template-upload{% if (file.error) { %} ui-state-error{% } %}">' + '<div class="ss-uploadfield-item-preview preview"><span></span></div>' + '<div class="ss-uploadfield-item-info">' + '<label class="ss-uploadfield-item-name">' + '<span class="name" title="{% if (file.name) { %}{%=file.name%}{% } else { %}' + ss.i18n._t('UploadField.NOFILENAME', 'Untitled') + '{% } %}">' + '{% if (file.name) { %}{%=file.name%}{% } else { %}' + ss.i18n._t('UploadField.NOFILENAME', 'Untitled') + '{% } %}</span> ' + '{% if (!file.error) { %}' + '<div class="ss-uploadfield-item-status">0%</div>' + '{% } else { %}' + '<div class="ss-uploadfield-item-status ui-state-error-text" title="{%=o.options.errorMessages[file.error] || file.error%}">{%=o.options.errorMessages[file.error] || file.error%}</div>' + '{% } %}' + '<div class="clear"><!-- --></div>' + '</label>' + '<div class="ss-uploadfield-item-actions">' + '{% if (!file.error) { %}' + '<div class="ss-uploadfield-item-progress"><div class="ss-uploadfield-item-progressbar"><div class="ss-uploadfield-item-progressbarvalue"></div></div></div>' + '{% if (!o.options.autoUpload) { %}' + '<div class="ss-uploadfield-item-start start"><button type="button" class="icon icon-16" data-icon="navigation">' + ss.i18n._t('UploadField.START', 'Start') + '</button></div>' + '{% } %}' + '{% } %}' + '<div class="ss-uploadfield-item-cancel cancel">' + '<button type="button" class="icon icon-16" data-icon="minus-circle" title="' + ss.i18n._t('UploadField.CANCELREMOVE', 'Cancel/Remove') + '">' + ss.i18n._t('UploadField.CANCELREMOVE', 'Cancel/Remove') + '</button>' + '</div>' + '<div class="ss-uploadfield-item-overwrite hide ">' + '<button type="button" data-icon="drive-upload" class="ss-uploadfield-item-overwrite-warning" title="' + ss.i18n._t('UploadField.OVERWRITE', 'Overwrite') + '">' + ss.i18n._t('UploadField.OVERWRITE', 'Overwrite') + '</button>' + '</div>' + '</div>' + '</div>' + '</li>' + '{% } %}');
});

View File

@ -1,66 +0,0 @@
(function (global, factory) {
if (typeof define === "function" && define.amd) {
define('ss.router', ['exports', 'page.js', 'url'], factory);
} else if (typeof exports !== "undefined") {
factory(exports, require('page.js'), require('url'));
} else {
var mod = {
exports: {}
};
factory(mod.exports, global.page, global.url);
global.ssRouter = mod.exports;
}
})(this, function (exports, _page, _url) {
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _page2 = _interopRequireDefault(_page);
var _url2 = _interopRequireDefault(_url);
function _interopRequireDefault(obj) {
return obj && obj.__esModule ? obj : {
default: obj
};
}
function resolveURLToBase(path) {
var absoluteBase = this.getAbsoluteBase();
var absolutePath = _url2.default.resolve(absoluteBase, path);
if (absolutePath.indexOf(absoluteBase) !== 0) {
return absolutePath;
}
return absolutePath.substring(absoluteBase.length - 1);
}
function show(pageShow) {
return function (path, state, dispatch, push) {
return pageShow(_page2.default.resolveURLToBase(path), state, dispatch, push);
};
}
function routeAppliesToCurrentLocation(route) {
var r = new _page2.default.Route(route);
return r.match(_page2.default.current, {});
}
function getAbsoluteBase() {
var baseTags = window.document.getElementsByTagName('base');
if (baseTags && baseTags[0]) {
return baseTags[0].href;
}
return null;
}
_page2.default.getAbsoluteBase = getAbsoluteBase.bind(_page2.default);
_page2.default.resolveURLToBase = resolveURLToBase.bind(_page2.default);
_page2.default.show = show(_page2.default.show);
_page2.default.routeAppliesToCurrentLocation = routeAppliesToCurrentLocation;
exports.default = _page2.default;
});

View File

@ -1,3 +0,0 @@
#right form .CheckboxSetField ul{margin:0;padding:0}#right form .CheckboxSetField ul li{list-style:none !important;margin:0;padding:0}#right form .CheckboxSetField input{width:auto}
/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImxlZ2FjeS9DaGVja2JveFNldEZpZWxkLnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsaUNBRUUsU0FDQSxTQUFVLENBSFosb0NBTUUsMkJBQ0EsU0FDQSxTQUFVLENBUlosb0NBV0UsVUFBVyxDQUNYIiwiZmlsZSI6ImxlZ2FjeS9DaGVja2JveFNldEZpZWxkLmNzcyIsInNvdXJjZXNDb250ZW50IjpbIiNyaWdodCBmb3JtIC5DaGVja2JveFNldEZpZWxkIHtcblx0dWx7XG5cdFx0bWFyZ2luOjA7XG5cdFx0cGFkZGluZzowO1xuXHR9XG5cdHVsIGxpe1xuXHRcdGxpc3Qtc3R5bGU6bm9uZSAhaW1wb3J0YW50O1xuXHRcdG1hcmdpbjowO1xuXHRcdHBhZGRpbmc6MDtcblx0fVxuXHRpbnB1dHtcblx0XHR3aWR0aDphdXRvO1xuXHR9XG59XG4iXSwic291cmNlUm9vdCI6Ii9zb3VyY2UvIn0= */

View File

@ -1,3 +0,0 @@
.confirmedpassword .showOnClickContainer{display:none}
/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImxlZ2FjeS9Db25maXJtZWRQYXNzd29yZEZpZWxkLnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEseUNBRUMsWUFBYSxDQUNiIiwiZmlsZSI6ImxlZ2FjeS9Db25maXJtZWRQYXNzd29yZEZpZWxkLmNzcyIsInNvdXJjZXNDb250ZW50IjpbIi5jb25maXJtZWRwYXNzd29yZCAuc2hvd09uQ2xpY2tDb250YWluZXIge1xuXHQvKiB1c2VkIHRvIGhpZGUgYSBjb250YWluZXIgYnktZGVmYXVsdCB3aGVuIGxvYWRpbmcgaXQgc28gdGhlcmUgaXMgbm8gXCJmbGFzaFwiIGFzIHRoZSBjb250ZW50IGxvYWRzICovXG5cdGRpc3BsYXk6bm9uZTtcbn1cbiJdLCJzb3VyY2VSb290IjoiL3NvdXJjZS8ifQ== */

View File

@ -1,3 +0,0 @@
.datetime .middleColumn .middleColumn{margin:0;padding:0;clear:none;float:left}.datetime .middleColumn .field{margin:0;border-bottom:none;-webkit-box-shadow:none;box-shadow:none}
/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImxlZ2FjeS9EYXRldGltZUZpZWxkLnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsc0NBQ0MsU0FDQSxVQUNBLFdBQ0EsVUFBWSxDQUNaLCtCQUVBLFNBQ0EsbUJBQ0Esd0JBQUEsQUFBaUIsZUFBQSxDQUNqQiIsImZpbGUiOiJsZWdhY3kvRGF0ZXRpbWVGaWVsZC5jc3MiLCJzb3VyY2VzQ29udGVudCI6WyIuZGF0ZXRpbWUgLm1pZGRsZUNvbHVtbiAubWlkZGxlQ29sdW1uIHtcblx0bWFyZ2luOiAwO1xuXHRwYWRkaW5nOiAwO1xuXHRjbGVhcjogbm9uZTtcblx0ZmxvYXQ6IGxlZnQ7XG59XG4uZGF0ZXRpbWUgLm1pZGRsZUNvbHVtbiAuZmllbGQge1xuXHRtYXJnaW46IDA7XG5cdGJvcmRlci1ib3R0b206IG5vbmU7XG5cdGJveC1zaGFkb3c6IG5vbmU7XG59XG4iXSwic291cmNlUm9vdCI6Ii9zb3VyY2UvIn0= */

File diff suppressed because one or more lines are too long

View File

@ -1,3 +0,0 @@
.SelectionGroup,.selection-group{padding-left:0;clear:both}.SelectionGroup li,.selection-group li{list-style-type:none}.SelectionGroup li>div.selectiongroup_item,.SelectionGroup li>.selection-group__item__fieldlist,.selection-group li>div.selectiongroup_item,.selection-group li>.selection-group__item__fieldlist{display:none}.SelectionGroup li.selected>div.selectiongroup_item,.SelectionGroup li.selected>.selection-group__item__fieldlist,.selection-group li.selected>div.selectiongroup_item,.selection-group li.selected>.selection-group__item__fieldlist{display:block}.SelectionGroup input.selector,.selection-group input.selector{width:20px;margin-top:2px;float:left}.mainblock.allassets ul{padding:0 0 0 10px;height:100px;overflow-y:scroll}.mainblock.allassets ul li{width:150px}
/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImxlZ2FjeS9TZWxlY3Rpb25Hcm91cC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGlDQUVFLGVBQ0EsVUFBWSxDQUhkLHVDQU1JLG9CQUFzQixDQU4xQixrTUFVTSxZQUFjLENBVnBCLHNPQWVNLGFBQWUsQ0FmckIsK0RBcUJJLFdBQ0EsZUFDQSxVQUFZLENBQ2Isd0JBSUQsbUJBQ0EsYUFDQSxpQkFBbUIsQ0FIckIsMkJBTUksV0FBYSxDQUNkIiwiZmlsZSI6ImxlZ2FjeS9TZWxlY3Rpb25Hcm91cC5jc3MiLCJzb3VyY2VzQ29udGVudCI6WyIuU2VsZWN0aW9uR3JvdXAsXG4uc2VsZWN0aW9uLWdyb3VwIHtcbiAgcGFkZGluZy1sZWZ0OiAwO1xuICBjbGVhcjogYm90aDtcblxuICBsaSB7XG4gICAgbGlzdC1zdHlsZS10eXBlOiBub25lO1xuXG4gICAgPiBkaXYuc2VsZWN0aW9uZ3JvdXBfaXRlbSxcbiAgICA+IC5zZWxlY3Rpb24tZ3JvdXBfX2l0ZW1fX2ZpZWxkbGlzdCB7XG4gICAgICBkaXNwbGF5OiBub25lO1xuICAgIH1cblxuICAgICYuc2VsZWN0ZWQgPiBkaXYuc2VsZWN0aW9uZ3JvdXBfaXRlbSxcbiAgICAmLnNlbGVjdGVkID4gLnNlbGVjdGlvbi1ncm91cF9faXRlbV9fZmllbGRsaXN0IHtcbiAgICAgIGRpc3BsYXk6IGJsb2NrO1xuICAgIH1cbiAgfVxuXG4gIC8vIEZpeCBmb3IgdGhlIGxhYmVsIG5vdCB3cmFwcGluZyBhcm91bmQgdGhlIGlucHV0IGFzIGl0IHNob3VsZCB3aXRoIEJvb3RzdHJhcFxuICBpbnB1dC5zZWxlY3RvciB7XG4gICAgd2lkdGg6IDIwcHg7XG4gICAgbWFyZ2luLXRvcDogMnB4O1xuICAgIGZsb2F0OiBsZWZ0O1xuICB9XG59XG5cbi5tYWluYmxvY2suYWxsYXNzZXRzIHVsIHtcbiAgcGFkZGluZzogMCAwIDAgMTBweDtcbiAgaGVpZ2h0OiAxMDBweDtcbiAgb3ZlcmZsb3cteTogc2Nyb2xsO1xuXG4gIGxpIHtcbiAgICB3aWR0aDogMTUwcHg7XG4gIH1cbn1cbiJdLCJzb3VyY2VSb290IjoiL3NvdXJjZS8ifQ== */

View File

@ -1,3 +0,0 @@
div.TreeDropdownField{width:400px;background:#fff;border:1px solid #aaa;cursor:pointer;overflow:visible;position:relative}div.TreeDropdownField input{border:0;background:none;padding:0;margin:0}div.TreeDropdownField .treedropdownfield-title,div.TreeDropdownField .treedropdownfield-search{overflow:hidden;outline:none;z-index:1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;-o-text-overflow:ellipsis}div.TreeDropdownField .treedropdownfield-search{background:url("../../../admin/client/dist/images/chosen-sprite.png") no-repeat 100% -22px;background:url("../../../admin/client/dist/images/chosen-sprite.png") no-repeat 100% -22px,-webkit-gradient(linear, left top, left bottom, color-stop(1%, #eee), color-stop(15%, #fff));background:url("../../../admin/client/dist/images/chosen-sprite.png") no-repeat 100% -22px,-webkit-linear-gradient(top, #eee 1%, #fff 15%);background:url("../../../admin/client/dist/images/chosen-sprite.png") no-repeat 100% -22px,-o-linear-gradient(top, #eee 1%, #fff 15%);background:url("../../../admin/client/dist/images/chosen-sprite.png") no-repeat 100% -22px,linear-gradient(to bottom, #eee 1%, #fff 15%);-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;z-index:1100;border:1px solid #aaa;display:inline-block;font-family:sans-serif;font-size:1em;margin:1.5%;outline:0;padding:4px 20px 4px 5px;width:97%}div.TreeDropdownField.searchable .treedropdownfield-panel.loading{min-height:64px;background-position:98% 39px}div.TreeDropdownField .treedropdownfield-panel{clear:left;position:absolute;display:none;cursor:default;border:1px solid #66afe9;border-top:0;margin:-1px 0 0 -1px;background-color:#fff;z-index:70;-webkit-box-shadow:0 4px 5px rgba(0,0,0,0.15);-o-box-shadow:0 4px 5px rgba(0,0,0,0.15);box-shadow:0 4px 5px rgba(0,0,0,0.15);right:0;left:0;width:calc(100% + 2px) !important;border-bottom-left-radius:3px;border-bottom-right-radius:3px}div.TreeDropdownField .treedropdownfield-panel.loading{min-height:30px;background:#fff url("../images/network-save.gif") 98% 7px no-repeat}div.TreeDropdownField .treedropdownfield-panel .tree-holder{position:relative;z-index:1}div.TreeDropdownField .treedropdownfield-panel .tree-holder>ul{position:relative;max-height:200px;overflow-y:auto;margin-bottom:10px}div.TreeDropdownField .treedropdownfield-panel ul{overflow-x:hidden;float:left;width:100%}div.TreeDropdownField .treedropdownfield-panel ul .jstree-icon{margin-left:5px}div.TreeDropdownField .treedropdownfield-panel ul .jstree-open>ins{background-position:-18px 0}div.TreeDropdownField .treedropdownfield-panel ul.tree{margin:0}div.TreeDropdownField .treedropdownfield-panel ul.tree a{font-size:12px}div.TreeDropdownField .treedropdownfield-toggle-panel-link{border:0;margin:0;z-index:0;padding:7px 3px;overflow:hidden;border-radius:0 4px 4px 0;position:absolute;right:5px;top:3px}div.TreeDropdownField .treedropdownfield-toggle-panel-link.treedropdownfield-open-tree{background:transparent;border:0}div.TreeDropdownField .treedropdownfield-toggle-panel-link a{text-decoration:none;display:block;border:0;margin:0;opacity:0.5}div.TreeDropdownField a.jstree-loading .jstree-pageicon{background:#fff url("../images/network-save.gif") center center no-repeat}
/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImxlZ2FjeS9UcmVlRHJvcGRvd25GaWVsZC5zY3NzIiwi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2xlYXJmaXgge1xuXHQmOmFmdGVyIHtcbiAgICBjb250ZW50OiBcIlxcMDAyMFwiO1xuICAgIGRpc3BsYXk6IGJsb2NrO1xuICAgIGhlaWdodDogMDtcbiAgICBjbGVhcjogYm90aDtcbiAgICBvdmVyZmxvdzogaGlkZGVuO1xuICAgIHZpc2liaWxpdHk6IGhpZGRlbjtcbiAgfVxufVxuIl0sInNvdXJjZVJvb3QiOiIvc291cmNlLyJ9 */

View File

@ -138,11 +138,14 @@ admin/images/sprites/dist/ => admin/client/dist/sprites/
admin/font/ => admin/client/dist/font/
```
If you're not doing this already, we suggest looking into a JavaScript bundler
like [Webpack](http://webpack.github.io/), to combine JavaScript files. SilverStripe
core is moving away from `Requirements::combine_files` in favour of Webpack as of
4.0 and `Requirements::combine_files` is being considered for deprecation in future
versions.
Most JavaScript files in `framework/javascript` have been removed,
and are bundled through [Webpack](http://webpack.github.io/) into a combined file instead.
If you have referenced these files elsewhere, please consider
running the ES6 source files in `admin/client/src/legacy`
through your own transpiling and bundle process.
SilverStripe core is moving away from `Requirements::combine_files` in favour of Webpack as of
4.0. `Requirements::combine_files` is being considered for deprecation in future versions.
#### Explicit text casting is now enforced on all template variables