@alauda/ui 6.5.9-beta.20 → 6.5.9-beta.21
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/.changeset/README.md +8 -0
- package/accordion/accordion-item/accordion-item.component.d.ts +3 -3
- package/accordion/accordion.component.d.ts +1 -1
- package/alauda-ui.d.ts +5 -0
- package/anchor/anchor.component.d.ts +2 -2
- package/anchor/anchor.directive.d.ts +3 -3
- package/autocomplete/autocomplete-placeholder.component.d.ts +1 -1
- package/autocomplete/autocomplete.component.d.ts +1 -1
- package/autocomplete/autocomplete.directive.d.ts +2 -2
- package/autocomplete/autocomplete.types.d.ts +1 -1
- package/autocomplete/helper-directives.d.ts +1 -1
- package/autocomplete/suggestion/suggestion.component.d.ts +1 -1
- package/autocomplete/suggestion-group/suggestion-group.component.d.ts +1 -1
- package/back-top/back-top.component.d.ts +2 -2
- package/breadcrumb/breadcrumb-item.component.d.ts +1 -1
- package/breadcrumb/breadcrumb.component.d.ts +1 -1
- package/button/button-group/button-group.component.d.ts +1 -1
- package/button/button.component.d.ts +1 -1
- package/button/button.types.d.ts +10 -1
- package/card/card.component.d.ts +1 -1
- package/card/helper-directives.d.ts +6 -3
- package/card/section.component.d.ts +1 -1
- package/checkbox/checkbox-group/checkbox-group.component.d.ts +1 -1
- package/checkbox/checkbox.component.d.ts +1 -1
- package/color-picker/color-picker.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/date-picker.type.d.ts +2 -2
- package/date-picker/range-picker/range-picker.component.d.ts +1 -1
- package/date-picker/trigger/trigger.component.d.ts +1 -1
- package/dialog/confirm-dialog/confirm-dialog.component.d.ts +1 -1
- package/dialog/dialog-content/dialog-close.directive.d.ts +1 -1
- package/dialog/dialog-content/dialog-content.component.d.ts +1 -1
- package/dialog/dialog-content/dialog-footer.component.d.ts +1 -1
- package/dialog/dialog-content/dialog-header.component.d.ts +1 -1
- package/dialog/dialog.component.d.ts +1 -7
- package/dialog/dialog.service.d.ts +0 -2
- package/dialog/dialog.types.d.ts +3 -3
- package/drawer/component/drawer.component.d.ts +1 -1
- package/drawer/component/helper-directives.d.ts +3 -3
- 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/dropdown.types.d.ts +1 -1
- package/dropdown/helper-directives.d.ts +1 -1
- package/dropdown/menu/menu-content.directive.d.ts +1 -1
- package/dropdown/menu/menu.component.d.ts +1 -1
- package/dropdown/menu-group/menu-group.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/esm2020/accordion/accordion-item/accordion-item.component.mjs +14 -12
- package/esm2020/accordion/accordion.component.mjs +4 -4
- package/esm2020/accordion/accordion.module.mjs +5 -5
- package/esm2020/alauda-ui.mjs +4 -1
- package/esm2020/anchor/anchor.component.mjs +16 -15
- package/esm2020/anchor/anchor.directive.mjs +27 -27
- package/esm2020/anchor/anchor.module.mjs +6 -5
- package/esm2020/autocomplete/autocomplete-placeholder.component.mjs +3 -3
- package/esm2020/autocomplete/autocomplete.component.mjs +3 -3
- package/esm2020/autocomplete/autocomplete.directive.mjs +28 -27
- package/esm2020/autocomplete/autocomplete.module.mjs +5 -5
- package/esm2020/autocomplete/helper-directives.mjs +3 -3
- package/esm2020/autocomplete/suggestion/suggestion.component.mjs +17 -17
- package/esm2020/autocomplete/suggestion-group/suggestion-group.component.mjs +3 -3
- package/esm2020/back-top/back-top.component.mjs +17 -15
- package/esm2020/back-top/back-top.module.mjs +5 -5
- package/esm2020/breadcrumb/breadcrumb-item.component.mjs +11 -11
- package/esm2020/breadcrumb/breadcrumb.component.mjs +3 -3
- package/esm2020/breadcrumb/breadcrumb.module.mjs +5 -5
- package/esm2020/button/button-group/button-group.component.mjs +3 -3
- package/esm2020/button/button.component.mjs +22 -21
- package/esm2020/button/button.module.mjs +5 -5
- package/esm2020/button/button.types.mjs +10 -1
- package/esm2020/card/card.component.mjs +4 -4
- package/esm2020/card/card.module.mjs +5 -5
- package/esm2020/card/helper-directives.mjs +13 -11
- package/esm2020/card/section.component.mjs +3 -3
- package/esm2020/checkbox/checkbox-group/checkbox-group.component.mjs +3 -3
- package/esm2020/checkbox/checkbox.component.mjs +20 -20
- package/esm2020/checkbox/checkbox.module.mjs +5 -5
- package/esm2020/color-picker/color-picker.component.mjs +3 -3
- package/esm2020/color-picker/color-picker.module.mjs +5 -5
- package/esm2020/date-picker/calendar/constant.mjs +2 -1
- package/esm2020/date-picker/calendar/date-picker-panel/component.mjs +10 -10
- package/esm2020/date-picker/calendar/footer/component.mjs +5 -5
- package/esm2020/date-picker/calendar/header/component.mjs +11 -7
- package/esm2020/date-picker/calendar/panel/picker-panel.mjs +24 -20
- package/esm2020/date-picker/calendar/range-picker-panel/component.mjs +13 -11
- package/esm2020/date-picker/calendar/util.mjs +2 -1
- package/esm2020/date-picker/date-picker/date-picker.component.mjs +8 -8
- package/esm2020/date-picker/date-picker.module.mjs +15 -13
- package/esm2020/date-picker/range-picker/range-picker.component.mjs +8 -8
- package/esm2020/date-picker/trigger/trigger.component.mjs +18 -18
- package/esm2020/dialog/confirm-dialog/confirm-dialog.component.mjs +6 -6
- package/esm2020/dialog/dialog-animations.mjs +2 -1
- package/esm2020/dialog/dialog-content/dialog-close.directive.mjs +3 -3
- package/esm2020/dialog/dialog-content/dialog-content.component.mjs +5 -4
- package/esm2020/dialog/dialog-content/dialog-footer.component.mjs +3 -3
- package/esm2020/dialog/dialog-content/dialog-header.component.mjs +5 -5
- package/esm2020/dialog/dialog.component.mjs +13 -20
- package/esm2020/dialog/dialog.module.mjs +12 -9
- package/esm2020/dialog/dialog.service.mjs +6 -19
- package/esm2020/drawer/component/drawer.component.mjs +30 -27
- package/esm2020/drawer/component/helper-directives.mjs +14 -10
- package/esm2020/drawer/drawer.module.mjs +6 -5
- package/esm2020/drawer/drawer.service.mjs +3 -3
- package/esm2020/dropdown/dropdown-active.directive.mjs +3 -3
- package/esm2020/dropdown/dropdown-button/dropdown-button.component.mjs +5 -5
- package/esm2020/dropdown/dropdown.directive.mjs +13 -13
- package/esm2020/dropdown/dropdown.module.mjs +5 -5
- package/esm2020/dropdown/helper-directives.mjs +3 -3
- package/esm2020/dropdown/menu/menu-content.directive.mjs +3 -3
- package/esm2020/dropdown/menu/menu.component.mjs +3 -3
- package/esm2020/dropdown/menu-group/menu-group.component.mjs +3 -3
- package/esm2020/dropdown/menu-item/menu-item.component.mjs +3 -3
- package/esm2020/dropdown/submenu/submenu.component.mjs +7 -7
- package/esm2020/form/common-form.mjs +22 -15
- package/esm2020/form/form-item/form-item.component.mjs +9 -9
- package/esm2020/form/form.directive.mjs +17 -17
- package/esm2020/form/form.module.mjs +5 -5
- package/esm2020/form/helper-directives.mjs +15 -15
- package/esm2020/i18n/i18n.module.mjs +4 -4
- package/esm2020/i18n/i18n.pipe.mjs +3 -3
- package/esm2020/i18n/i18n.service.mjs +3 -3
- package/esm2020/icon/icon-register.service.mjs +5 -4
- package/esm2020/icon/icon.component.mjs +3 -3
- package/esm2020/icon/icon.module.mjs +5 -5
- package/esm2020/inline-alert/helper-directives.mjs +3 -3
- package/esm2020/inline-alert/inline-alert.component.mjs +5 -5
- package/esm2020/inline-alert/inline-alert.module.mjs +5 -5
- package/esm2020/input/autosize.directive.mjs +16 -11
- package/esm2020/input/helper-directives.mjs +12 -12
- package/esm2020/input/input-group/input-group.component.mjs +3 -3
- package/esm2020/input/input.component.mjs +18 -14
- package/esm2020/input/input.module.mjs +12 -10
- package/esm2020/input/number-input/number-input.component.mjs +6 -6
- package/esm2020/input/search/search.component.mjs +8 -8
- package/esm2020/input/tags-input/tags-input.component.mjs +32 -27
- package/esm2020/message/message-wrapper.component.mjs +3 -3
- package/esm2020/message/message.component.mjs +8 -8
- package/esm2020/message/message.config.mjs +6 -1
- package/esm2020/message/message.module.mjs +6 -5
- package/esm2020/message/message.service.mjs +3 -3
- package/esm2020/notification/notification-wrapper.component.mjs +3 -3
- package/esm2020/notification/notification.component.mjs +12 -8
- package/esm2020/notification/notification.module.mjs +6 -5
- package/esm2020/notification/notification.service.mjs +3 -3
- package/esm2020/paginator/paginator-intl.mjs +15 -4
- package/esm2020/paginator/paginator.component.mjs +32 -24
- package/esm2020/paginator/paginator.module.mjs +5 -5
- package/esm2020/radio/base-radio.mjs +11 -11
- package/esm2020/radio/radio-button/radio-button.component.mjs +10 -9
- package/esm2020/radio/radio-group/radio-group.component.mjs +7 -4
- package/esm2020/radio/radio.component.mjs +8 -7
- package/esm2020/radio/radio.module.mjs +5 -5
- package/esm2020/scrolling/fixed-size-table-virtual-scroll-strategy.mjs +6 -4
- package/esm2020/scrolling/fixed-size-table-virtual-scroll.directive.mjs +6 -4
- package/esm2020/scrolling/fixed-size-virtual-scroll.directive.mjs +5 -4
- package/esm2020/scrolling/scrolling.module.mjs +4 -4
- package/esm2020/scrolling/virtual-for-of.directive.mjs +3 -3
- package/esm2020/scrolling/virtual-scroll-viewport.component.mjs +3 -3
- package/esm2020/select/base-select.mjs +8 -5
- package/esm2020/select/helper-directives.mjs +6 -6
- package/esm2020/select/multi-select/multi-select.component.mjs +31 -28
- package/esm2020/select/option/option.component.mjs +34 -34
- package/esm2020/select/option-group/option-group.component.mjs +3 -3
- package/esm2020/select/option-placeholder.component.mjs +3 -3
- package/esm2020/select/select.component.mjs +12 -11
- package/esm2020/select/select.module.mjs +12 -10
- package/esm2020/select/validators.mjs +13 -9
- package/esm2020/shared/click-outside.directive.mjs +8 -8
- package/esm2020/shared/shared.module.mjs +4 -4
- package/esm2020/sort/sort-errors.mjs +5 -1
- package/esm2020/sort/sort-header.component.mjs +8 -4
- package/esm2020/sort/sort.directive.mjs +5 -4
- package/esm2020/sort/sort.module.mjs +5 -5
- package/esm2020/status-bar/status-bar.component.mjs +3 -3
- package/esm2020/status-bar/status-bar.module.mjs +5 -5
- package/esm2020/steps/steps.component.mjs +10 -6
- package/esm2020/steps/steps.module.mjs +5 -5
- package/esm2020/switch/switch.component.mjs +5 -5
- package/esm2020/switch/switch.module.mjs +5 -5
- package/esm2020/table/table-cell-def.directive.mjs +8 -4
- package/esm2020/table/table-cell.component.mjs +9 -9
- package/esm2020/table/table-cell.directive.mjs +6 -4
- package/esm2020/table/table-column-def.directive.mjs +10 -4
- package/esm2020/table/table-header-cell-def.directive.mjs +8 -4
- package/esm2020/table/table-header-cell.directive.mjs +6 -4
- package/esm2020/table/table-header-row-def.directive.mjs +8 -4
- package/esm2020/table/table-header-row.component.mjs +5 -4
- package/esm2020/table/table-placeholder.directive.mjs +6 -6
- package/esm2020/table/table-row-def.directive.mjs +9 -4
- package/esm2020/table/table-row.component.mjs +5 -4
- package/esm2020/table/table-scroll.directive.mjs +15 -14
- package/esm2020/table/table.component.mjs +9 -6
- package/esm2020/table/table.module.mjs +5 -5
- package/esm2020/table-of-contents/table-of-contents.module.mjs +5 -5
- package/esm2020/table-of-contents/toc-container.directive.mjs +14 -14
- package/esm2020/table-of-contents/toc-content.directive.mjs +3 -3
- package/esm2020/table-of-contents/toc-link.directive.mjs +7 -7
- package/esm2020/tabs/tab-body.component.mjs +43 -25
- package/esm2020/tabs/tab-context.service.mjs +13 -10
- package/esm2020/tabs/tab-group.component.mjs +73 -28
- package/esm2020/tabs/tab-header-active-indicator.component.mjs +13 -4
- package/esm2020/tabs/tab-header.component.mjs +132 -29
- package/esm2020/tabs/tab.component.mjs +27 -13
- package/esm2020/tabs/tabs.module.mjs +13 -11
- package/esm2020/tabs/tabs.types.mjs +4 -1
- package/esm2020/tag/check-tag/check-tag.component.mjs +3 -3
- package/esm2020/tag/tag.component.mjs +7 -6
- package/esm2020/tag/tag.module.mjs +5 -5
- package/esm2020/theme/theme.module.mjs +5 -5
- package/esm2020/theme/theme.pipe.mjs +12 -12
- package/esm2020/theme/theme.service.mjs +3 -3
- package/esm2020/time-picker/component.mjs +12 -12
- package/esm2020/time-picker/panel/panel.component.mjs +29 -27
- package/esm2020/time-picker/time-picker.module.mjs +16 -14
- package/esm2020/tooltip/base-tooltip.mjs +42 -38
- package/esm2020/tooltip/tooltip-active.directive.mjs +3 -3
- package/esm2020/tooltip/tooltip-copy.directive.mjs +10 -10
- package/esm2020/tooltip/tooltip-intl.mjs +10 -4
- package/esm2020/tooltip/tooltip.component.mjs +5 -5
- package/esm2020/tooltip/tooltip.directive.mjs +3 -3
- package/esm2020/tooltip/tooltip.module.mjs +6 -5
- package/esm2020/tree-select/tree-node-placeholder.component.mjs +3 -3
- package/esm2020/tree-select/tree-select.component.mjs +30 -29
- package/esm2020/tree-select/tree-select.module.mjs +5 -5
- package/esm2020/types.mjs +4 -1
- package/esm2020/utils/bem.mjs +2 -1
- package/esm2020/utils/coercion.mjs +5 -1
- package/fesm2015/alauda-ui.mjs +1959 -1589
- package/fesm2015/alauda-ui.mjs.map +1 -1
- package/fesm2020/alauda-ui.mjs +2193 -1822
- package/fesm2020/alauda-ui.mjs.map +1 -1
- package/form/common-form.d.ts +8 -1
- package/form/form-item/form-item.component.d.ts +1 -1
- package/form/form.directive.d.ts +1 -1
- package/form/form.types.d.ts +2 -2
- package/form/helper-directives.d.ts +5 -5
- package/i18n/i18n.pipe.d.ts +1 -1
- package/i18n/i18n.type.d.ts +1 -1
- package/icon/icon.component.d.ts +1 -1
- package/inline-alert/helper-directives.d.ts +1 -1
- package/inline-alert/inline-alert.component.d.ts +1 -1
- package/inline-alert/inline-alert.types.d.ts +1 -1
- package/input/autosize.directive.d.ts +4 -1
- package/input/helper-directives.d.ts +4 -4
- package/input/input-group/input-group.component.d.ts +1 -1
- package/input/input.component.d.ts +4 -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 +4 -4
- package/message/message-wrapper.component.d.ts +1 -1
- package/message/message.component.d.ts +1 -1
- package/message/message.config.d.ts +20 -0
- package/notification/notification-wrapper.component.d.ts +1 -1
- package/notification/notification.component.d.ts +5 -1
- package/notification/notification.config.d.ts +1 -1
- package/package.json +9 -9
- package/paginator/paginator-intl.d.ts +9 -0
- package/paginator/paginator.component.d.ts +15 -1
- package/radio/base-radio.d.ts +1 -1
- package/radio/radio-button/radio-button.component.d.ts +1 -1
- package/radio/radio-group/radio-group.component.d.ts +4 -1
- package/radio/radio.component.d.ts +1 -1
- package/radio/radio.types.d.ts +1 -1
- package/scrolling/fixed-size-table-virtual-scroll.directive.d.ts +1 -1
- package/scrolling/fixed-size-virtual-scroll.directive.d.ts +1 -1
- package/scrolling/virtual-for-of.directive.d.ts +1 -1
- package/scrolling/virtual-scroll-viewport.component.d.ts +1 -1
- package/select/base-select.d.ts +4 -1
- package/select/helper-directives.d.ts +2 -2
- package/select/multi-select/multi-select.component.d.ts +1 -1
- package/select/option/option.component.d.ts +1 -1
- package/select/option-group/option-group.component.d.ts +1 -1
- package/select/option-placeholder.component.d.ts +1 -1
- package/select/select.component.d.ts +1 -1
- package/select/select.types.d.ts +3 -3
- package/select/validators.d.ts +1 -1
- package/shared/click-outside.directive.d.ts +1 -1
- package/sort/sort-errors.d.ts +4 -0
- package/sort/sort-header.component.d.ts +1 -1
- package/sort/sort.directive.d.ts +1 -1
- package/sort/sort.types.d.ts +2 -2
- package/src/accordion/README.md +13 -0
- package/src/anchor/README.md +23 -0
- package/src/dropdown/README.md +57 -0
- package/src/form/README.md +32 -0
- package/src/icon/README.md +28 -0
- package/src/inline-alert/README.md +16 -0
- package/src/input/number-input/README.md +16 -0
- package/src/select/README.md +57 -0
- package/src/sort/README.md +13 -0
- package/src/table/README.md +8 -0
- package/src/table-of-contents/README.md +94 -0
- package/src/tag/README.md +32 -0
- package/src/tree-select/README.md +34 -0
- package/status-bar/status-bar.component.d.ts +1 -1
- package/status-bar/status-bar.types.d.ts +2 -2
- package/steps/steps.component.d.ts +4 -1
- package/steps/types.d.ts +6 -3
- package/switch/switch.component.d.ts +1 -1
- package/table/table-cell-def.directive.d.ts +5 -1
- package/table/table-cell.component.d.ts +2 -2
- package/table/table-cell.directive.d.ts +2 -1
- package/table/table-column-def.directive.d.ts +5 -1
- package/table/table-header-cell-def.directive.d.ts +5 -1
- package/table/table-header-cell.directive.d.ts +2 -1
- package/table/table-header-row-def.directive.d.ts +5 -1
- package/table/table-header-row.component.d.ts +2 -1
- package/table/table-placeholder.directive.d.ts +2 -2
- package/table/table-row-def.directive.d.ts +6 -1
- package/table/table-row.component.d.ts +2 -1
- package/table/table-scroll.directive.d.ts +2 -2
- package/table/table.component.d.ts +1 -1
- package/table-of-contents/toc-container.directive.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 +23 -7
- package/tabs/tab-context.service.d.ts +3 -0
- package/tabs/tab-group.component.d.ts +29 -1
- package/tabs/tab-header-active-indicator.component.d.ts +10 -1
- package/tabs/tab-header.component.d.ts +85 -2
- package/tabs/tab.component.d.ts +19 -1
- package/tabs/tabs.types.d.ts +5 -2
- package/tag/check-tag/check-tag.component.d.ts +1 -1
- package/tag/tag.component.d.ts +1 -1
- package/tag/tag.types.d.ts +1 -1
- package/theme/_var.scss +1 -1
- package/theme/theme.pipe.d.ts +4 -4
- package/theme/theme.types.d.ts +3 -3
- package/time-picker/component.d.ts +1 -1
- package/time-picker/panel/panel.component.d.ts +1 -1
- package/time-picker/time-picker.type.d.ts +1 -1
- package/tooltip/base-tooltip.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-intl.d.ts +4 -0
- package/tooltip/tooltip.component.d.ts +1 -1
- package/tooltip/tooltip.directive.d.ts +1 -1
- package/tree-select/tree-node-placeholder.component.d.ts +1 -1
- package/tree-select/tree-select.component.d.ts +2 -2
- package/tree-select/tree-select.types.d.ts +1 -1
- package/types.d.ts +5 -2
- package/utils/operators.d.ts +1 -1
package/select/select.types.d.ts
CHANGED
|
@@ -7,9 +7,9 @@ export interface SelectFilterOption<T> extends SelectOption {
|
|
|
7
7
|
disabled?: boolean;
|
|
8
8
|
value: T;
|
|
9
9
|
}
|
|
10
|
-
export type OptionFilterFn<T> = (filter: string, option: SelectFilterOption<T>) => boolean;
|
|
11
|
-
export type TrackFn<T, R = unknown> = (value: T) => R;
|
|
12
|
-
export type TagClassFn<V, T extends string | TemplateRef<unknown> = string | TemplateRef<unknown>> = (label: T, value: V) => string | string[] | Set<string> | {
|
|
10
|
+
export declare type OptionFilterFn<T> = (filter: string, option: SelectFilterOption<T>) => boolean;
|
|
11
|
+
export declare type TrackFn<T, R = unknown> = (value: T) => R;
|
|
12
|
+
export declare type TagClassFn<V, T extends string | TemplateRef<unknown> = string | TemplateRef<unknown>> = (label: T, value: V) => string | string[] | Set<string> | {
|
|
13
13
|
[className: string]: unknown;
|
|
14
14
|
};
|
|
15
15
|
export declare enum SelectAllStatus {
|
package/select/validators.d.ts
CHANGED
|
@@ -18,5 +18,5 @@ export declare class IncludesDirective<T> implements Validator, AfterContentInit
|
|
|
18
18
|
registerOnValidatorChange(fn: () => void): void;
|
|
19
19
|
validate(control: AbstractControl): ValidationErrors;
|
|
20
20
|
static ɵfac: i0.ɵɵFactoryDeclaration<IncludesDirective<any>, never>;
|
|
21
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<IncludesDirective<any>, "aui-select[ngModel][includes],aui-select[formControl][includes],aui-select[formControlName][includes]", never, { "includes": "includes"; "trackFn": "trackFn"; }, {}, never
|
|
21
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<IncludesDirective<any>, "aui-select[ngModel][includes],aui-select[formControl][includes],aui-select[formControlName][includes]", never, { "includes": "includes"; "trackFn": "trackFn"; }, {}, never>;
|
|
22
22
|
}
|
|
@@ -6,5 +6,5 @@ export declare class ClickOutsideDirective {
|
|
|
6
6
|
onBodyClick(event: Event): void;
|
|
7
7
|
constructor(el: ElementRef<HTMLElement>);
|
|
8
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<ClickOutsideDirective, never>;
|
|
9
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<ClickOutsideDirective, "[auiClickOutside]", ["auiClickOutside"], {}, { "auiClickOutside": "auiClickOutside"; }, never
|
|
9
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ClickOutsideDirective, "[auiClickOutside]", ["auiClickOutside"], {}, { "auiClickOutside": "auiClickOutside"; }, never>;
|
|
10
10
|
}
|
package/sort/sort-errors.d.ts
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
|
+
/** @docs-private */
|
|
1
2
|
export declare function getSortDuplicateSortableIdError(id: string): Error;
|
|
3
|
+
/** @docs-private */
|
|
2
4
|
export declare function getSortHeaderNotContainedWithinSortError(): Error;
|
|
5
|
+
/** @docs-private */
|
|
3
6
|
export declare function getSortHeaderMissingIdError(): Error;
|
|
7
|
+
/** @docs-private */
|
|
4
8
|
export declare function getSortInvalidDirectionError(direction: string): Error;
|
|
@@ -20,5 +20,5 @@ export declare class SortHeaderComponent implements Sortable, OnInit, OnDestroy
|
|
|
20
20
|
_isSorted(): boolean;
|
|
21
21
|
_updateArrowDirection(): void;
|
|
22
22
|
static ɵfac: i0.ɵɵFactoryDeclaration<SortHeaderComponent, [null, { optional: true; }, { optional: true; }]>;
|
|
23
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SortHeaderComponent, "[aui-sort-header]", never, { "id": "aui-sort-header"; "start": "start"; }, {}, never, ["*"]
|
|
23
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SortHeaderComponent, "[aui-sort-header]", never, { "id": "aui-sort-header"; "start": "start"; }, {}, never, ["*"]>;
|
|
24
24
|
}
|
package/sort/sort.directive.d.ts
CHANGED
|
@@ -17,5 +17,5 @@ export declare class SortDirective implements OnChanges, OnDestroy {
|
|
|
17
17
|
ngOnChanges(): void;
|
|
18
18
|
ngOnDestroy(): void;
|
|
19
19
|
static ɵfac: i0.ɵɵFactoryDeclaration<SortDirective, never>;
|
|
20
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<SortDirective, "[auiSort]", ["auiSort"], { "active": "active"; "start": "start"; "direction": "direction"; }, { "sortChange": "sortChange"; }, never
|
|
20
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SortDirective, "[auiSort]", ["auiSort"], { "active": "active"; "start": "start"; "direction": "direction"; }, { "sortChange": "sortChange"; }, never>;
|
|
21
21
|
}
|
package/sort/sort.types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export type SortDirection = 'asc' | 'desc' | '';
|
|
2
|
-
export type ArrowViewState = SortDirection | 'hint' | 'active';
|
|
1
|
+
export declare type SortDirection = 'asc' | 'desc' | '';
|
|
2
|
+
export declare type ArrowViewState = SortDirection | 'hint' | 'active';
|
|
3
3
|
export interface Sortable {
|
|
4
4
|
id: string;
|
|
5
5
|
start: 'asc' | 'desc';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# Accordion (<aui-accordion>)
|
|
2
|
+
|
|
3
|
+
## Attributes
|
|
4
|
+
|
|
5
|
+
| 参数 | 说明 | 类型 | 默认值 |
|
|
6
|
+
| ----- | -------------- | ------- | ------ |
|
|
7
|
+
| multi | 可同时展开多个 | boolean | false |
|
|
8
|
+
|
|
9
|
+
## Events
|
|
10
|
+
|
|
11
|
+
| 事件名称 | 说明 | 回调参数 |
|
|
12
|
+
| -------------- | ----------------------------------- | ------------------------------------- |
|
|
13
|
+
| expandedChange | auiAccordionItemHeader 被点击时触发 | boolean(当前 toggle 是否被打开的状态) |
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# Anchor Module
|
|
2
|
+
|
|
3
|
+
## AnchorDirective(`[auiAnchor]`)
|
|
4
|
+
|
|
5
|
+
### AnchorDirective Inputs
|
|
6
|
+
|
|
7
|
+
| 参数 | 说明 | 类型 | 默认值 |
|
|
8
|
+
| ------------- | ---------------------------------------------------------------------------------------------------------- | ----------------------- | ----------- |
|
|
9
|
+
| auiAnchor | 滚动容器, 不传值默认取 `cdkScrollable` 或当前元素(如果可滚动)或 `window` | `HTMLElement` | `undefined` |
|
|
10
|
+
| adaptPosition | 是否自动调整当前元素 `paddingRight` 以保证与自动生成的锚点内容重叠 | `boolean` | `true` |
|
|
11
|
+
| padding | 自动调整 `paddingRight` 时自动保持与自动生成的锚点内容的距离 | `number` | `20` |
|
|
12
|
+
| minTop | 当滚动页面时自动生成的锚点内容距离页面顶部最小距离,默认取当前 `.aui-page__content` 元素的 `paddingTop` 值 | `number` | `20` |
|
|
13
|
+
| injectId | 是否自动在 `auiAnchorLabel` 元素上注入 id,将自动生成 `#` 可记录锚点 | `window === window.top` |
|
|
14
|
+
|
|
15
|
+
## AnchorLabelDirective(`[auiAnchorLabel]`)
|
|
16
|
+
|
|
17
|
+
### AnchorLabelDirective Inputs
|
|
18
|
+
|
|
19
|
+
| 参数 | 说明 | 类型 | 默认值 |
|
|
20
|
+
| --------------------- | ------------------------------------------------------------- | ----------------------- | ----------- |
|
|
21
|
+
| auiAnchorLabel | 自动生成锚点时对应文本内容,默认取当前元素文本内容 | `string \| TemplateRef` | `undefined` |
|
|
22
|
+
| auiAnchorLabelContext | 使用 `TemplateRef` 类型 `auiAnchorLabel` 时的上下文 | `unknown` | `undefined` |
|
|
23
|
+
| level | 锚点层级,不写这个 `input` 默认是 `0`,写了不填内容默认是 `1` | `string \| TemplateRef` | `0` |
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
# Dropdown Module
|
|
2
|
+
|
|
3
|
+
## Dropdown
|
|
4
|
+
|
|
5
|
+
### Dropdown Attributes
|
|
6
|
+
|
|
7
|
+
| 参数 | 说明 | 类型 | 默认值 |
|
|
8
|
+
| ------------------- | ---------------- | ------------- | ------------ |
|
|
9
|
+
| auiDropdown | menu 模板 | MenuComponent | - |
|
|
10
|
+
| auiDropdownContext | template context | any | - |
|
|
11
|
+
| auiDropdownPosition | menu 弹出位置 | string | 'bottom end' |
|
|
12
|
+
| auiDropdownDisabled | 禁用 dropdown | boolean | false |
|
|
13
|
+
|
|
14
|
+
## Menu
|
|
15
|
+
|
|
16
|
+
### Menu Attributes
|
|
17
|
+
|
|
18
|
+
| 参数 | 说明 | 类型 | 默认值 |
|
|
19
|
+
| ---- | --------- | ------------- | -------------------- |
|
|
20
|
+
| size | menu 大小 | ComponentSize | ComponentSize.Medium |
|
|
21
|
+
|
|
22
|
+
## MenuItem
|
|
23
|
+
|
|
24
|
+
### MenuItem Attributes
|
|
25
|
+
|
|
26
|
+
| 参数 | 说明 | 类型 | 默认值 |
|
|
27
|
+
| -------- | -------------------- | ------- | ------ |
|
|
28
|
+
| disabled | 是否禁用 | boolean | false |
|
|
29
|
+
| divide | 是否在顶部显示分割线 | boolean | false |
|
|
30
|
+
|
|
31
|
+
## Submenu
|
|
32
|
+
|
|
33
|
+
### Submenu Attributes
|
|
34
|
+
|
|
35
|
+
| 参数 | 说明 | 类型 | 默认值 |
|
|
36
|
+
| -------- | -------------------- | -------------- | -------------------- |
|
|
37
|
+
| disabled | 是否禁用 | boolean | false |
|
|
38
|
+
| trigger | 触发方式 | TooltipTrigger | TooltipTrigger.Hover |
|
|
39
|
+
| divide | 是否在顶部显示分割线 | boolean | false |
|
|
40
|
+
| size | menu 大小 | ComponentSize | ComponentSize.Medium |
|
|
41
|
+
|
|
42
|
+
## DropdownButton
|
|
43
|
+
|
|
44
|
+
### DropdownButton Attributes
|
|
45
|
+
|
|
46
|
+
| 参数 | 说明 | 类型 | 默认值 |
|
|
47
|
+
| -------- | ------------------------ | ------------- | -------------------- |
|
|
48
|
+
| type | 按钮类型 | ButtonType | ButtonType.Default |
|
|
49
|
+
| size | 组件大小 | ComponentSize | ComponentSize.Medium |
|
|
50
|
+
| loading | 外部按钮是否显示 loading | boolean | false |
|
|
51
|
+
| disabled | 是否禁用外部按钮 | boolean | false |
|
|
52
|
+
|
|
53
|
+
### Events
|
|
54
|
+
|
|
55
|
+
| 事件名称 | 说明 | 回调参数 |
|
|
56
|
+
| ----------- | -------------- | -------- |
|
|
57
|
+
| buttonClick | 外部按钮被点击 | Event |
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# Form Module
|
|
2
|
+
|
|
3
|
+
## FormItem
|
|
4
|
+
|
|
5
|
+
### FormItem Attributes
|
|
6
|
+
|
|
7
|
+
| 参数 | 说明 | 类型 | 默认值 |
|
|
8
|
+
| ------------- | ------------------- | -------------- | ------ |
|
|
9
|
+
| labelWidth | 标签宽度 | string | auto |
|
|
10
|
+
| labelPosition | 标签位置 | left,right,top | right |
|
|
11
|
+
| emptyAddon | 添加 addon 占位元素 | boolean | false |
|
|
12
|
+
|
|
13
|
+
### FormItem Contents
|
|
14
|
+
|
|
15
|
+
| 选择器 | 说明 |
|
|
16
|
+
| ------------------------ | -------- |
|
|
17
|
+
| `label[rcFormItemLabel]` | 标签 |
|
|
18
|
+
| `[rcFormItemControl]` | 表单元素 |
|
|
19
|
+
| `[rcFormItemHint]` | 信息提示 |
|
|
20
|
+
| `[rcFormItemError]` | 错误提示 |
|
|
21
|
+
| `[rcFormItemAddon]` | 插件 |
|
|
22
|
+
|
|
23
|
+
## Form
|
|
24
|
+
|
|
25
|
+
### Form Attributes
|
|
26
|
+
|
|
27
|
+
| 参数 | 说明 | 类型 | 默认值 |
|
|
28
|
+
| -------------------- | ------------------- | -------------- | ------ |
|
|
29
|
+
| auiFormLabelWidth | 标签宽度 | string | auto |
|
|
30
|
+
| auiFormLabelPosition | 标签位置 | left,right,top | right |
|
|
31
|
+
| auiFormEmptyAddon | 添加 addon 占位元素 | boolean | false |
|
|
32
|
+
| auiFormInline | 单行显示 | boolean | false |
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# Icon
|
|
2
|
+
|
|
3
|
+
## Attributes
|
|
4
|
+
|
|
5
|
+
| 参数 | 说明 | 类型 | 默认值 |
|
|
6
|
+
| ------ | ----------------------------------------- | -------------- | ------ |
|
|
7
|
+
| icon | icon 名称,用 `:` 将 namespace 和 id 隔开 | string | none |
|
|
8
|
+
| link | 外链 svg 地址 | string | - |
|
|
9
|
+
| margin | 在左、右方添加边距 | 'left'/'right' | - |
|
|
10
|
+
|
|
11
|
+
## IconRegistryService
|
|
12
|
+
|
|
13
|
+
| 名称 | 参数 | 说明 |
|
|
14
|
+
| -------------------------- | ----------- | --------------------------------------------------------------------- |
|
|
15
|
+
| registrySvgSymbolsByUrl | url: string | 异步加载 svg 文件,要注意预防脚本注入攻击,确保 url 和 响应是可信任的 |
|
|
16
|
+
| registrySvgSymbolsByString | str: string | 将 svg 字符串添加到文档,确保字符串是可信任的 |
|
|
17
|
+
|
|
18
|
+
## Read More
|
|
19
|
+
|
|
20
|
+
主要考虑了三种实现方式:`font icon`,`inline svg`,`svg symbols`。
|
|
21
|
+
|
|
22
|
+
- `font icon`:目前使用最广泛最成熟的方案,但因为[一些缺陷](https://css-tricks.com/icon-fonts-vs-svg/)业内开始不再推崇这种方式。针对 `aui-icon` 的使用场景主要缺陷是可能出现的渲染问题。
|
|
23
|
+
- `inline svg`:实现上比较麻烦,DOM 操作太多。
|
|
24
|
+
- `svg symbols`:具有 `inline svg` 的所有优点,使用简单优雅。缺陷是浏览器兼容性,IE 所有不支持外链 svg,所以需要将 svg 插入到文档中。
|
|
25
|
+
|
|
26
|
+
## 使用自定义图标
|
|
27
|
+
|
|
28
|
+
通过静态文件目录、webpack 打包等方式将 symbol svg 文件发布到线上,并在使用图标前(通常是 app 初始化时)通过 `IconRegistryService` 服务的 `registryByUrl()` 方法注册图标文件,参数为图标对应的 url,服务将自动加载图标并将其添加到文档中。之后在使用时将图标 ID 以 `{namespace}:{name}` 的格式传给 icon 组件即可。
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# Inline Alert
|
|
2
|
+
|
|
3
|
+
## Attributes
|
|
4
|
+
|
|
5
|
+
| 参数 | 说明 | 类型 | 默认值 |
|
|
6
|
+
| -------- | ---------- | --------------- | -------------------- |
|
|
7
|
+
| title | 标题 | string | - |
|
|
8
|
+
| content | 内容 | string | - |
|
|
9
|
+
| type | 类型 | InlineAlertType | InlineAlertType.Info |
|
|
10
|
+
| closable | 是否可关闭 | boolean | false |
|
|
11
|
+
|
|
12
|
+
## Events
|
|
13
|
+
|
|
14
|
+
| 事件名称 | 说明 | 回调参数 |
|
|
15
|
+
| -------- | ------------------------ | -------- |
|
|
16
|
+
| close | 关闭 Inline Alert 时触发 | - |
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# Number-input (<aui-number-input>)
|
|
2
|
+
|
|
3
|
+
## Attributes
|
|
4
|
+
|
|
5
|
+
| 参数 | 说明 | 类型 | 默认值 |
|
|
6
|
+
| ---------------- | ---------------------- | ------------- | ----------------------- |
|
|
7
|
+
| size | 尺寸 | ComponentSize | ComponentSize.Medium |
|
|
8
|
+
| disabled | 禁用 | boolean | false |
|
|
9
|
+
| min | 最小值 | number | - |
|
|
10
|
+
| max | 最大值 | number | Number.MAX_SAFE_INTEGER |
|
|
11
|
+
| step | 计数器步长 | number | 1 |
|
|
12
|
+
| precision | 数值精度 | number | 0 |
|
|
13
|
+
| controls | 是否使用控制按钮 | boolean | true |
|
|
14
|
+
| placeholder | 占位符 | string | '' |
|
|
15
|
+
| controlsPosition | 控制按钮位置(暂未实现) | string | - |
|
|
16
|
+
| clearable | 是否可以清空已输入的值 | boolean | false |
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
## Select
|
|
2
|
+
|
|
3
|
+
### Select Attributes
|
|
4
|
+
|
|
5
|
+
| 参数 | 说明 | 类型 | 默认值 |
|
|
6
|
+
| ----------- | -------------------------------------------- | ------------------ | ----------------------- |
|
|
7
|
+
| size | 尺寸 | ComponentSize | ComponentSize.Medium |
|
|
8
|
+
| placeholder | 占位符 | string | - |
|
|
9
|
+
| disabled | 禁用 | boolean | false |
|
|
10
|
+
| loading | 加载状态 | boolean | false |
|
|
11
|
+
| value | 选中值 | T | - |
|
|
12
|
+
| filterable | 是否可过滤选项 | boolean | false |
|
|
13
|
+
| filterFn | 过滤函数 | OptionFilterMethod | Array.property.includes |
|
|
14
|
+
| allowCreate | 是否允许创建新值,需要和 filterable 一起打开 | boolean | false |
|
|
15
|
+
| clearable | 是否可清空选项 | boolean | false |
|
|
16
|
+
| trackFn | 返回 value 唯一标识符 | TrackFn | val => val |
|
|
17
|
+
|
|
18
|
+
### Select Events
|
|
19
|
+
|
|
20
|
+
| 时间名称 | 说明 | 回调参数 |
|
|
21
|
+
| ------------ | ------------ | ------------- |
|
|
22
|
+
| valueChange | 选中值变化 | value: T |
|
|
23
|
+
| filterChange | input 值变化 | value: string |
|
|
24
|
+
|
|
25
|
+
## MultiSelect
|
|
26
|
+
|
|
27
|
+
### MultiSelect Attributes
|
|
28
|
+
|
|
29
|
+
| 参数 | 说明 | 类型 | 默认值 |
|
|
30
|
+
| ----------- | -------------------------------------------- | -------------- | ----------------------- |
|
|
31
|
+
| size | 尺寸 | ComponentSize | ComponentSize.Medium |
|
|
32
|
+
| placeholder | 占位符 | string | - |
|
|
33
|
+
| disabled | 禁用 | boolean | false |
|
|
34
|
+
| loading | 加载状态 | boolean | false |
|
|
35
|
+
| value | 选中值 | T[] | [] |
|
|
36
|
+
| filterable | 是否可过滤选项 | boolean | false |
|
|
37
|
+
| filterFn | 过滤函数 | OptionFilterFn | Array.property.includes |
|
|
38
|
+
| allowCreate | 是否允许创建新值,需要和 filterable 一起打开 | boolean | false |
|
|
39
|
+
| clearable | 是否可清空选项 | boolean | false |
|
|
40
|
+
| trackFn | 返回 value 唯一标识符 | TrackFn | val => val |
|
|
41
|
+
|
|
42
|
+
### MultiSelect Events
|
|
43
|
+
|
|
44
|
+
| 事件名称 | 说明 | 回调参数 |
|
|
45
|
+
| ------------ | ------------ | ------------- |
|
|
46
|
+
| valueChange | 选中值变化 | value: T |
|
|
47
|
+
| filterChange | input 值变化 | value: string |
|
|
48
|
+
|
|
49
|
+
## Option
|
|
50
|
+
|
|
51
|
+
### Option Attributes
|
|
52
|
+
|
|
53
|
+
| 参数 | 说明 | 类型 | 默认值 |
|
|
54
|
+
| -------- | ------------------------ | ------- | ------ |
|
|
55
|
+
| label | 选中后 select 显示的文案 | string | - |
|
|
56
|
+
| value | 选中值 | T | - |
|
|
57
|
+
| disabled | 禁用 | boolean | false |
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
### 设计
|
|
2
|
+
|
|
3
|
+
基于 angular/material 的 MatSort 及 MatSortHeader 原始代码修改,修改样式,移除 Alauda UI 不需要的功能,目的是保持组件尽可能简单,避免无关功能干扰开发,变更功能如下:
|
|
4
|
+
|
|
5
|
+
- sort disable 相关代码
|
|
6
|
+
- sort indicator 样式修改,并去除原有动画相关代码,原有动画仅适合箭头,Alauda UI 的设计并不适合添加动画
|
|
7
|
+
- 排序清除功能(asc -> desc -> no sort),Alauda UI 的设计并未考虑这块功能,考虑这块功能不是非常必要,而且会增加一个排序状态,操作稍显繁琐。
|
|
8
|
+
- 无障碍相关功能(后续结合实际情况考虑是否加入)
|
|
9
|
+
|
|
10
|
+
### 使用
|
|
11
|
+
|
|
12
|
+
- [material2 sort.md](https://github.com/angular/material2/blob/master/src/lib/sort/sort.md)
|
|
13
|
+
- [material2 document](https://material.angular.io/components/sort/overview)
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
## 设计
|
|
2
|
+
|
|
3
|
+
基于 angular/material 的 MatTable 修改,功能基本一致,仅移除 MatTableDataSource 相关代码`(MatTableDataSource和MatTable本身并无关系,而且功能并不适合基于服务端的排序及过滤,未来是否会抽取适合服务端的排序及过滤功能还需要考虑)`,样式按 Alauda UI 设计规范调整 。MatTable 相关组件基于 CdkTable 开发,未来 AuiTable 的功能变更会结合 CdkTable 来做。CdkTable 的[设计目标](https://docs.google.com/document/d/1ZyKhwrgqfTBAn7saTq2jPlep2_CwSw5DeoZ8UbaXrC0/preview)和 AuiTable 有很多共同点,可以作为一个后续功能迭代的基础。
|
|
4
|
+
|
|
5
|
+
## 使用
|
|
6
|
+
|
|
7
|
+
- [material2 table.md](https://github.com/angular/components/blob/master/src/cdk/table/table.md)
|
|
8
|
+
- [material2 document](https://material.angular.io/components/table/overview)
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
Features:
|
|
2
|
+
|
|
3
|
+
- Active link and content when content visible in scroll container.
|
|
4
|
+
- Smooth scroll to content when click link.
|
|
5
|
+
- Support programmable scroll to content.
|
|
6
|
+
- Support nested content.
|
|
7
|
+
|
|
8
|
+
Limit:
|
|
9
|
+
|
|
10
|
+
- container must scrollable.
|
|
11
|
+
- link active or fix position styles not included.
|
|
12
|
+
- if scroll to then end, scrollHeight - scrollTop === clientHeight, set last content active.
|
|
13
|
+
|
|
14
|
+
Simplest usage:
|
|
15
|
+
|
|
16
|
+
```html
|
|
17
|
+
<!-- links -->
|
|
18
|
+
<aside>
|
|
19
|
+
<a
|
|
20
|
+
auiTocLink="content1"
|
|
21
|
+
[for]="toc"
|
|
22
|
+
>content1</a
|
|
23
|
+
>
|
|
24
|
+
<a
|
|
25
|
+
auiTocLink="content2"
|
|
26
|
+
[for]="toc"
|
|
27
|
+
>content2</a
|
|
28
|
+
>
|
|
29
|
+
<a
|
|
30
|
+
auiTocLink="content3"
|
|
31
|
+
[for]="toc"
|
|
32
|
+
>content3</a
|
|
33
|
+
>
|
|
34
|
+
</aside>
|
|
35
|
+
<!-- scroll container -->
|
|
36
|
+
<article
|
|
37
|
+
auiTocContainer
|
|
38
|
+
#toc="auiTocContainer"
|
|
39
|
+
>
|
|
40
|
+
<section auiTocContent="content1">...</section>
|
|
41
|
+
<section auiTocContent="content2">...</section>
|
|
42
|
+
<section auiTocContent="content3">...</section>
|
|
43
|
+
</article>
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
Directives:
|
|
47
|
+
|
|
48
|
+
- `auiTocContainer`
|
|
49
|
+
|
|
50
|
+
```ts
|
|
51
|
+
@Output() activedChange: EventEmitter<string>;
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
emit when actived change, use this for self define links active.
|
|
55
|
+
|
|
56
|
+
```ts
|
|
57
|
+
scrollTo(content: string): void;
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
programmable scroll to content.
|
|
61
|
+
|
|
62
|
+
- `auiTocContent`
|
|
63
|
+
|
|
64
|
+
```ts
|
|
65
|
+
@Input('auiTocContent') auiTocContent: string;
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
set content name, must unique in same container.
|
|
69
|
+
|
|
70
|
+
```ts
|
|
71
|
+
@HostBinding('class.isActive') active: boolean;
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
you need define content `isActive` class for content styling when active.
|
|
75
|
+
|
|
76
|
+
- (Optional) `auiTocLink`
|
|
77
|
+
|
|
78
|
+
```ts
|
|
79
|
+
@Input() for: TocContainerDirective;
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
scroll container template reference variable
|
|
83
|
+
|
|
84
|
+
```ts
|
|
85
|
+
@Input('auiTocLink') auiTocLink: string;
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
link target content name.
|
|
89
|
+
|
|
90
|
+
```ts
|
|
91
|
+
@HostBinding('class.isActive') active: boolean;
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
you need define link `isActive` class for link styling when active.
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
## Tag
|
|
2
|
+
|
|
3
|
+
### Tag Attributes
|
|
4
|
+
|
|
5
|
+
| 参数 | 说明 | 类型 | 默认值 |
|
|
6
|
+
| --------- | ----------------------------------------------------------------- | ------------- | -------------------- |
|
|
7
|
+
| type | 主题 | TagType | TagType.Primary |
|
|
8
|
+
| size | 尺寸 | ComponentSize | ComponentSize.Medium |
|
|
9
|
+
| closeable | 是否可关闭 | boolean | false |
|
|
10
|
+
| solid | 是否实心 | boolean | false |
|
|
11
|
+
| color | 自定义颜色,可以 `,` 分隔两个色值,第一个值为主色,第二个为背景色 | string | - |
|
|
12
|
+
|
|
13
|
+
### Tag Events
|
|
14
|
+
|
|
15
|
+
| 事件名称 | 说明 | 回调参数 |
|
|
16
|
+
| -------- | --------------- | -------- |
|
|
17
|
+
| close | 关闭 tag 时触发 | - |
|
|
18
|
+
|
|
19
|
+
## CheckTag
|
|
20
|
+
|
|
21
|
+
### CheckTag Attributes
|
|
22
|
+
|
|
23
|
+
| 参数 | 说明 | 类型 | 默认值 |
|
|
24
|
+
| ------- | -------- | ------------- | -------------------- |
|
|
25
|
+
| checked | 是否选中 | boolean | false |
|
|
26
|
+
| size | 尺寸 | ComponentSize | ComponentSize.medium |
|
|
27
|
+
|
|
28
|
+
### CheckTag Events
|
|
29
|
+
|
|
30
|
+
| 事件名称 | 说明 | 回调参数 |
|
|
31
|
+
| ------------- | --------------- | -------- |
|
|
32
|
+
| checkedChange | 点击 tag 时触发 | boolean |
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# TreeSelect Module
|
|
2
|
+
|
|
3
|
+
## TreeSelect
|
|
4
|
+
|
|
5
|
+
### TreeSelect Attributes
|
|
6
|
+
|
|
7
|
+
| 参数 | 说明 | 类型 | 默认值 |
|
|
8
|
+
| ----------- | -------------- | ------------------ | ----------------------- |
|
|
9
|
+
| placeholder | 占位符 | string | - |
|
|
10
|
+
| disabled | 禁用 | boolean | false |
|
|
11
|
+
| loading | 加载状态 | boolean | false |
|
|
12
|
+
| value | 选中值 | any | - |
|
|
13
|
+
| filterable | 是否可过滤选项 | boolean | false |
|
|
14
|
+
| filterFn | 过滤函数 | OptionFilterMethod | Array.property.includes |
|
|
15
|
+
| clearable | 是否可清空选项 | boolean | false |
|
|
16
|
+
|
|
17
|
+
### TreeSelect Events
|
|
18
|
+
|
|
19
|
+
| 时间名称 | 说明 | 回调参数 |
|
|
20
|
+
| ------------ | ------------ | ------------- |
|
|
21
|
+
| valueChange | 选中值变化 | value: any |
|
|
22
|
+
| filterChange | input 值变化 | value: string |
|
|
23
|
+
|
|
24
|
+
## TreeNode
|
|
25
|
+
|
|
26
|
+
### TreeNode Attributes
|
|
27
|
+
|
|
28
|
+
| 参数 | 说明 | 类型 | 默认值 |
|
|
29
|
+
| -------- | ------------------------ | ------- | ------ |
|
|
30
|
+
| label | 选中后 select 显示的文案 | string | - |
|
|
31
|
+
| value | 选中值 | any | - |
|
|
32
|
+
| disabled | 禁用 | boolean | false |
|
|
33
|
+
| expanded | 是否默认展开节点 | boolean | false |
|
|
34
|
+
| leafOnly | 只允许选择叶子节点 | boolean | false |
|
|
@@ -9,5 +9,5 @@ export declare class StatusBarComponent {
|
|
|
9
9
|
template: TemplateRef<any>;
|
|
10
10
|
statusClick: EventEmitter<Status>;
|
|
11
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<StatusBarComponent, never>;
|
|
12
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<StatusBarComponent, "aui-status-bar", never, { "status": "status"; "size": "size"; "template": "template"; }, { "statusClick": "statusClick"; }, never, never
|
|
12
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<StatusBarComponent, "aui-status-bar", never, { "status": "status"; "size": "size"; "template": "template"; }, { "statusClick": "statusClick"; }, never, never>;
|
|
13
13
|
}
|
|
@@ -13,9 +13,9 @@ export declare const StatusType: {
|
|
|
13
13
|
readonly Info: "info";
|
|
14
14
|
readonly Pending: "pending";
|
|
15
15
|
};
|
|
16
|
-
export type StatusType = ValueOf<typeof StatusType>;
|
|
16
|
+
export declare type StatusType = ValueOf<typeof StatusType>;
|
|
17
17
|
export declare const StatusBarSize: {
|
|
18
18
|
readonly Medium: "medium";
|
|
19
19
|
readonly Small: "small";
|
|
20
20
|
};
|
|
21
|
-
export type StatusBarSize = ValueOf<typeof StatusBarSize>;
|
|
21
|
+
export declare type StatusBarSize = ValueOf<typeof StatusBarSize>;
|
|
@@ -7,6 +7,9 @@ export declare class StepsComponent implements OnInit, OnDestroy {
|
|
|
7
7
|
private _steps;
|
|
8
8
|
get steps(): StepItem[];
|
|
9
9
|
set steps(val: StepItem[]);
|
|
10
|
+
/**
|
|
11
|
+
* @deprecated type 为 step 时一般在使用上下文中控制是否可以进行下一步;type 为 progress 时强制按顺序执行
|
|
12
|
+
*/
|
|
10
13
|
linear: boolean;
|
|
11
14
|
get currentIndex(): number;
|
|
12
15
|
set currentIndex(index: number);
|
|
@@ -32,5 +35,5 @@ export declare class StepsComponent implements OnInit, OnDestroy {
|
|
|
32
35
|
isLastActive(i: number, steps: StepItem[]): boolean;
|
|
33
36
|
ngOnDestroy(): void;
|
|
34
37
|
static ɵfac: i0.ɵɵFactoryDeclaration<StepsComponent, never>;
|
|
35
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<StepsComponent, "aui-steps", ["auiSteps"], { "steps": "steps"; "linear": "linear"; "currentIndex": "currentIndex"; "orientation": "orientation"; "type": "type"; "selectable": "selectable"; }, { "currentIndexChange": "currentIndexChange"; "selectedIndexChange": "selectedIndexChange"; }, never, never
|
|
38
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<StepsComponent, "aui-steps", ["auiSteps"], { "steps": "steps"; "linear": "linear"; "currentIndex": "currentIndex"; "orientation": "orientation"; "type": "type"; "selectable": "selectable"; }, { "currentIndexChange": "currentIndexChange"; "selectedIndexChange": "selectedIndexChange"; }, never, never>;
|
|
36
39
|
}
|
package/steps/types.d.ts
CHANGED
|
@@ -5,13 +5,16 @@ export declare const StepState: {
|
|
|
5
5
|
readonly Error: "error";
|
|
6
6
|
readonly Pending: "pending";
|
|
7
7
|
};
|
|
8
|
-
export type StepState = ValueOf<typeof StepState>;
|
|
8
|
+
export declare type StepState = ValueOf<typeof StepState>;
|
|
9
9
|
export interface StepItem {
|
|
10
10
|
label: string;
|
|
11
11
|
description?: string;
|
|
12
12
|
state?: StepState;
|
|
13
13
|
optional?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* @deprecated 每个步骤不再需要单独控制。通过组件参数 selectable 统一控制
|
|
16
|
+
*/
|
|
14
17
|
editable?: boolean;
|
|
15
18
|
}
|
|
16
|
-
export type StepsOrientation = 'horizontal' | 'vertical';
|
|
17
|
-
export type StepsType = 'step' | 'progress';
|
|
19
|
+
export declare type StepsOrientation = 'horizontal' | 'vertical';
|
|
20
|
+
export declare type StepsType = 'step' | 'progress';
|
|
@@ -7,5 +7,5 @@ export declare class SwitchComponent extends CommonFormControl<boolean> {
|
|
|
7
7
|
onSwitch(): void;
|
|
8
8
|
onBlur(): void;
|
|
9
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<SwitchComponent, never>;
|
|
10
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SwitchComponent, "aui-switch", never, { "loading": "loading"; }, {}, never, never
|
|
10
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SwitchComponent, "aui-switch", never, { "loading": "loading"; }, {}, never, never>;
|
|
11
11
|
}
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { CdkCellDef } from '@angular/cdk/table';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
|
+
/**
|
|
4
|
+
* Cell definition for the aui-table.
|
|
5
|
+
* Captures the template of a column's data row cell as well as cell-specific properties.
|
|
6
|
+
*/
|
|
3
7
|
export declare class TableCellDefDirective extends CdkCellDef {
|
|
4
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<TableCellDefDirective, never>;
|
|
5
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<TableCellDefDirective, "[auiTableCellDef]", never, {}, {}, never
|
|
9
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TableCellDefDirective, "[auiTableCellDef]", never, {}, {}, never>;
|
|
6
10
|
}
|
|
@@ -7,12 +7,12 @@ export declare class TableExpandButtonCellComponent extends CdkCell {
|
|
|
7
7
|
expandChange: EventEmitter<any>;
|
|
8
8
|
get expanded(): string;
|
|
9
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<TableExpandButtonCellComponent, never>;
|
|
10
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TableExpandButtonCellComponent, "aui-table-cell[auiExpandButton]", never, { "expand": "expand"; "disabled": "disabled"; }, { "expandChange": "expandChange"; }, never, never
|
|
10
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TableExpandButtonCellComponent, "aui-table-cell[auiExpandButton]", never, { "expand": "expand"; "disabled": "disabled"; }, { "expandChange": "expandChange"; }, never, never>;
|
|
11
11
|
}
|
|
12
12
|
export declare class TableExpandPanelCellComponent extends CdkCell {
|
|
13
13
|
expand: boolean;
|
|
14
14
|
background: boolean;
|
|
15
15
|
get expanded(): string;
|
|
16
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<TableExpandPanelCellComponent, never>;
|
|
17
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TableExpandPanelCellComponent, "aui-table-cell[auiExpandPanel]", never, { "expand": "expand"; "background": "background"; }, {}, never, ["*"]
|
|
17
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TableExpandPanelCellComponent, "aui-table-cell[auiExpandPanel]", never, { "expand": "expand"; "background": "background"; }, {}, never, ["*"]>;
|
|
18
18
|
}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { CdkCell, CdkColumnDef } from '@angular/cdk/table';
|
|
2
2
|
import { ElementRef } from '@angular/core';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
+
/** Cell template container that adds the right classes and role. */
|
|
4
5
|
export declare class TableCellDirective extends CdkCell {
|
|
5
6
|
direction: 'row' | 'column';
|
|
6
7
|
constructor(columnDef: CdkColumnDef, elementRef: ElementRef<HTMLElement>);
|
|
7
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<TableCellDirective, never>;
|
|
8
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<TableCellDirective, "aui-table-cell", never, { "direction": "direction"; }, {}, never
|
|
9
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TableCellDirective, "aui-table-cell", never, { "direction": "direction"; }, {}, never>;
|
|
9
10
|
}
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
import { CdkColumnDef } from '@angular/cdk/table';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
|
+
/**
|
|
4
|
+
* Column definition for the aui-table.
|
|
5
|
+
* Defines a set of cells available for a table column.
|
|
6
|
+
*/
|
|
3
7
|
export declare class TableColumnDefDirective extends CdkColumnDef {
|
|
4
8
|
set auiTableColumnDef(value: string);
|
|
5
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<TableColumnDefDirective, never>;
|
|
6
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<TableColumnDefDirective, "[auiTableColumnDef]", never, { "sticky": "sticky"; "auiTableColumnDef": "auiTableColumnDef"; }, {}, never
|
|
10
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TableColumnDefDirective, "[auiTableColumnDef]", never, { "sticky": "sticky"; "auiTableColumnDef": "auiTableColumnDef"; }, {}, never>;
|
|
7
11
|
}
|