@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,88 +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, Input, ContentChildren, QueryList } from '@angular/core';
|
|
7
|
-
import { TabContentDirective } from '../directives/tab-content.directive';
|
|
8
|
-
import { TabTitleDirective } from '../directives/tab-title.directive';
|
|
9
|
-
/**
|
|
10
|
-
* Represents the tab component of the TabStrip.
|
|
11
|
-
*/
|
|
12
|
-
var TabStripTabComponent = /** @class */ (function () {
|
|
13
|
-
function TabStripTabComponent() {
|
|
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
|
-
Object.defineProperty(TabStripTabComponent.prototype, "tabContent", {
|
|
30
|
-
get: function () {
|
|
31
|
-
return this._tabContent.first;
|
|
32
|
-
},
|
|
33
|
-
enumerable: true,
|
|
34
|
-
configurable: true
|
|
35
|
-
});
|
|
36
|
-
Object.defineProperty(TabStripTabComponent.prototype, "tabTitle", {
|
|
37
|
-
get: function () {
|
|
38
|
-
return this._tabTitleDirective.first;
|
|
39
|
-
},
|
|
40
|
-
enumerable: true,
|
|
41
|
-
configurable: true
|
|
42
|
-
});
|
|
43
|
-
tslib_1.__decorate([
|
|
44
|
-
Input(),
|
|
45
|
-
tslib_1.__metadata("design:type", String)
|
|
46
|
-
], TabStripTabComponent.prototype, "title", void 0);
|
|
47
|
-
tslib_1.__decorate([
|
|
48
|
-
Input(),
|
|
49
|
-
tslib_1.__metadata("design:type", Boolean)
|
|
50
|
-
], TabStripTabComponent.prototype, "disabled", void 0);
|
|
51
|
-
tslib_1.__decorate([
|
|
52
|
-
Input(),
|
|
53
|
-
tslib_1.__metadata("design:type", Object)
|
|
54
|
-
], TabStripTabComponent.prototype, "cssClass", void 0);
|
|
55
|
-
tslib_1.__decorate([
|
|
56
|
-
Input(),
|
|
57
|
-
tslib_1.__metadata("design:type", Object)
|
|
58
|
-
], TabStripTabComponent.prototype, "cssStyle", void 0);
|
|
59
|
-
tslib_1.__decorate([
|
|
60
|
-
Input(),
|
|
61
|
-
tslib_1.__metadata("design:type", Boolean)
|
|
62
|
-
], TabStripTabComponent.prototype, "selected", void 0);
|
|
63
|
-
tslib_1.__decorate([
|
|
64
|
-
Input(),
|
|
65
|
-
tslib_1.__metadata("design:type", Boolean)
|
|
66
|
-
], TabStripTabComponent.prototype, "closable", void 0);
|
|
67
|
-
tslib_1.__decorate([
|
|
68
|
-
Input(),
|
|
69
|
-
tslib_1.__metadata("design:type", String)
|
|
70
|
-
], TabStripTabComponent.prototype, "closeIcon", void 0);
|
|
71
|
-
tslib_1.__decorate([
|
|
72
|
-
ContentChildren(TabContentDirective),
|
|
73
|
-
tslib_1.__metadata("design:type", QueryList)
|
|
74
|
-
], TabStripTabComponent.prototype, "_tabContent", void 0);
|
|
75
|
-
tslib_1.__decorate([
|
|
76
|
-
ContentChildren(TabTitleDirective),
|
|
77
|
-
tslib_1.__metadata("design:type", QueryList)
|
|
78
|
-
], TabStripTabComponent.prototype, "_tabTitleDirective", void 0);
|
|
79
|
-
TabStripTabComponent = tslib_1.__decorate([
|
|
80
|
-
Component({
|
|
81
|
-
exportAs: 'kendoTabStripTab',
|
|
82
|
-
selector: 'kendo-tabstrip-tab',
|
|
83
|
-
template: ""
|
|
84
|
-
})
|
|
85
|
-
], TabStripTabComponent);
|
|
86
|
-
return TabStripTabComponent;
|
|
87
|
-
}());
|
|
88
|
-
export { TabStripTabComponent };
|
|
@@ -1,131 +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 { TabStripTabComponent } from '../models/tabstrip-tab.component';
|
|
7
|
-
import { TabStripService } from '../tabstrip.service';
|
|
8
|
-
import { Component, HostBinding, Input } from '@angular/core';
|
|
9
|
-
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
10
|
-
import { isPresent } from '../../common/util';
|
|
11
|
-
/**
|
|
12
|
-
* @hidden
|
|
13
|
-
*/
|
|
14
|
-
var TabComponent = /** @class */ (function () {
|
|
15
|
-
function TabComponent(localization, tabstripService) {
|
|
16
|
-
this.localization = localization;
|
|
17
|
-
this.tabstripService = tabstripService;
|
|
18
|
-
this.hostClasses = true;
|
|
19
|
-
}
|
|
20
|
-
Object.defineProperty(TabComponent.prototype, "activeClass", {
|
|
21
|
-
get: function () {
|
|
22
|
-
return this.tab.selected;
|
|
23
|
-
},
|
|
24
|
-
enumerable: true,
|
|
25
|
-
configurable: true
|
|
26
|
-
});
|
|
27
|
-
Object.defineProperty(TabComponent.prototype, "disabledClass", {
|
|
28
|
-
get: function () {
|
|
29
|
-
return this.tab.disabled;
|
|
30
|
-
},
|
|
31
|
-
enumerable: true,
|
|
32
|
-
configurable: true
|
|
33
|
-
});
|
|
34
|
-
Object.defineProperty(TabComponent.prototype, "focusedClass", {
|
|
35
|
-
get: function () {
|
|
36
|
-
return this.tab.focused;
|
|
37
|
-
},
|
|
38
|
-
enumerable: true,
|
|
39
|
-
configurable: true
|
|
40
|
-
});
|
|
41
|
-
Object.defineProperty(TabComponent.prototype, "tabIndex", {
|
|
42
|
-
get: function () {
|
|
43
|
-
return this.tab.selected || this.tab.focused ? 0 : -1;
|
|
44
|
-
},
|
|
45
|
-
enumerable: true,
|
|
46
|
-
configurable: true
|
|
47
|
-
});
|
|
48
|
-
Object.defineProperty(TabComponent.prototype, "tabClosable", {
|
|
49
|
-
get: function () {
|
|
50
|
-
if (this.tab.closable !== undefined) {
|
|
51
|
-
return this.tab.closable;
|
|
52
|
-
}
|
|
53
|
-
return this.tabStripClosable;
|
|
54
|
-
},
|
|
55
|
-
enumerable: true,
|
|
56
|
-
configurable: true
|
|
57
|
-
});
|
|
58
|
-
Object.defineProperty(TabComponent.prototype, "closeButtonClasses", {
|
|
59
|
-
get: function () {
|
|
60
|
-
if (isPresent(this.tab.closeIcon)) {
|
|
61
|
-
return this.tab.closeIcon;
|
|
62
|
-
}
|
|
63
|
-
return this.tabStripCloseIcon;
|
|
64
|
-
},
|
|
65
|
-
enumerable: true,
|
|
66
|
-
configurable: true
|
|
67
|
-
});
|
|
68
|
-
Object.defineProperty(TabComponent.prototype, "closeButtonTitle", {
|
|
69
|
-
get: function () {
|
|
70
|
-
return this.localization.get('closeTitle');
|
|
71
|
-
},
|
|
72
|
-
enumerable: true,
|
|
73
|
-
configurable: true
|
|
74
|
-
});
|
|
75
|
-
TabComponent.prototype.closeTab = function (index) {
|
|
76
|
-
this.tabstripService.onTabClose(this.tab, index);
|
|
77
|
-
};
|
|
78
|
-
tslib_1.__decorate([
|
|
79
|
-
Input(),
|
|
80
|
-
tslib_1.__metadata("design:type", TabStripTabComponent)
|
|
81
|
-
], TabComponent.prototype, "tab", void 0);
|
|
82
|
-
tslib_1.__decorate([
|
|
83
|
-
Input(),
|
|
84
|
-
tslib_1.__metadata("design:type", Number)
|
|
85
|
-
], TabComponent.prototype, "index", void 0);
|
|
86
|
-
tslib_1.__decorate([
|
|
87
|
-
Input(),
|
|
88
|
-
tslib_1.__metadata("design:type", Boolean)
|
|
89
|
-
], TabComponent.prototype, "tabStripClosable", void 0);
|
|
90
|
-
tslib_1.__decorate([
|
|
91
|
-
Input(),
|
|
92
|
-
tslib_1.__metadata("design:type", String)
|
|
93
|
-
], TabComponent.prototype, "tabStripCloseIcon", void 0);
|
|
94
|
-
tslib_1.__decorate([
|
|
95
|
-
HostBinding('class.k-item'),
|
|
96
|
-
HostBinding('class.k-state-default'),
|
|
97
|
-
tslib_1.__metadata("design:type", Boolean)
|
|
98
|
-
], TabComponent.prototype, "hostClasses", void 0);
|
|
99
|
-
tslib_1.__decorate([
|
|
100
|
-
HostBinding('attr.aria-selected]'),
|
|
101
|
-
HostBinding('class.k-state-active'),
|
|
102
|
-
tslib_1.__metadata("design:type", Boolean),
|
|
103
|
-
tslib_1.__metadata("design:paramtypes", [])
|
|
104
|
-
], TabComponent.prototype, "activeClass", null);
|
|
105
|
-
tslib_1.__decorate([
|
|
106
|
-
HostBinding('attr.aria-disabled]'),
|
|
107
|
-
HostBinding('class.k-state-disabled'),
|
|
108
|
-
tslib_1.__metadata("design:type", Boolean),
|
|
109
|
-
tslib_1.__metadata("design:paramtypes", [])
|
|
110
|
-
], TabComponent.prototype, "disabledClass", null);
|
|
111
|
-
tslib_1.__decorate([
|
|
112
|
-
HostBinding('class.k-state-focused'),
|
|
113
|
-
tslib_1.__metadata("design:type", Boolean),
|
|
114
|
-
tslib_1.__metadata("design:paramtypes", [])
|
|
115
|
-
], TabComponent.prototype, "focusedClass", null);
|
|
116
|
-
tslib_1.__decorate([
|
|
117
|
-
HostBinding('attr.tabindex'),
|
|
118
|
-
tslib_1.__metadata("design:type", Number),
|
|
119
|
-
tslib_1.__metadata("design:paramtypes", [])
|
|
120
|
-
], TabComponent.prototype, "tabIndex", null);
|
|
121
|
-
TabComponent = tslib_1.__decorate([
|
|
122
|
-
Component({
|
|
123
|
-
selector: '[kendoTabStripTab]',
|
|
124
|
-
template: "\n <span class=\"k-link\" *ngIf=\"!tab.tabTitle\">{{ tab.title }}</span>\n <span class=\"k-link\" *ngIf=\"tab.tabTitle\">\n <ng-template [ngTemplateOutlet]=\"tab.tabTitle?.templateRef\">\n </ng-template>\n </span>\n <span class=\"k-remove-tab k-button k-icon-button k-flat\" *ngIf=\"tabClosable\"\n role=\"button\"\n [title]=\"closeButtonTitle\"\n [attr.aria-label]=\"closeButtonTitle\"\n (click)=\"closeTab(index)\"\n >\n <span [ngClass]=\"closeButtonClasses\"></span>\n </span>\n "
|
|
125
|
-
}),
|
|
126
|
-
tslib_1.__metadata("design:paramtypes", [LocalizationService,
|
|
127
|
-
TabStripService])
|
|
128
|
-
], TabComponent);
|
|
129
|
-
return TabComponent;
|
|
130
|
-
}());
|
|
131
|
-
export { TabComponent };
|
|
@@ -1,131 +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, ElementRef, HostBinding, Input, Renderer2, NgZone } from '@angular/core';
|
|
7
|
-
import { Subscription } from 'rxjs';
|
|
8
|
-
import { ScrollService } from './tabstrip-scroll.service';
|
|
9
|
-
import { HIDDEN_CLASS } from './constants';
|
|
10
|
-
/**
|
|
11
|
-
* @hidden
|
|
12
|
-
*/
|
|
13
|
-
var TabStripScrollableButtonComponent = /** @class */ (function () {
|
|
14
|
-
function TabStripScrollableButtonComponent(host, scrollService, renderer, ngZone) {
|
|
15
|
-
var _this = this;
|
|
16
|
-
this.host = host;
|
|
17
|
-
this.scrollService = scrollService;
|
|
18
|
-
this.renderer = renderer;
|
|
19
|
-
this.ngZone = ngZone;
|
|
20
|
-
this.btnClasses = true;
|
|
21
|
-
this.prev = false;
|
|
22
|
-
this._disabled = false;
|
|
23
|
-
this.subs = new Subscription();
|
|
24
|
-
this.clickHandler = function (scrollEvent) {
|
|
25
|
-
var tabStripScrollEvent = _this.scrollService.emitScrollEvent(scrollEvent);
|
|
26
|
-
var isTabStripScrollEventPrevented = tabStripScrollEvent.isDefaultPrevented();
|
|
27
|
-
if (isTabStripScrollEventPrevented) {
|
|
28
|
-
return;
|
|
29
|
-
}
|
|
30
|
-
var buttonType = _this.prev ? 'prev' : 'next';
|
|
31
|
-
_this.scrollService.scrollTabs(buttonType);
|
|
32
|
-
};
|
|
33
|
-
this.subs.add(this.scrollService.scrollButtonActiveStateChange.subscribe(function (activeButtonSettings) {
|
|
34
|
-
var applyActiveState = (_this.prev && activeButtonSettings.buttonType === 'prev') ||
|
|
35
|
-
(!_this.prev && activeButtonSettings.buttonType === 'next');
|
|
36
|
-
if (applyActiveState) {
|
|
37
|
-
_this.disabled = !activeButtonSettings.active;
|
|
38
|
-
}
|
|
39
|
-
}));
|
|
40
|
-
}
|
|
41
|
-
Object.defineProperty(TabStripScrollableButtonComponent.prototype, "prevClass", {
|
|
42
|
-
get: function () {
|
|
43
|
-
return this.prev;
|
|
44
|
-
},
|
|
45
|
-
enumerable: true,
|
|
46
|
-
configurable: true
|
|
47
|
-
});
|
|
48
|
-
Object.defineProperty(TabStripScrollableButtonComponent.prototype, "nextClass", {
|
|
49
|
-
get: function () {
|
|
50
|
-
return !this.prev;
|
|
51
|
-
},
|
|
52
|
-
enumerable: true,
|
|
53
|
-
configurable: true
|
|
54
|
-
});
|
|
55
|
-
Object.defineProperty(TabStripScrollableButtonComponent.prototype, "disabled", {
|
|
56
|
-
get: function () {
|
|
57
|
-
return this._disabled;
|
|
58
|
-
},
|
|
59
|
-
set: function (value) {
|
|
60
|
-
this._disabled = value;
|
|
61
|
-
},
|
|
62
|
-
enumerable: true,
|
|
63
|
-
configurable: true
|
|
64
|
-
});
|
|
65
|
-
Object.defineProperty(TabStripScrollableButtonComponent.prototype, "hostBoundingClientRect", {
|
|
66
|
-
get: function () {
|
|
67
|
-
return this.host.nativeElement.getBoundingClientRect();
|
|
68
|
-
},
|
|
69
|
-
enumerable: true,
|
|
70
|
-
configurable: true
|
|
71
|
-
});
|
|
72
|
-
Object.defineProperty(TabStripScrollableButtonComponent.prototype, "iconClass", {
|
|
73
|
-
get: function () {
|
|
74
|
-
return this.scrollService.scrollButtonIconClass[this.prev ? 'prevScrollButton' : 'nextScrollButton'];
|
|
75
|
-
},
|
|
76
|
-
enumerable: true,
|
|
77
|
-
configurable: true
|
|
78
|
-
});
|
|
79
|
-
TabStripScrollableButtonComponent.prototype.ngAfterViewInit = function () {
|
|
80
|
-
var _this = this;
|
|
81
|
-
this.ngZone.runOutsideAngular(function () {
|
|
82
|
-
_this.subs.add(_this.renderer.listen(_this.host.nativeElement, 'click', _this.clickHandler));
|
|
83
|
-
});
|
|
84
|
-
};
|
|
85
|
-
TabStripScrollableButtonComponent.prototype.ngOnDestroy = function () {
|
|
86
|
-
this.subs.unsubscribe();
|
|
87
|
-
};
|
|
88
|
-
TabStripScrollableButtonComponent.prototype.toggle = function (show) {
|
|
89
|
-
this.renderer[show ? 'removeClass' : 'addClass'](this.host.nativeElement, HIDDEN_CLASS);
|
|
90
|
-
};
|
|
91
|
-
tslib_1.__decorate([
|
|
92
|
-
HostBinding('class.k-button'),
|
|
93
|
-
HostBinding('class.k-button-md'),
|
|
94
|
-
HostBinding('class.k-icon-button'),
|
|
95
|
-
HostBinding('class.k-rounded-md'),
|
|
96
|
-
HostBinding('class.k-button-flat'),
|
|
97
|
-
HostBinding('class.k-button-flat-base'),
|
|
98
|
-
tslib_1.__metadata("design:type", Boolean)
|
|
99
|
-
], TabStripScrollableButtonComponent.prototype, "btnClasses", void 0);
|
|
100
|
-
tslib_1.__decorate([
|
|
101
|
-
HostBinding('class.k-tabstrip-prev'),
|
|
102
|
-
tslib_1.__metadata("design:type", Boolean),
|
|
103
|
-
tslib_1.__metadata("design:paramtypes", [])
|
|
104
|
-
], TabStripScrollableButtonComponent.prototype, "prevClass", null);
|
|
105
|
-
tslib_1.__decorate([
|
|
106
|
-
HostBinding('class.k-tabstrip-next'),
|
|
107
|
-
tslib_1.__metadata("design:type", Boolean),
|
|
108
|
-
tslib_1.__metadata("design:paramtypes", [])
|
|
109
|
-
], TabStripScrollableButtonComponent.prototype, "nextClass", null);
|
|
110
|
-
tslib_1.__decorate([
|
|
111
|
-
HostBinding('class.k-disabled'),
|
|
112
|
-
tslib_1.__metadata("design:type", Boolean),
|
|
113
|
-
tslib_1.__metadata("design:paramtypes", [Boolean])
|
|
114
|
-
], TabStripScrollableButtonComponent.prototype, "disabled", null);
|
|
115
|
-
tslib_1.__decorate([
|
|
116
|
-
Input(),
|
|
117
|
-
tslib_1.__metadata("design:type", Boolean)
|
|
118
|
-
], TabStripScrollableButtonComponent.prototype, "prev", void 0);
|
|
119
|
-
TabStripScrollableButtonComponent = tslib_1.__decorate([
|
|
120
|
-
Component({
|
|
121
|
-
template: "\n <span class=\"k-icon k-button-icon\" [ngClass]=\"iconClass\"></span>\n ",
|
|
122
|
-
selector: '[kendoTabStripScrollableButton]'
|
|
123
|
-
}),
|
|
124
|
-
tslib_1.__metadata("design:paramtypes", [ElementRef,
|
|
125
|
-
ScrollService,
|
|
126
|
-
Renderer2,
|
|
127
|
-
NgZone])
|
|
128
|
-
], TabStripScrollableButtonComponent);
|
|
129
|
-
return TabStripScrollableButtonComponent;
|
|
130
|
-
}());
|
|
131
|
-
export { TabStripScrollableButtonComponent };
|
|
@@ -1,226 +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 { DEFAULT_SCROLL_BEHAVIOR, DIRECTION_CLASSES } from './constants';
|
|
7
|
-
import { Injectable, NgZone } from '@angular/core';
|
|
8
|
-
import { hasObservers, isDocumentAvailable } from '@progress/kendo-angular-common';
|
|
9
|
-
import { Subject } from 'rxjs';
|
|
10
|
-
import { TabScrollEvent } from './events/tabscroll-event';
|
|
11
|
-
import { getActiveTab, isTablistHorizontal, mouseScrollEnabled } from './util';
|
|
12
|
-
/**
|
|
13
|
-
* @hidden
|
|
14
|
-
*/
|
|
15
|
-
var ScrollService = /** @class */ (function () {
|
|
16
|
-
function ScrollService(ngZone) {
|
|
17
|
-
this.ngZone = ngZone;
|
|
18
|
-
this.position = 0;
|
|
19
|
-
this.scrollButtonActiveStateChange = new Subject();
|
|
20
|
-
}
|
|
21
|
-
Object.defineProperty(ScrollService.prototype, "tablistElement", {
|
|
22
|
-
get: function () {
|
|
23
|
-
return this.owner.tablist.nativeElement;
|
|
24
|
-
},
|
|
25
|
-
enumerable: true,
|
|
26
|
-
configurable: true
|
|
27
|
-
});
|
|
28
|
-
Object.defineProperty(ScrollService.prototype, "scrollButtonIconClass", {
|
|
29
|
-
get: function () {
|
|
30
|
-
var tabStrip = this.owner;
|
|
31
|
-
var defaultPrevIcon = isTablistHorizontal(tabStrip.tabPosition) ? DIRECTION_CLASSES.left : DIRECTION_CLASSES.up;
|
|
32
|
-
var defaultNextIcon = isTablistHorizontal(tabStrip.tabPosition) ? DIRECTION_CLASSES.right : DIRECTION_CLASSES.down;
|
|
33
|
-
if (typeof tabStrip.scrollable === 'object') {
|
|
34
|
-
var prevIcon = typeof tabStrip.scrollable.prevButtonIcon === 'undefined' ? defaultPrevIcon : tabStrip.scrollable.prevButtonIcon;
|
|
35
|
-
var nextIcon = typeof tabStrip.scrollable.nextButtonIcon === 'undefined' ? defaultNextIcon : tabStrip.scrollable.nextButtonIcon;
|
|
36
|
-
return { prevScrollButton: prevIcon, nextScrollButton: nextIcon };
|
|
37
|
-
}
|
|
38
|
-
return { prevScrollButton: defaultPrevIcon, nextScrollButton: defaultNextIcon };
|
|
39
|
-
},
|
|
40
|
-
enumerable: true,
|
|
41
|
-
configurable: true
|
|
42
|
-
});
|
|
43
|
-
Object.defineProperty(ScrollService.prototype, "tabstripSize", {
|
|
44
|
-
get: function () {
|
|
45
|
-
var hostElement = this.owner.wrapper.nativeElement;
|
|
46
|
-
var wrapperWidth = parseFloat(getComputedStyle(hostElement).width);
|
|
47
|
-
var wrapperHeight = parseFloat(getComputedStyle(hostElement).height);
|
|
48
|
-
return isTablistHorizontal(this.owner.tabPosition) ? wrapperWidth : wrapperHeight;
|
|
49
|
-
},
|
|
50
|
-
enumerable: true,
|
|
51
|
-
configurable: true
|
|
52
|
-
});
|
|
53
|
-
Object.defineProperty(ScrollService.prototype, "tablistOverflowSize", {
|
|
54
|
-
get: function () {
|
|
55
|
-
if (!isDocumentAvailable()) {
|
|
56
|
-
return 0;
|
|
57
|
-
}
|
|
58
|
-
var isHorizontal = isTablistHorizontal(this.owner.tabPosition);
|
|
59
|
-
var overflowSize = Math.floor(this.tablistElement[isHorizontal ? 'scrollWidth' : 'scrollHeight']
|
|
60
|
-
- this.tablistElement.getBoundingClientRect()[isHorizontal ? 'width' : 'height']);
|
|
61
|
-
return overflowSize < 0 ? 0 : overflowSize;
|
|
62
|
-
},
|
|
63
|
-
enumerable: true,
|
|
64
|
-
configurable: true
|
|
65
|
-
});
|
|
66
|
-
Object.defineProperty(ScrollService.prototype, "tabsOverflow", {
|
|
67
|
-
get: function () {
|
|
68
|
-
return this.tablistOverflowSize > 0;
|
|
69
|
-
},
|
|
70
|
-
enumerable: true,
|
|
71
|
-
configurable: true
|
|
72
|
-
});
|
|
73
|
-
Object.defineProperty(ScrollService.prototype, "scrollButtonsSize", {
|
|
74
|
-
get: function () {
|
|
75
|
-
if (!this.owner.hasScrollButtons) {
|
|
76
|
-
return 0;
|
|
77
|
-
}
|
|
78
|
-
var prevRect = this.owner.prevScrollButton.hostBoundingClientRect;
|
|
79
|
-
var prevSize = isTablistHorizontal(this.owner.tabPosition) ? prevRect.width : prevRect.height;
|
|
80
|
-
var nextRect = this.owner.nextScrollButton.hostBoundingClientRect;
|
|
81
|
-
var nextSize = isTablistHorizontal(this.owner.tabPosition) ? nextRect.width : nextRect.height;
|
|
82
|
-
return prevSize + nextSize;
|
|
83
|
-
},
|
|
84
|
-
enumerable: true,
|
|
85
|
-
configurable: true
|
|
86
|
-
});
|
|
87
|
-
ScrollService.prototype.toggleScrollButtonsState = function () {
|
|
88
|
-
var _this = this;
|
|
89
|
-
var tabStrip = this.owner;
|
|
90
|
-
if (!tabStrip.hasScrollButtons) {
|
|
91
|
-
return;
|
|
92
|
-
}
|
|
93
|
-
var currentPrevButtonActive = !tabStrip.prevScrollButton.disabled;
|
|
94
|
-
var currentNextButtonActive = !tabStrip.nextScrollButton.disabled;
|
|
95
|
-
var calculatedPrevButtonActive = this.position > 0 && this.tablistOverflowSize > 0;
|
|
96
|
-
var calculatedNextButtonActive = this.position < this.tablistOverflowSize + this.scrollButtonsSize && this.tablistOverflowSize > 0;
|
|
97
|
-
if (calculatedPrevButtonActive !== currentPrevButtonActive) {
|
|
98
|
-
this.ngZone.run(function () { return _this.toggleButtonActiveState('prev', calculatedPrevButtonActive); });
|
|
99
|
-
}
|
|
100
|
-
if (calculatedNextButtonActive !== currentNextButtonActive) {
|
|
101
|
-
this.ngZone.run(function () { return _this.toggleButtonActiveState('next', calculatedNextButtonActive); });
|
|
102
|
-
}
|
|
103
|
-
};
|
|
104
|
-
ScrollService.prototype.scrollToSelectedTab = function () {
|
|
105
|
-
var _this = this;
|
|
106
|
-
if (!this.tabsOverflow) {
|
|
107
|
-
return;
|
|
108
|
-
}
|
|
109
|
-
var activeIndex = getActiveTab(this.owner.tabs).index;
|
|
110
|
-
if (activeIndex === -1) {
|
|
111
|
-
return;
|
|
112
|
-
}
|
|
113
|
-
this.position += this.getScrollOffset(activeIndex);
|
|
114
|
-
if (isTablistHorizontal(this.owner.tabPosition)) {
|
|
115
|
-
this.tablistElement.scrollLeft = this.position;
|
|
116
|
-
}
|
|
117
|
-
else {
|
|
118
|
-
this.tablistElement.scrollTop = this.position;
|
|
119
|
-
}
|
|
120
|
-
this.toggleScrollButtonsState();
|
|
121
|
-
var tabStrip = this.owner;
|
|
122
|
-
if (!tabStrip.hasScrollButtons) {
|
|
123
|
-
return;
|
|
124
|
-
}
|
|
125
|
-
var isFirstTabActive = activeIndex === 0;
|
|
126
|
-
var isLastTabActive = activeIndex === this.owner.tabs.length - 1;
|
|
127
|
-
if (isFirstTabActive && !tabStrip.prevScrollButton.disabled) {
|
|
128
|
-
this.ngZone.run(function () { return _this.toggleButtonActiveState('prev', false); });
|
|
129
|
-
}
|
|
130
|
-
if (isLastTabActive && !tabStrip.nextScrollButton.disabled) {
|
|
131
|
-
this.ngZone.run(function () { return _this.toggleButtonActiveState('next', false); });
|
|
132
|
-
}
|
|
133
|
-
};
|
|
134
|
-
ScrollService.prototype.getScrollOffset = function (activeIndex) {
|
|
135
|
-
if (!isDocumentAvailable()) {
|
|
136
|
-
return 0;
|
|
137
|
-
}
|
|
138
|
-
var isHorizontal = isTablistHorizontal(this.owner.tabPosition);
|
|
139
|
-
this.tablistElement["scroll" + (isHorizontal ? 'Left' : 'Top')] = this.position;
|
|
140
|
-
var activeTabRect = this.tablistElement.children[activeIndex].getBoundingClientRect();
|
|
141
|
-
var tablistRect = this.tablistElement.getBoundingClientRect();
|
|
142
|
-
var end = isHorizontal ? 'right' : 'bottom';
|
|
143
|
-
var start = isHorizontal ? 'left' : 'top';
|
|
144
|
-
var activeTabStart = activeTabRect[start];
|
|
145
|
-
var activeTabEnd = activeTabRect[end];
|
|
146
|
-
var tablistStart = tablistRect[start];
|
|
147
|
-
var tablistEnd = tablistRect[end];
|
|
148
|
-
var tabEndIsInVisibleRange = activeTabEnd <= tablistEnd;
|
|
149
|
-
var tabStartIsInVisibleRange = activeTabStart >= tablistStart;
|
|
150
|
-
var isWholeTabVisible = tabEndIsInVisibleRange && tabStartIsInVisibleRange;
|
|
151
|
-
if (isWholeTabVisible) {
|
|
152
|
-
return 0;
|
|
153
|
-
}
|
|
154
|
-
if (!tabEndIsInVisibleRange) {
|
|
155
|
-
return activeTabEnd - tablistEnd;
|
|
156
|
-
}
|
|
157
|
-
if (!tabStartIsInVisibleRange) {
|
|
158
|
-
return activeTabStart - tablistStart;
|
|
159
|
-
}
|
|
160
|
-
};
|
|
161
|
-
ScrollService.prototype.onMouseScroll = function (event) {
|
|
162
|
-
event.preventDefault();
|
|
163
|
-
if (!mouseScrollEnabled(this.owner.scrollable)) {
|
|
164
|
-
return;
|
|
165
|
-
}
|
|
166
|
-
var direction = event.deltaY < 0 ? 'prev' : 'next';
|
|
167
|
-
this.calculateListPosition(direction, this.owner.scrollable.mouseScrollSpeed);
|
|
168
|
-
if (isTablistHorizontal(this.owner.tabPosition)) {
|
|
169
|
-
this.tablistElement.scrollLeft = this.position;
|
|
170
|
-
}
|
|
171
|
-
else {
|
|
172
|
-
this.tablistElement.scrollTop = this.position;
|
|
173
|
-
}
|
|
174
|
-
this.toggleScrollButtonsState();
|
|
175
|
-
};
|
|
176
|
-
ScrollService.prototype.scrollTabs = function (direction) {
|
|
177
|
-
this.calculateListPosition(direction, this.owner.scrollable.buttonScrollSpeed);
|
|
178
|
-
if (isTablistHorizontal(this.owner.tabPosition)) {
|
|
179
|
-
this.tablistElement.scrollTo({ left: this.position, behavior: DEFAULT_SCROLL_BEHAVIOR });
|
|
180
|
-
}
|
|
181
|
-
else {
|
|
182
|
-
this.tablistElement.scrollTo({ top: this.position, behavior: DEFAULT_SCROLL_BEHAVIOR });
|
|
183
|
-
}
|
|
184
|
-
this.toggleScrollButtonsState();
|
|
185
|
-
};
|
|
186
|
-
ScrollService.prototype.calculateListPosition = function (direction, scrollSpeed) {
|
|
187
|
-
var adjustedMaxScroll = this.tablistOverflowSize + this.scrollButtonsSize;
|
|
188
|
-
if (direction === 'prev' && this.position > 0) {
|
|
189
|
-
this.position = this.position - scrollSpeed <= 0 ? 0 : this.position - scrollSpeed;
|
|
190
|
-
}
|
|
191
|
-
else if (direction === 'next' && this.position < adjustedMaxScroll) {
|
|
192
|
-
if (this.position + scrollSpeed > adjustedMaxScroll) {
|
|
193
|
-
this.position = adjustedMaxScroll;
|
|
194
|
-
return;
|
|
195
|
-
}
|
|
196
|
-
this.position += scrollSpeed;
|
|
197
|
-
}
|
|
198
|
-
};
|
|
199
|
-
ScrollService.prototype.emitScrollEvent = function (ev) {
|
|
200
|
-
var scrollEvent = new TabScrollEvent({
|
|
201
|
-
originalEvent: ev
|
|
202
|
-
});
|
|
203
|
-
if (hasObservers(this.owner.tabScroll)) {
|
|
204
|
-
this.owner.tabScroll.emit(scrollEvent);
|
|
205
|
-
}
|
|
206
|
-
return scrollEvent;
|
|
207
|
-
};
|
|
208
|
-
ScrollService.prototype.restoreScrollPosition = function () {
|
|
209
|
-
if (isTablistHorizontal(this.owner.tabPosition)) {
|
|
210
|
-
this.tablistElement.scrollTo({ left: this.position });
|
|
211
|
-
}
|
|
212
|
-
else {
|
|
213
|
-
this.tablistElement.scrollTo({ top: this.position });
|
|
214
|
-
}
|
|
215
|
-
this.toggleScrollButtonsState();
|
|
216
|
-
};
|
|
217
|
-
ScrollService.prototype.toggleButtonActiveState = function (buttonType, active) {
|
|
218
|
-
this.scrollButtonActiveStateChange.next({ buttonType: buttonType, active: active });
|
|
219
|
-
};
|
|
220
|
-
ScrollService = tslib_1.__decorate([
|
|
221
|
-
Injectable(),
|
|
222
|
-
tslib_1.__metadata("design:paramtypes", [NgZone])
|
|
223
|
-
], ScrollService);
|
|
224
|
-
return ScrollService;
|
|
225
|
-
}());
|
|
226
|
-
export { ScrollService };
|