@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
|
@@ -0,0 +1,36 @@
|
|
|
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 { Directive, forwardRef } from '@angular/core';
|
|
6
|
+
import { TabStripMessages } from './messages';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
import * as i1 from "@progress/kendo-angular-l10n";
|
|
9
|
+
/**
|
|
10
|
+
* @hidden
|
|
11
|
+
*/
|
|
12
|
+
export class LocalizedTabStripMessagesDirective extends TabStripMessages {
|
|
13
|
+
constructor(service) {
|
|
14
|
+
super();
|
|
15
|
+
this.service = service;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
LocalizedTabStripMessagesDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: LocalizedTabStripMessagesDirective, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
19
|
+
LocalizedTabStripMessagesDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: LocalizedTabStripMessagesDirective, selector: "[kendoTabStripLocalizedMessages]", providers: [
|
|
20
|
+
{
|
|
21
|
+
provide: TabStripMessages,
|
|
22
|
+
useExisting: forwardRef(() => LocalizedTabStripMessagesDirective)
|
|
23
|
+
}
|
|
24
|
+
], usesInheritance: true, ngImport: i0 });
|
|
25
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: LocalizedTabStripMessagesDirective, decorators: [{
|
|
26
|
+
type: Directive,
|
|
27
|
+
args: [{
|
|
28
|
+
providers: [
|
|
29
|
+
{
|
|
30
|
+
provide: TabStripMessages,
|
|
31
|
+
useExisting: forwardRef(() => LocalizedTabStripMessagesDirective)
|
|
32
|
+
}
|
|
33
|
+
],
|
|
34
|
+
selector: `[kendoTabStripLocalizedMessages]`
|
|
35
|
+
}]
|
|
36
|
+
}], ctorParameters: function () { return [{ type: i1.LocalizationService }]; } });
|
|
@@ -0,0 +1,23 @@
|
|
|
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 { Directive, Input } from '@angular/core';
|
|
6
|
+
import { ComponentMessages } from '@progress/kendo-angular-l10n';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
/**
|
|
9
|
+
* @hidden
|
|
10
|
+
*/
|
|
11
|
+
export class TabStripMessages extends ComponentMessages {
|
|
12
|
+
}
|
|
13
|
+
TabStripMessages.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TabStripMessages, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
14
|
+
TabStripMessages.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: TabStripMessages, selector: "kendo-tabstrip-messages-base", inputs: { closeTitle: "closeTitle" }, usesInheritance: true, ngImport: i0 });
|
|
15
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TabStripMessages, decorators: [{
|
|
16
|
+
type: Directive,
|
|
17
|
+
args: [{
|
|
18
|
+
// eslint-disable-next-line @angular-eslint/directive-selector
|
|
19
|
+
selector: 'kendo-tabstrip-messages-base'
|
|
20
|
+
}]
|
|
21
|
+
}], propDecorators: { closeTitle: [{
|
|
22
|
+
type: Input
|
|
23
|
+
}] } });
|
|
@@ -2,3 +2,4 @@
|
|
|
2
2
|
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
export {};
|
|
@@ -2,3 +2,4 @@
|
|
|
2
2
|
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
export {};
|
|
@@ -2,3 +2,4 @@
|
|
|
2
2
|
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
export {};
|
|
@@ -15,9 +15,7 @@ const normalizeSettings = ({ enabled = true, scrollButtons = 'auto', mouseScroll
|
|
|
15
15
|
prevButtonIcon,
|
|
16
16
|
nextButtonIcon
|
|
17
17
|
});
|
|
18
|
-
const ɵ0 = normalizeSettings;
|
|
19
18
|
/**
|
|
20
19
|
* @hidden
|
|
21
20
|
*/
|
|
22
21
|
export const normalizeScrollableSettings = (settings) => normalizeSettings(settings === false ? { enabled: false } : settings);
|
|
23
|
-
export { ɵ0 };
|
|
@@ -2,3 +2,4 @@
|
|
|
2
2
|
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
export {};
|
|
@@ -2,3 +2,4 @@
|
|
|
2
2
|
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
export {};
|
|
@@ -0,0 +1,65 @@
|
|
|
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 { Component, Input, ContentChildren, QueryList } from '@angular/core';
|
|
6
|
+
import { TabContentDirective } from '../directives/tab-content.directive';
|
|
7
|
+
import { TabTitleDirective } from '../directives/tab-title.directive';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
/**
|
|
10
|
+
* Represents the tab component of the TabStrip.
|
|
11
|
+
*/
|
|
12
|
+
export class TabStripTabComponent {
|
|
13
|
+
constructor() {
|
|
14
|
+
/**
|
|
15
|
+
* Used to disable a tab ([see example]({% slug tabs_tabstrip %}#toc-disabled-tabs)).
|
|
16
|
+
*
|
|
17
|
+
* Defaults to `false`.
|
|
18
|
+
*/
|
|
19
|
+
this.disabled = false;
|
|
20
|
+
this._tabContent = new QueryList();
|
|
21
|
+
/**
|
|
22
|
+
* @hidden
|
|
23
|
+
*
|
|
24
|
+
* Currently only disabled tabs can be focused. Otherwise they will be
|
|
25
|
+
* immediately selected
|
|
26
|
+
*/
|
|
27
|
+
this.focused = false;
|
|
28
|
+
}
|
|
29
|
+
get tabContent() {
|
|
30
|
+
return this._tabContent.first;
|
|
31
|
+
}
|
|
32
|
+
get tabTitle() {
|
|
33
|
+
return this._tabTitleDirective.first;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
TabStripTabComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TabStripTabComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
37
|
+
TabStripTabComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: TabStripTabComponent, selector: "kendo-tabstrip-tab", inputs: { title: "title", disabled: "disabled", cssClass: "cssClass", cssStyle: "cssStyle", selected: "selected", closable: "closable", closeIcon: "closeIcon" }, queries: [{ propertyName: "_tabContent", predicate: TabContentDirective }, { propertyName: "_tabTitleDirective", predicate: TabTitleDirective }], exportAs: ["kendoTabStripTab"], ngImport: i0, template: ``, isInline: true });
|
|
38
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TabStripTabComponent, decorators: [{
|
|
39
|
+
type: Component,
|
|
40
|
+
args: [{
|
|
41
|
+
exportAs: 'kendoTabStripTab',
|
|
42
|
+
selector: 'kendo-tabstrip-tab',
|
|
43
|
+
template: ``
|
|
44
|
+
}]
|
|
45
|
+
}], propDecorators: { title: [{
|
|
46
|
+
type: Input
|
|
47
|
+
}], disabled: [{
|
|
48
|
+
type: Input
|
|
49
|
+
}], cssClass: [{
|
|
50
|
+
type: Input
|
|
51
|
+
}], cssStyle: [{
|
|
52
|
+
type: Input
|
|
53
|
+
}], selected: [{
|
|
54
|
+
type: Input
|
|
55
|
+
}], closable: [{
|
|
56
|
+
type: Input
|
|
57
|
+
}], closeIcon: [{
|
|
58
|
+
type: Input
|
|
59
|
+
}], _tabContent: [{
|
|
60
|
+
type: ContentChildren,
|
|
61
|
+
args: [TabContentDirective]
|
|
62
|
+
}], _tabTitleDirective: [{
|
|
63
|
+
type: ContentChildren,
|
|
64
|
+
args: [TabTitleDirective]
|
|
65
|
+
}] } });
|
|
@@ -0,0 +1,123 @@
|
|
|
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 { Component, EventEmitter, HostBinding, Input, Output } from '@angular/core';
|
|
6
|
+
import { isPresent } from '../../common/util';
|
|
7
|
+
import { TabCloseEvent } from '../events/tabclose-event';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
import * as i1 from "@progress/kendo-angular-l10n";
|
|
10
|
+
import * as i2 from "@angular/common";
|
|
11
|
+
/**
|
|
12
|
+
* @hidden
|
|
13
|
+
*/
|
|
14
|
+
export class TabComponent {
|
|
15
|
+
constructor(localization) {
|
|
16
|
+
this.localization = localization;
|
|
17
|
+
this.tabClose = new EventEmitter();
|
|
18
|
+
this.hostClasses = true;
|
|
19
|
+
}
|
|
20
|
+
get activeClass() {
|
|
21
|
+
return this.tab.selected;
|
|
22
|
+
}
|
|
23
|
+
get disabledClass() {
|
|
24
|
+
return this.tab.disabled;
|
|
25
|
+
}
|
|
26
|
+
get focusedClass() {
|
|
27
|
+
return this.tab.focused;
|
|
28
|
+
}
|
|
29
|
+
get tabIndex() {
|
|
30
|
+
return this.tab.selected || this.tab.focused ? 0 : -1;
|
|
31
|
+
}
|
|
32
|
+
get tabClosable() {
|
|
33
|
+
if (this.tab.closable !== undefined) {
|
|
34
|
+
return this.tab.closable;
|
|
35
|
+
}
|
|
36
|
+
return this.tabStripClosable;
|
|
37
|
+
}
|
|
38
|
+
get closeButtonClasses() {
|
|
39
|
+
if (isPresent(this.tab.closeIcon)) {
|
|
40
|
+
return this.tab.closeIcon;
|
|
41
|
+
}
|
|
42
|
+
return this.tabStripCloseIcon;
|
|
43
|
+
}
|
|
44
|
+
get closeButtonTitle() {
|
|
45
|
+
return this.localization.get('closeTitle');
|
|
46
|
+
}
|
|
47
|
+
closeTab(index) {
|
|
48
|
+
const closeArgs = new TabCloseEvent(index, this.tab);
|
|
49
|
+
this.tabClose.emit(closeArgs);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
TabComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TabComponent, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
53
|
+
TabComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: TabComponent, selector: "[kendoTabStripTab]", inputs: { tab: "tab", index: "index", tabStripClosable: "tabStripClosable", tabStripCloseIcon: "tabStripCloseIcon" }, outputs: { tabClose: "tabClose" }, host: { properties: { "class.k-item": "this.hostClasses", "class.k-state-default": "this.hostClasses", "attr.aria-selected]": "this.activeClass", "class.k-state-active": "this.activeClass", "attr.aria-disabled]": "this.disabledClass", "class.k-state-disabled": "this.disabledClass", "class.k-state-focused": "this.focusedClass", "attr.tabindex": "this.tabIndex" } }, ngImport: i0, template: `
|
|
54
|
+
<span class="k-link" *ngIf="!tab.tabTitle">{{ tab.title }}</span>
|
|
55
|
+
<span class="k-link" *ngIf="tab.tabTitle">
|
|
56
|
+
<ng-template [ngTemplateOutlet]="tab.tabTitle?.templateRef">
|
|
57
|
+
</ng-template>
|
|
58
|
+
</span>
|
|
59
|
+
<span class="k-remove-tab k-button k-icon-button k-flat" *ngIf="tabClosable"
|
|
60
|
+
role="button"
|
|
61
|
+
[title]="closeButtonTitle"
|
|
62
|
+
[attr.aria-label]="closeButtonTitle"
|
|
63
|
+
(click)="closeTab(index)"
|
|
64
|
+
>
|
|
65
|
+
<span [ngClass]="closeButtonClasses"></span>
|
|
66
|
+
</span>
|
|
67
|
+
`, isInline: true, directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
68
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TabComponent, decorators: [{
|
|
69
|
+
type: Component,
|
|
70
|
+
args: [{
|
|
71
|
+
// eslint-disable-next-line @angular-eslint/component-selector
|
|
72
|
+
selector: '[kendoTabStripTab]',
|
|
73
|
+
template: `
|
|
74
|
+
<span class="k-link" *ngIf="!tab.tabTitle">{{ tab.title }}</span>
|
|
75
|
+
<span class="k-link" *ngIf="tab.tabTitle">
|
|
76
|
+
<ng-template [ngTemplateOutlet]="tab.tabTitle?.templateRef">
|
|
77
|
+
</ng-template>
|
|
78
|
+
</span>
|
|
79
|
+
<span class="k-remove-tab k-button k-icon-button k-flat" *ngIf="tabClosable"
|
|
80
|
+
role="button"
|
|
81
|
+
[title]="closeButtonTitle"
|
|
82
|
+
[attr.aria-label]="closeButtonTitle"
|
|
83
|
+
(click)="closeTab(index)"
|
|
84
|
+
>
|
|
85
|
+
<span [ngClass]="closeButtonClasses"></span>
|
|
86
|
+
</span>
|
|
87
|
+
`
|
|
88
|
+
}]
|
|
89
|
+
}], ctorParameters: function () { return [{ type: i1.LocalizationService }]; }, propDecorators: { tab: [{
|
|
90
|
+
type: Input
|
|
91
|
+
}], index: [{
|
|
92
|
+
type: Input
|
|
93
|
+
}], tabStripClosable: [{
|
|
94
|
+
type: Input
|
|
95
|
+
}], tabStripCloseIcon: [{
|
|
96
|
+
type: Input
|
|
97
|
+
}], tabClose: [{
|
|
98
|
+
type: Output
|
|
99
|
+
}], hostClasses: [{
|
|
100
|
+
type: HostBinding,
|
|
101
|
+
args: ['class.k-item']
|
|
102
|
+
}, {
|
|
103
|
+
type: HostBinding,
|
|
104
|
+
args: ['class.k-state-default']
|
|
105
|
+
}], activeClass: [{
|
|
106
|
+
type: HostBinding,
|
|
107
|
+
args: ['attr.aria-selected]']
|
|
108
|
+
}, {
|
|
109
|
+
type: HostBinding,
|
|
110
|
+
args: ['class.k-state-active']
|
|
111
|
+
}], disabledClass: [{
|
|
112
|
+
type: HostBinding,
|
|
113
|
+
args: ['attr.aria-disabled]']
|
|
114
|
+
}, {
|
|
115
|
+
type: HostBinding,
|
|
116
|
+
args: ['class.k-state-disabled']
|
|
117
|
+
}], focusedClass: [{
|
|
118
|
+
type: HostBinding,
|
|
119
|
+
args: ['class.k-state-focused']
|
|
120
|
+
}], tabIndex: [{
|
|
121
|
+
type: HostBinding,
|
|
122
|
+
args: ['attr.tabindex']
|
|
123
|
+
}] } });
|
|
@@ -0,0 +1,123 @@
|
|
|
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 { Component, HostBinding, Input, Output, EventEmitter } from '@angular/core';
|
|
6
|
+
import { Subscription } from 'rxjs';
|
|
7
|
+
import { DIRECTION_CLASSES, HIDDEN_CLASS } from './constants';
|
|
8
|
+
import { isTablistHorizontal } from './util';
|
|
9
|
+
import { TabScrollEvent } from './events/tabscroll-event';
|
|
10
|
+
import * as i0 from "@angular/core";
|
|
11
|
+
import * as i1 from "@angular/common";
|
|
12
|
+
/**
|
|
13
|
+
* @hidden
|
|
14
|
+
*/
|
|
15
|
+
export class TabStripScrollableButtonComponent {
|
|
16
|
+
constructor(host, renderer, ngZone) {
|
|
17
|
+
this.host = host;
|
|
18
|
+
this.renderer = renderer;
|
|
19
|
+
this.ngZone = ngZone;
|
|
20
|
+
this.btnClasses = true;
|
|
21
|
+
this.prev = false;
|
|
22
|
+
this.tabScroll = new EventEmitter();
|
|
23
|
+
this.onClick = new EventEmitter();
|
|
24
|
+
this.subs = new Subscription();
|
|
25
|
+
this.clickHandler = (scrollEvent) => {
|
|
26
|
+
const tabStripScrollEvent = this.emitScrollEvent(scrollEvent);
|
|
27
|
+
const isTabStripScrollEventPrevented = tabStripScrollEvent.isDefaultPrevented();
|
|
28
|
+
if (isTabStripScrollEventPrevented) {
|
|
29
|
+
return;
|
|
30
|
+
}
|
|
31
|
+
const buttonType = this.prev ? 'prev' : 'next';
|
|
32
|
+
this.onClick.emit(buttonType);
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
get prevClass() {
|
|
36
|
+
return this.prev;
|
|
37
|
+
}
|
|
38
|
+
get nextClass() {
|
|
39
|
+
return !this.prev;
|
|
40
|
+
}
|
|
41
|
+
get hostBoundingClientRect() {
|
|
42
|
+
return this.host.nativeElement.getBoundingClientRect();
|
|
43
|
+
}
|
|
44
|
+
get iconClass() {
|
|
45
|
+
return this.scrollButtonIconClass[this.prev ? 'prevScrollButton' : 'nextScrollButton'];
|
|
46
|
+
}
|
|
47
|
+
ngAfterViewInit() {
|
|
48
|
+
this.ngZone.runOutsideAngular(() => {
|
|
49
|
+
this.subs.add(this.renderer.listen(this.host.nativeElement, 'click', this.clickHandler));
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
ngOnDestroy() {
|
|
53
|
+
this.subs.unsubscribe();
|
|
54
|
+
}
|
|
55
|
+
toggle(show) {
|
|
56
|
+
this.renderer[show ? 'removeClass' : 'addClass'](this.host.nativeElement, HIDDEN_CLASS);
|
|
57
|
+
}
|
|
58
|
+
get scrollButtonIconClass() {
|
|
59
|
+
const defaultPrevIcon = isTablistHorizontal(this.tabPosition) ? DIRECTION_CLASSES.left : DIRECTION_CLASSES.up;
|
|
60
|
+
const defaultNextIcon = isTablistHorizontal(this.tabPosition) ? DIRECTION_CLASSES.right : DIRECTION_CLASSES.down;
|
|
61
|
+
if (typeof this.scrollable === 'object') {
|
|
62
|
+
const prevIcon = typeof this.scrollable.prevButtonIcon === 'undefined' ? defaultPrevIcon : this.scrollable.prevButtonIcon;
|
|
63
|
+
const nextIcon = typeof this.scrollable.nextButtonIcon === 'undefined' ? defaultNextIcon : this.scrollable.nextButtonIcon;
|
|
64
|
+
return { prevScrollButton: prevIcon, nextScrollButton: nextIcon };
|
|
65
|
+
}
|
|
66
|
+
return { prevScrollButton: defaultPrevIcon, nextScrollButton: defaultNextIcon };
|
|
67
|
+
}
|
|
68
|
+
emitScrollEvent(event) {
|
|
69
|
+
const scrollEvent = new TabScrollEvent({
|
|
70
|
+
originalEvent: event
|
|
71
|
+
});
|
|
72
|
+
this.tabScroll.emit(scrollEvent);
|
|
73
|
+
return scrollEvent;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
TabStripScrollableButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TabStripScrollableButtonComponent, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
|
77
|
+
TabStripScrollableButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: TabStripScrollableButtonComponent, selector: "[kendoTabStripScrollableButton]", inputs: { prev: "prev", tabPosition: "tabPosition", scrollable: "scrollable" }, outputs: { tabScroll: "tabScroll", onClick: "onClick" }, host: { properties: { "class.k-button": "this.btnClasses", "class.k-button-md": "this.btnClasses", "class.k-icon-button": "this.btnClasses", "class.k-rounded-md": "this.btnClasses", "class.k-button-flat": "this.btnClasses", "class.k-button-flat-base": "this.btnClasses", "class.k-tabstrip-prev": "this.prevClass", "class.k-tabstrip-next": "this.nextClass" } }, ngImport: i0, template: `
|
|
78
|
+
<span class="k-icon k-button-icon" [ngClass]="iconClass"></span>
|
|
79
|
+
`, isInline: true, directives: [{ type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
80
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TabStripScrollableButtonComponent, decorators: [{
|
|
81
|
+
type: Component,
|
|
82
|
+
args: [{
|
|
83
|
+
template: `
|
|
84
|
+
<span class="k-icon k-button-icon" [ngClass]="iconClass"></span>
|
|
85
|
+
`,
|
|
86
|
+
// eslint-disable-next-line @angular-eslint/component-selector
|
|
87
|
+
selector: '[kendoTabStripScrollableButton]'
|
|
88
|
+
}]
|
|
89
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i0.NgZone }]; }, propDecorators: { btnClasses: [{
|
|
90
|
+
type: HostBinding,
|
|
91
|
+
args: ['class.k-button']
|
|
92
|
+
}, {
|
|
93
|
+
type: HostBinding,
|
|
94
|
+
args: ['class.k-button-md']
|
|
95
|
+
}, {
|
|
96
|
+
type: HostBinding,
|
|
97
|
+
args: ['class.k-icon-button']
|
|
98
|
+
}, {
|
|
99
|
+
type: HostBinding,
|
|
100
|
+
args: ['class.k-rounded-md']
|
|
101
|
+
}, {
|
|
102
|
+
type: HostBinding,
|
|
103
|
+
args: ['class.k-button-flat']
|
|
104
|
+
}, {
|
|
105
|
+
type: HostBinding,
|
|
106
|
+
args: ['class.k-button-flat-base']
|
|
107
|
+
}], prevClass: [{
|
|
108
|
+
type: HostBinding,
|
|
109
|
+
args: ['class.k-tabstrip-prev']
|
|
110
|
+
}], nextClass: [{
|
|
111
|
+
type: HostBinding,
|
|
112
|
+
args: ['class.k-tabstrip-next']
|
|
113
|
+
}], prev: [{
|
|
114
|
+
type: Input
|
|
115
|
+
}], tabPosition: [{
|
|
116
|
+
type: Input
|
|
117
|
+
}], scrollable: [{
|
|
118
|
+
type: Input
|
|
119
|
+
}], tabScroll: [{
|
|
120
|
+
type: Output
|
|
121
|
+
}], onClick: [{
|
|
122
|
+
type: Output
|
|
123
|
+
}] } });
|
|
@@ -2,36 +2,25 @@
|
|
|
2
2
|
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { hasObservers, isDocumentAvailable } from '@progress/kendo-angular-common';
|
|
5
|
+
import { DEFAULT_SCROLL_BEHAVIOR } from './constants';
|
|
6
|
+
import { Injectable } from '@angular/core';
|
|
7
|
+
import { isDocumentAvailable } from '@progress/kendo-angular-common';
|
|
9
8
|
import { Subject } from 'rxjs';
|
|
10
|
-
import { TabScrollEvent } from './events/tabscroll-event';
|
|
11
9
|
import { getActiveTab, isTablistHorizontal, mouseScrollEnabled } from './util';
|
|
10
|
+
import * as i0 from "@angular/core";
|
|
12
11
|
/**
|
|
13
12
|
* @hidden
|
|
14
13
|
*/
|
|
15
|
-
|
|
14
|
+
export class ScrollService {
|
|
16
15
|
constructor(ngZone) {
|
|
17
16
|
this.ngZone = ngZone;
|
|
18
17
|
this.position = 0;
|
|
19
18
|
this.scrollButtonActiveStateChange = new Subject();
|
|
19
|
+
this.isDisabled = (buttonType) => this.owner[`${buttonType}ScrollButton`].host.nativeElement.classList.contains('k-disabled');
|
|
20
20
|
}
|
|
21
21
|
get tablistElement() {
|
|
22
22
|
return this.owner.tablist.nativeElement;
|
|
23
23
|
}
|
|
24
|
-
get scrollButtonIconClass() {
|
|
25
|
-
const tabStrip = this.owner;
|
|
26
|
-
const defaultPrevIcon = isTablistHorizontal(tabStrip.tabPosition) ? DIRECTION_CLASSES.left : DIRECTION_CLASSES.up;
|
|
27
|
-
const defaultNextIcon = isTablistHorizontal(tabStrip.tabPosition) ? DIRECTION_CLASSES.right : DIRECTION_CLASSES.down;
|
|
28
|
-
if (typeof tabStrip.scrollable === 'object') {
|
|
29
|
-
const prevIcon = typeof tabStrip.scrollable.prevButtonIcon === 'undefined' ? defaultPrevIcon : tabStrip.scrollable.prevButtonIcon;
|
|
30
|
-
const nextIcon = typeof tabStrip.scrollable.nextButtonIcon === 'undefined' ? defaultNextIcon : tabStrip.scrollable.nextButtonIcon;
|
|
31
|
-
return { prevScrollButton: prevIcon, nextScrollButton: nextIcon };
|
|
32
|
-
}
|
|
33
|
-
return { prevScrollButton: defaultPrevIcon, nextScrollButton: defaultNextIcon };
|
|
34
|
-
}
|
|
35
24
|
get tabstripSize() {
|
|
36
25
|
const hostElement = this.owner.wrapper.nativeElement;
|
|
37
26
|
const wrapperWidth = parseFloat(getComputedStyle(hostElement).width);
|
|
@@ -65,8 +54,8 @@ let ScrollService = class ScrollService {
|
|
|
65
54
|
if (!tabStrip.hasScrollButtons) {
|
|
66
55
|
return;
|
|
67
56
|
}
|
|
68
|
-
const currentPrevButtonActive = !
|
|
69
|
-
const currentNextButtonActive = !
|
|
57
|
+
const currentPrevButtonActive = !this.isDisabled('prev');
|
|
58
|
+
const currentNextButtonActive = !this.isDisabled('next');
|
|
70
59
|
const calculatedPrevButtonActive = this.position > 0 && this.tablistOverflowSize > 0;
|
|
71
60
|
const calculatedNextButtonActive = this.position < this.tablistOverflowSize + this.scrollButtonsSize && this.tablistOverflowSize > 0;
|
|
72
61
|
if (calculatedPrevButtonActive !== currentPrevButtonActive) {
|
|
@@ -98,10 +87,10 @@ let ScrollService = class ScrollService {
|
|
|
98
87
|
}
|
|
99
88
|
const isFirstTabActive = activeIndex === 0;
|
|
100
89
|
const isLastTabActive = activeIndex === this.owner.tabs.length - 1;
|
|
101
|
-
if (isFirstTabActive && !
|
|
90
|
+
if (isFirstTabActive && !this.isDisabled('prev')) {
|
|
102
91
|
this.ngZone.run(() => this.toggleButtonActiveState('prev', false));
|
|
103
92
|
}
|
|
104
|
-
if (isLastTabActive && !
|
|
93
|
+
if (isLastTabActive && !this.isDisabled('next')) {
|
|
105
94
|
this.ngZone.run(() => this.toggleButtonActiveState('next', false));
|
|
106
95
|
}
|
|
107
96
|
}
|
|
@@ -170,15 +159,6 @@ let ScrollService = class ScrollService {
|
|
|
170
159
|
this.position += scrollSpeed;
|
|
171
160
|
}
|
|
172
161
|
}
|
|
173
|
-
emitScrollEvent(ev) {
|
|
174
|
-
const scrollEvent = new TabScrollEvent({
|
|
175
|
-
originalEvent: ev
|
|
176
|
-
});
|
|
177
|
-
if (hasObservers(this.owner.tabScroll)) {
|
|
178
|
-
this.owner.tabScroll.emit(scrollEvent);
|
|
179
|
-
}
|
|
180
|
-
return scrollEvent;
|
|
181
|
-
}
|
|
182
162
|
restoreScrollPosition() {
|
|
183
163
|
if (isTablistHorizontal(this.owner.tabPosition)) {
|
|
184
164
|
this.tablistElement.scrollTo({ left: this.position });
|
|
@@ -191,9 +171,9 @@ let ScrollService = class ScrollService {
|
|
|
191
171
|
toggleButtonActiveState(buttonType, active) {
|
|
192
172
|
this.scrollButtonActiveStateChange.next({ buttonType, active });
|
|
193
173
|
}
|
|
194
|
-
}
|
|
195
|
-
ScrollService =
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
174
|
+
}
|
|
175
|
+
ScrollService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ScrollService, deps: [{ token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
176
|
+
ScrollService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ScrollService });
|
|
177
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ScrollService, decorators: [{
|
|
178
|
+
type: Injectable
|
|
179
|
+
}], ctorParameters: function () { return [{ type: i0.NgZone }]; } });
|