ngx-tethys 19.1.0-next.0 → 19.1.0-next.10
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 +126 -0
- package/README.md +0 -1
- package/action/action.component.d.ts +7 -8
- package/affix/affix.component.d.ts +3 -4
- package/arrow-switcher/arrow-switcher.component.d.ts +5 -1
- package/badge/badge.component.d.ts +1 -1
- package/button/button-group.component.d.ts +5 -12
- package/button/button-icon.component.d.ts +14 -28
- package/button/button.component.d.ts +17 -27
- package/color-picker/coordinates.directive.d.ts +1 -2
- package/date-picker/abstract-picker.component.d.ts +50 -52
- package/date-picker/abstract-picker.directive.d.ts +15 -40
- package/date-picker/base-picker.component.d.ts +12 -40
- package/date-picker/date-picker.config.d.ts +3 -0
- package/date-picker/lib/calendar/calendar-footer.component.d.ts +24 -19
- package/date-picker/lib/calendar/calendar-header.component.d.ts +15 -15
- package/date-picker/lib/calendar/calendar-table.component.d.ts +15 -16
- package/date-picker/lib/date/date-table-cell.component.d.ts +6 -3
- package/date-picker/lib/date/date-table.component.d.ts +2 -3
- package/date-picker/lib/date-carousel/date-carousel.component.d.ts +2 -3
- package/date-picker/lib/decade/decade-header.component.d.ts +2 -5
- package/date-picker/lib/decade/decade-table.component.d.ts +3 -5
- package/date-picker/lib/month/month-table.component.d.ts +1 -2
- package/date-picker/lib/popups/date-popup.component.d.ts +33 -34
- package/date-picker/lib/popups/inner-popup.component.d.ts +22 -29
- package/date-picker/lib/quarter/quarter-table.component.d.ts +1 -4
- package/date-picker/lib/year/year-header.component.d.ts +2 -4
- package/date-picker/lib/year/year-table.component.d.ts +2 -4
- package/date-picker/month-picker.component.d.ts +2 -2
- package/date-picker/picker.component.d.ts +31 -36
- package/date-picker/picker.pipes.d.ts +4 -5
- package/date-picker/picker.util.d.ts +5 -5
- package/date-picker/picker.validators.d.ts +4 -8
- package/date-picker/quarter-picker.component.d.ts +2 -3
- package/date-picker/styles/calendar.scss +1 -1
- package/date-picker/styles/range-picker.scss +1 -0
- package/date-picker/styles/week-picker.scss +1 -0
- package/date-picker/week-picker.component.d.ts +0 -1
- package/date-picker/year-picker.component.d.ts +2 -3
- package/dropdown/dropdown-active.directive.d.ts +4 -5
- package/dropdown/dropdown-menu-item.directive.d.ts +7 -15
- package/dropdown/dropdown-menu.component.d.ts +6 -13
- package/dropdown/dropdown-submenu.component.d.ts +2 -4
- package/dropdown/dropdown.directive.d.ts +15 -25
- package/empty/empty.component.d.ts +2 -1
- package/fesm2022/ngx-tethys-action.mjs +15 -16
- package/fesm2022/ngx-tethys-action.mjs.map +1 -1
- package/fesm2022/ngx-tethys-affix.mjs +14 -18
- package/fesm2022/ngx-tethys-affix.mjs.map +1 -1
- package/fesm2022/ngx-tethys-arrow-switcher.mjs +15 -3
- package/fesm2022/ngx-tethys-arrow-switcher.mjs.map +1 -1
- package/fesm2022/ngx-tethys-autocomplete.mjs +4 -4
- package/fesm2022/ngx-tethys-autocomplete.mjs.map +1 -1
- package/fesm2022/ngx-tethys-badge.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-carousel.mjs +1 -0
- package/fesm2022/ngx-tethys-carousel.mjs.map +1 -1
- package/fesm2022/ngx-tethys-cascader.mjs +1 -1
- package/fesm2022/ngx-tethys-cascader.mjs.map +1 -1
- package/fesm2022/ngx-tethys-checkbox.mjs +2 -2
- package/fesm2022/ngx-tethys-checkbox.mjs.map +1 -1
- package/fesm2022/ngx-tethys-collapse.mjs +2 -2
- package/fesm2022/ngx-tethys-collapse.mjs.map +1 -1
- package/fesm2022/ngx-tethys-color-picker.mjs +4 -6
- package/fesm2022/ngx-tethys-color-picker.mjs.map +1 -1
- package/fesm2022/ngx-tethys-copy.mjs +2 -2
- package/fesm2022/ngx-tethys-copy.mjs.map +1 -1
- package/fesm2022/ngx-tethys-date-picker.mjs +861 -1078
- package/fesm2022/ngx-tethys-date-picker.mjs.map +1 -1
- package/fesm2022/ngx-tethys-divider.mjs +5 -5
- package/fesm2022/ngx-tethys-divider.mjs.map +1 -1
- package/fesm2022/ngx-tethys-dropdown.mjs +159 -209
- package/fesm2022/ngx-tethys-dropdown.mjs.map +1 -1
- package/fesm2022/ngx-tethys-empty.mjs +5 -2
- package/fesm2022/ngx-tethys-empty.mjs.map +1 -1
- package/fesm2022/ngx-tethys-flexible-text.mjs +68 -88
- package/fesm2022/ngx-tethys-flexible-text.mjs.map +1 -1
- package/fesm2022/ngx-tethys-grid.mjs +10 -15
- package/fesm2022/ngx-tethys-grid.mjs.map +1 -1
- package/fesm2022/ngx-tethys-i18n.mjs +26 -6
- 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 +44 -42
- package/fesm2022/ngx-tethys-image.mjs.map +1 -1
- package/fesm2022/ngx-tethys-input-number.mjs.map +1 -1
- package/fesm2022/ngx-tethys-layout.mjs +291 -334
- package/fesm2022/ngx-tethys-layout.mjs.map +1 -1
- package/fesm2022/ngx-tethys-list.mjs +183 -217
- package/fesm2022/ngx-tethys-list.mjs.map +1 -1
- package/fesm2022/ngx-tethys-message.mjs +29 -36
- package/fesm2022/ngx-tethys-message.mjs.map +1 -1
- package/fesm2022/ngx-tethys-notify.mjs +33 -41
- package/fesm2022/ngx-tethys-notify.mjs.map +1 -1
- package/fesm2022/ngx-tethys-progress.mjs +7 -11
- package/fesm2022/ngx-tethys-progress.mjs.map +1 -1
- package/fesm2022/ngx-tethys-property.mjs +8 -19
- package/fesm2022/ngx-tethys-property.mjs.map +1 -1
- package/fesm2022/ngx-tethys-radio.mjs +46 -58
- 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 +100 -143
- package/fesm2022/ngx-tethys-resizable.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-select.mjs +164 -228
- package/fesm2022/ngx-tethys-select.mjs.map +1 -1
- package/fesm2022/ngx-tethys-shared.mjs +423 -586
- package/fesm2022/ngx-tethys-shared.mjs.map +1 -1
- package/fesm2022/ngx-tethys-skeleton.mjs +1 -2
- 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.map +1 -1
- package/fesm2022/ngx-tethys-space.mjs +2 -8
- package/fesm2022/ngx-tethys-space.mjs.map +1 -1
- 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-table.mjs +1 -2
- package/fesm2022/ngx-tethys-table.mjs.map +1 -1
- package/fesm2022/ngx-tethys-time-picker.mjs +244 -271
- package/fesm2022/ngx-tethys-time-picker.mjs.map +1 -1
- package/fesm2022/ngx-tethys-tooltip.mjs +109 -93
- package/fesm2022/ngx-tethys-tooltip.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 +216 -284
- 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-upload.mjs +2 -2
- package/fesm2022/ngx-tethys-upload.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.mjs +1 -1
- package/fesm2022/ngx-tethys.mjs.map +1 -1
- package/flexible-text/flexible-text.component.d.ts +9 -15
- package/grid/flex.d.ts +1 -3
- package/grid/thy-row.directive.d.ts +1 -4
- package/i18n/i18n.d.ts +7 -2
- package/i18n/locales/de-de.d.ts +5 -1
- package/i18n/locales/en-us.d.ts +5 -1
- package/i18n/locales/ja-jp.d.ts +5 -1
- package/i18n/locales/zh-hans.d.ts +5 -1
- package/i18n/locales/zh-hant.d.ts +5 -1
- package/icon/icon.component.d.ts +10 -18
- package/image/image.directive.d.ts +10 -13
- package/image/image.token.d.ts +5 -5
- package/image/preview/image-preview.component.d.ts +2 -2
- package/input-number/input-number.component.d.ts +1 -1
- package/layout/header.component.d.ts +15 -19
- package/layout/layout.component.d.ts +3 -2
- package/layout/sidebar-header.component.d.ts +7 -8
- package/layout/sidebar.component.d.ts +32 -62
- package/list/list-item-meta.component.d.ts +7 -9
- package/list/list-item.component.d.ts +0 -2
- package/list/list.component.d.ts +2 -8
- package/list/selection/selection-list.d.ts +33 -46
- package/message/abstract/abstract-message.component.d.ts +2 -3
- package/message/message-container.component.d.ts +0 -1
- package/message/message.component.d.ts +1 -3
- package/notify/notify-container.component.d.ts +0 -1
- package/notify/notify.component.d.ts +7 -12
- package/package.json +1 -1
- package/progress/progress-circle.component.d.ts +3 -5
- package/progress/progress.component.d.ts +2 -4
- package/property/properties.component.d.ts +0 -2
- package/property/property-item.component.d.ts +3 -10
- package/radio/group/radio-group.component.d.ts +5 -9
- package/rate/rate-item.component.d.ts +8 -11
- package/rate/rate.component.d.ts +18 -29
- package/resizable/resizable.directive.d.ts +20 -32
- package/resizable/resize-handle.component.d.ts +6 -7
- package/resizable/resize-handles.component.d.ts +5 -9
- package/schematics/version.d.ts +1 -1
- package/schematics/version.js +1 -1
- package/segment/segment-item.component.d.ts +9 -15
- package/segment/segment.component.d.ts +11 -15
- package/segment/segment.token.d.ts +4 -3
- package/select/custom-select/custom-select.component.d.ts +33 -56
- package/select/native-select/native-select.component.d.ts +7 -13
- package/shared/base-form-check.component.d.ts +6 -8
- package/shared/directives/string-or-template-outlet.directive.d.ts +5 -6
- package/shared/directives/thy-autofocus.directive.d.ts +4 -6
- package/shared/directives/thy-contextmenu.directive.d.ts +2 -2
- package/shared/directives/thy-ctrl-enter.directive.d.ts +2 -2
- package/shared/directives/thy-enter.directive.d.ts +2 -2
- package/shared/directives/thy-scroll.directive.d.ts +5 -8
- package/shared/directives/thy-show.d.ts +5 -6
- package/shared/directives/thy-stop-propagation.directive.d.ts +4 -4
- package/shared/directives/view-outlet.directive.d.ts +6 -7
- package/shared/ng-transclude.directive.d.ts +2 -3
- package/shared/option/group/option-group.component.d.ts +5 -9
- package/shared/option/list-option/list-option.component.d.ts +9 -13
- package/shared/option/option.component.d.ts +10 -17
- package/shared/option/option.token.d.ts +4 -3
- package/shared/option/options-container.component.d.ts +1 -1
- package/shared/select/select-control/select-control.component.d.ts +38 -53
- package/slide/slide-body/slide-body-section.component.d.ts +2 -6
- package/slide/slide-header/slide-header.component.d.ts +6 -9
- package/space/space.component.d.ts +5 -11
- package/stepper/stepper.component.d.ts +1 -1
- package/strength/strength.component.d.ts +8 -13
- package/table/table-column.component.d.ts +15 -5
- package/time-picker/inner/inner-time-picker.class.d.ts +15 -13
- package/time-picker/inner/inner-time-picker.component.d.ts +26 -26
- package/time-picker/time-picker-panel.component.d.ts +18 -20
- package/time-picker/time-picker.component.d.ts +22 -30
- package/tooltip/tooltip.directive.d.ts +20 -22
- 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 -37
- package/tree/tree.class.d.ts +4 -4
- package/tree/tree.component.d.ts +47 -75
- package/tree/tree.service.d.ts +3 -4
- package/tree-select/tree-select.component.d.ts +54 -71
- package/vote/vote.component.d.ts +13 -33
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { AfterContentInit, OnChanges, OnInit, SimpleChanges } from '@angular/core';
|
|
2
1
|
import { ControlValueAccessor } from '@angular/forms';
|
|
3
2
|
import { ThyRadioButton } from '../button/radio-button.component';
|
|
4
3
|
import { ThyRadio } from '../radio.component';
|
|
@@ -8,11 +7,10 @@ import * as i0 from "@angular/core";
|
|
|
8
7
|
* @name thy-radio-group
|
|
9
8
|
* @order 20
|
|
10
9
|
*/
|
|
11
|
-
export declare class ThyRadioGroup implements IThyRadioGroupComponent, ControlValueAccessor
|
|
10
|
+
export declare class ThyRadioGroup implements IThyRadioGroupComponent, ControlValueAccessor {
|
|
12
11
|
private changeDetectorRef;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
isButtonGroupOutline: boolean;
|
|
12
|
+
isButtonGroup: import("@angular/core").WritableSignal<boolean>;
|
|
13
|
+
isButtonGroupOutline: import("@angular/core").WritableSignal<boolean>;
|
|
16
14
|
/**
|
|
17
15
|
* 大小
|
|
18
16
|
* @type sm | md | lg
|
|
@@ -41,10 +39,8 @@ export declare class ThyRadioGroup implements IThyRadioGroupComponent, ControlVa
|
|
|
41
39
|
registerOnTouched(fn: any): void;
|
|
42
40
|
setDisabledState?(isDisabled: boolean): void;
|
|
43
41
|
setGroup(): void;
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
ngAfterContentInit(): void;
|
|
47
|
-
private _setClasses;
|
|
42
|
+
constructor();
|
|
43
|
+
private setClasses;
|
|
48
44
|
static ɵfac: i0.ɵɵFactoryDeclaration<ThyRadioGroup, never>;
|
|
49
45
|
static ɵcmp: i0.ɵɵComponentDeclaration<ThyRadioGroup, "thy-radio-group", never, { "thySize": { "alias": "thySize"; "required": false; "isSignal": true; }; "thyLayout": { "alias": "thyLayout"; "required": false; "isSignal": true; }; "thyDisabled": { "alias": "thyDisabled"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
50
46
|
}
|
|
@@ -1,20 +1,17 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TemplateRef } from '@angular/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
|
-
import * as i1 from "ngx-tethys/util";
|
|
4
3
|
/**
|
|
5
4
|
* @private
|
|
6
5
|
*/
|
|
7
|
-
export declare class ThyRateItem
|
|
8
|
-
allowHalf: boolean
|
|
9
|
-
iconValue: string
|
|
10
|
-
iconTemplate: TemplateRef<any
|
|
11
|
-
readonly itemHover:
|
|
12
|
-
readonly itemClick:
|
|
6
|
+
export declare class ThyRateItem {
|
|
7
|
+
readonly allowHalf: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
8
|
+
readonly iconValue: import("@angular/core").InputSignal<string>;
|
|
9
|
+
readonly iconTemplate: import("@angular/core").InputSignal<TemplateRef<any>>;
|
|
10
|
+
readonly itemHover: import("@angular/core").OutputEmitterRef<boolean>;
|
|
11
|
+
readonly itemClick: import("@angular/core").OutputEmitterRef<boolean>;
|
|
13
12
|
constructor();
|
|
14
|
-
ngOnInit(): void;
|
|
15
13
|
hoverRateItem(isHalf: boolean): void;
|
|
16
14
|
clickRateItem(isHalf: boolean): void;
|
|
17
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<ThyRateItem, never>;
|
|
18
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ThyRateItem, "thy-rate-item, [thy-rate-item]", never, { "allowHalf": { "alias": "allowHalf"; "required": false; }; "iconValue": { "alias": "iconValue"; "required": false; }; "iconTemplate": { "alias": "iconTemplate"; "required": false; }; }, { "itemHover": "itemHover"; "itemClick": "itemClick"; }, never, never, true, never>;
|
|
19
|
-
static ngAcceptInputType_allowHalf: i1.ThyBooleanInput;
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ThyRateItem, "thy-rate-item, [thy-rate-item]", never, { "allowHalf": { "alias": "allowHalf"; "required": false; "isSignal": true; }; "iconValue": { "alias": "iconValue"; "required": false; "isSignal": true; }; "iconTemplate": { "alias": "iconTemplate"; "required": false; "isSignal": true; }; }, { "itemHover": "itemHover"; "itemClick": "itemClick"; }, never, never, true, never>;
|
|
20
17
|
}
|
package/rate/rate.component.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TabIndexDisabledControlValueAccessorMixin } from 'ngx-tethys/core';
|
|
2
|
-
import {
|
|
2
|
+
import { TemplateRef, ModelSignal } from '@angular/core';
|
|
3
3
|
import { ControlValueAccessor } from '@angular/forms';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
import * as i1 from "ngx-tethys/util";
|
|
@@ -8,22 +8,17 @@ import * as i1 from "ngx-tethys/util";
|
|
|
8
8
|
* @name thy-rate
|
|
9
9
|
* @order 10
|
|
10
10
|
*/
|
|
11
|
-
export declare class ThyRate extends TabIndexDisabledControlValueAccessorMixin implements ControlValueAccessor
|
|
11
|
+
export declare class ThyRate extends TabIndexDisabledControlValueAccessorMixin implements ControlValueAccessor {
|
|
12
12
|
private cdr;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
rateArray: number[];
|
|
17
|
-
rateStyleArray: Record<string, boolean>[];
|
|
18
|
-
private icons;
|
|
19
|
-
iconValue: string;
|
|
20
|
-
iconTemplate: TemplateRef<any>;
|
|
13
|
+
readonly thyValue: ModelSignal<number>;
|
|
14
|
+
readonly currentValue: ModelSignal<number>;
|
|
15
|
+
readonly hasHalf: ModelSignal<boolean>;
|
|
21
16
|
private onTouchedCallback;
|
|
22
17
|
private onChangeCallback;
|
|
23
18
|
/**
|
|
24
19
|
* 自定义评分的总数
|
|
25
20
|
*/
|
|
26
|
-
thyCount: number
|
|
21
|
+
readonly thyCount: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
27
22
|
/**
|
|
28
23
|
* 是否只读
|
|
29
24
|
* @default false
|
|
@@ -35,46 +30,40 @@ export declare class ThyRate extends TabIndexDisabledControlValueAccessorMixin i
|
|
|
35
30
|
* 是否允许半选
|
|
36
31
|
* @default false
|
|
37
32
|
*/
|
|
38
|
-
thyAllowHalf: boolean
|
|
33
|
+
readonly thyAllowHalf: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
39
34
|
/**
|
|
40
35
|
* 是否允许再次点击后清除
|
|
41
36
|
*/
|
|
42
|
-
thyAllowClear: boolean
|
|
37
|
+
readonly thyAllowClear: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
43
38
|
/**
|
|
44
39
|
* 自定义每项的提示信息
|
|
45
40
|
* @type string[]
|
|
46
41
|
*/
|
|
47
|
-
thyTooltips: string[]
|
|
42
|
+
readonly thyTooltips: import("@angular/core").InputSignal<string[]>;
|
|
48
43
|
/**
|
|
49
44
|
* 自定义模板,目前支持传单个模板或图标名称、数组(模板 | 图标名称)
|
|
50
45
|
* @type string | TemplateRef<any> | string[] | TemplateRef<any>[]
|
|
51
46
|
*/
|
|
52
|
-
|
|
47
|
+
readonly thyIconTemplate: import("@angular/core").InputSignal<string | string[] | TemplateRef<any> | TemplateRef<any>[]>;
|
|
53
48
|
/**
|
|
54
49
|
* 当前值hover时的回调
|
|
55
50
|
*/
|
|
56
|
-
readonly thyItemHoverChange:
|
|
57
|
-
|
|
51
|
+
readonly thyItemHoverChange: import("@angular/core").OutputEmitterRef<number>;
|
|
52
|
+
readonly iconValue: import("@angular/core").Signal<any>;
|
|
53
|
+
readonly iconTemplate: import("@angular/core").Signal<TemplateRef<any>>;
|
|
54
|
+
readonly rateArray: import("@angular/core").Signal<number[]>;
|
|
55
|
+
readonly rateStyleArray: import("@angular/core").Signal<Record<string, boolean>[]>;
|
|
58
56
|
constructor();
|
|
59
|
-
get thyValue(): number;
|
|
60
|
-
set thyValue(value: number);
|
|
61
57
|
writeValue(value: number): void;
|
|
62
|
-
ngOnInit(): void;
|
|
63
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
64
58
|
itemHover(isHalf: boolean, index: number): void;
|
|
65
59
|
itemClick(isHalf: boolean, index: number): void;
|
|
66
60
|
onRateLeave(event: Event): void;
|
|
67
|
-
updateRateArray():
|
|
68
|
-
updateItemStyle():
|
|
69
|
-
updateIcon(): void;
|
|
70
|
-
setIconTemplate(): void;
|
|
61
|
+
updateRateArray(): number[];
|
|
62
|
+
updateItemStyle(): Record<string, boolean>[];
|
|
71
63
|
registerOnChange(fn: any): void;
|
|
72
64
|
registerOnTouched(fn: any): void;
|
|
73
65
|
trackByFn(index: number, item: any): any;
|
|
74
66
|
static ɵfac: i0.ɵɵFactoryDeclaration<ThyRate, never>;
|
|
75
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ThyRate, "thy-rate", never, { "thyCount": { "alias": "thyCount"; "required": false; }; "thyDisabled": { "alias": "thyDisabled"; "required": false; }; "thyAllowHalf": { "alias": "thyAllowHalf"; "required": false; }; "thyAllowClear": { "alias": "thyAllowClear"; "required": false; }; "thyTooltips": { "alias": "thyTooltips"; "required": false; }; "thyIconTemplate": { "alias": "thyIconTemplate"; "required": false; }; }, { "thyItemHoverChange": "thyItemHoverChange"; }, never, never, true, never>;
|
|
76
|
-
static ngAcceptInputType_thyCount: unknown;
|
|
67
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ThyRate, "thy-rate", never, { "thyValue": { "alias": "thyValue"; "required": false; "isSignal": true; }; "currentValue": { "alias": "currentValue"; "required": false; "isSignal": true; }; "hasHalf": { "alias": "hasHalf"; "required": false; "isSignal": true; }; "thyCount": { "alias": "thyCount"; "required": false; "isSignal": true; }; "thyDisabled": { "alias": "thyDisabled"; "required": false; }; "thyAllowHalf": { "alias": "thyAllowHalf"; "required": false; "isSignal": true; }; "thyAllowClear": { "alias": "thyAllowClear"; "required": false; "isSignal": true; }; "thyTooltips": { "alias": "thyTooltips"; "required": false; "isSignal": true; }; "thyIconTemplate": { "alias": "thyIconTemplate"; "required": false; "isSignal": true; }; }, { "thyValue": "thyValueChange"; "currentValue": "currentValueChange"; "hasHalf": "hasHalfChange"; "thyItemHoverChange": "thyItemHoverChange"; }, never, never, true, never>;
|
|
77
68
|
static ngAcceptInputType_thyDisabled: i1.ThyBooleanInput;
|
|
78
|
-
static ngAcceptInputType_thyAllowHalf: i1.ThyBooleanInput;
|
|
79
|
-
static ngAcceptInputType_thyAllowClear: i1.ThyBooleanInput;
|
|
80
69
|
}
|
|
@@ -1,85 +1,83 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { OnDestroy, ElementRef } from '@angular/core';
|
|
2
2
|
import { ThyResizeEvent } from './interface';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
-
import * as i1 from "ngx-tethys/util";
|
|
5
4
|
/**
|
|
6
5
|
* 调整尺寸
|
|
7
6
|
* @name thyResizable
|
|
8
7
|
*/
|
|
9
|
-
export declare class ThyResizableDirective implements
|
|
8
|
+
export declare class ThyResizableDirective implements OnDestroy {
|
|
10
9
|
private elementRef;
|
|
11
10
|
private renderer;
|
|
12
11
|
private platform;
|
|
13
12
|
private ngZone;
|
|
14
13
|
private thyResizableService;
|
|
15
|
-
private changeDetectorRef;
|
|
16
14
|
/**
|
|
17
15
|
* 调整尺寸的边界
|
|
18
16
|
* @default parent
|
|
19
17
|
* @type 'window' | 'parent' | ElementRef<HTMLElement>
|
|
20
18
|
*/
|
|
21
|
-
thyBounds:
|
|
19
|
+
readonly thyBounds: import("@angular/core").InputSignal<"window" | ElementRef<HTMLElement> | "parent">;
|
|
22
20
|
/**
|
|
23
21
|
* 最大高度(超过边界部分忽略)
|
|
24
22
|
*/
|
|
25
|
-
thyMaxHeight
|
|
23
|
+
readonly thyMaxHeight: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
26
24
|
/**
|
|
27
25
|
* 最大宽度(超过边界部分忽略)
|
|
28
26
|
*/
|
|
29
|
-
thyMaxWidth
|
|
27
|
+
readonly thyMaxWidth: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
30
28
|
/**
|
|
31
29
|
* 最小高度
|
|
32
30
|
*/
|
|
33
|
-
thyMinHeight: number
|
|
31
|
+
readonly thyMinHeight: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
34
32
|
/**
|
|
35
33
|
* 最小宽度
|
|
36
34
|
*/
|
|
37
|
-
thyMinWidth: number
|
|
35
|
+
readonly thyMinWidth: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
38
36
|
/**
|
|
39
37
|
* 栅格列数(-1 为不栅格)
|
|
40
38
|
*/
|
|
41
|
-
thyGridColumnCount: number
|
|
39
|
+
readonly thyGridColumnCount: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
42
40
|
/**
|
|
43
41
|
* 栅格最大列数
|
|
44
42
|
*/
|
|
45
|
-
thyMaxColumn: number
|
|
43
|
+
readonly thyMaxColumn: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
46
44
|
/**
|
|
47
45
|
* 栅格最小列数
|
|
48
46
|
*/
|
|
49
|
-
thyMinColumn: number
|
|
47
|
+
readonly thyMinColumn: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
50
48
|
/**
|
|
51
49
|
* 锁定宽高比
|
|
52
50
|
*/
|
|
53
|
-
thyLockAspectRatio: boolean
|
|
51
|
+
readonly thyLockAspectRatio: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
54
52
|
/**
|
|
55
53
|
* 是否预览模式
|
|
56
54
|
*/
|
|
57
|
-
thyPreview: boolean
|
|
55
|
+
readonly thyPreview: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
58
56
|
/**
|
|
59
57
|
* 是否禁用调整大小
|
|
60
58
|
*/
|
|
61
|
-
thyDisabled: boolean
|
|
59
|
+
readonly thyDisabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
62
60
|
/**
|
|
63
61
|
* 调整尺寸时的事件
|
|
64
62
|
*/
|
|
65
|
-
readonly thyResize:
|
|
63
|
+
readonly thyResize: import("@angular/core").OutputEmitterRef<ThyResizeEvent>;
|
|
66
64
|
/**
|
|
67
65
|
* 开始调整尺寸时的事件
|
|
68
66
|
*/
|
|
69
|
-
readonly thyResizeStart:
|
|
67
|
+
readonly thyResizeStart: import("@angular/core").OutputEmitterRef<ThyResizeEvent>;
|
|
70
68
|
/**
|
|
71
69
|
* 结束调整尺寸时的事件
|
|
72
70
|
*/
|
|
73
|
-
readonly thyResizeEnd:
|
|
74
|
-
resizing: boolean
|
|
75
|
-
private nativeElement;
|
|
71
|
+
readonly thyResizeEnd: import("@angular/core").OutputEmitterRef<ThyResizeEvent>;
|
|
72
|
+
resizing: import("@angular/core").WritableSignal<boolean>;
|
|
73
|
+
private get nativeElement();
|
|
76
74
|
private nativeElementRect;
|
|
77
75
|
private sizeCache;
|
|
78
76
|
private ghostElement;
|
|
79
77
|
private currentHandleEvent;
|
|
80
78
|
private readonly destroyRef;
|
|
81
79
|
constructor();
|
|
82
|
-
|
|
80
|
+
private bindMouseEnterAndLeaveEvents;
|
|
83
81
|
setCursor(): void;
|
|
84
82
|
endResize(event: MouseEvent | TouchEvent): void;
|
|
85
83
|
resize(event: MouseEvent | TouchEvent): void;
|
|
@@ -89,15 +87,5 @@ export declare class ThyResizableDirective implements AfterViewInit, OnDestroy {
|
|
|
89
87
|
removeGhostElement(): void;
|
|
90
88
|
ngOnDestroy(): void;
|
|
91
89
|
static ɵfac: i0.ɵɵFactoryDeclaration<ThyResizableDirective, never>;
|
|
92
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<ThyResizableDirective, "[thyResizable]", never, { "thyBounds": { "alias": "thyBounds"; "required": false; }; "thyMaxHeight": { "alias": "thyMaxHeight"; "required": false; }; "thyMaxWidth": { "alias": "thyMaxWidth"; "required": false; }; "thyMinHeight": { "alias": "thyMinHeight"; "required": false; }; "thyMinWidth": { "alias": "thyMinWidth"; "required": false; }; "thyGridColumnCount": { "alias": "thyGridColumnCount"; "required": false; }; "thyMaxColumn": { "alias": "thyMaxColumn"; "required": false; }; "thyMinColumn": { "alias": "thyMinColumn"; "required": false; }; "thyLockAspectRatio": { "alias": "thyLockAspectRatio"; "required": false; }; "thyPreview": { "alias": "thyPreview"; "required": false; }; "thyDisabled": { "alias": "thyDisabled"; "required": false; }; }, { "thyResize": "thyResize"; "thyResizeStart": "thyResizeStart"; "thyResizeEnd": "thyResizeEnd"; }, never, never, true, never>;
|
|
93
|
-
static ngAcceptInputType_thyMaxHeight: unknown;
|
|
94
|
-
static ngAcceptInputType_thyMaxWidth: unknown;
|
|
95
|
-
static ngAcceptInputType_thyMinHeight: unknown;
|
|
96
|
-
static ngAcceptInputType_thyMinWidth: unknown;
|
|
97
|
-
static ngAcceptInputType_thyGridColumnCount: unknown;
|
|
98
|
-
static ngAcceptInputType_thyMaxColumn: unknown;
|
|
99
|
-
static ngAcceptInputType_thyMinColumn: unknown;
|
|
100
|
-
static ngAcceptInputType_thyLockAspectRatio: i1.ThyBooleanInput;
|
|
101
|
-
static ngAcceptInputType_thyPreview: i1.ThyBooleanInput;
|
|
102
|
-
static ngAcceptInputType_thyDisabled: i1.ThyBooleanInput;
|
|
90
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ThyResizableDirective, "[thyResizable]", never, { "thyBounds": { "alias": "thyBounds"; "required": false; "isSignal": true; }; "thyMaxHeight": { "alias": "thyMaxHeight"; "required": false; "isSignal": true; }; "thyMaxWidth": { "alias": "thyMaxWidth"; "required": false; "isSignal": true; }; "thyMinHeight": { "alias": "thyMinHeight"; "required": false; "isSignal": true; }; "thyMinWidth": { "alias": "thyMinWidth"; "required": false; "isSignal": true; }; "thyGridColumnCount": { "alias": "thyGridColumnCount"; "required": false; "isSignal": true; }; "thyMaxColumn": { "alias": "thyMaxColumn"; "required": false; "isSignal": true; }; "thyMinColumn": { "alias": "thyMinColumn"; "required": false; "isSignal": true; }; "thyLockAspectRatio": { "alias": "thyLockAspectRatio"; "required": false; "isSignal": true; }; "thyPreview": { "alias": "thyPreview"; "required": false; "isSignal": true; }; "thyDisabled": { "alias": "thyDisabled"; "required": false; "isSignal": true; }; }, { "thyResize": "thyResize"; "thyResizeStart": "thyResizeStart"; "thyResizeEnd": "thyResizeEnd"; }, never, never, true, never>;
|
|
103
91
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { OnInit
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
2
|
import { ThyResizeDirection, ThyResizeHandleMouseDownEvent } from './interface';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
-
import * as i1 from "ngx-tethys/util";
|
|
5
4
|
/**
|
|
6
5
|
* 定义调整手柄及方向
|
|
7
6
|
* @name thy-resize-handle
|
|
@@ -14,19 +13,19 @@ export declare class ThyResizeHandle implements OnInit {
|
|
|
14
13
|
* 调整方向
|
|
15
14
|
* @type top | right | bottom | left | topRight | bottomRight | bottomLeft | topLeft
|
|
16
15
|
*/
|
|
17
|
-
thyDirection: ThyResizeDirection
|
|
16
|
+
readonly thyDirection: import("@angular/core").InputSignal<ThyResizeDirection>;
|
|
18
17
|
/**
|
|
19
18
|
* 是否展示拖拽线
|
|
19
|
+
* @type boolean
|
|
20
20
|
*/
|
|
21
|
-
thyLine: boolean
|
|
21
|
+
readonly thyLine: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
22
22
|
/**
|
|
23
23
|
* MouseDown 回调事件
|
|
24
24
|
*/
|
|
25
|
-
readonly thyMouseDown:
|
|
25
|
+
readonly thyMouseDown: import("@angular/core").OutputEmitterRef<ThyResizeHandleMouseDownEvent>;
|
|
26
26
|
private hostRenderer;
|
|
27
27
|
private readonly destroyRef;
|
|
28
28
|
ngOnInit(): void;
|
|
29
29
|
static ɵfac: i0.ɵɵFactoryDeclaration<ThyResizeHandle, never>;
|
|
30
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ThyResizeHandle, "thy-resize-handle, [thy-resize-handle]", ["thyResizeHandle"], { "thyDirection": { "alias": "thyDirection"; "required": false; }; "thyLine": { "alias": "thyLine"; "required": false; }; }, { "thyMouseDown": "thyMouseDown"; }, never, ["*"], true, never>;
|
|
31
|
-
static ngAcceptInputType_thyLine: i1.ThyBooleanInput;
|
|
30
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ThyResizeHandle, "thy-resize-handle, [thy-resize-handle]", ["thyResizeHandle"], { "thyDirection": { "alias": "thyDirection"; "required": false; "isSignal": true; }; "thyLine": { "alias": "thyLine"; "required": false; "isSignal": true; }; }, { "thyMouseDown": "thyMouseDown"; }, never, ["*"], true, never>;
|
|
32
31
|
}
|
|
@@ -1,25 +1,21 @@
|
|
|
1
|
-
import { OnChanges, SimpleChanges } from '@angular/core';
|
|
2
1
|
import { ThyResizeDirection } from './interface';
|
|
3
2
|
import * as i0 from "@angular/core";
|
|
4
|
-
import * as i1 from "ngx-tethys/util";
|
|
5
3
|
export declare const DEFAULT_RESIZE_DIRECTION: ThyResizeDirection[];
|
|
6
4
|
/**
|
|
7
5
|
* 定义调整手柄的快捷组件
|
|
8
6
|
* @name thy-resize-handles
|
|
9
7
|
*/
|
|
10
|
-
export declare class ThyResizeHandles
|
|
8
|
+
export declare class ThyResizeHandles {
|
|
11
9
|
/**
|
|
12
10
|
* 定义调整手柄的方向
|
|
13
11
|
* @type ThyResizeDirection[]
|
|
14
12
|
*/
|
|
15
|
-
thyDirections: ThyResizeDirection[]
|
|
13
|
+
readonly thyDirections: import("@angular/core").InputSignal<ThyResizeDirection[]>;
|
|
16
14
|
/**
|
|
17
15
|
* 是否展示拖拽线
|
|
18
16
|
*/
|
|
19
|
-
thyLine: boolean
|
|
20
|
-
directions: Set<ThyResizeDirection
|
|
21
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
17
|
+
readonly thyLine: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
18
|
+
readonly directions: import("@angular/core").Signal<Set<ThyResizeDirection>>;
|
|
22
19
|
static ɵfac: i0.ɵɵFactoryDeclaration<ThyResizeHandles, never>;
|
|
23
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ThyResizeHandles, "thy-resize-handles", ["thyResizeHandles"], { "thyDirections": { "alias": "thyDirections"; "required": false; }; "thyLine": { "alias": "thyLine"; "required": false; }; }, {}, never, never, true, never>;
|
|
24
|
-
static ngAcceptInputType_thyLine: i1.ThyBooleanInput;
|
|
20
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ThyResizeHandles, "thy-resize-handles", ["thyResizeHandles"], { "thyDirections": { "alias": "thyDirections"; "required": false; "isSignal": true; }; "thyLine": { "alias": "thyLine"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
25
21
|
}
|
package/schematics/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "19.1.0-next.
|
|
1
|
+
export declare const VERSION = "19.1.0-next.10";
|
package/schematics/version.js
CHANGED
|
@@ -1,40 +1,34 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ElementRef } from '@angular/core';
|
|
2
2
|
import { IThySegmentItemComponent } from './segment.token';
|
|
3
|
-
import { SafeAny } from 'ngx-tethys/types';
|
|
4
3
|
import * as i0 from "@angular/core";
|
|
5
|
-
import * as i1 from "ngx-tethys/util";
|
|
6
4
|
/**
|
|
7
5
|
* 分段控制器的选项组件
|
|
8
6
|
* @name thy-segment-item,[thy-segment-item]
|
|
9
7
|
*/
|
|
10
|
-
export declare class ThySegmentItem implements IThySegmentItemComponent
|
|
8
|
+
export declare class ThySegmentItem implements IThySegmentItemComponent {
|
|
11
9
|
elementRef: ElementRef<any>;
|
|
12
10
|
private ngZone;
|
|
13
|
-
private cdr;
|
|
14
11
|
private renderer;
|
|
15
12
|
private parent;
|
|
16
13
|
/**
|
|
17
14
|
* 选项的值
|
|
18
15
|
*/
|
|
19
|
-
thyValue:
|
|
16
|
+
readonly thyValue: import("@angular/core").InputSignal<any>;
|
|
20
17
|
/**
|
|
21
18
|
* 选项的图标
|
|
22
19
|
*/
|
|
23
|
-
thyIcon: string
|
|
20
|
+
readonly thyIcon: import("@angular/core").InputSignal<string>;
|
|
24
21
|
/**
|
|
25
22
|
* 是否禁用该选项
|
|
26
23
|
*/
|
|
27
|
-
thyDisabled: boolean
|
|
28
|
-
isOnlyIcon: boolean
|
|
29
|
-
isWithText: boolean
|
|
30
|
-
private
|
|
24
|
+
readonly thyDisabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
25
|
+
isOnlyIcon: import("@angular/core").WritableSignal<boolean>;
|
|
26
|
+
isWithText: import("@angular/core").WritableSignal<boolean>;
|
|
27
|
+
private destroyRef;
|
|
31
28
|
constructor();
|
|
32
|
-
ngAfterViewInit(): void;
|
|
33
29
|
select(): void;
|
|
34
30
|
unselect(): void;
|
|
35
31
|
private wrapSpanForText;
|
|
36
|
-
ngOnDestroy(): void;
|
|
37
32
|
static ɵfac: i0.ɵɵFactoryDeclaration<ThySegmentItem, never>;
|
|
38
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ThySegmentItem, "thy-segment-item,[thy-segment-item]", never, { "thyValue": { "alias": "thyValue"; "required": false; }; "thyIcon": { "alias": "thyIcon"; "required": false; }; "thyDisabled": { "alias": "thyDisabled"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
39
|
-
static ngAcceptInputType_thyDisabled: i1.ThyBooleanInput;
|
|
33
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ThySegmentItem, "thy-segment-item,[thy-segment-item]", never, { "thyValue": { "alias": "thyValue"; "required": false; "isSignal": true; }; "thyIcon": { "alias": "thyIcon"; "required": false; "isSignal": true; }; "thyDisabled": { "alias": "thyDisabled"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
40
34
|
}
|
|
@@ -1,59 +1,55 @@
|
|
|
1
|
-
import { AfterContentInit, EventEmitter, QueryList } from '@angular/core';
|
|
2
1
|
import { ThumbAnimationProps } from 'ngx-tethys/core';
|
|
3
2
|
import { ThySegmentItem } from './segment-item.component';
|
|
4
3
|
import { IThySegmentComponent } from './segment.token';
|
|
5
4
|
import { ThySegmentEvent } from './types';
|
|
6
5
|
import { AnimationEvent } from '@angular/animations';
|
|
7
6
|
import * as i0 from "@angular/core";
|
|
8
|
-
import * as i1 from "ngx-tethys/util";
|
|
9
7
|
export type ThySegmentSize = 'xs' | 'sm' | 'md' | 'default';
|
|
10
8
|
export type ThySegmentMode = 'block' | 'inline';
|
|
11
9
|
/**
|
|
12
10
|
* 分段控制器组件
|
|
13
11
|
* @name thy-segment
|
|
14
12
|
*/
|
|
15
|
-
export declare class ThySegment implements IThySegmentComponent
|
|
13
|
+
export declare class ThySegment implements IThySegmentComponent {
|
|
16
14
|
private cdr;
|
|
17
15
|
private destroyRef;
|
|
18
16
|
/**
|
|
19
17
|
* @internal
|
|
20
18
|
*/
|
|
21
|
-
options:
|
|
19
|
+
readonly options: import("@angular/core").Signal<readonly ThySegmentItem[]>;
|
|
22
20
|
/**
|
|
23
21
|
* 大小
|
|
24
22
|
* @type xs | sm | md | default
|
|
25
23
|
*/
|
|
26
|
-
thySize: ThySegmentSize
|
|
24
|
+
readonly thySize: import("@angular/core").InputSignal<ThySegmentSize>;
|
|
27
25
|
/**
|
|
28
26
|
* 模式
|
|
29
27
|
* @type block | inline
|
|
30
28
|
*/
|
|
31
|
-
thyMode: ThySegmentMode
|
|
29
|
+
readonly thyMode: import("@angular/core").InputSignal<ThySegmentMode>;
|
|
32
30
|
/**
|
|
33
31
|
* 是否禁用分段控制器
|
|
34
32
|
*/
|
|
35
|
-
thyDisabled: boolean
|
|
33
|
+
readonly thyDisabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
36
34
|
/**
|
|
37
35
|
* 选中选项的索引
|
|
38
36
|
*/
|
|
39
|
-
|
|
37
|
+
readonly thyActiveIndex: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
40
38
|
/**
|
|
41
39
|
* 选项被选中的回调事件
|
|
42
40
|
*/
|
|
43
|
-
readonly thySelectChange:
|
|
41
|
+
readonly thySelectChange: import("@angular/core").OutputEmitterRef<ThySegmentEvent<unknown>>;
|
|
44
42
|
selectedItem: ThySegmentItem;
|
|
45
43
|
private newActiveIndex;
|
|
46
44
|
private activeIndex;
|
|
47
|
-
animationState:
|
|
45
|
+
animationState: import("@angular/core").WritableSignal<{
|
|
48
46
|
value: string;
|
|
49
47
|
params: ThumbAnimationProps;
|
|
50
|
-
}
|
|
48
|
+
}>;
|
|
51
49
|
transitionedTo: any;
|
|
52
|
-
|
|
50
|
+
constructor();
|
|
53
51
|
changeSelectedItem(item: ThySegmentItem, event?: Event): void;
|
|
54
52
|
handleThumbAnimationDone(event: AnimationEvent): void;
|
|
55
53
|
static ɵfac: i0.ɵɵFactoryDeclaration<ThySegment, never>;
|
|
56
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ThySegment, "thy-segment", ["thySegment"], { "thySize": { "alias": "thySize"; "required": false; }; "thyMode": { "alias": "thyMode"; "required": false; }; "thyDisabled": { "alias": "thyDisabled"; "required": false; }; "thyActiveIndex": { "alias": "thyActiveIndex"; "required": false; }; }, { "thySelectChange": "thySelectChange"; }, ["options"], ["*"], true, never>;
|
|
57
|
-
static ngAcceptInputType_thyDisabled: i1.ThyBooleanInput;
|
|
58
|
-
static ngAcceptInputType_thyActiveIndex: unknown;
|
|
54
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ThySegment, "thy-segment", ["thySegment"], { "thySize": { "alias": "thySize"; "required": false; "isSignal": true; }; "thyMode": { "alias": "thyMode"; "required": false; "isSignal": true; }; "thyDisabled": { "alias": "thyDisabled"; "required": false; "isSignal": true; }; "thyActiveIndex": { "alias": "thyActiveIndex"; "required": false; "isSignal": true; }; }, { "thySelectChange": "thySelectChange"; }, ["options"], ["*"], true, never>;
|
|
59
55
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { ElementRef, InjectionToken } from '@angular/core';
|
|
1
|
+
import { ElementRef, InjectionToken, InputSignal, InputSignalWithTransform } from '@angular/core';
|
|
2
2
|
import { SafeAny } from 'ngx-tethys/types';
|
|
3
|
+
import { ThyBooleanInput } from 'ngx-tethys/util';
|
|
3
4
|
export interface IThySegmentItemComponent {
|
|
4
5
|
elementRef: ElementRef<HTMLElement>;
|
|
5
6
|
thyValue: SafeAny;
|
|
@@ -7,8 +8,8 @@ export interface IThySegmentItemComponent {
|
|
|
7
8
|
select: () => void;
|
|
8
9
|
}
|
|
9
10
|
export interface IThySegmentComponent {
|
|
10
|
-
thyMode: string
|
|
11
|
-
thyDisabled: boolean
|
|
11
|
+
thyMode: InputSignal<string>;
|
|
12
|
+
thyDisabled: InputSignalWithTransform<boolean, ThyBooleanInput> | InputSignal<boolean>;
|
|
12
13
|
selectedItem: IThySegmentItemComponent;
|
|
13
14
|
changeSelectedItem: (item: IThySegmentItemComponent, event?: Event) => void;
|
|
14
15
|
}
|