@skyux/layout 5.7.2 → 6.0.0-beta.2
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/documentation.json +4 -4
- package/esm2020/index.mjs +74 -0
- package/esm2020/lib/modules/action-button/action-button-adapter-service.mjs +43 -0
- package/esm2020/lib/modules/action-button/action-button-container.component.mjs +139 -0
- package/esm2020/lib/modules/action-button/action-button-details.component.mjs +14 -0
- package/esm2020/lib/modules/action-button/action-button-header.component.mjs +15 -0
- package/esm2020/lib/modules/action-button/action-button-icon.component.mjs +40 -0
- package/esm2020/lib/modules/action-button/action-button-permalink.mjs +2 -0
- package/esm2020/lib/modules/action-button/action-button.component.mjs +34 -0
- package/esm2020/lib/modules/action-button/action-button.module.mjs +62 -0
- package/esm2020/lib/modules/action-button/types/action-button-container-align-items-type.mjs +2 -0
- package/esm2020/lib/modules/action-button/types/action-button-container-align-items.mjs +2 -0
- package/esm2020/lib/modules/back-to-top/back-to-top-adapter.service.mjs +84 -0
- package/esm2020/lib/modules/back-to-top/back-to-top.component.mjs +26 -0
- package/esm2020/lib/modules/back-to-top/back-to-top.directive.mjs +114 -0
- package/esm2020/lib/modules/back-to-top/back-to-top.module.mjs +35 -0
- package/esm2020/lib/modules/back-to-top/models/back-to-top-message-type.mjs +11 -0
- package/esm2020/lib/modules/back-to-top/models/back-to-top-message.mjs +2 -0
- package/esm2020/lib/modules/back-to-top/models/back-to-top-options.mjs +2 -0
- package/esm2020/lib/modules/box/box-content.component.mjs +15 -0
- package/esm2020/lib/modules/box/box-controls.component.mjs +14 -0
- package/esm2020/lib/modules/box/box-header.component.mjs +14 -0
- package/esm2020/lib/modules/box/box.component.mjs +21 -0
- package/esm2020/lib/modules/box/box.module.mjs +38 -0
- package/esm2020/lib/modules/card/card-actions.component.mjs +14 -0
- package/esm2020/lib/modules/card/card-content.component.mjs +14 -0
- package/esm2020/lib/modules/card/card-title.component.mjs +14 -0
- package/esm2020/lib/modules/card/card.component.mjs +75 -0
- package/esm2020/lib/modules/card/card.module.mjs +61 -0
- package/esm2020/lib/modules/definition-list/definition-list-content.component.mjs +14 -0
- package/esm2020/lib/modules/definition-list/definition-list-heading.component.mjs +14 -0
- package/esm2020/lib/modules/definition-list/definition-list-label.component.mjs +20 -0
- package/esm2020/lib/modules/definition-list/definition-list-value.component.mjs +21 -0
- package/esm2020/lib/modules/definition-list/definition-list.component.mjs +38 -0
- package/esm2020/lib/modules/definition-list/definition-list.module.mjs +44 -0
- package/esm2020/lib/modules/definition-list/definition-list.service.mjs +18 -0
- package/esm2020/lib/modules/description-list/description-list-adapter-service.mjs +43 -0
- package/esm2020/lib/modules/description-list/description-list-content.component.mjs +22 -0
- package/esm2020/lib/modules/description-list/description-list-description.component.mjs +49 -0
- package/esm2020/lib/modules/description-list/description-list-term.component.mjs +20 -0
- package/esm2020/lib/modules/description-list/description-list.component.mjs +101 -0
- package/esm2020/lib/modules/description-list/description-list.module.mjs +53 -0
- package/esm2020/lib/modules/description-list/description-list.service.mjs +26 -0
- package/esm2020/lib/modules/description-list/types/description-list-mode-type.mjs +2 -0
- package/esm2020/lib/modules/description-list/types/description-list-mode.mjs +24 -0
- package/esm2020/lib/modules/fluid-grid/column.component.mjs +53 -0
- package/esm2020/lib/modules/fluid-grid/fluid-grid-gutter-size.mjs +20 -0
- package/esm2020/lib/modules/fluid-grid/fluid-grid.component.mjs +62 -0
- package/esm2020/lib/modules/fluid-grid/fluid-grid.module.mjs +20 -0
- package/esm2020/lib/modules/fluid-grid/row.component.mjs +25 -0
- package/esm2020/lib/modules/fluid-grid/types/fluid-grid-gutter-size-type.mjs +2 -0
- package/esm2020/lib/modules/format/format-item.mjs +2 -0
- package/esm2020/lib/modules/format/format.component.mjs +59 -0
- package/esm2020/lib/modules/format/format.module.mjs +18 -0
- package/esm2020/lib/modules/inline-delete/inline-delete-adapter.service.mjs +115 -0
- package/esm2020/lib/modules/inline-delete/inline-delete-type.mjs +16 -0
- package/esm2020/lib/modules/inline-delete/inline-delete.component.mjs +161 -0
- package/esm2020/lib/modules/inline-delete/inline-delete.module.mjs +34 -0
- package/esm2020/lib/modules/page/page-theme-adapter.service.mjs +26 -0
- package/esm2020/lib/modules/page/page.component.mjs +27 -0
- package/esm2020/lib/modules/page/page.module.mjs +16 -0
- package/esm2020/lib/modules/page-summary/page-summary-adapter.service.mjs +23 -0
- package/esm2020/lib/modules/page-summary/page-summary-alert.component.mjs +17 -0
- package/esm2020/lib/modules/page-summary/page-summary-content.component.mjs +16 -0
- package/esm2020/lib/modules/page-summary/page-summary-image.component.mjs +17 -0
- package/esm2020/lib/modules/page-summary/page-summary-key-info.component.mjs +15 -0
- package/esm2020/lib/modules/page-summary/page-summary-status.component.mjs +17 -0
- package/esm2020/lib/modules/page-summary/page-summary-subtitle.component.mjs +16 -0
- package/esm2020/lib/modules/page-summary/page-summary-title.component.mjs +16 -0
- package/esm2020/lib/modules/page-summary/page-summary.component.mjs +45 -0
- package/esm2020/lib/modules/page-summary/page-summary.module.mjs +57 -0
- package/esm2020/lib/modules/shared/sky-layout-resources.module.mjs +60 -0
- package/esm2020/lib/modules/text-expand/text-expand-adapter.service.mjs +31 -0
- package/esm2020/lib/modules/text-expand/text-expand-modal-context.mjs +6 -0
- package/esm2020/lib/modules/text-expand/text-expand-modal.component.mjs +26 -0
- package/esm2020/lib/modules/text-expand/text-expand.component.mjs +247 -0
- package/esm2020/lib/modules/text-expand/text-expand.module.mjs +35 -0
- package/esm2020/lib/modules/text-expand-repeater/text-expand-repeater-adapter.service.mjs +37 -0
- package/esm2020/lib/modules/text-expand-repeater/text-expand-repeater.component.mjs +171 -0
- package/esm2020/lib/modules/text-expand-repeater/text-expand-repeater.module.mjs +20 -0
- package/esm2020/lib/modules/text-expand-repeater/types/text-expand-repeater-list-style-type.mjs +2 -0
- package/esm2020/lib/modules/toolbar/toolbar-item.component.mjs +14 -0
- package/esm2020/lib/modules/toolbar/toolbar-section.component.mjs +14 -0
- package/esm2020/lib/modules/toolbar/toolbar-view-actions.component.mjs +15 -0
- package/esm2020/lib/modules/toolbar/toolbar.component.mjs +25 -0
- package/esm2020/lib/modules/toolbar/toolbar.module.mjs +37 -0
- package/esm2020/skyux-layout.mjs +5 -0
- package/esm2020/testing/action-button-fixture.mjs +44 -0
- package/esm2020/testing/card-fixture.mjs +63 -0
- package/esm2020/testing/page-summary-fixture.mjs +29 -0
- package/esm2020/testing/public-api.mjs +4 -0
- package/esm2020/testing/skyux-layout-testing.mjs +5 -0
- package/fesm2015/{skyux-layout-testing.js → skyux-layout-testing.mjs} +1 -1
- package/fesm2015/skyux-layout-testing.mjs.map +1 -0
- package/fesm2015/skyux-layout.mjs +2724 -0
- package/fesm2015/skyux-layout.mjs.map +1 -0
- package/fesm2020/skyux-layout-testing.mjs +139 -0
- package/fesm2020/skyux-layout-testing.mjs.map +1 -0
- package/fesm2020/skyux-layout.mjs +2722 -0
- package/fesm2020/skyux-layout.mjs.map +1 -0
- package/package.json +45 -21
- package/testing/package.json +5 -5
- package/bundles/skyux-layout-testing.umd.js +0 -191
- package/bundles/skyux-layout.umd.js +0 -3570
- package/esm2015/index.js +0 -74
- package/esm2015/index.js.map +0 -1
- package/esm2015/lib/modules/action-button/action-button-adapter-service.js +0 -43
- package/esm2015/lib/modules/action-button/action-button-adapter-service.js.map +0 -1
- package/esm2015/lib/modules/action-button/action-button-container.component.js +0 -145
- package/esm2015/lib/modules/action-button/action-button-container.component.js.map +0 -1
- package/esm2015/lib/modules/action-button/action-button-details.component.js +0 -17
- package/esm2015/lib/modules/action-button/action-button-details.component.js.map +0 -1
- package/esm2015/lib/modules/action-button/action-button-header.component.js +0 -19
- package/esm2015/lib/modules/action-button/action-button-header.component.js.map +0 -1
- package/esm2015/lib/modules/action-button/action-button-icon.component.js +0 -44
- package/esm2015/lib/modules/action-button/action-button-icon.component.js.map +0 -1
- package/esm2015/lib/modules/action-button/action-button-permalink.js +0 -2
- package/esm2015/lib/modules/action-button/action-button-permalink.js.map +0 -1
- package/esm2015/lib/modules/action-button/action-button.component.js +0 -39
- package/esm2015/lib/modules/action-button/action-button.component.js.map +0 -1
- package/esm2015/lib/modules/action-button/action-button.module.js +0 -62
- package/esm2015/lib/modules/action-button/action-button.module.js.map +0 -1
- package/esm2015/lib/modules/action-button/types/action-button-container-align-items-type.js +0 -2
- package/esm2015/lib/modules/action-button/types/action-button-container-align-items-type.js.map +0 -1
- package/esm2015/lib/modules/action-button/types/action-button-container-align-items.js +0 -2
- package/esm2015/lib/modules/action-button/types/action-button-container-align-items.js.map +0 -1
- package/esm2015/lib/modules/back-to-top/back-to-top-adapter.service.js +0 -84
- package/esm2015/lib/modules/back-to-top/back-to-top-adapter.service.js.map +0 -1
- package/esm2015/lib/modules/back-to-top/back-to-top.component.js +0 -31
- package/esm2015/lib/modules/back-to-top/back-to-top.component.js.map +0 -1
- package/esm2015/lib/modules/back-to-top/back-to-top.directive.js +0 -114
- package/esm2015/lib/modules/back-to-top/back-to-top.directive.js.map +0 -1
- package/esm2015/lib/modules/back-to-top/back-to-top.module.js +0 -36
- package/esm2015/lib/modules/back-to-top/back-to-top.module.js.map +0 -1
- package/esm2015/lib/modules/back-to-top/models/back-to-top-message-type.js +0 -11
- package/esm2015/lib/modules/back-to-top/models/back-to-top-message-type.js.map +0 -1
- package/esm2015/lib/modules/back-to-top/models/back-to-top-message.js +0 -2
- package/esm2015/lib/modules/back-to-top/models/back-to-top-message.js.map +0 -1
- package/esm2015/lib/modules/back-to-top/models/back-to-top-options.js +0 -2
- package/esm2015/lib/modules/back-to-top/models/back-to-top-options.js.map +0 -1
- package/esm2015/lib/modules/box/box-content.component.js +0 -18
- package/esm2015/lib/modules/box/box-content.component.js.map +0 -1
- package/esm2015/lib/modules/box/box-controls.component.js +0 -17
- package/esm2015/lib/modules/box/box-controls.component.js.map +0 -1
- package/esm2015/lib/modules/box/box-header.component.js +0 -17
- package/esm2015/lib/modules/box/box-header.component.js.map +0 -1
- package/esm2015/lib/modules/box/box.component.js +0 -26
- package/esm2015/lib/modules/box/box.component.js.map +0 -1
- package/esm2015/lib/modules/box/box.module.js +0 -38
- package/esm2015/lib/modules/box/box.module.js.map +0 -1
- package/esm2015/lib/modules/card/card-actions.component.js +0 -18
- package/esm2015/lib/modules/card/card-actions.component.js.map +0 -1
- package/esm2015/lib/modules/card/card-content.component.js +0 -17
- package/esm2015/lib/modules/card/card-content.component.js.map +0 -1
- package/esm2015/lib/modules/card/card-title.component.js +0 -17
- package/esm2015/lib/modules/card/card-title.component.js.map +0 -1
- package/esm2015/lib/modules/card/card.component.js +0 -79
- package/esm2015/lib/modules/card/card.component.js.map +0 -1
- package/esm2015/lib/modules/card/card.module.js +0 -61
- package/esm2015/lib/modules/card/card.module.js.map +0 -1
- package/esm2015/lib/modules/definition-list/definition-list-content.component.js +0 -19
- package/esm2015/lib/modules/definition-list/definition-list-content.component.js.map +0 -1
- package/esm2015/lib/modules/definition-list/definition-list-heading.component.js +0 -19
- package/esm2015/lib/modules/definition-list/definition-list-heading.component.js.map +0 -1
- package/esm2015/lib/modules/definition-list/definition-list-label.component.js +0 -25
- package/esm2015/lib/modules/definition-list/definition-list-label.component.js.map +0 -1
- package/esm2015/lib/modules/definition-list/definition-list-value.component.js +0 -25
- package/esm2015/lib/modules/definition-list/definition-list-value.component.js.map +0 -1
- package/esm2015/lib/modules/definition-list/definition-list.component.js +0 -44
- package/esm2015/lib/modules/definition-list/definition-list.component.js.map +0 -1
- package/esm2015/lib/modules/definition-list/definition-list.module.js +0 -44
- package/esm2015/lib/modules/definition-list/definition-list.module.js.map +0 -1
- package/esm2015/lib/modules/definition-list/definition-list.service.js +0 -18
- package/esm2015/lib/modules/definition-list/definition-list.service.js.map +0 -1
- package/esm2015/lib/modules/description-list/description-list-adapter-service.js +0 -43
- package/esm2015/lib/modules/description-list/description-list-adapter-service.js.map +0 -1
- package/esm2015/lib/modules/description-list/description-list-content.component.js +0 -25
- package/esm2015/lib/modules/description-list/description-list-content.component.js.map +0 -1
- package/esm2015/lib/modules/description-list/description-list-description.component.js +0 -53
- package/esm2015/lib/modules/description-list/description-list-description.component.js.map +0 -1
- package/esm2015/lib/modules/description-list/description-list-term.component.js +0 -24
- package/esm2015/lib/modules/description-list/description-list-term.component.js.map +0 -1
- package/esm2015/lib/modules/description-list/description-list.component.js +0 -107
- package/esm2015/lib/modules/description-list/description-list.component.js.map +0 -1
- package/esm2015/lib/modules/description-list/description-list.module.js +0 -53
- package/esm2015/lib/modules/description-list/description-list.module.js.map +0 -1
- package/esm2015/lib/modules/description-list/description-list.service.js +0 -26
- package/esm2015/lib/modules/description-list/description-list.service.js.map +0 -1
- package/esm2015/lib/modules/description-list/types/description-list-mode-type.js +0 -2
- package/esm2015/lib/modules/description-list/types/description-list-mode-type.js.map +0 -1
- package/esm2015/lib/modules/description-list/types/description-list-mode.js +0 -24
- package/esm2015/lib/modules/description-list/types/description-list-mode.js.map +0 -1
- package/esm2015/lib/modules/fluid-grid/column.component.js +0 -58
- package/esm2015/lib/modules/fluid-grid/column.component.js.map +0 -1
- package/esm2015/lib/modules/fluid-grid/fluid-grid-gutter-size.js +0 -20
- package/esm2015/lib/modules/fluid-grid/fluid-grid-gutter-size.js.map +0 -1
- package/esm2015/lib/modules/fluid-grid/fluid-grid.component.js +0 -66
- package/esm2015/lib/modules/fluid-grid/fluid-grid.component.js.map +0 -1
- package/esm2015/lib/modules/fluid-grid/fluid-grid.module.js +0 -20
- package/esm2015/lib/modules/fluid-grid/fluid-grid.module.js.map +0 -1
- package/esm2015/lib/modules/fluid-grid/row.component.js +0 -29
- package/esm2015/lib/modules/fluid-grid/row.component.js.map +0 -1
- package/esm2015/lib/modules/fluid-grid/types/fluid-grid-gutter-size-type.js +0 -2
- package/esm2015/lib/modules/fluid-grid/types/fluid-grid-gutter-size-type.js.map +0 -1
- package/esm2015/lib/modules/format/format-item.js +0 -2
- package/esm2015/lib/modules/format/format-item.js.map +0 -1
- package/esm2015/lib/modules/format/format.component.js +0 -63
- package/esm2015/lib/modules/format/format.component.js.map +0 -1
- package/esm2015/lib/modules/format/format.module.js +0 -18
- package/esm2015/lib/modules/format/format.module.js.map +0 -1
- package/esm2015/lib/modules/inline-delete/inline-delete-adapter.service.js +0 -115
- package/esm2015/lib/modules/inline-delete/inline-delete-adapter.service.js.map +0 -1
- package/esm2015/lib/modules/inline-delete/inline-delete-type.js +0 -16
- package/esm2015/lib/modules/inline-delete/inline-delete-type.js.map +0 -1
- package/esm2015/lib/modules/inline-delete/inline-delete.component.js +0 -167
- package/esm2015/lib/modules/inline-delete/inline-delete.component.js.map +0 -1
- package/esm2015/lib/modules/inline-delete/inline-delete.module.js +0 -34
- package/esm2015/lib/modules/inline-delete/inline-delete.module.js.map +0 -1
- package/esm2015/lib/modules/page/page-theme-adapter.service.js +0 -26
- package/esm2015/lib/modules/page/page-theme-adapter.service.js.map +0 -1
- package/esm2015/lib/modules/page/page.component.js +0 -31
- package/esm2015/lib/modules/page/page.component.js.map +0 -1
- package/esm2015/lib/modules/page/page.module.js +0 -16
- package/esm2015/lib/modules/page/page.module.js.map +0 -1
- package/esm2015/lib/modules/page-summary/page-summary-adapter.service.js +0 -23
- package/esm2015/lib/modules/page-summary/page-summary-adapter.service.js.map +0 -1
- package/esm2015/lib/modules/page-summary/page-summary-alert.component.js +0 -21
- package/esm2015/lib/modules/page-summary/page-summary-alert.component.js.map +0 -1
- package/esm2015/lib/modules/page-summary/page-summary-content.component.js +0 -20
- package/esm2015/lib/modules/page-summary/page-summary-content.component.js.map +0 -1
- package/esm2015/lib/modules/page-summary/page-summary-image.component.js +0 -21
- package/esm2015/lib/modules/page-summary/page-summary-image.component.js.map +0 -1
- package/esm2015/lib/modules/page-summary/page-summary-key-info.component.js +0 -19
- package/esm2015/lib/modules/page-summary/page-summary-key-info.component.js.map +0 -1
- package/esm2015/lib/modules/page-summary/page-summary-status.component.js +0 -21
- package/esm2015/lib/modules/page-summary/page-summary-status.component.js.map +0 -1
- package/esm2015/lib/modules/page-summary/page-summary-subtitle.component.js +0 -20
- package/esm2015/lib/modules/page-summary/page-summary-subtitle.component.js.map +0 -1
- package/esm2015/lib/modules/page-summary/page-summary-title.component.js +0 -20
- package/esm2015/lib/modules/page-summary/page-summary-title.component.js.map +0 -1
- package/esm2015/lib/modules/page-summary/page-summary.component.js +0 -50
- package/esm2015/lib/modules/page-summary/page-summary.component.js.map +0 -1
- package/esm2015/lib/modules/page-summary/page-summary.module.js +0 -57
- package/esm2015/lib/modules/page-summary/page-summary.module.js.map +0 -1
- package/esm2015/lib/modules/shared/sky-layout-resources.module.js +0 -60
- package/esm2015/lib/modules/shared/sky-layout-resources.module.js.map +0 -1
- package/esm2015/lib/modules/text-expand/text-expand-adapter.service.js +0 -31
- package/esm2015/lib/modules/text-expand/text-expand-adapter.service.js.map +0 -1
- package/esm2015/lib/modules/text-expand/text-expand-modal-context.js +0 -6
- package/esm2015/lib/modules/text-expand/text-expand-modal-context.js.map +0 -1
- package/esm2015/lib/modules/text-expand/text-expand-modal.component.js +0 -30
- package/esm2015/lib/modules/text-expand/text-expand-modal.component.js.map +0 -1
- package/esm2015/lib/modules/text-expand/text-expand.component.js +0 -252
- package/esm2015/lib/modules/text-expand/text-expand.component.js.map +0 -1
- package/esm2015/lib/modules/text-expand/text-expand.module.js +0 -36
- package/esm2015/lib/modules/text-expand/text-expand.module.js.map +0 -1
- package/esm2015/lib/modules/text-expand-repeater/text-expand-repeater-adapter.service.js +0 -37
- package/esm2015/lib/modules/text-expand-repeater/text-expand-repeater-adapter.service.js.map +0 -1
- package/esm2015/lib/modules/text-expand-repeater/text-expand-repeater.component.js +0 -176
- package/esm2015/lib/modules/text-expand-repeater/text-expand-repeater.component.js.map +0 -1
- package/esm2015/lib/modules/text-expand-repeater/text-expand-repeater.module.js +0 -20
- package/esm2015/lib/modules/text-expand-repeater/text-expand-repeater.module.js.map +0 -1
- package/esm2015/lib/modules/text-expand-repeater/types/text-expand-repeater-list-style-type.js +0 -2
- package/esm2015/lib/modules/text-expand-repeater/types/text-expand-repeater-list-style-type.js.map +0 -1
- package/esm2015/lib/modules/toolbar/toolbar-item.component.js +0 -18
- package/esm2015/lib/modules/toolbar/toolbar-item.component.js.map +0 -1
- package/esm2015/lib/modules/toolbar/toolbar-section.component.js +0 -18
- package/esm2015/lib/modules/toolbar/toolbar-section.component.js.map +0 -1
- package/esm2015/lib/modules/toolbar/toolbar-view-actions.component.js +0 -20
- package/esm2015/lib/modules/toolbar/toolbar-view-actions.component.js.map +0 -1
- package/esm2015/lib/modules/toolbar/toolbar.component.js +0 -29
- package/esm2015/lib/modules/toolbar/toolbar.component.js.map +0 -1
- package/esm2015/lib/modules/toolbar/toolbar.module.js +0 -37
- package/esm2015/lib/modules/toolbar/toolbar.module.js.map +0 -1
- package/esm2015/skyux-layout.js +0 -5
- package/esm2015/skyux-layout.js.map +0 -1
- package/esm2015/testing/action-button-fixture.js +0 -44
- package/esm2015/testing/action-button-fixture.js.map +0 -1
- package/esm2015/testing/card-fixture.js +0 -63
- package/esm2015/testing/card-fixture.js.map +0 -1
- package/esm2015/testing/page-summary-fixture.js +0 -29
- package/esm2015/testing/page-summary-fixture.js.map +0 -1
- package/esm2015/testing/public-api.js +0 -4
- package/esm2015/testing/public-api.js.map +0 -1
- package/esm2015/testing/skyux-layout-testing.js +0 -5
- package/esm2015/testing/skyux-layout-testing.js.map +0 -1
- package/fesm2015/skyux-layout-testing.js.map +0 -1
- package/fesm2015/skyux-layout.js +0 -2912
- package/fesm2015/skyux-layout.js.map +0 -1
|
@@ -1,3570 +0,0 @@
|
|
|
1
|
-
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/common'), require('@angular/core'), require('@angular/router'), require('@skyux/indicators'), require('@skyux/router'), require('@skyux/theme'), require('rxjs'), require('rxjs/operators'), require('@skyux/core'), require('@skyux/i18n'), require('@angular/forms'), require('@skyux/forms'), require('@angular/animations'), require('@skyux/modals')) :
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@skyux/layout', ['exports', '@angular/common', '@angular/core', '@angular/router', '@skyux/indicators', '@skyux/router', '@skyux/theme', 'rxjs', 'rxjs/operators', '@skyux/core', '@skyux/i18n', '@angular/forms', '@skyux/forms', '@angular/animations', '@skyux/modals'], factory) :
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.skyux = global.skyux || {}, global.skyux.layout = {}), global.ng.common, global.ng.core, global.ng.router, global.i2$1, global.i4, global.i3$1, global.rxjs, global.rxjs.operators, global.i1, global.i1$1, global.ng.forms, global.i1$2, global.ng.animations, global.i2$2));
|
|
5
|
-
})(this, (function (exports, i3, i0, i2, i2$1, i4, i3$1, rxjs, operators, i1, i1$1, i3$2, i1$2, animations, i2$2) { 'use strict';
|
|
6
|
-
|
|
7
|
-
function _interopNamespace(e) {
|
|
8
|
-
if (e && e.__esModule) return e;
|
|
9
|
-
var n = Object.create(null);
|
|
10
|
-
if (e) {
|
|
11
|
-
Object.keys(e).forEach(function (k) {
|
|
12
|
-
if (k !== 'default') {
|
|
13
|
-
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
14
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
15
|
-
enumerable: true,
|
|
16
|
-
get: function () { return e[k]; }
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
n["default"] = e;
|
|
22
|
-
return Object.freeze(n);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
var i3__namespace = /*#__PURE__*/_interopNamespace(i3);
|
|
26
|
-
var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
|
|
27
|
-
var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
|
|
28
|
-
var i2__namespace$1 = /*#__PURE__*/_interopNamespace(i2$1);
|
|
29
|
-
var i4__namespace = /*#__PURE__*/_interopNamespace(i4);
|
|
30
|
-
var i3__namespace$1 = /*#__PURE__*/_interopNamespace(i3$1);
|
|
31
|
-
var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
|
|
32
|
-
var i1__namespace$1 = /*#__PURE__*/_interopNamespace(i1$1);
|
|
33
|
-
var i3__namespace$2 = /*#__PURE__*/_interopNamespace(i3$2);
|
|
34
|
-
var i1__namespace$2 = /*#__PURE__*/_interopNamespace(i1$2);
|
|
35
|
-
var i2__namespace$2 = /*#__PURE__*/_interopNamespace(i2$2);
|
|
36
|
-
|
|
37
|
-
var RESPONSIVE_CLASS_SM = 'sky-action-button-container-sm';
|
|
38
|
-
var RESPONSIVE_CLASS_MD = 'sky-action-button-container-md';
|
|
39
|
-
var RESPONSIVE_CLASS_LG = 'sky-action-button-container-lg';
|
|
40
|
-
var BREAKPOINT_MD = 912;
|
|
41
|
-
var BREAKPOINT_LG = 1378;
|
|
42
|
-
/**
|
|
43
|
-
* @internal
|
|
44
|
-
*/
|
|
45
|
-
var SkyActionButtonAdapterService = /** @class */ (function () {
|
|
46
|
-
function SkyActionButtonAdapterService(rendererFactory) {
|
|
47
|
-
this.renderer = rendererFactory.createRenderer(undefined, undefined);
|
|
48
|
-
}
|
|
49
|
-
SkyActionButtonAdapterService.prototype.getParentWidth = function (element) {
|
|
50
|
-
return element.nativeElement.parentNode.getBoundingClientRect().width;
|
|
51
|
-
};
|
|
52
|
-
SkyActionButtonAdapterService.prototype.setResponsiveClass = function (element, width) {
|
|
53
|
-
var el = element.nativeElement;
|
|
54
|
-
var className = this.getResponsiveClassName(width);
|
|
55
|
-
this.renderer.removeClass(el, RESPONSIVE_CLASS_SM);
|
|
56
|
-
this.renderer.removeClass(el, RESPONSIVE_CLASS_MD);
|
|
57
|
-
this.renderer.removeClass(el, RESPONSIVE_CLASS_LG);
|
|
58
|
-
this.renderer.addClass(el, className);
|
|
59
|
-
};
|
|
60
|
-
SkyActionButtonAdapterService.prototype.getResponsiveClassName = function (width) {
|
|
61
|
-
if (width < BREAKPOINT_MD) {
|
|
62
|
-
return RESPONSIVE_CLASS_SM;
|
|
63
|
-
}
|
|
64
|
-
else if (width > BREAKPOINT_MD && width < BREAKPOINT_LG) {
|
|
65
|
-
return RESPONSIVE_CLASS_MD;
|
|
66
|
-
}
|
|
67
|
-
else {
|
|
68
|
-
return RESPONSIVE_CLASS_LG;
|
|
69
|
-
}
|
|
70
|
-
};
|
|
71
|
-
return SkyActionButtonAdapterService;
|
|
72
|
-
}());
|
|
73
|
-
SkyActionButtonAdapterService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyActionButtonAdapterService, deps: [{ token: i0__namespace.RendererFactory2 }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
74
|
-
SkyActionButtonAdapterService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyActionButtonAdapterService });
|
|
75
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyActionButtonAdapterService, decorators: [{
|
|
76
|
-
type: i0.Injectable
|
|
77
|
-
}], ctorParameters: function () { return [{ type: i0__namespace.RendererFactory2 }]; } });
|
|
78
|
-
|
|
79
|
-
/**
|
|
80
|
-
* Creates a button to present users with an option to move forward with tasks.
|
|
81
|
-
*/
|
|
82
|
-
var SkyActionButtonComponent = /** @class */ (function () {
|
|
83
|
-
function SkyActionButtonComponent() {
|
|
84
|
-
/**
|
|
85
|
-
* Fires when users select the action button.
|
|
86
|
-
*/
|
|
87
|
-
this.actionClick = new i0.EventEmitter();
|
|
88
|
-
}
|
|
89
|
-
SkyActionButtonComponent.prototype.buttonClicked = function () {
|
|
90
|
-
this.actionClick.emit();
|
|
91
|
-
};
|
|
92
|
-
SkyActionButtonComponent.prototype.enterPress = function () {
|
|
93
|
-
this.actionClick.emit();
|
|
94
|
-
};
|
|
95
|
-
return SkyActionButtonComponent;
|
|
96
|
-
}());
|
|
97
|
-
SkyActionButtonComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyActionButtonComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
98
|
-
SkyActionButtonComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyActionButtonComponent, selector: "sky-action-button", inputs: { permalink: "permalink" }, outputs: { actionClick: "actionClick" }, ngImport: i0__namespace, template: "<a\n *ngIf=\"permalink && permalink.route\"\n class=\"sky-action-button sky-btn-default sky-rounded-corners\"\n tabindex=\"0\"\n [fragment]=\"permalink.route?.extras?.fragment\"\n [skyThemeClass]=\"{\n 'sky-btn sky-box': 'modern'\n }\"\n [queryParams]=\"permalink.route?.extras?.queryParams\"\n [queryParamsHandling]=\"permalink.route?.extras?.queryParamsHandling\"\n [routerLink]=\"permalink.route?.commands\"\n>\n <ng-container *ngTemplateOutlet=\"actionButtonContent\"> </ng-container>\n</a>\n\n<a\n *ngIf=\"permalink && !permalink.route\"\n class=\"sky-action-button sky-btn-default sky-rounded-corners\"\n tabindex=\"0\"\n [skyHref]=\"permalink.url\"\n [skyThemeClass]=\"{\n 'sky-btn sky-box': 'modern'\n }\"\n>\n <ng-container *ngTemplateOutlet=\"actionButtonContent\"> </ng-container>\n</a>\n\n<div\n *ngIf=\"!permalink\"\n class=\"sky-action-button sky-btn-default sky-rounded-corners\"\n tabindex=\"0\"\n role=\"button\"\n [skyThemeClass]=\"{\n 'sky-btn sky-box': 'modern'\n }\"\n (click)=\"buttonClicked()\"\n (keydown.enter)=\"enterPress()\"\n>\n <ng-container *ngTemplateOutlet=\"actionButtonContent\"> </ng-container>\n</div>\n\n<ng-template #actionButtonContent>\n <ng-container *skyThemeIf=\"'default'\">\n <div class=\"sky-action-button-icon-header-container\">\n <ng-container *ngTemplateOutlet=\"icon\"></ng-container>\n <ng-container *ngTemplateOutlet=\"header\"></ng-container>\n </div>\n <ng-container *ngTemplateOutlet=\"details\"></ng-container>\n </ng-container>\n\n <ng-container *skyThemeIf=\"'modern'\">\n <ng-container *ngTemplateOutlet=\"icon\"></ng-container>\n <div class=\"sky-action-button-content\">\n <ng-container *ngTemplateOutlet=\"header\"></ng-container>\n <div\n class=\"sky-action-button-details\"\n [skyThemeClass]=\"{\n 'sky-font-deemphasized': 'modern'\n }\"\n >\n <ng-container *ngTemplateOutlet=\"details\"></ng-container>\n </div>\n </div>\n </ng-container>\n</ng-template>\n\n<ng-template #icon>\n <ng-content select=\"sky-action-button-icon\"></ng-content>\n</ng-template>\n\n<ng-template #header>\n <ng-content select=\"sky-action-button-header\"></ng-content>\n</ng-template>\n\n<ng-template #details>\n <ng-content select=\"sky-action-button-details\"></ng-content>\n</ng-template>\n", styles: [".sky-action-button{border-top:1px solid #cdcfd2;border-bottom:1px solid #cdcfd2;border-left:1px solid #cdcfd2;border-right:1px solid #cdcfd2;cursor:pointer;text-align:center;text-decoration:none!important;display:block}.sky-action-button:hover{border-color:#c2c4c6}.sky-action-button-icon-header-container{display:flex;justify-content:center}.sky-action-button{padding:20px 20px 30px;margin:0 15px}.sky-action-button-icon-header-container{margin-bottom:20px}.sky-responsive-container-xs .sky-action-button,.sky-responsive-container-sm .sky-action-button,.sky-responsive-container-md .sky-action-button,.sky-responsive-container-lg .sky-action-button{padding:20px 20px 30px;margin:0 15px}.sky-responsive-container-xs .sky-action-button-icon-header-container,.sky-responsive-container-sm .sky-action-button-icon-header-container,.sky-responsive-container-md .sky-action-button-icon-header-container,.sky-responsive-container-lg .sky-action-button-icon-header-container{margin-bottom:20px}@media (min-width: 768px){.sky-action-button{padding:30px 20px;margin:0;max-width:236px}.sky-action-button-icon-header-container{margin-bottom:0;flex-direction:column}}.sky-responsive-container-sm .sky-action-button,.sky-responsive-container-md .sky-action-button,.sky-responsive-container-lg .sky-action-button{padding:30px 20px;margin:0;max-width:236px}.sky-responsive-container-sm .sky-action-button-icon-header-container,.sky-responsive-container-md .sky-action-button-icon-header-container,.sky-responsive-container-lg .sky-action-button-icon-header-container{margin-bottom:0;flex-direction:column}.sky-theme-modern .sky-action-button{display:flex;flex-flow:row nowrap;padding:30px;text-align:left;border:none}.sky-theme-modern .sky-action-button .sky-action-button-content{flex:1 1 auto;margin:0 10px 0 0;white-space:initial}.sky-theme-modern .sky-action-button{padding:30px;margin:0;max-width:446px}.sky-theme-modern .sky-responsive-container-xs .sky-action-button,.sky-theme-modern .sky-responsive-container-sm .sky-action-button,.sky-theme-modern .sky-responsive-container-md .sky-action-button,.sky-theme-modern .sky-responsive-container-lg .sky-action-button{padding:30px;margin:0;max-width:446px}@media (min-width: 768px){.sky-theme-modern .sky-action-button{padding:30px;margin:0}}.sky-theme-modern .sky-responsive-container-sm .sky-action-button,.sky-theme-modern .sky-responsive-container-md .sky-action-button,.sky-theme-modern .sky-responsive-container-lg .sky-action-button{padding:30px;margin:0}\n"], directives: [{ type: i3__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2__namespace.RouterLinkWithHref, selector: "a[routerLink],area[routerLink]", inputs: ["routerLink", "target", "queryParams", "fragment", "queryParamsHandling", "preserveFragment", "skipLocationChange", "replaceUrl", "state", "relativeTo"] }, { type: i3__namespace$1.λ2, selector: "[skyThemeClass]", inputs: ["class", "skyThemeClass"] }, { type: i3__namespace.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i4__namespace.λ1, selector: "[skyHref]", inputs: ["skyHref", "skyHrefElse"] }, { type: i3__namespace$1.λ3, selector: "[skyThemeIf]", inputs: ["skyThemeIf"] }], encapsulation: i0__namespace.ViewEncapsulation.None });
|
|
99
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyActionButtonComponent, decorators: [{
|
|
100
|
-
type: i0.Component,
|
|
101
|
-
args: [{
|
|
102
|
-
selector: 'sky-action-button',
|
|
103
|
-
styles: [".sky-action-button{border-top:1px solid #cdcfd2;border-bottom:1px solid #cdcfd2;border-left:1px solid #cdcfd2;border-right:1px solid #cdcfd2;cursor:pointer;text-align:center;text-decoration:none!important;display:block}.sky-action-button:hover{border-color:#c2c4c6}.sky-action-button-icon-header-container{display:flex;justify-content:center}.sky-action-button{padding:20px 20px 30px;margin:0 15px}.sky-action-button-icon-header-container{margin-bottom:20px}.sky-responsive-container-xs .sky-action-button,.sky-responsive-container-sm .sky-action-button,.sky-responsive-container-md .sky-action-button,.sky-responsive-container-lg .sky-action-button{padding:20px 20px 30px;margin:0 15px}.sky-responsive-container-xs .sky-action-button-icon-header-container,.sky-responsive-container-sm .sky-action-button-icon-header-container,.sky-responsive-container-md .sky-action-button-icon-header-container,.sky-responsive-container-lg .sky-action-button-icon-header-container{margin-bottom:20px}@media (min-width: 768px){.sky-action-button{padding:30px 20px;margin:0;max-width:236px}.sky-action-button-icon-header-container{margin-bottom:0;flex-direction:column}}.sky-responsive-container-sm .sky-action-button,.sky-responsive-container-md .sky-action-button,.sky-responsive-container-lg .sky-action-button{padding:30px 20px;margin:0;max-width:236px}.sky-responsive-container-sm .sky-action-button-icon-header-container,.sky-responsive-container-md .sky-action-button-icon-header-container,.sky-responsive-container-lg .sky-action-button-icon-header-container{margin-bottom:0;flex-direction:column}.sky-theme-modern .sky-action-button{display:flex;flex-flow:row nowrap;padding:30px;text-align:left;border:none}.sky-theme-modern .sky-action-button .sky-action-button-content{flex:1 1 auto;margin:0 10px 0 0;white-space:initial}.sky-theme-modern .sky-action-button{padding:30px;margin:0;max-width:446px}.sky-theme-modern .sky-responsive-container-xs .sky-action-button,.sky-theme-modern .sky-responsive-container-sm .sky-action-button,.sky-theme-modern .sky-responsive-container-md .sky-action-button,.sky-theme-modern .sky-responsive-container-lg .sky-action-button{padding:30px;margin:0;max-width:446px}@media (min-width: 768px){.sky-theme-modern .sky-action-button{padding:30px;margin:0}}.sky-theme-modern .sky-responsive-container-sm .sky-action-button,.sky-theme-modern .sky-responsive-container-md .sky-action-button,.sky-theme-modern .sky-responsive-container-lg .sky-action-button{padding:30px;margin:0}\n"],
|
|
104
|
-
template: "<a\n *ngIf=\"permalink && permalink.route\"\n class=\"sky-action-button sky-btn-default sky-rounded-corners\"\n tabindex=\"0\"\n [fragment]=\"permalink.route?.extras?.fragment\"\n [skyThemeClass]=\"{\n 'sky-btn sky-box': 'modern'\n }\"\n [queryParams]=\"permalink.route?.extras?.queryParams\"\n [queryParamsHandling]=\"permalink.route?.extras?.queryParamsHandling\"\n [routerLink]=\"permalink.route?.commands\"\n>\n <ng-container *ngTemplateOutlet=\"actionButtonContent\"> </ng-container>\n</a>\n\n<a\n *ngIf=\"permalink && !permalink.route\"\n class=\"sky-action-button sky-btn-default sky-rounded-corners\"\n tabindex=\"0\"\n [skyHref]=\"permalink.url\"\n [skyThemeClass]=\"{\n 'sky-btn sky-box': 'modern'\n }\"\n>\n <ng-container *ngTemplateOutlet=\"actionButtonContent\"> </ng-container>\n</a>\n\n<div\n *ngIf=\"!permalink\"\n class=\"sky-action-button sky-btn-default sky-rounded-corners\"\n tabindex=\"0\"\n role=\"button\"\n [skyThemeClass]=\"{\n 'sky-btn sky-box': 'modern'\n }\"\n (click)=\"buttonClicked()\"\n (keydown.enter)=\"enterPress()\"\n>\n <ng-container *ngTemplateOutlet=\"actionButtonContent\"> </ng-container>\n</div>\n\n<ng-template #actionButtonContent>\n <ng-container *skyThemeIf=\"'default'\">\n <div class=\"sky-action-button-icon-header-container\">\n <ng-container *ngTemplateOutlet=\"icon\"></ng-container>\n <ng-container *ngTemplateOutlet=\"header\"></ng-container>\n </div>\n <ng-container *ngTemplateOutlet=\"details\"></ng-container>\n </ng-container>\n\n <ng-container *skyThemeIf=\"'modern'\">\n <ng-container *ngTemplateOutlet=\"icon\"></ng-container>\n <div class=\"sky-action-button-content\">\n <ng-container *ngTemplateOutlet=\"header\"></ng-container>\n <div\n class=\"sky-action-button-details\"\n [skyThemeClass]=\"{\n 'sky-font-deemphasized': 'modern'\n }\"\n >\n <ng-container *ngTemplateOutlet=\"details\"></ng-container>\n </div>\n </div>\n </ng-container>\n</ng-template>\n\n<ng-template #icon>\n <ng-content select=\"sky-action-button-icon\"></ng-content>\n</ng-template>\n\n<ng-template #header>\n <ng-content select=\"sky-action-button-header\"></ng-content>\n</ng-template>\n\n<ng-template #details>\n <ng-content select=\"sky-action-button-details\"></ng-content>\n</ng-template>\n",
|
|
105
|
-
encapsulation: i0.ViewEncapsulation.None,
|
|
106
|
-
}]
|
|
107
|
-
}], propDecorators: { permalink: [{
|
|
108
|
-
type: i0.Input
|
|
109
|
-
}], actionClick: [{
|
|
110
|
-
type: i0.Output
|
|
111
|
-
}] } });
|
|
112
|
-
|
|
113
|
-
/**
|
|
114
|
-
* Wraps action buttons to ensures that they have consistent height and spacing.
|
|
115
|
-
* @required
|
|
116
|
-
*/
|
|
117
|
-
var SkyActionButtonContainerComponent = /** @class */ (function () {
|
|
118
|
-
function SkyActionButtonContainerComponent(actionButtonAdapterService, changeRef, coreAdapterService, hostElRef, mutationObserverSvc, ngZone, themeSvc) {
|
|
119
|
-
this.actionButtonAdapterService = actionButtonAdapterService;
|
|
120
|
-
this.changeRef = changeRef;
|
|
121
|
-
this.coreAdapterService = coreAdapterService;
|
|
122
|
-
this.hostElRef = hostElRef;
|
|
123
|
-
this.mutationObserverSvc = mutationObserverSvc;
|
|
124
|
-
this.ngZone = ngZone;
|
|
125
|
-
this.themeSvc = themeSvc;
|
|
126
|
-
this.ngUnsubscribe = new rxjs.Subject();
|
|
127
|
-
}
|
|
128
|
-
Object.defineProperty(SkyActionButtonContainerComponent.prototype, "alignItems", {
|
|
129
|
-
get: function () {
|
|
130
|
-
return this._alignItems || 'center';
|
|
131
|
-
},
|
|
132
|
-
/**
|
|
133
|
-
* Specifies how to display the action buttons inside the action button container.
|
|
134
|
-
* Options are `"center"` or `"left"`.
|
|
135
|
-
* @default "center"
|
|
136
|
-
*/
|
|
137
|
-
set: function (value) {
|
|
138
|
-
this._alignItems = value;
|
|
139
|
-
},
|
|
140
|
-
enumerable: false,
|
|
141
|
-
configurable: true
|
|
142
|
-
});
|
|
143
|
-
Object.defineProperty(SkyActionButtonContainerComponent.prototype, "themeName", {
|
|
144
|
-
set: function (value) {
|
|
145
|
-
this._themeName = value;
|
|
146
|
-
this.updateResponsiveClass();
|
|
147
|
-
this.updateHeight();
|
|
148
|
-
},
|
|
149
|
-
enumerable: false,
|
|
150
|
-
configurable: true
|
|
151
|
-
});
|
|
152
|
-
SkyActionButtonContainerComponent.prototype.ngOnInit = function () {
|
|
153
|
-
var _this = this;
|
|
154
|
-
/* istanbul ignore else */
|
|
155
|
-
if (this.themeSvc) {
|
|
156
|
-
this.themeSvc.settingsChange
|
|
157
|
-
.pipe(operators.takeUntil(this.ngUnsubscribe))
|
|
158
|
-
.subscribe(function (themeSettings) {
|
|
159
|
-
_this.themeName = themeSettings.currentSettings.theme.name;
|
|
160
|
-
_this.changeRef.markForCheck();
|
|
161
|
-
});
|
|
162
|
-
}
|
|
163
|
-
// Wait for children components to complete rendering before container width is determined.
|
|
164
|
-
setTimeout(function () {
|
|
165
|
-
_this.updateResponsiveClass();
|
|
166
|
-
});
|
|
167
|
-
};
|
|
168
|
-
SkyActionButtonContainerComponent.prototype.ngAfterContentInit = function () {
|
|
169
|
-
var _this = this;
|
|
170
|
-
// Watch for dynamic action button changes and recalculate height.
|
|
171
|
-
/* istanbul ignore else */
|
|
172
|
-
if (this.actionButtons) {
|
|
173
|
-
this.actionButtons.changes
|
|
174
|
-
.pipe(operators.takeUntil(this.ngUnsubscribe))
|
|
175
|
-
.subscribe(function () {
|
|
176
|
-
_this.updateHeight();
|
|
177
|
-
});
|
|
178
|
-
}
|
|
179
|
-
this.initMutationObserver();
|
|
180
|
-
};
|
|
181
|
-
SkyActionButtonContainerComponent.prototype.ngOnDestroy = function () {
|
|
182
|
-
this.ngUnsubscribe.next();
|
|
183
|
-
this.ngUnsubscribe.complete();
|
|
184
|
-
this.destroyMutationObserver();
|
|
185
|
-
};
|
|
186
|
-
SkyActionButtonContainerComponent.prototype.onWindowResize = function () {
|
|
187
|
-
this.updateResponsiveClass();
|
|
188
|
-
};
|
|
189
|
-
SkyActionButtonContainerComponent.prototype.initMutationObserver = function () {
|
|
190
|
-
var _this = this;
|
|
191
|
-
/* istanbul ignore else */
|
|
192
|
-
if (!this.mutationObserver) {
|
|
193
|
-
var el_1 = this.containerRef.nativeElement;
|
|
194
|
-
// MutationObserver is patched by Zone.js and therefore becomes part of the
|
|
195
|
-
// Angular change detection cycle, but this can lead to infinite loops in some
|
|
196
|
-
// scenarios. This will keep MutationObserver from triggering change detection.
|
|
197
|
-
this.ngZone.runOutsideAngular(function () {
|
|
198
|
-
_this.mutationObserver = _this.mutationObserverSvc.create(function () {
|
|
199
|
-
_this.updateHeight();
|
|
200
|
-
});
|
|
201
|
-
_this.mutationObserver.observe(el_1, {
|
|
202
|
-
characterData: true,
|
|
203
|
-
subtree: true,
|
|
204
|
-
});
|
|
205
|
-
});
|
|
206
|
-
}
|
|
207
|
-
};
|
|
208
|
-
SkyActionButtonContainerComponent.prototype.destroyMutationObserver = function () {
|
|
209
|
-
if (this.mutationObserver) {
|
|
210
|
-
this.mutationObserver.disconnect();
|
|
211
|
-
this.mutationObserver = undefined;
|
|
212
|
-
}
|
|
213
|
-
};
|
|
214
|
-
SkyActionButtonContainerComponent.prototype.updateHeight = function () {
|
|
215
|
-
var _this = this;
|
|
216
|
-
this.coreAdapterService.resetHeight(this.containerRef, '.sky-action-button');
|
|
217
|
-
if (this._themeName === 'modern') {
|
|
218
|
-
// Wait for children components to complete rendering before height is determined.
|
|
219
|
-
setTimeout(function () {
|
|
220
|
-
_this.coreAdapterService.syncMaxHeight(_this.containerRef, '.sky-action-button');
|
|
221
|
-
});
|
|
222
|
-
}
|
|
223
|
-
};
|
|
224
|
-
SkyActionButtonContainerComponent.prototype.updateResponsiveClass = function () {
|
|
225
|
-
var parentWidth = this.actionButtonAdapterService.getParentWidth(this.hostElRef);
|
|
226
|
-
this.actionButtonAdapterService.setResponsiveClass(this.containerRef, parentWidth);
|
|
227
|
-
};
|
|
228
|
-
return SkyActionButtonContainerComponent;
|
|
229
|
-
}());
|
|
230
|
-
SkyActionButtonContainerComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyActionButtonContainerComponent, deps: [{ token: SkyActionButtonAdapterService }, { token: i0__namespace.ChangeDetectorRef }, { token: i1__namespace.SkyCoreAdapterService }, { token: i0__namespace.ElementRef }, { token: i1__namespace.MutationObserverService }, { token: i0__namespace.NgZone }, { token: i3__namespace$1.SkyThemeService, optional: true }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
231
|
-
SkyActionButtonContainerComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyActionButtonContainerComponent, selector: "sky-action-button-container", inputs: { alignItems: "alignItems" }, host: { listeners: { "window:resize": "onWindowResize()" } }, providers: [SkyActionButtonAdapterService], queries: [{ propertyName: "actionButtons", predicate: SkyActionButtonComponent }], viewQueries: [{ propertyName: "containerRef", first: true, predicate: ["container"], descendants: true, read: i0.ElementRef, static: true }], ngImport: i0__namespace, template: "<div class=\"sky-action-button-container\" #container>\n <div\n class=\"sky-action-button-flex\"\n [ngClass]=\"{\n 'sky-action-button-flex-align-left': alignItems === 'left',\n 'sky-action-button-flex-align-center': alignItems === 'center'\n }\"\n >\n <ng-content></ng-content>\n </div>\n</div>\n", styles: [":host{display:block}.sky-action-button-flex sky-action-button{display:block}.sky-action-button-flex .sky-action-button{height:100%;min-width:236px;margin-left:10px;margin-right:10px}.sky-action-button-flex{display:block;padding:0}.sky-action-button-flex sky-action-button{margin:20px 0}.sky-responsive-container-xs .sky-action-button-flex,.sky-responsive-container-sm .sky-action-button-flex,.sky-responsive-container-md .sky-action-button-flex,.sky-responsive-container-lg .sky-action-button-flex{display:block;padding:0}.sky-responsive-container-xs .sky-action-button-flex sky-action-button,.sky-responsive-container-sm .sky-action-button-flex sky-action-button,.sky-responsive-container-md .sky-action-button-flex sky-action-button,.sky-responsive-container-lg .sky-action-button-flex sky-action-button{margin:20px 0}@media (min-width: 768px){.sky-action-button-flex{display:flex;flex-flow:row wrap;padding:10px 0}.sky-action-button-flex.sky-action-button-flex-align-center{justify-content:center}.sky-action-button-flex.sky-action-button-flex-align-left{justify-content:flex-start}.sky-action-button-flex sky-action-button{margin:10px 0}}.sky-responsive-container-sm .sky-action-button-flex,.sky-responsive-container-md .sky-action-button-flex,.sky-responsive-container-lg .sky-action-button-flex{display:flex;flex-flow:row wrap;padding:10px 0}.sky-responsive-container-sm .sky-action-button-flex.sky-action-button-flex-align-center,.sky-responsive-container-md .sky-action-button-flex.sky-action-button-flex-align-center,.sky-responsive-container-lg .sky-action-button-flex.sky-action-button-flex-align-center{justify-content:center}.sky-responsive-container-sm .sky-action-button-flex.sky-action-button-flex-align-left,.sky-responsive-container-md .sky-action-button-flex.sky-action-button-flex-align-left,.sky-responsive-container-lg .sky-action-button-flex.sky-action-button-flex-align-left{justify-content:flex-start}.sky-responsive-container-sm .sky-action-button-flex sky-action-button,.sky-responsive-container-md .sky-action-button-flex sky-action-button,.sky-responsive-container-lg .sky-action-button-flex sky-action-button{margin:10px 0}.sky-theme-modern .sky-action-button-container{margin:0 auto}.sky-theme-modern .sky-action-button-container.sky-action-button-container-sm{max-width:446px}.sky-theme-modern .sky-action-button-container.sky-action-button-container-md{max-width:912px}.sky-theme-modern .sky-action-button-container.sky-action-button-container-lg{max-width:1378px}.sky-theme-modern .sky-action-button-container .sky-action-button-flex .sky-action-button{height:auto;min-width:auto;margin:0}.sky-theme-modern .sky-action-button-flex{display:flex;flex-flow:row wrap;padding:0;margin:0 0 -20px -20px}.sky-theme-modern .sky-action-button-flex sky-action-button{margin:0 0 20px 20px;flex:0 1 446px}.sky-theme-modern .sky-responsive-container-xs .sky-action-button-flex,.sky-theme-modern .sky-responsive-container-sm .sky-action-button-flex,.sky-theme-modern .sky-responsive-container-md .sky-action-button-flex,.sky-theme-modern .sky-responsive-container-lg .sky-action-button-flex{display:flex;flex-flow:row wrap;padding:0;margin:0 0 -20px -20px}.sky-theme-modern .sky-responsive-container-xs .sky-action-button-flex sky-action-button,.sky-theme-modern .sky-responsive-container-sm .sky-action-button-flex sky-action-button,.sky-theme-modern .sky-responsive-container-md .sky-action-button-flex sky-action-button,.sky-theme-modern .sky-responsive-container-lg .sky-action-button-flex sky-action-button{margin:0 0 20px 20px;flex:0 1 446px}\n"], directives: [{ type: i3__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], encapsulation: i0__namespace.ViewEncapsulation.None });
|
|
232
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyActionButtonContainerComponent, decorators: [{
|
|
233
|
-
type: i0.Component,
|
|
234
|
-
args: [{
|
|
235
|
-
selector: 'sky-action-button-container',
|
|
236
|
-
styles: [":host{display:block}.sky-action-button-flex sky-action-button{display:block}.sky-action-button-flex .sky-action-button{height:100%;min-width:236px;margin-left:10px;margin-right:10px}.sky-action-button-flex{display:block;padding:0}.sky-action-button-flex sky-action-button{margin:20px 0}.sky-responsive-container-xs .sky-action-button-flex,.sky-responsive-container-sm .sky-action-button-flex,.sky-responsive-container-md .sky-action-button-flex,.sky-responsive-container-lg .sky-action-button-flex{display:block;padding:0}.sky-responsive-container-xs .sky-action-button-flex sky-action-button,.sky-responsive-container-sm .sky-action-button-flex sky-action-button,.sky-responsive-container-md .sky-action-button-flex sky-action-button,.sky-responsive-container-lg .sky-action-button-flex sky-action-button{margin:20px 0}@media (min-width: 768px){.sky-action-button-flex{display:flex;flex-flow:row wrap;padding:10px 0}.sky-action-button-flex.sky-action-button-flex-align-center{justify-content:center}.sky-action-button-flex.sky-action-button-flex-align-left{justify-content:flex-start}.sky-action-button-flex sky-action-button{margin:10px 0}}.sky-responsive-container-sm .sky-action-button-flex,.sky-responsive-container-md .sky-action-button-flex,.sky-responsive-container-lg .sky-action-button-flex{display:flex;flex-flow:row wrap;padding:10px 0}.sky-responsive-container-sm .sky-action-button-flex.sky-action-button-flex-align-center,.sky-responsive-container-md .sky-action-button-flex.sky-action-button-flex-align-center,.sky-responsive-container-lg .sky-action-button-flex.sky-action-button-flex-align-center{justify-content:center}.sky-responsive-container-sm .sky-action-button-flex.sky-action-button-flex-align-left,.sky-responsive-container-md .sky-action-button-flex.sky-action-button-flex-align-left,.sky-responsive-container-lg .sky-action-button-flex.sky-action-button-flex-align-left{justify-content:flex-start}.sky-responsive-container-sm .sky-action-button-flex sky-action-button,.sky-responsive-container-md .sky-action-button-flex sky-action-button,.sky-responsive-container-lg .sky-action-button-flex sky-action-button{margin:10px 0}.sky-theme-modern .sky-action-button-container{margin:0 auto}.sky-theme-modern .sky-action-button-container.sky-action-button-container-sm{max-width:446px}.sky-theme-modern .sky-action-button-container.sky-action-button-container-md{max-width:912px}.sky-theme-modern .sky-action-button-container.sky-action-button-container-lg{max-width:1378px}.sky-theme-modern .sky-action-button-container .sky-action-button-flex .sky-action-button{height:auto;min-width:auto;margin:0}.sky-theme-modern .sky-action-button-flex{display:flex;flex-flow:row wrap;padding:0;margin:0 0 -20px -20px}.sky-theme-modern .sky-action-button-flex sky-action-button{margin:0 0 20px 20px;flex:0 1 446px}.sky-theme-modern .sky-responsive-container-xs .sky-action-button-flex,.sky-theme-modern .sky-responsive-container-sm .sky-action-button-flex,.sky-theme-modern .sky-responsive-container-md .sky-action-button-flex,.sky-theme-modern .sky-responsive-container-lg .sky-action-button-flex{display:flex;flex-flow:row wrap;padding:0;margin:0 0 -20px -20px}.sky-theme-modern .sky-responsive-container-xs .sky-action-button-flex sky-action-button,.sky-theme-modern .sky-responsive-container-sm .sky-action-button-flex sky-action-button,.sky-theme-modern .sky-responsive-container-md .sky-action-button-flex sky-action-button,.sky-theme-modern .sky-responsive-container-lg .sky-action-button-flex sky-action-button{margin:0 0 20px 20px;flex:0 1 446px}\n"],
|
|
237
|
-
template: "<div class=\"sky-action-button-container\" #container>\n <div\n class=\"sky-action-button-flex\"\n [ngClass]=\"{\n 'sky-action-button-flex-align-left': alignItems === 'left',\n 'sky-action-button-flex-align-center': alignItems === 'center'\n }\"\n >\n <ng-content></ng-content>\n </div>\n</div>\n",
|
|
238
|
-
providers: [SkyActionButtonAdapterService],
|
|
239
|
-
encapsulation: i0.ViewEncapsulation.None,
|
|
240
|
-
}]
|
|
241
|
-
}], ctorParameters: function () {
|
|
242
|
-
return [{ type: SkyActionButtonAdapterService }, { type: i0__namespace.ChangeDetectorRef }, { type: i1__namespace.SkyCoreAdapterService }, { type: i0__namespace.ElementRef }, { type: i1__namespace.MutationObserverService }, { type: i0__namespace.NgZone }, { type: i3__namespace$1.SkyThemeService, decorators: [{
|
|
243
|
-
type: i0.Optional
|
|
244
|
-
}] }];
|
|
245
|
-
}, propDecorators: { alignItems: [{
|
|
246
|
-
type: i0.Input
|
|
247
|
-
}], actionButtons: [{
|
|
248
|
-
type: i0.ContentChildren,
|
|
249
|
-
args: [SkyActionButtonComponent]
|
|
250
|
-
}], containerRef: [{
|
|
251
|
-
type: i0.ViewChild,
|
|
252
|
-
args: ['container', {
|
|
253
|
-
read: i0.ElementRef,
|
|
254
|
-
static: true,
|
|
255
|
-
}]
|
|
256
|
-
}], onWindowResize: [{
|
|
257
|
-
type: i0.HostListener,
|
|
258
|
-
args: ['window:resize']
|
|
259
|
-
}] } });
|
|
260
|
-
|
|
261
|
-
/**
|
|
262
|
-
* Specifies a description to display on an action button.
|
|
263
|
-
*/
|
|
264
|
-
var SkyActionButtonDetailsComponent = /** @class */ (function () {
|
|
265
|
-
function SkyActionButtonDetailsComponent() {
|
|
266
|
-
}
|
|
267
|
-
return SkyActionButtonDetailsComponent;
|
|
268
|
-
}());
|
|
269
|
-
SkyActionButtonDetailsComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyActionButtonDetailsComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
270
|
-
SkyActionButtonDetailsComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyActionButtonDetailsComponent, selector: "sky-action-button-details", ngImport: i0__namespace, template: "<ng-content></ng-content>\n" });
|
|
271
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyActionButtonDetailsComponent, decorators: [{
|
|
272
|
-
type: i0.Component,
|
|
273
|
-
args: [{
|
|
274
|
-
selector: 'sky-action-button-details',
|
|
275
|
-
template: "<ng-content></ng-content>\n",
|
|
276
|
-
}]
|
|
277
|
-
}] });
|
|
278
|
-
|
|
279
|
-
/**
|
|
280
|
-
* Specifies a header to display on an action button.
|
|
281
|
-
*/
|
|
282
|
-
var SkyActionButtonHeaderComponent = /** @class */ (function () {
|
|
283
|
-
function SkyActionButtonHeaderComponent() {
|
|
284
|
-
}
|
|
285
|
-
return SkyActionButtonHeaderComponent;
|
|
286
|
-
}());
|
|
287
|
-
SkyActionButtonHeaderComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyActionButtonHeaderComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
288
|
-
SkyActionButtonHeaderComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyActionButtonHeaderComponent, selector: "sky-action-button-header", ngImport: i0__namespace, template: "<div\n class=\"sky-action-button-header\"\n [skyThemeClass]=\"{\n 'sky-headline': 'modern',\n 'sky-section-heading': 'default'\n }\"\n>\n <ng-content></ng-content>\n</div>\n", styles: [":host .sky-action-button-header{margin:0 5px}:host-context(.sky-responsive-container-xs) .sky-action-button-header,:host-context(.sky-responsive-container-sm) .sky-action-button-header,:host-context(.sky-responsive-container-md) .sky-action-button-header,:host-context(.sky-responsive-container-lg) .sky-action-button-header{margin:0 5px}@media (min-width: 768px){:host .sky-action-button-header{margin:0 0 20px}}:host-context(.sky-responsive-container-sm) .sky-action-button-header,:host-context(.sky-responsive-container-md) .sky-action-button-header,:host-context(.sky-responsive-container-lg) .sky-action-button-header{margin:0 0 20px}:host-context(.sky-theme-modern) .sky-action-button-header{margin:0 0 10px}.sky-theme-modern .sky-action-button-header{margin:0 0 10px}\n"], directives: [{ type: i3__namespace$1.λ2, selector: "[skyThemeClass]", inputs: ["class", "skyThemeClass"] }] });
|
|
289
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyActionButtonHeaderComponent, decorators: [{
|
|
290
|
-
type: i0.Component,
|
|
291
|
-
args: [{
|
|
292
|
-
selector: 'sky-action-button-header',
|
|
293
|
-
styles: [":host .sky-action-button-header{margin:0 5px}:host-context(.sky-responsive-container-xs) .sky-action-button-header,:host-context(.sky-responsive-container-sm) .sky-action-button-header,:host-context(.sky-responsive-container-md) .sky-action-button-header,:host-context(.sky-responsive-container-lg) .sky-action-button-header{margin:0 5px}@media (min-width: 768px){:host .sky-action-button-header{margin:0 0 20px}}:host-context(.sky-responsive-container-sm) .sky-action-button-header,:host-context(.sky-responsive-container-md) .sky-action-button-header,:host-context(.sky-responsive-container-lg) .sky-action-button-header{margin:0 0 20px}:host-context(.sky-theme-modern) .sky-action-button-header{margin:0 0 10px}.sky-theme-modern .sky-action-button-header{margin:0 0 10px}\n"],
|
|
294
|
-
template: "<div\n class=\"sky-action-button-header\"\n [skyThemeClass]=\"{\n 'sky-headline': 'modern',\n 'sky-section-heading': 'default'\n }\"\n>\n <ng-content></ng-content>\n</div>\n",
|
|
295
|
-
}]
|
|
296
|
-
}] });
|
|
297
|
-
|
|
298
|
-
var FONTSIZECLASS_SMALL = '2x';
|
|
299
|
-
var FONTSIZECLASS_LARGE = '3x';
|
|
300
|
-
/**
|
|
301
|
-
* Specifies an icon to display on the action button.
|
|
302
|
-
*/
|
|
303
|
-
var SkyActionButtonIconComponent = /** @class */ (function () {
|
|
304
|
-
function SkyActionButtonIconComponent(mediaQueryService) {
|
|
305
|
-
var _this = this;
|
|
306
|
-
this.mediaQueryService = mediaQueryService;
|
|
307
|
-
this.fontSizeClass = FONTSIZECLASS_LARGE;
|
|
308
|
-
this.subscription = this.mediaQueryService.subscribe(function (args) {
|
|
309
|
-
if (args === i1.SkyMediaBreakpoints.xs) {
|
|
310
|
-
_this.fontSizeClass = FONTSIZECLASS_SMALL;
|
|
311
|
-
}
|
|
312
|
-
else {
|
|
313
|
-
_this.fontSizeClass = FONTSIZECLASS_LARGE;
|
|
314
|
-
}
|
|
315
|
-
});
|
|
316
|
-
}
|
|
317
|
-
SkyActionButtonIconComponent.prototype.ngOnDestroy = function () {
|
|
318
|
-
/* istanbul ignore else */
|
|
319
|
-
/* sanity check */
|
|
320
|
-
if (this.subscription) {
|
|
321
|
-
this.subscription.unsubscribe();
|
|
322
|
-
}
|
|
323
|
-
};
|
|
324
|
-
return SkyActionButtonIconComponent;
|
|
325
|
-
}());
|
|
326
|
-
SkyActionButtonIconComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyActionButtonIconComponent, deps: [{ token: i1__namespace.SkyMediaQueryService }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
327
|
-
SkyActionButtonIconComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyActionButtonIconComponent, selector: "sky-action-button-icon", inputs: { iconType: "iconType" }, ngImport: i0__namespace, template: "<div aria-hidden=\"true\" class=\"sky-action-button-icon-container\">\n <sky-icon\n class=\"sky-action-button-icon\"\n [icon]=\"iconType\"\n [size]=\"fontSizeClass\"\n ></sky-icon>\n</div>\n", styles: [":host .sky-action-button-icon-container{margin:0 5px}:host-context(.sky-responsive-container-xs) .sky-action-button-icon-container,:host-context(.sky-responsive-container-sm) .sky-action-button-icon-container,:host-context(.sky-responsive-container-md) .sky-action-button-icon-container,:host-context(.sky-responsive-container-lg) .sky-action-button-icon-container{margin:0 5px}@media (min-width: 768px){:host .sky-action-button-icon-container{margin:0 0 20px}}:host-context(.sky-responsive-container-sm) .sky-action-button-icon-container,:host-context(.sky-responsive-container-md) .sky-action-button-icon-container,:host-context(.sky-responsive-container-lg) .sky-action-button-icon-container{margin:0 0 20px}.sky-action-button-icon{color:#0974a1}:host-context(.sky-theme-modern) .sky-action-button-icon-container{color:#0974a1;background:#e8f8ff;margin:0 20px 0 0;border-radius:50%;width:42px;height:42px;display:flex;align-items:center;justify-content:center;flex:0 0 auto}:host-context(.sky-theme-modern) .sky-action-button-icon-container ::ng-deep .sky-icon{font-size:24px!important}.sky-theme-modern .sky-action-button-icon-container{color:#0974a1;background:#e8f8ff;margin:0 20px 0 0;border-radius:50%;width:42px;height:42px;display:flex;align-items:center;justify-content:center;flex:0 0 auto}.sky-theme-modern .sky-action-button-icon-container ::ng-deep .sky-icon{font-size:24px!important}\n"], components: [{ type: i2__namespace$1.λ4, selector: "sky-icon", inputs: ["icon", "iconType", "size", "fixedWidth", "variant"] }] });
|
|
328
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyActionButtonIconComponent, decorators: [{
|
|
329
|
-
type: i0.Component,
|
|
330
|
-
args: [{
|
|
331
|
-
selector: 'sky-action-button-icon',
|
|
332
|
-
styles: [":host .sky-action-button-icon-container{margin:0 5px}:host-context(.sky-responsive-container-xs) .sky-action-button-icon-container,:host-context(.sky-responsive-container-sm) .sky-action-button-icon-container,:host-context(.sky-responsive-container-md) .sky-action-button-icon-container,:host-context(.sky-responsive-container-lg) .sky-action-button-icon-container{margin:0 5px}@media (min-width: 768px){:host .sky-action-button-icon-container{margin:0 0 20px}}:host-context(.sky-responsive-container-sm) .sky-action-button-icon-container,:host-context(.sky-responsive-container-md) .sky-action-button-icon-container,:host-context(.sky-responsive-container-lg) .sky-action-button-icon-container{margin:0 0 20px}.sky-action-button-icon{color:#0974a1}:host-context(.sky-theme-modern) .sky-action-button-icon-container{color:#0974a1;background:#e8f8ff;margin:0 20px 0 0;border-radius:50%;width:42px;height:42px;display:flex;align-items:center;justify-content:center;flex:0 0 auto}:host-context(.sky-theme-modern) .sky-action-button-icon-container ::ng-deep .sky-icon{font-size:24px!important}.sky-theme-modern .sky-action-button-icon-container{color:#0974a1;background:#e8f8ff;margin:0 20px 0 0;border-radius:50%;width:42px;height:42px;display:flex;align-items:center;justify-content:center;flex:0 0 auto}.sky-theme-modern .sky-action-button-icon-container ::ng-deep .sky-icon{font-size:24px!important}\n"],
|
|
333
|
-
template: "<div aria-hidden=\"true\" class=\"sky-action-button-icon-container\">\n <sky-icon\n class=\"sky-action-button-icon\"\n [icon]=\"iconType\"\n [size]=\"fontSizeClass\"\n ></sky-icon>\n</div>\n",
|
|
334
|
-
}]
|
|
335
|
-
}], ctorParameters: function () { return [{ type: i1__namespace.SkyMediaQueryService }]; }, propDecorators: { iconType: [{
|
|
336
|
-
type: i0.Input
|
|
337
|
-
}] } });
|
|
338
|
-
|
|
339
|
-
var SkyActionButtonModule = /** @class */ (function () {
|
|
340
|
-
function SkyActionButtonModule() {
|
|
341
|
-
}
|
|
342
|
-
return SkyActionButtonModule;
|
|
343
|
-
}());
|
|
344
|
-
SkyActionButtonModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyActionButtonModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
345
|
-
SkyActionButtonModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyActionButtonModule, declarations: [SkyActionButtonComponent,
|
|
346
|
-
SkyActionButtonContainerComponent,
|
|
347
|
-
SkyActionButtonDetailsComponent,
|
|
348
|
-
SkyActionButtonHeaderComponent,
|
|
349
|
-
SkyActionButtonIconComponent], imports: [i3.CommonModule,
|
|
350
|
-
i2.RouterModule,
|
|
351
|
-
i4.SkyHrefModule,
|
|
352
|
-
i2$1.SkyIconModule,
|
|
353
|
-
i3$1.SkyThemeModule], exports: [SkyActionButtonComponent,
|
|
354
|
-
SkyActionButtonContainerComponent,
|
|
355
|
-
SkyActionButtonDetailsComponent,
|
|
356
|
-
SkyActionButtonHeaderComponent,
|
|
357
|
-
SkyActionButtonIconComponent] });
|
|
358
|
-
SkyActionButtonModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyActionButtonModule, imports: [[
|
|
359
|
-
i3.CommonModule,
|
|
360
|
-
i2.RouterModule,
|
|
361
|
-
i4.SkyHrefModule,
|
|
362
|
-
i2$1.SkyIconModule,
|
|
363
|
-
i3$1.SkyThemeModule,
|
|
364
|
-
]] });
|
|
365
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyActionButtonModule, decorators: [{
|
|
366
|
-
type: i0.NgModule,
|
|
367
|
-
args: [{
|
|
368
|
-
declarations: [
|
|
369
|
-
SkyActionButtonComponent,
|
|
370
|
-
SkyActionButtonContainerComponent,
|
|
371
|
-
SkyActionButtonDetailsComponent,
|
|
372
|
-
SkyActionButtonHeaderComponent,
|
|
373
|
-
SkyActionButtonIconComponent,
|
|
374
|
-
],
|
|
375
|
-
imports: [
|
|
376
|
-
i3.CommonModule,
|
|
377
|
-
i2.RouterModule,
|
|
378
|
-
i4.SkyHrefModule,
|
|
379
|
-
i2$1.SkyIconModule,
|
|
380
|
-
i3$1.SkyThemeModule,
|
|
381
|
-
],
|
|
382
|
-
exports: [
|
|
383
|
-
SkyActionButtonComponent,
|
|
384
|
-
SkyActionButtonContainerComponent,
|
|
385
|
-
SkyActionButtonDetailsComponent,
|
|
386
|
-
SkyActionButtonHeaderComponent,
|
|
387
|
-
SkyActionButtonIconComponent,
|
|
388
|
-
],
|
|
389
|
-
}]
|
|
390
|
-
}] });
|
|
391
|
-
|
|
392
|
-
/**
|
|
393
|
-
* NOTICE: DO NOT MODIFY THIS FILE!
|
|
394
|
-
* The contents of this file were automatically generated by
|
|
395
|
-
* the 'ng generate @skyux/i18n:lib-resources-module lib/modules/shared/sky-layout' schematic.
|
|
396
|
-
* To update this file, simply rerun the command.
|
|
397
|
-
*/
|
|
398
|
-
var RESOURCES = {
|
|
399
|
-
'EN-US': {
|
|
400
|
-
skyux_back_to_top: { message: 'Back to top' },
|
|
401
|
-
skyux_card_checkbox_label: { message: 'Select card' },
|
|
402
|
-
skyux_definition_list_none_found: { message: 'None found.' },
|
|
403
|
-
skyux_description_list_none_found: { message: 'None found.' },
|
|
404
|
-
skyux_inline_delete_assistive_text: {
|
|
405
|
-
message: 'Are you sure you want to delete this item?',
|
|
406
|
-
},
|
|
407
|
-
skyux_inline_delete_cancel: { message: 'Cancel' },
|
|
408
|
-
skyux_inline_delete_confirm_deletion: { message: 'Confirm deletion' },
|
|
409
|
-
skyux_inline_delete_delete: { message: 'Delete' },
|
|
410
|
-
skyux_text_expand_close_text: { message: 'Close' },
|
|
411
|
-
skyux_text_expand_modal_title: { message: 'Expanded view' },
|
|
412
|
-
skyux_text_expand_see_less: { message: 'See less' },
|
|
413
|
-
skyux_text_expand_see_more: { message: 'See more' },
|
|
414
|
-
},
|
|
415
|
-
};
|
|
416
|
-
var SkyLayoutResourcesProvider = /** @class */ (function () {
|
|
417
|
-
function SkyLayoutResourcesProvider() {
|
|
418
|
-
}
|
|
419
|
-
SkyLayoutResourcesProvider.prototype.getString = function (localeInfo, name) {
|
|
420
|
-
return i1$1.getLibStringForLocale(RESOURCES, localeInfo.locale, name);
|
|
421
|
-
};
|
|
422
|
-
return SkyLayoutResourcesProvider;
|
|
423
|
-
}());
|
|
424
|
-
/**
|
|
425
|
-
* Import into any component library module that needs to use resource strings.
|
|
426
|
-
*/
|
|
427
|
-
var SkyLayoutResourcesModule = /** @class */ (function () {
|
|
428
|
-
function SkyLayoutResourcesModule() {
|
|
429
|
-
}
|
|
430
|
-
return SkyLayoutResourcesModule;
|
|
431
|
-
}());
|
|
432
|
-
SkyLayoutResourcesModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyLayoutResourcesModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
433
|
-
SkyLayoutResourcesModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyLayoutResourcesModule, exports: [i1$1.SkyI18nModule] });
|
|
434
|
-
SkyLayoutResourcesModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyLayoutResourcesModule, providers: [
|
|
435
|
-
{
|
|
436
|
-
provide: i1$1.SKY_LIB_RESOURCES_PROVIDERS,
|
|
437
|
-
useClass: SkyLayoutResourcesProvider,
|
|
438
|
-
multi: true,
|
|
439
|
-
},
|
|
440
|
-
], imports: [i1$1.SkyI18nModule] });
|
|
441
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyLayoutResourcesModule, decorators: [{
|
|
442
|
-
type: i0.NgModule,
|
|
443
|
-
args: [{
|
|
444
|
-
exports: [i1$1.SkyI18nModule],
|
|
445
|
-
providers: [
|
|
446
|
-
{
|
|
447
|
-
provide: i1$1.SKY_LIB_RESOURCES_PROVIDERS,
|
|
448
|
-
useClass: SkyLayoutResourcesProvider,
|
|
449
|
-
multi: true,
|
|
450
|
-
},
|
|
451
|
-
],
|
|
452
|
-
}]
|
|
453
|
-
}] });
|
|
454
|
-
|
|
455
|
-
/**
|
|
456
|
-
* @internal
|
|
457
|
-
*/
|
|
458
|
-
var SkyBackToTopComponent = /** @class */ (function () {
|
|
459
|
-
function SkyBackToTopComponent() {
|
|
460
|
-
this._scrollToTopClick = new rxjs.Subject();
|
|
461
|
-
}
|
|
462
|
-
Object.defineProperty(SkyBackToTopComponent.prototype, "scrollToTopClick", {
|
|
463
|
-
get: function () {
|
|
464
|
-
return this._scrollToTopClick.asObservable();
|
|
465
|
-
},
|
|
466
|
-
enumerable: false,
|
|
467
|
-
configurable: true
|
|
468
|
-
});
|
|
469
|
-
SkyBackToTopComponent.prototype.onScrollToTopClick = function () {
|
|
470
|
-
this._scrollToTopClick.next();
|
|
471
|
-
this._scrollToTopClick.complete();
|
|
472
|
-
};
|
|
473
|
-
return SkyBackToTopComponent;
|
|
474
|
-
}());
|
|
475
|
-
SkyBackToTopComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyBackToTopComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
476
|
-
SkyBackToTopComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyBackToTopComponent, selector: "sky-back-to-top", ngImport: i0__namespace, template: "<div class=\"sky-back-to-top sky-padding-squish-large\">\n <button\n class=\"sky-btn sky-btn-link-inline\"\n type=\"button\"\n (click)=\"onScrollToTopClick()\"\n >\n {{ 'skyux_back_to_top' | skyLibResources }}\n </button>\n</div>\n", styles: [".sky-back-to-top{display:flex;align-items:center;width:100%;background-color:#fff;box-shadow:0 -3px 3px #cdcfd2}\n"], pipes: { "skyLibResources": i1__namespace$1.SkyLibResourcesPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
|
|
477
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyBackToTopComponent, decorators: [{
|
|
478
|
-
type: i0.Component,
|
|
479
|
-
args: [{
|
|
480
|
-
selector: 'sky-back-to-top',
|
|
481
|
-
template: "<div class=\"sky-back-to-top sky-padding-squish-large\">\n <button\n class=\"sky-btn sky-btn-link-inline\"\n type=\"button\"\n (click)=\"onScrollToTopClick()\"\n >\n {{ 'skyux_back_to_top' | skyLibResources }}\n </button>\n</div>\n",
|
|
482
|
-
styles: [".sky-back-to-top{display:flex;align-items:center;width:100%;background-color:#fff;box-shadow:0 -3px 3px #cdcfd2}\n"],
|
|
483
|
-
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
484
|
-
}]
|
|
485
|
-
}] });
|
|
486
|
-
|
|
487
|
-
/**
|
|
488
|
-
* @internal
|
|
489
|
-
*/
|
|
490
|
-
var SkyBackToTopDomAdapterService = /** @class */ (function () {
|
|
491
|
-
function SkyBackToTopDomAdapterService(windowRef, scrollableHostService) {
|
|
492
|
-
this.windowRef = windowRef;
|
|
493
|
-
this.scrollableHostService = scrollableHostService;
|
|
494
|
-
this.ngUnsubscribe = new rxjs.Subject();
|
|
495
|
-
this.scrollableHostScrollEventUnsubscribe = new rxjs.Subject();
|
|
496
|
-
}
|
|
497
|
-
SkyBackToTopDomAdapterService.prototype.ngOnDestroy = function () {
|
|
498
|
-
this.ngUnsubscribe.next();
|
|
499
|
-
this.ngUnsubscribe.complete();
|
|
500
|
-
this.scrollableHostScrollEventUnsubscribe.next();
|
|
501
|
-
this.scrollableHostScrollEventUnsubscribe.complete();
|
|
502
|
-
};
|
|
503
|
-
/**
|
|
504
|
-
* This event returns a boolean on scroll indicating whether the provided element is in view.
|
|
505
|
-
* @param elementRef The target element reference.
|
|
506
|
-
*/
|
|
507
|
-
SkyBackToTopDomAdapterService.prototype.elementInViewOnScroll = function (elementRef) {
|
|
508
|
-
var _this = this;
|
|
509
|
-
var scrollableHostObservable = this.scrollableHostService.watchScrollableHostScrollEvents(elementRef);
|
|
510
|
-
var isInitiallyInView = this.isElementScrolledInView(elementRef);
|
|
511
|
-
var returnedObservable = new rxjs.BehaviorSubject(isInitiallyInView);
|
|
512
|
-
scrollableHostObservable
|
|
513
|
-
.pipe(operators.takeUntil(this.scrollableHostScrollEventUnsubscribe))
|
|
514
|
-
.subscribe(function () {
|
|
515
|
-
var isInView = _this.isElementScrolledInView(elementRef);
|
|
516
|
-
returnedObservable.next(isInView);
|
|
517
|
-
});
|
|
518
|
-
return returnedObservable;
|
|
519
|
-
};
|
|
520
|
-
/**
|
|
521
|
-
* Scrolls the window or scrollable parent to the provided element.
|
|
522
|
-
* @param elementRef The target element reference.
|
|
523
|
-
*/
|
|
524
|
-
SkyBackToTopDomAdapterService.prototype.scrollToElement = function (elementRef) {
|
|
525
|
-
/* sanity check */
|
|
526
|
-
/* istanbul ignore if */
|
|
527
|
-
if (!elementRef || !elementRef.nativeElement) {
|
|
528
|
-
return;
|
|
529
|
-
}
|
|
530
|
-
var scrollableHost = this.scrollableHostService.getScrollableHost(elementRef);
|
|
531
|
-
if (scrollableHost instanceof Window) {
|
|
532
|
-
// Scroll to top of window, but account for the body margin that allows for the omnibar if it exists.
|
|
533
|
-
var bodyMarginOffset = parseInt(getComputedStyle(document.body).marginTop, 10);
|
|
534
|
-
var newOffsetTop = elementRef.nativeElement.offsetTop - bodyMarginOffset;
|
|
535
|
-
this.windowRef.nativeWindow.scrollTo(elementRef.nativeElement.offsetLeft, newOffsetTop);
|
|
536
|
-
}
|
|
537
|
-
else {
|
|
538
|
-
// Scroll to top of parent element.
|
|
539
|
-
scrollableHost.scrollTop =
|
|
540
|
-
scrollableHost.offsetTop - elementRef.nativeElement.offsetTop;
|
|
541
|
-
}
|
|
542
|
-
};
|
|
543
|
-
SkyBackToTopDomAdapterService.prototype.isElementScrolledInView = function (element) {
|
|
544
|
-
var parentElement = this.scrollableHostService.getScrollableHost(element.nativeElement);
|
|
545
|
-
if (!element.nativeElement.offsetParent) {
|
|
546
|
-
return true;
|
|
547
|
-
}
|
|
548
|
-
var buffer = 25;
|
|
549
|
-
var elementRect = element.nativeElement.getBoundingClientRect();
|
|
550
|
-
/* istanbul ignore else */
|
|
551
|
-
if (parentElement instanceof HTMLElement) {
|
|
552
|
-
var parentRect = parentElement.getBoundingClientRect();
|
|
553
|
-
return elementRect.top > parentRect.top - buffer;
|
|
554
|
-
}
|
|
555
|
-
else {
|
|
556
|
-
return elementRect.top > -buffer;
|
|
557
|
-
}
|
|
558
|
-
};
|
|
559
|
-
return SkyBackToTopDomAdapterService;
|
|
560
|
-
}());
|
|
561
|
-
SkyBackToTopDomAdapterService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyBackToTopDomAdapterService, deps: [{ token: i1__namespace.SkyAppWindowRef }, { token: i1__namespace.SkyScrollableHostService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
562
|
-
SkyBackToTopDomAdapterService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyBackToTopDomAdapterService });
|
|
563
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyBackToTopDomAdapterService, decorators: [{
|
|
564
|
-
type: i0.Injectable
|
|
565
|
-
}], ctorParameters: function () { return [{ type: i1__namespace.SkyAppWindowRef }, { type: i1__namespace.SkyScrollableHostService }]; } });
|
|
566
|
-
|
|
567
|
-
/**
|
|
568
|
-
* Specifies the type of message to send to the back to top component.
|
|
569
|
-
*/
|
|
570
|
-
exports.SkyBackToTopMessageType = void 0;
|
|
571
|
-
(function (SkyBackToTopMessageType) {
|
|
572
|
-
/**
|
|
573
|
-
* Scrolls the element back to the top.
|
|
574
|
-
*/
|
|
575
|
-
SkyBackToTopMessageType[SkyBackToTopMessageType["BackToTop"] = 0] = "BackToTop";
|
|
576
|
-
})(exports.SkyBackToTopMessageType || (exports.SkyBackToTopMessageType = {}));
|
|
577
|
-
|
|
578
|
-
/**
|
|
579
|
-
* Associates a button with an element on the page and displays that button
|
|
580
|
-
* to return to the element after users scroll away.
|
|
581
|
-
*/
|
|
582
|
-
var SkyBackToTopDirective = /** @class */ (function () {
|
|
583
|
-
function SkyBackToTopDirective(dockService, domAdapter, element) {
|
|
584
|
-
this.dockService = dockService;
|
|
585
|
-
this.domAdapter = domAdapter;
|
|
586
|
-
this.element = element;
|
|
587
|
-
this.buttonHidden = false;
|
|
588
|
-
this.ngUnsubscribe = new rxjs.Subject();
|
|
589
|
-
}
|
|
590
|
-
Object.defineProperty(SkyBackToTopDirective.prototype, "skyBackToTop", {
|
|
591
|
-
/**
|
|
592
|
-
* Specifies configuration options for the back to top component.
|
|
593
|
-
*/
|
|
594
|
-
set: function (value) {
|
|
595
|
-
this.buttonHidden = !!(value === null || value === void 0 ? void 0 : value.buttonHidden);
|
|
596
|
-
this.handleBackToTopButton(this.elementInView);
|
|
597
|
-
},
|
|
598
|
-
enumerable: false,
|
|
599
|
-
configurable: true
|
|
600
|
-
});
|
|
601
|
-
Object.defineProperty(SkyBackToTopDirective.prototype, "skyBackToTopMessageStream", {
|
|
602
|
-
/**
|
|
603
|
-
* Provides an observable to send commands to the back to top component.
|
|
604
|
-
* The commands respect the `SkyBackToTopMessage` type.
|
|
605
|
-
*/
|
|
606
|
-
set: function (value) {
|
|
607
|
-
var _this = this;
|
|
608
|
-
if (this._skyBackToTopMessageStream) {
|
|
609
|
-
this._skyBackToTopMessageStream.unsubscribe();
|
|
610
|
-
}
|
|
611
|
-
this._skyBackToTopMessageStream = value;
|
|
612
|
-
this._skyBackToTopMessageStream
|
|
613
|
-
.pipe(operators.takeUntil(this.ngUnsubscribe))
|
|
614
|
-
.subscribe(function (message) { return _this.handleIncomingMessages(message); });
|
|
615
|
-
},
|
|
616
|
-
enumerable: false,
|
|
617
|
-
configurable: true
|
|
618
|
-
});
|
|
619
|
-
SkyBackToTopDirective.prototype.ngAfterViewInit = function () {
|
|
620
|
-
this.elementInView = this.domAdapter.isElementScrolledInView(this.element);
|
|
621
|
-
this.handleBackToTopButton(this.elementInView);
|
|
622
|
-
this.setBackToTopListeners();
|
|
623
|
-
};
|
|
624
|
-
SkyBackToTopDirective.prototype.ngOnDestroy = function () {
|
|
625
|
-
if (this.dockItem) {
|
|
626
|
-
this.dockItem.destroy();
|
|
627
|
-
}
|
|
628
|
-
};
|
|
629
|
-
SkyBackToTopDirective.prototype.handleBackToTopButton = function (elementInView) {
|
|
630
|
-
// Add back to top button if user scrolls down and button is not hidden.
|
|
631
|
-
if (!this.dockItem &&
|
|
632
|
-
elementInView !== undefined &&
|
|
633
|
-
!elementInView &&
|
|
634
|
-
!this.buttonHidden) {
|
|
635
|
-
this.addBackToTop();
|
|
636
|
-
}
|
|
637
|
-
// Remove back to top button if user scrolls back up.
|
|
638
|
-
if (elementInView || this.buttonHidden) {
|
|
639
|
-
this.destroyBackToTop();
|
|
640
|
-
}
|
|
641
|
-
};
|
|
642
|
-
SkyBackToTopDirective.prototype.addBackToTop = function () {
|
|
643
|
-
var _this = this;
|
|
644
|
-
this.dockItem = this.dockService.insertComponent(SkyBackToTopComponent);
|
|
645
|
-
// Listen for clicks on the "back to top" button so we know when to scroll up.
|
|
646
|
-
this.dockItem.componentInstance.scrollToTopClick
|
|
647
|
-
.pipe(operators.takeUntil(this.ngUnsubscribe))
|
|
648
|
-
.subscribe(function () {
|
|
649
|
-
_this.domAdapter.scrollToElement(_this.element);
|
|
650
|
-
});
|
|
651
|
-
};
|
|
652
|
-
SkyBackToTopDirective.prototype.handleIncomingMessages = function (message) {
|
|
653
|
-
/* istanbul ignore else */
|
|
654
|
-
if (message.type === exports.SkyBackToTopMessageType.BackToTop) {
|
|
655
|
-
this.domAdapter.scrollToElement(this.element);
|
|
656
|
-
}
|
|
657
|
-
};
|
|
658
|
-
SkyBackToTopDirective.prototype.setBackToTopListeners = function () {
|
|
659
|
-
var _this = this;
|
|
660
|
-
/* istanbul ignore else */
|
|
661
|
-
if (this.element) {
|
|
662
|
-
this.domAdapter
|
|
663
|
-
.elementInViewOnScroll(this.element)
|
|
664
|
-
.pipe(operators.takeUntil(this.ngUnsubscribe))
|
|
665
|
-
.subscribe(function (elementInView) {
|
|
666
|
-
_this.elementInView = elementInView;
|
|
667
|
-
_this.handleBackToTopButton(elementInView);
|
|
668
|
-
});
|
|
669
|
-
}
|
|
670
|
-
};
|
|
671
|
-
SkyBackToTopDirective.prototype.destroyBackToTop = function () {
|
|
672
|
-
/* istanbul ignore else */
|
|
673
|
-
if (this.dockItem) {
|
|
674
|
-
this.dockItem.destroy();
|
|
675
|
-
this.dockItem = undefined;
|
|
676
|
-
}
|
|
677
|
-
};
|
|
678
|
-
return SkyBackToTopDirective;
|
|
679
|
-
}());
|
|
680
|
-
SkyBackToTopDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyBackToTopDirective, deps: [{ token: i1__namespace.SkyDockService }, { token: SkyBackToTopDomAdapterService }, { token: i0__namespace.ElementRef }], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
681
|
-
SkyBackToTopDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: SkyBackToTopDirective, selector: "[skyBackToTop]", inputs: { skyBackToTop: "skyBackToTop", skyBackToTopMessageStream: "skyBackToTopMessageStream" }, providers: [SkyBackToTopDomAdapterService], ngImport: i0__namespace });
|
|
682
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyBackToTopDirective, decorators: [{
|
|
683
|
-
type: i0.Directive,
|
|
684
|
-
args: [{
|
|
685
|
-
selector: '[skyBackToTop]',
|
|
686
|
-
providers: [SkyBackToTopDomAdapterService],
|
|
687
|
-
}]
|
|
688
|
-
}], ctorParameters: function () { return [{ type: i1__namespace.SkyDockService }, { type: SkyBackToTopDomAdapterService }, { type: i0__namespace.ElementRef }]; }, propDecorators: { skyBackToTop: [{
|
|
689
|
-
type: i0.Input
|
|
690
|
-
}], skyBackToTopMessageStream: [{
|
|
691
|
-
type: i0.Input
|
|
692
|
-
}] } });
|
|
693
|
-
|
|
694
|
-
var SkyBackToTopModule = /** @class */ (function () {
|
|
695
|
-
function SkyBackToTopModule() {
|
|
696
|
-
}
|
|
697
|
-
return SkyBackToTopModule;
|
|
698
|
-
}());
|
|
699
|
-
SkyBackToTopModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyBackToTopModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
700
|
-
SkyBackToTopModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyBackToTopModule, declarations: [SkyBackToTopComponent, SkyBackToTopDirective], imports: [i3.CommonModule,
|
|
701
|
-
i1.SkyDockModule,
|
|
702
|
-
i1$1.SkyI18nModule,
|
|
703
|
-
SkyLayoutResourcesModule], exports: [SkyBackToTopComponent, SkyBackToTopDirective] });
|
|
704
|
-
SkyBackToTopModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyBackToTopModule, imports: [[
|
|
705
|
-
i3.CommonModule,
|
|
706
|
-
i1.SkyDockModule,
|
|
707
|
-
i1$1.SkyI18nModule,
|
|
708
|
-
SkyLayoutResourcesModule,
|
|
709
|
-
]] });
|
|
710
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyBackToTopModule, decorators: [{
|
|
711
|
-
type: i0.NgModule,
|
|
712
|
-
args: [{
|
|
713
|
-
declarations: [SkyBackToTopComponent, SkyBackToTopDirective],
|
|
714
|
-
imports: [
|
|
715
|
-
i3.CommonModule,
|
|
716
|
-
i1.SkyDockModule,
|
|
717
|
-
i1$1.SkyI18nModule,
|
|
718
|
-
SkyLayoutResourcesModule,
|
|
719
|
-
],
|
|
720
|
-
exports: [SkyBackToTopComponent, SkyBackToTopDirective],
|
|
721
|
-
entryComponents: [SkyBackToTopComponent],
|
|
722
|
-
}]
|
|
723
|
-
}] });
|
|
724
|
-
|
|
725
|
-
/**
|
|
726
|
-
* Specifies the body content to display inside the box and provides padding around that content.
|
|
727
|
-
*/
|
|
728
|
-
var SkyBoxContentComponent = /** @class */ (function () {
|
|
729
|
-
function SkyBoxContentComponent() {
|
|
730
|
-
}
|
|
731
|
-
return SkyBoxContentComponent;
|
|
732
|
-
}());
|
|
733
|
-
SkyBoxContentComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyBoxContentComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
734
|
-
SkyBoxContentComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyBoxContentComponent, selector: "sky-box-content", ngImport: i0__namespace, template: "<div\n class=\"sky-box-content\"\n [skyThemeClass]=\"{\n 'sky-padding-even-large': 'default',\n 'sky-padding-even-xl': 'modern'\n }\"\n>\n <ng-content></ng-content>\n</div>\n", directives: [{ type: i3__namespace$1.λ2, selector: "[skyThemeClass]", inputs: ["class", "skyThemeClass"] }] });
|
|
735
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyBoxContentComponent, decorators: [{
|
|
736
|
-
type: i0.Component,
|
|
737
|
-
args: [{
|
|
738
|
-
selector: 'sky-box-content',
|
|
739
|
-
template: "<div\n class=\"sky-box-content\"\n [skyThemeClass]=\"{\n 'sky-padding-even-large': 'default',\n 'sky-padding-even-xl': 'modern'\n }\"\n>\n <ng-content></ng-content>\n</div>\n",
|
|
740
|
-
}]
|
|
741
|
-
}] });
|
|
742
|
-
|
|
743
|
-
/**
|
|
744
|
-
* Specifies the controls to display in upper right corner of the box. These buttons typically let users edit the box content.
|
|
745
|
-
*/
|
|
746
|
-
var SkyBoxControlsComponent = /** @class */ (function () {
|
|
747
|
-
function SkyBoxControlsComponent() {
|
|
748
|
-
}
|
|
749
|
-
return SkyBoxControlsComponent;
|
|
750
|
-
}());
|
|
751
|
-
SkyBoxControlsComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyBoxControlsComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
752
|
-
SkyBoxControlsComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyBoxControlsComponent, selector: "sky-box-controls", ngImport: i0__namespace, template: "<div class=\"sky-box-controls\">\n <ng-content></ng-content>\n</div>\n" });
|
|
753
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyBoxControlsComponent, decorators: [{
|
|
754
|
-
type: i0.Component,
|
|
755
|
-
args: [{
|
|
756
|
-
selector: 'sky-box-controls',
|
|
757
|
-
template: "<div class=\"sky-box-controls\">\n <ng-content></ng-content>\n</div>\n",
|
|
758
|
-
}]
|
|
759
|
-
}] });
|
|
760
|
-
|
|
761
|
-
/**
|
|
762
|
-
* Specifies a header for the box.
|
|
763
|
-
*/
|
|
764
|
-
var SkyBoxHeaderComponent = /** @class */ (function () {
|
|
765
|
-
function SkyBoxHeaderComponent() {
|
|
766
|
-
}
|
|
767
|
-
return SkyBoxHeaderComponent;
|
|
768
|
-
}());
|
|
769
|
-
SkyBoxHeaderComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyBoxHeaderComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
770
|
-
SkyBoxHeaderComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyBoxHeaderComponent, selector: "sky-box-header", ngImport: i0__namespace, template: "<div class=\"sky-box-header\">\n <ng-content></ng-content>\n</div>\n" });
|
|
771
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyBoxHeaderComponent, decorators: [{
|
|
772
|
-
type: i0.Component,
|
|
773
|
-
args: [{
|
|
774
|
-
selector: 'sky-box-header',
|
|
775
|
-
template: "<div class=\"sky-box-header\">\n <ng-content></ng-content>\n</div>\n",
|
|
776
|
-
}]
|
|
777
|
-
}] });
|
|
778
|
-
|
|
779
|
-
/**
|
|
780
|
-
* Provides a common look-and-feel for box content with options to display a common box header, specify body content, and display common box controls.
|
|
781
|
-
*/
|
|
782
|
-
var SkyBoxComponent = /** @class */ (function () {
|
|
783
|
-
function SkyBoxComponent() {
|
|
784
|
-
}
|
|
785
|
-
return SkyBoxComponent;
|
|
786
|
-
}());
|
|
787
|
-
SkyBoxComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyBoxComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
788
|
-
SkyBoxComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyBoxComponent, selector: "sky-box", inputs: { ariaLabel: "ariaLabel", ariaLabelledBy: "ariaLabelledBy", ariaRole: "ariaRole" }, ngImport: i0__namespace, template: "<section\n class=\"sky-box\"\n [attr.aria-label]=\"ariaLabel\"\n [attr.aria-labelledby]=\"ariaLabelledBy\"\n [attr.role]=\"ariaRole\"\n [skyThemeClass]=\"{\n 'sky-shadow sky-border-dark': 'default',\n 'sky-elevation-1-bordered': 'modern'\n }\"\n>\n <div class=\"sky-box-header-content\">\n <ng-content select=\"sky-box-header\"></ng-content>\n <ng-content select=\"sky-box-controls\"></ng-content>\n </div>\n <ng-content></ng-content>\n</section>\n", styles: [".sky-box{background-color:#fff}.sky-box .sky-box-header-content{display:flex;flex-direction:row;flex-wrap:wrap;align-items:baseline;padding:20px 20px 0}.sky-box .sky-box-header-content:empty{display:none}.sky-box .sky-box-header-content sky-box-header{flex:1 0;order:0}.sky-box .sky-box-header-content sky-box-header .sky-box-header{padding:0 20px 0 0}.sky-box .sky-box-header-content sky-box-header .sky-box-header h1,.sky-box .sky-box-header-content sky-box-header .sky-box-header h2,.sky-box .sky-box-header-content sky-box-header .sky-box-header h3,.sky-box .sky-box-header-content sky-box-header .sky-box-header h4,.sky-box .sky-box-header-content sky-box-header .sky-box-header h5,.sky-box .sky-box-header-content sky-box-header .sky-box-header h6{margin:0}.sky-box .sky-box-header-content sky-box-controls{order:1}.sky-box .sky-box-header-content sky-box-controls .sky-box-controls{position:relative;top:-2px}.sky-box sky-box-content{flex:0 1 100%;order:2}.sky-box sky-box-content .sky-box-content{padding:20px}.sky-theme-modern .sky-box{border-radius:6px;overflow:hidden}.sky-theme-modern .sky-box .sky-box-header-content{padding:30px 30px 0}.sky-theme-modern .sky-box .sky-box-header-content sky-box-header .sky-box-header{padding:0 30px 0 0}.sky-theme-modern .sky-box sky-box-content .sky-box-content{padding:30px}\n"], directives: [{ type: i3__namespace$1.λ2, selector: "[skyThemeClass]", inputs: ["class", "skyThemeClass"] }], encapsulation: i0__namespace.ViewEncapsulation.None });
|
|
789
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyBoxComponent, decorators: [{
|
|
790
|
-
type: i0.Component,
|
|
791
|
-
args: [{
|
|
792
|
-
selector: 'sky-box',
|
|
793
|
-
template: "<section\n class=\"sky-box\"\n [attr.aria-label]=\"ariaLabel\"\n [attr.aria-labelledby]=\"ariaLabelledBy\"\n [attr.role]=\"ariaRole\"\n [skyThemeClass]=\"{\n 'sky-shadow sky-border-dark': 'default',\n 'sky-elevation-1-bordered': 'modern'\n }\"\n>\n <div class=\"sky-box-header-content\">\n <ng-content select=\"sky-box-header\"></ng-content>\n <ng-content select=\"sky-box-controls\"></ng-content>\n </div>\n <ng-content></ng-content>\n</section>\n",
|
|
794
|
-
styles: [".sky-box{background-color:#fff}.sky-box .sky-box-header-content{display:flex;flex-direction:row;flex-wrap:wrap;align-items:baseline;padding:20px 20px 0}.sky-box .sky-box-header-content:empty{display:none}.sky-box .sky-box-header-content sky-box-header{flex:1 0;order:0}.sky-box .sky-box-header-content sky-box-header .sky-box-header{padding:0 20px 0 0}.sky-box .sky-box-header-content sky-box-header .sky-box-header h1,.sky-box .sky-box-header-content sky-box-header .sky-box-header h2,.sky-box .sky-box-header-content sky-box-header .sky-box-header h3,.sky-box .sky-box-header-content sky-box-header .sky-box-header h4,.sky-box .sky-box-header-content sky-box-header .sky-box-header h5,.sky-box .sky-box-header-content sky-box-header .sky-box-header h6{margin:0}.sky-box .sky-box-header-content sky-box-controls{order:1}.sky-box .sky-box-header-content sky-box-controls .sky-box-controls{position:relative;top:-2px}.sky-box sky-box-content{flex:0 1 100%;order:2}.sky-box sky-box-content .sky-box-content{padding:20px}.sky-theme-modern .sky-box{border-radius:6px;overflow:hidden}.sky-theme-modern .sky-box .sky-box-header-content{padding:30px 30px 0}.sky-theme-modern .sky-box .sky-box-header-content sky-box-header .sky-box-header{padding:0 30px 0 0}.sky-theme-modern .sky-box sky-box-content .sky-box-content{padding:30px}\n"],
|
|
795
|
-
encapsulation: i0.ViewEncapsulation.None,
|
|
796
|
-
}]
|
|
797
|
-
}], propDecorators: { ariaLabel: [{
|
|
798
|
-
type: i0.Input
|
|
799
|
-
}], ariaLabelledBy: [{
|
|
800
|
-
type: i0.Input
|
|
801
|
-
}], ariaRole: [{
|
|
802
|
-
type: i0.Input
|
|
803
|
-
}] } });
|
|
804
|
-
|
|
805
|
-
var SkyBoxModule = /** @class */ (function () {
|
|
806
|
-
function SkyBoxModule() {
|
|
807
|
-
}
|
|
808
|
-
return SkyBoxModule;
|
|
809
|
-
}());
|
|
810
|
-
SkyBoxModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyBoxModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
811
|
-
SkyBoxModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyBoxModule, declarations: [SkyBoxComponent,
|
|
812
|
-
SkyBoxHeaderComponent,
|
|
813
|
-
SkyBoxContentComponent,
|
|
814
|
-
SkyBoxControlsComponent], imports: [i3.CommonModule, i3$1.SkyThemeModule], exports: [SkyBoxComponent,
|
|
815
|
-
SkyBoxHeaderComponent,
|
|
816
|
-
SkyBoxContentComponent,
|
|
817
|
-
SkyBoxControlsComponent] });
|
|
818
|
-
SkyBoxModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyBoxModule, imports: [[i3.CommonModule, i3$1.SkyThemeModule]] });
|
|
819
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyBoxModule, decorators: [{
|
|
820
|
-
type: i0.NgModule,
|
|
821
|
-
args: [{
|
|
822
|
-
declarations: [
|
|
823
|
-
SkyBoxComponent,
|
|
824
|
-
SkyBoxHeaderComponent,
|
|
825
|
-
SkyBoxContentComponent,
|
|
826
|
-
SkyBoxControlsComponent,
|
|
827
|
-
],
|
|
828
|
-
imports: [i3.CommonModule, i3$1.SkyThemeModule],
|
|
829
|
-
exports: [
|
|
830
|
-
SkyBoxComponent,
|
|
831
|
-
SkyBoxHeaderComponent,
|
|
832
|
-
SkyBoxContentComponent,
|
|
833
|
-
SkyBoxControlsComponent,
|
|
834
|
-
],
|
|
835
|
-
}]
|
|
836
|
-
}] });
|
|
837
|
-
|
|
838
|
-
/**
|
|
839
|
-
* @internal
|
|
840
|
-
*/
|
|
841
|
-
var SkyInlineDeleteAdapterService = /** @class */ (function () {
|
|
842
|
-
function SkyInlineDeleteAdapterService(coreAdapterService, rendererFactory) {
|
|
843
|
-
this.coreAdapterService = coreAdapterService;
|
|
844
|
-
this.renderer = rendererFactory.createRenderer(undefined, undefined);
|
|
845
|
-
}
|
|
846
|
-
SkyInlineDeleteAdapterService.prototype.clearListeners = function () {
|
|
847
|
-
/* istanbul ignore else */
|
|
848
|
-
if (this.parentElUnlistenFn) {
|
|
849
|
-
this.parentElUnlistenFn();
|
|
850
|
-
}
|
|
851
|
-
};
|
|
852
|
-
SkyInlineDeleteAdapterService.prototype.setEl = function (element) {
|
|
853
|
-
var _this = this;
|
|
854
|
-
this.element = element;
|
|
855
|
-
this.parentEl = element.parentElement;
|
|
856
|
-
/* istanbul ignore else */
|
|
857
|
-
if (this.parentEl) {
|
|
858
|
-
this.parentElUnlistenFn = this.renderer.listen(this.parentEl, 'focusin', function (event) {
|
|
859
|
-
var target = event.target;
|
|
860
|
-
if (!_this.element.contains(target) && _this.parentEl !== target) {
|
|
861
|
-
event.preventDefault();
|
|
862
|
-
event.stopPropagation();
|
|
863
|
-
event.stopImmediatePropagation();
|
|
864
|
-
target.blur();
|
|
865
|
-
_this.focusNextElement(target, _this.isShift(event), _this.parentEl);
|
|
866
|
-
}
|
|
867
|
-
});
|
|
868
|
-
}
|
|
869
|
-
};
|
|
870
|
-
SkyInlineDeleteAdapterService.prototype.focusNextElement = function (targetElement, shiftKey, busyEl) {
|
|
871
|
-
var focussable = this.getFocussableElements();
|
|
872
|
-
// If shift tab, go in the other direction
|
|
873
|
-
var modifier = shiftKey ? -1 : 1;
|
|
874
|
-
// Find the next navigable element that isn't waiting
|
|
875
|
-
var startingIndex = focussable.indexOf(targetElement);
|
|
876
|
-
var curIndex = startingIndex + modifier;
|
|
877
|
-
while (focussable[curIndex] &&
|
|
878
|
-
this.isElementHiddenOrCovered(focussable[curIndex])) {
|
|
879
|
-
curIndex += modifier;
|
|
880
|
-
}
|
|
881
|
-
if (focussable[curIndex] &&
|
|
882
|
-
!this.isElementHiddenOrCovered(focussable[curIndex])) {
|
|
883
|
-
focussable[curIndex].focus();
|
|
884
|
-
}
|
|
885
|
-
else {
|
|
886
|
-
// Try wrapping the navigation
|
|
887
|
-
/* istanbul ignore next */
|
|
888
|
-
curIndex = modifier > 0 ? 0 : focussable.length - 1;
|
|
889
|
-
/* istanbul ignore next */
|
|
890
|
-
while (curIndex !== startingIndex &&
|
|
891
|
-
focussable[curIndex] &&
|
|
892
|
-
this.isElementHiddenOrCovered(focussable[curIndex])) {
|
|
893
|
-
curIndex += modifier;
|
|
894
|
-
}
|
|
895
|
-
/* istanbul ignore else */
|
|
896
|
-
/* sanity check */
|
|
897
|
-
if (focussable[curIndex] &&
|
|
898
|
-
!this.isElementHiddenOrCovered(focussable[curIndex])) {
|
|
899
|
-
focussable[curIndex].focus();
|
|
900
|
-
}
|
|
901
|
-
else {
|
|
902
|
-
// No valid target, wipe focus
|
|
903
|
-
// This should never happen in practice due to the multiple inline delete buttons
|
|
904
|
-
if (document.activeElement && document.activeElement.blur) {
|
|
905
|
-
document.activeElement.blur();
|
|
906
|
-
}
|
|
907
|
-
document.body.focus();
|
|
908
|
-
}
|
|
909
|
-
}
|
|
910
|
-
// clear focussableElements list so that if things change between tabbing we know about it
|
|
911
|
-
this.focussableElements = undefined;
|
|
912
|
-
};
|
|
913
|
-
SkyInlineDeleteAdapterService.prototype.getFocussableElements = function () {
|
|
914
|
-
// Keep this cached so we can reduce querys
|
|
915
|
-
if (this.focussableElements) {
|
|
916
|
-
return this.focussableElements;
|
|
917
|
-
}
|
|
918
|
-
this.focussableElements = this.coreAdapterService.getFocusableChildren(document.body);
|
|
919
|
-
return this.focussableElements;
|
|
920
|
-
};
|
|
921
|
-
SkyInlineDeleteAdapterService.prototype.isElementHiddenOrCovered = function (element) {
|
|
922
|
-
// Check if the element is hidden by css, not within the inline delete, or a wait is covering it
|
|
923
|
-
return (this.isElementHidden(element) ||
|
|
924
|
-
(this.parentEl.contains(element) &&
|
|
925
|
-
(!this.element.contains(element) ||
|
|
926
|
-
this.parentEl.querySelector('.sky-wait-mask') !== null)));
|
|
927
|
-
};
|
|
928
|
-
SkyInlineDeleteAdapterService.prototype.isElementHidden = function (element) {
|
|
929
|
-
var style = window.getComputedStyle(element);
|
|
930
|
-
return style.display === 'none' || style.visibility === 'hidden';
|
|
931
|
-
};
|
|
932
|
-
SkyInlineDeleteAdapterService.prototype.isShift = function (event) {
|
|
933
|
-
var _this = this;
|
|
934
|
-
// Determine if shift+tab was used based on element order
|
|
935
|
-
var elements = this.getFocussableElements().filter(function (elem) { return !_this.isElementHidden(elem); });
|
|
936
|
-
var previousInd = elements.indexOf(event.relatedTarget);
|
|
937
|
-
var currentInd = elements.indexOf(event.target);
|
|
938
|
-
/* istanbul ignore next */
|
|
939
|
-
return (previousInd === currentInd + 1 ||
|
|
940
|
-
(previousInd === 0 && currentInd === elements.length - 1) ||
|
|
941
|
-
previousInd > currentInd ||
|
|
942
|
-
!event.relatedTarget);
|
|
943
|
-
};
|
|
944
|
-
return SkyInlineDeleteAdapterService;
|
|
945
|
-
}());
|
|
946
|
-
SkyInlineDeleteAdapterService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyInlineDeleteAdapterService, deps: [{ token: i1__namespace.SkyCoreAdapterService }, { token: i0__namespace.RendererFactory2 }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
947
|
-
SkyInlineDeleteAdapterService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyInlineDeleteAdapterService });
|
|
948
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyInlineDeleteAdapterService, decorators: [{
|
|
949
|
-
type: i0.Injectable
|
|
950
|
-
}], ctorParameters: function () { return [{ type: i1__namespace.SkyCoreAdapterService }, { type: i0__namespace.RendererFactory2 }]; } });
|
|
951
|
-
|
|
952
|
-
/**
|
|
953
|
-
* Specifies the type of inline delete that is shown.
|
|
954
|
-
* @internal
|
|
955
|
-
*/
|
|
956
|
-
exports.SkyInlineDeleteType = void 0;
|
|
957
|
-
(function (SkyInlineDeleteType) {
|
|
958
|
-
/**
|
|
959
|
-
* The standard styling for inline deletes.
|
|
960
|
-
*/
|
|
961
|
-
SkyInlineDeleteType["Standard"] = "standard";
|
|
962
|
-
/**
|
|
963
|
-
* The styling for inline delete components which are used in card components.
|
|
964
|
-
*/
|
|
965
|
-
SkyInlineDeleteType["Card"] = "card";
|
|
966
|
-
})(exports.SkyInlineDeleteType || (exports.SkyInlineDeleteType = {}));
|
|
967
|
-
|
|
968
|
-
/**
|
|
969
|
-
* Auto-incrementing integer used to generate unique ids for inline delete components.
|
|
970
|
-
*/
|
|
971
|
-
var nextId$2 = 0;
|
|
972
|
-
var SkyInlineDeleteComponent = /** @class */ (function () {
|
|
973
|
-
function SkyInlineDeleteComponent(adapterService, changeDetector, elRef) {
|
|
974
|
-
this.adapterService = adapterService;
|
|
975
|
-
this.changeDetector = changeDetector;
|
|
976
|
-
this.elRef = elRef;
|
|
977
|
-
/**
|
|
978
|
-
* Indicates whether the deletion is pending.
|
|
979
|
-
* @default false
|
|
980
|
-
*/
|
|
981
|
-
this.pending = false;
|
|
982
|
-
/**
|
|
983
|
-
* Fires when users click the cancel button.
|
|
984
|
-
*/
|
|
985
|
-
this.cancelTriggered = new i0.EventEmitter();
|
|
986
|
-
/**
|
|
987
|
-
* Fires when users click the delete button.
|
|
988
|
-
*/
|
|
989
|
-
this.deleteTriggered = new i0.EventEmitter();
|
|
990
|
-
this.animationState = 'shown';
|
|
991
|
-
this.assistiveTextId = "sky-inline-delete-assistive-text-" + ++nextId$2;
|
|
992
|
-
this.type = exports.SkyInlineDeleteType.Standard;
|
|
993
|
-
}
|
|
994
|
-
/**
|
|
995
|
-
* Initialization lifecycle hook
|
|
996
|
-
* @internal
|
|
997
|
-
*/
|
|
998
|
-
SkyInlineDeleteComponent.prototype.ngOnInit = function () {
|
|
999
|
-
this.animationState = 'shown';
|
|
1000
|
-
};
|
|
1001
|
-
/**
|
|
1002
|
-
* Destruction lifecycle hook
|
|
1003
|
-
* @internal
|
|
1004
|
-
*/
|
|
1005
|
-
SkyInlineDeleteComponent.prototype.ngOnDestroy = function () {
|
|
1006
|
-
this.adapterService.clearListeners();
|
|
1007
|
-
this.cancelTriggered.complete();
|
|
1008
|
-
this.deleteTriggered.complete();
|
|
1009
|
-
};
|
|
1010
|
-
/**
|
|
1011
|
-
* @internal
|
|
1012
|
-
*/
|
|
1013
|
-
SkyInlineDeleteComponent.prototype.onCancelClick = function () {
|
|
1014
|
-
this.animationState = 'hidden';
|
|
1015
|
-
};
|
|
1016
|
-
/**
|
|
1017
|
-
* @internal
|
|
1018
|
-
*/
|
|
1019
|
-
SkyInlineDeleteComponent.prototype.onDeleteClick = function () {
|
|
1020
|
-
this.deleteTriggered.emit();
|
|
1021
|
-
};
|
|
1022
|
-
/**
|
|
1023
|
-
* Sets the inline delete to one of its predefined types.
|
|
1024
|
-
* @param type The inline delete type
|
|
1025
|
-
* @internal
|
|
1026
|
-
*/
|
|
1027
|
-
SkyInlineDeleteComponent.prototype.setType = function (type) {
|
|
1028
|
-
this.type = type;
|
|
1029
|
-
this.changeDetector.detectChanges();
|
|
1030
|
-
};
|
|
1031
|
-
/**
|
|
1032
|
-
* Handles actions that should be taken after the inline delete animates
|
|
1033
|
-
* @param event The animation event
|
|
1034
|
-
* @internal
|
|
1035
|
-
*/
|
|
1036
|
-
SkyInlineDeleteComponent.prototype.onAnimationDone = function (event) {
|
|
1037
|
-
if (event.toState === 'hidden') {
|
|
1038
|
-
this.cancelTriggered.emit();
|
|
1039
|
-
}
|
|
1040
|
-
else {
|
|
1041
|
-
this.deleteButton.nativeElement.focus();
|
|
1042
|
-
/* istanbul ignore else */
|
|
1043
|
-
if (this.elRef) {
|
|
1044
|
-
this.adapterService.setEl(this.elRef.nativeElement);
|
|
1045
|
-
}
|
|
1046
|
-
}
|
|
1047
|
-
};
|
|
1048
|
-
return SkyInlineDeleteComponent;
|
|
1049
|
-
}());
|
|
1050
|
-
SkyInlineDeleteComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyInlineDeleteComponent, deps: [{ token: SkyInlineDeleteAdapterService }, { token: i0__namespace.ChangeDetectorRef }, { token: i0__namespace.ElementRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1051
|
-
SkyInlineDeleteComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyInlineDeleteComponent, selector: "sky-inline-delete", inputs: { pending: "pending" }, outputs: { cancelTriggered: "cancelTriggered", deleteTriggered: "deleteTriggered" }, providers: [i1.SkyCoreAdapterService, SkyInlineDeleteAdapterService], viewQueries: [{ propertyName: "deleteButton", first: true, predicate: ["delete"], descendants: true, read: i0.ElementRef }], ngImport: i0__namespace, template: "<div\n class=\"sky-inline-delete sky-inline-delete-{{ type }}\"\n role=\"alertdialog\"\n [@inlineDeleteAnimation]=\"animationState\"\n (@inlineDeleteAnimation.done)=\"onAnimationDone($event)\"\n [attr.aria-describedby]=\"assistiveTextId\"\n [attr.aria-label]=\"'skyux_inline_delete_confirm_deletion' | skyLibResources\"\n>\n <span class=\"sky-inline-delete-assistive-text\" [id]=\"assistiveTextId\">\n {{ 'skyux_inline_delete_assistive_text' | skyLibResources }}\n </span>\n <sky-wait class=\"sky-inline-delete-wait\" [isWaiting]=\"pending\"></sky-wait>\n <div class=\"sky-inline-delete-content\">\n <div class=\"sky-inline-delete-content-animation-container\">\n <button\n class=\"sky-btn sky-btn-danger sky-inline-delete-button\"\n type=\"button\"\n (click)=\"onDeleteClick()\"\n #delete\n >\n {{ 'skyux_inline_delete_delete' | skyLibResources }}\n </button>\n <button\n class=\"sky-btn sky-btn-default\"\n type=\"button\"\n (click)=\"onCancelClick()\"\n >\n {{ 'skyux_inline_delete_cancel' | skyLibResources }}\n </button>\n </div>\n </div>\n</div>\n", styles: [".sky-inline-delete{position:absolute!important;top:0px;left:0px;width:100%;height:100%;background-color:#00000080;z-index:999;border:2px solid #ef4044}.sky-inline-delete-assistive-text{width:0;height:0;padding:0;opacity:0;position:absolute;margin:-1px;border:0;overflow:hidden;clip:rect(0,0,0,0);outline:none;white-space:nowrap}.sky-inline-delete-button{margin-right:10px}.sky-inline-delete-card .sky-inline-delete-content{position:absolute;bottom:10px;text-align:center;width:100%}.sky-inline-delete-standard .sky-inline-delete-content{position:absolute;top:50%;transform:translateY(-50%);left:20px}.sky-inline-delete-wait{height:100%}\n"], components: [{ type: i2__namespace$1.λ14, selector: "sky-wait", inputs: ["ariaLabel", "isWaiting", "isFullPage", "isNonBlocking"] }], pipes: { "skyLibResources": i1__namespace$1.SkyLibResourcesPipe }, animations: [
|
|
1052
|
-
animations.trigger('inlineDeleteAnimation', [
|
|
1053
|
-
animations.transition('* => shown', [
|
|
1054
|
-
animations.style({
|
|
1055
|
-
opacity: 0,
|
|
1056
|
-
}),
|
|
1057
|
-
animations.query('.sky-inline-delete-content-animation-container', animations.style({ transform: 'scale(0.0)' })),
|
|
1058
|
-
animations.group([
|
|
1059
|
-
animations.animate('300ms ease-in-out', animations.style({ opacity: 1 })),
|
|
1060
|
-
animations.query('.sky-inline-delete-content-animation-container', animations.animate('300ms ease-in-out', animations.style({
|
|
1061
|
-
transform: 'scale(1)',
|
|
1062
|
-
}))),
|
|
1063
|
-
]),
|
|
1064
|
-
]),
|
|
1065
|
-
animations.transition("shown <=> *", [
|
|
1066
|
-
animations.query('.sky-inline-delete-content-animation-container', animations.style({ transform: 'scale(1)' })),
|
|
1067
|
-
animations.group([
|
|
1068
|
-
animations.animate('300ms ease-in-out', animations.style({
|
|
1069
|
-
opacity: 0,
|
|
1070
|
-
})),
|
|
1071
|
-
animations.query('.sky-inline-delete-content-animation-container', animations.animate('300ms ease-in-out', animations.style({
|
|
1072
|
-
transform: 'scale(0.0)',
|
|
1073
|
-
}))),
|
|
1074
|
-
]),
|
|
1075
|
-
]),
|
|
1076
|
-
]),
|
|
1077
|
-
] });
|
|
1078
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyInlineDeleteComponent, decorators: [{
|
|
1079
|
-
type: i0.Component,
|
|
1080
|
-
args: [{
|
|
1081
|
-
selector: 'sky-inline-delete',
|
|
1082
|
-
styles: [".sky-inline-delete{position:absolute!important;top:0px;left:0px;width:100%;height:100%;background-color:#00000080;z-index:999;border:2px solid #ef4044}.sky-inline-delete-assistive-text{width:0;height:0;padding:0;opacity:0;position:absolute;margin:-1px;border:0;overflow:hidden;clip:rect(0,0,0,0);outline:none;white-space:nowrap}.sky-inline-delete-button{margin-right:10px}.sky-inline-delete-card .sky-inline-delete-content{position:absolute;bottom:10px;text-align:center;width:100%}.sky-inline-delete-standard .sky-inline-delete-content{position:absolute;top:50%;transform:translateY(-50%);left:20px}.sky-inline-delete-wait{height:100%}\n"],
|
|
1083
|
-
template: "<div\n class=\"sky-inline-delete sky-inline-delete-{{ type }}\"\n role=\"alertdialog\"\n [@inlineDeleteAnimation]=\"animationState\"\n (@inlineDeleteAnimation.done)=\"onAnimationDone($event)\"\n [attr.aria-describedby]=\"assistiveTextId\"\n [attr.aria-label]=\"'skyux_inline_delete_confirm_deletion' | skyLibResources\"\n>\n <span class=\"sky-inline-delete-assistive-text\" [id]=\"assistiveTextId\">\n {{ 'skyux_inline_delete_assistive_text' | skyLibResources }}\n </span>\n <sky-wait class=\"sky-inline-delete-wait\" [isWaiting]=\"pending\"></sky-wait>\n <div class=\"sky-inline-delete-content\">\n <div class=\"sky-inline-delete-content-animation-container\">\n <button\n class=\"sky-btn sky-btn-danger sky-inline-delete-button\"\n type=\"button\"\n (click)=\"onDeleteClick()\"\n #delete\n >\n {{ 'skyux_inline_delete_delete' | skyLibResources }}\n </button>\n <button\n class=\"sky-btn sky-btn-default\"\n type=\"button\"\n (click)=\"onCancelClick()\"\n >\n {{ 'skyux_inline_delete_cancel' | skyLibResources }}\n </button>\n </div>\n </div>\n</div>\n",
|
|
1084
|
-
animations: [
|
|
1085
|
-
animations.trigger('inlineDeleteAnimation', [
|
|
1086
|
-
animations.transition('* => shown', [
|
|
1087
|
-
animations.style({
|
|
1088
|
-
opacity: 0,
|
|
1089
|
-
}),
|
|
1090
|
-
animations.query('.sky-inline-delete-content-animation-container', animations.style({ transform: 'scale(0.0)' })),
|
|
1091
|
-
animations.group([
|
|
1092
|
-
animations.animate('300ms ease-in-out', animations.style({ opacity: 1 })),
|
|
1093
|
-
animations.query('.sky-inline-delete-content-animation-container', animations.animate('300ms ease-in-out', animations.style({
|
|
1094
|
-
transform: 'scale(1)',
|
|
1095
|
-
}))),
|
|
1096
|
-
]),
|
|
1097
|
-
]),
|
|
1098
|
-
animations.transition("shown <=> *", [
|
|
1099
|
-
animations.query('.sky-inline-delete-content-animation-container', animations.style({ transform: 'scale(1)' })),
|
|
1100
|
-
animations.group([
|
|
1101
|
-
animations.animate('300ms ease-in-out', animations.style({
|
|
1102
|
-
opacity: 0,
|
|
1103
|
-
})),
|
|
1104
|
-
animations.query('.sky-inline-delete-content-animation-container', animations.animate('300ms ease-in-out', animations.style({
|
|
1105
|
-
transform: 'scale(0.0)',
|
|
1106
|
-
}))),
|
|
1107
|
-
]),
|
|
1108
|
-
]),
|
|
1109
|
-
]),
|
|
1110
|
-
],
|
|
1111
|
-
providers: [i1.SkyCoreAdapterService, SkyInlineDeleteAdapterService],
|
|
1112
|
-
}]
|
|
1113
|
-
}], ctorParameters: function () { return [{ type: SkyInlineDeleteAdapterService }, { type: i0__namespace.ChangeDetectorRef }, { type: i0__namespace.ElementRef }]; }, propDecorators: { pending: [{
|
|
1114
|
-
type: i0.Input
|
|
1115
|
-
}], cancelTriggered: [{
|
|
1116
|
-
type: i0.Output
|
|
1117
|
-
}], deleteTriggered: [{
|
|
1118
|
-
type: i0.Output
|
|
1119
|
-
}], deleteButton: [{
|
|
1120
|
-
type: i0.ViewChild,
|
|
1121
|
-
args: ['delete', {
|
|
1122
|
-
read: i0.ElementRef,
|
|
1123
|
-
static: false,
|
|
1124
|
-
}]
|
|
1125
|
-
}] } });
|
|
1126
|
-
|
|
1127
|
-
var SkyInlineDeleteModule = /** @class */ (function () {
|
|
1128
|
-
function SkyInlineDeleteModule() {
|
|
1129
|
-
}
|
|
1130
|
-
return SkyInlineDeleteModule;
|
|
1131
|
-
}());
|
|
1132
|
-
SkyInlineDeleteModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyInlineDeleteModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
1133
|
-
SkyInlineDeleteModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyInlineDeleteModule, declarations: [SkyInlineDeleteComponent], imports: [i3.CommonModule,
|
|
1134
|
-
i1$1.SkyI18nModule,
|
|
1135
|
-
SkyLayoutResourcesModule,
|
|
1136
|
-
i2$1.SkyWaitModule], exports: [SkyInlineDeleteComponent] });
|
|
1137
|
-
SkyInlineDeleteModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyInlineDeleteModule, imports: [[
|
|
1138
|
-
i3.CommonModule,
|
|
1139
|
-
i1$1.SkyI18nModule,
|
|
1140
|
-
SkyLayoutResourcesModule,
|
|
1141
|
-
i2$1.SkyWaitModule,
|
|
1142
|
-
]] });
|
|
1143
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyInlineDeleteModule, decorators: [{
|
|
1144
|
-
type: i0.NgModule,
|
|
1145
|
-
args: [{
|
|
1146
|
-
declarations: [SkyInlineDeleteComponent],
|
|
1147
|
-
imports: [
|
|
1148
|
-
i3.CommonModule,
|
|
1149
|
-
i1$1.SkyI18nModule,
|
|
1150
|
-
SkyLayoutResourcesModule,
|
|
1151
|
-
i2$1.SkyWaitModule,
|
|
1152
|
-
],
|
|
1153
|
-
exports: [SkyInlineDeleteComponent],
|
|
1154
|
-
}]
|
|
1155
|
-
}] });
|
|
1156
|
-
|
|
1157
|
-
/**
|
|
1158
|
-
* Specifies an action that users can perform on the card.
|
|
1159
|
-
*/
|
|
1160
|
-
var SkyCardActionsComponent = /** @class */ (function () {
|
|
1161
|
-
function SkyCardActionsComponent() {
|
|
1162
|
-
}
|
|
1163
|
-
return SkyCardActionsComponent;
|
|
1164
|
-
}());
|
|
1165
|
-
SkyCardActionsComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyCardActionsComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1166
|
-
SkyCardActionsComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyCardActionsComponent, selector: "sky-card-actions", ngImport: i0__namespace, template: "<ng-content></ng-content>\n", styles: [":host{display:block;border-top:1px solid #e2e3e4;padding:7px 0}\n"] });
|
|
1167
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyCardActionsComponent, decorators: [{
|
|
1168
|
-
type: i0.Component,
|
|
1169
|
-
args: [{
|
|
1170
|
-
selector: 'sky-card-actions',
|
|
1171
|
-
template: "<ng-content></ng-content>\n",
|
|
1172
|
-
styles: [":host{display:block;border-top:1px solid #e2e3e4;padding:7px 0}\n"],
|
|
1173
|
-
}]
|
|
1174
|
-
}] });
|
|
1175
|
-
|
|
1176
|
-
/**
|
|
1177
|
-
* Specifies the content to display in the body of the card.
|
|
1178
|
-
*/
|
|
1179
|
-
var SkyCardContentComponent = /** @class */ (function () {
|
|
1180
|
-
function SkyCardContentComponent() {
|
|
1181
|
-
}
|
|
1182
|
-
return SkyCardContentComponent;
|
|
1183
|
-
}());
|
|
1184
|
-
SkyCardContentComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyCardContentComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1185
|
-
SkyCardContentComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyCardContentComponent, selector: "sky-card-content", ngImport: i0__namespace, template: "<ng-content></ng-content>\n" });
|
|
1186
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyCardContentComponent, decorators: [{
|
|
1187
|
-
type: i0.Component,
|
|
1188
|
-
args: [{
|
|
1189
|
-
selector: 'sky-card-content',
|
|
1190
|
-
template: "<ng-content></ng-content>\n",
|
|
1191
|
-
}]
|
|
1192
|
-
}] });
|
|
1193
|
-
|
|
1194
|
-
/**
|
|
1195
|
-
* Specifies a title to identify what the card represents.
|
|
1196
|
-
*/
|
|
1197
|
-
var SkyCardTitleComponent = /** @class */ (function () {
|
|
1198
|
-
function SkyCardTitleComponent() {
|
|
1199
|
-
}
|
|
1200
|
-
return SkyCardTitleComponent;
|
|
1201
|
-
}());
|
|
1202
|
-
SkyCardTitleComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyCardTitleComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1203
|
-
SkyCardTitleComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyCardTitleComponent, selector: "sky-card-title", ngImport: i0__namespace, template: "<ng-content></ng-content>\n" });
|
|
1204
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyCardTitleComponent, decorators: [{
|
|
1205
|
-
type: i0.Component,
|
|
1206
|
-
args: [{
|
|
1207
|
-
selector: 'sky-card-title',
|
|
1208
|
-
template: "<ng-content></ng-content>\n",
|
|
1209
|
-
}]
|
|
1210
|
-
}] });
|
|
1211
|
-
|
|
1212
|
-
/**
|
|
1213
|
-
* Creates a a small container to highlight important information.
|
|
1214
|
-
*/
|
|
1215
|
-
var SkyCardComponent = /** @class */ (function () {
|
|
1216
|
-
function SkyCardComponent() {
|
|
1217
|
-
/**
|
|
1218
|
-
* Fires when users select or deselect the card.
|
|
1219
|
-
*/
|
|
1220
|
-
this.selectedChange = new i0.EventEmitter();
|
|
1221
|
-
this.showTitle = true;
|
|
1222
|
-
}
|
|
1223
|
-
SkyCardComponent.prototype.ngAfterContentInit = function () {
|
|
1224
|
-
var _this = this;
|
|
1225
|
-
this.showTitle = this.titleComponent.length > 0;
|
|
1226
|
-
this.subscription = this.titleComponent.changes.subscribe(function () {
|
|
1227
|
-
_this.showTitle = _this.titleComponent.length > 0;
|
|
1228
|
-
});
|
|
1229
|
-
this.inlineDeleteComponent.forEach(function (item) {
|
|
1230
|
-
item.setType(exports.SkyInlineDeleteType.Card);
|
|
1231
|
-
});
|
|
1232
|
-
this.inlineDeleteComponent.changes.subscribe(function () {
|
|
1233
|
-
_this.inlineDeleteComponent.forEach(function (item) {
|
|
1234
|
-
item.setType(exports.SkyInlineDeleteType.Card);
|
|
1235
|
-
});
|
|
1236
|
-
});
|
|
1237
|
-
};
|
|
1238
|
-
SkyCardComponent.prototype.contentClick = function () {
|
|
1239
|
-
if (this.selectable) {
|
|
1240
|
-
this.selected = !this.selected;
|
|
1241
|
-
this.selectedChange.emit(this.selected);
|
|
1242
|
-
}
|
|
1243
|
-
};
|
|
1244
|
-
SkyCardComponent.prototype.onCheckboxChange = function (newValue) {
|
|
1245
|
-
if (this.selectable && this.selected !== newValue) {
|
|
1246
|
-
this.selected = newValue;
|
|
1247
|
-
this.selectedChange.emit(this.selected);
|
|
1248
|
-
}
|
|
1249
|
-
};
|
|
1250
|
-
SkyCardComponent.prototype.ngOnDestroy = function () {
|
|
1251
|
-
/* istanbul ignore else */
|
|
1252
|
-
/* sanity check */
|
|
1253
|
-
if (this.subscription) {
|
|
1254
|
-
this.subscription.unsubscribe();
|
|
1255
|
-
}
|
|
1256
|
-
};
|
|
1257
|
-
return SkyCardComponent;
|
|
1258
|
-
}());
|
|
1259
|
-
SkyCardComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyCardComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1260
|
-
SkyCardComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyCardComponent, selector: "sky-card", inputs: { size: "size", selectable: "selectable", selected: "selected" }, outputs: { selectedChange: "selectedChange" }, queries: [{ propertyName: "inlineDeleteComponent", predicate: SkyInlineDeleteComponent }, { propertyName: "titleComponent", predicate: SkyCardTitleComponent }], ngImport: i0__namespace, template: "<section\n class=\"sky-card sky-shadow\"\n [ngClass]=\"\n {\n 'sky-card-small': size === 'small',\n 'sky-card-selectable': selectable,\n 'sky-card-selected': selectable && selected\n }\"\n>\n <ng-content select=\"sky-inline-delete\"></ng-content>\n <header>\n <div\n *ngIf=\"selectable || showTitle\"\n class=\"sky-card-header\"\n (click)=\"contentClick()\"\n >\n <div class=\"sky-card-heading-middle\">\n <h1 *ngIf=\"showTitle\" class=\"sky-card-title sky-section-heading\">\n <ng-content select=\"sky-card-title\"></ng-content>\n </h1>\n </div>\n <div *ngIf=\"selectable\" class=\"sky-card-check\">\n <sky-checkbox\n [label]=\"'skyux_card_checkbox_label' | skyLibResources\"\n [ngModel]=\"selected\"\n (click)=\"$event.stopPropagation()\"\n (ngModelChange)=\"onCheckboxChange($event)\"\n ></sky-checkbox>\n </div>\n </div>\n </header>\n <div\n class=\"sky-card-content sky-padding-even-default\"\n (click)=\"contentClick()\"\n >\n <ng-content select=\"sky-card-content\"></ng-content>\n </div>\n <div\n class=\"sky-card-actions\"\n [hidden]=\"actionsEl.children.length === 0\"\n #actionsEl\n >\n <ng-content select=\"sky-card-actions\"></ng-content>\n </div>\n</section>\n", styles: [".sky-card{background-color:#fff;border-top:1px solid #cdcfd2;border-bottom:1px solid #cdcfd2;border-left:1px solid #cdcfd2;border-right:1px solid #cdcfd2;display:inline-flex;flex-direction:column;height:350px;margin:0 10px 10px 0;transition:background-color .15s;vertical-align:top;width:350px;position:relative}.sky-card-small{height:250px;width:225px}.sky-card-selectable .sky-card-header,.sky-card-selectable .sky-card-content{cursor:pointer}.sky-card-selected{background-color:#f1eef6;transition:background-color .15s}.sky-card-header{align-items:center;display:flex;flex-shrink:0;margin:0;padding:10px 0 0}.sky-card-heading-left,.sky-card-heading-right{font-weight:normal;max-width:34px}.sky-card-heading-left{padding-left:10px}.sky-card-heading-right{padding-right:10px}.sky-card-heading-middle{flex-grow:1;padding:0 10px;overflow:hidden}.sky-card-title{margin:0;line-height:1.428571429}.sky-card-check{flex-shrink:0;padding-right:10px}.sky-card-check .sky-check-wrapper{margin-bottom:2px}.sky-card-content{flex-grow:1;font-weight:normal;margin:0;overflow:hidden}.sky-card-actions{bottom:0;flex-shrink:0;text-align:center}.sky-card-actions .sky-context-menu-btn{height:32px;width:32px}\n"], components: [{ type: i1__namespace$2.λ3, selector: "sky-checkbox", inputs: ["label", "labelledBy", "id", "disabled", "tabindex", "name", "icon", "checkboxType", "checked", "required"], outputs: ["change", "checkedChange", "disabledChange"] }], directives: [{ type: i3__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i3__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3__namespace$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i3__namespace$2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], pipes: { "skyLibResources": i1__namespace$1.SkyLibResourcesPipe } });
|
|
1261
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyCardComponent, decorators: [{
|
|
1262
|
-
type: i0.Component,
|
|
1263
|
-
args: [{
|
|
1264
|
-
selector: 'sky-card',
|
|
1265
|
-
styles: [".sky-card{background-color:#fff;border-top:1px solid #cdcfd2;border-bottom:1px solid #cdcfd2;border-left:1px solid #cdcfd2;border-right:1px solid #cdcfd2;display:inline-flex;flex-direction:column;height:350px;margin:0 10px 10px 0;transition:background-color .15s;vertical-align:top;width:350px;position:relative}.sky-card-small{height:250px;width:225px}.sky-card-selectable .sky-card-header,.sky-card-selectable .sky-card-content{cursor:pointer}.sky-card-selected{background-color:#f1eef6;transition:background-color .15s}.sky-card-header{align-items:center;display:flex;flex-shrink:0;margin:0;padding:10px 0 0}.sky-card-heading-left,.sky-card-heading-right{font-weight:normal;max-width:34px}.sky-card-heading-left{padding-left:10px}.sky-card-heading-right{padding-right:10px}.sky-card-heading-middle{flex-grow:1;padding:0 10px;overflow:hidden}.sky-card-title{margin:0;line-height:1.428571429}.sky-card-check{flex-shrink:0;padding-right:10px}.sky-card-check .sky-check-wrapper{margin-bottom:2px}.sky-card-content{flex-grow:1;font-weight:normal;margin:0;overflow:hidden}.sky-card-actions{bottom:0;flex-shrink:0;text-align:center}.sky-card-actions .sky-context-menu-btn{height:32px;width:32px}\n"],
|
|
1266
|
-
template: "<section\n class=\"sky-card sky-shadow\"\n [ngClass]=\"\n {\n 'sky-card-small': size === 'small',\n 'sky-card-selectable': selectable,\n 'sky-card-selected': selectable && selected\n }\"\n>\n <ng-content select=\"sky-inline-delete\"></ng-content>\n <header>\n <div\n *ngIf=\"selectable || showTitle\"\n class=\"sky-card-header\"\n (click)=\"contentClick()\"\n >\n <div class=\"sky-card-heading-middle\">\n <h1 *ngIf=\"showTitle\" class=\"sky-card-title sky-section-heading\">\n <ng-content select=\"sky-card-title\"></ng-content>\n </h1>\n </div>\n <div *ngIf=\"selectable\" class=\"sky-card-check\">\n <sky-checkbox\n [label]=\"'skyux_card_checkbox_label' | skyLibResources\"\n [ngModel]=\"selected\"\n (click)=\"$event.stopPropagation()\"\n (ngModelChange)=\"onCheckboxChange($event)\"\n ></sky-checkbox>\n </div>\n </div>\n </header>\n <div\n class=\"sky-card-content sky-padding-even-default\"\n (click)=\"contentClick()\"\n >\n <ng-content select=\"sky-card-content\"></ng-content>\n </div>\n <div\n class=\"sky-card-actions\"\n [hidden]=\"actionsEl.children.length === 0\"\n #actionsEl\n >\n <ng-content select=\"sky-card-actions\"></ng-content>\n </div>\n</section>\n",
|
|
1267
|
-
}]
|
|
1268
|
-
}], propDecorators: { size: [{
|
|
1269
|
-
type: i0.Input
|
|
1270
|
-
}], selectable: [{
|
|
1271
|
-
type: i0.Input
|
|
1272
|
-
}], selected: [{
|
|
1273
|
-
type: i0.Input
|
|
1274
|
-
}], selectedChange: [{
|
|
1275
|
-
type: i0.Output
|
|
1276
|
-
}], inlineDeleteComponent: [{
|
|
1277
|
-
type: i0.ContentChildren,
|
|
1278
|
-
args: [SkyInlineDeleteComponent]
|
|
1279
|
-
}], titleComponent: [{
|
|
1280
|
-
type: i0.ContentChildren,
|
|
1281
|
-
args: [SkyCardTitleComponent]
|
|
1282
|
-
}] } });
|
|
1283
|
-
|
|
1284
|
-
var SkyCardModule = /** @class */ (function () {
|
|
1285
|
-
function SkyCardModule() {
|
|
1286
|
-
}
|
|
1287
|
-
return SkyCardModule;
|
|
1288
|
-
}());
|
|
1289
|
-
SkyCardModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyCardModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
1290
|
-
SkyCardModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyCardModule, declarations: [SkyCardActionsComponent,
|
|
1291
|
-
SkyCardComponent,
|
|
1292
|
-
SkyCardContentComponent,
|
|
1293
|
-
SkyCardTitleComponent], imports: [i3.CommonModule,
|
|
1294
|
-
i3$2.FormsModule,
|
|
1295
|
-
i1$2.SkyCheckboxModule,
|
|
1296
|
-
i1$1.SkyI18nModule,
|
|
1297
|
-
SkyLayoutResourcesModule,
|
|
1298
|
-
SkyInlineDeleteModule], exports: [SkyCardActionsComponent,
|
|
1299
|
-
SkyCardComponent,
|
|
1300
|
-
SkyCardContentComponent,
|
|
1301
|
-
SkyCardTitleComponent] });
|
|
1302
|
-
SkyCardModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyCardModule, imports: [[
|
|
1303
|
-
i3.CommonModule,
|
|
1304
|
-
i3$2.FormsModule,
|
|
1305
|
-
i1$2.SkyCheckboxModule,
|
|
1306
|
-
i1$1.SkyI18nModule,
|
|
1307
|
-
SkyLayoutResourcesModule,
|
|
1308
|
-
SkyInlineDeleteModule,
|
|
1309
|
-
]] });
|
|
1310
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyCardModule, decorators: [{
|
|
1311
|
-
type: i0.NgModule,
|
|
1312
|
-
args: [{
|
|
1313
|
-
declarations: [
|
|
1314
|
-
SkyCardActionsComponent,
|
|
1315
|
-
SkyCardComponent,
|
|
1316
|
-
SkyCardContentComponent,
|
|
1317
|
-
SkyCardTitleComponent,
|
|
1318
|
-
],
|
|
1319
|
-
imports: [
|
|
1320
|
-
i3.CommonModule,
|
|
1321
|
-
i3$2.FormsModule,
|
|
1322
|
-
i1$2.SkyCheckboxModule,
|
|
1323
|
-
i1$1.SkyI18nModule,
|
|
1324
|
-
SkyLayoutResourcesModule,
|
|
1325
|
-
SkyInlineDeleteModule,
|
|
1326
|
-
],
|
|
1327
|
-
exports: [
|
|
1328
|
-
SkyCardActionsComponent,
|
|
1329
|
-
SkyCardComponent,
|
|
1330
|
-
SkyCardContentComponent,
|
|
1331
|
-
SkyCardTitleComponent,
|
|
1332
|
-
],
|
|
1333
|
-
}]
|
|
1334
|
-
}] });
|
|
1335
|
-
|
|
1336
|
-
/**
|
|
1337
|
-
* Wraps the label-value pairs in the definition list.
|
|
1338
|
-
*/
|
|
1339
|
-
var SkyDefinitionListContentComponent = /** @class */ (function () {
|
|
1340
|
-
function SkyDefinitionListContentComponent() {
|
|
1341
|
-
}
|
|
1342
|
-
return SkyDefinitionListContentComponent;
|
|
1343
|
-
}());
|
|
1344
|
-
SkyDefinitionListContentComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyDefinitionListContentComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1345
|
-
SkyDefinitionListContentComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyDefinitionListContentComponent, selector: "sky-definition-list-content", ngImport: i0__namespace, template: "<div class=\"sky-definition-list-content\">\n <ng-content></ng-content>\n</div>\n", styles: [".sky-definition-list-content{display:flex;flex-wrap:wrap;margin-bottom:5px}\n"], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
|
|
1346
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyDefinitionListContentComponent, decorators: [{
|
|
1347
|
-
type: i0.Component,
|
|
1348
|
-
args: [{
|
|
1349
|
-
selector: 'sky-definition-list-content',
|
|
1350
|
-
template: "<div class=\"sky-definition-list-content\">\n <ng-content></ng-content>\n</div>\n",
|
|
1351
|
-
styles: [".sky-definition-list-content{display:flex;flex-wrap:wrap;margin-bottom:5px}\n"],
|
|
1352
|
-
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
1353
|
-
}]
|
|
1354
|
-
}] });
|
|
1355
|
-
|
|
1356
|
-
/**
|
|
1357
|
-
* Specifies a title for the definition list.
|
|
1358
|
-
*/
|
|
1359
|
-
var SkyDefinitionListHeadingComponent = /** @class */ (function () {
|
|
1360
|
-
function SkyDefinitionListHeadingComponent() {
|
|
1361
|
-
}
|
|
1362
|
-
return SkyDefinitionListHeadingComponent;
|
|
1363
|
-
}());
|
|
1364
|
-
SkyDefinitionListHeadingComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyDefinitionListHeadingComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1365
|
-
SkyDefinitionListHeadingComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyDefinitionListHeadingComponent, selector: "sky-definition-list-heading", ngImport: i0__namespace, template: "<div class=\"sky-subsection-heading sky-definition-list-heading\">\n <ng-content></ng-content>\n</div>\n", styles: [".sky-definition-list-heading{margin-bottom:5px}\n"], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
|
|
1366
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyDefinitionListHeadingComponent, decorators: [{
|
|
1367
|
-
type: i0.Component,
|
|
1368
|
-
args: [{
|
|
1369
|
-
selector: 'sky-definition-list-heading',
|
|
1370
|
-
template: "<div class=\"sky-subsection-heading sky-definition-list-heading\">\n <ng-content></ng-content>\n</div>\n",
|
|
1371
|
-
styles: [".sky-definition-list-heading{margin-bottom:5px}\n"],
|
|
1372
|
-
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
1373
|
-
}]
|
|
1374
|
-
}] });
|
|
1375
|
-
|
|
1376
|
-
/**
|
|
1377
|
-
* @internal
|
|
1378
|
-
*/
|
|
1379
|
-
var SkyDefinitionListService = /** @class */ (function () {
|
|
1380
|
-
function SkyDefinitionListService() {
|
|
1381
|
-
this.labelWidth = new rxjs.BehaviorSubject('');
|
|
1382
|
-
this.defaultValue = new rxjs.BehaviorSubject('');
|
|
1383
|
-
}
|
|
1384
|
-
return SkyDefinitionListService;
|
|
1385
|
-
}());
|
|
1386
|
-
SkyDefinitionListService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyDefinitionListService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
1387
|
-
SkyDefinitionListService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyDefinitionListService });
|
|
1388
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyDefinitionListService, decorators: [{
|
|
1389
|
-
type: i0.Injectable
|
|
1390
|
-
}] });
|
|
1391
|
-
|
|
1392
|
-
/**
|
|
1393
|
-
* Specifies the label in a label-value pair.
|
|
1394
|
-
*/
|
|
1395
|
-
var SkyDefinitionListLabelComponent = /** @class */ (function () {
|
|
1396
|
-
function SkyDefinitionListLabelComponent(service) {
|
|
1397
|
-
this.service = service;
|
|
1398
|
-
}
|
|
1399
|
-
return SkyDefinitionListLabelComponent;
|
|
1400
|
-
}());
|
|
1401
|
-
SkyDefinitionListLabelComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyDefinitionListLabelComponent, deps: [{ token: SkyDefinitionListService }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1402
|
-
SkyDefinitionListLabelComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyDefinitionListLabelComponent, selector: "sky-definition-list-label", ngImport: i0__namespace, template: "<div\n class=\"sky-field-label sky-definition-list-label\"\n [ngStyle]=\"{\n width: (service.labelWidth | async) || ''\n }\"\n>\n <ng-content></ng-content>\n</div>\n", styles: [":host{flex:0 0 90px}.sky-definition-list-label{margin-right:10px;word-wrap:break-word}\n"], directives: [{ type: i3__namespace.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }], pipes: { "async": i3__namespace.AsyncPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
|
|
1403
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyDefinitionListLabelComponent, decorators: [{
|
|
1404
|
-
type: i0.Component,
|
|
1405
|
-
args: [{
|
|
1406
|
-
selector: 'sky-definition-list-label',
|
|
1407
|
-
template: "<div\n class=\"sky-field-label sky-definition-list-label\"\n [ngStyle]=\"{\n width: (service.labelWidth | async) || ''\n }\"\n>\n <ng-content></ng-content>\n</div>\n",
|
|
1408
|
-
styles: [":host{flex:0 0 90px}.sky-definition-list-label{margin-right:10px;word-wrap:break-word}\n"],
|
|
1409
|
-
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
1410
|
-
}]
|
|
1411
|
-
}], ctorParameters: function () { return [{ type: SkyDefinitionListService }]; } });
|
|
1412
|
-
|
|
1413
|
-
/**
|
|
1414
|
-
* Specifies the value in a label-value pair.
|
|
1415
|
-
*/
|
|
1416
|
-
var SkyDefinitionListValueComponent = /** @class */ (function () {
|
|
1417
|
-
function SkyDefinitionListValueComponent(service) {
|
|
1418
|
-
this.service = service;
|
|
1419
|
-
}
|
|
1420
|
-
return SkyDefinitionListValueComponent;
|
|
1421
|
-
}());
|
|
1422
|
-
SkyDefinitionListValueComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyDefinitionListValueComponent, deps: [{ token: SkyDefinitionListService }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1423
|
-
SkyDefinitionListValueComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyDefinitionListValueComponent, selector: "sky-definition-list-value", ngImport: i0__namespace, template: "<div class=\"sky-definition-list-value\">\n <span #valueEl>\n <ng-content></ng-content>\n </span>\n <span class=\"sky-deemphasized\" *ngIf=\"!valueEl.textContent.trim()\">\n {{\n (service.defaultValue | async) ||\n ('skyux_definition_list_none_found' | skyLibResources)\n }}\n </span>\n</div>\n", styles: [":host{flex:1}\n"], directives: [{ type: i3__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "async": i3__namespace.AsyncPipe, "skyLibResources": i1__namespace$1.SkyLibResourcesPipe } });
|
|
1424
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyDefinitionListValueComponent, decorators: [{
|
|
1425
|
-
type: i0.Component,
|
|
1426
|
-
args: [{
|
|
1427
|
-
selector: 'sky-definition-list-value',
|
|
1428
|
-
template: "<div class=\"sky-definition-list-value\">\n <span #valueEl>\n <ng-content></ng-content>\n </span>\n <span class=\"sky-deemphasized\" *ngIf=\"!valueEl.textContent.trim()\">\n {{\n (service.defaultValue | async) ||\n ('skyux_definition_list_none_found' | skyLibResources)\n }}\n </span>\n</div>\n",
|
|
1429
|
-
styles: [":host{flex:1}\n"],
|
|
1430
|
-
}]
|
|
1431
|
-
}], ctorParameters: function () { return [{ type: SkyDefinitionListService }]; } });
|
|
1432
|
-
|
|
1433
|
-
/**
|
|
1434
|
-
* Creates a definition list to display label-value pairs.
|
|
1435
|
-
*/
|
|
1436
|
-
var SkyDefinitionListComponent = /** @class */ (function () {
|
|
1437
|
-
function SkyDefinitionListComponent(service) {
|
|
1438
|
-
this.service = service;
|
|
1439
|
-
}
|
|
1440
|
-
Object.defineProperty(SkyDefinitionListComponent.prototype, "labelWidth", {
|
|
1441
|
-
/**
|
|
1442
|
-
* Specifies the width of the label portion of the definition list.
|
|
1443
|
-
* @default "90px"
|
|
1444
|
-
*/
|
|
1445
|
-
set: function (value) {
|
|
1446
|
-
this.service.labelWidth.next(value);
|
|
1447
|
-
},
|
|
1448
|
-
enumerable: false,
|
|
1449
|
-
configurable: true
|
|
1450
|
-
});
|
|
1451
|
-
Object.defineProperty(SkyDefinitionListComponent.prototype, "defaultValue", {
|
|
1452
|
-
/**
|
|
1453
|
-
* Specifies a default value to display when no value is provided
|
|
1454
|
-
* for a label-value pair.
|
|
1455
|
-
* @default "None found"
|
|
1456
|
-
*/
|
|
1457
|
-
set: function (value) {
|
|
1458
|
-
this.service.defaultValue.next(value);
|
|
1459
|
-
},
|
|
1460
|
-
enumerable: false,
|
|
1461
|
-
configurable: true
|
|
1462
|
-
});
|
|
1463
|
-
return SkyDefinitionListComponent;
|
|
1464
|
-
}());
|
|
1465
|
-
SkyDefinitionListComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyDefinitionListComponent, deps: [{ token: SkyDefinitionListService }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1466
|
-
SkyDefinitionListComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyDefinitionListComponent, selector: "sky-definition-list", inputs: { labelWidth: "labelWidth", defaultValue: "defaultValue" }, providers: [SkyDefinitionListService], ngImport: i0__namespace, template: "<div class=\"sky-definition-list\">\n <ng-content select=\"sky-definition-list-heading\"></ng-content>\n <ng-content select=\"sky-definition-list-content\"></ng-content>\n</div>\n", styles: [".sky-definition-list{margin-right:50px;margin-bottom:20px}\n"], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
|
|
1467
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyDefinitionListComponent, decorators: [{
|
|
1468
|
-
type: i0.Component,
|
|
1469
|
-
args: [{
|
|
1470
|
-
selector: 'sky-definition-list',
|
|
1471
|
-
template: "<div class=\"sky-definition-list\">\n <ng-content select=\"sky-definition-list-heading\"></ng-content>\n <ng-content select=\"sky-definition-list-content\"></ng-content>\n</div>\n",
|
|
1472
|
-
styles: [".sky-definition-list{margin-right:50px;margin-bottom:20px}\n"],
|
|
1473
|
-
providers: [SkyDefinitionListService],
|
|
1474
|
-
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
1475
|
-
}]
|
|
1476
|
-
}], ctorParameters: function () { return [{ type: SkyDefinitionListService }]; }, propDecorators: { labelWidth: [{
|
|
1477
|
-
type: i0.Input
|
|
1478
|
-
}], defaultValue: [{
|
|
1479
|
-
type: i0.Input
|
|
1480
|
-
}] } });
|
|
1481
|
-
|
|
1482
|
-
var SkyDefinitionListModule = /** @class */ (function () {
|
|
1483
|
-
function SkyDefinitionListModule() {
|
|
1484
|
-
}
|
|
1485
|
-
return SkyDefinitionListModule;
|
|
1486
|
-
}());
|
|
1487
|
-
SkyDefinitionListModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyDefinitionListModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
1488
|
-
SkyDefinitionListModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyDefinitionListModule, declarations: [SkyDefinitionListComponent,
|
|
1489
|
-
SkyDefinitionListContentComponent,
|
|
1490
|
-
SkyDefinitionListHeadingComponent,
|
|
1491
|
-
SkyDefinitionListLabelComponent,
|
|
1492
|
-
SkyDefinitionListValueComponent], imports: [i3.CommonModule, i1$1.SkyI18nModule, SkyLayoutResourcesModule], exports: [SkyDefinitionListComponent,
|
|
1493
|
-
SkyDefinitionListContentComponent,
|
|
1494
|
-
SkyDefinitionListHeadingComponent,
|
|
1495
|
-
SkyDefinitionListLabelComponent,
|
|
1496
|
-
SkyDefinitionListValueComponent] });
|
|
1497
|
-
SkyDefinitionListModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyDefinitionListModule, imports: [[i3.CommonModule, i1$1.SkyI18nModule, SkyLayoutResourcesModule]] });
|
|
1498
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyDefinitionListModule, decorators: [{
|
|
1499
|
-
type: i0.NgModule,
|
|
1500
|
-
args: [{
|
|
1501
|
-
declarations: [
|
|
1502
|
-
SkyDefinitionListComponent,
|
|
1503
|
-
SkyDefinitionListContentComponent,
|
|
1504
|
-
SkyDefinitionListHeadingComponent,
|
|
1505
|
-
SkyDefinitionListLabelComponent,
|
|
1506
|
-
SkyDefinitionListValueComponent,
|
|
1507
|
-
],
|
|
1508
|
-
imports: [i3.CommonModule, i1$1.SkyI18nModule, SkyLayoutResourcesModule],
|
|
1509
|
-
exports: [
|
|
1510
|
-
SkyDefinitionListComponent,
|
|
1511
|
-
SkyDefinitionListContentComponent,
|
|
1512
|
-
SkyDefinitionListHeadingComponent,
|
|
1513
|
-
SkyDefinitionListLabelComponent,
|
|
1514
|
-
SkyDefinitionListValueComponent,
|
|
1515
|
-
],
|
|
1516
|
-
}]
|
|
1517
|
-
}] });
|
|
1518
|
-
|
|
1519
|
-
/**
|
|
1520
|
-
* @internal
|
|
1521
|
-
*/
|
|
1522
|
-
var SkyDescriptionListService = /** @class */ (function () {
|
|
1523
|
-
function SkyDescriptionListService() {
|
|
1524
|
-
this._defaultDescription = new rxjs.BehaviorSubject('');
|
|
1525
|
-
}
|
|
1526
|
-
Object.defineProperty(SkyDescriptionListService.prototype, "defaultDescription", {
|
|
1527
|
-
get: function () {
|
|
1528
|
-
return this._defaultDescription.asObservable();
|
|
1529
|
-
},
|
|
1530
|
-
enumerable: false,
|
|
1531
|
-
configurable: true
|
|
1532
|
-
});
|
|
1533
|
-
SkyDescriptionListService.prototype.ngOnDestroy = function () {
|
|
1534
|
-
this._defaultDescription.complete();
|
|
1535
|
-
};
|
|
1536
|
-
SkyDescriptionListService.prototype.updateDefaultDescription = function (value) {
|
|
1537
|
-
this._defaultDescription.next(value);
|
|
1538
|
-
};
|
|
1539
|
-
return SkyDescriptionListService;
|
|
1540
|
-
}());
|
|
1541
|
-
SkyDescriptionListService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyDescriptionListService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
1542
|
-
SkyDescriptionListService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyDescriptionListService });
|
|
1543
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyDescriptionListService, decorators: [{
|
|
1544
|
-
type: i0.Injectable
|
|
1545
|
-
}] });
|
|
1546
|
-
|
|
1547
|
-
/**
|
|
1548
|
-
* Specifies the description in a term-description pair.
|
|
1549
|
-
*/
|
|
1550
|
-
var SkyDescriptionListDescriptionComponent = /** @class */ (function () {
|
|
1551
|
-
function SkyDescriptionListDescriptionComponent(service, changeRef, themeSvc) {
|
|
1552
|
-
this.service = service;
|
|
1553
|
-
this.changeRef = changeRef;
|
|
1554
|
-
this.themeSvc = themeSvc;
|
|
1555
|
-
this.ngUnsubscribe = new rxjs.Subject();
|
|
1556
|
-
}
|
|
1557
|
-
SkyDescriptionListDescriptionComponent.prototype.ngOnInit = function () {
|
|
1558
|
-
var _this = this;
|
|
1559
|
-
/* istanbul ignore else */
|
|
1560
|
-
if (this.themeSvc) {
|
|
1561
|
-
this.themeSvc.settingsChange
|
|
1562
|
-
.pipe(operators.takeUntil(this.ngUnsubscribe))
|
|
1563
|
-
.subscribe(function (themeSettings) {
|
|
1564
|
-
_this.themeName = themeSettings.currentSettings.theme.name;
|
|
1565
|
-
_this.changeRef.markForCheck();
|
|
1566
|
-
});
|
|
1567
|
-
}
|
|
1568
|
-
};
|
|
1569
|
-
SkyDescriptionListDescriptionComponent.prototype.ngOnDestroy = function () {
|
|
1570
|
-
this.ngUnsubscribe.next();
|
|
1571
|
-
this.ngUnsubscribe.complete();
|
|
1572
|
-
};
|
|
1573
|
-
return SkyDescriptionListDescriptionComponent;
|
|
1574
|
-
}());
|
|
1575
|
-
SkyDescriptionListDescriptionComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyDescriptionListDescriptionComponent, deps: [{ token: SkyDescriptionListService }, { token: i0__namespace.ChangeDetectorRef }, { token: i3__namespace$1.SkyThemeService }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1576
|
-
SkyDescriptionListDescriptionComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyDescriptionListDescriptionComponent, selector: "sky-description-list-description", viewQueries: [{ propertyName: "templateRef", first: true, predicate: ["descriptionTemplateRef"], descendants: true, read: i0.TemplateRef, static: true }], ngImport: i0__namespace, template: "<ng-template #descriptionTemplateRef>\n <span #valueEl>\n <ng-content></ng-content>\n </span>\n <span\n *ngIf=\"!valueEl.textContent.trim()\"\n data-sky-id=\"sky-description-list-default-value\"\n [skyThemeClass]=\"{\n 'sky-font-deemphasized': 'modern',\n 'sky-deemphasized': 'default'\n }\"\n >\n {{\n (service.defaultDescription | async) ||\n ('skyux_description_list_none_found' | skyLibResources)\n }}\n </span>\n</ng-template>\n", directives: [{ type: i3__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3__namespace$1.λ2, selector: "[skyThemeClass]", inputs: ["class", "skyThemeClass"] }], pipes: { "async": i3__namespace.AsyncPipe, "skyLibResources": i1__namespace$1.SkyLibResourcesPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
|
|
1577
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyDescriptionListDescriptionComponent, decorators: [{
|
|
1578
|
-
type: i0.Component,
|
|
1579
|
-
args: [{
|
|
1580
|
-
selector: 'sky-description-list-description',
|
|
1581
|
-
template: "<ng-template #descriptionTemplateRef>\n <span #valueEl>\n <ng-content></ng-content>\n </span>\n <span\n *ngIf=\"!valueEl.textContent.trim()\"\n data-sky-id=\"sky-description-list-default-value\"\n [skyThemeClass]=\"{\n 'sky-font-deemphasized': 'modern',\n 'sky-deemphasized': 'default'\n }\"\n >\n {{\n (service.defaultDescription | async) ||\n ('skyux_description_list_none_found' | skyLibResources)\n }}\n </span>\n</ng-template>\n",
|
|
1582
|
-
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
1583
|
-
}]
|
|
1584
|
-
}], ctorParameters: function () { return [{ type: SkyDescriptionListService }, { type: i0__namespace.ChangeDetectorRef }, { type: i3__namespace$1.SkyThemeService }]; }, propDecorators: { templateRef: [{
|
|
1585
|
-
type: i0.ViewChild,
|
|
1586
|
-
args: ['descriptionTemplateRef', {
|
|
1587
|
-
read: i0.TemplateRef,
|
|
1588
|
-
static: true,
|
|
1589
|
-
}]
|
|
1590
|
-
}] } });
|
|
1591
|
-
|
|
1592
|
-
/**
|
|
1593
|
-
* Specifies the term in a term-description pair.
|
|
1594
|
-
*/
|
|
1595
|
-
var SkyDescriptionListTermComponent = /** @class */ (function () {
|
|
1596
|
-
function SkyDescriptionListTermComponent() {
|
|
1597
|
-
}
|
|
1598
|
-
return SkyDescriptionListTermComponent;
|
|
1599
|
-
}());
|
|
1600
|
-
SkyDescriptionListTermComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyDescriptionListTermComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1601
|
-
SkyDescriptionListTermComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyDescriptionListTermComponent, selector: "sky-description-list-term", viewQueries: [{ propertyName: "templateRef", first: true, predicate: ["termTemplateRef"], descendants: true, read: i0.TemplateRef, static: true }], ngImport: i0__namespace, template: "<ng-template #termTemplateRef>\n <ng-content></ng-content>\n</ng-template>\n", changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
|
|
1602
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyDescriptionListTermComponent, decorators: [{
|
|
1603
|
-
type: i0.Component,
|
|
1604
|
-
args: [{
|
|
1605
|
-
selector: 'sky-description-list-term',
|
|
1606
|
-
template: "<ng-template #termTemplateRef>\n <ng-content></ng-content>\n</ng-template>\n",
|
|
1607
|
-
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
1608
|
-
}]
|
|
1609
|
-
}], propDecorators: { templateRef: [{
|
|
1610
|
-
type: i0.ViewChild,
|
|
1611
|
-
args: ['termTemplateRef', {
|
|
1612
|
-
read: i0.TemplateRef,
|
|
1613
|
-
static: true,
|
|
1614
|
-
}]
|
|
1615
|
-
}] } });
|
|
1616
|
-
|
|
1617
|
-
/**
|
|
1618
|
-
* Wraps the term-description pairs in the description list.
|
|
1619
|
-
*/
|
|
1620
|
-
var SkyDescriptionListContentComponent = /** @class */ (function () {
|
|
1621
|
-
function SkyDescriptionListContentComponent() {
|
|
1622
|
-
}
|
|
1623
|
-
return SkyDescriptionListContentComponent;
|
|
1624
|
-
}());
|
|
1625
|
-
SkyDescriptionListContentComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyDescriptionListContentComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1626
|
-
SkyDescriptionListContentComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyDescriptionListContentComponent, selector: "sky-description-list-content", queries: [{ propertyName: "termComponents", predicate: SkyDescriptionListTermComponent }, { propertyName: "descriptionComponents", predicate: SkyDescriptionListDescriptionComponent }], ngImport: i0__namespace, template: "<ng-content></ng-content>\n" });
|
|
1627
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyDescriptionListContentComponent, decorators: [{
|
|
1628
|
-
type: i0.Component,
|
|
1629
|
-
args: [{
|
|
1630
|
-
selector: 'sky-description-list-content',
|
|
1631
|
-
template: "<ng-content></ng-content>\n",
|
|
1632
|
-
}]
|
|
1633
|
-
}], propDecorators: { termComponents: [{
|
|
1634
|
-
type: i0.ContentChildren,
|
|
1635
|
-
args: [SkyDescriptionListTermComponent]
|
|
1636
|
-
}], descriptionComponents: [{
|
|
1637
|
-
type: i0.ContentChildren,
|
|
1638
|
-
args: [SkyDescriptionListDescriptionComponent]
|
|
1639
|
-
}] } });
|
|
1640
|
-
|
|
1641
|
-
/**
|
|
1642
|
-
* @internal
|
|
1643
|
-
*/
|
|
1644
|
-
var SkyDescriptionListAdapterService = /** @class */ (function () {
|
|
1645
|
-
function SkyDescriptionListAdapterService(rendererFactory) {
|
|
1646
|
-
this.renderer = rendererFactory.createRenderer(undefined, undefined);
|
|
1647
|
-
}
|
|
1648
|
-
SkyDescriptionListAdapterService.prototype.getWidth = function (elementRef) {
|
|
1649
|
-
return elementRef.nativeElement.clientWidth;
|
|
1650
|
-
};
|
|
1651
|
-
SkyDescriptionListAdapterService.prototype.setResponsiveClass = function (element) {
|
|
1652
|
-
var nativeEl = element.nativeElement;
|
|
1653
|
-
var width = this.getWidth(element);
|
|
1654
|
-
var className = this.getResponsiveClassName(width);
|
|
1655
|
-
this.renderer.removeClass(nativeEl, 'sky-responsive-container-xs');
|
|
1656
|
-
this.renderer.removeClass(nativeEl, 'sky-responsive-container-sm');
|
|
1657
|
-
this.renderer.removeClass(nativeEl, 'sky-responsive-container-md');
|
|
1658
|
-
this.renderer.addClass(nativeEl, className);
|
|
1659
|
-
};
|
|
1660
|
-
SkyDescriptionListAdapterService.prototype.getResponsiveClassName = function (width) {
|
|
1661
|
-
var xsBreakpointMaxPixels = 479;
|
|
1662
|
-
var smBreakpointMinPixels = 480;
|
|
1663
|
-
var smBreakpointMaxPixels = 767;
|
|
1664
|
-
if (width <= xsBreakpointMaxPixels) {
|
|
1665
|
-
return 'sky-responsive-container-xs';
|
|
1666
|
-
}
|
|
1667
|
-
else if (width >= smBreakpointMinPixels &&
|
|
1668
|
-
width <= smBreakpointMaxPixels) {
|
|
1669
|
-
return 'sky-responsive-container-sm';
|
|
1670
|
-
}
|
|
1671
|
-
else {
|
|
1672
|
-
return 'sky-responsive-container-md';
|
|
1673
|
-
}
|
|
1674
|
-
};
|
|
1675
|
-
return SkyDescriptionListAdapterService;
|
|
1676
|
-
}());
|
|
1677
|
-
SkyDescriptionListAdapterService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyDescriptionListAdapterService, deps: [{ token: i0__namespace.RendererFactory2 }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
1678
|
-
SkyDescriptionListAdapterService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyDescriptionListAdapterService });
|
|
1679
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyDescriptionListAdapterService, decorators: [{
|
|
1680
|
-
type: i0.Injectable
|
|
1681
|
-
}], ctorParameters: function () { return [{ type: i0__namespace.RendererFactory2 }]; } });
|
|
1682
|
-
|
|
1683
|
-
/**
|
|
1684
|
-
* Creates a description list to display term-description pairs.
|
|
1685
|
-
*/
|
|
1686
|
-
var SkyDescriptionListComponent = /** @class */ (function () {
|
|
1687
|
-
function SkyDescriptionListComponent(adapterService, changeDetector, descriptionListService, mutationSvc) {
|
|
1688
|
-
this.adapterService = adapterService;
|
|
1689
|
-
this.changeDetector = changeDetector;
|
|
1690
|
-
this.descriptionListService = descriptionListService;
|
|
1691
|
-
this.mutationSvc = mutationSvc;
|
|
1692
|
-
this.ngUnsubscribe = new rxjs.Subject();
|
|
1693
|
-
}
|
|
1694
|
-
Object.defineProperty(SkyDescriptionListComponent.prototype, "defaultDescription", {
|
|
1695
|
-
/**
|
|
1696
|
-
* Specifies a default description to display when no description is provided
|
|
1697
|
-
* for a term-description pair.
|
|
1698
|
-
* @default "None found"
|
|
1699
|
-
*/
|
|
1700
|
-
set: function (value) {
|
|
1701
|
-
this.descriptionListService.updateDefaultDescription(value);
|
|
1702
|
-
},
|
|
1703
|
-
enumerable: false,
|
|
1704
|
-
configurable: true
|
|
1705
|
-
});
|
|
1706
|
-
Object.defineProperty(SkyDescriptionListComponent.prototype, "mode", {
|
|
1707
|
-
get: function () {
|
|
1708
|
-
return this._mode || 'vertical';
|
|
1709
|
-
},
|
|
1710
|
-
/**
|
|
1711
|
-
* Specifies how to display term-description pairs within the description list.
|
|
1712
|
-
* Options include `"horizontal"`, `"longDescription"`, and `"vertical"`.
|
|
1713
|
-
* @default "vertical"
|
|
1714
|
-
*/
|
|
1715
|
-
set: function (value) {
|
|
1716
|
-
this._mode = value;
|
|
1717
|
-
},
|
|
1718
|
-
enumerable: false,
|
|
1719
|
-
configurable: true
|
|
1720
|
-
});
|
|
1721
|
-
SkyDescriptionListComponent.prototype.ngAfterContentInit = function () {
|
|
1722
|
-
var _this = this;
|
|
1723
|
-
// Wait for all content to render before detecting parent width.
|
|
1724
|
-
setTimeout(function () {
|
|
1725
|
-
_this.updateResponsiveClass();
|
|
1726
|
-
});
|
|
1727
|
-
this.contentComponents.changes
|
|
1728
|
-
.pipe(operators.takeUntil(this.ngUnsubscribe))
|
|
1729
|
-
.subscribe(function () {
|
|
1730
|
-
_this.changeDetector.markForCheck();
|
|
1731
|
-
});
|
|
1732
|
-
};
|
|
1733
|
-
SkyDescriptionListComponent.prototype.ngAfterViewInit = function () {
|
|
1734
|
-
var _this = this;
|
|
1735
|
-
this.contentObserver = this.mutationSvc.create(function () {
|
|
1736
|
-
_this.changeDetector.markForCheck();
|
|
1737
|
-
});
|
|
1738
|
-
this.contentObserver.observe(this.elementRef.nativeElement, {
|
|
1739
|
-
childList: true,
|
|
1740
|
-
characterData: true,
|
|
1741
|
-
subtree: true,
|
|
1742
|
-
});
|
|
1743
|
-
};
|
|
1744
|
-
SkyDescriptionListComponent.prototype.ngOnDestroy = function () {
|
|
1745
|
-
this.ngUnsubscribe.next();
|
|
1746
|
-
this.ngUnsubscribe.complete();
|
|
1747
|
-
this.contentObserver.disconnect();
|
|
1748
|
-
};
|
|
1749
|
-
SkyDescriptionListComponent.prototype.onWindowResize = function () {
|
|
1750
|
-
this.updateResponsiveClass();
|
|
1751
|
-
};
|
|
1752
|
-
SkyDescriptionListComponent.prototype.updateResponsiveClass = function () {
|
|
1753
|
-
this.adapterService.setResponsiveClass(this.elementRef);
|
|
1754
|
-
this.changeDetector.markForCheck();
|
|
1755
|
-
};
|
|
1756
|
-
return SkyDescriptionListComponent;
|
|
1757
|
-
}());
|
|
1758
|
-
SkyDescriptionListComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyDescriptionListComponent, deps: [{ token: SkyDescriptionListAdapterService }, { token: i0__namespace.ChangeDetectorRef }, { token: SkyDescriptionListService }, { token: i1__namespace.MutationObserverService }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1759
|
-
SkyDescriptionListComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyDescriptionListComponent, selector: "sky-description-list", inputs: { defaultDescription: "defaultDescription", listItemWidth: "listItemWidth", mode: "mode" }, host: { listeners: { "window:resize": "onWindowResize()" } }, providers: [SkyDescriptionListAdapterService, SkyDescriptionListService], queries: [{ propertyName: "contentComponents", predicate: SkyDescriptionListContentComponent }], viewQueries: [{ propertyName: "elementRef", first: true, predicate: ["descriptionListElement"], descendants: true, read: i0.ElementRef, static: true }], ngImport: i0__namespace, template: "<dl\n class=\"sky-description-list\"\n [ngClass]=\"{\n 'sky-description-list-long-description-mode': mode === 'longDescription',\n 'sky-description-list-vertical-mode': mode === 'vertical',\n 'sky-description-list-horizontal-mode': mode === 'horizontal'\n }\"\n #descriptionListElement\n>\n <!--\n Wrapping div is for horizontal flexing. Also injecting children's templateRef directly\n to avoid adding non-semantic HTML tags to DOM\n -->\n <div\n *ngFor=\"let contentComponent of contentComponents\"\n class=\"sky-description-list-content\"\n [style.width]=\"mode === 'horizontal' ? listItemWidth : ''\"\n >\n <dt *ngFor=\"let termComponent of contentComponent?.termComponents\">\n <ng-container\n *ngTemplateOutlet=\"termComponent.templateRef\"\n ></ng-container>\n </dt>\n <dd\n *ngFor=\"\n let descriptionComponent of contentComponent?.descriptionComponents\n \"\n >\n <ng-container\n *ngTemplateOutlet=\"descriptionComponent.templateRef\"\n ></ng-container>\n </dd>\n </div>\n</dl>\n", styles: [".sky-description-list{margin:0;padding:0}.sky-description-list dt{color:#686c73;font-size:14px;font-weight:400;margin:0 0 3px;padding:0}.sky-description-list dd{margin:0;padding:0}.sky-description-list.sky-description-list-vertical-mode .sky-description-list-content{margin:0 0 15px;width:auto}.sky-description-list.sky-description-list-horizontal-mode{display:flex;flex-wrap:wrap}.sky-description-list.sky-description-list-horizontal-mode .sky-description-list-content{margin:0 0 15px;padding:0 60px 0 0;min-width:100px;width:auto}.sky-description-list.sky-description-list-horizontal-mode.sky-responsive-container-xs .sky-description-list-content,.sky-description-list.sky-description-list-horizontal-mode.sky-responsive-container-sm .sky-description-list-content{width:50%}.sky-description-list.sky-description-list-long-description-mode .sky-description-list-content{display:flex}.sky-description-list.sky-description-list-long-description-mode .sky-description-list-content:not(:last-child){margin:0 0 10px}.sky-description-list.sky-description-list-long-description-mode .sky-description-list-content dt{color:#212327;font-size:16px;font-weight:600;margin:0 20px 0 0;width:25%;word-break:break-word}.sky-description-list.sky-description-list-long-description-mode .sky-description-list-content dd{flex:1}.sky-description-list.sky-description-list-long-description-mode.sky-responsive-container-xs .sky-description-list-content{flex-direction:column}.sky-description-list.sky-description-list-long-description-mode.sky-responsive-container-xs .sky-description-list-content dt{margin:0 0 3px;width:100%}.sky-description-list.sky-description-list-long-description-mode.sky-responsive-container-xs .sky-description-list-content dd{margin:0 0 10px}:host-context(.sky-theme-modern) .sky-description-list.sky-description-list-vertical-mode .sky-description-list-content{margin:0 0 20px}:host-context(.sky-theme-modern) .sky-description-list.sky-description-list-vertical-mode dt{color:#686c73;font-size:14px;font-weight:400}:host-context(.sky-theme-modern) .sky-description-list.sky-description-list-vertical-mode dd{font-size:16px;font-weight:400}:host-context(.sky-theme-modern) .sky-description-list.sky-description-list-horizontal-mode{margin:0 0 -20px}:host-context(.sky-theme-modern) .sky-description-list.sky-description-list-horizontal-mode .sky-description-list-content{margin:0 0 20px}:host-context(.sky-theme-modern) .sky-description-list.sky-description-list-long-description-mode dt{color:inherit;font-weight:700;font-size:inherit}:host-context(.sky-theme-modern) .sky-description-list.sky-description-list-long-description-mode dd{font-size:16px;font-weight:400}:host-context(.sky-theme-modern) .sky-description-list.sky-description-list-long-description-mode.sky-responsive-container-xs dt{margin:0 0 5px}:host-context(.sky-theme-modern) .sky-description-list.sky-description-list-long-description-mode.sky-responsive-container-xs dd{margin:0 0 20px}.sky-theme-modern .sky-description-list.sky-description-list-vertical-mode .sky-description-list-content{margin:0 0 20px}.sky-theme-modern .sky-description-list.sky-description-list-vertical-mode dt{color:#686c73;font-size:14px;font-weight:400}.sky-theme-modern .sky-description-list.sky-description-list-vertical-mode dd{font-size:16px;font-weight:400}.sky-theme-modern .sky-description-list.sky-description-list-horizontal-mode{margin:0 0 -20px}.sky-theme-modern .sky-description-list.sky-description-list-horizontal-mode .sky-description-list-content{margin:0 0 20px}.sky-theme-modern .sky-description-list.sky-description-list-long-description-mode dt{color:inherit;font-weight:700;font-size:inherit}.sky-theme-modern .sky-description-list.sky-description-list-long-description-mode dd{font-size:16px;font-weight:400}.sky-theme-modern .sky-description-list.sky-description-list-long-description-mode.sky-responsive-container-xs dt{margin:0 0 5px}.sky-theme-modern .sky-description-list.sky-description-list-long-description-mode.sky-responsive-container-xs dd{margin:0 0 20px}\n"], directives: [{ type: i3__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i3__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i3__namespace.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
|
|
1760
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyDescriptionListComponent, decorators: [{
|
|
1761
|
-
type: i0.Component,
|
|
1762
|
-
args: [{
|
|
1763
|
-
selector: 'sky-description-list',
|
|
1764
|
-
template: "<dl\n class=\"sky-description-list\"\n [ngClass]=\"{\n 'sky-description-list-long-description-mode': mode === 'longDescription',\n 'sky-description-list-vertical-mode': mode === 'vertical',\n 'sky-description-list-horizontal-mode': mode === 'horizontal'\n }\"\n #descriptionListElement\n>\n <!--\n Wrapping div is for horizontal flexing. Also injecting children's templateRef directly\n to avoid adding non-semantic HTML tags to DOM\n -->\n <div\n *ngFor=\"let contentComponent of contentComponents\"\n class=\"sky-description-list-content\"\n [style.width]=\"mode === 'horizontal' ? listItemWidth : ''\"\n >\n <dt *ngFor=\"let termComponent of contentComponent?.termComponents\">\n <ng-container\n *ngTemplateOutlet=\"termComponent.templateRef\"\n ></ng-container>\n </dt>\n <dd\n *ngFor=\"\n let descriptionComponent of contentComponent?.descriptionComponents\n \"\n >\n <ng-container\n *ngTemplateOutlet=\"descriptionComponent.templateRef\"\n ></ng-container>\n </dd>\n </div>\n</dl>\n",
|
|
1765
|
-
styles: [".sky-description-list{margin:0;padding:0}.sky-description-list dt{color:#686c73;font-size:14px;font-weight:400;margin:0 0 3px;padding:0}.sky-description-list dd{margin:0;padding:0}.sky-description-list.sky-description-list-vertical-mode .sky-description-list-content{margin:0 0 15px;width:auto}.sky-description-list.sky-description-list-horizontal-mode{display:flex;flex-wrap:wrap}.sky-description-list.sky-description-list-horizontal-mode .sky-description-list-content{margin:0 0 15px;padding:0 60px 0 0;min-width:100px;width:auto}.sky-description-list.sky-description-list-horizontal-mode.sky-responsive-container-xs .sky-description-list-content,.sky-description-list.sky-description-list-horizontal-mode.sky-responsive-container-sm .sky-description-list-content{width:50%}.sky-description-list.sky-description-list-long-description-mode .sky-description-list-content{display:flex}.sky-description-list.sky-description-list-long-description-mode .sky-description-list-content:not(:last-child){margin:0 0 10px}.sky-description-list.sky-description-list-long-description-mode .sky-description-list-content dt{color:#212327;font-size:16px;font-weight:600;margin:0 20px 0 0;width:25%;word-break:break-word}.sky-description-list.sky-description-list-long-description-mode .sky-description-list-content dd{flex:1}.sky-description-list.sky-description-list-long-description-mode.sky-responsive-container-xs .sky-description-list-content{flex-direction:column}.sky-description-list.sky-description-list-long-description-mode.sky-responsive-container-xs .sky-description-list-content dt{margin:0 0 3px;width:100%}.sky-description-list.sky-description-list-long-description-mode.sky-responsive-container-xs .sky-description-list-content dd{margin:0 0 10px}:host-context(.sky-theme-modern) .sky-description-list.sky-description-list-vertical-mode .sky-description-list-content{margin:0 0 20px}:host-context(.sky-theme-modern) .sky-description-list.sky-description-list-vertical-mode dt{color:#686c73;font-size:14px;font-weight:400}:host-context(.sky-theme-modern) .sky-description-list.sky-description-list-vertical-mode dd{font-size:16px;font-weight:400}:host-context(.sky-theme-modern) .sky-description-list.sky-description-list-horizontal-mode{margin:0 0 -20px}:host-context(.sky-theme-modern) .sky-description-list.sky-description-list-horizontal-mode .sky-description-list-content{margin:0 0 20px}:host-context(.sky-theme-modern) .sky-description-list.sky-description-list-long-description-mode dt{color:inherit;font-weight:700;font-size:inherit}:host-context(.sky-theme-modern) .sky-description-list.sky-description-list-long-description-mode dd{font-size:16px;font-weight:400}:host-context(.sky-theme-modern) .sky-description-list.sky-description-list-long-description-mode.sky-responsive-container-xs dt{margin:0 0 5px}:host-context(.sky-theme-modern) .sky-description-list.sky-description-list-long-description-mode.sky-responsive-container-xs dd{margin:0 0 20px}.sky-theme-modern .sky-description-list.sky-description-list-vertical-mode .sky-description-list-content{margin:0 0 20px}.sky-theme-modern .sky-description-list.sky-description-list-vertical-mode dt{color:#686c73;font-size:14px;font-weight:400}.sky-theme-modern .sky-description-list.sky-description-list-vertical-mode dd{font-size:16px;font-weight:400}.sky-theme-modern .sky-description-list.sky-description-list-horizontal-mode{margin:0 0 -20px}.sky-theme-modern .sky-description-list.sky-description-list-horizontal-mode .sky-description-list-content{margin:0 0 20px}.sky-theme-modern .sky-description-list.sky-description-list-long-description-mode dt{color:inherit;font-weight:700;font-size:inherit}.sky-theme-modern .sky-description-list.sky-description-list-long-description-mode dd{font-size:16px;font-weight:400}.sky-theme-modern .sky-description-list.sky-description-list-long-description-mode.sky-responsive-container-xs dt{margin:0 0 5px}.sky-theme-modern .sky-description-list.sky-description-list-long-description-mode.sky-responsive-container-xs dd{margin:0 0 20px}\n"],
|
|
1766
|
-
providers: [SkyDescriptionListAdapterService, SkyDescriptionListService],
|
|
1767
|
-
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
1768
|
-
}]
|
|
1769
|
-
}], ctorParameters: function () { return [{ type: SkyDescriptionListAdapterService }, { type: i0__namespace.ChangeDetectorRef }, { type: SkyDescriptionListService }, { type: i1__namespace.MutationObserverService }]; }, propDecorators: { defaultDescription: [{
|
|
1770
|
-
type: i0.Input
|
|
1771
|
-
}], listItemWidth: [{
|
|
1772
|
-
type: i0.Input
|
|
1773
|
-
}], mode: [{
|
|
1774
|
-
type: i0.Input
|
|
1775
|
-
}], contentComponents: [{
|
|
1776
|
-
type: i0.ContentChildren,
|
|
1777
|
-
args: [SkyDescriptionListContentComponent]
|
|
1778
|
-
}], elementRef: [{
|
|
1779
|
-
type: i0.ViewChild,
|
|
1780
|
-
args: ['descriptionListElement', {
|
|
1781
|
-
read: i0.ElementRef,
|
|
1782
|
-
static: true,
|
|
1783
|
-
}]
|
|
1784
|
-
}], onWindowResize: [{
|
|
1785
|
-
type: i0.HostListener,
|
|
1786
|
-
args: ['window:resize']
|
|
1787
|
-
}] } });
|
|
1788
|
-
|
|
1789
|
-
var SkyDescriptionListModule = /** @class */ (function () {
|
|
1790
|
-
function SkyDescriptionListModule() {
|
|
1791
|
-
}
|
|
1792
|
-
return SkyDescriptionListModule;
|
|
1793
|
-
}());
|
|
1794
|
-
SkyDescriptionListModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyDescriptionListModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
1795
|
-
SkyDescriptionListModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyDescriptionListModule, declarations: [SkyDescriptionListComponent,
|
|
1796
|
-
SkyDescriptionListContentComponent,
|
|
1797
|
-
SkyDescriptionListTermComponent,
|
|
1798
|
-
SkyDescriptionListDescriptionComponent], imports: [i3.CommonModule,
|
|
1799
|
-
i1$1.SkyI18nModule,
|
|
1800
|
-
SkyLayoutResourcesModule,
|
|
1801
|
-
i3$1.SkyThemeModule], exports: [SkyDescriptionListComponent,
|
|
1802
|
-
SkyDescriptionListContentComponent,
|
|
1803
|
-
SkyDescriptionListTermComponent,
|
|
1804
|
-
SkyDescriptionListDescriptionComponent] });
|
|
1805
|
-
SkyDescriptionListModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyDescriptionListModule, imports: [[
|
|
1806
|
-
i3.CommonModule,
|
|
1807
|
-
i1$1.SkyI18nModule,
|
|
1808
|
-
SkyLayoutResourcesModule,
|
|
1809
|
-
i3$1.SkyThemeModule,
|
|
1810
|
-
]] });
|
|
1811
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyDescriptionListModule, decorators: [{
|
|
1812
|
-
type: i0.NgModule,
|
|
1813
|
-
args: [{
|
|
1814
|
-
declarations: [
|
|
1815
|
-
SkyDescriptionListComponent,
|
|
1816
|
-
SkyDescriptionListContentComponent,
|
|
1817
|
-
SkyDescriptionListTermComponent,
|
|
1818
|
-
SkyDescriptionListDescriptionComponent,
|
|
1819
|
-
],
|
|
1820
|
-
imports: [
|
|
1821
|
-
i3.CommonModule,
|
|
1822
|
-
i1$1.SkyI18nModule,
|
|
1823
|
-
SkyLayoutResourcesModule,
|
|
1824
|
-
i3$1.SkyThemeModule,
|
|
1825
|
-
],
|
|
1826
|
-
exports: [
|
|
1827
|
-
SkyDescriptionListComponent,
|
|
1828
|
-
SkyDescriptionListContentComponent,
|
|
1829
|
-
SkyDescriptionListTermComponent,
|
|
1830
|
-
SkyDescriptionListDescriptionComponent,
|
|
1831
|
-
],
|
|
1832
|
-
}]
|
|
1833
|
-
}] });
|
|
1834
|
-
|
|
1835
|
-
/**
|
|
1836
|
-
* @deprecated Use `SkyDescriptionListModeType` instead.
|
|
1837
|
-
* @internal
|
|
1838
|
-
* Specifies how to display the term-description pairs within a description list.
|
|
1839
|
-
*/
|
|
1840
|
-
exports.SkyDescriptionListMode = void 0;
|
|
1841
|
-
(function (SkyDescriptionListMode) {
|
|
1842
|
-
/**
|
|
1843
|
-
* Displays term-description pairs side by side in a horizontal list.
|
|
1844
|
-
* This mode provides a responsive layout.
|
|
1845
|
-
*/
|
|
1846
|
-
SkyDescriptionListMode["horizontal"] = "horizontal";
|
|
1847
|
-
/**
|
|
1848
|
-
* Displays terms and descriptions side by side with the term on the left and the description
|
|
1849
|
-
* on the right. This mode includes room for long descriptions and uses a responsive layout
|
|
1850
|
-
* that stacks term-description pairs vertically.
|
|
1851
|
-
*/
|
|
1852
|
-
SkyDescriptionListMode["longDescription"] = "longDescription";
|
|
1853
|
-
/**
|
|
1854
|
-
* Displays term-description pairs in a vertical list.
|
|
1855
|
-
*/
|
|
1856
|
-
SkyDescriptionListMode["vertical"] = "vertical";
|
|
1857
|
-
})(exports.SkyDescriptionListMode || (exports.SkyDescriptionListMode = {}));
|
|
1858
|
-
|
|
1859
|
-
/**
|
|
1860
|
-
* @deprecated Use `SkyFluidGridGutterSizeType` instead.
|
|
1861
|
-
* @internal
|
|
1862
|
-
*/
|
|
1863
|
-
exports.SkyFluidGridGutterSize = void 0;
|
|
1864
|
-
(function (SkyFluidGridGutterSize) {
|
|
1865
|
-
/**
|
|
1866
|
-
* Specifies a small gutter.
|
|
1867
|
-
*/
|
|
1868
|
-
SkyFluidGridGutterSize[SkyFluidGridGutterSize["Small"] = 0] = "Small";
|
|
1869
|
-
/**
|
|
1870
|
-
* Specifies a medium gutter.
|
|
1871
|
-
*/
|
|
1872
|
-
SkyFluidGridGutterSize[SkyFluidGridGutterSize["Medium"] = 1] = "Medium";
|
|
1873
|
-
/**
|
|
1874
|
-
* Specifies a large gutter.
|
|
1875
|
-
*/
|
|
1876
|
-
SkyFluidGridGutterSize[SkyFluidGridGutterSize["Large"] = 2] = "Large";
|
|
1877
|
-
})(exports.SkyFluidGridGutterSize || (exports.SkyFluidGridGutterSize = {}));
|
|
1878
|
-
|
|
1879
|
-
/**
|
|
1880
|
-
* Displays a column within a row of the fluid grid.
|
|
1881
|
-
*/
|
|
1882
|
-
var SkyColumnComponent = /** @class */ (function () {
|
|
1883
|
-
function SkyColumnComponent() {
|
|
1884
|
-
}
|
|
1885
|
-
SkyColumnComponent.prototype.ngOnChanges = function (changes) {
|
|
1886
|
-
/* istanbul ignore else */
|
|
1887
|
-
if (changes.screenXSmall ||
|
|
1888
|
-
changes.screenSmall ||
|
|
1889
|
-
changes.screenMedium ||
|
|
1890
|
-
changes.screenLarge) {
|
|
1891
|
-
this.classnames = this.getClassNames();
|
|
1892
|
-
}
|
|
1893
|
-
};
|
|
1894
|
-
SkyColumnComponent.prototype.getClassNames = function () {
|
|
1895
|
-
var classnames = ['sky-column'];
|
|
1896
|
-
if (this.screenXSmall) {
|
|
1897
|
-
classnames.push("sky-column-xs-" + this.screenXSmall);
|
|
1898
|
-
}
|
|
1899
|
-
if (this.screenSmall) {
|
|
1900
|
-
classnames.push("sky-column-sm-" + this.screenSmall);
|
|
1901
|
-
}
|
|
1902
|
-
if (this.screenMedium) {
|
|
1903
|
-
classnames.push("sky-column-md-" + this.screenMedium);
|
|
1904
|
-
}
|
|
1905
|
-
if (this.screenLarge) {
|
|
1906
|
-
classnames.push("sky-column-lg-" + this.screenLarge);
|
|
1907
|
-
}
|
|
1908
|
-
return classnames.join(' ');
|
|
1909
|
-
};
|
|
1910
|
-
SkyColumnComponent.prototype.ngOnInit = function () {
|
|
1911
|
-
this.classnames = this.getClassNames();
|
|
1912
|
-
};
|
|
1913
|
-
return SkyColumnComponent;
|
|
1914
|
-
}());
|
|
1915
|
-
SkyColumnComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyColumnComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1916
|
-
SkyColumnComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyColumnComponent, selector: "sky-column", inputs: { screenXSmall: "screenXSmall", screenSmall: "screenSmall", screenMedium: "screenMedium", screenLarge: "screenLarge" }, host: { properties: { "class": "this.classnames" } }, usesOnChanges: true, ngImport: i0__namespace, template: "<ng-content></ng-content>\n", styles: ["sky-column.sky-column{padding-right:15px;padding-left:15px;width:100%;min-height:1px}.sky-theme-modern sky-column.sky-column{padding-right:30px;padding-left:30px}.sky-fluid-grid-gutter-size-small sky-column.sky-column{padding-right:5px;padding-left:5px}.sky-fluid-grid-gutter-size-medium sky-column.sky-column{padding-right:10px;padding-left:10px}.sky-theme-modern .sky-fluid-grid-gutter-size-small sky-column.sky-column{padding-right:10px;padding-left:10px}.sky-theme-modern .sky-fluid-grid-gutter-size-medium sky-column.sky-column{padding-right:15px;padding-left:15px}sky-column.sky-column-xs-1{width:calc(1 / 12 * 100%)}sky-column.sky-column-xs-2{width:calc(2 / 12 * 100%)}sky-column.sky-column-xs-3{width:calc(3 / 12 * 100%)}sky-column.sky-column-xs-4{width:calc(4 / 12 * 100%)}sky-column.sky-column-xs-5{width:calc(5 / 12 * 100%)}sky-column.sky-column-xs-6{width:calc(6 / 12 * 100%)}sky-column.sky-column-xs-7{width:calc(7 / 12 * 100%)}sky-column.sky-column-xs-8{width:calc(8 / 12 * 100%)}sky-column.sky-column-xs-9{width:calc(9 / 12 * 100%)}sky-column.sky-column-xs-10{width:calc(10 / 12 * 100%)}sky-column.sky-column-xs-11{width:calc(11 / 12 * 100%)}sky-column.sky-column-xs-12{width:calc(12 / 12 * 100%)}sky-column:not([class*=sky-column-xs-]){width:100%}.sky-responsive-container-xs sky-column.sky-column-xs-1,.sky-responsive-container-sm sky-column.sky-column-xs-1,.sky-responsive-container-md sky-column.sky-column-xs-1,.sky-responsive-container-lg sky-column.sky-column-xs-1{width:calc(1 / 12 * 100%)}.sky-responsive-container-xs sky-column.sky-column-xs-2,.sky-responsive-container-sm sky-column.sky-column-xs-2,.sky-responsive-container-md sky-column.sky-column-xs-2,.sky-responsive-container-lg sky-column.sky-column-xs-2{width:calc(2 / 12 * 100%)}.sky-responsive-container-xs sky-column.sky-column-xs-3,.sky-responsive-container-sm sky-column.sky-column-xs-3,.sky-responsive-container-md sky-column.sky-column-xs-3,.sky-responsive-container-lg sky-column.sky-column-xs-3{width:calc(3 / 12 * 100%)}.sky-responsive-container-xs sky-column.sky-column-xs-4,.sky-responsive-container-sm sky-column.sky-column-xs-4,.sky-responsive-container-md sky-column.sky-column-xs-4,.sky-responsive-container-lg sky-column.sky-column-xs-4{width:calc(4 / 12 * 100%)}.sky-responsive-container-xs sky-column.sky-column-xs-5,.sky-responsive-container-sm sky-column.sky-column-xs-5,.sky-responsive-container-md sky-column.sky-column-xs-5,.sky-responsive-container-lg sky-column.sky-column-xs-5{width:calc(5 / 12 * 100%)}.sky-responsive-container-xs sky-column.sky-column-xs-6,.sky-responsive-container-sm sky-column.sky-column-xs-6,.sky-responsive-container-md sky-column.sky-column-xs-6,.sky-responsive-container-lg sky-column.sky-column-xs-6{width:calc(6 / 12 * 100%)}.sky-responsive-container-xs sky-column.sky-column-xs-7,.sky-responsive-container-sm sky-column.sky-column-xs-7,.sky-responsive-container-md sky-column.sky-column-xs-7,.sky-responsive-container-lg sky-column.sky-column-xs-7{width:calc(7 / 12 * 100%)}.sky-responsive-container-xs sky-column.sky-column-xs-8,.sky-responsive-container-sm sky-column.sky-column-xs-8,.sky-responsive-container-md sky-column.sky-column-xs-8,.sky-responsive-container-lg sky-column.sky-column-xs-8{width:calc(8 / 12 * 100%)}.sky-responsive-container-xs sky-column.sky-column-xs-9,.sky-responsive-container-sm sky-column.sky-column-xs-9,.sky-responsive-container-md sky-column.sky-column-xs-9,.sky-responsive-container-lg sky-column.sky-column-xs-9{width:calc(9 / 12 * 100%)}.sky-responsive-container-xs sky-column.sky-column-xs-10,.sky-responsive-container-sm sky-column.sky-column-xs-10,.sky-responsive-container-md sky-column.sky-column-xs-10,.sky-responsive-container-lg sky-column.sky-column-xs-10{width:calc(10 / 12 * 100%)}.sky-responsive-container-xs sky-column.sky-column-xs-11,.sky-responsive-container-sm sky-column.sky-column-xs-11,.sky-responsive-container-md sky-column.sky-column-xs-11,.sky-responsive-container-lg sky-column.sky-column-xs-11{width:calc(11 / 12 * 100%)}.sky-responsive-container-xs sky-column.sky-column-xs-12,.sky-responsive-container-sm sky-column.sky-column-xs-12,.sky-responsive-container-md sky-column.sky-column-xs-12,.sky-responsive-container-lg sky-column.sky-column-xs-12{width:calc(12 / 12 * 100%)}.sky-responsive-container-xs sky-column:not([class*=sky-column-xs-]),.sky-responsive-container-sm sky-column:not([class*=sky-column-xs-]),.sky-responsive-container-md sky-column:not([class*=sky-column-xs-]),.sky-responsive-container-lg sky-column:not([class*=sky-column-xs-]){width:100%}@media (min-width: 768px){sky-column.sky-column-sm-1{width:calc(1 / 12 * 100%)}sky-column.sky-column-sm-2{width:calc(2 / 12 * 100%)}sky-column.sky-column-sm-3{width:calc(3 / 12 * 100%)}sky-column.sky-column-sm-4{width:calc(4 / 12 * 100%)}sky-column.sky-column-sm-5{width:calc(5 / 12 * 100%)}sky-column.sky-column-sm-6{width:calc(6 / 12 * 100%)}sky-column.sky-column-sm-7{width:calc(7 / 12 * 100%)}sky-column.sky-column-sm-8{width:calc(8 / 12 * 100%)}sky-column.sky-column-sm-9{width:calc(9 / 12 * 100%)}sky-column.sky-column-sm-10{width:calc(10 / 12 * 100%)}sky-column.sky-column-sm-11{width:calc(11 / 12 * 100%)}sky-column.sky-column-sm-12{width:calc(12 / 12 * 100%)}}.sky-responsive-container-sm sky-column.sky-column-sm-1,.sky-responsive-container-md sky-column.sky-column-sm-1,.sky-responsive-container-lg sky-column.sky-column-sm-1{width:calc(1 / 12 * 100%)}.sky-responsive-container-sm sky-column.sky-column-sm-2,.sky-responsive-container-md sky-column.sky-column-sm-2,.sky-responsive-container-lg sky-column.sky-column-sm-2{width:calc(2 / 12 * 100%)}.sky-responsive-container-sm sky-column.sky-column-sm-3,.sky-responsive-container-md sky-column.sky-column-sm-3,.sky-responsive-container-lg sky-column.sky-column-sm-3{width:calc(3 / 12 * 100%)}.sky-responsive-container-sm sky-column.sky-column-sm-4,.sky-responsive-container-md sky-column.sky-column-sm-4,.sky-responsive-container-lg sky-column.sky-column-sm-4{width:calc(4 / 12 * 100%)}.sky-responsive-container-sm sky-column.sky-column-sm-5,.sky-responsive-container-md sky-column.sky-column-sm-5,.sky-responsive-container-lg sky-column.sky-column-sm-5{width:calc(5 / 12 * 100%)}.sky-responsive-container-sm sky-column.sky-column-sm-6,.sky-responsive-container-md sky-column.sky-column-sm-6,.sky-responsive-container-lg sky-column.sky-column-sm-6{width:calc(6 / 12 * 100%)}.sky-responsive-container-sm sky-column.sky-column-sm-7,.sky-responsive-container-md sky-column.sky-column-sm-7,.sky-responsive-container-lg sky-column.sky-column-sm-7{width:calc(7 / 12 * 100%)}.sky-responsive-container-sm sky-column.sky-column-sm-8,.sky-responsive-container-md sky-column.sky-column-sm-8,.sky-responsive-container-lg sky-column.sky-column-sm-8{width:calc(8 / 12 * 100%)}.sky-responsive-container-sm sky-column.sky-column-sm-9,.sky-responsive-container-md sky-column.sky-column-sm-9,.sky-responsive-container-lg sky-column.sky-column-sm-9{width:calc(9 / 12 * 100%)}.sky-responsive-container-sm sky-column.sky-column-sm-10,.sky-responsive-container-md sky-column.sky-column-sm-10,.sky-responsive-container-lg sky-column.sky-column-sm-10{width:calc(10 / 12 * 100%)}.sky-responsive-container-sm sky-column.sky-column-sm-11,.sky-responsive-container-md sky-column.sky-column-sm-11,.sky-responsive-container-lg sky-column.sky-column-sm-11{width:calc(11 / 12 * 100%)}.sky-responsive-container-sm sky-column.sky-column-sm-12,.sky-responsive-container-md sky-column.sky-column-sm-12,.sky-responsive-container-lg sky-column.sky-column-sm-12{width:calc(12 / 12 * 100%)}@media (min-width: 992px){sky-column.sky-column-md-1{width:calc(1 / 12 * 100%)}sky-column.sky-column-md-2{width:calc(2 / 12 * 100%)}sky-column.sky-column-md-3{width:calc(3 / 12 * 100%)}sky-column.sky-column-md-4{width:calc(4 / 12 * 100%)}sky-column.sky-column-md-5{width:calc(5 / 12 * 100%)}sky-column.sky-column-md-6{width:calc(6 / 12 * 100%)}sky-column.sky-column-md-7{width:calc(7 / 12 * 100%)}sky-column.sky-column-md-8{width:calc(8 / 12 * 100%)}sky-column.sky-column-md-9{width:calc(9 / 12 * 100%)}sky-column.sky-column-md-10{width:calc(10 / 12 * 100%)}sky-column.sky-column-md-11{width:calc(11 / 12 * 100%)}sky-column.sky-column-md-12{width:calc(12 / 12 * 100%)}}.sky-responsive-container-md sky-column.sky-column-md-1,.sky-responsive-container-lg sky-column.sky-column-md-1{width:calc(1 / 12 * 100%)}.sky-responsive-container-md sky-column.sky-column-md-2,.sky-responsive-container-lg sky-column.sky-column-md-2{width:calc(2 / 12 * 100%)}.sky-responsive-container-md sky-column.sky-column-md-3,.sky-responsive-container-lg sky-column.sky-column-md-3{width:calc(3 / 12 * 100%)}.sky-responsive-container-md sky-column.sky-column-md-4,.sky-responsive-container-lg sky-column.sky-column-md-4{width:calc(4 / 12 * 100%)}.sky-responsive-container-md sky-column.sky-column-md-5,.sky-responsive-container-lg sky-column.sky-column-md-5{width:calc(5 / 12 * 100%)}.sky-responsive-container-md sky-column.sky-column-md-6,.sky-responsive-container-lg sky-column.sky-column-md-6{width:calc(6 / 12 * 100%)}.sky-responsive-container-md sky-column.sky-column-md-7,.sky-responsive-container-lg sky-column.sky-column-md-7{width:calc(7 / 12 * 100%)}.sky-responsive-container-md sky-column.sky-column-md-8,.sky-responsive-container-lg sky-column.sky-column-md-8{width:calc(8 / 12 * 100%)}.sky-responsive-container-md sky-column.sky-column-md-9,.sky-responsive-container-lg sky-column.sky-column-md-9{width:calc(9 / 12 * 100%)}.sky-responsive-container-md sky-column.sky-column-md-10,.sky-responsive-container-lg sky-column.sky-column-md-10{width:calc(10 / 12 * 100%)}.sky-responsive-container-md sky-column.sky-column-md-11,.sky-responsive-container-lg sky-column.sky-column-md-11{width:calc(11 / 12 * 100%)}.sky-responsive-container-md sky-column.sky-column-md-12,.sky-responsive-container-lg sky-column.sky-column-md-12{width:calc(12 / 12 * 100%)}@media (min-width: 1200px){sky-column.sky-column-lg-1{width:calc(1 / 12 * 100%)}sky-column.sky-column-lg-2{width:calc(2 / 12 * 100%)}sky-column.sky-column-lg-3{width:calc(3 / 12 * 100%)}sky-column.sky-column-lg-4{width:calc(4 / 12 * 100%)}sky-column.sky-column-lg-5{width:calc(5 / 12 * 100%)}sky-column.sky-column-lg-6{width:calc(6 / 12 * 100%)}sky-column.sky-column-lg-7{width:calc(7 / 12 * 100%)}sky-column.sky-column-lg-8{width:calc(8 / 12 * 100%)}sky-column.sky-column-lg-9{width:calc(9 / 12 * 100%)}sky-column.sky-column-lg-10{width:calc(10 / 12 * 100%)}sky-column.sky-column-lg-11{width:calc(11 / 12 * 100%)}sky-column.sky-column-lg-12{width:calc(12 / 12 * 100%)}}.sky-responsive-container-lg sky-column.sky-column-lg-1{width:calc(1 / 12 * 100%)}.sky-responsive-container-lg sky-column.sky-column-lg-2{width:calc(2 / 12 * 100%)}.sky-responsive-container-lg sky-column.sky-column-lg-3{width:calc(3 / 12 * 100%)}.sky-responsive-container-lg sky-column.sky-column-lg-4{width:calc(4 / 12 * 100%)}.sky-responsive-container-lg sky-column.sky-column-lg-5{width:calc(5 / 12 * 100%)}.sky-responsive-container-lg sky-column.sky-column-lg-6{width:calc(6 / 12 * 100%)}.sky-responsive-container-lg sky-column.sky-column-lg-7{width:calc(7 / 12 * 100%)}.sky-responsive-container-lg sky-column.sky-column-lg-8{width:calc(8 / 12 * 100%)}.sky-responsive-container-lg sky-column.sky-column-lg-9{width:calc(9 / 12 * 100%)}.sky-responsive-container-lg sky-column.sky-column-lg-10{width:calc(10 / 12 * 100%)}.sky-responsive-container-lg sky-column.sky-column-lg-11{width:calc(11 / 12 * 100%)}.sky-responsive-container-lg sky-column.sky-column-lg-12{width:calc(12 / 12 * 100%)}\n"], encapsulation: i0__namespace.ViewEncapsulation.None });
|
|
1917
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyColumnComponent, decorators: [{
|
|
1918
|
-
type: i0.Component,
|
|
1919
|
-
args: [{
|
|
1920
|
-
selector: 'sky-column',
|
|
1921
|
-
template: "<ng-content></ng-content>\n",
|
|
1922
|
-
styles: ["sky-column.sky-column{padding-right:15px;padding-left:15px;width:100%;min-height:1px}.sky-theme-modern sky-column.sky-column{padding-right:30px;padding-left:30px}.sky-fluid-grid-gutter-size-small sky-column.sky-column{padding-right:5px;padding-left:5px}.sky-fluid-grid-gutter-size-medium sky-column.sky-column{padding-right:10px;padding-left:10px}.sky-theme-modern .sky-fluid-grid-gutter-size-small sky-column.sky-column{padding-right:10px;padding-left:10px}.sky-theme-modern .sky-fluid-grid-gutter-size-medium sky-column.sky-column{padding-right:15px;padding-left:15px}sky-column.sky-column-xs-1{width:calc(1 / 12 * 100%)}sky-column.sky-column-xs-2{width:calc(2 / 12 * 100%)}sky-column.sky-column-xs-3{width:calc(3 / 12 * 100%)}sky-column.sky-column-xs-4{width:calc(4 / 12 * 100%)}sky-column.sky-column-xs-5{width:calc(5 / 12 * 100%)}sky-column.sky-column-xs-6{width:calc(6 / 12 * 100%)}sky-column.sky-column-xs-7{width:calc(7 / 12 * 100%)}sky-column.sky-column-xs-8{width:calc(8 / 12 * 100%)}sky-column.sky-column-xs-9{width:calc(9 / 12 * 100%)}sky-column.sky-column-xs-10{width:calc(10 / 12 * 100%)}sky-column.sky-column-xs-11{width:calc(11 / 12 * 100%)}sky-column.sky-column-xs-12{width:calc(12 / 12 * 100%)}sky-column:not([class*=sky-column-xs-]){width:100%}.sky-responsive-container-xs sky-column.sky-column-xs-1,.sky-responsive-container-sm sky-column.sky-column-xs-1,.sky-responsive-container-md sky-column.sky-column-xs-1,.sky-responsive-container-lg sky-column.sky-column-xs-1{width:calc(1 / 12 * 100%)}.sky-responsive-container-xs sky-column.sky-column-xs-2,.sky-responsive-container-sm sky-column.sky-column-xs-2,.sky-responsive-container-md sky-column.sky-column-xs-2,.sky-responsive-container-lg sky-column.sky-column-xs-2{width:calc(2 / 12 * 100%)}.sky-responsive-container-xs sky-column.sky-column-xs-3,.sky-responsive-container-sm sky-column.sky-column-xs-3,.sky-responsive-container-md sky-column.sky-column-xs-3,.sky-responsive-container-lg sky-column.sky-column-xs-3{width:calc(3 / 12 * 100%)}.sky-responsive-container-xs sky-column.sky-column-xs-4,.sky-responsive-container-sm sky-column.sky-column-xs-4,.sky-responsive-container-md sky-column.sky-column-xs-4,.sky-responsive-container-lg sky-column.sky-column-xs-4{width:calc(4 / 12 * 100%)}.sky-responsive-container-xs sky-column.sky-column-xs-5,.sky-responsive-container-sm sky-column.sky-column-xs-5,.sky-responsive-container-md sky-column.sky-column-xs-5,.sky-responsive-container-lg sky-column.sky-column-xs-5{width:calc(5 / 12 * 100%)}.sky-responsive-container-xs sky-column.sky-column-xs-6,.sky-responsive-container-sm sky-column.sky-column-xs-6,.sky-responsive-container-md sky-column.sky-column-xs-6,.sky-responsive-container-lg sky-column.sky-column-xs-6{width:calc(6 / 12 * 100%)}.sky-responsive-container-xs sky-column.sky-column-xs-7,.sky-responsive-container-sm sky-column.sky-column-xs-7,.sky-responsive-container-md sky-column.sky-column-xs-7,.sky-responsive-container-lg sky-column.sky-column-xs-7{width:calc(7 / 12 * 100%)}.sky-responsive-container-xs sky-column.sky-column-xs-8,.sky-responsive-container-sm sky-column.sky-column-xs-8,.sky-responsive-container-md sky-column.sky-column-xs-8,.sky-responsive-container-lg sky-column.sky-column-xs-8{width:calc(8 / 12 * 100%)}.sky-responsive-container-xs sky-column.sky-column-xs-9,.sky-responsive-container-sm sky-column.sky-column-xs-9,.sky-responsive-container-md sky-column.sky-column-xs-9,.sky-responsive-container-lg sky-column.sky-column-xs-9{width:calc(9 / 12 * 100%)}.sky-responsive-container-xs sky-column.sky-column-xs-10,.sky-responsive-container-sm sky-column.sky-column-xs-10,.sky-responsive-container-md sky-column.sky-column-xs-10,.sky-responsive-container-lg sky-column.sky-column-xs-10{width:calc(10 / 12 * 100%)}.sky-responsive-container-xs sky-column.sky-column-xs-11,.sky-responsive-container-sm sky-column.sky-column-xs-11,.sky-responsive-container-md sky-column.sky-column-xs-11,.sky-responsive-container-lg sky-column.sky-column-xs-11{width:calc(11 / 12 * 100%)}.sky-responsive-container-xs sky-column.sky-column-xs-12,.sky-responsive-container-sm sky-column.sky-column-xs-12,.sky-responsive-container-md sky-column.sky-column-xs-12,.sky-responsive-container-lg sky-column.sky-column-xs-12{width:calc(12 / 12 * 100%)}.sky-responsive-container-xs sky-column:not([class*=sky-column-xs-]),.sky-responsive-container-sm sky-column:not([class*=sky-column-xs-]),.sky-responsive-container-md sky-column:not([class*=sky-column-xs-]),.sky-responsive-container-lg sky-column:not([class*=sky-column-xs-]){width:100%}@media (min-width: 768px){sky-column.sky-column-sm-1{width:calc(1 / 12 * 100%)}sky-column.sky-column-sm-2{width:calc(2 / 12 * 100%)}sky-column.sky-column-sm-3{width:calc(3 / 12 * 100%)}sky-column.sky-column-sm-4{width:calc(4 / 12 * 100%)}sky-column.sky-column-sm-5{width:calc(5 / 12 * 100%)}sky-column.sky-column-sm-6{width:calc(6 / 12 * 100%)}sky-column.sky-column-sm-7{width:calc(7 / 12 * 100%)}sky-column.sky-column-sm-8{width:calc(8 / 12 * 100%)}sky-column.sky-column-sm-9{width:calc(9 / 12 * 100%)}sky-column.sky-column-sm-10{width:calc(10 / 12 * 100%)}sky-column.sky-column-sm-11{width:calc(11 / 12 * 100%)}sky-column.sky-column-sm-12{width:calc(12 / 12 * 100%)}}.sky-responsive-container-sm sky-column.sky-column-sm-1,.sky-responsive-container-md sky-column.sky-column-sm-1,.sky-responsive-container-lg sky-column.sky-column-sm-1{width:calc(1 / 12 * 100%)}.sky-responsive-container-sm sky-column.sky-column-sm-2,.sky-responsive-container-md sky-column.sky-column-sm-2,.sky-responsive-container-lg sky-column.sky-column-sm-2{width:calc(2 / 12 * 100%)}.sky-responsive-container-sm sky-column.sky-column-sm-3,.sky-responsive-container-md sky-column.sky-column-sm-3,.sky-responsive-container-lg sky-column.sky-column-sm-3{width:calc(3 / 12 * 100%)}.sky-responsive-container-sm sky-column.sky-column-sm-4,.sky-responsive-container-md sky-column.sky-column-sm-4,.sky-responsive-container-lg sky-column.sky-column-sm-4{width:calc(4 / 12 * 100%)}.sky-responsive-container-sm sky-column.sky-column-sm-5,.sky-responsive-container-md sky-column.sky-column-sm-5,.sky-responsive-container-lg sky-column.sky-column-sm-5{width:calc(5 / 12 * 100%)}.sky-responsive-container-sm sky-column.sky-column-sm-6,.sky-responsive-container-md sky-column.sky-column-sm-6,.sky-responsive-container-lg sky-column.sky-column-sm-6{width:calc(6 / 12 * 100%)}.sky-responsive-container-sm sky-column.sky-column-sm-7,.sky-responsive-container-md sky-column.sky-column-sm-7,.sky-responsive-container-lg sky-column.sky-column-sm-7{width:calc(7 / 12 * 100%)}.sky-responsive-container-sm sky-column.sky-column-sm-8,.sky-responsive-container-md sky-column.sky-column-sm-8,.sky-responsive-container-lg sky-column.sky-column-sm-8{width:calc(8 / 12 * 100%)}.sky-responsive-container-sm sky-column.sky-column-sm-9,.sky-responsive-container-md sky-column.sky-column-sm-9,.sky-responsive-container-lg sky-column.sky-column-sm-9{width:calc(9 / 12 * 100%)}.sky-responsive-container-sm sky-column.sky-column-sm-10,.sky-responsive-container-md sky-column.sky-column-sm-10,.sky-responsive-container-lg sky-column.sky-column-sm-10{width:calc(10 / 12 * 100%)}.sky-responsive-container-sm sky-column.sky-column-sm-11,.sky-responsive-container-md sky-column.sky-column-sm-11,.sky-responsive-container-lg sky-column.sky-column-sm-11{width:calc(11 / 12 * 100%)}.sky-responsive-container-sm sky-column.sky-column-sm-12,.sky-responsive-container-md sky-column.sky-column-sm-12,.sky-responsive-container-lg sky-column.sky-column-sm-12{width:calc(12 / 12 * 100%)}@media (min-width: 992px){sky-column.sky-column-md-1{width:calc(1 / 12 * 100%)}sky-column.sky-column-md-2{width:calc(2 / 12 * 100%)}sky-column.sky-column-md-3{width:calc(3 / 12 * 100%)}sky-column.sky-column-md-4{width:calc(4 / 12 * 100%)}sky-column.sky-column-md-5{width:calc(5 / 12 * 100%)}sky-column.sky-column-md-6{width:calc(6 / 12 * 100%)}sky-column.sky-column-md-7{width:calc(7 / 12 * 100%)}sky-column.sky-column-md-8{width:calc(8 / 12 * 100%)}sky-column.sky-column-md-9{width:calc(9 / 12 * 100%)}sky-column.sky-column-md-10{width:calc(10 / 12 * 100%)}sky-column.sky-column-md-11{width:calc(11 / 12 * 100%)}sky-column.sky-column-md-12{width:calc(12 / 12 * 100%)}}.sky-responsive-container-md sky-column.sky-column-md-1,.sky-responsive-container-lg sky-column.sky-column-md-1{width:calc(1 / 12 * 100%)}.sky-responsive-container-md sky-column.sky-column-md-2,.sky-responsive-container-lg sky-column.sky-column-md-2{width:calc(2 / 12 * 100%)}.sky-responsive-container-md sky-column.sky-column-md-3,.sky-responsive-container-lg sky-column.sky-column-md-3{width:calc(3 / 12 * 100%)}.sky-responsive-container-md sky-column.sky-column-md-4,.sky-responsive-container-lg sky-column.sky-column-md-4{width:calc(4 / 12 * 100%)}.sky-responsive-container-md sky-column.sky-column-md-5,.sky-responsive-container-lg sky-column.sky-column-md-5{width:calc(5 / 12 * 100%)}.sky-responsive-container-md sky-column.sky-column-md-6,.sky-responsive-container-lg sky-column.sky-column-md-6{width:calc(6 / 12 * 100%)}.sky-responsive-container-md sky-column.sky-column-md-7,.sky-responsive-container-lg sky-column.sky-column-md-7{width:calc(7 / 12 * 100%)}.sky-responsive-container-md sky-column.sky-column-md-8,.sky-responsive-container-lg sky-column.sky-column-md-8{width:calc(8 / 12 * 100%)}.sky-responsive-container-md sky-column.sky-column-md-9,.sky-responsive-container-lg sky-column.sky-column-md-9{width:calc(9 / 12 * 100%)}.sky-responsive-container-md sky-column.sky-column-md-10,.sky-responsive-container-lg sky-column.sky-column-md-10{width:calc(10 / 12 * 100%)}.sky-responsive-container-md sky-column.sky-column-md-11,.sky-responsive-container-lg sky-column.sky-column-md-11{width:calc(11 / 12 * 100%)}.sky-responsive-container-md sky-column.sky-column-md-12,.sky-responsive-container-lg sky-column.sky-column-md-12{width:calc(12 / 12 * 100%)}@media (min-width: 1200px){sky-column.sky-column-lg-1{width:calc(1 / 12 * 100%)}sky-column.sky-column-lg-2{width:calc(2 / 12 * 100%)}sky-column.sky-column-lg-3{width:calc(3 / 12 * 100%)}sky-column.sky-column-lg-4{width:calc(4 / 12 * 100%)}sky-column.sky-column-lg-5{width:calc(5 / 12 * 100%)}sky-column.sky-column-lg-6{width:calc(6 / 12 * 100%)}sky-column.sky-column-lg-7{width:calc(7 / 12 * 100%)}sky-column.sky-column-lg-8{width:calc(8 / 12 * 100%)}sky-column.sky-column-lg-9{width:calc(9 / 12 * 100%)}sky-column.sky-column-lg-10{width:calc(10 / 12 * 100%)}sky-column.sky-column-lg-11{width:calc(11 / 12 * 100%)}sky-column.sky-column-lg-12{width:calc(12 / 12 * 100%)}}.sky-responsive-container-lg sky-column.sky-column-lg-1{width:calc(1 / 12 * 100%)}.sky-responsive-container-lg sky-column.sky-column-lg-2{width:calc(2 / 12 * 100%)}.sky-responsive-container-lg sky-column.sky-column-lg-3{width:calc(3 / 12 * 100%)}.sky-responsive-container-lg sky-column.sky-column-lg-4{width:calc(4 / 12 * 100%)}.sky-responsive-container-lg sky-column.sky-column-lg-5{width:calc(5 / 12 * 100%)}.sky-responsive-container-lg sky-column.sky-column-lg-6{width:calc(6 / 12 * 100%)}.sky-responsive-container-lg sky-column.sky-column-lg-7{width:calc(7 / 12 * 100%)}.sky-responsive-container-lg sky-column.sky-column-lg-8{width:calc(8 / 12 * 100%)}.sky-responsive-container-lg sky-column.sky-column-lg-9{width:calc(9 / 12 * 100%)}.sky-responsive-container-lg sky-column.sky-column-lg-10{width:calc(10 / 12 * 100%)}.sky-responsive-container-lg sky-column.sky-column-lg-11{width:calc(11 / 12 * 100%)}.sky-responsive-container-lg sky-column.sky-column-lg-12{width:calc(12 / 12 * 100%)}\n"],
|
|
1923
|
-
encapsulation: i0.ViewEncapsulation.None,
|
|
1924
|
-
}]
|
|
1925
|
-
}], propDecorators: { screenXSmall: [{
|
|
1926
|
-
type: i0.Input
|
|
1927
|
-
}], screenSmall: [{
|
|
1928
|
-
type: i0.Input
|
|
1929
|
-
}], screenMedium: [{
|
|
1930
|
-
type: i0.Input
|
|
1931
|
-
}], screenLarge: [{
|
|
1932
|
-
type: i0.Input
|
|
1933
|
-
}], classnames: [{
|
|
1934
|
-
type: i0.HostBinding,
|
|
1935
|
-
args: ['class']
|
|
1936
|
-
}] } });
|
|
1937
|
-
|
|
1938
|
-
/**
|
|
1939
|
-
* Wraps the fluid grid to ensure proper spacing. Without the wrapper, the
|
|
1940
|
-
* alignment, padding, and margins do not behave as expected.
|
|
1941
|
-
*/
|
|
1942
|
-
var SkyFluidGridComponent = /** @class */ (function () {
|
|
1943
|
-
function SkyFluidGridComponent() {
|
|
1944
|
-
}
|
|
1945
|
-
Object.defineProperty(SkyFluidGridComponent.prototype, "disableMargin", {
|
|
1946
|
-
get: function () {
|
|
1947
|
-
return this._disableMargin || false;
|
|
1948
|
-
},
|
|
1949
|
-
/**
|
|
1950
|
-
* Disables the outer left and right margin of the fluid grid container.
|
|
1951
|
-
* @default false
|
|
1952
|
-
*/
|
|
1953
|
-
set: function (value) {
|
|
1954
|
-
this._disableMargin = value;
|
|
1955
|
-
},
|
|
1956
|
-
enumerable: false,
|
|
1957
|
-
configurable: true
|
|
1958
|
-
});
|
|
1959
|
-
Object.defineProperty(SkyFluidGridComponent.prototype, "gutterSize", {
|
|
1960
|
-
get: function () {
|
|
1961
|
-
return this._gutterSize === undefined ? 'large' : this._gutterSize;
|
|
1962
|
-
},
|
|
1963
|
-
/**
|
|
1964
|
-
* Specifies a `SkyFluidGridGutterSizeType` to define the size of the padding
|
|
1965
|
-
* between columns. Options include: `any`, `1`, `2`, `"small"`, `"medium"`, and `"large"`.
|
|
1966
|
-
* @default "large"
|
|
1967
|
-
*/
|
|
1968
|
-
set: function (value) {
|
|
1969
|
-
this._gutterSize = value;
|
|
1970
|
-
},
|
|
1971
|
-
enumerable: false,
|
|
1972
|
-
configurable: true
|
|
1973
|
-
});
|
|
1974
|
-
Object.defineProperty(SkyFluidGridComponent.prototype, "gutterSizeResolved", {
|
|
1975
|
-
/**
|
|
1976
|
-
* @internal
|
|
1977
|
-
*/
|
|
1978
|
-
get: function () {
|
|
1979
|
-
// Before this change, the template did a `==` comparison, implicitly converting numerical
|
|
1980
|
-
// string values to their numeric values before comparing them. Checking for the numerical
|
|
1981
|
-
// string value in addition to the values allowed by the type maintains this behavior.
|
|
1982
|
-
switch (this.gutterSize) {
|
|
1983
|
-
case 'medium':
|
|
1984
|
-
case exports.SkyFluidGridGutterSize.Medium:
|
|
1985
|
-
case exports.SkyFluidGridGutterSize.Medium.toString():
|
|
1986
|
-
return 'medium';
|
|
1987
|
-
case 'small':
|
|
1988
|
-
case exports.SkyFluidGridGutterSize.Small:
|
|
1989
|
-
case exports.SkyFluidGridGutterSize.Small.toString():
|
|
1990
|
-
return 'small';
|
|
1991
|
-
default:
|
|
1992
|
-
return 'large';
|
|
1993
|
-
}
|
|
1994
|
-
},
|
|
1995
|
-
enumerable: false,
|
|
1996
|
-
configurable: true
|
|
1997
|
-
});
|
|
1998
|
-
return SkyFluidGridComponent;
|
|
1999
|
-
}());
|
|
2000
|
-
SkyFluidGridComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyFluidGridComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
2001
|
-
SkyFluidGridComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyFluidGridComponent, selector: "sky-fluid-grid", inputs: { disableMargin: "disableMargin", gutterSize: "gutterSize" }, ngImport: i0__namespace, template: "<div\n class=\"sky-fluid-grid\"\n [ngClass]=\"{\n 'sky-fluid-grid-gutter-size-small': gutterSizeResolved === 'small',\n 'sky-fluid-grid-gutter-size-medium': gutterSizeResolved === 'medium',\n 'sky-fluid-grid-gutter-size-large': gutterSizeResolved === 'large',\n 'sky-fluid-grid-no-margin': disableMargin\n }\"\n>\n <ng-content></ng-content>\n</div>\n", styles: [".sky-fluid-grid-gutter-size-small{padding-left:5px;padding-right:5px}.sky-fluid-grid-gutter-size-medium{padding-left:10px;padding-right:10px}.sky-fluid-grid-gutter-size-large{padding-left:15px;padding-right:15px}:host-context(.sky-theme-modern) .sky-fluid-grid-gutter-size-small{padding-left:10px;padding-right:10px}:host-context(.sky-theme-modern) .sky-fluid-grid-gutter-size-medium{padding-left:15px;padding-right:15px}:host-context(.sky-theme-modern) .sky-fluid-grid-gutter-size-large{padding-left:30px;padding-right:30px}\n"], directives: [{ type: i3__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
2002
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyFluidGridComponent, decorators: [{
|
|
2003
|
-
type: i0.Component,
|
|
2004
|
-
args: [{
|
|
2005
|
-
selector: 'sky-fluid-grid',
|
|
2006
|
-
template: "<div\n class=\"sky-fluid-grid\"\n [ngClass]=\"{\n 'sky-fluid-grid-gutter-size-small': gutterSizeResolved === 'small',\n 'sky-fluid-grid-gutter-size-medium': gutterSizeResolved === 'medium',\n 'sky-fluid-grid-gutter-size-large': gutterSizeResolved === 'large',\n 'sky-fluid-grid-no-margin': disableMargin\n }\"\n>\n <ng-content></ng-content>\n</div>\n",
|
|
2007
|
-
styles: [".sky-fluid-grid-gutter-size-small{padding-left:5px;padding-right:5px}.sky-fluid-grid-gutter-size-medium{padding-left:10px;padding-right:10px}.sky-fluid-grid-gutter-size-large{padding-left:15px;padding-right:15px}:host-context(.sky-theme-modern) .sky-fluid-grid-gutter-size-small{padding-left:10px;padding-right:10px}:host-context(.sky-theme-modern) .sky-fluid-grid-gutter-size-medium{padding-left:15px;padding-right:15px}:host-context(.sky-theme-modern) .sky-fluid-grid-gutter-size-large{padding-left:30px;padding-right:30px}\n"],
|
|
2008
|
-
}]
|
|
2009
|
-
}], propDecorators: { disableMargin: [{
|
|
2010
|
-
type: i0.Input
|
|
2011
|
-
}], gutterSize: [{
|
|
2012
|
-
type: i0.Input
|
|
2013
|
-
}] } });
|
|
2014
|
-
|
|
2015
|
-
/**
|
|
2016
|
-
* Displays a row within the `sky-fluid-grid` wrapper. Previously, you could display a row
|
|
2017
|
-
* without a wrapper, but we no longer officially support that option.
|
|
2018
|
-
*/
|
|
2019
|
-
var SkyRowComponent = /** @class */ (function () {
|
|
2020
|
-
function SkyRowComponent() {
|
|
2021
|
-
/**
|
|
2022
|
-
* Indicates whether to reverse the display order for columns in the row.
|
|
2023
|
-
* @default false
|
|
2024
|
-
*/
|
|
2025
|
-
this.reverseColumnOrder = false;
|
|
2026
|
-
}
|
|
2027
|
-
return SkyRowComponent;
|
|
2028
|
-
}());
|
|
2029
|
-
SkyRowComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyRowComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
2030
|
-
SkyRowComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyRowComponent, selector: "sky-row", inputs: { reverseColumnOrder: "reverseColumnOrder" }, ngImport: i0__namespace, template: "<div class=\"sky-row\" [ngClass]=\"{ 'sky-row-reverse': reverseColumnOrder }\">\n <ng-content></ng-content>\n</div>\n", styles: [".sky-row{display:flex;flex-direction:row;flex-wrap:wrap;margin-left:-15px;margin-right:-15px}:host-context(.sky-fluid-grid-gutter-size-small) .sky-row{margin-left:-5px;margin-right:-5px}:host-context(.sky-fluid-grid-gutter-size-small.sky-fluid-grid-no-margin) .sky-row{margin-left:-10px;margin-right:-10px}:host-context(.sky-fluid-grid-gutter-size-medium) .sky-row{margin-left:-10px;margin-right:-10px}:host-context(.sky-fluid-grid-gutter-size-medium.sky-fluid-grid-no-margin) .sky-row{margin-left:-20px;margin-right:-20px}:host-context(.sky-fluid-grid-gutter-size-large) .sky-row{margin-left:-15px;margin-right:-15px}:host-context(.sky-fluid-grid-gutter-size-large.sky-fluid-grid-no-margin) .sky-row{margin-left:-30px;margin-right:-30px}:host-context(.sky-theme-modern .sky-fluid-grid-gutter-size-small) .sky-row{margin-left:-10px;margin-right:-10px}:host-context(.sky-theme-modern .sky-fluid-grid-gutter-size-small.sky-fluid-grid-no-margin) .sky-row{margin-left:-20px;margin-right:-20px}:host-context(.sky-theme-modern .sky-fluid-grid-gutter-size-medium) .sky-row{margin-left:-15px;margin-right:-15px}:host-context(.sky-theme-modern .sky-fluid-grid-gutter-size-medium.sky-fluid-grid-no-margin) .sky-row{margin-left:-30px;margin-right:-30px}:host-context(.sky-theme-modern .sky-fluid-grid-gutter-size-large) .sky-row{margin-left:-30px;margin-right:-30px}:host-context(.sky-theme-modern .sky-fluid-grid-gutter-size-large.sky-fluid-grid-no-margin) .sky-row{margin-left:-60px;margin-right:-60px}:host .sky-row.sky-row-reverse{flex-direction:row}:host-context(.sky-responsive-container-xs) .sky-row.sky-row-reverse,:host-context(.sky-responsive-container-sm) .sky-row.sky-row-reverse,:host-context(.sky-responsive-container-md) .sky-row.sky-row-reverse,:host-context(.sky-responsive-container-lg) .sky-row.sky-row-reverse{flex-direction:row}@media (min-width: 768px){:host .sky-row.sky-row-reverse{flex-direction:row-reverse}}:host-context(.sky-responsive-container-sm) .sky-row.sky-row-reverse,:host-context(.sky-responsive-container-md) .sky-row.sky-row-reverse,:host-context(.sky-responsive-container-lg) .sky-row.sky-row-reverse{flex-direction:row-reverse}:host-context(.sky-theme-modern) .sky-row{margin-left:-30px;margin-right:-30px}.sky-theme-modern .sky-row{margin-left:-30px;margin-right:-30px}\n"], directives: [{ type: i3__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
2031
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyRowComponent, decorators: [{
|
|
2032
|
-
type: i0.Component,
|
|
2033
|
-
args: [{
|
|
2034
|
-
selector: 'sky-row',
|
|
2035
|
-
template: "<div class=\"sky-row\" [ngClass]=\"{ 'sky-row-reverse': reverseColumnOrder }\">\n <ng-content></ng-content>\n</div>\n",
|
|
2036
|
-
styles: [".sky-row{display:flex;flex-direction:row;flex-wrap:wrap;margin-left:-15px;margin-right:-15px}:host-context(.sky-fluid-grid-gutter-size-small) .sky-row{margin-left:-5px;margin-right:-5px}:host-context(.sky-fluid-grid-gutter-size-small.sky-fluid-grid-no-margin) .sky-row{margin-left:-10px;margin-right:-10px}:host-context(.sky-fluid-grid-gutter-size-medium) .sky-row{margin-left:-10px;margin-right:-10px}:host-context(.sky-fluid-grid-gutter-size-medium.sky-fluid-grid-no-margin) .sky-row{margin-left:-20px;margin-right:-20px}:host-context(.sky-fluid-grid-gutter-size-large) .sky-row{margin-left:-15px;margin-right:-15px}:host-context(.sky-fluid-grid-gutter-size-large.sky-fluid-grid-no-margin) .sky-row{margin-left:-30px;margin-right:-30px}:host-context(.sky-theme-modern .sky-fluid-grid-gutter-size-small) .sky-row{margin-left:-10px;margin-right:-10px}:host-context(.sky-theme-modern .sky-fluid-grid-gutter-size-small.sky-fluid-grid-no-margin) .sky-row{margin-left:-20px;margin-right:-20px}:host-context(.sky-theme-modern .sky-fluid-grid-gutter-size-medium) .sky-row{margin-left:-15px;margin-right:-15px}:host-context(.sky-theme-modern .sky-fluid-grid-gutter-size-medium.sky-fluid-grid-no-margin) .sky-row{margin-left:-30px;margin-right:-30px}:host-context(.sky-theme-modern .sky-fluid-grid-gutter-size-large) .sky-row{margin-left:-30px;margin-right:-30px}:host-context(.sky-theme-modern .sky-fluid-grid-gutter-size-large.sky-fluid-grid-no-margin) .sky-row{margin-left:-60px;margin-right:-60px}:host .sky-row.sky-row-reverse{flex-direction:row}:host-context(.sky-responsive-container-xs) .sky-row.sky-row-reverse,:host-context(.sky-responsive-container-sm) .sky-row.sky-row-reverse,:host-context(.sky-responsive-container-md) .sky-row.sky-row-reverse,:host-context(.sky-responsive-container-lg) .sky-row.sky-row-reverse{flex-direction:row}@media (min-width: 768px){:host .sky-row.sky-row-reverse{flex-direction:row-reverse}}:host-context(.sky-responsive-container-sm) .sky-row.sky-row-reverse,:host-context(.sky-responsive-container-md) .sky-row.sky-row-reverse,:host-context(.sky-responsive-container-lg) .sky-row.sky-row-reverse{flex-direction:row-reverse}:host-context(.sky-theme-modern) .sky-row{margin-left:-30px;margin-right:-30px}.sky-theme-modern .sky-row{margin-left:-30px;margin-right:-30px}\n"],
|
|
2037
|
-
}]
|
|
2038
|
-
}], propDecorators: { reverseColumnOrder: [{
|
|
2039
|
-
type: i0.Input
|
|
2040
|
-
}] } });
|
|
2041
|
-
|
|
2042
|
-
var SkyFluidGridModule = /** @class */ (function () {
|
|
2043
|
-
function SkyFluidGridModule() {
|
|
2044
|
-
}
|
|
2045
|
-
return SkyFluidGridModule;
|
|
2046
|
-
}());
|
|
2047
|
-
SkyFluidGridModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyFluidGridModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
2048
|
-
SkyFluidGridModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyFluidGridModule, declarations: [SkyRowComponent, SkyColumnComponent, SkyFluidGridComponent], imports: [i3.CommonModule], exports: [SkyRowComponent, SkyColumnComponent, SkyFluidGridComponent] });
|
|
2049
|
-
SkyFluidGridModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyFluidGridModule, imports: [[i3.CommonModule]] });
|
|
2050
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyFluidGridModule, decorators: [{
|
|
2051
|
-
type: i0.NgModule,
|
|
2052
|
-
args: [{
|
|
2053
|
-
imports: [i3.CommonModule],
|
|
2054
|
-
declarations: [SkyRowComponent, SkyColumnComponent, SkyFluidGridComponent],
|
|
2055
|
-
exports: [SkyRowComponent, SkyColumnComponent, SkyFluidGridComponent],
|
|
2056
|
-
}]
|
|
2057
|
-
}] });
|
|
2058
|
-
|
|
2059
|
-
/*! *****************************************************************************
|
|
2060
|
-
Copyright (c) Microsoft Corporation.
|
|
2061
|
-
|
|
2062
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
2063
|
-
purpose with or without fee is hereby granted.
|
|
2064
|
-
|
|
2065
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
2066
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
2067
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
2068
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
2069
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
2070
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
2071
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
2072
|
-
***************************************************************************** */
|
|
2073
|
-
/* global Reflect, Promise */
|
|
2074
|
-
var extendStatics = function (d, b) {
|
|
2075
|
-
extendStatics = Object.setPrototypeOf ||
|
|
2076
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
2077
|
-
function (d, b) { for (var p in b)
|
|
2078
|
-
if (Object.prototype.hasOwnProperty.call(b, p))
|
|
2079
|
-
d[p] = b[p]; };
|
|
2080
|
-
return extendStatics(d, b);
|
|
2081
|
-
};
|
|
2082
|
-
function __extends(d, b) {
|
|
2083
|
-
if (typeof b !== "function" && b !== null)
|
|
2084
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
2085
|
-
extendStatics(d, b);
|
|
2086
|
-
function __() { this.constructor = d; }
|
|
2087
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
2088
|
-
}
|
|
2089
|
-
var __assign = function () {
|
|
2090
|
-
__assign = Object.assign || function __assign(t) {
|
|
2091
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
2092
|
-
s = arguments[i];
|
|
2093
|
-
for (var p in s)
|
|
2094
|
-
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
2095
|
-
t[p] = s[p];
|
|
2096
|
-
}
|
|
2097
|
-
return t;
|
|
2098
|
-
};
|
|
2099
|
-
return __assign.apply(this, arguments);
|
|
2100
|
-
};
|
|
2101
|
-
function __rest(s, e) {
|
|
2102
|
-
var t = {};
|
|
2103
|
-
for (var p in s)
|
|
2104
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
2105
|
-
t[p] = s[p];
|
|
2106
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
2107
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
2108
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
2109
|
-
t[p[i]] = s[p[i]];
|
|
2110
|
-
}
|
|
2111
|
-
return t;
|
|
2112
|
-
}
|
|
2113
|
-
function __decorate(decorators, target, key, desc) {
|
|
2114
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2115
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
2116
|
-
r = Reflect.decorate(decorators, target, key, desc);
|
|
2117
|
-
else
|
|
2118
|
-
for (var i = decorators.length - 1; i >= 0; i--)
|
|
2119
|
-
if (d = decorators[i])
|
|
2120
|
-
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
2121
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
2122
|
-
}
|
|
2123
|
-
function __param(paramIndex, decorator) {
|
|
2124
|
-
return function (target, key) { decorator(target, key, paramIndex); };
|
|
2125
|
-
}
|
|
2126
|
-
function __metadata(metadataKey, metadataValue) {
|
|
2127
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
2128
|
-
return Reflect.metadata(metadataKey, metadataValue);
|
|
2129
|
-
}
|
|
2130
|
-
function __awaiter(thisArg, _arguments, P, generator) {
|
|
2131
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
2132
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
2133
|
-
function fulfilled(value) { try {
|
|
2134
|
-
step(generator.next(value));
|
|
2135
|
-
}
|
|
2136
|
-
catch (e) {
|
|
2137
|
-
reject(e);
|
|
2138
|
-
} }
|
|
2139
|
-
function rejected(value) { try {
|
|
2140
|
-
step(generator["throw"](value));
|
|
2141
|
-
}
|
|
2142
|
-
catch (e) {
|
|
2143
|
-
reject(e);
|
|
2144
|
-
} }
|
|
2145
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
2146
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
2147
|
-
});
|
|
2148
|
-
}
|
|
2149
|
-
function __generator(thisArg, body) {
|
|
2150
|
-
var _ = { label: 0, sent: function () { if (t[0] & 1)
|
|
2151
|
-
throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
2152
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
|
|
2153
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
2154
|
-
function step(op) {
|
|
2155
|
-
if (f)
|
|
2156
|
-
throw new TypeError("Generator is already executing.");
|
|
2157
|
-
while (_)
|
|
2158
|
-
try {
|
|
2159
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
|
|
2160
|
-
return t;
|
|
2161
|
-
if (y = 0, t)
|
|
2162
|
-
op = [op[0] & 2, t.value];
|
|
2163
|
-
switch (op[0]) {
|
|
2164
|
-
case 0:
|
|
2165
|
-
case 1:
|
|
2166
|
-
t = op;
|
|
2167
|
-
break;
|
|
2168
|
-
case 4:
|
|
2169
|
-
_.label++;
|
|
2170
|
-
return { value: op[1], done: false };
|
|
2171
|
-
case 5:
|
|
2172
|
-
_.label++;
|
|
2173
|
-
y = op[1];
|
|
2174
|
-
op = [0];
|
|
2175
|
-
continue;
|
|
2176
|
-
case 7:
|
|
2177
|
-
op = _.ops.pop();
|
|
2178
|
-
_.trys.pop();
|
|
2179
|
-
continue;
|
|
2180
|
-
default:
|
|
2181
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
2182
|
-
_ = 0;
|
|
2183
|
-
continue;
|
|
2184
|
-
}
|
|
2185
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
|
|
2186
|
-
_.label = op[1];
|
|
2187
|
-
break;
|
|
2188
|
-
}
|
|
2189
|
-
if (op[0] === 6 && _.label < t[1]) {
|
|
2190
|
-
_.label = t[1];
|
|
2191
|
-
t = op;
|
|
2192
|
-
break;
|
|
2193
|
-
}
|
|
2194
|
-
if (t && _.label < t[2]) {
|
|
2195
|
-
_.label = t[2];
|
|
2196
|
-
_.ops.push(op);
|
|
2197
|
-
break;
|
|
2198
|
-
}
|
|
2199
|
-
if (t[2])
|
|
2200
|
-
_.ops.pop();
|
|
2201
|
-
_.trys.pop();
|
|
2202
|
-
continue;
|
|
2203
|
-
}
|
|
2204
|
-
op = body.call(thisArg, _);
|
|
2205
|
-
}
|
|
2206
|
-
catch (e) {
|
|
2207
|
-
op = [6, e];
|
|
2208
|
-
y = 0;
|
|
2209
|
-
}
|
|
2210
|
-
finally {
|
|
2211
|
-
f = t = 0;
|
|
2212
|
-
}
|
|
2213
|
-
if (op[0] & 5)
|
|
2214
|
-
throw op[1];
|
|
2215
|
-
return { value: op[0] ? op[1] : void 0, done: true };
|
|
2216
|
-
}
|
|
2217
|
-
}
|
|
2218
|
-
var __createBinding = Object.create ? (function (o, m, k, k2) {
|
|
2219
|
-
if (k2 === undefined)
|
|
2220
|
-
k2 = k;
|
|
2221
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
|
|
2222
|
-
}) : (function (o, m, k, k2) {
|
|
2223
|
-
if (k2 === undefined)
|
|
2224
|
-
k2 = k;
|
|
2225
|
-
o[k2] = m[k];
|
|
2226
|
-
});
|
|
2227
|
-
function __exportStar(m, o) {
|
|
2228
|
-
for (var p in m)
|
|
2229
|
-
if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
|
|
2230
|
-
__createBinding(o, m, p);
|
|
2231
|
-
}
|
|
2232
|
-
function __values(o) {
|
|
2233
|
-
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
2234
|
-
if (m)
|
|
2235
|
-
return m.call(o);
|
|
2236
|
-
if (o && typeof o.length === "number")
|
|
2237
|
-
return {
|
|
2238
|
-
next: function () {
|
|
2239
|
-
if (o && i >= o.length)
|
|
2240
|
-
o = void 0;
|
|
2241
|
-
return { value: o && o[i++], done: !o };
|
|
2242
|
-
}
|
|
2243
|
-
};
|
|
2244
|
-
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
2245
|
-
}
|
|
2246
|
-
function __read(o, n) {
|
|
2247
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
2248
|
-
if (!m)
|
|
2249
|
-
return o;
|
|
2250
|
-
var i = m.call(o), r, ar = [], e;
|
|
2251
|
-
try {
|
|
2252
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
|
|
2253
|
-
ar.push(r.value);
|
|
2254
|
-
}
|
|
2255
|
-
catch (error) {
|
|
2256
|
-
e = { error: error };
|
|
2257
|
-
}
|
|
2258
|
-
finally {
|
|
2259
|
-
try {
|
|
2260
|
-
if (r && !r.done && (m = i["return"]))
|
|
2261
|
-
m.call(i);
|
|
2262
|
-
}
|
|
2263
|
-
finally {
|
|
2264
|
-
if (e)
|
|
2265
|
-
throw e.error;
|
|
2266
|
-
}
|
|
2267
|
-
}
|
|
2268
|
-
return ar;
|
|
2269
|
-
}
|
|
2270
|
-
/** @deprecated */
|
|
2271
|
-
function __spread() {
|
|
2272
|
-
for (var ar = [], i = 0; i < arguments.length; i++)
|
|
2273
|
-
ar = ar.concat(__read(arguments[i]));
|
|
2274
|
-
return ar;
|
|
2275
|
-
}
|
|
2276
|
-
/** @deprecated */
|
|
2277
|
-
function __spreadArrays() {
|
|
2278
|
-
for (var s = 0, i = 0, il = arguments.length; i < il; i++)
|
|
2279
|
-
s += arguments[i].length;
|
|
2280
|
-
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
2281
|
-
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
2282
|
-
r[k] = a[j];
|
|
2283
|
-
return r;
|
|
2284
|
-
}
|
|
2285
|
-
function __spreadArray(to, from, pack) {
|
|
2286
|
-
if (pack || arguments.length === 2)
|
|
2287
|
-
for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
2288
|
-
if (ar || !(i in from)) {
|
|
2289
|
-
if (!ar)
|
|
2290
|
-
ar = Array.prototype.slice.call(from, 0, i);
|
|
2291
|
-
ar[i] = from[i];
|
|
2292
|
-
}
|
|
2293
|
-
}
|
|
2294
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
2295
|
-
}
|
|
2296
|
-
function __await(v) {
|
|
2297
|
-
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
2298
|
-
}
|
|
2299
|
-
function __asyncGenerator(thisArg, _arguments, generator) {
|
|
2300
|
-
if (!Symbol.asyncIterator)
|
|
2301
|
-
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
2302
|
-
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
2303
|
-
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
2304
|
-
function verb(n) { if (g[n])
|
|
2305
|
-
i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
|
2306
|
-
function resume(n, v) { try {
|
|
2307
|
-
step(g[n](v));
|
|
2308
|
-
}
|
|
2309
|
-
catch (e) {
|
|
2310
|
-
settle(q[0][3], e);
|
|
2311
|
-
} }
|
|
2312
|
-
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
2313
|
-
function fulfill(value) { resume("next", value); }
|
|
2314
|
-
function reject(value) { resume("throw", value); }
|
|
2315
|
-
function settle(f, v) { if (f(v), q.shift(), q.length)
|
|
2316
|
-
resume(q[0][0], q[0][1]); }
|
|
2317
|
-
}
|
|
2318
|
-
function __asyncDelegator(o) {
|
|
2319
|
-
var i, p;
|
|
2320
|
-
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
|
2321
|
-
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
|
|
2322
|
-
}
|
|
2323
|
-
function __asyncValues(o) {
|
|
2324
|
-
if (!Symbol.asyncIterator)
|
|
2325
|
-
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
2326
|
-
var m = o[Symbol.asyncIterator], i;
|
|
2327
|
-
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
|
|
2328
|
-
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
|
|
2329
|
-
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
|
|
2330
|
-
}
|
|
2331
|
-
function __makeTemplateObject(cooked, raw) {
|
|
2332
|
-
if (Object.defineProperty) {
|
|
2333
|
-
Object.defineProperty(cooked, "raw", { value: raw });
|
|
2334
|
-
}
|
|
2335
|
-
else {
|
|
2336
|
-
cooked.raw = raw;
|
|
2337
|
-
}
|
|
2338
|
-
return cooked;
|
|
2339
|
-
}
|
|
2340
|
-
;
|
|
2341
|
-
var __setModuleDefault = Object.create ? (function (o, v) {
|
|
2342
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
2343
|
-
}) : function (o, v) {
|
|
2344
|
-
o["default"] = v;
|
|
2345
|
-
};
|
|
2346
|
-
function __importStar(mod) {
|
|
2347
|
-
if (mod && mod.__esModule)
|
|
2348
|
-
return mod;
|
|
2349
|
-
var result = {};
|
|
2350
|
-
if (mod != null)
|
|
2351
|
-
for (var k in mod)
|
|
2352
|
-
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
|
2353
|
-
__createBinding(result, mod, k);
|
|
2354
|
-
__setModuleDefault(result, mod);
|
|
2355
|
-
return result;
|
|
2356
|
-
}
|
|
2357
|
-
function __importDefault(mod) {
|
|
2358
|
-
return (mod && mod.__esModule) ? mod : { default: mod };
|
|
2359
|
-
}
|
|
2360
|
-
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
2361
|
-
if (kind === "a" && !f)
|
|
2362
|
-
throw new TypeError("Private accessor was defined without a getter");
|
|
2363
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
2364
|
-
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
2365
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
2366
|
-
}
|
|
2367
|
-
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
2368
|
-
if (kind === "m")
|
|
2369
|
-
throw new TypeError("Private method is not writable");
|
|
2370
|
-
if (kind === "a" && !f)
|
|
2371
|
-
throw new TypeError("Private accessor was defined without a setter");
|
|
2372
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
2373
|
-
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
2374
|
-
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
2375
|
-
}
|
|
2376
|
-
|
|
2377
|
-
var tokenRegex = /(\{\d+\})/;
|
|
2378
|
-
var SkyFormatComponent = /** @class */ (function () {
|
|
2379
|
-
function SkyFormatComponent() {
|
|
2380
|
-
}
|
|
2381
|
-
Object.defineProperty(SkyFormatComponent.prototype, "text", {
|
|
2382
|
-
get: function () {
|
|
2383
|
-
return this._text;
|
|
2384
|
-
},
|
|
2385
|
-
/**
|
|
2386
|
-
* The tokenized string that represents the template. Tokens use the `{n}` notation
|
|
2387
|
-
* where `n` is the ordinal of the item to replace the token.
|
|
2388
|
-
*/
|
|
2389
|
-
set: function (value) {
|
|
2390
|
-
this._text = value;
|
|
2391
|
-
this.updateItemsForDisplay();
|
|
2392
|
-
},
|
|
2393
|
-
enumerable: false,
|
|
2394
|
-
configurable: true
|
|
2395
|
-
});
|
|
2396
|
-
Object.defineProperty(SkyFormatComponent.prototype, "args", {
|
|
2397
|
-
get: function () {
|
|
2398
|
-
return this._args;
|
|
2399
|
-
},
|
|
2400
|
-
/**
|
|
2401
|
-
* An array of `TemplateRef` objects to be placed in the template, where the `nth`
|
|
2402
|
-
* item is placed at the `{n}` location in the template.
|
|
2403
|
-
*/
|
|
2404
|
-
set: function (value) {
|
|
2405
|
-
this._args = value;
|
|
2406
|
-
this.updateItemsForDisplay();
|
|
2407
|
-
},
|
|
2408
|
-
enumerable: false,
|
|
2409
|
-
configurable: true
|
|
2410
|
-
});
|
|
2411
|
-
SkyFormatComponent.prototype.updateItemsForDisplay = function () {
|
|
2412
|
-
var e_1, _a;
|
|
2413
|
-
this.itemsForDisplay = [];
|
|
2414
|
-
if (this.text && this.args) {
|
|
2415
|
-
var textParts = this.text.split(tokenRegex);
|
|
2416
|
-
try {
|
|
2417
|
-
for (var textParts_1 = __values(textParts), textParts_1_1 = textParts_1.next(); !textParts_1_1.done; textParts_1_1 = textParts_1.next()) {
|
|
2418
|
-
var textPart = textParts_1_1.value;
|
|
2419
|
-
// Disregard empty strings.
|
|
2420
|
-
if (textPart) {
|
|
2421
|
-
var item = {};
|
|
2422
|
-
if (tokenRegex.test(textPart)) {
|
|
2423
|
-
var valueIndex = +textPart.substring(1, textPart.length - 1);
|
|
2424
|
-
item.templateRef = this.args[valueIndex];
|
|
2425
|
-
}
|
|
2426
|
-
else {
|
|
2427
|
-
item.text = textPart;
|
|
2428
|
-
}
|
|
2429
|
-
this.itemsForDisplay.push(item);
|
|
2430
|
-
}
|
|
2431
|
-
}
|
|
2432
|
-
}
|
|
2433
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
2434
|
-
finally {
|
|
2435
|
-
try {
|
|
2436
|
-
if (textParts_1_1 && !textParts_1_1.done && (_a = textParts_1.return)) _a.call(textParts_1);
|
|
2437
|
-
}
|
|
2438
|
-
finally { if (e_1) throw e_1.error; }
|
|
2439
|
-
}
|
|
2440
|
-
}
|
|
2441
|
-
};
|
|
2442
|
-
return SkyFormatComponent;
|
|
2443
|
-
}());
|
|
2444
|
-
SkyFormatComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyFormatComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
2445
|
-
SkyFormatComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyFormatComponent, selector: "sky-format", inputs: { text: "text", args: "args" }, ngImport: i0__namespace, template: "<ng-container *ngFor=\"let item of itemsForDisplay\">\n <!--\n The following ng-container must be on one line so no extra whitespace is introduced.\n -->\n <ng-container *ngIf=\"item.text; else item.templateRef\">{{\n item.text\n }}</ng-container>\n</ng-container>\n", directives: [{ type: i3__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i3__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
|
|
2446
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyFormatComponent, decorators: [{
|
|
2447
|
-
type: i0.Component,
|
|
2448
|
-
args: [{
|
|
2449
|
-
selector: 'sky-format',
|
|
2450
|
-
template: "<ng-container *ngFor=\"let item of itemsForDisplay\">\n <!--\n The following ng-container must be on one line so no extra whitespace is introduced.\n -->\n <ng-container *ngIf=\"item.text; else item.templateRef\">{{\n item.text\n }}</ng-container>\n</ng-container>\n",
|
|
2451
|
-
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
2452
|
-
}]
|
|
2453
|
-
}], propDecorators: { text: [{
|
|
2454
|
-
type: i0.Input
|
|
2455
|
-
}], args: [{
|
|
2456
|
-
type: i0.Input
|
|
2457
|
-
}] } });
|
|
2458
|
-
|
|
2459
|
-
var SkyFormatModule = /** @class */ (function () {
|
|
2460
|
-
function SkyFormatModule() {
|
|
2461
|
-
}
|
|
2462
|
-
return SkyFormatModule;
|
|
2463
|
-
}());
|
|
2464
|
-
SkyFormatModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyFormatModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
2465
|
-
SkyFormatModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyFormatModule, declarations: [SkyFormatComponent], imports: [i3.CommonModule], exports: [SkyFormatComponent] });
|
|
2466
|
-
SkyFormatModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyFormatModule, imports: [[i3.CommonModule]] });
|
|
2467
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyFormatModule, decorators: [{
|
|
2468
|
-
type: i0.NgModule,
|
|
2469
|
-
args: [{
|
|
2470
|
-
declarations: [SkyFormatComponent],
|
|
2471
|
-
imports: [i3.CommonModule],
|
|
2472
|
-
exports: [SkyFormatComponent],
|
|
2473
|
-
}]
|
|
2474
|
-
}] });
|
|
2475
|
-
|
|
2476
|
-
/**
|
|
2477
|
-
* @internal
|
|
2478
|
-
*/
|
|
2479
|
-
var SkyPageThemeAdapterService = /** @class */ (function () {
|
|
2480
|
-
function SkyPageThemeAdapterService() {
|
|
2481
|
-
}
|
|
2482
|
-
SkyPageThemeAdapterService.prototype.addTheme = function () {
|
|
2483
|
-
if (!this.styleEl) {
|
|
2484
|
-
this.styleEl = document.createElement('style');
|
|
2485
|
-
this.styleEl.appendChild(document.createTextNode('body { background-color: #fff; }'));
|
|
2486
|
-
document.head.appendChild(this.styleEl);
|
|
2487
|
-
}
|
|
2488
|
-
};
|
|
2489
|
-
SkyPageThemeAdapterService.prototype.removeTheme = function () {
|
|
2490
|
-
if (this.styleEl) {
|
|
2491
|
-
document.head.removeChild(this.styleEl);
|
|
2492
|
-
this.styleEl = undefined;
|
|
2493
|
-
}
|
|
2494
|
-
};
|
|
2495
|
-
return SkyPageThemeAdapterService;
|
|
2496
|
-
}());
|
|
2497
|
-
SkyPageThemeAdapterService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyPageThemeAdapterService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
2498
|
-
SkyPageThemeAdapterService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyPageThemeAdapterService });
|
|
2499
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyPageThemeAdapterService, decorators: [{
|
|
2500
|
-
type: i0.Injectable
|
|
2501
|
-
}] });
|
|
2502
|
-
|
|
2503
|
-
/**
|
|
2504
|
-
* Resets the SPA's background to white and adds the `sky-theme-default` CSS class to the host
|
|
2505
|
-
* element to let consumers override CSS styling. Consumers can override any element by writing
|
|
2506
|
-
* CSS selectors like this: `:host-context(.sky-theme-default) .my-class {}`.
|
|
2507
|
-
*/
|
|
2508
|
-
var SkyPageComponent = /** @class */ (function () {
|
|
2509
|
-
function SkyPageComponent(themeAdapter) {
|
|
2510
|
-
this.themeAdapter = themeAdapter;
|
|
2511
|
-
}
|
|
2512
|
-
SkyPageComponent.prototype.ngOnInit = function () {
|
|
2513
|
-
this.themeAdapter.addTheme();
|
|
2514
|
-
};
|
|
2515
|
-
SkyPageComponent.prototype.ngOnDestroy = function () {
|
|
2516
|
-
this.themeAdapter.removeTheme();
|
|
2517
|
-
};
|
|
2518
|
-
return SkyPageComponent;
|
|
2519
|
-
}());
|
|
2520
|
-
SkyPageComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyPageComponent, deps: [{ token: SkyPageThemeAdapterService }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
2521
|
-
SkyPageComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyPageComponent, selector: "sky-page", providers: [SkyPageThemeAdapterService], ngImport: i0__namespace, template: "<div class=\"sky-theme-default\">\n <ng-content></ng-content>\n</div>\n" });
|
|
2522
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyPageComponent, decorators: [{
|
|
2523
|
-
type: i0.Component,
|
|
2524
|
-
args: [{
|
|
2525
|
-
selector: 'sky-page',
|
|
2526
|
-
template: "<div class=\"sky-theme-default\">\n <ng-content></ng-content>\n</div>\n",
|
|
2527
|
-
providers: [SkyPageThemeAdapterService],
|
|
2528
|
-
}]
|
|
2529
|
-
}], ctorParameters: function () { return [{ type: SkyPageThemeAdapterService }]; } });
|
|
2530
|
-
|
|
2531
|
-
var SkyPageModule = /** @class */ (function () {
|
|
2532
|
-
function SkyPageModule() {
|
|
2533
|
-
}
|
|
2534
|
-
return SkyPageModule;
|
|
2535
|
-
}());
|
|
2536
|
-
SkyPageModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyPageModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
2537
|
-
SkyPageModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyPageModule, declarations: [SkyPageComponent], exports: [SkyPageComponent] });
|
|
2538
|
-
SkyPageModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyPageModule });
|
|
2539
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyPageModule, decorators: [{
|
|
2540
|
-
type: i0.NgModule,
|
|
2541
|
-
args: [{
|
|
2542
|
-
declarations: [SkyPageComponent],
|
|
2543
|
-
exports: [SkyPageComponent],
|
|
2544
|
-
}]
|
|
2545
|
-
}] });
|
|
2546
|
-
|
|
2547
|
-
/**
|
|
2548
|
-
* Displays messages that require immediate attention as [alerts](https://developer.blackbaud.com/skyux/components/alert) within
|
|
2549
|
-
* the page summary.
|
|
2550
|
-
*/
|
|
2551
|
-
/* istanbul ignore next */
|
|
2552
|
-
/* Code coverage having problems with no statements in classes */
|
|
2553
|
-
var SkyPageSummaryAlertComponent = /** @class */ (function () {
|
|
2554
|
-
function SkyPageSummaryAlertComponent() {
|
|
2555
|
-
}
|
|
2556
|
-
return SkyPageSummaryAlertComponent;
|
|
2557
|
-
}());
|
|
2558
|
-
SkyPageSummaryAlertComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyPageSummaryAlertComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
2559
|
-
SkyPageSummaryAlertComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyPageSummaryAlertComponent, selector: "sky-page-summary-alert", ngImport: i0__namespace, template: "<ng-content></ng-content>\n", styles: ["::ng-deep .sky-alert{margin-top:0;margin-bottom:20px;line-height:initial}\n"] });
|
|
2560
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyPageSummaryAlertComponent, decorators: [{
|
|
2561
|
-
type: i0.Component,
|
|
2562
|
-
args: [{
|
|
2563
|
-
selector: 'sky-page-summary-alert',
|
|
2564
|
-
template: "<ng-content></ng-content>\n",
|
|
2565
|
-
styles: ["::ng-deep .sky-alert{margin-top:0;margin-bottom:20px;line-height:initial}\n"],
|
|
2566
|
-
}]
|
|
2567
|
-
}] });
|
|
2568
|
-
|
|
2569
|
-
/**
|
|
2570
|
-
* Displays content in the arbitrary section of the page summary.
|
|
2571
|
-
*/
|
|
2572
|
-
/* istanbul ignore next */
|
|
2573
|
-
/* Code coverage having problems with no statements in classes */
|
|
2574
|
-
var SkyPageSummaryContentComponent = /** @class */ (function () {
|
|
2575
|
-
function SkyPageSummaryContentComponent() {
|
|
2576
|
-
}
|
|
2577
|
-
return SkyPageSummaryContentComponent;
|
|
2578
|
-
}());
|
|
2579
|
-
SkyPageSummaryContentComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyPageSummaryContentComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
2580
|
-
SkyPageSummaryContentComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyPageSummaryContentComponent, selector: "sky-page-summary-content", ngImport: i0__namespace, template: "<div class=\"sky-page-summary-content\">\n <ng-content></ng-content>\n</div>\n", styles: [".sky-page-summary-content{margin-top:20px}\n"] });
|
|
2581
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyPageSummaryContentComponent, decorators: [{
|
|
2582
|
-
type: i0.Component,
|
|
2583
|
-
args: [{
|
|
2584
|
-
selector: 'sky-page-summary-content',
|
|
2585
|
-
template: "<div class=\"sky-page-summary-content\">\n <ng-content></ng-content>\n</div>\n",
|
|
2586
|
-
styles: [".sky-page-summary-content{margin-top:20px}\n"],
|
|
2587
|
-
}]
|
|
2588
|
-
}] });
|
|
2589
|
-
|
|
2590
|
-
/**
|
|
2591
|
-
* Displays an image in the page summary to identify a record
|
|
2592
|
-
* or help users complete a core task.
|
|
2593
|
-
*/
|
|
2594
|
-
/* istanbul ignore next */
|
|
2595
|
-
/* Code coverage having problems with no statements in classes */
|
|
2596
|
-
var SkyPageSummaryImageComponent = /** @class */ (function () {
|
|
2597
|
-
function SkyPageSummaryImageComponent() {
|
|
2598
|
-
}
|
|
2599
|
-
return SkyPageSummaryImageComponent;
|
|
2600
|
-
}());
|
|
2601
|
-
SkyPageSummaryImageComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyPageSummaryImageComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
2602
|
-
SkyPageSummaryImageComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyPageSummaryImageComponent, selector: "sky-page-summary-image", ngImport: i0__namespace, template: "<div class=\"sky-page-summary-image\">\n <ng-content></ng-content>\n</div>\n", styles: [":host .sky-page-summary-image{width:100px;margin-left:auto;margin-right:auto;margin-bottom:10px}:host-context(.sky-responsive-container-xs) .sky-page-summary-image,:host-context(.sky-responsive-container-sm) .sky-page-summary-image,:host-context(.sky-responsive-container-md) .sky-page-summary-image,:host-context(.sky-responsive-container-lg) .sky-page-summary-image{width:100px;margin-left:auto;margin-right:auto;margin-bottom:10px}@media (min-width: 768px){:host .sky-page-summary-image{width:120px;flex:0 0 120px;margin:initial}}:host-context(.sky-responsive-container-sm) .sky-page-summary-image,:host-context(.sky-responsive-container-md) .sky-page-summary-image,:host-context(.sky-responsive-container-lg) .sky-page-summary-image{width:120px;flex:0 0 120px;margin:initial}\n"] });
|
|
2603
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyPageSummaryImageComponent, decorators: [{
|
|
2604
|
-
type: i0.Component,
|
|
2605
|
-
args: [{
|
|
2606
|
-
selector: 'sky-page-summary-image',
|
|
2607
|
-
template: "<div class=\"sky-page-summary-image\">\n <ng-content></ng-content>\n</div>\n",
|
|
2608
|
-
styles: [":host .sky-page-summary-image{width:100px;margin-left:auto;margin-right:auto;margin-bottom:10px}:host-context(.sky-responsive-container-xs) .sky-page-summary-image,:host-context(.sky-responsive-container-sm) .sky-page-summary-image,:host-context(.sky-responsive-container-md) .sky-page-summary-image,:host-context(.sky-responsive-container-lg) .sky-page-summary-image{width:100px;margin-left:auto;margin-right:auto;margin-bottom:10px}@media (min-width: 768px){:host .sky-page-summary-image{width:120px;flex:0 0 120px;margin:initial}}:host-context(.sky-responsive-container-sm) .sky-page-summary-image,:host-context(.sky-responsive-container-md) .sky-page-summary-image,:host-context(.sky-responsive-container-lg) .sky-page-summary-image{width:120px;flex:0 0 120px;margin:initial}\n"],
|
|
2609
|
-
}]
|
|
2610
|
-
}] });
|
|
2611
|
-
|
|
2612
|
-
/**
|
|
2613
|
-
* Highlights important information about a page in the key information section of the
|
|
2614
|
-
* page summary.
|
|
2615
|
-
*/
|
|
2616
|
-
var SkyPageSummaryKeyInfoComponent = /** @class */ (function () {
|
|
2617
|
-
function SkyPageSummaryKeyInfoComponent() {
|
|
2618
|
-
}
|
|
2619
|
-
return SkyPageSummaryKeyInfoComponent;
|
|
2620
|
-
}());
|
|
2621
|
-
SkyPageSummaryKeyInfoComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyPageSummaryKeyInfoComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
2622
|
-
SkyPageSummaryKeyInfoComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyPageSummaryKeyInfoComponent, selector: "sky-page-summary-key-info", ngImport: i0__namespace, template: "<div class=\"sky-page-summary-key-info\">\n <ng-content></ng-content>\n</div>\n", styles: [":host .sky-page-summary-key-info{margin-top:20px}:host-context(.sky-responsive-container-xs) .sky-page-summary-key-info,:host-context(.sky-responsive-container-sm) .sky-page-summary-key-info,:host-context(.sky-responsive-container-md) .sky-page-summary-key-info,:host-context(.sky-responsive-container-lg) .sky-page-summary-key-info{margin-top:20px}@media (min-width: 768px){:host .sky-page-summary-key-info{margin-top:initial}}:host-context(.sky-responsive-container-sm) .sky-page-summary-key-info,:host-context(.sky-responsive-container-md) .sky-page-summary-key-info,:host-context(.sky-responsive-container-lg) .sky-page-summary-key-info{margin-top:initial}.sky-page-summary-key-info ::ng-deep .sky-key-info{display:block}\n"] });
|
|
2623
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyPageSummaryKeyInfoComponent, decorators: [{
|
|
2624
|
-
type: i0.Component,
|
|
2625
|
-
args: [{
|
|
2626
|
-
selector: 'sky-page-summary-key-info',
|
|
2627
|
-
template: "<div class=\"sky-page-summary-key-info\">\n <ng-content></ng-content>\n</div>\n",
|
|
2628
|
-
styles: [":host .sky-page-summary-key-info{margin-top:20px}:host-context(.sky-responsive-container-xs) .sky-page-summary-key-info,:host-context(.sky-responsive-container-sm) .sky-page-summary-key-info,:host-context(.sky-responsive-container-md) .sky-page-summary-key-info,:host-context(.sky-responsive-container-lg) .sky-page-summary-key-info{margin-top:20px}@media (min-width: 768px){:host .sky-page-summary-key-info{margin-top:initial}}:host-context(.sky-responsive-container-sm) .sky-page-summary-key-info,:host-context(.sky-responsive-container-md) .sky-page-summary-key-info,:host-context(.sky-responsive-container-lg) .sky-page-summary-key-info{margin-top:initial}.sky-page-summary-key-info ::ng-deep .sky-key-info{display:block}\n"],
|
|
2629
|
-
}]
|
|
2630
|
-
}] });
|
|
2631
|
-
|
|
2632
|
-
/**
|
|
2633
|
-
* Displays [labels](https://developer.blackbaud.com/skyux/components/label)
|
|
2634
|
-
* to highlight important status information about a page's content.
|
|
2635
|
-
*/
|
|
2636
|
-
/* istanbul ignore next */
|
|
2637
|
-
/* Code coverage having problems with no statements in classes */
|
|
2638
|
-
var SkyPageSummaryStatusComponent = /** @class */ (function () {
|
|
2639
|
-
function SkyPageSummaryStatusComponent() {
|
|
2640
|
-
}
|
|
2641
|
-
return SkyPageSummaryStatusComponent;
|
|
2642
|
-
}());
|
|
2643
|
-
SkyPageSummaryStatusComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyPageSummaryStatusComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
2644
|
-
SkyPageSummaryStatusComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyPageSummaryStatusComponent, selector: "sky-page-summary-status", ngImport: i0__namespace, template: "<div class=\"sky-page-summary-status\">\n <ng-content></ng-content>\n</div>\n", styles: [".sky-page-summary-status{margin-top:10px}.sky-page-summary-status ::ng-deep .sky-label{margin-right:5px}\n"] });
|
|
2645
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyPageSummaryStatusComponent, decorators: [{
|
|
2646
|
-
type: i0.Component,
|
|
2647
|
-
args: [{
|
|
2648
|
-
selector: 'sky-page-summary-status',
|
|
2649
|
-
template: "<div class=\"sky-page-summary-status\">\n <ng-content></ng-content>\n</div>\n",
|
|
2650
|
-
styles: [".sky-page-summary-status{margin-top:10px}.sky-page-summary-status ::ng-deep .sky-label{margin-right:5px}\n"],
|
|
2651
|
-
}]
|
|
2652
|
-
}] });
|
|
2653
|
-
|
|
2654
|
-
/**
|
|
2655
|
-
* Specifies a subtitle to identify the page content.
|
|
2656
|
-
*/
|
|
2657
|
-
/* istanbul ignore next */
|
|
2658
|
-
/* Code coverage having problems with no statements in classes */
|
|
2659
|
-
var SkyPageSummarySubtitleComponent = /** @class */ (function () {
|
|
2660
|
-
function SkyPageSummarySubtitleComponent() {
|
|
2661
|
-
}
|
|
2662
|
-
return SkyPageSummarySubtitleComponent;
|
|
2663
|
-
}());
|
|
2664
|
-
SkyPageSummarySubtitleComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyPageSummarySubtitleComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
2665
|
-
SkyPageSummarySubtitleComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyPageSummarySubtitleComponent, selector: "sky-page-summary-subtitle", ngImport: i0__namespace, template: "<p class=\"sky-page-summary-subtitle sky-emphasized\">\n <ng-content></ng-content>\n</p>\n", styles: [".sky-page-summary-subtitle{margin-top:0;margin-bottom:10px;line-height:1.1}\n"] });
|
|
2666
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyPageSummarySubtitleComponent, decorators: [{
|
|
2667
|
-
type: i0.Component,
|
|
2668
|
-
args: [{
|
|
2669
|
-
selector: 'sky-page-summary-subtitle',
|
|
2670
|
-
template: "<p class=\"sky-page-summary-subtitle sky-emphasized\">\n <ng-content></ng-content>\n</p>\n",
|
|
2671
|
-
styles: [".sky-page-summary-subtitle{margin-top:0;margin-bottom:10px;line-height:1.1}\n"],
|
|
2672
|
-
}]
|
|
2673
|
-
}] });
|
|
2674
|
-
|
|
2675
|
-
/**
|
|
2676
|
-
* Specifies a title to identify the page content.
|
|
2677
|
-
*/
|
|
2678
|
-
/* istanbul ignore next */
|
|
2679
|
-
/* Code coverage having problems with no statements in classes */
|
|
2680
|
-
var SkyPageSummaryTitleComponent = /** @class */ (function () {
|
|
2681
|
-
function SkyPageSummaryTitleComponent() {
|
|
2682
|
-
}
|
|
2683
|
-
return SkyPageSummaryTitleComponent;
|
|
2684
|
-
}());
|
|
2685
|
-
SkyPageSummaryTitleComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyPageSummaryTitleComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
2686
|
-
SkyPageSummaryTitleComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyPageSummaryTitleComponent, selector: "sky-page-summary-title", ngImport: i0__namespace, template: "<h1 class=\"sky-page-summary-title sky-page-heading\">\n <ng-content></ng-content>\n</h1>\n", styles: [".sky-page-summary-title{margin-top:0;margin-bottom:5px}\n"] });
|
|
2687
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyPageSummaryTitleComponent, decorators: [{
|
|
2688
|
-
type: i0.Component,
|
|
2689
|
-
args: [{
|
|
2690
|
-
selector: 'sky-page-summary-title',
|
|
2691
|
-
template: "<h1 class=\"sky-page-summary-title sky-page-heading\">\n <ng-content></ng-content>\n</h1>\n",
|
|
2692
|
-
styles: [".sky-page-summary-title{margin-top:0;margin-bottom:5px}\n"],
|
|
2693
|
-
}]
|
|
2694
|
-
}] });
|
|
2695
|
-
|
|
2696
|
-
/**
|
|
2697
|
-
* @internal
|
|
2698
|
-
*/
|
|
2699
|
-
var SkyPageSummaryAdapterService = /** @class */ (function () {
|
|
2700
|
-
function SkyPageSummaryAdapterService() {
|
|
2701
|
-
}
|
|
2702
|
-
SkyPageSummaryAdapterService.prototype.updateKeyInfoLocation = function (elRef, isXS) {
|
|
2703
|
-
var el = elRef.nativeElement;
|
|
2704
|
-
var keyInfoContainerEl = el.querySelector('.sky-page-summary-key-info-container');
|
|
2705
|
-
if (isXS) {
|
|
2706
|
-
el.querySelector('.sky-page-summary-key-info-xs').appendChild(keyInfoContainerEl);
|
|
2707
|
-
}
|
|
2708
|
-
else {
|
|
2709
|
-
el.querySelector('.sky-page-summary-key-info-sm').appendChild(keyInfoContainerEl);
|
|
2710
|
-
}
|
|
2711
|
-
};
|
|
2712
|
-
return SkyPageSummaryAdapterService;
|
|
2713
|
-
}());
|
|
2714
|
-
SkyPageSummaryAdapterService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyPageSummaryAdapterService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
2715
|
-
SkyPageSummaryAdapterService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyPageSummaryAdapterService });
|
|
2716
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyPageSummaryAdapterService, decorators: [{
|
|
2717
|
-
type: i0.Injectable
|
|
2718
|
-
}] });
|
|
2719
|
-
|
|
2720
|
-
/**
|
|
2721
|
-
* Specifies the components to display in the page summary.
|
|
2722
|
-
*/
|
|
2723
|
-
var SkyPageSummaryComponent = /** @class */ (function () {
|
|
2724
|
-
function SkyPageSummaryComponent(elRef, adapter, mediaQueryService) {
|
|
2725
|
-
this.elRef = elRef;
|
|
2726
|
-
this.adapter = adapter;
|
|
2727
|
-
this.mediaQueryService = mediaQueryService;
|
|
2728
|
-
}
|
|
2729
|
-
Object.defineProperty(SkyPageSummaryComponent.prototype, "hasKeyInfo", {
|
|
2730
|
-
get: function () {
|
|
2731
|
-
return this.keyInfoComponents.length > 0;
|
|
2732
|
-
},
|
|
2733
|
-
enumerable: false,
|
|
2734
|
-
configurable: true
|
|
2735
|
-
});
|
|
2736
|
-
SkyPageSummaryComponent.prototype.ngAfterViewInit = function () {
|
|
2737
|
-
var _this = this;
|
|
2738
|
-
this.breakpointSubscription = this.mediaQueryService.subscribe(function (args) {
|
|
2739
|
-
_this.adapter.updateKeyInfoLocation(_this.elRef, args === i1.SkyMediaBreakpoints.xs);
|
|
2740
|
-
});
|
|
2741
|
-
};
|
|
2742
|
-
SkyPageSummaryComponent.prototype.ngOnDestroy = function () {
|
|
2743
|
-
/* istanbul ignore else */
|
|
2744
|
-
/* sanity check */
|
|
2745
|
-
if (this.breakpointSubscription) {
|
|
2746
|
-
this.breakpointSubscription.unsubscribe();
|
|
2747
|
-
}
|
|
2748
|
-
};
|
|
2749
|
-
return SkyPageSummaryComponent;
|
|
2750
|
-
}());
|
|
2751
|
-
SkyPageSummaryComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyPageSummaryComponent, deps: [{ token: i0__namespace.ElementRef }, { token: SkyPageSummaryAdapterService }, { token: i1__namespace.SkyMediaQueryService }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
2752
|
-
SkyPageSummaryComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyPageSummaryComponent, selector: "sky-page-summary", providers: [SkyPageSummaryAdapterService], queries: [{ propertyName: "keyInfoComponents", predicate: SkyPageSummaryKeyInfoComponent, read: SkyPageSummaryKeyInfoComponent }], ngImport: i0__namespace, template: "<div\n class=\"sky-page-summary\"\n [ngClass]=\"{ 'sky-page-summary-with-key-info': hasKeyInfo }\"\n>\n <ng-content select=\"sky-page-summary-alert\"></ng-content>\n <div class=\"sky-page-summary-row\">\n <div class=\"sky-page-summary-left\">\n <ng-content select=\"sky-page-summary-image\"></ng-content>\n <div class=\"sky-page-summary-data\">\n <ng-content select=\"sky-page-summary-title\"></ng-content>\n <ng-content select=\"sky-page-summary-subtitle\"></ng-content>\n <ng-content select=\"sky-page-summary-status\"></ng-content>\n <div class=\"sky-page-summary-key-info-xs\"></div>\n <ng-content select=\"sky-page-summary-content\"></ng-content>\n </div>\n </div>\n <div class=\"sky-page-summary-key-info-sm\">\n <div class=\"sky-page-summary-key-info-container\">\n <ng-content select=\"sky-page-summary-key-info\"></ng-content>\n </div>\n </div>\n </div>\n</div>\n", styles: [".sky-page-summary{background-color:#fff;padding:20px 15px}.sky-page-summary-row{align-items:stretch;display:flex}:host .sky-page-summary-left{flex-basis:100%;display:initial;align-items:initial}:host .sky-page-summary-with-key-info .sky-page-summary-left{flex-basis:100%;padding-right:initial}:host-context(.sky-responsive-container-xs) .sky-page-summary-left,:host-context(.sky-responsive-container-sm) .sky-page-summary-left,:host-context(.sky-responsive-container-md) .sky-page-summary-left,:host-context(.sky-responsive-container-lg) .sky-page-summary-left{flex-basis:100%;display:initial;align-items:initial}:host-context(.sky-responsive-container-xs) .sky-page-summary-with-key-info .sky-page-summary-left,:host-context(.sky-responsive-container-sm) .sky-page-summary-with-key-info .sky-page-summary-left,:host-context(.sky-responsive-container-md) .sky-page-summary-with-key-info .sky-page-summary-left,:host-context(.sky-responsive-container-lg) .sky-page-summary-with-key-info .sky-page-summary-left{flex-basis:100%;padding-right:initial}@media (min-width: 768px){:host .sky-page-summary-with-key-info .sky-page-summary-left{flex-basis:75%;padding-right:15px}:host .sky-page-summary-with-key-info .sky-page-summary-right{flex-basis:25%}:host .sky-page-summary-left{align-items:stretch;display:flex}:host .sky-page-summary-data{flex-grow:1}}:host-context(.sky-responsive-container-sm) .sky-page-summary-with-key-info .sky-page-summary-left,:host-context(.sky-responsive-container-md) .sky-page-summary-with-key-info .sky-page-summary-left,:host-context(.sky-responsive-container-lg) .sky-page-summary-with-key-info .sky-page-summary-left{flex-basis:75%;padding-right:15px}:host-context(.sky-responsive-container-sm) .sky-page-summary-with-key-info .sky-page-summary-right,:host-context(.sky-responsive-container-md) .sky-page-summary-with-key-info .sky-page-summary-right,:host-context(.sky-responsive-container-lg) .sky-page-summary-with-key-info .sky-page-summary-right{flex-basis:25%}:host-context(.sky-responsive-container-sm) .sky-page-summary-left,:host-context(.sky-responsive-container-md) .sky-page-summary-left,:host-context(.sky-responsive-container-lg) .sky-page-summary-left{align-items:stretch;display:flex}:host-context(.sky-responsive-container-sm) .sky-page-summary-data,:host-context(.sky-responsive-container-md) .sky-page-summary-data,:host-context(.sky-responsive-container-lg) .sky-page-summary-data{flex-grow:1}\n"], directives: [{ type: i3__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
2753
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyPageSummaryComponent, decorators: [{
|
|
2754
|
-
type: i0.Component,
|
|
2755
|
-
args: [{
|
|
2756
|
-
selector: 'sky-page-summary',
|
|
2757
|
-
template: "<div\n class=\"sky-page-summary\"\n [ngClass]=\"{ 'sky-page-summary-with-key-info': hasKeyInfo }\"\n>\n <ng-content select=\"sky-page-summary-alert\"></ng-content>\n <div class=\"sky-page-summary-row\">\n <div class=\"sky-page-summary-left\">\n <ng-content select=\"sky-page-summary-image\"></ng-content>\n <div class=\"sky-page-summary-data\">\n <ng-content select=\"sky-page-summary-title\"></ng-content>\n <ng-content select=\"sky-page-summary-subtitle\"></ng-content>\n <ng-content select=\"sky-page-summary-status\"></ng-content>\n <div class=\"sky-page-summary-key-info-xs\"></div>\n <ng-content select=\"sky-page-summary-content\"></ng-content>\n </div>\n </div>\n <div class=\"sky-page-summary-key-info-sm\">\n <div class=\"sky-page-summary-key-info-container\">\n <ng-content select=\"sky-page-summary-key-info\"></ng-content>\n </div>\n </div>\n </div>\n</div>\n",
|
|
2758
|
-
styles: [".sky-page-summary{background-color:#fff;padding:20px 15px}.sky-page-summary-row{align-items:stretch;display:flex}:host .sky-page-summary-left{flex-basis:100%;display:initial;align-items:initial}:host .sky-page-summary-with-key-info .sky-page-summary-left{flex-basis:100%;padding-right:initial}:host-context(.sky-responsive-container-xs) .sky-page-summary-left,:host-context(.sky-responsive-container-sm) .sky-page-summary-left,:host-context(.sky-responsive-container-md) .sky-page-summary-left,:host-context(.sky-responsive-container-lg) .sky-page-summary-left{flex-basis:100%;display:initial;align-items:initial}:host-context(.sky-responsive-container-xs) .sky-page-summary-with-key-info .sky-page-summary-left,:host-context(.sky-responsive-container-sm) .sky-page-summary-with-key-info .sky-page-summary-left,:host-context(.sky-responsive-container-md) .sky-page-summary-with-key-info .sky-page-summary-left,:host-context(.sky-responsive-container-lg) .sky-page-summary-with-key-info .sky-page-summary-left{flex-basis:100%;padding-right:initial}@media (min-width: 768px){:host .sky-page-summary-with-key-info .sky-page-summary-left{flex-basis:75%;padding-right:15px}:host .sky-page-summary-with-key-info .sky-page-summary-right{flex-basis:25%}:host .sky-page-summary-left{align-items:stretch;display:flex}:host .sky-page-summary-data{flex-grow:1}}:host-context(.sky-responsive-container-sm) .sky-page-summary-with-key-info .sky-page-summary-left,:host-context(.sky-responsive-container-md) .sky-page-summary-with-key-info .sky-page-summary-left,:host-context(.sky-responsive-container-lg) .sky-page-summary-with-key-info .sky-page-summary-left{flex-basis:75%;padding-right:15px}:host-context(.sky-responsive-container-sm) .sky-page-summary-with-key-info .sky-page-summary-right,:host-context(.sky-responsive-container-md) .sky-page-summary-with-key-info .sky-page-summary-right,:host-context(.sky-responsive-container-lg) .sky-page-summary-with-key-info .sky-page-summary-right{flex-basis:25%}:host-context(.sky-responsive-container-sm) .sky-page-summary-left,:host-context(.sky-responsive-container-md) .sky-page-summary-left,:host-context(.sky-responsive-container-lg) .sky-page-summary-left{align-items:stretch;display:flex}:host-context(.sky-responsive-container-sm) .sky-page-summary-data,:host-context(.sky-responsive-container-md) .sky-page-summary-data,:host-context(.sky-responsive-container-lg) .sky-page-summary-data{flex-grow:1}\n"],
|
|
2759
|
-
providers: [SkyPageSummaryAdapterService],
|
|
2760
|
-
}]
|
|
2761
|
-
}], ctorParameters: function () { return [{ type: i0__namespace.ElementRef }, { type: SkyPageSummaryAdapterService }, { type: i1__namespace.SkyMediaQueryService }]; }, propDecorators: { keyInfoComponents: [{
|
|
2762
|
-
type: i0.ContentChildren,
|
|
2763
|
-
args: [SkyPageSummaryKeyInfoComponent, {
|
|
2764
|
-
read: SkyPageSummaryKeyInfoComponent,
|
|
2765
|
-
}]
|
|
2766
|
-
}] } });
|
|
2767
|
-
|
|
2768
|
-
var SkyPageSummaryModule = /** @class */ (function () {
|
|
2769
|
-
function SkyPageSummaryModule() {
|
|
2770
|
-
}
|
|
2771
|
-
return SkyPageSummaryModule;
|
|
2772
|
-
}());
|
|
2773
|
-
SkyPageSummaryModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyPageSummaryModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
2774
|
-
SkyPageSummaryModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyPageSummaryModule, declarations: [SkyPageSummaryAlertComponent,
|
|
2775
|
-
SkyPageSummaryComponent,
|
|
2776
|
-
SkyPageSummaryContentComponent,
|
|
2777
|
-
SkyPageSummaryImageComponent,
|
|
2778
|
-
SkyPageSummaryKeyInfoComponent,
|
|
2779
|
-
SkyPageSummaryStatusComponent,
|
|
2780
|
-
SkyPageSummarySubtitleComponent,
|
|
2781
|
-
SkyPageSummaryTitleComponent], imports: [i3.CommonModule], exports: [SkyPageSummaryAlertComponent,
|
|
2782
|
-
SkyPageSummaryComponent,
|
|
2783
|
-
SkyPageSummaryContentComponent,
|
|
2784
|
-
SkyPageSummaryImageComponent,
|
|
2785
|
-
SkyPageSummaryKeyInfoComponent,
|
|
2786
|
-
SkyPageSummaryStatusComponent,
|
|
2787
|
-
SkyPageSummarySubtitleComponent,
|
|
2788
|
-
SkyPageSummaryTitleComponent] });
|
|
2789
|
-
SkyPageSummaryModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyPageSummaryModule, imports: [[i3.CommonModule]] });
|
|
2790
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyPageSummaryModule, decorators: [{
|
|
2791
|
-
type: i0.NgModule,
|
|
2792
|
-
args: [{
|
|
2793
|
-
declarations: [
|
|
2794
|
-
SkyPageSummaryAlertComponent,
|
|
2795
|
-
SkyPageSummaryComponent,
|
|
2796
|
-
SkyPageSummaryContentComponent,
|
|
2797
|
-
SkyPageSummaryImageComponent,
|
|
2798
|
-
SkyPageSummaryKeyInfoComponent,
|
|
2799
|
-
SkyPageSummaryStatusComponent,
|
|
2800
|
-
SkyPageSummarySubtitleComponent,
|
|
2801
|
-
SkyPageSummaryTitleComponent,
|
|
2802
|
-
],
|
|
2803
|
-
imports: [i3.CommonModule],
|
|
2804
|
-
exports: [
|
|
2805
|
-
SkyPageSummaryAlertComponent,
|
|
2806
|
-
SkyPageSummaryComponent,
|
|
2807
|
-
SkyPageSummaryContentComponent,
|
|
2808
|
-
SkyPageSummaryImageComponent,
|
|
2809
|
-
SkyPageSummaryKeyInfoComponent,
|
|
2810
|
-
SkyPageSummaryStatusComponent,
|
|
2811
|
-
SkyPageSummarySubtitleComponent,
|
|
2812
|
-
SkyPageSummaryTitleComponent,
|
|
2813
|
-
],
|
|
2814
|
-
}]
|
|
2815
|
-
}] });
|
|
2816
|
-
|
|
2817
|
-
/**
|
|
2818
|
-
* @internal
|
|
2819
|
-
*/
|
|
2820
|
-
var SkyTextExpandModalContext = /** @class */ (function () {
|
|
2821
|
-
function SkyTextExpandModalContext() {
|
|
2822
|
-
}
|
|
2823
|
-
return SkyTextExpandModalContext;
|
|
2824
|
-
}());
|
|
2825
|
-
|
|
2826
|
-
/**
|
|
2827
|
-
* @internal
|
|
2828
|
-
*/
|
|
2829
|
-
var SkyTextExpandModalComponent = /** @class */ (function () {
|
|
2830
|
-
function SkyTextExpandModalComponent(context, instance) {
|
|
2831
|
-
this.context = context;
|
|
2832
|
-
this.instance = instance;
|
|
2833
|
-
}
|
|
2834
|
-
SkyTextExpandModalComponent.prototype.close = function () {
|
|
2835
|
-
this.instance.close();
|
|
2836
|
-
};
|
|
2837
|
-
return SkyTextExpandModalComponent;
|
|
2838
|
-
}());
|
|
2839
|
-
SkyTextExpandModalComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyTextExpandModalComponent, deps: [{ token: SkyTextExpandModalContext }, { token: i2__namespace$2.SkyModalInstance }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
2840
|
-
SkyTextExpandModalComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyTextExpandModalComponent, selector: "sky-text-expand-modal", ngImport: i0__namespace, template: "<sky-modal>\n <sky-modal-header>{{ context.header }}</sky-modal-header>\n <sky-modal-content class=\"sky-text-expand-modal-content\">{{\n context.text\n }}</sky-modal-content>\n <sky-modal-footer>\n <button class=\"sky-btn sky-btn-link\" (click)=\"close()\">\n {{ 'skyux_text_expand_close_text' | skyLibResources }}\n </button>\n </sky-modal-footer>\n</sky-modal>\n", styles: [".sky-text-expand-ellipsis{letter-spacing:2px;white-space:nowrap}.sky-text-expand-space{white-space:normal}.sky-text-expand-see-more{white-space:nowrap;margin-left:5px}.sky-text-expand-text{margin:0;white-space:pre-wrap}.sky-text-expand-container{word-break:break-word;word-wrap:break-word;overflow:hidden;height:auto;transition:max-height .25s}.sky-text-expand-modal-content{white-space:pre-line;word-wrap:break-word}\n"], components: [{ type: i2__namespace$2.λ5, selector: "sky-modal", inputs: ["ariaRole", "tiledBody"] }, { type: i2__namespace$2.λ4, selector: "sky-modal-header" }, { type: i2__namespace$2.λ2, selector: "sky-modal-content" }, { type: i2__namespace$2.λ3, selector: "sky-modal-footer" }], pipes: { "skyLibResources": i1__namespace$1.SkyLibResourcesPipe } });
|
|
2841
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyTextExpandModalComponent, decorators: [{
|
|
2842
|
-
type: i0.Component,
|
|
2843
|
-
args: [{
|
|
2844
|
-
selector: 'sky-text-expand-modal',
|
|
2845
|
-
template: "<sky-modal>\n <sky-modal-header>{{ context.header }}</sky-modal-header>\n <sky-modal-content class=\"sky-text-expand-modal-content\">{{\n context.text\n }}</sky-modal-content>\n <sky-modal-footer>\n <button class=\"sky-btn sky-btn-link\" (click)=\"close()\">\n {{ 'skyux_text_expand_close_text' | skyLibResources }}\n </button>\n </sky-modal-footer>\n</sky-modal>\n",
|
|
2846
|
-
styles: [".sky-text-expand-ellipsis{letter-spacing:2px;white-space:nowrap}.sky-text-expand-space{white-space:normal}.sky-text-expand-see-more{white-space:nowrap;margin-left:5px}.sky-text-expand-text{margin:0;white-space:pre-wrap}.sky-text-expand-container{word-break:break-word;word-wrap:break-word;overflow:hidden;height:auto;transition:max-height .25s}.sky-text-expand-modal-content{white-space:pre-line;word-wrap:break-word}\n"],
|
|
2847
|
-
}]
|
|
2848
|
-
}], ctorParameters: function () { return [{ type: SkyTextExpandModalContext }, { type: i2__namespace$2.SkyModalInstance }]; } });
|
|
2849
|
-
|
|
2850
|
-
/**
|
|
2851
|
-
* @internal
|
|
2852
|
-
*/
|
|
2853
|
-
var SkyTextExpandAdapterService = /** @class */ (function () {
|
|
2854
|
-
function SkyTextExpandAdapterService(rendererFactory) {
|
|
2855
|
-
this.rendererFactory = rendererFactory;
|
|
2856
|
-
this.renderer = this.rendererFactory.createRenderer(undefined, undefined);
|
|
2857
|
-
}
|
|
2858
|
-
SkyTextExpandAdapterService.prototype.getContainerHeight = function (containerEl) {
|
|
2859
|
-
return containerEl.nativeElement.offsetHeight;
|
|
2860
|
-
};
|
|
2861
|
-
SkyTextExpandAdapterService.prototype.setContainerHeight = function (containerEl, height) {
|
|
2862
|
-
if (height === undefined) {
|
|
2863
|
-
this.renderer.removeStyle(containerEl.nativeElement, 'max-height');
|
|
2864
|
-
}
|
|
2865
|
-
else {
|
|
2866
|
-
this.renderer.setStyle(containerEl.nativeElement, 'max-height', height);
|
|
2867
|
-
}
|
|
2868
|
-
};
|
|
2869
|
-
SkyTextExpandAdapterService.prototype.setText = function (textEl, text) {
|
|
2870
|
-
textEl.nativeElement.textContent = text;
|
|
2871
|
-
};
|
|
2872
|
-
return SkyTextExpandAdapterService;
|
|
2873
|
-
}());
|
|
2874
|
-
SkyTextExpandAdapterService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyTextExpandAdapterService, deps: [{ token: i0__namespace.RendererFactory2 }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
2875
|
-
SkyTextExpandAdapterService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyTextExpandAdapterService });
|
|
2876
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyTextExpandAdapterService, decorators: [{
|
|
2877
|
-
type: i0.Injectable
|
|
2878
|
-
}], ctorParameters: function () { return [{ type: i0__namespace.RendererFactory2 }]; } });
|
|
2879
|
-
|
|
2880
|
-
/**
|
|
2881
|
-
* Auto-incrementing integer used to generate unique ids for text expand components.
|
|
2882
|
-
*/
|
|
2883
|
-
var nextId$1 = 0;
|
|
2884
|
-
var SkyTextExpandComponent = /** @class */ (function () {
|
|
2885
|
-
function SkyTextExpandComponent(resources, modalService, textExpandAdapter) {
|
|
2886
|
-
this.resources = resources;
|
|
2887
|
-
this.modalService = modalService;
|
|
2888
|
-
this.textExpandAdapter = textExpandAdapter;
|
|
2889
|
-
/**
|
|
2890
|
-
* Specifies the maximum number of text characters to display inline when users select the link
|
|
2891
|
-
* to expand the full text. If the text exceeds this limit, then the component expands
|
|
2892
|
-
* the full text in a modal instead.
|
|
2893
|
-
*/
|
|
2894
|
-
this.maxExpandedLength = 600;
|
|
2895
|
-
/**
|
|
2896
|
-
* Specifies the maximum number of newline characters to display inline when users select
|
|
2897
|
-
* the link to expand the full text. If the text exceeds this limit, then
|
|
2898
|
-
* the component expands the full text in a modal view instead.
|
|
2899
|
-
*/
|
|
2900
|
-
this.maxExpandedNewlines = 2;
|
|
2901
|
-
/**
|
|
2902
|
-
* Indicates whether to replace newline characters in truncated text with spaces.
|
|
2903
|
-
*/
|
|
2904
|
-
this.truncateNewlines = true;
|
|
2905
|
-
this.contentSectionId = "sky-text-expand-content-" + ++nextId$1;
|
|
2906
|
-
this.isExpanded = false;
|
|
2907
|
-
this._maxLength = 200;
|
|
2908
|
-
}
|
|
2909
|
-
Object.defineProperty(SkyTextExpandComponent.prototype, "maxLength", {
|
|
2910
|
-
get: function () {
|
|
2911
|
-
return this._maxLength;
|
|
2912
|
-
},
|
|
2913
|
-
/**
|
|
2914
|
-
* Specifies the number of text characters to display before truncating the text.
|
|
2915
|
-
* To avoid truncating text in the middle of a word, the component looks for a space
|
|
2916
|
-
* in the 10 characters before the last character.
|
|
2917
|
-
* @default 200
|
|
2918
|
-
*/
|
|
2919
|
-
set: function (value) {
|
|
2920
|
-
this._maxLength = value;
|
|
2921
|
-
/* istanbul ignore else */
|
|
2922
|
-
if (this.textEl) {
|
|
2923
|
-
this.setup(this.expandedText);
|
|
2924
|
-
}
|
|
2925
|
-
},
|
|
2926
|
-
enumerable: false,
|
|
2927
|
-
configurable: true
|
|
2928
|
-
});
|
|
2929
|
-
Object.defineProperty(SkyTextExpandComponent.prototype, "text", {
|
|
2930
|
-
/**
|
|
2931
|
-
* Specifies the text to truncate.
|
|
2932
|
-
*/
|
|
2933
|
-
set: function (value) {
|
|
2934
|
-
/* istanbul ignore else */
|
|
2935
|
-
if (this.textEl) {
|
|
2936
|
-
this.setup(value);
|
|
2937
|
-
}
|
|
2938
|
-
},
|
|
2939
|
-
enumerable: false,
|
|
2940
|
-
configurable: true
|
|
2941
|
-
});
|
|
2942
|
-
SkyTextExpandComponent.prototype.textExpand = function () {
|
|
2943
|
-
var _this = this;
|
|
2944
|
-
if (this.isModal) {
|
|
2945
|
-
// Modal View
|
|
2946
|
-
/* istanbul ignore else */
|
|
2947
|
-
/* sanity check */
|
|
2948
|
-
if (!this.isExpanded) {
|
|
2949
|
-
this.modalService.open(SkyTextExpandModalComponent, [
|
|
2950
|
-
{
|
|
2951
|
-
provide: SkyTextExpandModalContext,
|
|
2952
|
-
useValue: {
|
|
2953
|
-
header: this.expandModalTitle,
|
|
2954
|
-
text: this.expandedText,
|
|
2955
|
-
},
|
|
2956
|
-
},
|
|
2957
|
-
]);
|
|
2958
|
-
}
|
|
2959
|
-
}
|
|
2960
|
-
else {
|
|
2961
|
-
// Normal View
|
|
2962
|
-
if (!this.isExpanded) {
|
|
2963
|
-
this.setContainerMaxHeight();
|
|
2964
|
-
setTimeout(function () {
|
|
2965
|
-
_this.isExpanded = true;
|
|
2966
|
-
_this.animateText(_this.collapsedText, _this.expandedText, true);
|
|
2967
|
-
}, 10);
|
|
2968
|
-
}
|
|
2969
|
-
else {
|
|
2970
|
-
this.setContainerMaxHeight();
|
|
2971
|
-
setTimeout(function () {
|
|
2972
|
-
_this.isExpanded = false;
|
|
2973
|
-
_this.animateText(_this.expandedText, _this.collapsedText, false);
|
|
2974
|
-
}, 10);
|
|
2975
|
-
}
|
|
2976
|
-
}
|
|
2977
|
-
};
|
|
2978
|
-
SkyTextExpandComponent.prototype.animationEnd = function () {
|
|
2979
|
-
// Ensure the correct text is displayed
|
|
2980
|
-
this.textExpandAdapter.setText(this.textEl, this.textToShow);
|
|
2981
|
-
// Set height back to auto so the browser can change the height as needed with window changes
|
|
2982
|
-
this.textExpandAdapter.setContainerHeight(this.containerEl, undefined);
|
|
2983
|
-
};
|
|
2984
|
-
SkyTextExpandComponent.prototype.ngAfterContentInit = function () {
|
|
2985
|
-
var _this = this;
|
|
2986
|
-
rxjs.forkJoin([
|
|
2987
|
-
this.resources.getString('skyux_text_expand_see_more'),
|
|
2988
|
-
this.resources.getString('skyux_text_expand_see_less'),
|
|
2989
|
-
])
|
|
2990
|
-
.pipe(operators.take(1))
|
|
2991
|
-
.subscribe(function (resources) {
|
|
2992
|
-
_this.seeMoreText = resources[0];
|
|
2993
|
-
_this.seeLessText = resources[1];
|
|
2994
|
-
_this.setup(_this.expandedText);
|
|
2995
|
-
/* istanbul ignore else */
|
|
2996
|
-
if (!_this.expandModalTitle) {
|
|
2997
|
-
_this.resources
|
|
2998
|
-
.getString('skyux_text_expand_modal_title')
|
|
2999
|
-
.pipe(operators.take(1))
|
|
3000
|
-
.subscribe(function (resource) {
|
|
3001
|
-
_this.expandModalTitle = resource;
|
|
3002
|
-
});
|
|
3003
|
-
}
|
|
3004
|
-
});
|
|
3005
|
-
};
|
|
3006
|
-
SkyTextExpandComponent.prototype.setContainerMaxHeight = function () {
|
|
3007
|
-
// ensure everything is reset
|
|
3008
|
-
this.animationEnd();
|
|
3009
|
-
/* Before animation is kicked off, ensure that a maxHeight exists */
|
|
3010
|
-
/* Once we have support for angular v4 animations with parameters we can use that instead */
|
|
3011
|
-
var currentHeight = this.textExpandAdapter.getContainerHeight(this.containerEl);
|
|
3012
|
-
this.textExpandAdapter.setContainerHeight(this.containerEl, currentHeight + "px");
|
|
3013
|
-
};
|
|
3014
|
-
SkyTextExpandComponent.prototype.setup = function (value) {
|
|
3015
|
-
if (value) {
|
|
3016
|
-
this.newlineCount = this.getNewlineCount(value);
|
|
3017
|
-
this.collapsedText = this.getTruncatedText(value, this.maxLength);
|
|
3018
|
-
this.expandedText = value;
|
|
3019
|
-
if (this.collapsedText !== value) {
|
|
3020
|
-
this.buttonText = this.seeMoreText;
|
|
3021
|
-
this.isExpanded = false;
|
|
3022
|
-
this.expandable = true;
|
|
3023
|
-
this.isModal =
|
|
3024
|
-
this.newlineCount > this.maxExpandedNewlines ||
|
|
3025
|
-
this.expandedText.length > this.maxExpandedLength;
|
|
3026
|
-
}
|
|
3027
|
-
else {
|
|
3028
|
-
this.expandable = false;
|
|
3029
|
-
}
|
|
3030
|
-
this.textToShow = this.collapsedText;
|
|
3031
|
-
}
|
|
3032
|
-
else {
|
|
3033
|
-
this.textToShow = '';
|
|
3034
|
-
this.expandable = false;
|
|
3035
|
-
}
|
|
3036
|
-
this.textExpandAdapter.setText(this.textEl, this.textToShow);
|
|
3037
|
-
};
|
|
3038
|
-
SkyTextExpandComponent.prototype.getNewlineCount = function (value) {
|
|
3039
|
-
var matches = value.match(/\n/gi);
|
|
3040
|
-
if (matches) {
|
|
3041
|
-
return matches.length;
|
|
3042
|
-
}
|
|
3043
|
-
return 0;
|
|
3044
|
-
};
|
|
3045
|
-
SkyTextExpandComponent.prototype.getTruncatedText = function (value, length) {
|
|
3046
|
-
var i;
|
|
3047
|
-
if (this.truncateNewlines) {
|
|
3048
|
-
value = value.replace(/\n+/gi, ' ');
|
|
3049
|
-
}
|
|
3050
|
-
// Jump ahead one character and see if it's a space, and if it isn't,
|
|
3051
|
-
// back up to the first space and break there so a word doesn't get cut
|
|
3052
|
-
// in half.
|
|
3053
|
-
if (length < value.length) {
|
|
3054
|
-
for (i = length; i > length - 10; i--) {
|
|
3055
|
-
if (/\s/.test(value.charAt(i))) {
|
|
3056
|
-
length = i;
|
|
3057
|
-
break;
|
|
3058
|
-
}
|
|
3059
|
-
}
|
|
3060
|
-
}
|
|
3061
|
-
return value.substr(0, length);
|
|
3062
|
-
};
|
|
3063
|
-
SkyTextExpandComponent.prototype.animateText = function (previousText, newText, expanding) {
|
|
3064
|
-
var _this = this;
|
|
3065
|
-
var adapter = this.textExpandAdapter;
|
|
3066
|
-
var container = this.containerEl;
|
|
3067
|
-
// Reset max height
|
|
3068
|
-
adapter.setContainerHeight(container, undefined);
|
|
3069
|
-
// Measure the current height so we can animate from it.
|
|
3070
|
-
var currentHeight = adapter.getContainerHeight(container);
|
|
3071
|
-
this.textToShow = newText;
|
|
3072
|
-
adapter.setText(this.textEl, this.textToShow);
|
|
3073
|
-
this.buttonText = expanding ? this.seeLessText : this.seeMoreText;
|
|
3074
|
-
// Measure the new height so we can animate to it.
|
|
3075
|
-
var newHeight = adapter.getContainerHeight(container);
|
|
3076
|
-
/* istanbul ignore if */
|
|
3077
|
-
if (newHeight < currentHeight) {
|
|
3078
|
-
// The new text is smaller than the old text, so put the old text back before doing
|
|
3079
|
-
// the collapse animation to avoid showing a big chunk of whitespace.
|
|
3080
|
-
adapter.setText(this.textEl, previousText);
|
|
3081
|
-
}
|
|
3082
|
-
adapter.setContainerHeight(container, currentHeight + "px");
|
|
3083
|
-
// This timeout is necessary due to the browser needing to pick up the non-auto height being set
|
|
3084
|
-
// in order to do the transtion in height correctly. Without it the transition does not fire.
|
|
3085
|
-
setTimeout(function () {
|
|
3086
|
-
adapter.setContainerHeight(container, newHeight + "px");
|
|
3087
|
-
/* This resets values if the transition does not get kicked off */
|
|
3088
|
-
setTimeout(function () {
|
|
3089
|
-
_this.animationEnd();
|
|
3090
|
-
}, 500);
|
|
3091
|
-
}, 10);
|
|
3092
|
-
};
|
|
3093
|
-
return SkyTextExpandComponent;
|
|
3094
|
-
}());
|
|
3095
|
-
SkyTextExpandComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyTextExpandComponent, deps: [{ token: i1__namespace$1.SkyLibResourcesService }, { token: i2__namespace$2.SkyModalService }, { token: SkyTextExpandAdapterService }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
3096
|
-
SkyTextExpandComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyTextExpandComponent, selector: "sky-text-expand", inputs: { expandModalTitle: "expandModalTitle", maxExpandedLength: "maxExpandedLength", maxExpandedNewlines: "maxExpandedNewlines", maxLength: "maxLength", text: "text", truncateNewlines: "truncateNewlines" }, providers: [SkyTextExpandAdapterService], viewQueries: [{ propertyName: "containerEl", first: true, predicate: ["container"], descendants: true, read: i0.ElementRef, static: true }, { propertyName: "textEl", first: true, predicate: ["text"], descendants: true, read: i0.ElementRef, static: true }], ngImport: i0__namespace, template: "<div\n class=\"sky-text-expand-container\"\n (transitionend)=\"animationEnd()\"\n #container\n>\n <span class=\"sky-text-expand-text\" [id]=\"contentSectionId\" #text></span>\n <span class=\"sky-text-expand-ellipsis\" *ngIf=\"!isExpanded && expandable\"\n >...\n </span>\n <button\n *ngIf=\"expandable\"\n type=\"button\"\n class=\"sky-btn sky-btn-link-inline sky-text-expand-see-more\"\n [attr.aria-expanded]=\"isModal ? undefined : isExpanded\"\n [attr.aria-controls]=\"isModal ? undefined : contentSectionId\"\n [attr.aria-haspopup]=\"isModal ? 'dialog' : undefined\"\n (click)=\"textExpand()\"\n >\n {{ buttonText }}\n </button>\n</div>\n", styles: [".sky-text-expand-ellipsis{letter-spacing:2px;white-space:nowrap}.sky-text-expand-space{white-space:normal}.sky-text-expand-see-more{white-space:nowrap;margin-left:5px}.sky-text-expand-text{margin:0;white-space:pre-wrap}.sky-text-expand-container{word-break:break-word;word-wrap:break-word;overflow:hidden;height:auto;transition:max-height .25s}.sky-text-expand-modal-content{white-space:pre-line;word-wrap:break-word}\n"], directives: [{ type: i3__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
3097
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyTextExpandComponent, decorators: [{
|
|
3098
|
-
type: i0.Component,
|
|
3099
|
-
args: [{
|
|
3100
|
-
selector: 'sky-text-expand',
|
|
3101
|
-
template: "<div\n class=\"sky-text-expand-container\"\n (transitionend)=\"animationEnd()\"\n #container\n>\n <span class=\"sky-text-expand-text\" [id]=\"contentSectionId\" #text></span>\n <span class=\"sky-text-expand-ellipsis\" *ngIf=\"!isExpanded && expandable\"\n >...\n </span>\n <button\n *ngIf=\"expandable\"\n type=\"button\"\n class=\"sky-btn sky-btn-link-inline sky-text-expand-see-more\"\n [attr.aria-expanded]=\"isModal ? undefined : isExpanded\"\n [attr.aria-controls]=\"isModal ? undefined : contentSectionId\"\n [attr.aria-haspopup]=\"isModal ? 'dialog' : undefined\"\n (click)=\"textExpand()\"\n >\n {{ buttonText }}\n </button>\n</div>\n",
|
|
3102
|
-
styles: [".sky-text-expand-ellipsis{letter-spacing:2px;white-space:nowrap}.sky-text-expand-space{white-space:normal}.sky-text-expand-see-more{white-space:nowrap;margin-left:5px}.sky-text-expand-text{margin:0;white-space:pre-wrap}.sky-text-expand-container{word-break:break-word;word-wrap:break-word;overflow:hidden;height:auto;transition:max-height .25s}.sky-text-expand-modal-content{white-space:pre-line;word-wrap:break-word}\n"],
|
|
3103
|
-
providers: [SkyTextExpandAdapterService],
|
|
3104
|
-
}]
|
|
3105
|
-
}], ctorParameters: function () { return [{ type: i1__namespace$1.SkyLibResourcesService }, { type: i2__namespace$2.SkyModalService }, { type: SkyTextExpandAdapterService }]; }, propDecorators: { expandModalTitle: [{
|
|
3106
|
-
type: i0.Input
|
|
3107
|
-
}], maxExpandedLength: [{
|
|
3108
|
-
type: i0.Input
|
|
3109
|
-
}], maxExpandedNewlines: [{
|
|
3110
|
-
type: i0.Input
|
|
3111
|
-
}], maxLength: [{
|
|
3112
|
-
type: i0.Input
|
|
3113
|
-
}], text: [{
|
|
3114
|
-
type: i0.Input
|
|
3115
|
-
}], truncateNewlines: [{
|
|
3116
|
-
type: i0.Input
|
|
3117
|
-
}], containerEl: [{
|
|
3118
|
-
type: i0.ViewChild,
|
|
3119
|
-
args: ['container', {
|
|
3120
|
-
read: i0.ElementRef,
|
|
3121
|
-
static: true,
|
|
3122
|
-
}]
|
|
3123
|
-
}], textEl: [{
|
|
3124
|
-
type: i0.ViewChild,
|
|
3125
|
-
args: ['text', {
|
|
3126
|
-
read: i0.ElementRef,
|
|
3127
|
-
static: true,
|
|
3128
|
-
}]
|
|
3129
|
-
}] } });
|
|
3130
|
-
|
|
3131
|
-
var SkyTextExpandModule = /** @class */ (function () {
|
|
3132
|
-
function SkyTextExpandModule() {
|
|
3133
|
-
}
|
|
3134
|
-
return SkyTextExpandModule;
|
|
3135
|
-
}());
|
|
3136
|
-
SkyTextExpandModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyTextExpandModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
3137
|
-
SkyTextExpandModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyTextExpandModule, declarations: [SkyTextExpandComponent, SkyTextExpandModalComponent], imports: [i1$1.SkyI18nModule,
|
|
3138
|
-
SkyLayoutResourcesModule,
|
|
3139
|
-
i2$2.SkyModalModule,
|
|
3140
|
-
i3.CommonModule], exports: [SkyTextExpandComponent] });
|
|
3141
|
-
SkyTextExpandModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyTextExpandModule, imports: [[
|
|
3142
|
-
i1$1.SkyI18nModule,
|
|
3143
|
-
SkyLayoutResourcesModule,
|
|
3144
|
-
i2$2.SkyModalModule,
|
|
3145
|
-
i3.CommonModule,
|
|
3146
|
-
]] });
|
|
3147
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyTextExpandModule, decorators: [{
|
|
3148
|
-
type: i0.NgModule,
|
|
3149
|
-
args: [{
|
|
3150
|
-
declarations: [SkyTextExpandComponent, SkyTextExpandModalComponent],
|
|
3151
|
-
imports: [
|
|
3152
|
-
i1$1.SkyI18nModule,
|
|
3153
|
-
SkyLayoutResourcesModule,
|
|
3154
|
-
i2$2.SkyModalModule,
|
|
3155
|
-
i3.CommonModule,
|
|
3156
|
-
],
|
|
3157
|
-
exports: [SkyTextExpandComponent],
|
|
3158
|
-
entryComponents: [SkyTextExpandModalComponent],
|
|
3159
|
-
}]
|
|
3160
|
-
}] });
|
|
3161
|
-
|
|
3162
|
-
/**
|
|
3163
|
-
* @internal
|
|
3164
|
-
*/
|
|
3165
|
-
var SkyTextExpandRepeaterAdapterService = /** @class */ (function () {
|
|
3166
|
-
function SkyTextExpandRepeaterAdapterService(rendererFactory) {
|
|
3167
|
-
this.rendererFactory = rendererFactory;
|
|
3168
|
-
this.renderer = this.rendererFactory.createRenderer(undefined, undefined);
|
|
3169
|
-
}
|
|
3170
|
-
SkyTextExpandRepeaterAdapterService.prototype.getItems = function (elRef) {
|
|
3171
|
-
return elRef.nativeElement.querySelectorAll('.sky-text-expand-repeater-item');
|
|
3172
|
-
};
|
|
3173
|
-
SkyTextExpandRepeaterAdapterService.prototype.hideItem = function (item) {
|
|
3174
|
-
this.renderer.setStyle(item, 'display', 'none');
|
|
3175
|
-
};
|
|
3176
|
-
SkyTextExpandRepeaterAdapterService.prototype.showItem = function (item) {
|
|
3177
|
-
this.renderer.setStyle(item, 'display', 'list-item');
|
|
3178
|
-
};
|
|
3179
|
-
SkyTextExpandRepeaterAdapterService.prototype.getContainerHeight = function (containerEl) {
|
|
3180
|
-
return containerEl.nativeElement.offsetHeight;
|
|
3181
|
-
};
|
|
3182
|
-
SkyTextExpandRepeaterAdapterService.prototype.setContainerHeight = function (containerEl, height) {
|
|
3183
|
-
if (height === undefined) {
|
|
3184
|
-
this.renderer.removeStyle(containerEl.nativeElement, 'max-height');
|
|
3185
|
-
}
|
|
3186
|
-
else {
|
|
3187
|
-
this.renderer.setStyle(containerEl.nativeElement, 'max-height', height);
|
|
3188
|
-
}
|
|
3189
|
-
};
|
|
3190
|
-
return SkyTextExpandRepeaterAdapterService;
|
|
3191
|
-
}());
|
|
3192
|
-
SkyTextExpandRepeaterAdapterService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyTextExpandRepeaterAdapterService, deps: [{ token: i0__namespace.RendererFactory2 }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
3193
|
-
SkyTextExpandRepeaterAdapterService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyTextExpandRepeaterAdapterService });
|
|
3194
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyTextExpandRepeaterAdapterService, decorators: [{
|
|
3195
|
-
type: i0.Injectable
|
|
3196
|
-
}], ctorParameters: function () { return [{ type: i0__namespace.RendererFactory2 }]; } });
|
|
3197
|
-
|
|
3198
|
-
/**
|
|
3199
|
-
* Auto-incrementing integer used to generate unique ids for text expand repeater components.
|
|
3200
|
-
*/
|
|
3201
|
-
var nextId = 0;
|
|
3202
|
-
var SkyTextExpandRepeaterComponent = /** @class */ (function () {
|
|
3203
|
-
function SkyTextExpandRepeaterComponent(resources, elRef, textExpandRepeaterAdapter, changeDetector) {
|
|
3204
|
-
this.resources = resources;
|
|
3205
|
-
this.elRef = elRef;
|
|
3206
|
-
this.textExpandRepeaterAdapter = textExpandRepeaterAdapter;
|
|
3207
|
-
this.changeDetector = changeDetector;
|
|
3208
|
-
/**
|
|
3209
|
-
* Specifies the style of bullet to use
|
|
3210
|
-
* @default "unordered"
|
|
3211
|
-
*/
|
|
3212
|
-
this.listStyle = 'unordered';
|
|
3213
|
-
this.contentSectionId = "sky-text-expand-repeater-content-" + ++nextId;
|
|
3214
|
-
this.isExpanded = false;
|
|
3215
|
-
}
|
|
3216
|
-
SkyTextExpandRepeaterComponent.prototype.ngAfterViewInit = function () {
|
|
3217
|
-
var _this = this;
|
|
3218
|
-
if (this.contentItems) {
|
|
3219
|
-
this.items = this.textExpandRepeaterAdapter.getItems(this.elRef);
|
|
3220
|
-
for (var i = this.maxItems; i < this.contentItems.length; i++) {
|
|
3221
|
-
this.textExpandRepeaterAdapter.hideItem(this.items[i]);
|
|
3222
|
-
}
|
|
3223
|
-
}
|
|
3224
|
-
rxjs.forkJoin([
|
|
3225
|
-
this.resources.getString('skyux_text_expand_see_more'),
|
|
3226
|
-
this.resources.getString('skyux_text_expand_see_less'),
|
|
3227
|
-
])
|
|
3228
|
-
.pipe(operators.take(1))
|
|
3229
|
-
.subscribe(function (resources) {
|
|
3230
|
-
_this.seeMoreText = resources[0];
|
|
3231
|
-
_this.seeLessText = resources[1];
|
|
3232
|
-
/* sanity check */
|
|
3233
|
-
/* istanbul ignore else */
|
|
3234
|
-
if (!_this.isExpanded) {
|
|
3235
|
-
_this.buttonText = _this.seeMoreText;
|
|
3236
|
-
}
|
|
3237
|
-
else {
|
|
3238
|
-
_this.buttonText = _this.seeLessText;
|
|
3239
|
-
}
|
|
3240
|
-
_this.changeDetector.detectChanges();
|
|
3241
|
-
});
|
|
3242
|
-
};
|
|
3243
|
-
SkyTextExpandRepeaterComponent.prototype.ngOnChanges = function (changes) {
|
|
3244
|
-
/* istanbul ignore else */
|
|
3245
|
-
if (changes.maxItems || changes.data) {
|
|
3246
|
-
this.setup(this.data);
|
|
3247
|
-
}
|
|
3248
|
-
};
|
|
3249
|
-
SkyTextExpandRepeaterComponent.prototype.animationEnd = function () {
|
|
3250
|
-
// Ensure the correct items are displayed
|
|
3251
|
-
if (!this.isExpanded) {
|
|
3252
|
-
for (var i = this.maxItems; i < this.contentItems.length; i++) {
|
|
3253
|
-
this.textExpandRepeaterAdapter.hideItem(this.items[i]);
|
|
3254
|
-
}
|
|
3255
|
-
}
|
|
3256
|
-
// Set height back to auto so the browser can change the height as needed with window changes
|
|
3257
|
-
this.textExpandRepeaterAdapter.setContainerHeight(this.containerEl, undefined);
|
|
3258
|
-
};
|
|
3259
|
-
SkyTextExpandRepeaterComponent.prototype.repeaterExpand = function () {
|
|
3260
|
-
var _this = this;
|
|
3261
|
-
if (!this.isExpanded) {
|
|
3262
|
-
this.setContainerMaxHeight();
|
|
3263
|
-
setTimeout(function () {
|
|
3264
|
-
_this.isExpanded = true;
|
|
3265
|
-
_this.animateRepeater(true);
|
|
3266
|
-
});
|
|
3267
|
-
}
|
|
3268
|
-
else {
|
|
3269
|
-
this.setContainerMaxHeight();
|
|
3270
|
-
setTimeout(function () {
|
|
3271
|
-
_this.isExpanded = false;
|
|
3272
|
-
_this.animateRepeater(false);
|
|
3273
|
-
});
|
|
3274
|
-
}
|
|
3275
|
-
};
|
|
3276
|
-
SkyTextExpandRepeaterComponent.prototype.setContainerMaxHeight = function () {
|
|
3277
|
-
// ensure everything is reset
|
|
3278
|
-
this.animationEnd();
|
|
3279
|
-
/* Before animation is kicked off, ensure that a maxHeight exists */
|
|
3280
|
-
/* Once we have support for angular v4 animations with parameters we can use that instead */
|
|
3281
|
-
var currentHeight = this.textExpandRepeaterAdapter.getContainerHeight(this.containerEl);
|
|
3282
|
-
this.textExpandRepeaterAdapter.setContainerHeight(this.containerEl, currentHeight + "px");
|
|
3283
|
-
};
|
|
3284
|
-
SkyTextExpandRepeaterComponent.prototype.animateRepeater = function (expanding) {
|
|
3285
|
-
var _this = this;
|
|
3286
|
-
var adapter = this.textExpandRepeaterAdapter;
|
|
3287
|
-
var container = this.containerEl;
|
|
3288
|
-
adapter.setContainerHeight(container, undefined);
|
|
3289
|
-
var currentHeight = adapter.getContainerHeight(container);
|
|
3290
|
-
for (var i = this.maxItems; i < this.contentItems.length; i++) {
|
|
3291
|
-
if (!expanding) {
|
|
3292
|
-
adapter.hideItem(this.items[i]);
|
|
3293
|
-
}
|
|
3294
|
-
else {
|
|
3295
|
-
adapter.showItem(this.items[i]);
|
|
3296
|
-
}
|
|
3297
|
-
}
|
|
3298
|
-
var newHeight = adapter.getContainerHeight(container);
|
|
3299
|
-
if (!expanding) {
|
|
3300
|
-
this.buttonText = this.seeMoreText;
|
|
3301
|
-
}
|
|
3302
|
-
else {
|
|
3303
|
-
this.buttonText = this.seeLessText;
|
|
3304
|
-
}
|
|
3305
|
-
if (newHeight < currentHeight) {
|
|
3306
|
-
// The new text is smaller than the old text, so put the old text back before doing
|
|
3307
|
-
// the collapse animation to avoid showing a big chunk of whitespace.
|
|
3308
|
-
for (var i = this.maxItems; i < this.contentItems.length; i++) {
|
|
3309
|
-
adapter.showItem(this.items[i]);
|
|
3310
|
-
}
|
|
3311
|
-
}
|
|
3312
|
-
adapter.setContainerHeight(container, currentHeight + "px");
|
|
3313
|
-
// This timeout is necessary due to the browser needing to pick up the non-auto height being set
|
|
3314
|
-
// in order to do the transtion in height correctly. Without it the transition does not fire.
|
|
3315
|
-
setTimeout(function () {
|
|
3316
|
-
adapter.setContainerHeight(container, newHeight + "px");
|
|
3317
|
-
/* This resets values if the transition does not get kicked off */
|
|
3318
|
-
setTimeout(function () {
|
|
3319
|
-
_this.animationEnd();
|
|
3320
|
-
}, 500);
|
|
3321
|
-
}, 10);
|
|
3322
|
-
};
|
|
3323
|
-
SkyTextExpandRepeaterComponent.prototype.setup = function (value) {
|
|
3324
|
-
if (value) {
|
|
3325
|
-
var length = value.length;
|
|
3326
|
-
if (length > this.maxItems) {
|
|
3327
|
-
this.expandable = true;
|
|
3328
|
-
this.buttonText = this.seeMoreText;
|
|
3329
|
-
this.isExpanded = false;
|
|
3330
|
-
}
|
|
3331
|
-
else {
|
|
3332
|
-
this.expandable = false;
|
|
3333
|
-
}
|
|
3334
|
-
this.contentItems = value;
|
|
3335
|
-
}
|
|
3336
|
-
else {
|
|
3337
|
-
this.contentItems = undefined;
|
|
3338
|
-
this.expandable = false;
|
|
3339
|
-
}
|
|
3340
|
-
};
|
|
3341
|
-
return SkyTextExpandRepeaterComponent;
|
|
3342
|
-
}());
|
|
3343
|
-
SkyTextExpandRepeaterComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyTextExpandRepeaterComponent, deps: [{ token: i1__namespace$1.SkyLibResourcesService }, { token: i0__namespace.ElementRef }, { token: SkyTextExpandRepeaterAdapterService }, { token: i0__namespace.ChangeDetectorRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
3344
|
-
SkyTextExpandRepeaterComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyTextExpandRepeaterComponent, selector: "sky-text-expand-repeater", inputs: { data: "data", itemTemplate: "itemTemplate", listStyle: "listStyle", maxItems: "maxItems" }, providers: [SkyTextExpandRepeaterAdapterService], viewQueries: [{ propertyName: "containerEl", first: true, predicate: ["container"], descendants: true, read: i0.ElementRef }], usesOnChanges: true, ngImport: i0__namespace, template: "<div class=\"sky-text-expand-repeater\">\n <ul\n *ngIf=\"listStyle !== 'ordered'\"\n class=\"sky-text-expand-repeater-container\"\n [id]=\"contentSectionId\"\n (transitionend)=\"animationEnd()\"\n [ngClass]=\"{\n 'sky-text-expand-repeater-list-style-none': listStyle === 'unstyled'\n }\"\n #container\n >\n <ng-template [ngTemplateOutlet]=\"listItemTemplate\"></ng-template>\n </ul>\n <ol\n *ngIf=\"listStyle === 'ordered'\"\n class=\"sky-text-expand-repeater-container\"\n [id]=\"contentSectionId\"\n (transitionend)=\"animationEnd()\"\n #container\n >\n <ng-template [ngTemplateOutlet]=\"listItemTemplate\"></ng-template>\n </ol>\n <button\n *ngIf=\"expandable\"\n type=\"button\"\n class=\"sky-btn sky-btn-link-inline sky-text-expand-repeater-see-more\"\n [attr.aria-expanded]=\"isExpanded\"\n [attr.aria-controls]=\"contentSectionId\"\n (click)=\"repeaterExpand()\"\n [ngClass]=\"{\n 'sky-text-expand-repeater-see-more-list-style-none':\n listStyle === 'unstyled'\n }\"\n >\n {{ buttonText }}\n </button>\n</div>\n\n<ng-template let-item #defaultItemTemplate>\n {{ item }}\n</ng-template>\n\n<ng-template #listItemTemplate>\n <li *ngFor=\"let item of contentItems\" class=\"sky-text-expand-repeater-item\">\n <ng-template\n [ngTemplateOutlet]=\"itemTemplate || defaultItemTemplate\"\n [ngTemplateOutletContext]=\"{ $implicit: item }\"\n ></ng-template>\n </li>\n</ng-template>\n", styles: [".sky-text-expand-repeater-container{overflow-y:hidden;height:auto;margin-bottom:0;transition:max-height .25s}.sky-text-expand-repeater-see-more{white-space:nowrap;margin-left:40px}.sky-text-expand-repeater-list-style-none{list-style-type:none;padding-left:0}.sky-text-expand-repeater-see-more-list-style-none{margin-left:0}\n"], directives: [{ type: i3__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i3__namespace.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i3__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
|
|
3345
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyTextExpandRepeaterComponent, decorators: [{
|
|
3346
|
-
type: i0.Component,
|
|
3347
|
-
args: [{
|
|
3348
|
-
selector: 'sky-text-expand-repeater',
|
|
3349
|
-
template: "<div class=\"sky-text-expand-repeater\">\n <ul\n *ngIf=\"listStyle !== 'ordered'\"\n class=\"sky-text-expand-repeater-container\"\n [id]=\"contentSectionId\"\n (transitionend)=\"animationEnd()\"\n [ngClass]=\"{\n 'sky-text-expand-repeater-list-style-none': listStyle === 'unstyled'\n }\"\n #container\n >\n <ng-template [ngTemplateOutlet]=\"listItemTemplate\"></ng-template>\n </ul>\n <ol\n *ngIf=\"listStyle === 'ordered'\"\n class=\"sky-text-expand-repeater-container\"\n [id]=\"contentSectionId\"\n (transitionend)=\"animationEnd()\"\n #container\n >\n <ng-template [ngTemplateOutlet]=\"listItemTemplate\"></ng-template>\n </ol>\n <button\n *ngIf=\"expandable\"\n type=\"button\"\n class=\"sky-btn sky-btn-link-inline sky-text-expand-repeater-see-more\"\n [attr.aria-expanded]=\"isExpanded\"\n [attr.aria-controls]=\"contentSectionId\"\n (click)=\"repeaterExpand()\"\n [ngClass]=\"{\n 'sky-text-expand-repeater-see-more-list-style-none':\n listStyle === 'unstyled'\n }\"\n >\n {{ buttonText }}\n </button>\n</div>\n\n<ng-template let-item #defaultItemTemplate>\n {{ item }}\n</ng-template>\n\n<ng-template #listItemTemplate>\n <li *ngFor=\"let item of contentItems\" class=\"sky-text-expand-repeater-item\">\n <ng-template\n [ngTemplateOutlet]=\"itemTemplate || defaultItemTemplate\"\n [ngTemplateOutletContext]=\"{ $implicit: item }\"\n ></ng-template>\n </li>\n</ng-template>\n",
|
|
3350
|
-
styles: [".sky-text-expand-repeater-container{overflow-y:hidden;height:auto;margin-bottom:0;transition:max-height .25s}.sky-text-expand-repeater-see-more{white-space:nowrap;margin-left:40px}.sky-text-expand-repeater-list-style-none{list-style-type:none;padding-left:0}.sky-text-expand-repeater-see-more-list-style-none{margin-left:0}\n"],
|
|
3351
|
-
providers: [SkyTextExpandRepeaterAdapterService],
|
|
3352
|
-
}]
|
|
3353
|
-
}], ctorParameters: function () { return [{ type: i1__namespace$1.SkyLibResourcesService }, { type: i0__namespace.ElementRef }, { type: SkyTextExpandRepeaterAdapterService }, { type: i0__namespace.ChangeDetectorRef }]; }, propDecorators: { data: [{
|
|
3354
|
-
type: i0.Input
|
|
3355
|
-
}], itemTemplate: [{
|
|
3356
|
-
type: i0.Input
|
|
3357
|
-
}], listStyle: [{
|
|
3358
|
-
type: i0.Input
|
|
3359
|
-
}], maxItems: [{
|
|
3360
|
-
type: i0.Input
|
|
3361
|
-
}], containerEl: [{
|
|
3362
|
-
type: i0.ViewChild,
|
|
3363
|
-
args: ['container', {
|
|
3364
|
-
read: i0.ElementRef,
|
|
3365
|
-
static: false,
|
|
3366
|
-
}]
|
|
3367
|
-
}] } });
|
|
3368
|
-
|
|
3369
|
-
var SkyTextExpandRepeaterModule = /** @class */ (function () {
|
|
3370
|
-
function SkyTextExpandRepeaterModule() {
|
|
3371
|
-
}
|
|
3372
|
-
return SkyTextExpandRepeaterModule;
|
|
3373
|
-
}());
|
|
3374
|
-
SkyTextExpandRepeaterModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyTextExpandRepeaterModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
3375
|
-
SkyTextExpandRepeaterModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyTextExpandRepeaterModule, declarations: [SkyTextExpandRepeaterComponent], imports: [i1$1.SkyI18nModule, SkyLayoutResourcesModule, i3.CommonModule], exports: [SkyTextExpandRepeaterComponent] });
|
|
3376
|
-
SkyTextExpandRepeaterModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyTextExpandRepeaterModule, imports: [[i1$1.SkyI18nModule, SkyLayoutResourcesModule, i3.CommonModule]] });
|
|
3377
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyTextExpandRepeaterModule, decorators: [{
|
|
3378
|
-
type: i0.NgModule,
|
|
3379
|
-
args: [{
|
|
3380
|
-
declarations: [SkyTextExpandRepeaterComponent],
|
|
3381
|
-
imports: [i1$1.SkyI18nModule, SkyLayoutResourcesModule, i3.CommonModule],
|
|
3382
|
-
exports: [SkyTextExpandRepeaterComponent],
|
|
3383
|
-
}]
|
|
3384
|
-
}] });
|
|
3385
|
-
|
|
3386
|
-
/**
|
|
3387
|
-
* Specifies a container for an item in the toolbar.
|
|
3388
|
-
*/
|
|
3389
|
-
var SkyToolbarItemComponent = /** @class */ (function () {
|
|
3390
|
-
function SkyToolbarItemComponent() {
|
|
3391
|
-
}
|
|
3392
|
-
return SkyToolbarItemComponent;
|
|
3393
|
-
}());
|
|
3394
|
-
SkyToolbarItemComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyToolbarItemComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
3395
|
-
SkyToolbarItemComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyToolbarItemComponent, selector: "sky-toolbar-item", ngImport: i0__namespace, template: "<div class=\"sky-toolbar-item\">\n <ng-content></ng-content>\n</div>\n", styles: [".sky-toolbar-item{margin-right:5px;margin-bottom:5px}:host-context(.sky-theme-modern) .sky-toolbar-item{margin-top:5px;margin-bottom:5px;margin-right:10px}:host-context(.sky-theme-modern) .sky-toolbar-item ::ng-deep .sky-btn{padding-left:10px;padding-right:10px}:host-context(.sky-theme-modern) .sky-toolbar-item ::ng-deep .sky-btn.sky-btn-default:not(:disabled){background-color:transparent;border:none}:host-context(.sky-theme-modern) .sky-toolbar-item ::ng-deep .sky-btn.sky-btn-default:not(:disabled):not(:hover):not(:active):not(:focus){box-shadow:inset 0 0 0 1px transparent}.sky-theme-modern .sky-toolbar-item{margin-top:5px;margin-bottom:5px;margin-right:10px}.sky-theme-modern .sky-toolbar-item ::ng-deep .sky-btn{padding-left:10px;padding-right:10px}.sky-theme-modern .sky-toolbar-item ::ng-deep .sky-btn.sky-btn-default:not(:disabled){background-color:transparent;border:none}.sky-theme-modern .sky-toolbar-item ::ng-deep .sky-btn.sky-btn-default:not(:disabled):not(:hover):not(:active):not(:focus){box-shadow:inset 0 0 0 1px transparent}\n"] });
|
|
3396
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyToolbarItemComponent, decorators: [{
|
|
3397
|
-
type: i0.Component,
|
|
3398
|
-
args: [{
|
|
3399
|
-
selector: 'sky-toolbar-item',
|
|
3400
|
-
styles: [".sky-toolbar-item{margin-right:5px;margin-bottom:5px}:host-context(.sky-theme-modern) .sky-toolbar-item{margin-top:5px;margin-bottom:5px;margin-right:10px}:host-context(.sky-theme-modern) .sky-toolbar-item ::ng-deep .sky-btn{padding-left:10px;padding-right:10px}:host-context(.sky-theme-modern) .sky-toolbar-item ::ng-deep .sky-btn.sky-btn-default:not(:disabled){background-color:transparent;border:none}:host-context(.sky-theme-modern) .sky-toolbar-item ::ng-deep .sky-btn.sky-btn-default:not(:disabled):not(:hover):not(:active):not(:focus){box-shadow:inset 0 0 0 1px transparent}.sky-theme-modern .sky-toolbar-item{margin-top:5px;margin-bottom:5px;margin-right:10px}.sky-theme-modern .sky-toolbar-item ::ng-deep .sky-btn{padding-left:10px;padding-right:10px}.sky-theme-modern .sky-toolbar-item ::ng-deep .sky-btn.sky-btn-default:not(:disabled){background-color:transparent;border:none}.sky-theme-modern .sky-toolbar-item ::ng-deep .sky-btn.sky-btn-default:not(:disabled):not(:hover):not(:active):not(:focus){box-shadow:inset 0 0 0 1px transparent}\n"],
|
|
3401
|
-
template: "<div class=\"sky-toolbar-item\">\n <ng-content></ng-content>\n</div>\n",
|
|
3402
|
-
}]
|
|
3403
|
-
}] });
|
|
3404
|
-
|
|
3405
|
-
/**
|
|
3406
|
-
* Specifies a section to group items within the toolbar. The section displays items in a separate horizontal row.
|
|
3407
|
-
*/
|
|
3408
|
-
var SkyToolbarSectionComponent = /** @class */ (function () {
|
|
3409
|
-
function SkyToolbarSectionComponent() {
|
|
3410
|
-
}
|
|
3411
|
-
return SkyToolbarSectionComponent;
|
|
3412
|
-
}());
|
|
3413
|
-
SkyToolbarSectionComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyToolbarSectionComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
3414
|
-
SkyToolbarSectionComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyToolbarSectionComponent, selector: "sky-toolbar-section", ngImport: i0__namespace, template: "<div class=\"sky-toolbar-section\">\n <div class=\"sky-toolbar-section-items\">\n <ng-content></ng-content>\n </div>\n <ng-content select=\"sky-toolbar-view-actions\"></ng-content>\n</div>\n", styles: [".sky-toolbar-section{display:flex;flex-wrap:nowrap;padding:5px 10px 0;min-height:49px;align-items:center;position:relative;overflow-x:auto}.sky-toolbar-section-items{display:flex;flex-wrap:wrap;align-items:center}:host-context(.sky-theme-modern) .sky-toolbar-section{padding:10px 0}.sky-theme-modern .sky-toolbar-section{padding:10px 0}\n"] });
|
|
3415
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyToolbarSectionComponent, decorators: [{
|
|
3416
|
-
type: i0.Component,
|
|
3417
|
-
args: [{
|
|
3418
|
-
selector: 'sky-toolbar-section',
|
|
3419
|
-
styles: [".sky-toolbar-section{display:flex;flex-wrap:nowrap;padding:5px 10px 0;min-height:49px;align-items:center;position:relative;overflow-x:auto}.sky-toolbar-section-items{display:flex;flex-wrap:wrap;align-items:center}:host-context(.sky-theme-modern) .sky-toolbar-section{padding:10px 0}.sky-theme-modern .sky-toolbar-section{padding:10px 0}\n"],
|
|
3420
|
-
template: "<div class=\"sky-toolbar-section\">\n <div class=\"sky-toolbar-section-items\">\n <ng-content></ng-content>\n </div>\n <ng-content select=\"sky-toolbar-view-actions\"></ng-content>\n</div>\n",
|
|
3421
|
-
}]
|
|
3422
|
-
}] });
|
|
3423
|
-
|
|
3424
|
-
/**
|
|
3425
|
-
* Adds a section on the right side of the toolbar for items that substantially alter
|
|
3426
|
-
* the view of the content container. This includes simple filters and view switchers.
|
|
3427
|
-
*/
|
|
3428
|
-
var SkyToolbarViewActionsComponent = /** @class */ (function () {
|
|
3429
|
-
function SkyToolbarViewActionsComponent() {
|
|
3430
|
-
}
|
|
3431
|
-
return SkyToolbarViewActionsComponent;
|
|
3432
|
-
}());
|
|
3433
|
-
SkyToolbarViewActionsComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyToolbarViewActionsComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
3434
|
-
SkyToolbarViewActionsComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyToolbarViewActionsComponent, selector: "sky-toolbar-view-actions", ngImport: i0__namespace, template: "<div class=\"sky-toolbar-view-actions\">\n <ng-content></ng-content>\n</div>\n", styles: [":host{margin-left:auto}.sky-toolbar-view-actions{display:flex;align-items:center;margin-bottom:5px}.sky-toolbar-view-actions ::ng-deep>:not(:last-child){margin-right:5px}:host-context(.sky-theme-modern) .sky-toolbar-view-actions{margin-bottom:0}:host-context(.sky-theme-modern) .sky-toolbar-view-actions ::ng-deep>:not(:last-child){margin-top:5px;margin-bottom:5px;margin-right:10px}:host-context(.sky-theme-modern) .sky-toolbar-view-actions ::ng-deep .sky-btn{background-color:transparent;border:none;padding-left:10px;padding-right:10px}:host-context(.sky-theme-modern) .sky-toolbar-view-actions ::ng-deep .sky-btn:not(:hover):not(:active):not(:focus){box-shadow:inset 0 0 0 1px transparent}.sky-theme-modern .sky-toolbar-view-actions{margin-bottom:0}.sky-theme-modern .sky-toolbar-view-actions ::ng-deep>:not(:last-child){margin-top:5px;margin-bottom:5px;margin-right:10px}.sky-theme-modern .sky-toolbar-view-actions ::ng-deep .sky-btn{background-color:transparent;border:none;padding-left:10px;padding-right:10px}.sky-theme-modern .sky-toolbar-view-actions ::ng-deep .sky-btn:not(:hover):not(:active):not(:focus){box-shadow:inset 0 0 0 1px transparent}\n"], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
|
|
3435
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyToolbarViewActionsComponent, decorators: [{
|
|
3436
|
-
type: i0.Component,
|
|
3437
|
-
args: [{
|
|
3438
|
-
selector: 'sky-toolbar-view-actions',
|
|
3439
|
-
template: "<div class=\"sky-toolbar-view-actions\">\n <ng-content></ng-content>\n</div>\n",
|
|
3440
|
-
styles: [":host{margin-left:auto}.sky-toolbar-view-actions{display:flex;align-items:center;margin-bottom:5px}.sky-toolbar-view-actions ::ng-deep>:not(:last-child){margin-right:5px}:host-context(.sky-theme-modern) .sky-toolbar-view-actions{margin-bottom:0}:host-context(.sky-theme-modern) .sky-toolbar-view-actions ::ng-deep>:not(:last-child){margin-top:5px;margin-bottom:5px;margin-right:10px}:host-context(.sky-theme-modern) .sky-toolbar-view-actions ::ng-deep .sky-btn{background-color:transparent;border:none;padding-left:10px;padding-right:10px}:host-context(.sky-theme-modern) .sky-toolbar-view-actions ::ng-deep .sky-btn:not(:hover):not(:active):not(:focus){box-shadow:inset 0 0 0 1px transparent}.sky-theme-modern .sky-toolbar-view-actions{margin-bottom:0}.sky-theme-modern .sky-toolbar-view-actions ::ng-deep>:not(:last-child){margin-top:5px;margin-bottom:5px;margin-right:10px}.sky-theme-modern .sky-toolbar-view-actions ::ng-deep .sky-btn{background-color:transparent;border:none;padding-left:10px;padding-right:10px}.sky-theme-modern .sky-toolbar-view-actions ::ng-deep .sky-btn:not(:hover):not(:active):not(:focus){box-shadow:inset 0 0 0 1px transparent}\n"],
|
|
3441
|
-
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
3442
|
-
}]
|
|
3443
|
-
}] });
|
|
3444
|
-
|
|
3445
|
-
/**
|
|
3446
|
-
* Displays actions for lists, records, and tiles.
|
|
3447
|
-
*/
|
|
3448
|
-
var SkyToolbarComponent = /** @class */ (function () {
|
|
3449
|
-
function SkyToolbarComponent() {
|
|
3450
|
-
this.hasSections = false;
|
|
3451
|
-
}
|
|
3452
|
-
SkyToolbarComponent.prototype.ngAfterContentInit = function () {
|
|
3453
|
-
this.hasSections = this.sectionComponents.length > 0;
|
|
3454
|
-
};
|
|
3455
|
-
return SkyToolbarComponent;
|
|
3456
|
-
}());
|
|
3457
|
-
SkyToolbarComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyToolbarComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
3458
|
-
SkyToolbarComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyToolbarComponent, selector: "sky-toolbar", queries: [{ propertyName: "sectionComponents", predicate: SkyToolbarSectionComponent, descendants: true }], ngImport: i0__namespace, template: "<div\n class=\"sky-toolbar-container\"\n [ngClass]=\"{ 'sky-toolbar-sectioned': hasSections }\"\n>\n <ng-content select=\"sky-toolbar-section\"></ng-content>\n <div class=\"sky-toolbar-items\">\n <ng-content></ng-content>\n </div>\n <ng-content select=\"sky-toolbar-view-actions\"></ng-content>\n</div>\n", styles: [".sky-toolbar-container{min-height:49px;background-color:#fff;padding:5px 10px 0;border-top:1px solid #cdcfd2;border-bottom:1px solid #cdcfd2;display:flex;flex-wrap:wrap;align-items:center;position:relative}.sky-toolbar-container ::ng-deep sky-toolbar-section:not(:first-child) .sky-toolbar-section{border-top:1px solid #cdcfd2}.sky-toolbar-container:not(.sky-toolbar-sectioned){flex-wrap:nowrap}.sky-toolbar-sectioned{display:block;padding:0}.sky-toolbar-items{display:flex;flex-wrap:wrap;align-items:center}:host-context(.sky-theme-modern .sky-viewkeeper-fixed) .sky-toolbar-container{background-color:#fcfcfc}:host-context(.sky-theme-modern.sky-theme-mode-dark .sky-viewkeeper-fixed) .sky-toolbar-container{background-color:#121212}:host-context(.sky-theme-modern) .sky-toolbar-container{background-color:transparent;border:none;padding:10px 0}:host-context(.sky-theme-modern) .sky-toolbar-container.sky-viewkeeper-fixed{background-color:#fcfcfc}:host-context(.sky-theme-modern) .sky-toolbar-container ::ng-deep sky-toolbar-section:not(:first-child) .sky-toolbar-section{border-top:1px solid #d2d2d2}:host-context(.sky-theme-modern) .sky-toolbar-sectioned{padding:0}.sky-theme-modern .sky-toolbar-container{background-color:transparent;border:none;padding:10px 0}.sky-theme-modern .sky-toolbar-container.sky-viewkeeper-fixed{background-color:#fcfcfc}.sky-theme-modern .sky-toolbar-container ::ng-deep sky-toolbar-section:not(:first-child) .sky-toolbar-section{border-top:1px solid #d2d2d2}.sky-theme-modern .sky-toolbar-sectioned{padding:0}:host-context(.sky-theme-modern.sky-theme-mode-dark) .sky-toolbar-container.sky-viewkeeper-fixed{background-color:#121212}.sky-theme-modern.sky-theme-mode-dark .sky-toolbar-container.sky-viewkeeper-fixed{background-color:#121212}\n"], directives: [{ type: i3__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
3459
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyToolbarComponent, decorators: [{
|
|
3460
|
-
type: i0.Component,
|
|
3461
|
-
args: [{
|
|
3462
|
-
selector: 'sky-toolbar',
|
|
3463
|
-
styles: [".sky-toolbar-container{min-height:49px;background-color:#fff;padding:5px 10px 0;border-top:1px solid #cdcfd2;border-bottom:1px solid #cdcfd2;display:flex;flex-wrap:wrap;align-items:center;position:relative}.sky-toolbar-container ::ng-deep sky-toolbar-section:not(:first-child) .sky-toolbar-section{border-top:1px solid #cdcfd2}.sky-toolbar-container:not(.sky-toolbar-sectioned){flex-wrap:nowrap}.sky-toolbar-sectioned{display:block;padding:0}.sky-toolbar-items{display:flex;flex-wrap:wrap;align-items:center}:host-context(.sky-theme-modern .sky-viewkeeper-fixed) .sky-toolbar-container{background-color:#fcfcfc}:host-context(.sky-theme-modern.sky-theme-mode-dark .sky-viewkeeper-fixed) .sky-toolbar-container{background-color:#121212}:host-context(.sky-theme-modern) .sky-toolbar-container{background-color:transparent;border:none;padding:10px 0}:host-context(.sky-theme-modern) .sky-toolbar-container.sky-viewkeeper-fixed{background-color:#fcfcfc}:host-context(.sky-theme-modern) .sky-toolbar-container ::ng-deep sky-toolbar-section:not(:first-child) .sky-toolbar-section{border-top:1px solid #d2d2d2}:host-context(.sky-theme-modern) .sky-toolbar-sectioned{padding:0}.sky-theme-modern .sky-toolbar-container{background-color:transparent;border:none;padding:10px 0}.sky-theme-modern .sky-toolbar-container.sky-viewkeeper-fixed{background-color:#fcfcfc}.sky-theme-modern .sky-toolbar-container ::ng-deep sky-toolbar-section:not(:first-child) .sky-toolbar-section{border-top:1px solid #d2d2d2}.sky-theme-modern .sky-toolbar-sectioned{padding:0}:host-context(.sky-theme-modern.sky-theme-mode-dark) .sky-toolbar-container.sky-viewkeeper-fixed{background-color:#121212}.sky-theme-modern.sky-theme-mode-dark .sky-toolbar-container.sky-viewkeeper-fixed{background-color:#121212}\n"],
|
|
3464
|
-
template: "<div\n class=\"sky-toolbar-container\"\n [ngClass]=\"{ 'sky-toolbar-sectioned': hasSections }\"\n>\n <ng-content select=\"sky-toolbar-section\"></ng-content>\n <div class=\"sky-toolbar-items\">\n <ng-content></ng-content>\n </div>\n <ng-content select=\"sky-toolbar-view-actions\"></ng-content>\n</div>\n",
|
|
3465
|
-
}]
|
|
3466
|
-
}], propDecorators: { sectionComponents: [{
|
|
3467
|
-
type: i0.ContentChildren,
|
|
3468
|
-
args: [SkyToolbarSectionComponent, { descendants: true }]
|
|
3469
|
-
}] } });
|
|
3470
|
-
|
|
3471
|
-
var SkyToolbarModule = /** @class */ (function () {
|
|
3472
|
-
function SkyToolbarModule() {
|
|
3473
|
-
}
|
|
3474
|
-
return SkyToolbarModule;
|
|
3475
|
-
}());
|
|
3476
|
-
SkyToolbarModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyToolbarModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
3477
|
-
SkyToolbarModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyToolbarModule, declarations: [SkyToolbarComponent,
|
|
3478
|
-
SkyToolbarItemComponent,
|
|
3479
|
-
SkyToolbarSectionComponent,
|
|
3480
|
-
SkyToolbarViewActionsComponent], imports: [i3.CommonModule], exports: [SkyToolbarComponent,
|
|
3481
|
-
SkyToolbarItemComponent,
|
|
3482
|
-
SkyToolbarSectionComponent,
|
|
3483
|
-
SkyToolbarViewActionsComponent] });
|
|
3484
|
-
SkyToolbarModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyToolbarModule, imports: [[i3.CommonModule]] });
|
|
3485
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyToolbarModule, decorators: [{
|
|
3486
|
-
type: i0.NgModule,
|
|
3487
|
-
args: [{
|
|
3488
|
-
declarations: [
|
|
3489
|
-
SkyToolbarComponent,
|
|
3490
|
-
SkyToolbarItemComponent,
|
|
3491
|
-
SkyToolbarSectionComponent,
|
|
3492
|
-
SkyToolbarViewActionsComponent,
|
|
3493
|
-
],
|
|
3494
|
-
imports: [i3.CommonModule],
|
|
3495
|
-
exports: [
|
|
3496
|
-
SkyToolbarComponent,
|
|
3497
|
-
SkyToolbarItemComponent,
|
|
3498
|
-
SkyToolbarSectionComponent,
|
|
3499
|
-
SkyToolbarViewActionsComponent,
|
|
3500
|
-
],
|
|
3501
|
-
}]
|
|
3502
|
-
}] });
|
|
3503
|
-
|
|
3504
|
-
/**
|
|
3505
|
-
* Generated bundle index. Do not edit.
|
|
3506
|
-
*/
|
|
3507
|
-
|
|
3508
|
-
exports.SkyActionButtonModule = SkyActionButtonModule;
|
|
3509
|
-
exports.SkyBackToTopModule = SkyBackToTopModule;
|
|
3510
|
-
exports.SkyBoxModule = SkyBoxModule;
|
|
3511
|
-
exports.SkyCardModule = SkyCardModule;
|
|
3512
|
-
exports.SkyDefinitionListModule = SkyDefinitionListModule;
|
|
3513
|
-
exports.SkyDescriptionListModule = SkyDescriptionListModule;
|
|
3514
|
-
exports.SkyFluidGridModule = SkyFluidGridModule;
|
|
3515
|
-
exports.SkyFormatModule = SkyFormatModule;
|
|
3516
|
-
exports.SkyInlineDeleteModule = SkyInlineDeleteModule;
|
|
3517
|
-
exports.SkyPageModule = SkyPageModule;
|
|
3518
|
-
exports.SkyPageSummaryModule = SkyPageSummaryModule;
|
|
3519
|
-
exports.SkyTextExpandModule = SkyTextExpandModule;
|
|
3520
|
-
exports.SkyTextExpandRepeaterModule = SkyTextExpandRepeaterModule;
|
|
3521
|
-
exports.SkyToolbarModule = SkyToolbarModule;
|
|
3522
|
-
exports["λ1"] = SkyActionButtonComponent;
|
|
3523
|
-
exports["λ10"] = SkyCardActionsComponent;
|
|
3524
|
-
exports["λ11"] = SkyCardContentComponent;
|
|
3525
|
-
exports["λ12"] = SkyCardTitleComponent;
|
|
3526
|
-
exports["λ13"] = SkyDefinitionListComponent;
|
|
3527
|
-
exports["λ14"] = SkyDefinitionListContentComponent;
|
|
3528
|
-
exports["λ15"] = SkyDefinitionListHeadingComponent;
|
|
3529
|
-
exports["λ16"] = SkyDefinitionListLabelComponent;
|
|
3530
|
-
exports["λ17"] = SkyDefinitionListValueComponent;
|
|
3531
|
-
exports["λ18"] = SkyDescriptionListComponent;
|
|
3532
|
-
exports["λ19"] = SkyDescriptionListTermComponent;
|
|
3533
|
-
exports["λ2"] = SkyActionButtonContainerComponent;
|
|
3534
|
-
exports["λ20"] = SkyDescriptionListDescriptionComponent;
|
|
3535
|
-
exports["λ21"] = SkyDescriptionListContentComponent;
|
|
3536
|
-
exports["λ22"] = SkyFluidGridComponent;
|
|
3537
|
-
exports["λ23"] = SkyRowComponent;
|
|
3538
|
-
exports["λ24"] = SkyColumnComponent;
|
|
3539
|
-
exports["λ25"] = SkyFormatComponent;
|
|
3540
|
-
exports["λ26"] = SkyPageComponent;
|
|
3541
|
-
exports["λ27"] = SkyPageSummaryComponent;
|
|
3542
|
-
exports["λ28"] = SkyPageSummaryAlertComponent;
|
|
3543
|
-
exports["λ29"] = SkyPageSummaryContentComponent;
|
|
3544
|
-
exports["λ3"] = SkyActionButtonDetailsComponent;
|
|
3545
|
-
exports["λ30"] = SkyPageSummaryImageComponent;
|
|
3546
|
-
exports["λ31"] = SkyPageSummaryKeyInfoComponent;
|
|
3547
|
-
exports["λ32"] = SkyPageSummaryStatusComponent;
|
|
3548
|
-
exports["λ33"] = SkyPageSummarySubtitleComponent;
|
|
3549
|
-
exports["λ34"] = SkyPageSummaryTitleComponent;
|
|
3550
|
-
exports["λ35"] = SkyTextExpandComponent;
|
|
3551
|
-
exports["λ36"] = SkyTextExpandRepeaterComponent;
|
|
3552
|
-
exports["λ37"] = SkyToolbarComponent;
|
|
3553
|
-
exports["λ38"] = SkyToolbarSectionComponent;
|
|
3554
|
-
exports["λ39"] = SkyToolbarItemComponent;
|
|
3555
|
-
exports["λ4"] = SkyActionButtonHeaderComponent;
|
|
3556
|
-
exports["λ40"] = SkyToolbarViewActionsComponent;
|
|
3557
|
-
exports["λ41"] = SkyBoxComponent;
|
|
3558
|
-
exports["λ42"] = SkyBoxHeaderComponent;
|
|
3559
|
-
exports["λ43"] = SkyBoxContentComponent;
|
|
3560
|
-
exports["λ44"] = SkyBoxControlsComponent;
|
|
3561
|
-
exports["λ5"] = SkyActionButtonIconComponent;
|
|
3562
|
-
exports["λ6"] = SkyBackToTopComponent;
|
|
3563
|
-
exports["λ7"] = SkyBackToTopDirective;
|
|
3564
|
-
exports["λ8"] = SkyInlineDeleteComponent;
|
|
3565
|
-
exports["λ9"] = SkyCardComponent;
|
|
3566
|
-
|
|
3567
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
3568
|
-
|
|
3569
|
-
}));
|
|
3570
|
-
//# sourceMappingURL=skyux-layout.umd.js.map
|