@progress/kendo-angular-layout 17.0.0-develop.8 → 17.0.0
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/avatar/avatar.component.d.ts +1 -1
- package/avatar/l10n/messages.d.ts +1 -1
- package/avatar/models/fill.d.ts +1 -1
- package/avatar/models/rounded.d.ts +1 -1
- package/avatar/models/shape.d.ts +2 -2
- package/avatar/models/size.d.ts +1 -1
- package/avatar/models/theme-color.d.ts +1 -1
- package/card/card-actions.component.d.ts +1 -1
- package/card/card.component.d.ts +1 -1
- package/card/directives/card-separator.directive.d.ts +1 -1
- package/card/models/actions-layout.d.ts +1 -1
- package/common/direction.d.ts +1 -1
- package/common/orientation.d.ts +1 -1
- package/drawer/drawer.component.d.ts +1 -1
- package/drawer/item.component.d.ts +1 -1
- package/drawer/list.component.d.ts +1 -1
- package/drawer/models/drawer-item-expand.interface.d.ts +1 -1
- package/drawer/models/mode.d.ts +1 -1
- package/drawer/models/position.d.ts +1 -1
- package/{esm2020 → esm2022}/avatar/avatar.component.mjs +61 -25
- package/{esm2020 → esm2022}/avatar/l10n/custom-messages.component.mjs +9 -8
- package/{esm2020 → esm2022}/avatar/l10n/localized-messages.directive.mjs +9 -8
- package/{esm2020 → esm2022}/avatar/l10n/messages.mjs +7 -3
- package/{esm2020 → esm2022}/avatar.module.mjs +4 -4
- package/{esm2020 → esm2022}/card/card-actions.component.mjs +37 -31
- package/{esm2020 → esm2022}/card/card-body.component.mjs +5 -7
- package/{esm2020 → esm2022}/card/card-footer.component.mjs +5 -7
- package/{esm2020 → esm2022}/card/card-header.component.mjs +5 -7
- package/{esm2020 → esm2022}/card/card.component.mjs +40 -34
- package/{esm2020 → esm2022}/card/directives/card-media.directive.mjs +4 -6
- package/{esm2020 → esm2022}/card/directives/card-separator.directive.mjs +16 -14
- package/{esm2020 → esm2022}/card/directives/card-subtitle.directive.mjs +4 -6
- package/{esm2020 → esm2022}/card/directives/card-title.directive.mjs +4 -6
- package/{esm2020 → esm2022}/card/models/card-action.mjs +12 -0
- package/{esm2020 → esm2022}/card.module.mjs +4 -4
- package/{esm2020 → esm2022}/common/preventable-event.mjs +7 -7
- package/{esm2020 → esm2022}/drawer/drawer-container.component.mjs +28 -18
- package/{esm2020 → esm2022}/drawer/drawer-content.component.mjs +6 -7
- package/{esm2020 → esm2022}/drawer/drawer.component.mjs +132 -106
- package/{esm2020 → esm2022}/drawer/drawer.service.mjs +10 -10
- package/{esm2020 → esm2022}/drawer/events/drawer-list-select.event.mjs +12 -0
- package/{esm2020 → esm2022}/drawer/events/select-event.mjs +16 -0
- package/{esm2020 → esm2022}/drawer/item.component.mjs +22 -11
- package/{esm2020 → esm2022}/drawer/list.component.mjs +14 -6
- package/{esm2020 → esm2022}/drawer/template-directives/drawer-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/drawer/template-directives/footer-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/drawer/template-directives/header-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/drawer/template-directives/item-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/drawer.module.mjs +4 -4
- package/{esm2020 → esm2022}/expansionpanel/events/action-event.mjs +4 -0
- package/{esm2020 → esm2022}/expansionpanel/expansionpanel-title.directive.mjs +4 -3
- package/{esm2020 → esm2022}/expansionpanel/expansionpanel.component.mjs +103 -81
- package/{esm2020 → esm2022}/expansionpanel.module.mjs +4 -4
- package/{esm2020 → esm2022}/gridlayout.module.mjs +4 -4
- package/{esm2020 → esm2022}/layout.module.mjs +4 -4
- package/{esm2020 → esm2022}/layouts/grid-layout.component.mjs +57 -26
- package/{esm2020 → esm2022}/layouts/gridlayout-item.component.mjs +26 -4
- package/{esm2020 → esm2022}/layouts/stack-layout.component.mjs +40 -35
- package/{esm2020 → esm2022}/package-metadata.mjs +2 -2
- package/{esm2020 → esm2022}/panelbar/events/collapse-event.mjs +4 -0
- package/{esm2020 → esm2022}/panelbar/events/expand-event.mjs +4 -0
- package/{esm2020 → esm2022}/panelbar/events/item-click-event.mjs +8 -0
- package/{esm2020 → esm2022}/panelbar/events/select-event.mjs +4 -0
- package/{esm2020 → esm2022}/panelbar/events/state-change-event.mjs +4 -0
- package/{esm2020 → esm2022}/panelbar/panelbar-content.directive.mjs +4 -3
- package/{esm2020 → esm2022}/panelbar/panelbar-item-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/panelbar/panelbar-item-title.directive.mjs +4 -3
- package/{esm2020 → esm2022}/panelbar/panelbar-item.component.mjs +101 -66
- package/{esm2020 → esm2022}/panelbar/panelbar.component.mjs +109 -98
- package/{esm2020 → esm2022}/panelbar/panelbar.service.mjs +23 -13
- package/{esm2020 → esm2022}/panelbar.module.mjs +4 -4
- package/{esm2020 → esm2022}/splitter/splitter-bar.component.mjs +68 -28
- package/esm2022/splitter/splitter-pane.component.mjs +267 -0
- package/{esm2020 → esm2022}/splitter/splitter.component.mjs +98 -40
- package/{esm2020 → esm2022}/splitter/splitter.service.mjs +69 -28
- package/{esm2020 → esm2022}/splitter.module.mjs +4 -4
- package/{esm2020 → esm2022}/stacklayout.module.mjs +4 -4
- package/{esm2020 → esm2022}/stepper/events/activate-event.mjs +16 -0
- package/{esm2020 → esm2022}/stepper/list.component.mjs +23 -5
- package/{esm2020 → esm2022}/stepper/localization/custom-messages.component.mjs +9 -8
- package/{esm2020 → esm2022}/stepper/localization/localized-messages.directive.mjs +9 -8
- package/{esm2020 → esm2022}/stepper/localization/messages.mjs +7 -3
- package/{esm2020 → esm2022}/stepper/step.component.mjs +25 -8
- package/{esm2020 → esm2022}/stepper/stepper.component.mjs +111 -70
- package/{esm2020 → esm2022}/stepper/stepper.service.mjs +30 -9
- package/{esm2020 → esm2022}/stepper/template-directives/indicator-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/stepper/template-directives/label-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/stepper/template-directives/step-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/stepper.module.mjs +4 -4
- package/{esm2020 → esm2022}/tabstrip/directives/tab-content.directive.mjs +4 -3
- package/{esm2020 → esm2022}/tabstrip/directives/tab-title.directive.mjs +4 -3
- package/{esm2020 → esm2022}/tabstrip/directives/tab.directive.mjs +4 -3
- package/{esm2020 → esm2022}/tabstrip/events/select-event.mjs +2 -0
- package/{esm2020 → esm2022}/tabstrip/events/tabclose-event.mjs +2 -0
- package/{esm2020 → esm2022}/tabstrip/events/tabscroll-event.mjs +4 -0
- package/{esm2020 → esm2022}/tabstrip/localization/custom-messages.component.mjs +9 -8
- package/{esm2020 → esm2022}/tabstrip/localization/localized-messages.directive.mjs +9 -8
- package/{esm2020 → esm2022}/tabstrip/localization/messages.mjs +15 -3
- package/esm2022/tabstrip/models/tabstrip-tab.component.mjs +117 -0
- package/{esm2020 → esm2022}/tabstrip/rendering/tab.component.mjs +16 -9
- package/{esm2020 → esm2022}/tabstrip/scrollable-button.component.mjs +33 -27
- package/{esm2020 → esm2022}/tabstrip/tabstrip-scroll.service.mjs +11 -9
- package/{esm2020 → esm2022}/tabstrip/tabstrip.component.mjs +145 -111
- package/{esm2020 → esm2022}/tabstrip/tabstrip.service.mjs +6 -3
- package/{esm2020 → esm2022}/tabstrip.module.mjs +4 -4
- package/{esm2020 → esm2022}/tilelayout/dragging-service.mjs +39 -24
- package/{esm2020 → esm2022}/tilelayout/keyboard-navigation.service.mjs +9 -4
- package/{esm2020 → esm2022}/tilelayout/reorder-event.mjs +8 -0
- package/{esm2020 → esm2022}/tilelayout/resize-event.mjs +6 -0
- package/{esm2020 → esm2022}/tilelayout/tilelayout-item-body.component.mjs +6 -8
- package/esm2022/tilelayout/tilelayout-item-header.component.mjs +33 -0
- package/{esm2020 → esm2022}/tilelayout/tilelayout-item.component.mjs +85 -58
- package/{esm2020 → esm2022}/tilelayout/tilelayout-resize-handle.directive.mjs +7 -3
- package/{esm2020 → esm2022}/tilelayout/tilelayout.component.mjs +103 -93
- package/{esm2020 → esm2022}/tilelayout.module.mjs +4 -4
- package/{esm2020 → esm2022}/timeline/localization/custom-messages.component.mjs +9 -8
- package/{esm2020 → esm2022}/timeline/localization/localized-messages.directive.mjs +9 -8
- package/{esm2020 → esm2022}/timeline/localization/messages.mjs +11 -3
- package/{esm2020 → esm2022}/timeline/templates/timeline-card-actions.directive.mjs +4 -3
- package/{esm2020 → esm2022}/timeline/templates/timeline-card-body.directive.mjs +4 -3
- package/{esm2020 → esm2022}/timeline/templates/timeline-card-header.directive.mjs +4 -3
- package/{esm2020 → esm2022}/timeline/timeline-card.component.mjs +48 -33
- package/{esm2020 → esm2022}/timeline/timeline-horizontal.component.mjs +85 -55
- package/{esm2020 → esm2022}/timeline/timeline-vertical.component.mjs +20 -6
- package/{esm2020 → esm2022}/timeline/timeline.component.mjs +108 -68
- package/{esm2020 → esm2022}/timeline/timeline.service.mjs +4 -3
- package/{esm2020 → esm2022}/timeline.module.mjs +4 -4
- package/expansionpanel/events/action-event.d.ts +1 -1
- package/expansionpanel/expansionpanel.component.d.ts +1 -1
- package/{fesm2020 → fesm2022}/progress-kendo-angular-layout.mjs +2672 -1777
- package/layouts/grid-layout.component.d.ts +1 -1
- package/layouts/gridlayout-item.component.d.ts +1 -1
- package/layouts/models/layout-horizontal-align.d.ts +1 -1
- package/layouts/models/layout-vertical-align.d.ts +1 -1
- package/layouts/stack-layout.component.d.ts +1 -1
- package/package.json +16 -22
- package/panelbar/panelbar-item.component.d.ts +1 -1
- package/panelbar/panelbar.component.d.ts +1 -1
- package/schematics/ngAdd/index.js +1 -1
- package/splitter/splitter-bar.component.d.ts +13 -1
- package/splitter/splitter-pane.component.d.ts +26 -6
- package/splitter/splitter.component.d.ts +12 -4
- package/splitter/splitter.service.d.ts +7 -2
- package/stepper/list.component.d.ts +1 -1
- package/stepper/localization/messages.d.ts +1 -1
- package/stepper/models/orientation.d.ts +1 -1
- package/stepper/models/step-predicate.d.ts +1 -1
- package/stepper/models/step-type.d.ts +1 -1
- package/stepper/step.component.d.ts +1 -1
- package/stepper/stepper.component.d.ts +1 -1
- package/tabstrip/localization/messages.d.ts +1 -1
- package/tabstrip/models/button-state-change.d.ts +1 -1
- package/tabstrip/models/scroll-button-type.d.ts +1 -1
- package/tabstrip/models/scroll-buttons-visibility.d.ts +1 -1
- package/tabstrip/models/tab-alignment.d.ts +1 -1
- package/tabstrip/models/tab-position.d.ts +1 -1
- package/tabstrip/models/tabstrip-tab.component.d.ts +1 -1
- package/tabstrip/rendering/tab.component.d.ts +1 -1
- package/tabstrip/scrollable-button.component.d.ts +1 -1
- package/tabstrip/tabstrip.component.d.ts +1 -1
- package/tilelayout/models/flowmode.type.d.ts +1 -1
- package/tilelayout/tilelayout-item-header.component.d.ts +1 -9
- package/tilelayout/tilelayout-item.component.d.ts +1 -1
- package/tilelayout/tilelayout-resize-handle.directive.d.ts +1 -1
- package/tilelayout/tilelayout.component.d.ts +1 -1
- package/timeline/events/navigation-direction.d.ts +1 -1
- package/timeline/localization/messages.d.ts +1 -1
- package/timeline/models/anchor-target.d.ts +1 -1
- package/timeline/timeline-card.component.d.ts +1 -1
- package/timeline/timeline-horizontal.component.d.ts +2 -2
- package/timeline/timeline-vertical.component.d.ts +1 -1
- package/timeline/timeline.component.d.ts +1 -1
- package/esm2020/splitter/splitter-pane.component.mjs +0 -222
- package/esm2020/tabstrip/models/tabstrip-tab.component.mjs +0 -78
- package/esm2020/tilelayout/tilelayout-item-header.component.mjs +0 -53
- package/fesm2015/progress-kendo-angular-layout.mjs +0 -12385
- /package/{esm2020 → esm2022}/avatar/models/fill.mjs +0 -0
- /package/{esm2020 → esm2022}/avatar/models/models.mjs +0 -0
- /package/{esm2020 → esm2022}/avatar/models/rounded.mjs +0 -0
- /package/{esm2020 → esm2022}/avatar/models/shape.mjs +0 -0
- /package/{esm2020 → esm2022}/avatar/models/size.mjs +0 -0
- /package/{esm2020 → esm2022}/avatar/models/theme-color.mjs +0 -0
- /package/{esm2020 → esm2022}/card/models/actions-layout.mjs +0 -0
- /package/{esm2020 → esm2022}/common/direction.mjs +0 -0
- /package/{esm2020 → esm2022}/common/dom-queries.mjs +0 -0
- /package/{esm2020 → esm2022}/common/orientation.mjs +0 -0
- /package/{esm2020 → esm2022}/common/styling-classes.mjs +0 -0
- /package/{esm2020 → esm2022}/common/util.mjs +0 -0
- /package/{esm2020 → esm2022}/directives.mjs +0 -0
- /package/{esm2020 → esm2022}/drawer/animations.mjs +0 -0
- /package/{esm2020 → esm2022}/drawer/models/constants.mjs +0 -0
- /package/{esm2020 → esm2022}/drawer/models/drawer-animation.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/drawer/models/drawer-item-expand.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/drawer/models/drawer-item.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/drawer/models/drawer-view-item.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/drawer/models/mode.mjs +0 -0
- /package/{esm2020 → esm2022}/drawer/models/position.mjs +0 -0
- /package/{esm2020 → esm2022}/drawer/template-directives.mjs +0 -0
- /package/{esm2020 → esm2022}/drawer/types.mjs +0 -0
- /package/{esm2020 → esm2022}/drawer/util.mjs +0 -0
- /package/{esm2020 → esm2022}/expansionpanel/animations.mjs +0 -0
- /package/{esm2020 → esm2022}/index.mjs +0 -0
- /package/{esm2020 → esm2022}/layouts/models/gridlayout-gap-settings.mjs +0 -0
- /package/{esm2020 → esm2022}/layouts/models/gridlayout-row-col-size.mjs +0 -0
- /package/{esm2020 → esm2022}/layouts/models/layout-align-settings.mjs +0 -0
- /package/{esm2020 → esm2022}/layouts/models/layout-horizontal-align.mjs +0 -0
- /package/{esm2020 → esm2022}/layouts/models/layout-vertical-align.mjs +0 -0
- /package/{esm2020 → esm2022}/layouts/models.mjs +0 -0
- /package/{esm2020 → esm2022}/layouts/util.mjs +0 -0
- /package/{esm2020 → esm2022}/panelbar/events.mjs +0 -0
- /package/{esm2020 → esm2022}/panelbar/panelbar-expand-mode.mjs +0 -0
- /package/{esm2020 → esm2022}/panelbar/panelbar-item-model.mjs +0 -0
- /package/{esm2020 → esm2022}/progress-kendo-angular-layout.mjs +0 -0
- /package/{esm2020 → esm2022}/splitter/util.mjs +0 -0
- /package/{esm2020 → esm2022}/stepper/models/constants.mjs +0 -0
- /package/{esm2020 → esm2022}/stepper/models/orientation.mjs +0 -0
- /package/{esm2020 → esm2022}/stepper/models/step-predicate.mjs +0 -0
- /package/{esm2020 → esm2022}/stepper/models/step-type.mjs +0 -0
- /package/{esm2020 → esm2022}/stepper/models/stepper-step.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/stepper/template-directives.mjs +0 -0
- /package/{esm2020 → esm2022}/stepper/types.mjs +0 -0
- /package/{esm2020 → esm2022}/tabstrip/constants.mjs +0 -0
- /package/{esm2020 → esm2022}/tabstrip/events.mjs +0 -0
- /package/{esm2020 → esm2022}/tabstrip/models/button-state-change.mjs +0 -0
- /package/{esm2020 → esm2022}/tabstrip/models/scroll-button-type.mjs +0 -0
- /package/{esm2020 → esm2022}/tabstrip/models/scroll-buttons-visibility.mjs +0 -0
- /package/{esm2020 → esm2022}/tabstrip/models/scrollable-settings.mjs +0 -0
- /package/{esm2020 → esm2022}/tabstrip/models/tab-alignment.mjs +0 -0
- /package/{esm2020 → esm2022}/tabstrip/models/tab-position.mjs +0 -0
- /package/{esm2020 → esm2022}/tabstrip/util.mjs +0 -0
- /package/{esm2020 → esm2022}/tilelayout/constants.mjs +0 -0
- /package/{esm2020 → esm2022}/tilelayout/models/dragging-config.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/tilelayout/models/flowmode.type.mjs +0 -0
- /package/{esm2020 → esm2022}/tilelayout/models/gap.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/tilelayout/models/navigation.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/tilelayout/util.mjs +0 -0
- /package/{esm2020 → esm2022}/timeline/events/navigation-direction.mjs +0 -0
- /package/{esm2020 → esm2022}/timeline/models/anchor-target.mjs +0 -0
- /package/{esm2020 → esm2022}/timeline/models/default-model-fields.mjs +0 -0
- /package/{esm2020 → esm2022}/timeline/models/model-fields.mjs +0 -0
- /package/{esm2020 → esm2022}/timeline/models/timeline-event.mjs +0 -0
- /package/{esm2020 → esm2022}/timeline/util.mjs +0 -0
|
@@ -24,93 +24,31 @@ import * as i2 from "@progress/kendo-angular-l10n";
|
|
|
24
24
|
*/
|
|
25
25
|
// TODO: add styles as input prop
|
|
26
26
|
export class PanelBarComponent {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
this.height = '400px';
|
|
53
|
-
/**
|
|
54
|
-
* Fires each time the user interacts with a PanelBar item
|
|
55
|
-
* ([see example]({% slug routing_panelbar %}#toc-getting-the-selected-item)).
|
|
56
|
-
* The event data contains a collection of all items that are modified.
|
|
57
|
-
*/
|
|
58
|
-
this.stateChange = new EventEmitter();
|
|
59
|
-
/**
|
|
60
|
-
* Fires when an item is about to be selected.
|
|
61
|
-
* ([see example]({% slug events_panelbar %}))
|
|
62
|
-
* This event is preventable. If you cancel it, the item will not be selected.
|
|
63
|
-
*/
|
|
64
|
-
this.select = new EventEmitter();
|
|
65
|
-
/**
|
|
66
|
-
* Fires when an item is about to be expanded.
|
|
67
|
-
* ([see example]({% slug events_panelbar %}))
|
|
68
|
-
* This event is preventable. If you cancel it, the item will remain collapsed.
|
|
69
|
-
*/
|
|
70
|
-
this.expand = new EventEmitter();
|
|
71
|
-
/**
|
|
72
|
-
* Fires when an item is about to be collapsed.
|
|
73
|
-
* ([see example]({% slug events_panelbar %}))
|
|
74
|
-
* This event is preventable. If you cancel it, the item will remain expanded.
|
|
75
|
-
*/
|
|
76
|
-
this.collapse = new EventEmitter();
|
|
77
|
-
/**
|
|
78
|
-
* Fires when the user clicks an item ([see example]({% slug events_panelbar %})).
|
|
79
|
-
*/
|
|
80
|
-
this.itemClick = new EventEmitter();
|
|
81
|
-
this.hostClasses = true;
|
|
82
|
-
this.tabIndex = 0;
|
|
83
|
-
this.role = 'tree';
|
|
84
|
-
this.activeDescendant = '';
|
|
85
|
-
/**
|
|
86
|
-
* @hidden
|
|
87
|
-
*/
|
|
88
|
-
this.showLicenseWatermark = false;
|
|
89
|
-
this.isViewInit = true;
|
|
90
|
-
this.focused = false;
|
|
91
|
-
this._keepItemContent = false;
|
|
92
|
-
this.subs = new Subscription();
|
|
93
|
-
this.updateChildrenHeight = () => {
|
|
94
|
-
let childrenHeight = 0;
|
|
95
|
-
const panelbarHeight = this.elementRef.nativeElement.offsetHeight;
|
|
96
|
-
const contentOverflow = this.expandMode === PanelBarExpandMode.Full ? 'auto' : 'visible';
|
|
97
|
-
this.childrenItems.forEach(item => {
|
|
98
|
-
childrenHeight += item.headerHeight();
|
|
99
|
-
});
|
|
100
|
-
this.childrenItems.forEach(item => {
|
|
101
|
-
item.contentHeight = PanelBarExpandMode.Full === this.expandMode ? (panelbarHeight - childrenHeight) + 'px' : 'auto';
|
|
102
|
-
item.contentOverflow = contentOverflow;
|
|
103
|
-
});
|
|
104
|
-
};
|
|
105
|
-
const isValid = validatePackage(packageMetadata);
|
|
106
|
-
this.showLicenseWatermark = shouldShowValidationUI(isValid);
|
|
107
|
-
/* eslint-disable-line*/
|
|
108
|
-
this.keyBindings = this.computedKeys;
|
|
109
|
-
this.elementRef = elementRef;
|
|
110
|
-
this.eventService = eventService;
|
|
111
|
-
this.subs.add(this.eventService.children$.subscribe(event => this.onItemAction(event)));
|
|
112
|
-
this.subs.add(this.eventService.itemClick.subscribe(ev => this.itemClick.emit(ev)));
|
|
113
|
-
}
|
|
27
|
+
localization;
|
|
28
|
+
/**
|
|
29
|
+
* Sets the expand mode of the PanelBar through the `PanelBarExpandMode` enum ([see example]({% slug expandmodes_panelbar %})).
|
|
30
|
+
*
|
|
31
|
+
* The available modes are:
|
|
32
|
+
* - `"single"`—Expands only one item at a time. Expanding an item collapses the item that was previously expanded.
|
|
33
|
+
* - `"multiple"`—The default mode of the PanelBar.
|
|
34
|
+
* Expands more than one item at a time. Items can also be toggled.
|
|
35
|
+
* - `"full"`—Expands only one item at a time.
|
|
36
|
+
* The expanded area occupies the entire height of the PanelBar. Requires you to set the `height` property.
|
|
37
|
+
*/
|
|
38
|
+
expandMode = PanelBarExpandMode.Default;
|
|
39
|
+
/**
|
|
40
|
+
* Allows the PanelBar to modify the selected state of the items.
|
|
41
|
+
*/
|
|
42
|
+
selectable = true;
|
|
43
|
+
/**
|
|
44
|
+
* Sets the animate state of the PanelBar ([see example]({% slug animations_panelbar %})).
|
|
45
|
+
*/
|
|
46
|
+
animate = true;
|
|
47
|
+
/**
|
|
48
|
+
* Sets the height of the component when the `"full"` expand mode is used.
|
|
49
|
+
* This option is ignored in the `"multiple"` and `"single"` expand modes.
|
|
50
|
+
*/
|
|
51
|
+
height = '400px';
|
|
114
52
|
/**
|
|
115
53
|
* When set to `true`, the PanelBar renders the content of all items and they are persisted in the DOM
|
|
116
54
|
* ([see example]({% slug templates_panelbar %}#toc-collections)).
|
|
@@ -135,6 +73,38 @@ export class PanelBarComponent {
|
|
|
135
73
|
get items() {
|
|
136
74
|
return this._items;
|
|
137
75
|
}
|
|
76
|
+
/**
|
|
77
|
+
* Fires each time the user interacts with a PanelBar item
|
|
78
|
+
* ([see example]({% slug routing_panelbar %}#toc-getting-the-selected-item)).
|
|
79
|
+
* The event data contains a collection of all items that are modified.
|
|
80
|
+
*/
|
|
81
|
+
stateChange = new EventEmitter();
|
|
82
|
+
/**
|
|
83
|
+
* Fires when an item is about to be selected.
|
|
84
|
+
* ([see example]({% slug events_panelbar %}))
|
|
85
|
+
* This event is preventable. If you cancel it, the item will not be selected.
|
|
86
|
+
*/
|
|
87
|
+
select = new EventEmitter();
|
|
88
|
+
/**
|
|
89
|
+
* Fires when an item is about to be expanded.
|
|
90
|
+
* ([see example]({% slug events_panelbar %}))
|
|
91
|
+
* This event is preventable. If you cancel it, the item will remain collapsed.
|
|
92
|
+
*/
|
|
93
|
+
expand = new EventEmitter();
|
|
94
|
+
/**
|
|
95
|
+
* Fires when an item is about to be collapsed.
|
|
96
|
+
* ([see example]({% slug events_panelbar %}))
|
|
97
|
+
* This event is preventable. If you cancel it, the item will remain expanded.
|
|
98
|
+
*/
|
|
99
|
+
collapse = new EventEmitter();
|
|
100
|
+
/**
|
|
101
|
+
* Fires when the user clicks an item ([see example]({% slug events_panelbar %})).
|
|
102
|
+
*/
|
|
103
|
+
itemClick = new EventEmitter();
|
|
104
|
+
hostClasses = true;
|
|
105
|
+
tabIndex = 0;
|
|
106
|
+
role = 'tree';
|
|
107
|
+
activeDescendant = '';
|
|
138
108
|
get hostHeight() {
|
|
139
109
|
return this.expandMode === PanelBarExpandMode.Full ? this.height : 'auto';
|
|
140
110
|
}
|
|
@@ -144,6 +114,35 @@ export class PanelBarComponent {
|
|
|
144
114
|
get dir() {
|
|
145
115
|
return this.localization.rtl ? 'rtl' : 'ltr';
|
|
146
116
|
}
|
|
117
|
+
template;
|
|
118
|
+
contentItems;
|
|
119
|
+
contentChildItems;
|
|
120
|
+
viewChildItems;
|
|
121
|
+
/**
|
|
122
|
+
* @hidden
|
|
123
|
+
*/
|
|
124
|
+
showLicenseWatermark = false;
|
|
125
|
+
allItems;
|
|
126
|
+
childrenItems;
|
|
127
|
+
isViewInit = true;
|
|
128
|
+
focused = false;
|
|
129
|
+
_items;
|
|
130
|
+
_keepItemContent = false;
|
|
131
|
+
elementRef;
|
|
132
|
+
eventService;
|
|
133
|
+
keyBindings;
|
|
134
|
+
subs = new Subscription();
|
|
135
|
+
constructor(elementRef, eventService, localization) {
|
|
136
|
+
this.localization = localization;
|
|
137
|
+
const isValid = validatePackage(packageMetadata);
|
|
138
|
+
this.showLicenseWatermark = shouldShowValidationUI(isValid);
|
|
139
|
+
/* eslint-disable-line*/
|
|
140
|
+
this.keyBindings = this.computedKeys;
|
|
141
|
+
this.elementRef = elementRef;
|
|
142
|
+
this.eventService = eventService;
|
|
143
|
+
this.subs.add(this.eventService.children$.subscribe(event => this.onItemAction(event)));
|
|
144
|
+
this.subs.add(this.eventService.itemClick.subscribe(ev => this.itemClick.emit(ev)));
|
|
145
|
+
}
|
|
147
146
|
/**
|
|
148
147
|
* @hidden
|
|
149
148
|
*/
|
|
@@ -287,6 +286,18 @@ export class PanelBarComponent {
|
|
|
287
286
|
}
|
|
288
287
|
}
|
|
289
288
|
}
|
|
289
|
+
updateChildrenHeight = () => {
|
|
290
|
+
let childrenHeight = 0;
|
|
291
|
+
const panelbarHeight = this.elementRef.nativeElement.offsetHeight;
|
|
292
|
+
const contentOverflow = this.expandMode === PanelBarExpandMode.Full ? 'auto' : 'visible';
|
|
293
|
+
this.childrenItems.forEach(item => {
|
|
294
|
+
childrenHeight += item.headerHeight();
|
|
295
|
+
});
|
|
296
|
+
this.childrenItems.forEach(item => {
|
|
297
|
+
item.contentHeight = PanelBarExpandMode.Full === this.expandMode ? (panelbarHeight - childrenHeight) + 'px' : 'auto';
|
|
298
|
+
item.contentOverflow = contentOverflow;
|
|
299
|
+
});
|
|
300
|
+
};
|
|
290
301
|
onItemAction(item) {
|
|
291
302
|
if (!item) {
|
|
292
303
|
return;
|
|
@@ -489,16 +500,15 @@ export class PanelBarComponent {
|
|
|
489
500
|
});
|
|
490
501
|
return flattedItems;
|
|
491
502
|
}
|
|
492
|
-
}
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
}
|
|
501
|
-
], queries: [{ propertyName: "template", first: true, predicate: PanelBarItemTemplateDirective, descendants: true }, { propertyName: "contentItems", predicate: PanelBarItemComponent, descendants: true }, { propertyName: "contentChildItems", predicate: PanelBarItemComponent }], viewQueries: [{ propertyName: "viewChildItems", predicate: PanelBarItemComponent, descendants: true }], exportAs: ["kendoPanelbar"], usesOnChanges: true, ngImport: i0, template: `
|
|
503
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PanelBarComponent, deps: [{ token: i0.ElementRef }, { token: i1.PanelBarService }, { token: i2.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
504
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: PanelBarComponent, isStandalone: true, selector: "kendo-panelbar", inputs: { expandMode: "expandMode", selectable: "selectable", animate: "animate", height: "height", keepItemContent: "keepItemContent", items: "items" }, outputs: { stateChange: "stateChange", select: "select", expand: "expand", collapse: "collapse", itemClick: "itemClick" }, host: { listeners: { "click": "onComponentClick($event)", "focus": "onComponentFocus()", "blur": "onComponentBlur()", "keydown": "onComponentKeyDown($event)" }, properties: { "class.k-panelbar": "this.hostClasses", "attr.tabIndex": "this.tabIndex", "attr.role": "this.role", "attr.aria-activedescendant": "this.activeDescendant", "style.height": "this.hostHeight", "style.overflow": "this.overflow", "attr.dir": "this.dir" } }, providers: [
|
|
505
|
+
PanelBarService,
|
|
506
|
+
LocalizationService,
|
|
507
|
+
{
|
|
508
|
+
provide: L10N_PREFIX,
|
|
509
|
+
useValue: 'kendo.panelbar'
|
|
510
|
+
}
|
|
511
|
+
], queries: [{ propertyName: "template", first: true, predicate: PanelBarItemTemplateDirective, descendants: true }, { propertyName: "contentItems", predicate: PanelBarItemComponent, descendants: true }, { propertyName: "contentChildItems", predicate: PanelBarItemComponent }], viewQueries: [{ propertyName: "viewChildItems", predicate: PanelBarItemComponent, descendants: true }], exportAs: ["kendoPanelbar"], usesOnChanges: true, ngImport: i0, template: `
|
|
502
512
|
<ng-content *ngIf="contentChildItems && !items" select="kendo-panelbar-item"></ng-content>
|
|
503
513
|
<ng-template [ngIf]="items?.length">
|
|
504
514
|
<ng-container *ngFor="let item of items">
|
|
@@ -522,7 +532,8 @@ PanelBarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", vers
|
|
|
522
532
|
|
|
523
533
|
<div kendoWatermarkOverlay *ngIf="showLicenseWatermark"></div>
|
|
524
534
|
`, isInline: true, dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: PanelBarItemComponent, selector: "kendo-panelbar-item", inputs: ["title", "id", "icon", "iconClass", "svgIcon", "imageUrl", "disabled", "expanded", "selected", "content", "items", "template"], exportAs: ["kendoPanelbarItem"] }, { kind: "component", type: WatermarkOverlayComponent, selector: "div[kendoWatermarkOverlay]" }] });
|
|
525
|
-
|
|
535
|
+
}
|
|
536
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PanelBarComponent, decorators: [{
|
|
526
537
|
type: Component,
|
|
527
538
|
args: [{
|
|
528
539
|
exportAs: 'kendoPanelbar',
|
|
@@ -13,16 +13,16 @@ let nextPanelbarId = 0;
|
|
|
13
13
|
* @hidden
|
|
14
14
|
*/
|
|
15
15
|
export class PanelBarService {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
16
|
+
children$;
|
|
17
|
+
keepContent$;
|
|
18
|
+
parent$;
|
|
19
|
+
pbId;
|
|
20
|
+
animate;
|
|
21
|
+
expandMode;
|
|
22
|
+
itemClick;
|
|
23
|
+
childSource;
|
|
24
|
+
keepContentSource;
|
|
25
|
+
parentSource;
|
|
26
26
|
onKeepContent(keepContent) {
|
|
27
27
|
this.keepContentSource.next(keepContent);
|
|
28
28
|
}
|
|
@@ -35,9 +35,19 @@ export class PanelBarService {
|
|
|
35
35
|
onBlur() {
|
|
36
36
|
this.parentSource.next(false);
|
|
37
37
|
}
|
|
38
|
+
constructor() {
|
|
39
|
+
this.parentSource = new Subject();
|
|
40
|
+
this.keepContentSource = new BehaviorSubject(false);
|
|
41
|
+
this.childSource = new Subject();
|
|
42
|
+
this.itemClick = new Subject();
|
|
43
|
+
this.parent$ = this.parentSource.asObservable();
|
|
44
|
+
this.children$ = this.childSource.asObservable();
|
|
45
|
+
this.keepContent$ = this.keepContentSource.asObservable();
|
|
46
|
+
this.pbId = nextPanelbarId++;
|
|
47
|
+
}
|
|
48
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PanelBarService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
49
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PanelBarService });
|
|
38
50
|
}
|
|
39
|
-
|
|
40
|
-
PanelBarService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PanelBarService });
|
|
41
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PanelBarService, decorators: [{
|
|
51
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PanelBarService, decorators: [{
|
|
42
52
|
type: Injectable
|
|
43
53
|
}], ctorParameters: function () { return []; } });
|
|
@@ -23,11 +23,11 @@ import * as i5 from "./panelbar/panelbar-item-title.directive";
|
|
|
23
23
|
* - `PanelBarItemTitleDirective—The `PanelBarItemTitle` directive.
|
|
24
24
|
*/
|
|
25
25
|
export class PanelBarModule {
|
|
26
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PanelBarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
27
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: PanelBarModule, imports: [i1.PanelBarComponent, i2.PanelBarItemComponent, i3.PanelBarContentDirective, i4.PanelBarItemTemplateDirective, i5.PanelBarItemTitleDirective], exports: [i1.PanelBarComponent, i2.PanelBarItemComponent, i3.PanelBarContentDirective, i4.PanelBarItemTemplateDirective, i5.PanelBarItemTitleDirective] });
|
|
28
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PanelBarModule, imports: [i1.PanelBarComponent, i2.PanelBarItemComponent] });
|
|
26
29
|
}
|
|
27
|
-
|
|
28
|
-
PanelBarModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: PanelBarModule, imports: [i1.PanelBarComponent, i2.PanelBarItemComponent, i3.PanelBarContentDirective, i4.PanelBarItemTemplateDirective, i5.PanelBarItemTitleDirective], exports: [i1.PanelBarComponent, i2.PanelBarItemComponent, i3.PanelBarContentDirective, i4.PanelBarItemTemplateDirective, i5.PanelBarItemTitleDirective] });
|
|
29
|
-
PanelBarModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PanelBarModule, imports: [i1.PanelBarComponent, i2.PanelBarItemComponent] });
|
|
30
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PanelBarModule, decorators: [{
|
|
30
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PanelBarModule, decorators: [{
|
|
31
31
|
type: NgModule,
|
|
32
32
|
args: [{
|
|
33
33
|
exports: [...KENDO_PANELBAR],
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
6
6
|
import { ChangeDetectorRef, Component, ElementRef, Host, HostBinding, Input, Renderer2 } from '@angular/core';
|
|
7
7
|
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
8
|
-
import { DraggableDirective, Keys } from '@progress/kendo-angular-common';
|
|
8
|
+
import { DraggableDirective, Keys, isObjectPresent, parseAttributes, removeHTMLAttributes, setHTMLAttributes } from '@progress/kendo-angular-common';
|
|
9
9
|
import { SplitterService } from './splitter.service';
|
|
10
10
|
import { Subscription, of } from 'rxjs';
|
|
11
11
|
import { delay, filter, map, switchMap, takeUntil, tap } from 'rxjs/operators';
|
|
@@ -34,19 +34,15 @@ const createMoveStream = (draggable) => mouseDown => draggable.kendoDrag
|
|
|
34
34
|
* @hidden
|
|
35
35
|
*/
|
|
36
36
|
export class SplitterBarComponent {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
this.orientation = 'horizontal';
|
|
47
|
-
this.index = 0;
|
|
48
|
-
this.subscriptions = new Subscription();
|
|
49
|
-
}
|
|
37
|
+
draggable;
|
|
38
|
+
localization;
|
|
39
|
+
splitterService;
|
|
40
|
+
element;
|
|
41
|
+
renderer;
|
|
42
|
+
cdr;
|
|
43
|
+
ariaRole = 'separator';
|
|
44
|
+
ariaLabel = 'Splitter pane';
|
|
45
|
+
focused = false;
|
|
50
46
|
get hostOrientation() {
|
|
51
47
|
return this.orientation === 'horizontal' ? 'vertical' : 'horizontal';
|
|
52
48
|
}
|
|
@@ -72,6 +68,41 @@ export class SplitterBarComponent {
|
|
|
72
68
|
get order() {
|
|
73
69
|
return 2 * this.index + 1;
|
|
74
70
|
}
|
|
71
|
+
orientation = 'horizontal';
|
|
72
|
+
index = 0;
|
|
73
|
+
set htmlAttributes(attributes) {
|
|
74
|
+
if (isObjectPresent(this.parsedAttributes)) {
|
|
75
|
+
removeHTMLAttributes(this.parsedAttributes, this.renderer, this.element.nativeElement);
|
|
76
|
+
}
|
|
77
|
+
this._htmlAttributes = attributes;
|
|
78
|
+
this.parsedAttributes = this.htmlAttributes ?
|
|
79
|
+
parseAttributes(this.htmlAttributes, this.defaultAttributes) :
|
|
80
|
+
this.htmlAttributes;
|
|
81
|
+
this.setHtmlAttributes();
|
|
82
|
+
}
|
|
83
|
+
get htmlAttributes() {
|
|
84
|
+
return this._htmlAttributes;
|
|
85
|
+
}
|
|
86
|
+
subscriptions = new Subscription();
|
|
87
|
+
_htmlAttributes;
|
|
88
|
+
parsedAttributes = {};
|
|
89
|
+
get defaultAttributes() {
|
|
90
|
+
return {
|
|
91
|
+
'aria-orientation': this.hostOrientation,
|
|
92
|
+
role: this.ariaRole
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
get mutableAttributes() {
|
|
96
|
+
return { 'tabindex': this.tabIndex };
|
|
97
|
+
}
|
|
98
|
+
constructor(draggable, localization, splitterService, element, renderer, cdr) {
|
|
99
|
+
this.draggable = draggable;
|
|
100
|
+
this.localization = localization;
|
|
101
|
+
this.splitterService = splitterService;
|
|
102
|
+
this.element = element;
|
|
103
|
+
this.renderer = renderer;
|
|
104
|
+
this.cdr = cdr;
|
|
105
|
+
}
|
|
75
106
|
ngOnInit() {
|
|
76
107
|
let state;
|
|
77
108
|
const listener = this.draggable.kendoPress.pipe(tap(stopPropagation), filter(() => this.splitterService.isDraggable(this.index)), tap(() => state = this.splitterService.dragState(this.index)), tap(() => this.splitterService.toggleContentOverlay(this.index, true)), switchMap(preventOnDblClick(this.draggable.kendoRelease)), switchMap(createMoveStream(this.draggable))).subscribe(({ pageX, pageY, originalX, originalY }) => {
|
|
@@ -114,13 +145,13 @@ export class SplitterBarComponent {
|
|
|
114
145
|
const relatedPaneIndex = iconName === 'prev' ? this.index + 1 : this.index;
|
|
115
146
|
const pane = this.splitterService.pane(paneIndex);
|
|
116
147
|
const relatedPane = this.splitterService.pane(relatedPaneIndex);
|
|
117
|
-
const isCollapsible = pane
|
|
118
|
-
return isCollapsible && !relatedPane
|
|
148
|
+
const isCollapsible = pane?.collapsible;
|
|
149
|
+
return isCollapsible && !relatedPane?.isHidden;
|
|
119
150
|
}
|
|
120
151
|
previousArrowClass() {
|
|
121
152
|
const pane = this.splitterService.pane(this.index);
|
|
122
|
-
const isCollapsible = pane
|
|
123
|
-
const isCollapsed = pane
|
|
153
|
+
const isCollapsible = pane?.collapsible;
|
|
154
|
+
const isCollapsed = pane?.collapsed;
|
|
124
155
|
const isHorizontal = this.orientation === 'horizontal';
|
|
125
156
|
const isRTL = this.direction === 'rtl';
|
|
126
157
|
return classFromObject({
|
|
@@ -132,8 +163,8 @@ export class SplitterBarComponent {
|
|
|
132
163
|
}
|
|
133
164
|
previousSVGArrowClass() {
|
|
134
165
|
const pane = this.splitterService.pane(this.index);
|
|
135
|
-
const isCollapsible = pane
|
|
136
|
-
const isCollapsed = pane
|
|
166
|
+
const isCollapsible = pane?.collapsible;
|
|
167
|
+
const isCollapsed = pane?.collapsed;
|
|
137
168
|
const isHorizontal = this.orientation === 'horizontal';
|
|
138
169
|
const isRTL = this.direction === 'rtl';
|
|
139
170
|
if (isCollapsible && isHorizontal && ((!isCollapsed && !isRTL) || (isCollapsed && isRTL))) {
|
|
@@ -151,8 +182,8 @@ export class SplitterBarComponent {
|
|
|
151
182
|
}
|
|
152
183
|
nextArrowClass() {
|
|
153
184
|
const pane = this.splitterService.pane(this.index + 1);
|
|
154
|
-
const isCollapsible = pane
|
|
155
|
-
const isCollapsed = pane
|
|
185
|
+
const isCollapsible = pane?.collapsible;
|
|
186
|
+
const isCollapsed = pane?.collapsed;
|
|
156
187
|
const isHorizontal = this.orientation === 'horizontal';
|
|
157
188
|
const isRTL = this.direction === 'rtl';
|
|
158
189
|
return classFromObject({
|
|
@@ -164,8 +195,8 @@ export class SplitterBarComponent {
|
|
|
164
195
|
}
|
|
165
196
|
nextSVGArrowClass() {
|
|
166
197
|
const pane = this.splitterService.pane(this.index + 1);
|
|
167
|
-
const isCollapsible = pane
|
|
168
|
-
const isCollapsed = pane
|
|
198
|
+
const isCollapsible = pane?.collapsible;
|
|
199
|
+
const isCollapsed = pane?.collapsed;
|
|
169
200
|
const isHorizontal = this.orientation === 'horizontal';
|
|
170
201
|
const isRTL = this.direction === 'rtl';
|
|
171
202
|
if (isCollapsible && isHorizontal && ((!isCollapsed && !isRTL) || (isCollapsed && isRTL))) {
|
|
@@ -218,9 +249,12 @@ export class SplitterBarComponent {
|
|
|
218
249
|
this.splitterService.tryToggle(next);
|
|
219
250
|
}
|
|
220
251
|
}
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
252
|
+
setHtmlAttributes() {
|
|
253
|
+
const attributesToRender = { ...this.mutableAttributes, ...this.parsedAttributes };
|
|
254
|
+
setHTMLAttributes(attributesToRender, this.renderer, this.element.nativeElement);
|
|
255
|
+
}
|
|
256
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SplitterBarComponent, deps: [{ token: i1.DraggableDirective, host: true }, { token: i2.LocalizationService }, { token: i3.SplitterService }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
257
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: SplitterBarComponent, isStandalone: true, selector: "kendo-splitter-bar", inputs: { orientation: "orientation", index: "index", htmlAttributes: "htmlAttributes" }, host: { properties: { "attr.role": "this.ariaRole", "attr.aria-label": "this.ariaLabel", "class.k-focus": "this.focused", "attr.aria-orientation": "this.hostOrientation", "attr.tabindex": "this.tabIndex", "class": "this.hostClasses", "style.-ms-flex-order": "this.order", "style.order": "this.order" } }, ngImport: i0, template: `
|
|
224
258
|
<div *ngIf="shouldShowIcon('prev')" class="k-collapse-prev" (click)="togglePrevious()">
|
|
225
259
|
<kendo-icon-wrapper
|
|
226
260
|
size="xsmall"
|
|
@@ -237,7 +271,8 @@ SplitterBarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", v
|
|
|
237
271
|
></kendo-icon-wrapper>
|
|
238
272
|
</div>
|
|
239
273
|
`, isInline: true, dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }] });
|
|
240
|
-
|
|
274
|
+
}
|
|
275
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SplitterBarComponent, decorators: [{
|
|
241
276
|
type: Component,
|
|
242
277
|
args: [{
|
|
243
278
|
selector: 'kendo-splitter-bar',
|
|
@@ -266,6 +301,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
266
301
|
}] }, { type: i2.LocalizationService }, { type: i3.SplitterService }, { type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { ariaRole: [{
|
|
267
302
|
type: HostBinding,
|
|
268
303
|
args: ['attr.role']
|
|
304
|
+
}], ariaLabel: [{
|
|
305
|
+
type: HostBinding,
|
|
306
|
+
args: ['attr.aria-label']
|
|
269
307
|
}], focused: [{
|
|
270
308
|
type: HostBinding,
|
|
271
309
|
args: ['class.k-focus']
|
|
@@ -288,4 +326,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
288
326
|
type: Input
|
|
289
327
|
}], index: [{
|
|
290
328
|
type: Input
|
|
329
|
+
}], htmlAttributes: [{
|
|
330
|
+
type: Input
|
|
291
331
|
}] } });
|