@alauda/ui 6.5.9-beta.22 → 6.5.9-beta.24
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/accordion/accordion-item/accordion-item.component.d.ts +1 -1
- package/accordion/accordion.component.d.ts +1 -1
- package/anchor/anchor.component.d.ts +2 -2
- package/anchor/anchor.directive.d.ts +2 -2
- package/autocomplete/autocomplete.directive.d.ts +2 -2
- package/autocomplete/suggestion/suggestion.component.d.ts +1 -1
- package/back-top/back-top.component.d.ts +1 -1
- package/breadcrumb/breadcrumb.component.d.ts +1 -1
- package/button/button.component.d.ts +1 -1
- package/card/card.component.d.ts +1 -1
- package/card/helper-directives.d.ts +1 -1
- package/checkbox/checkbox-group/checkbox-group.component.d.ts +1 -1
- package/checkbox/checkbox.component.d.ts +1 -1
- package/date-picker/calendar/date-picker-panel/component.d.ts +1 -1
- package/date-picker/calendar/footer/component.d.ts +1 -1
- package/date-picker/calendar/header/component.d.ts +1 -1
- package/date-picker/calendar/panel/picker-panel.d.ts +1 -1
- package/date-picker/calendar/range-picker-panel/component.d.ts +1 -1
- package/date-picker/date-picker/date-picker.component.d.ts +1 -1
- package/date-picker/range-picker/range-picker.component.d.ts +1 -1
- package/date-picker/trigger/trigger.component.d.ts +1 -1
- package/dialog/dialog-content/dialog-close.directive.d.ts +1 -1
- package/dialog/dialog-content/dialog-header.component.d.ts +1 -1
- package/dialog/dialog.component.d.ts +0 -6
- package/dialog/dialog.service.d.ts +0 -2
- package/drawer/component/drawer.component.d.ts +1 -1
- package/dropdown/dropdown-active.directive.d.ts +1 -1
- package/dropdown/dropdown-button/dropdown-button.component.d.ts +1 -1
- package/dropdown/dropdown.directive.d.ts +1 -1
- package/dropdown/menu/menu.component.d.ts +1 -1
- package/dropdown/menu-item/menu-item.component.d.ts +1 -1
- package/dropdown/submenu/submenu.component.d.ts +1 -1
- package/esm2022/accordion/accordion-item/accordion-item.component.mjs +73 -0
- package/esm2022/accordion/accordion.component.mjs +29 -0
- package/{esm2020 → esm2022}/accordion/accordion.module.mjs +11 -11
- package/esm2022/anchor/anchor.component.mjs +141 -0
- package/esm2022/anchor/anchor.directive.mjs +198 -0
- package/{esm2020 → esm2022}/anchor/anchor.module.mjs +11 -11
- package/{esm2020 → esm2022}/autocomplete/autocomplete-placeholder.component.mjs +4 -4
- package/esm2022/autocomplete/autocomplete.component.mjs +72 -0
- package/esm2022/autocomplete/autocomplete.directive.mjs +278 -0
- package/{esm2020 → esm2022}/autocomplete/autocomplete.module.mjs +17 -17
- package/{esm2020 → esm2022}/autocomplete/helper-directives.mjs +4 -4
- package/esm2022/autocomplete/suggestion/suggestion.component.mjs +85 -0
- package/esm2022/autocomplete/suggestion-group/suggestion-group.component.mjs +25 -0
- package/esm2022/back-top/back-top.component.mjs +68 -0
- package/{esm2020 → esm2022}/back-top/back-top.module.mjs +5 -5
- package/esm2022/breadcrumb/breadcrumb-item.component.mjs +33 -0
- package/esm2022/breadcrumb/breadcrumb.component.mjs +56 -0
- package/{esm2020 → esm2022}/breadcrumb/breadcrumb.module.mjs +5 -5
- package/{esm2020 → esm2022}/button/button-group/button-group.component.mjs +4 -4
- package/esm2022/button/button.component.mjs +124 -0
- package/{esm2020 → esm2022}/button/button.module.mjs +5 -5
- package/esm2022/card/card.component.mjs +14 -0
- package/{esm2020 → esm2022}/card/card.module.mjs +13 -13
- package/esm2022/card/helper-directives.mjs +45 -0
- package/{esm2020 → esm2022}/card/section.component.mjs +4 -4
- package/esm2022/checkbox/checkbox-group/checkbox-group.component.mjs +60 -0
- package/esm2022/checkbox/checkbox.component.mjs +116 -0
- package/{esm2020 → esm2022}/checkbox/checkbox.module.mjs +5 -5
- package/esm2022/color-picker/color-picker.component.mjs +28 -0
- package/{esm2020 → esm2022}/color-picker/color-picker.module.mjs +5 -5
- package/esm2022/date-picker/calendar/date-picker-panel/component.mjs +137 -0
- package/esm2022/date-picker/calendar/footer/component.mjs +29 -0
- package/esm2022/date-picker/calendar/header/component.mjs +99 -0
- package/esm2022/date-picker/calendar/panel/picker-panel.mjs +158 -0
- package/esm2022/date-picker/calendar/range-picker-panel/component.mjs +210 -0
- package/esm2022/date-picker/calendar/util.mjs +152 -0
- package/esm2022/date-picker/date-picker/date-picker.component.mjs +115 -0
- package/{esm2020 → esm2022}/date-picker/date-picker.module.mjs +35 -35
- package/esm2022/date-picker/range-picker/range-picker.component.mjs +88 -0
- package/esm2022/date-picker/trigger/trigger.component.mjs +76 -0
- package/esm2022/dialog/confirm-dialog/confirm-dialog-config.mjs +13 -0
- package/esm2022/dialog/confirm-dialog/confirm-dialog.component.mjs +88 -0
- package/esm2022/dialog/dialog-config.mjs +14 -0
- package/esm2022/dialog/dialog-content/dialog-close.directive.mjs +42 -0
- package/{esm2020 → esm2022}/dialog/dialog-content/dialog-content.component.mjs +5 -5
- package/esm2022/dialog/dialog-content/dialog-footer.component.mjs +13 -0
- package/esm2022/dialog/dialog-content/dialog-header.component.mjs +42 -0
- package/esm2022/dialog/dialog-ref.mjs +52 -0
- package/esm2022/dialog/dialog.component.mjs +154 -0
- package/{esm2020 → esm2022}/dialog/dialog.module.mjs +22 -22
- package/esm2022/dialog/dialog.service.mjs +124 -0
- package/esm2022/drawer/component/drawer.component.mjs +248 -0
- package/{esm2020 → esm2022}/drawer/component/helper-directives.mjs +10 -10
- package/{esm2020 → esm2022}/drawer/drawer.module.mjs +11 -11
- package/esm2022/drawer/drawer.service.mjs +47 -0
- package/esm2022/dropdown/dropdown-active.directive.mjs +18 -0
- package/esm2022/dropdown/dropdown-button/dropdown-button.component.mjs +50 -0
- package/esm2022/dropdown/dropdown.directive.mjs +83 -0
- package/{esm2020 → esm2022}/dropdown/dropdown.module.mjs +21 -21
- package/{esm2020 → esm2022}/dropdown/helper-directives.mjs +4 -4
- package/esm2022/dropdown/menu/menu-content.directive.mjs +59 -0
- package/esm2022/dropdown/menu/menu.component.mjs +34 -0
- package/{esm2020 → esm2022}/dropdown/menu-group/menu-group.component.mjs +4 -4
- package/esm2022/dropdown/menu-item/menu-item.component.mjs +35 -0
- package/esm2022/dropdown/submenu/submenu.component.mjs +38 -0
- package/esm2022/form/common-form.mjs +88 -0
- package/esm2022/form/form-item/form-item.component.mjs +121 -0
- package/esm2022/form/form.directive.mjs +70 -0
- package/{esm2020 → esm2022}/form/form.module.mjs +17 -17
- package/esm2022/form/helper-directives.mjs +78 -0
- package/{esm2020 → esm2022}/i18n/i18n.module.mjs +5 -5
- package/esm2022/i18n/i18n.pipe.mjs +21 -0
- package/esm2022/i18n/i18n.service.mjs +46 -0
- package/esm2022/icon/icon-register.service.mjs +75 -0
- package/esm2022/icon/icon.component.mjs +74 -0
- package/{esm2020 → esm2022}/icon/icon.module.mjs +5 -5
- package/{esm2020 → esm2022}/inline-alert/helper-directives.mjs +4 -4
- package/esm2022/inline-alert/inline-alert.component.mjs +54 -0
- package/{esm2020 → esm2022}/inline-alert/inline-alert.module.mjs +5 -5
- package/esm2022/input/autosize.directive.mjs +56 -0
- package/esm2022/input/helper-directives.mjs +43 -0
- package/esm2022/input/input-group/input-group.component.mjs +46 -0
- package/esm2022/input/input.component.mjs +59 -0
- package/{esm2020 → esm2022}/input/input.module.mjs +33 -33
- package/esm2022/input/number-input/number-input.component.mjs +115 -0
- package/esm2022/input/search/search.component.mjs +87 -0
- package/esm2022/input/tags-input/tags-input.component.mjs +264 -0
- package/esm2022/message/base-message.mjs +99 -0
- package/esm2022/message/message-wrapper.component.mjs +15 -0
- package/esm2022/message/message.component.mjs +77 -0
- package/esm2022/message/message.config.mjs +20 -0
- package/{esm2020 → esm2022}/message/message.module.mjs +5 -5
- package/{esm2020 → esm2022}/message/message.service.mjs +4 -4
- package/esm2022/notification/notification-wrapper.component.mjs +17 -0
- package/esm2022/notification/notification.component.mjs +106 -0
- package/{esm2020 → esm2022}/notification/notification.module.mjs +5 -5
- package/{esm2020 → esm2022}/notification/notification.service.mjs +4 -4
- package/esm2022/paginator/paginator-intl.mjs +24 -0
- package/esm2022/paginator/paginator.component.mjs +124 -0
- package/{esm2020 → esm2022}/paginator/paginator.module.mjs +5 -5
- package/esm2022/radio/base-radio.mjs +72 -0
- package/esm2022/radio/radio-button/radio-button.component.mjs +41 -0
- package/esm2022/radio/radio-group/radio-group.component.mjs +70 -0
- package/{esm2020 → esm2022}/radio/radio.component.mjs +5 -5
- package/{esm2020 → esm2022}/radio/radio.module.mjs +5 -5
- package/{esm2020 → esm2022}/scrolling/fixed-size-table-virtual-scroll-strategy.mjs +13 -14
- package/esm2022/scrolling/fixed-size-table-virtual-scroll.directive.mjs +119 -0
- package/esm2022/scrolling/fixed-size-virtual-scroll.directive.mjs +27 -0
- package/{esm2020 → esm2022}/scrolling/scrolling.module.mjs +9 -9
- package/{esm2020 → esm2022}/scrolling/virtual-for-of.directive.mjs +4 -4
- package/esm2022/scrolling/virtual-scroll-viewport.component.mjs +26 -0
- package/esm2022/select/base-select.mjs +345 -0
- package/{esm2020 → esm2022}/select/helper-directives.mjs +7 -7
- package/esm2022/select/multi-select/multi-select.component.mjs +318 -0
- package/esm2022/select/option/option.component.mjs +119 -0
- package/esm2022/select/option-group/option-group.component.mjs +25 -0
- package/{esm2020 → esm2022}/select/option-placeholder.component.mjs +4 -4
- package/esm2022/select/select.component.mjs +107 -0
- package/{esm2020 → esm2022}/select/select.module.mjs +29 -29
- package/esm2022/select/validators.mjs +78 -0
- package/esm2022/shared/click-outside.directive.mjs +29 -0
- package/{esm2020 → esm2022}/shared/shared.module.mjs +5 -5
- package/esm2022/sort/sort-header.component.mjs +74 -0
- package/esm2022/sort/sort.directive.mjs +73 -0
- package/{esm2020 → esm2022}/sort/sort.module.mjs +5 -5
- package/esm2022/status-bar/status-bar.component.mjs +28 -0
- package/{esm2020 → esm2022}/status-bar/status-bar.module.mjs +5 -5
- package/esm2022/steps/steps.component.mjs +180 -0
- package/{esm2020 → esm2022}/steps/steps.module.mjs +5 -5
- package/esm2022/switch/switch.component.mjs +43 -0
- package/{esm2020 → esm2022}/switch/switch.module.mjs +5 -5
- package/esm2022/table/table-cell-def.directive.mjs +25 -0
- package/esm2022/table/table-cell.component.mjs +115 -0
- package/{esm2020 → esm2022}/table/table-cell.directive.mjs +5 -5
- package/esm2022/table/table-column-def.directive.mjs +31 -0
- package/esm2022/table/table-header-cell-def.directive.mjs +25 -0
- package/{esm2020 → esm2022}/table/table-header-cell.directive.mjs +4 -4
- package/esm2022/table/table-header-row-def.directive.mjs +33 -0
- package/{esm2020 → esm2022}/table/table-header-row.component.mjs +4 -4
- package/esm2022/table/table-placeholder.directive.mjs +33 -0
- package/esm2022/table/table-row-def.directive.mjs +34 -0
- package/esm2022/table/table-row.component.mjs +43 -0
- package/esm2022/table/table-scroll.directive.mjs +133 -0
- package/esm2022/table/table.component.mjs +79 -0
- package/{esm2020 → esm2022}/table/table.module.mjs +35 -35
- package/{esm2020 → esm2022}/table-of-contents/table-of-contents.module.mjs +5 -5
- package/esm2022/table-of-contents/toc-container.directive.mjs +111 -0
- package/esm2022/table-of-contents/toc-content.directive.mjs +39 -0
- package/esm2022/table-of-contents/toc-link.directive.mjs +48 -0
- package/esm2022/tabs/tab-body.component.mjs +151 -0
- package/esm2022/tabs/tab-context.service.mjs +30 -0
- package/esm2022/tabs/tab-group.component.mjs +256 -0
- package/esm2022/tabs/tab-header-active-indicator.component.mjs +46 -0
- package/esm2022/tabs/tab-header.component.mjs +276 -0
- package/esm2022/tabs/tab.component.mjs +77 -0
- package/{esm2020 → esm2022}/tabs/tabs.module.mjs +34 -34
- package/esm2022/tag/check-tag/check-tag.component.mjs +31 -0
- package/esm2022/tag/tag.component.mjs +63 -0
- package/{esm2020 → esm2022}/tag/tag.module.mjs +5 -5
- package/{esm2020 → esm2022}/theme/theme.module.mjs +5 -5
- package/esm2022/theme/theme.pipe.mjs +64 -0
- package/esm2022/theme/theme.service.mjs +55 -0
- package/esm2022/time-picker/component.mjs +181 -0
- package/esm2022/time-picker/panel/panel.component.mjs +240 -0
- package/{esm2020 → esm2022}/time-picker/time-picker.module.mjs +23 -23
- package/esm2022/tooltip/base-tooltip.mjs +329 -0
- package/esm2022/tooltip/tooltip-active.directive.mjs +51 -0
- package/esm2022/tooltip/tooltip-copy.directive.mjs +87 -0
- package/esm2022/tooltip/tooltip-intl.mjs +21 -0
- package/esm2022/tooltip/tooltip.component.mjs +120 -0
- package/esm2022/tooltip/tooltip.directive.mjs +44 -0
- package/{esm2020 → esm2022}/tooltip/tooltip.module.mjs +8 -8
- package/{esm2020 → esm2022}/tree-select/tree-node-placeholder.component.mjs +4 -4
- package/esm2022/tree-select/tree-select.component.mjs +350 -0
- package/{esm2020 → esm2022}/tree-select/tree-select.module.mjs +9 -9
- package/esm2022/utils/bem.mjs +44 -0
- package/{fesm2020 → fesm2022}/alauda-ui.mjs +2204 -1887
- package/fesm2022/alauda-ui.mjs.map +1 -0
- package/form/common-form.d.ts +1 -1
- package/form/form-item/form-item.component.d.ts +1 -1
- package/form/form.directive.d.ts +1 -1
- package/form/helper-directives.d.ts +1 -1
- package/icon/icon.component.d.ts +1 -1
- package/inline-alert/inline-alert.component.d.ts +1 -1
- package/input/autosize.directive.d.ts +1 -1
- package/input/input.component.d.ts +1 -1
- package/input/number-input/number-input.component.d.ts +1 -1
- package/input/search/search.component.d.ts +1 -1
- package/input/tags-input/tags-input.component.d.ts +1 -1
- package/package.json +11 -17
- package/paginator/paginator.component.d.ts +1 -1
- package/radio/base-radio.d.ts +1 -1
- package/radio/radio-group/radio-group.component.d.ts +1 -1
- package/scrolling/fixed-size-table-virtual-scroll.directive.d.ts +1 -1
- package/scrolling/virtual-for-of.directive.d.ts +1 -1
- package/select/base-select.d.ts +1 -1
- package/select/multi-select/multi-select.component.d.ts +1 -1
- package/select/option/option.component.d.ts +1 -1
- package/select/validators.d.ts +1 -1
- package/sort/sort-header.component.d.ts +1 -1
- package/sort/sort.directive.d.ts +1 -1
- package/status-bar/status-bar.component.d.ts +1 -1
- package/steps/steps.component.d.ts +1 -1
- package/switch/switch.component.d.ts +1 -1
- package/table/table-cell.component.d.ts +2 -2
- package/table/table-cell.directive.d.ts +1 -1
- package/table/table-column-def.directive.d.ts +1 -1
- package/table/table-header-row-def.directive.d.ts +1 -1
- package/table/table-row-def.directive.d.ts +1 -1
- package/table/table-row.component.d.ts +1 -1
- package/table/table-scroll.directive.d.ts +2 -2
- package/table/table.component.d.ts +1 -1
- package/table-of-contents/toc-content.directive.d.ts +1 -1
- package/table-of-contents/toc-link.directive.d.ts +1 -1
- package/tabs/tab-body.component.d.ts +2 -2
- package/tabs/tab-group.component.d.ts +1 -1
- package/tabs/tab-header-active-indicator.component.d.ts +1 -1
- package/tabs/tab-header.component.d.ts +1 -1
- package/tabs/tab.component.d.ts +1 -1
- package/tag/check-tag/check-tag.component.d.ts +1 -1
- package/tag/tag.component.d.ts +1 -1
- package/theme/_var.scss +1 -1
- package/time-picker/component.d.ts +1 -1
- package/time-picker/panel/panel.component.d.ts +1 -1
- package/tooltip/tooltip-active.directive.d.ts +1 -1
- package/tooltip/tooltip-copy.directive.d.ts +1 -1
- package/tooltip/tooltip.directive.d.ts +1 -1
- package/tree-select/tree-select.component.d.ts +2 -2
- package/esm2020/accordion/accordion-item/accordion-item.component.mjs +0 -71
- package/esm2020/accordion/accordion.component.mjs +0 -27
- package/esm2020/anchor/anchor.component.mjs +0 -137
- package/esm2020/anchor/anchor.directive.mjs +0 -182
- package/esm2020/autocomplete/autocomplete.component.mjs +0 -64
- package/esm2020/autocomplete/autocomplete.directive.mjs +0 -277
- package/esm2020/autocomplete/suggestion/suggestion.component.mjs +0 -79
- package/esm2020/autocomplete/suggestion-group/suggestion-group.component.mjs +0 -23
- package/esm2020/back-top/back-top.component.mjs +0 -65
- package/esm2020/breadcrumb/breadcrumb-item.component.mjs +0 -32
- package/esm2020/breadcrumb/breadcrumb.component.mjs +0 -57
- package/esm2020/button/button.component.mjs +0 -121
- package/esm2020/card/card.component.mjs +0 -16
- package/esm2020/card/helper-directives.mjs +0 -48
- package/esm2020/checkbox/checkbox-group/checkbox-group.component.mjs +0 -61
- package/esm2020/checkbox/checkbox.component.mjs +0 -112
- package/esm2020/color-picker/color-picker.component.mjs +0 -28
- package/esm2020/date-picker/calendar/date-picker-panel/component.mjs +0 -128
- package/esm2020/date-picker/calendar/footer/component.mjs +0 -29
- package/esm2020/date-picker/calendar/header/component.mjs +0 -99
- package/esm2020/date-picker/calendar/panel/picker-panel.mjs +0 -151
- package/esm2020/date-picker/calendar/range-picker-panel/component.mjs +0 -207
- package/esm2020/date-picker/calendar/util.mjs +0 -145
- package/esm2020/date-picker/date-picker/date-picker.component.mjs +0 -110
- package/esm2020/date-picker/range-picker/range-picker.component.mjs +0 -86
- package/esm2020/date-picker/trigger/trigger.component.mjs +0 -69
- package/esm2020/dialog/confirm-dialog/confirm-dialog-config.mjs +0 -12
- package/esm2020/dialog/confirm-dialog/confirm-dialog.component.mjs +0 -85
- package/esm2020/dialog/dialog-config.mjs +0 -15
- package/esm2020/dialog/dialog-content/dialog-close.directive.mjs +0 -38
- package/esm2020/dialog/dialog-content/dialog-footer.component.mjs +0 -15
- package/esm2020/dialog/dialog-content/dialog-header.component.mjs +0 -39
- package/esm2020/dialog/dialog-ref.mjs +0 -48
- package/esm2020/dialog/dialog.component.mjs +0 -155
- package/esm2020/dialog/dialog.service.mjs +0 -134
- package/esm2020/drawer/component/drawer.component.mjs +0 -229
- package/esm2020/drawer/drawer.service.mjs +0 -44
- package/esm2020/dropdown/dropdown-active.directive.mjs +0 -21
- package/esm2020/dropdown/dropdown-button/dropdown-button.component.mjs +0 -51
- package/esm2020/dropdown/dropdown.directive.mjs +0 -81
- package/esm2020/dropdown/menu/menu-content.directive.mjs +0 -51
- package/esm2020/dropdown/menu/menu.component.mjs +0 -33
- package/esm2020/dropdown/menu-item/menu-item.component.mjs +0 -37
- package/esm2020/dropdown/submenu/submenu.component.mjs +0 -40
- package/esm2020/form/common-form.mjs +0 -84
- package/esm2020/form/form-item/form-item.component.mjs +0 -108
- package/esm2020/form/form.directive.mjs +0 -69
- package/esm2020/form/helper-directives.mjs +0 -80
- package/esm2020/i18n/i18n.pipe.mjs +0 -20
- package/esm2020/i18n/i18n.service.mjs +0 -43
- package/esm2020/icon/icon-register.service.mjs +0 -73
- package/esm2020/icon/icon.component.mjs +0 -65
- package/esm2020/inline-alert/inline-alert.component.mjs +0 -53
- package/esm2020/input/autosize.directive.mjs +0 -54
- package/esm2020/input/helper-directives.mjs +0 -43
- package/esm2020/input/input-group/input-group.component.mjs +0 -39
- package/esm2020/input/input.component.mjs +0 -57
- package/esm2020/input/number-input/number-input.component.mjs +0 -112
- package/esm2020/input/search/search.component.mjs +0 -88
- package/esm2020/input/tags-input/tags-input.component.mjs +0 -255
- package/esm2020/message/base-message.mjs +0 -90
- package/esm2020/message/message-wrapper.component.mjs +0 -14
- package/esm2020/message/message.component.mjs +0 -70
- package/esm2020/message/message.config.mjs +0 -16
- package/esm2020/notification/notification-wrapper.component.mjs +0 -16
- package/esm2020/notification/notification.component.mjs +0 -103
- package/esm2020/paginator/paginator-intl.mjs +0 -26
- package/esm2020/paginator/paginator.component.mjs +0 -117
- package/esm2020/radio/base-radio.mjs +0 -67
- package/esm2020/radio/radio-button/radio-button.component.mjs +0 -41
- package/esm2020/radio/radio-group/radio-group.component.mjs +0 -73
- package/esm2020/scrolling/fixed-size-table-virtual-scroll.directive.mjs +0 -119
- package/esm2020/scrolling/fixed-size-virtual-scroll.directive.mjs +0 -27
- package/esm2020/scrolling/virtual-scroll-viewport.component.mjs +0 -26
- package/esm2020/select/base-select.mjs +0 -334
- package/esm2020/select/multi-select/multi-select.component.mjs +0 -310
- package/esm2020/select/option/option.component.mjs +0 -112
- package/esm2020/select/option-group/option-group.component.mjs +0 -23
- package/esm2020/select/select.component.mjs +0 -107
- package/esm2020/select/validators.mjs +0 -75
- package/esm2020/shared/click-outside.directive.mjs +0 -28
- package/esm2020/sort/sort-header.component.mjs +0 -68
- package/esm2020/sort/sort.directive.mjs +0 -74
- package/esm2020/status-bar/status-bar.component.mjs +0 -29
- package/esm2020/steps/steps.component.mjs +0 -180
- package/esm2020/switch/switch.component.mjs +0 -46
- package/esm2020/table/table-cell-def.directive.mjs +0 -25
- package/esm2020/table/table-cell.component.mjs +0 -121
- package/esm2020/table/table-column-def.directive.mjs +0 -31
- package/esm2020/table/table-header-cell-def.directive.mjs +0 -25
- package/esm2020/table/table-header-row-def.directive.mjs +0 -35
- package/esm2020/table/table-placeholder.directive.mjs +0 -30
- package/esm2020/table/table-row-def.directive.mjs +0 -37
- package/esm2020/table/table-row.component.mjs +0 -42
- package/esm2020/table/table-scroll.directive.mjs +0 -133
- package/esm2020/table/table.component.mjs +0 -76
- package/esm2020/table-of-contents/toc-container.directive.mjs +0 -109
- package/esm2020/table-of-contents/toc-content.directive.mjs +0 -35
- package/esm2020/table-of-contents/toc-link.directive.mjs +0 -44
- package/esm2020/tabs/tab-body.component.mjs +0 -147
- package/esm2020/tabs/tab-context.service.mjs +0 -28
- package/esm2020/tabs/tab-group.component.mjs +0 -246
- package/esm2020/tabs/tab-header-active-indicator.component.mjs +0 -44
- package/esm2020/tabs/tab-header.component.mjs +0 -264
- package/esm2020/tabs/tab.component.mjs +0 -71
- package/esm2020/tag/check-tag/check-tag.component.mjs +0 -33
- package/esm2020/tag/tag.component.mjs +0 -65
- package/esm2020/theme/theme.pipe.mjs +0 -69
- package/esm2020/theme/theme.service.mjs +0 -52
- package/esm2020/time-picker/component.mjs +0 -179
- package/esm2020/time-picker/panel/panel.component.mjs +0 -228
- package/esm2020/tooltip/base-tooltip.mjs +0 -318
- package/esm2020/tooltip/tooltip-active.directive.mjs +0 -49
- package/esm2020/tooltip/tooltip-copy.directive.mjs +0 -82
- package/esm2020/tooltip/tooltip-intl.mjs +0 -23
- package/esm2020/tooltip/tooltip.component.mjs +0 -107
- package/esm2020/tooltip/tooltip.directive.mjs +0 -47
- package/esm2020/tree-select/tree-select.component.mjs +0 -339
- package/esm2020/utils/bem.mjs +0 -43
- package/fesm2015/alauda-ui.mjs +0 -11686
- package/fesm2015/alauda-ui.mjs.map +0 -1
- package/fesm2020/alauda-ui.mjs.map +0 -1
- /package/{esm2020 → esm2022}/accordion/index.mjs +0 -0
- /package/{esm2020 → esm2022}/alauda-ui.mjs +0 -0
- /package/{esm2020 → esm2022}/anchor/index.mjs +0 -0
- /package/{esm2020 → esm2022}/anchor/types.mjs +0 -0
- /package/{esm2020 → esm2022}/anchor/utils.mjs +0 -0
- /package/{esm2020 → esm2022}/autocomplete/autocomplete.types.mjs +0 -0
- /package/{esm2020 → esm2022}/autocomplete/index.mjs +0 -0
- /package/{esm2020 → esm2022}/back-top/index.mjs +0 -0
- /package/{esm2020 → esm2022}/breadcrumb/index.mjs +0 -0
- /package/{esm2020 → esm2022}/button/button.types.mjs +0 -0
- /package/{esm2020 → esm2022}/button/index.mjs +0 -0
- /package/{esm2020 → esm2022}/card/index.mjs +0 -0
- /package/{esm2020 → esm2022}/checkbox/index.mjs +0 -0
- /package/{esm2020 → esm2022}/color-picker/index.mjs +0 -0
- /package/{esm2020 → esm2022}/core/animation/animation-consts.mjs +0 -0
- /package/{esm2020 → esm2022}/date-picker/calendar/constant.mjs +0 -0
- /package/{esm2020 → esm2022}/date-picker/date-picker.type.mjs +0 -0
- /package/{esm2020 → esm2022}/date-picker/index.mjs +0 -0
- /package/{esm2020 → esm2022}/dialog/dialog-animations.mjs +0 -0
- /package/{esm2020 → esm2022}/dialog/dialog.types.mjs +0 -0
- /package/{esm2020 → esm2022}/dialog/index.mjs +0 -0
- /package/{esm2020 → esm2022}/dialog/utils/errors.mjs +0 -0
- /package/{esm2020 → esm2022}/dialog/utils/index.mjs +0 -0
- /package/{esm2020 → esm2022}/drawer/component/drawer-ref.mjs +0 -0
- /package/{esm2020 → esm2022}/drawer/index.mjs +0 -0
- /package/{esm2020 → esm2022}/dropdown/dropdown.types.mjs +0 -0
- /package/{esm2020 → esm2022}/dropdown/index.mjs +0 -0
- /package/{esm2020 → esm2022}/form/form.types.mjs +0 -0
- /package/{esm2020 → esm2022}/form/index.mjs +0 -0
- /package/{esm2020 → esm2022}/i18n/i18n.type.mjs +0 -0
- /package/{esm2020 → esm2022}/i18n/index.mjs +0 -0
- /package/{esm2020 → esm2022}/i18n/language/en.mjs +0 -0
- /package/{esm2020 → esm2022}/i18n/language/zh.mjs +0 -0
- /package/{esm2020 → esm2022}/icon/icons.mjs +0 -0
- /package/{esm2020 → esm2022}/icon/index.mjs +0 -0
- /package/{esm2020 → esm2022}/icon/utils.mjs +0 -0
- /package/{esm2020 → esm2022}/index.mjs +0 -0
- /package/{esm2020 → esm2022}/inline-alert/index.mjs +0 -0
- /package/{esm2020 → esm2022}/inline-alert/inline-alert.types.mjs +0 -0
- /package/{esm2020 → esm2022}/input/index.mjs +0 -0
- /package/{esm2020 → esm2022}/input/tags-input/with-max-row-count.mjs +0 -0
- /package/{esm2020 → esm2022}/input/utils/index.mjs +0 -0
- /package/{esm2020 → esm2022}/message/index.mjs +0 -0
- /package/{esm2020 → esm2022}/message/message-animations.mjs +0 -0
- /package/{esm2020 → esm2022}/notification/index.mjs +0 -0
- /package/{esm2020 → esm2022}/notification/notification.config.mjs +0 -0
- /package/{esm2020 → esm2022}/paginator/index.mjs +0 -0
- /package/{esm2020 → esm2022}/radio/index.mjs +0 -0
- /package/{esm2020 → esm2022}/radio/radio.types.mjs +0 -0
- /package/{esm2020 → esm2022}/scrolling/index.mjs +0 -0
- /package/{esm2020 → esm2022}/select/index.mjs +0 -0
- /package/{esm2020 → esm2022}/select/select.types.mjs +0 -0
- /package/{esm2020 → esm2022}/sort/index.mjs +0 -0
- /package/{esm2020 → esm2022}/sort/sort-errors.mjs +0 -0
- /package/{esm2020 → esm2022}/sort/sort.types.mjs +0 -0
- /package/{esm2020 → esm2022}/status-bar/index.mjs +0 -0
- /package/{esm2020 → esm2022}/status-bar/status-bar.types.mjs +0 -0
- /package/{esm2020 → esm2022}/steps/index.mjs +0 -0
- /package/{esm2020 → esm2022}/steps/types.mjs +0 -0
- /package/{esm2020 → esm2022}/switch/index.mjs +0 -0
- /package/{esm2020 → esm2022}/table/index.mjs +0 -0
- /package/{esm2020 → esm2022}/table-of-contents/index.mjs +0 -0
- /package/{esm2020 → esm2022}/tabs/index.mjs +0 -0
- /package/{esm2020 → esm2022}/tabs/tabs.types.mjs +0 -0
- /package/{esm2020 → esm2022}/tag/index.mjs +0 -0
- /package/{esm2020 → esm2022}/tag/tag.types.mjs +0 -0
- /package/{esm2020 → esm2022}/theme/index.mjs +0 -0
- /package/{esm2020 → esm2022}/theme/theme.types.mjs +0 -0
- /package/{esm2020 → esm2022}/theme/utils.mjs +0 -0
- /package/{esm2020 → esm2022}/time-picker/constant.mjs +0 -0
- /package/{esm2020 → esm2022}/time-picker/index.mjs +0 -0
- /package/{esm2020 → esm2022}/time-picker/time-picker.type.mjs +0 -0
- /package/{esm2020 → esm2022}/tooltip/index.mjs +0 -0
- /package/{esm2020 → esm2022}/tooltip/tooltip.types.mjs +0 -0
- /package/{esm2020 → esm2022}/tooltip/utils/index.mjs +0 -0
- /package/{esm2020 → esm2022}/tree-select/index.mjs +0 -0
- /package/{esm2020 → esm2022}/tree-select/tree-select.types.mjs +0 -0
- /package/{esm2020 → esm2022}/types.mjs +0 -0
- /package/{esm2020 → esm2022}/utils/animations.mjs +0 -0
- /package/{esm2020 → esm2022}/utils/async.mjs +0 -0
- /package/{esm2020 → esm2022}/utils/coercion.mjs +0 -0
- /package/{esm2020 → esm2022}/utils/fn.mjs +0 -0
- /package/{esm2020 → esm2022}/utils/index.mjs +0 -0
- /package/{esm2020 → esm2022}/utils/observe-dom.mjs +0 -0
- /package/{esm2020 → esm2022}/utils/operators.mjs +0 -0
- /package/{esm2020 → esm2022}/utils/scroll-into-view.mjs +0 -0
- /package/{esm2020 → esm2022}/utils/watch-content-exist.mjs +0 -0
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import { Directive, EventEmitter, Input, Output, isDevMode, } from '@angular/core';
|
|
2
|
-
import { Subject } from 'rxjs';
|
|
3
|
-
import { getSortDuplicateSortableIdError, getSortHeaderMissingIdError, getSortInvalidDirectionError, } from './sort-errors';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export class SortDirective {
|
|
6
|
-
constructor() {
|
|
7
|
-
this.sortables = new Map();
|
|
8
|
-
this._stateChanges = new Subject();
|
|
9
|
-
this.start = 'asc';
|
|
10
|
-
this._direction = '';
|
|
11
|
-
this.sortChange = new EventEmitter();
|
|
12
|
-
}
|
|
13
|
-
get direction() {
|
|
14
|
-
return this._direction;
|
|
15
|
-
}
|
|
16
|
-
set direction(direction) {
|
|
17
|
-
if (isDevMode() &&
|
|
18
|
-
direction &&
|
|
19
|
-
direction !== 'asc' &&
|
|
20
|
-
direction !== 'desc') {
|
|
21
|
-
throw getSortInvalidDirectionError(direction);
|
|
22
|
-
}
|
|
23
|
-
this._direction = direction;
|
|
24
|
-
}
|
|
25
|
-
register(sortable) {
|
|
26
|
-
if (!sortable.id) {
|
|
27
|
-
throw getSortHeaderMissingIdError();
|
|
28
|
-
}
|
|
29
|
-
if (this.sortables.has(sortable.id)) {
|
|
30
|
-
throw getSortDuplicateSortableIdError(sortable.id);
|
|
31
|
-
}
|
|
32
|
-
this.sortables.set(sortable.id, sortable);
|
|
33
|
-
}
|
|
34
|
-
deregister(sortable) {
|
|
35
|
-
this.sortables.delete(sortable.id);
|
|
36
|
-
}
|
|
37
|
-
sort(sortable) {
|
|
38
|
-
if (this.active !== sortable.id) {
|
|
39
|
-
this.active = sortable.id;
|
|
40
|
-
this.direction = sortable.start ? sortable.start : this.start;
|
|
41
|
-
}
|
|
42
|
-
else {
|
|
43
|
-
this.direction = this.direction === 'asc' ? 'desc' : 'asc';
|
|
44
|
-
}
|
|
45
|
-
this.sortChange.emit({
|
|
46
|
-
active: this.active,
|
|
47
|
-
direction: this.direction,
|
|
48
|
-
});
|
|
49
|
-
}
|
|
50
|
-
ngOnChanges() {
|
|
51
|
-
this._stateChanges.next();
|
|
52
|
-
}
|
|
53
|
-
ngOnDestroy() {
|
|
54
|
-
this._stateChanges.complete();
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
SortDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SortDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
58
|
-
SortDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.9", type: SortDirective, selector: "[auiSort]", inputs: { active: "active", start: "start", direction: "direction" }, outputs: { sortChange: "sortChange" }, exportAs: ["auiSort"], usesOnChanges: true, ngImport: i0 });
|
|
59
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SortDirective, decorators: [{
|
|
60
|
-
type: Directive,
|
|
61
|
-
args: [{
|
|
62
|
-
selector: '[auiSort]',
|
|
63
|
-
exportAs: 'auiSort',
|
|
64
|
-
}]
|
|
65
|
-
}], propDecorators: { active: [{
|
|
66
|
-
type: Input
|
|
67
|
-
}], start: [{
|
|
68
|
-
type: Input
|
|
69
|
-
}], direction: [{
|
|
70
|
-
type: Input
|
|
71
|
-
}], sortChange: [{
|
|
72
|
-
type: Output
|
|
73
|
-
}] } });
|
|
74
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic29ydC5kaXJlY3RpdmUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvc29ydC9zb3J0LmRpcmVjdGl2ZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFFQSxPQUFPLEVBQ0wsU0FBUyxFQUNULFlBQVksRUFDWixLQUFLLEVBR0wsTUFBTSxFQUNOLFNBQVMsR0FDVixNQUFNLGVBQWUsQ0FBQztBQUN2QixPQUFPLEVBQUUsT0FBTyxFQUFFLE1BQU0sTUFBTSxDQUFDO0FBRS9CLE9BQU8sRUFDTCwrQkFBK0IsRUFDL0IsMkJBQTJCLEVBQzNCLDRC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vcnRhYmxlLmlkKTtcbiAgfVxuXG4gIHNvcnQoc29ydGFibGU6IFNvcnRhYmxlKTogdm9pZCB7XG4gICAgaWYgKHRoaXMuYWN0aXZlICE9PSBzb3J0YWJsZS5pZCkge1xuICAgICAgdGhpcy5hY3RpdmUgPSBzb3J0YWJsZS5pZDtcbiAgICAgIHRoaXMuZGlyZWN0aW9uID0gc29ydGFibGUuc3RhcnQgPyBzb3J0YWJsZS5zdGFydCA6IHRoaXMuc3RhcnQ7XG4gICAgfSBlbHNlIHtcbiAgICAgIHRoaXMuZGlyZWN0aW9uID0gdGhpcy5kaXJlY3Rpb24gPT09ICdhc2MnID8gJ2Rlc2MnIDogJ2FzYyc7XG4gICAgfVxuXG4gICAgdGhpcy5zb3J0Q2hhbmdlLmVtaXQoe1xuICAgICAgYWN0aXZlOiB0aGlzLmFjdGl2ZSxcbiAgICAgIGRpcmVjdGlvbjogdGhpcy5kaXJlY3Rpb24sXG4gICAgfSk7XG4gIH1cblxuICBuZ09uQ2hhbmdlcygpIHtcbiAgICB0aGlzLl9zdGF0ZUNoYW5nZXMubmV4dCgpO1xuICB9XG5cbiAgbmdPbkRlc3Ryb3koKSB7XG4gICAgdGhpcy5fc3RhdGVDaGFuZ2VzLmNvbXBsZXRlKCk7XG4gIH1cbn1cbiJdfQ==
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectionStrategy, Component, EventEmitter, Input, Output, ViewEncapsulation, } from '@angular/core';
|
|
2
|
-
import { buildBem } from '../utils';
|
|
3
|
-
import { StatusBarSize } from './status-bar.types';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
import * as i1 from "@angular/common";
|
|
6
|
-
import * as i2 from "../tooltip/tooltip.directive";
|
|
7
|
-
export class StatusBarComponent {
|
|
8
|
-
constructor() {
|
|
9
|
-
this.bem = buildBem('aui-status-bar');
|
|
10
|
-
this.status = [];
|
|
11
|
-
this.size = StatusBarSize.Medium;
|
|
12
|
-
this.statusClick = new EventEmitter();
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
StatusBarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: StatusBarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
16
|
-
StatusBarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: StatusBarComponent, selector: "aui-status-bar", inputs: { status: "status", size: "size", template: "template" }, outputs: { statusClick: "statusClick" }, ngImport: i0, template: "<div [class]=\"bem.block(size)\">\n <ng-container *ngFor=\"let item of status\">\n <div\n *ngIf=\"item.scale\"\n [ngClass]=\"[bem.element('chunk', item.type), item.class || '']\"\n [style.width]=\"item.scale * 100 + '%'\"\n (click)=\"statusClick.emit(item)\"\n [auiTooltip]=\"template\"\n [auiTooltipContext]=\"item\"\n ></div>\n </ng-container>\n</div>\n", styles: [".aui-status-bar{display:inline-flex;overflow:hidden;width:100%;vertical-align:middle;border-radius:5px}.aui-status-bar--medium{height:10px}.aui-status-bar--small{height:8px;border-radius:4px}.aui-status-bar--small .aui-status-bar__chunk:first-child{border-top-left-radius:4px;border-bottom-left-radius:4px}.aui-status-bar--small .aui-status-bar__chunk:last-child{border-top-right-radius:4px;border-bottom-right-radius:4px}.aui-status-bar__chunk{min-width:2px;height:100%;flex:1 1 1;border-radius:var(--aui-border-radius-m)}.aui-status-bar__chunk:first-child{border-top-left-radius:5px;border-bottom-left-radius:5px}.aui-status-bar__chunk:last-child{border-top-right-radius:5px;border-bottom-right-radius:5px}.aui-status-bar__chunk--primary{background-color:rgb(var(--aui-color-primary))}.aui-status-bar__chunk--primary:hover{background-color:rgb(var(--aui-color-p-2))}.aui-status-bar__chunk--success{background-color:rgb(var(--aui-color-green))}.aui-status-bar__chunk--success:hover{background-color:rgb(var(--aui-color-g-2))}.aui-status-bar__chunk--warning{background-color:rgb(var(--aui-color-yellow))}.aui-status-bar__chunk--warning:hover{background-color:rgb(var(--aui-color-y-2))}.aui-status-bar__chunk--error{background-color:rgb(var(--aui-color-red))}.aui-status-bar__chunk--error:hover{background-color:rgb(var(--aui-color-r-2))}.aui-status-bar__chunk--info{background-color:rgb(var(--aui-color-n-4))}.aui-status-bar__chunk--info:hover{background-color:rgb(var(--aui-color-n-6))}.aui-status-bar__chunk--pending{height:var(--aui-inline-height-m);animation:pending .5s linear infinite;background:repeating-linear-gradient(-60deg,rgb(var(--aui-color-b-5)),rgb(var(--aui-color-b-5)) var(--aui-spacing-s),rgb(var(--aui-color-b-6)) var(--aui-spacing-s),rgb(var(--aui-color-b-6)) var(--aui-spacing-m))}.aui-status-bar__chunk+.aui-status-bar__chunk{margin-left:var(--aui-spacing-xs)}@keyframes pending{0%{transform:translateY(-50%)}to{transform:translateY(0)}}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.TooltipDirective, selector: "[auiTooltip]", inputs: ["auiTooltip", "auiTooltipContext", "auiTooltipClass", "auiTooltipType", "auiTooltipPosition", "auiTooltipTrigger", "auiTooltipDisabled", "auiTooltipHideOnClick", "auiDisableAnimation"], outputs: ["auiTooltipVisibleChange"], exportAs: ["auiTooltip"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
17
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: StatusBarComponent, decorators: [{
|
|
18
|
-
type: Component,
|
|
19
|
-
args: [{ selector: 'aui-status-bar', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, preserveWhitespaces: false, template: "<div [class]=\"bem.block(size)\">\n <ng-container *ngFor=\"let item of status\">\n <div\n *ngIf=\"item.scale\"\n [ngClass]=\"[bem.element('chunk', item.type), item.class || '']\"\n [style.width]=\"item.scale * 100 + '%'\"\n (click)=\"statusClick.emit(item)\"\n [auiTooltip]=\"template\"\n [auiTooltipContext]=\"item\"\n ></div>\n </ng-container>\n</div>\n", styles: [".aui-status-bar{display:inline-flex;overflow:hidden;width:100%;vertical-align:middle;border-radius:5px}.aui-status-bar--medium{height:10px}.aui-status-bar--small{height:8px;border-radius:4px}.aui-status-bar--small .aui-status-bar__chunk:first-child{border-top-left-radius:4px;border-bottom-left-radius:4px}.aui-status-bar--small .aui-status-bar__chunk:last-child{border-top-right-radius:4px;border-bottom-right-radius:4px}.aui-status-bar__chunk{min-width:2px;height:100%;flex:1 1 1;border-radius:var(--aui-border-radius-m)}.aui-status-bar__chunk:first-child{border-top-left-radius:5px;border-bottom-left-radius:5px}.aui-status-bar__chunk:last-child{border-top-right-radius:5px;border-bottom-right-radius:5px}.aui-status-bar__chunk--primary{background-color:rgb(var(--aui-color-primary))}.aui-status-bar__chunk--primary:hover{background-color:rgb(var(--aui-color-p-2))}.aui-status-bar__chunk--success{background-color:rgb(var(--aui-color-green))}.aui-status-bar__chunk--success:hover{background-color:rgb(var(--aui-color-g-2))}.aui-status-bar__chunk--warning{background-color:rgb(var(--aui-color-yellow))}.aui-status-bar__chunk--warning:hover{background-color:rgb(var(--aui-color-y-2))}.aui-status-bar__chunk--error{background-color:rgb(var(--aui-color-red))}.aui-status-bar__chunk--error:hover{background-color:rgb(var(--aui-color-r-2))}.aui-status-bar__chunk--info{background-color:rgb(var(--aui-color-n-4))}.aui-status-bar__chunk--info:hover{background-color:rgb(var(--aui-color-n-6))}.aui-status-bar__chunk--pending{height:var(--aui-inline-height-m);animation:pending .5s linear infinite;background:repeating-linear-gradient(-60deg,rgb(var(--aui-color-b-5)),rgb(var(--aui-color-b-5)) var(--aui-spacing-s),rgb(var(--aui-color-b-6)) var(--aui-spacing-s),rgb(var(--aui-color-b-6)) var(--aui-spacing-m))}.aui-status-bar__chunk+.aui-status-bar__chunk{margin-left:var(--aui-spacing-xs)}@keyframes pending{0%{transform:translateY(-50%)}to{transform:translateY(0)}}\n"] }]
|
|
20
|
-
}], propDecorators: { status: [{
|
|
21
|
-
type: Input
|
|
22
|
-
}], size: [{
|
|
23
|
-
type: Input
|
|
24
|
-
}], template: [{
|
|
25
|
-
type: Input
|
|
26
|
-
}], statusClick: [{
|
|
27
|
-
type: Output
|
|
28
|
-
}] } });
|
|
29
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3RhdHVzLWJhci5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvc3RhdHVzLWJhci9zdGF0dXMtYmFyLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uL3NyYy9zdGF0dXMtYmFyL3N0YXR1cy1iYXIuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUNMLHVCQUF1QixFQUN2QixTQUFTLEVBQ1QsWUFBWSxFQUNaLEtBQUssRUFDTCxNQUFNLEVBRU4saUJBQWlCLEdBQ2xCLE1BQU0sZUFBZSxDQUFDO0FBRXZCLE9BQU8sRUFBTyxRQUFRLEVBQUUsTUFBTSxVQUFVLENBQUM7QUFFekMsT0FBTyxFQUFVLGFBQWEsRUFBRSxNQUFNLG9CQUFvQixDQUFDOzs7O0FBVTNELE1BQU0sT0FBTyxrQkFBa0I7SUFSL0I7UUFTRSxRQUFHLEdBQVEsUUFBUSxDQUFDLGdCQUFnQixDQUFDLENBQUM7UUFHdEMsV0FBTSxHQUFhLEVBQUUsQ0FBQztRQUd0QixTQUFJLEdBQWtCLGFBQWEsQ0FBQyxNQUFNLENBQUM7UUFNM0MsZ0JBQVcsR0FBRyxJQUFJLFlBQVksRUFBVSxDQUFDO0tBQzFDOzsrR0FkWSxrQkFB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BvbmVudCB7XG4gIGJlbTogQmVtID0gYnVpbGRCZW0oJ2F1aS1zdGF0dXMtYmFyJyk7XG5cbiAgQElucHV0KClcbiAgc3RhdHVzOiBTdGF0dXNbXSA9IFtdO1xuXG4gIEBJbnB1dCgpXG4gIHNpemU6IFN0YXR1c0JhclNpemUgPSBTdGF0dXNCYXJTaXplLk1lZGl1bTtcblxuICBASW5wdXQoKVxuICB0ZW1wbGF0ZTogVGVtcGxhdGVSZWY8YW55PjtcblxuICBAT3V0cHV0KClcbiAgc3RhdHVzQ2xpY2sgPSBuZXcgRXZlbnRFbWl0dGVyPFN0YXR1cz4oKTtcbn1cbiIsIjxkaXYgW2NsYXNzXT1cImJlbS5ibG9jayhzaXplKVwiPlxuICA8bmctY29udGFpbmVyICpuZ0Zvcj1cImxldCBpdGVtIG9mIHN0YXR1c1wiPlxuICAgIDxkaXZcbiAgICAgICpuZ0lmPVwiaXRlbS5zY2FsZVwiXG4gICAgICBbbmdDbGFzc109XCJbYmVtLmVsZW1lbnQoJ2NodW5rJywgaXRlbS50eXBlKSwgaXRlbS5jbGFzcyB8fCAnJ11cIlxuICAgICAgW3N0eWxlLndpZHRoXT1cIml0ZW0uc2NhbGUgKiAxMDAgKyAnJSdcIlxuICAgICAgKGNsaWNrKT1cInN0YXR1c0NsaWNrLmVtaXQoaXRlbSlcIlxuICAgICAgW2F1aVRvb2x0aXBdPVwidGVtcGxhdGVcIlxuICAgICAgW2F1aVRvb2x0aXBDb250ZXh0XT1cIml0ZW1cIlxuICAgID48L2Rpdj5cbiAgPC9uZy1jb250YWluZXI+XG48L2Rpdj5cbiJdfQ==
|
|
@@ -1,180 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectionStrategy, Component, EventEmitter, Input, Output, ViewEncapsulation, } from '@angular/core';
|
|
2
|
-
import { BehaviorSubject, Subject, takeUntil } from 'rxjs';
|
|
3
|
-
import { StepState } from './types';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
import * as i1 from "@angular/common";
|
|
6
|
-
import * as i2 from "../icon/icon.component";
|
|
7
|
-
const StepDefaultIcon = {
|
|
8
|
-
[StepState.Default]: 'number',
|
|
9
|
-
[StepState.Done]: 'check_circle',
|
|
10
|
-
[StepState.Error]: 'close_circle',
|
|
11
|
-
[StepState.Pending]: 'sync_circle',
|
|
12
|
-
};
|
|
13
|
-
const StepSelectedIcon = {
|
|
14
|
-
[StepState.Default]: 'number',
|
|
15
|
-
[StepState.Done]: 'check_circle_s',
|
|
16
|
-
[StepState.Error]: 'close_circle_s',
|
|
17
|
-
[StepState.Pending]: 'sync_circle_s',
|
|
18
|
-
};
|
|
19
|
-
export class StepsComponent {
|
|
20
|
-
constructor() {
|
|
21
|
-
this._steps = [];
|
|
22
|
-
this.linear = false;
|
|
23
|
-
this.orientation = 'horizontal';
|
|
24
|
-
this.type = 'step';
|
|
25
|
-
this.selectable = false;
|
|
26
|
-
this.currentIndexChange = new EventEmitter();
|
|
27
|
-
this.selectedIndexChange = new EventEmitter();
|
|
28
|
-
this.currentIndexChange$$ = new BehaviorSubject(0);
|
|
29
|
-
this.stepsChange$$ = new BehaviorSubject([]);
|
|
30
|
-
this.destroy$$ = new Subject();
|
|
31
|
-
}
|
|
32
|
-
get steps() {
|
|
33
|
-
return this._steps;
|
|
34
|
-
}
|
|
35
|
-
set steps(val) {
|
|
36
|
-
this._steps = val;
|
|
37
|
-
this.stepsChange$$.next(val);
|
|
38
|
-
}
|
|
39
|
-
get currentIndex() {
|
|
40
|
-
return this._currentIndex;
|
|
41
|
-
}
|
|
42
|
-
set currentIndex(index) {
|
|
43
|
-
this.currentIndexChange$$.next(index);
|
|
44
|
-
}
|
|
45
|
-
ngOnInit() {
|
|
46
|
-
this.currentIndexChange$$
|
|
47
|
-
.pipe(takeUntil(this.destroy$$))
|
|
48
|
-
.subscribe(index => {
|
|
49
|
-
if (this.type === 'step') {
|
|
50
|
-
this.setCurrentIndex(index);
|
|
51
|
-
}
|
|
52
|
-
});
|
|
53
|
-
this.stepsChange$$.pipe(takeUntil(this.destroy$$)).subscribe(steps => {
|
|
54
|
-
if (this.type === 'progress') {
|
|
55
|
-
this.getProgressCurrentIndex(steps);
|
|
56
|
-
}
|
|
57
|
-
});
|
|
58
|
-
}
|
|
59
|
-
setCurrentIndex(index) {
|
|
60
|
-
if (this.linear) {
|
|
61
|
-
if (this.steps?.length) {
|
|
62
|
-
const ret = Math.min(Math.max(0, index), this.steps.length - 1);
|
|
63
|
-
const reversedPrevSteps = this.steps.slice(0, ret).reverse();
|
|
64
|
-
const doneIndex = reversedPrevSteps.findIndex(step => step.state === StepState.Done || step.optional);
|
|
65
|
-
const lastDoneStepIndex = doneIndex > -1 ? reversedPrevSteps.length - doneIndex : 0;
|
|
66
|
-
this._currentIndex = this.selectedIndex = Math.min(lastDoneStepIndex, ret);
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
else {
|
|
70
|
-
this._currentIndex = this.selectedIndex = index;
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
getProgressCurrentIndex(steps) {
|
|
74
|
-
if (!steps?.length) {
|
|
75
|
-
if (this._currentIndex !== 0) {
|
|
76
|
-
this.currentIndexChange.emit(0);
|
|
77
|
-
}
|
|
78
|
-
this._currentIndex = 0;
|
|
79
|
-
}
|
|
80
|
-
else {
|
|
81
|
-
const reversedSteps = this.steps.slice(0).reverse();
|
|
82
|
-
const doneStepIndex = reversedSteps.findIndex(step => step.state === StepState.Done);
|
|
83
|
-
const lastDoneStepIndex = doneStepIndex > -1 ? reversedSteps.length - doneStepIndex : 0;
|
|
84
|
-
const newIndex = Math.min(lastDoneStepIndex, steps.length - 1);
|
|
85
|
-
if (this._currentIndex !== newIndex) {
|
|
86
|
-
this.currentIndexChange.emit(newIndex);
|
|
87
|
-
}
|
|
88
|
-
this._currentIndex =
|
|
89
|
-
this._currentIndex === this.selectedIndex
|
|
90
|
-
? (this.selectedIndex = newIndex)
|
|
91
|
-
: newIndex;
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
get isVertical() {
|
|
95
|
-
return this.orientation === 'vertical';
|
|
96
|
-
}
|
|
97
|
-
get isProgress() {
|
|
98
|
-
return this.type === 'progress';
|
|
99
|
-
}
|
|
100
|
-
get activeIndex() {
|
|
101
|
-
return this.selectedIndex ?? this.currentIndex ?? 0;
|
|
102
|
-
}
|
|
103
|
-
getIcon(i, state) {
|
|
104
|
-
if (!state) {
|
|
105
|
-
return StepDefaultIcon.default;
|
|
106
|
-
}
|
|
107
|
-
return this.getActiveIndex() === i
|
|
108
|
-
? StepSelectedIcon[state]
|
|
109
|
-
: StepDefaultIcon[state];
|
|
110
|
-
}
|
|
111
|
-
select(i) {
|
|
112
|
-
if (this.isSelectable(i)) {
|
|
113
|
-
if (this.isProgress) {
|
|
114
|
-
this.selectedIndexChange.emit(i);
|
|
115
|
-
this.selectedIndex = i;
|
|
116
|
-
}
|
|
117
|
-
else {
|
|
118
|
-
this.currentIndexChange.emit(i);
|
|
119
|
-
this._currentIndex = i;
|
|
120
|
-
this.selectedIndex = i;
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
isSelectable(i) {
|
|
125
|
-
const currentStep = this.steps[this._currentIndex];
|
|
126
|
-
if (!this.selectable || this.selectedIndex === i) {
|
|
127
|
-
return false;
|
|
128
|
-
}
|
|
129
|
-
const isLinear = this.isProgress ? true : this.linear;
|
|
130
|
-
if (isLinear &&
|
|
131
|
-
!currentStep.optional &&
|
|
132
|
-
((currentStep.state === StepState.Done && i > this._currentIndex + 1) ||
|
|
133
|
-
(currentStep.state !== StepState.Done && i > this._currentIndex))) {
|
|
134
|
-
return false;
|
|
135
|
-
}
|
|
136
|
-
if (i < this._currentIndex && !this.selectable) {
|
|
137
|
-
return false;
|
|
138
|
-
}
|
|
139
|
-
return true;
|
|
140
|
-
}
|
|
141
|
-
getActiveIndex() {
|
|
142
|
-
return this.selectedIndex !== undefined
|
|
143
|
-
? this.selectedIndex
|
|
144
|
-
: this._currentIndex;
|
|
145
|
-
}
|
|
146
|
-
isLastActive(i, steps) {
|
|
147
|
-
const firstDefaultIndex = steps.findIndex(step => !step.state || step.state === StepState.Default);
|
|
148
|
-
return i === this.selectedIndex
|
|
149
|
-
? true
|
|
150
|
-
: firstDefaultIndex === 0
|
|
151
|
-
? false
|
|
152
|
-
: firstDefaultIndex === i;
|
|
153
|
-
}
|
|
154
|
-
ngOnDestroy() {
|
|
155
|
-
this.destroy$$.next();
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
StepsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: StepsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
159
|
-
StepsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: StepsComponent, selector: "aui-steps", inputs: { steps: "steps", linear: "linear", currentIndex: "currentIndex", orientation: "orientation", type: "type", selectable: "selectable" }, outputs: { currentIndexChange: "currentIndexChange", selectedIndexChange: "selectedIndexChange" }, exportAs: ["auiSteps"], ngImport: i0, template: "<div\n class=\"aui-steps aui-steps--{{ orientation || 'horizontal' }} aui-steps--{{\n type || 'step'\n }}\"\n>\n <ng-container *ngFor=\"let step of steps; let i = index; let isLast = last\">\n <div\n class=\"aui-step\"\n (click)=\"select(i)\"\n [class.isLastActive]=\"isLastActive(i, steps)\"\n [class.clickable]=\"isSelectable(i)\"\n >\n <div class=\"aui-step__indicator\">\n <ng-container *ngIf=\"isProgress\">\n <ng-container [ngSwitch]=\"step.state\">\n <aui-icon\n *ngSwitchCase=\"'pending'\"\n class=\"aui-step__indicator--pending\"\n [class.isActive]=\"i === activeIndex\"\n icon=\"rotate\"\n ></aui-icon>\n <aui-icon\n *ngSwitchCase=\"'done'\"\n class=\"aui-step__indicator--done\"\n [class.isActive]=\"i === activeIndex\"\n icon=\"check\"\n ></aui-icon>\n <aui-icon\n *ngSwitchCase=\"'error'\"\n class=\"aui-step__indicator--error\"\n [class.isActive]=\"i === activeIndex\"\n icon=\"xmark_small\"\n ></aui-icon>\n <span\n *ngSwitchDefault\n class=\"aui-step__indicator--index\"\n [class.isActive]=\"i === activeIndex\"\n >\n {{ i + 1 }}\n </span>\n </ng-container>\n </ng-container>\n <ng-container *ngIf=\"!isProgress\">\n <span\n *ngIf=\"i >= currentIndex\"\n class=\"aui-step__indicator--index\"\n [class.isActive]=\"currentIndex === i\"\n >\n {{ i + 1 }}\n </span>\n <aui-icon\n *ngIf=\"i < currentIndex\"\n class=\"aui-step__indicator--done\"\n [class.isActive]=\"_currentIndex === i\"\n icon=\"check\"\n ></aui-icon>\n </ng-container>\n <div\n *ngIf=\"!isLast && isVertical\"\n class=\"aui-steps__vertical-line aui-steps__vertical-line--{{\n step.state\n }}\"\n ></div>\n </div>\n <div\n class=\"aui-step__info aui-step__info--{{\n isProgress\n ? step.state || 'default'\n : i < _currentIndex\n ? 'done'\n : 'default'\n }}\"\n [class.aui-step__info--selected]=\"getActiveIndex() === i\"\n >\n <div class=\"aui-step__name\">\n {{ step.label }}\n </div>\n <div\n class=\"aui-step__description\"\n *ngIf=\"step.description\"\n >\n {{ step.description }}\n </div>\n </div>\n </div>\n <div\n *ngIf=\"!isLast && !isVertical\"\n class=\"aui-steps__horizontal-line\"\n ></div>\n </ng-container>\n</div>\n", styles: ["@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.aui-step{display:flex;align-items:center;font-weight:var(--aui-font-weight-normal)}.aui-step__indicator{margin-right:var(--aui-spacing-m);width:24px;height:24px;display:inline-flex;color:rgb(var(--aui-color-n-4))}.aui-step__indicator--index{display:flex;justify-content:center;align-items:center;width:24px;height:24px;border-radius:50%;border:1px solid rgb(var(--aui-color-n-7));background-color:rgb(var(--aui-color-n-8));font-weight:var(--aui-font-weight-bolder);font-size:var(--aui-font-size-l);line-height:var(--aui-line-height-l)}.aui-step__indicator--index.isActive{color:#fff;border-color:rgb(var(--aui-color-primary));background-color:rgb(var(--aui-color-primary))}.aui-step__indicator--pending,.aui-step__indicator--done,.aui-step__indicator--error{display:flex;justify-content:center;align-items:center;width:24px;height:24px;font-size:var(--aui-icon-size-l);border-width:1px;border-style:solid;border-radius:50%}.aui-step__indicator--pending{color:rgb(var(--aui-color-primary));border-color:rgb(var(--aui-color-primary));background-color:rgb(var(--aui-color-p-6));transform-origin:center;animation:spin 2s infinite linear}.aui-step__indicator--pending.isActive{color:#fff;border-color:rgb(var(--aui-color-primary));background-color:rgb(var(--aui-color-primary))}.aui-step__indicator--done{color:rgb(var(--aui-color-green));border-color:rgb(var(--aui-color-green));background-color:rgb(var(--aui-color-g-6))}.aui-step__indicator--done.isActive{color:#fff;background-color:rgb(var(--aui-color-green))}.aui-step__indicator--error{color:rgb(var(--aui-color-red));border-color:rgb(var(--aui-color-red));background-color:rgb(var(--aui-color-r-6))}.aui-step__indicator--error.isActive{color:#fff;background-color:rgb(var(--aui-color-red))}.aui-step__name{font-size:var(--aui-font-size-l);line-height:var(--aui-line-height-l);font-weight:var(--aui-font-weight-normal)}.aui-step__description{font-size:var(--aui-font-size-s);margin-top:var(--aui-spacing-s);line-height:var(--aui-line-height-s)}.aui-step__info{color:rgb(var(--aui-color-n-4))}.aui-step__info--selected,.aui-step__info--pending,.aui-step__info--done,.aui-step__info--error{color:rgb(var(--aui-color-n-1))}.aui-step__info--selected .aui-step__name{font-weight:var(--aui-font-weight-bolder)}.aui-step.clickable{cursor:pointer}.aui-steps--progress .aui-step.clickable .aui-step__info:hover{color:rgb(var(--aui-color-primary))}.aui-steps__horizontal-line{height:1px;background-color:rgb(var(--aui-color-n-7));flex:1;min-width:40px;max-width:200px;margin:0 var(--aui-spacing-l)}.aui-steps__vertical-line{min-height:12px;width:1px;background-color:rgb(var(--aui-color-n-7));margin-top:var(--aui-spacing-s);flex:1}.aui-steps__vertical-line--done{background-color:rgb(var(--aui-color-green))}.aui-steps__vertical-line--error{background-color:rgb(var(--aui-color-red))}.aui-steps__vertical-line--pending{background-color:rgb(var(--aui-color-primary))}.aui-steps--horizontal{padding:0 40px;display:flex;justify-content:center;align-items:center}.aui-steps--vertical{max-width:200px}.aui-steps--vertical .aui-step{align-items:stretch}.aui-steps--vertical .aui-step:not(:last-child){margin-bottom:var(--aui-spacing-s)}.aui-steps--vertical .aui-step__indicator{height:auto;display:flex;align-items:center;flex-direction:column}.aui-steps--vertical .aui-step__indicator-icon--done{color:rgb(var(--aui-color-green));background-color:rgb(var(--aui-color-g-6))}.aui-steps--vertical .aui-step__indicator-icon--done.selected{background-color:#fff}.aui-steps--vertical .aui-step__info{padding-bottom:13px}.aui-steps--vertical .aui-step.isLastActive .aui-steps__vertical-line{background-color:rgb(var(--aui-color-n-7))}aui-steps .aui-steps .aui-step__indicator-icon{font-size:var(--aui-icon-size-xl)}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i1.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "component", type: i2.IconComponent, selector: "aui-icon", inputs: ["icon", "light", "dark", "link", "margin", "size", "color", "background", "backgroundColor"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
160
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: StepsComponent, decorators: [{
|
|
161
|
-
type: Component,
|
|
162
|
-
args: [{ selector: 'aui-steps', exportAs: 'auiSteps', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<div\n class=\"aui-steps aui-steps--{{ orientation || 'horizontal' }} aui-steps--{{\n type || 'step'\n }}\"\n>\n <ng-container *ngFor=\"let step of steps; let i = index; let isLast = last\">\n <div\n class=\"aui-step\"\n (click)=\"select(i)\"\n [class.isLastActive]=\"isLastActive(i, steps)\"\n [class.clickable]=\"isSelectable(i)\"\n >\n <div class=\"aui-step__indicator\">\n <ng-container *ngIf=\"isProgress\">\n <ng-container [ngSwitch]=\"step.state\">\n <aui-icon\n *ngSwitchCase=\"'pending'\"\n class=\"aui-step__indicator--pending\"\n [class.isActive]=\"i === activeIndex\"\n icon=\"rotate\"\n ></aui-icon>\n <aui-icon\n *ngSwitchCase=\"'done'\"\n class=\"aui-step__indicator--done\"\n [class.isActive]=\"i === activeIndex\"\n icon=\"check\"\n ></aui-icon>\n <aui-icon\n *ngSwitchCase=\"'error'\"\n class=\"aui-step__indicator--error\"\n [class.isActive]=\"i === activeIndex\"\n icon=\"xmark_small\"\n ></aui-icon>\n <span\n *ngSwitchDefault\n class=\"aui-step__indicator--index\"\n [class.isActive]=\"i === activeIndex\"\n >\n {{ i + 1 }}\n </span>\n </ng-container>\n </ng-container>\n <ng-container *ngIf=\"!isProgress\">\n <span\n *ngIf=\"i >= currentIndex\"\n class=\"aui-step__indicator--index\"\n [class.isActive]=\"currentIndex === i\"\n >\n {{ i + 1 }}\n </span>\n <aui-icon\n *ngIf=\"i < currentIndex\"\n class=\"aui-step__indicator--done\"\n [class.isActive]=\"_currentIndex === i\"\n icon=\"check\"\n ></aui-icon>\n </ng-container>\n <div\n *ngIf=\"!isLast && isVertical\"\n class=\"aui-steps__vertical-line aui-steps__vertical-line--{{\n step.state\n }}\"\n ></div>\n </div>\n <div\n class=\"aui-step__info aui-step__info--{{\n isProgress\n ? step.state || 'default'\n : i < _currentIndex\n ? 'done'\n : 'default'\n }}\"\n [class.aui-step__info--selected]=\"getActiveIndex() === i\"\n >\n <div class=\"aui-step__name\">\n {{ step.label }}\n </div>\n <div\n class=\"aui-step__description\"\n *ngIf=\"step.description\"\n >\n {{ step.description }}\n </div>\n </div>\n </div>\n <div\n *ngIf=\"!isLast && !isVertical\"\n class=\"aui-steps__horizontal-line\"\n ></div>\n </ng-container>\n</div>\n", styles: ["@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.aui-step{display:flex;align-items:center;font-weight:var(--aui-font-weight-normal)}.aui-step__indicator{margin-right:var(--aui-spacing-m);width:24px;height:24px;display:inline-flex;color:rgb(var(--aui-color-n-4))}.aui-step__indicator--index{display:flex;justify-content:center;align-items:center;width:24px;height:24px;border-radius:50%;border:1px solid rgb(var(--aui-color-n-7));background-color:rgb(var(--aui-color-n-8));font-weight:var(--aui-font-weight-bolder);font-size:var(--aui-font-size-l);line-height:var(--aui-line-height-l)}.aui-step__indicator--index.isActive{color:#fff;border-color:rgb(var(--aui-color-primary));background-color:rgb(var(--aui-color-primary))}.aui-step__indicator--pending,.aui-step__indicator--done,.aui-step__indicator--error{display:flex;justify-content:center;align-items:center;width:24px;height:24px;font-size:var(--aui-icon-size-l);border-width:1px;border-style:solid;border-radius:50%}.aui-step__indicator--pending{color:rgb(var(--aui-color-primary));border-color:rgb(var(--aui-color-primary));background-color:rgb(var(--aui-color-p-6));transform-origin:center;animation:spin 2s infinite linear}.aui-step__indicator--pending.isActive{color:#fff;border-color:rgb(var(--aui-color-primary));background-color:rgb(var(--aui-color-primary))}.aui-step__indicator--done{color:rgb(var(--aui-color-green));border-color:rgb(var(--aui-color-green));background-color:rgb(var(--aui-color-g-6))}.aui-step__indicator--done.isActive{color:#fff;background-color:rgb(var(--aui-color-green))}.aui-step__indicator--error{color:rgb(var(--aui-color-red));border-color:rgb(var(--aui-color-red));background-color:rgb(var(--aui-color-r-6))}.aui-step__indicator--error.isActive{color:#fff;background-color:rgb(var(--aui-color-red))}.aui-step__name{font-size:var(--aui-font-size-l);line-height:var(--aui-line-height-l);font-weight:var(--aui-font-weight-normal)}.aui-step__description{font-size:var(--aui-font-size-s);margin-top:var(--aui-spacing-s);line-height:var(--aui-line-height-s)}.aui-step__info{color:rgb(var(--aui-color-n-4))}.aui-step__info--selected,.aui-step__info--pending,.aui-step__info--done,.aui-step__info--error{color:rgb(var(--aui-color-n-1))}.aui-step__info--selected .aui-step__name{font-weight:var(--aui-font-weight-bolder)}.aui-step.clickable{cursor:pointer}.aui-steps--progress .aui-step.clickable .aui-step__info:hover{color:rgb(var(--aui-color-primary))}.aui-steps__horizontal-line{height:1px;background-color:rgb(var(--aui-color-n-7));flex:1;min-width:40px;max-width:200px;margin:0 var(--aui-spacing-l)}.aui-steps__vertical-line{min-height:12px;width:1px;background-color:rgb(var(--aui-color-n-7));margin-top:var(--aui-spacing-s);flex:1}.aui-steps__vertical-line--done{background-color:rgb(var(--aui-color-green))}.aui-steps__vertical-line--error{background-color:rgb(var(--aui-color-red))}.aui-steps__vertical-line--pending{background-color:rgb(var(--aui-color-primary))}.aui-steps--horizontal{padding:0 40px;display:flex;justify-content:center;align-items:center}.aui-steps--vertical{max-width:200px}.aui-steps--vertical .aui-step{align-items:stretch}.aui-steps--vertical .aui-step:not(:last-child){margin-bottom:var(--aui-spacing-s)}.aui-steps--vertical .aui-step__indicator{height:auto;display:flex;align-items:center;flex-direction:column}.aui-steps--vertical .aui-step__indicator-icon--done{color:rgb(var(--aui-color-green));background-color:rgb(var(--aui-color-g-6))}.aui-steps--vertical .aui-step__indicator-icon--done.selected{background-color:#fff}.aui-steps--vertical .aui-step__info{padding-bottom:13px}.aui-steps--vertical .aui-step.isLastActive .aui-steps__vertical-line{background-color:rgb(var(--aui-color-n-7))}aui-steps .aui-steps .aui-step__indicator-icon{font-size:var(--aui-icon-size-xl)}\n"] }]
|
|
163
|
-
}], propDecorators: { steps: [{
|
|
164
|
-
type: Input
|
|
165
|
-
}], linear: [{
|
|
166
|
-
type: Input
|
|
167
|
-
}], currentIndex: [{
|
|
168
|
-
type: Input
|
|
169
|
-
}], orientation: [{
|
|
170
|
-
type: Input
|
|
171
|
-
}], type: [{
|
|
172
|
-
type: Input
|
|
173
|
-
}], selectable: [{
|
|
174
|
-
type: Input
|
|
175
|
-
}], currentIndexChange: [{
|
|
176
|
-
type: Output
|
|
177
|
-
}], selectedIndexChange: [{
|
|
178
|
-
type: Output
|
|
179
|
-
}] } });
|
|
180
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3RlcHMuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL3N0ZXBzL3N0ZXBzLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uL3NyYy9zdGVwcy9zdGVwcy5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQ0wsdUJBQXVCLEVBQ3ZCLFNBQVMsRUFDVCxZQUFZLEVBQ1osS0FBSyxFQUdMLE1BQU0sRUFDTixpQkFBaUIsR0FDbEIsTUFBTSxlQUFlLENBQUM7QUFDdkIsT0FBTyxFQUFFLGVBQWUsRUFBRSxPQUFPLEVBQUUsU0FBUyxFQUFFLE1BQU0sTUFBTSxDQUFDO0FBRTNELE9BQU8sRUFBWSxTQUFTLEVBQStCLE1BQU0sU0FBUyxDQUFDOzs7O0FBRTNFLE1BQU0sZUFBZSxHQUFHO0lBQ3RCLENBQUMsU0FBUyxDQUFDLE9BQU8sQ0FBQyxFQUFFLFFBQVE7SUFDN0IsQ0FBQyxTQUFTLENBQUMsSUFBSSxDQUFDLEVBQUUsY0FBYztJQUNoQyxDQUFDLFNBQVMsQ0FBQyxLQUFLLENBQUMsRUFBRSxjQUFjO0lBQ2pDLENBQUMsU0FBUyxDQUFDLE9BQU8sQ0FBQyxFQUFFLGFBQWE7Q0FDbkMsQ0FBQztBQUVGLE1BQU0sZ0JBQWdCLEdBQUc7SUFDdkIsQ0FBQyxTQUFTLENBQUMsT0FBTyxDQUFDLEVBQUUsUUFBUTtJQUM3QixDQUFDLFNBQVMsQ0FBQyxJQUFJLENBQUMsRU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zPVwiYXVpLXN0ZXBcIlxuICAgICAgKGNsaWNrKT1cInNlbGVjdChpKVwiXG4gICAgICBbY2xhc3MuaXNMYXN0QWN0aXZlXT1cImlzTGFzdEFjdGl2ZShpLCBzdGVwcylcIlxuICAgICAgW2NsYXNzLmNsaWNrYWJsZV09XCJpc1NlbGVjdGFibGUoaSlcIlxuICAgID5cbiAgICAgIDxkaXYgY2xhc3M9XCJhdWktc3RlcF9faW5kaWNhdG9yXCI+XG4gICAgICAgIDxuZy1jb250YWluZXIgKm5nSWY9XCJpc1Byb2dyZXNzXCI+XG4gICAgICAgICAgPG5nLWNvbnRhaW5lciBbbmdTd2l0Y2hdPVwic3RlcC5zdGF0ZVwiPlxuICAgICAgICAgICAgPGF1aS1pY29uXG4gICAgICAgICAgICAgICpuZ1N3aXRjaENhc2U9XCIncGVuZGluZydcIlxuICAgICAgICAgICAgICBjbGFzcz1cImF1aS1zdGVwX19pbmRpY2F0b3ItLXBlbmRpbmdcIlxuICAgICAgICAgICAgICBbY2xhc3MuaXNBY3RpdmVdPVwiaSA9PT0gYWN0aXZlSW5kZXhcIlxuICAgICAgICAgICAgICBpY29uPVwicm90YXRlXCJcbiAgICAgICAgICAgID48L2F1aS1pY29uPlxuICAgICAgICAgICAgPGF1aS1pY29uXG4gICAgICAgICAgICAgICpuZ1N3aXRjaENhc2U9XCInZG9uZSdcIlxuICAgICAgICAgICAgICBjbGFzcz1cImF1aS1zdGVwX19pbmRpY2F0b3ItLWRvbmVcIlxuICAgICAgICAgICAgICBbY2xhc3MuaXNBY3RpdmVdPVwiaSA9PT0gYWN0aXZlSW5kZXhcIlxuICAgICAgICAgICAgICBpY29uPVwiY2hlY2tcIlxuICAgICAgICAgICAgPjwvYXVpLWljb24+XG4gICAgICAgICAgICA8YXVpLWljb25cbiAgICAgICAgICAgICAgKm5nU3dpdGNoQ2FzZT1cIidlcnJvcidcIlxuICAgICAgICAgICAgICBjbGFzcz1cImF1aS1zdGVwX19pbmRpY2F0b3ItLWVycm9yXCJcbiAgICAgICAgICAgICAgW2NsYXNzLmlzQWN0aXZlXT1cImkgPT09IGFjdGl2ZUluZGV4XCJcbiAgICAgICAgICAgICAgaWNvbj1cInhtYXJrX3NtYWxsXCJcbiAgICAgICAgICAgID48L2F1aS1pY29uPlxuICAgICAgICAgICAgPHNwYW5cbiAgICAgICAgICAgICAgKm5nU3dpdGNoRGVmYXVsdFxuICAgICAgICAgICAgICBjbGFzcz1cImF1aS1zdGVwX19pbmRpY2F0b3ItLWluZGV4XCJcbiAgICAgICAgICAgICAgW2NsYXNzLmlzQWN0aXZlXT1cImkgPT09IGFjdGl2ZUluZGV4XCJcbiAgICAgICAgICAgID5cbiAgICAgICAgICAgICAge3sgaSArIDEgfX1cbiAgICAgICAgICAgIDwvc3Bhbj5cbiAgICAgICAgICA8L25nLWNvbnRhaW5lcj5cbiAgICAgICAgPC9uZy1jb250YWluZXI+XG4gICAgICAgIDxuZy1jb250YWluZXIgKm5nSWY9XCIhaXNQcm9ncmVzc1wiPlxuICAgICAgICAgIDxzcGFuXG4gICAgICAgICAgICAqbmdJZj1cImkgPj0gY3VycmVudEluZGV4XCJcbiAgICAgICAgICAgIGNsYXNzPVwiYXVpLXN0ZXBfX2luZGljYXRvci0taW5kZXhcIlxuICAgICAgICAgICAgW2NsYXNzLmlzQWN0aXZlXT1cImN1cnJlbnRJbmRleCA9PT0gaVwiXG4gICAgICAgICAgPlxuICAgICAgICAgICAge3sgaSArIDEgfX1cbiAgICAgICAgICA8L3NwYW4+XG4gICAgICAgICAgPGF1aS1pY29uXG4gICAgICAgICAgICAqbmdJZj1cImkgPCBjdXJyZW50SW5kZXhcIlxuICAgICAgICAgICAgY2xhc3M9XCJhdWktc3RlcF9faW5kaWNhdG9yLS1kb25lXCJcbiAgICAgICAgICAgIFtjbGFzcy5pc0FjdGl2ZV09XCJfY3VycmVudEluZGV4ID09PSBpXCJcbiAgICAgICAgICAgIGljb249XCJjaGVja1wiXG4gICAgICAgICAgPjwvYXVpLW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WxcIlxuICAgICAgY2xhc3M9XCJhdWktc3RlcHNfX2hvcml6b250YWwtbGluZVwiXG4gICAgPjwvZGl2PlxuICA8L25nLWNvbnRhaW5lcj5cbjwvZGl2PlxuIl19
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectionStrategy, Component, Input, ViewEncapsulation, forwardRef, } from '@angular/core';
|
|
2
|
-
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
3
|
-
import { CommonFormControl } from '../form';
|
|
4
|
-
import { buildBem } from '../utils';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
import * as i1 from "@angular/common";
|
|
7
|
-
const prefix = 'aui-switch';
|
|
8
|
-
export class SwitchComponent extends CommonFormControl {
|
|
9
|
-
constructor() {
|
|
10
|
-
super(...arguments);
|
|
11
|
-
this.bem = buildBem(prefix);
|
|
12
|
-
this.loading = false;
|
|
13
|
-
}
|
|
14
|
-
onSwitch() {
|
|
15
|
-
if (this.disabled) {
|
|
16
|
-
return;
|
|
17
|
-
}
|
|
18
|
-
this.emitValue(!this.model);
|
|
19
|
-
}
|
|
20
|
-
onBlur() {
|
|
21
|
-
if (this.onTouched) {
|
|
22
|
-
this.onTouched();
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
SwitchComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SwitchComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
27
|
-
SwitchComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: SwitchComponent, selector: "aui-switch", inputs: { loading: "loading" }, providers: [
|
|
28
|
-
{
|
|
29
|
-
provide: NG_VALUE_ACCESSOR,
|
|
30
|
-
useExisting: forwardRef(() => SwitchComponent),
|
|
31
|
-
multi: true,
|
|
32
|
-
},
|
|
33
|
-
], usesInheritance: true, ngImport: i0, template: "<div\n class=\"aui-switch\"\n [class.isLoading]=\"loading\"\n [class.isDisabled]=\"disabled\"\n [class.isChecked]=\"model\"\n (click)=\"onSwitch()\"\n>\n <input\n #input\n [ngClass]=\"bem.element('input')\"\n type=\"checkbox\"\n [disabled]=\"disabled\"\n [checked]=\"model\"\n (blur)=\"onBlur()\"\n />\n <span [ngClass]=\"bem.element('bar')\">\n <i [ngClass]=\"bem.element('dot')\"></i>\n </span>\n</div>\n", styles: [".aui-switch{display:inline-flex;position:relative;vertical-align:text-bottom;color:rgb(var(--aui-color-n-4));cursor:pointer}.aui-switch__input{position:absolute;width:0;height:0;opacity:0;margin:0}:root .aui-switch__input:focus+.aui-switch__bar{box-shadow:0 0 0 2px rgba(var(--aui-color-primary),.16)}html[aui-theme-mode=light] .aui-switch__input:focus+.aui-switch__bar{box-shadow:0 0 0 2px rgba(var(--aui-color-primary),.16)}@media (prefers-color-scheme: dark){html[aui-theme-mode=system] .aui-switch__input:focus+.aui-switch__bar{box-shadow:0 0 0 2px rgba(var(--aui-color-primary),.3)}}html[aui-theme-mode=dark] .aui-switch__input:focus+.aui-switch__bar{box-shadow:0 0 0 2px rgba(var(--aui-color-primary),.3)}.aui-switch__bar{display:inline-block;width:30px;height:16px;border-radius:8px;background-color:currentcolor;transition:background-color .3s;position:relative;vertical-align:middle;-webkit-user-select:none;user-select:none}.aui-switch__dot{background-color:#fff;border-radius:50%;width:12px;height:12px;position:absolute;top:2px;left:2px;transition:left .3s}.aui-switch.isDisabled{color:rgb(var(--aui-color-n-7));cursor:not-allowed}@media (prefers-color-scheme: dark){html[aui-theme-mode=system] .aui-switch.isDisabled .aui-switch__dot{background-color:rgb(var(--aui-color-n-4))}}html[aui-theme-mode=dark] .aui-switch.isDisabled .aui-switch__dot{background-color:rgb(var(--aui-color-n-4))}.aui-switch.isChecked{color:rgb(var(--aui-color-primary))}.aui-switch.isChecked.isDisabled{color:rgb(var(--aui-color-p-4))}.aui-switch.isChecked .aui-switch__dot{left:16px}.aui-switch.isLoading .aui-switch__dot:after{content:\"\";position:absolute;inset:2px;border:1px solid currentcolor;border-top-color:transparent;border-radius:50%;animation:spin 1s infinite linear}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
34
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SwitchComponent, decorators: [{
|
|
35
|
-
type: Component,
|
|
36
|
-
args: [{ selector: 'aui-switch', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, preserveWhitespaces: false, providers: [
|
|
37
|
-
{
|
|
38
|
-
provide: NG_VALUE_ACCESSOR,
|
|
39
|
-
useExisting: forwardRef(() => SwitchComponent),
|
|
40
|
-
multi: true,
|
|
41
|
-
},
|
|
42
|
-
], template: "<div\n class=\"aui-switch\"\n [class.isLoading]=\"loading\"\n [class.isDisabled]=\"disabled\"\n [class.isChecked]=\"model\"\n (click)=\"onSwitch()\"\n>\n <input\n #input\n [ngClass]=\"bem.element('input')\"\n type=\"checkbox\"\n [disabled]=\"disabled\"\n [checked]=\"model\"\n (blur)=\"onBlur()\"\n />\n <span [ngClass]=\"bem.element('bar')\">\n <i [ngClass]=\"bem.element('dot')\"></i>\n </span>\n</div>\n", styles: [".aui-switch{display:inline-flex;position:relative;vertical-align:text-bottom;color:rgb(var(--aui-color-n-4));cursor:pointer}.aui-switch__input{position:absolute;width:0;height:0;opacity:0;margin:0}:root .aui-switch__input:focus+.aui-switch__bar{box-shadow:0 0 0 2px rgba(var(--aui-color-primary),.16)}html[aui-theme-mode=light] .aui-switch__input:focus+.aui-switch__bar{box-shadow:0 0 0 2px rgba(var(--aui-color-primary),.16)}@media (prefers-color-scheme: dark){html[aui-theme-mode=system] .aui-switch__input:focus+.aui-switch__bar{box-shadow:0 0 0 2px rgba(var(--aui-color-primary),.3)}}html[aui-theme-mode=dark] .aui-switch__input:focus+.aui-switch__bar{box-shadow:0 0 0 2px rgba(var(--aui-color-primary),.3)}.aui-switch__bar{display:inline-block;width:30px;height:16px;border-radius:8px;background-color:currentcolor;transition:background-color .3s;position:relative;vertical-align:middle;-webkit-user-select:none;user-select:none}.aui-switch__dot{background-color:#fff;border-radius:50%;width:12px;height:12px;position:absolute;top:2px;left:2px;transition:left .3s}.aui-switch.isDisabled{color:rgb(var(--aui-color-n-7));cursor:not-allowed}@media (prefers-color-scheme: dark){html[aui-theme-mode=system] .aui-switch.isDisabled .aui-switch__dot{background-color:rgb(var(--aui-color-n-4))}}html[aui-theme-mode=dark] .aui-switch.isDisabled .aui-switch__dot{background-color:rgb(var(--aui-color-n-4))}.aui-switch.isChecked{color:rgb(var(--aui-color-primary))}.aui-switch.isChecked.isDisabled{color:rgb(var(--aui-color-p-4))}.aui-switch.isChecked .aui-switch__dot{left:16px}.aui-switch.isLoading .aui-switch__dot:after{content:\"\";position:absolute;inset:2px;border:1px solid currentcolor;border-top-color:transparent;border-radius:50%;animation:spin 1s infinite linear}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}\n"] }]
|
|
43
|
-
}], propDecorators: { loading: [{
|
|
44
|
-
type: Input
|
|
45
|
-
}] } });
|
|
46
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3dpdGNoLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9zd2l0Y2gvc3dpdGNoLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uL3NyYy9zd2l0Y2gvc3dpdGNoLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFDTCx1QkFBdUIsRUFDdkIsU0FBUyxFQUNULEtBQUssRUFDTCxpQkFBaUIsRUFDakIsVUFBV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 +0,0 @@
|
|
|
1
|
-
import { CdkCellDef } from '@angular/cdk/table';
|
|
2
|
-
import { Directive } from '@angular/core';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export class TableCellDefDirective extends CdkCellDef {
|
|
5
|
-
}
|
|
6
|
-
TableCellDefDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TableCellDefDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
7
|
-
TableCellDefDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.9", type: TableCellDefDirective, selector: "[auiTableCellDef]", providers: [
|
|
8
|
-
{
|
|
9
|
-
provide: CdkCellDef,
|
|
10
|
-
useExisting: TableCellDefDirective,
|
|
11
|
-
},
|
|
12
|
-
], usesInheritance: true, ngImport: i0 });
|
|
13
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TableCellDefDirective, decorators: [{
|
|
14
|
-
type: Directive,
|
|
15
|
-
args: [{
|
|
16
|
-
selector: '[auiTableCellDef]',
|
|
17
|
-
providers: [
|
|
18
|
-
{
|
|
19
|
-
provide: CdkCellDef,
|
|
20
|
-
useExisting: TableCellDefDirective,
|
|
21
|
-
},
|
|
22
|
-
],
|
|
23
|
-
}]
|
|
24
|
-
}] });
|
|
25
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFibGUtY2VsbC1kZWYuZGlyZWN0aXZlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL3RhYmxlL3RhYmxlLWNlbGwtZGVmLmRpcmVjdGl2ZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sb0JBQW9CLENBQUM7QUFDaEQsT0FBTyxFQUFFLFNBQVMsRUFB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1
|
-
import { animate, state, style, transition, trigger, } from '@angular/animations';
|
|
2
|
-
import { CdkCell } from '@angular/cdk/table';
|
|
3
|
-
import { ChangeDetectionStrategy, Component, EventEmitter, Input, Output, ViewEncapsulation, } from '@angular/core';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
import * as i1 from "../icon/icon.component";
|
|
6
|
-
import * as i2 from "@angular/common";
|
|
7
|
-
export class TableExpandButtonCellComponent extends CdkCell {
|
|
8
|
-
constructor() {
|
|
9
|
-
super(...arguments);
|
|
10
|
-
this.expand = false;
|
|
11
|
-
this.disabled = false;
|
|
12
|
-
this.expandChange = new EventEmitter();
|
|
13
|
-
}
|
|
14
|
-
get expanded() {
|
|
15
|
-
return this.expand ? 'expanded' : null;
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
TableExpandButtonCellComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TableExpandButtonCellComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
19
|
-
TableExpandButtonCellComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: TableExpandButtonCellComponent, selector: "aui-table-cell[auiExpandButton]", inputs: { expand: "expand", disabled: "disabled" }, outputs: { expandChange: "expandChange" }, usesInheritance: true, ngImport: i0, template: `
|
|
20
|
-
<button
|
|
21
|
-
type="button"
|
|
22
|
-
class="aui-expand-button"
|
|
23
|
-
[class.isExpanded]="expand"
|
|
24
|
-
[disabled]="disabled"
|
|
25
|
-
(click)="expandChange.next(null)"
|
|
26
|
-
>
|
|
27
|
-
<aui-icon icon="angle_right"></aui-icon>
|
|
28
|
-
</button>
|
|
29
|
-
`, isInline: true, dependencies: [{ kind: "component", type: i1.IconComponent, selector: "aui-icon", inputs: ["icon", "light", "dark", "link", "margin", "size", "color", "background", "backgroundColor"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
30
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TableExpandButtonCellComponent, decorators: [{
|
|
31
|
-
type: Component,
|
|
32
|
-
args: [{
|
|
33
|
-
selector: 'aui-table-cell[auiExpandButton]',
|
|
34
|
-
template: `
|
|
35
|
-
<button
|
|
36
|
-
type="button"
|
|
37
|
-
class="aui-expand-button"
|
|
38
|
-
[class.isExpanded]="expand"
|
|
39
|
-
[disabled]="disabled"
|
|
40
|
-
(click)="expandChange.next(null)"
|
|
41
|
-
>
|
|
42
|
-
<aui-icon icon="angle_right"></aui-icon>
|
|
43
|
-
</button>
|
|
44
|
-
`,
|
|
45
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
46
|
-
encapsulation: ViewEncapsulation.None,
|
|
47
|
-
preserveWhitespaces: false,
|
|
48
|
-
}]
|
|
49
|
-
}], propDecorators: { expand: [{
|
|
50
|
-
type: Input
|
|
51
|
-
}], disabled: [{
|
|
52
|
-
type: Input
|
|
53
|
-
}], expandChange: [{
|
|
54
|
-
type: Output
|
|
55
|
-
}] } });
|
|
56
|
-
export class TableExpandPanelCellComponent extends CdkCell {
|
|
57
|
-
constructor() {
|
|
58
|
-
super(...arguments);
|
|
59
|
-
this.expand = false;
|
|
60
|
-
this.background = true;
|
|
61
|
-
}
|
|
62
|
-
get expanded() {
|
|
63
|
-
return this.expand ? 'expanded' : null;
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
TableExpandPanelCellComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TableExpandPanelCellComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
67
|
-
TableExpandPanelCellComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: TableExpandPanelCellComponent, selector: "aui-table-cell[auiExpandPanel]", inputs: { expand: "expand", background: "background" }, usesInheritance: true, ngImport: i0, template: `
|
|
68
|
-
<div
|
|
69
|
-
*ngIf="expand"
|
|
70
|
-
class="aui-table__cell-expand-panel"
|
|
71
|
-
[@expand]="expanded"
|
|
72
|
-
>
|
|
73
|
-
<div
|
|
74
|
-
class="aui-table__cell-expand-panel-content"
|
|
75
|
-
[class.hasBackground]="background"
|
|
76
|
-
>
|
|
77
|
-
<ng-content></ng-content>
|
|
78
|
-
</div>
|
|
79
|
-
</div>
|
|
80
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], animations: [
|
|
81
|
-
trigger('expand', [
|
|
82
|
-
state('*', style({ height: 0 })),
|
|
83
|
-
state('expanded', style({ height: '*', 'margin-bottom': '15px' })),
|
|
84
|
-
transition('* <=> expanded', [animate('0.1s ease-in-out')]),
|
|
85
|
-
]),
|
|
86
|
-
], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
87
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TableExpandPanelCellComponent, decorators: [{
|
|
88
|
-
type: Component,
|
|
89
|
-
args: [{
|
|
90
|
-
selector: 'aui-table-cell[auiExpandPanel]',
|
|
91
|
-
template: `
|
|
92
|
-
<div
|
|
93
|
-
*ngIf="expand"
|
|
94
|
-
class="aui-table__cell-expand-panel"
|
|
95
|
-
[@expand]="expanded"
|
|
96
|
-
>
|
|
97
|
-
<div
|
|
98
|
-
class="aui-table__cell-expand-panel-content"
|
|
99
|
-
[class.hasBackground]="background"
|
|
100
|
-
>
|
|
101
|
-
<ng-content></ng-content>
|
|
102
|
-
</div>
|
|
103
|
-
</div>
|
|
104
|
-
`,
|
|
105
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
106
|
-
encapsulation: ViewEncapsulation.None,
|
|
107
|
-
preserveWhitespaces: false,
|
|
108
|
-
animations: [
|
|
109
|
-
trigger('expand', [
|
|
110
|
-
state('*', style({ height: 0 })),
|
|
111
|
-
state('expanded', style({ height: '*', 'margin-bottom': '15px' })),
|
|
112
|
-
transition('* <=> expanded', [animate('0.1s ease-in-out')]),
|
|
113
|
-
]),
|
|
114
|
-
],
|
|
115
|
-
}]
|
|
116
|
-
}], propDecorators: { expand: [{
|
|
117
|
-
type: Input
|
|
118
|
-
}], background: [{
|
|
119
|
-
type: Input
|
|
120
|
-
}] } });
|
|
121
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFibGUtY2VsbC5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvdGFibGUvdGFibGUtY2VsbC5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUNMLE9BQU8sRUFDUCxLQUFLLEVBQ0wsS0FBSyxFQUNMLFVBQVUsRUFDVixPQUFPLEdBQ1IsTUFBTSxxQkFBcUIsQ0FBQztBQUM3QixPQUFPLEVBQUUsT0FBTyxFQUFFLE1BQU0sb0JBQW9CLENBQUM7QUFDN0MsT0FBTyxFQUNMLHVCQUF1QixFQUN2QixTQUFTLEVBQ1QsWUFBWSxFQUNaLEtBQUssRUFDTCxNQUFNLEVBQ04saUJBQWlCLEdBQ2xCLE1BQU0sZUFBZSxDQUFDOzs7O0FBbUJ2QixNQUFNLE9BQU8sOEJBQStCLFNBQVEsT0FBTztJQWpCM0Q7O1FBbUJFLFdBQU0sR0FBRyxLQUFLLENBQUM7UUFHZixhQUFRLEdBQUcsS0FBSyxDQUFDO1FBR2pCLGlCQUFZLEdBQUcsSUFBSSxZQUFZLEVBQUUsQ0FBQztLQUtuQztJQUhDLElBQUksUUFBUTtRQUNWLE9BQU8sSUFBSSxDQUFDLE1BQU0sQ0FBQyxDQUFDLENBQUMsVUFBVSxDQUFDLENBQUMsQ0FBQyxJQUFJLENBQUM7SUFDekMs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