@syncfusion/ej2-layouts 32.1.24 → 32.2.3

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.
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 32.1.24
3
+ * version : 32.2.3
4
4
  * Copyright Syncfusion Inc. 2001 - 2025. All rights reserved.
5
5
  * Use of this code is subject to the terms of our license.
6
6
  * A copy of the current license can be obtained at any time by e-mailing
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@syncfusion/ej2-layouts",
3
- "version": "32.1.24",
3
+ "version": "32.2.3",
4
4
  "description": "A package of Essential JS 2 layout pure CSS components such as card and avatar. The card is used as small container to show content in specific structure, whereas the avatars are icons, initials or figures representing particular person.",
5
5
  "author": "Syncfusion Inc.",
6
6
  "license": "SEE LICENSE IN license",
@@ -8,7 +8,7 @@
8
8
  "module": "./index.js",
9
9
  "es2015": "./dist/es6/ej2-layouts.es5.js",
10
10
  "dependencies": {
11
- "@syncfusion/ej2-base": "~32.1.24"
11
+ "@syncfusion/ej2-base": "~32.2.3"
12
12
  },
13
13
  "devDependencies": {},
14
14
  "keywords": [
@@ -1,4 +1,4 @@
1
- import { Component, Property, setStyleAttribute, ChildProperty, compile } from '@syncfusion/ej2-base';import { NotifyPropertyChanges, addClass, Collection, isNullOrUndefined } from '@syncfusion/ej2-base';import { Event, EmitType, EventHandler, selectAll, removeClass, select, Browser, detach, formatUnit } from '@syncfusion/ej2-base';import { SanitizeHtmlHelper, extend } from '@syncfusion/ej2-base';
1
+ import { Component, Property, setStyleAttribute, ChildProperty, compile, L10n } from '@syncfusion/ej2-base';import { NotifyPropertyChanges, addClass, Collection, isNullOrUndefined } from '@syncfusion/ej2-base';import { Event, EmitType, EventHandler, selectAll, removeClass, select, Browser, detach, formatUnit } from '@syncfusion/ej2-base';import { SanitizeHtmlHelper, extend } from '@syncfusion/ej2-base';
2
2
  import {Orientation,BeforeSanitizeHtmlArgs,ResizeEventArgs,ResizingEventArgs,BeforeExpandEventArgs,ExpandedEventArgs} from "./splitter";
3
3
  import {ComponentModel} from '@syncfusion/ej2-base';
4
4
 
@@ -1,4 +1,4 @@
1
- import { Component, ChildProperty } from '@syncfusion/ej2-base';
1
+ import { Component, ChildProperty, L10n } from '@syncfusion/ej2-base';
2
2
  import { EmitType } from '@syncfusion/ej2-base';
3
3
  import { SplitterModel, PanePropertiesModel } from './splitter-model';
4
4
  /**
@@ -169,6 +169,7 @@ export declare class Splitter extends Component<HTMLElement> {
169
169
  private templateElement;
170
170
  private collapseFlag;
171
171
  private expandFlag;
172
+ localeObj: L10n;
172
173
  /**
173
174
  * Specifies the height of the Splitter component that accepts both string and number values.
174
175
  *
@@ -486,6 +487,8 @@ export declare class Splitter extends Component<HTMLElement> {
486
487
  private setPaneOrder;
487
488
  private removeSeparator;
488
489
  private updatePanes;
490
+ private getLocaleText;
491
+ private localeSetModelOption;
489
492
  /**
490
493
  * Allows you to add a pane dynamically to the specified index position by passing the pane properties.
491
494
  *
@@ -17,7 +17,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
17
17
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
18
18
  return c > 3 && r && Object.defineProperty(target, key, r), r;
19
19
  };
20
- import { Component, Property, setStyleAttribute, ChildProperty, compile } from '@syncfusion/ej2-base';
20
+ import { Component, Property, setStyleAttribute, ChildProperty, compile, L10n } from '@syncfusion/ej2-base';
21
21
  import { NotifyPropertyChanges, addClass, Collection, isNullOrUndefined } from '@syncfusion/ej2-base';
22
22
  import { Event, EventHandler, selectAll, removeClass, select, Browser, detach, formatUnit } from '@syncfusion/ej2-base';
23
23
  import { SanitizeHtmlHelper, extend } from '@syncfusion/ej2-base';
@@ -54,6 +54,9 @@ var PANE_HIDDEN = 'e-pane-hidden';
54
54
  var RESIZABLE_PANE = 'e-resizable';
55
55
  var LAST_BAR = 'e-last-bar';
56
56
  var BAR_SIZE_DEFAULT = 1;
57
+ var splitterDefaultLocale = {
58
+ 'ToggleNavigation': 'Toggle navigation'
59
+ };
57
60
  /**
58
61
  * Interface to configure pane properties such as its content, size, min, max, resizable, collapsed and collapsible.
59
62
  */
@@ -236,6 +239,9 @@ var Splitter = /** @class */ (function (_super) {
236
239
  case 'enableRtl':
237
240
  this.setRTL(newProp.enableRtl);
238
241
  break;
242
+ case 'locale':
243
+ this.localeSetModelOption(newProp);
244
+ break;
239
245
  }
240
246
  }
241
247
  };
@@ -286,6 +292,7 @@ var Splitter = /** @class */ (function (_super) {
286
292
  };
287
293
  Splitter.prototype.preRender = function () {
288
294
  this.initializeValues();
295
+ this.localeObj = new L10n(this.getModuleName(), splitterDefaultLocale, this.locale);
289
296
  this.onReportWindowSize = this.reportWindowSize.bind(this);
290
297
  this.onMouseMoveHandler = this.onMouseMove.bind(this);
291
298
  this.onMouseUpHandler = this.onMouseUp.bind(this);
@@ -889,8 +896,9 @@ var Splitter = /** @class */ (function (_super) {
889
896
  var arrow2 = this.createElement('button');
890
897
  arrow1.setAttribute('tabindex', '-1');
891
898
  arrow2.setAttribute('tabindex', '-1');
892
- arrow1.setAttribute('aria-label', 'Toggle navigation');
893
- arrow2.setAttribute('aria-label', 'Toggle navigation');
899
+ var toggleLabel = this.getLocaleText('ToggleNavigation');
900
+ arrow1.setAttribute('aria-label', toggleLabel);
901
+ arrow2.setAttribute('aria-label', toggleLabel);
894
902
  arrow1.setAttribute('type', 'button');
895
903
  arrow2.setAttribute('type', 'button');
896
904
  var size = isNullOrUndefined(this.separatorSize) ? '1px' : this.separatorSize + 'px';
@@ -2321,6 +2329,15 @@ var Splitter = /** @class */ (function (_super) {
2321
2329
  this.removeSeparator();
2322
2330
  this.addSeparator(this.element);
2323
2331
  };
2332
+ Splitter.prototype.getLocaleText = function (text) {
2333
+ var locale = this.localeObj.getConstant(text);
2334
+ return (locale === '') ? text : locale;
2335
+ };
2336
+ Splitter.prototype.localeSetModelOption = function (newProp) {
2337
+ var newLocale = newProp && newProp.locale && typeof newProp.locale === 'object' ? newProp.locale : this.locale;
2338
+ this.localeObj = new L10n(this.getModuleName(), splitterDefaultLocale, newLocale);
2339
+ this.refresh();
2340
+ };
2324
2341
  /**
2325
2342
  * Allows you to add a pane dynamically to the specified index position by passing the pane properties.
2326
2343
  *