@progress/kendo-angular-layout 17.0.0-develop.4 → 17.0.0-develop.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +42 -27
- 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 +25 -17
- 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 +150 -106
- 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 +49 -34
- 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 +2687 -1781
- 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/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 +3 -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 -12374
- /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
|
@@ -8,13 +8,14 @@ import * as i0 from "@angular/core";
|
|
|
8
8
|
* Represents the template directive of the PanelBar which helps to customize the item content.
|
|
9
9
|
*/
|
|
10
10
|
export class PanelBarItemTemplateDirective {
|
|
11
|
+
templateRef;
|
|
11
12
|
constructor(templateRef) {
|
|
12
13
|
this.templateRef = templateRef;
|
|
13
14
|
}
|
|
15
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PanelBarItemTemplateDirective, deps: [{ token: i0.TemplateRef, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
16
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: PanelBarItemTemplateDirective, isStandalone: true, selector: "[kendoPanelBarItemTemplate]", ngImport: i0 });
|
|
14
17
|
}
|
|
15
|
-
|
|
16
|
-
PanelBarItemTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: PanelBarItemTemplateDirective, isStandalone: true, selector: "[kendoPanelBarItemTemplate]", ngImport: i0 });
|
|
17
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PanelBarItemTemplateDirective, decorators: [{
|
|
18
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PanelBarItemTemplateDirective, decorators: [{
|
|
18
19
|
type: Directive,
|
|
19
20
|
args: [{
|
|
20
21
|
selector: '[kendoPanelBarItemTemplate]',
|
|
@@ -31,13 +31,14 @@ import * as i0 from "@angular/core";
|
|
|
31
31
|
* ```
|
|
32
32
|
*/
|
|
33
33
|
export class PanelBarItemTitleDirective {
|
|
34
|
+
templateRef;
|
|
34
35
|
constructor(templateRef) {
|
|
35
36
|
this.templateRef = templateRef;
|
|
36
37
|
}
|
|
38
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PanelBarItemTitleDirective, deps: [{ token: i0.TemplateRef, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
39
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: PanelBarItemTitleDirective, isStandalone: true, selector: "[kendoPanelBarItemTitle]", ngImport: i0 });
|
|
37
40
|
}
|
|
38
|
-
|
|
39
|
-
PanelBarItemTitleDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: PanelBarItemTitleDirective, isStandalone: true, selector: "[kendoPanelBarItemTitle]", ngImport: i0 });
|
|
40
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PanelBarItemTitleDirective, decorators: [{
|
|
41
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PanelBarItemTitleDirective, decorators: [{
|
|
41
42
|
type: Directive,
|
|
42
43
|
args: [{
|
|
43
44
|
selector: '[kendoPanelBarItemTitle]',
|
|
@@ -24,55 +24,28 @@ let nextId = 0;
|
|
|
24
24
|
* Represents the items of the PanelBar.
|
|
25
25
|
*/
|
|
26
26
|
export class PanelBarItemComponent {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
*/
|
|
50
|
-
this.imageUrl = '';
|
|
51
|
-
/**
|
|
52
|
-
* When set to `true`, disables a PanelBar item ([see example]({% slug items_panelbar %}#toc-disabled-state)).
|
|
53
|
-
*/
|
|
54
|
-
this.disabled = false;
|
|
55
|
-
/**
|
|
56
|
-
* Sets the selected state of a PanelBar item ([see example]({% slug items_panelbar %}#toc-selected-state)).
|
|
57
|
-
*/
|
|
58
|
-
this.selected = false;
|
|
59
|
-
this.keepContent = false;
|
|
60
|
-
this.hasChildItems = false;
|
|
61
|
-
this.hasItems = false;
|
|
62
|
-
this.hasContent = false;
|
|
63
|
-
this.state = "inactive";
|
|
64
|
-
this.role = "treeitem";
|
|
65
|
-
this.titleAttribute = null; // eslint-disable-line
|
|
66
|
-
this.kItemClass = true;
|
|
67
|
-
this.focused = false;
|
|
68
|
-
this.wrapperFocused = false;
|
|
69
|
-
this.subscriptions = new Subscription(() => { });
|
|
70
|
-
this._expanded = false;
|
|
71
|
-
this.subscriptions.add(eventService.parent$.subscribe(focused => this.onWrapperFocusChange(focused)));
|
|
72
|
-
this.subscriptions.add(eventService.keepContent$.subscribe(keepContent => this.keepContent = keepContent));
|
|
73
|
-
this.wrapperFocused = parent ? parent.focused : false;
|
|
74
|
-
this.level = this.parent ? this.parent.level + 1 : 0;
|
|
75
|
-
}
|
|
27
|
+
parent;
|
|
28
|
+
eventService;
|
|
29
|
+
element;
|
|
30
|
+
renderer;
|
|
31
|
+
/**
|
|
32
|
+
* Sets the title of the PanelBar item ([see example]({% slug items_panelbar %}#toc-titles)).
|
|
33
|
+
*/
|
|
34
|
+
title;
|
|
35
|
+
/**
|
|
36
|
+
* Allows the component to set the `"id"` property to each item.
|
|
37
|
+
* Used to set the `id` attributes of the nested elements and to enable the WAI-ARIA support.
|
|
38
|
+
*/
|
|
39
|
+
id = `default-${nextId++}`;
|
|
40
|
+
/**
|
|
41
|
+
* Defines the icon that will be rendered next to the title ([see example]({% slug items_panelbar %}#toc-title-icons)).
|
|
42
|
+
*/
|
|
43
|
+
icon = '';
|
|
44
|
+
/**
|
|
45
|
+
* Defines the icon that will be rendered next to the title by using a custom CSS class
|
|
46
|
+
* ([see example]({% slug items_panelbar %}#toc-title-icons)).
|
|
47
|
+
*/
|
|
48
|
+
iconClass = '';
|
|
76
49
|
/**
|
|
77
50
|
* Defines an SVGIcon to be rendered.
|
|
78
51
|
* The input can take either an [existing Kendo SVG icon](slug:svgicon_list) or a custom one.
|
|
@@ -86,6 +59,15 @@ export class PanelBarItemComponent {
|
|
|
86
59
|
get svgIcon() {
|
|
87
60
|
return this._svgIcon;
|
|
88
61
|
}
|
|
62
|
+
/**
|
|
63
|
+
* Defines the location of the image that will be displayed next to the title
|
|
64
|
+
* ([see example]({% slug items_panelbar %}#toc-title-images)).
|
|
65
|
+
*/
|
|
66
|
+
imageUrl = '';
|
|
67
|
+
/**
|
|
68
|
+
* When set to `true`, disables a PanelBar item ([see example]({% slug items_panelbar %}#toc-disabled-state)).
|
|
69
|
+
*/
|
|
70
|
+
disabled = false;
|
|
89
71
|
/**
|
|
90
72
|
* When set to `true`, expands the PanelBar item ([see example]({% slug items_panelbar %}#toc-expanded-state)).
|
|
91
73
|
*/
|
|
@@ -100,9 +82,41 @@ export class PanelBarItemComponent {
|
|
|
100
82
|
get expanded() {
|
|
101
83
|
return this._expanded;
|
|
102
84
|
}
|
|
85
|
+
/**
|
|
86
|
+
* Sets the selected state of a PanelBar item ([see example]({% slug items_panelbar %}#toc-selected-state)).
|
|
87
|
+
*/
|
|
88
|
+
selected = false;
|
|
89
|
+
/**
|
|
90
|
+
* Sets the content of the PanelBar item.
|
|
91
|
+
* By design, it is used when the
|
|
92
|
+
* [items]({% slug api_layout_panelbarcomponent %}#toc-items)
|
|
93
|
+
* property of the PanelBar is set.
|
|
94
|
+
*/
|
|
95
|
+
content;
|
|
96
|
+
/**
|
|
97
|
+
* @hidden
|
|
98
|
+
*/
|
|
99
|
+
items;
|
|
100
|
+
/**
|
|
101
|
+
* @hidden
|
|
102
|
+
*/
|
|
103
|
+
template;
|
|
104
|
+
header;
|
|
105
|
+
contentWrapper;
|
|
106
|
+
contentHeight;
|
|
107
|
+
contentOverflow;
|
|
108
|
+
keepContent = false;
|
|
109
|
+
childrenItems;
|
|
110
|
+
hasChildItems = false;
|
|
111
|
+
hasItems = false;
|
|
112
|
+
hasContent = false;
|
|
113
|
+
state = "inactive";
|
|
103
114
|
get animate() {
|
|
104
115
|
return this.eventService.animate;
|
|
105
116
|
}
|
|
117
|
+
role = "treeitem";
|
|
118
|
+
titleAttribute = null; // eslint-disable-line
|
|
119
|
+
kItemClass = true;
|
|
106
120
|
get kStateExpandedClass() {
|
|
107
121
|
return !this.disabled && this.expanded && (this.hasChildItems || this.hasContent);
|
|
108
122
|
}
|
|
@@ -127,6 +141,27 @@ export class PanelBarItemComponent {
|
|
|
127
141
|
get titleTemplate() {
|
|
128
142
|
return this.titleTemplates.length > 0 ? this.titleTemplates.toArray()[0].templateRef : undefined;
|
|
129
143
|
}
|
|
144
|
+
viewChildItems;
|
|
145
|
+
contentItems;
|
|
146
|
+
//ContentChild does not support descendants property, so we use ContentChildren for contentTemplate instead
|
|
147
|
+
contentTemplate;
|
|
148
|
+
titleTemplates;
|
|
149
|
+
focused = false;
|
|
150
|
+
wrapperFocused = false;
|
|
151
|
+
subscriptions = new Subscription(() => { });
|
|
152
|
+
_expanded = false;
|
|
153
|
+
level;
|
|
154
|
+
_svgIcon;
|
|
155
|
+
constructor(parent, eventService, element, renderer) {
|
|
156
|
+
this.parent = parent;
|
|
157
|
+
this.eventService = eventService;
|
|
158
|
+
this.element = element;
|
|
159
|
+
this.renderer = renderer;
|
|
160
|
+
this.subscriptions.add(eventService.parent$.subscribe(focused => this.onWrapperFocusChange(focused)));
|
|
161
|
+
this.subscriptions.add(eventService.keepContent$.subscribe(keepContent => this.keepContent = keepContent));
|
|
162
|
+
this.wrapperFocused = parent ? parent.focused : false;
|
|
163
|
+
this.level = this.parent ? this.parent.level + 1 : 0;
|
|
164
|
+
}
|
|
130
165
|
/**
|
|
131
166
|
* @hidden
|
|
132
167
|
*/
|
|
@@ -273,9 +308,8 @@ export class PanelBarItemComponent {
|
|
|
273
308
|
onWrapperFocusChange(focused) {
|
|
274
309
|
this.wrapperFocused = focused;
|
|
275
310
|
}
|
|
276
|
-
}
|
|
277
|
-
|
|
278
|
-
PanelBarItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: PanelBarItemComponent, isStandalone: true, selector: "kendo-panelbar-item", inputs: { title: "title", id: "id", icon: "icon", iconClass: "iconClass", svgIcon: "svgIcon", imageUrl: "imageUrl", disabled: "disabled", expanded: "expanded", selected: "selected", content: "content", items: "items", template: "template" }, host: { properties: { "attr.role": "this.role", "attr.title": "this.titleAttribute", "class.k-panelbar-item": "this.kItemClass", "class.k-expanded": "this.kStateExpandedClass", "id": "this.itemId", "attr.aria-expanded": "this.ariaExpanded", "attr.aria-selected": "this.ariaSelected", "attr.aria-disabled": "this.ariaDisabled", "class.k-panelbar-header": "this.headerClass" } }, queries: [{ propertyName: "contentItems", predicate: PanelBarItemComponent }, { propertyName: "contentTemplate", predicate: PanelBarContentDirective }, { propertyName: "titleTemplates", predicate: PanelBarItemTitleDirective }], viewQueries: [{ propertyName: "header", first: true, predicate: ["header"], descendants: true }, { propertyName: "contentWrapper", first: true, predicate: ["contentWrapper"], descendants: true }, { propertyName: "viewChildItems", predicate: PanelBarItemComponent, descendants: true }], exportAs: ["kendoPanelbarItem"], ngImport: i0, template: `
|
|
311
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PanelBarItemComponent, deps: [{ token: PanelBarItemComponent, host: true, optional: true, skipSelf: true }, { token: i1.PanelBarService }, { token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
|
|
312
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: PanelBarItemComponent, isStandalone: true, selector: "kendo-panelbar-item", inputs: { title: "title", id: "id", icon: "icon", iconClass: "iconClass", svgIcon: "svgIcon", imageUrl: "imageUrl", disabled: "disabled", expanded: "expanded", selected: "selected", content: "content", items: "items", template: "template" }, host: { properties: { "attr.role": "this.role", "attr.title": "this.titleAttribute", "class.k-panelbar-item": "this.kItemClass", "class.k-expanded": "this.kStateExpandedClass", "id": "this.itemId", "attr.aria-expanded": "this.ariaExpanded", "attr.aria-selected": "this.ariaSelected", "attr.aria-disabled": "this.ariaDisabled", "class.k-panelbar-header": "this.headerClass" } }, queries: [{ propertyName: "contentItems", predicate: PanelBarItemComponent }, { propertyName: "contentTemplate", predicate: PanelBarContentDirective }, { propertyName: "titleTemplates", predicate: PanelBarItemTitleDirective }], viewQueries: [{ propertyName: "header", first: true, predicate: ["header"], descendants: true }, { propertyName: "contentWrapper", first: true, predicate: ["contentWrapper"], descendants: true }, { propertyName: "viewChildItems", predicate: PanelBarItemComponent, descendants: true }], exportAs: ["kendoPanelbarItem"], ngImport: i0, template: `
|
|
279
313
|
<span
|
|
280
314
|
#header
|
|
281
315
|
[class.k-link]="true"
|
|
@@ -316,7 +350,7 @@ PanelBarItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0",
|
|
|
316
350
|
}"></ng-template>
|
|
317
351
|
<kendo-icon-wrapper
|
|
318
352
|
*ngIf="hasChildItems || hasContent"
|
|
319
|
-
[name]="expanded ? '
|
|
353
|
+
[name]="expanded ? 'chevron-up' : 'chevron-down'"
|
|
320
354
|
[svgIcon]="expanderSVGIcon"
|
|
321
355
|
[innerCssClass]="dirInnerCssClasses"
|
|
322
356
|
>
|
|
@@ -398,19 +432,20 @@ PanelBarItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0",
|
|
|
398
432
|
<ng-template [ngIf]="!template">{{content}}</ng-template>
|
|
399
433
|
</div>
|
|
400
434
|
</div>`, isInline: true, dependencies: [{ kind: "component", type: PanelBarItemComponent, selector: "kendo-panelbar-item", inputs: ["title", "id", "icon", "iconClass", "svgIcon", "imageUrl", "disabled", "expanded", "selected", "content", "items", "template"], exportAs: ["kendoPanelbarItem"] }, { 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"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], animations: [
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
435
|
+
trigger('toggle', [
|
|
436
|
+
state('inactive', style({ display: 'none' })),
|
|
437
|
+
transition('* => active', [
|
|
438
|
+
style({ overflow: 'hidden', display: 'block', height: 0 }),
|
|
439
|
+
animate(200, style({ height: AUTO_STYLE }))
|
|
440
|
+
]),
|
|
441
|
+
transition('active => *', [
|
|
442
|
+
style({ overflow: 'hidden', height: AUTO_STYLE }),
|
|
443
|
+
animate(200, style({ height: 0, display: 'none' }))
|
|
444
|
+
])
|
|
410
445
|
])
|
|
411
|
-
])
|
|
412
|
-
|
|
413
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
446
|
+
] });
|
|
447
|
+
}
|
|
448
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PanelBarItemComponent, decorators: [{
|
|
414
449
|
type: Component,
|
|
415
450
|
args: [{
|
|
416
451
|
animations: [
|
|
@@ -469,7 +504,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
469
504
|
}"></ng-template>
|
|
470
505
|
<kendo-icon-wrapper
|
|
471
506
|
*ngIf="hasChildItems || hasContent"
|
|
472
|
-
[name]="expanded ? '
|
|
507
|
+
[name]="expanded ? 'chevron-up' : 'chevron-down'"
|
|
473
508
|
[svgIcon]="expanderSVGIcon"
|
|
474
509
|
[innerCssClass]="dirInnerCssClasses"
|
|
475
510
|
>
|
|
@@ -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],
|