@ng-nest/ui 16.0.8 → 16.0.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/dialog/dialog-ref.d.ts +3 -1
- package/drag/drag.directive.d.ts +14 -0
- package/drag/drag.module.d.ts +8 -0
- package/drag/drag.property.d.ts +26 -0
- package/drag/index.d.ts +5 -0
- package/drag/public-api.d.ts +3 -0
- package/esm2022/button/button.component.mjs +3 -3
- package/esm2022/button/buttons.component.mjs +2 -2
- package/esm2022/dialog/dialog-ref.mjs +5 -3
- package/esm2022/drag/drag.directive.mjs +71 -0
- package/esm2022/drag/drag.module.mjs +19 -0
- package/esm2022/drag/drag.property.mjs +32 -0
- package/esm2022/drag/ng-nest-ui-drag.mjs +5 -0
- package/esm2022/drag/public-api.mjs +4 -0
- package/esm2022/index.mjs +2 -1
- package/esm2022/input/input.component.mjs +3 -3
- package/esm2022/input/input.property.mjs +12 -2
- package/esm2022/input-number/input-number.component.mjs +40 -15
- package/esm2022/message-box/message-box.component.mjs +23 -6
- package/esm2022/message-box/message-box.property.mjs +1 -1
- package/esm2022/portal/portal.service.mjs +1 -1
- package/esm2022/select/select.component.mjs +5 -6
- package/esm2022/slider-select/slider-select.component.mjs +248 -49
- package/esm2022/slider-select/slider-select.module.mjs +29 -4
- package/esm2022/slider-select/slider-select.property.mjs +21 -2
- package/esm2022/table/public-api.mjs +1 -2
- package/esm2022/table/table-head.component.mjs +4 -4
- package/esm2022/table/table.component.mjs +3 -3
- package/esm2022/table/table.module.mjs +9 -8
- package/esm2022/tooltip/tooltip.directive.mjs +5 -3
- package/esm2022/tree/tree.component.mjs +3 -1
- package/esm2022/tree-select/tree-select.component.mjs +2 -2
- package/fesm2022/ng-nest-ui-button.mjs +4 -4
- package/fesm2022/ng-nest-ui-button.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-dialog.mjs +3 -1
- package/fesm2022/ng-nest-ui-dialog.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-drag.mjs +119 -0
- package/fesm2022/ng-nest-ui-drag.mjs.map +1 -0
- package/fesm2022/ng-nest-ui-input-number.mjs +40 -16
- package/fesm2022/ng-nest-ui-input-number.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-input.mjs +13 -3
- package/fesm2022/ng-nest-ui-input.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-message-box.mjs +22 -5
- package/fesm2022/ng-nest-ui-message-box.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-portal.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-select.mjs +4 -5
- package/fesm2022/ng-nest-ui-select.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-slider-select.mjs +296 -54
- package/fesm2022/ng-nest-ui-slider-select.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-table.mjs +17 -86
- package/fesm2022/ng-nest-ui-table.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-tooltip.mjs +4 -2
- package/fesm2022/ng-nest-ui-tooltip.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-tree-select.mjs +2 -2
- package/fesm2022/ng-nest-ui-tree-select.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-tree.mjs +2 -0
- package/fesm2022/ng-nest-ui-tree.mjs.map +1 -1
- package/fesm2022/ng-nest-ui.mjs +1 -0
- package/fesm2022/ng-nest-ui.mjs.map +1 -1
- package/index.d.ts +1 -0
- package/input/input.property.d.ts +11 -1
- package/input-number/input-number.component.d.ts +6 -1
- package/message-box/message-box.component.d.ts +1 -0
- package/message-box/message-box.property.d.ts +11 -0
- package/package.json +58 -52
- package/slider-select/slider-select.component.d.ts +33 -16
- package/slider-select/slider-select.module.d.ts +3 -1
- package/slider-select/slider-select.property.d.ts +51 -3
- package/table/public-api.d.ts +0 -1
- package/table/table.module.d.ts +18 -18
- package/esm2022/table/drag.directive.mjs +0 -78
- package/table/drag.directive.d.ts +0 -27
|
@@ -9,6 +9,7 @@ export declare class XMessageBoxComponent implements OnInit {
|
|
|
9
9
|
messageBox: XMessageBoxRef;
|
|
10
10
|
action: XMessageBoxAction;
|
|
11
11
|
formGroup: UntypedFormGroup;
|
|
12
|
+
loading: boolean;
|
|
12
13
|
constructor(renderer: Renderer2, elementRef: ElementRef<HTMLElement>, cdr: ChangeDetectorRef);
|
|
13
14
|
get msgInput(): import("./message-box.property").XMessageBoxOption;
|
|
14
15
|
get msgOverlayRef(): import("./message-box.property").XMessageBoxOverlayRef;
|
|
@@ -3,6 +3,7 @@ import { XAlertOption } from '@ng-nest/ui/alert';
|
|
|
3
3
|
import { XMessageBoxComponent } from './message-box.component';
|
|
4
4
|
import { XPortalOverlayRef } from '@ng-nest/ui/portal';
|
|
5
5
|
import { XInputType } from '@ng-nest/ui/input';
|
|
6
|
+
import { Observable } from 'rxjs';
|
|
6
7
|
/**
|
|
7
8
|
* MessageBox
|
|
8
9
|
* @selector x-message-box
|
|
@@ -123,6 +124,11 @@ export interface XMessageBoxOption extends XAlertOption {
|
|
|
123
124
|
* @en_US Processing function before closing
|
|
124
125
|
*/
|
|
125
126
|
beforeClose?: XMessageBoxCallback;
|
|
127
|
+
/**
|
|
128
|
+
* @zh_CN 确认加载
|
|
129
|
+
* @en_US confirm Loading
|
|
130
|
+
*/
|
|
131
|
+
confirmLoading?: XMessageBoxConfirmLoading;
|
|
126
132
|
}
|
|
127
133
|
/**
|
|
128
134
|
* @zh_CN 关闭的回调函数类型
|
|
@@ -131,6 +137,11 @@ export interface XMessageBoxOption extends XAlertOption {
|
|
|
131
137
|
export interface XMessageBoxCallback {
|
|
132
138
|
(action: XMessageBoxAction, message?: string): void;
|
|
133
139
|
}
|
|
140
|
+
/**
|
|
141
|
+
* @zh_CN 确认加载
|
|
142
|
+
* @en_US confirm Loading
|
|
143
|
+
*/
|
|
144
|
+
export type XMessageBoxConfirmLoading = () => Observable<boolean>;
|
|
134
145
|
/**
|
|
135
146
|
* @zh_CN 触发关闭的类型
|
|
136
147
|
* @en_US Type of trigger closure
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ng-nest/ui",
|
|
3
|
-
"version": "16.0.
|
|
3
|
+
"version": "16.0.10",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"homepage": "https://www.ngnest.com",
|
|
6
6
|
"author": "ng-nest",
|
|
@@ -47,29 +47,17 @@
|
|
|
47
47
|
"esm": "./esm2022/alert/ng-nest-ui-alert.mjs",
|
|
48
48
|
"default": "./fesm2022/ng-nest-ui-alert.mjs"
|
|
49
49
|
},
|
|
50
|
-
"./auto-complete": {
|
|
51
|
-
"types": "./auto-complete/index.d.ts",
|
|
52
|
-
"esm2022": "./esm2022/auto-complete/ng-nest-ui-auto-complete.mjs",
|
|
53
|
-
"esm": "./esm2022/auto-complete/ng-nest-ui-auto-complete.mjs",
|
|
54
|
-
"default": "./fesm2022/ng-nest-ui-auto-complete.mjs"
|
|
55
|
-
},
|
|
56
|
-
"./anchor": {
|
|
57
|
-
"types": "./anchor/index.d.ts",
|
|
58
|
-
"esm2022": "./esm2022/anchor/ng-nest-ui-anchor.mjs",
|
|
59
|
-
"esm": "./esm2022/anchor/ng-nest-ui-anchor.mjs",
|
|
60
|
-
"default": "./fesm2022/ng-nest-ui-anchor.mjs"
|
|
61
|
-
},
|
|
62
50
|
"./api": {
|
|
63
51
|
"types": "./api/index.d.ts",
|
|
64
52
|
"esm2022": "./esm2022/api/ng-nest-ui-api.mjs",
|
|
65
53
|
"esm": "./esm2022/api/ng-nest-ui-api.mjs",
|
|
66
54
|
"default": "./fesm2022/ng-nest-ui-api.mjs"
|
|
67
55
|
},
|
|
68
|
-
"./
|
|
69
|
-
"types": "./
|
|
70
|
-
"esm2022": "./esm2022/
|
|
71
|
-
"esm": "./esm2022/
|
|
72
|
-
"default": "./fesm2022/ng-nest-ui-
|
|
56
|
+
"./anchor": {
|
|
57
|
+
"types": "./anchor/index.d.ts",
|
|
58
|
+
"esm2022": "./esm2022/anchor/ng-nest-ui-anchor.mjs",
|
|
59
|
+
"esm": "./esm2022/anchor/ng-nest-ui-anchor.mjs",
|
|
60
|
+
"default": "./fesm2022/ng-nest-ui-anchor.mjs"
|
|
73
61
|
},
|
|
74
62
|
"./avatar": {
|
|
75
63
|
"types": "./avatar/index.d.ts",
|
|
@@ -77,12 +65,24 @@
|
|
|
77
65
|
"esm": "./esm2022/avatar/ng-nest-ui-avatar.mjs",
|
|
78
66
|
"default": "./fesm2022/ng-nest-ui-avatar.mjs"
|
|
79
67
|
},
|
|
68
|
+
"./auto-complete": {
|
|
69
|
+
"types": "./auto-complete/index.d.ts",
|
|
70
|
+
"esm2022": "./esm2022/auto-complete/ng-nest-ui-auto-complete.mjs",
|
|
71
|
+
"esm": "./esm2022/auto-complete/ng-nest-ui-auto-complete.mjs",
|
|
72
|
+
"default": "./fesm2022/ng-nest-ui-auto-complete.mjs"
|
|
73
|
+
},
|
|
80
74
|
"./badge": {
|
|
81
75
|
"types": "./badge/index.d.ts",
|
|
82
76
|
"esm2022": "./esm2022/badge/ng-nest-ui-badge.mjs",
|
|
83
77
|
"esm": "./esm2022/badge/ng-nest-ui-badge.mjs",
|
|
84
78
|
"default": "./fesm2022/ng-nest-ui-badge.mjs"
|
|
85
79
|
},
|
|
80
|
+
"./back-top": {
|
|
81
|
+
"types": "./back-top/index.d.ts",
|
|
82
|
+
"esm2022": "./esm2022/back-top/ng-nest-ui-back-top.mjs",
|
|
83
|
+
"esm": "./esm2022/back-top/ng-nest-ui-back-top.mjs",
|
|
84
|
+
"default": "./fesm2022/ng-nest-ui-back-top.mjs"
|
|
85
|
+
},
|
|
86
86
|
"./base-form": {
|
|
87
87
|
"types": "./base-form/index.d.ts",
|
|
88
88
|
"esm2022": "./esm2022/base-form/ng-nest-ui-base-form.mjs",
|
|
@@ -107,18 +107,18 @@
|
|
|
107
107
|
"esm": "./esm2022/calendar/ng-nest-ui-calendar.mjs",
|
|
108
108
|
"default": "./fesm2022/ng-nest-ui-calendar.mjs"
|
|
109
109
|
},
|
|
110
|
-
"./card": {
|
|
111
|
-
"types": "./card/index.d.ts",
|
|
112
|
-
"esm2022": "./esm2022/card/ng-nest-ui-card.mjs",
|
|
113
|
-
"esm": "./esm2022/card/ng-nest-ui-card.mjs",
|
|
114
|
-
"default": "./fesm2022/ng-nest-ui-card.mjs"
|
|
115
|
-
},
|
|
116
110
|
"./carousel": {
|
|
117
111
|
"types": "./carousel/index.d.ts",
|
|
118
112
|
"esm2022": "./esm2022/carousel/ng-nest-ui-carousel.mjs",
|
|
119
113
|
"esm": "./esm2022/carousel/ng-nest-ui-carousel.mjs",
|
|
120
114
|
"default": "./fesm2022/ng-nest-ui-carousel.mjs"
|
|
121
115
|
},
|
|
116
|
+
"./card": {
|
|
117
|
+
"types": "./card/index.d.ts",
|
|
118
|
+
"esm2022": "./esm2022/card/ng-nest-ui-card.mjs",
|
|
119
|
+
"esm": "./esm2022/card/ng-nest-ui-card.mjs",
|
|
120
|
+
"default": "./fesm2022/ng-nest-ui-card.mjs"
|
|
121
|
+
},
|
|
122
122
|
"./cascade": {
|
|
123
123
|
"types": "./cascade/index.d.ts",
|
|
124
124
|
"esm2022": "./esm2022/cascade/ng-nest-ui-cascade.mjs",
|
|
@@ -143,36 +143,36 @@
|
|
|
143
143
|
"esm": "./esm2022/color/ng-nest-ui-color.mjs",
|
|
144
144
|
"default": "./fesm2022/ng-nest-ui-color.mjs"
|
|
145
145
|
},
|
|
146
|
-
"./color-picker": {
|
|
147
|
-
"types": "./color-picker/index.d.ts",
|
|
148
|
-
"esm2022": "./esm2022/color-picker/ng-nest-ui-color-picker.mjs",
|
|
149
|
-
"esm": "./esm2022/color-picker/ng-nest-ui-color-picker.mjs",
|
|
150
|
-
"default": "./fesm2022/ng-nest-ui-color-picker.mjs"
|
|
151
|
-
},
|
|
152
146
|
"./comment": {
|
|
153
147
|
"types": "./comment/index.d.ts",
|
|
154
148
|
"esm2022": "./esm2022/comment/ng-nest-ui-comment.mjs",
|
|
155
149
|
"esm": "./esm2022/comment/ng-nest-ui-comment.mjs",
|
|
156
150
|
"default": "./fesm2022/ng-nest-ui-comment.mjs"
|
|
157
151
|
},
|
|
152
|
+
"./color-picker": {
|
|
153
|
+
"types": "./color-picker/index.d.ts",
|
|
154
|
+
"esm2022": "./esm2022/color-picker/ng-nest-ui-color-picker.mjs",
|
|
155
|
+
"esm": "./esm2022/color-picker/ng-nest-ui-color-picker.mjs",
|
|
156
|
+
"default": "./fesm2022/ng-nest-ui-color-picker.mjs"
|
|
157
|
+
},
|
|
158
158
|
"./container": {
|
|
159
159
|
"types": "./container/index.d.ts",
|
|
160
160
|
"esm2022": "./esm2022/container/ng-nest-ui-container.mjs",
|
|
161
161
|
"esm": "./esm2022/container/ng-nest-ui-container.mjs",
|
|
162
162
|
"default": "./fesm2022/ng-nest-ui-container.mjs"
|
|
163
163
|
},
|
|
164
|
-
"./crumb": {
|
|
165
|
-
"types": "./crumb/index.d.ts",
|
|
166
|
-
"esm2022": "./esm2022/crumb/ng-nest-ui-crumb.mjs",
|
|
167
|
-
"esm": "./esm2022/crumb/ng-nest-ui-crumb.mjs",
|
|
168
|
-
"default": "./fesm2022/ng-nest-ui-crumb.mjs"
|
|
169
|
-
},
|
|
170
164
|
"./core": {
|
|
171
165
|
"types": "./core/index.d.ts",
|
|
172
166
|
"esm2022": "./esm2022/core/ng-nest-ui-core.mjs",
|
|
173
167
|
"esm": "./esm2022/core/ng-nest-ui-core.mjs",
|
|
174
168
|
"default": "./fesm2022/ng-nest-ui-core.mjs"
|
|
175
169
|
},
|
|
170
|
+
"./crumb": {
|
|
171
|
+
"types": "./crumb/index.d.ts",
|
|
172
|
+
"esm2022": "./esm2022/crumb/ng-nest-ui-crumb.mjs",
|
|
173
|
+
"esm": "./esm2022/crumb/ng-nest-ui-crumb.mjs",
|
|
174
|
+
"default": "./fesm2022/ng-nest-ui-crumb.mjs"
|
|
175
|
+
},
|
|
176
176
|
"./date-picker": {
|
|
177
177
|
"types": "./date-picker/index.d.ts",
|
|
178
178
|
"esm2022": "./esm2022/date-picker/ng-nest-ui-date-picker.mjs",
|
|
@@ -197,6 +197,12 @@
|
|
|
197
197
|
"esm": "./esm2022/doc/ng-nest-ui-doc.mjs",
|
|
198
198
|
"default": "./fesm2022/ng-nest-ui-doc.mjs"
|
|
199
199
|
},
|
|
200
|
+
"./drag": {
|
|
201
|
+
"types": "./drag/index.d.ts",
|
|
202
|
+
"esm2022": "./esm2022/drag/ng-nest-ui-drag.mjs",
|
|
203
|
+
"esm": "./esm2022/drag/ng-nest-ui-drag.mjs",
|
|
204
|
+
"default": "./fesm2022/ng-nest-ui-drag.mjs"
|
|
205
|
+
},
|
|
200
206
|
"./drawer": {
|
|
201
207
|
"types": "./drawer/index.d.ts",
|
|
202
208
|
"esm2022": "./esm2022/drawer/ng-nest-ui-drawer.mjs",
|
|
@@ -329,11 +335,11 @@
|
|
|
329
335
|
"esm": "./esm2022/notification/ng-nest-ui-notification.mjs",
|
|
330
336
|
"default": "./fesm2022/ng-nest-ui-notification.mjs"
|
|
331
337
|
},
|
|
332
|
-
"./
|
|
333
|
-
"types": "./
|
|
334
|
-
"esm2022": "./esm2022/
|
|
335
|
-
"esm": "./esm2022/
|
|
336
|
-
"default": "./fesm2022/ng-nest-ui-
|
|
338
|
+
"./outlet": {
|
|
339
|
+
"types": "./outlet/index.d.ts",
|
|
340
|
+
"esm2022": "./esm2022/outlet/ng-nest-ui-outlet.mjs",
|
|
341
|
+
"esm": "./esm2022/outlet/ng-nest-ui-outlet.mjs",
|
|
342
|
+
"default": "./fesm2022/ng-nest-ui-outlet.mjs"
|
|
337
343
|
},
|
|
338
344
|
"./pagination": {
|
|
339
345
|
"types": "./pagination/index.d.ts",
|
|
@@ -341,11 +347,11 @@
|
|
|
341
347
|
"esm": "./esm2022/pagination/ng-nest-ui-pagination.mjs",
|
|
342
348
|
"default": "./fesm2022/ng-nest-ui-pagination.mjs"
|
|
343
349
|
},
|
|
344
|
-
"./
|
|
345
|
-
"types": "./
|
|
346
|
-
"esm2022": "./esm2022/
|
|
347
|
-
"esm": "./esm2022/
|
|
348
|
-
"default": "./fesm2022/ng-nest-ui-
|
|
350
|
+
"./page-header": {
|
|
351
|
+
"types": "./page-header/index.d.ts",
|
|
352
|
+
"esm2022": "./esm2022/page-header/ng-nest-ui-page-header.mjs",
|
|
353
|
+
"esm": "./esm2022/page-header/ng-nest-ui-page-header.mjs",
|
|
354
|
+
"default": "./fesm2022/ng-nest-ui-page-header.mjs"
|
|
349
355
|
},
|
|
350
356
|
"./pattern": {
|
|
351
357
|
"types": "./pattern/index.d.ts",
|
|
@@ -485,12 +491,6 @@
|
|
|
485
491
|
"esm": "./esm2022/theme/ng-nest-ui-theme.mjs",
|
|
486
492
|
"default": "./fesm2022/ng-nest-ui-theme.mjs"
|
|
487
493
|
},
|
|
488
|
-
"./time-ago": {
|
|
489
|
-
"types": "./time-ago/index.d.ts",
|
|
490
|
-
"esm2022": "./esm2022/time-ago/ng-nest-ui-time-ago.mjs",
|
|
491
|
-
"esm": "./esm2022/time-ago/ng-nest-ui-time-ago.mjs",
|
|
492
|
-
"default": "./fesm2022/ng-nest-ui-time-ago.mjs"
|
|
493
|
-
},
|
|
494
494
|
"./time-picker": {
|
|
495
495
|
"types": "./time-picker/index.d.ts",
|
|
496
496
|
"esm2022": "./esm2022/time-picker/ng-nest-ui-time-picker.mjs",
|
|
@@ -503,6 +503,12 @@
|
|
|
503
503
|
"esm": "./esm2022/time-range/ng-nest-ui-time-range.mjs",
|
|
504
504
|
"default": "./fesm2022/ng-nest-ui-time-range.mjs"
|
|
505
505
|
},
|
|
506
|
+
"./time-ago": {
|
|
507
|
+
"types": "./time-ago/index.d.ts",
|
|
508
|
+
"esm2022": "./esm2022/time-ago/ng-nest-ui-time-ago.mjs",
|
|
509
|
+
"esm": "./esm2022/time-ago/ng-nest-ui-time-ago.mjs",
|
|
510
|
+
"default": "./fesm2022/ng-nest-ui-time-ago.mjs"
|
|
511
|
+
},
|
|
506
512
|
"./timeline": {
|
|
507
513
|
"types": "./timeline/index.d.ts",
|
|
508
514
|
"esm2022": "./esm2022/timeline/ng-nest-ui-timeline.mjs",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { XTooltipDirective } from '@ng-nest/ui/tooltip';
|
|
2
|
-
import { OnInit, ChangeDetectorRef, Renderer2, ElementRef, OnDestroy, AfterViewInit } from '@angular/core';
|
|
3
|
-
import { XSliderSelectProperty } from './slider-select.property';
|
|
2
|
+
import { OnInit, ChangeDetectorRef, Renderer2, ElementRef, OnDestroy, AfterViewInit, QueryList } from '@angular/core';
|
|
3
|
+
import { XSliderSelectProperty, XSliderSelectMark } from './slider-select.property';
|
|
4
4
|
import { XConfigService } from '@ng-nest/ui/core';
|
|
5
|
-
import { CdkDragMove, CdkDragStart, CdkDragEnd } from '@angular/cdk/drag-drop';
|
|
5
|
+
import { CdkDragMove, CdkDragStart, CdkDragEnd, CdkDrag } from '@angular/cdk/drag-drop';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
export declare class XSliderSelectComponent extends XSliderSelectProperty implements OnInit, OnDestroy, AfterViewInit {
|
|
8
8
|
renderer: Renderer2;
|
|
@@ -10,34 +10,51 @@ export declare class XSliderSelectComponent extends XSliderSelectProperty implem
|
|
|
10
10
|
cdr: ChangeDetectorRef;
|
|
11
11
|
configService: XConfigService;
|
|
12
12
|
sliderSelect: ElementRef<HTMLElement>;
|
|
13
|
-
|
|
13
|
+
dragStartRef: ElementRef<HTMLElement>;
|
|
14
|
+
dragEndRef: ElementRef<HTMLElement>;
|
|
14
15
|
railRef: ElementRef<HTMLElement>;
|
|
15
16
|
processRef: ElementRef<HTMLElement>;
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
get getVertical(): import("@ng-nest/ui/core").XBoolean | undefined;
|
|
18
|
+
tooltips: QueryList<XTooltipDirective>;
|
|
19
|
+
tooltipStart: XTooltipDirective;
|
|
20
|
+
tooltipEnd: XTooltipDirective;
|
|
21
|
+
cdkDrag: CdkDrag;
|
|
22
|
+
value: number | number[];
|
|
23
|
+
startOffset: number;
|
|
24
|
+
startVisible: boolean;
|
|
25
|
+
startManual: boolean;
|
|
20
26
|
start: number;
|
|
21
|
-
|
|
22
|
-
|
|
27
|
+
startDisplayValue: string;
|
|
28
|
+
showStartTooltip: boolean;
|
|
29
|
+
endOffset: number;
|
|
30
|
+
endVisible: boolean;
|
|
31
|
+
endManual: boolean;
|
|
32
|
+
end: number;
|
|
33
|
+
endDisplayValue: string;
|
|
34
|
+
showEndTooltip: boolean;
|
|
35
|
+
markList: XSliderSelectMark[];
|
|
23
36
|
private _unSubject;
|
|
24
37
|
private _resizeObserver;
|
|
38
|
+
isNumber: boolean;
|
|
39
|
+
isArray: boolean;
|
|
25
40
|
get requiredIsEmpty(): boolean | "";
|
|
26
|
-
writeValue(value: number): void;
|
|
41
|
+
writeValue(value: number | number[]): void;
|
|
27
42
|
constructor(renderer: Renderer2, elementRef: ElementRef<HTMLElement>, cdr: ChangeDetectorRef, configService: XConfigService);
|
|
28
43
|
ngOnInit(): void;
|
|
29
44
|
ngAfterViewInit(): void;
|
|
30
45
|
ngOnDestroy(): void;
|
|
31
46
|
change(): void;
|
|
32
47
|
setClassMap(): void;
|
|
48
|
+
getOffset(val: number): number;
|
|
33
49
|
setLeft(): void;
|
|
34
50
|
setDisplayValue(): void;
|
|
35
51
|
setPrecision(): void;
|
|
36
|
-
|
|
37
|
-
started(drag: CdkDragStart): void;
|
|
38
|
-
moved(drag: CdkDragMove): void;
|
|
39
|
-
ended(drag: CdkDragEnd): void;
|
|
40
|
-
setDrag(distance?: number): void;
|
|
52
|
+
setMarks(): void;
|
|
53
|
+
started(drag: CdkDragStart, type?: 'start' | 'end' | 'both'): void;
|
|
54
|
+
moved(drag: CdkDragMove, type?: 'start' | 'end' | 'both'): void;
|
|
55
|
+
ended(drag: CdkDragEnd, type?: 'start' | 'end' | 'both'): void;
|
|
56
|
+
setDrag(distance?: number, type?: 'start' | 'end' | 'both'): void;
|
|
57
|
+
setDragStyles(): void;
|
|
41
58
|
formControlChanges(): void;
|
|
42
59
|
static ɵfac: i0.ɵɵFactoryDeclaration<XSliderSelectComponent, never>;
|
|
43
60
|
static ɵcmp: i0.ɵɵComponentDeclaration<XSliderSelectComponent, "x-slider-select", never, {}, {}, never, never, false, never>;
|
|
@@ -6,8 +6,10 @@ import * as i4 from "@angular/forms";
|
|
|
6
6
|
import * as i5 from "@angular/cdk/drag-drop";
|
|
7
7
|
import * as i6 from "@ng-nest/ui/tooltip";
|
|
8
8
|
import * as i7 from "@ng-nest/ui/base-form";
|
|
9
|
+
import * as i8 from "@ng-nest/ui/drag";
|
|
10
|
+
import * as i9 from "@ng-nest/ui/outlet";
|
|
9
11
|
export declare class XSliderSelectModule {
|
|
10
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<XSliderSelectModule, never>;
|
|
11
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<XSliderSelectModule, [typeof i1.XSliderSelectComponent, typeof i2.XSliderSelectProperty], [typeof i3.CommonModule, typeof i4.FormsModule, typeof i4.ReactiveFormsModule, typeof i5.DragDropModule, typeof i6.XTooltipModule, typeof i7.XBaseFormModule], [typeof i1.XSliderSelectComponent]>;
|
|
13
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<XSliderSelectModule, [typeof i1.XSliderSelectComponent, typeof i2.XSliderSelectProperty], [typeof i3.CommonModule, typeof i4.FormsModule, typeof i4.ReactiveFormsModule, typeof i5.DragDropModule, typeof i6.XTooltipModule, typeof i7.XBaseFormModule, typeof i8.XDragModule, typeof i9.XOutletModule], [typeof i1.XSliderSelectComponent]>;
|
|
12
14
|
static ɵinj: i0.ɵɵInjectorDeclaration<XSliderSelectModule>;
|
|
13
15
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { XBoolean, XNumber } from '@ng-nest/ui/core';
|
|
1
|
+
import { XBoolean, XNumber, XTemplate } from '@ng-nest/ui/core';
|
|
2
2
|
import { EventEmitter } from '@angular/core';
|
|
3
3
|
import { CdkDragStart, CdkDragMove, CdkDragEnd } from '@angular/cdk/drag-drop';
|
|
4
4
|
import { XControlValueAccessor, XFormOption } from '@ng-nest/ui/base-form';
|
|
@@ -12,7 +12,7 @@ export declare const XSliderSelectPrefix = "x-slider-select";
|
|
|
12
12
|
/**
|
|
13
13
|
* SliderSelect Property
|
|
14
14
|
*/
|
|
15
|
-
export declare class XSliderSelectProperty extends XControlValueAccessor<number> implements XSliderSelectOption {
|
|
15
|
+
export declare class XSliderSelectProperty extends XControlValueAccessor<number | number[]> implements XSliderSelectOption {
|
|
16
16
|
/**
|
|
17
17
|
* @zh_CN 最小值
|
|
18
18
|
* @en_US Minimum
|
|
@@ -43,6 +43,26 @@ export declare class XSliderSelectProperty extends XControlValueAccessor<number>
|
|
|
43
43
|
* @en_US Reverse
|
|
44
44
|
*/
|
|
45
45
|
reverse?: XBoolean;
|
|
46
|
+
/**
|
|
47
|
+
* @zh_CN 垂直
|
|
48
|
+
* @en_US Vertical
|
|
49
|
+
*/
|
|
50
|
+
vertical?: XBoolean;
|
|
51
|
+
/**
|
|
52
|
+
* @zh_CN 范围
|
|
53
|
+
* @en_US Range
|
|
54
|
+
*/
|
|
55
|
+
range?: XBoolean;
|
|
56
|
+
/**
|
|
57
|
+
* @zh_CN 自定义滑块
|
|
58
|
+
* @en_US Custom button
|
|
59
|
+
*/
|
|
60
|
+
customButton?: XTemplate;
|
|
61
|
+
/**
|
|
62
|
+
* @zh_CN 刻度标记,key 为实际数字,在 [min,max] 内,可通过 style 设置样式
|
|
63
|
+
* @en_US Scale marking, key is the actual number, in [min, max], you can set style through style
|
|
64
|
+
*/
|
|
65
|
+
marks: XSliderSelectMark[];
|
|
46
66
|
/**
|
|
47
67
|
* @zh_CN 开始拖动的事件
|
|
48
68
|
* @en_US Start drag event
|
|
@@ -59,7 +79,7 @@ export declare class XSliderSelectProperty extends XControlValueAccessor<number>
|
|
|
59
79
|
*/
|
|
60
80
|
dragEndEmit: EventEmitter<CdkDragEnd<any>>;
|
|
61
81
|
static ɵfac: i0.ɵɵFactoryDeclaration<XSliderSelectProperty, never>;
|
|
62
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<XSliderSelectProperty, "x-slider-select-property", never, { "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; "step": { "alias": "step"; "required": false; }; "precision": { "alias": "precision"; "required": false; }; "showTooltip": { "alias": "showTooltip"; "required": false; }; "reverse": { "alias": "reverse"; "required": false; }; }, { "dragStartEmit": "dragStartEmit"; "dragMoveEmit": "dragMoveEmit"; "dragEndEmit": "dragEndEmit"; }, never, never, false, never>;
|
|
82
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<XSliderSelectProperty, "x-slider-select-property", never, { "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; "step": { "alias": "step"; "required": false; }; "precision": { "alias": "precision"; "required": false; }; "showTooltip": { "alias": "showTooltip"; "required": false; }; "reverse": { "alias": "reverse"; "required": false; }; "vertical": { "alias": "vertical"; "required": false; }; "range": { "alias": "range"; "required": false; }; "customButton": { "alias": "customButton"; "required": false; }; "marks": { "alias": "marks"; "required": false; }; }, { "dragStartEmit": "dragStartEmit"; "dragMoveEmit": "dragMoveEmit"; "dragEndEmit": "dragEndEmit"; }, never, never, false, never>;
|
|
63
83
|
}
|
|
64
84
|
/**
|
|
65
85
|
* SliderSelect Option
|
|
@@ -102,3 +122,31 @@ export interface XSliderSelectOption extends XFormOption {
|
|
|
102
122
|
*/
|
|
103
123
|
dragEnd?: (dragEnd: CdkDragEnd) => void;
|
|
104
124
|
}
|
|
125
|
+
/**
|
|
126
|
+
* @zh_CN 刻度标记
|
|
127
|
+
* @en_US Scale marking
|
|
128
|
+
*/
|
|
129
|
+
export interface XSliderSelectMark {
|
|
130
|
+
/**
|
|
131
|
+
* @zh_CN 数值
|
|
132
|
+
* @en_US Value
|
|
133
|
+
*/
|
|
134
|
+
value: number;
|
|
135
|
+
/**
|
|
136
|
+
* @zh_CN 显示标签
|
|
137
|
+
* @en_US Label
|
|
138
|
+
*/
|
|
139
|
+
label: string;
|
|
140
|
+
/**
|
|
141
|
+
* @zh_CN 标签样式
|
|
142
|
+
* @en_US style
|
|
143
|
+
*/
|
|
144
|
+
style?: {
|
|
145
|
+
[style: string]: any;
|
|
146
|
+
};
|
|
147
|
+
/**
|
|
148
|
+
* @zh_CN 实际偏移量(自动计算)
|
|
149
|
+
* @en_US Offset. automatic calculation
|
|
150
|
+
*/
|
|
151
|
+
offset?: number;
|
|
152
|
+
}
|
package/table/public-api.d.ts
CHANGED
package/table/table.module.d.ts
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./
|
|
3
|
-
import * as i2 from "./table.
|
|
4
|
-
import * as i3 from "./table.
|
|
5
|
-
import * as i4 from "./table-
|
|
6
|
-
import * as i5 from "./table-
|
|
7
|
-
import * as i6 from "
|
|
8
|
-
import * as i7 from "@angular/
|
|
9
|
-
import * as i8 from "@
|
|
10
|
-
import * as i9 from "@ng-nest/ui/
|
|
11
|
-
import * as i10 from "@ng-nest/ui/
|
|
12
|
-
import * as i11 from "@ng-nest/ui/
|
|
13
|
-
import * as i12 from "@ng-nest/ui/
|
|
14
|
-
import * as i13 from "@
|
|
15
|
-
import * as i14 from "@angular/cdk/
|
|
16
|
-
import * as i15 from "@
|
|
17
|
-
import * as i16 from "@ng-nest/ui/
|
|
18
|
-
import * as i17 from "@ng-nest/ui/
|
|
2
|
+
import * as i1 from "./table.component";
|
|
3
|
+
import * as i2 from "./table.property";
|
|
4
|
+
import * as i3 from "./table-head.component";
|
|
5
|
+
import * as i4 from "./table-body.component";
|
|
6
|
+
import * as i5 from "./table-foot.component";
|
|
7
|
+
import * as i6 from "@angular/common";
|
|
8
|
+
import * as i7 from "@angular/forms";
|
|
9
|
+
import * as i8 from "@ng-nest/ui/pagination";
|
|
10
|
+
import * as i9 from "@ng-nest/ui/outlet";
|
|
11
|
+
import * as i10 from "@ng-nest/ui/checkbox";
|
|
12
|
+
import * as i11 from "@ng-nest/ui/icon";
|
|
13
|
+
import * as i12 from "@ng-nest/ui/button";
|
|
14
|
+
import * as i13 from "@angular/cdk/scrolling";
|
|
15
|
+
import * as i14 from "@angular/cdk/drag-drop";
|
|
16
|
+
import * as i15 from "@ng-nest/ui/empty";
|
|
17
|
+
import * as i16 from "@ng-nest/ui/loading";
|
|
18
|
+
import * as i17 from "@ng-nest/ui/drag";
|
|
19
19
|
export declare class XTableModule {
|
|
20
20
|
static ɵfac: i0.ɵɵFactoryDeclaration<XTableModule, never>;
|
|
21
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<XTableModule, [typeof i1.
|
|
21
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<XTableModule, [typeof i1.XTableComponent, typeof i2.XTableProperty, typeof i3.XTableHeadComponent, typeof i2.XTableHeadProperty, typeof i4.XTableBodyComponent, typeof i2.XTableBodyProperty, typeof i5.XTableFootComponent, typeof i2.XTableFootProperty], [typeof i6.CommonModule, typeof i7.FormsModule, typeof i8.XPaginationModule, typeof i9.XOutletModule, typeof i10.XCheckboxModule, typeof i11.XIconModule, typeof i12.XButtonModule, typeof i13.ScrollingModule, typeof i14.DragDropModule, typeof i15.XEmptyModule, typeof i16.XLoadingModule, typeof i17.XDragModule], [typeof i1.XTableComponent]>;
|
|
22
22
|
static ɵinj: i0.ɵɵInjectorDeclaration<XTableModule>;
|
|
23
23
|
}
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import { DOCUMENT } from '@angular/common';
|
|
2
|
-
import { Directive, EventEmitter, Output, inject } from '@angular/core';
|
|
3
|
-
import { fromEvent, Subject } from 'rxjs';
|
|
4
|
-
import { takeUntil } from 'rxjs/operators';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
class XDragDirective {
|
|
7
|
-
constructor(elementRef, renderer) {
|
|
8
|
-
this.elementRef = elementRef;
|
|
9
|
-
this.renderer = renderer;
|
|
10
|
-
this.dragStarted = new EventEmitter();
|
|
11
|
-
this.dragMoved = new EventEmitter();
|
|
12
|
-
this.dragEnded = new EventEmitter();
|
|
13
|
-
this._unSubject = new Subject();
|
|
14
|
-
this.doc = inject(DOCUMENT);
|
|
15
|
-
}
|
|
16
|
-
ngOnInit() {
|
|
17
|
-
const mouseDown = fromEvent(this.elementRef.nativeElement, 'mousedown');
|
|
18
|
-
mouseDown.subscribe((downMe) => {
|
|
19
|
-
let x = downMe.pageX;
|
|
20
|
-
let y = downMe.pageY;
|
|
21
|
-
let offsetX = 0;
|
|
22
|
-
let offsetY = 0;
|
|
23
|
-
const _unSub = new Subject();
|
|
24
|
-
this.renderer.setStyle(this.doc.documentElement, 'cursor', 'ew-resize');
|
|
25
|
-
this.renderer.setStyle(this.doc.documentElement, 'user-select', 'none');
|
|
26
|
-
this.dragStarted.emit({ x, y });
|
|
27
|
-
fromEvent(this.doc.documentElement, 'mousemove')
|
|
28
|
-
.pipe(takeUntil(_unSub))
|
|
29
|
-
.subscribe((moveMe) => {
|
|
30
|
-
offsetX = moveMe.pageX - x;
|
|
31
|
-
offsetY = moveMe.pageY - y;
|
|
32
|
-
x = moveMe.pageX;
|
|
33
|
-
y = moveMe.pageY;
|
|
34
|
-
this.dragMoved.emit({ x, y, offsetX, offsetY });
|
|
35
|
-
});
|
|
36
|
-
fromEvent(this.doc.documentElement, 'mouseup')
|
|
37
|
-
.pipe(takeUntil(_unSub))
|
|
38
|
-
.subscribe(() => {
|
|
39
|
-
this.renderer.removeStyle(this.doc.documentElement, 'cursor');
|
|
40
|
-
this.renderer.removeStyle(this.doc.documentElement, 'user-select');
|
|
41
|
-
this.dragEnded.emit({ x, y });
|
|
42
|
-
_unSub.next();
|
|
43
|
-
_unSub.complete();
|
|
44
|
-
});
|
|
45
|
-
});
|
|
46
|
-
// fromEvent(this.elementRef.nativeElement, 'mousedown')
|
|
47
|
-
// .pipe(
|
|
48
|
-
// tap((mouse: MouseEvent) => {
|
|
49
|
-
// return { startX: mouse.clientX, startY: mouse.clientY };
|
|
50
|
-
// }),
|
|
51
|
-
// tap((x) => {
|
|
52
|
-
// fromEvent(this.elementRef.nativeElement, 'mousemove').pipe()
|
|
53
|
-
// }),
|
|
54
|
-
// takeUntil(this._unSubject)
|
|
55
|
-
// )
|
|
56
|
-
// .subscribe((x) => {
|
|
57
|
-
// console.log(x);
|
|
58
|
-
// });
|
|
59
|
-
}
|
|
60
|
-
ngOnDestroy() {
|
|
61
|
-
this._unSubject.next();
|
|
62
|
-
this._unSubject.complete();
|
|
63
|
-
}
|
|
64
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.5", ngImport: i0, type: XDragDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
65
|
-
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.5", type: XDragDirective, selector: "[xDrag]", outputs: { dragStarted: "dragStarted", dragMoved: "dragMoved", dragEnded: "dragEnded" }, ngImport: i0 }); }
|
|
66
|
-
}
|
|
67
|
-
export { XDragDirective };
|
|
68
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.5", ngImport: i0, type: XDragDirective, decorators: [{
|
|
69
|
-
type: Directive,
|
|
70
|
-
args: [{ selector: '[xDrag]' }]
|
|
71
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }]; }, propDecorators: { dragStarted: [{
|
|
72
|
-
type: Output
|
|
73
|
-
}], dragMoved: [{
|
|
74
|
-
type: Output
|
|
75
|
-
}], dragEnded: [{
|
|
76
|
-
type: Output
|
|
77
|
-
}] } });
|
|
78
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZHJhZy5kaXJlY3RpdmUuanMiLCJzb3VyY2VSb290IjoiIiw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HgpID0+IHtcclxuICAgIC8vICAgICAgIGZyb21FdmVudCh0aGlzLmVsZW1lbnRSZWYubmF0aXZlRWxlbWVudCwgJ21vdXNlbW92ZScpLnBpcGUoKVxyXG4gICAgLy8gICAgIH0pLFxyXG4gICAgLy8gICAgIHRha2VVbnRpbCh0aGlzLl91blN1YmplY3QpXHJcbiAgICAvLyAgIClcclxuICAgIC8vICAgLnN1YnNjcmliZSgoeCkgPT4ge1xyXG4gICAgLy8gICAgIGNvbnNvbGUubG9nKHgpO1xyXG4gICAgLy8gICB9KTtcclxuICB9XHJcblxyXG4gIG5nT25EZXN0cm95KCkge1xyXG4gICAgdGhpcy5fdW5TdWJqZWN0Lm5leHQoKTtcclxuICAgIHRoaXMuX3VuU3ViamVjdC5jb21wbGV0ZSgpO1xyXG4gIH1cclxufVxyXG4iXX0=
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { ElementRef, EventEmitter, Renderer2 } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class XDragDirective {
|
|
4
|
-
private elementRef;
|
|
5
|
-
private renderer;
|
|
6
|
-
dragStarted: EventEmitter<{
|
|
7
|
-
x: number;
|
|
8
|
-
y: number;
|
|
9
|
-
}>;
|
|
10
|
-
dragMoved: EventEmitter<{
|
|
11
|
-
x: number;
|
|
12
|
-
y: number;
|
|
13
|
-
offsetX: number;
|
|
14
|
-
offsetY: number;
|
|
15
|
-
}>;
|
|
16
|
-
dragEnded: EventEmitter<{
|
|
17
|
-
x: number;
|
|
18
|
-
y: number;
|
|
19
|
-
}>;
|
|
20
|
-
private _unSubject;
|
|
21
|
-
doc: Document;
|
|
22
|
-
constructor(elementRef: ElementRef, renderer: Renderer2);
|
|
23
|
-
ngOnInit(): void;
|
|
24
|
-
ngOnDestroy(): void;
|
|
25
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<XDragDirective, never>;
|
|
26
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<XDragDirective, "[xDrag]", never, {}, { "dragStarted": "dragStarted"; "dragMoved": "dragMoved"; "dragEnded": "dragEnded"; }, never, never, false, never>;
|
|
27
|
-
}
|