ngx-tethys 19.0.16 → 19.1.0-next.1
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 +31 -11
- package/README.md +0 -1
- package/action/action.component.d.ts +14 -23
- package/action/actions.component.d.ts +5 -7
- package/affix/affix.component.d.ts +9 -13
- package/alert/alert.component.d.ts +1 -1
- package/anchor/anchor-link.component.d.ts +8 -8
- package/anchor/anchor.component.d.ts +15 -21
- package/arrow-switcher/arrow-switcher.component.d.ts +15 -22
- package/autocomplete/autocomplete.component.d.ts +10 -17
- package/autocomplete/autocomplete.trigger.directive.d.ts +10 -18
- package/avatar/avatar-list/avatar-list.component.d.ts +8 -14
- package/avatar/avatar.component.d.ts +25 -39
- package/back-top/back-top.component.d.ts +9 -12
- package/badge/badge.component.d.ts +19 -59
- package/breadcrumb/breadcrumb.component.d.ts +15 -20
- package/button/button-group.component.d.ts +5 -12
- package/button/button-icon.component.d.ts +14 -27
- package/button/button.component.d.ts +17 -26
- package/calendar/calendar-header.component.d.ts +9 -8
- package/calendar/calendar.component.d.ts +16 -16
- package/card/card.component.d.ts +5 -11
- package/card/content.component.d.ts +3 -8
- package/card/header.component.d.ts +7 -8
- package/carousel/carousel.component.d.ts +22 -27
- package/cascader/cascader-li.component.d.ts +13 -21
- package/cascader/cascader-search-option.component.d.ts +8 -16
- package/cascader/cascader.component.d.ts +58 -80
- package/checkbox/checkbox.component.d.ts +2 -5
- package/collapse/collapse-item.component.d.ts +12 -19
- package/collapse/collapse.component.d.ts +6 -12
- package/collapse/collapse.token.d.ts +3 -3
- package/color-picker/color-picker-custom-panel.component.d.ts +5 -5
- package/color-picker/color-picker-panel.component.d.ts +7 -11
- package/color-picker/color-picker.component.d.ts +19 -35
- package/color-picker/parts/alpha/alpha.component.d.ts +8 -8
- package/color-picker/parts/hue/hue.component.d.ts +6 -6
- package/color-picker/parts/indicator/indicator.component.d.ts +4 -3
- package/color-picker/parts/inputs/inputs.component.d.ts +9 -9
- package/color-picker/parts/saturation/saturation.component.d.ts +9 -9
- package/comment/comment.component.d.ts +4 -5
- package/copy/copy.directive.d.ts +8 -9
- package/date-picker/abstract-picker.component.d.ts +8 -7
- package/date-picker/lib/calendar/calendar-footer.component.d.ts +2 -1
- package/date-picker/lib/popups/inner-popup.component.d.ts +2 -1
- package/date-picker/picker.component.d.ts +2 -1
- package/date-range/date-range.component.d.ts +2 -2
- package/dialog/body/dialog-body.component.d.ts +2 -6
- package/dialog/confirm/confirm.component.d.ts +2 -2
- package/dialog/footer/dialog-footer.component.d.ts +6 -9
- package/dialog/header/dialog-header.component.d.ts +9 -11
- package/divider/divider.component.d.ts +12 -16
- package/dot/dot.component.d.ts +5 -13
- package/drag-drop/drag-handle.directive.d.ts +2 -1
- package/drag-drop/drag.directive.d.ts +2 -1
- package/drag-drop/drop-container.directive.d.ts +2 -1
- package/dropdown/dropdown-active.directive.d.ts +4 -5
- package/dropdown/dropdown-menu-item.directive.d.ts +7 -14
- package/dropdown/dropdown-menu.component.d.ts +6 -12
- package/dropdown/dropdown-submenu.component.d.ts +2 -4
- package/dropdown/dropdown.directive.d.ts +14 -24
- package/empty/empty.component.d.ts +21 -27
- package/fesm2022/ngx-tethys-action.mjs +63 -101
- package/fesm2022/ngx-tethys-action.mjs.map +1 -1
- package/fesm2022/ngx-tethys-affix.mjs +40 -41
- package/fesm2022/ngx-tethys-affix.mjs.map +1 -1
- package/fesm2022/ngx-tethys-anchor.mjs +91 -118
- package/fesm2022/ngx-tethys-anchor.mjs.map +1 -1
- package/fesm2022/ngx-tethys-arrow-switcher.mjs +51 -77
- package/fesm2022/ngx-tethys-arrow-switcher.mjs.map +1 -1
- package/fesm2022/ngx-tethys-autocomplete.mjs +69 -103
- package/fesm2022/ngx-tethys-autocomplete.mjs.map +1 -1
- package/fesm2022/ngx-tethys-avatar.mjs +117 -162
- package/fesm2022/ngx-tethys-avatar.mjs.map +1 -1
- package/fesm2022/ngx-tethys-back-top.mjs +33 -46
- package/fesm2022/ngx-tethys-back-top.mjs.map +1 -1
- package/fesm2022/ngx-tethys-badge.mjs +104 -208
- package/fesm2022/ngx-tethys-badge.mjs.map +1 -1
- package/fesm2022/ngx-tethys-breadcrumb.mjs +66 -70
- package/fesm2022/ngx-tethys-breadcrumb.mjs.map +1 -1
- package/fesm2022/ngx-tethys-button.mjs +225 -322
- package/fesm2022/ngx-tethys-button.mjs.map +1 -1
- package/fesm2022/ngx-tethys-calendar.mjs +85 -87
- package/fesm2022/ngx-tethys-calendar.mjs.map +1 -1
- package/fesm2022/ngx-tethys-card.mjs +72 -77
- package/fesm2022/ngx-tethys-card.mjs.map +1 -1
- package/fesm2022/ngx-tethys-carousel.mjs +83 -99
- package/fesm2022/ngx-tethys-carousel.mjs.map +1 -1
- package/fesm2022/ngx-tethys-cascader.mjs +313 -468
- package/fesm2022/ngx-tethys-cascader.mjs.map +1 -1
- package/fesm2022/ngx-tethys-checkbox.mjs +10 -17
- package/fesm2022/ngx-tethys-checkbox.mjs.map +1 -1
- package/fesm2022/ngx-tethys-collapse.mjs +66 -71
- package/fesm2022/ngx-tethys-collapse.mjs.map +1 -1
- package/fesm2022/ngx-tethys-color-picker.mjs +187 -246
- package/fesm2022/ngx-tethys-color-picker.mjs.map +1 -1
- package/fesm2022/ngx-tethys-comment.mjs +16 -10
- package/fesm2022/ngx-tethys-comment.mjs.map +1 -1
- package/fesm2022/ngx-tethys-copy.mjs +25 -28
- package/fesm2022/ngx-tethys-copy.mjs.map +1 -1
- package/fesm2022/ngx-tethys-dialog.mjs +81 -82
- package/fesm2022/ngx-tethys-dialog.mjs.map +1 -1
- package/fesm2022/ngx-tethys-divider.mjs +49 -58
- package/fesm2022/ngx-tethys-divider.mjs.map +1 -1
- package/fesm2022/ngx-tethys-dot.mjs +45 -68
- package/fesm2022/ngx-tethys-dot.mjs.map +1 -1
- package/fesm2022/ngx-tethys-dropdown.mjs +155 -203
- package/fesm2022/ngx-tethys-dropdown.mjs.map +1 -1
- package/fesm2022/ngx-tethys-empty.mjs +107 -95
- package/fesm2022/ngx-tethys-empty.mjs.map +1 -1
- package/fesm2022/ngx-tethys-flexible-text.mjs +67 -86
- package/fesm2022/ngx-tethys-flexible-text.mjs.map +1 -1
- package/fesm2022/ngx-tethys-form.mjs +161 -200
- package/fesm2022/ngx-tethys-form.mjs.map +1 -1
- package/fesm2022/ngx-tethys-fullscreen.mjs +21 -23
- package/fesm2022/ngx-tethys-fullscreen.mjs.map +1 -1
- package/fesm2022/ngx-tethys-grid.mjs +161 -158
- package/fesm2022/ngx-tethys-grid.mjs.map +1 -1
- package/fesm2022/ngx-tethys-i18n.mjs +25 -25
- package/fesm2022/ngx-tethys-i18n.mjs.map +1 -1
- package/fesm2022/ngx-tethys-icon.mjs +44 -59
- package/fesm2022/ngx-tethys-icon.mjs.map +1 -1
- package/fesm2022/ngx-tethys-image.mjs +40 -36
- package/fesm2022/ngx-tethys-image.mjs.map +1 -1
- package/fesm2022/ngx-tethys-input-number.mjs +101 -114
- package/fesm2022/ngx-tethys-input-number.mjs.map +1 -1
- package/fesm2022/ngx-tethys-input.mjs +268 -271
- package/fesm2022/ngx-tethys-input.mjs.map +1 -1
- package/fesm2022/ngx-tethys-list.mjs +1 -1
- package/fesm2022/ngx-tethys-list.mjs.map +1 -1
- package/fesm2022/ngx-tethys-loading.mjs +17 -35
- package/fesm2022/ngx-tethys-loading.mjs.map +1 -1
- package/fesm2022/ngx-tethys-mention.mjs +52 -74
- package/fesm2022/ngx-tethys-mention.mjs.map +1 -1
- package/fesm2022/ngx-tethys-menu.mjs +106 -179
- package/fesm2022/ngx-tethys-menu.mjs.map +1 -1
- package/fesm2022/ngx-tethys-nav.mjs +169 -201
- package/fesm2022/ngx-tethys-nav.mjs.map +1 -1
- package/fesm2022/ngx-tethys-pagination.mjs +230 -294
- package/fesm2022/ngx-tethys-pagination.mjs.map +1 -1
- package/fesm2022/ngx-tethys-popover.mjs +67 -70
- package/fesm2022/ngx-tethys-popover.mjs.map +1 -1
- package/fesm2022/ngx-tethys-progress.mjs +194 -246
- package/fesm2022/ngx-tethys-progress.mjs.map +1 -1
- package/fesm2022/ngx-tethys-property.mjs +99 -113
- package/fesm2022/ngx-tethys-property.mjs.map +1 -1
- package/fesm2022/ngx-tethys-radio.mjs +60 -76
- package/fesm2022/ngx-tethys-radio.mjs.map +1 -1
- package/fesm2022/ngx-tethys-rate.mjs +115 -157
- package/fesm2022/ngx-tethys-rate.mjs.map +1 -1
- package/fesm2022/ngx-tethys-resizable.mjs +111 -157
- package/fesm2022/ngx-tethys-resizable.mjs.map +1 -1
- package/fesm2022/ngx-tethys-result.mjs +46 -28
- package/fesm2022/ngx-tethys-result.mjs.map +1 -1
- package/fesm2022/ngx-tethys-segment.mjs +84 -103
- package/fesm2022/ngx-tethys-segment.mjs.map +1 -1
- package/fesm2022/ngx-tethys-skeleton.mjs +339 -342
- package/fesm2022/ngx-tethys-skeleton.mjs.map +1 -1
- package/fesm2022/ngx-tethys-slide.mjs +37 -56
- package/fesm2022/ngx-tethys-slide.mjs.map +1 -1
- package/fesm2022/ngx-tethys-slider.mjs +75 -108
- package/fesm2022/ngx-tethys-slider.mjs.map +1 -1
- package/fesm2022/ngx-tethys-space.mjs +25 -51
- package/fesm2022/ngx-tethys-space.mjs.map +1 -1
- package/fesm2022/ngx-tethys-statistic.mjs +114 -151
- package/fesm2022/ngx-tethys-statistic.mjs.map +1 -1
- package/fesm2022/ngx-tethys-stepper.mjs +74 -107
- package/fesm2022/ngx-tethys-stepper.mjs.map +1 -1
- package/fesm2022/ngx-tethys-strength.mjs +52 -66
- package/fesm2022/ngx-tethys-strength.mjs.map +1 -1
- package/fesm2022/ngx-tethys-switch.mjs +80 -140
- package/fesm2022/ngx-tethys-switch.mjs.map +1 -1
- package/fesm2022/ngx-tethys-table.mjs +1 -1
- package/fesm2022/ngx-tethys-table.mjs.map +1 -1
- package/fesm2022/ngx-tethys-tabs.mjs +69 -87
- package/fesm2022/ngx-tethys-tabs.mjs.map +1 -1
- package/fesm2022/ngx-tethys-tag.mjs +42 -64
- package/fesm2022/ngx-tethys-tag.mjs.map +1 -1
- package/fesm2022/ngx-tethys-timeline.mjs +104 -129
- package/fesm2022/ngx-tethys-timeline.mjs.map +1 -1
- package/fesm2022/ngx-tethys-transfer.mjs +98 -119
- package/fesm2022/ngx-tethys-transfer.mjs.map +1 -1
- package/fesm2022/ngx-tethys-tree-select.mjs +2 -4
- package/fesm2022/ngx-tethys-tree-select.mjs.map +1 -1
- package/fesm2022/ngx-tethys-tree.mjs +281 -401
- package/fesm2022/ngx-tethys-tree.mjs.map +1 -1
- package/fesm2022/ngx-tethys-typography.mjs +36 -33
- package/fesm2022/ngx-tethys-typography.mjs.map +1 -1
- package/fesm2022/ngx-tethys-upload.mjs +93 -132
- package/fesm2022/ngx-tethys-upload.mjs.map +1 -1
- package/fesm2022/ngx-tethys-util.mjs.map +1 -1
- package/fesm2022/ngx-tethys-vote.mjs +53 -99
- package/fesm2022/ngx-tethys-vote.mjs.map +1 -1
- package/fesm2022/ngx-tethys-watermark.mjs +36 -40
- package/fesm2022/ngx-tethys-watermark.mjs.map +1 -1
- package/fesm2022/ngx-tethys.mjs +1 -1
- package/fesm2022/ngx-tethys.mjs.map +1 -1
- package/flexible-text/flexible-text.component.d.ts +9 -15
- package/form/form-group-error/form-group-error.component.d.ts +2 -3
- package/form/form-group-label.directive.d.ts +2 -1
- package/form/form-group.component.d.ts +17 -24
- package/form/form-submit.directive.d.ts +2 -2
- package/form/form.directive.d.ts +6 -8
- package/form/from-group-footer/form-group-footer.component.d.ts +2 -2
- package/form/validator/confirm-validator.directive.d.ts +2 -2
- package/form/validator/unique-validator.directive.d.ts +2 -2
- package/fullscreen/fullscreen.component.d.ts +7 -7
- package/grid/flex.d.ts +13 -20
- package/grid/thy-col.directive.d.ts +6 -9
- package/grid/thy-grid-item.component.d.ts +3 -4
- package/grid/thy-grid.component.d.ts +11 -12
- package/grid/thy-row.directive.d.ts +11 -14
- package/icon/icon.component.d.ts +10 -17
- package/image/image.directive.d.ts +10 -12
- package/image/image.token.d.ts +5 -5
- package/input/input-count.component.d.ts +4 -5
- package/input/input-group.component.d.ts +20 -20
- package/input/input-search.component.d.ts +15 -20
- package/input/input.component.d.ts +20 -21
- package/input/input.directive.d.ts +4 -6
- package/input-number/input-number.component.d.ts +21 -29
- package/layout/header.component.d.ts +4 -9
- package/layout/sidebar-header.component.d.ts +2 -1
- package/layout/sidebar.component.d.ts +8 -7
- package/list/list.component.d.ts +2 -1
- package/list/selection/selection-list.d.ts +4 -3
- package/loading/loading.component.d.ts +4 -10
- package/mention/mention.directive.d.ts +6 -7
- package/mention/suggestions/suggestions.component.d.ts +8 -9
- package/menu/group/menu-group.component.d.ts +16 -33
- package/menu/item/action/menu-item-action.component.d.ts +7 -8
- package/menu/item/icon/menu-item-icon.component.d.ts +2 -2
- package/menu/item/menu-item.component.d.ts +4 -4
- package/menu/item/name/menu-item-name.component.d.ts +2 -3
- package/menu/menu.component.d.ts +3 -7
- package/nav/icon-nav/icon-nav-link.directive.d.ts +3 -7
- package/nav/icon-nav/icon-nav.component.d.ts +3 -8
- package/nav/nav-ink-bar.directive.d.ts +4 -6
- package/nav/nav-item.directive.d.ts +7 -10
- package/nav/nav.component.d.ts +20 -48
- package/package.json +1 -1
- package/pagination/pagination.component.d.ts +48 -109
- package/popover/header/popover-header.component.d.ts +7 -6
- package/popover/popover.directive.d.ts +11 -18
- package/progress/progress-circle.component.d.ts +35 -26
- package/progress/progress-strip.component.d.ts +10 -14
- package/progress/progress.component.d.ts +16 -26
- package/property/examples/single/single.component.scss +6 -0
- package/property/properties.component.d.ts +6 -15
- package/property/property-item.component.d.ts +22 -34
- package/property/styles/properties.scss +124 -52
- package/property-operation/property-operation.component.d.ts +6 -5
- package/radio/button/radio-button.component.d.ts +2 -2
- package/radio/group/radio-group.component.d.ts +13 -16
- package/radio/radio.component.d.ts +2 -2
- package/radio/radio.token.d.ts +2 -2
- package/rate/rate-item.component.d.ts +8 -10
- package/rate/rate.component.d.ts +20 -30
- package/resizable/resizable.directive.d.ts +18 -36
- package/resizable/resize-handle.component.d.ts +6 -6
- package/resizable/resize-handles.component.d.ts +5 -8
- package/result/result.component.d.ts +9 -10
- package/schematics/version.d.ts +1 -1
- package/schematics/version.js +1 -1
- package/segment/segment-item.component.d.ts +9 -14
- package/segment/segment.component.d.ts +11 -14
- package/segment/segment.token.d.ts +4 -3
- package/select/custom-select/custom-select.component.d.ts +11 -10
- package/select/native-select/native-select.component.d.ts +2 -1
- package/shared/base-form-check.component.d.ts +3 -2
- package/shared/directives/thy-autofocus.directive.d.ts +3 -2
- package/shared/directives/thy-scroll.directive.d.ts +2 -1
- package/shared/directives/thy-show.d.ts +2 -1
- package/shared/option/group/option-group.component.d.ts +2 -1
- package/shared/option/list-option/list-option.component.d.ts +2 -7
- package/shared/option/option.component.d.ts +2 -1
- package/shared/select/select-control/select-control.component.d.ts +7 -6
- package/skeleton/skeleton-circle.component.d.ts +16 -19
- package/skeleton/skeleton-rectangle.component.d.ts +20 -23
- package/skeleton/skeleton.component.d.ts +5 -6
- package/skeleton/stylized/bullet-list.component.d.ts +11 -13
- package/skeleton/stylized/list.component.d.ts +10 -12
- package/skeleton/stylized/paragraph.component.d.ts +12 -14
- package/slide/slide-body/slide-body-section.component.d.ts +2 -5
- package/slide/slide-header/slide-header.component.d.ts +6 -9
- package/slider/slider.component.d.ts +17 -24
- package/space/space.component.d.ts +10 -16
- package/statistic/statistic.component.d.ts +35 -40
- package/stepper/step-header.component.d.ts +6 -10
- package/stepper/step.component.d.ts +6 -6
- package/stepper/stepper.component.d.ts +15 -20
- package/strength/strength.component.d.ts +8 -13
- package/switch/switch.component.d.ts +24 -35
- package/table/table-column.component.d.ts +6 -5
- package/table/table-skeleton.component.d.ts +3 -10
- package/table/table.component.d.ts +11 -10
- package/tabs/tab-content.component.d.ts +4 -4
- package/tabs/tab.component.d.ts +4 -5
- package/tabs/tabs.component.d.ts +13 -15
- package/tag/tag.component.d.ts +10 -16
- package/time-picker/time-picker-panel.component.d.ts +3 -2
- package/time-picker/time-picker.component.d.ts +6 -5
- package/timeline/timeline-item.component.d.ts +9 -13
- package/timeline/timeline.component.d.ts +13 -17
- package/tooltip/tooltip.directive.d.ts +3 -2
- package/transfer/transfer-list.component.d.ts +15 -15
- package/transfer/transfer.component.d.ts +20 -23
- package/tree/tree-abstract.d.ts +5 -5
- package/tree/tree-node.component.d.ts +24 -46
- package/tree/tree.class.d.ts +4 -4
- package/tree/tree.component.d.ts +47 -74
- package/tree/tree.service.d.ts +3 -4
- package/tree-select/tree-select.component.d.ts +10 -9
- package/typography/bg-color.directive.d.ts +3 -3
- package/typography/text/text.component.d.ts +2 -2
- package/typography/text-color.directive.d.ts +3 -3
- package/upload/file-drop.directive.d.ts +9 -11
- package/upload/file-select-base.d.ts +6 -10
- package/upload/file-select.component.d.ts +10 -20
- package/util/helpers/helpers.d.ts +2 -1
- package/vote/vote.component.d.ts +13 -32
- package/watermark/watermark.directive.d.ts +7 -9
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TemplateRef, Signal, WritableSignal, ModelSignal } from '@angular/core';
|
|
2
2
|
import { isTemplateRef } from 'ngx-tethys/util';
|
|
3
3
|
import { ThyPaginationConfigModel } from './pagination.class';
|
|
4
4
|
import { ThyI18nLocale, ThyPaginationLocale } from 'ngx-tethys/i18n';
|
|
@@ -8,186 +8,125 @@ import * as i0 from "@angular/core";
|
|
|
8
8
|
* @name thy-pagination
|
|
9
9
|
* @order 10
|
|
10
10
|
*/
|
|
11
|
-
export declare class ThyPagination
|
|
11
|
+
export declare class ThyPagination {
|
|
12
12
|
private paginationConfig;
|
|
13
|
-
private cdr;
|
|
14
13
|
allLocale: Signal<ThyI18nLocale>;
|
|
15
|
-
|
|
14
|
+
paginationLocale: Signal<ThyPaginationLocale>;
|
|
16
15
|
isTemplateRef: typeof isTemplateRef;
|
|
17
|
-
config: ThyPaginationConfigModel;
|
|
18
16
|
/**
|
|
19
17
|
* 设置当前页,支持双向绑定
|
|
20
18
|
* @default 1
|
|
21
19
|
*/
|
|
22
|
-
|
|
20
|
+
readonly thyPageIndex: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
23
21
|
/**
|
|
24
22
|
* 每页条目数量
|
|
25
23
|
* @default 20
|
|
26
24
|
*/
|
|
27
|
-
|
|
25
|
+
readonly thyPageSize: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
28
26
|
/**
|
|
29
|
-
*
|
|
27
|
+
* 数据总数
|
|
30
28
|
*/
|
|
31
|
-
|
|
29
|
+
readonly thyTotal: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
32
30
|
/**
|
|
33
31
|
* 自定义分页页码,设置自定义分页页码后将不根据 Total 和 PageSize 来自动计算页码,完全以传入的页码为准
|
|
34
32
|
* @type number[]
|
|
35
33
|
*/
|
|
36
|
-
|
|
34
|
+
readonly thyCustomPages: import("@angular/core").InputSignal<number[]>;
|
|
37
35
|
/**
|
|
38
36
|
* 是否禁用
|
|
39
37
|
*/
|
|
40
|
-
|
|
38
|
+
readonly thyDisabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
41
39
|
/**
|
|
42
40
|
* 是否显示快速跳转
|
|
43
41
|
* @default false
|
|
44
42
|
*/
|
|
45
|
-
|
|
43
|
+
readonly thyShowQuickJumper: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
46
44
|
/**
|
|
47
45
|
* 设置是否显示总页数信息
|
|
48
46
|
* @default true
|
|
49
47
|
*/
|
|
50
|
-
|
|
48
|
+
readonly thyShowTotalPageCount: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
51
49
|
/**
|
|
52
50
|
* 设置分页组件的大小
|
|
53
51
|
* @type sm | md | lg
|
|
54
52
|
* @default md
|
|
55
53
|
*/
|
|
56
|
-
|
|
54
|
+
readonly thySize: import("@angular/core").InputSignal<"sm" | "md" | "lg">;
|
|
57
55
|
/**
|
|
58
56
|
* 设置最大显示数量,超出最大显示数后会自动进行分割显示
|
|
59
57
|
* @default 9
|
|
60
58
|
*/
|
|
61
|
-
|
|
59
|
+
readonly thyMaxCount: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
62
60
|
/**
|
|
63
61
|
* 设置边缘显示数量
|
|
64
62
|
* @default 2
|
|
65
63
|
*/
|
|
66
|
-
|
|
64
|
+
readonly thyMarginalCount: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
67
65
|
/**
|
|
68
66
|
* 设置中间区域显示数量
|
|
69
67
|
* @default 5
|
|
70
68
|
*/
|
|
71
|
-
|
|
72
|
-
|
|
69
|
+
readonly thyRangeCount: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
70
|
+
/**
|
|
71
|
+
* 是否显示分页大小选择器
|
|
72
|
+
* @default false
|
|
73
|
+
*/
|
|
74
|
+
readonly thyShowSizeChanger: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
73
75
|
/**
|
|
74
76
|
* @type number[]
|
|
75
77
|
*/
|
|
76
|
-
|
|
78
|
+
readonly thyPageSizeOptions: import("@angular/core").InputSignal<number[]>;
|
|
77
79
|
/**
|
|
78
80
|
* 只有一页时是否隐藏分页器
|
|
79
81
|
* @default false
|
|
80
82
|
*/
|
|
81
|
-
|
|
83
|
+
readonly thyHideOnSinglePage: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
82
84
|
/**
|
|
83
85
|
* 分页器单位
|
|
84
86
|
* @default 条
|
|
85
87
|
*/
|
|
86
|
-
|
|
88
|
+
readonly thyUnit: import("@angular/core").InputSignal<string>;
|
|
89
|
+
/**
|
|
90
|
+
* 是否显示范围和total
|
|
91
|
+
* @default false
|
|
92
|
+
*/
|
|
93
|
+
readonly thyShowTotal: import("@angular/core").InputSignal<boolean | TemplateRef<{
|
|
94
|
+
$implicit: number;
|
|
95
|
+
range: {
|
|
96
|
+
from: number;
|
|
97
|
+
to: number;
|
|
98
|
+
};
|
|
99
|
+
}>>;
|
|
87
100
|
/**
|
|
88
101
|
* 页码改变的回调
|
|
89
102
|
*/
|
|
90
|
-
|
|
103
|
+
readonly thyPageIndexChange: import("@angular/core").OutputEmitterRef<number>;
|
|
91
104
|
/**
|
|
92
105
|
* 与Bootstrap pagination 兼容,后续版本会进行删除,参数保持与 bootstrap 一致
|
|
93
106
|
*/
|
|
94
|
-
|
|
107
|
+
readonly thyPageChanged: import("@angular/core").OutputEmitterRef<{
|
|
95
108
|
page: number;
|
|
96
109
|
}>;
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
total: number;
|
|
108
|
-
range: {
|
|
110
|
+
readonly thyPageSizeChanged: import("@angular/core").OutputEmitterRef<number>;
|
|
111
|
+
currentPageIndex: WritableSignal<number>;
|
|
112
|
+
currentPageSize: WritableSignal<number>;
|
|
113
|
+
selectedPageSize: ModelSignal<number>;
|
|
114
|
+
firstIndex: number;
|
|
115
|
+
computedConfig: Signal<ThyPaginationConfigModel>;
|
|
116
|
+
marginalCount: Signal<number>;
|
|
117
|
+
computedPageCount: Signal<number>;
|
|
118
|
+
computedPages: Signal<any[]>;
|
|
119
|
+
computedRange: Signal<{
|
|
109
120
|
from: number;
|
|
110
121
|
to: number;
|
|
111
|
-
};
|
|
112
|
-
firstIndex: number;
|
|
113
|
-
isHideOnSinglePage: boolean;
|
|
114
|
-
private initialized;
|
|
115
|
-
private hostRenderer;
|
|
116
|
-
selectSize: string;
|
|
117
|
-
selectPageSize: Number;
|
|
118
|
-
isPaginationClass: boolean;
|
|
119
|
-
/**
|
|
120
|
-
* 是否显示范围和total
|
|
121
|
-
* @default false
|
|
122
|
-
*/
|
|
123
|
-
showTotal: boolean | TemplateRef<{
|
|
124
|
-
$implicit: number;
|
|
125
|
-
range: {
|
|
126
|
-
from: number;
|
|
127
|
-
to: number;
|
|
128
|
-
};
|
|
129
122
|
}>;
|
|
130
|
-
|
|
131
|
-
private setMarginalCount;
|
|
123
|
+
constructor();
|
|
132
124
|
private setPageIndex;
|
|
133
|
-
private calculatePageCount;
|
|
134
125
|
private makePage;
|
|
135
|
-
private initializePages;
|
|
136
126
|
private pageChange;
|
|
137
127
|
selectPage(pageIndex: number): void;
|
|
138
128
|
jumpPage(input: HTMLInputElement): void;
|
|
139
129
|
onPageSizeChange(event: number): void;
|
|
140
130
|
static ɵfac: i0.ɵɵFactoryDeclaration<ThyPagination, never>;
|
|
141
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ThyPagination, "thy-pagination", never, { "thyPageIndex": { "alias": "thyPageIndex"; "required": false; }; "thyPageSize": { "alias": "thyPageSize"; "required": false; }; "thyTotal": { "alias": "thyTotal"; "required": false; }; "thyCustomPages": { "alias": "thyCustomPages"; "required": false; }; "
|
|
142
|
-
static ngAcceptInputType_thyPageIndex: unknown;
|
|
143
|
-
static ngAcceptInputType_thyPageSize: unknown;
|
|
144
|
-
static ngAcceptInputType_thyTotal: unknown;
|
|
145
|
-
static ngAcceptInputType_disabled: boolean | string
|
|
146
|
-
/**
|
|
147
|
-
* 设置当前页,支持双向绑定
|
|
148
|
-
* @default 1
|
|
149
|
-
*/
|
|
150
|
-
| /**
|
|
151
|
-
* 设置当前页,支持双向绑定
|
|
152
|
-
* @default 1
|
|
153
|
-
*/ number;
|
|
154
|
-
static ngAcceptInputType_showQuickJumper: boolean | string
|
|
155
|
-
/**
|
|
156
|
-
* 设置当前页,支持双向绑定
|
|
157
|
-
* @default 1
|
|
158
|
-
*/
|
|
159
|
-
| /**
|
|
160
|
-
* 设置当前页,支持双向绑定
|
|
161
|
-
* @default 1
|
|
162
|
-
*/ number;
|
|
163
|
-
static ngAcceptInputType_showTotalPageCount: boolean | string
|
|
164
|
-
/**
|
|
165
|
-
* 设置当前页,支持双向绑定
|
|
166
|
-
* @default 1
|
|
167
|
-
*/
|
|
168
|
-
| /**
|
|
169
|
-
* 设置当前页,支持双向绑定
|
|
170
|
-
* @default 1
|
|
171
|
-
*/ number;
|
|
172
|
-
static ngAcceptInputType_maxCount: unknown;
|
|
173
|
-
static ngAcceptInputType_marginalCount: unknown;
|
|
174
|
-
static ngAcceptInputType_thyRangeCount: unknown;
|
|
175
|
-
static ngAcceptInputType_showSizeChanger: boolean | string
|
|
176
|
-
/**
|
|
177
|
-
* 设置当前页,支持双向绑定
|
|
178
|
-
* @default 1
|
|
179
|
-
*/
|
|
180
|
-
| /**
|
|
181
|
-
* 设置当前页,支持双向绑定
|
|
182
|
-
* @default 1
|
|
183
|
-
*/ number;
|
|
184
|
-
static ngAcceptInputType_hideOnSinglePage: boolean | string
|
|
185
|
-
/**
|
|
186
|
-
* 设置当前页,支持双向绑定
|
|
187
|
-
* @default 1
|
|
188
|
-
*/
|
|
189
|
-
| /**
|
|
190
|
-
* 设置当前页,支持双向绑定
|
|
191
|
-
* @default 1
|
|
192
|
-
*/ number;
|
|
131
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ThyPagination, "thy-pagination", never, { "thyPageIndex": { "alias": "thyPageIndex"; "required": false; "isSignal": true; }; "thyPageSize": { "alias": "thyPageSize"; "required": false; "isSignal": true; }; "thyTotal": { "alias": "thyTotal"; "required": false; "isSignal": true; }; "thyCustomPages": { "alias": "thyCustomPages"; "required": false; "isSignal": true; }; "thyDisabled": { "alias": "thyDisabled"; "required": false; "isSignal": true; }; "thyShowQuickJumper": { "alias": "thyShowQuickJumper"; "required": false; "isSignal": true; }; "thyShowTotalPageCount": { "alias": "thyShowTotalPageCount"; "required": false; "isSignal": true; }; "thySize": { "alias": "thySize"; "required": false; "isSignal": true; }; "thyMaxCount": { "alias": "thyMaxCount"; "required": false; "isSignal": true; }; "thyMarginalCount": { "alias": "thyMarginalCount"; "required": false; "isSignal": true; }; "thyRangeCount": { "alias": "thyRangeCount"; "required": false; "isSignal": true; }; "thyShowSizeChanger": { "alias": "thyShowSizeChanger"; "required": false; "isSignal": true; }; "thyPageSizeOptions": { "alias": "thyPageSizeOptions"; "required": false; "isSignal": true; }; "thyHideOnSinglePage": { "alias": "thyHideOnSinglePage"; "required": false; "isSignal": true; }; "thyUnit": { "alias": "thyUnit"; "required": false; "isSignal": true; }; "thyShowTotal": { "alias": "thyShowTotal"; "required": false; "isSignal": true; }; "selectedPageSize": { "alias": "selectedPageSize"; "required": false; "isSignal": true; }; }, { "thyPageIndexChange": "thyPageIndexChange"; "thyPageChanged": "thyPageChanged"; "thyPageSizeChanged": "thyPageSizeChanged"; "selectedPageSize": "selectedPageSizeChange"; }, never, never, true, never>;
|
|
193
132
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TemplateRef } from '@angular/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
/**
|
|
4
4
|
* 悬浮层头部组件
|
|
@@ -11,24 +11,25 @@ export declare class ThyPopoverHeader {
|
|
|
11
11
|
/**
|
|
12
12
|
* 头部标题
|
|
13
13
|
*/
|
|
14
|
-
thyTitle: string
|
|
14
|
+
readonly thyTitle: import("@angular/core").InputSignal<string>;
|
|
15
15
|
/**
|
|
16
16
|
* 标题的多语言 Key
|
|
17
17
|
*/
|
|
18
|
-
|
|
18
|
+
readonly thyTitleTranslationKey: import("@angular/core").InputSignal<string>;
|
|
19
|
+
protected readonly titleSignal: import("@angular/core").Signal<any>;
|
|
19
20
|
/**
|
|
20
21
|
* 自定义头部模板
|
|
21
22
|
* @type TemplateRef
|
|
22
23
|
*/
|
|
23
|
-
headerTemplate: TemplateRef<any
|
|
24
|
+
headerTemplate: import("@angular/core").Signal<TemplateRef<any>>;
|
|
24
25
|
/**
|
|
25
26
|
* @internal
|
|
26
27
|
*/
|
|
27
|
-
thyClosed:
|
|
28
|
+
readonly thyClosed: import("@angular/core").OutputEmitterRef<Event>;
|
|
28
29
|
/**
|
|
29
30
|
* @internal
|
|
30
31
|
*/
|
|
31
32
|
close(event: Event): void;
|
|
32
33
|
static ɵfac: i0.ɵɵFactoryDeclaration<ThyPopoverHeader, never>;
|
|
33
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ThyPopoverHeader, "thy-popover-header", ["thyPopoverHeader"], { "thyTitle": { "alias": "thyTitle"; "required": false; }; "thyTitleTranslationKey": { "alias": "thyTitleTranslationKey"; "required": false; }; }, { "thyClosed": "thyClosed"; }, ["headerTemplate"], never, true, never>;
|
|
34
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ThyPopoverHeader, "thy-popover-header", ["thyPopoverHeader"], { "thyTitle": { "alias": "thyTitle"; "required": false; "isSignal": true; }; "thyTitleTranslationKey": { "alias": "thyTitleTranslationKey"; "required": false; "isSignal": true; }; }, { "thyClosed": "thyClosed"; }, ["headerTemplate"], never, true, never>;
|
|
34
35
|
}
|
|
@@ -4,6 +4,7 @@ import { ThyOverlayDirectiveBase, ThyOverlayTrigger, ThyPlacement } from 'ngx-te
|
|
|
4
4
|
import { ComponentType } from '@angular/cdk/portal';
|
|
5
5
|
import { ThyPopoverConfig } from './popover.config';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
|
+
import * as i1 from "ngx-tethys/util";
|
|
7
8
|
/**
|
|
8
9
|
* 弹出悬浮层指令
|
|
9
10
|
* @name thyPopover
|
|
@@ -18,36 +19,36 @@ export declare class ThyPopoverDirective extends ThyOverlayDirectiveBase impleme
|
|
|
18
19
|
/**
|
|
19
20
|
* 悬浮组件或者模板
|
|
20
21
|
*/
|
|
21
|
-
content:
|
|
22
|
+
readonly content: import("@angular/core").InputSignal<TemplateRef<any> | ComponentType<any>>;
|
|
22
23
|
/**
|
|
23
24
|
* 弹出悬浮层的触发方式
|
|
24
25
|
*/
|
|
25
|
-
|
|
26
|
+
readonly thyTrigger: import("@angular/core").InputSignal<ThyOverlayTrigger>;
|
|
26
27
|
/**
|
|
27
28
|
* 弹出悬浮层的位置
|
|
28
29
|
* @type top | topLeft | topRight | bottom | bottomLeft | bottomRight | left | leftTop | leftBottom | right | rightTop | rightBottom
|
|
29
30
|
*/
|
|
30
|
-
thyPlacement: ThyPlacement
|
|
31
|
+
readonly thyPlacement: import("@angular/core").InputSignal<ThyPlacement>;
|
|
31
32
|
/**
|
|
32
33
|
* 弹出悬浮层的偏移量
|
|
33
34
|
*/
|
|
34
|
-
thyOffset: number
|
|
35
|
+
readonly thyOffset: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
35
36
|
/**
|
|
36
37
|
* 弹出悬浮层的配置
|
|
37
38
|
*/
|
|
38
|
-
thyConfig: ThyPopoverConfig
|
|
39
|
+
readonly thyConfig: import("@angular/core").InputSignal<ThyPopoverConfig<unknown>>;
|
|
39
40
|
/**
|
|
40
41
|
* 显示延迟时间
|
|
41
42
|
*/
|
|
42
|
-
|
|
43
|
+
readonly thyShowDelay: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
43
44
|
/**
|
|
44
45
|
* 隐藏延迟时间
|
|
45
46
|
*/
|
|
46
|
-
|
|
47
|
+
readonly thyHideDelay: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
47
48
|
/**
|
|
48
49
|
* 自动适配内容变化重新计算位置
|
|
49
50
|
*/
|
|
50
|
-
thyAutoAdaptive: boolean
|
|
51
|
+
readonly thyAutoAdaptive: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
51
52
|
/**
|
|
52
53
|
* 是否禁用打开悬浮层
|
|
53
54
|
* @default false
|
|
@@ -61,14 +62,6 @@ export declare class ThyPopoverDirective extends ThyOverlayDirectiveBase impleme
|
|
|
61
62
|
hide(delay?: number): void;
|
|
62
63
|
ngOnDestroy(): void;
|
|
63
64
|
static ɵfac: i0.ɵɵFactoryDeclaration<ThyPopoverDirective, never>;
|
|
64
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<ThyPopoverDirective, "[thyPopover]", never, { "content": { "alias": "thyPopover"; "required": false; }; "thyTrigger": { "alias": "thyTrigger"; "required": false; }; "thyPlacement": { "alias": "thyPlacement"; "required": false; }; "thyOffset": { "alias": "thyOffset"; "required": false; }; "thyConfig": { "alias": "thyConfig"; "required": false; }; "thyShowDelay": { "alias": "thyShowDelay"; "required": false; }; "thyHideDelay": { "alias": "thyHideDelay"; "required": false; }; "thyAutoAdaptive": { "alias": "thyAutoAdaptive"; "required": false; }; "thyDisabled": { "alias": "thyDisabled"; "required": false; }; }, {}, never, never, true, never>;
|
|
65
|
-
static
|
|
66
|
-
static ngAcceptInputType_thyShowDelay: unknown;
|
|
67
|
-
static ngAcceptInputType_thyHideDelay: unknown;
|
|
68
|
-
static ngAcceptInputType_thyAutoAdaptive: boolean | string | number /**
|
|
69
|
-
* 自动适配内容变化重新计算位置
|
|
70
|
-
*/;
|
|
71
|
-
static ngAcceptInputType_thyDisabled: boolean | string | number /**
|
|
72
|
-
* 自动适配内容变化重新计算位置
|
|
73
|
-
*/;
|
|
65
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ThyPopoverDirective, "[thyPopover]", never, { "content": { "alias": "thyPopover"; "required": false; "isSignal": true; }; "thyTrigger": { "alias": "thyTrigger"; "required": false; "isSignal": true; }; "thyPlacement": { "alias": "thyPlacement"; "required": false; "isSignal": true; }; "thyOffset": { "alias": "thyOffset"; "required": false; "isSignal": true; }; "thyConfig": { "alias": "thyConfig"; "required": false; "isSignal": true; }; "thyShowDelay": { "alias": "thyShowDelay"; "required": false; "isSignal": true; }; "thyHideDelay": { "alias": "thyHideDelay"; "required": false; "isSignal": true; }; "thyAutoAdaptive": { "alias": "thyAutoAdaptive"; "required": false; "isSignal": true; }; "thyDisabled": { "alias": "thyDisabled"; "required": false; }; }, {}, never, never, true, never>;
|
|
66
|
+
static ngAcceptInputType_thyDisabled: i1.ThyBooleanInput;
|
|
74
67
|
}
|
|
@@ -1,34 +1,43 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { TemplateRef } from '@angular/core';
|
|
2
|
+
import { ThyProgressGapPositionType, ThyProgressShapeType, ThyProgressStackedValue, ThyProgressType } from './interfaces';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
/**
|
|
5
5
|
* @private
|
|
6
6
|
*/
|
|
7
|
-
export declare class ThyProgressCircle
|
|
7
|
+
export declare class ThyProgressCircle {
|
|
8
8
|
private hostRenderer;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
thyValue: number | ThyProgressStackedValue[]
|
|
12
|
-
thyMax: number
|
|
13
|
-
thyTips: string | TemplateRef<unknown
|
|
14
|
-
thyShape: ThyProgressShapeType
|
|
15
|
-
thyGapDegree
|
|
16
|
-
thyGapPosition: ThyProgressGapPositionType
|
|
17
|
-
thyStrokeWidth: number
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
9
|
+
readonly thyType: import("@angular/core").InputSignal<ThyProgressType>;
|
|
10
|
+
readonly thySize: import("@angular/core").InputSignal<string | number>;
|
|
11
|
+
readonly thyValue: import("@angular/core").InputSignal<number | ThyProgressStackedValue[]>;
|
|
12
|
+
readonly thyMax: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
13
|
+
readonly thyTips: import("@angular/core").InputSignal<string | TemplateRef<unknown>>;
|
|
14
|
+
readonly thyShape: import("@angular/core").InputSignal<ThyProgressShapeType>;
|
|
15
|
+
readonly thyGapDegree: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
16
|
+
readonly thyGapPosition: import("@angular/core").InputSignal<ThyProgressGapPositionType>;
|
|
17
|
+
readonly thyStrokeWidth: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
18
|
+
readonly strokeWidth: import("@angular/core").Signal<number>;
|
|
19
|
+
readonly progressSize: import("@angular/core").Signal<string>;
|
|
20
|
+
readonly width: import("@angular/core").Signal<number>;
|
|
21
|
+
readonly circle: import("@angular/core").Signal<{
|
|
22
|
+
pathString: string;
|
|
23
|
+
trailPathStyle: {
|
|
24
|
+
strokeDasharray: string;
|
|
25
|
+
strokeDashoffset: string;
|
|
26
|
+
transition: string;
|
|
27
|
+
};
|
|
28
|
+
progressCirclePath: {
|
|
29
|
+
stroke: string;
|
|
30
|
+
value: number;
|
|
31
|
+
className: string;
|
|
32
|
+
strokePathStyle: {
|
|
33
|
+
stroke: string;
|
|
34
|
+
transition: string;
|
|
35
|
+
strokeDasharray: string;
|
|
36
|
+
strokeDashoffset: string;
|
|
37
|
+
};
|
|
38
|
+
}[];
|
|
39
|
+
}>;
|
|
25
40
|
constructor();
|
|
26
|
-
ngOnInit(): void;
|
|
27
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
28
|
-
private createCircleProgress;
|
|
29
41
|
static ɵfac: i0.ɵɵFactoryDeclaration<ThyProgressCircle, never>;
|
|
30
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ThyProgressCircle, "thy-progress-circle", never, { "thyType": { "alias": "thyType"; "required": false; }; "thySize": { "alias": "thySize"; "required": false; }; "thyValue": { "alias": "thyValue"; "required": false; }; "thyMax": { "alias": "thyMax"; "required": false; }; "thyTips": { "alias": "thyTips"; "required": false; }; "thyShape": { "alias": "thyShape"; "required": false; }; "thyGapDegree": { "alias": "thyGapDegree"; "required": false; }; "thyGapPosition": { "alias": "thyGapPosition"; "required": false; }; "thyStrokeWidth": { "alias": "thyStrokeWidth"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
31
|
-
static ngAcceptInputType_thyMax: unknown;
|
|
32
|
-
static ngAcceptInputType_thyGapDegree: unknown;
|
|
33
|
-
static ngAcceptInputType_thyStrokeWidth: unknown;
|
|
42
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ThyProgressCircle, "thy-progress-circle", never, { "thyType": { "alias": "thyType"; "required": false; "isSignal": true; }; "thySize": { "alias": "thySize"; "required": false; "isSignal": true; }; "thyValue": { "alias": "thyValue"; "required": false; "isSignal": true; }; "thyMax": { "alias": "thyMax"; "required": false; "isSignal": true; }; "thyTips": { "alias": "thyTips"; "required": false; "isSignal": true; }; "thyShape": { "alias": "thyShape"; "required": false; "isSignal": true; }; "thyGapDegree": { "alias": "thyGapDegree"; "required": false; "isSignal": true; }; "thyGapPosition": { "alias": "thyGapPosition"; "required": false; "isSignal": true; }; "thyStrokeWidth": { "alias": "thyStrokeWidth"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
34
43
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { InjectionToken, TemplateRef } from '@angular/core';
|
|
1
|
+
import { InjectionToken, TemplateRef, Signal } from '@angular/core';
|
|
2
2
|
import { ThyProgressType } from './interfaces';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export interface ThyParentProgress {
|
|
5
|
-
max: number
|
|
6
|
-
bars: ThyProgressStrip[]
|
|
5
|
+
readonly max: Signal<number>;
|
|
6
|
+
readonly bars: Signal<readonly ThyProgressStrip[]>;
|
|
7
7
|
}
|
|
8
8
|
export declare const THY_PROGRESS_COMPONENT: InjectionToken<ThyParentProgress>;
|
|
9
9
|
/**
|
|
@@ -11,17 +11,13 @@ export declare const THY_PROGRESS_COMPONENT: InjectionToken<ThyParentProgress>;
|
|
|
11
11
|
*/
|
|
12
12
|
export declare class ThyProgressStrip {
|
|
13
13
|
private progress;
|
|
14
|
-
private value;
|
|
15
14
|
private hostRenderer;
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
set thyColor(color: string);
|
|
23
|
-
recalculatePercentage(): void;
|
|
15
|
+
readonly thyTips: import("@angular/core").InputSignal<string | TemplateRef<HTMLElement>>;
|
|
16
|
+
readonly thyType: import("@angular/core").InputSignal<ThyProgressType>;
|
|
17
|
+
readonly thyValue: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
18
|
+
readonly thyColor: import("@angular/core").InputSignal<string>;
|
|
19
|
+
protected readonly percent: Signal<number>;
|
|
20
|
+
constructor();
|
|
24
21
|
static ɵfac: i0.ɵɵFactoryDeclaration<ThyProgressStrip, never>;
|
|
25
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ThyProgressStrip, "thy-progress-bar", never, { "thyTips": { "alias": "thyTips"; "required": false; }; "thyType": { "alias": "thyType"; "required": false; }; "thyValue": { "alias": "thyValue"; "required": false; }; "thyColor": { "alias": "thyColor"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
26
|
-
static ngAcceptInputType_thyValue: unknown;
|
|
22
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ThyProgressStrip, "thy-progress-bar", never, { "thyTips": { "alias": "thyTips"; "required": false; "isSignal": true; }; "thyType": { "alias": "thyType"; "required": false; "isSignal": true; }; "thyValue": { "alias": "thyValue"; "required": false; "isSignal": true; }; "thyColor": { "alias": "thyColor"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
27
23
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TemplateRef } from '@angular/core';
|
|
2
2
|
import { ThyProgressGapPositionType, ThyProgressShapeType, ThyProgressStackedValue, ThyProgressType } from './interfaces';
|
|
3
3
|
import { ThyParentProgress, ThyProgressStrip } from './progress-strip.component';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
@@ -6,64 +6,54 @@ import * as i0 from "@angular/core";
|
|
|
6
6
|
* 进度条组件
|
|
7
7
|
* @name thy-progress
|
|
8
8
|
*/
|
|
9
|
-
export declare class ThyProgress implements ThyParentProgress
|
|
10
|
-
value: number | ThyProgressStackedValue[];
|
|
11
|
-
bars: ThyProgressStrip[];
|
|
12
|
-
barsTotalValue: number;
|
|
13
|
-
private settedMax;
|
|
9
|
+
export declare class ThyProgress implements ThyParentProgress {
|
|
14
10
|
private hostRenderer;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
11
|
+
readonly barsTotalValue: import("@angular/core").Signal<number>;
|
|
12
|
+
readonly max: import("@angular/core").Signal<number>;
|
|
13
|
+
readonly isStacked: import("@angular/core").Signal<boolean>;
|
|
14
|
+
readonly bars: import("@angular/core").Signal<readonly ThyProgressStrip[]>;
|
|
18
15
|
/**
|
|
19
16
|
* 进度条类型: `primary` | `success` | `info` | `warning` | `danger`
|
|
20
17
|
*/
|
|
21
|
-
thyType: ThyProgressType
|
|
18
|
+
readonly thyType: import("@angular/core").InputSignal<ThyProgressType>;
|
|
22
19
|
/**
|
|
23
20
|
* 进度条大小
|
|
24
21
|
* @type xs | sm | md
|
|
25
22
|
* @default md
|
|
26
23
|
*/
|
|
27
|
-
|
|
24
|
+
readonly thySize: import("@angular/core").InputSignal<string | number>;
|
|
28
25
|
/**
|
|
29
26
|
* 进度值,传入数字时显示百分比 = value / max * 100,当传入数组时显示多个 bar,stacked 模式的进度条
|
|
30
27
|
* @type number | ThyProgressStackedValue[]
|
|
31
28
|
*/
|
|
32
|
-
|
|
29
|
+
readonly thyValue: import("@angular/core").InputSignalWithTransform<number | ThyProgressStackedValue[], number | ThyProgressStackedValue[]>;
|
|
33
30
|
/**
|
|
34
31
|
* 最大值,主要计算百分比进度的分母使用,当 thyValue 传入数组时,自动累加数组中的 value 之和为 max
|
|
35
32
|
*/
|
|
36
|
-
|
|
33
|
+
readonly thyMax: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
37
34
|
/**
|
|
38
35
|
* 鼠标移入进度条时显示的提示文案或者模板
|
|
39
36
|
*/
|
|
40
|
-
thyTips: string | TemplateRef<unknown
|
|
37
|
+
readonly thyTips: import("@angular/core").InputSignal<string | TemplateRef<unknown>>;
|
|
41
38
|
/**
|
|
42
39
|
* 进度形状
|
|
43
40
|
* @type strip | circle
|
|
44
41
|
*/
|
|
45
|
-
thyShape: ThyProgressShapeType
|
|
42
|
+
readonly thyShape: import("@angular/core").InputSignal<ThyProgressShapeType>;
|
|
46
43
|
/**
|
|
47
44
|
* 圆形进度条缺口角度,可取值 0 ~ 360
|
|
48
45
|
*/
|
|
49
|
-
thyGapDegree
|
|
46
|
+
readonly thyGapDegree: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
50
47
|
/**
|
|
51
48
|
* 圆形进度条缺口位置
|
|
52
49
|
* @type top | bottom | left | right
|
|
53
50
|
*/
|
|
54
|
-
thyGapPosition: ThyProgressGapPositionType
|
|
51
|
+
readonly thyGapPosition: import("@angular/core").InputSignal<ThyProgressGapPositionType>;
|
|
55
52
|
/**
|
|
56
53
|
* 圆形进度条线的宽度
|
|
57
54
|
*/
|
|
58
|
-
thyStrokeWidth: number
|
|
59
|
-
size: string | number;
|
|
55
|
+
readonly thyStrokeWidth: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
60
56
|
constructor();
|
|
61
|
-
ngOnInit(): void;
|
|
62
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
63
|
-
calculateMax(): void;
|
|
64
57
|
static ɵfac: i0.ɵɵFactoryDeclaration<ThyProgress, never>;
|
|
65
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ThyProgress, "thy-progress", never, { "thyType": { "alias": "thyType"; "required": false; }; "thySize": { "alias": "thySize"; "required": false; }; "thyValue": { "alias": "thyValue"; "required": false; }; "thyMax": { "alias": "thyMax"; "required": false; }; "thyTips": { "alias": "thyTips"; "required": false; }; "thyShape": { "alias": "thyShape"; "required": false; }; "thyGapDegree": { "alias": "thyGapDegree"; "required": false; }; "thyGapPosition": { "alias": "thyGapPosition"; "required": false; }; "thyStrokeWidth": { "alias": "thyStrokeWidth"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
66
|
-
static ngAcceptInputType_thyMax: unknown;
|
|
67
|
-
static ngAcceptInputType_thyGapDegree: unknown;
|
|
68
|
-
static ngAcceptInputType_thyStrokeWidth: unknown;
|
|
58
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ThyProgress, "thy-progress", never, { "thyType": { "alias": "thyType"; "required": false; "isSignal": true; }; "thySize": { "alias": "thySize"; "required": false; "isSignal": true; }; "thyValue": { "alias": "thyValue"; "required": false; "isSignal": true; }; "thyMax": { "alias": "thyMax"; "required": false; "isSignal": true; }; "thyTips": { "alias": "thyTips"; "required": false; "isSignal": true; }; "thyShape": { "alias": "thyShape"; "required": false; "isSignal": true; }; "thyGapDegree": { "alias": "thyGapDegree"; "required": false; "isSignal": true; }; "thyGapPosition": { "alias": "thyGapPosition"; "required": false; "isSignal": true; }; "thyStrokeWidth": { "alias": "thyStrokeWidth"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
69
59
|
}
|
|
@@ -1,34 +1,25 @@
|
|
|
1
|
-
import { BehaviorSubject } from 'rxjs';
|
|
2
|
-
import { OnInit } from '@angular/core';
|
|
3
1
|
import * as i0 from "@angular/core";
|
|
4
2
|
export type ThyPropertiesLayout = 'horizontal' | 'vertical';
|
|
5
3
|
/**
|
|
6
4
|
* 属性列表组件
|
|
7
5
|
* @name thy-properties
|
|
8
6
|
*/
|
|
9
|
-
export declare class ThyProperties
|
|
10
|
-
layout$: BehaviorSubject<ThyPropertiesLayout>;
|
|
11
|
-
layout: ThyPropertiesLayout;
|
|
7
|
+
export declare class ThyProperties {
|
|
12
8
|
/**
|
|
13
9
|
* 展示布局
|
|
14
10
|
* @type "horizontal" | "vertical"
|
|
15
|
-
* @default horizontal
|
|
16
11
|
*/
|
|
17
|
-
|
|
12
|
+
readonly layout: import("@angular/core").InputSignal<ThyPropertiesLayout>;
|
|
18
13
|
/**
|
|
19
14
|
* 设置一行的可以 property-item 的数量
|
|
20
|
-
* @type number
|
|
21
15
|
*/
|
|
22
|
-
thyColumn: number
|
|
16
|
+
readonly thyColumn: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
23
17
|
/**
|
|
24
18
|
* 设置编辑状态触发方法
|
|
25
19
|
* @type 'hover' | 'click'
|
|
26
20
|
*/
|
|
27
|
-
thyEditTrigger:
|
|
28
|
-
|
|
29
|
-
constructor();
|
|
30
|
-
ngOnInit(): void;
|
|
21
|
+
readonly thyEditTrigger: import("@angular/core").InputSignal<"hover" | "click">;
|
|
22
|
+
protected readonly gridTemplateColumns: import("@angular/core").Signal<string>;
|
|
31
23
|
static ɵfac: i0.ɵɵFactoryDeclaration<ThyProperties, never>;
|
|
32
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ThyProperties, "thy-properties", never, { "
|
|
33
|
-
static ngAcceptInputType_thyColumn: unknown;
|
|
24
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ThyProperties, "thy-properties", never, { "layout": { "alias": "thyLayout"; "required": false; "isSignal": true; }; "thyColumn": { "alias": "thyColumn"; "required": false; "isSignal": true; }; "thyEditTrigger": { "alias": "thyEditTrigger"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
34
25
|
}
|