@progress/kendo-angular-layout 17.0.0-develop.9 → 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
|
@@ -15,25 +15,44 @@ import * as i1 from "@progress/kendo-angular-l10n";
|
|
|
15
15
|
* Represents the [Kendo UI GridLayout component for Angular]({% slug overview_gridlayout %}).
|
|
16
16
|
*/
|
|
17
17
|
export class GridLayoutComponent {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
this.hostClass = true;
|
|
23
|
-
/**
|
|
24
|
-
* Specifies the gaps between the elements. The default value is `0`
|
|
25
|
-
* ([see example](slug:layout_gridlayout#toc-gap)).
|
|
26
|
-
*/
|
|
27
|
-
this.gap = 0;
|
|
28
|
-
this._align = {
|
|
29
|
-
horizontal: 'stretch',
|
|
30
|
-
vertical: 'stretch'
|
|
31
|
-
};
|
|
32
|
-
validatePackage(packageMetadata);
|
|
33
|
-
}
|
|
18
|
+
renderer;
|
|
19
|
+
element;
|
|
20
|
+
localization;
|
|
21
|
+
hostClass = true;
|
|
34
22
|
get dir() {
|
|
35
23
|
return this.direction;
|
|
36
24
|
}
|
|
25
|
+
/**
|
|
26
|
+
* Specifies the number of rows and their height
|
|
27
|
+
* ([More details](slug:layout_gridlayout#toc-rows-and-columns)).
|
|
28
|
+
*
|
|
29
|
+
* Accepts an array, which serves two purposes:
|
|
30
|
+
*
|
|
31
|
+
* The number of elements in the array defines the number of rows.
|
|
32
|
+
* Each array element defines the size of the corresponding row. The possible array values are:
|
|
33
|
+
* * `number` - Defines the size in pixels.
|
|
34
|
+
* * `string` - Enables the usage of arbitrary units e.g. `20%` or `auto`.
|
|
35
|
+
* * [GridLayoutRowSize]({% slug api_layout_gridlayoutrowsize %}) - Configuration object, which accepts a `height` key.
|
|
36
|
+
*/
|
|
37
|
+
rows;
|
|
38
|
+
/**
|
|
39
|
+
* Specifies the number of columns and their widths
|
|
40
|
+
* ([More details](slug:layout_gridlayout#toc-rows-and-columns)).
|
|
41
|
+
*
|
|
42
|
+
* Accepts an array, which serves two purposes:
|
|
43
|
+
*
|
|
44
|
+
* The number of elements in the array defines the number of columns.
|
|
45
|
+
* Each array element defines the size of the corresponding column. The possible array values are:
|
|
46
|
+
* * `number` - Defines the size in pixels.
|
|
47
|
+
* * `string` - Enables the usage of arbitrary units e.g. `20%` or `auto`.
|
|
48
|
+
* * [GridLayoutColSize]({% slug api_layout_gridlayoutcolsize %}) - Configuration object, which accepts a `width` key.
|
|
49
|
+
*/
|
|
50
|
+
cols;
|
|
51
|
+
/**
|
|
52
|
+
* Specifies the gaps between the elements. The default value is `0`
|
|
53
|
+
* ([see example](slug:layout_gridlayout#toc-gap)).
|
|
54
|
+
*/
|
|
55
|
+
gap = 0;
|
|
37
56
|
/**
|
|
38
57
|
* Specifies the horizontal and vertical alignment of the inner GridLayout elements
|
|
39
58
|
* ([see example]({% slug layout_gridlayout %}#toc-alignment)).
|
|
@@ -45,6 +64,18 @@ export class GridLayoutComponent {
|
|
|
45
64
|
get align() {
|
|
46
65
|
return this._align;
|
|
47
66
|
}
|
|
67
|
+
_align = {
|
|
68
|
+
horizontal: 'stretch',
|
|
69
|
+
vertical: 'stretch'
|
|
70
|
+
};
|
|
71
|
+
justifyClass;
|
|
72
|
+
alignClass;
|
|
73
|
+
constructor(renderer, element, localization) {
|
|
74
|
+
this.renderer = renderer;
|
|
75
|
+
this.element = element;
|
|
76
|
+
this.localization = localization;
|
|
77
|
+
validatePackage(packageMetadata);
|
|
78
|
+
}
|
|
48
79
|
ngAfterViewInit() {
|
|
49
80
|
this.handleAlignClasses();
|
|
50
81
|
this.handleGridTemplateStyling('rows');
|
|
@@ -96,18 +127,18 @@ export class GridLayoutComponent {
|
|
|
96
127
|
get direction() {
|
|
97
128
|
return this.localization.rtl ? 'rtl' : 'ltr';
|
|
98
129
|
}
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
], exportAs: ["kendoGridLayout"], usesOnChanges: true, ngImport: i0, template: `
|
|
130
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GridLayoutComponent, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }, { token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
131
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: GridLayoutComponent, isStandalone: true, selector: "kendo-gridlayout", inputs: { rows: "rows", cols: "cols", gap: "gap", align: "align" }, host: { properties: { "class.k-grid-layout": "this.hostClass", "attr.dir": "this.dir" } }, providers: [
|
|
132
|
+
LocalizationService,
|
|
133
|
+
{
|
|
134
|
+
provide: L10N_PREFIX,
|
|
135
|
+
useValue: 'kendo.gridlayout'
|
|
136
|
+
}
|
|
137
|
+
], exportAs: ["kendoGridLayout"], usesOnChanges: true, ngImport: i0, template: `
|
|
108
138
|
<ng-content></ng-content>
|
|
109
139
|
`, isInline: true });
|
|
110
|
-
|
|
140
|
+
}
|
|
141
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GridLayoutComponent, decorators: [{
|
|
111
142
|
type: Component,
|
|
112
143
|
args: [{
|
|
113
144
|
exportAs: 'kendoGridLayout',
|
|
@@ -5,6 +5,28 @@
|
|
|
5
5
|
import { Component, Input, Renderer2, ElementRef } from '@angular/core';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
export class GridLayoutItemComponent {
|
|
8
|
+
renderer;
|
|
9
|
+
element;
|
|
10
|
+
/**
|
|
11
|
+
* Sets the row of the item in the GridLayout
|
|
12
|
+
* ([see example]({% slug items_gridlayout %}#toc-size-and-position)).
|
|
13
|
+
*/
|
|
14
|
+
row;
|
|
15
|
+
/**
|
|
16
|
+
* Sets the column of the item in the GridLayout
|
|
17
|
+
* ([see example]({% slug items_gridlayout %}#toc-size-and-position)).
|
|
18
|
+
*/
|
|
19
|
+
col;
|
|
20
|
+
/**
|
|
21
|
+
* Determines how many rows will the item span. The default size is one row
|
|
22
|
+
* ([see example]({% slug items_gridlayout %}#toc-size-and-position)).
|
|
23
|
+
*/
|
|
24
|
+
rowSpan;
|
|
25
|
+
/**
|
|
26
|
+
* Determines how many columns will the item span. The default size is one column
|
|
27
|
+
* ([see example]({% slug items_gridlayout %}#toc-size-and-position)).
|
|
28
|
+
*/
|
|
29
|
+
colSpan;
|
|
8
30
|
constructor(renderer, element) {
|
|
9
31
|
this.renderer = renderer;
|
|
10
32
|
this.element = element;
|
|
@@ -23,12 +45,12 @@ export class GridLayoutItemComponent {
|
|
|
23
45
|
const gridAreaStyle = `${row} / ${col} / ${rowSpan} / ${colSpan}`;
|
|
24
46
|
this.renderer.setStyle(this.element.nativeElement, 'grid-area', gridAreaStyle);
|
|
25
47
|
}
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
GridLayoutItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: GridLayoutItemComponent, isStandalone: true, selector: "kendo-gridlayout-item", inputs: { row: "row", col: "col", rowSpan: "rowSpan", colSpan: "colSpan" }, usesOnChanges: true, ngImport: i0, template: `
|
|
48
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GridLayoutItemComponent, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
49
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: GridLayoutItemComponent, isStandalone: true, selector: "kendo-gridlayout-item", inputs: { row: "row", col: "col", rowSpan: "rowSpan", colSpan: "colSpan" }, usesOnChanges: true, ngImport: i0, template: `
|
|
29
50
|
<ng-content></ng-content>
|
|
30
51
|
`, isInline: true });
|
|
31
|
-
|
|
52
|
+
}
|
|
53
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GridLayoutItemComponent, decorators: [{
|
|
32
54
|
type: Component,
|
|
33
55
|
args: [{
|
|
34
56
|
selector: 'kendo-gridlayout-item',
|
|
@@ -15,31 +15,10 @@ import * as i1 from "@progress/kendo-angular-l10n";
|
|
|
15
15
|
* Represents the [Kendo UI StackLayout component for Angular]({% slug overview_stacklayout %}).
|
|
16
16
|
*/
|
|
17
17
|
export class StackLayoutComponent {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
this.hostClass = true;
|
|
23
|
-
/**
|
|
24
|
-
* Specifies the gap between the inner StackLayout elements. The default value is `0`
|
|
25
|
-
* ([see example](slug:layout_stacklayout#toc-gap)).
|
|
26
|
-
*/
|
|
27
|
-
this.gap = 0;
|
|
28
|
-
/**
|
|
29
|
-
* Specifies the orientation of the StackLayout
|
|
30
|
-
* ([see example]({% slug layout_stacklayout %}#toc-orientation)).
|
|
31
|
-
*
|
|
32
|
-
* The possible values are:
|
|
33
|
-
* (Default) `horizontal`
|
|
34
|
-
* `vertical`
|
|
35
|
-
*/
|
|
36
|
-
this.orientation = 'horizontal';
|
|
37
|
-
this._align = {
|
|
38
|
-
horizontal: 'stretch',
|
|
39
|
-
vertical: 'stretch'
|
|
40
|
-
};
|
|
41
|
-
validatePackage(packageMetadata);
|
|
42
|
-
}
|
|
18
|
+
renderer;
|
|
19
|
+
element;
|
|
20
|
+
localization;
|
|
21
|
+
hostClass = true;
|
|
43
22
|
get horizontalClass() {
|
|
44
23
|
return this.orientation === 'horizontal';
|
|
45
24
|
}
|
|
@@ -60,6 +39,32 @@ export class StackLayoutComponent {
|
|
|
60
39
|
get align() {
|
|
61
40
|
return this._align;
|
|
62
41
|
}
|
|
42
|
+
/**
|
|
43
|
+
* Specifies the gap between the inner StackLayout elements. The default value is `0`
|
|
44
|
+
* ([see example](slug:layout_stacklayout#toc-gap)).
|
|
45
|
+
*/
|
|
46
|
+
gap = 0;
|
|
47
|
+
/**
|
|
48
|
+
* Specifies the orientation of the StackLayout
|
|
49
|
+
* ([see example]({% slug layout_stacklayout %}#toc-orientation)).
|
|
50
|
+
*
|
|
51
|
+
* The possible values are:
|
|
52
|
+
* (Default) `horizontal`
|
|
53
|
+
* `vertical`
|
|
54
|
+
*/
|
|
55
|
+
orientation = 'horizontal';
|
|
56
|
+
_align = {
|
|
57
|
+
horizontal: 'stretch',
|
|
58
|
+
vertical: 'stretch'
|
|
59
|
+
};
|
|
60
|
+
justifyClass;
|
|
61
|
+
alignClass;
|
|
62
|
+
constructor(renderer, element, localization) {
|
|
63
|
+
this.renderer = renderer;
|
|
64
|
+
this.element = element;
|
|
65
|
+
this.localization = localization;
|
|
66
|
+
validatePackage(packageMetadata);
|
|
67
|
+
}
|
|
63
68
|
ngAfterViewInit() {
|
|
64
69
|
this.handleAlignClasses();
|
|
65
70
|
this.setGap();
|
|
@@ -98,18 +103,18 @@ export class StackLayoutComponent {
|
|
|
98
103
|
get direction() {
|
|
99
104
|
return this.localization.rtl ? 'rtl' : 'ltr';
|
|
100
105
|
}
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
], exportAs: ["kendoStackLayout"], usesOnChanges: true, ngImport: i0, template: `
|
|
106
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: StackLayoutComponent, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }, { token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
107
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: StackLayoutComponent, isStandalone: true, selector: "kendo-stacklayout", inputs: { align: "align", gap: "gap", orientation: "orientation" }, host: { properties: { "class.k-stack-layout": "this.hostClass", "class.k-hstack": "this.horizontalClass", "class.k-vstack": "this.verticalClass", "attr.dir": "this.dir" } }, providers: [
|
|
108
|
+
LocalizationService,
|
|
109
|
+
{
|
|
110
|
+
provide: L10N_PREFIX,
|
|
111
|
+
useValue: 'kendo.stacklayout'
|
|
112
|
+
}
|
|
113
|
+
], exportAs: ["kendoStackLayout"], usesOnChanges: true, ngImport: i0, template: `
|
|
110
114
|
<ng-content></ng-content>
|
|
111
115
|
`, isInline: true });
|
|
112
|
-
|
|
116
|
+
}
|
|
117
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: StackLayoutComponent, decorators: [{
|
|
113
118
|
type: Component,
|
|
114
119
|
args: [{
|
|
115
120
|
exportAs: 'kendoStackLayout',
|
|
@@ -9,7 +9,7 @@ export const packageMetadata = {
|
|
|
9
9
|
name: '@progress/kendo-angular-layout',
|
|
10
10
|
productName: 'Kendo UI for Angular',
|
|
11
11
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
12
|
-
publishDate:
|
|
13
|
-
version: '17.0.0
|
|
12
|
+
publishDate: 1731413967,
|
|
13
|
+
version: '17.0.0',
|
|
14
14
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning'
|
|
15
15
|
};
|
|
@@ -9,13 +9,14 @@ import * as i0 from "@angular/core";
|
|
|
9
9
|
* The content can be expanded or collapsed through the item.
|
|
10
10
|
*/
|
|
11
11
|
export class PanelBarContentDirective {
|
|
12
|
+
templateRef;
|
|
12
13
|
constructor(templateRef) {
|
|
13
14
|
this.templateRef = templateRef;
|
|
14
15
|
}
|
|
16
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PanelBarContentDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
17
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: PanelBarContentDirective, isStandalone: true, selector: "[kendoPanelBarContent]", ngImport: i0 });
|
|
15
18
|
}
|
|
16
|
-
|
|
17
|
-
PanelBarContentDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: PanelBarContentDirective, isStandalone: true, selector: "[kendoPanelBarContent]", ngImport: i0 });
|
|
18
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PanelBarContentDirective, decorators: [{
|
|
19
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PanelBarContentDirective, decorators: [{
|
|
19
20
|
type: Directive,
|
|
20
21
|
args: [{
|
|
21
22
|
selector: "[kendoPanelBarContent]",
|
|
@@ -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
|
>
|