ngx-tethys 19.0.13 → 19.1.0-next.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +29 -2
- package/action/action.component.d.ts +12 -20
- package/action/actions.component.d.ts +5 -7
- package/affix/affix.component.d.ts +7 -10
- package/alert/alert.component.d.ts +1 -1
- package/anchor/anchor-link.component.d.ts +8 -8
- package/anchor/anchor.component.d.ts +15 -21
- package/arrow-switcher/arrow-switcher.component.d.ts +15 -22
- package/autocomplete/autocomplete.component.d.ts +10 -17
- package/autocomplete/autocomplete.trigger.directive.d.ts +10 -18
- package/avatar/avatar-list/avatar-list.component.d.ts +8 -14
- package/avatar/avatar.component.d.ts +25 -39
- package/back-top/back-top.component.d.ts +9 -12
- package/badge/badge.component.d.ts +19 -59
- package/breadcrumb/breadcrumb.component.d.ts +15 -20
- package/button/button-icon.component.d.ts +3 -2
- package/button/button.component.d.ts +3 -2
- package/calendar/calendar-header.component.d.ts +9 -8
- package/calendar/calendar.component.d.ts +16 -16
- package/card/card.component.d.ts +5 -11
- package/card/content.component.d.ts +3 -8
- package/card/header.component.d.ts +7 -8
- package/carousel/carousel.component.d.ts +22 -27
- package/cascader/cascader-li.component.d.ts +13 -21
- package/cascader/cascader-search-option.component.d.ts +8 -16
- package/cascader/cascader.component.d.ts +58 -80
- package/checkbox/checkbox.component.d.ts +2 -5
- package/collapse/collapse-item.component.d.ts +12 -19
- package/collapse/collapse.component.d.ts +6 -12
- package/collapse/collapse.token.d.ts +3 -3
- package/color-picker/color-picker-custom-panel.component.d.ts +5 -5
- package/color-picker/color-picker-panel.component.d.ts +7 -11
- package/color-picker/color-picker.component.d.ts +19 -35
- package/color-picker/parts/alpha/alpha.component.d.ts +8 -8
- package/color-picker/parts/hue/hue.component.d.ts +6 -6
- package/color-picker/parts/indicator/indicator.component.d.ts +4 -3
- package/color-picker/parts/inputs/inputs.component.d.ts +9 -9
- package/color-picker/parts/saturation/saturation.component.d.ts +9 -9
- package/comment/comment.component.d.ts +4 -5
- package/copy/copy.directive.d.ts +8 -9
- package/date-picker/abstract-picker.component.d.ts +8 -7
- package/date-picker/lib/calendar/calendar-footer.component.d.ts +2 -1
- package/date-picker/lib/popups/inner-popup.component.d.ts +2 -1
- package/date-picker/picker.component.d.ts +2 -1
- package/date-range/date-range.component.d.ts +2 -2
- package/dialog/body/dialog-body.component.d.ts +2 -6
- package/dialog/confirm/confirm.component.d.ts +2 -2
- package/dialog/footer/dialog-footer.component.d.ts +6 -9
- package/dialog/header/dialog-header.component.d.ts +9 -11
- package/divider/divider.component.d.ts +12 -16
- package/dot/dot.component.d.ts +5 -13
- package/drag-drop/drag-handle.directive.d.ts +2 -1
- package/drag-drop/drag.directive.d.ts +2 -1
- package/drag-drop/drop-container.directive.d.ts +2 -1
- package/dropdown/dropdown-menu-item.directive.d.ts +3 -2
- package/dropdown/dropdown-menu.component.d.ts +2 -1
- package/dropdown/dropdown.directive.d.ts +2 -1
- package/empty/empty.component.d.ts +21 -27
- package/fesm2022/ngx-tethys-action.mjs +54 -91
- package/fesm2022/ngx-tethys-action.mjs.map +1 -1
- package/fesm2022/ngx-tethys-affix.mjs +29 -26
- package/fesm2022/ngx-tethys-affix.mjs.map +1 -1
- package/fesm2022/ngx-tethys-anchor.mjs +91 -118
- package/fesm2022/ngx-tethys-anchor.mjs.map +1 -1
- package/fesm2022/ngx-tethys-arrow-switcher.mjs +51 -77
- package/fesm2022/ngx-tethys-arrow-switcher.mjs.map +1 -1
- package/fesm2022/ngx-tethys-autocomplete.mjs +69 -103
- package/fesm2022/ngx-tethys-autocomplete.mjs.map +1 -1
- package/fesm2022/ngx-tethys-avatar.mjs +117 -162
- package/fesm2022/ngx-tethys-avatar.mjs.map +1 -1
- package/fesm2022/ngx-tethys-back-top.mjs +33 -46
- package/fesm2022/ngx-tethys-back-top.mjs.map +1 -1
- package/fesm2022/ngx-tethys-badge.mjs +104 -208
- package/fesm2022/ngx-tethys-badge.mjs.map +1 -1
- package/fesm2022/ngx-tethys-breadcrumb.mjs +66 -70
- package/fesm2022/ngx-tethys-breadcrumb.mjs.map +1 -1
- package/fesm2022/ngx-tethys-calendar.mjs +85 -87
- package/fesm2022/ngx-tethys-calendar.mjs.map +1 -1
- package/fesm2022/ngx-tethys-card.mjs +72 -77
- package/fesm2022/ngx-tethys-card.mjs.map +1 -1
- package/fesm2022/ngx-tethys-carousel.mjs +82 -99
- package/fesm2022/ngx-tethys-carousel.mjs.map +1 -1
- package/fesm2022/ngx-tethys-cascader.mjs +313 -468
- package/fesm2022/ngx-tethys-cascader.mjs.map +1 -1
- package/fesm2022/ngx-tethys-checkbox.mjs +10 -17
- package/fesm2022/ngx-tethys-checkbox.mjs.map +1 -1
- package/fesm2022/ngx-tethys-collapse.mjs +66 -71
- package/fesm2022/ngx-tethys-collapse.mjs.map +1 -1
- package/fesm2022/ngx-tethys-color-picker.mjs +187 -246
- package/fesm2022/ngx-tethys-color-picker.mjs.map +1 -1
- package/fesm2022/ngx-tethys-comment.mjs +16 -10
- package/fesm2022/ngx-tethys-comment.mjs.map +1 -1
- package/fesm2022/ngx-tethys-copy.mjs +25 -28
- package/fesm2022/ngx-tethys-copy.mjs.map +1 -1
- package/fesm2022/ngx-tethys-dialog.mjs +81 -82
- package/fesm2022/ngx-tethys-dialog.mjs.map +1 -1
- package/fesm2022/ngx-tethys-divider.mjs +49 -58
- package/fesm2022/ngx-tethys-divider.mjs.map +1 -1
- package/fesm2022/ngx-tethys-dot.mjs +45 -68
- package/fesm2022/ngx-tethys-dot.mjs.map +1 -1
- package/fesm2022/ngx-tethys-empty.mjs +107 -95
- package/fesm2022/ngx-tethys-empty.mjs.map +1 -1
- package/fesm2022/ngx-tethys-form.mjs +161 -200
- package/fesm2022/ngx-tethys-form.mjs.map +1 -1
- package/fesm2022/ngx-tethys-fullscreen.mjs +21 -23
- package/fesm2022/ngx-tethys-fullscreen.mjs.map +1 -1
- package/fesm2022/ngx-tethys-grid.mjs +160 -152
- package/fesm2022/ngx-tethys-grid.mjs.map +1 -1
- package/fesm2022/ngx-tethys-i18n.mjs +25 -25
- package/fesm2022/ngx-tethys-i18n.mjs.map +1 -1
- package/fesm2022/ngx-tethys-input-number.mjs +101 -114
- package/fesm2022/ngx-tethys-input-number.mjs.map +1 -1
- package/fesm2022/ngx-tethys-input.mjs +268 -271
- package/fesm2022/ngx-tethys-input.mjs.map +1 -1
- package/fesm2022/ngx-tethys-list.mjs +1 -1
- package/fesm2022/ngx-tethys-list.mjs.map +1 -1
- package/fesm2022/ngx-tethys-loading.mjs +17 -35
- package/fesm2022/ngx-tethys-loading.mjs.map +1 -1
- package/fesm2022/ngx-tethys-mention.mjs +52 -74
- package/fesm2022/ngx-tethys-mention.mjs.map +1 -1
- package/fesm2022/ngx-tethys-menu.mjs +106 -179
- package/fesm2022/ngx-tethys-menu.mjs.map +1 -1
- package/fesm2022/ngx-tethys-nav.mjs +169 -201
- package/fesm2022/ngx-tethys-nav.mjs.map +1 -1
- package/fesm2022/ngx-tethys-pagination.mjs +230 -294
- package/fesm2022/ngx-tethys-pagination.mjs.map +1 -1
- package/fesm2022/ngx-tethys-popover.mjs +67 -70
- package/fesm2022/ngx-tethys-popover.mjs.map +1 -1
- package/fesm2022/ngx-tethys-progress.mjs +196 -244
- package/fesm2022/ngx-tethys-progress.mjs.map +1 -1
- package/fesm2022/ngx-tethys-property.mjs +102 -105
- package/fesm2022/ngx-tethys-property.mjs.map +1 -1
- package/fesm2022/ngx-tethys-radio.mjs +34 -38
- package/fesm2022/ngx-tethys-radio.mjs.map +1 -1
- package/fesm2022/ngx-tethys-result.mjs +46 -28
- package/fesm2022/ngx-tethys-result.mjs.map +1 -1
- package/fesm2022/ngx-tethys-skeleton.mjs +339 -342
- package/fesm2022/ngx-tethys-skeleton.mjs.map +1 -1
- package/fesm2022/ngx-tethys-slider.mjs +75 -108
- package/fesm2022/ngx-tethys-slider.mjs.map +1 -1
- package/fesm2022/ngx-tethys-space.mjs +26 -46
- package/fesm2022/ngx-tethys-space.mjs.map +1 -1
- package/fesm2022/ngx-tethys-statistic.mjs +114 -151
- package/fesm2022/ngx-tethys-statistic.mjs.map +1 -1
- package/fesm2022/ngx-tethys-stepper.mjs +74 -107
- package/fesm2022/ngx-tethys-stepper.mjs.map +1 -1
- package/fesm2022/ngx-tethys-switch.mjs +80 -140
- package/fesm2022/ngx-tethys-switch.mjs.map +1 -1
- package/fesm2022/ngx-tethys-table.mjs +1 -1
- package/fesm2022/ngx-tethys-table.mjs.map +1 -1
- package/fesm2022/ngx-tethys-tabs.mjs +69 -87
- package/fesm2022/ngx-tethys-tabs.mjs.map +1 -1
- package/fesm2022/ngx-tethys-tag.mjs +42 -64
- package/fesm2022/ngx-tethys-tag.mjs.map +1 -1
- package/fesm2022/ngx-tethys-timeline.mjs +104 -129
- package/fesm2022/ngx-tethys-timeline.mjs.map +1 -1
- package/fesm2022/ngx-tethys-typography.mjs +36 -33
- package/fesm2022/ngx-tethys-typography.mjs.map +1 -1
- package/fesm2022/ngx-tethys-upload.mjs +91 -130
- package/fesm2022/ngx-tethys-upload.mjs.map +1 -1
- package/fesm2022/ngx-tethys-util.mjs.map +1 -1
- package/fesm2022/ngx-tethys-watermark.mjs +36 -40
- package/fesm2022/ngx-tethys-watermark.mjs.map +1 -1
- package/fesm2022/ngx-tethys.mjs +1 -1
- package/fesm2022/ngx-tethys.mjs.map +1 -1
- package/form/form-group-error/form-group-error.component.d.ts +2 -3
- package/form/form-group-label.directive.d.ts +2 -1
- package/form/form-group.component.d.ts +17 -24
- package/form/form-submit.directive.d.ts +2 -2
- package/form/form.directive.d.ts +6 -8
- package/form/from-group-footer/form-group-footer.component.d.ts +2 -2
- package/form/validator/confirm-validator.directive.d.ts +2 -2
- package/form/validator/unique-validator.directive.d.ts +2 -2
- package/fullscreen/fullscreen.component.d.ts +7 -7
- package/grid/flex.d.ts +14 -19
- package/grid/thy-col.directive.d.ts +6 -9
- package/grid/thy-grid-item.component.d.ts +3 -4
- package/grid/thy-grid.component.d.ts +11 -12
- package/grid/thy-row.directive.d.ts +12 -12
- package/icon/icon.component.d.ts +3 -2
- package/image/image.directive.d.ts +3 -2
- package/input/input-count.component.d.ts +4 -5
- package/input/input-group.component.d.ts +20 -20
- package/input/input-search.component.d.ts +15 -20
- package/input/input.component.d.ts +20 -21
- package/input/input.directive.d.ts +4 -6
- package/input-number/input-number.component.d.ts +21 -29
- package/layout/header.component.d.ts +4 -9
- package/layout/sidebar-header.component.d.ts +2 -1
- package/layout/sidebar.component.d.ts +8 -7
- package/list/list.component.d.ts +2 -1
- package/list/selection/selection-list.d.ts +4 -3
- package/loading/loading.component.d.ts +4 -10
- package/mention/mention.directive.d.ts +6 -7
- package/mention/suggestions/suggestions.component.d.ts +8 -9
- package/menu/group/menu-group.component.d.ts +16 -33
- package/menu/item/action/menu-item-action.component.d.ts +7 -8
- package/menu/item/icon/menu-item-icon.component.d.ts +2 -2
- package/menu/item/menu-item.component.d.ts +4 -4
- package/menu/item/name/menu-item-name.component.d.ts +2 -3
- package/menu/menu.component.d.ts +3 -7
- package/nav/icon-nav/icon-nav-link.directive.d.ts +3 -7
- package/nav/icon-nav/icon-nav.component.d.ts +3 -8
- package/nav/nav-ink-bar.directive.d.ts +4 -6
- package/nav/nav-item.directive.d.ts +7 -10
- package/nav/nav.component.d.ts +20 -48
- package/package.json +1 -1
- package/pagination/pagination.component.d.ts +48 -109
- package/popover/header/popover-header.component.d.ts +7 -6
- package/popover/popover.directive.d.ts +11 -18
- package/progress/progress-circle.component.d.ts +32 -21
- package/progress/progress-strip.component.d.ts +10 -14
- package/progress/progress.component.d.ts +15 -23
- package/property/examples/single/single.component.scss +6 -0
- package/property/properties.component.d.ts +6 -13
- package/property/property-item.component.d.ts +21 -26
- package/property/styles/properties.scss +124 -52
- package/property-operation/property-operation.component.d.ts +6 -5
- package/radio/button/radio-button.component.d.ts +2 -2
- package/radio/group/radio-group.component.d.ts +8 -7
- package/radio/radio.component.d.ts +2 -2
- package/radio/radio.token.d.ts +2 -2
- package/rate/rate-item.component.d.ts +2 -1
- package/rate/rate.component.d.ts +4 -3
- package/resizable/resizable.directive.d.ts +4 -9
- package/resizable/resize-handle.component.d.ts +2 -1
- package/resizable/resize-handles.component.d.ts +2 -1
- package/result/result.component.d.ts +9 -10
- package/schematics/version.d.ts +1 -1
- package/schematics/version.js +1 -1
- package/segment/segment-item.component.d.ts +2 -1
- package/segment/segment.component.d.ts +2 -1
- package/select/custom-select/custom-select.component.d.ts +11 -10
- package/select/native-select/native-select.component.d.ts +2 -1
- package/shared/base-form-check.component.d.ts +3 -2
- package/shared/directives/thy-autofocus.directive.d.ts +3 -2
- package/shared/directives/thy-scroll.directive.d.ts +2 -1
- package/shared/directives/thy-show.d.ts +2 -1
- package/shared/option/group/option-group.component.d.ts +2 -1
- package/shared/option/list-option/list-option.component.d.ts +2 -7
- package/shared/option/option.component.d.ts +2 -1
- package/shared/select/select-control/select-control.component.d.ts +7 -6
- package/skeleton/skeleton-circle.component.d.ts +16 -19
- package/skeleton/skeleton-rectangle.component.d.ts +20 -23
- package/skeleton/skeleton.component.d.ts +5 -6
- package/skeleton/stylized/bullet-list.component.d.ts +11 -13
- package/skeleton/stylized/list.component.d.ts +10 -12
- package/skeleton/stylized/paragraph.component.d.ts +12 -14
- package/slide/slide-body/slide-body-section.component.d.ts +2 -1
- package/slider/slider.component.d.ts +17 -24
- package/space/space.component.d.ts +8 -8
- package/statistic/statistic.component.d.ts +35 -40
- package/stepper/step-header.component.d.ts +6 -10
- package/stepper/step.component.d.ts +6 -6
- package/stepper/stepper.component.d.ts +15 -20
- package/switch/switch.component.d.ts +24 -35
- package/table/table-column.component.d.ts +6 -5
- package/table/table-skeleton.component.d.ts +3 -10
- package/table/table.component.d.ts +11 -10
- package/tabs/tab-content.component.d.ts +4 -4
- package/tabs/tab.component.d.ts +4 -5
- package/tabs/tabs.component.d.ts +13 -15
- package/tag/tag.component.d.ts +10 -16
- package/time-picker/time-picker-panel.component.d.ts +3 -2
- package/time-picker/time-picker.component.d.ts +6 -5
- package/timeline/timeline-item.component.d.ts +9 -13
- package/timeline/timeline.component.d.ts +13 -17
- package/tooltip/tooltip.directive.d.ts +3 -2
- package/tree/tree-node.component.d.ts +6 -15
- package/tree/tree.component.d.ts +8 -7
- package/tree-select/tree-select.component.d.ts +8 -7
- package/typography/bg-color.directive.d.ts +3 -3
- package/typography/text/text.component.d.ts +2 -2
- package/typography/text-color.directive.d.ts +3 -3
- package/upload/file-drop.directive.d.ts +9 -11
- package/upload/file-select-base.d.ts +6 -10
- package/upload/file-select.component.d.ts +10 -20
- package/util/helpers/helpers.d.ts +2 -1
- package/vote/vote.component.d.ts +4 -3
- package/watermark/watermark.directive.d.ts +7 -9
package/nav/nav.component.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
import { AfterContentChecked, AfterContentInit, AfterViewInit, ElementRef, OnChanges, OnDestroy, OnInit, QueryList, Signal, SimpleChanges, TemplateRef, WritableSignal } from '@angular/core';
|
|
1
2
|
import { ThyPopoverConfig } from 'ngx-tethys/popover';
|
|
2
3
|
import { Observable } from 'rxjs';
|
|
3
|
-
import { AfterContentChecked, AfterContentInit, AfterViewInit, ElementRef, OnChanges, OnDestroy, OnInit, QueryList, Signal, SimpleChanges, TemplateRef, WritableSignal } from '@angular/core';
|
|
4
4
|
import { RouterLinkActive } from '@angular/router';
|
|
5
|
+
import { ThyNavLocale } from 'ngx-tethys/i18n';
|
|
5
6
|
import { ThyNavInkBarDirective } from './nav-ink-bar.directive';
|
|
6
7
|
import { ThyNavItemDirective } from './nav-item.directive';
|
|
7
|
-
import { ThyNavLocale } from 'ngx-tethys/i18n';
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
9
|
export type ThyNavType = 'pulled' | 'tabs' | 'pills' | 'lite' | 'card' | 'primary' | 'secondary' | 'thirdly' | 'secondary-divider';
|
|
10
10
|
export type ThyNavSize = 'lg' | 'md' | 'sm';
|
|
@@ -20,10 +20,7 @@ export declare class ThyNav implements OnInit, AfterViewInit, AfterContentInit,
|
|
|
20
20
|
private changeDetectorRef;
|
|
21
21
|
private popover;
|
|
22
22
|
private readonly destroyRef;
|
|
23
|
-
type: ThyNavType;
|
|
24
|
-
private size;
|
|
25
23
|
initialized: boolean;
|
|
26
|
-
horizontal: ThyNavHorizontal;
|
|
27
24
|
wrapperOffset: {
|
|
28
25
|
height: number;
|
|
29
26
|
width: number;
|
|
@@ -42,33 +39,33 @@ export declare class ThyNav implements OnInit, AfterViewInit, AfterContentInit,
|
|
|
42
39
|
* @type pulled | tabs | pills | lite | primary | secondary | thirdly | secondary-divider
|
|
43
40
|
* @default pulled
|
|
44
41
|
*/
|
|
45
|
-
|
|
42
|
+
readonly thyType: import("@angular/core").InputSignal<ThyNavType>;
|
|
46
43
|
/**
|
|
47
44
|
* 导航大小
|
|
48
45
|
* @type lg | md | sm
|
|
49
46
|
* @default md
|
|
50
47
|
*/
|
|
51
|
-
|
|
48
|
+
readonly thySize: import("@angular/core").InputSignal<ThyNavSize>;
|
|
52
49
|
/**
|
|
53
50
|
* 水平排列
|
|
54
51
|
* @type '' | 'start' | 'center' | 'end'
|
|
55
52
|
* @default false
|
|
56
53
|
*/
|
|
57
|
-
|
|
54
|
+
readonly thyHorizontal: import("@angular/core").InputSignal<ThyNavHorizontal>;
|
|
58
55
|
/**
|
|
59
56
|
* 是否垂直排列
|
|
60
57
|
* @default false
|
|
61
58
|
*/
|
|
62
|
-
thyVertical: boolean
|
|
59
|
+
readonly thyVertical: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
63
60
|
/**
|
|
64
61
|
* 是否是填充模式
|
|
65
62
|
*/
|
|
66
|
-
thyFill: boolean
|
|
63
|
+
readonly thyFill: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
67
64
|
/**
|
|
68
65
|
* 是否响应式,自动计算宽度存放 thyNavItem,并添加更多弹框
|
|
69
66
|
* @default false
|
|
70
67
|
*/
|
|
71
|
-
thyResponsive: boolean
|
|
68
|
+
readonly thyResponsive: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
72
69
|
/**
|
|
73
70
|
* 支持暂停自适应计算
|
|
74
71
|
*/
|
|
@@ -77,7 +74,7 @@ export declare class ThyNav implements OnInit, AfterViewInit, AfterContentInit,
|
|
|
77
74
|
* 更多操作的菜单点击内部是否可关闭
|
|
78
75
|
* @deprecated please use thyPopoverOptions
|
|
79
76
|
*/
|
|
80
|
-
thyInsideClosable: boolean
|
|
77
|
+
readonly thyInsideClosable: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
81
78
|
/**
|
|
82
79
|
* 更多菜单弹出框的参数,底层使用 Popover 组件
|
|
83
80
|
* @type ThyPopoverConfig
|
|
@@ -87,7 +84,7 @@ export declare class ThyNav implements OnInit, AfterViewInit, AfterContentInit,
|
|
|
87
84
|
* 右侧额外区域模板
|
|
88
85
|
* @type TemplateRef
|
|
89
86
|
*/
|
|
90
|
-
thyExtra: TemplateRef<unknown
|
|
87
|
+
readonly thyExtra: import("@angular/core").InputSignal<TemplateRef<unknown>>;
|
|
91
88
|
/**
|
|
92
89
|
* @private
|
|
93
90
|
*/
|
|
@@ -96,30 +93,33 @@ export declare class ThyNav implements OnInit, AfterViewInit, AfterContentInit,
|
|
|
96
93
|
/**
|
|
97
94
|
* @private
|
|
98
95
|
*/
|
|
99
|
-
routers:
|
|
96
|
+
readonly routers: Signal<readonly RouterLinkActive[]>;
|
|
100
97
|
/**
|
|
101
98
|
* 响应式模式下更多操作模板
|
|
102
99
|
* @type TemplateRef
|
|
103
100
|
*/
|
|
104
|
-
moreOperation: TemplateRef<unknown
|
|
101
|
+
readonly moreOperation: Signal<TemplateRef<unknown>>;
|
|
105
102
|
/**
|
|
106
103
|
* 响应式模式下更多弹框模板
|
|
107
104
|
* @type TemplateRef
|
|
108
105
|
*/
|
|
109
|
-
morePopover: TemplateRef<unknown
|
|
106
|
+
readonly morePopover: Signal<TemplateRef<unknown>>;
|
|
110
107
|
/**
|
|
111
108
|
* 右侧额外区域模板,支持 thyExtra 传参和 <ng-template #extra></ng-template> 模板
|
|
112
109
|
* @name extra
|
|
113
110
|
* @type TemplateRef
|
|
114
111
|
*/
|
|
115
|
-
extra: TemplateRef<unknown
|
|
116
|
-
defaultMoreOperation: ElementRef<HTMLAnchorElement
|
|
117
|
-
inkBar: ThyNavInkBarDirective
|
|
112
|
+
readonly extra: Signal<TemplateRef<unknown>>;
|
|
113
|
+
readonly defaultMoreOperation: Signal<ElementRef<HTMLAnchorElement>>;
|
|
114
|
+
readonly inkBar: Signal<ThyNavInkBarDirective>;
|
|
115
|
+
readonly horizontal: Signal<string>;
|
|
118
116
|
get showInkBar(): boolean;
|
|
119
117
|
private updateClasses;
|
|
120
118
|
private curActiveIndex;
|
|
121
119
|
private prevActiveIndex;
|
|
122
120
|
private navSubscription;
|
|
121
|
+
readonly type: Signal<ThyNavType>;
|
|
122
|
+
constructor();
|
|
123
123
|
ngOnInit(): void;
|
|
124
124
|
ngAfterViewInit(): void;
|
|
125
125
|
ngAfterContentInit(): void;
|
|
@@ -138,33 +138,5 @@ export declare class ThyNav implements OnInit, AfterViewInit, AfterContentInit,
|
|
|
138
138
|
ngOnChanges(changes: SimpleChanges): void;
|
|
139
139
|
ngOnDestroy(): void;
|
|
140
140
|
static ɵfac: i0.ɵɵFactoryDeclaration<ThyNav, never>;
|
|
141
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ThyNav, "thy-nav", never, { "thyType": { "alias": "thyType"; "required": false; }; "thySize": { "alias": "thySize"; "required": false; }; "thyHorizontal": { "alias": "thyHorizontal"; "required": false; }; "thyVertical": { "alias": "thyVertical"; "required": false; }; "thyFill": { "alias": "thyFill"; "required": false; }; "thyResponsive": { "alias": "thyResponsive"; "required": false; }; "thyPauseReCalculate": { "alias": "thyPauseReCalculate"; "required": false; "isSignal": true; }; "thyInsideClosable": { "alias": "thyInsideClosable"; "required": false; }; "thyPopoverOptions": { "alias": "thyPopoverOptions"; "required": false; "isSignal": true; }; "thyExtra": { "alias": "thyExtra"; "required": false; }; }, {}, ["moreOperation", "morePopover", "extra", "links"
|
|
142
|
-
static ngAcceptInputType_thyVertical: boolean | string |
|
|
143
|
-
/**
|
|
144
|
-
* 导航组件
|
|
145
|
-
* @name thy-nav
|
|
146
|
-
* @order 10
|
|
147
|
-
*/
|
|
148
|
-
number;
|
|
149
|
-
static ngAcceptInputType_thyFill: boolean | string |
|
|
150
|
-
/**
|
|
151
|
-
* 导航组件
|
|
152
|
-
* @name thy-nav
|
|
153
|
-
* @order 10
|
|
154
|
-
*/
|
|
155
|
-
number;
|
|
156
|
-
static ngAcceptInputType_thyResponsive: boolean | string |
|
|
157
|
-
/**
|
|
158
|
-
* 导航组件
|
|
159
|
-
* @name thy-nav
|
|
160
|
-
* @order 10
|
|
161
|
-
*/
|
|
162
|
-
number;
|
|
163
|
-
static ngAcceptInputType_thyInsideClosable: boolean | string |
|
|
164
|
-
/**
|
|
165
|
-
* 导航组件
|
|
166
|
-
* @name thy-nav
|
|
167
|
-
* @order 10
|
|
168
|
-
*/
|
|
169
|
-
number;
|
|
141
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ThyNav, "thy-nav", never, { "thyType": { "alias": "thyType"; "required": false; "isSignal": true; }; "thySize": { "alias": "thySize"; "required": false; "isSignal": true; }; "thyHorizontal": { "alias": "thyHorizontal"; "required": false; "isSignal": true; }; "thyVertical": { "alias": "thyVertical"; "required": false; "isSignal": true; }; "thyFill": { "alias": "thyFill"; "required": false; "isSignal": true; }; "thyResponsive": { "alias": "thyResponsive"; "required": false; "isSignal": true; }; "thyPauseReCalculate": { "alias": "thyPauseReCalculate"; "required": false; "isSignal": true; }; "thyInsideClosable": { "alias": "thyInsideClosable"; "required": false; "isSignal": true; }; "thyPopoverOptions": { "alias": "thyPopoverOptions"; "required": false; "isSignal": true; }; "thyExtra": { "alias": "thyExtra"; "required": false; "isSignal": true; }; }, {}, ["routers", "moreOperation", "morePopover", "extra", "links"], ["*"], true, never>;
|
|
170
142
|
}
|
package/package.json
CHANGED
|
@@ -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,45 @@
|
|
|
1
1
|
import { OnChanges, OnInit, SimpleChanges, TemplateRef } from '@angular/core';
|
|
2
|
-
import {
|
|
2
|
+
import { ThyProgressGapPositionType, ThyProgressShapeType, ThyProgressStackedValue, ThyProgressType } from './interfaces';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
/**
|
|
5
5
|
* @private
|
|
6
6
|
*/
|
|
7
7
|
export declare class ThyProgressCircle implements OnInit, OnChanges {
|
|
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
|
-
trailPathStyle: ThyProgressPathStyle | null;
|
|
19
|
-
progressCirclePath: ThyProgressCirclePath[];
|
|
20
|
-
pathString?: string;
|
|
21
|
-
width: number;
|
|
22
|
-
progressSize: string;
|
|
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>;
|
|
23
18
|
get strokeWidth(): number;
|
|
24
|
-
|
|
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
41
|
ngOnInit(): void;
|
|
27
42
|
ngOnChanges(changes: SimpleChanges): void;
|
|
28
|
-
private createCircleProgress;
|
|
29
43
|
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;
|
|
44
|
+
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
45
|
}
|
|
@@ -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
|
}
|