ngx-tethys 19.0.13 → 19.1.0-next.0
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/CHANGELOG.md +29 -2
- package/action/action.component.d.ts +12 -20
- package/action/actions.component.d.ts +5 -7
- package/affix/affix.component.d.ts +7 -10
- package/alert/alert.component.d.ts +1 -1
- package/anchor/anchor-link.component.d.ts +8 -8
- package/anchor/anchor.component.d.ts +15 -21
- package/arrow-switcher/arrow-switcher.component.d.ts +15 -22
- package/autocomplete/autocomplete.component.d.ts +10 -17
- package/autocomplete/autocomplete.trigger.directive.d.ts +10 -18
- package/avatar/avatar-list/avatar-list.component.d.ts +8 -14
- package/avatar/avatar.component.d.ts +25 -39
- package/back-top/back-top.component.d.ts +9 -12
- package/badge/badge.component.d.ts +19 -59
- package/breadcrumb/breadcrumb.component.d.ts +15 -20
- package/button/button-icon.component.d.ts +3 -2
- package/button/button.component.d.ts +3 -2
- package/calendar/calendar-header.component.d.ts +9 -8
- package/calendar/calendar.component.d.ts +16 -16
- package/card/card.component.d.ts +5 -11
- package/card/content.component.d.ts +3 -8
- package/card/header.component.d.ts +7 -8
- package/carousel/carousel.component.d.ts +22 -27
- package/cascader/cascader-li.component.d.ts +13 -21
- package/cascader/cascader-search-option.component.d.ts +8 -16
- package/cascader/cascader.component.d.ts +58 -80
- package/checkbox/checkbox.component.d.ts +2 -5
- package/collapse/collapse-item.component.d.ts +12 -19
- package/collapse/collapse.component.d.ts +6 -12
- package/collapse/collapse.token.d.ts +3 -3
- package/color-picker/color-picker-custom-panel.component.d.ts +5 -5
- package/color-picker/color-picker-panel.component.d.ts +7 -11
- package/color-picker/color-picker.component.d.ts +19 -35
- package/color-picker/parts/alpha/alpha.component.d.ts +8 -8
- package/color-picker/parts/hue/hue.component.d.ts +6 -6
- package/color-picker/parts/indicator/indicator.component.d.ts +4 -3
- package/color-picker/parts/inputs/inputs.component.d.ts +9 -9
- package/color-picker/parts/saturation/saturation.component.d.ts +9 -9
- package/comment/comment.component.d.ts +4 -5
- package/copy/copy.directive.d.ts +8 -9
- package/date-picker/abstract-picker.component.d.ts +8 -7
- package/date-picker/lib/calendar/calendar-footer.component.d.ts +2 -1
- package/date-picker/lib/popups/inner-popup.component.d.ts +2 -1
- package/date-picker/picker.component.d.ts +2 -1
- package/date-range/date-range.component.d.ts +2 -2
- package/dialog/body/dialog-body.component.d.ts +2 -6
- package/dialog/confirm/confirm.component.d.ts +2 -2
- package/dialog/footer/dialog-footer.component.d.ts +6 -9
- package/dialog/header/dialog-header.component.d.ts +9 -11
- package/divider/divider.component.d.ts +12 -16
- package/dot/dot.component.d.ts +5 -13
- package/drag-drop/drag-handle.directive.d.ts +2 -1
- package/drag-drop/drag.directive.d.ts +2 -1
- package/drag-drop/drop-container.directive.d.ts +2 -1
- package/dropdown/dropdown-menu-item.directive.d.ts +3 -2
- package/dropdown/dropdown-menu.component.d.ts +2 -1
- package/dropdown/dropdown.directive.d.ts +2 -1
- package/empty/empty.component.d.ts +21 -27
- package/fesm2022/ngx-tethys-action.mjs +54 -91
- package/fesm2022/ngx-tethys-action.mjs.map +1 -1
- package/fesm2022/ngx-tethys-affix.mjs +29 -26
- package/fesm2022/ngx-tethys-affix.mjs.map +1 -1
- package/fesm2022/ngx-tethys-anchor.mjs +91 -118
- package/fesm2022/ngx-tethys-anchor.mjs.map +1 -1
- package/fesm2022/ngx-tethys-arrow-switcher.mjs +51 -77
- package/fesm2022/ngx-tethys-arrow-switcher.mjs.map +1 -1
- package/fesm2022/ngx-tethys-autocomplete.mjs +69 -103
- package/fesm2022/ngx-tethys-autocomplete.mjs.map +1 -1
- package/fesm2022/ngx-tethys-avatar.mjs +117 -162
- package/fesm2022/ngx-tethys-avatar.mjs.map +1 -1
- package/fesm2022/ngx-tethys-back-top.mjs +33 -46
- package/fesm2022/ngx-tethys-back-top.mjs.map +1 -1
- package/fesm2022/ngx-tethys-badge.mjs +104 -208
- package/fesm2022/ngx-tethys-badge.mjs.map +1 -1
- package/fesm2022/ngx-tethys-breadcrumb.mjs +66 -70
- package/fesm2022/ngx-tethys-breadcrumb.mjs.map +1 -1
- package/fesm2022/ngx-tethys-calendar.mjs +85 -87
- package/fesm2022/ngx-tethys-calendar.mjs.map +1 -1
- package/fesm2022/ngx-tethys-card.mjs +72 -77
- package/fesm2022/ngx-tethys-card.mjs.map +1 -1
- package/fesm2022/ngx-tethys-carousel.mjs +82 -99
- package/fesm2022/ngx-tethys-carousel.mjs.map +1 -1
- package/fesm2022/ngx-tethys-cascader.mjs +313 -468
- package/fesm2022/ngx-tethys-cascader.mjs.map +1 -1
- package/fesm2022/ngx-tethys-checkbox.mjs +10 -17
- package/fesm2022/ngx-tethys-checkbox.mjs.map +1 -1
- package/fesm2022/ngx-tethys-collapse.mjs +66 -71
- package/fesm2022/ngx-tethys-collapse.mjs.map +1 -1
- package/fesm2022/ngx-tethys-color-picker.mjs +187 -246
- package/fesm2022/ngx-tethys-color-picker.mjs.map +1 -1
- package/fesm2022/ngx-tethys-comment.mjs +16 -10
- package/fesm2022/ngx-tethys-comment.mjs.map +1 -1
- package/fesm2022/ngx-tethys-copy.mjs +25 -28
- package/fesm2022/ngx-tethys-copy.mjs.map +1 -1
- package/fesm2022/ngx-tethys-dialog.mjs +81 -82
- package/fesm2022/ngx-tethys-dialog.mjs.map +1 -1
- package/fesm2022/ngx-tethys-divider.mjs +49 -58
- package/fesm2022/ngx-tethys-divider.mjs.map +1 -1
- package/fesm2022/ngx-tethys-dot.mjs +45 -68
- package/fesm2022/ngx-tethys-dot.mjs.map +1 -1
- package/fesm2022/ngx-tethys-empty.mjs +107 -95
- package/fesm2022/ngx-tethys-empty.mjs.map +1 -1
- package/fesm2022/ngx-tethys-form.mjs +161 -200
- package/fesm2022/ngx-tethys-form.mjs.map +1 -1
- package/fesm2022/ngx-tethys-fullscreen.mjs +21 -23
- package/fesm2022/ngx-tethys-fullscreen.mjs.map +1 -1
- package/fesm2022/ngx-tethys-grid.mjs +160 -152
- package/fesm2022/ngx-tethys-grid.mjs.map +1 -1
- package/fesm2022/ngx-tethys-i18n.mjs +25 -25
- package/fesm2022/ngx-tethys-i18n.mjs.map +1 -1
- package/fesm2022/ngx-tethys-input-number.mjs +101 -114
- package/fesm2022/ngx-tethys-input-number.mjs.map +1 -1
- package/fesm2022/ngx-tethys-input.mjs +268 -271
- package/fesm2022/ngx-tethys-input.mjs.map +1 -1
- package/fesm2022/ngx-tethys-list.mjs +1 -1
- package/fesm2022/ngx-tethys-list.mjs.map +1 -1
- package/fesm2022/ngx-tethys-loading.mjs +17 -35
- package/fesm2022/ngx-tethys-loading.mjs.map +1 -1
- package/fesm2022/ngx-tethys-mention.mjs +52 -74
- package/fesm2022/ngx-tethys-mention.mjs.map +1 -1
- package/fesm2022/ngx-tethys-menu.mjs +106 -179
- package/fesm2022/ngx-tethys-menu.mjs.map +1 -1
- package/fesm2022/ngx-tethys-nav.mjs +169 -201
- package/fesm2022/ngx-tethys-nav.mjs.map +1 -1
- package/fesm2022/ngx-tethys-pagination.mjs +230 -294
- package/fesm2022/ngx-tethys-pagination.mjs.map +1 -1
- package/fesm2022/ngx-tethys-popover.mjs +67 -70
- package/fesm2022/ngx-tethys-popover.mjs.map +1 -1
- package/fesm2022/ngx-tethys-progress.mjs +196 -244
- package/fesm2022/ngx-tethys-progress.mjs.map +1 -1
- package/fesm2022/ngx-tethys-property.mjs +102 -105
- package/fesm2022/ngx-tethys-property.mjs.map +1 -1
- package/fesm2022/ngx-tethys-radio.mjs +34 -38
- package/fesm2022/ngx-tethys-radio.mjs.map +1 -1
- package/fesm2022/ngx-tethys-result.mjs +46 -28
- package/fesm2022/ngx-tethys-result.mjs.map +1 -1
- package/fesm2022/ngx-tethys-skeleton.mjs +339 -342
- package/fesm2022/ngx-tethys-skeleton.mjs.map +1 -1
- package/fesm2022/ngx-tethys-slider.mjs +75 -108
- package/fesm2022/ngx-tethys-slider.mjs.map +1 -1
- package/fesm2022/ngx-tethys-space.mjs +26 -46
- package/fesm2022/ngx-tethys-space.mjs.map +1 -1
- package/fesm2022/ngx-tethys-statistic.mjs +114 -151
- package/fesm2022/ngx-tethys-statistic.mjs.map +1 -1
- package/fesm2022/ngx-tethys-stepper.mjs +74 -107
- package/fesm2022/ngx-tethys-stepper.mjs.map +1 -1
- package/fesm2022/ngx-tethys-switch.mjs +80 -140
- package/fesm2022/ngx-tethys-switch.mjs.map +1 -1
- package/fesm2022/ngx-tethys-table.mjs +1 -1
- package/fesm2022/ngx-tethys-table.mjs.map +1 -1
- package/fesm2022/ngx-tethys-tabs.mjs +69 -87
- package/fesm2022/ngx-tethys-tabs.mjs.map +1 -1
- package/fesm2022/ngx-tethys-tag.mjs +42 -64
- package/fesm2022/ngx-tethys-tag.mjs.map +1 -1
- package/fesm2022/ngx-tethys-timeline.mjs +104 -129
- package/fesm2022/ngx-tethys-timeline.mjs.map +1 -1
- package/fesm2022/ngx-tethys-typography.mjs +36 -33
- package/fesm2022/ngx-tethys-typography.mjs.map +1 -1
- package/fesm2022/ngx-tethys-upload.mjs +91 -130
- package/fesm2022/ngx-tethys-upload.mjs.map +1 -1
- package/fesm2022/ngx-tethys-util.mjs.map +1 -1
- package/fesm2022/ngx-tethys-watermark.mjs +36 -40
- package/fesm2022/ngx-tethys-watermark.mjs.map +1 -1
- package/fesm2022/ngx-tethys.mjs +1 -1
- package/fesm2022/ngx-tethys.mjs.map +1 -1
- package/form/form-group-error/form-group-error.component.d.ts +2 -3
- package/form/form-group-label.directive.d.ts +2 -1
- package/form/form-group.component.d.ts +17 -24
- package/form/form-submit.directive.d.ts +2 -2
- package/form/form.directive.d.ts +6 -8
- package/form/from-group-footer/form-group-footer.component.d.ts +2 -2
- package/form/validator/confirm-validator.directive.d.ts +2 -2
- package/form/validator/unique-validator.directive.d.ts +2 -2
- package/fullscreen/fullscreen.component.d.ts +7 -7
- package/grid/flex.d.ts +14 -19
- package/grid/thy-col.directive.d.ts +6 -9
- package/grid/thy-grid-item.component.d.ts +3 -4
- package/grid/thy-grid.component.d.ts +11 -12
- package/grid/thy-row.directive.d.ts +12 -12
- package/icon/icon.component.d.ts +3 -2
- package/image/image.directive.d.ts +3 -2
- package/input/input-count.component.d.ts +4 -5
- package/input/input-group.component.d.ts +20 -20
- package/input/input-search.component.d.ts +15 -20
- package/input/input.component.d.ts +20 -21
- package/input/input.directive.d.ts +4 -6
- package/input-number/input-number.component.d.ts +21 -29
- package/layout/header.component.d.ts +4 -9
- package/layout/sidebar-header.component.d.ts +2 -1
- package/layout/sidebar.component.d.ts +8 -7
- package/list/list.component.d.ts +2 -1
- package/list/selection/selection-list.d.ts +4 -3
- package/loading/loading.component.d.ts +4 -10
- package/mention/mention.directive.d.ts +6 -7
- package/mention/suggestions/suggestions.component.d.ts +8 -9
- package/menu/group/menu-group.component.d.ts +16 -33
- package/menu/item/action/menu-item-action.component.d.ts +7 -8
- package/menu/item/icon/menu-item-icon.component.d.ts +2 -2
- package/menu/item/menu-item.component.d.ts +4 -4
- package/menu/item/name/menu-item-name.component.d.ts +2 -3
- package/menu/menu.component.d.ts +3 -7
- package/nav/icon-nav/icon-nav-link.directive.d.ts +3 -7
- package/nav/icon-nav/icon-nav.component.d.ts +3 -8
- package/nav/nav-ink-bar.directive.d.ts +4 -6
- package/nav/nav-item.directive.d.ts +7 -10
- package/nav/nav.component.d.ts +20 -48
- package/package.json +1 -1
- package/pagination/pagination.component.d.ts +48 -109
- package/popover/header/popover-header.component.d.ts +7 -6
- package/popover/popover.directive.d.ts +11 -18
- package/progress/progress-circle.component.d.ts +32 -21
- package/progress/progress-strip.component.d.ts +10 -14
- package/progress/progress.component.d.ts +15 -23
- package/property/examples/single/single.component.scss +6 -0
- package/property/properties.component.d.ts +6 -13
- package/property/property-item.component.d.ts +21 -26
- package/property/styles/properties.scss +124 -52
- package/property-operation/property-operation.component.d.ts +6 -5
- package/radio/button/radio-button.component.d.ts +2 -2
- package/radio/group/radio-group.component.d.ts +8 -7
- package/radio/radio.component.d.ts +2 -2
- package/radio/radio.token.d.ts +2 -2
- package/rate/rate-item.component.d.ts +2 -1
- package/rate/rate.component.d.ts +4 -3
- package/resizable/resizable.directive.d.ts +4 -9
- package/resizable/resize-handle.component.d.ts +2 -1
- package/resizable/resize-handles.component.d.ts +2 -1
- package/result/result.component.d.ts +9 -10
- package/schematics/version.d.ts +1 -1
- package/schematics/version.js +1 -1
- package/segment/segment-item.component.d.ts +2 -1
- package/segment/segment.component.d.ts +2 -1
- package/select/custom-select/custom-select.component.d.ts +11 -10
- package/select/native-select/native-select.component.d.ts +2 -1
- package/shared/base-form-check.component.d.ts +3 -2
- package/shared/directives/thy-autofocus.directive.d.ts +3 -2
- package/shared/directives/thy-scroll.directive.d.ts +2 -1
- package/shared/directives/thy-show.d.ts +2 -1
- package/shared/option/group/option-group.component.d.ts +2 -1
- package/shared/option/list-option/list-option.component.d.ts +2 -7
- package/shared/option/option.component.d.ts +2 -1
- package/shared/select/select-control/select-control.component.d.ts +7 -6
- package/skeleton/skeleton-circle.component.d.ts +16 -19
- package/skeleton/skeleton-rectangle.component.d.ts +20 -23
- package/skeleton/skeleton.component.d.ts +5 -6
- package/skeleton/stylized/bullet-list.component.d.ts +11 -13
- package/skeleton/stylized/list.component.d.ts +10 -12
- package/skeleton/stylized/paragraph.component.d.ts +12 -14
- package/slide/slide-body/slide-body-section.component.d.ts +2 -1
- package/slider/slider.component.d.ts +17 -24
- package/space/space.component.d.ts +8 -8
- package/statistic/statistic.component.d.ts +35 -40
- package/stepper/step-header.component.d.ts +6 -10
- package/stepper/step.component.d.ts +6 -6
- package/stepper/stepper.component.d.ts +15 -20
- package/switch/switch.component.d.ts +24 -35
- package/table/table-column.component.d.ts +6 -5
- package/table/table-skeleton.component.d.ts +3 -10
- package/table/table.component.d.ts +11 -10
- package/tabs/tab-content.component.d.ts +4 -4
- package/tabs/tab.component.d.ts +4 -5
- package/tabs/tabs.component.d.ts +13 -15
- package/tag/tag.component.d.ts +10 -16
- package/time-picker/time-picker-panel.component.d.ts +3 -2
- package/time-picker/time-picker.component.d.ts +6 -5
- package/timeline/timeline-item.component.d.ts +9 -13
- package/timeline/timeline.component.d.ts +13 -17
- package/tooltip/tooltip.directive.d.ts +3 -2
- package/tree/tree-node.component.d.ts +6 -15
- package/tree/tree.component.d.ts +8 -7
- package/tree-select/tree-select.component.d.ts +8 -7
- package/typography/bg-color.directive.d.ts +3 -3
- package/typography/text/text.component.d.ts +2 -2
- package/typography/text-color.directive.d.ts +3 -3
- package/upload/file-drop.directive.d.ts +9 -11
- package/upload/file-select-base.d.ts +6 -10
- package/upload/file-select.component.d.ts +10 -20
- package/util/helpers/helpers.d.ts +2 -1
- package/vote/vote.component.d.ts +4 -3
- package/watermark/watermark.directive.d.ts +7 -9
package/CHANGELOG.md
CHANGED
|
@@ -2,12 +2,39 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [commit-and-tag-version](https://github.com/absolute-version/commit-and-tag-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
# [19.1.0-next.0](https://github.com/atinc/ngx-tethys/compare/19.0.12...19.1.0-next.0) (2025-05-23)
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
### Bug Fixes
|
|
9
9
|
|
|
10
|
-
* **
|
|
10
|
+
* **property:** remove oninit to subscribe click #TINFR-1760 ([#3451](https://github.com/atinc/ngx-tethys/issues/3451)) ([e2e81de](https://github.com/atinc/ngx-tethys/commit/e2e81de6dd6d26485b03601430559c526e0fd3b8)), closes [#TINFR-1760](https://github.com/atinc/ngx-tethys/issues/TINFR-1760)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
|
|
15
|
+
* **badge:** migrate to signal for badge [@wumeimin](https://github.com/wumeimin) ([#3412](https://github.com/atinc/ngx-tethys/issues/3412)) ([79d0b83](https://github.com/atinc/ngx-tethys/commit/79d0b83657b472135b74fa7d7aaa2450f2e26ee7))
|
|
16
|
+
* **calendar:** migrate to signal for calendar [@wumeimin](https://github.com/wumeimin) ([#3411](https://github.com/atinc/ngx-tethys/issues/3411)) ([16b11d2](https://github.com/atinc/ngx-tethys/commit/16b11d285b7fe8a8d81f96f87d6168b726e4dfc2))
|
|
17
|
+
* **colorPicker:** migrate to signal for colorPicker ([#3450](https://github.com/atinc/ngx-tethys/issues/3450)) ([a58d1ae](https://github.com/atinc/ngx-tethys/commit/a58d1ae3c76be93bc8ca98a80a1a1e87b3b7c4a7))
|
|
18
|
+
* **i18n:** unify placeholder and empty text in drop-down components #TINFR-2111 ([#3454](https://github.com/atinc/ngx-tethys/issues/3454)) ([4c166a6](https://github.com/atinc/ngx-tethys/commit/4c166a66bed4f7a1af6bdf26ecbfe19221d4a74d)), closes [#TINFR-2111](https://github.com/atinc/ngx-tethys/issues/TINFR-2111)
|
|
19
|
+
* **menu:** migrate to signal for menu ([#3439](https://github.com/atinc/ngx-tethys/issues/3439)) ([aa865a6](https://github.com/atinc/ngx-tethys/commit/aa865a6214add62db48d1de0737234df21895008))
|
|
20
|
+
* **property:** thy-property-item support single without thy-properties #TINFR-2098 ([#3453](https://github.com/atinc/ngx-tethys/issues/3453)) ([d88df2c](https://github.com/atinc/ngx-tethys/commit/d88df2ca611a6741f6060b1acd4e122347e8ef27)), closes [#TINFR-2098](https://github.com/atinc/ngx-tethys/issues/TINFR-2098)
|
|
21
|
+
* **slider:** migrate to signal for slider ([#3431](https://github.com/atinc/ngx-tethys/issues/3431)) ([02b31f1](https://github.com/atinc/ngx-tethys/commit/02b31f114d35b6b2d222c591122becffc3c69aef))
|
|
22
|
+
* **stepper:** migrate to signal for stepper #TINFR-1774 ([#3417](https://github.com/atinc/ngx-tethys/issues/3417)) ([70d3e96](https://github.com/atinc/ngx-tethys/commit/70d3e961e4f5cfdd48d94bb1f6a3ab20e9d46c37)), closes [#TINFR-1774](https://github.com/atinc/ngx-tethys/issues/TINFR-1774)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
## [19.0.12](https://github.com/atinc/ngx-tethys/compare/19.0.11...19.0.12) (2025-05-14)
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
### Bug Fixes
|
|
30
|
+
|
|
31
|
+
* **shared:** update input value handling and search emission logic #TINFR-2053 ([#3408](https://github.com/atinc/ngx-tethys/issues/3408)) ([5c7850b](https://github.com/atinc/ngx-tethys/commit/5c7850b105e53cebace4c1dd3d41c51696053199)), closes [#TINFR-2053](https://github.com/atinc/ngx-tethys/issues/TINFR-2053)
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
### Features
|
|
35
|
+
|
|
36
|
+
* **action:** migrate to signal for action [@wumeimin](https://github.com/wumeimin) ([#3414](https://github.com/atinc/ngx-tethys/issues/3414)) ([d787b04](https://github.com/atinc/ngx-tethys/commit/d787b04cfe18048f14c9e710d6b5ada905c0bc80))
|
|
37
|
+
* **affix:** migrate to signal for affix [@wumeimin](https://github.com/wumeimin) ([#3413](https://github.com/atinc/ngx-tethys/issues/3413)) ([d7ea93f](https://github.com/atinc/ngx-tethys/commit/d7ea93f60ba1dc1908c10b0a981e91c31f87e05c))
|
|
11
38
|
|
|
12
39
|
|
|
13
40
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AfterViewInit, OnChanges, OnDestroy, OnInit, Signal, SimpleChanges } from '@angular/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export type ThyActionType = 'primary' | 'success' | 'danger' | 'warning';
|
|
4
4
|
export type ThyActionFeedback = 'success' | 'error';
|
|
@@ -15,51 +15,47 @@ export declare class ThyAction implements OnInit, AfterViewInit, OnChanges, OnDe
|
|
|
15
15
|
private elementRef;
|
|
16
16
|
private renderer;
|
|
17
17
|
private cdr;
|
|
18
|
-
icon: string
|
|
18
|
+
icon: Signal<string>;
|
|
19
19
|
feedback: ThyActionFeedback;
|
|
20
20
|
feedbackOptions: ThyActionFeedbackOptions;
|
|
21
|
-
active: boolean
|
|
21
|
+
active: Signal<boolean>;
|
|
22
22
|
private type;
|
|
23
23
|
private hostRenderer;
|
|
24
24
|
private feedbackTimer;
|
|
25
25
|
/**
|
|
26
26
|
* 操作图标的类型
|
|
27
27
|
* @type primary | success | danger | warning
|
|
28
|
-
* @default primary
|
|
29
28
|
*/
|
|
30
|
-
|
|
29
|
+
readonly thyType: import("@angular/core").InputSignal<ThyActionType>;
|
|
31
30
|
/**
|
|
32
31
|
* 操作图标,支持传参同时也支持在投影中写 thy-icon 组件
|
|
33
32
|
*/
|
|
34
|
-
|
|
33
|
+
readonly thyIcon: import("@angular/core").InputSignal<string>;
|
|
35
34
|
/**
|
|
36
35
|
* 操作图标,当 thyIcon 和其他指令参数名有冲突时使用 thyActionIcon
|
|
37
36
|
*/
|
|
38
|
-
|
|
37
|
+
readonly thyActionIcon: import("@angular/core").InputSignal<string>;
|
|
39
38
|
/**
|
|
40
39
|
* 操作的图标 Active 状态,设置为 true 时会在 Item 上添加 active class
|
|
41
|
-
* @default false
|
|
42
40
|
*/
|
|
43
|
-
|
|
41
|
+
readonly thyActive: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
44
42
|
/**
|
|
45
43
|
* 操作的图标 Active 状态,当 thyActive 和其他指令参数名有冲突时使用 thyActionActive
|
|
46
|
-
* @default false
|
|
47
44
|
*/
|
|
48
|
-
|
|
45
|
+
readonly thyActionActive: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
49
46
|
/**
|
|
50
47
|
* 操作图标的主题
|
|
51
48
|
* @type fill(背景色填充) | lite(简单文本颜色变化)
|
|
52
49
|
*/
|
|
53
|
-
thyTheme:
|
|
50
|
+
readonly thyTheme: import("@angular/core").InputSignal<"fill" | "lite">;
|
|
54
51
|
/**
|
|
55
52
|
* Hover 展示的图标
|
|
56
53
|
*/
|
|
57
|
-
thyHoverIcon: string
|
|
54
|
+
readonly thyHoverIcon: import("@angular/core").InputSignal<string>;
|
|
58
55
|
/**
|
|
59
56
|
* 是否处于禁用状态
|
|
60
|
-
* @default false
|
|
61
57
|
*/
|
|
62
|
-
thyDisabled: boolean
|
|
58
|
+
readonly thyDisabled: import("@angular/core").InputSignalWithTransform<boolean, string | number | boolean>;
|
|
63
59
|
ngOnInit(): void;
|
|
64
60
|
ngAfterViewInit(): void;
|
|
65
61
|
ngOnChanges(changes: SimpleChanges): void;
|
|
@@ -74,12 +70,8 @@ export declare class ThyAction implements OnInit, AfterViewInit, OnChanges, OnDe
|
|
|
74
70
|
error(options?: ThyActionFeedbackOptions): void;
|
|
75
71
|
private setFeedback;
|
|
76
72
|
private wrapSpanForText;
|
|
77
|
-
private setActionType;
|
|
78
73
|
private updateClasses;
|
|
79
74
|
ngOnDestroy(): void;
|
|
80
75
|
static ɵfac: i0.ɵɵFactoryDeclaration<ThyAction, never>;
|
|
81
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ThyAction, "thy-action, [thyAction]", never, { "thyType": { "alias": "thyType"; "required": false; }; "thyIcon": { "alias": "thyIcon"; "required": false; }; "thyActionIcon": { "alias": "thyActionIcon"; "required": false; }; "thyActive": { "alias": "thyActive"; "required": false; }; "thyActionActive": { "alias": "thyActionActive"; "required": false; }; "thyTheme": { "alias": "thyTheme"; "required": false; }; "thyHoverIcon": { "alias": "thyHoverIcon"; "required": false; }; "thyDisabled": { "alias": "thyDisabled"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
82
|
-
static ngAcceptInputType_thyActive: boolean | string | number;
|
|
83
|
-
static ngAcceptInputType_thyActionActive: boolean | string | number;
|
|
84
|
-
static ngAcceptInputType_thyDisabled: boolean | string | number;
|
|
76
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ThyAction, "thy-action, [thyAction]", never, { "thyType": { "alias": "thyType"; "required": false; "isSignal": true; }; "thyIcon": { "alias": "thyIcon"; "required": false; "isSignal": true; }; "thyActionIcon": { "alias": "thyActionIcon"; "required": false; "isSignal": true; }; "thyActive": { "alias": "thyActive"; "required": false; "isSignal": true; }; "thyActionActive": { "alias": "thyActionActive"; "required": false; "isSignal": true; }; "thyTheme": { "alias": "thyTheme"; "required": false; "isSignal": true; }; "thyHoverIcon": { "alias": "thyHoverIcon"; "required": false; "isSignal": true; }; "thyDisabled": { "alias": "thyDisabled"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
85
77
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OnInit
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
2
|
import { ThySpacingSize } from 'ngx-tethys/core';
|
|
3
3
|
import { ThyAction } from './action.component';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
@@ -6,18 +6,16 @@ import * as i0 from "@angular/core";
|
|
|
6
6
|
* Actions 组件
|
|
7
7
|
* @name thy-actions
|
|
8
8
|
*/
|
|
9
|
-
export declare class ThyActions implements OnInit
|
|
10
|
-
actions:
|
|
9
|
+
export declare class ThyActions implements OnInit {
|
|
10
|
+
readonly actions: import("@angular/core").Signal<readonly ThyAction[]>;
|
|
11
11
|
/**
|
|
12
12
|
* 大小,支持 `zero` | `xxs` | `xs` | `sm` | `md` | `lg` | `xlg` 和自定义数字大小
|
|
13
13
|
* @type string | number
|
|
14
14
|
*/
|
|
15
|
-
thySize: ThySpacingSize
|
|
15
|
+
readonly thySize: import("@angular/core").InputSignal<ThySpacingSize>;
|
|
16
16
|
constructor();
|
|
17
17
|
ngOnInit(): void;
|
|
18
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
19
|
-
ngAfterContentInit(): void;
|
|
20
18
|
private setActionsSize;
|
|
21
19
|
static ɵfac: i0.ɵɵFactoryDeclaration<ThyActions, never>;
|
|
22
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ThyActions, "thy-actions", never, { "thySize": { "alias": "thySize"; "required": false; }; }, {}, ["actions"], ["*"], true, never>;
|
|
20
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ThyActions, "thy-actions", never, { "thySize": { "alias": "thySize"; "required": false; "isSignal": true; }; }, {}, ["actions"], ["*"], true, never>;
|
|
23
21
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SimpleRect } from 'ngx-tethys/util';
|
|
2
|
-
import { AfterViewInit,
|
|
2
|
+
import { AfterViewInit, OnChanges, OnDestroy, SimpleChanges } from '@angular/core';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
/**
|
|
5
5
|
* 固钉组件
|
|
@@ -11,26 +11,25 @@ export declare class ThyAffix implements AfterViewInit, OnChanges, OnDestroy {
|
|
|
11
11
|
private ngZone;
|
|
12
12
|
private platform;
|
|
13
13
|
private renderer;
|
|
14
|
-
private fixedElement;
|
|
14
|
+
private readonly fixedElement;
|
|
15
15
|
/**
|
|
16
16
|
* 设置 thy-affix 需要监听其滚动事件的元素,值为一个返回对应 DOM 元素的函数
|
|
17
17
|
* @default window
|
|
18
18
|
* @type string | Element | Window
|
|
19
19
|
*/
|
|
20
|
-
thyContainer
|
|
20
|
+
readonly thyContainer: import("@angular/core").InputSignal<string | Element | Window>;
|
|
21
21
|
/**
|
|
22
22
|
* 距离窗口顶部缓冲的偏移量阈值
|
|
23
|
-
* @default 0
|
|
24
23
|
*/
|
|
25
|
-
thyOffsetTop
|
|
24
|
+
readonly thyOffsetTop: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
26
25
|
/**
|
|
27
26
|
* 距离窗口底部缓冲的偏移量阈值
|
|
28
27
|
*/
|
|
29
|
-
thyOffsetBottom
|
|
28
|
+
readonly thyOffsetBottom: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
30
29
|
/**
|
|
31
30
|
* 固定状态改变时触发的回调函数
|
|
32
31
|
*/
|
|
33
|
-
readonly thyChange:
|
|
32
|
+
readonly thyChange: import("@angular/core").OutputEmitterRef<boolean>;
|
|
34
33
|
private readonly placeholderNode;
|
|
35
34
|
private affixStyle?;
|
|
36
35
|
private placeholderStyle?;
|
|
@@ -52,7 +51,5 @@ export declare class ThyAffix implements AfterViewInit, OnChanges, OnDestroy {
|
|
|
52
51
|
private syncPlaceholderStyle;
|
|
53
52
|
updatePosition(e: Event): void;
|
|
54
53
|
static ɵfac: i0.ɵɵFactoryDeclaration<ThyAffix, never>;
|
|
55
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ThyAffix, "thy-affix", ["thyAffix"], { "thyContainer": { "alias": "thyContainer"; "required": false; }; "thyOffsetTop": { "alias": "thyOffsetTop"; "required": false; }; "thyOffsetBottom": { "alias": "thyOffsetBottom"; "required": false; }; }, { "thyChange": "thyChange"; }, never, ["*"], true, never>;
|
|
56
|
-
static ngAcceptInputType_thyOffsetTop: unknown;
|
|
57
|
-
static ngAcceptInputType_thyOffsetBottom: unknown;
|
|
54
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ThyAffix, "thy-affix", ["thyAffix"], { "thyContainer": { "alias": "thyContainer"; "required": false; "isSignal": true; }; "thyOffsetTop": { "alias": "thyOffsetTop"; "required": false; "isSignal": true; }; "thyOffsetBottom": { "alias": "thyOffsetBottom"; "required": false; "isSignal": true; }; }, { "thyChange": "thyChange"; }, never, ["*"], true, never>;
|
|
58
55
|
}
|
|
@@ -36,7 +36,7 @@ export declare class ThyAlert {
|
|
|
36
36
|
* 是否显示关闭警告框按钮,默认不显示
|
|
37
37
|
* @default false
|
|
38
38
|
*/
|
|
39
|
-
thyCloseable: import("@angular/core").InputSignalWithTransform<boolean,
|
|
39
|
+
thyCloseable: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
40
40
|
/**
|
|
41
41
|
* 警告框自定义操作
|
|
42
42
|
* @type TemplateRef
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ElementRef, OnDestroy, OnInit, TemplateRef } from '@angular/core';
|
|
1
|
+
import { ElementRef, OnDestroy, OnInit, TemplateRef, Signal } from '@angular/core';
|
|
2
2
|
import { IThyAnchorLinkComponent } from './anchor.token';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
/**
|
|
@@ -9,19 +9,19 @@ export declare class ThyAnchorLink implements IThyAnchorLinkComponent, OnInit, O
|
|
|
9
9
|
elementRef: ElementRef<any>;
|
|
10
10
|
private anchorComponent;
|
|
11
11
|
private platform;
|
|
12
|
-
title: string | null
|
|
13
|
-
titleTemplate
|
|
12
|
+
readonly title: Signal<string | null>;
|
|
13
|
+
readonly titleTemplate: Signal<TemplateRef<any>>;
|
|
14
14
|
private hostRenderer;
|
|
15
15
|
/**
|
|
16
16
|
* 锚点链接
|
|
17
17
|
*/
|
|
18
|
-
thyHref: string
|
|
18
|
+
readonly thyHref: import("@angular/core").InputSignal<string>;
|
|
19
19
|
/**
|
|
20
20
|
* 文字内容
|
|
21
21
|
*/
|
|
22
|
-
|
|
23
|
-
thyTemplate: TemplateRef<void
|
|
24
|
-
linkTitle: ElementRef<HTMLAnchorElement
|
|
22
|
+
readonly thyTitle: import("@angular/core").InputSignal<string | TemplateRef<void>>;
|
|
23
|
+
readonly thyTemplate: Signal<TemplateRef<void>>;
|
|
24
|
+
readonly linkTitle: Signal<ElementRef<HTMLAnchorElement>>;
|
|
25
25
|
constructor();
|
|
26
26
|
ngOnInit(): void;
|
|
27
27
|
getLinkTitleElement(): HTMLAnchorElement;
|
|
@@ -30,5 +30,5 @@ export declare class ThyAnchorLink implements IThyAnchorLinkComponent, OnInit, O
|
|
|
30
30
|
goToClick(e: Event): void;
|
|
31
31
|
ngOnDestroy(): void;
|
|
32
32
|
static ɵfac: i0.ɵɵFactoryDeclaration<ThyAnchorLink, never>;
|
|
33
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ThyAnchorLink, "thy-link,thy-anchor-link", ["thyLink", "thyAnchorLink"], { "thyHref": { "alias": "thyHref"; "required": false; }; "thyTitle": { "alias": "thyTitle"; "required": false; }; }, {}, ["thyTemplate"], ["*"], true, never>;
|
|
33
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ThyAnchorLink, "thy-link,thy-anchor-link", ["thyLink", "thyAnchorLink"], { "thyHref": { "alias": "thyHref"; "required": false; "isSignal": true; }; "thyTitle": { "alias": "thyTitle"; "required": false; "isSignal": true; }; }, {}, ["thyTemplate"], ["*"], true, never>;
|
|
34
34
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AfterViewInit,
|
|
1
|
+
import { AfterViewInit, ElementRef, OnDestroy, Signal } from '@angular/core';
|
|
2
2
|
import { ThyAnchorLink } from './anchor-link.component';
|
|
3
3
|
import { IThyAnchorComponent } from './anchor.token';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
@@ -6,56 +6,54 @@ import * as i0 from "@angular/core";
|
|
|
6
6
|
* 锚点组件
|
|
7
7
|
* @name thy-anchor
|
|
8
8
|
*/
|
|
9
|
-
export declare class ThyAnchor implements IThyAnchorComponent, OnDestroy, AfterViewInit
|
|
9
|
+
export declare class ThyAnchor implements IThyAnchorComponent, OnDestroy, AfterViewInit {
|
|
10
10
|
private document;
|
|
11
11
|
private cdr;
|
|
12
12
|
private platform;
|
|
13
13
|
private zone;
|
|
14
14
|
private renderer;
|
|
15
15
|
private scrollService;
|
|
16
|
-
|
|
16
|
+
readonly ink: Signal<ElementRef<any>>;
|
|
17
17
|
/**
|
|
18
18
|
* 固定模式
|
|
19
19
|
*/
|
|
20
|
-
thyAffix: boolean
|
|
20
|
+
readonly thyAffix: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
21
21
|
/**
|
|
22
22
|
* 锚点区域边界,单位:px
|
|
23
23
|
*/
|
|
24
|
-
thyBounds: number
|
|
24
|
+
readonly thyBounds: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
25
25
|
/**
|
|
26
26
|
* 缓冲的偏移量阈值
|
|
27
27
|
*/
|
|
28
|
-
thyOffsetTop
|
|
28
|
+
readonly thyOffsetTop: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
29
29
|
/**
|
|
30
30
|
* 指定滚动的容器
|
|
31
|
-
* @type string | HTMLElement
|
|
32
31
|
*/
|
|
33
|
-
thyContainer
|
|
32
|
+
readonly thyContainer: import("@angular/core").InputSignal<string | HTMLElement>;
|
|
34
33
|
/**
|
|
35
34
|
* 设置导航方向
|
|
36
|
-
* @type 'vertical' | 'horizontal'
|
|
37
35
|
*/
|
|
38
|
-
thyDirection:
|
|
36
|
+
readonly thyDirection: import("@angular/core").InputSignal<"horizontal" | "vertical">;
|
|
39
37
|
/**
|
|
40
38
|
* 点击项触发
|
|
41
39
|
*/
|
|
42
|
-
readonly thyClick:
|
|
40
|
+
readonly thyClick: import("@angular/core").OutputEmitterRef<ThyAnchorLink>;
|
|
43
41
|
/**
|
|
44
42
|
* 滚动到某锚点时触发
|
|
45
43
|
*/
|
|
46
|
-
readonly thyScroll:
|
|
44
|
+
readonly thyScroll: import("@angular/core").OutputEmitterRef<ThyAnchorLink>;
|
|
47
45
|
visible: boolean;
|
|
48
|
-
wrapperStyle: {
|
|
46
|
+
readonly wrapperStyle: Signal<{
|
|
49
47
|
'max-height': string;
|
|
50
|
-
}
|
|
51
|
-
container
|
|
48
|
+
}>;
|
|
49
|
+
readonly container: Signal<HTMLElement | Window>;
|
|
52
50
|
private links;
|
|
53
51
|
private animating;
|
|
54
52
|
private destroy$;
|
|
55
53
|
private handleScrollTimeoutID;
|
|
56
54
|
registerLink(link: ThyAnchorLink): void;
|
|
57
55
|
unregisterLink(link: ThyAnchorLink): void;
|
|
58
|
-
|
|
56
|
+
constructor();
|
|
59
57
|
ngAfterViewInit(): void;
|
|
60
58
|
ngOnDestroy(): void;
|
|
61
59
|
private warningPrompt;
|
|
@@ -65,10 +63,6 @@ export declare class ThyAnchor implements IThyAnchorComponent, OnDestroy, AfterV
|
|
|
65
63
|
private handleActive;
|
|
66
64
|
private setVisible;
|
|
67
65
|
handleScrollTo(linkComponent: ThyAnchorLink): void;
|
|
68
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
69
66
|
static ɵfac: i0.ɵɵFactoryDeclaration<ThyAnchor, never>;
|
|
70
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ThyAnchor, "thy-anchor", ["thyAnchor"], { "thyAffix": { "alias": "thyAffix"; "required": false; }; "thyBounds": { "alias": "thyBounds"; "required": false; }; "thyOffsetTop": { "alias": "thyOffsetTop"; "required": false; }; "thyContainer": { "alias": "thyContainer"; "required": false; }; "thyDirection": { "alias": "thyDirection"; "required": false; }; }, { "thyClick": "thyClick"; "thyScroll": "thyScroll"; }, never, ["*"], true, never>;
|
|
71
|
-
static ngAcceptInputType_thyAffix: boolean | string | number;
|
|
72
|
-
static ngAcceptInputType_thyBounds: unknown;
|
|
73
|
-
static ngAcceptInputType_thyOffsetTop: unknown;
|
|
67
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ThyAnchor, "thy-anchor", ["thyAnchor"], { "thyAffix": { "alias": "thyAffix"; "required": false; "isSignal": true; }; "thyBounds": { "alias": "thyBounds"; "required": false; "isSignal": true; }; "thyOffsetTop": { "alias": "thyOffsetTop"; "required": false; "isSignal": true; }; "thyContainer": { "alias": "thyContainer"; "required": false; "isSignal": true; }; "thyDirection": { "alias": "thyDirection"; "required": false; "isSignal": true; }; }, { "thyClick": "thyClick"; "thyScroll": "thyScroll"; }, never, ["*"], true, never>;
|
|
74
68
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Signal, WritableSignal } from '@angular/core';
|
|
2
2
|
import { ControlValueAccessor } from '@angular/forms';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export type ThyArrowSwitcherTheme = 'default' | 'lite';
|
|
@@ -11,57 +11,50 @@ export interface ThyArrowSwitcherEvent {
|
|
|
11
11
|
* @name thy-arrow-switcher
|
|
12
12
|
* @order 10
|
|
13
13
|
*/
|
|
14
|
-
export declare class ThyArrowSwitcher implements
|
|
14
|
+
export declare class ThyArrowSwitcher implements ControlValueAccessor {
|
|
15
15
|
private cd;
|
|
16
|
-
|
|
17
|
-
_isSmallSize: boolean;
|
|
18
|
-
total: number;
|
|
19
|
-
theme: ThyArrowSwitcherTheme;
|
|
16
|
+
private disabled;
|
|
20
17
|
/**
|
|
21
18
|
* 点击上一条事件
|
|
22
19
|
*/
|
|
23
|
-
thyPrevious:
|
|
20
|
+
readonly thyPrevious: import("@angular/core").OutputEmitterRef<ThyArrowSwitcherEvent>;
|
|
24
21
|
/**
|
|
25
22
|
* 点击下一条事件
|
|
26
23
|
*/
|
|
27
|
-
thyNext:
|
|
24
|
+
readonly thyNext: import("@angular/core").OutputEmitterRef<ThyArrowSwitcherEvent>;
|
|
28
25
|
/**
|
|
29
26
|
* 设置上一条 Hover Tooltip 提示
|
|
30
27
|
*/
|
|
31
|
-
thyPreviousTooltip: string
|
|
28
|
+
readonly thyPreviousTooltip: import("@angular/core").InputSignal<string>;
|
|
32
29
|
/**
|
|
33
30
|
* 设置下一条 Hover Tooltip 提示
|
|
34
31
|
*/
|
|
35
|
-
thyNextTooltip: string
|
|
32
|
+
readonly thyNextTooltip: import("@angular/core").InputSignal<string>;
|
|
36
33
|
/**
|
|
37
34
|
* 展示主题
|
|
38
35
|
* @type default | lite
|
|
39
|
-
* @default default
|
|
40
36
|
*/
|
|
41
|
-
|
|
37
|
+
readonly thyTheme: import("@angular/core").InputSignal<ThyArrowSwitcherTheme>;
|
|
42
38
|
/**
|
|
43
39
|
* 总条数
|
|
44
40
|
*/
|
|
45
|
-
|
|
41
|
+
readonly thyTotal: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
46
42
|
/**
|
|
47
43
|
* 尺寸大小,默认尺寸为大号,取值为`sm`时展示小号
|
|
48
44
|
*/
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
previousDisabled: boolean
|
|
53
|
-
nextDisabled: boolean
|
|
45
|
+
readonly thySize: import("@angular/core").InputSignal<string>;
|
|
46
|
+
readonly isSmallSize: Signal<boolean>;
|
|
47
|
+
index: WritableSignal<number>;
|
|
48
|
+
readonly previousDisabled: Signal<boolean>;
|
|
49
|
+
readonly nextDisabled: Signal<boolean>;
|
|
54
50
|
private onModelChange;
|
|
55
51
|
private onModelTouched;
|
|
56
|
-
ngOnInit(): void;
|
|
57
52
|
writeValue(value: number): void;
|
|
58
53
|
registerOnChange(fn: () => void): void;
|
|
59
54
|
registerOnTouched(fn: () => void): void;
|
|
60
55
|
setDisabledState(isDisable: boolean): void;
|
|
61
|
-
getDisabled(): void;
|
|
62
56
|
onPreviousClick(event: Event): void;
|
|
63
57
|
onNextClick(event: Event): void;
|
|
64
58
|
static ɵfac: i0.ɵɵFactoryDeclaration<ThyArrowSwitcher, never>;
|
|
65
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ThyArrowSwitcher, "thy-arrow-switcher", never, { "thyPreviousTooltip": { "alias": "thyPreviousTooltip"; "required": false; }; "thyNextTooltip": { "alias": "thyNextTooltip"; "required": false; }; "thyTheme": { "alias": "thyTheme"; "required": false; }; "thyTotal": { "alias": "thyTotal"; "required": false; }; "thySize": { "alias": "thySize"; "required": false; }; }, { "thyPrevious": "thyPrevious"; "thyNext": "thyNext"; }, never, never, true, never>;
|
|
66
|
-
static ngAcceptInputType_thyTotal: unknown;
|
|
59
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ThyArrowSwitcher, "thy-arrow-switcher", never, { "thyPreviousTooltip": { "alias": "thyPreviousTooltip"; "required": false; "isSignal": true; }; "thyNextTooltip": { "alias": "thyNextTooltip"; "required": false; "isSignal": true; }; "thyTheme": { "alias": "thyTheme"; "required": false; "isSignal": true; }; "thyTotal": { "alias": "thyTotal"; "required": false; "isSignal": true; }; "thySize": { "alias": "thySize"; "required": false; "isSignal": true; }; }, { "thyPrevious": "thyPrevious"; "thyNext": "thyNext"; }, never, never, true, never>;
|
|
67
60
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TemplateRef, QueryList, OnInit,
|
|
1
|
+
import { TemplateRef, QueryList, OnInit, OnDestroy, AfterContentInit, ElementRef, Signal } from '@angular/core';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import { SelectionModel } from '@angular/cdk/collections';
|
|
4
4
|
import { IThyOptionParentComponent, ThyOption, ThyOptionSelectionChangeEvent } from 'ngx-tethys/shared';
|
|
@@ -31,8 +31,8 @@ export declare class ThyAutocomplete implements IThyOptionParentComponent, OnIni
|
|
|
31
31
|
isOpened: boolean;
|
|
32
32
|
/** Manages active item in option list based on key events. */
|
|
33
33
|
keyManager: ActiveDescendantKeyManager<ThyOption>;
|
|
34
|
-
contentTemplateRef: TemplateRef<any
|
|
35
|
-
optionsContainer: ElementRef<any
|
|
34
|
+
readonly contentTemplateRef: Signal<TemplateRef<any>>;
|
|
35
|
+
readonly optionsContainer: Signal<ElementRef<any>>;
|
|
36
36
|
/**
|
|
37
37
|
* @private
|
|
38
38
|
*/
|
|
@@ -42,34 +42,28 @@ export declare class ThyAutocomplete implements IThyOptionParentComponent, OnIni
|
|
|
42
42
|
* 空选项时的文本
|
|
43
43
|
* @default 没有任何数据
|
|
44
44
|
*/
|
|
45
|
-
thyEmptyText: string
|
|
45
|
+
readonly thyEmptyText: import("@angular/core").InputSignal<string>;
|
|
46
46
|
/**
|
|
47
47
|
* 是否默认高亮第一个选项
|
|
48
|
-
* @type boolean
|
|
49
|
-
* @default false
|
|
50
48
|
*/
|
|
51
|
-
thyAutoActiveFirstOption: boolean
|
|
49
|
+
readonly thyAutoActiveFirstOption: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
52
50
|
/**
|
|
53
51
|
* 被选中时调用,参数包含选中项的 value 值
|
|
54
|
-
* @type EventEmitter<ThyOptionSelectionChangeEvent>
|
|
55
52
|
*/
|
|
56
|
-
thyOptionSelected:
|
|
53
|
+
readonly thyOptionSelected: import("@angular/core").OutputEmitterRef<ThyOptionSelectionChangeEvent>;
|
|
57
54
|
/**
|
|
58
55
|
* 只读,展开下拉菜单的回调
|
|
59
|
-
* @type EventEmitter<void>
|
|
60
56
|
*/
|
|
61
|
-
readonly thyOpened:
|
|
57
|
+
readonly thyOpened: import("@angular/core").OutputEmitterRef<void>;
|
|
62
58
|
/**
|
|
63
59
|
* 只读,关闭下拉菜单的回调
|
|
64
|
-
* @type EventEmitter<void>
|
|
65
60
|
*/
|
|
66
|
-
readonly thyClosed:
|
|
61
|
+
readonly thyClosed: import("@angular/core").OutputEmitterRef<void>;
|
|
67
62
|
/** Emits whenever an option is activated using the keyboard. */
|
|
68
63
|
/**
|
|
69
64
|
* 只读,option 激活状态变化时,调用此函数
|
|
70
|
-
* @type EventEmitter<ThyAutocompleteActivatedEvent>
|
|
71
65
|
*/
|
|
72
|
-
readonly thyOptionActivated:
|
|
66
|
+
readonly thyOptionActivated: import("@angular/core").OutputEmitterRef<ThyAutocompleteActivatedEvent>;
|
|
73
67
|
ngOnInit(): void;
|
|
74
68
|
ngAfterContentInit(): void;
|
|
75
69
|
initKeyManager(): void;
|
|
@@ -81,6 +75,5 @@ export declare class ThyAutocomplete implements IThyOptionParentComponent, OnIni
|
|
|
81
75
|
private setDropDownClass;
|
|
82
76
|
ngOnDestroy(): void;
|
|
83
77
|
static ɵfac: i0.ɵɵFactoryDeclaration<ThyAutocomplete, never>;
|
|
84
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ThyAutocomplete, "thy-autocomplete", never, { "thyEmptyText": { "alias": "thyEmptyText"; "required": false; }; "thyAutoActiveFirstOption": { "alias": "thyAutoActiveFirstOption"; "required": false; }; }, { "thyOptionSelected": "thyOptionSelected"; "thyOpened": "thyOpened"; "thyClosed": "thyClosed"; "thyOptionActivated": "thyOptionActivated"; }, ["options"], ["*"], true, never>;
|
|
85
|
-
static ngAcceptInputType_thyAutoActiveFirstOption: boolean | string | number;
|
|
78
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ThyAutocomplete, "thy-autocomplete", never, { "thyEmptyText": { "alias": "thyEmptyText"; "required": false; "isSignal": true; }; "thyAutoActiveFirstOption": { "alias": "thyAutoActiveFirstOption"; "required": false; "isSignal": true; }; }, { "thyOptionSelected": "thyOptionSelected"; "thyOpened": "thyOpened"; "thyClosed": "thyClosed"; "thyOptionActivated": "thyOptionActivated"; }, ["options"], ["*"], true, never>;
|
|
86
79
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OnDestroy, OnInit } from '@angular/core';
|
|
1
|
+
import { OnDestroy, OnInit, Signal } from '@angular/core';
|
|
2
2
|
import { OverlayRef } from '@angular/cdk/overlay';
|
|
3
3
|
import { ThyPlacement } from 'ngx-tethys/core';
|
|
4
4
|
import { ThyAutocomplete } from './autocomplete.component';
|
|
@@ -21,41 +21,36 @@ export declare class ThyAutocompleteTriggerDirective implements OnInit, OnDestro
|
|
|
21
21
|
private autocompleteRef;
|
|
22
22
|
private readonly closeKeyEventStream;
|
|
23
23
|
private closingActionsSubscription;
|
|
24
|
-
private _autocompleteComponent;
|
|
25
24
|
panelOpened: boolean;
|
|
26
25
|
/**
|
|
27
26
|
* 下拉菜单组件实例。已废弃,请使用 thyAutocomplete
|
|
28
27
|
* @type thyAutocompleteComponent
|
|
29
28
|
* @deprecated
|
|
30
29
|
*/
|
|
31
|
-
|
|
30
|
+
readonly thyAutocompleteComponent: import("@angular/core").InputSignal<ThyAutocomplete>;
|
|
32
31
|
/**
|
|
33
32
|
* 下拉菜单组件实例
|
|
34
33
|
* @type thyAutocompleteComponent
|
|
35
34
|
*/
|
|
36
|
-
|
|
37
|
-
|
|
35
|
+
readonly thyAutocomplete: import("@angular/core").InputSignal<ThyAutocomplete>;
|
|
36
|
+
readonly autocompleteComponent: Signal<ThyAutocomplete>;
|
|
38
37
|
/**
|
|
39
38
|
* 弹出框默认 offset
|
|
40
|
-
* @type number
|
|
41
39
|
*/
|
|
42
|
-
thyOffset: number
|
|
40
|
+
readonly thyOffset: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
43
41
|
/**
|
|
44
42
|
* 下拉菜单的宽度,不设置默认与输入框同宽
|
|
45
|
-
* @type number
|
|
46
43
|
*/
|
|
47
|
-
thyAutocompleteWidth: number
|
|
44
|
+
readonly thyAutocompleteWidth: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
48
45
|
/**
|
|
49
46
|
* 下拉菜单的显示位置,'top' | 'topLeft' | 'topRight' | 'bottom' | 'bottomLeft' | 'bottomRight' | 'left' | 'leftTop' | 'leftBottom' | 'right' | 'rightTop' | 'rightBottom'
|
|
50
|
-
* @type string
|
|
51
47
|
*/
|
|
52
|
-
thyPlacement: ThyPlacement
|
|
48
|
+
readonly thyPlacement: import("@angular/core").InputSignal<ThyPlacement>;
|
|
53
49
|
/**
|
|
54
50
|
* 是否允许聚焦时打开下拉菜单
|
|
55
|
-
* @type boolean
|
|
56
51
|
*/
|
|
57
|
-
thyIsFocusOpen: boolean
|
|
58
|
-
|
|
52
|
+
readonly thyIsFocusOpen: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
53
|
+
readonly activeOption: Signal<ThyOption | null>;
|
|
59
54
|
get panelClosingActions(): Observable<ThyOptionSelectionChangeEvent | null>;
|
|
60
55
|
ngOnInit(): void;
|
|
61
56
|
onFocus(): void;
|
|
@@ -78,8 +73,5 @@ export declare class ThyAutocompleteTriggerDirective implements OnInit, OnDestro
|
|
|
78
73
|
private destroyPanel;
|
|
79
74
|
ngOnDestroy(): void;
|
|
80
75
|
static ɵfac: i0.ɵɵFactoryDeclaration<ThyAutocompleteTriggerDirective, never>;
|
|
81
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<ThyAutocompleteTriggerDirective, "input[thyAutocompleteTrigger], textarea[thyAutocompleteTrigger], thy-input[thyAutocompleteTrigger], thy-input-search[thyAutocompleteTrigger], input[thyAutocomplete], textarea[thyAutocomplete], thy-input[thyAutocomplete], thy-input-search[thyAutocomplete]", ["thyAutocompleteTrigger", "thyAutocomplete"], { "
|
|
82
|
-
static ngAcceptInputType_thyOffset: unknown;
|
|
83
|
-
static ngAcceptInputType_thyAutocompleteWidth: unknown;
|
|
84
|
-
static ngAcceptInputType_thyIsFocusOpen: boolean | string | number;
|
|
76
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ThyAutocompleteTriggerDirective, "input[thyAutocompleteTrigger], textarea[thyAutocompleteTrigger], thy-input[thyAutocompleteTrigger], thy-input-search[thyAutocompleteTrigger], input[thyAutocomplete], textarea[thyAutocomplete], thy-input[thyAutocomplete], thy-input-search[thyAutocomplete]", ["thyAutocompleteTrigger", "thyAutocomplete"], { "thyAutocompleteComponent": { "alias": "thyAutocompleteComponent"; "required": false; "isSignal": true; }; "thyAutocomplete": { "alias": "thyAutocomplete"; "required": false; "isSignal": true; }; "thyOffset": { "alias": "thyOffset"; "required": false; "isSignal": true; }; "thyAutocompleteWidth": { "alias": "thyAutocompleteWidth"; "required": false; "isSignal": true; }; "thyPlacement": { "alias": "thyPlacement"; "required": false; "isSignal": true; }; "thyIsFocusOpen": { "alias": "thyIsFocusOpen"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
85
77
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { SafeAny } from 'ngx-tethys/types';
|
|
1
|
+
import { Signal, TemplateRef } from '@angular/core';
|
|
3
2
|
import { ThyAvatar } from '../avatar.component';
|
|
4
3
|
import * as i0 from "@angular/core";
|
|
5
4
|
export declare const THY_AVATAR_ITEM_SPACE = 4;
|
|
@@ -13,35 +12,30 @@ export declare const enum ThyAvatarListMode {
|
|
|
13
12
|
* @name thy-avatar-list
|
|
14
13
|
* @order 20
|
|
15
14
|
*/
|
|
16
|
-
export declare class ThyAvatarList
|
|
17
|
-
overlapMode: boolean;
|
|
15
|
+
export declare class ThyAvatarList {
|
|
18
16
|
avatarItems: ThyAvatar[];
|
|
19
|
-
private ngUnsubscribe$;
|
|
20
17
|
/**
|
|
21
18
|
* 展示方式
|
|
22
19
|
* @type overlap | default
|
|
23
|
-
* @default default
|
|
24
20
|
*/
|
|
25
|
-
thyMode: ThyAvatarListMode
|
|
21
|
+
readonly thyMode: import("@angular/core").InputSignal<ThyAvatarListMode>;
|
|
22
|
+
readonly isOverlapMode: Signal<boolean>;
|
|
26
23
|
/**
|
|
27
24
|
* 头像大小
|
|
28
25
|
* @type 16 | 22 | 24 | 28 | 32 | 36 | 44 | 48 | 68 | 110 | 160 | xxs(22px) | xs(24px) | sm(32px) | md(36px) | lg(48px)
|
|
29
26
|
* @default 36
|
|
30
27
|
*/
|
|
31
|
-
thyAvatarSize:
|
|
28
|
+
readonly thyAvatarSize: import("@angular/core").InputSignal<string | number>;
|
|
32
29
|
/**
|
|
33
30
|
* append 自定义操作
|
|
34
31
|
*/
|
|
35
|
-
append: TemplateRef<
|
|
32
|
+
readonly append: Signal<TemplateRef<any>>;
|
|
36
33
|
/**
|
|
37
34
|
* @private
|
|
38
35
|
*/
|
|
39
|
-
avatarComponents:
|
|
36
|
+
readonly avatarComponents: Signal<readonly ThyAvatar[]>;
|
|
40
37
|
constructor();
|
|
41
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
42
|
-
ngAfterContentInit(): void;
|
|
43
38
|
private updateAvatarItems;
|
|
44
|
-
ngOnDestroy(): void;
|
|
45
39
|
static ɵfac: i0.ɵɵFactoryDeclaration<ThyAvatarList, never>;
|
|
46
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ThyAvatarList, "thy-avatar-list", never, { "thyMode": { "alias": "thyMode"; "required": false; }; "thyAvatarSize": { "alias": "thyAvatarSize"; "required": false; }; }, {}, ["append", "avatarComponents"], ["*"], true, never>;
|
|
40
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ThyAvatarList, "thy-avatar-list", never, { "thyMode": { "alias": "thyMode"; "required": false; "isSignal": true; }; "thyAvatarSize": { "alias": "thyAvatarSize"; "required": false; "isSignal": true; }; }, {}, ["append", "avatarComponents"], ["*"], true, never>;
|
|
47
41
|
}
|