@progress/kendo-angular-layout 17.0.0-develop.8 → 17.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/avatar/avatar.component.d.ts +1 -1
- package/avatar/l10n/messages.d.ts +1 -1
- package/avatar/models/fill.d.ts +1 -1
- package/avatar/models/rounded.d.ts +1 -1
- package/avatar/models/shape.d.ts +2 -2
- package/avatar/models/size.d.ts +1 -1
- package/avatar/models/theme-color.d.ts +1 -1
- package/card/card-actions.component.d.ts +1 -1
- package/card/card.component.d.ts +1 -1
- package/card/directives/card-separator.directive.d.ts +1 -1
- package/card/models/actions-layout.d.ts +1 -1
- package/common/direction.d.ts +1 -1
- package/common/orientation.d.ts +1 -1
- package/drawer/drawer.component.d.ts +1 -1
- package/drawer/item.component.d.ts +1 -1
- package/drawer/list.component.d.ts +1 -1
- package/drawer/models/drawer-item-expand.interface.d.ts +1 -1
- package/drawer/models/mode.d.ts +1 -1
- package/drawer/models/position.d.ts +1 -1
- package/{esm2020 → esm2022}/avatar/avatar.component.mjs +61 -25
- package/{esm2020 → esm2022}/avatar/l10n/custom-messages.component.mjs +9 -8
- package/{esm2020 → esm2022}/avatar/l10n/localized-messages.directive.mjs +9 -8
- package/{esm2020 → esm2022}/avatar/l10n/messages.mjs +7 -3
- package/{esm2020 → esm2022}/avatar.module.mjs +4 -4
- package/{esm2020 → esm2022}/card/card-actions.component.mjs +37 -31
- package/{esm2020 → esm2022}/card/card-body.component.mjs +5 -7
- package/{esm2020 → esm2022}/card/card-footer.component.mjs +5 -7
- package/{esm2020 → esm2022}/card/card-header.component.mjs +5 -7
- package/{esm2020 → esm2022}/card/card.component.mjs +40 -34
- package/{esm2020 → esm2022}/card/directives/card-media.directive.mjs +4 -6
- package/{esm2020 → esm2022}/card/directives/card-separator.directive.mjs +16 -14
- package/{esm2020 → esm2022}/card/directives/card-subtitle.directive.mjs +4 -6
- package/{esm2020 → esm2022}/card/directives/card-title.directive.mjs +4 -6
- package/{esm2020 → esm2022}/card/models/card-action.mjs +12 -0
- package/{esm2020 → esm2022}/card.module.mjs +4 -4
- package/{esm2020 → esm2022}/common/preventable-event.mjs +7 -7
- package/{esm2020 → esm2022}/drawer/drawer-container.component.mjs +28 -18
- package/{esm2020 → esm2022}/drawer/drawer-content.component.mjs +6 -7
- package/{esm2020 → esm2022}/drawer/drawer.component.mjs +132 -106
- package/{esm2020 → esm2022}/drawer/drawer.service.mjs +10 -10
- package/{esm2020 → esm2022}/drawer/events/drawer-list-select.event.mjs +12 -0
- package/{esm2020 → esm2022}/drawer/events/select-event.mjs +16 -0
- package/{esm2020 → esm2022}/drawer/item.component.mjs +22 -11
- package/{esm2020 → esm2022}/drawer/list.component.mjs +14 -6
- package/{esm2020 → esm2022}/drawer/template-directives/drawer-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/drawer/template-directives/footer-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/drawer/template-directives/header-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/drawer/template-directives/item-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/drawer.module.mjs +4 -4
- package/{esm2020 → esm2022}/expansionpanel/events/action-event.mjs +4 -0
- package/{esm2020 → esm2022}/expansionpanel/expansionpanel-title.directive.mjs +4 -3
- package/{esm2020 → esm2022}/expansionpanel/expansionpanel.component.mjs +103 -81
- package/{esm2020 → esm2022}/expansionpanel.module.mjs +4 -4
- package/{esm2020 → esm2022}/gridlayout.module.mjs +4 -4
- package/{esm2020 → esm2022}/layout.module.mjs +4 -4
- package/{esm2020 → esm2022}/layouts/grid-layout.component.mjs +57 -26
- package/{esm2020 → esm2022}/layouts/gridlayout-item.component.mjs +26 -4
- package/{esm2020 → esm2022}/layouts/stack-layout.component.mjs +40 -35
- package/{esm2020 → esm2022}/package-metadata.mjs +2 -2
- package/{esm2020 → esm2022}/panelbar/events/collapse-event.mjs +4 -0
- package/{esm2020 → esm2022}/panelbar/events/expand-event.mjs +4 -0
- package/{esm2020 → esm2022}/panelbar/events/item-click-event.mjs +8 -0
- package/{esm2020 → esm2022}/panelbar/events/select-event.mjs +4 -0
- package/{esm2020 → esm2022}/panelbar/events/state-change-event.mjs +4 -0
- package/{esm2020 → esm2022}/panelbar/panelbar-content.directive.mjs +4 -3
- package/{esm2020 → esm2022}/panelbar/panelbar-item-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/panelbar/panelbar-item-title.directive.mjs +4 -3
- package/{esm2020 → esm2022}/panelbar/panelbar-item.component.mjs +101 -66
- package/{esm2020 → esm2022}/panelbar/panelbar.component.mjs +109 -98
- package/{esm2020 → esm2022}/panelbar/panelbar.service.mjs +23 -13
- package/{esm2020 → esm2022}/panelbar.module.mjs +4 -4
- package/{esm2020 → esm2022}/splitter/splitter-bar.component.mjs +68 -28
- package/esm2022/splitter/splitter-pane.component.mjs +267 -0
- package/{esm2020 → esm2022}/splitter/splitter.component.mjs +98 -40
- package/{esm2020 → esm2022}/splitter/splitter.service.mjs +69 -28
- package/{esm2020 → esm2022}/splitter.module.mjs +4 -4
- package/{esm2020 → esm2022}/stacklayout.module.mjs +4 -4
- package/{esm2020 → esm2022}/stepper/events/activate-event.mjs +16 -0
- package/{esm2020 → esm2022}/stepper/list.component.mjs +23 -5
- package/{esm2020 → esm2022}/stepper/localization/custom-messages.component.mjs +9 -8
- package/{esm2020 → esm2022}/stepper/localization/localized-messages.directive.mjs +9 -8
- package/{esm2020 → esm2022}/stepper/localization/messages.mjs +7 -3
- package/{esm2020 → esm2022}/stepper/step.component.mjs +25 -8
- package/{esm2020 → esm2022}/stepper/stepper.component.mjs +111 -70
- package/{esm2020 → esm2022}/stepper/stepper.service.mjs +30 -9
- package/{esm2020 → esm2022}/stepper/template-directives/indicator-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/stepper/template-directives/label-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/stepper/template-directives/step-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/stepper.module.mjs +4 -4
- package/{esm2020 → esm2022}/tabstrip/directives/tab-content.directive.mjs +4 -3
- package/{esm2020 → esm2022}/tabstrip/directives/tab-title.directive.mjs +4 -3
- package/{esm2020 → esm2022}/tabstrip/directives/tab.directive.mjs +4 -3
- package/{esm2020 → esm2022}/tabstrip/events/select-event.mjs +2 -0
- package/{esm2020 → esm2022}/tabstrip/events/tabclose-event.mjs +2 -0
- package/{esm2020 → esm2022}/tabstrip/events/tabscroll-event.mjs +4 -0
- package/{esm2020 → esm2022}/tabstrip/localization/custom-messages.component.mjs +9 -8
- package/{esm2020 → esm2022}/tabstrip/localization/localized-messages.directive.mjs +9 -8
- package/{esm2020 → esm2022}/tabstrip/localization/messages.mjs +15 -3
- package/esm2022/tabstrip/models/tabstrip-tab.component.mjs +117 -0
- package/{esm2020 → esm2022}/tabstrip/rendering/tab.component.mjs +16 -9
- package/{esm2020 → esm2022}/tabstrip/scrollable-button.component.mjs +33 -27
- package/{esm2020 → esm2022}/tabstrip/tabstrip-scroll.service.mjs +11 -9
- package/{esm2020 → esm2022}/tabstrip/tabstrip.component.mjs +145 -111
- package/{esm2020 → esm2022}/tabstrip/tabstrip.service.mjs +6 -3
- package/{esm2020 → esm2022}/tabstrip.module.mjs +4 -4
- package/{esm2020 → esm2022}/tilelayout/dragging-service.mjs +39 -24
- package/{esm2020 → esm2022}/tilelayout/keyboard-navigation.service.mjs +9 -4
- package/{esm2020 → esm2022}/tilelayout/reorder-event.mjs +8 -0
- package/{esm2020 → esm2022}/tilelayout/resize-event.mjs +6 -0
- package/{esm2020 → esm2022}/tilelayout/tilelayout-item-body.component.mjs +6 -8
- package/esm2022/tilelayout/tilelayout-item-header.component.mjs +33 -0
- package/{esm2020 → esm2022}/tilelayout/tilelayout-item.component.mjs +85 -58
- package/{esm2020 → esm2022}/tilelayout/tilelayout-resize-handle.directive.mjs +7 -3
- package/{esm2020 → esm2022}/tilelayout/tilelayout.component.mjs +103 -93
- package/{esm2020 → esm2022}/tilelayout.module.mjs +4 -4
- package/{esm2020 → esm2022}/timeline/localization/custom-messages.component.mjs +9 -8
- package/{esm2020 → esm2022}/timeline/localization/localized-messages.directive.mjs +9 -8
- package/{esm2020 → esm2022}/timeline/localization/messages.mjs +11 -3
- package/{esm2020 → esm2022}/timeline/templates/timeline-card-actions.directive.mjs +4 -3
- package/{esm2020 → esm2022}/timeline/templates/timeline-card-body.directive.mjs +4 -3
- package/{esm2020 → esm2022}/timeline/templates/timeline-card-header.directive.mjs +4 -3
- package/{esm2020 → esm2022}/timeline/timeline-card.component.mjs +48 -33
- package/{esm2020 → esm2022}/timeline/timeline-horizontal.component.mjs +85 -55
- package/{esm2020 → esm2022}/timeline/timeline-vertical.component.mjs +20 -6
- package/{esm2020 → esm2022}/timeline/timeline.component.mjs +108 -68
- package/{esm2020 → esm2022}/timeline/timeline.service.mjs +4 -3
- package/{esm2020 → esm2022}/timeline.module.mjs +4 -4
- package/expansionpanel/events/action-event.d.ts +1 -1
- package/expansionpanel/expansionpanel.component.d.ts +1 -1
- package/{fesm2020 → fesm2022}/progress-kendo-angular-layout.mjs +2672 -1777
- package/layouts/grid-layout.component.d.ts +1 -1
- package/layouts/gridlayout-item.component.d.ts +1 -1
- package/layouts/models/layout-horizontal-align.d.ts +1 -1
- package/layouts/models/layout-vertical-align.d.ts +1 -1
- package/layouts/stack-layout.component.d.ts +1 -1
- package/package.json +16 -22
- package/panelbar/panelbar-item.component.d.ts +1 -1
- package/panelbar/panelbar.component.d.ts +1 -1
- package/schematics/ngAdd/index.js +1 -1
- package/splitter/splitter-bar.component.d.ts +13 -1
- package/splitter/splitter-pane.component.d.ts +26 -6
- package/splitter/splitter.component.d.ts +12 -4
- package/splitter/splitter.service.d.ts +7 -2
- package/stepper/list.component.d.ts +1 -1
- package/stepper/localization/messages.d.ts +1 -1
- package/stepper/models/orientation.d.ts +1 -1
- package/stepper/models/step-predicate.d.ts +1 -1
- package/stepper/models/step-type.d.ts +1 -1
- package/stepper/step.component.d.ts +1 -1
- package/stepper/stepper.component.d.ts +1 -1
- package/tabstrip/localization/messages.d.ts +1 -1
- package/tabstrip/models/button-state-change.d.ts +1 -1
- package/tabstrip/models/scroll-button-type.d.ts +1 -1
- package/tabstrip/models/scroll-buttons-visibility.d.ts +1 -1
- package/tabstrip/models/tab-alignment.d.ts +1 -1
- package/tabstrip/models/tab-position.d.ts +1 -1
- package/tabstrip/models/tabstrip-tab.component.d.ts +1 -1
- package/tabstrip/rendering/tab.component.d.ts +1 -1
- package/tabstrip/scrollable-button.component.d.ts +1 -1
- package/tabstrip/tabstrip.component.d.ts +1 -1
- package/tilelayout/models/flowmode.type.d.ts +1 -1
- package/tilelayout/tilelayout-item-header.component.d.ts +1 -9
- package/tilelayout/tilelayout-item.component.d.ts +1 -1
- package/tilelayout/tilelayout-resize-handle.directive.d.ts +1 -1
- package/tilelayout/tilelayout.component.d.ts +1 -1
- package/timeline/events/navigation-direction.d.ts +1 -1
- package/timeline/localization/messages.d.ts +1 -1
- package/timeline/models/anchor-target.d.ts +1 -1
- package/timeline/timeline-card.component.d.ts +1 -1
- package/timeline/timeline-horizontal.component.d.ts +2 -2
- package/timeline/timeline-vertical.component.d.ts +1 -1
- package/timeline/timeline.component.d.ts +1 -1
- package/esm2020/splitter/splitter-pane.component.mjs +0 -222
- package/esm2020/tabstrip/models/tabstrip-tab.component.mjs +0 -78
- package/esm2020/tilelayout/tilelayout-item-header.component.mjs +0 -53
- package/fesm2015/progress-kendo-angular-layout.mjs +0 -12385
- /package/{esm2020 → esm2022}/avatar/models/fill.mjs +0 -0
- /package/{esm2020 → esm2022}/avatar/models/models.mjs +0 -0
- /package/{esm2020 → esm2022}/avatar/models/rounded.mjs +0 -0
- /package/{esm2020 → esm2022}/avatar/models/shape.mjs +0 -0
- /package/{esm2020 → esm2022}/avatar/models/size.mjs +0 -0
- /package/{esm2020 → esm2022}/avatar/models/theme-color.mjs +0 -0
- /package/{esm2020 → esm2022}/card/models/actions-layout.mjs +0 -0
- /package/{esm2020 → esm2022}/common/direction.mjs +0 -0
- /package/{esm2020 → esm2022}/common/dom-queries.mjs +0 -0
- /package/{esm2020 → esm2022}/common/orientation.mjs +0 -0
- /package/{esm2020 → esm2022}/common/styling-classes.mjs +0 -0
- /package/{esm2020 → esm2022}/common/util.mjs +0 -0
- /package/{esm2020 → esm2022}/directives.mjs +0 -0
- /package/{esm2020 → esm2022}/drawer/animations.mjs +0 -0
- /package/{esm2020 → esm2022}/drawer/models/constants.mjs +0 -0
- /package/{esm2020 → esm2022}/drawer/models/drawer-animation.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/drawer/models/drawer-item-expand.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/drawer/models/drawer-item.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/drawer/models/drawer-view-item.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/drawer/models/mode.mjs +0 -0
- /package/{esm2020 → esm2022}/drawer/models/position.mjs +0 -0
- /package/{esm2020 → esm2022}/drawer/template-directives.mjs +0 -0
- /package/{esm2020 → esm2022}/drawer/types.mjs +0 -0
- /package/{esm2020 → esm2022}/drawer/util.mjs +0 -0
- /package/{esm2020 → esm2022}/expansionpanel/animations.mjs +0 -0
- /package/{esm2020 → esm2022}/index.mjs +0 -0
- /package/{esm2020 → esm2022}/layouts/models/gridlayout-gap-settings.mjs +0 -0
- /package/{esm2020 → esm2022}/layouts/models/gridlayout-row-col-size.mjs +0 -0
- /package/{esm2020 → esm2022}/layouts/models/layout-align-settings.mjs +0 -0
- /package/{esm2020 → esm2022}/layouts/models/layout-horizontal-align.mjs +0 -0
- /package/{esm2020 → esm2022}/layouts/models/layout-vertical-align.mjs +0 -0
- /package/{esm2020 → esm2022}/layouts/models.mjs +0 -0
- /package/{esm2020 → esm2022}/layouts/util.mjs +0 -0
- /package/{esm2020 → esm2022}/panelbar/events.mjs +0 -0
- /package/{esm2020 → esm2022}/panelbar/panelbar-expand-mode.mjs +0 -0
- /package/{esm2020 → esm2022}/panelbar/panelbar-item-model.mjs +0 -0
- /package/{esm2020 → esm2022}/progress-kendo-angular-layout.mjs +0 -0
- /package/{esm2020 → esm2022}/splitter/util.mjs +0 -0
- /package/{esm2020 → esm2022}/stepper/models/constants.mjs +0 -0
- /package/{esm2020 → esm2022}/stepper/models/orientation.mjs +0 -0
- /package/{esm2020 → esm2022}/stepper/models/step-predicate.mjs +0 -0
- /package/{esm2020 → esm2022}/stepper/models/step-type.mjs +0 -0
- /package/{esm2020 → esm2022}/stepper/models/stepper-step.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/stepper/template-directives.mjs +0 -0
- /package/{esm2020 → esm2022}/stepper/types.mjs +0 -0
- /package/{esm2020 → esm2022}/tabstrip/constants.mjs +0 -0
- /package/{esm2020 → esm2022}/tabstrip/events.mjs +0 -0
- /package/{esm2020 → esm2022}/tabstrip/models/button-state-change.mjs +0 -0
- /package/{esm2020 → esm2022}/tabstrip/models/scroll-button-type.mjs +0 -0
- /package/{esm2020 → esm2022}/tabstrip/models/scroll-buttons-visibility.mjs +0 -0
- /package/{esm2020 → esm2022}/tabstrip/models/scrollable-settings.mjs +0 -0
- /package/{esm2020 → esm2022}/tabstrip/models/tab-alignment.mjs +0 -0
- /package/{esm2020 → esm2022}/tabstrip/models/tab-position.mjs +0 -0
- /package/{esm2020 → esm2022}/tabstrip/util.mjs +0 -0
- /package/{esm2020 → esm2022}/tilelayout/constants.mjs +0 -0
- /package/{esm2020 → esm2022}/tilelayout/models/dragging-config.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/tilelayout/models/flowmode.type.mjs +0 -0
- /package/{esm2020 → esm2022}/tilelayout/models/gap.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/tilelayout/models/navigation.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/tilelayout/util.mjs +0 -0
- /package/{esm2020 → esm2022}/timeline/events/navigation-direction.mjs +0 -0
- /package/{esm2020 → esm2022}/timeline/models/anchor-target.mjs +0 -0
- /package/{esm2020 → esm2022}/timeline/models/default-model-fields.mjs +0 -0
- /package/{esm2020 → esm2022}/timeline/models/model-fields.mjs +0 -0
- /package/{esm2020 → esm2022}/timeline/models/timeline-event.mjs +0 -0
- /package/{esm2020 → esm2022}/timeline/util.mjs +0 -0
|
@@ -12,30 +12,8 @@ import * as i1 from "@progress/kendo-angular-l10n";
|
|
|
12
12
|
* Represents the [Kendo UI Card component for Angular]({% slug overview_card %})
|
|
13
13
|
*/
|
|
14
14
|
export class CardComponent {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
this.hostClass = true;
|
|
18
|
-
/**
|
|
19
|
-
* Specifies the layout of the Card content.
|
|
20
|
-
*
|
|
21
|
-
* The possible values are:
|
|
22
|
-
* * (Default) `vertical`
|
|
23
|
-
* * `horizontal`
|
|
24
|
-
*
|
|
25
|
-
*/
|
|
26
|
-
this.orientation = 'vertical';
|
|
27
|
-
/**
|
|
28
|
-
* Defines the width of the Card.
|
|
29
|
-
* Defaults to `285px`.
|
|
30
|
-
*/
|
|
31
|
-
this.width = '285px';
|
|
32
|
-
this.rtl = false;
|
|
33
|
-
validatePackage(packageMetadata);
|
|
34
|
-
this.dynamicRTLSubscription = this.localizationService.changes.subscribe(({ rtl }) => {
|
|
35
|
-
this.rtl = rtl;
|
|
36
|
-
this.direction = this.rtl ? 'rtl' : 'ltr';
|
|
37
|
-
});
|
|
38
|
-
}
|
|
15
|
+
localizationService;
|
|
16
|
+
hostClass = true;
|
|
39
17
|
get widthStyle() {
|
|
40
18
|
return this.width;
|
|
41
19
|
}
|
|
@@ -45,23 +23,51 @@ export class CardComponent {
|
|
|
45
23
|
get horizontal() {
|
|
46
24
|
return this.orientation === 'horizontal';
|
|
47
25
|
}
|
|
26
|
+
/**
|
|
27
|
+
* @hidden
|
|
28
|
+
*/
|
|
29
|
+
direction;
|
|
30
|
+
/**
|
|
31
|
+
* Specifies the layout of the Card content.
|
|
32
|
+
*
|
|
33
|
+
* The possible values are:
|
|
34
|
+
* * (Default) `vertical`
|
|
35
|
+
* * `horizontal`
|
|
36
|
+
*
|
|
37
|
+
*/
|
|
38
|
+
orientation = 'vertical';
|
|
39
|
+
/**
|
|
40
|
+
* Defines the width of the Card.
|
|
41
|
+
* Defaults to `285px`.
|
|
42
|
+
*/
|
|
43
|
+
width = '285px';
|
|
44
|
+
dynamicRTLSubscription;
|
|
45
|
+
rtl = false;
|
|
46
|
+
constructor(localizationService) {
|
|
47
|
+
this.localizationService = localizationService;
|
|
48
|
+
validatePackage(packageMetadata);
|
|
49
|
+
this.dynamicRTLSubscription = this.localizationService.changes.subscribe(({ rtl }) => {
|
|
50
|
+
this.rtl = rtl;
|
|
51
|
+
this.direction = this.rtl ? 'rtl' : 'ltr';
|
|
52
|
+
});
|
|
53
|
+
}
|
|
48
54
|
ngOnDestroy() {
|
|
49
55
|
if (this.dynamicRTLSubscription) {
|
|
50
56
|
this.dynamicRTLSubscription.unsubscribe();
|
|
51
57
|
}
|
|
52
58
|
}
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
], ngImport: i0, template: `
|
|
59
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CardComponent, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
60
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: CardComponent, isStandalone: true, selector: "kendo-card", inputs: { orientation: "orientation", width: "width" }, host: { properties: { "class.k-card": "this.hostClass", "style.width": "this.widthStyle", "class.k-card-vertical": "this.vertical", "class.k-card-horizontal": "this.horizontal", "attr.dir": "this.direction" } }, providers: [
|
|
61
|
+
LocalizationService,
|
|
62
|
+
{
|
|
63
|
+
provide: L10N_PREFIX,
|
|
64
|
+
useValue: 'kendo.card.component'
|
|
65
|
+
}
|
|
66
|
+
], ngImport: i0, template: `
|
|
62
67
|
<ng-content></ng-content>
|
|
63
68
|
`, isInline: true });
|
|
64
|
-
|
|
69
|
+
}
|
|
70
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CardComponent, decorators: [{
|
|
65
71
|
type: Component,
|
|
66
72
|
args: [{
|
|
67
73
|
selector: 'kendo-card',
|
|
@@ -8,13 +8,11 @@ import * as i0 from "@angular/core";
|
|
|
8
8
|
* Specifies any media that will be displayed and aligned in the Card.
|
|
9
9
|
*/
|
|
10
10
|
export class CardMediaDirective {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}
|
|
11
|
+
hostClass = true;
|
|
12
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CardMediaDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
13
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: CardMediaDirective, isStandalone: true, selector: "[kendoCardMedia]", host: { properties: { "class.k-card-media": "this.hostClass" } }, ngImport: i0 });
|
|
14
14
|
}
|
|
15
|
-
|
|
16
|
-
CardMediaDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: CardMediaDirective, isStandalone: true, selector: "[kendoCardMedia]", host: { properties: { "class.k-card-media": "this.hostClass" } }, ngImport: i0 });
|
|
17
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CardMediaDirective, decorators: [{
|
|
15
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CardMediaDirective, decorators: [{
|
|
18
16
|
type: Directive,
|
|
19
17
|
args: [{
|
|
20
18
|
selector: '[kendoCardMedia]',
|
|
@@ -8,27 +8,29 @@ import * as i0 from "@angular/core";
|
|
|
8
8
|
* Specifies a separator in the content of the Card.
|
|
9
9
|
*/
|
|
10
10
|
export class CardSeparatorDirective {
|
|
11
|
-
|
|
12
|
-
this.hostClass = true;
|
|
13
|
-
/**
|
|
14
|
-
* Specifies the orientation of the Card separator.
|
|
15
|
-
*
|
|
16
|
-
* The possible values are:
|
|
17
|
-
* (Default) `horizontal`
|
|
18
|
-
* `vertical`
|
|
19
|
-
*/
|
|
20
|
-
this.orientation = 'horizontal';
|
|
21
|
-
}
|
|
11
|
+
hostClass = true;
|
|
22
12
|
get verticalClass() {
|
|
23
13
|
return this.orientation === 'vertical';
|
|
24
14
|
}
|
|
25
15
|
get horizontalClass() {
|
|
26
16
|
return this.orientation === 'horizontal';
|
|
27
17
|
}
|
|
18
|
+
/**
|
|
19
|
+
* Sets the color of the Card separator.
|
|
20
|
+
*/
|
|
21
|
+
color;
|
|
22
|
+
/**
|
|
23
|
+
* Specifies the orientation of the Card separator.
|
|
24
|
+
*
|
|
25
|
+
* The possible values are:
|
|
26
|
+
* (Default) `horizontal`
|
|
27
|
+
* `vertical`
|
|
28
|
+
*/
|
|
29
|
+
orientation = 'horizontal';
|
|
30
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CardSeparatorDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
31
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: CardSeparatorDirective, isStandalone: true, selector: "[kendoCardSeparator]", inputs: { color: "color", orientation: "orientation" }, host: { properties: { "class.k-card-separator": "this.hostClass", "class.k-separator-vertical": "this.verticalClass", "class.k-separator-horizontal": "this.horizontalClass", "style.color": "this.color" } }, ngImport: i0 });
|
|
28
32
|
}
|
|
29
|
-
|
|
30
|
-
CardSeparatorDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: CardSeparatorDirective, isStandalone: true, selector: "[kendoCardSeparator]", inputs: { color: "color", orientation: "orientation" }, host: { properties: { "class.k-card-separator": "this.hostClass", "class.k-separator-vertical": "this.verticalClass", "class.k-separator-horizontal": "this.horizontalClass", "style.color": "this.color" } }, ngImport: i0 });
|
|
31
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CardSeparatorDirective, decorators: [{
|
|
33
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CardSeparatorDirective, decorators: [{
|
|
32
34
|
type: Directive,
|
|
33
35
|
args: [{
|
|
34
36
|
selector: '[kendoCardSeparator]',
|
|
@@ -8,13 +8,11 @@ import * as i0 from "@angular/core";
|
|
|
8
8
|
* Specifies the text and styles for the subtitle of the Card.
|
|
9
9
|
*/
|
|
10
10
|
export class CardSubtitleDirective {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}
|
|
11
|
+
hostClass = true;
|
|
12
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CardSubtitleDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
13
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: CardSubtitleDirective, isStandalone: true, selector: "[kendoCardSubtitle]", host: { properties: { "class.k-card-subtitle": "this.hostClass" } }, ngImport: i0 });
|
|
14
14
|
}
|
|
15
|
-
|
|
16
|
-
CardSubtitleDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: CardSubtitleDirective, isStandalone: true, selector: "[kendoCardSubtitle]", host: { properties: { "class.k-card-subtitle": "this.hostClass" } }, ngImport: i0 });
|
|
17
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CardSubtitleDirective, decorators: [{
|
|
15
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CardSubtitleDirective, decorators: [{
|
|
18
16
|
type: Directive,
|
|
19
17
|
args: [{
|
|
20
18
|
selector: '[kendoCardSubtitle]',
|
|
@@ -8,13 +8,11 @@ import * as i0 from "@angular/core";
|
|
|
8
8
|
* Specifies the text and styles for the title of the Card.
|
|
9
9
|
*/
|
|
10
10
|
export class CardTitleDirective {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}
|
|
11
|
+
hostClass = true;
|
|
12
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CardTitleDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
13
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: CardTitleDirective, isStandalone: true, selector: "[kendoCardTitle]", host: { properties: { "class.k-card-title": "this.hostClass" } }, ngImport: i0 });
|
|
14
14
|
}
|
|
15
|
-
|
|
16
|
-
CardTitleDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: CardTitleDirective, isStandalone: true, selector: "[kendoCardTitle]", host: { properties: { "class.k-card-title": "this.hostClass" } }, ngImport: i0 });
|
|
17
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CardTitleDirective, decorators: [{
|
|
15
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CardTitleDirective, decorators: [{
|
|
18
16
|
type: Directive,
|
|
19
17
|
args: [{
|
|
20
18
|
selector: '[kendoCardTitle]',
|
|
@@ -6,4 +6,16 @@
|
|
|
6
6
|
* The settings of the Card action buttons.
|
|
7
7
|
*/
|
|
8
8
|
export class CardAction {
|
|
9
|
+
/**
|
|
10
|
+
* Determines if the action button is styled as a primary button.
|
|
11
|
+
*/
|
|
12
|
+
primary;
|
|
13
|
+
/**
|
|
14
|
+
* Determines if the action button is styled as a flat button.
|
|
15
|
+
*/
|
|
16
|
+
flat;
|
|
17
|
+
/**
|
|
18
|
+
* The text of the action button.
|
|
19
|
+
*/
|
|
20
|
+
text;
|
|
9
21
|
}
|
|
@@ -20,11 +20,11 @@ import * as i9 from "./card/directives/card-title.directive";
|
|
|
20
20
|
* definition for the Card component.
|
|
21
21
|
*/
|
|
22
22
|
export class CardModule {
|
|
23
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CardModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
24
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: CardModule, imports: [i1.CardComponent, i2.CardActionsComponent, i3.CardBodyComponent, i4.CardFooterComponent, i5.CardHeaderComponent, i6.CardMediaDirective, i7.CardSeparatorDirective, i8.CardSubtitleDirective, i9.CardTitleDirective], exports: [i1.CardComponent, i2.CardActionsComponent, i3.CardBodyComponent, i4.CardFooterComponent, i5.CardHeaderComponent, i6.CardMediaDirective, i7.CardSeparatorDirective, i8.CardSubtitleDirective, i9.CardTitleDirective] });
|
|
25
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CardModule });
|
|
23
26
|
}
|
|
24
|
-
|
|
25
|
-
CardModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: CardModule, imports: [i1.CardComponent, i2.CardActionsComponent, i3.CardBodyComponent, i4.CardFooterComponent, i5.CardHeaderComponent, i6.CardMediaDirective, i7.CardSeparatorDirective, i8.CardSubtitleDirective, i9.CardTitleDirective], exports: [i1.CardComponent, i2.CardActionsComponent, i3.CardBodyComponent, i4.CardFooterComponent, i5.CardHeaderComponent, i6.CardMediaDirective, i7.CardSeparatorDirective, i8.CardSubtitleDirective, i9.CardTitleDirective] });
|
|
26
|
-
CardModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CardModule, imports: [i1.CardComponent, i2.CardActionsComponent, i3.CardBodyComponent, i4.CardFooterComponent, i5.CardHeaderComponent] });
|
|
27
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CardModule, decorators: [{
|
|
27
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CardModule, decorators: [{
|
|
28
28
|
type: NgModule,
|
|
29
29
|
args: [{
|
|
30
30
|
exports: [...KENDO_CARD],
|
|
@@ -6,13 +6,7 @@
|
|
|
6
6
|
* @hidden
|
|
7
7
|
*/
|
|
8
8
|
export class PreventableEvent {
|
|
9
|
-
|
|
10
|
-
* @hidden
|
|
11
|
-
*/
|
|
12
|
-
constructor(args) {
|
|
13
|
-
this.prevented = false;
|
|
14
|
-
Object.assign(this, args);
|
|
15
|
-
}
|
|
9
|
+
prevented = false;
|
|
16
10
|
/**
|
|
17
11
|
* Prevents the default action for a specified event.
|
|
18
12
|
* In this way, the source component suppresses
|
|
@@ -31,4 +25,10 @@ export class PreventableEvent {
|
|
|
31
25
|
isDefaultPrevented() {
|
|
32
26
|
return this.prevented;
|
|
33
27
|
}
|
|
28
|
+
/**
|
|
29
|
+
* @hidden
|
|
30
|
+
*/
|
|
31
|
+
constructor(args) {
|
|
32
|
+
Object.assign(this, args);
|
|
33
|
+
}
|
|
34
34
|
}
|
|
@@ -13,14 +13,7 @@ import * as i1 from "@progress/kendo-angular-l10n";
|
|
|
13
13
|
* Serves as a container for the [Kendo UI Drawer component for Angular]({% slug overview_drawer %}) and its content.
|
|
14
14
|
*/
|
|
15
15
|
export class DrawerContainerComponent {
|
|
16
|
-
|
|
17
|
-
this.localizationService = localizationService;
|
|
18
|
-
this.rtl = false;
|
|
19
|
-
this.dynamicRTLSubscription = this.localizationService.changes.subscribe(({ rtl }) => {
|
|
20
|
-
this.rtl = rtl;
|
|
21
|
-
this.direction = this.rtl ? 'rtl' : 'ltr';
|
|
22
|
-
});
|
|
23
|
-
}
|
|
16
|
+
localizationService;
|
|
24
17
|
get hostClass() {
|
|
25
18
|
return true;
|
|
26
19
|
}
|
|
@@ -36,6 +29,23 @@ export class DrawerContainerComponent {
|
|
|
36
29
|
get isExpandedClass() {
|
|
37
30
|
return this.drawer.expanded;
|
|
38
31
|
}
|
|
32
|
+
/**
|
|
33
|
+
* @hidden
|
|
34
|
+
*/
|
|
35
|
+
direction;
|
|
36
|
+
/**
|
|
37
|
+
* @hidden
|
|
38
|
+
*/
|
|
39
|
+
drawer;
|
|
40
|
+
dynamicRTLSubscription;
|
|
41
|
+
rtl = false;
|
|
42
|
+
constructor(localizationService) {
|
|
43
|
+
this.localizationService = localizationService;
|
|
44
|
+
this.dynamicRTLSubscription = this.localizationService.changes.subscribe(({ rtl }) => {
|
|
45
|
+
this.rtl = rtl;
|
|
46
|
+
this.direction = this.rtl ? 'rtl' : 'ltr';
|
|
47
|
+
});
|
|
48
|
+
}
|
|
39
49
|
ngOnDestroy() {
|
|
40
50
|
if (this.dynamicRTLSubscription) {
|
|
41
51
|
this.dynamicRTLSubscription.unsubscribe();
|
|
@@ -57,19 +67,19 @@ export class DrawerContainerComponent {
|
|
|
57
67
|
this.drawer.toggle(false);
|
|
58
68
|
}
|
|
59
69
|
}
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
}
|
|
68
|
-
], queries: [{ propertyName: "drawer", first: true, predicate: DrawerComponent, descendants: true }], ngImport: i0, template: `
|
|
70
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DrawerContainerComponent, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
71
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: DrawerContainerComponent, isStandalone: true, selector: "kendo-drawer-container", host: { properties: { "class.k-drawer-container": "this.hostClass", "class.k-drawer-overlay": "this.overlayClass", "class.k-drawer-mini": "this.miniClass", "class.k-drawer-push": "this.pushClass", "class.k-drawer-expanded": "this.isExpandedClass", "attr.dir": "this.direction" } }, providers: [
|
|
72
|
+
LocalizationService,
|
|
73
|
+
{
|
|
74
|
+
provide: L10N_PREFIX,
|
|
75
|
+
useValue: 'kendo.drawer.container'
|
|
76
|
+
}
|
|
77
|
+
], queries: [{ propertyName: "drawer", first: true, predicate: DrawerComponent, descendants: true }], ngImport: i0, template: `
|
|
69
78
|
<div class="k-overlay" *ngIf="overlay" (click)="closeDrawer()"></div>
|
|
70
79
|
<ng-content></ng-content>
|
|
71
80
|
`, isInline: true, dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
72
|
-
|
|
81
|
+
}
|
|
82
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DrawerContainerComponent, decorators: [{
|
|
73
83
|
type: Component,
|
|
74
84
|
args: [{
|
|
75
85
|
selector: 'kendo-drawer-container',
|
|
@@ -8,15 +8,14 @@ import * as i0 from "@angular/core";
|
|
|
8
8
|
* Represents the content of the [Kendo UI Drawer component for Angular]({% slug overview_drawer %}).
|
|
9
9
|
*/
|
|
10
10
|
export class DrawerContentComponent {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
DrawerContentComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DrawerContentComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
16
|
-
DrawerContentComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: DrawerContentComponent, isStandalone: true, selector: "kendo-drawer-content", host: { properties: { "class.k-drawer-content": "this.hostClasses" } }, ngImport: i0, template: `
|
|
11
|
+
hostClasses = true;
|
|
12
|
+
constructor() { }
|
|
13
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DrawerContentComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
14
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: DrawerContentComponent, isStandalone: true, selector: "kendo-drawer-content", host: { properties: { "class.k-drawer-content": "this.hostClasses" } }, ngImport: i0, template: `
|
|
17
15
|
<ng-content></ng-content>
|
|
18
16
|
`, isInline: true, encapsulation: i0.ViewEncapsulation.None });
|
|
19
|
-
|
|
17
|
+
}
|
|
18
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DrawerContentComponent, decorators: [{
|
|
20
19
|
type: Component,
|
|
21
20
|
args: [{
|
|
22
21
|
selector: 'kendo-drawer-content',
|
|
@@ -53,101 +53,11 @@ const DEFAULT_ANIMATION = { type: 'slide', duration: 200 };
|
|
|
53
53
|
* ```
|
|
54
54
|
*/
|
|
55
55
|
export class DrawerComponent {
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
this.hostClasses = true;
|
|
62
|
-
/**
|
|
63
|
-
* Specifies the mode in which the Drawer will be displayed.
|
|
64
|
-
*
|
|
65
|
-
* The possible values are:
|
|
66
|
-
* * (Default) `overlay`
|
|
67
|
-
* * `push`
|
|
68
|
-
*/
|
|
69
|
-
this.mode = 'overlay';
|
|
70
|
-
/**
|
|
71
|
-
* Specifies the position of the Drawer
|
|
72
|
-
* ([see example]({% slug positioning_drawer %})).
|
|
73
|
-
*
|
|
74
|
-
* The possible values are:
|
|
75
|
-
* * (Default) `start`
|
|
76
|
-
* * `end`
|
|
77
|
-
*/
|
|
78
|
-
this.position = 'start';
|
|
79
|
-
/**
|
|
80
|
-
* Enables the mini (compact) view of the Drawer which is displayed when the component is collapsed
|
|
81
|
-
* ([see example]({% slug expandmodespositions_drawer %}#toc-mini-view)).
|
|
82
|
-
*/
|
|
83
|
-
this.mini = false;
|
|
84
|
-
/**
|
|
85
|
-
* Specifies the state of the Drawer.
|
|
86
|
-
*/
|
|
87
|
-
this.expanded = false;
|
|
88
|
-
/**
|
|
89
|
-
* Defines the width of the Drawer when it is expanded.
|
|
90
|
-
* Defaults to `240`.
|
|
91
|
-
*/
|
|
92
|
-
this.width = 240;
|
|
93
|
-
/**
|
|
94
|
-
* Defines the width of the Drawer when the mini view is enabled
|
|
95
|
-
* and the component is collapsed. Defaults to `60`.
|
|
96
|
-
*/
|
|
97
|
-
this.miniWidth = 50;
|
|
98
|
-
/**
|
|
99
|
-
* Specifies if the Drawer will be automatically collapsed when an item
|
|
100
|
-
* or the overlay is clicked. Defaults to `true`.
|
|
101
|
-
*/
|
|
102
|
-
this.autoCollapse = true;
|
|
103
|
-
/**
|
|
104
|
-
* The collection of items that will be rendered in the Drawer.
|
|
105
|
-
*/
|
|
106
|
-
this.items = [];
|
|
107
|
-
/**
|
|
108
|
-
* Specifies the animation settings of the Drawer.
|
|
109
|
-
* ([see example]({% slug interaction_drawer %}#toc-toggling-between-states)).
|
|
110
|
-
*
|
|
111
|
-
* The possible values are:
|
|
112
|
-
* * Boolean
|
|
113
|
-
* * (Default) `true`
|
|
114
|
-
* * `false`
|
|
115
|
-
* * `DrawerAnimation`
|
|
116
|
-
* * (Default) `type?: 'slide'`
|
|
117
|
-
* * `duration`—Accepts a number in milliseconds. Defaults to `300ms`.
|
|
118
|
-
*/
|
|
119
|
-
this.animation = DEFAULT_ANIMATION;
|
|
120
|
-
/**
|
|
121
|
-
* Fires when the Drawer is expanded and its animation is complete.
|
|
122
|
-
*/
|
|
123
|
-
this.expand = new EventEmitter();
|
|
124
|
-
/**
|
|
125
|
-
* Fires when the Drawer is collapsed and its animation is complete.
|
|
126
|
-
*/
|
|
127
|
-
this.collapse = new EventEmitter();
|
|
128
|
-
/**
|
|
129
|
-
* Fires when a Drawer item is selected. This event is preventable.
|
|
130
|
-
*/
|
|
131
|
-
this.select = new EventEmitter();
|
|
132
|
-
/**
|
|
133
|
-
* Fires when the `expanded` property of the component was updated.
|
|
134
|
-
* Used to provide a two-way binding for the `expanded` property.
|
|
135
|
-
*/
|
|
136
|
-
this.expandedChange = new EventEmitter();
|
|
137
|
-
/**
|
|
138
|
-
* @hidden
|
|
139
|
-
*/
|
|
140
|
-
this.showLicenseWatermark = false;
|
|
141
|
-
this.animationEnd = new EventEmitter();
|
|
142
|
-
this.rtl = false;
|
|
143
|
-
const isValid = validatePackage(packageMetadata);
|
|
144
|
-
this.showLicenseWatermark = shouldShowValidationUI(isValid);
|
|
145
|
-
this.dynamicRTLSubscription = this.localizationService.changes.subscribe(({ rtl }) => {
|
|
146
|
-
this.rtl = rtl;
|
|
147
|
-
this.direction = this.rtl ? 'rtl' : 'ltr';
|
|
148
|
-
});
|
|
149
|
-
this.drawerService.owner = this;
|
|
150
|
-
}
|
|
56
|
+
element;
|
|
57
|
+
builder;
|
|
58
|
+
localizationService;
|
|
59
|
+
drawerService;
|
|
60
|
+
hostClasses = true;
|
|
151
61
|
get startPositionClass() {
|
|
152
62
|
return this.position === 'start';
|
|
153
63
|
}
|
|
@@ -172,6 +82,51 @@ export class DrawerComponent {
|
|
|
172
82
|
}
|
|
173
83
|
return this.drawerWidth;
|
|
174
84
|
}
|
|
85
|
+
/**
|
|
86
|
+
* Specifies the mode in which the Drawer will be displayed.
|
|
87
|
+
*
|
|
88
|
+
* The possible values are:
|
|
89
|
+
* * (Default) `overlay`
|
|
90
|
+
* * `push`
|
|
91
|
+
*/
|
|
92
|
+
mode = 'overlay';
|
|
93
|
+
/**
|
|
94
|
+
* Specifies the position of the Drawer
|
|
95
|
+
* ([see example]({% slug positioning_drawer %})).
|
|
96
|
+
*
|
|
97
|
+
* The possible values are:
|
|
98
|
+
* * (Default) `start`
|
|
99
|
+
* * `end`
|
|
100
|
+
*/
|
|
101
|
+
position = 'start';
|
|
102
|
+
/**
|
|
103
|
+
* Enables the mini (compact) view of the Drawer which is displayed when the component is collapsed
|
|
104
|
+
* ([see example]({% slug expandmodespositions_drawer %}#toc-mini-view)).
|
|
105
|
+
*/
|
|
106
|
+
mini = false;
|
|
107
|
+
/**
|
|
108
|
+
* Specifies the state of the Drawer.
|
|
109
|
+
*/
|
|
110
|
+
expanded = false;
|
|
111
|
+
/**
|
|
112
|
+
* Defines the width of the Drawer when it is expanded.
|
|
113
|
+
* Defaults to `240`.
|
|
114
|
+
*/
|
|
115
|
+
width = 240;
|
|
116
|
+
/**
|
|
117
|
+
* Defines the width of the Drawer when the mini view is enabled
|
|
118
|
+
* and the component is collapsed. Defaults to `60`.
|
|
119
|
+
*/
|
|
120
|
+
miniWidth = 50;
|
|
121
|
+
/**
|
|
122
|
+
* Specifies if the Drawer will be automatically collapsed when an item
|
|
123
|
+
* or the overlay is clicked. Defaults to `true`.
|
|
124
|
+
*/
|
|
125
|
+
autoCollapse = true;
|
|
126
|
+
/**
|
|
127
|
+
* The collection of items that will be rendered in the Drawer.
|
|
128
|
+
*/
|
|
129
|
+
items = [];
|
|
175
130
|
/**
|
|
176
131
|
* Defines a callback function which determines if an item should be expanded.
|
|
177
132
|
*/
|
|
@@ -184,6 +139,77 @@ export class DrawerComponent {
|
|
|
184
139
|
get isItemExpanded() {
|
|
185
140
|
return this.drawerService.isItemExpanded;
|
|
186
141
|
}
|
|
142
|
+
/**
|
|
143
|
+
* @hidden
|
|
144
|
+
*/
|
|
145
|
+
direction;
|
|
146
|
+
/**
|
|
147
|
+
* Specifies the animation settings of the Drawer.
|
|
148
|
+
* ([see example]({% slug interaction_drawer %}#toc-toggling-between-states)).
|
|
149
|
+
*
|
|
150
|
+
* The possible values are:
|
|
151
|
+
* * Boolean
|
|
152
|
+
* * (Default) `true`
|
|
153
|
+
* * `false`
|
|
154
|
+
* * `DrawerAnimation`
|
|
155
|
+
* * (Default) `type?: 'slide'`
|
|
156
|
+
* * `duration`—Accepts a number in milliseconds. Defaults to `300ms`.
|
|
157
|
+
*/
|
|
158
|
+
animation = DEFAULT_ANIMATION;
|
|
159
|
+
/**
|
|
160
|
+
* Fires when the Drawer is expanded and its animation is complete.
|
|
161
|
+
*/
|
|
162
|
+
expand = new EventEmitter();
|
|
163
|
+
/**
|
|
164
|
+
* Fires when the Drawer is collapsed and its animation is complete.
|
|
165
|
+
*/
|
|
166
|
+
collapse = new EventEmitter();
|
|
167
|
+
/**
|
|
168
|
+
* Fires when a Drawer item is selected. This event is preventable.
|
|
169
|
+
*/
|
|
170
|
+
select = new EventEmitter();
|
|
171
|
+
/**
|
|
172
|
+
* Fires when the `expanded` property of the component was updated.
|
|
173
|
+
* Used to provide a two-way binding for the `expanded` property.
|
|
174
|
+
*/
|
|
175
|
+
expandedChange = new EventEmitter();
|
|
176
|
+
/**
|
|
177
|
+
* @hidden
|
|
178
|
+
*/
|
|
179
|
+
drawerTemplate;
|
|
180
|
+
/**
|
|
181
|
+
* @hidden
|
|
182
|
+
*/
|
|
183
|
+
footerTemplate;
|
|
184
|
+
/**
|
|
185
|
+
* @hidden
|
|
186
|
+
*/
|
|
187
|
+
headerTemplate;
|
|
188
|
+
/**
|
|
189
|
+
* @hidden
|
|
190
|
+
*/
|
|
191
|
+
itemTemplate;
|
|
192
|
+
/**
|
|
193
|
+
* @hidden
|
|
194
|
+
*/
|
|
195
|
+
showLicenseWatermark = false;
|
|
196
|
+
viewItems;
|
|
197
|
+
animationEnd = new EventEmitter();
|
|
198
|
+
dynamicRTLSubscription;
|
|
199
|
+
rtl = false;
|
|
200
|
+
constructor(element, builder, localizationService, drawerService) {
|
|
201
|
+
this.element = element;
|
|
202
|
+
this.builder = builder;
|
|
203
|
+
this.localizationService = localizationService;
|
|
204
|
+
this.drawerService = drawerService;
|
|
205
|
+
const isValid = validatePackage(packageMetadata);
|
|
206
|
+
this.showLicenseWatermark = shouldShowValidationUI(isValid);
|
|
207
|
+
this.dynamicRTLSubscription = this.localizationService.changes.subscribe(({ rtl }) => {
|
|
208
|
+
this.rtl = rtl;
|
|
209
|
+
this.direction = this.rtl ? 'rtl' : 'ltr';
|
|
210
|
+
});
|
|
211
|
+
this.drawerService.owner = this;
|
|
212
|
+
}
|
|
187
213
|
ngOnChanges(changes) {
|
|
188
214
|
if (changes && changes['items']) {
|
|
189
215
|
this.drawerService.resetSelection();
|
|
@@ -279,16 +305,15 @@ export class DrawerComponent {
|
|
|
279
305
|
});
|
|
280
306
|
return player;
|
|
281
307
|
}
|
|
282
|
-
}
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
}
|
|
291
|
-
], queries: [{ propertyName: "drawerTemplate", first: true, predicate: DrawerTemplateDirective, descendants: true }, { propertyName: "footerTemplate", first: true, predicate: DrawerFooterTemplateDirective, descendants: true }, { propertyName: "headerTemplate", first: true, predicate: DrawerHeaderTemplateDirective, descendants: true }, { propertyName: "itemTemplate", first: true, predicate: DrawerItemTemplateDirective, descendants: true }], exportAs: ["kendoDrawer"], usesOnChanges: true, ngImport: i0, template: `
|
|
308
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DrawerComponent, deps: [{ token: i0.ElementRef }, { token: i1.AnimationBuilder }, { token: i2.LocalizationService }, { token: i3.DrawerService }], target: i0.ɵɵFactoryTarget.Component });
|
|
309
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: DrawerComponent, isStandalone: true, selector: "kendo-drawer", inputs: { mode: "mode", position: "position", mini: "mini", expanded: "expanded", width: "width", miniWidth: "miniWidth", autoCollapse: "autoCollapse", items: "items", isItemExpanded: "isItemExpanded", animation: "animation" }, outputs: { expand: "expand", collapse: "collapse", select: "select", expandedChange: "expandedChange" }, host: { properties: { "class.k-drawer": "this.hostClasses", "class.k-drawer-start": "this.startPositionClass", "class.k-drawer-end": "this.endPositionClass", "style.transform": "this.overlayTransofrmStyles", "style.flexBasis.px": "this.flexStyles", "attr.dir": "this.direction" } }, providers: [
|
|
310
|
+
LocalizationService,
|
|
311
|
+
DrawerService,
|
|
312
|
+
{
|
|
313
|
+
provide: L10N_PREFIX,
|
|
314
|
+
useValue: 'kendo.drawer'
|
|
315
|
+
}
|
|
316
|
+
], queries: [{ propertyName: "drawerTemplate", first: true, predicate: DrawerTemplateDirective, descendants: true }, { propertyName: "footerTemplate", first: true, predicate: DrawerFooterTemplateDirective, descendants: true }, { propertyName: "headerTemplate", first: true, predicate: DrawerHeaderTemplateDirective, descendants: true }, { propertyName: "itemTemplate", first: true, predicate: DrawerItemTemplateDirective, descendants: true }], exportAs: ["kendoDrawer"], usesOnChanges: true, ngImport: i0, template: `
|
|
292
317
|
<div class="k-drawer-wrapper" *ngIf="expanded || mini" [style.width.px]="drawerWidth">
|
|
293
318
|
<ng-container *ngIf="!drawerTemplate">
|
|
294
319
|
<ng-template *ngIf="headerTemplate"
|
|
@@ -318,7 +343,8 @@ DrawerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", versio
|
|
|
318
343
|
|
|
319
344
|
<div kendoWatermarkOverlay *ngIf="showLicenseWatermark"></div>
|
|
320
345
|
`, isInline: true, dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: DrawerListComponent, selector: "[kendoDrawerList]", inputs: ["itemTemplate", "mini", "expanded", "view"], outputs: ["select"] }, { kind: "component", type: WatermarkOverlayComponent, selector: "div[kendoWatermarkOverlay]" }] });
|
|
321
|
-
|
|
346
|
+
}
|
|
347
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DrawerComponent, decorators: [{
|
|
322
348
|
type: Component,
|
|
323
349
|
args: [{
|
|
324
350
|
exportAs: 'kendoDrawer',
|