@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/src/sidebar/sidebar.js
CHANGED
|
@@ -252,7 +252,7 @@ var Sidebar = /** @class */ (function (_super) {
|
|
|
252
252
|
Sidebar.prototype.setTimeOut = function () {
|
|
253
253
|
var sibling = document.querySelector('.e-main-content') || this.targetEle;
|
|
254
254
|
var elementWidth = this.element.getBoundingClientRect().width;
|
|
255
|
-
if (this.element.classList.contains(OPEN) && sibling) {
|
|
255
|
+
if (this.element.classList.contains(OPEN) && sibling && !(this.type === 'Over' && this.enableDock)) {
|
|
256
256
|
if (this.position === 'Left') {
|
|
257
257
|
sibling.style.marginLeft = this.setDimension(this.width === 'auto' ? elementWidth : this.width);
|
|
258
258
|
}
|
|
@@ -561,7 +561,7 @@ var Sidebar = /** @class */ (function (_super) {
|
|
|
561
561
|
var sibling = document.querySelector('.e-main-content') || this.targetEle;
|
|
562
562
|
if (sibling) {
|
|
563
563
|
sibling.style.transform = 'translateX(' + 0 + 'px)';
|
|
564
|
-
if (!Browser.isDevice && this.type !== 'Auto') {
|
|
564
|
+
if (!Browser.isDevice && this.type !== 'Auto' && !(this.type === 'Over' && this.enableDock)) {
|
|
565
565
|
sibling.style[this.position === 'Left' ? 'marginLeft' : 'marginRight'] = '0px';
|
|
566
566
|
}
|
|
567
567
|
}
|
|
@@ -583,9 +583,9 @@ var Sidebar = /** @class */ (function (_super) {
|
|
|
583
583
|
break;
|
|
584
584
|
case 'Over':
|
|
585
585
|
addClass([this.element], [OVER]);
|
|
586
|
-
if (this.enableDock && this.element.classList.contains(CLOSE)) {
|
|
586
|
+
if (this.enableDock && (this.element.classList.contains(CLOSE) || this.isOpen)) {
|
|
587
587
|
if (sibling) {
|
|
588
|
-
sibling.style[this.position === 'Left' ? 'marginLeft' : 'marginRight'] =
|
|
588
|
+
sibling.style[this.position === 'Left' ? 'marginLeft' : 'marginRight'] = this.setDimension(this.dockSize);
|
|
589
589
|
}
|
|
590
590
|
}
|
|
591
591
|
break;
|
package/src/tab/tab-model.d.ts
CHANGED
|
@@ -270,6 +270,14 @@ export interface TabModel extends ComponentModel{
|
|
|
270
270
|
*/
|
|
271
271
|
showCloseButton?: boolean;
|
|
272
272
|
|
|
273
|
+
/**
|
|
274
|
+
* Determines whether to re-order tab items to show active tab item in the header area or popup when OverflowMode is Popup.
|
|
275
|
+
* True, if active tab item should be visible in header area instead of pop-up. The default value is true.
|
|
276
|
+
*
|
|
277
|
+
* @default true
|
|
278
|
+
*/
|
|
279
|
+
reorderActiveTab?: boolean;
|
|
280
|
+
|
|
273
281
|
/**
|
|
274
282
|
* Specifies the scrolling distance in scroller.
|
|
275
283
|
*
|
|
@@ -307,42 +315,42 @@ export interface TabModel extends ComponentModel{
|
|
|
307
315
|
created?: EmitType<Event>;
|
|
308
316
|
|
|
309
317
|
/**
|
|
310
|
-
* The event
|
|
318
|
+
* The event will be fired before adding the item to the Tab.
|
|
311
319
|
*
|
|
312
320
|
* @event
|
|
313
321
|
*/
|
|
314
322
|
adding?: EmitType<AddEventArgs>;
|
|
315
323
|
|
|
316
324
|
/**
|
|
317
|
-
* The event
|
|
325
|
+
* The event will be fired after adding the item to the Tab.
|
|
318
326
|
*
|
|
319
327
|
* @event
|
|
320
328
|
*/
|
|
321
329
|
added?: EmitType<AddEventArgs>;
|
|
322
330
|
|
|
323
331
|
/**
|
|
324
|
-
* The event
|
|
332
|
+
* The event will be fired before the item gets selected.
|
|
325
333
|
*
|
|
326
334
|
* @event
|
|
327
335
|
*/
|
|
328
336
|
selecting?: EmitType<SelectingEventArgs>;
|
|
329
337
|
|
|
330
338
|
/**
|
|
331
|
-
* The event
|
|
339
|
+
* The event will be fired after the item gets selected.
|
|
332
340
|
*
|
|
333
341
|
* @event
|
|
334
342
|
*/
|
|
335
343
|
selected?: EmitType<SelectEventArgs>;
|
|
336
344
|
|
|
337
345
|
/**
|
|
338
|
-
* The event
|
|
346
|
+
* The event will be fired before removing the item from the Tab.
|
|
339
347
|
*
|
|
340
348
|
* @event
|
|
341
349
|
*/
|
|
342
350
|
removing?: EmitType<RemoveEventArgs>;
|
|
343
351
|
|
|
344
352
|
/**
|
|
345
|
-
* The event
|
|
353
|
+
* The event will be fired after removing the item from the Tab.
|
|
346
354
|
*
|
|
347
355
|
* @event
|
|
348
356
|
*/
|
package/src/tab/tab.d.ts
CHANGED
|
@@ -33,6 +33,8 @@ export interface SelectEventArgs extends BaseEventArgs {
|
|
|
33
33
|
cancel?: boolean;
|
|
34
34
|
/** Defines the selected content. */
|
|
35
35
|
selectedContent: HTMLElement;
|
|
36
|
+
/** Determines whether the event is triggered via user interaction or programmatic way. True, if the event is triggered by user interaction. */
|
|
37
|
+
isInteracted?: boolean;
|
|
36
38
|
}
|
|
37
39
|
/** An interface that holds options to control the selecting item action. */
|
|
38
40
|
export interface SelectingEventArgs extends SelectEventArgs {
|
|
@@ -233,6 +235,7 @@ export declare class Tab extends Component<HTMLElement> implements INotifyProper
|
|
|
233
235
|
private maxHeight;
|
|
234
236
|
private title;
|
|
235
237
|
private initRender;
|
|
238
|
+
private isInteracted;
|
|
236
239
|
private prevActiveEle;
|
|
237
240
|
private lastIndex;
|
|
238
241
|
private isSwipeed;
|
|
@@ -368,6 +371,13 @@ export declare class Tab extends Component<HTMLElement> implements INotifyProper
|
|
|
368
371
|
* @default false
|
|
369
372
|
*/
|
|
370
373
|
showCloseButton: boolean;
|
|
374
|
+
/**
|
|
375
|
+
* Determines whether to re-order tab items to show active tab item in the header area or popup when OverflowMode is Popup.
|
|
376
|
+
* True, if active tab item should be visible in header area instead of pop-up. The default value is true.
|
|
377
|
+
*
|
|
378
|
+
* @default true
|
|
379
|
+
*/
|
|
380
|
+
reorderActiveTab: boolean;
|
|
371
381
|
/**
|
|
372
382
|
* Specifies the scrolling distance in scroller.
|
|
373
383
|
*
|
|
@@ -400,37 +410,37 @@ export declare class Tab extends Component<HTMLElement> implements INotifyProper
|
|
|
400
410
|
*/
|
|
401
411
|
created: EmitType<Event>;
|
|
402
412
|
/**
|
|
403
|
-
* The event
|
|
413
|
+
* The event will be fired before adding the item to the Tab.
|
|
404
414
|
*
|
|
405
415
|
* @event
|
|
406
416
|
*/
|
|
407
417
|
adding: EmitType<AddEventArgs>;
|
|
408
418
|
/**
|
|
409
|
-
* The event
|
|
419
|
+
* The event will be fired after adding the item to the Tab.
|
|
410
420
|
*
|
|
411
421
|
* @event
|
|
412
422
|
*/
|
|
413
423
|
added: EmitType<AddEventArgs>;
|
|
414
424
|
/**
|
|
415
|
-
* The event
|
|
425
|
+
* The event will be fired before the item gets selected.
|
|
416
426
|
*
|
|
417
427
|
* @event
|
|
418
428
|
*/
|
|
419
429
|
selecting: EmitType<SelectingEventArgs>;
|
|
420
430
|
/**
|
|
421
|
-
* The event
|
|
431
|
+
* The event will be fired after the item gets selected.
|
|
422
432
|
*
|
|
423
433
|
* @event
|
|
424
434
|
*/
|
|
425
435
|
selected: EmitType<SelectEventArgs>;
|
|
426
436
|
/**
|
|
427
|
-
* The event
|
|
437
|
+
* The event will be fired before removing the item from the Tab.
|
|
428
438
|
*
|
|
429
439
|
* @event
|
|
430
440
|
*/
|
|
431
441
|
removing: EmitType<RemoveEventArgs>;
|
|
432
442
|
/**
|
|
433
|
-
* The event
|
|
443
|
+
* The event will be fired after removing the item from the Tab.
|
|
434
444
|
*
|
|
435
445
|
* @event
|
|
436
446
|
*/
|
|
@@ -552,8 +562,8 @@ export declare class Tab extends Component<HTMLElement> implements INotifyProper
|
|
|
552
562
|
/**
|
|
553
563
|
* Enables or disables the specified Tab item. On passing value as `false`, the item will be disabled.
|
|
554
564
|
*
|
|
555
|
-
* @param
|
|
556
|
-
* @param
|
|
565
|
+
* @param {number} index - Index value of target Tab item.
|
|
566
|
+
* @param {boolean} value - Boolean value that determines whether the command should be enabled or disabled.
|
|
557
567
|
* By default, isEnable is true.
|
|
558
568
|
* @returns {void}.
|
|
559
569
|
*/
|
|
@@ -561,8 +571,8 @@ export declare class Tab extends Component<HTMLElement> implements INotifyProper
|
|
|
561
571
|
/**
|
|
562
572
|
* Adds new items to the Tab that accepts an array as Tab items.
|
|
563
573
|
*
|
|
564
|
-
* @param
|
|
565
|
-
* @param
|
|
574
|
+
* @param {TabItemModel[]} items - An array of item that is added to the Tab.
|
|
575
|
+
* @param {number} index - Number value that determines where the items to be added. By default, index is 0.
|
|
566
576
|
* @returns {void}.
|
|
567
577
|
*/
|
|
568
578
|
addTab(items: TabItemModel[], index?: number): void;
|
|
@@ -570,24 +580,25 @@ export declare class Tab extends Component<HTMLElement> implements INotifyProper
|
|
|
570
580
|
/**
|
|
571
581
|
* Removes the items in the Tab from the specified index.
|
|
572
582
|
*
|
|
573
|
-
* @param
|
|
583
|
+
* @param {number} index - Index of target item that is going to be removed.
|
|
574
584
|
* @returns {void}.
|
|
575
585
|
*/
|
|
576
586
|
removeTab(index: number): void;
|
|
577
587
|
/**
|
|
578
588
|
* Shows or hides the Tab that is in the specified index.
|
|
579
589
|
*
|
|
580
|
-
* @param
|
|
581
|
-
* @param
|
|
590
|
+
* @param {number} index - Index value of target item.
|
|
591
|
+
* @param {boolean} value - Based on this Boolean value, item will be hide (false) or show (true). By default, value is true.
|
|
582
592
|
* @returns {void}.
|
|
583
593
|
*/
|
|
584
594
|
hideTab(index: number, value?: boolean): void;
|
|
595
|
+
private selectTab;
|
|
585
596
|
/**
|
|
586
597
|
* Specifies the index or HTMLElement to select an item from the Tab.
|
|
587
598
|
*
|
|
588
|
-
* @param
|
|
599
|
+
* @param {number | HTMLElement} args - Index or DOM element is used for selecting an item from the Tab.
|
|
589
600
|
* @param {Event} event - An event which takes place in DOM.
|
|
590
|
-
* @returns {void}
|
|
601
|
+
* @returns {void}
|
|
591
602
|
*/
|
|
592
603
|
select(args: number | HTEle, event?: Event): void;
|
|
593
604
|
private selectingContent;
|
package/src/tab/tab.js
CHANGED
|
@@ -66,6 +66,7 @@ var CLS_VRIGHT = 'e-vertical-right';
|
|
|
66
66
|
var CLS_HBOTTOM = 'e-horizontal-bottom';
|
|
67
67
|
var CLS_FILL = 'e-fill-mode';
|
|
68
68
|
var TABITEMPREFIX = 'tabitem_';
|
|
69
|
+
var CLS_REORDER_ACTIVE_ITEM = 'e-reorder-active-item';
|
|
69
70
|
/**
|
|
70
71
|
* Objects used for configuring the Tab selecting item action properties.
|
|
71
72
|
*/
|
|
@@ -180,6 +181,7 @@ var Tab = /** @class */ (function (_super) {
|
|
|
180
181
|
_this.hide = {};
|
|
181
182
|
_this.maxHeight = 0;
|
|
182
183
|
_this.title = 'Close';
|
|
184
|
+
_this.isInteracted = false;
|
|
183
185
|
_this.lastIndex = 0;
|
|
184
186
|
_this.isAdd = false;
|
|
185
187
|
_this.isIconAlone = false;
|
|
@@ -481,7 +483,7 @@ var Tab = /** @class */ (function (_super) {
|
|
|
481
483
|
};
|
|
482
484
|
Tab.prototype.parseObject = function (items, index) {
|
|
483
485
|
var _this = this;
|
|
484
|
-
var tbCount = selectAll('.' + CLS_TB_ITEM, this.element).length;
|
|
486
|
+
var tbCount = selectAll('.e-tab-header .' + CLS_TB_ITEM, this.element).length;
|
|
485
487
|
var tItems = [];
|
|
486
488
|
var txtWrapEle;
|
|
487
489
|
var spliceArray = [];
|
|
@@ -765,7 +767,7 @@ var Tab = /** @class */ (function (_super) {
|
|
|
765
767
|
}
|
|
766
768
|
else {
|
|
767
769
|
if (!isNOU(trgParent) && trgParent.classList.contains(CLS_ACTIVE) === false) {
|
|
768
|
-
this.
|
|
770
|
+
this.selectTab(trgIndex, null, true);
|
|
769
771
|
if (!isNOU(this.popEle)) {
|
|
770
772
|
this.popObj.hide(this.hide);
|
|
771
773
|
}
|
|
@@ -1038,9 +1040,20 @@ var Tab = /** @class */ (function (_super) {
|
|
|
1038
1040
|
Tab.prototype.setActiveBorder = function () {
|
|
1039
1041
|
var trgHdrEle = this.getTabHeader();
|
|
1040
1042
|
var trg = select('.' + CLS_TB_ITEM + '.' + CLS_ACTIVE, trgHdrEle);
|
|
1041
|
-
if (trg
|
|
1043
|
+
if (isNOU(trg)) {
|
|
1042
1044
|
return;
|
|
1043
1045
|
}
|
|
1046
|
+
if (!this.reorderActiveTab) {
|
|
1047
|
+
if (trg.classList.contains(CLS_TB_POPUP) && !this.bdrLine.classList.contains(CLS_HIDDEN)) {
|
|
1048
|
+
this.bdrLine.classList.add(CLS_HIDDEN);
|
|
1049
|
+
}
|
|
1050
|
+
if (trgHdrEle && !trgHdrEle.classList.contains(CLS_REORDER_ACTIVE_ITEM)) {
|
|
1051
|
+
trgHdrEle.classList.add(CLS_REORDER_ACTIVE_ITEM);
|
|
1052
|
+
}
|
|
1053
|
+
}
|
|
1054
|
+
else if (trgHdrEle) {
|
|
1055
|
+
trgHdrEle.classList.remove(CLS_REORDER_ACTIVE_ITEM);
|
|
1056
|
+
}
|
|
1044
1057
|
var root = closest(trg, '.' + CLS_TAB);
|
|
1045
1058
|
if (this.element !== root) {
|
|
1046
1059
|
return;
|
|
@@ -1074,12 +1087,13 @@ var Tab = /** @class */ (function (_super) {
|
|
|
1074
1087
|
setStyle(bar, { 'left': 'auto', 'right': 'auto' });
|
|
1075
1088
|
}
|
|
1076
1089
|
}
|
|
1077
|
-
if (!isNOU(this.bdrLine)) {
|
|
1090
|
+
if (!isNOU(this.bdrLine) && !trg.classList.contains(CLS_TB_POPUP)) {
|
|
1078
1091
|
this.bdrLine.classList.remove(CLS_HIDDEN);
|
|
1079
1092
|
}
|
|
1080
1093
|
};
|
|
1081
|
-
Tab.prototype.setActive = function (value, skipDataBind) {
|
|
1094
|
+
Tab.prototype.setActive = function (value, skipDataBind, isInteracted) {
|
|
1082
1095
|
if (skipDataBind === void 0) { skipDataBind = false; }
|
|
1096
|
+
if (isInteracted === void 0) { isInteracted = false; }
|
|
1083
1097
|
this.tbItem = selectAll('.' + CLS_TB_ITEM, this.getTabHeader());
|
|
1084
1098
|
var trg = this.tbItem[value];
|
|
1085
1099
|
if (value < 0 || isNaN(value) || this.tbItem.length === 0) {
|
|
@@ -1150,7 +1164,8 @@ var Tab = /** @class */ (function (_super) {
|
|
|
1150
1164
|
selectedItem: trg,
|
|
1151
1165
|
selectedIndex: value,
|
|
1152
1166
|
selectedContent: select('#' + CLS_CONTENT + this.tabId + '_' + this.selectingID, this.content),
|
|
1153
|
-
isSwiped: this.isSwipeed
|
|
1167
|
+
isSwiped: this.isSwipeed,
|
|
1168
|
+
isInteracted: isInteracted
|
|
1154
1169
|
};
|
|
1155
1170
|
this.trigger('selected', eventArg);
|
|
1156
1171
|
}
|
|
@@ -1242,7 +1257,7 @@ var Tab = /** @class */ (function (_super) {
|
|
|
1242
1257
|
else {
|
|
1243
1258
|
this.isPopup = false;
|
|
1244
1259
|
if (!isNOU(trgParent) && (trgIndex !== this.selectedItem || trgIndex !== this.prevIndex)) {
|
|
1245
|
-
this.
|
|
1260
|
+
this.selectTab(trgIndex, args.originalEvent, true);
|
|
1246
1261
|
}
|
|
1247
1262
|
}
|
|
1248
1263
|
};
|
|
@@ -1257,7 +1272,7 @@ var Tab = /** @class */ (function (_super) {
|
|
|
1257
1272
|
if (e.swipeDirection === 'Right' && this.selectedItem !== 0) {
|
|
1258
1273
|
for (var k = this.selectedItem - 1; k >= 0; k--) {
|
|
1259
1274
|
if (!this.tbItem[k].classList.contains(CLS_HIDDEN)) {
|
|
1260
|
-
this.
|
|
1275
|
+
this.selectTab(k, null, true);
|
|
1261
1276
|
break;
|
|
1262
1277
|
}
|
|
1263
1278
|
}
|
|
@@ -1265,7 +1280,7 @@ var Tab = /** @class */ (function (_super) {
|
|
|
1265
1280
|
else if (e.swipeDirection === 'Left' && (this.selectedItem !== selectAll('.' + CLS_TB_ITEM, this.element).length - 1)) {
|
|
1266
1281
|
for (var i = this.selectedItem + 1; i < this.tbItem.length; i++) {
|
|
1267
1282
|
if (!this.tbItem[i].classList.contains(CLS_HIDDEN)) {
|
|
1268
|
-
this.
|
|
1283
|
+
this.selectTab(i, null, true);
|
|
1269
1284
|
break;
|
|
1270
1285
|
}
|
|
1271
1286
|
}
|
|
@@ -1343,7 +1358,7 @@ var Tab = /** @class */ (function (_super) {
|
|
|
1343
1358
|
};
|
|
1344
1359
|
Tab.prototype.refreshActElePosition = function () {
|
|
1345
1360
|
var activeEle = select('.' + CLS_TB_ITEM + '.' + CLS_TB_POPUP + '.' + CLS_ACTIVE, this.element);
|
|
1346
|
-
if (!isNOU(activeEle)) {
|
|
1361
|
+
if (!isNOU(activeEle) && this.reorderActiveTab) {
|
|
1347
1362
|
this.select(this.getEleIndex(activeEle));
|
|
1348
1363
|
}
|
|
1349
1364
|
this.refreshActiveBorder();
|
|
@@ -1390,7 +1405,7 @@ var Tab = /** @class */ (function (_super) {
|
|
|
1390
1405
|
var hdr = this.element.querySelectorAll('.' + CLS_TB_ITEM)[index];
|
|
1391
1406
|
var itemIndex = void 0;
|
|
1392
1407
|
if (hdr && !isNOU(hdr.id) && hdr.id !== '') {
|
|
1393
|
-
var num = (hdr.id.
|
|
1408
|
+
var num = (hdr.id.lastIndexOf('_'));
|
|
1394
1409
|
itemIndex = parseInt(hdr.id.substring(num + 1), 10);
|
|
1395
1410
|
}
|
|
1396
1411
|
else {
|
|
@@ -1686,7 +1701,7 @@ var Tab = /** @class */ (function (_super) {
|
|
|
1686
1701
|
else {
|
|
1687
1702
|
_this.dragItem.querySelector('.' + CLS_WRAP).style.visibility = '';
|
|
1688
1703
|
removeClass([_this.tbItems.querySelector('.' + CLS_INDICATOR)], CLS_HIDDEN);
|
|
1689
|
-
_this.
|
|
1704
|
+
_this.selectTab(_this.droppedIndex, null, true);
|
|
1690
1705
|
}
|
|
1691
1706
|
}
|
|
1692
1707
|
});
|
|
@@ -1694,8 +1709,8 @@ var Tab = /** @class */ (function (_super) {
|
|
|
1694
1709
|
/**
|
|
1695
1710
|
* Enables or disables the specified Tab item. On passing value as `false`, the item will be disabled.
|
|
1696
1711
|
*
|
|
1697
|
-
* @param
|
|
1698
|
-
* @param
|
|
1712
|
+
* @param {number} index - Index value of target Tab item.
|
|
1713
|
+
* @param {boolean} value - Boolean value that determines whether the command should be enabled or disabled.
|
|
1699
1714
|
* By default, isEnable is true.
|
|
1700
1715
|
* @returns {void}.
|
|
1701
1716
|
*/
|
|
@@ -1724,8 +1739,8 @@ var Tab = /** @class */ (function (_super) {
|
|
|
1724
1739
|
/**
|
|
1725
1740
|
* Adds new items to the Tab that accepts an array as Tab items.
|
|
1726
1741
|
*
|
|
1727
|
-
* @param
|
|
1728
|
-
* @param
|
|
1742
|
+
* @param {TabItemModel[]} items - An array of item that is added to the Tab.
|
|
1743
|
+
* @param {number} index - Number value that determines where the items to be added. By default, index is 0.
|
|
1729
1744
|
* @returns {void}.
|
|
1730
1745
|
*/
|
|
1731
1746
|
Tab.prototype.addTab = function (items, index) {
|
|
@@ -1754,7 +1769,7 @@ var Tab = /** @class */ (function (_super) {
|
|
|
1754
1769
|
this.reRenderItems();
|
|
1755
1770
|
}
|
|
1756
1771
|
else {
|
|
1757
|
-
var itemsCount = selectAll('.' + CLS_TB_ITEM, this.element).length;
|
|
1772
|
+
var itemsCount = selectAll('.e-tab-header .' + CLS_TB_ITEM, this.element).length;
|
|
1758
1773
|
if (itemsCount !== 0) {
|
|
1759
1774
|
lastEleIndex = this.lastIndex + 1;
|
|
1760
1775
|
}
|
|
@@ -1810,7 +1825,7 @@ var Tab = /** @class */ (function (_super) {
|
|
|
1810
1825
|
/**
|
|
1811
1826
|
* Removes the items in the Tab from the specified index.
|
|
1812
1827
|
*
|
|
1813
|
-
* @param
|
|
1828
|
+
* @param {number} index - Index of target item that is going to be removed.
|
|
1814
1829
|
* @returns {void}.
|
|
1815
1830
|
*/
|
|
1816
1831
|
Tab.prototype.removeTab = function (index) {
|
|
@@ -1850,8 +1865,8 @@ var Tab = /** @class */ (function (_super) {
|
|
|
1850
1865
|
/**
|
|
1851
1866
|
* Shows or hides the Tab that is in the specified index.
|
|
1852
1867
|
*
|
|
1853
|
-
* @param
|
|
1854
|
-
* @param
|
|
1868
|
+
* @param {number} index - Index value of target item.
|
|
1869
|
+
* @param {boolean} value - Based on this Boolean value, item will be hide (false) or show (true). By default, value is true.
|
|
1855
1870
|
* @returns {void}.
|
|
1856
1871
|
*/
|
|
1857
1872
|
Tab.prototype.hideTab = function (index, value) {
|
|
@@ -1911,12 +1926,18 @@ var Tab = /** @class */ (function (_super) {
|
|
|
1911
1926
|
this.tbObj.refreshOverflow();
|
|
1912
1927
|
}
|
|
1913
1928
|
};
|
|
1929
|
+
Tab.prototype.selectTab = function (args, event, isInteracted) {
|
|
1930
|
+
if (event === void 0) { event = null; }
|
|
1931
|
+
if (isInteracted === void 0) { isInteracted = false; }
|
|
1932
|
+
this.isInteracted = isInteracted;
|
|
1933
|
+
this.select(args, event);
|
|
1934
|
+
};
|
|
1914
1935
|
/**
|
|
1915
1936
|
* Specifies the index or HTMLElement to select an item from the Tab.
|
|
1916
1937
|
*
|
|
1917
|
-
* @param
|
|
1938
|
+
* @param {number | HTMLElement} args - Index or DOM element is used for selecting an item from the Tab.
|
|
1918
1939
|
* @param {Event} event - An event which takes place in DOM.
|
|
1919
|
-
* @returns {void}
|
|
1940
|
+
* @returns {void}
|
|
1920
1941
|
*/
|
|
1921
1942
|
Tab.prototype.select = function (args, event) {
|
|
1922
1943
|
var _this = this;
|
|
@@ -1954,20 +1975,22 @@ var Tab = /** @class */ (function (_super) {
|
|
|
1954
1975
|
selectingContent: !isNOU(this.content) ?
|
|
1955
1976
|
select('#' + CLS_CONTENT + this.tabId + '_' + this.selectingID, this.content) : null,
|
|
1956
1977
|
isSwiped: this.isSwipeed,
|
|
1978
|
+
isInteracted: this.isInteracted,
|
|
1957
1979
|
cancel: false
|
|
1958
1980
|
};
|
|
1959
1981
|
if (!this.initRender) {
|
|
1960
1982
|
this.trigger('selecting', eventArg, function (selectArgs) {
|
|
1961
1983
|
if (!selectArgs.cancel) {
|
|
1962
|
-
_this.selectingContent(args);
|
|
1984
|
+
_this.selectingContent(args, _this.isInteracted);
|
|
1963
1985
|
}
|
|
1964
1986
|
});
|
|
1965
1987
|
}
|
|
1966
1988
|
else {
|
|
1967
|
-
this.selectingContent(args);
|
|
1989
|
+
this.selectingContent(args, this.isInteracted);
|
|
1968
1990
|
}
|
|
1991
|
+
this.isInteracted = false;
|
|
1969
1992
|
};
|
|
1970
|
-
Tab.prototype.selectingContent = function (args) {
|
|
1993
|
+
Tab.prototype.selectingContent = function (args, isInteracted) {
|
|
1971
1994
|
if (typeof args === 'number') {
|
|
1972
1995
|
if (!isNOU(this.tbItem[args]) && (this.tbItem[args].classList.contains(CLS_DISABLE) ||
|
|
1973
1996
|
this.tbItem[args].classList.contains(CLS_HIDDEN))) {
|
|
@@ -1983,8 +2006,8 @@ var Tab = /** @class */ (function (_super) {
|
|
|
1983
2006
|
}
|
|
1984
2007
|
if (this.tbItem.length > args && args >= 0 && !isNaN(args)) {
|
|
1985
2008
|
this.prevIndex = this.selectedItem;
|
|
1986
|
-
if (this.tbItem[args].classList.contains(CLS_TB_POPUP)) {
|
|
1987
|
-
this.setActive(this.popupHandler(this.tbItem[args]));
|
|
2009
|
+
if (this.tbItem[args].classList.contains(CLS_TB_POPUP) && this.reorderActiveTab) {
|
|
2010
|
+
this.setActive(this.popupHandler(this.tbItem[args]), null, isInteracted);
|
|
1988
2011
|
if ((!isNOU(this.items) && this.items.length > 0) && this.allowDragAndDrop) {
|
|
1989
2012
|
this.tbItem = selectAll('.' + CLS_TB_ITEMS + ' .' + CLS_TB_ITEM, this.hdrEle);
|
|
1990
2013
|
var item = this.items[args];
|
|
@@ -1993,15 +2016,15 @@ var Tab = /** @class */ (function (_super) {
|
|
|
1993
2016
|
}
|
|
1994
2017
|
}
|
|
1995
2018
|
else {
|
|
1996
|
-
this.setActive(args);
|
|
2019
|
+
this.setActive(args, null, isInteracted);
|
|
1997
2020
|
}
|
|
1998
2021
|
}
|
|
1999
2022
|
else {
|
|
2000
|
-
this.setActive(0);
|
|
2023
|
+
this.setActive(0, null, isInteracted);
|
|
2001
2024
|
}
|
|
2002
2025
|
}
|
|
2003
2026
|
else if (args instanceof (HTMLElement)) {
|
|
2004
|
-
this.setActive(this.getEleIndex(args));
|
|
2027
|
+
this.setActive(this.getEleIndex(args), null, isInteracted);
|
|
2005
2028
|
}
|
|
2006
2029
|
};
|
|
2007
2030
|
/**
|
|
@@ -2084,6 +2107,9 @@ var Tab = /** @class */ (function (_super) {
|
|
|
2084
2107
|
case 'showCloseButton':
|
|
2085
2108
|
this.setCloseButton(newProp.showCloseButton);
|
|
2086
2109
|
break;
|
|
2110
|
+
case 'reorderActiveTab':
|
|
2111
|
+
this.refreshActElePosition();
|
|
2112
|
+
break;
|
|
2087
2113
|
case 'selectedItem':
|
|
2088
2114
|
this.selectedItem = oldProp.selectedItem;
|
|
2089
2115
|
this.select(newProp.selectedItem);
|
|
@@ -2276,6 +2302,9 @@ var Tab = /** @class */ (function (_super) {
|
|
|
2276
2302
|
__decorate([
|
|
2277
2303
|
Property(false)
|
|
2278
2304
|
], Tab.prototype, "showCloseButton", void 0);
|
|
2305
|
+
__decorate([
|
|
2306
|
+
Property(true)
|
|
2307
|
+
], Tab.prototype, "reorderActiveTab", void 0);
|
|
2279
2308
|
__decorate([
|
|
2280
2309
|
Property()
|
|
2281
2310
|
], Tab.prototype, "scrollStep", void 0);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import { Component, EventHandler, Property, Event, EmitType, BaseEventArgs } from '@syncfusion/ej2-base';import { addClass, removeClass, isVisible, closest, attributes, detach, classList, KeyboardEvents } from '@syncfusion/ej2-base';import { selectAll, setStyleAttribute as setStyle, KeyboardEventArgs, select } from '@syncfusion/ej2-base';import { isNullOrUndefined as isNOU, getUniqueID, formatUnit, Collection, compile as templateCompiler } from '@syncfusion/ej2-base';import { INotifyPropertyChanged, NotifyPropertyChanges, ChildProperty, Browser, SanitizeHtmlHelper } from '@syncfusion/ej2-base';import { Popup } from '@syncfusion/ej2-popups';import { calculatePosition } from '@syncfusion/ej2-popups';import { Button, IconPosition } from '@syncfusion/ej2-buttons';import { HScroll } from '../common/h-scroll';import { VScroll } from '../common/v-scroll';
|
|
2
2
|
import {OverflowOption,ItemType,DisplayMode,ItemAlign,ClickEventArgs,OverflowMode,BeforeCreateArgs} from "./toolbar";
|
|
3
3
|
import {ComponentModel} from '@syncfusion/ej2-base';
|
|
4
4
|
|
|
@@ -160,7 +160,7 @@ export interface ItemModel {
|
|
|
160
160
|
/**
|
|
161
161
|
* Event triggers when `click` the toolbar item.
|
|
162
162
|
*
|
|
163
|
-
* @event
|
|
163
|
+
* @event click
|
|
164
164
|
*/
|
|
165
165
|
click?: EmitType<ClickEventArgs>;
|
|
166
166
|
|
|
@@ -241,30 +241,30 @@ export interface ToolbarModel extends ComponentModel{
|
|
|
241
241
|
allowKeyboard?: boolean;
|
|
242
242
|
|
|
243
243
|
/**
|
|
244
|
-
* The event
|
|
244
|
+
* The event will be fired on clicking the Toolbar elements.
|
|
245
245
|
*
|
|
246
|
-
* @event
|
|
246
|
+
* @event clicked
|
|
247
247
|
*/
|
|
248
248
|
clicked?: EmitType<ClickEventArgs>;
|
|
249
249
|
|
|
250
250
|
/**
|
|
251
251
|
* The event will be fired when the control is rendered.
|
|
252
252
|
*
|
|
253
|
-
* @event
|
|
253
|
+
* @event created
|
|
254
254
|
*/
|
|
255
255
|
created?: EmitType<Event>;
|
|
256
256
|
|
|
257
257
|
/**
|
|
258
258
|
* The event will be fired when the control gets destroyed.
|
|
259
259
|
*
|
|
260
|
-
* @event
|
|
260
|
+
* @event destroyed
|
|
261
261
|
*/
|
|
262
262
|
destroyed?: EmitType<Event>;
|
|
263
263
|
|
|
264
264
|
/**
|
|
265
265
|
* The event will be fired before the control is rendered on a page.
|
|
266
266
|
*
|
|
267
|
-
* @event
|
|
267
|
+
* @event beforeCreate
|
|
268
268
|
*/
|
|
269
269
|
beforeCreate?: EmitType<BeforeCreateArgs>;
|
|
270
270
|
|
package/src/toolbar/toolbar.d.ts
CHANGED
|
@@ -182,7 +182,7 @@ export declare class Item extends ChildProperty<Item> {
|
|
|
182
182
|
/**
|
|
183
183
|
* Event triggers when `click` the toolbar item.
|
|
184
184
|
*
|
|
185
|
-
* @event
|
|
185
|
+
* @event click
|
|
186
186
|
*/
|
|
187
187
|
click: EmitType<ClickEventArgs>;
|
|
188
188
|
}
|
|
@@ -280,27 +280,27 @@ export declare class Toolbar extends Component<HTMLElement> implements INotifyPr
|
|
|
280
280
|
*/
|
|
281
281
|
allowKeyboard: boolean;
|
|
282
282
|
/**
|
|
283
|
-
* The event
|
|
283
|
+
* The event will be fired on clicking the Toolbar elements.
|
|
284
284
|
*
|
|
285
|
-
* @event
|
|
285
|
+
* @event clicked
|
|
286
286
|
*/
|
|
287
287
|
clicked: EmitType<ClickEventArgs>;
|
|
288
288
|
/**
|
|
289
289
|
* The event will be fired when the control is rendered.
|
|
290
290
|
*
|
|
291
|
-
* @event
|
|
291
|
+
* @event created
|
|
292
292
|
*/
|
|
293
293
|
created: EmitType<Event>;
|
|
294
294
|
/**
|
|
295
295
|
* The event will be fired when the control gets destroyed.
|
|
296
296
|
*
|
|
297
|
-
* @event
|
|
297
|
+
* @event destroyed
|
|
298
298
|
*/
|
|
299
299
|
destroyed: EmitType<Event>;
|
|
300
300
|
/**
|
|
301
301
|
* The event will be fired before the control is rendered on a page.
|
|
302
302
|
*
|
|
303
|
-
* @event
|
|
303
|
+
* @event beforeCreate
|
|
304
304
|
*/
|
|
305
305
|
beforeCreate: EmitType<BeforeCreateArgs>;
|
|
306
306
|
/**
|