@syncfusion/ej2-layouts 32.1.24 → 32.1.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ej2-layouts.min.js +2 -2
- package/dist/ej2-layouts.umd.min.js +2 -2
- package/dist/ej2-layouts.umd.min.js.map +1 -1
- package/dist/es6/ej2-layouts.es2015.js +20 -3
- package/dist/es6/ej2-layouts.es2015.js.map +1 -1
- package/dist/es6/ej2-layouts.es5.js +20 -3
- package/dist/es6/ej2-layouts.es5.js.map +1 -1
- package/dist/global/ej2-layouts.min.js +2 -2
- package/dist/global/ej2-layouts.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +1 -1
- package/src/splitter/splitter-model.d.ts +1 -1
- package/src/splitter/splitter.d.ts +4 -1
- package/src/splitter/splitter.js +20 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Property, ChildProperty, isNullOrUndefined, removeClass, addClass, Browser, EventHandler, SanitizeHtmlHelper, extend, detach, formatUnit, setStyleAttribute, select, selectAll, compile, Collection, Event, NotifyPropertyChanges, Component, setValue, append, isUndefined, closest, getValue, Draggable, getUniqueID, attributes, remove } from '@syncfusion/ej2-base';
|
|
1
|
+
import { Property, ChildProperty, isNullOrUndefined, L10n, removeClass, addClass, Browser, EventHandler, SanitizeHtmlHelper, extend, detach, formatUnit, setStyleAttribute, select, selectAll, compile, Collection, Event, NotifyPropertyChanges, Component, setValue, append, isUndefined, closest, getValue, Draggable, getUniqueID, attributes, remove } from '@syncfusion/ej2-base';
|
|
2
2
|
|
|
3
3
|
var __extends = (undefined && undefined.__extends) || (function () {
|
|
4
4
|
var extendStatics = function (d, b) {
|
|
@@ -52,6 +52,9 @@ var PANE_HIDDEN = 'e-pane-hidden';
|
|
|
52
52
|
var RESIZABLE_PANE = 'e-resizable';
|
|
53
53
|
var LAST_BAR = 'e-last-bar';
|
|
54
54
|
var BAR_SIZE_DEFAULT = 1;
|
|
55
|
+
var splitterDefaultLocale = {
|
|
56
|
+
'ToggleNavigation': 'Toggle navigation'
|
|
57
|
+
};
|
|
55
58
|
/**
|
|
56
59
|
* Interface to configure pane properties such as its content, size, min, max, resizable, collapsed and collapsible.
|
|
57
60
|
*/
|
|
@@ -233,6 +236,9 @@ var Splitter = /** @__PURE__ @class */ (function (_super) {
|
|
|
233
236
|
case 'enableRtl':
|
|
234
237
|
this.setRTL(newProp.enableRtl);
|
|
235
238
|
break;
|
|
239
|
+
case 'locale':
|
|
240
|
+
this.localeSetModelOption(newProp);
|
|
241
|
+
break;
|
|
236
242
|
}
|
|
237
243
|
}
|
|
238
244
|
};
|
|
@@ -283,6 +289,7 @@ var Splitter = /** @__PURE__ @class */ (function (_super) {
|
|
|
283
289
|
};
|
|
284
290
|
Splitter.prototype.preRender = function () {
|
|
285
291
|
this.initializeValues();
|
|
292
|
+
this.localeObj = new L10n(this.getModuleName(), splitterDefaultLocale, this.locale);
|
|
286
293
|
this.onReportWindowSize = this.reportWindowSize.bind(this);
|
|
287
294
|
this.onMouseMoveHandler = this.onMouseMove.bind(this);
|
|
288
295
|
this.onMouseUpHandler = this.onMouseUp.bind(this);
|
|
@@ -886,8 +893,9 @@ var Splitter = /** @__PURE__ @class */ (function (_super) {
|
|
|
886
893
|
var arrow2 = this.createElement('button');
|
|
887
894
|
arrow1.setAttribute('tabindex', '-1');
|
|
888
895
|
arrow2.setAttribute('tabindex', '-1');
|
|
889
|
-
|
|
890
|
-
|
|
896
|
+
var toggleLabel = this.getLocaleText('ToggleNavigation');
|
|
897
|
+
arrow1.setAttribute('aria-label', toggleLabel);
|
|
898
|
+
arrow2.setAttribute('aria-label', toggleLabel);
|
|
891
899
|
arrow1.setAttribute('type', 'button');
|
|
892
900
|
arrow2.setAttribute('type', 'button');
|
|
893
901
|
var size = isNullOrUndefined(this.separatorSize) ? '1px' : this.separatorSize + 'px';
|
|
@@ -2314,6 +2322,15 @@ var Splitter = /** @__PURE__ @class */ (function (_super) {
|
|
|
2314
2322
|
this.removeSeparator();
|
|
2315
2323
|
this.addSeparator(this.element);
|
|
2316
2324
|
};
|
|
2325
|
+
Splitter.prototype.getLocaleText = function (text) {
|
|
2326
|
+
var locale = this.localeObj.getConstant(text);
|
|
2327
|
+
return (locale === '') ? text : locale;
|
|
2328
|
+
};
|
|
2329
|
+
Splitter.prototype.localeSetModelOption = function (newProp) {
|
|
2330
|
+
var newLocale = newProp && newProp.locale && typeof newProp.locale === 'object' ? newProp.locale : this.locale;
|
|
2331
|
+
this.localeObj = new L10n(this.getModuleName(), splitterDefaultLocale, newLocale);
|
|
2332
|
+
this.refresh();
|
|
2333
|
+
};
|
|
2317
2334
|
/**
|
|
2318
2335
|
* Allows you to add a pane dynamically to the specified index position by passing the pane properties.
|
|
2319
2336
|
*
|