ngx-tethys 19.1.13 → 20.0.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 +18 -0
- package/action/index.d.ts +107 -3
- package/affix/index.d.ts +65 -2
- package/alert/index.d.ts +74 -3
- package/anchor/index.d.ts +118 -3
- package/arrow-switcher/index.d.ts +79 -2
- package/autocomplete/index.d.ts +280 -7
- package/avatar/index.d.ts +195 -5
- package/back-top/index.d.ts +68 -2
- package/badge/index.d.ts +87 -2
- package/breadcrumb/index.d.ts +71 -3
- package/button/index.d.ts +156 -4
- package/calendar/index.d.ts +161 -4
- package/card/index.d.ts +100 -4
- package/carousel/index.d.ts +210 -4
- package/cascader/index.d.ts +471 -5
- package/checkbox/index.d.ts +27 -2
- package/collapse/index.d.ts +108 -3
- package/color-picker/index.d.ts +494 -13
- package/comment/index.d.ts +53 -4
- package/copy/index.d.ts +59 -2
- package/core/index.d.ts +680 -15
- package/date-picker/index.d.ts +1148 -36
- package/date-range/index.d.ts +158 -4
- package/dialog/index.d.ts +393 -11
- package/divider/index.d.ts +60 -2
- package/dot/index.d.ts +56 -2
- package/drag-drop/index.d.ts +281 -9
- package/dropdown/index.d.ts +282 -6
- package/empty/index.d.ts +116 -3
- package/fesm2022/ngx-tethys-action.mjs +26 -26
- package/fesm2022/ngx-tethys-action.mjs.map +1 -1
- package/fesm2022/ngx-tethys-affix.mjs +14 -14
- package/fesm2022/ngx-tethys-affix.mjs.map +1 -1
- package/fesm2022/ngx-tethys-alert.mjs +19 -19
- package/fesm2022/ngx-tethys-alert.mjs.map +1 -1
- package/fesm2022/ngx-tethys-anchor.mjs +25 -25
- package/fesm2022/ngx-tethys-anchor.mjs.map +1 -1
- package/fesm2022/ngx-tethys-arrow-switcher.mjs +20 -20
- package/fesm2022/ngx-tethys-arrow-switcher.mjs.map +1 -1
- package/fesm2022/ngx-tethys-autocomplete.mjs +41 -36
- package/fesm2022/ngx-tethys-autocomplete.mjs.map +1 -1
- package/fesm2022/ngx-tethys-avatar.mjs +45 -45
- package/fesm2022/ngx-tethys-avatar.mjs.map +1 -1
- package/fesm2022/ngx-tethys-back-top.mjs +15 -15
- package/fesm2022/ngx-tethys-back-top.mjs.map +1 -1
- package/fesm2022/ngx-tethys-badge.mjs +27 -27
- package/fesm2022/ngx-tethys-badge.mjs.map +1 -1
- package/fesm2022/ngx-tethys-breadcrumb.mjs +20 -20
- package/fesm2022/ngx-tethys-breadcrumb.mjs.map +1 -1
- package/fesm2022/ngx-tethys-button.mjs +57 -51
- package/fesm2022/ngx-tethys-button.mjs.map +1 -1
- package/fesm2022/ngx-tethys-calendar.mjs +29 -29
- package/fesm2022/ngx-tethys-calendar.mjs.map +1 -1
- package/fesm2022/ngx-tethys-card.mjs +28 -28
- package/fesm2022/ngx-tethys-card.mjs.map +1 -1
- package/fesm2022/ngx-tethys-carousel.mjs +29 -29
- package/fesm2022/ngx-tethys-carousel.mjs.map +1 -1
- package/fesm2022/ngx-tethys-cascader.mjs +93 -87
- package/fesm2022/ngx-tethys-cascader.mjs.map +1 -1
- package/fesm2022/ngx-tethys-checkbox.mjs +9 -9
- package/fesm2022/ngx-tethys-checkbox.mjs.map +1 -1
- package/fesm2022/ngx-tethys-collapse.mjs +24 -24
- package/fesm2022/ngx-tethys-collapse.mjs.map +1 -1
- package/fesm2022/ngx-tethys-color-picker.mjs +75 -73
- package/fesm2022/ngx-tethys-color-picker.mjs.map +1 -1
- package/fesm2022/ngx-tethys-comment.mjs +17 -17
- package/fesm2022/ngx-tethys-comment.mjs.map +1 -1
- package/fesm2022/ngx-tethys-copy.mjs +15 -15
- package/fesm2022/ngx-tethys-copy.mjs.map +1 -1
- package/fesm2022/ngx-tethys-core.mjs +38 -38
- package/fesm2022/ngx-tethys-core.mjs.map +1 -1
- package/fesm2022/ngx-tethys-date-picker.mjs +323 -305
- package/fesm2022/ngx-tethys-date-picker.mjs.map +1 -1
- package/fesm2022/ngx-tethys-date-range.mjs +23 -23
- package/fesm2022/ngx-tethys-date-range.mjs.map +1 -1
- package/fesm2022/ngx-tethys-dialog.mjs +56 -54
- package/fesm2022/ngx-tethys-dialog.mjs.map +1 -1
- package/fesm2022/ngx-tethys-divider.mjs +16 -16
- package/fesm2022/ngx-tethys-divider.mjs.map +1 -1
- package/fesm2022/ngx-tethys-dot.mjs +20 -20
- package/fesm2022/ngx-tethys-dot.mjs.map +1 -1
- package/fesm2022/ngx-tethys-drag-drop.mjs +20 -21
- package/fesm2022/ngx-tethys-drag-drop.mjs.map +1 -1
- package/fesm2022/ngx-tethys-dropdown.mjs +85 -83
- package/fesm2022/ngx-tethys-dropdown.mjs.map +1 -1
- package/fesm2022/ngx-tethys-empty.mjs +28 -28
- package/fesm2022/ngx-tethys-empty.mjs.map +1 -1
- package/fesm2022/ngx-tethys-flexible-text.mjs +13 -13
- package/fesm2022/ngx-tethys-flexible-text.mjs.map +1 -1
- package/fesm2022/ngx-tethys-form.mjs +99 -95
- package/fesm2022/ngx-tethys-form.mjs.map +1 -1
- package/fesm2022/ngx-tethys-fullscreen.mjs +22 -21
- package/fesm2022/ngx-tethys-fullscreen.mjs.map +1 -1
- package/fesm2022/ngx-tethys-grid.mjs +60 -60
- package/fesm2022/ngx-tethys-grid.mjs.map +1 -1
- package/fesm2022/ngx-tethys-guider.mjs +20 -20
- package/fesm2022/ngx-tethys-guider.mjs.map +1 -1
- package/fesm2022/ngx-tethys-i18n.mjs +4 -4
- package/fesm2022/ngx-tethys-i18n.mjs.map +1 -1
- package/fesm2022/ngx-tethys-icon.mjs +20 -20
- package/fesm2022/ngx-tethys-icon.mjs.map +1 -1
- package/fesm2022/ngx-tethys-image.mjs +26 -26
- package/fesm2022/ngx-tethys-image.mjs.map +1 -1
- package/fesm2022/ngx-tethys-input-number.mjs +28 -24
- package/fesm2022/ngx-tethys-input-number.mjs.map +1 -1
- package/fesm2022/ngx-tethys-input.mjs +72 -71
- package/fesm2022/ngx-tethys-input.mjs.map +1 -1
- package/fesm2022/ngx-tethys-layout.mjs +128 -118
- package/fesm2022/ngx-tethys-layout.mjs.map +1 -1
- package/fesm2022/ngx-tethys-list.mjs +37 -37
- package/fesm2022/ngx-tethys-list.mjs.map +1 -1
- package/fesm2022/ngx-tethys-loading.mjs +11 -11
- package/fesm2022/ngx-tethys-loading.mjs.map +1 -1
- package/fesm2022/ngx-tethys-mention.mjs +18 -18
- package/fesm2022/ngx-tethys-mention.mjs.map +1 -1
- package/fesm2022/ngx-tethys-menu.mjs +57 -57
- package/fesm2022/ngx-tethys-menu.mjs.map +1 -1
- package/fesm2022/ngx-tethys-message.mjs +43 -40
- package/fesm2022/ngx-tethys-message.mjs.map +1 -1
- package/fesm2022/ngx-tethys-nav.mjs +58 -58
- package/fesm2022/ngx-tethys-nav.mjs.map +1 -1
- package/fesm2022/ngx-tethys-notify.mjs +35 -32
- package/fesm2022/ngx-tethys-notify.mjs.map +1 -1
- package/fesm2022/ngx-tethys-pagination.mjs +38 -38
- package/fesm2022/ngx-tethys-pagination.mjs.map +1 -1
- package/fesm2022/ngx-tethys-popover.mjs +46 -38
- package/fesm2022/ngx-tethys-popover.mjs.map +1 -1
- package/fesm2022/ngx-tethys-progress.mjs +64 -57
- package/fesm2022/ngx-tethys-progress.mjs.map +1 -1
- package/fesm2022/ngx-tethys-property-operation.mjs +11 -11
- package/fesm2022/ngx-tethys-property-operation.mjs.map +1 -1
- package/fesm2022/ngx-tethys-property.mjs +29 -29
- package/fesm2022/ngx-tethys-property.mjs.map +1 -1
- package/fesm2022/ngx-tethys-radio.mjs +23 -23
- package/fesm2022/ngx-tethys-radio.mjs.map +1 -1
- package/fesm2022/ngx-tethys-rate.mjs +28 -28
- package/fesm2022/ngx-tethys-rate.mjs.map +1 -1
- package/fesm2022/ngx-tethys-resizable.mjs +38 -38
- package/fesm2022/ngx-tethys-resizable.mjs.map +1 -1
- package/fesm2022/ngx-tethys-result.mjs +16 -16
- package/fesm2022/ngx-tethys-result.mjs.map +1 -1
- package/fesm2022/ngx-tethys-segment.mjs +23 -23
- package/fesm2022/ngx-tethys-segment.mjs.map +1 -1
- package/fesm2022/ngx-tethys-select.mjs +76 -64
- package/fesm2022/ngx-tethys-select.mjs.map +1 -1
- package/fesm2022/ngx-tethys-shared.mjs +163 -155
- package/fesm2022/ngx-tethys-shared.mjs.map +1 -1
- package/fesm2022/ngx-tethys-skeleton.mjs +84 -84
- package/fesm2022/ngx-tethys-skeleton.mjs.map +1 -1
- package/fesm2022/ngx-tethys-slide.mjs +50 -46
- package/fesm2022/ngx-tethys-slide.mjs.map +1 -1
- package/fesm2022/ngx-tethys-slider.mjs +21 -21
- package/fesm2022/ngx-tethys-slider.mjs.map +1 -1
- package/fesm2022/ngx-tethys-space.mjs +16 -16
- package/fesm2022/ngx-tethys-space.mjs.map +1 -1
- package/fesm2022/ngx-tethys-statistic.mjs +29 -29
- package/fesm2022/ngx-tethys-statistic.mjs.map +1 -1
- package/fesm2022/ngx-tethys-stepper.mjs +37 -37
- package/fesm2022/ngx-tethys-stepper.mjs.map +1 -1
- package/fesm2022/ngx-tethys-strength.mjs +22 -22
- package/fesm2022/ngx-tethys-strength.mjs.map +1 -1
- package/fesm2022/ngx-tethys-switch.mjs +19 -19
- package/fesm2022/ngx-tethys-switch.mjs.map +1 -1
- package/fesm2022/ngx-tethys-table.mjs +22 -22
- package/fesm2022/ngx-tethys-table.mjs.map +1 -1
- package/fesm2022/ngx-tethys-tabs.mjs +31 -31
- package/fesm2022/ngx-tethys-tabs.mjs.map +1 -1
- package/fesm2022/ngx-tethys-tag.mjs +18 -18
- package/fesm2022/ngx-tethys-tag.mjs.map +1 -1
- package/fesm2022/ngx-tethys-testing.mjs.map +1 -1
- package/fesm2022/ngx-tethys-time-picker.mjs +75 -74
- package/fesm2022/ngx-tethys-time-picker.mjs.map +1 -1
- package/fesm2022/ngx-tethys-timeline.mjs +28 -28
- package/fesm2022/ngx-tethys-timeline.mjs.map +1 -1
- package/fesm2022/ngx-tethys-tooltip.mjs +28 -28
- package/fesm2022/ngx-tethys-tooltip.mjs.map +1 -1
- package/fesm2022/ngx-tethys-transfer.mjs +36 -36
- package/fesm2022/ngx-tethys-transfer.mjs.map +1 -1
- package/fesm2022/ngx-tethys-tree-select.mjs +58 -58
- package/fesm2022/ngx-tethys-tree-select.mjs.map +1 -1
- package/fesm2022/ngx-tethys-tree.mjs +77 -72
- package/fesm2022/ngx-tethys-tree.mjs.map +1 -1
- package/fesm2022/ngx-tethys-typography.mjs +19 -19
- package/fesm2022/ngx-tethys-typography.mjs.map +1 -1
- package/fesm2022/ngx-tethys-upload.mjs +68 -68
- package/fesm2022/ngx-tethys-upload.mjs.map +1 -1
- package/fesm2022/ngx-tethys-util.mjs.map +1 -1
- package/fesm2022/ngx-tethys-vote.mjs +25 -25
- package/fesm2022/ngx-tethys-vote.mjs.map +1 -1
- package/fesm2022/ngx-tethys-watermark.mjs +12 -12
- 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/flexible-text/index.d.ts +64 -2
- package/form/index.d.ts +405 -11
- package/fullscreen/index.d.ts +117 -6
- package/grid/index.d.ts +262 -7
- package/guider/index.d.ts +304 -8
- package/i18n/index.d.ts +1053 -6
- package/icon/index.d.ts +145 -4
- package/image/index.d.ts +263 -8
- package/index.d.ts +5 -5
- package/input/index.d.ts +281 -6
- package/input-number/index.d.ts +133 -2
- package/layout/index.d.ts +362 -10
- package/list/index.d.ts +182 -6
- package/loading/index.d.ts +34 -2
- package/mention/index.d.ts +147 -4
- package/menu/index.d.ts +191 -8
- package/message/index.d.ts +203 -8
- package/nav/index.d.ts +269 -6
- package/notify/index.d.ts +158 -7
- package/package.json +13 -13
- package/pagination/index.d.ts +248 -5
- package/popover/index.d.ts +339 -9
- package/progress/index.d.ts +154 -5
- package/property/index.d.ts +118 -3
- package/property-operation/index.d.ts +114 -3
- package/radio/index.d.ts +102 -4
- package/rate/index.d.ts +99 -3
- package/resizable/index.d.ts +197 -7
- package/result/index.d.ts +63 -2
- package/schematics/ng-update/migration-collection.json +4 -4
- package/schematics/ng-update/{update-19 → update-20}/index.js +1 -1
- package/schematics/ng-update/{update-19 → update-20}/index.spec.js +5 -5
- package/schematics/version.d.ts +1 -1
- package/schematics/version.js +1 -1
- package/segment/index.d.ts +119 -4
- package/select/index.d.ts +332 -4
- package/shared/index.d.ts +516 -16
- package/skeleton/index.d.ts +301 -8
- package/slide/index.d.ts +270 -12
- package/slider/index.d.ts +117 -2
- package/space/index.d.ts +48 -2
- package/statistic/index.d.ts +124 -2
- package/stepper/index.d.ts +112 -5
- package/strength/index.d.ts +77 -2
- package/switch/index.d.ts +69 -2
- package/table/index.d.ts +670 -9
- package/tabs/index.d.ts +114 -4
- package/tag/index.d.ts +71 -3
- package/testing/index.d.ts +178 -7
- package/time-picker/index.d.ts +468 -7
- package/timeline/index.d.ts +109 -5
- package/tooltip/index.d.ts +198 -8
- package/transfer/index.d.ts +212 -4
- package/tree/index.d.ts +469 -5
- package/tree-select/index.d.ts +231 -3
- package/types/index.d.ts +22 -3
- package/typography/index.d.ts +69 -4
- package/upload/index.d.ts +253 -6
- package/util/index.d.ts +595 -14
- package/vote/index.d.ts +66 -2
- package/watermark/index.d.ts +75 -2
- package/action/action.component.d.ts +0 -76
- package/action/action.module.d.ts +0 -10
- package/action/actions.component.d.ts +0 -21
- package/affix/affix.component.d.ts +0 -54
- package/affix/affix.module.d.ts +0 -9
- package/affix/respond-events.d.ts +0 -9
- package/alert/alert.component.d.ts +0 -51
- package/alert/alert.directive.d.ts +0 -12
- package/alert/alert.module.d.ts +0 -10
- package/anchor/anchor-link.component.d.ts +0 -34
- package/anchor/anchor.component.d.ts +0 -68
- package/anchor/anchor.module.d.ts +0 -11
- package/anchor/anchor.token.d.ts +0 -9
- package/arrow-switcher/arrow-switcher.component.d.ts +0 -64
- package/arrow-switcher/module.d.ts +0 -12
- package/autocomplete/autocomplete.component.d.ts +0 -79
- package/autocomplete/autocomplete.trigger.directive.d.ts +0 -77
- package/autocomplete/module.d.ts +0 -18
- package/autocomplete/overlay/autocomplete-animations.d.ts +0 -8
- package/autocomplete/overlay/autocomplete-container.component.d.ts +0 -33
- package/autocomplete/overlay/autocomplete-ref.d.ts +0 -14
- package/autocomplete/overlay/autocomplete.config.d.ts +0 -36
- package/autocomplete/overlay/autocomplete.options.d.ts +0 -2
- package/autocomplete/overlay/autocomplete.service.d.ts +0 -32
- package/avatar/avatar-list/avatar-list.component.d.ts +0 -41
- package/avatar/avatar.component.d.ts +0 -95
- package/avatar/avatar.module.d.ts +0 -11
- package/avatar/avatar.pipe.d.ts +0 -30
- package/avatar/avatar.service.d.ts +0 -21
- package/back-top/back-top.component.d.ts +0 -57
- package/back-top/back-top.module.d.ts +0 -9
- package/badge/badge.component.d.ts +0 -75
- package/badge/badge.module.d.ts +0 -9
- package/breadcrumb/breadcrumb-item.component.d.ts +0 -15
- package/breadcrumb/breadcrumb.component.d.ts +0 -44
- package/breadcrumb/module.d.ts +0 -12
- package/button/button-group.component.d.ts +0 -32
- package/button/button-icon.component.d.ts +0 -51
- package/button/button.component.d.ts +0 -61
- package/button/button.module.d.ts +0 -11
- package/calendar/calendar-cells.d.ts +0 -17
- package/calendar/calendar-header.component.d.ts +0 -51
- package/calendar/calendar.component.d.ts +0 -78
- package/calendar/module.d.ts +0 -18
- package/card/card.component.d.ts +0 -28
- package/card/card.module.d.ts +0 -10
- package/card/content.component.d.ts +0 -21
- package/card/header.component.d.ts +0 -42
- package/carousel/carousel-item.directive.d.ts +0 -14
- package/carousel/carousel.component.d.ts +0 -112
- package/carousel/carousel.service.d.ts +0 -19
- package/carousel/carousel.token.d.ts +0 -7
- package/carousel/engine/carousel-base.d.ts +0 -27
- package/carousel/engine/carousel-fade.d.ts +0 -15
- package/carousel/engine/carousel-noop.d.ts +0 -14
- package/carousel/engine/carousel-slide.d.ts +0 -16
- package/carousel/engine/index.d.ts +0 -4
- package/carousel/module.d.ts +0 -11
- package/carousel/typings.d.ts +0 -20
- package/cascader/cascader-li.component.d.ts +0 -24
- package/cascader/cascader-search-option.component.d.ts +0 -21
- package/cascader/cascader.component.d.ts +0 -284
- package/cascader/cascader.pipe.d.ts +0 -11
- package/cascader/cascader.service.d.ts +0 -97
- package/cascader/module.d.ts +0 -19
- package/cascader/types.d.ts +0 -23
- package/checkbox/checkbox.component.d.ts +0 -16
- package/checkbox/module.d.ts +0 -9
- package/collapse/collapse-item.component.d.ts +0 -52
- package/collapse/collapse.component.d.ts +0 -29
- package/collapse/collapse.token.d.ts +0 -15
- package/collapse/module.d.ts +0 -13
- package/color-picker/color-picker-custom-panel.component.d.ts +0 -17
- package/color-picker/color-picker-panel.component.d.ts +0 -28
- package/color-picker/color-picker.component.d.ts +0 -100
- package/color-picker/constant.d.ts +0 -1
- package/color-picker/coordinates.directive.d.ts +0 -28
- package/color-picker/helpers/color.class.d.ts +0 -32
- package/color-picker/helpers/colors-table.class.d.ts +0 -154
- package/color-picker/helpers/rgba.class.d.ts +0 -20
- package/color-picker/module.d.ts +0 -22
- package/color-picker/parts/alpha/alpha.component.d.ts +0 -28
- package/color-picker/parts/hue/hue.component.d.ts +0 -26
- package/color-picker/parts/indicator/indicator.component.d.ts +0 -13
- package/color-picker/parts/inputs/inputs.component.d.ts +0 -18
- package/color-picker/parts/saturation/saturation.component.d.ts +0 -28
- package/comment/comment-actions.directive.d.ts +0 -8
- package/comment/comment-content.directive.d.ts +0 -8
- package/comment/comment.component.d.ts +0 -24
- package/comment/comment.module.d.ts +0 -13
- package/copy/copy.directive.d.ts +0 -47
- package/copy/module.d.ts +0 -9
- package/core/animation/animation-consts.d.ts +0 -22
- package/core/animation/collapse.d.ts +0 -2
- package/core/animation/fade.d.ts +0 -2
- package/core/animation/index.d.ts +0 -1
- package/core/animation/public-api.d.ts +0 -5
- package/core/animation/thumb.d.ts +0 -6
- package/core/animation/zoom.d.ts +0 -4
- package/core/behaviors/constructor.d.ts +0 -5
- package/core/behaviors/control-value-accessor.d.ts +0 -7
- package/core/behaviors/decorators.d.ts +0 -9
- package/core/behaviors/disabled.d.ts +0 -7
- package/core/behaviors/focus-control.d.ts +0 -14
- package/core/behaviors/index.d.ts +0 -10
- package/core/behaviors/initialized.d.ts +0 -6
- package/core/behaviors/loading-done.d.ts +0 -5
- package/core/behaviors/mixin.d.ts +0 -5
- package/core/behaviors/tabindex.d.ts +0 -11
- package/core/behaviors/unsubscribe.d.ts +0 -11
- package/core/click-positioner.d.ts +0 -15
- package/core/color/color.d.ts +0 -9
- package/core/color/index.d.ts +0 -1
- package/core/debounce-time.d.ts +0 -8
- package/core/event-dispatchers/index.d.ts +0 -1
- package/core/overlay/abstract-overlay-container.d.ts +0 -43
- package/core/overlay/abstract-overlay-ref.d.ts +0 -101
- package/core/overlay/abstract-overlay.config.d.ts +0 -131
- package/core/overlay/abstract-overlay.service.d.ts +0 -56
- package/core/overlay/index.d.ts +0 -9
- package/core/overlay/interface.d.ts +0 -5
- package/core/overlay/overlay-position-map.d.ts +0 -5
- package/core/overlay/overlay.directive.d.ts +0 -51
- package/core/overlay/portal-directives.d.ts +0 -14
- package/core/overlay/utils.d.ts +0 -14
- package/core/request-animation.d.ts +0 -2
- package/core/scroll-to.service.d.ts +0 -4
- package/core/scroll.d.ts +0 -22
- package/core/spacing/index.d.ts +0 -1
- package/core/spacing/spacing.d.ts +0 -2
- package/core/store/action-state.d.ts +0 -5
- package/core/store/action.d.ts +0 -4
- package/core/store/actions-stream.d.ts +0 -14
- package/core/store/index.d.ts +0 -3
- package/core/store/store.d.ts +0 -43
- package/core/store/types.d.ts +0 -12
- package/core/store/utils.d.ts +0 -2
- package/core/theme/enum.d.ts +0 -5
- package/core/theme/index.d.ts +0 -3
- package/core/theme/store.d.ts +0 -12
- package/core/theme/theme.d.ts +0 -2
- package/core/translate.d.ts +0 -8
- package/core/update-host-class.service.d.ts +0 -15
- package/date-picker/abstract-picker.component.d.ts +0 -174
- package/date-picker/abstract-picker.directive.d.ts +0 -57
- package/date-picker/base-picker.component.d.ts +0 -49
- package/date-picker/date-helper.service.d.ts +0 -20
- package/date-picker/date-picker.component.d.ts +0 -15
- package/date-picker/date-picker.config.d.ts +0 -27
- package/date-picker/date-picker.directive.d.ts +0 -13
- package/date-picker/date-picker.module.d.ts +0 -24
- package/date-picker/date-picker.service.d.ts +0 -14
- package/date-picker/inner-types.d.ts +0 -19
- package/date-picker/lib/calendar/calendar-footer.component.d.ts +0 -37
- package/date-picker/lib/calendar/calendar-header.component.d.ts +0 -44
- package/date-picker/lib/calendar/calendar-table.component.d.ts +0 -41
- package/date-picker/lib/date/date-header.component.d.ts +0 -10
- package/date-picker/lib/date/date-table-cell.component.d.ts +0 -18
- package/date-picker/lib/date/date-table.component.d.ts +0 -23
- package/date-picker/lib/date/types.d.ts +0 -41
- package/date-picker/lib/date-carousel/date-carousel.component.d.ts +0 -65
- package/date-picker/lib/decade/decade-header.component.d.ts +0 -14
- package/date-picker/lib/decade/decade-table.component.d.ts +0 -21
- package/date-picker/lib/lib-packer.module.d.ts +0 -28
- package/date-picker/lib/month/month-header.component.d.ts +0 -10
- package/date-picker/lib/month/month-table.component.d.ts +0 -22
- package/date-picker/lib/popups/date-popup.component.d.ts +0 -99
- package/date-picker/lib/popups/inner-popup.component.d.ts +0 -43
- package/date-picker/lib/quarter/quarter-table.component.d.ts +0 -21
- package/date-picker/lib/year/year-header.component.d.ts +0 -14
- package/date-picker/lib/year/year-table.component.d.ts +0 -21
- package/date-picker/month-picker.component.d.ts +0 -19
- package/date-picker/picker.component.d.ts +0 -76
- package/date-picker/picker.pipes.d.ts +0 -40
- package/date-picker/picker.util.d.ts +0 -30
- package/date-picker/picker.validators.d.ts +0 -22
- package/date-picker/quarter-picker.component.d.ts +0 -22
- package/date-picker/range-picker.component.d.ts +0 -16
- package/date-picker/range-picker.directive.d.ts +0 -14
- package/date-picker/standard-types.d.ts +0 -45
- package/date-picker/week-picker.component.d.ts +0 -15
- package/date-picker/year-picker.component.d.ts +0 -22
- package/date-range/date-range.class.d.ts +0 -29
- package/date-range/date-range.component.d.ts +0 -89
- package/date-range/module.d.ts +0 -15
- package/date-range/optional-dates/optional-dates.component.d.ts +0 -25
- package/dialog/body/dialog-body.component.d.ts +0 -18
- package/dialog/confirm/confirm.component.d.ts +0 -29
- package/dialog/confirm/token.d.ts +0 -8
- package/dialog/confirm.config.d.ts +0 -71
- package/dialog/dialog-animations.d.ts +0 -8
- package/dialog/dialog-container.component.d.ts +0 -46
- package/dialog/dialog-ref.d.ts +0 -32
- package/dialog/dialog.config.d.ts +0 -79
- package/dialog/dialog.module.d.ts +0 -20
- package/dialog/dialog.options.d.ts +0 -2
- package/dialog/dialog.service.d.ts +0 -52
- package/dialog/footer/dialog-footer.component.d.ts +0 -33
- package/dialog/header/dialog-header.component.d.ts +0 -47
- package/divider/divider.component.d.ts +0 -47
- package/divider/divider.module.d.ts +0 -10
- package/dot/dot.component.d.ts +0 -45
- package/dot/dot.module.d.ts +0 -8
- package/drag-drop/drag-content.directive.d.ts +0 -15
- package/drag-drop/drag-drop.class.d.ts +0 -36
- package/drag-drop/drag-drop.service.d.ts +0 -27
- package/drag-drop/drag-drop.token.d.ts +0 -24
- package/drag-drop/drag-handle.directive.d.ts +0 -24
- package/drag-drop/drag-ref.d.ts +0 -47
- package/drag-drop/drag.directive.d.ts +0 -39
- package/drag-drop/drop-container.directive.d.ts +0 -70
- package/drag-drop/module.d.ts +0 -14
- package/dropdown/dropdown-active.directive.d.ts +0 -27
- package/dropdown/dropdown-menu-item.directive.d.ts +0 -95
- package/dropdown/dropdown-menu.component.d.ts +0 -54
- package/dropdown/dropdown-submenu.component.d.ts +0 -23
- package/dropdown/dropdown.directive.d.ts +0 -77
- package/dropdown/module.d.ts +0 -13
- package/empty/empty.component.d.ts +0 -92
- package/empty/empty.config.d.ts +0 -10
- package/empty/empty.module.d.ts +0 -10
- package/empty/svgs.d.ts +0 -4
- package/flexible-text/flexible-text.component.d.ts +0 -53
- package/flexible-text/flexible-text.module.d.ts +0 -10
- package/form/form-group-error/form-group-error.component.d.ts +0 -21
- package/form/form-group-label.directive.d.ts +0 -18
- package/form/form-group.component.d.ts +0 -68
- package/form/form-submit.directive.d.ts +0 -18
- package/form/form-validator-loader.d.ts +0 -28
- package/form/form-validator.service.d.ts +0 -54
- package/form/form.class.d.ts +0 -54
- package/form/form.directive.d.ts +0 -56
- package/form/from-group-footer/form-group-footer.component.d.ts +0 -27
- package/form/module.d.ts +0 -25
- package/form/validator/confirm-validator.directive.d.ts +0 -17
- package/form/validator/index.d.ts +0 -4
- package/form/validator/max-validator.directive.d.ts +0 -15
- package/form/validator/min-validator.directive.d.ts +0 -15
- package/form/validator/unique-validator.directive.d.ts +0 -16
- package/fullscreen/fullscreen-launch.directive.d.ts +0 -9
- package/fullscreen/fullscreen-ref.d.ts +0 -25
- package/fullscreen/fullscreen.component.d.ts +0 -34
- package/fullscreen/fullscreen.config.d.ts +0 -23
- package/fullscreen/fullscreen.module.d.ts +0 -8
- package/fullscreen/fullscreen.service.d.ts +0 -20
- package/grid/flex.d.ts +0 -85
- package/grid/grid.token.d.ts +0 -7
- package/grid/grid.type.d.ts +0 -5
- package/grid/module.d.ts +0 -11
- package/grid/thy-col.directive.d.ts +0 -33
- package/grid/thy-grid-item.component.d.ts +0 -28
- package/grid/thy-grid.component.d.ts +0 -71
- package/grid/thy-row.directive.d.ts +0 -30
- package/guider/guider-hint/guider-hint.component.d.ts +0 -28
- package/guider/guider-manager.d.ts +0 -23
- package/guider/guider-ref.d.ts +0 -42
- package/guider/guider-step-ref.d.ts +0 -44
- package/guider/guider.class.d.ts +0 -95
- package/guider/guider.directive.d.ts +0 -21
- package/guider/guider.interface.d.ts +0 -26
- package/guider/guider.module.d.ts +0 -13
- package/guider/guider.service.d.ts +0 -25
- package/guider/utils.d.ts +0 -4
- package/i18n/i18n.d.ts +0 -191
- package/i18n/i18n.service.d.ts +0 -19
- package/i18n/i18n.token.d.ts +0 -8
- package/i18n/locale.d.ts +0 -4
- package/i18n/locales/de-de.d.ts +0 -162
- package/i18n/locales/en-us.d.ts +0 -183
- package/i18n/locales/index.d.ts +0 -5
- package/i18n/locales/ja-jp.d.ts +0 -162
- package/i18n/locales/zh-hans.d.ts +0 -162
- package/i18n/locales/zh-hant.d.ts +0 -162
- package/i18n/util.d.ts +0 -3
- package/icon/config.d.ts +0 -2
- package/icon/icon-registry.d.ts +0 -84
- package/icon/icon.component.d.ts +0 -47
- package/icon/icon.module.d.ts +0 -9
- package/image/image-group.component.d.ts +0 -16
- package/image/image.class.d.ts +0 -38
- package/image/image.config.d.ts +0 -21
- package/image/image.directive.d.ts +0 -50
- package/image/image.service.d.ts +0 -30
- package/image/image.token.d.ts +0 -17
- package/image/module.d.ts +0 -19
- package/image/preview/image-preview-ref.d.ts +0 -14
- package/image/preview/image-preview.component.d.ts +0 -73
- package/image/utils.d.ts +0 -1
- package/input/input-count.component.d.ts +0 -27
- package/input/input-group.component.d.ts +0 -71
- package/input/input-search.component.d.ts +0 -70
- package/input/input.component.d.ts +0 -82
- package/input/input.directive.d.ts +0 -26
- package/input/module.d.ts +0 -16
- package/input-number/input-number.component.d.ts +0 -115
- package/input-number/module.d.ts +0 -13
- package/layout/content-main.component.d.ts +0 -19
- package/layout/content-section.component.d.ts +0 -19
- package/layout/content.component.d.ts +0 -19
- package/layout/header.component.d.ts +0 -69
- package/layout/layout.component.d.ts +0 -22
- package/layout/layout.module.d.ts +0 -21
- package/layout/sidebar-content.component.d.ts +0 -19
- package/layout/sidebar-footer.component.d.ts +0 -19
- package/layout/sidebar-header.component.d.ts +0 -40
- package/layout/sidebar.component.d.ts +0 -123
- package/list/list-item-meta.component.d.ts +0 -25
- package/list/list-item.component.d.ts +0 -9
- package/list/list.component.d.ts +0 -14
- package/list/list.module.d.ts +0 -13
- package/list/selection/selection-list.d.ts +0 -116
- package/list/selection/selection.interface.d.ts +0 -8
- package/loading/loading.component.d.ts +0 -24
- package/loading/loading.module.d.ts +0 -8
- package/mention/adapter/adapter.d.ts +0 -19
- package/mention/adapter/editable.adapter.d.ts +0 -9
- package/mention/adapter/index.d.ts +0 -7
- package/mention/adapter/textarea.adapter.d.ts +0 -11
- package/mention/caret-positioner.d.ts +0 -19
- package/mention/interfaces.d.ts +0 -61
- package/mention/mention.directive.d.ts +0 -43
- package/mention/mention.module.d.ts +0 -13
- package/mention/suggestions/suggestions.component.d.ts +0 -28
- package/menu/divider/menu-divider.component.d.ts +0 -12
- package/menu/group/menu-group.component.d.ts +0 -61
- package/menu/item/action/menu-item-action.component.d.ts +0 -34
- package/menu/item/icon/menu-item-icon.component.d.ts +0 -18
- package/menu/item/menu-item.component.d.ts +0 -20
- package/menu/item/name/menu-item-name.component.d.ts +0 -17
- package/menu/menu.component.d.ts +0 -23
- package/menu/menu.module.d.ts +0 -16
- package/message/abstract/abstract-message-container.component.d.ts +0 -13
- package/message/abstract/abstract-message-queue.service.d.ts +0 -13
- package/message/abstract/abstract-message-ref.d.ts +0 -18
- package/message/abstract/abstract-message.component.d.ts +0 -35
- package/message/abstract/abstract-message.service.d.ts +0 -17
- package/message/abstract/index.d.ts +0 -5
- package/message/message-container.component.d.ts +0 -12
- package/message/message-queue.service.d.ts +0 -11
- package/message/message-ref.d.ts +0 -4
- package/message/message.component.d.ts +0 -13
- package/message/message.config.d.ts +0 -29
- package/message/message.service.d.ts +0 -36
- package/message/module.d.ts +0 -13
- package/nav/icon-nav/icon-nav-link.directive.d.ts +0 -10
- package/nav/icon-nav/icon-nav.component.d.ts +0 -15
- package/nav/nav-ink-bar.directive.d.ts +0 -22
- package/nav/nav-item.directive.d.ts +0 -60
- package/nav/nav.component.d.ts +0 -142
- package/nav/nav.module.d.ts +0 -17
- package/nav/nav.pipe.d.ts +0 -11
- package/notify/module.d.ts +0 -13
- package/notify/notify-container.component.d.ts +0 -12
- package/notify/notify-queue.service.d.ts +0 -15
- package/notify/notify-ref.d.ts +0 -4
- package/notify/notify.component.d.ts +0 -19
- package/notify/notify.config.d.ts +0 -55
- package/notify/notify.service.d.ts +0 -42
- package/pagination/pagination.class.d.ts +0 -79
- package/pagination/pagination.component.d.ts +0 -132
- package/pagination/pagination.config.d.ts +0 -8
- package/pagination/pagination.module.d.ts +0 -13
- package/pagination/pagination.pipe.d.ts +0 -17
- package/popover/body/popover-body.component.d.ts +0 -10
- package/popover/header/popover-header.component.d.ts +0 -35
- package/popover/module.d.ts +0 -14
- package/popover/popover-animations.d.ts +0 -8
- package/popover/popover-container.component.d.ts +0 -38
- package/popover/popover-ref.d.ts +0 -14
- package/popover/popover.config.d.ts +0 -110
- package/popover/popover.directive.d.ts +0 -67
- package/popover/popover.options.d.ts +0 -2
- package/popover/popover.service.d.ts +0 -58
- package/progress/interfaces.d.ts +0 -23
- package/progress/progress-circle.component.d.ts +0 -43
- package/progress/progress-strip.component.d.ts +0 -23
- package/progress/progress.component.d.ts +0 -59
- package/progress/progress.module.d.ts +0 -11
- package/property/module.d.ts +0 -11
- package/property/properties.component.d.ts +0 -25
- package/property/property-item.component.d.ts +0 -80
- package/property-operation/group/property-operation-group.component.d.ts +0 -10
- package/property-operation/module.d.ts +0 -12
- package/property-operation/property-operation.component.d.ts +0 -92
- package/public-api.d.ts +0 -1
- package/radio/button/radio-button.component.d.ts +0 -18
- package/radio/group/radio-group.component.d.ts +0 -46
- package/radio/module.d.ts +0 -11
- package/radio/radio.component.d.ts +0 -22
- package/radio/radio.token.d.ts +0 -12
- package/rate/module.d.ts +0 -13
- package/rate/rate-item.component.d.ts +0 -17
- package/rate/rate.component.d.ts +0 -69
- package/resizable/interface.d.ts +0 -12
- package/resizable/module.d.ts +0 -10
- package/resizable/resizable.directive.d.ts +0 -91
- package/resizable/resizable.service.d.ts +0 -32
- package/resizable/resize-handle.component.d.ts +0 -31
- package/resizable/resize-handles.component.d.ts +0 -21
- package/resizable/utils.d.ts +0 -3
- package/result/result.component.d.ts +0 -54
- package/result/result.module.d.ts +0 -8
- package/segment/segment-item.component.d.ts +0 -34
- package/segment/segment.component.d.ts +0 -55
- package/segment/segment.module.d.ts +0 -11
- package/segment/segment.token.d.ts +0 -16
- package/segment/types.d.ts +0 -5
- package/select/custom-select/custom-select.component.d.ts +0 -271
- package/select/module.d.ts +0 -16
- package/select/native-select/native-select.component.d.ts +0 -30
- package/select/select.config.d.ts +0 -34
- package/shared/base-form-check.component.d.ts +0 -51
- package/shared/directives/string-or-template-outlet.directive.d.ts +0 -17
- package/shared/directives/thy-autofocus.directive.d.ts +0 -23
- package/shared/directives/thy-contextmenu.directive.d.ts +0 -17
- package/shared/directives/thy-ctrl-enter.directive.d.ts +0 -17
- package/shared/directives/thy-drag-drop.directive.d.ts +0 -15
- package/shared/directives/thy-enter.directive.d.ts +0 -18
- package/shared/directives/thy-scroll.directive.d.ts +0 -39
- package/shared/directives/thy-show.d.ts +0 -19
- package/shared/directives/thy-stop-propagation.directive.d.ts +0 -17
- package/shared/directives/view-outlet.directive.d.ts +0 -27
- package/shared/ng-transclude.directive.d.ts +0 -14
- package/shared/option/group/option-group.component.d.ts +0 -22
- package/shared/option/index.d.ts +0 -8
- package/shared/option/list-option/list-option.component.d.ts +0 -32
- package/shared/option/module.d.ts +0 -13
- package/shared/option/option-group.component.d.ts +0 -12
- package/shared/option/option.component.d.ts +0 -51
- package/shared/option/option.token.d.ts +0 -30
- package/shared/option/options-container.component.d.ts +0 -9
- package/shared/option/select-option-base.d.ts +0 -5
- package/shared/select/index.d.ts +0 -2
- package/shared/select/module.d.ts +0 -11
- package/shared/select/select-control/select-control.component.d.ts +0 -73
- package/shared/shared.module.d.ts +0 -17
- package/shared/shared.type.d.ts +0 -1
- package/skeleton/module.d.ts +0 -16
- package/skeleton/skeleton-circle.component.d.ts +0 -45
- package/skeleton/skeleton-rectangle.component.d.ts +0 -55
- package/skeleton/skeleton.component.d.ts +0 -27
- package/skeleton/skeleton.config.d.ts +0 -8
- package/skeleton/stylized/bullet-list.component.d.ts +0 -55
- package/skeleton/stylized/list.component.d.ts +0 -44
- package/skeleton/stylized/paragraph.component.d.ts +0 -52
- package/slide/drawer/drawer-container.directive.d.ts +0 -11
- package/slide/slide-animations.d.ts +0 -4
- package/slide/slide-body/slide-body-section.component.d.ts +0 -16
- package/slide/slide-body/slide-body.component.d.ts +0 -10
- package/slide/slide-container.component.d.ts +0 -49
- package/slide/slide-footer/slide-footer.component.d.ts +0 -12
- package/slide/slide-header/slide-header.component.d.ts +0 -33
- package/slide/slide-layout/slide-layout.component.d.ts +0 -13
- package/slide/slide-ref.service.d.ts +0 -20
- package/slide/slide.config.d.ts +0 -73
- package/slide/slide.module.d.ts +0 -19
- package/slide/slide.service.d.ts +0 -28
- package/slider/slider.component.d.ts +0 -105
- package/slider/slider.module.d.ts +0 -9
- package/space/space.component.d.ts +0 -38
- package/space/space.module.d.ts +0 -8
- package/statistic/statistic.component.d.ts +0 -111
- package/statistic/statistic.module.d.ts +0 -10
- package/stepper/step-header.component.d.ts +0 -15
- package/stepper/step.component.d.ts +0 -28
- package/stepper/stepper-button.directive.d.ts +0 -25
- package/stepper/stepper.component.d.ts +0 -34
- package/stepper/stepper.module.d.ts +0 -11
- package/strength/strength.component.d.ts +0 -69
- package/strength/strength.module.d.ts +0 -7
- package/switch/switch.component.d.ts +0 -59
- package/switch/switch.module.d.ts +0 -8
- package/table/enums/column-skeleton-type.d.ts +0 -6
- package/table/enums/index.d.ts +0 -1
- package/table/pipes/drag.pipe.d.ts +0 -11
- package/table/pipes/table.pipe.d.ts +0 -10
- package/table/table-column.component.d.ts +0 -131
- package/table/table-skeleton.component.d.ts +0 -93
- package/table/table.component.d.ts +0 -333
- package/table/table.interface.d.ts +0 -87
- package/table/table.module.d.ts +0 -22
- package/table/table.type.d.ts +0 -3
- package/tabs/tab-content.component.d.ts +0 -12
- package/tabs/tab.component.d.ts +0 -31
- package/tabs/tabs.component.d.ts +0 -59
- package/tabs/tabs.module.d.ts +0 -12
- package/tabs/types.d.ts +0 -2
- package/tag/tag.component.d.ts +0 -48
- package/tag/tag.module.d.ts +0 -10
- package/tag/tags.component.d.ts +0 -11
- package/testing/data-transfer.d.ts +0 -22
- package/testing/dispatcher-events.d.ts +0 -32
- package/testing/element-focus.d.ts +0 -13
- package/testing/events.d.ts +0 -33
- package/testing/thy-icon.d.ts +0 -5
- package/testing/type-in-element.d.ts +0 -14
- package/testing/xhr-mock.d.ts +0 -51
- package/time-picker/inner/inner-time-picker.class.d.ts +0 -37
- package/time-picker/inner/inner-time-picker.component.d.ts +0 -91
- package/time-picker/inner/inner-time-picker.config.d.ts +0 -42
- package/time-picker/inner/inner-time-picker.store.d.ts +0 -23
- package/time-picker/time-picker-controls.util.d.ts +0 -7
- package/time-picker/time-picker-panel.component.d.ts +0 -113
- package/time-picker/time-picker.component.d.ts +0 -136
- package/time-picker/time-picker.module.d.ts +0 -17
- package/time-picker/time-picker.utils.d.ts +0 -16
- package/timeline/timeline-item.component.d.ts +0 -43
- package/timeline/timeline.component.d.ts +0 -47
- package/timeline/timeline.module.d.ts +0 -11
- package/timeline/timeline.service.d.ts +0 -8
- package/timeline/timeline.type.d.ts +0 -1
- package/tooltip/interface.d.ts +0 -5
- package/tooltip/tooltip-animations.d.ts +0 -4
- package/tooltip/tooltip-ref.d.ts +0 -31
- package/tooltip/tooltip.component.d.ts +0 -36
- package/tooltip/tooltip.config.d.ts +0 -22
- package/tooltip/tooltip.directive.d.ts +0 -81
- package/tooltip/tooltip.module.d.ts +0 -11
- package/tooltip/tooltip.service.d.ts +0 -16
- package/transfer/transfer-list.component.d.ts +0 -41
- package/transfer/transfer.component.d.ts +0 -90
- package/transfer/transfer.interface.d.ts +0 -66
- package/transfer/transfer.module.d.ts +0 -15
- package/tree/tree-abstract.d.ts +0 -19
- package/tree/tree-node.component.d.ts +0 -95
- package/tree/tree.class.d.ts +0 -106
- package/tree/tree.component.d.ts +0 -199
- package/tree/tree.module.d.ts +0 -20
- package/tree/tree.pipe.d.ts +0 -12
- package/tree/tree.service.d.ts +0 -34
- package/tree-select/module.d.ts +0 -14
- package/tree-select/tree-select.class.d.ts +0 -12
- package/tree-select/tree-select.component.d.ts +0 -203
- package/types/common.d.ts +0 -2
- package/types/dictionary.d.ts +0 -10
- package/types/pagination.d.ts +0 -6
- package/typography/bg-color.directive.d.ts +0 -20
- package/typography/module.d.ts +0 -11
- package/typography/text/text.component.d.ts +0 -17
- package/typography/text-color.directive.d.ts +0 -22
- package/upload/constant.d.ts +0 -73
- package/upload/file-drop.directive.d.ts +0 -32
- package/upload/file-select-base.d.ts +0 -22
- package/upload/file-select.component.d.ts +0 -34
- package/upload/module.d.ts +0 -9
- package/upload/types.d.ts +0 -11
- package/upload/upload.config.d.ts +0 -17
- package/upload/upload.service.d.ts +0 -140
- package/upload/util.d.ts +0 -1
- package/util/date/functions.d.ts +0 -85
- package/util/date/tiny-date.d.ts +0 -124
- package/util/dom.d.ts +0 -101
- package/util/helpers/helpers.d.ts +0 -55
- package/util/helpers/index.d.ts +0 -1
- package/util/immutable.d.ts +0 -70
- package/util/keycodes.d.ts +0 -2
- package/util/logger/index.d.ts +0 -1
- package/util/logger/logger.d.ts +0 -6
- package/util/ng.d.ts +0 -2
- package/util/references.d.ts +0 -58
- package/version.d.ts +0 -2
- package/vote/vote.component.d.ts +0 -53
- package/vote/vote.module.d.ts +0 -10
- package/watermark/config.d.ts +0 -19
- package/watermark/watermark.directive.d.ts +0 -63
- package/watermark/watermark.module.d.ts +0 -9
- /package/schematics/ng-update/{update-19 → update-20}/class-name-migration.d.ts +0 -0
- /package/schematics/ng-update/{update-19 → update-20}/class-name-migration.js +0 -0
- /package/schematics/ng-update/{update-19 → update-20}/index.d.ts +0 -0
- /package/schematics/ng-update/{update-19 → update-20}/index.spec.d.ts +0 -0
- /package/schematics/ng-update/{update-19 → update-20}/update-data.d.ts +0 -0
- /package/schematics/ng-update/{update-19 → update-20}/update-data.js +0 -0
|
@@ -13,9 +13,9 @@ import { TabIndexDisabledControlValueAccessorMixin } from 'ngx-tethys/core';
|
|
|
13
13
|
*/
|
|
14
14
|
class ThyRateItem {
|
|
15
15
|
constructor() {
|
|
16
|
-
this.allowHalf = input(false, { transform: coerceBooleanProperty });
|
|
17
|
-
this.iconValue = input();
|
|
18
|
-
this.iconTemplate = input();
|
|
16
|
+
this.allowHalf = input(false, ...(ngDevMode ? [{ debugName: "allowHalf", transform: coerceBooleanProperty }] : [{ transform: coerceBooleanProperty }]));
|
|
17
|
+
this.iconValue = input(...(ngDevMode ? [undefined, { debugName: "iconValue" }] : []));
|
|
18
|
+
this.iconTemplate = input(...(ngDevMode ? [undefined, { debugName: "iconTemplate" }] : []));
|
|
19
19
|
this.itemHover = output();
|
|
20
20
|
this.itemClick = output();
|
|
21
21
|
}
|
|
@@ -25,8 +25,8 @@ class ThyRateItem {
|
|
|
25
25
|
clickRateItem(isHalf) {
|
|
26
26
|
this.itemClick.emit(isHalf && this.allowHalf());
|
|
27
27
|
}
|
|
28
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
29
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "
|
|
28
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: ThyRateItem, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
29
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.3.10", type: ThyRateItem, isStandalone: true, selector: "thy-rate-item, [thy-rate-item]", inputs: { allowHalf: { classPropertyName: "allowHalf", publicName: "allowHalf", isSignal: true, isRequired: false, transformFunction: null }, iconValue: { classPropertyName: "iconValue", publicName: "iconValue", isSignal: true, isRequired: false, transformFunction: null }, iconTemplate: { classPropertyName: "iconTemplate", publicName: "iconTemplate", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { itemHover: "itemHover", itemClick: "itemClick" }, ngImport: i0, template: `
|
|
30
30
|
<div class="thy-rate-item-left" thyStopPropagation (mouseover)="hoverRateItem(true)" (click)="clickRateItem(true)">
|
|
31
31
|
<ng-template [ngTemplateOutlet]="iconTemplate() || (iconValue() && character) || defaultTemplate"></ng-template>
|
|
32
32
|
</div>
|
|
@@ -43,7 +43,7 @@ class ThyRateItem {
|
|
|
43
43
|
</ng-template>
|
|
44
44
|
`, isInline: true, dependencies: [{ kind: "directive", type: ThyStopPropagationDirective, selector: "[thyStopPropagation]", inputs: ["thyStopPropagation"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: ThyIcon, selector: "thy-icon, [thy-icon]", inputs: ["thyIconType", "thyTwotoneColor", "thyIconName", "thyIconRotate", "thyIconSet", "thyIconLegging", "thyIconLinearGradient"] }] }); }
|
|
45
45
|
}
|
|
46
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
46
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: ThyRateItem, decorators: [{
|
|
47
47
|
type: Component,
|
|
48
48
|
args: [{
|
|
49
49
|
selector: 'thy-rate-item, [thy-rate-item]',
|
|
@@ -65,7 +65,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.8", ngImpor
|
|
|
65
65
|
`,
|
|
66
66
|
imports: [ThyStopPropagationDirective, NgTemplateOutlet, ThyIcon]
|
|
67
67
|
}]
|
|
68
|
-
}], ctorParameters: () => [] });
|
|
68
|
+
}], ctorParameters: () => [], propDecorators: { allowHalf: [{ type: i0.Input, args: [{ isSignal: true, alias: "allowHalf", required: false }] }], iconValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconValue", required: false }] }], iconTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconTemplate", required: false }] }], itemHover: [{ type: i0.Output, args: ["itemHover"] }], itemClick: [{ type: i0.Output, args: ["itemClick"] }] } });
|
|
69
69
|
|
|
70
70
|
const noop = () => { };
|
|
71
71
|
/**
|
|
@@ -87,35 +87,35 @@ class ThyRate extends TabIndexDisabledControlValueAccessorMixin {
|
|
|
87
87
|
constructor() {
|
|
88
88
|
super();
|
|
89
89
|
this.cdr = inject(ChangeDetectorRef);
|
|
90
|
-
this.thyValue = model(0);
|
|
91
|
-
this.currentValue = model(0);
|
|
92
|
-
this.hasHalf = model(false);
|
|
90
|
+
this.thyValue = model(0, ...(ngDevMode ? [{ debugName: "thyValue" }] : []));
|
|
91
|
+
this.currentValue = model(0, ...(ngDevMode ? [{ debugName: "currentValue" }] : []));
|
|
92
|
+
this.hasHalf = model(false, ...(ngDevMode ? [{ debugName: "hasHalf" }] : []));
|
|
93
93
|
this.onTouchedCallback = noop;
|
|
94
94
|
this.onChangeCallback = noop;
|
|
95
95
|
/**
|
|
96
96
|
* 自定义评分的总数
|
|
97
97
|
*/
|
|
98
|
-
this.thyCount = input(5, { transform: numberAttribute });
|
|
98
|
+
this.thyCount = input(5, ...(ngDevMode ? [{ debugName: "thyCount", transform: numberAttribute }] : [{ transform: numberAttribute }]));
|
|
99
99
|
this.disabled = false;
|
|
100
100
|
/**
|
|
101
101
|
* 是否允许半选
|
|
102
102
|
* @default false
|
|
103
103
|
*/
|
|
104
|
-
this.thyAllowHalf = input(false, { transform: coerceBooleanProperty });
|
|
104
|
+
this.thyAllowHalf = input(false, ...(ngDevMode ? [{ debugName: "thyAllowHalf", transform: coerceBooleanProperty }] : [{ transform: coerceBooleanProperty }]));
|
|
105
105
|
/**
|
|
106
106
|
* 是否允许再次点击后清除
|
|
107
107
|
*/
|
|
108
|
-
this.thyAllowClear = input(true, { transform: coerceBooleanProperty });
|
|
108
|
+
this.thyAllowClear = input(true, ...(ngDevMode ? [{ debugName: "thyAllowClear", transform: coerceBooleanProperty }] : [{ transform: coerceBooleanProperty }]));
|
|
109
109
|
/**
|
|
110
110
|
* 自定义每项的提示信息
|
|
111
111
|
* @type string[]
|
|
112
112
|
*/
|
|
113
|
-
this.thyTooltips = input([]);
|
|
113
|
+
this.thyTooltips = input([], ...(ngDevMode ? [{ debugName: "thyTooltips" }] : []));
|
|
114
114
|
/**
|
|
115
115
|
* 自定义模板,目前支持传单个模板或图标名称、数组(模板 | 图标名称)
|
|
116
116
|
* @type string | TemplateRef<any> | string[] | TemplateRef<any>[]
|
|
117
117
|
*/
|
|
118
|
-
this.thyIconTemplate = input(null);
|
|
118
|
+
this.thyIconTemplate = input(null, ...(ngDevMode ? [{ debugName: "thyIconTemplate" }] : []));
|
|
119
119
|
/**
|
|
120
120
|
* 当前值hover时的回调
|
|
121
121
|
*/
|
|
@@ -142,7 +142,7 @@ class ThyRate extends TabIndexDisabledControlValueAccessorMixin {
|
|
|
142
142
|
return iconValue;
|
|
143
143
|
}
|
|
144
144
|
}
|
|
145
|
-
});
|
|
145
|
+
}, ...(ngDevMode ? [{ debugName: "iconValue" }] : []));
|
|
146
146
|
this.iconTemplate = computed(() => {
|
|
147
147
|
const icons = this.thyIconTemplate();
|
|
148
148
|
const currentValue = this.currentValue();
|
|
@@ -165,13 +165,13 @@ class ThyRate extends TabIndexDisabledControlValueAccessorMixin {
|
|
|
165
165
|
return null;
|
|
166
166
|
}
|
|
167
167
|
}
|
|
168
|
-
});
|
|
168
|
+
}, ...(ngDevMode ? [{ debugName: "iconTemplate" }] : []));
|
|
169
169
|
this.rateArray = computed(() => {
|
|
170
170
|
return this.updateRateArray();
|
|
171
|
-
});
|
|
171
|
+
}, ...(ngDevMode ? [{ debugName: "rateArray" }] : []));
|
|
172
172
|
this.rateStyleArray = computed(() => {
|
|
173
173
|
return this.updateItemStyle();
|
|
174
|
-
});
|
|
174
|
+
}, ...(ngDevMode ? [{ debugName: "rateStyleArray" }] : []));
|
|
175
175
|
effect(() => {
|
|
176
176
|
this.hasHalf.set(!Number.isInteger(this.thyValue()));
|
|
177
177
|
this.currentValue.set(Math.ceil(this.thyValue()));
|
|
@@ -244,8 +244,8 @@ class ThyRate extends TabIndexDisabledControlValueAccessorMixin {
|
|
|
244
244
|
trackByFn(index, item) {
|
|
245
245
|
return item || index;
|
|
246
246
|
}
|
|
247
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
248
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
247
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: ThyRate, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
248
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.10", type: ThyRate, isStandalone: true, selector: "thy-rate", inputs: { thyValue: { classPropertyName: "thyValue", publicName: "thyValue", isSignal: true, isRequired: false, transformFunction: null }, currentValue: { classPropertyName: "currentValue", publicName: "currentValue", isSignal: true, isRequired: false, transformFunction: null }, hasHalf: { classPropertyName: "hasHalf", publicName: "hasHalf", isSignal: true, isRequired: false, transformFunction: null }, thyCount: { classPropertyName: "thyCount", publicName: "thyCount", isSignal: true, isRequired: false, transformFunction: null }, thyDisabled: { classPropertyName: "thyDisabled", publicName: "thyDisabled", isSignal: false, isRequired: false, transformFunction: coerceBooleanProperty }, thyAllowHalf: { classPropertyName: "thyAllowHalf", publicName: "thyAllowHalf", isSignal: true, isRequired: false, transformFunction: null }, thyAllowClear: { classPropertyName: "thyAllowClear", publicName: "thyAllowClear", isSignal: true, isRequired: false, transformFunction: null }, thyTooltips: { classPropertyName: "thyTooltips", publicName: "thyTooltips", isSignal: true, isRequired: false, transformFunction: null }, thyIconTemplate: { classPropertyName: "thyIconTemplate", publicName: "thyIconTemplate", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { thyValue: "thyValueChange", currentValue: "currentValueChange", hasHalf: "hasHalfChange", thyItemHoverChange: "thyItemHoverChange" }, host: { properties: { "attr.tabindex": "tabIndex" }, classAttribute: "thy-rate" }, providers: [
|
|
249
249
|
{
|
|
250
250
|
provide: NG_VALUE_ACCESSOR,
|
|
251
251
|
useExisting: forwardRef(() => ThyRate),
|
|
@@ -253,7 +253,7 @@ class ThyRate extends TabIndexDisabledControlValueAccessorMixin {
|
|
|
253
253
|
}
|
|
254
254
|
], usesInheritance: true, ngImport: i0, template: "<div class=\"thy-rate-container\" [class.thy-rate-container--disabled]=\"thyDisabled\" (mouseleave)=\"onRateLeave($event)\">\n @for (star of rateArray(); track trackByFn(index, star); let index = $index) {\n <div\n thyStopPropagation\n class=\"thy-rate-star\"\n [ngClass]=\"rateStyleArray()[index] || ''\"\n thy-rate-item\n [allowHalf]=\"thyAllowHalf()\"\n [iconValue]=\"iconValue()\"\n [iconTemplate]=\"iconTemplate()\"\n (itemHover)=\"itemHover($event, index)\"\n (itemClick)=\"itemClick($event, index)\"\n [thyTooltip]=\"thyTooltips()[index]\"\n thyTooltipPlacement=\"top\"\n ></div>\n }\n</div>\n", dependencies: [{ kind: "directive", type: ThyStopPropagationDirective, selector: "[thyStopPropagation]", inputs: ["thyStopPropagation"] }, { kind: "component", type: ThyRateItem, selector: "thy-rate-item, [thy-rate-item]", inputs: ["allowHalf", "iconValue", "iconTemplate"], outputs: ["itemHover", "itemClick"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: ThyTooltipDirective, selector: "[thyTooltip],[thy-tooltip]", inputs: ["thyTooltip", "thyTooltipPlacement", "thyTooltipClass", "thyTooltipShowDelay", "thyTooltipHideDelay", "thyTooltipTrigger", "thyTooltipDisabled", "thyTooltipTemplateContext", "thyTooltipOffset", "thyTooltipPin"], exportAs: ["thyTooltip"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
255
255
|
}
|
|
256
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
256
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: ThyRate, decorators: [{
|
|
257
257
|
type: Component,
|
|
258
258
|
args: [{ selector: 'thy-rate', providers: [
|
|
259
259
|
{
|
|
@@ -265,17 +265,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.8", ngImpor
|
|
|
265
265
|
'[attr.tabindex]': `tabIndex`,
|
|
266
266
|
class: 'thy-rate'
|
|
267
267
|
}, changeDetection: ChangeDetectionStrategy.OnPush, imports: [ThyStopPropagationDirective, ThyRateItem, NgClass, ThyTooltipDirective], template: "<div class=\"thy-rate-container\" [class.thy-rate-container--disabled]=\"thyDisabled\" (mouseleave)=\"onRateLeave($event)\">\n @for (star of rateArray(); track trackByFn(index, star); let index = $index) {\n <div\n thyStopPropagation\n class=\"thy-rate-star\"\n [ngClass]=\"rateStyleArray()[index] || ''\"\n thy-rate-item\n [allowHalf]=\"thyAllowHalf()\"\n [iconValue]=\"iconValue()\"\n [iconTemplate]=\"iconTemplate()\"\n (itemHover)=\"itemHover($event, index)\"\n (itemClick)=\"itemClick($event, index)\"\n [thyTooltip]=\"thyTooltips()[index]\"\n thyTooltipPlacement=\"top\"\n ></div>\n }\n</div>\n" }]
|
|
268
|
-
}], ctorParameters: () => [], propDecorators: { thyDisabled: [{
|
|
268
|
+
}], ctorParameters: () => [], propDecorators: { thyValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "thyValue", required: false }] }, { type: i0.Output, args: ["thyValueChange"] }], currentValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "currentValue", required: false }] }, { type: i0.Output, args: ["currentValueChange"] }], hasHalf: [{ type: i0.Input, args: [{ isSignal: true, alias: "hasHalf", required: false }] }, { type: i0.Output, args: ["hasHalfChange"] }], thyCount: [{ type: i0.Input, args: [{ isSignal: true, alias: "thyCount", required: false }] }], thyDisabled: [{
|
|
269
269
|
type: Input,
|
|
270
270
|
args: [{ transform: coerceBooleanProperty }]
|
|
271
|
-
}] } });
|
|
271
|
+
}], thyAllowHalf: [{ type: i0.Input, args: [{ isSignal: true, alias: "thyAllowHalf", required: false }] }], thyAllowClear: [{ type: i0.Input, args: [{ isSignal: true, alias: "thyAllowClear", required: false }] }], thyTooltips: [{ type: i0.Input, args: [{ isSignal: true, alias: "thyTooltips", required: false }] }], thyIconTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "thyIconTemplate", required: false }] }], thyItemHoverChange: [{ type: i0.Output, args: ["thyItemHoverChange"] }] } });
|
|
272
272
|
|
|
273
273
|
class ThyRateModule {
|
|
274
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
275
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
276
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
274
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: ThyRateModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
275
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.10", ngImport: i0, type: ThyRateModule, imports: [CommonModule, FormsModule, ThySharedModule, ThyIconModule, ThyTooltipModule, ThyRate, ThyRateItem], exports: [ThyRate] }); }
|
|
276
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: ThyRateModule, imports: [CommonModule, FormsModule, ThySharedModule, ThyIconModule, ThyTooltipModule, ThyRate, ThyRateItem] }); }
|
|
277
277
|
}
|
|
278
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
278
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: ThyRateModule, decorators: [{
|
|
279
279
|
type: NgModule,
|
|
280
280
|
args: [{
|
|
281
281
|
imports: [CommonModule, FormsModule, ThySharedModule, ThyIconModule, ThyTooltipModule, ThyRate, ThyRateItem],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ngx-tethys-rate.mjs","sources":["../../../src/rate/rate-item.component.ts","../../../src/rate/rate.component.ts","../../../src/rate/rate.component.html","../../../src/rate/module.ts","../../../src/rate/ngx-tethys-rate.ts"],"sourcesContent":["import { Component, TemplateRef, input, output } from '@angular/core';\nimport { ThyIcon } from 'ngx-tethys/icon';\nimport { NgTemplateOutlet } from '@angular/common';\nimport { ThyStopPropagationDirective } from 'ngx-tethys/shared';\nimport { coerceBooleanProperty, ThyBooleanInput } from 'ngx-tethys/util';\n\n/**\n * @private\n */\n@Component({\n selector: 'thy-rate-item, [thy-rate-item]',\n template: `\n <div class=\"thy-rate-item-left\" thyStopPropagation (mouseover)=\"hoverRateItem(true)\" (click)=\"clickRateItem(true)\">\n <ng-template [ngTemplateOutlet]=\"iconTemplate() || (iconValue() && character) || defaultTemplate\"></ng-template>\n </div>\n <div class=\"thy-rate-item-all\" thyStopPropagation (mouseover)=\"hoverRateItem(false)\" (click)=\"clickRateItem(false)\">\n <ng-template [ngTemplateOutlet]=\"iconTemplate() || (iconValue() && character) || defaultTemplate\"></ng-template>\n </div>\n\n <ng-template #defaultTemplate>\n <thy-icon thyIconName=\"star-fill\"></thy-icon>\n </ng-template>\n\n <ng-template #character>\n <thy-icon [thyIconName]=\"iconValue()\"></thy-icon>\n </ng-template>\n `,\n imports: [ThyStopPropagationDirective, NgTemplateOutlet, ThyIcon]\n})\nexport class ThyRateItem {\n readonly allowHalf = input<boolean, ThyBooleanInput>(false, { transform: coerceBooleanProperty });\n\n readonly iconValue = input<string>();\n\n readonly iconTemplate = input<TemplateRef<any>>();\n\n readonly itemHover = output<boolean>();\n\n readonly itemClick = output<boolean>();\n\n constructor() {}\n\n hoverRateItem(isHalf: boolean): void {\n this.itemHover.emit(isHalf && this.allowHalf());\n }\n\n clickRateItem(isHalf: boolean): void {\n this.itemClick.emit(isHalf && this.allowHalf());\n }\n}\n","import { TabIndexDisabledControlValueAccessorMixin } from 'ngx-tethys/core';\nimport { coerceBooleanProperty, helpers, ThyBooleanInput } from 'ngx-tethys/util';\n\nimport { NgClass } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n forwardRef,\n Input,\n numberAttribute,\n TemplateRef,\n inject,\n input,\n output,\n computed,\n model,\n ModelSignal,\n effect\n} from '@angular/core';\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { ThyStopPropagationDirective } from 'ngx-tethys/shared';\nimport { ThyTooltipDirective } from 'ngx-tethys/tooltip';\nimport { ThyRateItem } from './rate-item.component';\n\nconst noop = () => {};\n\n/**\n * 评分组件\n * @name thy-rate\n * @order 10\n */\n@Component({\n selector: 'thy-rate',\n templateUrl: './rate.component.html',\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => ThyRate),\n multi: true\n }\n ],\n host: {\n '[attr.tabindex]': `tabIndex`,\n class: 'thy-rate'\n },\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [ThyStopPropagationDirective, ThyRateItem, NgClass, ThyTooltipDirective]\n})\nexport class ThyRate extends TabIndexDisabledControlValueAccessorMixin implements ControlValueAccessor {\n private cdr = inject(ChangeDetectorRef);\n\n readonly thyValue: ModelSignal<number> = model(0);\n\n readonly currentValue: ModelSignal<number> = model(0);\n\n readonly hasHalf: ModelSignal<boolean> = model(false);\n\n private onTouchedCallback: () => void = noop;\n\n private onChangeCallback: (_: any) => void = noop;\n\n /**\n * 自定义评分的总数\n */\n readonly thyCount = input(5, { transform: numberAttribute });\n\n /**\n * 是否只读\n * @default false\n */\n @Input({ transform: coerceBooleanProperty })\n override set thyDisabled(value: boolean) {\n this.disabled = value;\n }\n override get thyDisabled(): boolean {\n return this.disabled;\n }\n\n disabled = false;\n\n /**\n * 是否允许半选\n * @default false\n */\n readonly thyAllowHalf = input<boolean, ThyBooleanInput>(false, { transform: coerceBooleanProperty });\n\n /**\n * 是否允许再次点击后清除\n */\n readonly thyAllowClear = input<boolean, ThyBooleanInput>(true, { transform: coerceBooleanProperty });\n\n /**\n * 自定义每项的提示信息\n * @type string[]\n */\n readonly thyTooltips = input<string[]>([]);\n\n /**\n * 自定义模板,目前支持传单个模板或图标名称、数组(模板 | 图标名称)\n * @type string | TemplateRef<any> | string[] | TemplateRef<any>[]\n */\n readonly thyIconTemplate = input<string | TemplateRef<any> | string[] | TemplateRef<any>[]>(null);\n\n /**\n * 当前值hover时的回调\n */\n readonly thyItemHoverChange = output<number>();\n\n readonly iconValue = computed(() => {\n const icons = this.thyIconTemplate();\n const currentValue = this.currentValue();\n if (!icons) {\n return null;\n } else {\n let iconValue = null;\n if (helpers.isArray(icons) && icons.length > 0) {\n const currentIcon = (currentValue && currentValue - 1) || 0;\n iconValue = icons[currentIcon];\n } else if (!helpers.isArray(icons)) {\n iconValue = icons;\n }\n if (iconValue instanceof TemplateRef) {\n return null;\n } else {\n return iconValue;\n }\n }\n });\n\n readonly iconTemplate = computed(() => {\n const icons = this.thyIconTemplate();\n const currentValue = this.currentValue();\n if (!icons) {\n return null;\n } else {\n let iconTemplate = null;\n if (helpers.isArray(icons) && icons.length > 0) {\n const currentIcon = (currentValue && currentValue - 1) || 0;\n iconTemplate = icons[currentIcon] as TemplateRef<any>;\n } else if (!helpers.isArray(icons)) {\n iconTemplate = icons;\n }\n if (iconTemplate instanceof TemplateRef) {\n return iconTemplate;\n } else {\n return null;\n }\n }\n });\n\n readonly rateArray = computed(() => {\n return this.updateRateArray();\n });\n\n readonly rateStyleArray = computed(() => {\n return this.updateItemStyle();\n });\n\n constructor() {\n super();\n effect(() => {\n this.hasHalf.set(!Number.isInteger(this.thyValue()));\n this.currentValue.set(Math.ceil(this.thyValue()));\n });\n }\n\n writeValue(value: number): void {\n this.thyValue.set(value || 0);\n this.cdr.markForCheck();\n }\n\n itemHover(isHalf: boolean, index: number): void {\n if (this.thyDisabled || (this.currentValue() === index + 1 && this.hasHalf() === isHalf)) {\n return;\n }\n this.currentValue.set(index + 1);\n this.hasHalf.set(isHalf);\n const _value = isHalf ? Number(this.currentValue() - 0.5) : this.currentValue();\n this.thyItemHoverChange.emit(_value);\n }\n\n itemClick(isHalf: boolean, index: number) {\n if (this.thyDisabled) {\n return;\n }\n this.currentValue.set(index + 1);\n const _value = isHalf ? index + 1 - 0.5 : index + 1;\n if (this.thyValue() === _value) {\n if (this.thyAllowClear()) {\n this.thyValue.set(0);\n this.onChangeCallback(this.thyValue());\n this.onTouchedCallback();\n }\n } else {\n this.thyValue.set(_value);\n this.onChangeCallback(this.thyValue());\n this.onTouchedCallback();\n }\n }\n\n onRateLeave(event: Event): void {\n event.stopPropagation();\n this.hasHalf.set(!Number.isInteger(this.thyValue()));\n this.currentValue.set(Math.ceil(this.thyValue()));\n }\n\n updateRateArray(): number[] {\n return this.thyCount() > 0\n ? Array(this.thyCount())\n .fill(0)\n .map((_, i) => {\n return i;\n })\n : [];\n }\n\n updateItemStyle(): Record<string, boolean>[] {\n const rateStyle = 'thy-rate-star';\n return this.rateArray().map(i => {\n const value = i + 1;\n return {\n [`${rateStyle}--full`]: value < this.currentValue() || (value === this.currentValue() && !this.hasHalf()),\n [`${rateStyle}--half`]: this.hasHalf() && value === this.currentValue(),\n [`${rateStyle}--active`]: this.hasHalf() && value === this.currentValue(),\n [`${rateStyle}--zero`]: value > this.currentValue()\n };\n });\n }\n\n registerOnChange(fn: any): void {\n this.onChangeCallback = fn;\n }\n\n registerOnTouched(fn: any): void {\n this.onTouchedCallback = fn;\n }\n\n trackByFn(index: number, item: any) {\n return item || index;\n }\n}\n","<div class=\"thy-rate-container\" [class.thy-rate-container--disabled]=\"thyDisabled\" (mouseleave)=\"onRateLeave($event)\">\n @for (star of rateArray(); track trackByFn(index, star); let index = $index) {\n <div\n thyStopPropagation\n class=\"thy-rate-star\"\n [ngClass]=\"rateStyleArray()[index] || ''\"\n thy-rate-item\n [allowHalf]=\"thyAllowHalf()\"\n [iconValue]=\"iconValue()\"\n [iconTemplate]=\"iconTemplate()\"\n (itemHover)=\"itemHover($event, index)\"\n (itemClick)=\"itemClick($event, index)\"\n [thyTooltip]=\"thyTooltips()[index]\"\n thyTooltipPlacement=\"top\"\n ></div>\n }\n</div>\n","import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { ThyIconModule } from 'ngx-tethys/icon';\nimport { ThySharedModule } from 'ngx-tethys/shared';\nimport { ThyTooltipModule } from 'ngx-tethys/tooltip';\nimport { ThyRateItem } from './rate-item.component';\nimport { ThyRate } from './rate.component';\n\n@NgModule({\n imports: [CommonModule, FormsModule, ThySharedModule, ThyIconModule, ThyTooltipModule, ThyRate, ThyRateItem],\n exports: [ThyRate],\n providers: []\n})\nexport class ThyRateModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;AAMA;;AAEG;MAqBU,WAAW,CAAA;AAWpB,IAAA,WAAA,GAAA;QAVS,IAAS,CAAA,SAAA,GAAG,KAAK,CAA2B,KAAK,EAAE,EAAE,SAAS,EAAE,qBAAqB,EAAE,CAAC;QAExF,IAAS,CAAA,SAAA,GAAG,KAAK,EAAU;QAE3B,IAAY,CAAA,YAAA,GAAG,KAAK,EAAoB;QAExC,IAAS,CAAA,SAAA,GAAG,MAAM,EAAW;QAE7B,IAAS,CAAA,SAAA,GAAG,MAAM,EAAW;;AAItC,IAAA,aAAa,CAAC,MAAe,EAAA;AACzB,QAAA,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,MAAM,IAAI,IAAI,CAAC,SAAS,EAAE,CAAC;;AAGnD,IAAA,aAAa,CAAC,MAAe,EAAA;AACzB,QAAA,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,MAAM,IAAI,IAAI,CAAC,SAAS,EAAE,CAAC;;8GAlB1C,WAAW,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAX,IAAA,SAAA,IAAA,CAAA,IA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AAO,EAAE,WAAW,aACjG,OAAO,CAAA,EAAA,CAAA,CAAA;AAGR,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,aAAa,EAJZ,OAAA,EAAA,CAAA,YAAY,EAAE,WAAW,EAAE,eAAe,EAAE,aAAa,EAAE,gBAAgB,EAAE,OAAO,EAAE,WAAW,CAAA,EAAA,CAAA,CAAA;;2FAIlG,aAAa,EAAA,UAAA,EAAA,CAAA;kBALzB,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,OAAO,EAAE,CAAC,YAAY,EAAE,WAAW,EAAE,eAAe,EAAE,aAAa,EAAE,gBAAgB,EAAE,OAAO,EAAE,WAAW,CAAC;oBAC5G,OAAO,EAAE,CAAC,OAAO,CAAC;AAClB,oBAAA,SAAS,EAAE;AACd,iBAAA;;;ACbD;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"ngx-tethys-rate.mjs","sources":["../../../src/rate/rate-item.component.ts","../../../src/rate/rate.component.ts","../../../src/rate/rate.component.html","../../../src/rate/module.ts","../../../src/rate/ngx-tethys-rate.ts"],"sourcesContent":["import { Component, TemplateRef, input, output } from '@angular/core';\nimport { ThyIcon } from 'ngx-tethys/icon';\nimport { NgTemplateOutlet } from '@angular/common';\nimport { ThyStopPropagationDirective } from 'ngx-tethys/shared';\nimport { coerceBooleanProperty, ThyBooleanInput } from 'ngx-tethys/util';\n\n/**\n * @private\n */\n@Component({\n selector: 'thy-rate-item, [thy-rate-item]',\n template: `\n <div class=\"thy-rate-item-left\" thyStopPropagation (mouseover)=\"hoverRateItem(true)\" (click)=\"clickRateItem(true)\">\n <ng-template [ngTemplateOutlet]=\"iconTemplate() || (iconValue() && character) || defaultTemplate\"></ng-template>\n </div>\n <div class=\"thy-rate-item-all\" thyStopPropagation (mouseover)=\"hoverRateItem(false)\" (click)=\"clickRateItem(false)\">\n <ng-template [ngTemplateOutlet]=\"iconTemplate() || (iconValue() && character) || defaultTemplate\"></ng-template>\n </div>\n\n <ng-template #defaultTemplate>\n <thy-icon thyIconName=\"star-fill\"></thy-icon>\n </ng-template>\n\n <ng-template #character>\n <thy-icon [thyIconName]=\"iconValue()\"></thy-icon>\n </ng-template>\n `,\n imports: [ThyStopPropagationDirective, NgTemplateOutlet, ThyIcon]\n})\nexport class ThyRateItem {\n readonly allowHalf = input<boolean, ThyBooleanInput>(false, { transform: coerceBooleanProperty });\n\n readonly iconValue = input<string>();\n\n readonly iconTemplate = input<TemplateRef<any>>();\n\n readonly itemHover = output<boolean>();\n\n readonly itemClick = output<boolean>();\n\n constructor() {}\n\n hoverRateItem(isHalf: boolean): void {\n this.itemHover.emit(isHalf && this.allowHalf());\n }\n\n clickRateItem(isHalf: boolean): void {\n this.itemClick.emit(isHalf && this.allowHalf());\n }\n}\n","import { TabIndexDisabledControlValueAccessorMixin } from 'ngx-tethys/core';\nimport { coerceBooleanProperty, helpers, ThyBooleanInput } from 'ngx-tethys/util';\n\nimport { NgClass } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n forwardRef,\n Input,\n numberAttribute,\n TemplateRef,\n inject,\n input,\n output,\n computed,\n model,\n ModelSignal,\n effect\n} from '@angular/core';\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { ThyStopPropagationDirective } from 'ngx-tethys/shared';\nimport { ThyTooltipDirective } from 'ngx-tethys/tooltip';\nimport { ThyRateItem } from './rate-item.component';\n\nconst noop = () => {};\n\n/**\n * 评分组件\n * @name thy-rate\n * @order 10\n */\n@Component({\n selector: 'thy-rate',\n templateUrl: './rate.component.html',\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => ThyRate),\n multi: true\n }\n ],\n host: {\n '[attr.tabindex]': `tabIndex`,\n class: 'thy-rate'\n },\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [ThyStopPropagationDirective, ThyRateItem, NgClass, ThyTooltipDirective]\n})\nexport class ThyRate extends TabIndexDisabledControlValueAccessorMixin implements ControlValueAccessor {\n private cdr = inject(ChangeDetectorRef);\n\n readonly thyValue: ModelSignal<number> = model(0);\n\n readonly currentValue: ModelSignal<number> = model(0);\n\n readonly hasHalf: ModelSignal<boolean> = model(false);\n\n private onTouchedCallback: () => void = noop;\n\n private onChangeCallback: (_: any) => void = noop;\n\n /**\n * 自定义评分的总数\n */\n readonly thyCount = input(5, { transform: numberAttribute });\n\n /**\n * 是否只读\n * @default false\n */\n @Input({ transform: coerceBooleanProperty })\n override set thyDisabled(value: boolean) {\n this.disabled = value;\n }\n override get thyDisabled(): boolean {\n return this.disabled;\n }\n\n disabled = false;\n\n /**\n * 是否允许半选\n * @default false\n */\n readonly thyAllowHalf = input<boolean, ThyBooleanInput>(false, { transform: coerceBooleanProperty });\n\n /**\n * 是否允许再次点击后清除\n */\n readonly thyAllowClear = input<boolean, ThyBooleanInput>(true, { transform: coerceBooleanProperty });\n\n /**\n * 自定义每项的提示信息\n * @type string[]\n */\n readonly thyTooltips = input<string[]>([]);\n\n /**\n * 自定义模板,目前支持传单个模板或图标名称、数组(模板 | 图标名称)\n * @type string | TemplateRef<any> | string[] | TemplateRef<any>[]\n */\n readonly thyIconTemplate = input<string | TemplateRef<any> | string[] | TemplateRef<any>[]>(null);\n\n /**\n * 当前值hover时的回调\n */\n readonly thyItemHoverChange = output<number>();\n\n readonly iconValue = computed(() => {\n const icons = this.thyIconTemplate();\n const currentValue = this.currentValue();\n if (!icons) {\n return null;\n } else {\n let iconValue = null;\n if (helpers.isArray(icons) && icons.length > 0) {\n const currentIcon = (currentValue && currentValue - 1) || 0;\n iconValue = icons[currentIcon];\n } else if (!helpers.isArray(icons)) {\n iconValue = icons;\n }\n if (iconValue instanceof TemplateRef) {\n return null;\n } else {\n return iconValue;\n }\n }\n });\n\n readonly iconTemplate = computed(() => {\n const icons = this.thyIconTemplate();\n const currentValue = this.currentValue();\n if (!icons) {\n return null;\n } else {\n let iconTemplate = null;\n if (helpers.isArray(icons) && icons.length > 0) {\n const currentIcon = (currentValue && currentValue - 1) || 0;\n iconTemplate = icons[currentIcon] as TemplateRef<any>;\n } else if (!helpers.isArray(icons)) {\n iconTemplate = icons;\n }\n if (iconTemplate instanceof TemplateRef) {\n return iconTemplate;\n } else {\n return null;\n }\n }\n });\n\n readonly rateArray = computed(() => {\n return this.updateRateArray();\n });\n\n readonly rateStyleArray = computed(() => {\n return this.updateItemStyle();\n });\n\n constructor() {\n super();\n effect(() => {\n this.hasHalf.set(!Number.isInteger(this.thyValue()));\n this.currentValue.set(Math.ceil(this.thyValue()));\n });\n }\n\n writeValue(value: number): void {\n this.thyValue.set(value || 0);\n this.cdr.markForCheck();\n }\n\n itemHover(isHalf: boolean, index: number): void {\n if (this.thyDisabled || (this.currentValue() === index + 1 && this.hasHalf() === isHalf)) {\n return;\n }\n this.currentValue.set(index + 1);\n this.hasHalf.set(isHalf);\n const _value = isHalf ? Number(this.currentValue() - 0.5) : this.currentValue();\n this.thyItemHoverChange.emit(_value);\n }\n\n itemClick(isHalf: boolean, index: number) {\n if (this.thyDisabled) {\n return;\n }\n this.currentValue.set(index + 1);\n const _value = isHalf ? index + 1 - 0.5 : index + 1;\n if (this.thyValue() === _value) {\n if (this.thyAllowClear()) {\n this.thyValue.set(0);\n this.onChangeCallback(this.thyValue());\n this.onTouchedCallback();\n }\n } else {\n this.thyValue.set(_value);\n this.onChangeCallback(this.thyValue());\n this.onTouchedCallback();\n }\n }\n\n onRateLeave(event: Event): void {\n event.stopPropagation();\n this.hasHalf.set(!Number.isInteger(this.thyValue()));\n this.currentValue.set(Math.ceil(this.thyValue()));\n }\n\n updateRateArray(): number[] {\n return this.thyCount() > 0\n ? Array(this.thyCount())\n .fill(0)\n .map((_, i) => {\n return i;\n })\n : [];\n }\n\n updateItemStyle(): Record<string, boolean>[] {\n const rateStyle = 'thy-rate-star';\n return this.rateArray().map(i => {\n const value = i + 1;\n return {\n [`${rateStyle}--full`]: value < this.currentValue() || (value === this.currentValue() && !this.hasHalf()),\n [`${rateStyle}--half`]: this.hasHalf() && value === this.currentValue(),\n [`${rateStyle}--active`]: this.hasHalf() && value === this.currentValue(),\n [`${rateStyle}--zero`]: value > this.currentValue()\n };\n });\n }\n\n registerOnChange(fn: any): void {\n this.onChangeCallback = fn;\n }\n\n registerOnTouched(fn: any): void {\n this.onTouchedCallback = fn;\n }\n\n trackByFn(index: number, item: any) {\n return item || index;\n }\n}\n","<div class=\"thy-rate-container\" [class.thy-rate-container--disabled]=\"thyDisabled\" (mouseleave)=\"onRateLeave($event)\">\n @for (star of rateArray(); track trackByFn(index, star); let index = $index) {\n <div\n thyStopPropagation\n class=\"thy-rate-star\"\n [ngClass]=\"rateStyleArray()[index] || ''\"\n thy-rate-item\n [allowHalf]=\"thyAllowHalf()\"\n [iconValue]=\"iconValue()\"\n [iconTemplate]=\"iconTemplate()\"\n (itemHover)=\"itemHover($event, index)\"\n (itemClick)=\"itemClick($event, index)\"\n [thyTooltip]=\"thyTooltips()[index]\"\n thyTooltipPlacement=\"top\"\n ></div>\n }\n</div>\n","import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { ThyIconModule } from 'ngx-tethys/icon';\nimport { ThySharedModule } from 'ngx-tethys/shared';\nimport { ThyTooltipModule } from 'ngx-tethys/tooltip';\nimport { ThyRateItem } from './rate-item.component';\nimport { ThyRate } from './rate.component';\n\n@NgModule({\n imports: [CommonModule, FormsModule, ThySharedModule, ThyIconModule, ThyTooltipModule, ThyRate, ThyRateItem],\n exports: [ThyRate],\n providers: []\n})\nexport class ThyRateModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;AAMA;;AAEG;MAqBU,WAAW,CAAA;AAWpB,IAAA,WAAA,GAAA;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AAE,OAAO,EAAE,WAAW,aACjG,OAAO,CAAA,EAAA,CAAA,CAAA;AAGR,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,aAAa,EAAA,OAAA,EAAA,CAJZ,YAAY,EAAE,WAAW,EAAE,eAAe,EAAE,aAAa,EAAE,gBAAgB,EAAE,OAAO,EAAE,WAAW,CAAA,EAAA,CAAA,CAAA;;4FAIlG,aAAa,EAAA,UAAA,EAAA,CAAA;kBALzB,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,OAAO,EAAE,CAAC,YAAY,EAAE,WAAW,EAAE,eAAe,EAAE,aAAa,EAAE,gBAAgB,EAAE,OAAO,EAAE,WAAW,CAAC;oBAC5G,OAAO,EAAE,CAAC,OAAO,CAAC;AAClB,oBAAA,SAAS,EAAE;AACd,iBAAA;;;ACbD;;AAEG;;;;"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { inject, NgZone, Injectable, ElementRef, Renderer2, input, numberAttribute, output, signal, DestroyRef, Directive, ChangeDetectionStrategy, Component, computed, NgModule } from '@angular/core';
|
|
3
|
-
import { DOCUMENT, CommonModule } from '@angular/common';
|
|
2
|
+
import { inject, NgZone, DOCUMENT, Injectable, ElementRef, Renderer2, input, numberAttribute, output, signal, DestroyRef, Directive, ChangeDetectionStrategy, Component, computed, NgModule } from '@angular/core';
|
|
4
3
|
import { isTouchEvent, coerceBooleanProperty } from 'ngx-tethys/util';
|
|
5
4
|
import { Subject, fromEvent, merge } from 'rxjs';
|
|
6
5
|
import { Platform, normalizePassiveListenerOptions } from '@angular/cdk/platform';
|
|
7
6
|
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
|
8
7
|
import { useHostRenderer } from '@tethys/cdk/dom';
|
|
8
|
+
import { CommonModule } from '@angular/common';
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* @internal
|
|
@@ -64,10 +64,10 @@ class ThyResizableService {
|
|
|
64
64
|
this.mouseEnteredOutsideAngular$.complete();
|
|
65
65
|
this.clearListeners();
|
|
66
66
|
}
|
|
67
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
68
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
67
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: ThyResizableService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
68
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: ThyResizableService }); }
|
|
69
69
|
}
|
|
70
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
70
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: ThyResizableService, decorators: [{
|
|
71
71
|
type: Injectable
|
|
72
72
|
}], ctorParameters: () => [] });
|
|
73
73
|
|
|
@@ -103,47 +103,47 @@ class ThyResizableDirective {
|
|
|
103
103
|
* @default parent
|
|
104
104
|
* @type 'window' | 'parent' | ElementRef<HTMLElement>
|
|
105
105
|
*/
|
|
106
|
-
this.thyBounds = input('parent');
|
|
106
|
+
this.thyBounds = input('parent', ...(ngDevMode ? [{ debugName: "thyBounds" }] : []));
|
|
107
107
|
/**
|
|
108
108
|
* 最大高度(超过边界部分忽略)
|
|
109
109
|
*/
|
|
110
|
-
this.thyMaxHeight = input(undefined, { transform: numberAttribute });
|
|
110
|
+
this.thyMaxHeight = input(undefined, ...(ngDevMode ? [{ debugName: "thyMaxHeight", transform: numberAttribute }] : [{ transform: numberAttribute }]));
|
|
111
111
|
/**
|
|
112
112
|
* 最大宽度(超过边界部分忽略)
|
|
113
113
|
*/
|
|
114
|
-
this.thyMaxWidth = input(undefined, { transform: numberAttribute });
|
|
114
|
+
this.thyMaxWidth = input(undefined, ...(ngDevMode ? [{ debugName: "thyMaxWidth", transform: numberAttribute }] : [{ transform: numberAttribute }]));
|
|
115
115
|
/**
|
|
116
116
|
* 最小高度
|
|
117
117
|
*/
|
|
118
|
-
this.thyMinHeight = input(40, { transform: numberAttribute });
|
|
118
|
+
this.thyMinHeight = input(40, ...(ngDevMode ? [{ debugName: "thyMinHeight", transform: numberAttribute }] : [{ transform: numberAttribute }]));
|
|
119
119
|
/**
|
|
120
120
|
* 最小宽度
|
|
121
121
|
*/
|
|
122
|
-
this.thyMinWidth = input(40, { transform: numberAttribute });
|
|
122
|
+
this.thyMinWidth = input(40, ...(ngDevMode ? [{ debugName: "thyMinWidth", transform: numberAttribute }] : [{ transform: numberAttribute }]));
|
|
123
123
|
/**
|
|
124
124
|
* 栅格列数(-1 为不栅格)
|
|
125
125
|
*/
|
|
126
|
-
this.thyGridColumnCount = input(-1, { transform: numberAttribute });
|
|
126
|
+
this.thyGridColumnCount = input(-1, ...(ngDevMode ? [{ debugName: "thyGridColumnCount", transform: numberAttribute }] : [{ transform: numberAttribute }]));
|
|
127
127
|
/**
|
|
128
128
|
* 栅格最大列数
|
|
129
129
|
*/
|
|
130
|
-
this.thyMaxColumn = input(-1, { transform: numberAttribute });
|
|
130
|
+
this.thyMaxColumn = input(-1, ...(ngDevMode ? [{ debugName: "thyMaxColumn", transform: numberAttribute }] : [{ transform: numberAttribute }]));
|
|
131
131
|
/**
|
|
132
132
|
* 栅格最小列数
|
|
133
133
|
*/
|
|
134
|
-
this.thyMinColumn = input(-1, { transform: numberAttribute });
|
|
134
|
+
this.thyMinColumn = input(-1, ...(ngDevMode ? [{ debugName: "thyMinColumn", transform: numberAttribute }] : [{ transform: numberAttribute }]));
|
|
135
135
|
/**
|
|
136
136
|
* 锁定宽高比
|
|
137
137
|
*/
|
|
138
|
-
this.thyLockAspectRatio = input(false, { transform: coerceBooleanProperty });
|
|
138
|
+
this.thyLockAspectRatio = input(false, ...(ngDevMode ? [{ debugName: "thyLockAspectRatio", transform: coerceBooleanProperty }] : [{ transform: coerceBooleanProperty }]));
|
|
139
139
|
/**
|
|
140
140
|
* 是否预览模式
|
|
141
141
|
*/
|
|
142
|
-
this.thyPreview = input(false, { transform: coerceBooleanProperty });
|
|
142
|
+
this.thyPreview = input(false, ...(ngDevMode ? [{ debugName: "thyPreview", transform: coerceBooleanProperty }] : [{ transform: coerceBooleanProperty }]));
|
|
143
143
|
/**
|
|
144
144
|
* 是否禁用调整大小
|
|
145
145
|
*/
|
|
146
|
-
this.thyDisabled = input(false, { transform: coerceBooleanProperty });
|
|
146
|
+
this.thyDisabled = input(false, ...(ngDevMode ? [{ debugName: "thyDisabled", transform: coerceBooleanProperty }] : [{ transform: coerceBooleanProperty }]));
|
|
147
147
|
/**
|
|
148
148
|
* 调整尺寸时的事件
|
|
149
149
|
*/
|
|
@@ -156,7 +156,7 @@ class ThyResizableDirective {
|
|
|
156
156
|
* 结束调整尺寸时的事件
|
|
157
157
|
*/
|
|
158
158
|
this.thyResizeEnd = output();
|
|
159
|
-
this.resizing = signal(false);
|
|
159
|
+
this.resizing = signal(false, ...(ngDevMode ? [{ debugName: "resizing" }] : []));
|
|
160
160
|
this.sizeCache = null;
|
|
161
161
|
this.ghostElement = null;
|
|
162
162
|
this.currentHandleEvent = null;
|
|
@@ -392,10 +392,10 @@ class ThyResizableDirective {
|
|
|
392
392
|
this.ghostElement = null;
|
|
393
393
|
this.sizeCache = null;
|
|
394
394
|
}
|
|
395
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
396
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
395
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: ThyResizableDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
396
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.3.10", type: ThyResizableDirective, isStandalone: true, selector: "[thyResizable]", inputs: { thyBounds: { classPropertyName: "thyBounds", publicName: "thyBounds", isSignal: true, isRequired: false, transformFunction: null }, thyMaxHeight: { classPropertyName: "thyMaxHeight", publicName: "thyMaxHeight", isSignal: true, isRequired: false, transformFunction: null }, thyMaxWidth: { classPropertyName: "thyMaxWidth", publicName: "thyMaxWidth", isSignal: true, isRequired: false, transformFunction: null }, thyMinHeight: { classPropertyName: "thyMinHeight", publicName: "thyMinHeight", isSignal: true, isRequired: false, transformFunction: null }, thyMinWidth: { classPropertyName: "thyMinWidth", publicName: "thyMinWidth", isSignal: true, isRequired: false, transformFunction: null }, thyGridColumnCount: { classPropertyName: "thyGridColumnCount", publicName: "thyGridColumnCount", isSignal: true, isRequired: false, transformFunction: null }, thyMaxColumn: { classPropertyName: "thyMaxColumn", publicName: "thyMaxColumn", isSignal: true, isRequired: false, transformFunction: null }, thyMinColumn: { classPropertyName: "thyMinColumn", publicName: "thyMinColumn", isSignal: true, isRequired: false, transformFunction: null }, thyLockAspectRatio: { classPropertyName: "thyLockAspectRatio", publicName: "thyLockAspectRatio", isSignal: true, isRequired: false, transformFunction: null }, thyPreview: { classPropertyName: "thyPreview", publicName: "thyPreview", isSignal: true, isRequired: false, transformFunction: null }, thyDisabled: { classPropertyName: "thyDisabled", publicName: "thyDisabled", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { thyResize: "thyResize", thyResizeStart: "thyResizeStart", thyResizeEnd: "thyResizeEnd" }, host: { properties: { "class.thy-resizable-resizing": "resizing()", "class.thy-resizable-disabled": "thyDisabled()" }, classAttribute: "thy-resizable" }, providers: [ThyResizableService], ngImport: i0 }); }
|
|
397
397
|
}
|
|
398
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
398
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: ThyResizableDirective, decorators: [{
|
|
399
399
|
type: Directive,
|
|
400
400
|
args: [{
|
|
401
401
|
selector: '[thyResizable]',
|
|
@@ -406,7 +406,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.8", ngImpor
|
|
|
406
406
|
'[class.thy-resizable-disabled]': 'thyDisabled()'
|
|
407
407
|
}
|
|
408
408
|
}]
|
|
409
|
-
}], ctorParameters: () => [] });
|
|
409
|
+
}], ctorParameters: () => [], propDecorators: { thyBounds: [{ type: i0.Input, args: [{ isSignal: true, alias: "thyBounds", required: false }] }], thyMaxHeight: [{ type: i0.Input, args: [{ isSignal: true, alias: "thyMaxHeight", required: false }] }], thyMaxWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "thyMaxWidth", required: false }] }], thyMinHeight: [{ type: i0.Input, args: [{ isSignal: true, alias: "thyMinHeight", required: false }] }], thyMinWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "thyMinWidth", required: false }] }], thyGridColumnCount: [{ type: i0.Input, args: [{ isSignal: true, alias: "thyGridColumnCount", required: false }] }], thyMaxColumn: [{ type: i0.Input, args: [{ isSignal: true, alias: "thyMaxColumn", required: false }] }], thyMinColumn: [{ type: i0.Input, args: [{ isSignal: true, alias: "thyMinColumn", required: false }] }], thyLockAspectRatio: [{ type: i0.Input, args: [{ isSignal: true, alias: "thyLockAspectRatio", required: false }] }], thyPreview: [{ type: i0.Input, args: [{ isSignal: true, alias: "thyPreview", required: false }] }], thyDisabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "thyDisabled", required: false }] }], thyResize: [{ type: i0.Output, args: ["thyResize"] }], thyResizeStart: [{ type: i0.Output, args: ["thyResizeStart"] }], thyResizeEnd: [{ type: i0.Output, args: ["thyResizeEnd"] }] } });
|
|
410
410
|
|
|
411
411
|
class ThyResizeHandleMouseDownEvent {
|
|
412
412
|
constructor(direction, mouseEvent) {
|
|
@@ -429,12 +429,12 @@ class ThyResizeHandle {
|
|
|
429
429
|
* 调整方向
|
|
430
430
|
* @type top | right | bottom | left | topRight | bottomRight | bottomLeft | topLeft
|
|
431
431
|
*/
|
|
432
|
-
this.thyDirection = input('bottomRight');
|
|
432
|
+
this.thyDirection = input('bottomRight', ...(ngDevMode ? [{ debugName: "thyDirection" }] : []));
|
|
433
433
|
/**
|
|
434
434
|
* 是否展示拖拽线
|
|
435
435
|
* @type boolean
|
|
436
436
|
*/
|
|
437
|
-
this.thyLine = input(false, { transform: coerceBooleanProperty });
|
|
437
|
+
this.thyLine = input(false, ...(ngDevMode ? [{ debugName: "thyLine", transform: coerceBooleanProperty }] : [{ transform: coerceBooleanProperty }]));
|
|
438
438
|
/**
|
|
439
439
|
* MouseDown 回调事件
|
|
440
440
|
*/
|
|
@@ -462,15 +462,15 @@ class ThyResizeHandle {
|
|
|
462
462
|
});
|
|
463
463
|
});
|
|
464
464
|
}
|
|
465
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
466
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
465
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: ThyResizeHandle, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
466
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.10", type: ThyResizeHandle, isStandalone: true, selector: "thy-resize-handle, [thy-resize-handle]", inputs: { thyDirection: { classPropertyName: "thyDirection", publicName: "thyDirection", isSignal: true, isRequired: false, transformFunction: null }, thyLine: { classPropertyName: "thyLine", publicName: "thyLine", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { thyMouseDown: "thyMouseDown" }, host: { properties: { "class.thy-resizable-handle-top": "thyDirection() === 'top'", "class.thy-resizable-handle-right": "thyDirection() === 'right'", "class.thy-resizable-handle-bottom": "thyDirection() === 'bottom'", "class.thy-resizable-handle-left": "thyDirection() === 'left'", "class.thy-resizable-handle-topRight": "thyDirection() === 'topRight'", "class.thy-resizable-handle-bottomRight": "thyDirection() === 'bottomRight'", "class.thy-resizable-handle-bottomLeft": "thyDirection() === 'bottomLeft'", "class.thy-resizable-handle-topLeft": "thyDirection() === 'topLeft'", "class.thy-resizable-handle-box-hover": "entered" }, classAttribute: "thy-resizable-handle" }, exportAs: ["thyResizeHandle"], ngImport: i0, template: `
|
|
467
467
|
<ng-content></ng-content>
|
|
468
468
|
@if (thyLine()) {
|
|
469
469
|
<div class="thy-resizable-handle-line"></div>
|
|
470
470
|
}
|
|
471
471
|
`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
472
472
|
}
|
|
473
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
473
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: ThyResizeHandle, decorators: [{
|
|
474
474
|
type: Component,
|
|
475
475
|
args: [{
|
|
476
476
|
selector: 'thy-resize-handle, [thy-resize-handle]',
|
|
@@ -496,7 +496,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.8", ngImpor
|
|
|
496
496
|
},
|
|
497
497
|
imports: []
|
|
498
498
|
}]
|
|
499
|
-
}] });
|
|
499
|
+
}], propDecorators: { thyDirection: [{ type: i0.Input, args: [{ isSignal: true, alias: "thyDirection", required: false }] }], thyLine: [{ type: i0.Input, args: [{ isSignal: true, alias: "thyLine", required: false }] }], thyMouseDown: [{ type: i0.Output, args: ["thyMouseDown"] }] } });
|
|
500
500
|
|
|
501
501
|
const DEFAULT_RESIZE_DIRECTION = [
|
|
502
502
|
'bottomRight',
|
|
@@ -518,24 +518,24 @@ class ThyResizeHandles {
|
|
|
518
518
|
* 定义调整手柄的方向
|
|
519
519
|
* @type ThyResizeDirection[]
|
|
520
520
|
*/
|
|
521
|
-
this.thyDirections = input(DEFAULT_RESIZE_DIRECTION);
|
|
521
|
+
this.thyDirections = input(DEFAULT_RESIZE_DIRECTION, ...(ngDevMode ? [{ debugName: "thyDirections" }] : []));
|
|
522
522
|
/**
|
|
523
523
|
* 是否展示拖拽线
|
|
524
524
|
*/
|
|
525
|
-
this.thyLine = input(false, { transform: coerceBooleanProperty });
|
|
525
|
+
this.thyLine = input(false, ...(ngDevMode ? [{ debugName: "thyLine", transform: coerceBooleanProperty }] : [{ transform: coerceBooleanProperty }]));
|
|
526
526
|
this.directions = computed(() => {
|
|
527
527
|
const directions = this.thyDirections();
|
|
528
528
|
return new Set(directions);
|
|
529
|
-
});
|
|
529
|
+
}, ...(ngDevMode ? [{ debugName: "directions" }] : []));
|
|
530
530
|
}
|
|
531
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
532
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
531
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: ThyResizeHandles, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
532
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.10", type: ThyResizeHandles, isStandalone: true, selector: "thy-resize-handles", inputs: { thyDirections: { classPropertyName: "thyDirections", publicName: "thyDirections", isSignal: true, isRequired: false, transformFunction: null }, thyLine: { classPropertyName: "thyLine", publicName: "thyLine", isSignal: true, isRequired: false, transformFunction: null } }, exportAs: ["thyResizeHandles"], ngImport: i0, template: `
|
|
533
533
|
@for (dir of directions(); track $index) {
|
|
534
534
|
<thy-resize-handle [thyLine]="thyLine()" [thyDirection]="dir"></thy-resize-handle>
|
|
535
535
|
}
|
|
536
536
|
`, isInline: true, dependencies: [{ kind: "component", type: ThyResizeHandle, selector: "thy-resize-handle, [thy-resize-handle]", inputs: ["thyDirection", "thyLine"], outputs: ["thyMouseDown"], exportAs: ["thyResizeHandle"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
537
537
|
}
|
|
538
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
538
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: ThyResizeHandles, decorators: [{
|
|
539
539
|
type: Component,
|
|
540
540
|
args: [{
|
|
541
541
|
selector: 'thy-resize-handles',
|
|
@@ -548,14 +548,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.8", ngImpor
|
|
|
548
548
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
549
549
|
imports: [ThyResizeHandle]
|
|
550
550
|
}]
|
|
551
|
-
}] });
|
|
551
|
+
}], propDecorators: { thyDirections: [{ type: i0.Input, args: [{ isSignal: true, alias: "thyDirections", required: false }] }], thyLine: [{ type: i0.Input, args: [{ isSignal: true, alias: "thyLine", required: false }] }] } });
|
|
552
552
|
|
|
553
553
|
class ThyResizableModule {
|
|
554
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
555
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
556
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
554
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: ThyResizableModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
555
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.10", ngImport: i0, type: ThyResizableModule, imports: [CommonModule, ThyResizableDirective, ThyResizeHandle, ThyResizeHandles], exports: [ThyResizableDirective, ThyResizeHandle, ThyResizeHandles] }); }
|
|
556
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: ThyResizableModule, imports: [CommonModule] }); }
|
|
557
557
|
}
|
|
558
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
558
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: ThyResizableModule, decorators: [{
|
|
559
559
|
type: NgModule,
|
|
560
560
|
args: [{
|
|
561
561
|
imports: [CommonModule, ThyResizableDirective, ThyResizeHandle, ThyResizeHandles],
|