@syncfusion/ej2-navigations 19.3.53 → 19.4.38
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/.github/PULL_REQUEST_TEMPLATE/Bug.md +63 -0
- package/.github/PULL_REQUEST_TEMPLATE/feature.md +39 -0
- package/CHANGELOG.md +56 -0
- package/dist/ej2-navigations.umd.min.js +2 -2
- package/dist/ej2-navigations.umd.min.js.map +1 -1
- package/dist/es6/ej2-navigations.es2015.js +528 -150
- package/dist/es6/ej2-navigations.es2015.js.map +1 -1
- package/dist/es6/ej2-navigations.es5.js +535 -151
- package/dist/es6/ej2-navigations.es5.js.map +1 -1
- package/dist/global/ej2-navigations.min.js +2 -2
- package/dist/global/ej2-navigations.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +11 -11
- package/src/accordion/accordion-model.d.ts +5 -5
- package/src/accordion/accordion.d.ts +5 -5
- package/src/accordion/accordion.js +2 -19
- package/src/breadcrumb/breadcrumb-model.d.ts +23 -11
- package/src/breadcrumb/breadcrumb.d.ts +33 -10
- package/src/breadcrumb/breadcrumb.js +320 -78
- package/src/common/menu-base.js +2 -2
- package/src/common/v-scroll.js +1 -1
- package/src/sidebar/sidebar.js +4 -4
- package/src/tab/tab-model.d.ts +14 -6
- package/src/tab/tab.d.ts +26 -15
- package/src/tab/tab.js +59 -30
- package/src/toolbar/toolbar-model.d.ts +7 -7
- package/src/toolbar/toolbar.d.ts +6 -6
- package/src/toolbar/toolbar.js +81 -13
- package/src/treeview/treeview-model.d.ts +10 -0
- package/src/treeview/treeview.d.ts +13 -0
- package/src/treeview/treeview.js +68 -5
- package/styles/accordion/_bootstrap-dark-definition.scss +4 -0
- package/styles/accordion/_bootstrap-definition.scss +4 -0
- package/styles/accordion/_bootstrap4-definition.scss +4 -0
- package/styles/accordion/_bootstrap5-definition.scss +39 -35
- package/styles/accordion/_fabric-dark-definition.scss +4 -0
- package/styles/accordion/_fabric-definition.scss +4 -0
- package/styles/accordion/_fluent-definition.scss +85 -0
- package/styles/accordion/_highcontrast-definition.scss +5 -1
- package/styles/accordion/_highcontrast-light-definition.scss +4 -0
- package/styles/accordion/_layout.scss +6 -14
- package/styles/accordion/_material-dark-definition.scss +4 -0
- package/styles/accordion/_material-definition.scss +4 -0
- package/styles/accordion/_tailwind-definition.scss +83 -79
- package/styles/accordion/_theme.scss +12 -11
- package/styles/accordion/bootstrap4.css +1 -2
- package/styles/accordion/bootstrap5-dark.css +11 -2
- package/styles/accordion/bootstrap5.css +11 -2
- package/styles/accordion/highcontrast-light.css +0 -4
- package/styles/accordion/highcontrast.css +1 -5
- package/styles/accordion/icons/_fluent.scss +17 -0
- package/styles/accordion/icons/_tailwind.scss +17 -17
- package/styles/bootstrap-dark.css +317 -84
- package/styles/bootstrap.css +316 -83
- package/styles/bootstrap4.css +317 -76
- package/styles/bootstrap5-dark.css +340 -76
- package/styles/bootstrap5.css +342 -78
- package/styles/breadcrumb/_bootstrap-dark-definition.scss +14 -0
- package/styles/breadcrumb/_bootstrap-definition.scss +13 -0
- package/styles/breadcrumb/_bootstrap4-definition.scss +13 -0
- package/styles/breadcrumb/_bootstrap5-definition.scss +15 -2
- package/styles/breadcrumb/_fabric-dark-definition.scss +13 -0
- package/styles/breadcrumb/_fabric-definition.scss +13 -0
- package/styles/breadcrumb/_fluent-definition.scss +59 -0
- package/styles/breadcrumb/_highcontrast-definition.scss +13 -0
- package/styles/breadcrumb/_highcontrast-light-definition.scss +13 -0
- package/styles/breadcrumb/_layout.scss +171 -22
- package/styles/breadcrumb/_material-dark-definition.scss +13 -0
- package/styles/breadcrumb/_material-definition.scss +13 -0
- package/styles/breadcrumb/_tailwind-dark-definition.scss +13 -0
- package/styles/breadcrumb/_tailwind-definition.scss +13 -0
- package/styles/breadcrumb/_theme.scss +27 -8
- package/styles/breadcrumb/bootstrap-dark.css +194 -17
- package/styles/breadcrumb/bootstrap.css +194 -17
- package/styles/breadcrumb/bootstrap4.css +194 -17
- package/styles/breadcrumb/bootstrap5-dark.css +198 -24
- package/styles/breadcrumb/bootstrap5.css +198 -24
- package/styles/breadcrumb/fabric-dark.css +197 -20
- package/styles/breadcrumb/fabric.css +197 -20
- package/styles/breadcrumb/highcontrast-light.css +200 -22
- package/styles/breadcrumb/highcontrast.css +200 -22
- package/styles/breadcrumb/icons/_bootstrap-dark.scss +2 -1
- package/styles/breadcrumb/icons/_bootstrap.scss +2 -1
- package/styles/breadcrumb/icons/_bootstrap4.scss +2 -1
- package/styles/breadcrumb/icons/_bootstrap5.scss +2 -1
- package/styles/breadcrumb/icons/_fabric-dark.scss +2 -1
- package/styles/breadcrumb/icons/_fabric.scss +2 -1
- package/styles/breadcrumb/icons/_fluent.scss +25 -0
- package/styles/breadcrumb/icons/_highcontrast-light.scss +2 -1
- package/styles/breadcrumb/icons/_highcontrast.scss +2 -1
- package/styles/breadcrumb/icons/_material-dark.scss +2 -1
- package/styles/breadcrumb/icons/_material.scss +2 -1
- package/styles/breadcrumb/icons/_tailwind-dark.scss +2 -1
- package/styles/breadcrumb/icons/_tailwind.scss +2 -1
- package/styles/breadcrumb/material-dark.css +186 -13
- package/styles/breadcrumb/material.css +186 -13
- package/styles/breadcrumb/tailwind-dark.css +195 -22
- package/styles/breadcrumb/tailwind.css +195 -22
- package/styles/context-menu/_bootstrap-dark-definition.scss +1 -1
- package/styles/context-menu/_bootstrap-definition.scss +1 -1
- package/styles/context-menu/_bootstrap4-definition.scss +1 -1
- package/styles/context-menu/_bootstrap5-definition.scss +5 -5
- package/styles/context-menu/_fluent-definition.scss +52 -0
- package/styles/context-menu/_material-dark-definition.scss +1 -1
- package/styles/context-menu/_material-definition.scss +1 -1
- package/styles/context-menu/_tailwind-definition.scss +1 -1
- package/styles/context-menu/bootstrap-dark.css +1 -1
- package/styles/context-menu/bootstrap.css +1 -1
- package/styles/context-menu/bootstrap4.css +1 -1
- package/styles/context-menu/bootstrap5-dark.css +5 -5
- package/styles/context-menu/bootstrap5.css +6 -6
- package/styles/context-menu/icons/_fluent.scss +32 -0
- package/styles/context-menu/material-dark.css +1 -1
- package/styles/context-menu/material.css +1 -1
- package/styles/context-menu/tailwind-dark.css +1 -1
- package/styles/context-menu/tailwind.css +1 -1
- package/styles/fabric-dark.css +305 -41
- package/styles/fabric.css +308 -44
- package/styles/h-scroll/_fluent-definition.scss +78 -0
- package/styles/h-scroll/_tailwind-definition.scss +78 -78
- package/styles/h-scroll/_theme.scss +1 -1
- package/styles/h-scroll/bootstrap-dark.css +1 -1
- package/styles/h-scroll/bootstrap.css +1 -1
- package/styles/h-scroll/bootstrap4.css +1 -1
- package/styles/h-scroll/bootstrap5-dark.css +1 -1
- package/styles/h-scroll/bootstrap5.css +1 -1
- package/styles/h-scroll/fabric-dark.css +1 -1
- package/styles/h-scroll/fabric.css +1 -1
- package/styles/h-scroll/highcontrast-light.css +1 -1
- package/styles/h-scroll/highcontrast.css +1 -1
- package/styles/h-scroll/icons/_fluent.scss +49 -0
- package/styles/h-scroll/icons/_tailwind.scss +49 -49
- package/styles/h-scroll/material-dark.css +1 -1
- package/styles/h-scroll/material.css +1 -1
- package/styles/h-scroll/tailwind-dark.css +1 -1
- package/styles/h-scroll/tailwind.css +1 -1
- package/styles/highcontrast-light.css +317 -47
- package/styles/highcontrast.css +322 -52
- package/styles/material-dark.css +295 -32
- package/styles/material.css +296 -33
- package/styles/menu/_fluent-definition.scss +68 -0
- package/styles/menu/_layout.scss +1 -1
- package/styles/menu/_theme.scss +9 -0
- package/styles/menu/bootstrap-dark.css +1 -1
- package/styles/menu/bootstrap.css +1 -1
- package/styles/menu/bootstrap4.css +1 -1
- package/styles/menu/bootstrap5-dark.css +4 -4
- package/styles/menu/bootstrap5.css +5 -5
- package/styles/menu/icons/_fluent.scss +133 -0
- package/styles/menu/material-dark.css +1 -1
- package/styles/menu/material.css +1 -1
- package/styles/menu/tailwind-dark.css +1 -1
- package/styles/menu/tailwind.css +1 -1
- package/styles/sidebar/_bootstrap5-definition.scss +5 -5
- package/styles/sidebar/_fluent-definition.scss +5 -0
- package/styles/sidebar/_theme.scss +4 -2
- package/styles/sidebar/bootstrap5-dark.css +0 -1
- package/styles/sidebar/bootstrap5.css +0 -1
- package/styles/sidebar/tailwind-dark.css +0 -1
- package/styles/sidebar/tailwind.css +0 -1
- package/styles/tab/_bootstrap-dark-definition.scss +10 -1
- package/styles/tab/_bootstrap-definition.scss +10 -1
- package/styles/tab/_bootstrap4-definition.scss +9 -1
- package/styles/tab/_bootstrap5-definition.scss +401 -401
- package/styles/tab/_fabric-dark-definition.scss +10 -0
- package/styles/tab/_fabric-definition.scss +10 -0
- package/styles/tab/_fluent-definition.scss +409 -0
- package/styles/tab/_highcontrast-definition.scss +10 -0
- package/styles/tab/_highcontrast-light-definition.scss +10 -0
- package/styles/tab/_layout.scss +145 -0
- package/styles/tab/_material-dark-definition.scss +10 -0
- package/styles/tab/_material-definition.scss +10 -0
- package/styles/tab/_tailwind-definition.scss +431 -420
- package/styles/tab/_theme.scss +188 -113
- package/styles/tab/bootstrap-dark.css +43 -18
- package/styles/tab/bootstrap.css +42 -17
- package/styles/tab/bootstrap4.css +47 -28
- package/styles/tab/bootstrap5-dark.css +54 -31
- package/styles/tab/bootstrap5.css +54 -31
- package/styles/tab/fabric-dark.css +43 -20
- package/styles/tab/fabric.css +46 -23
- package/styles/tab/highcontrast-light.css +52 -19
- package/styles/tab/highcontrast.css +56 -23
- package/styles/tab/icons/_bootstrap-dark.scss +2 -2
- package/styles/tab/icons/_fabric-dark.scss +2 -2
- package/styles/tab/icons/_fluent.scss +140 -0
- package/styles/tab/icons/_tailwind.scss +140 -140
- package/styles/tab/material-dark.css +42 -15
- package/styles/tab/material.css +42 -15
- package/styles/tab/tailwind-dark.css +42 -17
- package/styles/tab/tailwind.css +42 -17
- package/styles/tailwind-dark.css +313 -50
- package/styles/tailwind.css +313 -50
- package/styles/toolbar/_bootstrap-dark-definition.scss +7 -1
- package/styles/toolbar/_bootstrap-definition.scss +7 -1
- package/styles/toolbar/_bootstrap4-definition.scss +8 -2
- package/styles/toolbar/_bootstrap5-definition.scss +104 -86
- package/styles/toolbar/_fabric-dark-definition.scss +7 -0
- package/styles/toolbar/_fabric-definition.scss +7 -0
- package/styles/toolbar/_fluent-definition.scss +149 -0
- package/styles/toolbar/_highcontrast-definition.scss +7 -0
- package/styles/toolbar/_highcontrast-light-definition.scss +7 -0
- package/styles/toolbar/_layout.scss +27 -72
- package/styles/toolbar/_material-dark-definition.scss +7 -1
- package/styles/toolbar/_material-definition.scss +7 -1
- package/styles/toolbar/_tailwind-definition.scss +149 -143
- package/styles/toolbar/_theme.scss +12 -15
- package/styles/toolbar/bootstrap-dark.css +17 -46
- package/styles/toolbar/bootstrap.css +17 -46
- package/styles/toolbar/bootstrap4.css +12 -26
- package/styles/toolbar/bootstrap5-dark.css +6 -7
- package/styles/toolbar/bootstrap5.css +6 -7
- package/styles/toolbar/fabric-dark.css +4 -0
- package/styles/toolbar/fabric.css +4 -0
- package/styles/toolbar/highcontrast-light.css +4 -1
- package/styles/toolbar/highcontrast.css +4 -1
- package/styles/toolbar/icons/_fluent.scss +16 -0
- package/styles/toolbar/icons/_tailwind.scss +16 -16
- package/styles/toolbar/material-dark.css +4 -1
- package/styles/toolbar/material.css +5 -2
- package/styles/toolbar/tailwind-dark.css +8 -6
- package/styles/toolbar/tailwind.css +8 -6
- package/styles/treeview/_bootstrap-dark-definition.scss +11 -0
- package/styles/treeview/_bootstrap-definition.scss +11 -0
- package/styles/treeview/_bootstrap4-definition.scss +11 -0
- package/styles/treeview/_bootstrap5-definition.scss +120 -109
- package/styles/treeview/_fabric-dark-definition.scss +11 -0
- package/styles/treeview/_fabric-definition.scss +11 -0
- package/styles/treeview/_fluent-definition.scss +120 -0
- package/styles/treeview/_highcontrast-definition.scss +11 -0
- package/styles/treeview/_highcontrast-light-definition.scss +11 -0
- package/styles/treeview/_layout.scss +116 -20
- package/styles/treeview/_material-dark-definition.scss +13 -0
- package/styles/treeview/_material-definition.scss +11 -0
- package/styles/treeview/_tailwind-definition.scss +12 -0
- package/styles/treeview/_theme.scss +5 -5
- package/styles/treeview/bootstrap-dark.css +60 -0
- package/styles/treeview/bootstrap.css +60 -0
- package/styles/treeview/bootstrap4.css +60 -0
- package/styles/treeview/bootstrap5-dark.css +61 -1
- package/styles/treeview/bootstrap5.css +61 -1
- package/styles/treeview/fabric-dark.css +60 -0
- package/styles/treeview/fabric.css +60 -0
- package/styles/treeview/highcontrast-light.css +60 -0
- package/styles/treeview/highcontrast.css +60 -0
- package/styles/treeview/icons/_bootstrap5.scss +43 -43
- package/styles/treeview/icons/_fluent.scss +43 -0
- package/styles/treeview/icons/_tailwind-dark.scss +43 -43
- package/styles/treeview/material-dark.css +60 -0
- package/styles/treeview/material.css +60 -0
- package/styles/treeview/tailwind-dark.css +65 -1
- package/styles/treeview/tailwind.css +65 -1
- package/styles/v-scroll/_fluent-definition.scss +49 -0
- package/styles/v-scroll/_tailwind-definition.scss +49 -49
- package/styles/v-scroll/icons/_fluent.scss +26 -0
- package/styles/v-scroll/icons/_tailwind.scss +26 -26
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 19.
|
|
3
|
+
* version : 19.4.38
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2020. 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,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"_from": "@syncfusion/ej2-navigations@*",
|
|
3
|
-
"_id": "@syncfusion/ej2-navigations@19.
|
|
3
|
+
"_id": "@syncfusion/ej2-navigations@19.20.6",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-GTJ61Ap2hn67jdLCh4gsrKtIMhegTo1mIIl4kNk6mcfO8zKqWi4iFl96TeZvVZNLC2k8powYSvxyM7SXCJFPIQ==",
|
|
6
6
|
"_location": "/@syncfusion/ej2-navigations",
|
|
7
7
|
"_phantomChildren": {},
|
|
8
8
|
"_requested": {
|
|
@@ -37,8 +37,8 @@
|
|
|
37
37
|
"/@syncfusion/ej2-spreadsheet",
|
|
38
38
|
"/@syncfusion/ej2-vue-navigations"
|
|
39
39
|
],
|
|
40
|
-
"_resolved": "http://nexus.syncfusion.com/repository/ej2-
|
|
41
|
-
"_shasum": "
|
|
40
|
+
"_resolved": "http://nexus.syncfusion.com/repository/ej2-release/@syncfusion/ej2-navigations/-/ej2-navigations-19.20.6.tgz",
|
|
41
|
+
"_shasum": "61635321d499aa224dbc024033b02921172cf767",
|
|
42
42
|
"_spec": "@syncfusion/ej2-navigations@*",
|
|
43
43
|
"_where": "/jenkins/workspace/automation_release_19.1.0.1-ZPMUBNQ6AUYH6YGEFBPVYMEQLRRW2SLD4XCZ6GATNZJFYJ3RIAOA/packages/included",
|
|
44
44
|
"author": {
|
|
@@ -49,12 +49,12 @@
|
|
|
49
49
|
},
|
|
50
50
|
"bundleDependencies": false,
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@syncfusion/ej2-base": "~19.
|
|
53
|
-
"@syncfusion/ej2-buttons": "~19.
|
|
54
|
-
"@syncfusion/ej2-data": "~19.
|
|
55
|
-
"@syncfusion/ej2-inputs": "~19.
|
|
56
|
-
"@syncfusion/ej2-lists": "~19.
|
|
57
|
-
"@syncfusion/ej2-popups": "~19.
|
|
52
|
+
"@syncfusion/ej2-base": "~19.4.38",
|
|
53
|
+
"@syncfusion/ej2-buttons": "~19.4.38",
|
|
54
|
+
"@syncfusion/ej2-data": "~19.4.38",
|
|
55
|
+
"@syncfusion/ej2-inputs": "~19.4.38",
|
|
56
|
+
"@syncfusion/ej2-lists": "~19.4.38",
|
|
57
|
+
"@syncfusion/ej2-popups": "~19.4.38"
|
|
58
58
|
},
|
|
59
59
|
"deprecated": false,
|
|
60
60
|
"description": "A package of Essential JS 2 navigation components such as Tree-view, Tab, Toolbar, Context-menu, and Accordion which is used to navigate from one page to another",
|
|
@@ -159,6 +159,6 @@
|
|
|
159
159
|
"url": "git+https://github.com/syncfusion/ej2-javascript-ui-controls.git"
|
|
160
160
|
},
|
|
161
161
|
"typings": "index.d.ts",
|
|
162
|
-
"version": "19.
|
|
162
|
+
"version": "19.4.38",
|
|
163
163
|
"sideEffects": false
|
|
164
164
|
}
|
|
@@ -241,35 +241,35 @@ export interface AccordionModel extends ComponentModel{
|
|
|
241
241
|
/**
|
|
242
242
|
* The event will be fired while clicking anywhere within the Accordion.
|
|
243
243
|
*
|
|
244
|
-
* @event
|
|
244
|
+
* @event clicked
|
|
245
245
|
*/
|
|
246
246
|
clicked?: EmitType<AccordionClickArgs>;
|
|
247
247
|
|
|
248
248
|
/**
|
|
249
249
|
* The event will be fired before the item gets collapsed/expanded.
|
|
250
250
|
*
|
|
251
|
-
* @event
|
|
251
|
+
* @event expanding
|
|
252
252
|
*/
|
|
253
253
|
expanding?: EmitType<ExpandEventArgs>;
|
|
254
254
|
|
|
255
255
|
/**
|
|
256
256
|
* The event will be fired after the item gets collapsed/expanded.
|
|
257
257
|
*
|
|
258
|
-
* @event
|
|
258
|
+
* @event expanded
|
|
259
259
|
*/
|
|
260
260
|
expanded?: EmitType<ExpandedEventArgs>;
|
|
261
261
|
|
|
262
262
|
/**
|
|
263
263
|
* The event will be fired once the control rendering is completed.
|
|
264
264
|
*
|
|
265
|
-
* @event
|
|
265
|
+
* @event created
|
|
266
266
|
*/
|
|
267
267
|
created?: EmitType<Event>;
|
|
268
268
|
|
|
269
269
|
/**
|
|
270
270
|
* The event will be fired when the control gets destroyed.
|
|
271
271
|
*
|
|
272
|
-
* @event
|
|
272
|
+
* @event destroyed
|
|
273
273
|
*/
|
|
274
274
|
destroyed?: EmitType<Event>;
|
|
275
275
|
|
|
@@ -275,31 +275,31 @@ export declare class Accordion extends Component<HTMLElement> implements INotify
|
|
|
275
275
|
/**
|
|
276
276
|
* The event will be fired while clicking anywhere within the Accordion.
|
|
277
277
|
*
|
|
278
|
-
* @event
|
|
278
|
+
* @event clicked
|
|
279
279
|
*/
|
|
280
280
|
clicked: EmitType<AccordionClickArgs>;
|
|
281
281
|
/**
|
|
282
282
|
* The event will be fired before the item gets collapsed/expanded.
|
|
283
283
|
*
|
|
284
|
-
* @event
|
|
284
|
+
* @event expanding
|
|
285
285
|
*/
|
|
286
286
|
expanding: EmitType<ExpandEventArgs>;
|
|
287
287
|
/**
|
|
288
288
|
* The event will be fired after the item gets collapsed/expanded.
|
|
289
289
|
*
|
|
290
|
-
* @event
|
|
290
|
+
* @event expanded
|
|
291
291
|
*/
|
|
292
292
|
expanded: EmitType<ExpandedEventArgs>;
|
|
293
293
|
/**
|
|
294
294
|
* The event will be fired once the control rendering is completed.
|
|
295
295
|
*
|
|
296
|
-
* @event
|
|
296
|
+
* @event created
|
|
297
297
|
*/
|
|
298
298
|
created: EmitType<Event>;
|
|
299
299
|
/**
|
|
300
300
|
* The event will be fired when the control gets destroyed.
|
|
301
301
|
*
|
|
302
|
-
* @event
|
|
302
|
+
* @event destroyed
|
|
303
303
|
*/
|
|
304
304
|
destroyed: EmitType<Event>;
|
|
305
305
|
/**
|
|
@@ -17,6 +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
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
20
21
|
import { Component, EventHandler, Property, Event, KeyboardEvents, rippleEffect } from '@syncfusion/ej2-base';
|
|
21
22
|
import { getUniqueID, compile as templateCompiler } from '@syncfusion/ej2-base';
|
|
22
23
|
import { isVisible, closest, attributes, detach, select, addClass, append } from '@syncfusion/ej2-base';
|
|
@@ -299,11 +300,9 @@ var Accordion = /** @class */ (function (_super) {
|
|
|
299
300
|
this.itemTemplateFn = this.templateParser(this.itemTemplate);
|
|
300
301
|
}
|
|
301
302
|
};
|
|
302
|
-
/* eslint-disable */
|
|
303
303
|
Accordion.prototype.getHeaderTemplate = function () {
|
|
304
304
|
return this.headerTemplateFn;
|
|
305
305
|
};
|
|
306
|
-
/* eslint-disable */
|
|
307
306
|
Accordion.prototype.getItemTemplate = function () {
|
|
308
307
|
return this.itemTemplateFn;
|
|
309
308
|
};
|
|
@@ -324,7 +323,6 @@ var Accordion = /** @class */ (function (_super) {
|
|
|
324
323
|
innerEles = this.element.children;
|
|
325
324
|
}
|
|
326
325
|
var items = [];
|
|
327
|
-
/* eslint-disable */
|
|
328
326
|
[].slice.call(innerEles).forEach(function (el) {
|
|
329
327
|
items.push({
|
|
330
328
|
header: (el.childElementCount > 0 && el.children[0]) ? (el.children[0]) : '',
|
|
@@ -332,7 +330,6 @@ var Accordion = /** @class */ (function (_super) {
|
|
|
332
330
|
});
|
|
333
331
|
el.parentNode.removeChild(el);
|
|
334
332
|
});
|
|
335
|
-
/* eslint-enable */
|
|
336
333
|
if (rootEle) {
|
|
337
334
|
this.element.removeChild(rootEle);
|
|
338
335
|
}
|
|
@@ -357,7 +354,6 @@ var Accordion = /** @class */ (function (_super) {
|
|
|
357
354
|
this.expandItem(true, this.initExpand[i]);
|
|
358
355
|
}
|
|
359
356
|
}
|
|
360
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
361
357
|
if (this.isReact) {
|
|
362
358
|
this.renderReactTemplates();
|
|
363
359
|
}
|
|
@@ -393,7 +389,6 @@ var Accordion = /** @class */ (function (_super) {
|
|
|
393
389
|
});
|
|
394
390
|
}
|
|
395
391
|
}
|
|
396
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
397
392
|
if (this.isReact) {
|
|
398
393
|
this.renderReactTemplates();
|
|
399
394
|
}
|
|
@@ -439,7 +434,6 @@ var Accordion = /** @class */ (function (_super) {
|
|
|
439
434
|
else {
|
|
440
435
|
this.afterContentRender(trgt, eventArgs, acrdnItem, acrdnHdr, acrdnCtn, acrdnCtnItem);
|
|
441
436
|
}
|
|
442
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
443
437
|
if (this.isReact) {
|
|
444
438
|
this.renderReactTemplates();
|
|
445
439
|
}
|
|
@@ -647,7 +641,6 @@ var Accordion = /** @class */ (function (_super) {
|
|
|
647
641
|
};
|
|
648
642
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
649
643
|
Accordion.prototype.fetchElement = function (ele, value, index, isHeader) {
|
|
650
|
-
/* eslint-disable */
|
|
651
644
|
var templateFn;
|
|
652
645
|
var temString;
|
|
653
646
|
try {
|
|
@@ -661,12 +654,10 @@ var Accordion = /** @class */ (function (_super) {
|
|
|
661
654
|
catch (e) {
|
|
662
655
|
if (typeof (value) === 'string') {
|
|
663
656
|
ele.innerHTML = SanitizeHtmlHelper.sanitize(value);
|
|
664
|
-
/* eslint-disable */
|
|
665
657
|
}
|
|
666
658
|
else if (!isNOU(this.trgtEle) && (value instanceof (HTMLElement))) {
|
|
667
659
|
ele.appendChild(value);
|
|
668
660
|
ele.firstElementChild.style.display = '';
|
|
669
|
-
/* eslint-enable */
|
|
670
661
|
}
|
|
671
662
|
else {
|
|
672
663
|
templateFn = templateCompiler(value);
|
|
@@ -674,7 +665,6 @@ var Accordion = /** @class */ (function (_super) {
|
|
|
674
665
|
}
|
|
675
666
|
var tempArray;
|
|
676
667
|
if (!isNOU(templateFn)) {
|
|
677
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
678
668
|
if (this.isReact) {
|
|
679
669
|
this.renderReactTemplates();
|
|
680
670
|
}
|
|
@@ -720,7 +710,6 @@ var Accordion = /** @class */ (function (_super) {
|
|
|
720
710
|
attributes(itemcnt, { 'aria-hidden': 'true' });
|
|
721
711
|
var ctn = this.createElement('div', { className: CLS_CTENT });
|
|
722
712
|
if (this.dataSource.length > 0) {
|
|
723
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
724
713
|
if (this.isReact) {
|
|
725
714
|
this.renderReactTemplates();
|
|
726
715
|
}
|
|
@@ -870,7 +859,7 @@ var Accordion = /** @class */ (function (_super) {
|
|
|
870
859
|
this.trigger('expanding', eventArgs, function (expandArgs) {
|
|
871
860
|
if (!expandArgs.cancel) {
|
|
872
861
|
_this.expandedItemsPop(trgtItemEle);
|
|
873
|
-
trgtItemEle.classList.
|
|
862
|
+
trgtItemEle.classList.remove(CLS_EXPANDSTATE);
|
|
874
863
|
icon.classList.add(CLS_TOGANIMATE);
|
|
875
864
|
if ((animation.name === 'None')) {
|
|
876
865
|
_this.collapseProgress('begin', icon, trgt, trgtItemEle, expandArgs);
|
|
@@ -1000,7 +989,6 @@ var Accordion = /** @class */ (function (_super) {
|
|
|
1000
989
|
}
|
|
1001
990
|
});
|
|
1002
991
|
}
|
|
1003
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1004
992
|
if (this.isReact) {
|
|
1005
993
|
this.renderReactTemplates();
|
|
1006
994
|
}
|
|
@@ -1022,7 +1010,6 @@ var Accordion = /** @class */ (function (_super) {
|
|
|
1022
1010
|
* @returns {void}.
|
|
1023
1011
|
*/
|
|
1024
1012
|
Accordion.prototype.removeItem = function (index) {
|
|
1025
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1026
1013
|
if (this.isReact) {
|
|
1027
1014
|
this.clearTemplate(['headerTemplate', 'itemTemplate'], index);
|
|
1028
1015
|
}
|
|
@@ -1170,14 +1157,12 @@ var Accordion = /** @class */ (function (_super) {
|
|
|
1170
1157
|
this.collapse(ctn);
|
|
1171
1158
|
}
|
|
1172
1159
|
}
|
|
1173
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1174
1160
|
if (this.isReact) {
|
|
1175
1161
|
this.renderReactTemplates();
|
|
1176
1162
|
}
|
|
1177
1163
|
};
|
|
1178
1164
|
Accordion.prototype.destroyItems = function () {
|
|
1179
1165
|
this.restoreContent(null);
|
|
1180
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1181
1166
|
if (this.isReact) {
|
|
1182
1167
|
this.clearTemplate();
|
|
1183
1168
|
}
|
|
@@ -1212,12 +1197,10 @@ var Accordion = /** @class */ (function (_super) {
|
|
|
1212
1197
|
Accordion.prototype.setTemplate = function (template, toElement, index) {
|
|
1213
1198
|
toElement.innerHTML = '';
|
|
1214
1199
|
this.templateCompile(toElement, template, index);
|
|
1215
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1216
1200
|
if (this.isReact) {
|
|
1217
1201
|
this.renderReactTemplates();
|
|
1218
1202
|
}
|
|
1219
1203
|
};
|
|
1220
|
-
// eslint-disable-next-line
|
|
1221
1204
|
Accordion.prototype.templateCompile = function (ele, cnt, index) {
|
|
1222
1205
|
var tempEle = this.createElement('div');
|
|
1223
1206
|
this.fetchElement(tempEle, cnt, index, false);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component, NotifyPropertyChanges, INotifyPropertyChanged, ChildProperty, Property, Collection, append, extend, Event, EmitType, BaseEventArgs, EventHandler, closest, addClass, removeClass } from '@syncfusion/ej2-base';import { ListBase, ListBaseOptions } from '@syncfusion/ej2-lists';
|
|
1
|
+
import { Component, NotifyPropertyChanges, INotifyPropertyChanged, ChildProperty, Property, Collection, append, extend, Event, EmitType, BaseEventArgs, EventHandler, closest, addClass, removeClass, detach, remove } from '@syncfusion/ej2-base';import { ListBase, ListBaseOptions } from '@syncfusion/ej2-lists';import { Popup } from '@syncfusion/ej2-popups';
|
|
2
2
|
import {BreadcrumbOverflowMode,BreadcrumbBeforeItemRenderEventArgs,BreadcrumbClickEventArgs} from "./breadcrumb";
|
|
3
3
|
import {ComponentModel} from '@syncfusion/ej2-base';
|
|
4
4
|
|
|
@@ -28,6 +28,13 @@ export interface BreadcrumbItemModel {
|
|
|
28
28
|
*/
|
|
29
29
|
iconCss?: string;
|
|
30
30
|
|
|
31
|
+
/**
|
|
32
|
+
* Enable or disable the breadcrumb item, when set to true, the breadcrumb item will be disabled.
|
|
33
|
+
*
|
|
34
|
+
* @default false
|
|
35
|
+
*/
|
|
36
|
+
disabled?: boolean;
|
|
37
|
+
|
|
31
38
|
}
|
|
32
39
|
|
|
33
40
|
/**
|
|
@@ -59,7 +66,8 @@ export interface BreadcrumbModel extends ComponentModel{
|
|
|
59
66
|
/**
|
|
60
67
|
* Specifies an integer to enable overflow behavior when the Breadcrumb items count exceeds and it is based on the overflowMode property.
|
|
61
68
|
*
|
|
62
|
-
* @default
|
|
69
|
+
* @default -1
|
|
70
|
+
* @aspType int
|
|
63
71
|
*/
|
|
64
72
|
maxItems?: number;
|
|
65
73
|
|
|
@@ -67,8 +75,12 @@ export interface BreadcrumbModel extends ComponentModel{
|
|
|
67
75
|
* Specifies the overflow mode of the Breadcrumb item when it exceeds maxItems count. The possible values are,
|
|
68
76
|
* - Default: Specified maxItems count will be visible and the remaining items will be hidden. While clicking on the previous item, the hidden item will become visible.
|
|
69
77
|
* - Collapsed: Only the first and last items will be visible, and the remaining items will be hidden in the collapsed icon. When the collapsed icon is clicked, all items become visible.
|
|
70
|
-
*
|
|
71
|
-
*
|
|
78
|
+
* - Menu: Shows the number of breadcrumb items that can be accommodated within the container space, and creates a sub menu with the remaining items.
|
|
79
|
+
* - Wrap: Wraps the items on multiple lines when the Breadcrumb’s width exceeds the container space.
|
|
80
|
+
* - Scroll: Shows an HTML scroll bar when the Breadcrumb’s width exceeds the container space.
|
|
81
|
+
* - None: Shows all the items on a single line.
|
|
82
|
+
*
|
|
83
|
+
* @default 'Menu'
|
|
72
84
|
*/
|
|
73
85
|
overflowMode?: BreadcrumbOverflowMode;
|
|
74
86
|
|
|
@@ -79,13 +91,6 @@ export interface BreadcrumbModel extends ComponentModel{
|
|
|
79
91
|
*/
|
|
80
92
|
cssClass?: string;
|
|
81
93
|
|
|
82
|
-
/**
|
|
83
|
-
* Specifies the width for the Breadcrumb component container element. If the Breadcrumb items overflow, the browsers horizontal scroll will be activated based on the device.
|
|
84
|
-
*
|
|
85
|
-
* @default ''
|
|
86
|
-
*/
|
|
87
|
-
width?: string;
|
|
88
|
-
|
|
89
94
|
/**
|
|
90
95
|
* Specifies the template for Breadcrumb item.
|
|
91
96
|
*
|
|
@@ -114,6 +119,13 @@ export interface BreadcrumbModel extends ComponentModel{
|
|
|
114
119
|
*/
|
|
115
120
|
enableActiveItemNavigation?: boolean;
|
|
116
121
|
|
|
122
|
+
/**
|
|
123
|
+
* Enable or disable the breadcrumb, when set to true, the breadcrumb will be disabled.
|
|
124
|
+
*
|
|
125
|
+
* @default false
|
|
126
|
+
*/
|
|
127
|
+
disabled?: boolean;
|
|
128
|
+
|
|
117
129
|
/**
|
|
118
130
|
* Overrides the global culture and localization value for this component. Default global culture is 'en-US'.
|
|
119
131
|
*
|
|
@@ -3,7 +3,7 @@ import { BreadcrumbModel, BreadcrumbItemModel } from './breadcrumb-model';
|
|
|
3
3
|
/**
|
|
4
4
|
* Defines the Breadcrumb overflow modes.
|
|
5
5
|
*/
|
|
6
|
-
export declare type BreadcrumbOverflowMode = '
|
|
6
|
+
export declare type BreadcrumbOverflowMode = 'Hidden' | 'Collapsed' | 'Menu' | 'Wrap' | 'Scroll' | 'None';
|
|
7
7
|
export declare class BreadcrumbItem extends ChildProperty<BreadcrumbItem> {
|
|
8
8
|
/**
|
|
9
9
|
* Specifies the text content of the Breadcrumb item.
|
|
@@ -23,6 +23,12 @@ export declare class BreadcrumbItem extends ChildProperty<BreadcrumbItem> {
|
|
|
23
23
|
* @default null
|
|
24
24
|
*/
|
|
25
25
|
iconCss: string;
|
|
26
|
+
/**
|
|
27
|
+
* Enable or disable the breadcrumb item, when set to true, the breadcrumb item will be disabled.
|
|
28
|
+
*
|
|
29
|
+
* @default false
|
|
30
|
+
*/
|
|
31
|
+
disabled: boolean;
|
|
26
32
|
}
|
|
27
33
|
/**
|
|
28
34
|
* Interface for item click event.
|
|
@@ -53,6 +59,10 @@ export interface BreadcrumbBeforeItemRenderEventArgs extends BaseEventArgs {
|
|
|
53
59
|
* Specifies the Breadcrumb item.
|
|
54
60
|
*/
|
|
55
61
|
item: BreadcrumbItemModel;
|
|
62
|
+
/**
|
|
63
|
+
* Cancels the Breadcrumb item rendering.
|
|
64
|
+
*/
|
|
65
|
+
cancel: boolean;
|
|
56
66
|
}
|
|
57
67
|
/**
|
|
58
68
|
* Breadcrumb is a graphical user interface that helps to identify or highlight the current location within a hierarchical structure of websites.
|
|
@@ -72,6 +82,9 @@ export declare class Breadcrumb extends Component<HTMLElement> implements INotif
|
|
|
72
82
|
private startIndex;
|
|
73
83
|
private endIndex;
|
|
74
84
|
private _maxItems;
|
|
85
|
+
private popupObj;
|
|
86
|
+
private popupUl;
|
|
87
|
+
private delegateClickHanlder;
|
|
75
88
|
/**
|
|
76
89
|
* Defines the Url based on which the Breadcrumb items are generated.
|
|
77
90
|
*
|
|
@@ -93,15 +106,20 @@ export declare class Breadcrumb extends Component<HTMLElement> implements INotif
|
|
|
93
106
|
/**
|
|
94
107
|
* Specifies an integer to enable overflow behavior when the Breadcrumb items count exceeds and it is based on the overflowMode property.
|
|
95
108
|
*
|
|
96
|
-
* @default
|
|
109
|
+
* @default -1
|
|
110
|
+
* @aspType int
|
|
97
111
|
*/
|
|
98
112
|
maxItems: number;
|
|
99
113
|
/**
|
|
100
114
|
* Specifies the overflow mode of the Breadcrumb item when it exceeds maxItems count. The possible values are,
|
|
101
115
|
* - Default: Specified maxItems count will be visible and the remaining items will be hidden. While clicking on the previous item, the hidden item will become visible.
|
|
102
116
|
* - Collapsed: Only the first and last items will be visible, and the remaining items will be hidden in the collapsed icon. When the collapsed icon is clicked, all items become visible.
|
|
117
|
+
* - Menu: Shows the number of breadcrumb items that can be accommodated within the container space, and creates a sub menu with the remaining items.
|
|
118
|
+
* - Wrap: Wraps the items on multiple lines when the Breadcrumb’s width exceeds the container space.
|
|
119
|
+
* - Scroll: Shows an HTML scroll bar when the Breadcrumb’s width exceeds the container space.
|
|
120
|
+
* - None: Shows all the items on a single line.
|
|
103
121
|
*
|
|
104
|
-
* @default '
|
|
122
|
+
* @default 'Menu'
|
|
105
123
|
*/
|
|
106
124
|
overflowMode: BreadcrumbOverflowMode;
|
|
107
125
|
/**
|
|
@@ -110,12 +128,6 @@ export declare class Breadcrumb extends Component<HTMLElement> implements INotif
|
|
|
110
128
|
* @default ''
|
|
111
129
|
*/
|
|
112
130
|
cssClass: string;
|
|
113
|
-
/**
|
|
114
|
-
* Specifies the width for the Breadcrumb component container element. If the Breadcrumb items overflow, the browsers horizontal scroll will be activated based on the device.
|
|
115
|
-
*
|
|
116
|
-
* @default ''
|
|
117
|
-
*/
|
|
118
|
-
width: string;
|
|
119
131
|
/**
|
|
120
132
|
* Specifies the template for Breadcrumb item.
|
|
121
133
|
*
|
|
@@ -140,6 +152,12 @@ export declare class Breadcrumb extends Component<HTMLElement> implements INotif
|
|
|
140
152
|
* @default false
|
|
141
153
|
*/
|
|
142
154
|
enableActiveItemNavigation: boolean;
|
|
155
|
+
/**
|
|
156
|
+
* Enable or disable the breadcrumb, when set to true, the breadcrumb will be disabled.
|
|
157
|
+
*
|
|
158
|
+
* @default false
|
|
159
|
+
*/
|
|
160
|
+
disabled: boolean;
|
|
143
161
|
/**
|
|
144
162
|
* Overrides the global culture and localization value for this component. Default global culture is 'en-US'.
|
|
145
163
|
*
|
|
@@ -188,17 +206,21 @@ export declare class Breadcrumb extends Component<HTMLElement> implements INotif
|
|
|
188
206
|
protected render(): void;
|
|
189
207
|
private initialize;
|
|
190
208
|
private initPvtProps;
|
|
191
|
-
private
|
|
209
|
+
private getEndIndex;
|
|
192
210
|
private initItems;
|
|
193
211
|
private renderItems;
|
|
194
212
|
private calculateMaxItems;
|
|
195
213
|
private hasField;
|
|
214
|
+
private getMenuElement;
|
|
196
215
|
private beforeItemRenderChanges;
|
|
197
216
|
private reRenderItems;
|
|
198
217
|
private clickHandler;
|
|
218
|
+
private renderPopup;
|
|
219
|
+
private documentClickHandler;
|
|
199
220
|
private resize;
|
|
200
221
|
private expandHandler;
|
|
201
222
|
private keyDownHandler;
|
|
223
|
+
private popupKeyDownHandler;
|
|
202
224
|
/**
|
|
203
225
|
* Called internally if any of the property value changed.
|
|
204
226
|
*
|
|
@@ -209,6 +231,7 @@ export declare class Breadcrumb extends Component<HTMLElement> implements INotif
|
|
|
209
231
|
*/
|
|
210
232
|
onPropertyChanged(newProp: BreadcrumbModel, oldProp: BreadcrumbModel): void;
|
|
211
233
|
private wireEvents;
|
|
234
|
+
private popupWireEvents;
|
|
212
235
|
private unWireEvents;
|
|
213
236
|
/**
|
|
214
237
|
* Get the properties to be maintained in the persisted state.
|