@progress/kendo-angular-layout 6.6.0 → 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/{dist/es2015/avatar.module.d.ts → avatar.module.d.ts} +6 -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/{dist/es2015 → esm2015}/drawer/events/select-event.js +8 -1
- 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/{dist/es2015 → esm2015}/expansionpanel/events/action-event.js +8 -1
- 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 +4 -0
- package/{dist/es2015 → esm2015}/package-metadata.js +1 -1
- package/{dist/es2015 → esm2015}/panelbar/events/collapse-event.js +0 -0
- package/{dist/es2015 → esm2015}/panelbar/events/expand-event.js +0 -0
- package/{dist/es2015 → esm2015}/panelbar/events/select-event.js +0 -0
- package/{dist/es/stepper/models/constants.js → esm2015/panelbar/events/state-change-event.js} +3 -2
- package/{dist/es → esm2015}/panelbar/events.js +1 -0
- 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/{dist/es2015 → esm2015}/panelbar/panelbar-item.component.js +233 -158
- package/{dist/es2015 → esm2015}/panelbar/panelbar.component.js +130 -147
- 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/{dist/es2015 → esm2015}/stepper/events/activate-event.js +8 -1
- 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} +5200 -4865
- 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} +3 -0
- package/{dist/es2015/package-metadata.d.ts → package-metadata.d.ts} +0 -0
- package/package.json +44 -132
- package/{dist/es2015/panelbar → panelbar}/events/collapse-event.d.ts +0 -0
- package/{dist/es2015/panelbar → panelbar}/events/expand-event.d.ts +0 -0
- package/{dist/es2015/panelbar → panelbar}/events/select-event.d.ts +0 -0
- package/panelbar/events/state-change-event.d.ts +14 -0
- package/{dist/es2015/panelbar → panelbar}/events.d.ts +1 -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 +16 -11
- 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/models/rounded.js +0 -4
- 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/events/collapse-event.js +0 -17
- package/dist/es/panelbar/events/expand-event.js +0 -17
- package/dist/es/panelbar/events/select-event.js +0 -17
- 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 -647
- 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 -73
- package/dist/es2015/panelbar/events.js +0 -7
- 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.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/events.js +0 -6
- 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 -9301
- 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 -133
- package/dist/npm/package-metadata.js +0 -17
- package/dist/npm/panelbar/events/collapse-event.js +0 -19
- package/dist/npm/panelbar/events/expand-event.js +0 -19
- package/dist/npm/panelbar/events/select-event.js +0 -19
- package/dist/npm/panelbar/events.js +0 -12
- 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 -649
- 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,113 +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
|
-
"use strict";
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
var util_1 = require("../common/util");
|
|
8
|
-
/**
|
|
9
|
-
* @hidden
|
|
10
|
-
*
|
|
11
|
-
* Checks if the current target is a TabStrip tab element
|
|
12
|
-
*/
|
|
13
|
-
exports.isTabElement = function (target) {
|
|
14
|
-
var targetId = target.getAttribute('id');
|
|
15
|
-
if (util_1.isPresent(targetId) || targetId.indexOf('k-tabstrip-tab-') >= 0) {
|
|
16
|
-
return true;
|
|
17
|
-
}
|
|
18
|
-
return false;
|
|
19
|
-
};
|
|
20
|
-
/**
|
|
21
|
-
* @hidden
|
|
22
|
-
*
|
|
23
|
-
* Checks if the current tab is closable. Depends on the value of the TabStrip closable property.
|
|
24
|
-
*/
|
|
25
|
-
exports.isTabClosable = function (tab, tabStripClosable) {
|
|
26
|
-
if (tab.closable !== undefined) {
|
|
27
|
-
return tab.closable;
|
|
28
|
-
}
|
|
29
|
-
return tabStripClosable;
|
|
30
|
-
};
|
|
31
|
-
/**
|
|
32
|
-
* @hidden
|
|
33
|
-
*
|
|
34
|
-
* Checks if the TabStrip scroll buttons will be rendered. Depends on the value of the TabStrip scrollable settings.
|
|
35
|
-
*/
|
|
36
|
-
exports.tabStripHasScrollButtons = function (scrollableSettings) {
|
|
37
|
-
return scrollableSettings.enabled && scrollableSettings.scrollButtons !== 'hidden';
|
|
38
|
-
};
|
|
39
|
-
/**
|
|
40
|
-
* @hidden
|
|
41
|
-
*
|
|
42
|
-
* Checks if the TabStrip mouse scroll will be enabled. Depends on the value of the TabStrip scrollable settings.
|
|
43
|
-
*/
|
|
44
|
-
exports.mouseScrollEnabled = function (scrollableSettings) {
|
|
45
|
-
return scrollableSettings.enabled && scrollableSettings.mouseScroll;
|
|
46
|
-
};
|
|
47
|
-
/**
|
|
48
|
-
* @hidden
|
|
49
|
-
*
|
|
50
|
-
* Retrieves the current active tab element and its index.
|
|
51
|
-
* This could either be the currently selected tab or the currently focused tab.
|
|
52
|
-
*/
|
|
53
|
-
exports.getActiveTab = function (tabs) {
|
|
54
|
-
var focusedTab;
|
|
55
|
-
var selectedTab;
|
|
56
|
-
var focusedIndex = -1;
|
|
57
|
-
var selectedIndex = -1;
|
|
58
|
-
tabs.forEach(function (tab, index) {
|
|
59
|
-
if (tab.selected) {
|
|
60
|
-
selectedTab = tab;
|
|
61
|
-
selectedIndex = index;
|
|
62
|
-
}
|
|
63
|
-
else if (tab.focused) {
|
|
64
|
-
focusedTab = tab;
|
|
65
|
-
focusedIndex = index;
|
|
66
|
-
}
|
|
67
|
-
});
|
|
68
|
-
return focusedIndex >= 0 ?
|
|
69
|
-
{ tab: focusedTab, index: focusedIndex } :
|
|
70
|
-
{ tab: selectedTab, index: selectedIndex };
|
|
71
|
-
};
|
|
72
|
-
/**
|
|
73
|
-
* @hidden
|
|
74
|
-
*/
|
|
75
|
-
exports.getTabByIndex = function (tabs, index) {
|
|
76
|
-
var filtered = tabs.filter(function (_tab, i) { return i === index; });
|
|
77
|
-
if (filtered.length > 0) {
|
|
78
|
-
return filtered[0];
|
|
79
|
-
}
|
|
80
|
-
return null;
|
|
81
|
-
};
|
|
82
|
-
/**
|
|
83
|
-
* @hidden
|
|
84
|
-
*/
|
|
85
|
-
exports.getTabHeaderByIndex = function (tabHeaderContainers, index) {
|
|
86
|
-
var filtered = tabHeaderContainers.filter(function (_tabHeader, i) { return i === index; });
|
|
87
|
-
if (filtered.length > 0) {
|
|
88
|
-
return filtered[0];
|
|
89
|
-
}
|
|
90
|
-
return null;
|
|
91
|
-
};
|
|
92
|
-
/**
|
|
93
|
-
* @hidden
|
|
94
|
-
*/
|
|
95
|
-
exports.resetTabFocus = function (tabs) {
|
|
96
|
-
tabs.forEach(function (tab) {
|
|
97
|
-
tab.focused = false;
|
|
98
|
-
});
|
|
99
|
-
};
|
|
100
|
-
/**
|
|
101
|
-
* @hidden
|
|
102
|
-
*/
|
|
103
|
-
exports.resetTabSelection = function (tabs) {
|
|
104
|
-
tabs.forEach(function (tab) {
|
|
105
|
-
tab.selected = false;
|
|
106
|
-
});
|
|
107
|
-
};
|
|
108
|
-
/**
|
|
109
|
-
* @hidden
|
|
110
|
-
*/
|
|
111
|
-
exports.isTablistHorizontal = function (tabPosition) {
|
|
112
|
-
return tabPosition === 'top' || tabPosition === 'bottom';
|
|
113
|
-
};
|
|
@@ -1,53 +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
|
-
"use strict";
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
var tslib_1 = require("tslib");
|
|
8
|
-
var tab_component_1 = require("./tabstrip/rendering/tab.component");
|
|
9
|
-
var core_1 = require("@angular/core");
|
|
10
|
-
var common_1 = require("@angular/common");
|
|
11
|
-
var tabstrip_component_1 = require("./tabstrip/tabstrip.component");
|
|
12
|
-
var tabstrip_tab_component_1 = require("./tabstrip/models/tabstrip-tab.component");
|
|
13
|
-
var tab_content_directive_1 = require("./tabstrip/directives/tab-content.directive");
|
|
14
|
-
var tab_title_directive_1 = require("./tabstrip/directives/tab-title.directive");
|
|
15
|
-
var custom_messages_component_1 = require("./tabstrip/localization/custom-messages.component");
|
|
16
|
-
var localized_messages_directive_1 = require("./tabstrip/localization/localized-messages.directive");
|
|
17
|
-
var kendo_angular_common_1 = require("@progress/kendo-angular-common");
|
|
18
|
-
var scrollable_button_component_1 = require("./tabstrip/scrollable-button.component");
|
|
19
|
-
var exportedModules = [
|
|
20
|
-
tabstrip_component_1.TabStripComponent,
|
|
21
|
-
tabstrip_tab_component_1.TabStripTabComponent,
|
|
22
|
-
tab_content_directive_1.TabContentDirective,
|
|
23
|
-
tab_title_directive_1.TabTitleDirective,
|
|
24
|
-
tab_component_1.TabComponent,
|
|
25
|
-
custom_messages_component_1.TabStripCustomMessagesComponent,
|
|
26
|
-
localized_messages_directive_1.LocalizedTabStripMessagesDirective
|
|
27
|
-
];
|
|
28
|
-
var declarations = exportedModules.concat([
|
|
29
|
-
scrollable_button_component_1.TabStripScrollableButtonComponent
|
|
30
|
-
]);
|
|
31
|
-
/**
|
|
32
|
-
* Represents the [NgModule]({{ site.data.urls.angular['ngmoduleapi'] }})
|
|
33
|
-
* definition for the TabStrip component.
|
|
34
|
-
*
|
|
35
|
-
* The module registers:
|
|
36
|
-
* - `TabStripComponent`—The `TabStrip` component class.
|
|
37
|
-
* - `TabStripTabComponent`—The `TabStripTab` component class.
|
|
38
|
-
* - `TabContentDirective`—The tab content directive used on the `<ng-template>` tag.
|
|
39
|
-
* - `TabTitleDirective`—The tab title directive used on the `<ng-template>` tag.
|
|
40
|
-
*/
|
|
41
|
-
var TabStripModule = /** @class */ (function () {
|
|
42
|
-
function TabStripModule() {
|
|
43
|
-
}
|
|
44
|
-
TabStripModule = tslib_1.__decorate([
|
|
45
|
-
core_1.NgModule({
|
|
46
|
-
declarations: [declarations],
|
|
47
|
-
exports: [exportedModules],
|
|
48
|
-
imports: [common_1.CommonModule, kendo_angular_common_1.ResizeSensorModule]
|
|
49
|
-
})
|
|
50
|
-
], TabStripModule);
|
|
51
|
-
return TabStripModule;
|
|
52
|
-
}());
|
|
53
|
-
exports.TabStripModule = TabStripModule;
|
|
@@ -1,72 +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
|
-
"use strict";
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
/**
|
|
8
|
-
* @hidden
|
|
9
|
-
*/
|
|
10
|
-
exports.RESIZE_HANDLE_UNIDIRECTIONAL_SIZE = 9;
|
|
11
|
-
/**
|
|
12
|
-
* @hidden
|
|
13
|
-
*/
|
|
14
|
-
exports.RESIZE_HANDLE_BIDIRECTIONAL_SIZE = 25;
|
|
15
|
-
/**
|
|
16
|
-
* @hidden
|
|
17
|
-
*/
|
|
18
|
-
exports.RESIZE_HANDLE_UNIDIRECTIONAL_OVERLAP = 5;
|
|
19
|
-
/**
|
|
20
|
-
* @hidden
|
|
21
|
-
*/
|
|
22
|
-
exports.RESIZE_HANDLE_BIDIRECTIONAL_OVERLAP = 18;
|
|
23
|
-
/**
|
|
24
|
-
* @hidden
|
|
25
|
-
*/
|
|
26
|
-
exports.DRAGGED_ZINDEX = 10;
|
|
27
|
-
/**
|
|
28
|
-
* @hidden
|
|
29
|
-
*/
|
|
30
|
-
exports.RESIZE_DIRECTIONS = ['ew', 'ns', 'nwse'];
|
|
31
|
-
/**
|
|
32
|
-
* @hidden
|
|
33
|
-
*/
|
|
34
|
-
exports.RTL_RESIZE_DIRECTIONS = ['ew', 'ns', 'nesw'];
|
|
35
|
-
/**
|
|
36
|
-
* @hidden
|
|
37
|
-
*/
|
|
38
|
-
exports.RESIZE_HANDLE_DIMENSIONS = {
|
|
39
|
-
// numeric values represent pixels
|
|
40
|
-
ew: {
|
|
41
|
-
width: exports.RESIZE_HANDLE_UNIDIRECTIONAL_SIZE,
|
|
42
|
-
overlapX: exports.RESIZE_HANDLE_UNIDIRECTIONAL_OVERLAP
|
|
43
|
-
},
|
|
44
|
-
ns: {
|
|
45
|
-
height: exports.RESIZE_HANDLE_UNIDIRECTIONAL_SIZE,
|
|
46
|
-
overlapY: exports.RESIZE_HANDLE_UNIDIRECTIONAL_OVERLAP
|
|
47
|
-
},
|
|
48
|
-
nwse: {
|
|
49
|
-
width: exports.RESIZE_HANDLE_BIDIRECTIONAL_SIZE,
|
|
50
|
-
height: exports.RESIZE_HANDLE_BIDIRECTIONAL_SIZE,
|
|
51
|
-
overlapX: exports.RESIZE_HANDLE_BIDIRECTIONAL_OVERLAP,
|
|
52
|
-
overlapY: exports.RESIZE_HANDLE_BIDIRECTIONAL_OVERLAP
|
|
53
|
-
},
|
|
54
|
-
nesw: {
|
|
55
|
-
width: exports.RESIZE_HANDLE_BIDIRECTIONAL_SIZE,
|
|
56
|
-
height: exports.RESIZE_HANDLE_BIDIRECTIONAL_SIZE,
|
|
57
|
-
overlapX: exports.RESIZE_HANDLE_BIDIRECTIONAL_OVERLAP,
|
|
58
|
-
overlapY: exports.RESIZE_HANDLE_BIDIRECTIONAL_OVERLAP
|
|
59
|
-
}
|
|
60
|
-
};
|
|
61
|
-
/**
|
|
62
|
-
* @hidden
|
|
63
|
-
*/
|
|
64
|
-
exports.OVERLAP_THRESHOLD = 0.3;
|
|
65
|
-
/**
|
|
66
|
-
* @hidden
|
|
67
|
-
*/
|
|
68
|
-
exports.REVERSE_OVERLAP_THRESHOLD = -0.7;
|
|
69
|
-
/**
|
|
70
|
-
* @hidden
|
|
71
|
-
*/
|
|
72
|
-
exports.HINT_BORDERS_HEIGHT = 2;
|
|
@@ -1,432 +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
|
-
"use strict";
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
var tslib_1 = require("tslib");
|
|
8
|
-
var core_1 = require("@angular/core");
|
|
9
|
-
var rxjs_1 = require("rxjs");
|
|
10
|
-
var kendo_angular_l10n_1 = require("@progress/kendo-angular-l10n");
|
|
11
|
-
var util_1 = require("./util");
|
|
12
|
-
var dom_queries_1 = require("../common/dom-queries");
|
|
13
|
-
var constants_1 = require("./constants");
|
|
14
|
-
var reorder_event_1 = require("./reorder-event");
|
|
15
|
-
var resize_event_1 = require("./resize-event");
|
|
16
|
-
/**
|
|
17
|
-
* @hidden
|
|
18
|
-
*/
|
|
19
|
-
var TileLayoutDraggingService = /** @class */ (function () {
|
|
20
|
-
function TileLayoutDraggingService(zone, renderer, localization) {
|
|
21
|
-
var _this = this;
|
|
22
|
-
this.zone = zone;
|
|
23
|
-
this.renderer = renderer;
|
|
24
|
-
this.localization = localization;
|
|
25
|
-
this.reorderable = new rxjs_1.BehaviorSubject(null);
|
|
26
|
-
this.resizable = new rxjs_1.BehaviorSubject(null);
|
|
27
|
-
this.reorder = new rxjs_1.Subject();
|
|
28
|
-
this.resize = new rxjs_1.Subject();
|
|
29
|
-
this.lastDragCursorOffset = {
|
|
30
|
-
x: 0,
|
|
31
|
-
y: 0
|
|
32
|
-
};
|
|
33
|
-
this.localizationSubscription = this.localization.changes.subscribe(function (_a) {
|
|
34
|
-
var rtl = _a.rtl;
|
|
35
|
-
return _this.rtl = rtl;
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
Object.defineProperty(TileLayoutDraggingService.prototype, "colStart", {
|
|
39
|
-
get: function () {
|
|
40
|
-
return this.currentColStart;
|
|
41
|
-
},
|
|
42
|
-
enumerable: true,
|
|
43
|
-
configurable: true
|
|
44
|
-
});
|
|
45
|
-
Object.defineProperty(TileLayoutDraggingService.prototype, "rowStart", {
|
|
46
|
-
get: function () {
|
|
47
|
-
return this.currentRowStart;
|
|
48
|
-
},
|
|
49
|
-
enumerable: true,
|
|
50
|
-
configurable: true
|
|
51
|
-
});
|
|
52
|
-
Object.defineProperty(TileLayoutDraggingService.prototype, "itemWrapper", {
|
|
53
|
-
get: function () {
|
|
54
|
-
return this.draggedItemWrapper;
|
|
55
|
-
},
|
|
56
|
-
enumerable: true,
|
|
57
|
-
configurable: true
|
|
58
|
-
});
|
|
59
|
-
Object.defineProperty(TileLayoutDraggingService.prototype, "order", {
|
|
60
|
-
get: function () {
|
|
61
|
-
return this.targetOrder;
|
|
62
|
-
},
|
|
63
|
-
enumerable: true,
|
|
64
|
-
configurable: true
|
|
65
|
-
});
|
|
66
|
-
TileLayoutDraggingService.prototype.ngOnDestroy = function () {
|
|
67
|
-
this.localizationSubscription.unsubscribe();
|
|
68
|
-
};
|
|
69
|
-
TileLayoutDraggingService.prototype.handlePress = function (originalEvent) {
|
|
70
|
-
var _this = this;
|
|
71
|
-
var resizing = !!originalEvent.target.classList.contains('k-resize-handle');
|
|
72
|
-
var closestTile = dom_queries_1.closestInScope(originalEvent.target, function (el) { return el.classList.contains('k-tilelayout-item'); }, this.tileLayoutSettings.tileLayoutElement);
|
|
73
|
-
var closestHeader = dom_queries_1.closestInScope(originalEvent.target, function (el) { return el.classList.contains('k-tilelayout-item-header'); }, this.tileLayoutSettings.tileLayoutElement);
|
|
74
|
-
if (!closestTile) {
|
|
75
|
-
return;
|
|
76
|
-
}
|
|
77
|
-
this.zone.run(function () {
|
|
78
|
-
_this.draggedItemWrapper = closestTile;
|
|
79
|
-
_this.draggedItem = _this.tileLayoutSettings.items
|
|
80
|
-
.find(function (item) { return item.order === +closestTile.style.order; });
|
|
81
|
-
});
|
|
82
|
-
var reordering = !resizing && this.reorderable.getValue() && this.draggedItem.reorderable && closestHeader;
|
|
83
|
-
if (!(reordering || resizing)) {
|
|
84
|
-
return;
|
|
85
|
-
}
|
|
86
|
-
else {
|
|
87
|
-
originalEvent.preventDefault();
|
|
88
|
-
}
|
|
89
|
-
this.zone.run(function () {
|
|
90
|
-
_this.reordering = reordering;
|
|
91
|
-
_this.resizing = resizing;
|
|
92
|
-
});
|
|
93
|
-
var tileRect = this.draggedItemWrapper.getBoundingClientRect();
|
|
94
|
-
this.zone.run(function () {
|
|
95
|
-
_this.offset = {
|
|
96
|
-
top: originalEvent.clientY - tileRect.top,
|
|
97
|
-
left: originalEvent.clientX - tileRect.left,
|
|
98
|
-
x: tileRect.x,
|
|
99
|
-
y: tileRect.y,
|
|
100
|
-
width: tileRect.width,
|
|
101
|
-
height: tileRect.height
|
|
102
|
-
};
|
|
103
|
-
_this.targetSize = {
|
|
104
|
-
rowSpan: _this.draggedItem.rowSpan,
|
|
105
|
-
colSpan: _this.draggedItem.colSpan
|
|
106
|
-
};
|
|
107
|
-
_this.cellSize = {
|
|
108
|
-
width: (tileRect.width - ((_this.targetSize.colSpan - 1) * _this.tileLayoutSettings.gap.columns)) / _this.targetSize.colSpan,
|
|
109
|
-
height: (tileRect.height - ((_this.targetSize.rowSpan - 1) * _this.tileLayoutSettings.gap.rows)) / _this.targetSize.rowSpan
|
|
110
|
-
};
|
|
111
|
-
_this.lastDragCursorOffset = {
|
|
112
|
-
x: originalEvent.clientX,
|
|
113
|
-
y: originalEvent.clientY
|
|
114
|
-
};
|
|
115
|
-
});
|
|
116
|
-
util_1.setElementStyles(this.renderer, this.draggedItemWrapper, {
|
|
117
|
-
left: tileRect.left + window.pageXOffset + 'px',
|
|
118
|
-
top: tileRect.top + window.pageYOffset + 'px',
|
|
119
|
-
width: tileRect.width + 'px',
|
|
120
|
-
height: tileRect.height + 'px',
|
|
121
|
-
zIndex: constants_1.DRAGGED_ZINDEX
|
|
122
|
-
});
|
|
123
|
-
util_1.setElementStyles(this.renderer, this.tileLayoutSettings.hintElement, {
|
|
124
|
-
display: 'flex',
|
|
125
|
-
height: (tileRect.height - constants_1.HINT_BORDERS_HEIGHT) + 'px'
|
|
126
|
-
});
|
|
127
|
-
this.zone.run(function () { return _this.targetOrder = _this.draggedItem.order; });
|
|
128
|
-
util_1.setElementStyles(this.renderer, this.draggedItemWrapper, {
|
|
129
|
-
position: 'absolute'
|
|
130
|
-
});
|
|
131
|
-
if (this.reorderable.getValue() && !resizing) {
|
|
132
|
-
this.zone.run(function () {
|
|
133
|
-
_this.currentColStart = _this.draggedItem.colStart;
|
|
134
|
-
_this.currentRowStart = _this.draggedItem.rowStart;
|
|
135
|
-
});
|
|
136
|
-
var headerEl = this.draggedItem.elem.nativeElement.querySelector('.k-tilelayout-item-header');
|
|
137
|
-
this.renderer.addClass(headerEl, 'k-cursor-grabbing');
|
|
138
|
-
}
|
|
139
|
-
else if (this.resizable && resizing) {
|
|
140
|
-
this.zone.run(function () {
|
|
141
|
-
_this.startingPoint = {
|
|
142
|
-
top: originalEvent.clientY,
|
|
143
|
-
left: originalEvent.clientX
|
|
144
|
-
};
|
|
145
|
-
_this.currentResizingColSpan = _this.draggedItem.colSpan;
|
|
146
|
-
_this.currentResizingRowSpan = _this.draggedItem.rowSpan;
|
|
147
|
-
if (_this.draggedItem.col) {
|
|
148
|
-
_this.currentColStart = _this.draggedItem.col.toString();
|
|
149
|
-
}
|
|
150
|
-
if (_this.draggedItem.row) {
|
|
151
|
-
_this.currentRowStart = _this.draggedItem.row.toString();
|
|
152
|
-
}
|
|
153
|
-
_this.direction = originalEvent.target.classList[1];
|
|
154
|
-
});
|
|
155
|
-
}
|
|
156
|
-
};
|
|
157
|
-
TileLayoutDraggingService.prototype.handleDrag = function (originalEvent) {
|
|
158
|
-
if (this.draggedItemWrapper) {
|
|
159
|
-
if (this.reordering) {
|
|
160
|
-
this.reorderItems(originalEvent);
|
|
161
|
-
}
|
|
162
|
-
else if (this.resizing) {
|
|
163
|
-
this.resizeItem(originalEvent);
|
|
164
|
-
}
|
|
165
|
-
this.lastDragCursorOffset = {
|
|
166
|
-
x: originalEvent.clientX,
|
|
167
|
-
y: originalEvent.clientY
|
|
168
|
-
};
|
|
169
|
-
}
|
|
170
|
-
};
|
|
171
|
-
TileLayoutDraggingService.prototype.handleRelease = function (originalEvent) {
|
|
172
|
-
var _this = this;
|
|
173
|
-
originalEvent.preventDefault();
|
|
174
|
-
if (this.reordering) {
|
|
175
|
-
var initialOrder_1 = this.draggedItem.order;
|
|
176
|
-
var initialCol = this.draggedItem.col;
|
|
177
|
-
var initialRow = this.draggedItem.row;
|
|
178
|
-
var targetCol = util_1.normalizeValue(this.currentColStart);
|
|
179
|
-
var targetRow = util_1.normalizeValue(this.currentRowStart);
|
|
180
|
-
if (util_1.propsChanged([this.targetOrder, targetCol, targetRow], [initialOrder_1, initialCol, initialRow])) {
|
|
181
|
-
var reorderEvent = new reorder_event_1.TileLayoutReorderEvent(this.draggedItem, this.tileLayoutSettings.items, this.targetOrder, initialOrder_1, util_1.normalizeValue(this.currentColStart), initialCol, targetRow, initialRow);
|
|
182
|
-
this.reorder.next(reorderEvent);
|
|
183
|
-
if (!reorderEvent.isDefaultPrevented()) {
|
|
184
|
-
if (this.targetOrder > initialOrder_1) {
|
|
185
|
-
this.zone.run(function () {
|
|
186
|
-
var _loop_1 = function (i) {
|
|
187
|
-
_this.tileLayoutSettings.items.find(function (item) { return item.order === i; }).order = i - 1;
|
|
188
|
-
};
|
|
189
|
-
for (var i = initialOrder_1 + 1; i <= _this.targetOrder; i++) {
|
|
190
|
-
_loop_1(i);
|
|
191
|
-
}
|
|
192
|
-
});
|
|
193
|
-
}
|
|
194
|
-
else {
|
|
195
|
-
this.zone.run(function () {
|
|
196
|
-
var _loop_2 = function (i) {
|
|
197
|
-
_this.tileLayoutSettings.items.find(function (item) { return item.order === i; }).order = i + 1;
|
|
198
|
-
};
|
|
199
|
-
for (var i = _this.targetOrder; i < initialOrder_1; i++) {
|
|
200
|
-
_loop_2(i);
|
|
201
|
-
}
|
|
202
|
-
});
|
|
203
|
-
}
|
|
204
|
-
this.draggedItem.order = this.targetOrder;
|
|
205
|
-
if (this.draggedItem.col) {
|
|
206
|
-
this.draggedItem.col = +this.currentColStart;
|
|
207
|
-
}
|
|
208
|
-
if (this.draggedItem.row) {
|
|
209
|
-
this.draggedItem.row = +this.currentRowStart;
|
|
210
|
-
}
|
|
211
|
-
}
|
|
212
|
-
}
|
|
213
|
-
this.tileLayoutSettings.tileLayoutElement.appendChild(this.tileLayoutSettings.hintElement);
|
|
214
|
-
this.zone.run(function () { return _this.cleanUp(); });
|
|
215
|
-
}
|
|
216
|
-
else if (!this.reordering && this.resizing) {
|
|
217
|
-
var initialRowSpan = this.draggedItem.rowSpan;
|
|
218
|
-
var initialColSpan = this.draggedItem.colSpan;
|
|
219
|
-
var _a = util_1.isRowItemPresent(this.tileLayoutSettings.items) ?
|
|
220
|
-
this.targetSpan() :
|
|
221
|
-
{ targetColSpan: this.currentResizingColSpan, targetRowSpan: this.currentResizingRowSpan }, targetColSpan = _a.targetColSpan, targetRowSpan = _a.targetRowSpan;
|
|
222
|
-
if (util_1.propsChanged([initialRowSpan, initialColSpan], [targetRowSpan, targetColSpan])) {
|
|
223
|
-
var resizeEvent = new resize_event_1.TileLayoutResizeEvent(this.draggedItem, this.tileLayoutSettings.items, targetRowSpan, initialRowSpan, targetColSpan, initialColSpan);
|
|
224
|
-
this.resize.next(resizeEvent);
|
|
225
|
-
if (!resizeEvent.isDefaultPrevented()) {
|
|
226
|
-
this.draggedItem.colSpan = this.currentResizingColSpan;
|
|
227
|
-
this.draggedItem.rowSpan = this.currentResizingRowSpan;
|
|
228
|
-
}
|
|
229
|
-
}
|
|
230
|
-
this.zone.run(function () { return _this.cleanUp(); });
|
|
231
|
-
}
|
|
232
|
-
};
|
|
233
|
-
TileLayoutDraggingService.prototype.reorderItems = function (event) {
|
|
234
|
-
var _this = this;
|
|
235
|
-
var targets = util_1.getDropTarget(event);
|
|
236
|
-
var closestTile = targets.find(function (t) { return t !== _this.draggedItemWrapper; });
|
|
237
|
-
var tileOrder = closestTile ? +closestTile.style.order : +this.draggedItemWrapper.style.order;
|
|
238
|
-
if (this.tileLayoutSettings.autoFlow !== 'none') {
|
|
239
|
-
var deltaX = event.clientX - this.lastDragCursorOffset.x;
|
|
240
|
-
var deltaY = event.clientY - this.lastDragCursorOffset.y;
|
|
241
|
-
var directionX = deltaX > 0 ? 'right' : deltaX < 0 ? 'left' : undefined;
|
|
242
|
-
var directionY = deltaY > 0 ? 'down' : deltaX < 0 ? 'up' : undefined;
|
|
243
|
-
var rect = this.draggedItemWrapper.getBoundingClientRect();
|
|
244
|
-
var horizontalGap = this.tileLayoutSettings.gap.columns;
|
|
245
|
-
var verticalGap = this.tileLayoutSettings.gap.rows;
|
|
246
|
-
if (directionX && this.draggedItem.col) {
|
|
247
|
-
var col = util_1.calculateCellFromPosition({
|
|
248
|
-
x: directionX === 'right' ? rect.right - horizontalGap : rect.left + horizontalGap,
|
|
249
|
-
y: event.clientY
|
|
250
|
-
}, this.tileLayoutSettings.tileLayoutElement, this.tileLayoutSettings.gap, this.cellSize, this.tileLayoutSettings.columns, this.rtl).col;
|
|
251
|
-
var targetStartCol = this.getTargetCol(col, directionX);
|
|
252
|
-
this.currentColStart = targetStartCol.toString();
|
|
253
|
-
}
|
|
254
|
-
if (directionY && this.draggedItem.row) {
|
|
255
|
-
var row = util_1.calculateCellFromPosition({
|
|
256
|
-
x: event.clientX,
|
|
257
|
-
y: directionY === 'down' ? rect.bottom - verticalGap : rect.top + verticalGap
|
|
258
|
-
}, this.tileLayoutSettings.tileLayoutElement, this.tileLayoutSettings.gap, this.cellSize, this.tileLayoutSettings.columns, this.rtl).row;
|
|
259
|
-
var targetStartRow = this.getTargetRow(row, directionY);
|
|
260
|
-
this.currentRowStart = targetStartRow.toString();
|
|
261
|
-
}
|
|
262
|
-
}
|
|
263
|
-
var hintBefore = tileOrder < this.targetOrder;
|
|
264
|
-
var hintAfter = tileOrder > this.targetOrder;
|
|
265
|
-
this.zone.run(function () { return _this.targetOrder = tileOrder; });
|
|
266
|
-
if (hintBefore) {
|
|
267
|
-
this.tileLayoutSettings.tileLayoutElement
|
|
268
|
-
.insertBefore(this.tileLayoutSettings.hintElement, this.tileLayoutSettings.tileLayoutElement.firstChild);
|
|
269
|
-
}
|
|
270
|
-
else if (hintAfter) {
|
|
271
|
-
this.tileLayoutSettings.tileLayoutElement.appendChild(this.tileLayoutSettings.hintElement);
|
|
272
|
-
}
|
|
273
|
-
util_1.setElementStyles(this.renderer, this.draggedItemWrapper, {
|
|
274
|
-
top: (event.pageY - this.offset.top) + 'px',
|
|
275
|
-
left: (event.pageX - this.offset.left) + 'px'
|
|
276
|
-
});
|
|
277
|
-
};
|
|
278
|
-
TileLayoutDraggingService.prototype.resizeItem = function (event) {
|
|
279
|
-
var _this = this;
|
|
280
|
-
util_1.setElementStyles(this.renderer, this.tileLayoutSettings.tileLayoutElement, {
|
|
281
|
-
cursor: this.direction.split('k-cursor-')[1]
|
|
282
|
-
});
|
|
283
|
-
var currentWidth = this.rtl ?
|
|
284
|
-
this.offset.width + (this.offset.x - event.clientX) :
|
|
285
|
-
this.offset.width + (event.clientX - this.startingPoint.left);
|
|
286
|
-
var currentHeight = this.offset.height + (event.clientY - this.startingPoint.top);
|
|
287
|
-
var hintRect = this.tileLayoutSettings.hintElement.getBoundingClientRect();
|
|
288
|
-
var hintWidth = hintRect.width;
|
|
289
|
-
var hintHeight = hintRect.height;
|
|
290
|
-
var horizontalDragDirection = event.clientX - this.lastDragCursorOffset.x;
|
|
291
|
-
var verticalDragDirection = event.clientY - this.lastDragCursorOffset.y;
|
|
292
|
-
var startCol = this.draggedItem.col ? this.draggedItem.col : util_1.calculateCellFromPosition({
|
|
293
|
-
x: this.rtl ? hintRect.right : hintRect.x,
|
|
294
|
-
y: hintRect.y
|
|
295
|
-
}, this.tileLayoutSettings.tileLayoutElement, this.tileLayoutSettings.gap, this.cellSize, this.tileLayoutSettings.columns, this.rtl).col;
|
|
296
|
-
var maxWidth = (this.tileLayoutSettings.columns - startCol) * (this.cellSize.width + this.tileLayoutSettings.gap.columns) + this.cellSize.width;
|
|
297
|
-
var resizeHorizontally = function () {
|
|
298
|
-
util_1.setElementStyles(_this.renderer, _this.draggedItemWrapper, {
|
|
299
|
-
width: Math.min(Math.max(currentWidth, _this.cellSize.width), maxWidth) + 'px'
|
|
300
|
-
});
|
|
301
|
-
if (_this.rtl && currentWidth > _this.cellSize.width) {
|
|
302
|
-
var totalWidth = _this.tileLayoutSettings.columns * (_this.cellSize.width + _this.tileLayoutSettings.gap.columns);
|
|
303
|
-
var leftBoundary = _this.tileLayoutSettings.tileLayoutElement.getBoundingClientRect().right - totalWidth;
|
|
304
|
-
util_1.setElementStyles(_this.renderer, _this.draggedItemWrapper, {
|
|
305
|
-
left: Math.max(event.clientX, leftBoundary) + 'px'
|
|
306
|
-
});
|
|
307
|
-
}
|
|
308
|
-
var deltaX = currentWidth - hintWidth;
|
|
309
|
-
var _a = _this.draggedItem.elem.nativeElement.getBoundingClientRect(), x = _a.x, y = _a.y, right = _a.right;
|
|
310
|
-
var col = util_1.calculateCellFromPosition({ x: (_this.rtl ? right : x), y: y }, _this.tileLayoutSettings.tileLayoutElement, _this.tileLayoutSettings.gap, _this.cellSize, _this.tileLayoutSettings.columns, _this.rtl).col;
|
|
311
|
-
var resizedColSpan = col + _this.currentResizingColSpan;
|
|
312
|
-
var expandingCondition = _this.rtl ? horizontalDragDirection < 0 : horizontalDragDirection > 0;
|
|
313
|
-
var shrinkingCondition = _this.rtl ? horizontalDragDirection > 0 : horizontalDragDirection < 0;
|
|
314
|
-
if (deltaX > constants_1.OVERLAP_THRESHOLD * _this.cellSize.width &&
|
|
315
|
-
expandingCondition &&
|
|
316
|
-
resizedColSpan <= _this.tileLayoutSettings.columns) {
|
|
317
|
-
_this.currentResizingColSpan++;
|
|
318
|
-
}
|
|
319
|
-
else if (_this.currentResizingColSpan > 1 &&
|
|
320
|
-
shrinkingCondition &&
|
|
321
|
-
deltaX < constants_1.REVERSE_OVERLAP_THRESHOLD * _this.cellSize.width) {
|
|
322
|
-
_this.currentResizingColSpan--;
|
|
323
|
-
}
|
|
324
|
-
util_1.setElementStyles(_this.renderer, _this.tileLayoutSettings.hintElement, {
|
|
325
|
-
gridColumnEnd: "span " + _this.currentResizingColSpan
|
|
326
|
-
});
|
|
327
|
-
};
|
|
328
|
-
var resizeVertically = function () {
|
|
329
|
-
util_1.setElementStyles(_this.renderer, _this.draggedItemWrapper, {
|
|
330
|
-
height: Math.max(currentHeight, _this.cellSize.height) + 'px'
|
|
331
|
-
});
|
|
332
|
-
var deltaY = currentHeight - hintHeight;
|
|
333
|
-
if (deltaY > constants_1.OVERLAP_THRESHOLD * _this.cellSize.height && verticalDragDirection > 0) {
|
|
334
|
-
_this.currentResizingRowSpan++;
|
|
335
|
-
}
|
|
336
|
-
else if (_this.currentResizingRowSpan > 1 &&
|
|
337
|
-
verticalDragDirection < 0 && deltaY < constants_1.REVERSE_OVERLAP_THRESHOLD * _this.cellSize.height) {
|
|
338
|
-
_this.currentResizingRowSpan--;
|
|
339
|
-
}
|
|
340
|
-
util_1.setElementStyles(_this.renderer, _this.tileLayoutSettings.hintElement, {
|
|
341
|
-
gridRowEnd: "span " + _this.currentResizingRowSpan
|
|
342
|
-
});
|
|
343
|
-
util_1.setElementStyles(_this.renderer, _this.tileLayoutSettings.hintElement, {
|
|
344
|
-
height: _this.calculateHintHeight() + "px"
|
|
345
|
-
});
|
|
346
|
-
};
|
|
347
|
-
if (this.direction.indexOf('ew') > -1) {
|
|
348
|
-
resizeHorizontally();
|
|
349
|
-
}
|
|
350
|
-
else if (this.direction.indexOf('ns') > -1) {
|
|
351
|
-
resizeVertically();
|
|
352
|
-
}
|
|
353
|
-
else {
|
|
354
|
-
resizeHorizontally();
|
|
355
|
-
resizeVertically();
|
|
356
|
-
}
|
|
357
|
-
};
|
|
358
|
-
TileLayoutDraggingService.prototype.cleanUp = function () {
|
|
359
|
-
this.targetOrder = this.currentResizingColSpan = this.currentColStart = this.currentResizingRowSpan = this.currentRowStart = undefined;
|
|
360
|
-
this.resizing = this.reordering = false;
|
|
361
|
-
this.direction = null;
|
|
362
|
-
if (this.draggedItemWrapper) {
|
|
363
|
-
var grabHandle = this.draggedItemWrapper.querySelector('.k-cursor-grab');
|
|
364
|
-
if (grabHandle) {
|
|
365
|
-
this.renderer.removeClass(grabHandle, 'k-cursor-grabbing');
|
|
366
|
-
}
|
|
367
|
-
util_1.setElementStyles(this.renderer, this.draggedItemWrapper, {
|
|
368
|
-
top: '',
|
|
369
|
-
left: '',
|
|
370
|
-
display: '',
|
|
371
|
-
width: '',
|
|
372
|
-
height: '',
|
|
373
|
-
zIndex: '',
|
|
374
|
-
position: ''
|
|
375
|
-
});
|
|
376
|
-
util_1.setElementStyles(this.renderer, this.tileLayoutSettings.hintElement, {
|
|
377
|
-
display: 'none',
|
|
378
|
-
height: 'auto'
|
|
379
|
-
});
|
|
380
|
-
util_1.setElementStyles(this.renderer, this.tileLayoutSettings.tileLayoutElement, {
|
|
381
|
-
cursor: 'default'
|
|
382
|
-
});
|
|
383
|
-
this.draggedItemWrapper =
|
|
384
|
-
this.offset =
|
|
385
|
-
this.draggedItem =
|
|
386
|
-
this.resizing =
|
|
387
|
-
this.reordering =
|
|
388
|
-
this.currentResizingColSpan =
|
|
389
|
-
this.currentResizingRowSpan =
|
|
390
|
-
this.startingPoint = undefined;
|
|
391
|
-
this.lastDragCursorOffset = {
|
|
392
|
-
x: 0,
|
|
393
|
-
y: 0
|
|
394
|
-
};
|
|
395
|
-
}
|
|
396
|
-
};
|
|
397
|
-
TileLayoutDraggingService.prototype.targetSpan = function () {
|
|
398
|
-
var itemRect = this.draggedItem.elem.nativeElement.getBoundingClientRect();
|
|
399
|
-
var startingCell = util_1.calculateCellFromPosition({ x: this.rtl ? itemRect.right : itemRect.x, y: itemRect.y }, this.tileLayoutSettings.tileLayoutElement, this.tileLayoutSettings.gap, this.cellSize, this.tileLayoutSettings.columns, this.rtl);
|
|
400
|
-
var targetEndCell = util_1.calculateCellFromPosition({
|
|
401
|
-
x: this.rtl ? itemRect.x + constants_1.OVERLAP_THRESHOLD * this.cellSize.width : itemRect.right - constants_1.OVERLAP_THRESHOLD * this.cellSize.width,
|
|
402
|
-
y: itemRect.bottom - constants_1.OVERLAP_THRESHOLD * this.cellSize.height
|
|
403
|
-
}, this.tileLayoutSettings.tileLayoutElement, this.tileLayoutSettings.gap, this.cellSize, this.tileLayoutSettings.columns, this.rtl);
|
|
404
|
-
return {
|
|
405
|
-
targetColSpan: targetEndCell.col - startingCell.col + 1,
|
|
406
|
-
targetRowSpan: targetEndCell.row - startingCell.row + 1
|
|
407
|
-
};
|
|
408
|
-
};
|
|
409
|
-
TileLayoutDraggingService.prototype.getTargetCol = function (col, direction) {
|
|
410
|
-
if (this.rtl) {
|
|
411
|
-
return direction === 'left' ? col - this.draggedItem.colSpan + 1 : col;
|
|
412
|
-
}
|
|
413
|
-
return direction === 'right' ? col - this.draggedItem.colSpan + 1 : col;
|
|
414
|
-
};
|
|
415
|
-
TileLayoutDraggingService.prototype.getTargetRow = function (row, direction) {
|
|
416
|
-
return direction === 'down' ? row - this.draggedItem.rowSpan + 1 : row;
|
|
417
|
-
};
|
|
418
|
-
TileLayoutDraggingService.prototype.calculateHintHeight = function () {
|
|
419
|
-
var totalHintCellsHeight = this.currentResizingRowSpan * this.cellSize.height;
|
|
420
|
-
var totalHintGapsHeight = (this.currentResizingRowSpan - 1) * this.tileLayoutSettings.gap.rows;
|
|
421
|
-
var hintHeight = totalHintCellsHeight + totalHintGapsHeight - constants_1.HINT_BORDERS_HEIGHT;
|
|
422
|
-
return hintHeight;
|
|
423
|
-
};
|
|
424
|
-
TileLayoutDraggingService = tslib_1.__decorate([
|
|
425
|
-
core_1.Injectable(),
|
|
426
|
-
tslib_1.__metadata("design:paramtypes", [core_1.NgZone,
|
|
427
|
-
core_1.Renderer2,
|
|
428
|
-
kendo_angular_l10n_1.LocalizationService])
|
|
429
|
-
], TileLayoutDraggingService);
|
|
430
|
-
return TileLayoutDraggingService;
|
|
431
|
-
}());
|
|
432
|
-
exports.TileLayoutDraggingService = TileLayoutDraggingService;
|
|
@@ -1,6 +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
|
-
"use strict";
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|