ngx-tethys 19.1.0-next.0 → 19.1.0-next.2
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 +36 -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/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/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/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 +14 -25
- 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-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-collapse.mjs +2 -2
- package/fesm2022/ngx-tethys-collapse.mjs.map +1 -1
- package/fesm2022/ngx-tethys-date-picker.mjs +6 -6
- package/fesm2022/ngx-tethys-date-picker.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-flexible-text.mjs +67 -86
- 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-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.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 +42 -54
- 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-segment.mjs +84 -103
- package/fesm2022/ngx-tethys-segment.mjs.map +1 -1
- package/fesm2022/ngx-tethys-shared.mjs +2 -1
- package/fesm2022/ngx-tethys-shared.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-strength.mjs +52 -66
- package/fesm2022/ngx-tethys-strength.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-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/icon/icon.component.d.ts +10 -18
- package/image/image.directive.d.ts +10 -13
- package/image/image.token.d.ts +5 -5
- package/input-number/input-number.component.d.ts +1 -1
- 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 +18 -31
- 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/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/strength/strength.component.d.ts +8 -13
- 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 +2 -2
- package/vote/vote.component.d.ts +13 -33
|
@@ -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.2";
|
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
|
}
|
|
@@ -1,20 +1,16 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
|
-
import * as i1 from "ngx-tethys/util";
|
|
4
3
|
/**
|
|
5
4
|
* @name thy-slide-body-section
|
|
6
5
|
* @order 50
|
|
7
6
|
*/
|
|
8
7
|
export declare class ThySlideBodySection implements OnInit {
|
|
9
|
-
thySlideBodyItem: boolean;
|
|
10
|
-
hasDivider: boolean;
|
|
11
8
|
/**
|
|
12
9
|
* 是否有分割线
|
|
13
10
|
* @default false
|
|
14
11
|
*/
|
|
15
|
-
|
|
12
|
+
readonly thyDividerBorder: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
16
13
|
ngOnInit(): void;
|
|
17
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<ThySlideBodySection, never>;
|
|
18
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ThySlideBodySection, "thy-slide-body-section", never, { "thyDividerBorder": { "alias": "thyDividerBorder"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
19
|
-
static ngAcceptInputType_thyDividerBorder: i1.ThyBooleanInput;
|
|
15
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ThySlideBodySection, "thy-slide-body-section", never, { "thyDividerBorder": { "alias": "thyDividerBorder"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
20
16
|
}
|
|
@@ -7,30 +7,27 @@ import * as i0 from "@angular/core";
|
|
|
7
7
|
*/
|
|
8
8
|
export declare class ThySlideHeader implements OnInit {
|
|
9
9
|
private thySlideService;
|
|
10
|
-
isIconFont: boolean;
|
|
11
|
-
private _iconName;
|
|
12
|
-
slideLayoutHeader: boolean;
|
|
13
10
|
/**
|
|
14
11
|
* 标题
|
|
15
12
|
*/
|
|
16
|
-
thyTitle: string
|
|
13
|
+
readonly thyTitle: import("@angular/core").InputSignal<string>;
|
|
17
14
|
/**
|
|
18
15
|
* 标题的图标
|
|
19
16
|
*/
|
|
20
|
-
|
|
21
|
-
|
|
17
|
+
readonly thyIcon: import("@angular/core").InputSignal<string>;
|
|
18
|
+
readonly isIconFont: import("@angular/core").Signal<boolean>;
|
|
22
19
|
/**
|
|
23
20
|
* 自定义头模板
|
|
24
21
|
* @type TemplateRef
|
|
25
22
|
*/
|
|
26
|
-
headerTemplate: TemplateRef<any
|
|
23
|
+
readonly headerTemplate: import("@angular/core").Signal<TemplateRef<any>>;
|
|
27
24
|
/**
|
|
28
25
|
* 头部操作区域模板
|
|
29
26
|
* @type TemplateRef
|
|
30
27
|
*/
|
|
31
|
-
headerOperateTemplate: TemplateRef<any
|
|
28
|
+
readonly headerOperateTemplate: import("@angular/core").Signal<TemplateRef<any>>;
|
|
32
29
|
ngOnInit(): void;
|
|
33
30
|
closeModal(event: Event): void;
|
|
34
31
|
static ɵfac: i0.ɵɵFactoryDeclaration<ThySlideHeader, never>;
|
|
35
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ThySlideHeader, "thy-slide-header", never, { "thyTitle": { "alias": "thyTitle"; "required": false; }; "thyIcon": { "alias": "thyIcon"; "required": false; }; }, {}, ["headerTemplate", "headerOperateTemplate"], never, true, never>;
|
|
32
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ThySlideHeader, "thy-slide-header", never, { "thyTitle": { "alias": "thyTitle"; "required": false; "isSignal": true; }; "thyIcon": { "alias": "thyIcon"; "required": false; "isSignal": true; }; }, {}, ["headerTemplate", "headerOperateTemplate"], never, true, never>;
|
|
36
33
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TemplateRef } from '@angular/core';
|
|
2
2
|
import { ThySpacingSize } from 'ngx-tethys/core';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
/**
|
|
@@ -6,9 +6,7 @@ import * as i0 from "@angular/core";
|
|
|
6
6
|
* @name thySpaceItem
|
|
7
7
|
* @order 20
|
|
8
8
|
*/
|
|
9
|
-
export declare class ThySpaceItemDirective
|
|
10
|
-
constructor();
|
|
11
|
-
ngOnInit(): void;
|
|
9
|
+
export declare class ThySpaceItemDirective {
|
|
12
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<ThySpaceItemDirective, never>;
|
|
13
11
|
static ɵdir: i0.ɵɵDirectiveDeclaration<ThySpaceItemDirective, "[thySpaceItem]", never, {}, {}, never, never, true, never>;
|
|
14
12
|
}
|
|
@@ -17,16 +15,14 @@ export declare class ThySpaceItemDirective implements OnInit {
|
|
|
17
15
|
* @name thy-space
|
|
18
16
|
* @order 10
|
|
19
17
|
*/
|
|
20
|
-
export declare class ThySpace
|
|
21
|
-
private cdr;
|
|
22
|
-
private readonly destroyRef;
|
|
18
|
+
export declare class ThySpace {
|
|
23
19
|
private hostRenderer;
|
|
24
20
|
/**
|
|
25
21
|
* 大小,支持 `zero` | `xxs` | `xs` | `sm` | `md` | `lg` | `xlg` 和自定义数字大小
|
|
26
22
|
* @type string | number
|
|
27
23
|
*/
|
|
28
24
|
readonly thySize: import("@angular/core").InputSignal<ThySpacingSize>;
|
|
29
|
-
space: import("@angular/core").Signal<number>;
|
|
25
|
+
readonly space: import("@angular/core").Signal<number>;
|
|
30
26
|
/**
|
|
31
27
|
* 间距垂直方向,默认是水平方向
|
|
32
28
|
*/
|
|
@@ -35,10 +31,8 @@ export declare class ThySpace implements OnInit, AfterContentInit {
|
|
|
35
31
|
* 对齐方式,可选择 `start` | `end` | `baseline` | `center`
|
|
36
32
|
*/
|
|
37
33
|
readonly thyAlign: import("@angular/core").InputSignal<string>;
|
|
38
|
-
items: import("@angular/core").Signal<readonly TemplateRef<any>[]>;
|
|
34
|
+
readonly items: import("@angular/core").Signal<readonly TemplateRef<any>[]>;
|
|
39
35
|
constructor();
|
|
40
|
-
ngOnInit(): void;
|
|
41
|
-
ngAfterContentInit(): void;
|
|
42
36
|
static ɵfac: i0.ɵɵFactoryDeclaration<ThySpace, never>;
|
|
43
37
|
static ɵcmp: i0.ɵɵComponentDeclaration<ThySpace, "thy-space", never, { "thySize": { "alias": "thySize"; "required": false; "isSignal": true; }; "thyVertical": { "alias": "thyVertical"; "required": false; "isSignal": true; }; "thyAlign": { "alias": "thyAlign"; "required": false; "isSignal": true; }; }, {}, ["items"], ["*"], true, never>;
|
|
44
38
|
}
|
|
@@ -17,10 +17,9 @@ declare enum ThyStrengthEnum {
|
|
|
17
17
|
export declare class ThyStrength implements OnInit, ControlValueAccessor {
|
|
18
18
|
translate: ThyTranslate;
|
|
19
19
|
styleClass: boolean;
|
|
20
|
-
strengthTitle: string;
|
|
21
20
|
strength: ThyStrengthEnum;
|
|
22
21
|
locale: Signal<ThyStrengthLocale>;
|
|
23
|
-
strengthMap: {
|
|
22
|
+
readonly strengthMap: Signal<{
|
|
24
23
|
4: {
|
|
25
24
|
level: string;
|
|
26
25
|
text: string;
|
|
@@ -37,31 +36,27 @@ export declare class ThyStrength implements OnInit, ControlValueAccessor {
|
|
|
37
36
|
level: string;
|
|
38
37
|
text: string;
|
|
39
38
|
};
|
|
40
|
-
}
|
|
39
|
+
}>;
|
|
41
40
|
/**
|
|
42
41
|
* 组件标题,描述程度所指类型
|
|
43
42
|
*/
|
|
44
|
-
|
|
43
|
+
readonly titleKey: import("@angular/core").InputSignalWithTransform<string, string>;
|
|
45
44
|
/**
|
|
46
45
|
* 程度最高值文本
|
|
47
|
-
* @default 最高
|
|
48
46
|
*/
|
|
49
|
-
|
|
47
|
+
readonly highestKey: import("@angular/core").InputSignalWithTransform<string, string>;
|
|
50
48
|
/**
|
|
51
49
|
* 程度为高值时展示的文本
|
|
52
|
-
* @default 高
|
|
53
50
|
*/
|
|
54
|
-
|
|
51
|
+
readonly highKey: import("@angular/core").InputSignalWithTransform<string, string>;
|
|
55
52
|
/**
|
|
56
53
|
* 程度为中值时展示的文本
|
|
57
|
-
* @default 中
|
|
58
54
|
*/
|
|
59
|
-
|
|
55
|
+
readonly averageKey: import("@angular/core").InputSignalWithTransform<string, string>;
|
|
60
56
|
/**
|
|
61
57
|
* 程度为低值时展示的文本
|
|
62
|
-
* @default 低
|
|
63
58
|
*/
|
|
64
|
-
|
|
59
|
+
readonly lowKey: import("@angular/core").InputSignalWithTransform<string, string>;
|
|
65
60
|
private _onChange;
|
|
66
61
|
private _onTouched;
|
|
67
62
|
ngOnInit(): void;
|
|
@@ -69,6 +64,6 @@ export declare class ThyStrength implements OnInit, ControlValueAccessor {
|
|
|
69
64
|
registerOnChange(fn: (value: any) => any): void;
|
|
70
65
|
registerOnTouched(fn: () => any): void;
|
|
71
66
|
static ɵfac: i0.ɵɵFactoryDeclaration<ThyStrength, never>;
|
|
72
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ThyStrength, "thy-strength", never, { "titleKey": { "alias": "titleKey"; "required": false; }; "highestKey": { "alias": "highestKey"; "required": false; }; "highKey": { "alias": "highKey"; "required": false; }; "averageKey": { "alias": "averageKey"; "required": false; }; "lowKey": { "alias": "lowKey"; "required": false; }; }, {}, never, never, true, never>;
|
|
67
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ThyStrength, "thy-strength", never, { "titleKey": { "alias": "titleKey"; "required": false; "isSignal": true; }; "highestKey": { "alias": "highestKey"; "required": false; "isSignal": true; }; "highKey": { "alias": "highKey"; "required": false; "isSignal": true; }; "averageKey": { "alias": "averageKey"; "required": false; "isSignal": true; }; "lowKey": { "alias": "lowKey"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
73
68
|
}
|
|
74
69
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CdkDrag, CdkDragDrop } from '@angular/cdk/drag-drop';
|
|
2
|
-
import { DoCheck,
|
|
2
|
+
import { DoCheck, OnInit, Signal, TemplateRef } from '@angular/core';
|
|
3
3
|
import { InnerTransferDragEvent, ThyTransferItem, ThyTransferSelectEvent } from './transfer.interface';
|
|
4
4
|
import { ThyTransferLocale } from 'ngx-tethys/i18n';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
@@ -14,19 +14,19 @@ export declare class ThyTransferList implements OnInit, DoCheck {
|
|
|
14
14
|
private _lockDiff;
|
|
15
15
|
private _unlockDiff;
|
|
16
16
|
locale: Signal<ThyTransferLocale>;
|
|
17
|
-
title: string
|
|
18
|
-
items: ThyTransferItem[]
|
|
19
|
-
draggable: boolean
|
|
20
|
-
canLock: boolean
|
|
21
|
-
maxLock: number
|
|
22
|
-
max: number
|
|
23
|
-
disabled: boolean
|
|
24
|
-
template: TemplateRef<any
|
|
25
|
-
|
|
26
|
-
draggableUpdate:
|
|
27
|
-
selectItem:
|
|
28
|
-
unselectItem:
|
|
29
|
-
|
|
17
|
+
readonly title: import("@angular/core").InputSignal<string>;
|
|
18
|
+
readonly items: import("@angular/core").InputSignal<ThyTransferItem[]>;
|
|
19
|
+
readonly draggable: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
20
|
+
readonly canLock: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
21
|
+
readonly maxLock: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
22
|
+
readonly max: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
23
|
+
readonly disabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
24
|
+
readonly template: import("@angular/core").InputSignal<TemplateRef<any>>;
|
|
25
|
+
readonly renderContentRef: import("@angular/core").InputSignal<TemplateRef<any>>;
|
|
26
|
+
readonly draggableUpdate: import("@angular/core").OutputEmitterRef<InnerTransferDragEvent>;
|
|
27
|
+
readonly selectItem: import("@angular/core").OutputEmitterRef<ThyTransferSelectEvent>;
|
|
28
|
+
readonly unselectItem: import("@angular/core").OutputEmitterRef<ThyTransferSelectEvent>;
|
|
29
|
+
constructor();
|
|
30
30
|
ngOnInit(): void;
|
|
31
31
|
private _combineTransferData;
|
|
32
32
|
private _afterChangeItems;
|
|
@@ -37,5 +37,5 @@ export declare class ThyTransferList implements OnInit, DoCheck {
|
|
|
37
37
|
onUnselectItem: (item: ThyTransferItem) => void;
|
|
38
38
|
drop(event: CdkDragDrop<ThyTransferItem[]>): void;
|
|
39
39
|
static ɵfac: i0.ɵɵFactoryDeclaration<ThyTransferList, never>;
|
|
40
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ThyTransferList, "thy-transfer-list", never, { "title": { "alias": "title"; "required": false; }; "items": { "alias": "items"; "required": false; }; "draggable": { "alias": "draggable"; "required": false; }; "canLock": { "alias": "canLock"; "required": false; }; "maxLock": { "alias": "maxLock"; "required": false; }; "max": { "alias": "max"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "template": { "alias": "template"; "required": false; }; "
|
|
40
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ThyTransferList, "thy-transfer-list", never, { "title": { "alias": "title"; "required": false; "isSignal": true; }; "items": { "alias": "items"; "required": false; "isSignal": true; }; "draggable": { "alias": "draggable"; "required": false; "isSignal": true; }; "canLock": { "alias": "canLock"; "required": false; "isSignal": true; }; "maxLock": { "alias": "maxLock"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "template": { "alias": "template"; "required": false; "isSignal": true; }; "renderContentRef": { "alias": "renderContentRef"; "required": false; "isSignal": true; }; }, { "draggableUpdate": "draggableUpdate"; "selectItem": "selectItem"; "unselectItem": "unselectItem"; }, never, never, true, never>;
|
|
41
41
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { OnInit, TemplateRef } from '@angular/core';
|
|
2
2
|
import { Direction, InnerTransferDragEvent, ThyTransferChangeEvent, ThyTransferDragEvent, ThyTransferItem, ThyTransferSelectEvent } from './transfer.interface';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
/**
|
|
@@ -7,79 +7,76 @@ import * as i0 from "@angular/core";
|
|
|
7
7
|
* @order 10
|
|
8
8
|
*/
|
|
9
9
|
export declare class ThyTransfer implements OnInit {
|
|
10
|
-
hostClass: string;
|
|
11
10
|
leftDataSource: ThyTransferItem[];
|
|
12
11
|
rightDataSource: ThyTransferItem[];
|
|
13
|
-
allDataSource: ThyTransferItem[];
|
|
14
|
-
leftTitle: string;
|
|
15
|
-
rightTitle: string;
|
|
16
|
-
rightDraggable: boolean;
|
|
17
|
-
private _autoMove;
|
|
18
12
|
/**
|
|
19
13
|
* 数据源
|
|
20
14
|
* @type ThyTransferItem[]
|
|
21
15
|
*/
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
16
|
+
readonly thyData: import("@angular/core").InputSignal<ThyTransferItem[]>;
|
|
17
|
+
readonly thyRenderLeftTemplateRef: import("@angular/core").InputSignal<TemplateRef<any>>;
|
|
18
|
+
readonly thyRenderRightTemplateRef: import("@angular/core").InputSignal<TemplateRef<any>>;
|
|
25
19
|
/**
|
|
26
20
|
* title集合,title[0]为左标题,title[1]为右标题
|
|
27
21
|
* @type string[]
|
|
28
22
|
*/
|
|
29
|
-
|
|
23
|
+
readonly thyTitles: import("@angular/core").InputSignal<string[]>;
|
|
30
24
|
/**
|
|
31
25
|
* 右侧列表是否可以锁定
|
|
32
26
|
* @default false
|
|
33
27
|
*/
|
|
34
|
-
thyRightCanLock: boolean
|
|
28
|
+
readonly thyRightCanLock: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
35
29
|
/**
|
|
36
30
|
* 右侧锁定最大数量
|
|
37
31
|
*/
|
|
38
|
-
thyRightLockMax: number
|
|
32
|
+
readonly thyRightLockMax: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
39
33
|
/**
|
|
40
34
|
* 右侧选择最大数量
|
|
41
35
|
*/
|
|
42
|
-
thyRightMax: number
|
|
36
|
+
readonly thyRightMax: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
43
37
|
/**
|
|
44
38
|
* 设置是否自动移动
|
|
45
39
|
* @description.en-us Currently not implemented, in order to support the selections move
|
|
46
40
|
* @default true
|
|
47
41
|
*/
|
|
48
|
-
|
|
42
|
+
readonly thyAutoMove: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
49
43
|
/**
|
|
50
44
|
* 左侧列表是否拖动
|
|
51
45
|
* @default false
|
|
52
46
|
*/
|
|
53
|
-
thyLeftDraggable: boolean
|
|
47
|
+
readonly thyLeftDraggable: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
54
48
|
/**
|
|
55
49
|
* 右侧列表是否拖动
|
|
56
50
|
* @default false
|
|
57
51
|
*/
|
|
58
|
-
thyRightDraggable: boolean
|
|
52
|
+
readonly thyRightDraggable: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
59
53
|
/**
|
|
60
54
|
* @type EventEmitter<ThyTransferDragEvent>
|
|
61
55
|
*/
|
|
62
|
-
thyDraggableUpdate:
|
|
56
|
+
thyDraggableUpdate: import("@angular/core").OutputEmitterRef<ThyTransferDragEvent>;
|
|
63
57
|
/**
|
|
64
58
|
* Transfer变化的回调事件
|
|
65
59
|
* @type EventEmitter<ThyTransferChangeEvent>
|
|
66
60
|
*/
|
|
67
|
-
thyChange:
|
|
61
|
+
thyChange: import("@angular/core").OutputEmitterRef<ThyTransferChangeEvent>;
|
|
68
62
|
/**
|
|
69
63
|
* 设置自定义Item渲染数据模板
|
|
70
64
|
* @type TemplateRef
|
|
71
65
|
*/
|
|
72
|
-
templateRef: TemplateRef<any
|
|
66
|
+
readonly templateRef: import("@angular/core").Signal<TemplateRef<any>>;
|
|
73
67
|
/**
|
|
74
68
|
* 设置自定义左侧内容模板
|
|
75
69
|
* @type TemplateRef
|
|
76
70
|
*/
|
|
77
|
-
leftContentRef: TemplateRef<any
|
|
71
|
+
readonly leftContentRef: import("@angular/core").Signal<TemplateRef<any>>;
|
|
78
72
|
/**
|
|
79
73
|
* 设置自定义右侧内容模板
|
|
80
74
|
* @type TemplateRef
|
|
81
75
|
*/
|
|
82
|
-
rightContentRef: TemplateRef<any
|
|
76
|
+
readonly rightContentRef: import("@angular/core").Signal<TemplateRef<any>>;
|
|
77
|
+
readonly leftTitle: import("@angular/core").Signal<string>;
|
|
78
|
+
readonly rightTitle: import("@angular/core").Signal<string>;
|
|
79
|
+
constructor();
|
|
83
80
|
ngOnInit(): void;
|
|
84
81
|
initializeTransferData(data?: ThyTransferItem[]): void;
|
|
85
82
|
onSelect(from: Direction, event: ThyTransferSelectEvent): void;
|
|
@@ -89,5 +86,5 @@ export declare class ThyTransfer implements OnInit {
|
|
|
89
86
|
onMove(to: Direction): void;
|
|
90
87
|
onDragUpdate(direction: Direction, event: InnerTransferDragEvent): void;
|
|
91
88
|
static ɵfac: i0.ɵɵFactoryDeclaration<ThyTransfer, never>;
|
|
92
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ThyTransfer, "thy-transfer", never, { "thyData": { "alias": "thyData"; "required": false; }; "
|
|
89
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ThyTransfer, "thy-transfer", never, { "thyData": { "alias": "thyData"; "required": false; "isSignal": true; }; "thyRenderLeftTemplateRef": { "alias": "thyRenderLeftTemplateRef"; "required": false; "isSignal": true; }; "thyRenderRightTemplateRef": { "alias": "thyRenderRightTemplateRef"; "required": false; "isSignal": true; }; "thyTitles": { "alias": "thyTitles"; "required": false; "isSignal": true; }; "thyRightCanLock": { "alias": "thyRightCanLock"; "required": false; "isSignal": true; }; "thyRightLockMax": { "alias": "thyRightLockMax"; "required": false; "isSignal": true; }; "thyRightMax": { "alias": "thyRightMax"; "required": false; "isSignal": true; }; "thyAutoMove": { "alias": "thyAutoMove"; "required": false; "isSignal": true; }; "thyLeftDraggable": { "alias": "thyLeftDraggable"; "required": false; "isSignal": true; }; "thyRightDraggable": { "alias": "thyRightDraggable"; "required": false; "isSignal": true; }; }, { "thyDraggableUpdate": "thyDraggableUpdate"; "thyChange": "thyChange"; }, ["templateRef", "leftContentRef", "rightContentRef"], never, true, never>;
|
|
93
90
|
}
|
package/tree/tree-abstract.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { InjectionToken } from '@angular/core';
|
|
1
|
+
import { InjectionToken, InputSignal, Signal } from '@angular/core';
|
|
2
2
|
import { ThyTreeNode } from './tree.class';
|
|
3
3
|
import { ThyTreeBeforeDragDropContext, ThyTreeBeforeDragStartContext, ThyTreeDragDropEvent, ThyTreeIcons } from './tree.class';
|
|
4
4
|
export interface ThyTreeAbstractComponent {
|
|
5
|
-
thyMultiple: boolean
|
|
6
|
-
thyDraggable: boolean
|
|
7
|
-
thyShowExpand: boolean
|
|
5
|
+
thyMultiple: InputSignal<boolean>;
|
|
6
|
+
thyDraggable: InputSignal<boolean>;
|
|
7
|
+
thyShowExpand: InputSignal<boolean>;
|
|
8
8
|
treeNodes: ThyTreeNode[];
|
|
9
|
-
|
|
9
|
+
icons: Signal<ThyTreeIcons>;
|
|
10
10
|
thyBeforeDragStart(e: ThyTreeBeforeDragStartContext): boolean;
|
|
11
11
|
thyBeforeDragDrop(e: ThyTreeBeforeDragDropContext): boolean;
|
|
12
12
|
onDragDrop(event: ThyTreeDragDropEvent): void;
|