@syncfusion/ej2-layouts 30.1.37 → 30.1.40

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 : 30.1.37
3
+ * version : 30.1.40
4
4
  * Copyright Syncfusion Inc. 2001 - 2024. 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,45 +1,16 @@
1
1
  {
2
- "_from": "@syncfusion/ej2-layouts@*",
3
- "_id": "@syncfusion/ej2-layouts@21.5.0",
4
- "_inBundle": false,
5
- "_integrity": "sha512-xp9BSQMvc9aLxb31wMY+1toY7loGkRTk1AJu/2JQTPS4YMArYymPozs+Gd/dsq+w33VvHHmMx0f9U2YxmLxakg==",
6
- "_location": "/@syncfusion/ej2-layouts",
7
- "_phantomChildren": {},
8
- "_requested": {
9
- "type": "range",
10
- "registry": true,
11
- "raw": "@syncfusion/ej2-layouts@*",
12
- "name": "@syncfusion/ej2-layouts",
13
- "escapedName": "@syncfusion%2fej2-layouts",
14
- "scope": "@syncfusion",
15
- "rawSpec": "*",
16
- "saveSpec": null,
17
- "fetchSpec": "*"
18
- },
19
- "_requiredBy": [
20
- "/",
21
- "/@syncfusion/ej2-angular-layouts",
22
- "/@syncfusion/ej2-filemanager",
23
- "/@syncfusion/ej2-gantt",
24
- "/@syncfusion/ej2-kanban",
25
- "/@syncfusion/ej2-react-layouts",
26
- "/@syncfusion/ej2-vue-layouts"
27
- ],
28
- "_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-development/@syncfusion/ej2-layouts/-/ej2-layouts-21.5.0.tgz",
29
- "_shasum": "30d20f6bebb0402472cfe1682e88ec06405e9fda",
30
- "_spec": "@syncfusion/ej2-layouts@*",
31
- "_where": "D:\\SF3992\\WFH\\Nexus\\ej2-nexus-branch-switching-dev\\release",
32
- "author": {
33
- "name": "Syncfusion Inc."
34
- },
35
- "bundleDependencies": false,
2
+ "name": "@syncfusion/ej2-layouts",
3
+ "version": "30.1.40",
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
+ "author": "Syncfusion Inc.",
6
+ "license": "SEE LICENSE IN license",
7
+ "main": "./dist/ej2-layouts.umd.min.js",
8
+ "module": "./index.js",
9
+ "es2015": "./dist/es6/ej2-layouts.es5.js",
36
10
  "dependencies": {
37
- "@syncfusion/ej2-base": "~30.1.37"
11
+ "@syncfusion/ej2-base": "~30.1.38"
38
12
  },
39
- "deprecated": false,
40
- "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.",
41
13
  "devDependencies": {},
42
- "es2015": "./dist/es6/ej2-layouts.es5.js",
43
14
  "keywords": [
44
15
  "ej2",
45
16
  "syncfusion",
@@ -65,16 +36,11 @@
65
36
  "resizable-splitter",
66
37
  "split-container"
67
38
  ],
68
- "license": "SEE LICENSE IN license",
69
- "main": "./dist/ej2-layouts.umd.min.js",
70
- "module": "./index.js",
71
- "name": "@syncfusion/ej2-layouts",
72
39
  "repository": {
73
40
  "type": "git",
74
41
  "url": "https://github.com/syncfusion/ej2-javascript-ui-controls/tree/master/controls/layouts"
75
42
  },
76
43
  "typings": "index.d.ts",
77
- "version": "30.1.37",
78
44
  "sideEffects": false,
79
45
  "homepage": "https://www.syncfusion.com/javascript-ui-controls"
80
46
  }
@@ -2018,22 +2018,26 @@ var Splitter = /** @class */ (function (_super) {
2018
2018
  var pane1MaxSize = this.getMinMax(this.prevPaneIndex, this.previousPane, 'max');
2019
2019
  var pane2MaxSize = this.getMinMax(this.nextPaneIndex, this.nextPane, 'max');
2020
2020
  var validatedSize = draggedPos;
2021
- if (draggedPos > nextPaneRange - pane2MinSize) {
2022
- validatedSize = nextPaneRange - pane2MinSize;
2023
- }
2024
- else if (draggedPos < prePaneRange + pane1MinSize) {
2025
- validatedSize = prePaneRange + pane1MinSize;
2026
- }
2027
2021
  if (!isNullOrUndefined(pane1MaxSize)) {
2028
2022
  if (draggedPos > prePaneRange + pane1MaxSize) {
2029
2023
  validatedSize = prePaneRange + pane1MaxSize;
2030
2024
  }
2031
2025
  }
2032
- else if (!isNullOrUndefined(pane2MaxSize)) {
2026
+ if (!isNullOrUndefined(pane2MaxSize)) {
2033
2027
  if (draggedPos < nextPaneRange - pane2MaxSize) {
2034
2028
  validatedSize = nextPaneRange - pane2MaxSize;
2035
2029
  }
2036
2030
  }
2031
+ if (draggedPos > nextPaneRange - pane2MinSize) {
2032
+ if (isNullOrUndefined(pane1MaxSize) || validatedSize !== prePaneRange + pane1MaxSize) {
2033
+ validatedSize = nextPaneRange - pane2MinSize;
2034
+ }
2035
+ }
2036
+ else if (draggedPos < prePaneRange + pane1MinSize) {
2037
+ if (isNullOrUndefined(pane2MaxSize) || validatedSize !== nextPaneRange - pane2MaxSize) {
2038
+ validatedSize = prePaneRange + pane1MinSize;
2039
+ }
2040
+ }
2037
2041
  return validatedSize;
2038
2042
  };
2039
2043
  Splitter.prototype.onMouseUp = function (e) {
@@ -1,292 +0,0 @@
1
- import { Component, Property, NotifyPropertyChanges, INotifyPropertyChanged, isUndefined } from '@syncfusion/ej2-base';import { Collection, Draggable, isNullOrUndefined, DragEventArgs, append, setValue } from '@syncfusion/ej2-base';import { EmitType, Event, formatUnit, ChildProperty, compile, closest, SanitizeHtmlHelper, getValue } from '@syncfusion/ej2-base';import { setStyleAttribute as setStyle, addClass, detach, removeClass, EventHandler, Browser, extend } from '@syncfusion/ej2-base';
2
- import {ChangeEventArgs,DragStartArgs,DraggedEventArgs,DragStopArgs,ResizeArgs} from "./dashboard-layout";
3
- import {ComponentModel} from '@syncfusion/ej2-base';
4
-
5
- /**
6
- * Interface for a class Panel
7
- */
8
- export interface PanelModel {
9
-
10
- /**
11
- * Defines the id of the panel.
12
- *
13
- * @default ''
14
- */
15
- id?: string;
16
-
17
- /**
18
- * Defines the CSS class name that can be appended with each panel element.
19
- *
20
- * @default ''
21
- */
22
- cssClass?: string;
23
-
24
- /**
25
- * Defines the template value that should be displayed as the panel's header.
26
- *
27
- * @aspType string
28
- */
29
- header?: string | HTMLElement | Function;
30
-
31
- /**
32
- * Defines the template value that should be displayed as the panel's content.
33
- *
34
- * @aspType string
35
- */
36
-
37
- content?: string | HTMLElement | Function;
38
-
39
- /**
40
- * Defines whether to the panel should be enabled or not.
41
- *
42
- * @default true
43
- */
44
- enabled?: boolean;
45
-
46
- /**
47
- * Defines a row value where the panel should be placed.
48
- *
49
- * @default 0
50
- * @aspType int
51
- */
52
- row?: number;
53
-
54
- /**
55
- * Defines the column value where the panel to be placed.
56
- *
57
- * @default 0
58
- * @aspType int
59
- */
60
- col?: number;
61
-
62
- /**
63
- * Specifies the width of the panel in the layout in cells count.
64
- *
65
- * @default 1
66
- */
67
- sizeX?: number;
68
-
69
- /**
70
- * Specifies the height of the panel in the layout in cells count.
71
- *
72
- * @default 1
73
- */
74
- sizeY?: number;
75
-
76
- /**
77
- * Specifies the minimum height of the panel in cells count.
78
- *
79
- * @default 1
80
- */
81
- minSizeY?: number;
82
-
83
- /**
84
- * Specifies the minimum width of the panel in cells count.
85
- *
86
- * @default 1
87
- */
88
- minSizeX?: number;
89
-
90
- /**
91
- * Specifies the maximum height of the panel in cells count.
92
- *
93
- * @default null
94
- * @aspType int
95
- *
96
- */
97
- maxSizeY?: number;
98
-
99
- /**
100
- * Specifies the maximum width of the panel in cells count.
101
- *
102
- * @default null
103
- * @aspType int
104
- */
105
- maxSizeX?: number;
106
-
107
- /**
108
- * Specifies the z-index of the panel
109
- *
110
- * @default 1000
111
- * @aspType double
112
- */
113
- zIndex?: number;
114
-
115
- }
116
-
117
- /**
118
- * Interface for a class DashboardLayout
119
- */
120
- export interface DashboardLayoutModel extends ComponentModel{
121
-
122
- /**
123
- * If allowDragging is set to true, then the DashboardLayout allows you to drag and reorder the panels.
124
- *
125
- * @default true
126
- */
127
- allowDragging?: boolean;
128
-
129
- /**
130
- * If allowResizing is set to true, then the DashboardLayout allows you to resize the panels.
131
- *
132
- * @default false
133
- */
134
- allowResizing?: boolean;
135
-
136
- /**
137
- * If pushing is set to true, then the DashboardLayout allow to push the panels when panels collide
138
- * while dragging or resizing the panels.
139
- *
140
- * @default true
141
- * @private
142
- */
143
- allowPushing?: boolean;
144
-
145
- /**
146
- * Defines whether to allow the cross-scripting site or not.
147
- *
148
- * @default true
149
- */
150
- enableHtmlSanitizer?: boolean;
151
-
152
- /**
153
- * If allowFloating is set to true, then the DashboardLayout automatically move the panels upwards to fill the empty available
154
- * cells while dragging or resizing the panels.
155
- *
156
- * @default true
157
- */
158
- allowFloating?: boolean;
159
-
160
- /**
161
- * Defines the cell aspect ratio of the panel.
162
- *
163
- * @default 1
164
- */
165
- cellAspectRatio?: number;
166
-
167
- /**
168
- * Defines the spacing between the panels.
169
- *
170
- * @default [5,5]
171
- */
172
- cellSpacing?: number[];
173
-
174
- /**
175
- * Defines the number of columns to be created in the DashboardLayout.
176
- *
177
- * @default 1
178
- */
179
- columns?: number;
180
-
181
- /**
182
- * Enables or disables the grid lines for the Dashboard Layout panels.
183
- *
184
- * @default false
185
- */
186
- showGridLines?: boolean;
187
-
188
- /**
189
- * Defines the draggable handle selector which will act as dragging handler for the panels.
190
- *
191
- * @default null
192
- */
193
- draggableHandle?: string;
194
-
195
- /**
196
- * Locale property.
197
- * This is not a dashboard layout property.
198
- *
199
- * @default 'en-US'
200
- * @private
201
- */
202
- locale?: string;
203
-
204
- /**
205
- * Defines the media query value where the dashboardlayout becomes stacked layout when the resolution meets.
206
- *
207
- * @default 'max-width:600px'
208
- */
209
- mediaQuery?: string;
210
-
211
- /**
212
- *
213
- * Defines the panels property of the DashboardLayout component.
214
- *
215
- * @default null
216
- */
217
- panels?: PanelModel[];
218
-
219
- /**
220
- * Defines the resizing handles directions used for resizing the panels.
221
- *
222
- * @default 'e-south-east'
223
- *
224
- */
225
- resizableHandles?: string[];
226
-
227
- /**
228
- * Triggers whenever the panels positions are changed.
229
- *
230
- * @event 'object'
231
- */
232
- change?: EmitType<ChangeEventArgs>;
233
-
234
- /**
235
- * Triggers when a panel is about to drag.
236
- *
237
- * @event 'object'
238
- */
239
- dragStart?: EmitType<DragStartArgs>;
240
-
241
- /**
242
- * Triggers while a panel is dragged continuously.
243
- *
244
- * @event 'object'
245
- */
246
- drag?: EmitType<DraggedEventArgs>;
247
-
248
- /**
249
- * Triggers when a dragged panel is dropped.
250
- *
251
- * @event 'object'
252
- */
253
- dragStop?: EmitType<DragStopArgs>;
254
-
255
- /**
256
- * Triggers when a panel is about to resize.
257
- *
258
- * @event 'object'
259
- */
260
- resizeStart?: EmitType<ResizeArgs>;
261
-
262
- /**
263
- * Triggers when a panel is being resized continuously.
264
- *
265
- * @event 'object'
266
- */
267
- resize?: EmitType<ResizeArgs>;
268
-
269
- /**
270
- * Triggers when a panel resize ends.
271
- *
272
- * @event 'object'
273
- */
274
- resizeStop?: EmitType<ResizeArgs>;
275
-
276
- /**
277
- * Triggers when Dashboard Layout is created.
278
- *
279
- * @event 'object'
280
- */
281
-
282
- created?: EmitType<Object>;
283
-
284
- /**
285
- * Triggers when Dashboard Layout is destroyed.
286
- *
287
- * @event 'object'
288
- */
289
-
290
- destroyed?: EmitType<Object>;
291
-
292
- }