@ng-nest/ui 14.0.6 → 14.0.8
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/avatar/avatar-group.component.d.ts +8 -0
- package/avatar/avatar.component.d.ts +15 -4
- package/avatar/avatar.module.d.ts +5 -4
- package/avatar/avatar.property.d.ts +31 -3
- package/avatar/examples/en_US/default/badge/README.md +6 -0
- package/avatar/examples/en_US/default/group/README.md +6 -0
- package/avatar/examples/en_US/default/label/README.md +6 -0
- package/avatar/examples/en_US/default/response/README.md +6 -0
- package/avatar/examples/zh_CN/default/badge/README.md +6 -0
- package/avatar/examples/zh_CN/default/group/README.md +6 -0
- package/avatar/examples/zh_CN/default/label/README.md +6 -0
- package/avatar/examples/zh_CN/default/response/README.md +6 -0
- package/avatar/public-api.d.ts +1 -0
- package/badge/badge.component.d.ts +4 -1
- package/badge/badge.property.d.ts +6 -1
- package/badge/examples/en_US/default/animation/README.md +4 -0
- package/badge/examples/en_US/default/standalone/README.md +6 -0
- package/badge/examples/zh_CN/default/animation/README.md +4 -0
- package/badge/examples/zh_CN/default/standalone/README.md +6 -0
- package/calendar/calendar.component.d.ts +1 -0
- package/calendar/calendar.property.d.ts +18 -3
- package/calendar/examples/en_US/default/card/README.md +6 -0
- package/calendar/examples/en_US/default/header/README.md +6 -0
- package/calendar/examples/zh_CN/default/card/README.md +6 -0
- package/calendar/examples/zh_CN/default/header/README.md +6 -0
- package/collapse/collapse.property.d.ts +6 -1
- package/collapse/examples/en_US/default/disabled/README.md +6 -0
- package/collapse/examples/zh_CN/default/disabled/README.md +6 -0
- package/core/animation/badge.d.ts +1 -0
- package/core/config/config.d.ts +30 -0
- package/core/interfaces/identify.type.d.ts +2 -0
- package/core/interfaces/layout.type.d.ts +15 -0
- package/esm2020/avatar/avatar-group.component.mjs +19 -0
- package/esm2020/avatar/avatar.component.mjs +91 -11
- package/esm2020/avatar/avatar.module.mjs +6 -5
- package/esm2020/avatar/avatar.property.mjs +31 -3
- package/esm2020/avatar/public-api.mjs +2 -1
- package/esm2020/badge/badge.component.mjs +24 -8
- package/esm2020/badge/badge.property.mjs +7 -2
- package/esm2020/calendar/calendar.component.mjs +8 -4
- package/esm2020/calendar/calendar.property.mjs +11 -2
- package/esm2020/collapse/collapse-panel.component.mjs +3 -3
- package/esm2020/collapse/collapse.property.mjs +7 -2
- package/esm2020/core/animation/badge.mjs +17 -1
- package/esm2020/core/config/config.mjs +1 -1
- package/esm2020/core/interfaces/identify.type.mjs +1 -1
- package/esm2020/core/interfaces/layout.type.mjs +1 -1
- package/esm2020/date-picker/date-picker.component.mjs +5 -1
- package/esm2020/form/form.component.mjs +3 -3
- package/esm2020/i18n/i18n.property.mjs +1 -1
- package/esm2020/i18n/languages/en_US.mjs +8 -1
- package/esm2020/i18n/languages/zh_CN.mjs +8 -1
- package/esm2020/i18n/languages/zh_TW.mjs +8 -1
- package/esm2020/image/image-group.component.mjs +18 -0
- package/esm2020/image/image-preview.component.mjs +136 -0
- package/esm2020/image/image.component.mjs +89 -0
- package/esm2020/image/image.module.mjs +27 -0
- package/esm2020/image/image.property.mjs +82 -0
- package/esm2020/image/ng-nest-ui-image.mjs +5 -0
- package/esm2020/image/public-api.mjs +6 -0
- package/esm2020/index.mjs +4 -1
- package/esm2020/keyword/keyword.directive.mjs +66 -0
- package/esm2020/keyword/keyword.module.mjs +19 -0
- package/esm2020/keyword/keyword.property.mjs +41 -0
- package/esm2020/keyword/ng-nest-ui-keyword.mjs +5 -0
- package/esm2020/keyword/public-api.mjs +4 -0
- package/esm2020/list/list-option.component.mjs +4 -4
- package/esm2020/list/list.component.mjs +71 -10
- package/esm2020/list/list.module.mjs +12 -4
- package/esm2020/list/list.property.mjs +54 -3
- package/esm2020/select/select-portal.component.mjs +6 -3
- package/esm2020/select/select.component.mjs +31 -23
- package/esm2020/select/select.property.mjs +8 -2
- package/esm2020/table/table-head.component.mjs +2 -2
- package/esm2020/table/table.component.mjs +4 -4
- package/esm2020/textarea/textarea.component.mjs +2 -2
- package/esm2020/timeline/timeline.component.mjs +6 -4
- package/esm2020/tree/tree-node.component.mjs +52 -27
- package/esm2020/tree/tree.component.mjs +173 -58
- package/esm2020/tree/tree.module.mjs +5 -4
- package/esm2020/tree/tree.property.mjs +38 -2
- package/esm2020/tree-select/ng-nest-ui-tree-select.mjs +5 -0
- package/esm2020/tree-select/public-api.mjs +5 -0
- package/esm2020/tree-select/tree-select-portal.component.mjs +110 -0
- package/esm2020/tree-select/tree-select.component.mjs +632 -0
- package/esm2020/tree-select/tree-select.module.mjs +65 -0
- package/esm2020/tree-select/tree-select.property.mjs +153 -0
- package/esm2020/upload/upload.component.mjs +9 -6
- package/esm2020/upload/upload.module.mjs +12 -4
- package/esm2020/upload/upload.property.mjs +10 -3
- package/fesm2015/ng-nest-ui-avatar.mjs +143 -17
- package/fesm2015/ng-nest-ui-avatar.mjs.map +1 -1
- package/fesm2015/ng-nest-ui-badge.mjs +29 -8
- package/fesm2015/ng-nest-ui-badge.mjs.map +1 -1
- package/fesm2015/ng-nest-ui-calendar.mjs +17 -4
- package/fesm2015/ng-nest-ui-calendar.mjs.map +1 -1
- package/fesm2015/ng-nest-ui-collapse.mjs +8 -3
- package/fesm2015/ng-nest-ui-collapse.mjs.map +1 -1
- package/fesm2015/ng-nest-ui-core.mjs +17 -1
- package/fesm2015/ng-nest-ui-core.mjs.map +1 -1
- package/fesm2015/ng-nest-ui-date-picker.mjs +4 -0
- package/fesm2015/ng-nest-ui-date-picker.mjs.map +1 -1
- package/fesm2015/ng-nest-ui-form.mjs +2 -2
- package/fesm2015/ng-nest-ui-form.mjs.map +1 -1
- package/fesm2015/ng-nest-ui-i18n.mjs +21 -0
- package/fesm2015/ng-nest-ui-i18n.mjs.map +1 -1
- package/fesm2015/ng-nest-ui-image.mjs +340 -0
- package/fesm2015/ng-nest-ui-image.mjs.map +1 -0
- package/fesm2015/ng-nest-ui-keyword.mjs +125 -0
- package/fesm2015/ng-nest-ui-keyword.mjs.map +1 -0
- package/fesm2015/ng-nest-ui-list.mjs +138 -17
- package/fesm2015/ng-nest-ui-list.mjs.map +1 -1
- package/fesm2015/ng-nest-ui-select.mjs +42 -25
- package/fesm2015/ng-nest-ui-select.mjs.map +1 -1
- package/fesm2015/ng-nest-ui-table.mjs +4 -4
- package/fesm2015/ng-nest-ui-table.mjs.map +1 -1
- package/fesm2015/ng-nest-ui-textarea.mjs +2 -2
- package/fesm2015/ng-nest-ui-textarea.mjs.map +1 -1
- package/fesm2015/ng-nest-ui-timeline.mjs +5 -3
- package/fesm2015/ng-nest-ui-timeline.mjs.map +1 -1
- package/fesm2015/ng-nest-ui-tree-select.mjs +951 -0
- package/fesm2015/ng-nest-ui-tree-select.mjs.map +1 -0
- package/fesm2015/ng-nest-ui-tree.mjs +271 -94
- package/fesm2015/ng-nest-ui-tree.mjs.map +1 -1
- package/fesm2015/ng-nest-ui-upload.mjs +28 -10
- package/fesm2015/ng-nest-ui-upload.mjs.map +1 -1
- package/fesm2015/ng-nest-ui.mjs +3 -0
- package/fesm2015/ng-nest-ui.mjs.map +1 -1
- package/fesm2020/ng-nest-ui-avatar.mjs +140 -17
- package/fesm2020/ng-nest-ui-avatar.mjs.map +1 -1
- package/fesm2020/ng-nest-ui-badge.mjs +29 -8
- package/fesm2020/ng-nest-ui-badge.mjs.map +1 -1
- package/fesm2020/ng-nest-ui-calendar.mjs +17 -4
- package/fesm2020/ng-nest-ui-calendar.mjs.map +1 -1
- package/fesm2020/ng-nest-ui-collapse.mjs +8 -3
- package/fesm2020/ng-nest-ui-collapse.mjs.map +1 -1
- package/fesm2020/ng-nest-ui-core.mjs +17 -1
- package/fesm2020/ng-nest-ui-core.mjs.map +1 -1
- package/fesm2020/ng-nest-ui-date-picker.mjs +4 -0
- package/fesm2020/ng-nest-ui-date-picker.mjs.map +1 -1
- package/fesm2020/ng-nest-ui-form.mjs +2 -2
- package/fesm2020/ng-nest-ui-form.mjs.map +1 -1
- package/fesm2020/ng-nest-ui-i18n.mjs +21 -0
- package/fesm2020/ng-nest-ui-i18n.mjs.map +1 -1
- package/fesm2020/ng-nest-ui-image.mjs +336 -0
- package/fesm2020/ng-nest-ui-image.mjs.map +1 -0
- package/fesm2020/ng-nest-ui-keyword.mjs +125 -0
- package/fesm2020/ng-nest-ui-keyword.mjs.map +1 -0
- package/fesm2020/ng-nest-ui-list.mjs +137 -17
- package/fesm2020/ng-nest-ui-list.mjs.map +1 -1
- package/fesm2020/ng-nest-ui-select.mjs +42 -25
- package/fesm2020/ng-nest-ui-select.mjs.map +1 -1
- package/fesm2020/ng-nest-ui-table.mjs +4 -4
- package/fesm2020/ng-nest-ui-table.mjs.map +1 -1
- package/fesm2020/ng-nest-ui-textarea.mjs +2 -2
- package/fesm2020/ng-nest-ui-textarea.mjs.map +1 -1
- package/fesm2020/ng-nest-ui-timeline.mjs +5 -3
- package/fesm2020/ng-nest-ui-timeline.mjs.map +1 -1
- package/fesm2020/ng-nest-ui-tree-select.mjs +946 -0
- package/fesm2020/ng-nest-ui-tree-select.mjs.map +1 -0
- package/fesm2020/ng-nest-ui-tree.mjs +267 -91
- package/fesm2020/ng-nest-ui-tree.mjs.map +1 -1
- package/fesm2020/ng-nest-ui-upload.mjs +28 -10
- package/fesm2020/ng-nest-ui-upload.mjs.map +1 -1
- package/fesm2020/ng-nest-ui.mjs +3 -0
- package/fesm2020/ng-nest-ui.mjs.map +1 -1
- package/i18n/i18n.property.d.ts +9 -0
- package/i18n/languages/en_US.d.ts +7 -0
- package/i18n/languages/zh_CN.d.ts +7 -0
- package/i18n/languages/zh_TW.d.ts +7 -0
- package/image/examples/en_US/default/README.md +4 -0
- package/image/examples/en_US/default/default/README.md +6 -0
- package/image/examples/en_US/default/fallback/README.md +6 -0
- package/image/examples/en_US/default/group/README.md +6 -0
- package/image/examples/en_US/default/placeholder/README.md +6 -0
- package/image/examples/zh_CN/default/README.md +4 -0
- package/image/examples/zh_CN/default/default/README.md +6 -0
- package/image/examples/zh_CN/default/fallback/README.md +6 -0
- package/image/examples/zh_CN/default/group/README.md +6 -0
- package/image/examples/zh_CN/default/placeholder/README.md +6 -0
- package/image/image-group.component.d.ts +8 -0
- package/image/image-preview.component.d.ts +39 -0
- package/image/image.component.d.ts +29 -0
- package/image/image.module.d.ts +17 -0
- package/image/image.property.d.ts +112 -0
- package/image/index.d.ts +5 -0
- package/image/public-api.d.ts +5 -0
- package/index.d.ts +3 -0
- package/keyword/index.d.ts +5 -0
- package/keyword/keyword.directive.d.ts +19 -0
- package/keyword/keyword.module.d.ts +9 -0
- package/keyword/keyword.property.d.ts +40 -0
- package/keyword/public-api.d.ts +3 -0
- package/list/examples/en_US/default/scroll/README.md +8 -0
- package/list/examples/zh_CN/default/scroll/README.md +8 -0
- package/list/list-option.component.d.ts +0 -1
- package/list/list.component.d.ts +13 -1
- package/list/list.module.d.ts +3 -1
- package/list/list.property.d.ts +62 -3
- package/package.json +25 -1
- package/select/examples/en_US/default/default/README.md +1 -2
- package/select/examples/zh_CN/default/default/README.md +1 -2
- package/select/select-portal.component.d.ts +5 -1
- package/select/select.component.d.ts +2 -2
- package/select/select.property.d.ts +6 -1
- package/style/core/index.css +29 -0
- package/style/core/index.css.map +1 -1
- package/style/directives/index.scss +1 -0
- package/style/directives/keyword/index.scss +6 -0
- package/style/directives/keyword/mixin.scss +24 -0
- package/style/directives/keyword/param.scss +3 -0
- package/tree/tree-node.component.d.ts +4 -4
- package/tree/tree.component.d.ts +13 -1
- package/tree/tree.module.d.ts +2 -1
- package/tree/tree.property.d.ts +44 -14
- package/tree-select/examples/en_US/default/README.md +4 -0
- package/tree-select/examples/en_US/default/async/README.md +6 -0
- package/tree-select/examples/en_US/default/bordered/README.md +6 -0
- package/tree-select/examples/en_US/default/custom/README.md +6 -0
- package/tree-select/examples/en_US/default/default/README.md +6 -0
- package/tree-select/examples/en_US/default/disabled/README.md +6 -0
- package/tree-select/examples/en_US/default/label/README.md +6 -0
- package/tree-select/examples/en_US/default/multiple/README.md +6 -0
- package/tree-select/examples/en_US/default/path/README.md +6 -0
- package/tree-select/examples/en_US/default/required/README.md +6 -0
- package/tree-select/examples/en_US/default/scroll/README.md +6 -0
- package/tree-select/examples/en_US/default/search/README.md +7 -0
- package/tree-select/examples/en_US/default/size/README.md +6 -0
- package/tree-select/examples/zh_CN/default/README.md +4 -0
- package/tree-select/examples/zh_CN/default/async/README.md +6 -0
- package/tree-select/examples/zh_CN/default/bordered/README.md +6 -0
- package/tree-select/examples/zh_CN/default/custom/README.md +6 -0
- package/tree-select/examples/zh_CN/default/default/README.md +6 -0
- package/tree-select/examples/zh_CN/default/disabled/README.md +6 -0
- package/tree-select/examples/zh_CN/default/label/README.md +6 -0
- package/tree-select/examples/zh_CN/default/multiple/README.md +6 -0
- package/tree-select/examples/zh_CN/default/path/README.md +6 -0
- package/tree-select/examples/zh_CN/default/required/README.md +6 -0
- package/tree-select/examples/zh_CN/default/scroll/README.md +6 -0
- package/tree-select/examples/zh_CN/default/search/README.md +7 -0
- package/tree-select/examples/zh_CN/default/size/README.md +6 -0
- package/tree-select/index.d.ts +5 -0
- package/tree-select/public-api.d.ts +4 -0
- package/tree-select/tree-select-portal.component.d.ts +62 -0
- package/tree-select/tree-select.component.d.ts +101 -0
- package/tree-select/tree-select.module.d.ts +20 -0
- package/tree-select/tree-select.property.d.ts +202 -0
- package/upload/upload.component.d.ts +1 -1
- package/upload/upload.module.d.ts +3 -1
- package/upload/upload.property.d.ts +13 -3
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { XProperty, XTemplate } from '@ng-nest/ui/core';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
/**
|
|
5
|
+
* Image
|
|
6
|
+
* @selector x-image
|
|
7
|
+
* @decorator component
|
|
8
|
+
*/
|
|
9
|
+
export declare const XImagePrefix = "x-image";
|
|
10
|
+
/**
|
|
11
|
+
* Image Property
|
|
12
|
+
*/
|
|
13
|
+
export declare class XImageProperty extends XProperty {
|
|
14
|
+
/**
|
|
15
|
+
* @zh_CN 图片显示地址
|
|
16
|
+
* @en_US Picture display address
|
|
17
|
+
*/
|
|
18
|
+
src?: string;
|
|
19
|
+
/**
|
|
20
|
+
* @zh_CN 图片宽度
|
|
21
|
+
* @en_US Picture width
|
|
22
|
+
*/
|
|
23
|
+
width?: string;
|
|
24
|
+
/**
|
|
25
|
+
* @zh_CN 图片高度
|
|
26
|
+
* @en_US Picture height
|
|
27
|
+
*/
|
|
28
|
+
height?: string;
|
|
29
|
+
/**
|
|
30
|
+
* @zh_CN 图像描述
|
|
31
|
+
* @en_US Image description
|
|
32
|
+
*/
|
|
33
|
+
alt?: string;
|
|
34
|
+
/**
|
|
35
|
+
* @zh_CN 加载失败显示的地址
|
|
36
|
+
* @en_US Load fault tolerance address
|
|
37
|
+
*/
|
|
38
|
+
fallback?: string;
|
|
39
|
+
/**
|
|
40
|
+
* @zh_CN 预览文字
|
|
41
|
+
* @en_US Preview text
|
|
42
|
+
* @default '预览'
|
|
43
|
+
*/
|
|
44
|
+
previewText?: string;
|
|
45
|
+
/**
|
|
46
|
+
* @zh_CN 渐进加载显示的图片
|
|
47
|
+
* @en_US Gradually loaded the display of the display
|
|
48
|
+
*/
|
|
49
|
+
placeholder?: string;
|
|
50
|
+
/**
|
|
51
|
+
* @zh_CN 自定义预览操作
|
|
52
|
+
* @en_US Custom preview operation
|
|
53
|
+
*/
|
|
54
|
+
previewTpl?: XTemplate;
|
|
55
|
+
/**
|
|
56
|
+
* @zh_CN 图片加载错误
|
|
57
|
+
* @en_US Picture load failed
|
|
58
|
+
*/
|
|
59
|
+
error: EventEmitter<any>;
|
|
60
|
+
/**
|
|
61
|
+
* @zh_CN 图片加载完成
|
|
62
|
+
* @en_US Picture loading complete
|
|
63
|
+
*/
|
|
64
|
+
load: EventEmitter<any>;
|
|
65
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<XImageProperty, never>;
|
|
66
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<XImageProperty, "ng-component", never, { "src": "src"; "width": "width"; "height": "height"; "alt": "alt"; "fallback": "fallback"; "previewText": "previewText"; "placeholder": "placeholder"; "previewTpl": "previewTpl"; }, { "error": "error"; "load": "load"; }, never, never, false>;
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* @zh_CN 图片节点数据
|
|
70
|
+
* @en_US Image node data
|
|
71
|
+
*/
|
|
72
|
+
export interface XImageNode {
|
|
73
|
+
/**
|
|
74
|
+
* @zh_CN 图片显示地址
|
|
75
|
+
* @en_US Picture display address
|
|
76
|
+
*/
|
|
77
|
+
src?: string;
|
|
78
|
+
/**
|
|
79
|
+
* @zh_CN 图像描述
|
|
80
|
+
* @en_US Image description
|
|
81
|
+
*/
|
|
82
|
+
alt?: string;
|
|
83
|
+
/**
|
|
84
|
+
* @zh_CN 加载失败显示的地址
|
|
85
|
+
* @en_US Load fault tolerance address
|
|
86
|
+
*/
|
|
87
|
+
fallback?: string;
|
|
88
|
+
/**
|
|
89
|
+
* @zh_CN 当前激活的图片
|
|
90
|
+
* @en_US Current activated pictures
|
|
91
|
+
*/
|
|
92
|
+
activated?: boolean;
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Image Preview
|
|
96
|
+
* @selector x-image-preview
|
|
97
|
+
* @decorator component
|
|
98
|
+
*/
|
|
99
|
+
export declare const XImagePreviewPrefix = "x-image-preview";
|
|
100
|
+
/**
|
|
101
|
+
* Image Preview Property
|
|
102
|
+
*/
|
|
103
|
+
export declare class XImagePreviewProperty extends XProperty {
|
|
104
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<XImagePreviewProperty, never>;
|
|
105
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<XImagePreviewProperty, "ng-component", never, {}, {}, never, never, false>;
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* Image Group
|
|
109
|
+
* @selector x-image-group
|
|
110
|
+
* @decorator component
|
|
111
|
+
*/
|
|
112
|
+
export declare const XImageGroupPrefix = "x-image-group";
|
package/image/index.d.ts
ADDED
package/index.d.ts
CHANGED
|
@@ -27,6 +27,7 @@ export * from '@ng-nest/ui/calendar';
|
|
|
27
27
|
export * from '@ng-nest/ui/comment';
|
|
28
28
|
export * from '@ng-nest/ui/description';
|
|
29
29
|
export * from '@ng-nest/ui/empty';
|
|
30
|
+
export * from '@ng-nest/ui/image';
|
|
30
31
|
export * from '@ng-nest/ui/outlet';
|
|
31
32
|
export * from '@ng-nest/ui/pagination';
|
|
32
33
|
export * from '@ng-nest/ui/progress';
|
|
@@ -41,6 +42,7 @@ export * from '@ng-nest/ui/time-range';
|
|
|
41
42
|
export * from '@ng-nest/ui/timeline';
|
|
42
43
|
export * from '@ng-nest/ui/tree';
|
|
43
44
|
export * from '@ng-nest/ui/tree-file';
|
|
45
|
+
export * from '@ng-nest/ui/keyword';
|
|
44
46
|
/**
|
|
45
47
|
* Feedback
|
|
46
48
|
*/
|
|
@@ -77,6 +79,7 @@ export * from '@ng-nest/ui/slider-select';
|
|
|
77
79
|
export * from '@ng-nest/ui/switch';
|
|
78
80
|
export * from '@ng-nest/ui/time-picker';
|
|
79
81
|
export * from '@ng-nest/ui/transfer';
|
|
82
|
+
export * from '@ng-nest/ui/tree-select';
|
|
80
83
|
export * from '@ng-nest/ui/textarea';
|
|
81
84
|
export * from '@ng-nest/ui/upload';
|
|
82
85
|
/**
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { OnInit, Renderer2, ElementRef, OnDestroy, AfterViewInit, OnChanges, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { XConfigService } from '@ng-nest/ui/core';
|
|
3
|
+
import { XKeywordProperty } from './keyword.property';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class XKeywordDirective extends XKeywordProperty implements OnInit, OnChanges, OnDestroy, AfterViewInit {
|
|
6
|
+
private renderer;
|
|
7
|
+
private elementRef;
|
|
8
|
+
configService: XConfigService;
|
|
9
|
+
private _unSub;
|
|
10
|
+
constructor(renderer: Renderer2, elementRef: ElementRef, configService: XConfigService);
|
|
11
|
+
ngOnInit(): void;
|
|
12
|
+
ngAfterViewInit(): void;
|
|
13
|
+
ngOnDestroy(): void;
|
|
14
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
15
|
+
setKeyword(): void;
|
|
16
|
+
setClassMap(): void;
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<XKeywordDirective, never>;
|
|
18
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<XKeywordDirective, "[x-keyword]", never, {}, {}, never, never, false>;
|
|
19
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./keyword.directive";
|
|
3
|
+
import * as i2 from "./keyword.property";
|
|
4
|
+
import * as i3 from "@angular/common";
|
|
5
|
+
export declare class XKeywordModule {
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<XKeywordModule, never>;
|
|
7
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<XKeywordModule, [typeof i1.XKeywordDirective, typeof i2.XKeywordProperty], [typeof i3.CommonModule], [typeof i1.XKeywordDirective]>;
|
|
8
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<XKeywordModule>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { XBoolean, XProperty, XType } from '@ng-nest/ui/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
/**
|
|
4
|
+
* Keyword
|
|
5
|
+
* @selector x-keyword
|
|
6
|
+
* @decorator directive
|
|
7
|
+
*/
|
|
8
|
+
export declare const XKeywordPrefix = "x-keyword";
|
|
9
|
+
/**
|
|
10
|
+
* Keyword Property
|
|
11
|
+
*/
|
|
12
|
+
export declare class XKeywordProperty extends XProperty {
|
|
13
|
+
/**
|
|
14
|
+
* @zh_CN 类型
|
|
15
|
+
* @en_US Types of
|
|
16
|
+
*/
|
|
17
|
+
type?: XKeywordType;
|
|
18
|
+
/**
|
|
19
|
+
* @zh_CN 匹配关键字区分大小写
|
|
20
|
+
* @en_US Case-sensitive
|
|
21
|
+
*/
|
|
22
|
+
caseSensitive: XBoolean;
|
|
23
|
+
/**
|
|
24
|
+
* @zh_CN 颜色
|
|
25
|
+
* @en_US color
|
|
26
|
+
*/
|
|
27
|
+
color?: string;
|
|
28
|
+
/**
|
|
29
|
+
* @zh_CN 文字
|
|
30
|
+
* @en_US text
|
|
31
|
+
*/
|
|
32
|
+
text: string | string[];
|
|
33
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<XKeywordProperty, never>;
|
|
34
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<XKeywordProperty, "[x-keyword]", never, { "type": "type"; "caseSensitive": "caseSensitive"; "color": "color"; "text": "text"; }, {}, never, never, false>;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* @zh_CN 类型
|
|
38
|
+
* @en_US Keyword type
|
|
39
|
+
*/
|
|
40
|
+
export declare type XKeywordType = XType;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
---
|
|
2
|
+
order: 4
|
|
3
|
+
label: 'Virtual Scroll'
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
- Use the `virtualScroll` to enable the function of virtual rolling. The function of dragging nodes up and down will fail.
|
|
7
|
+
- Use the `scrollHeight` to set the height of the virtual rolling area.
|
|
8
|
+
- Use the `heightAdaption` to from the high change of the specified object from the specified object.
|
|
@@ -10,7 +10,6 @@ export declare class XListOptionComponent extends XListOptionProperty implements
|
|
|
10
10
|
role: string;
|
|
11
11
|
classMap: XClassMap;
|
|
12
12
|
constructor(elementRef: ElementRef, cdr: ChangeDetectorRef, configService: XConfigService);
|
|
13
|
-
ngOnInit(): void;
|
|
14
13
|
ngOnChanges(changes: SimpleChanges): void;
|
|
15
14
|
setClassMap(): void;
|
|
16
15
|
setActiveStyles(): void;
|
package/list/list.component.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ import { CdkDragDrop } from '@angular/cdk/drag-drop';
|
|
|
5
5
|
import { XListOptionComponent } from './list-option.component';
|
|
6
6
|
import { ActiveDescendantKeyManager } from '@angular/cdk/a11y';
|
|
7
7
|
import { XI18nList, XI18nService } from '@ng-nest/ui/i18n';
|
|
8
|
+
import { CdkVirtualScrollViewport } from '@angular/cdk/scrolling';
|
|
8
9
|
import * as i0 from "@angular/core";
|
|
9
10
|
export declare class XListComponent extends XListProperty implements OnInit, OnChanges {
|
|
10
11
|
renderer: Renderer2;
|
|
@@ -14,6 +15,11 @@ export declare class XListComponent extends XListProperty implements OnInit, OnC
|
|
|
14
15
|
private i18n;
|
|
15
16
|
nodes: XListNode[];
|
|
16
17
|
selectedNodes: XListNode[];
|
|
18
|
+
headerRef: ElementRef;
|
|
19
|
+
footerRef: ElementRef;
|
|
20
|
+
selectAllRef: ElementRef;
|
|
21
|
+
loadMoreRef: ElementRef;
|
|
22
|
+
virtualBody: CdkVirtualScrollViewport;
|
|
17
23
|
listItems: ElementRef;
|
|
18
24
|
options: QueryList<XListOptionComponent>;
|
|
19
25
|
keyManager: ActiveDescendantKeyManager<XListOptionComponent>;
|
|
@@ -22,21 +28,27 @@ export declare class XListComponent extends XListProperty implements OnInit, OnC
|
|
|
22
28
|
loadMoreIndex: number;
|
|
23
29
|
icon: string;
|
|
24
30
|
iconSpin: boolean;
|
|
31
|
+
private _resizeObserver;
|
|
25
32
|
role: string;
|
|
26
33
|
tabindex: number;
|
|
27
34
|
keydown($event: KeyboardEvent): void;
|
|
35
|
+
itemSizeMap: {
|
|
36
|
+
[key: string]: number;
|
|
37
|
+
};
|
|
38
|
+
get getItemSize(): number;
|
|
28
39
|
get isEmpty(): boolean;
|
|
29
40
|
get getSelectAllText(): string | undefined;
|
|
30
41
|
get getLoadMoreText(): string | undefined;
|
|
31
42
|
get getLoadingMoreText(): string | undefined;
|
|
43
|
+
get getVirtualScrollHeight(): number;
|
|
32
44
|
writeValue(value: any): void;
|
|
33
45
|
private _unSubject;
|
|
34
46
|
constructor(renderer: Renderer2, cdr: ChangeDetectorRef, elementRef: ElementRef, configService: XConfigService, i18n: XI18nService);
|
|
35
47
|
ngOnInit(): void;
|
|
36
48
|
ngOnChanges(changes: SimpleChanges): void;
|
|
37
49
|
ngAfterViewInit(): void;
|
|
38
|
-
ngAfterViewChecked(): void;
|
|
39
50
|
ngOnDestroy(): void;
|
|
51
|
+
private setVirtualScrollHeight;
|
|
40
52
|
private setData;
|
|
41
53
|
private initKeyManager;
|
|
42
54
|
setScorllTop(_num: number): void;
|
package/list/list.module.d.ts
CHANGED
|
@@ -11,8 +11,10 @@ import * as i9 from "@ng-nest/ui/empty";
|
|
|
11
11
|
import * as i10 from "@ng-nest/ui/base-form";
|
|
12
12
|
import * as i11 from "@ng-nest/ui/i18n";
|
|
13
13
|
import * as i12 from "@ng-nest/ui/outlet";
|
|
14
|
+
import * as i13 from "@angular/cdk/scrolling";
|
|
15
|
+
import * as i14 from "@ng-nest/ui/keyword";
|
|
14
16
|
export declare class XListModule {
|
|
15
17
|
static ɵfac: i0.ɵɵFactoryDeclaration<XListModule, never>;
|
|
16
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<XListModule, [typeof i1.XListComponent, typeof i2.XListOptionComponent, typeof i3.XListProperty, typeof i3.XListOptionProperty], [typeof i4.CommonModule, typeof i5.FormsModule, typeof i5.ReactiveFormsModule, typeof i6.DragDropModule, typeof i7.A11yModule, typeof i8.XIconModule, typeof i9.XEmptyModule, typeof i10.XBaseFormModule, typeof i11.XI18nModule, typeof i12.XOutletModule], [typeof i1.XListComponent, typeof i2.XListOptionComponent]>;
|
|
18
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<XListModule, [typeof i1.XListComponent, typeof i2.XListOptionComponent, typeof i3.XListProperty, typeof i3.XListOptionProperty], [typeof i4.CommonModule, typeof i5.FormsModule, typeof i5.ReactiveFormsModule, typeof i6.DragDropModule, typeof i7.A11yModule, typeof i8.XIconModule, typeof i9.XEmptyModule, typeof i10.XBaseFormModule, typeof i11.XI18nModule, typeof i12.XOutletModule, typeof i13.ScrollingModule, typeof i14.XKeywordModule], [typeof i1.XListComponent, typeof i2.XListOptionComponent]>;
|
|
17
19
|
static ɵinj: i0.ɵɵInjectorDeclaration<XListModule>;
|
|
18
20
|
}
|
package/list/list.property.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { XData, XParentIdentityProperty, XNumber, XBoolean, XTemplate, XSize } from '@ng-nest/ui/core';
|
|
2
|
-
import { EventEmitter, TemplateRef } from '@angular/core';
|
|
2
|
+
import { EventEmitter, TemplateRef, ElementRef } from '@angular/core';
|
|
3
3
|
import { XControlValueAccessor } from '@ng-nest/ui/base-form';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
/**
|
|
@@ -90,6 +90,41 @@ export declare class XListProperty extends XControlValueAccessor<any> {
|
|
|
90
90
|
* @default '正在加载中'
|
|
91
91
|
*/
|
|
92
92
|
loadingMoreText?: string;
|
|
93
|
+
/**
|
|
94
|
+
* @zh_CN 开启虚拟滚动,不支持节点拖动功能
|
|
95
|
+
* @en_US Turn on virtual scrolling
|
|
96
|
+
*/
|
|
97
|
+
virtualScroll: XBoolean;
|
|
98
|
+
/**
|
|
99
|
+
* @zh_CN 虚拟滚动高度, 实际会去掉头尾、全选、更多的高度
|
|
100
|
+
* @en_US The virtual rolling height will actually remove the head and end, the full selection, more height
|
|
101
|
+
*/
|
|
102
|
+
scrollHeight: XNumber;
|
|
103
|
+
/**
|
|
104
|
+
* @zh_CN 虚拟滚动高度自适应指定元素
|
|
105
|
+
* @en_US virtual rolling height follows the specified object
|
|
106
|
+
*/
|
|
107
|
+
heightAdaption: ElementRef<HTMLElement> | HTMLElement;
|
|
108
|
+
/**
|
|
109
|
+
* @zh_CN 超出可视窗口缓冲区的最小值,对应 cdk scroll 中的参数
|
|
110
|
+
* @en_US Exceed the minimum value of the visible window buffer, corresponding to the parameters in cdk scroll
|
|
111
|
+
*/
|
|
112
|
+
minBufferPx: number;
|
|
113
|
+
/**
|
|
114
|
+
* @zh_CN 渲染新数据缓冲区的像素,对应 cdk scroll 中的参数
|
|
115
|
+
* @en_US Render the pixels of the new data buffer, corresponding to the parameters in cdk scroll
|
|
116
|
+
*/
|
|
117
|
+
maxBufferPx: number;
|
|
118
|
+
/**
|
|
119
|
+
* @zh_CN 关键字高亮
|
|
120
|
+
* @en_US Keyword highlighting
|
|
121
|
+
*/
|
|
122
|
+
keywordText: string | string[];
|
|
123
|
+
/**
|
|
124
|
+
* @zh_CN 匹配关键字区分大小写
|
|
125
|
+
* @en_US Case-sensitive
|
|
126
|
+
*/
|
|
127
|
+
caseSensitive: XBoolean;
|
|
93
128
|
/**
|
|
94
129
|
* @zh_CN Full event
|
|
95
130
|
* @en_US 全选事件
|
|
@@ -110,6 +145,11 @@ export declare class XListProperty extends XControlValueAccessor<any> {
|
|
|
110
145
|
* @en_US Node click event
|
|
111
146
|
*/
|
|
112
147
|
nodeClick: EventEmitter<XListNode>;
|
|
148
|
+
/**
|
|
149
|
+
* @zh_CN 拖动结束事件
|
|
150
|
+
* @en_US Drag the end
|
|
151
|
+
*/
|
|
152
|
+
dropListDropped: EventEmitter<XListDragDrop>;
|
|
113
153
|
/**
|
|
114
154
|
* @zh_CN Tab out 事件
|
|
115
155
|
* @en_US Tab Out event
|
|
@@ -121,7 +161,7 @@ export declare class XListProperty extends XControlValueAccessor<any> {
|
|
|
121
161
|
*/
|
|
122
162
|
keyManagerChange: EventEmitter<number>;
|
|
123
163
|
static ɵfac: i0.ɵɵFactoryDeclaration<XListProperty, never>;
|
|
124
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<XListProperty, "ng-component", never, { "data": "data"; "multiple": "multiple"; "selectAll": "selectAll"; "selectAllText": "selectAllText"; "checked": "checked"; "drag": "drag"; "objectArray": "objectArray"; "nodeTpl": "nodeTpl"; "header": "header"; "footer": "footer"; "scrollElement": "scrollElement"; "size": "size"; "loadMore": "loadMore"; "loadMoreText": "loadMoreText"; "loadingMoreText": "loadingMoreText"; }, { "onSelectAll": "onSelectAll"; "nodeMouseenter": "nodeMouseenter"; "nodeMouseleave": "nodeMouseleave"; "nodeClick": "nodeClick"; "keyManagerTabOut": "keyManagerTabOut"; "keyManagerChange": "keyManagerChange"; }, never, never, false>;
|
|
164
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<XListProperty, "ng-component", never, { "data": "data"; "multiple": "multiple"; "selectAll": "selectAll"; "selectAllText": "selectAllText"; "checked": "checked"; "drag": "drag"; "objectArray": "objectArray"; "nodeTpl": "nodeTpl"; "header": "header"; "footer": "footer"; "scrollElement": "scrollElement"; "size": "size"; "loadMore": "loadMore"; "loadMoreText": "loadMoreText"; "loadingMoreText": "loadingMoreText"; "virtualScroll": "virtualScroll"; "scrollHeight": "scrollHeight"; "heightAdaption": "heightAdaption"; "minBufferPx": "minBufferPx"; "maxBufferPx": "maxBufferPx"; "keywordText": "keywordText"; "caseSensitive": "caseSensitive"; }, { "onSelectAll": "onSelectAll"; "nodeMouseenter": "nodeMouseenter"; "nodeMouseleave": "nodeMouseleave"; "nodeClick": "nodeClick"; "dropListDropped": "dropListDropped"; "keyManagerTabOut": "keyManagerTabOut"; "keyManagerChange": "keyManagerChange"; }, never, never, false>;
|
|
125
165
|
}
|
|
126
166
|
/**
|
|
127
167
|
* @zh_CN List 数据对象
|
|
@@ -219,11 +259,30 @@ export declare class XListOptionProperty {
|
|
|
219
259
|
* @en_US Size
|
|
220
260
|
*/
|
|
221
261
|
size: XSize;
|
|
262
|
+
/**
|
|
263
|
+
* @zh_CN 关键字高亮
|
|
264
|
+
* @en_US Keyword highlighting
|
|
265
|
+
*/
|
|
266
|
+
keywordText: string | string[];
|
|
267
|
+
/**
|
|
268
|
+
* @zh_CN 匹配关键字区分大小写
|
|
269
|
+
* @en_US Case-sensitive
|
|
270
|
+
*/
|
|
271
|
+
caseSensitive: XBoolean;
|
|
222
272
|
/**
|
|
223
273
|
* @zh_CN 有子节点
|
|
224
274
|
* @en_US leaf
|
|
225
275
|
*/
|
|
226
276
|
activeChange: EventEmitter<boolean>;
|
|
227
277
|
static ɵfac: i0.ɵɵFactoryDeclaration<XListOptionProperty, never>;
|
|
228
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<XListOptionProperty, "ng-component", never, { "node": "node"; "checked": "checked"; "nodeTpl": "nodeTpl"; "selected": "selected"; "disabled": "disabled"; "active": "active"; "icon": "icon"; "divided": "divided"; "label": "label"; "leaf": "leaf"; "size": "size"; }, { "activeChange": "activeChange"; }, never, never, false>;
|
|
278
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<XListOptionProperty, "ng-component", never, { "node": "node"; "checked": "checked"; "nodeTpl": "nodeTpl"; "selected": "selected"; "disabled": "disabled"; "active": "active"; "icon": "icon"; "divided": "divided"; "label": "label"; "leaf": "leaf"; "size": "size"; "keywordText": "keywordText"; "caseSensitive": "caseSensitive"; }, { "activeChange": "activeChange"; }, never, never, false>;
|
|
229
279
|
}
|
|
280
|
+
/**
|
|
281
|
+
* @zh_CN 拖动相关的数据
|
|
282
|
+
* @en_US Drag related data
|
|
283
|
+
*/
|
|
284
|
+
export declare type XListDragDrop = {
|
|
285
|
+
data: XListNode[];
|
|
286
|
+
current: XListNode;
|
|
287
|
+
currentIndex: number;
|
|
288
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ng-nest/ui",
|
|
3
|
-
"version": "14.0.
|
|
3
|
+
"version": "14.0.8",
|
|
4
4
|
"homepage": "https://www.ngnest.com",
|
|
5
5
|
"author": "ng-nest",
|
|
6
6
|
"ng-update": {
|
|
@@ -328,6 +328,14 @@
|
|
|
328
328
|
"node": "./fesm2015/ng-nest-ui-icon.mjs",
|
|
329
329
|
"default": "./fesm2020/ng-nest-ui-icon.mjs"
|
|
330
330
|
},
|
|
331
|
+
"./image": {
|
|
332
|
+
"types": "./image/index.d.ts",
|
|
333
|
+
"esm2020": "./esm2020/image/ng-nest-ui-image.mjs",
|
|
334
|
+
"es2020": "./fesm2020/ng-nest-ui-image.mjs",
|
|
335
|
+
"es2015": "./fesm2015/ng-nest-ui-image.mjs",
|
|
336
|
+
"node": "./fesm2015/ng-nest-ui-image.mjs",
|
|
337
|
+
"default": "./fesm2020/ng-nest-ui-image.mjs"
|
|
338
|
+
},
|
|
331
339
|
"./inner": {
|
|
332
340
|
"types": "./inner/index.d.ts",
|
|
333
341
|
"esm2020": "./esm2020/inner/ng-nest-ui-inner.mjs",
|
|
@@ -352,6 +360,14 @@
|
|
|
352
360
|
"node": "./fesm2015/ng-nest-ui-input.mjs",
|
|
353
361
|
"default": "./fesm2020/ng-nest-ui-input.mjs"
|
|
354
362
|
},
|
|
363
|
+
"./keyword": {
|
|
364
|
+
"types": "./keyword/index.d.ts",
|
|
365
|
+
"esm2020": "./esm2020/keyword/ng-nest-ui-keyword.mjs",
|
|
366
|
+
"es2020": "./fesm2020/ng-nest-ui-keyword.mjs",
|
|
367
|
+
"es2015": "./fesm2015/ng-nest-ui-keyword.mjs",
|
|
368
|
+
"node": "./fesm2015/ng-nest-ui-keyword.mjs",
|
|
369
|
+
"default": "./fesm2020/ng-nest-ui-keyword.mjs"
|
|
370
|
+
},
|
|
355
371
|
"./layout": {
|
|
356
372
|
"types": "./layout/index.d.ts",
|
|
357
373
|
"esm2020": "./esm2020/layout/ng-nest-ui-layout.mjs",
|
|
@@ -680,6 +696,14 @@
|
|
|
680
696
|
"node": "./fesm2015/ng-nest-ui-tree-file.mjs",
|
|
681
697
|
"default": "./fesm2020/ng-nest-ui-tree-file.mjs"
|
|
682
698
|
},
|
|
699
|
+
"./tree-select": {
|
|
700
|
+
"types": "./tree-select/index.d.ts",
|
|
701
|
+
"esm2020": "./esm2020/tree-select/ng-nest-ui-tree-select.mjs",
|
|
702
|
+
"es2020": "./fesm2020/ng-nest-ui-tree-select.mjs",
|
|
703
|
+
"es2015": "./fesm2015/ng-nest-ui-tree-select.mjs",
|
|
704
|
+
"node": "./fesm2015/ng-nest-ui-tree-select.mjs",
|
|
705
|
+
"default": "./fesm2020/ng-nest-ui-tree-select.mjs"
|
|
706
|
+
},
|
|
683
707
|
"./tree": {
|
|
684
708
|
"types": "./tree/index.d.ts",
|
|
685
709
|
"esm2020": "./esm2020/tree/ng-nest-ui-tree.mjs",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ChangeDetectorRef, OnInit, OnDestroy, Renderer2, TemplateRef } from '@angular/core';
|
|
2
2
|
import { XSelectNode } from './select.property';
|
|
3
3
|
import { BehaviorSubject, Subject } from 'rxjs';
|
|
4
|
-
import { XNumber, XPositionTopBottom } from '@ng-nest/ui/core';
|
|
4
|
+
import { XBoolean, XNumber, XPositionTopBottom, XSize } from '@ng-nest/ui/core';
|
|
5
5
|
import { XListComponent } from '@ng-nest/ui/list';
|
|
6
6
|
import { XInputComponent } from '@ng-nest/ui/input';
|
|
7
7
|
import { XI18nSelect, XI18nService } from '@ng-nest/ui/i18n';
|
|
@@ -20,6 +20,7 @@ export declare class XSelectPortalComponent implements OnInit, OnDestroy {
|
|
|
20
20
|
value: any;
|
|
21
21
|
valueChange: Subject<any>;
|
|
22
22
|
positionChange: Subject<any>;
|
|
23
|
+
inputChange: Subject<any>;
|
|
23
24
|
dataChange: Subject<XSelectNode[]>;
|
|
24
25
|
animating: Function;
|
|
25
26
|
activeChange: Function;
|
|
@@ -42,6 +43,9 @@ export declare class XSelectPortalComponent implements OnInit, OnDestroy {
|
|
|
42
43
|
locale: XI18nSelect;
|
|
43
44
|
search: boolean;
|
|
44
45
|
scrollNull: undefined;
|
|
46
|
+
virtualScroll: XBoolean;
|
|
47
|
+
size: XSize;
|
|
48
|
+
keywordText: string;
|
|
45
49
|
private _unSubject;
|
|
46
50
|
get getSelectAllText(): string | undefined;
|
|
47
51
|
constructor(renderer: Renderer2, cdr: ChangeDetectorRef, i18n: XI18nService);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Subject } from 'rxjs';
|
|
1
|
+
import { BehaviorSubject, Subject } from 'rxjs';
|
|
2
2
|
import { OnInit, ChangeDetectorRef, Renderer2, ElementRef, SimpleChanges, OnChanges, ViewContainerRef, TemplateRef } from '@angular/core';
|
|
3
3
|
import { XSelectNode, XSelectProperty } from './select.property';
|
|
4
4
|
import { XConfigService } from '@ng-nest/ui/core';
|
|
@@ -56,7 +56,7 @@ export declare class XSelectComponent extends XSelectProperty implements OnInit,
|
|
|
56
56
|
valueChange: Subject<any>;
|
|
57
57
|
positionChange: Subject<any>;
|
|
58
58
|
closeSubject: Subject<void>;
|
|
59
|
-
dataChange:
|
|
59
|
+
dataChange: BehaviorSubject<XSelectNode[]>;
|
|
60
60
|
keydownSubject: Subject<KeyboardEvent>;
|
|
61
61
|
inputChange: Subject<any>;
|
|
62
62
|
composition: boolean;
|
|
@@ -93,8 +93,13 @@ export declare class XSelectProperty extends XControlValueAccessor<any> {
|
|
|
93
93
|
* @default '更多{{surplus}}个选中'
|
|
94
94
|
*/
|
|
95
95
|
maxTagContent?: XTemplate;
|
|
96
|
+
/**
|
|
97
|
+
* @zh_CN 开启虚拟滚动
|
|
98
|
+
* @en_US Turn on virtual scrolling
|
|
99
|
+
*/
|
|
100
|
+
virtualScroll: XBoolean;
|
|
96
101
|
static ɵfac: i0.ɵɵFactoryDeclaration<XSelectProperty, never>;
|
|
97
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<XSelectProperty, "ng-component", never, { "data": "data"; "clearable": "clearable"; "async": "async"; "placement": "placement"; "multiple": "multiple"; "selectAll": "selectAll"; "selectAllText": "selectAllText"; "nodeTpl": "nodeTpl"; "size": "size"; "bordered": "bordered"; "portalMaxHeight": "portalMaxHeight"; "search": "search"; "caseSensitive": "caseSensitive"; "debounceTime": "debounceTime"; "maxTagCount": "maxTagCount"; "maxTagContent": "maxTagContent"; }, {}, never, never, false>;
|
|
102
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<XSelectProperty, "ng-component", never, { "data": "data"; "clearable": "clearable"; "async": "async"; "placement": "placement"; "multiple": "multiple"; "selectAll": "selectAll"; "selectAllText": "selectAllText"; "nodeTpl": "nodeTpl"; "size": "size"; "bordered": "bordered"; "portalMaxHeight": "portalMaxHeight"; "search": "search"; "caseSensitive": "caseSensitive"; "debounceTime": "debounceTime"; "maxTagCount": "maxTagCount"; "maxTagContent": "maxTagContent"; "virtualScroll": "virtualScroll"; }, {}, never, never, false>;
|
|
98
103
|
}
|
|
99
104
|
/**
|
|
100
105
|
* Select Option
|
package/style/core/index.css
CHANGED
|
@@ -436,4 +436,33 @@ li {
|
|
|
436
436
|
display: none;
|
|
437
437
|
}
|
|
438
438
|
|
|
439
|
+
.x-keyword-initial > .x-keyword-text {
|
|
440
|
+
color: var(--x-background);
|
|
441
|
+
text-decoration: underline;
|
|
442
|
+
}
|
|
443
|
+
.x-keyword-primary > .x-keyword-text {
|
|
444
|
+
color: var(--x-primary);
|
|
445
|
+
text-decoration: underline;
|
|
446
|
+
}
|
|
447
|
+
.x-keyword-success > .x-keyword-text {
|
|
448
|
+
color: var(--x-success);
|
|
449
|
+
text-decoration: underline;
|
|
450
|
+
}
|
|
451
|
+
.x-keyword-warning > .x-keyword-text {
|
|
452
|
+
color: var(--x-warning);
|
|
453
|
+
text-decoration: underline;
|
|
454
|
+
}
|
|
455
|
+
.x-keyword-danger > .x-keyword-text {
|
|
456
|
+
color: var(--x-danger);
|
|
457
|
+
text-decoration: underline;
|
|
458
|
+
}
|
|
459
|
+
.x-keyword-info > .x-keyword-text {
|
|
460
|
+
color: var(--x-info);
|
|
461
|
+
text-decoration: underline;
|
|
462
|
+
}
|
|
463
|
+
.x-keyword-text > .x-keyword-text {
|
|
464
|
+
color: rgba(0, 0, 0, 0.1);
|
|
465
|
+
text-decoration: underline;
|
|
466
|
+
}
|
|
467
|
+
|
|
439
468
|
/*# sourceMappingURL=index.css.map */
|
package/style/core/index.css.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sourceRoot":"","sources":["../../../../../lib/ng-nest/ui/style/core/cdk.scss","../../../../../lib/ng-nest/ui/style/core/var.scss","../../../../../lib/ng-nest/ui/style/mixins/colors.scss","../../../../../lib/ng-nest/ui/style/mixins/hidden.scss","../../../../../lib/ng-nest/ui/style/core/base.scss","../../../../../lib/ng-nest/ui/style/params/primary.scss","../../../../../lib/ng-nest/ui/style/core/portal.scss","../../../../../lib/ng-nest/ui/style/directives/ripple/index.scss","../../../../../lib/ng-nest/ui/style/directives/ripple/mixin.scss","../../../../../lib/ng-nest/ui/style/directives/resizable/index.scss","../../../../../lib/ng-nest/ui/style/directives/resizable/mixin.scss"],"names":[],"mappings":"AAAA;AAAA;EAEE;EACA;EACA;EACA;EACA;;;AAEF;EACE;EACA;;;AAEF;EACE;;;AAEF;EACE;EACA;EACA;;;AAEF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;;;AAEF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAEF;EACE;;;AAEF;EACE;IACE;;;AAGJ;EACE;;;AAEF;AAAA;EAEE;;;AAEF;EACE;EACA;EACA;EACA;EACA;EACA;;;AAEF;EACE;EACA;EACA;;AACA;EACE;;;AClEJ;ECEI;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;;;ACDE;EADF;IAEI;;;;AADF;EADF;IAEI;;;;AADF;EADF;IAEI;;;;AADF;EADF;IAEI;;;;AADF;EADF;IAEI;;;;AADF;EADF;IAEI;;;;AADF;EADF;IAEI;;;;AADF;EADF;IAEI;;;;AADF;EADF;IAEI;;;;AADF;EADF;IAEI;;;;AADF;EADF;IAEI;;;;ACLR;AAAA;AAAA;EAGE;;;AAGF;AAAA;AAAA;EAGE,aCwJgB;EDvJhB,WCq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EACE;EACA,QAlBqC;EAmBrC,OAnBgD;EAoBhD,QApB0D;EAsB1D,OAtB+E;EAwB/E,KAxBoE;EAyBpE,SAzBsG;;AA0BtG;EACE;EACA;EACA;EACA;EACA;EACA;;AAGA;EACE;EACA,cLlDM;;AK6BZ;EACE;EACA,QAjB0C;EAkB1C,OAlBqD;EAmBrD,QAnB+D;EAoB/D,MApBgG;EAsBhG,QAtBqF;EAwBrF,SAxB2G;;AAyB3G;EACE;EACA;EACA;EACA;EACA;EACA;;AAGA;EACE;EACA,cLlDM;;AK6BZ;EACE;EACA,QAhBwC;EAiBxC,OAjBmD;EAkBnD,QAlB6D;EAoB7D,OApB6E;EAqB7E,QArBwF;EAuBxF,SAvByG;;AAwBzG;EACE;EACA;EACA;EACA;EACA;EACA;;AAGA;EACE;EACA,cLlDM;;AKiBV;EACE,cLlBQ;;AKsBV;EACE","file":"index.css"}
|
|
1
|
+
{"version":3,"sourceRoot":"","sources":["../../../../../lib/ng-nest/ui/style/core/cdk.scss","../../../../../lib/ng-nest/ui/style/core/var.scss","../../../../../lib/ng-nest/ui/style/mixins/colors.scss","../../../../../lib/ng-nest/ui/style/mixins/hidden.scss","../../../../../lib/ng-nest/ui/style/core/base.scss","../../../../../lib/ng-nest/ui/style/params/primary.scss","../../../../../lib/ng-nest/ui/style/core/portal.scss","../../../../../lib/ng-nest/ui/style/directives/ripple/index.scss","../../../../../lib/ng-nest/ui/style/directives/ripple/mixin.scss","../../../../../lib/ng-nest/ui/style/directives/resizable/index.scss","../../../../../lib/ng-nest/ui/style/directives/resizable/mixin.scss","../../../../../lib/ng-nest/ui/style/directives/keyword/mixin.scss"],"names":[],"mappings":"AAAA;AAAA;EAEE;EACA;EACA;EACA;EACA;;;AAEF;EACE;EACA;;;AAEF;EACE;;;AAEF;EACE;EACA;EACA;;;AAEF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;;;AAEF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAEF;EACE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AFF;EACE,ONGQ;EMFR;;AAFF;EACE,ONsBQ;EMrBR;;AAFF;EACE,ONyCO;EMxCP;;AAFF;EACE,ON4DK;EM3DL;;AAFF;EACE,OAN0B;EAO1B","file":"index.css"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
// Keyword
|
|
2
|
+
|
|
3
|
+
@import '../../themes/default';
|
|
4
|
+
@import '../../mixins/index';
|
|
5
|
+
@import './param';
|
|
6
|
+
|
|
7
|
+
@mixin keyword {
|
|
8
|
+
@include keyword-type('initial', $--x-background);
|
|
9
|
+
@include keyword-type('primary', $--x-primary);
|
|
10
|
+
@include keyword-type('success', $--x-success);
|
|
11
|
+
@include keyword-type('warning', $--x-warning);
|
|
12
|
+
@include keyword-type('danger', $--x-danger);
|
|
13
|
+
@include keyword-type('info', $--x-info);
|
|
14
|
+
@include keyword-type('text', rgba(0, 0, 0, 0.1));
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
@mixin keyword-type($type, $color) {
|
|
18
|
+
&-#{$type} {
|
|
19
|
+
> .#{$--x-keyword-prefix}-text {
|
|
20
|
+
color: $color;
|
|
21
|
+
text-decoration: underline;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|