@progress/kendo-angular-layout 6.5.2 → 7.0.0-dev.202204150742
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/{dist/es2015/avatar → avatar}/avatar.component.d.ts +22 -16
- package/{dist/es2015/avatar → avatar}/models/fill.d.ts +1 -1
- package/{dist/es2015/avatar → avatar}/models/models.d.ts +0 -0
- package/{dist/es2015/avatar → avatar}/models/rounded.d.ts +1 -1
- package/{dist/es2015/avatar → avatar}/models/shape.d.ts +0 -0
- package/{dist/es2015/avatar → avatar}/models/size.d.ts +1 -1
- package/{dist/es2015/avatar → avatar}/models/theme-color.d.ts +1 -1
- package/avatar.module.d.ts +16 -0
- package/bundles/kendo-angular-layout.umd.js +5 -0
- package/{dist/es2015/card → card}/card-actions.component.d.ts +16 -9
- package/card/card-body.component.d.ts +13 -0
- package/{dist/es2015/card → card}/card-footer.component.d.ts +3 -0
- package/{dist/es2015/card → card}/card-header.component.d.ts +3 -0
- package/{dist/es2015/card → card}/card.component.d.ts +6 -3
- package/{dist/es2015/card → card}/directives/card-media.directive.d.ts +3 -0
- package/{dist/es2015/card → card}/directives/card-separator.directive.d.ts +5 -2
- package/{dist/es2015/card → card}/directives/card-subtitle.directive.d.ts +3 -0
- package/{dist/es2015/card → card}/directives/card-title.directive.d.ts +3 -0
- package/{dist/es2015/card → card}/models/actions-layout.d.ts +0 -0
- package/{dist/es2015/card → card}/models/card-action.d.ts +0 -0
- package/card.module.d.ts +24 -0
- package/{dist/es2015/common → common}/direction.d.ts +0 -0
- package/{dist/es2015/common → common}/dom-queries.d.ts +0 -0
- package/{dist/es2015/common → common}/orientation.d.ts +0 -0
- package/{dist/es2015/common → common}/preventable-event.d.ts +0 -0
- package/{dist/es2015/common → common}/styling-classes.d.ts +0 -0
- package/{dist/es2015/common → common}/util.d.ts +4 -4
- package/{dist/es2015/drawer → drawer}/animations.d.ts +0 -0
- package/{dist/es2015/drawer → drawer}/drawer-container.component.d.ts +9 -6
- package/{dist/es2015/drawer → drawer}/drawer-content.component.d.ts +3 -0
- package/{dist/es2015/drawer → drawer}/drawer.component.d.ts +17 -8
- package/{dist/es2015/drawer → drawer}/drawer.service.d.ts +3 -1
- package/drawer/events/drawer-list-select.event.d.ts +26 -0
- package/{dist/es2015/drawer → drawer}/events/select-event.d.ts +6 -2
- package/{dist/es2015/drawer → drawer}/item.component.d.ts +7 -4
- package/{dist/es2015/drawer → drawer}/list.component.d.ts +6 -1
- package/{dist/es2015/drawer → drawer}/models/constants.d.ts +0 -0
- package/{dist/es2015/drawer → drawer}/models/drawer-animation.interface.d.ts +1 -1
- package/{dist/es2015/drawer → drawer}/models/drawer-item.interface.d.ts +0 -0
- package/{dist/es2015/drawer → drawer}/models/mode.d.ts +0 -0
- package/{dist/es2015/drawer → drawer}/models/position.d.ts +0 -0
- package/{dist/es2015/drawer → drawer}/template-directives/drawer-template.directive.d.ts +3 -0
- package/{dist/es2015/drawer → drawer}/template-directives/footer-template.directive.d.ts +3 -0
- package/{dist/es2015/drawer → drawer}/template-directives/header-template.directive.d.ts +3 -0
- package/{dist/es2015/drawer → drawer}/template-directives/item-template.directive.d.ts +3 -0
- package/{dist/es2015/drawer → drawer}/template-directives.d.ts +0 -0
- package/{dist/es2015/drawer → drawer}/types.d.ts +0 -0
- package/{dist/es2015/drawer → drawer}/util.d.ts +0 -0
- package/drawer.module.d.ts +24 -0
- package/{dist/es2015 → esm2015}/avatar/avatar.component.js +97 -115
- package/{dist/es → esm2015}/avatar/models/fill.js +1 -0
- package/{dist/es/layouts → esm2015/avatar/models}/models.js +5 -0
- package/{dist/es2015 → esm2015}/avatar/models/rounded.js +1 -0
- package/{dist/es2015 → esm2015}/avatar/models/shape.js +1 -0
- package/{dist/es → esm2015}/avatar/models/size.js +1 -0
- package/{dist/es → esm2015}/avatar/models/theme-color.js +1 -0
- package/esm2015/avatar.module.js +31 -0
- package/esm2015/card/card-actions.component.js +145 -0
- package/esm2015/card/card-body.component.js +30 -0
- package/esm2015/card/card-footer.component.js +30 -0
- package/esm2015/card/card-header.component.js +30 -0
- package/esm2015/card/card.component.js +101 -0
- package/esm2015/card/directives/card-media.directive.js +25 -0
- package/esm2015/card/directives/card-separator.directive.js +52 -0
- package/esm2015/card/directives/card-subtitle.directive.js +25 -0
- package/esm2015/card/directives/card-title.directive.js +25 -0
- package/{dist/es → esm2015}/card/models/actions-layout.js +1 -0
- package/{dist/es2015 → esm2015}/card/models/card-action.js +0 -0
- package/{dist/es2015 → esm2015}/card.module.js +28 -11
- package/{dist/es → esm2015}/common/direction.js +1 -0
- package/{dist/es2015 → esm2015}/common/dom-queries.js +0 -3
- package/{dist/es → esm2015}/common/orientation.js +1 -0
- package/{dist/es2015 → esm2015}/common/preventable-event.js +0 -0
- package/{dist/es → esm2015}/common/styling-classes.js +1 -0
- package/{dist/es2015 → esm2015}/common/util.js +7 -9
- package/{dist/es2015 → esm2015}/drawer/animations.js +0 -0
- package/esm2015/drawer/drawer-container.component.js +109 -0
- package/esm2015/drawer/drawer-content.component.js +31 -0
- package/{dist/es2015 → esm2015}/drawer/drawer.component.js +124 -124
- package/{dist/es2015 → esm2015}/drawer/drawer.service.js +8 -20
- package/esm2015/drawer/events/drawer-list-select.event.js +17 -0
- package/esm2015/drawer/events/select-event.js +17 -0
- package/esm2015/drawer/item.component.js +121 -0
- package/{dist/es2015 → esm2015}/drawer/list.component.js +32 -34
- package/{dist/es2015 → esm2015}/drawer/models/constants.js +0 -0
- package/{dist/es → esm2015}/drawer/models/drawer-animation.interface.js +1 -0
- package/{dist/es → esm2015}/drawer/models/drawer-item.interface.js +1 -0
- package/{dist/es → esm2015}/drawer/models/mode.js +1 -0
- package/{dist/es → esm2015}/drawer/models/position.js +1 -0
- package/esm2015/drawer/template-directives/drawer-template.directive.js +28 -0
- package/esm2015/drawer/template-directives/footer-template.directive.js +26 -0
- package/esm2015/drawer/template-directives/header-template.directive.js +26 -0
- package/esm2015/drawer/template-directives/item-template.directive.js +26 -0
- package/{dist/es → esm2015}/drawer/template-directives.js +0 -0
- package/{dist/es → esm2015}/drawer/types.js +1 -0
- package/{dist/es2015 → esm2015}/drawer/util.js +0 -0
- package/{dist/es2015 → esm2015}/drawer.module.js +25 -11
- package/{dist/es2015 → esm2015}/expansionpanel/animations.js +0 -0
- package/esm2015/expansionpanel/events/action-event.js +17 -0
- package/esm2015/expansionpanel/expansionpanel-title.directive.js +27 -0
- package/{dist/es2015 → esm2015}/expansionpanel/expansionpanel.component.js +112 -119
- package/esm2015/expansionpanel.module.js +36 -0
- package/esm2015/gridlayout.module.js +35 -0
- package/esm2015/kendo-angular-layout.js +8 -0
- package/{dist/es2015 → esm2015}/layout.module.js +44 -21
- package/{dist/es2015 → esm2015}/layouts/grid-layout.component.js +44 -48
- package/esm2015/layouts/gridlayout-item.component.js +47 -0
- package/{dist/es → esm2015}/layouts/models/gridlayout-gap-settings.js +1 -0
- package/{dist/es → esm2015}/layouts/models/gridlayout-row-col-size.js +1 -0
- package/{dist/es → esm2015}/layouts/models/layout-align-settings.js +1 -0
- package/{dist/es → esm2015}/layouts/models/layout-horizontal-align.js +1 -0
- package/{dist/es → esm2015}/layouts/models/layout-vertical-align.js +1 -0
- package/{dist/es2015/layouts/models.d.ts → esm2015/layouts/models.js} +0 -0
- package/{dist/es2015 → esm2015}/layouts/stack-layout.component.js +48 -54
- package/{dist/es2015 → esm2015}/layouts/util.js +0 -0
- package/{dist/es → esm2015}/main.js +5 -0
- package/{dist/es2015 → esm2015}/package-metadata.js +1 -1
- package/{dist/es2015/expansionpanel/events/action-event.js → esm2015/panelbar/events/collapse-event.js} +2 -2
- package/{dist/es2015/stepper/events/activate-event.js → esm2015/panelbar/events/expand-event.js} +2 -2
- package/{dist/es2015/drawer → esm2015/panelbar}/events/select-event.js +2 -2
- package/{dist/es/stepper/models/constants.js → esm2015/panelbar/events/state-change-event.js} +3 -2
- package/{dist/es2015/tabstrip → esm2015/panelbar}/events.js +4 -2
- package/esm2015/panelbar/panelbar-content.directive.js +23 -0
- package/{dist/es → esm2015}/panelbar/panelbar-expand-mode.js +0 -0
- package/{dist/es → esm2015}/panelbar/panelbar-item-model.js +1 -0
- package/esm2015/panelbar/panelbar-item-template.directive.js +24 -0
- package/{dist/es2015 → esm2015}/panelbar/panelbar-item-title.directive.js +14 -12
- package/esm2015/panelbar/panelbar-item.component.js +582 -0
- package/{dist/es2015 → esm2015}/panelbar/panelbar.component.js +248 -173
- package/{dist/es2015 → esm2015}/panelbar/panelbar.service.js +8 -8
- package/{dist/es2015 → esm2015}/panelbar.module.js +22 -11
- package/{dist/es2015 → esm2015}/splitter/splitter-bar.component.js +60 -81
- package/{dist/es2015 → esm2015}/splitter/splitter-pane.component.js +53 -84
- package/{dist/es2015 → esm2015}/splitter/splitter.component.js +84 -69
- package/{dist/es2015 → esm2015}/splitter/splitter.service.js +9 -9
- package/{dist/es2015 → esm2015}/splitter.module.js +21 -12
- package/esm2015/stacklayout.module.js +31 -0
- package/esm2015/stepper/events/activate-event.js +17 -0
- package/esm2015/stepper/list.component.js +145 -0
- package/esm2015/stepper/localization/custom-messages.component.js +41 -0
- package/esm2015/stepper/localization/localized-messages.directive.js +38 -0
- package/esm2015/stepper/localization/messages.js +23 -0
- package/{dist/es2015 → esm2015}/stepper/models/constants.js +0 -0
- package/{dist/es → esm2015}/stepper/models/orientation.js +1 -0
- package/{dist/es → esm2015}/stepper/models/step-predicate.js +1 -0
- package/{dist/es → esm2015}/stepper/models/step-type.js +1 -0
- package/{dist/es → esm2015}/stepper/models/stepper-step.interface.js +1 -0
- package/{dist/es2015 → esm2015}/stepper/step.component.js +88 -66
- package/{dist/es2015 → esm2015}/stepper/stepper.component.js +141 -103
- package/{dist/es2015 → esm2015}/stepper/stepper.service.js +25 -14
- package/esm2015/stepper/template-directives/indicator-template.directive.js +26 -0
- package/esm2015/stepper/template-directives/label-template.directive.js +26 -0
- package/esm2015/stepper/template-directives/step-template.directive.js +26 -0
- package/{dist/es → esm2015}/stepper/template-directives.js +0 -0
- package/{dist/es → esm2015}/stepper/types.js +1 -0
- package/{dist/es2015 → esm2015}/stepper.module.js +22 -11
- package/{dist/es2015 → esm2015}/tabstrip/constants.js +0 -0
- package/{dist/es2015 → esm2015}/tabstrip/directives/tab-content.directive.js +12 -11
- package/{dist/es2015 → esm2015}/tabstrip/directives/tab-title.directive.js +12 -11
- package/{dist/es2015 → esm2015}/tabstrip/events/select-event.js +0 -0
- package/{dist/es2015 → esm2015}/tabstrip/events/tabclose-event.js +0 -0
- package/{dist/es2015 → esm2015}/tabstrip/events/tabscroll-event.js +8 -1
- package/{dist/es → esm2015}/tabstrip/events.js +0 -0
- package/esm2015/tabstrip/localization/custom-messages.component.js +41 -0
- package/esm2015/tabstrip/localization/localized-messages.directive.js +36 -0
- package/esm2015/tabstrip/localization/messages.js +23 -0
- package/{dist/es → esm2015}/tabstrip/models/button-state-change.js +1 -0
- package/{dist/es/avatar/models/models.js → esm2015/tabstrip/models/scroll-button-type.js} +1 -0
- package/{dist/es → esm2015}/tabstrip/models/scroll-buttons-visibility.js +1 -0
- package/{dist/es2015 → esm2015}/tabstrip/models/scrollable-settings.js +0 -2
- package/{dist/es → esm2015}/tabstrip/models/tab-alignment.js +1 -0
- package/{dist/es → esm2015}/tabstrip/models/tab-position.js +1 -0
- package/esm2015/tabstrip/models/tabstrip-tab.component.js +65 -0
- package/esm2015/tabstrip/rendering/tab.component.js +123 -0
- package/esm2015/tabstrip/scrollable-button.component.js +123 -0
- package/{dist/es2015 → esm2015}/tabstrip/tabstrip-scroll.service.js +16 -36
- package/{dist/es2015 → esm2015}/tabstrip/tabstrip.component.js +237 -149
- package/{dist/es2015 → esm2015}/tabstrip/tabstrip.service.js +11 -16
- package/{dist/es2015 → esm2015}/tabstrip/util.js +0 -0
- package/{dist/es2015 → esm2015}/tabstrip.module.js +26 -11
- package/{dist/es2015 → esm2015}/tilelayout/constants.js +0 -0
- package/{dist/es2015 → esm2015}/tilelayout/dragging-service.js +10 -12
- package/{dist/es → esm2015}/tilelayout/models/dragging-config.interface.js +1 -0
- package/{dist/es → esm2015}/tilelayout/models/flowmode.type.js +1 -0
- package/{dist/es → esm2015}/tilelayout/models/gap.interface.js +1 -0
- package/{dist/es2015 → esm2015}/tilelayout/reorder-event.js +1 -1
- package/{dist/es2015 → esm2015}/tilelayout/resize-event.js +1 -1
- package/esm2015/tilelayout/tilelayout-item-body.component.js +37 -0
- package/esm2015/tilelayout/tilelayout-item-header.component.js +52 -0
- package/{dist/es2015 → esm2015}/tilelayout/tilelayout-item.component.js +81 -76
- package/{dist/es2015 → esm2015}/tilelayout/tilelayout-resize-handle.directive.js +16 -20
- package/{dist/es2015 → esm2015}/tilelayout/tilelayout.component.js +79 -84
- package/{dist/es2015 → esm2015}/tilelayout/util.js +0 -0
- package/{dist/es2015 → esm2015}/tilelayout.module.js +22 -11
- package/{dist/es2015/expansionpanel → expansionpanel}/animations.d.ts +0 -0
- package/{dist/es2015/expansionpanel → expansionpanel}/events/action-event.d.ts +5 -1
- package/{dist/es2015/expansionpanel → expansionpanel}/expansionpanel-title.directive.d.ts +3 -0
- package/{dist/es2015/expansionpanel → expansionpanel}/expansionpanel.component.d.ts +9 -5
- package/expansionpanel.module.d.ts +18 -0
- package/{dist/fesm2015/index.js → fesm2015/kendo-angular-layout.js} +5420 -4961
- package/gridlayout.module.d.ts +17 -0
- package/{dist/es2015/card/card-body.component.d.ts → kendo-angular-layout.d.ts} +3 -4
- package/{dist/es2015/layout.module.d.ts → layout.module.d.ts} +15 -0
- package/{dist/es2015/layouts → layouts}/grid-layout.component.d.ts +7 -3
- package/{dist/es2015/layouts → layouts}/gridlayout-item.component.d.ts +3 -0
- package/{dist/es2015/layouts → layouts}/models/gridlayout-gap-settings.d.ts +0 -0
- package/{dist/es2015/layouts → layouts}/models/gridlayout-row-col-size.d.ts +0 -0
- package/{dist/es2015/layouts → layouts}/models/layout-align-settings.d.ts +0 -0
- package/{dist/es2015/layouts → layouts}/models/layout-horizontal-align.d.ts +0 -0
- package/{dist/es2015/layouts → layouts}/models/layout-vertical-align.d.ts +0 -0
- package/{dist/es/avatar/models/shape.js → layouts/models.d.ts} +6 -0
- package/{dist/es2015/layouts → layouts}/stack-layout.component.d.ts +9 -5
- package/{dist/es2015/layouts → layouts}/util.d.ts +3 -3
- package/{dist/es2015/main.d.ts → main.d.ts} +4 -0
- package/{dist/es2015/package-metadata.d.ts → package-metadata.d.ts} +0 -0
- package/package.json +44 -132
- package/panelbar/events/collapse-event.d.ts +15 -0
- package/panelbar/events/expand-event.d.ts +15 -0
- package/panelbar/events/select-event.d.ts +15 -0
- package/{dist/es2015/avatar.module.d.ts → panelbar/events/state-change-event.d.ts} +7 -3
- package/{dist/es/avatar/models/rounded.js → panelbar/events.d.ts} +4 -0
- package/{dist/es2015/panelbar → panelbar}/panelbar-content.directive.d.ts +3 -0
- package/{dist/es2015/panelbar → panelbar}/panelbar-expand-mode.d.ts +0 -0
- package/{dist/es2015/panelbar → panelbar}/panelbar-item-model.d.ts +0 -0
- package/{dist/es2015/panelbar → panelbar}/panelbar-item-template.directive.d.ts +3 -0
- package/{dist/es2015/panelbar → panelbar}/panelbar-item-title.directive.d.ts +3 -0
- package/{dist/es2015/panelbar → panelbar}/panelbar-item.component.d.ts +17 -13
- package/{dist/es2015/panelbar → panelbar}/panelbar.component.d.ts +38 -10
- package/{dist/es2015/panelbar → panelbar}/panelbar.service.d.ts +3 -0
- package/panelbar.module.d.ts +27 -0
- package/schematics/ngAdd/index.js +5 -2
- package/schematics/ngAdd/index.js.map +1 -1
- package/{dist/es2015/splitter → splitter}/splitter-bar.component.d.ts +8 -5
- package/{dist/es2015/splitter → splitter}/splitter-pane.component.d.ts +13 -8
- package/{dist/es2015/splitter → splitter}/splitter.component.d.ts +9 -6
- package/{dist/es2015/splitter → splitter}/splitter.service.d.ts +3 -0
- package/splitter.module.d.ts +23 -0
- package/{dist/es2015/stacklayout.module.d.ts → stacklayout.module.d.ts} +6 -0
- package/{dist/es2015/stepper → stepper}/events/activate-event.d.ts +6 -2
- package/{dist/es2015/stepper → stepper}/list.component.d.ts +9 -6
- package/{dist/es2015/stepper → stepper}/localization/custom-messages.component.d.ts +4 -1
- package/{dist/es2015/stepper → stepper}/localization/localized-messages.directive.d.ts +3 -0
- package/{dist/es2015/stepper → stepper}/localization/messages.d.ts +3 -0
- package/{dist/es2015/stepper → stepper}/models/constants.d.ts +0 -0
- package/{dist/es2015/stepper → stepper}/models/orientation.d.ts +0 -0
- package/{dist/es2015/stepper → stepper}/models/step-predicate.d.ts +0 -0
- package/{dist/es2015/stepper → stepper}/models/step-type.d.ts +0 -0
- package/{dist/es2015/stepper → stepper}/models/stepper-step.interface.d.ts +0 -0
- package/{dist/es2015/stepper → stepper}/step.component.d.ts +16 -13
- package/{dist/es2015/stepper → stepper}/stepper.component.d.ts +22 -9
- package/{dist/es2015/stepper → stepper}/stepper.service.d.ts +6 -4
- package/{dist/es2015/stepper → stepper}/template-directives/indicator-template.directive.d.ts +3 -0
- package/{dist/es2015/stepper → stepper}/template-directives/label-template.directive.d.ts +3 -0
- package/{dist/es2015/stepper → stepper}/template-directives/step-template.directive.d.ts +3 -0
- package/{dist/es2015/stepper → stepper}/template-directives.d.ts +0 -0
- package/{dist/es2015/stepper → stepper}/types.d.ts +0 -0
- package/stepper.module.d.ts +24 -0
- package/{dist/es2015/tabstrip → tabstrip}/constants.d.ts +0 -0
- package/{dist/es2015/tabstrip → tabstrip}/directives/tab-content.directive.d.ts +3 -0
- package/{dist/es2015/tabstrip → tabstrip}/directives/tab-title.directive.d.ts +3 -0
- package/{dist/es2015/tabstrip → tabstrip}/events/select-event.d.ts +0 -0
- package/{dist/es2015/tabstrip → tabstrip}/events/tabclose-event.d.ts +0 -0
- package/{dist/es2015/tabstrip → tabstrip}/events/tabscroll-event.d.ts +5 -1
- package/{dist/es2015/tabstrip → tabstrip}/events.d.ts +0 -0
- package/{dist/es2015/tabstrip → tabstrip}/localization/custom-messages.component.d.ts +4 -1
- package/{dist/es2015/tabstrip → tabstrip}/localization/localized-messages.directive.d.ts +3 -0
- package/{dist/es2015/tabstrip → tabstrip}/localization/messages.d.ts +3 -0
- package/{dist/es2015/tabstrip → tabstrip}/models/button-state-change.d.ts +0 -0
- package/{dist/es/drawer/models/constants.js → tabstrip/models/scroll-button-type.d.ts} +1 -1
- package/{dist/es2015/tabstrip → tabstrip}/models/scroll-buttons-visibility.d.ts +0 -0
- package/{dist/es2015/tabstrip → tabstrip}/models/scrollable-settings.d.ts +0 -0
- package/{dist/es2015/tabstrip → tabstrip}/models/tab-alignment.d.ts +0 -0
- package/{dist/es2015/tabstrip → tabstrip}/models/tab-position.d.ts +0 -0
- package/{dist/es2015/tabstrip → tabstrip}/models/tabstrip-tab.component.d.ts +5 -2
- package/tabstrip/rendering/tab.component.d.ts +32 -0
- package/tabstrip/scrollable-button.component.d.ts +38 -0
- package/{dist/es2015/tabstrip → tabstrip}/tabstrip-scroll.service.d.ts +9 -11
- package/{dist/es2015/tabstrip → tabstrip}/tabstrip.component.d.ts +25 -15
- package/{dist/es2015/tabstrip → tabstrip}/tabstrip.service.d.ts +3 -1
- package/{dist/es2015/tabstrip → tabstrip}/util.d.ts +0 -0
- package/tabstrip.module.d.ts +30 -0
- package/{dist/es2015/tilelayout → tilelayout}/constants.d.ts +0 -0
- package/{dist/es2015/tilelayout → tilelayout}/dragging-service.d.ts +7 -4
- package/{dist/es2015/tilelayout → tilelayout}/models/dragging-config.interface.d.ts +0 -0
- package/{dist/es2015/tilelayout → tilelayout}/models/flowmode.type.d.ts +0 -0
- package/{dist/es2015/tilelayout → tilelayout}/models/gap.interface.d.ts +0 -0
- package/{dist/es2015/tilelayout → tilelayout}/reorder-event.d.ts +1 -1
- package/{dist/es2015/tilelayout → tilelayout}/resize-event.d.ts +1 -1
- package/{dist/es2015/tilelayout → tilelayout}/tilelayout-item-body.component.d.ts +3 -0
- package/{dist/es2015/tilelayout → tilelayout}/tilelayout-item-header.component.d.ts +11 -5
- package/{dist/es2015/tilelayout → tilelayout}/tilelayout-item.component.d.ts +14 -5
- package/{dist/es2015/tilelayout → tilelayout}/tilelayout-resize-handle.directive.d.ts +3 -0
- package/{dist/es2015/tilelayout → tilelayout}/tilelayout.component.d.ts +10 -6
- package/{dist/es2015/tilelayout → tilelayout}/util.d.ts +0 -0
- package/tilelayout.module.d.ts +26 -0
- package/dist/cdn/js/kendo-angular-layout.js +0 -20
- package/dist/cdn/main.js +0 -5
- package/dist/es/avatar/avatar.component.js +0 -357
- package/dist/es/avatar.module.js +0 -29
- package/dist/es/card/card-actions.component.js +0 -151
- package/dist/es/card/card-body.component.js +0 -26
- package/dist/es/card/card-footer.component.js +0 -26
- package/dist/es/card/card-header.component.js +0 -26
- package/dist/es/card/card.component.js +0 -114
- package/dist/es/card/directives/card-media.directive.js +0 -25
- package/dist/es/card/directives/card-separator.directive.js +0 -66
- package/dist/es/card/directives/card-subtitle.directive.js +0 -25
- package/dist/es/card/directives/card-title.directive.js +0 -25
- package/dist/es/card/models/card-action.js +0 -13
- package/dist/es/card.module.js +0 -47
- package/dist/es/common/dom-queries.js +0 -52
- package/dist/es/common/preventable-event.js +0 -36
- package/dist/es/common/util.js +0 -91
- package/dist/es/drawer/animations.js +0 -146
- package/dist/es/drawer/drawer-container.component.js +0 -133
- package/dist/es/drawer/drawer-content.component.js +0 -28
- package/dist/es/drawer/drawer.component.js +0 -405
- package/dist/es/drawer/drawer.service.js +0 -45
- package/dist/es/drawer/events/select-event.js +0 -17
- package/dist/es/drawer/item.component.js +0 -123
- package/dist/es/drawer/list.component.js +0 -119
- package/dist/es/drawer/template-directives/drawer-template.directive.js +0 -27
- package/dist/es/drawer/template-directives/footer-template.directive.js +0 -25
- package/dist/es/drawer/template-directives/header-template.directive.js +0 -25
- package/dist/es/drawer/template-directives/item-template.directive.js +0 -25
- package/dist/es/drawer/util.js +0 -16
- package/dist/es/drawer.module.js +0 -45
- package/dist/es/expansionpanel/animations.js +0 -23
- package/dist/es/expansionpanel/events/action-event.js +0 -17
- package/dist/es/expansionpanel/expansionpanel-title.directive.js +0 -26
- package/dist/es/expansionpanel/expansionpanel.component.js +0 -441
- package/dist/es/expansionpanel.module.js +0 -32
- package/dist/es/gridlayout.module.js +0 -31
- package/dist/es/index.js +0 -29
- package/dist/es/layout.module.js +0 -71
- package/dist/es/layouts/grid-layout.component.js +0 -155
- package/dist/es/layouts/gridlayout-item.component.js +0 -52
- package/dist/es/layouts/stack-layout.component.js +0 -171
- package/dist/es/layouts/util.js +0 -102
- package/dist/es/package-metadata.js +0 -15
- package/dist/es/panelbar/panelbar-content.directive.js +0 -23
- package/dist/es/panelbar/panelbar-item-template.directive.js +0 -23
- package/dist/es/panelbar/panelbar-item-title.directive.js +0 -46
- package/dist/es/panelbar/panelbar-item.component.js +0 -455
- package/dist/es/panelbar/panelbar.component.js +0 -557
- package/dist/es/panelbar/panelbar.service.js +0 -43
- package/dist/es/panelbar.module.js +0 -44
- package/dist/es/splitter/splitter-bar.component.js +0 -282
- package/dist/es/splitter/splitter-pane.component.js +0 -270
- package/dist/es/splitter/splitter.component.js +0 -226
- package/dist/es/splitter/splitter.service.js +0 -153
- package/dist/es/splitter.module.js +0 -42
- package/dist/es/stacklayout.module.js +0 -29
- package/dist/es/stepper/events/activate-event.js +0 -17
- package/dist/es/stepper/list.component.js +0 -144
- package/dist/es/stepper/localization/custom-messages.component.js +0 -44
- package/dist/es/stepper/localization/localized-messages.directive.js +0 -35
- package/dist/es/stepper/localization/messages.js +0 -22
- package/dist/es/stepper/step.component.js +0 -272
- package/dist/es/stepper/stepper.component.js +0 -328
- package/dist/es/stepper/stepper.service.js +0 -161
- package/dist/es/stepper/template-directives/indicator-template.directive.js +0 -25
- package/dist/es/stepper/template-directives/label-template.directive.js +0 -25
- package/dist/es/stepper/template-directives/step-template.directive.js +0 -25
- package/dist/es/stepper.module.js +0 -47
- package/dist/es/tabstrip/constants.js +0 -33
- package/dist/es/tabstrip/directives/tab-content.directive.js +0 -49
- package/dist/es/tabstrip/directives/tab-title.directive.js +0 -54
- package/dist/es/tabstrip/events/select-event.js +0 -26
- package/dist/es/tabstrip/events/tabclose-event.js +0 -22
- package/dist/es/tabstrip/events/tabscroll-event.js +0 -19
- package/dist/es/tabstrip/localization/custom-messages.component.js +0 -44
- package/dist/es/tabstrip/localization/localized-messages.directive.js +0 -35
- package/dist/es/tabstrip/localization/messages.js +0 -22
- package/dist/es/tabstrip/models/scrollable-settings.js +0 -28
- package/dist/es/tabstrip/models/tabstrip-tab.component.js +0 -88
- package/dist/es/tabstrip/rendering/tab.component.js +0 -131
- package/dist/es/tabstrip/scrollable-button.component.js +0 -131
- package/dist/es/tabstrip/tabstrip-scroll.service.js +0 -226
- package/dist/es/tabstrip/tabstrip.component.js +0 -529
- package/dist/es/tabstrip/tabstrip.service.js +0 -158
- package/dist/es/tabstrip/util.js +0 -111
- package/dist/es/tabstrip.module.js +0 -51
- package/dist/es/tilelayout/constants.js +0 -70
- package/dist/es/tilelayout/dragging-service.js +0 -430
- package/dist/es/tilelayout/preventable-event.js +0 -29
- package/dist/es/tilelayout/reorder-event.js +0 -39
- package/dist/es/tilelayout/resize-event.js +0 -35
- package/dist/es/tilelayout/tilelayout-item-body.component.js +0 -32
- package/dist/es/tilelayout/tilelayout-item-header.component.js +0 -55
- package/dist/es/tilelayout/tilelayout-item.component.js +0 -198
- package/dist/es/tilelayout/tilelayout-resize-handle.directive.js +0 -61
- package/dist/es/tilelayout/tilelayout.component.js +0 -344
- package/dist/es/tilelayout/util.js +0 -88
- package/dist/es/tilelayout.module.js +0 -43
- package/dist/es2015/avatar/models/fill.js +0 -4
- package/dist/es2015/avatar/models/models.js +0 -4
- package/dist/es2015/avatar/models/size.js +0 -4
- package/dist/es2015/avatar/models/theme-color.js +0 -4
- package/dist/es2015/avatar.module.js +0 -28
- package/dist/es2015/card/card-actions.component.js +0 -146
- package/dist/es2015/card/card-body.component.js +0 -30
- package/dist/es2015/card/card-footer.component.js +0 -30
- package/dist/es2015/card/card-header.component.js +0 -30
- package/dist/es2015/card/card.component.js +0 -101
- package/dist/es2015/card/directives/card-media.directive.js +0 -27
- package/dist/es2015/card/directives/card-separator.directive.js +0 -60
- package/dist/es2015/card/directives/card-subtitle.directive.js +0 -27
- package/dist/es2015/card/directives/card-title.directive.js +0 -27
- package/dist/es2015/card/models/actions-layout.js +0 -4
- package/dist/es2015/card.module.d.ts +0 -10
- package/dist/es2015/common/direction.js +0 -4
- package/dist/es2015/common/orientation.js +0 -4
- package/dist/es2015/common/styling-classes.js +0 -4
- package/dist/es2015/drawer/drawer-container.component.js +0 -109
- package/dist/es2015/drawer/drawer-content.component.js +0 -29
- package/dist/es2015/drawer/item.component.js +0 -121
- package/dist/es2015/drawer/models/drawer-animation.interface.js +0 -4
- package/dist/es2015/drawer/models/drawer-item.interface.js +0 -4
- package/dist/es2015/drawer/models/mode.js +0 -4
- package/dist/es2015/drawer/models/position.js +0 -4
- package/dist/es2015/drawer/template-directives/drawer-template.directive.js +0 -26
- package/dist/es2015/drawer/template-directives/footer-template.directive.js +0 -24
- package/dist/es2015/drawer/template-directives/header-template.directive.js +0 -24
- package/dist/es2015/drawer/template-directives/item-template.directive.js +0 -24
- package/dist/es2015/drawer/template-directives.js +0 -8
- package/dist/es2015/drawer/types.js +0 -4
- package/dist/es2015/drawer.module.d.ts +0 -10
- package/dist/es2015/expansionpanel/expansionpanel-title.directive.js +0 -25
- package/dist/es2015/expansionpanel.module.d.ts +0 -10
- package/dist/es2015/expansionpanel.module.js +0 -31
- package/dist/es2015/gridlayout.module.d.ts +0 -10
- package/dist/es2015/gridlayout.module.js +0 -30
- package/dist/es2015/index.d.ts +0 -29
- package/dist/es2015/index.js +0 -29
- package/dist/es2015/index.metadata.json +0 -1
- package/dist/es2015/layouts/gridlayout-item.component.js +0 -53
- package/dist/es2015/layouts/models/gridlayout-gap-settings.js +0 -4
- package/dist/es2015/layouts/models/gridlayout-row-col-size.js +0 -4
- package/dist/es2015/layouts/models/layout-align-settings.js +0 -4
- package/dist/es2015/layouts/models/layout-horizontal-align.js +0 -4
- package/dist/es2015/layouts/models/layout-vertical-align.js +0 -4
- package/dist/es2015/layouts/models.js +0 -4
- package/dist/es2015/main.js +0 -72
- package/dist/es2015/panelbar/panelbar-content.directive.js +0 -22
- package/dist/es2015/panelbar/panelbar-expand-mode.js +0 -30
- package/dist/es2015/panelbar/panelbar-item-model.js +0 -4
- package/dist/es2015/panelbar/panelbar-item-template.directive.js +0 -22
- package/dist/es2015/panelbar/panelbar-item.component.js +0 -492
- package/dist/es2015/panelbar.module.d.ts +0 -17
- package/dist/es2015/splitter.module.d.ts +0 -14
- package/dist/es2015/stacklayout.module.js +0 -28
- package/dist/es2015/stepper/list.component.js +0 -161
- package/dist/es2015/stepper/localization/custom-messages.component.js +0 -36
- package/dist/es2015/stepper/localization/localized-messages.directive.js +0 -33
- package/dist/es2015/stepper/localization/messages.js +0 -16
- package/dist/es2015/stepper/models/orientation.js +0 -4
- package/dist/es2015/stepper/models/step-predicate.js +0 -4
- package/dist/es2015/stepper/models/step-type.js +0 -4
- package/dist/es2015/stepper/models/stepper-step.interface.js +0 -4
- package/dist/es2015/stepper/template-directives/indicator-template.directive.js +0 -24
- package/dist/es2015/stepper/template-directives/label-template.directive.js +0 -24
- package/dist/es2015/stepper/template-directives/step-template.directive.js +0 -24
- package/dist/es2015/stepper/template-directives.js +0 -7
- package/dist/es2015/stepper/types.js +0 -4
- package/dist/es2015/stepper.module.d.ts +0 -10
- package/dist/es2015/tabstrip/localization/custom-messages.component.js +0 -36
- package/dist/es2015/tabstrip/localization/localized-messages.directive.js +0 -31
- package/dist/es2015/tabstrip/localization/messages.js +0 -16
- package/dist/es2015/tabstrip/models/button-state-change.js +0 -4
- package/dist/es2015/tabstrip/models/scroll-buttons-visibility.js +0 -4
- package/dist/es2015/tabstrip/models/tab-alignment.js +0 -4
- package/dist/es2015/tabstrip/models/tab-position.js +0 -4
- package/dist/es2015/tabstrip/models/tabstrip-tab.component.js +0 -82
- package/dist/es2015/tabstrip/rendering/tab.component.d.ts +0 -28
- package/dist/es2015/tabstrip/rendering/tab.component.js +0 -116
- package/dist/es2015/tabstrip/scrollable-button.component.d.ts +0 -29
- package/dist/es2015/tabstrip/scrollable-button.component.js +0 -110
- package/dist/es2015/tabstrip.module.d.ts +0 -16
- package/dist/es2015/tilelayout/models/dragging-config.interface.js +0 -4
- package/dist/es2015/tilelayout/models/flowmode.type.js +0 -4
- package/dist/es2015/tilelayout/models/gap.interface.js +0 -4
- package/dist/es2015/tilelayout/preventable-event.d.ts +0 -21
- package/dist/es2015/tilelayout/preventable-event.js +0 -27
- package/dist/es2015/tilelayout/tilelayout-item-body.component.js +0 -36
- package/dist/es2015/tilelayout/tilelayout-item-header.component.js +0 -48
- package/dist/es2015/tilelayout.module.d.ts +0 -16
- package/dist/fesm5/index.js +0 -9179
- package/dist/npm/avatar/avatar.component.js +0 -359
- package/dist/npm/avatar/models/fill.js +0 -6
- package/dist/npm/avatar/models/models.js +0 -6
- package/dist/npm/avatar/models/rounded.js +0 -6
- package/dist/npm/avatar/models/shape.js +0 -6
- package/dist/npm/avatar/models/size.js +0 -6
- package/dist/npm/avatar/models/theme-color.js +0 -6
- package/dist/npm/avatar.module.js +0 -31
- package/dist/npm/card/card-actions.component.js +0 -153
- package/dist/npm/card/card-body.component.js +0 -28
- package/dist/npm/card/card-footer.component.js +0 -28
- package/dist/npm/card/card-header.component.js +0 -28
- package/dist/npm/card/card.component.js +0 -116
- package/dist/npm/card/directives/card-media.directive.js +0 -27
- package/dist/npm/card/directives/card-separator.directive.js +0 -68
- package/dist/npm/card/directives/card-subtitle.directive.js +0 -27
- package/dist/npm/card/directives/card-title.directive.js +0 -27
- package/dist/npm/card/models/actions-layout.js +0 -6
- package/dist/npm/card/models/card-action.js +0 -15
- package/dist/npm/card.module.js +0 -49
- package/dist/npm/common/direction.js +0 -6
- package/dist/npm/common/dom-queries.js +0 -55
- package/dist/npm/common/orientation.js +0 -6
- package/dist/npm/common/preventable-event.js +0 -38
- package/dist/npm/common/styling-classes.js +0 -6
- package/dist/npm/common/util.js +0 -93
- package/dist/npm/drawer/animations.js +0 -150
- package/dist/npm/drawer/drawer-container.component.js +0 -135
- package/dist/npm/drawer/drawer-content.component.js +0 -30
- package/dist/npm/drawer/drawer.component.js +0 -407
- package/dist/npm/drawer/drawer.service.js +0 -47
- package/dist/npm/drawer/events/select-event.js +0 -19
- package/dist/npm/drawer/item.component.js +0 -125
- package/dist/npm/drawer/list.component.js +0 -121
- package/dist/npm/drawer/models/constants.js +0 -10
- package/dist/npm/drawer/models/drawer-animation.interface.js +0 -6
- package/dist/npm/drawer/models/drawer-item.interface.js +0 -6
- package/dist/npm/drawer/models/mode.js +0 -6
- package/dist/npm/drawer/models/position.js +0 -6
- package/dist/npm/drawer/template-directives/drawer-template.directive.js +0 -29
- package/dist/npm/drawer/template-directives/footer-template.directive.js +0 -27
- package/dist/npm/drawer/template-directives/header-template.directive.js +0 -27
- package/dist/npm/drawer/template-directives/item-template.directive.js +0 -27
- package/dist/npm/drawer/template-directives.js +0 -14
- package/dist/npm/drawer/types.js +0 -6
- package/dist/npm/drawer/util.js +0 -18
- package/dist/npm/drawer.module.js +0 -47
- package/dist/npm/expansionpanel/animations.js +0 -27
- package/dist/npm/expansionpanel/events/action-event.js +0 -19
- package/dist/npm/expansionpanel/expansionpanel-title.directive.js +0 -28
- package/dist/npm/expansionpanel/expansionpanel.component.js +0 -443
- package/dist/npm/expansionpanel.module.js +0 -34
- package/dist/npm/gridlayout.module.js +0 -33
- package/dist/npm/index.js +0 -53
- package/dist/npm/layout.module.js +0 -73
- package/dist/npm/layouts/grid-layout.component.js +0 -157
- package/dist/npm/layouts/gridlayout-item.component.js +0 -54
- package/dist/npm/layouts/models/gridlayout-gap-settings.js +0 -6
- package/dist/npm/layouts/models/gridlayout-row-col-size.js +0 -6
- package/dist/npm/layouts/models/layout-align-settings.js +0 -6
- package/dist/npm/layouts/models/layout-horizontal-align.js +0 -6
- package/dist/npm/layouts/models/layout-vertical-align.js +0 -6
- package/dist/npm/layouts/models.js +0 -6
- package/dist/npm/layouts/stack-layout.component.js +0 -173
- package/dist/npm/layouts/util.js +0 -104
- package/dist/npm/main.js +0 -132
- package/dist/npm/package-metadata.js +0 -17
- package/dist/npm/panelbar/panelbar-content.directive.js +0 -25
- package/dist/npm/panelbar/panelbar-expand-mode.js +0 -32
- package/dist/npm/panelbar/panelbar-item-model.js +0 -6
- package/dist/npm/panelbar/panelbar-item-template.directive.js +0 -25
- package/dist/npm/panelbar/panelbar-item-title.directive.js +0 -48
- package/dist/npm/panelbar/panelbar-item.component.js +0 -457
- package/dist/npm/panelbar/panelbar.component.js +0 -559
- package/dist/npm/panelbar/panelbar.service.js +0 -45
- package/dist/npm/panelbar.module.js +0 -46
- package/dist/npm/splitter/splitter-bar.component.js +0 -287
- package/dist/npm/splitter/splitter-pane.component.js +0 -272
- package/dist/npm/splitter/splitter.component.js +0 -228
- package/dist/npm/splitter/splitter.service.js +0 -155
- package/dist/npm/splitter.module.js +0 -44
- package/dist/npm/stacklayout.module.js +0 -31
- package/dist/npm/stepper/events/activate-event.js +0 -19
- package/dist/npm/stepper/list.component.js +0 -146
- package/dist/npm/stepper/localization/custom-messages.component.js +0 -46
- package/dist/npm/stepper/localization/localized-messages.directive.js +0 -37
- package/dist/npm/stepper/localization/messages.js +0 -24
- package/dist/npm/stepper/models/constants.js +0 -10
- package/dist/npm/stepper/models/orientation.js +0 -6
- package/dist/npm/stepper/models/step-predicate.js +0 -6
- package/dist/npm/stepper/models/step-type.js +0 -6
- package/dist/npm/stepper/models/stepper-step.interface.js +0 -6
- package/dist/npm/stepper/step.component.js +0 -274
- package/dist/npm/stepper/stepper.component.js +0 -330
- package/dist/npm/stepper/stepper.service.js +0 -163
- package/dist/npm/stepper/template-directives/indicator-template.directive.js +0 -27
- package/dist/npm/stepper/template-directives/label-template.directive.js +0 -27
- package/dist/npm/stepper/template-directives/step-template.directive.js +0 -27
- package/dist/npm/stepper/template-directives.js +0 -12
- package/dist/npm/stepper/types.js +0 -6
- package/dist/npm/stepper.module.js +0 -49
- package/dist/npm/tabstrip/constants.js +0 -35
- package/dist/npm/tabstrip/directives/tab-content.directive.js +0 -51
- package/dist/npm/tabstrip/directives/tab-title.directive.js +0 -56
- package/dist/npm/tabstrip/events/select-event.js +0 -28
- package/dist/npm/tabstrip/events/tabclose-event.js +0 -24
- package/dist/npm/tabstrip/events/tabscroll-event.js +0 -21
- package/dist/npm/tabstrip/events.js +0 -10
- package/dist/npm/tabstrip/localization/custom-messages.component.js +0 -46
- package/dist/npm/tabstrip/localization/localized-messages.directive.js +0 -37
- package/dist/npm/tabstrip/localization/messages.js +0 -24
- package/dist/npm/tabstrip/models/button-state-change.js +0 -6
- package/dist/npm/tabstrip/models/scroll-buttons-visibility.js +0 -6
- package/dist/npm/tabstrip/models/scrollable-settings.js +0 -30
- package/dist/npm/tabstrip/models/tab-alignment.js +0 -6
- package/dist/npm/tabstrip/models/tab-position.js +0 -6
- package/dist/npm/tabstrip/models/tabstrip-tab.component.js +0 -90
- package/dist/npm/tabstrip/rendering/tab.component.js +0 -133
- package/dist/npm/tabstrip/scrollable-button.component.js +0 -133
- package/dist/npm/tabstrip/tabstrip-scroll.service.js +0 -228
- package/dist/npm/tabstrip/tabstrip.component.js +0 -531
- package/dist/npm/tabstrip/tabstrip.service.js +0 -160
- package/dist/npm/tabstrip/util.js +0 -113
- package/dist/npm/tabstrip.module.js +0 -53
- package/dist/npm/tilelayout/constants.js +0 -72
- package/dist/npm/tilelayout/dragging-service.js +0 -432
- package/dist/npm/tilelayout/models/dragging-config.interface.js +0 -6
- package/dist/npm/tilelayout/models/flowmode.type.js +0 -6
- package/dist/npm/tilelayout/models/gap.interface.js +0 -6
- package/dist/npm/tilelayout/preventable-event.js +0 -31
- package/dist/npm/tilelayout/reorder-event.js +0 -41
- package/dist/npm/tilelayout/resize-event.js +0 -37
- package/dist/npm/tilelayout/tilelayout-item-body.component.js +0 -34
- package/dist/npm/tilelayout/tilelayout-item-header.component.js +0 -57
- package/dist/npm/tilelayout/tilelayout-item.component.js +0 -200
- package/dist/npm/tilelayout/tilelayout-resize-handle.directive.js +0 -63
- package/dist/npm/tilelayout/tilelayout.component.js +0 -346
- package/dist/npm/tilelayout/util.js +0 -90
- package/dist/npm/tilelayout.module.js +0 -45
- package/dist/systemjs/kendo-angular-layout.js +0 -5
|
@@ -1,133 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as tslib_1 from "tslib";
|
|
6
|
-
import { Component, HostBinding, ContentChild } from '@angular/core';
|
|
7
|
-
import { L10N_PREFIX, LocalizationService } from '@progress/kendo-angular-l10n';
|
|
8
|
-
import { DrawerComponent } from './drawer.component';
|
|
9
|
-
import { isPresent } from '../common/util';
|
|
10
|
-
/**
|
|
11
|
-
* Serves as a container for the [Kendo UI Drawer component for Angular]({% slug overview_drawer %}) and its content.
|
|
12
|
-
*/
|
|
13
|
-
var DrawerContainerComponent = /** @class */ (function () {
|
|
14
|
-
function DrawerContainerComponent(localizationService) {
|
|
15
|
-
var _this = this;
|
|
16
|
-
this.localizationService = localizationService;
|
|
17
|
-
this.rtl = false;
|
|
18
|
-
this.dynamicRTLSubscription = this.localizationService.changes.subscribe(function (_a) {
|
|
19
|
-
var rtl = _a.rtl;
|
|
20
|
-
_this.rtl = rtl;
|
|
21
|
-
_this.direction = _this.rtl ? 'rtl' : 'ltr';
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
Object.defineProperty(DrawerContainerComponent.prototype, "hostClass", {
|
|
25
|
-
get: function () {
|
|
26
|
-
return true;
|
|
27
|
-
},
|
|
28
|
-
enumerable: true,
|
|
29
|
-
configurable: true
|
|
30
|
-
});
|
|
31
|
-
Object.defineProperty(DrawerContainerComponent.prototype, "overlayClass", {
|
|
32
|
-
get: function () {
|
|
33
|
-
return this.drawer.mode === 'overlay';
|
|
34
|
-
},
|
|
35
|
-
enumerable: true,
|
|
36
|
-
configurable: true
|
|
37
|
-
});
|
|
38
|
-
Object.defineProperty(DrawerContainerComponent.prototype, "miniClass", {
|
|
39
|
-
get: function () {
|
|
40
|
-
return this.drawer.mini;
|
|
41
|
-
},
|
|
42
|
-
enumerable: true,
|
|
43
|
-
configurable: true
|
|
44
|
-
});
|
|
45
|
-
Object.defineProperty(DrawerContainerComponent.prototype, "pushClass", {
|
|
46
|
-
get: function () {
|
|
47
|
-
return this.drawer.mode === 'push';
|
|
48
|
-
},
|
|
49
|
-
enumerable: true,
|
|
50
|
-
configurable: true
|
|
51
|
-
});
|
|
52
|
-
Object.defineProperty(DrawerContainerComponent.prototype, "isExpandedClass", {
|
|
53
|
-
get: function () {
|
|
54
|
-
return this.drawer.expanded;
|
|
55
|
-
},
|
|
56
|
-
enumerable: true,
|
|
57
|
-
configurable: true
|
|
58
|
-
});
|
|
59
|
-
DrawerContainerComponent.prototype.ngOnDestroy = function () {
|
|
60
|
-
if (this.dynamicRTLSubscription) {
|
|
61
|
-
this.dynamicRTLSubscription.unsubscribe();
|
|
62
|
-
}
|
|
63
|
-
};
|
|
64
|
-
Object.defineProperty(DrawerContainerComponent.prototype, "overlay", {
|
|
65
|
-
/**
|
|
66
|
-
* @hidden
|
|
67
|
-
*/
|
|
68
|
-
get: function () {
|
|
69
|
-
return isPresent(this.drawer) &&
|
|
70
|
-
this.drawer.expanded &&
|
|
71
|
-
this.drawer.mode === 'overlay';
|
|
72
|
-
},
|
|
73
|
-
enumerable: true,
|
|
74
|
-
configurable: true
|
|
75
|
-
});
|
|
76
|
-
/**
|
|
77
|
-
* @hidden
|
|
78
|
-
*/
|
|
79
|
-
DrawerContainerComponent.prototype.closeDrawer = function () {
|
|
80
|
-
if (this.overlay && this.drawer.autoCollapse) {
|
|
81
|
-
this.drawer.toggle(false);
|
|
82
|
-
}
|
|
83
|
-
};
|
|
84
|
-
tslib_1.__decorate([
|
|
85
|
-
HostBinding('class.k-drawer-container'),
|
|
86
|
-
tslib_1.__metadata("design:type", Boolean),
|
|
87
|
-
tslib_1.__metadata("design:paramtypes", [])
|
|
88
|
-
], DrawerContainerComponent.prototype, "hostClass", null);
|
|
89
|
-
tslib_1.__decorate([
|
|
90
|
-
HostBinding('class.k-drawer-overlay'),
|
|
91
|
-
tslib_1.__metadata("design:type", Boolean),
|
|
92
|
-
tslib_1.__metadata("design:paramtypes", [])
|
|
93
|
-
], DrawerContainerComponent.prototype, "overlayClass", null);
|
|
94
|
-
tslib_1.__decorate([
|
|
95
|
-
HostBinding('class.k-drawer-mini'),
|
|
96
|
-
tslib_1.__metadata("design:type", Boolean),
|
|
97
|
-
tslib_1.__metadata("design:paramtypes", [])
|
|
98
|
-
], DrawerContainerComponent.prototype, "miniClass", null);
|
|
99
|
-
tslib_1.__decorate([
|
|
100
|
-
HostBinding('class.k-drawer-push'),
|
|
101
|
-
tslib_1.__metadata("design:type", Boolean),
|
|
102
|
-
tslib_1.__metadata("design:paramtypes", [])
|
|
103
|
-
], DrawerContainerComponent.prototype, "pushClass", null);
|
|
104
|
-
tslib_1.__decorate([
|
|
105
|
-
HostBinding('class.k-drawer-expanded'),
|
|
106
|
-
tslib_1.__metadata("design:type", Boolean),
|
|
107
|
-
tslib_1.__metadata("design:paramtypes", [])
|
|
108
|
-
], DrawerContainerComponent.prototype, "isExpandedClass", null);
|
|
109
|
-
tslib_1.__decorate([
|
|
110
|
-
HostBinding('attr.dir'),
|
|
111
|
-
tslib_1.__metadata("design:type", String)
|
|
112
|
-
], DrawerContainerComponent.prototype, "direction", void 0);
|
|
113
|
-
tslib_1.__decorate([
|
|
114
|
-
ContentChild(DrawerComponent, { static: false }),
|
|
115
|
-
tslib_1.__metadata("design:type", DrawerComponent)
|
|
116
|
-
], DrawerContainerComponent.prototype, "drawer", void 0);
|
|
117
|
-
DrawerContainerComponent = tslib_1.__decorate([
|
|
118
|
-
Component({
|
|
119
|
-
selector: 'kendo-drawer-container',
|
|
120
|
-
providers: [
|
|
121
|
-
LocalizationService,
|
|
122
|
-
{
|
|
123
|
-
provide: L10N_PREFIX,
|
|
124
|
-
useValue: 'kendo.drawer.container'
|
|
125
|
-
}
|
|
126
|
-
],
|
|
127
|
-
template: "\n <div class=\"k-overlay\" *ngIf=\"overlay\" (click)=\"closeDrawer()\"></div>\n <ng-content></ng-content>\n "
|
|
128
|
-
}),
|
|
129
|
-
tslib_1.__metadata("design:paramtypes", [LocalizationService])
|
|
130
|
-
], DrawerContainerComponent);
|
|
131
|
-
return DrawerContainerComponent;
|
|
132
|
-
}());
|
|
133
|
-
export { DrawerContainerComponent };
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as tslib_1 from "tslib";
|
|
6
|
-
import { Component, HostBinding, ViewEncapsulation } from '@angular/core';
|
|
7
|
-
/**
|
|
8
|
-
* Represents the content of the [Kendo UI Drawer component for Angular]({% slug overview_drawer %}).
|
|
9
|
-
*/
|
|
10
|
-
var DrawerContentComponent = /** @class */ (function () {
|
|
11
|
-
function DrawerContentComponent() {
|
|
12
|
-
this.hostClasses = true;
|
|
13
|
-
}
|
|
14
|
-
tslib_1.__decorate([
|
|
15
|
-
HostBinding('class.k-drawer-content'),
|
|
16
|
-
tslib_1.__metadata("design:type", Boolean)
|
|
17
|
-
], DrawerContentComponent.prototype, "hostClasses", void 0);
|
|
18
|
-
DrawerContentComponent = tslib_1.__decorate([
|
|
19
|
-
Component({
|
|
20
|
-
selector: 'kendo-drawer-content',
|
|
21
|
-
template: "\n <ng-content></ng-content>\n ",
|
|
22
|
-
encapsulation: ViewEncapsulation.None
|
|
23
|
-
}),
|
|
24
|
-
tslib_1.__metadata("design:paramtypes", [])
|
|
25
|
-
], DrawerContentComponent);
|
|
26
|
-
return DrawerContentComponent;
|
|
27
|
-
}());
|
|
28
|
-
export { DrawerContentComponent };
|
|
@@ -1,405 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as tslib_1 from "tslib";
|
|
6
|
-
import { Component, ContentChild, ElementRef, EventEmitter, HostBinding, Input, Output } from '@angular/core';
|
|
7
|
-
import { validatePackage } from '@progress/kendo-licensing';
|
|
8
|
-
import { packageMetadata } from '../package-metadata';
|
|
9
|
-
import { DrawerTemplateDirective, DrawerItemTemplateDirective, DrawerHeaderTemplateDirective, DrawerFooterTemplateDirective } from './template-directives';
|
|
10
|
-
import { isPresent } from '../common/util';
|
|
11
|
-
import { AnimationBuilder } from '@angular/animations';
|
|
12
|
-
import { collapseAnimation, expandAnimation } from './animations';
|
|
13
|
-
import { take } from 'rxjs/operators';
|
|
14
|
-
import { DrawerService } from './drawer.service';
|
|
15
|
-
import { L10N_PREFIX, LocalizationService } from '@progress/kendo-angular-l10n';
|
|
16
|
-
var DEFAULT_ANIMATION = { type: 'slide', duration: 200 };
|
|
17
|
-
/**
|
|
18
|
-
* Represents the [Kendo UI Drawer component for Angular]({% slug overview_drawer %}).
|
|
19
|
-
*
|
|
20
|
-
* @example
|
|
21
|
-
* ```ts-preview
|
|
22
|
-
* _@Component({
|
|
23
|
-
* selector: 'my-app',
|
|
24
|
-
* template: `
|
|
25
|
-
* <kendo-drawer-container>
|
|
26
|
-
* <kendo-drawer #drawer
|
|
27
|
-
* [items]="items"
|
|
28
|
-
* mode="overlay"
|
|
29
|
-
* [(expanded)]="expanded">
|
|
30
|
-
* </kendo-drawer>
|
|
31
|
-
* <kendo-drawer-content>
|
|
32
|
-
* <button class="k-button" (click)="drawer.toggle()">Open the Drawer</button>
|
|
33
|
-
* </kendo-drawer-content>
|
|
34
|
-
* </kendo-drawer-container>
|
|
35
|
-
* `
|
|
36
|
-
* })
|
|
37
|
-
* class AppComponent {
|
|
38
|
-
* public expanded = false;
|
|
39
|
-
*
|
|
40
|
-
* public items: any[] = [
|
|
41
|
-
* { text: 'Inbox', icon: 'k-i-inbox' },
|
|
42
|
-
* { text: 'Notifications', icon: 'k-i-bell' },
|
|
43
|
-
* { text: 'Date', icon: 'k-i-calendar' }
|
|
44
|
-
* ];
|
|
45
|
-
* }
|
|
46
|
-
* ```
|
|
47
|
-
*/
|
|
48
|
-
var DrawerComponent = /** @class */ (function () {
|
|
49
|
-
function DrawerComponent(element, builder, localizationService, drawerService) {
|
|
50
|
-
var _this = this;
|
|
51
|
-
this.element = element;
|
|
52
|
-
this.builder = builder;
|
|
53
|
-
this.localizationService = localizationService;
|
|
54
|
-
this.drawerService = drawerService;
|
|
55
|
-
this.hostClasses = true;
|
|
56
|
-
/**
|
|
57
|
-
* Specifies the mode in which the Drawer will be displayed.
|
|
58
|
-
*
|
|
59
|
-
* The possible values are:
|
|
60
|
-
* * (Default) `overlay`
|
|
61
|
-
* * `push`
|
|
62
|
-
*/
|
|
63
|
-
this.mode = 'overlay';
|
|
64
|
-
/**
|
|
65
|
-
* Specifies the position of the Drawer
|
|
66
|
-
* ([see example]({% slug positioning_drawer %})).
|
|
67
|
-
*
|
|
68
|
-
* The possible values are:
|
|
69
|
-
* * (Default) `start`
|
|
70
|
-
* * `end`
|
|
71
|
-
*/
|
|
72
|
-
this.position = 'start';
|
|
73
|
-
/**
|
|
74
|
-
* Enables the mini (compact) view of the Drawer which is displayed when the component is collapsed
|
|
75
|
-
* ([see example]({% slug expandmodespositions_drawer %}#toc-mini-view)).
|
|
76
|
-
*/
|
|
77
|
-
this.mini = false;
|
|
78
|
-
/**
|
|
79
|
-
* Specifies the state of the Drawer.
|
|
80
|
-
*/
|
|
81
|
-
this.expanded = false;
|
|
82
|
-
/**
|
|
83
|
-
* Defines the width of the Drawer when it is expanded.
|
|
84
|
-
* Defaults to `240`.
|
|
85
|
-
*/
|
|
86
|
-
this.width = 240;
|
|
87
|
-
/**
|
|
88
|
-
* Defines the width of the Drawer when the mini view is enabled
|
|
89
|
-
* and the component is collapsed. Defaults to `60`.
|
|
90
|
-
*/
|
|
91
|
-
this.miniWidth = 50;
|
|
92
|
-
/**
|
|
93
|
-
* Specifies if the Drawer will be automatically collapsed when an item
|
|
94
|
-
* or the overlay is clicked. Defaults to `true`.
|
|
95
|
-
*/
|
|
96
|
-
this.autoCollapse = true;
|
|
97
|
-
/**
|
|
98
|
-
* Specifies the animation settings of the Drawer.
|
|
99
|
-
* ([see example]({% slug interaction_drawer %}#toc-toggling-between-states)).
|
|
100
|
-
*
|
|
101
|
-
* The possible values are:
|
|
102
|
-
* * Boolean
|
|
103
|
-
* * (Default) `true`
|
|
104
|
-
* * `false`
|
|
105
|
-
* * `DrawerAnimation`
|
|
106
|
-
* * (Default) `type?: 'slide'`
|
|
107
|
-
* * `duration`—Accepts a number in milliseconds. Defaults to `300ms`.
|
|
108
|
-
*/
|
|
109
|
-
this.animation = DEFAULT_ANIMATION;
|
|
110
|
-
/**
|
|
111
|
-
* Fires when the Drawer is expanded and its animation is complete.
|
|
112
|
-
*/
|
|
113
|
-
this.expand = new EventEmitter();
|
|
114
|
-
/**
|
|
115
|
-
* Fires when the Drawer is collapsed and its animation is complete.
|
|
116
|
-
*/
|
|
117
|
-
this.collapse = new EventEmitter();
|
|
118
|
-
/**
|
|
119
|
-
* Fires when a Drawer item is selected. This event is preventable.
|
|
120
|
-
*/
|
|
121
|
-
this.select = new EventEmitter();
|
|
122
|
-
/**
|
|
123
|
-
* Fires when the `expanded` property of the component was updated.
|
|
124
|
-
* Used to provide a two-way binding for the `expanded` property.
|
|
125
|
-
*/
|
|
126
|
-
this.expandedChange = new EventEmitter();
|
|
127
|
-
this.animationEnd = new EventEmitter();
|
|
128
|
-
this.rtl = false;
|
|
129
|
-
this._items = [];
|
|
130
|
-
validatePackage(packageMetadata);
|
|
131
|
-
this.dynamicRTLSubscription = this.localizationService.changes.subscribe(function (_a) {
|
|
132
|
-
var rtl = _a.rtl;
|
|
133
|
-
_this.rtl = rtl;
|
|
134
|
-
_this.direction = _this.rtl ? 'rtl' : 'ltr';
|
|
135
|
-
});
|
|
136
|
-
this.drawerService.owner = this;
|
|
137
|
-
}
|
|
138
|
-
Object.defineProperty(DrawerComponent.prototype, "startPositionClass", {
|
|
139
|
-
get: function () {
|
|
140
|
-
return this.position === 'start';
|
|
141
|
-
},
|
|
142
|
-
enumerable: true,
|
|
143
|
-
configurable: true
|
|
144
|
-
});
|
|
145
|
-
Object.defineProperty(DrawerComponent.prototype, "endPositionClass", {
|
|
146
|
-
get: function () {
|
|
147
|
-
return this.position === 'end';
|
|
148
|
-
},
|
|
149
|
-
enumerable: true,
|
|
150
|
-
configurable: true
|
|
151
|
-
});
|
|
152
|
-
Object.defineProperty(DrawerComponent.prototype, "overlayTransofrmStyles", {
|
|
153
|
-
get: function () {
|
|
154
|
-
if (this.mode === 'push') {
|
|
155
|
-
return;
|
|
156
|
-
}
|
|
157
|
-
if (this.expanded || this.minimized) {
|
|
158
|
-
return "translateX(0px)";
|
|
159
|
-
}
|
|
160
|
-
return "translateX(-100%)";
|
|
161
|
-
},
|
|
162
|
-
enumerable: true,
|
|
163
|
-
configurable: true
|
|
164
|
-
});
|
|
165
|
-
Object.defineProperty(DrawerComponent.prototype, "flexStyles", {
|
|
166
|
-
get: function () {
|
|
167
|
-
if (this.mode === 'overlay') {
|
|
168
|
-
return;
|
|
169
|
-
}
|
|
170
|
-
if (!this.expanded && !this.minimized) {
|
|
171
|
-
return 0;
|
|
172
|
-
}
|
|
173
|
-
return this.drawerWidth;
|
|
174
|
-
},
|
|
175
|
-
enumerable: true,
|
|
176
|
-
configurable: true
|
|
177
|
-
});
|
|
178
|
-
Object.defineProperty(DrawerComponent.prototype, "items", {
|
|
179
|
-
get: function () {
|
|
180
|
-
return this._items;
|
|
181
|
-
},
|
|
182
|
-
/**
|
|
183
|
-
* The collection of items that will be rendered in the Drawer.
|
|
184
|
-
*/
|
|
185
|
-
set: function (items) {
|
|
186
|
-
if (isPresent(items)) {
|
|
187
|
-
this._items = items;
|
|
188
|
-
this.drawerService.initSelection();
|
|
189
|
-
}
|
|
190
|
-
},
|
|
191
|
-
enumerable: true,
|
|
192
|
-
configurable: true
|
|
193
|
-
});
|
|
194
|
-
DrawerComponent.prototype.ngOnDestroy = function () {
|
|
195
|
-
if (this.dynamicRTLSubscription) {
|
|
196
|
-
this.dynamicRTLSubscription.unsubscribe();
|
|
197
|
-
}
|
|
198
|
-
};
|
|
199
|
-
Object.defineProperty(DrawerComponent.prototype, "minimized", {
|
|
200
|
-
/**
|
|
201
|
-
* @hidden
|
|
202
|
-
*/
|
|
203
|
-
get: function () {
|
|
204
|
-
return this.mini && !this.expanded;
|
|
205
|
-
},
|
|
206
|
-
enumerable: true,
|
|
207
|
-
configurable: true
|
|
208
|
-
});
|
|
209
|
-
Object.defineProperty(DrawerComponent.prototype, "drawerWidth", {
|
|
210
|
-
/**
|
|
211
|
-
* @hidden
|
|
212
|
-
*/
|
|
213
|
-
get: function () {
|
|
214
|
-
return this.minimized ? this.miniWidth : this.width;
|
|
215
|
-
},
|
|
216
|
-
enumerable: true,
|
|
217
|
-
configurable: true
|
|
218
|
-
});
|
|
219
|
-
/**
|
|
220
|
-
* Toggles the visibility of the Drawer.
|
|
221
|
-
*
|
|
222
|
-
* @param expanded? - Boolean. Specifies if the Drawer will be expanded or collapsed.
|
|
223
|
-
*/
|
|
224
|
-
DrawerComponent.prototype.toggle = function (expanded) {
|
|
225
|
-
var _this = this;
|
|
226
|
-
var previous = this.expanded;
|
|
227
|
-
var current = isPresent(expanded) ? expanded : !previous;
|
|
228
|
-
if (current === previous) {
|
|
229
|
-
return;
|
|
230
|
-
}
|
|
231
|
-
if (current === true) {
|
|
232
|
-
this.setExpanded(true);
|
|
233
|
-
}
|
|
234
|
-
else if (current === false && !this.animation) {
|
|
235
|
-
this.setExpanded(false);
|
|
236
|
-
}
|
|
237
|
-
if (this.animation) {
|
|
238
|
-
this.animationEnd.pipe(take(1))
|
|
239
|
-
.subscribe(function () { _this.onAnimationEnd(current); });
|
|
240
|
-
this.animate(current);
|
|
241
|
-
}
|
|
242
|
-
else {
|
|
243
|
-
this[current ? 'expand' : 'collapse'].emit();
|
|
244
|
-
}
|
|
245
|
-
};
|
|
246
|
-
DrawerComponent.prototype.onAnimationEnd = function (currentExpanded) {
|
|
247
|
-
if (currentExpanded) {
|
|
248
|
-
this.expand.emit();
|
|
249
|
-
}
|
|
250
|
-
else {
|
|
251
|
-
this.setExpanded(false);
|
|
252
|
-
this.collapse.emit();
|
|
253
|
-
}
|
|
254
|
-
};
|
|
255
|
-
DrawerComponent.prototype.setExpanded = function (value) {
|
|
256
|
-
this.expanded = value;
|
|
257
|
-
this.expandedChange.emit(value);
|
|
258
|
-
};
|
|
259
|
-
DrawerComponent.prototype.animate = function (expanded) {
|
|
260
|
-
var settings = {
|
|
261
|
-
mode: this.mode,
|
|
262
|
-
mini: this.mini,
|
|
263
|
-
miniWidth: this.miniWidth,
|
|
264
|
-
width: this.width,
|
|
265
|
-
rtl: this.rtl,
|
|
266
|
-
position: this.position,
|
|
267
|
-
animation: (typeof this.animation !== 'boolean') ? this.animation : DEFAULT_ANIMATION
|
|
268
|
-
};
|
|
269
|
-
var animation = expanded ? expandAnimation(settings) : collapseAnimation(settings);
|
|
270
|
-
var player = this.createPlayer(animation, this.element.nativeElement);
|
|
271
|
-
player.play();
|
|
272
|
-
};
|
|
273
|
-
DrawerComponent.prototype.createPlayer = function (animation, animatedElement) {
|
|
274
|
-
var _this = this;
|
|
275
|
-
var factory = this.builder.build(animation);
|
|
276
|
-
var player = factory.create(animatedElement);
|
|
277
|
-
player.onDone(function () {
|
|
278
|
-
if (player) {
|
|
279
|
-
_this.animationEnd.emit();
|
|
280
|
-
player.destroy();
|
|
281
|
-
player = null;
|
|
282
|
-
}
|
|
283
|
-
});
|
|
284
|
-
return player;
|
|
285
|
-
};
|
|
286
|
-
tslib_1.__decorate([
|
|
287
|
-
HostBinding('class.k-widget'),
|
|
288
|
-
HostBinding('class.k-drawer'),
|
|
289
|
-
tslib_1.__metadata("design:type", Boolean)
|
|
290
|
-
], DrawerComponent.prototype, "hostClasses", void 0);
|
|
291
|
-
tslib_1.__decorate([
|
|
292
|
-
HostBinding('class.k-drawer-start'),
|
|
293
|
-
tslib_1.__metadata("design:type", Boolean),
|
|
294
|
-
tslib_1.__metadata("design:paramtypes", [])
|
|
295
|
-
], DrawerComponent.prototype, "startPositionClass", null);
|
|
296
|
-
tslib_1.__decorate([
|
|
297
|
-
HostBinding('class.k-drawer-end'),
|
|
298
|
-
tslib_1.__metadata("design:type", Boolean),
|
|
299
|
-
tslib_1.__metadata("design:paramtypes", [])
|
|
300
|
-
], DrawerComponent.prototype, "endPositionClass", null);
|
|
301
|
-
tslib_1.__decorate([
|
|
302
|
-
HostBinding('style.transform'),
|
|
303
|
-
tslib_1.__metadata("design:type", String),
|
|
304
|
-
tslib_1.__metadata("design:paramtypes", [])
|
|
305
|
-
], DrawerComponent.prototype, "overlayTransofrmStyles", null);
|
|
306
|
-
tslib_1.__decorate([
|
|
307
|
-
HostBinding('style.flexBasis.px'),
|
|
308
|
-
tslib_1.__metadata("design:type", Number),
|
|
309
|
-
tslib_1.__metadata("design:paramtypes", [])
|
|
310
|
-
], DrawerComponent.prototype, "flexStyles", null);
|
|
311
|
-
tslib_1.__decorate([
|
|
312
|
-
Input(),
|
|
313
|
-
tslib_1.__metadata("design:type", String)
|
|
314
|
-
], DrawerComponent.prototype, "mode", void 0);
|
|
315
|
-
tslib_1.__decorate([
|
|
316
|
-
Input(),
|
|
317
|
-
tslib_1.__metadata("design:type", String)
|
|
318
|
-
], DrawerComponent.prototype, "position", void 0);
|
|
319
|
-
tslib_1.__decorate([
|
|
320
|
-
Input(),
|
|
321
|
-
tslib_1.__metadata("design:type", Boolean)
|
|
322
|
-
], DrawerComponent.prototype, "mini", void 0);
|
|
323
|
-
tslib_1.__decorate([
|
|
324
|
-
Input(),
|
|
325
|
-
tslib_1.__metadata("design:type", Boolean)
|
|
326
|
-
], DrawerComponent.prototype, "expanded", void 0);
|
|
327
|
-
tslib_1.__decorate([
|
|
328
|
-
Input(),
|
|
329
|
-
tslib_1.__metadata("design:type", Number)
|
|
330
|
-
], DrawerComponent.prototype, "width", void 0);
|
|
331
|
-
tslib_1.__decorate([
|
|
332
|
-
Input(),
|
|
333
|
-
tslib_1.__metadata("design:type", Number)
|
|
334
|
-
], DrawerComponent.prototype, "miniWidth", void 0);
|
|
335
|
-
tslib_1.__decorate([
|
|
336
|
-
Input(),
|
|
337
|
-
tslib_1.__metadata("design:type", Boolean)
|
|
338
|
-
], DrawerComponent.prototype, "autoCollapse", void 0);
|
|
339
|
-
tslib_1.__decorate([
|
|
340
|
-
Input(),
|
|
341
|
-
tslib_1.__metadata("design:type", Array),
|
|
342
|
-
tslib_1.__metadata("design:paramtypes", [Array])
|
|
343
|
-
], DrawerComponent.prototype, "items", null);
|
|
344
|
-
tslib_1.__decorate([
|
|
345
|
-
HostBinding('attr.dir'),
|
|
346
|
-
tslib_1.__metadata("design:type", String)
|
|
347
|
-
], DrawerComponent.prototype, "direction", void 0);
|
|
348
|
-
tslib_1.__decorate([
|
|
349
|
-
Input(),
|
|
350
|
-
tslib_1.__metadata("design:type", Object)
|
|
351
|
-
], DrawerComponent.prototype, "animation", void 0);
|
|
352
|
-
tslib_1.__decorate([
|
|
353
|
-
Output(),
|
|
354
|
-
tslib_1.__metadata("design:type", EventEmitter)
|
|
355
|
-
], DrawerComponent.prototype, "expand", void 0);
|
|
356
|
-
tslib_1.__decorate([
|
|
357
|
-
Output(),
|
|
358
|
-
tslib_1.__metadata("design:type", EventEmitter)
|
|
359
|
-
], DrawerComponent.prototype, "collapse", void 0);
|
|
360
|
-
tslib_1.__decorate([
|
|
361
|
-
Output(),
|
|
362
|
-
tslib_1.__metadata("design:type", EventEmitter)
|
|
363
|
-
], DrawerComponent.prototype, "select", void 0);
|
|
364
|
-
tslib_1.__decorate([
|
|
365
|
-
Output(),
|
|
366
|
-
tslib_1.__metadata("design:type", EventEmitter)
|
|
367
|
-
], DrawerComponent.prototype, "expandedChange", void 0);
|
|
368
|
-
tslib_1.__decorate([
|
|
369
|
-
ContentChild(DrawerTemplateDirective, { static: false }),
|
|
370
|
-
tslib_1.__metadata("design:type", DrawerTemplateDirective)
|
|
371
|
-
], DrawerComponent.prototype, "drawerTemplate", void 0);
|
|
372
|
-
tslib_1.__decorate([
|
|
373
|
-
ContentChild(DrawerFooterTemplateDirective, { static: false }),
|
|
374
|
-
tslib_1.__metadata("design:type", DrawerFooterTemplateDirective)
|
|
375
|
-
], DrawerComponent.prototype, "footerTemplate", void 0);
|
|
376
|
-
tslib_1.__decorate([
|
|
377
|
-
ContentChild(DrawerHeaderTemplateDirective, { static: false }),
|
|
378
|
-
tslib_1.__metadata("design:type", DrawerHeaderTemplateDirective)
|
|
379
|
-
], DrawerComponent.prototype, "headerTemplate", void 0);
|
|
380
|
-
tslib_1.__decorate([
|
|
381
|
-
ContentChild(DrawerItemTemplateDirective, { static: false }),
|
|
382
|
-
tslib_1.__metadata("design:type", DrawerItemTemplateDirective)
|
|
383
|
-
], DrawerComponent.prototype, "itemTemplate", void 0);
|
|
384
|
-
DrawerComponent = tslib_1.__decorate([
|
|
385
|
-
Component({
|
|
386
|
-
exportAs: 'kendoDrawer',
|
|
387
|
-
providers: [
|
|
388
|
-
LocalizationService,
|
|
389
|
-
DrawerService,
|
|
390
|
-
{
|
|
391
|
-
provide: L10N_PREFIX,
|
|
392
|
-
useValue: 'kendo.drawer'
|
|
393
|
-
}
|
|
394
|
-
],
|
|
395
|
-
selector: 'kendo-drawer',
|
|
396
|
-
template: "\n <div class=\"k-drawer-wrapper\" *ngIf=\"expanded || mini\" [style.width.px]=\"drawerWidth\">\n <ng-container *ngIf=\"!drawerTemplate\">\n <ng-template *ngIf=\"headerTemplate\"\n [ngTemplateOutlet]=\"headerTemplate?.templateRef\">\n </ng-template>\n\n <ul kendoDrawerList\n [items]=\"items\" [mini]=\"mini\" [expanded]=\"expanded\"\n [itemTemplate]=\"itemTemplate?.templateRef\"\n class=\"k-drawer-items\">\n </ul>\n\n <ng-template *ngIf=\"footerTemplate\"\n [ngTemplateOutlet]=\"footerTemplate?.templateRef\">\n </ng-template>\n </ng-container>\n\n <ng-template *ngIf=\"drawerTemplate\"\n [ngTemplateOutlet]=\"drawerTemplate?.templateRef\">\n </ng-template>\n </div>\n "
|
|
397
|
-
}),
|
|
398
|
-
tslib_1.__metadata("design:paramtypes", [ElementRef,
|
|
399
|
-
AnimationBuilder,
|
|
400
|
-
LocalizationService,
|
|
401
|
-
DrawerService])
|
|
402
|
-
], DrawerComponent);
|
|
403
|
-
return DrawerComponent;
|
|
404
|
-
}());
|
|
405
|
-
export { DrawerComponent };
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as tslib_1 from "tslib";
|
|
6
|
-
import { Injectable } from '@angular/core';
|
|
7
|
-
import { hasObservers } from '@progress/kendo-angular-common';
|
|
8
|
-
import { DrawerSelectEvent } from './events/select-event';
|
|
9
|
-
/**
|
|
10
|
-
* @hidden
|
|
11
|
-
*/
|
|
12
|
-
var DrawerService = /** @class */ (function () {
|
|
13
|
-
function DrawerService() {
|
|
14
|
-
this.selectedIndices = [];
|
|
15
|
-
}
|
|
16
|
-
DrawerService.prototype.emit = function (event, args) {
|
|
17
|
-
var drawer = this.owner;
|
|
18
|
-
var eventArgs = new DrawerSelectEvent(tslib_1.__assign({}, args, { sender: drawer }));
|
|
19
|
-
if (hasObservers(drawer[event])) {
|
|
20
|
-
drawer[event].emit(eventArgs);
|
|
21
|
-
}
|
|
22
|
-
return eventArgs.isDefaultPrevented();
|
|
23
|
-
};
|
|
24
|
-
DrawerService.prototype.onSelect = function (selectedIdx) {
|
|
25
|
-
this.selectedIndices = [selectedIdx];
|
|
26
|
-
var drawer = this.owner;
|
|
27
|
-
if (drawer.autoCollapse && !drawer.minimized) {
|
|
28
|
-
drawer.toggle(false);
|
|
29
|
-
}
|
|
30
|
-
};
|
|
31
|
-
DrawerService.prototype.initSelection = function () {
|
|
32
|
-
var items = this.owner.items;
|
|
33
|
-
this.selectedIndices = [];
|
|
34
|
-
for (var i = 0; i < items.length; i++) {
|
|
35
|
-
if (items[i].selected) {
|
|
36
|
-
this.selectedIndices.push(i);
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
};
|
|
40
|
-
DrawerService = tslib_1.__decorate([
|
|
41
|
-
Injectable()
|
|
42
|
-
], DrawerService);
|
|
43
|
-
return DrawerService;
|
|
44
|
-
}());
|
|
45
|
-
export { DrawerService };
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as tslib_1 from "tslib";
|
|
6
|
-
import { PreventableEvent } from '../../common/preventable-event';
|
|
7
|
-
/**
|
|
8
|
-
* Arguments for the `select` event of the Drawer.
|
|
9
|
-
*/
|
|
10
|
-
var DrawerSelectEvent = /** @class */ (function (_super) {
|
|
11
|
-
tslib_1.__extends(DrawerSelectEvent, _super);
|
|
12
|
-
function DrawerSelectEvent() {
|
|
13
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
14
|
-
}
|
|
15
|
-
return DrawerSelectEvent;
|
|
16
|
-
}(PreventableEvent));
|
|
17
|
-
export { DrawerSelectEvent };
|