@ng-nest/ui 20.0.6 → 20.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/auto-complete/index.d.ts +72 -9
- package/base-form/index.d.ts +3 -3
- package/calendar/index.d.ts +1 -2
- package/cascade/index.d.ts +48 -8
- package/checkbox/index.d.ts +4 -4
- package/color-picker/index.d.ts +49 -8
- package/core/index.d.ts +68 -6
- package/date-picker/index.d.ts +82 -12
- package/dropdown/index.d.ts +4 -4
- package/fesm2022/ng-nest-ui-affix.mjs +12 -12
- package/fesm2022/ng-nest-ui-affix.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-alert.mjs +35 -35
- package/fesm2022/ng-nest-ui-alert.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-anchor.mjs +31 -31
- package/fesm2022/ng-nest-ui-anchor.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-api.mjs +7 -7
- package/fesm2022/ng-nest-ui-api.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-auto-complete.mjs +108 -62
- package/fesm2022/ng-nest-ui-auto-complete.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-avatar.mjs +31 -31
- package/fesm2022/ng-nest-ui-avatar.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-back-top.mjs +18 -18
- package/fesm2022/ng-nest-ui-back-top.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-badge.mjs +23 -23
- package/fesm2022/ng-nest-ui-badge.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-base-form.mjs +45 -45
- package/fesm2022/ng-nest-ui-base-form.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-button.mjs +42 -42
- package/fesm2022/ng-nest-ui-button.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-calendar.mjs +20 -20
- package/fesm2022/ng-nest-ui-calendar.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-card.mjs +15 -15
- package/fesm2022/ng-nest-ui-card.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-carousel.mjs +46 -46
- package/fesm2022/ng-nest-ui-carousel.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-cascade.mjs +92 -76
- package/fesm2022/ng-nest-ui-cascade.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-checkbox.mjs +39 -39
- package/fesm2022/ng-nest-ui-checkbox.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-collapse.mjs +31 -31
- package/fesm2022/ng-nest-ui-collapse.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-color-picker.mjs +95 -71
- package/fesm2022/ng-nest-ui-color-picker.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-color.mjs +16 -16
- package/fesm2022/ng-nest-ui-color.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-comment.mjs +21 -21
- package/fesm2022/ng-nest-ui-comment.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-container.mjs +37 -37
- package/fesm2022/ng-nest-ui-container.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-core.mjs +38 -22
- package/fesm2022/ng-nest-ui-core.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-crumb.mjs +13 -13
- package/fesm2022/ng-nest-ui-crumb.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-date-picker.mjs +284 -254
- package/fesm2022/ng-nest-ui-date-picker.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-description.mjs +31 -31
- package/fesm2022/ng-nest-ui-description.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-dialog.mjs +81 -81
- package/fesm2022/ng-nest-ui-dialog.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-doc.mjs +7 -7
- package/fesm2022/ng-nest-ui-doc.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-drag.mjs +10 -10
- package/fesm2022/ng-nest-ui-drag.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-drawer.mjs +42 -42
- package/fesm2022/ng-nest-ui-drawer.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-dropdown.mjs +49 -49
- package/fesm2022/ng-nest-ui-dropdown.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-empty.mjs +12 -12
- package/fesm2022/ng-nest-ui-empty.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-examples.mjs +7 -7
- package/fesm2022/ng-nest-ui-examples.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-find.mjs +79 -77
- package/fesm2022/ng-nest-ui-find.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-form.mjs +33 -33
- package/fesm2022/ng-nest-ui-form.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-highlight.mjs +20 -20
- package/fesm2022/ng-nest-ui-highlight.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-i18n.mjs +15 -15
- package/fesm2022/ng-nest-ui-i18n.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-icon.mjs +21 -21
- package/fesm2022/ng-nest-ui-icon.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-image.mjs +39 -39
- package/fesm2022/ng-nest-ui-image.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-inner.mjs +11 -11
- package/fesm2022/ng-nest-ui-inner.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-input-number.mjs +47 -42
- package/fesm2022/ng-nest-ui-input-number.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-input.mjs +106 -80
- package/fesm2022/ng-nest-ui-input.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-keyword.mjs +15 -15
- package/fesm2022/ng-nest-ui-keyword.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-layout.mjs +31 -31
- package/fesm2022/ng-nest-ui-layout.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-link.mjs +18 -18
- package/fesm2022/ng-nest-ui-link.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-list.mjs +80 -80
- package/fesm2022/ng-nest-ui-list.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-loading.mjs +22 -22
- package/fesm2022/ng-nest-ui-loading.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-menu.mjs +45 -45
- package/fesm2022/ng-nest-ui-menu.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-message-box.mjs +10 -10
- package/fesm2022/ng-nest-ui-message-box.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-message.mjs +10 -10
- package/fesm2022/ng-nest-ui-message.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-notification.mjs +10 -10
- package/fesm2022/ng-nest-ui-notification.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-outlet.mjs +9 -9
- package/fesm2022/ng-nest-ui-outlet.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-page-header.mjs +15 -15
- package/fesm2022/ng-nest-ui-page-header.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-pagination.mjs +53 -53
- package/fesm2022/ng-nest-ui-pagination.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-pattern.mjs +7 -7
- package/fesm2022/ng-nest-ui-pattern.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-popconfirm.mjs +27 -27
- package/fesm2022/ng-nest-ui-popconfirm.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-popover.mjs +38 -38
- package/fesm2022/ng-nest-ui-popover.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-portal.mjs +7 -7
- package/fesm2022/ng-nest-ui-portal.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-progress.mjs +38 -38
- package/fesm2022/ng-nest-ui-progress.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-radio.mjs +36 -36
- package/fesm2022/ng-nest-ui-radio.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-rate.mjs +30 -30
- package/fesm2022/ng-nest-ui-rate.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-resizable.mjs +16 -16
- package/fesm2022/ng-nest-ui-resizable.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-result.mjs +16 -16
- package/fesm2022/ng-nest-ui-result.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-ripple.mjs +13 -13
- package/fesm2022/ng-nest-ui-ripple.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-scrollable.mjs +219 -0
- package/fesm2022/ng-nest-ui-scrollable.mjs.map +1 -0
- package/fesm2022/ng-nest-ui-select.mjs +125 -110
- package/fesm2022/ng-nest-ui-select.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-skeleton.mjs +15 -15
- package/fesm2022/ng-nest-ui-skeleton.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-slider-select.mjs +54 -54
- package/fesm2022/ng-nest-ui-slider-select.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-slider.mjs +39 -39
- package/fesm2022/ng-nest-ui-slider.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-statistic.mjs +30 -30
- package/fesm2022/ng-nest-ui-statistic.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-steps.mjs +19 -19
- package/fesm2022/ng-nest-ui-steps.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-switch.mjs +26 -26
- package/fesm2022/ng-nest-ui-switch.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-table-view.mjs +593 -0
- package/fesm2022/ng-nest-ui-table-view.mjs.map +1 -0
- package/fesm2022/ng-nest-ui-table.mjs +222 -222
- package/fesm2022/ng-nest-ui-table.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-tabs.mjs +58 -58
- package/fesm2022/ng-nest-ui-tabs.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-tag.mjs +22 -22
- package/fesm2022/ng-nest-ui-tag.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-text-retract.mjs +15 -15
- package/fesm2022/ng-nest-ui-text-retract.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-textarea.mjs +45 -40
- package/fesm2022/ng-nest-ui-textarea.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-theme.mjs +23 -23
- package/fesm2022/ng-nest-ui-theme.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-time-ago.mjs +7 -7
- package/fesm2022/ng-nest-ui-time-ago.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-time-picker.mjs +113 -92
- package/fesm2022/ng-nest-ui-time-picker.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-time-range.mjs +7 -7
- package/fesm2022/ng-nest-ui-time-range.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-timeline.mjs +15 -15
- package/fesm2022/ng-nest-ui-timeline.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-tooltip.mjs +38 -38
- package/fesm2022/ng-nest-ui-tooltip.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-transfer.mjs +40 -40
- package/fesm2022/ng-nest-ui-transfer.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-tree-file.mjs +28 -28
- package/fesm2022/ng-nest-ui-tree-file.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-tree-select.mjs +147 -110
- package/fesm2022/ng-nest-ui-tree-select.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-tree.mjs +107 -107
- package/fesm2022/ng-nest-ui-tree.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-typography.mjs +13 -13
- package/fesm2022/ng-nest-ui-typography.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-upload.mjs +37 -37
- package/fesm2022/ng-nest-ui-upload.mjs.map +1 -1
- package/fesm2022/ng-nest-ui.mjs +2 -0
- package/fesm2022/ng-nest-ui.mjs.map +1 -1
- package/find/index.d.ts +5 -5
- package/form/index.d.ts +1 -1
- package/index.d.ts +2 -0
- package/input/index.d.ts +47 -5
- package/input-number/index.d.ts +22 -7
- package/list/index.d.ts +2 -2
- package/message-box/index.d.ts +4 -5
- package/package.json +28 -20
- package/radio/index.d.ts +4 -4
- package/rate/index.d.ts +5 -5
- package/scrollable/index.d.ts +49 -0
- package/select/index.d.ts +53 -8
- package/slider-select/index.d.ts +3 -3
- package/steps/index.d.ts +1 -2
- package/switch/index.d.ts +3 -3
- package/table-view/index.d.ts +148 -0
- package/textarea/index.d.ts +20 -5
- package/theme/index.d.ts +1 -1
- package/time-picker/index.d.ts +53 -8
- package/transfer/index.d.ts +1 -1
- package/tree-select/index.d.ts +70 -9
- package/upload/index.d.ts +2 -2
|
@@ -16,6 +16,7 @@ import { DOCUMENT, NgClass } from '@angular/common';
|
|
|
16
16
|
import * as i1 from '@angular/forms';
|
|
17
17
|
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
18
18
|
import { toObservable } from '@angular/core/rxjs-interop';
|
|
19
|
+
import { XOutletDirective } from '@ng-nest/ui/outlet';
|
|
19
20
|
|
|
20
21
|
/**
|
|
21
22
|
* Find
|
|
@@ -34,84 +35,84 @@ class XFindProperty extends XFormControlFunction(X_FIND_CONFIG_NAME) {
|
|
|
34
35
|
* @zh_CN 显示边框
|
|
35
36
|
* @en_US Display Border
|
|
36
37
|
*/
|
|
37
|
-
this.bordered = input(this.config?.bordered ?? true, { transform: XToBoolean });
|
|
38
|
+
this.bordered = input(this.config?.bordered ?? true, ...(ngDevMode ? [{ debugName: "bordered", transform: XToBoolean }] : [{ transform: XToBoolean }]));
|
|
38
39
|
/**
|
|
39
40
|
* @zh_CN 多选
|
|
40
41
|
* @en_US Multiple choice
|
|
41
42
|
*/
|
|
42
|
-
this.multiple = input(false, { transform: XToBoolean });
|
|
43
|
+
this.multiple = input(false, ...(ngDevMode ? [{ debugName: "multiple", transform: XToBoolean }] : [{ transform: XToBoolean }]));
|
|
43
44
|
/**
|
|
44
45
|
* @zh_CN 选中 label 名称字段
|
|
45
46
|
* @en_US Check the label name field
|
|
46
47
|
*/
|
|
47
|
-
this.columnLabel = input(this.config?.columnLabel ?? 'label');
|
|
48
|
+
this.columnLabel = input(this.config?.columnLabel ?? 'label', ...(ngDevMode ? [{ debugName: "columnLabel" }] : []));
|
|
48
49
|
/**
|
|
49
50
|
* @zh_CN 弹框标题
|
|
50
51
|
* @en_US Bullet title
|
|
51
52
|
*/
|
|
52
|
-
this.dialogTitle = input(this.config?.dialogTitle ?? '查找选择');
|
|
53
|
+
this.dialogTitle = input(this.config?.dialogTitle ?? '查找选择', ...(ngDevMode ? [{ debugName: "dialogTitle" }] : []));
|
|
53
54
|
/**
|
|
54
55
|
* @zh_CN 弹框表格选择列头名称
|
|
55
56
|
* @en_US Ball Form Select List Name
|
|
56
57
|
*/
|
|
57
|
-
this.dialogCheckboxLabel = input(this.config?.dialogCheckboxLabel ?? '选择');
|
|
58
|
+
this.dialogCheckboxLabel = input(this.config?.dialogCheckboxLabel ?? '选择', ...(ngDevMode ? [{ debugName: "dialogCheckboxLabel" }] : []));
|
|
58
59
|
/**
|
|
59
60
|
* @zh_CN 弹框表格选择列宽
|
|
60
61
|
* @en_US Ball Form Select List width
|
|
61
62
|
*/
|
|
62
|
-
this.dialogCheckboxWidth = input(this.config?.dialogCheckboxWidth ?? '60px', {
|
|
63
|
-
|
|
64
|
-
|
|
63
|
+
this.dialogCheckboxWidth = input(this.config?.dialogCheckboxWidth ?? '60px', ...(ngDevMode ? [{ debugName: "dialogCheckboxWidth", transform: XToCssPixelValue }] : [{
|
|
64
|
+
transform: XToCssPixelValue
|
|
65
|
+
}]));
|
|
65
66
|
/**
|
|
66
67
|
* @zh_CN 弹框选择数据为空的提示信息
|
|
67
68
|
* @en_US Ball box selection data empty prompt information
|
|
68
69
|
*/
|
|
69
|
-
this.dialogEmptyContent = input(this.config?.dialogEmptyContent ?? '请选择数据');
|
|
70
|
+
this.dialogEmptyContent = input(this.config?.dialogEmptyContent ?? '请选择数据', ...(ngDevMode ? [{ debugName: "dialogEmptyContent" }] : []));
|
|
70
71
|
/**
|
|
71
72
|
* @zh_CN 弹框宽度
|
|
72
73
|
* @en_US Bullet frame width
|
|
73
74
|
*/
|
|
74
|
-
this.dialogWidth = input('', { transform: XToCssPixelValue });
|
|
75
|
+
this.dialogWidth = input('', ...(ngDevMode ? [{ debugName: "dialogWidth", transform: XToCssPixelValue }] : [{ transform: XToCssPixelValue }]));
|
|
75
76
|
/**
|
|
76
77
|
* @zh_CN 弹框高度
|
|
77
78
|
* @en_US Height of bullet frame
|
|
78
79
|
*/
|
|
79
|
-
this.dialogHeight = input('', { transform: XToCssPixelValue });
|
|
80
|
+
this.dialogHeight = input('', ...(ngDevMode ? [{ debugName: "dialogHeight", transform: XToCssPixelValue }] : [{ transform: XToCssPixelValue }]));
|
|
80
81
|
/**
|
|
81
82
|
* @zh_CN 弹框显示,隐藏
|
|
82
83
|
* @en_US Bullet box display, hide
|
|
83
84
|
*/
|
|
84
|
-
this.dialogVisible = model(false);
|
|
85
|
+
this.dialogVisible = model(false, ...(ngDevMode ? [{ debugName: "dialogVisible" }] : []));
|
|
85
86
|
/**
|
|
86
87
|
* @zh_CN 按钮居中
|
|
87
88
|
* @en_US Button centered
|
|
88
89
|
*/
|
|
89
|
-
this.dialogButtonsCenter = input(false, { transform: XToBoolean });
|
|
90
|
+
this.dialogButtonsCenter = input(false, ...(ngDevMode ? [{ debugName: "dialogButtonsCenter", transform: XToBoolean }] : [{ transform: XToBoolean }]));
|
|
90
91
|
/**
|
|
91
92
|
* @zh_CN 表格行数据
|
|
92
93
|
* @en_US Table row data
|
|
93
94
|
*/
|
|
94
|
-
this.tableData = input([], { transform: XToDataConvert });
|
|
95
|
+
this.tableData = input([], ...(ngDevMode ? [{ debugName: "tableData", transform: XToDataConvert }] : [{ transform: XToDataConvert }]));
|
|
95
96
|
/**
|
|
96
97
|
* @zh_CN 表格页码
|
|
97
98
|
* @en_US Table page number
|
|
98
99
|
*/
|
|
99
|
-
this.tableIndex = model(this.config?.tableIndex ?? 1);
|
|
100
|
+
this.tableIndex = model(this.config?.tableIndex ?? 1, ...(ngDevMode ? [{ debugName: "tableIndex" }] : []));
|
|
100
101
|
/**
|
|
101
102
|
* @zh_CN 表每页数据条数
|
|
102
103
|
* @en_US Number of data items per page
|
|
103
104
|
*/
|
|
104
|
-
this.tableSize = model(this.config?.tableSize ?? 10);
|
|
105
|
+
this.tableSize = model(this.config?.tableSize ?? 10, ...(ngDevMode ? [{ debugName: "tableSize" }] : []));
|
|
105
106
|
/**
|
|
106
107
|
* @zh_CN 表格查询条件
|
|
107
108
|
* @en_US Number of data items per page
|
|
108
109
|
*/
|
|
109
|
-
this.tableQuery = model({});
|
|
110
|
+
this.tableQuery = model({}, ...(ngDevMode ? [{ debugName: "tableQuery" }] : []));
|
|
110
111
|
/**
|
|
111
112
|
* @zh_CN 表格数据总条数
|
|
112
113
|
* @en_US Total number of table data
|
|
113
114
|
*/
|
|
114
|
-
this.tableTotal = model(0);
|
|
115
|
+
this.tableTotal = model(0, ...(ngDevMode ? [{ debugName: "tableTotal" }] : []));
|
|
115
116
|
/**
|
|
116
117
|
* @zh_CN 排序点击的事件
|
|
117
118
|
* @en_US Sort click events
|
|
@@ -121,12 +122,12 @@ class XFindProperty extends XFormControlFunction(X_FIND_CONFIG_NAME) {
|
|
|
121
122
|
* @zh_CN 表格列参数
|
|
122
123
|
* @en_US Table column parameters
|
|
123
124
|
*/
|
|
124
|
-
this.tableColumns = input([]);
|
|
125
|
+
this.tableColumns = input([], ...(ngDevMode ? [{ debugName: "tableColumns" }] : []));
|
|
125
126
|
/**
|
|
126
127
|
* @zh_CN 当前选中行数据
|
|
127
128
|
* @en_US Currently selected row data
|
|
128
129
|
*/
|
|
129
|
-
this.tableActivatedRow = model();
|
|
130
|
+
this.tableActivatedRow = model(...(ngDevMode ? [undefined, { debugName: "tableActivatedRow" }] : []));
|
|
130
131
|
/**
|
|
131
132
|
* @zh_CN 表格行点击事件
|
|
132
133
|
* @en_US Table row click event
|
|
@@ -136,139 +137,139 @@ class XFindProperty extends XFormControlFunction(X_FIND_CONFIG_NAME) {
|
|
|
136
137
|
* @zh_CN 表格行点击事件
|
|
137
138
|
* @en_US Table row click event
|
|
138
139
|
*/
|
|
139
|
-
this.tableCheckedRow = model({});
|
|
140
|
+
this.tableCheckedRow = model({}, ...(ngDevMode ? [{ debugName: "tableCheckedRow" }] : []));
|
|
140
141
|
/**
|
|
141
142
|
* @zh_CN 是否启用加载 loading
|
|
142
143
|
* @en_US Whether to enable loading loading
|
|
143
144
|
*/
|
|
144
|
-
this.tableLoading = input(this.config?.tableLoading ?? false, { transform: XToBoolean });
|
|
145
|
+
this.tableLoading = input(this.config?.tableLoading ?? false, ...(ngDevMode ? [{ debugName: "tableLoading", transform: XToBoolean }] : [{ transform: XToBoolean }]));
|
|
145
146
|
/**
|
|
146
147
|
* @zh_CN 表格开启虚拟滚动
|
|
147
148
|
* @en_US Table opens virtual scrolling
|
|
148
149
|
*/
|
|
149
|
-
this.tableVirtualScroll = input(this.config?.tableVirtualScroll ?? false, {
|
|
150
|
-
|
|
151
|
-
|
|
150
|
+
this.tableVirtualScroll = input(this.config?.tableVirtualScroll ?? false, ...(ngDevMode ? [{ debugName: "tableVirtualScroll", transform: XToBoolean }] : [{
|
|
151
|
+
transform: XToBoolean
|
|
152
|
+
}]));
|
|
152
153
|
/**
|
|
153
154
|
* @zh_CN 表格滚动区域高宽
|
|
154
155
|
* @en_US table height and width of rolling area
|
|
155
156
|
*/
|
|
156
|
-
this.tableScroll = input();
|
|
157
|
+
this.tableScroll = input(...(ngDevMode ? [undefined, { debugName: "tableScroll" }] : []));
|
|
157
158
|
/**
|
|
158
159
|
* @zh_CN 表格 body 数据高度
|
|
159
160
|
* @en_US Table body data height
|
|
160
161
|
*/
|
|
161
|
-
this.tableBodyHeight = input(null, { transform: XToNumber });
|
|
162
|
+
this.tableBodyHeight = input(null, ...(ngDevMode ? [{ debugName: "tableBodyHeight", transform: XToNumber }] : [{ transform: XToNumber }]));
|
|
162
163
|
/**
|
|
163
164
|
* @zh_CN 表格超出可视窗口缓冲区的最小值,对应 cdk scroll 中的参数
|
|
164
165
|
* @en_US The table exceeds the minimum value of the visible window buffer, corresponding to the parameters in cdk scroll
|
|
165
166
|
*/
|
|
166
|
-
this.tableMinBufferPx = input(100, { transform: XToNumber });
|
|
167
|
+
this.tableMinBufferPx = input(100, ...(ngDevMode ? [{ debugName: "tableMinBufferPx", transform: XToNumber }] : [{ transform: XToNumber }]));
|
|
167
168
|
/**
|
|
168
169
|
* @zh_CN 表格渲染新数据缓冲区的像素,对应 cdk scroll 中的参数
|
|
169
170
|
* @en_US The pixels of the new data buffer for the table rendering, corresponding to the parameters in cdk scroll
|
|
170
171
|
*/
|
|
171
|
-
this.tableMaxBufferPx = input(200, { transform: XToNumber });
|
|
172
|
+
this.tableMaxBufferPx = input(200, ...(ngDevMode ? [{ debugName: "tableMaxBufferPx", transform: XToNumber }] : [{ transform: XToNumber }]));
|
|
172
173
|
/**
|
|
173
174
|
* @zh_CN 表格自适应高度,table 高度等于屏幕高度减掉此处设置的数值
|
|
174
175
|
* @en_US Table adaptive height, table height is equal to the screen height minus the value set here
|
|
175
176
|
*/
|
|
176
|
-
this.tableAdaptionHeight = input(null, { transform: XToNumber });
|
|
177
|
+
this.tableAdaptionHeight = input(null, ...(ngDevMode ? [{ debugName: "tableAdaptionHeight", transform: XToNumber }] : [{ transform: XToNumber }]));
|
|
177
178
|
/**
|
|
178
179
|
* @zh_CN 表格文档高度百分比,弹窗百分比高度用到
|
|
179
180
|
* @en_US Table document height percentage, used for pop-up window percentage height
|
|
180
181
|
*/
|
|
181
|
-
this.tableDocPercent = input(1, { transform: XToNumber });
|
|
182
|
+
this.tableDocPercent = input(1, ...(ngDevMode ? [{ debugName: "tableDocPercent", transform: XToNumber }] : [{ transform: XToNumber }]));
|
|
182
183
|
/**
|
|
183
184
|
* @zh_CN 表格行高度,单位 px
|
|
184
185
|
* @en_US Table row height, unit px
|
|
185
186
|
*/
|
|
186
|
-
this.tableRowHeight = input(this.config?.tableRowHeight ?? 42, { transform: XToNumber });
|
|
187
|
+
this.tableRowHeight = input(this.config?.tableRowHeight ?? 42, ...(ngDevMode ? [{ debugName: "tableRowHeight", transform: XToNumber }] : [{ transform: XToNumber }]));
|
|
187
188
|
/**
|
|
188
189
|
* @zh_CN 树节点数据
|
|
189
190
|
* @en_US Tree node data
|
|
190
191
|
*/
|
|
191
|
-
this.treeData = input([], { transform: XToDataConvert });
|
|
192
|
+
this.treeData = input([], ...(ngDevMode ? [{ debugName: "treeData", transform: XToDataConvert }] : [{ transform: XToDataConvert }]));
|
|
192
193
|
/**
|
|
193
194
|
* @zh_CN 树当前激活的节点 Id
|
|
194
195
|
* @en_US Id of the currently active node of the tree
|
|
195
196
|
*/
|
|
196
|
-
this.treeActivatedId = model();
|
|
197
|
+
this.treeActivatedId = model(...(ngDevMode ? [undefined, { debugName: "treeActivatedId" }] : []));
|
|
197
198
|
/**
|
|
198
199
|
* @zh_CN 树默认展开的层级
|
|
199
200
|
* @en_US The level of the tree expanded by default
|
|
200
201
|
*/
|
|
201
|
-
this.treeExpandedLevel = input(this.config?.treeExpandedLevel ?? 0, { transform: XToNumber });
|
|
202
|
+
this.treeExpandedLevel = input(this.config?.treeExpandedLevel ?? 0, ...(ngDevMode ? [{ debugName: "treeExpandedLevel", transform: XToNumber }] : [{ transform: XToNumber }]));
|
|
202
203
|
/**
|
|
203
204
|
* @zh_CN 树 checkbox 选中的节点
|
|
204
205
|
* @en_US Tree checkbox selected node
|
|
205
206
|
*/
|
|
206
|
-
this.treeChecked = model([]);
|
|
207
|
+
this.treeChecked = model([], ...(ngDevMode ? [{ debugName: "treeChecked" }] : []));
|
|
207
208
|
/**
|
|
208
209
|
* @zh_CN 树显示多选框
|
|
209
210
|
* @en_US Tree display checkbox
|
|
210
211
|
*/
|
|
211
|
-
this.treeCheckbox = input(false, { transform: XToBoolean });
|
|
212
|
+
this.treeCheckbox = input(false, ...(ngDevMode ? [{ debugName: "treeCheckbox", transform: XToBoolean }] : [{ transform: XToBoolean }]));
|
|
212
213
|
/**
|
|
213
214
|
* @zh_CN 树和表格同时存在的时候,树节点 id 对应表格的属性,用来做表格数据过滤
|
|
214
215
|
* @en_US When the tree and the table exist at the same time, the tree node id corresponds to the attribute of the table, which is used to filter the table data
|
|
215
216
|
*/
|
|
216
|
-
this.treeTableConnect = input();
|
|
217
|
+
this.treeTableConnect = input(...(ngDevMode ? [undefined, { debugName: "treeTableConnect" }] : []));
|
|
217
218
|
/**
|
|
218
219
|
* @zh_CN 数据查询过滤表单
|
|
219
220
|
* @en_US form for data filter
|
|
220
221
|
*/
|
|
221
|
-
this.search = model(null);
|
|
222
|
+
this.search = model(null, ...(ngDevMode ? [{ debugName: "search" }] : []));
|
|
222
223
|
/**
|
|
223
224
|
* @zh_CN 尺寸
|
|
224
225
|
* @en_US Size
|
|
225
226
|
*/
|
|
226
|
-
this.size = input(this.config?.size ?? 'medium');
|
|
227
|
+
this.size = input(this.config?.size ?? 'medium', ...(ngDevMode ? [{ debugName: "size" }] : []));
|
|
227
228
|
/**
|
|
228
229
|
* @zh_CN 标签
|
|
229
230
|
* @en_US Label
|
|
230
231
|
*/
|
|
231
|
-
this.label = input('');
|
|
232
|
+
this.label = input('', ...(ngDevMode ? [{ debugName: "label" }] : []));
|
|
232
233
|
/**
|
|
233
234
|
* @zh_CN 标签宽度
|
|
234
235
|
* @en_US Label width
|
|
235
236
|
*/
|
|
236
|
-
this.labelWidth = input('', { transform: XToCssPixelValue });
|
|
237
|
+
this.labelWidth = input('', ...(ngDevMode ? [{ debugName: "labelWidth", transform: XToCssPixelValue }] : [{ transform: XToCssPixelValue }]));
|
|
237
238
|
/**
|
|
238
239
|
* @zh_CN 标签文字对齐方式
|
|
239
240
|
* @en_US Label text alignment method
|
|
240
241
|
*/
|
|
241
|
-
this.labelAlign = input('start');
|
|
242
|
+
this.labelAlign = input('start', ...(ngDevMode ? [{ debugName: "labelAlign" }] : []));
|
|
242
243
|
/**
|
|
243
244
|
* @zh_CN flex 布局下的子元素水平排列方式
|
|
244
245
|
* @en_US The level of sub-element level arrangement under flex layout
|
|
245
246
|
*/
|
|
246
|
-
this.justify = input('start');
|
|
247
|
+
this.justify = input('start', ...(ngDevMode ? [{ debugName: "justify" }] : []));
|
|
247
248
|
/**
|
|
248
249
|
* @zh_CN flex 布局下的子元素垂直排列方式
|
|
249
250
|
* @en_US sub-element vertical arrangement method under flex layout
|
|
250
251
|
*/
|
|
251
|
-
this.align = input('start');
|
|
252
|
+
this.align = input('start', ...(ngDevMode ? [{ debugName: "align" }] : []));
|
|
252
253
|
/**
|
|
253
254
|
* @zh_CN flex 布局下的子元素排列方向
|
|
254
255
|
* @en_US The direction of the sub-element arrangement under flex layout
|
|
255
256
|
*/
|
|
256
|
-
this.direction = input('column');
|
|
257
|
+
this.direction = input('column', ...(ngDevMode ? [{ debugName: "direction" }] : []));
|
|
257
258
|
/**
|
|
258
259
|
* @zh_CN 禁用
|
|
259
260
|
* @en_US Disabled
|
|
260
261
|
*/
|
|
261
|
-
this.disabled = input(false, { transform: XToBoolean });
|
|
262
|
+
this.disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled", transform: XToBoolean }] : [{ transform: XToBoolean }]));
|
|
262
263
|
/**
|
|
263
264
|
* @zh_CN 必填
|
|
264
265
|
* @en_US Required
|
|
265
266
|
*/
|
|
266
|
-
this.required = input(false, { transform: XToBoolean });
|
|
267
|
+
this.required = input(false, ...(ngDevMode ? [{ debugName: "required", transform: XToBoolean }] : [{ transform: XToBoolean }]));
|
|
267
268
|
}
|
|
268
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
269
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.
|
|
269
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: XFindProperty, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
270
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.2.4", type: XFindProperty, isStandalone: true, selector: "x-find-property", inputs: { bordered: { classPropertyName: "bordered", publicName: "bordered", isSignal: true, isRequired: false, transformFunction: null }, multiple: { classPropertyName: "multiple", publicName: "multiple", isSignal: true, isRequired: false, transformFunction: null }, columnLabel: { classPropertyName: "columnLabel", publicName: "columnLabel", isSignal: true, isRequired: false, transformFunction: null }, dialogTitle: { classPropertyName: "dialogTitle", publicName: "dialogTitle", isSignal: true, isRequired: false, transformFunction: null }, dialogCheckboxLabel: { classPropertyName: "dialogCheckboxLabel", publicName: "dialogCheckboxLabel", isSignal: true, isRequired: false, transformFunction: null }, dialogCheckboxWidth: { classPropertyName: "dialogCheckboxWidth", publicName: "dialogCheckboxWidth", isSignal: true, isRequired: false, transformFunction: null }, dialogEmptyContent: { classPropertyName: "dialogEmptyContent", publicName: "dialogEmptyContent", isSignal: true, isRequired: false, transformFunction: null }, dialogWidth: { classPropertyName: "dialogWidth", publicName: "dialogWidth", isSignal: true, isRequired: false, transformFunction: null }, dialogHeight: { classPropertyName: "dialogHeight", publicName: "dialogHeight", isSignal: true, isRequired: false, transformFunction: null }, dialogVisible: { classPropertyName: "dialogVisible", publicName: "dialogVisible", isSignal: true, isRequired: false, transformFunction: null }, dialogButtonsCenter: { classPropertyName: "dialogButtonsCenter", publicName: "dialogButtonsCenter", isSignal: true, isRequired: false, transformFunction: null }, tableData: { classPropertyName: "tableData", publicName: "tableData", isSignal: true, isRequired: false, transformFunction: null }, tableIndex: { classPropertyName: "tableIndex", publicName: "tableIndex", isSignal: true, isRequired: false, transformFunction: null }, tableSize: { classPropertyName: "tableSize", publicName: "tableSize", isSignal: true, isRequired: false, transformFunction: null }, tableQuery: { classPropertyName: "tableQuery", publicName: "tableQuery", isSignal: true, isRequired: false, transformFunction: null }, tableTotal: { classPropertyName: "tableTotal", publicName: "tableTotal", isSignal: true, isRequired: false, transformFunction: null }, tableColumns: { classPropertyName: "tableColumns", publicName: "tableColumns", isSignal: true, isRequired: false, transformFunction: null }, tableActivatedRow: { classPropertyName: "tableActivatedRow", publicName: "tableActivatedRow", isSignal: true, isRequired: false, transformFunction: null }, tableCheckedRow: { classPropertyName: "tableCheckedRow", publicName: "tableCheckedRow", isSignal: true, isRequired: false, transformFunction: null }, tableLoading: { classPropertyName: "tableLoading", publicName: "tableLoading", isSignal: true, isRequired: false, transformFunction: null }, tableVirtualScroll: { classPropertyName: "tableVirtualScroll", publicName: "tableVirtualScroll", isSignal: true, isRequired: false, transformFunction: null }, tableScroll: { classPropertyName: "tableScroll", publicName: "tableScroll", isSignal: true, isRequired: false, transformFunction: null }, tableBodyHeight: { classPropertyName: "tableBodyHeight", publicName: "tableBodyHeight", isSignal: true, isRequired: false, transformFunction: null }, tableMinBufferPx: { classPropertyName: "tableMinBufferPx", publicName: "tableMinBufferPx", isSignal: true, isRequired: false, transformFunction: null }, tableMaxBufferPx: { classPropertyName: "tableMaxBufferPx", publicName: "tableMaxBufferPx", isSignal: true, isRequired: false, transformFunction: null }, tableAdaptionHeight: { classPropertyName: "tableAdaptionHeight", publicName: "tableAdaptionHeight", isSignal: true, isRequired: false, transformFunction: null }, tableDocPercent: { classPropertyName: "tableDocPercent", publicName: "tableDocPercent", isSignal: true, isRequired: false, transformFunction: null }, tableRowHeight: { classPropertyName: "tableRowHeight", publicName: "tableRowHeight", isSignal: true, isRequired: false, transformFunction: null }, treeData: { classPropertyName: "treeData", publicName: "treeData", isSignal: true, isRequired: false, transformFunction: null }, treeActivatedId: { classPropertyName: "treeActivatedId", publicName: "treeActivatedId", isSignal: true, isRequired: false, transformFunction: null }, treeExpandedLevel: { classPropertyName: "treeExpandedLevel", publicName: "treeExpandedLevel", isSignal: true, isRequired: false, transformFunction: null }, treeChecked: { classPropertyName: "treeChecked", publicName: "treeChecked", isSignal: true, isRequired: false, transformFunction: null }, treeCheckbox: { classPropertyName: "treeCheckbox", publicName: "treeCheckbox", isSignal: true, isRequired: false, transformFunction: null }, treeTableConnect: { classPropertyName: "treeTableConnect", publicName: "treeTableConnect", isSignal: true, isRequired: false, transformFunction: null }, search: { classPropertyName: "search", publicName: "search", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, labelWidth: { classPropertyName: "labelWidth", publicName: "labelWidth", isSignal: true, isRequired: false, transformFunction: null }, labelAlign: { classPropertyName: "labelAlign", publicName: "labelAlign", isSignal: true, isRequired: false, transformFunction: null }, justify: { classPropertyName: "justify", publicName: "justify", isSignal: true, isRequired: false, transformFunction: null }, align: { classPropertyName: "align", publicName: "align", isSignal: true, isRequired: false, transformFunction: null }, direction: { classPropertyName: "direction", publicName: "direction", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { dialogVisible: "dialogVisibleChange", tableIndex: "tableIndexChange", tableSize: "tableSizeChange", tableQuery: "tableQueryChange", tableTotal: "tableTotalChange", tableSortChange: "tableSortChange", tableActivatedRow: "tableActivatedRowChange", tableRowEmit: "tableRowEmit", tableCheckedRow: "tableCheckedRowChange", treeActivatedId: "treeActivatedIdChange", treeChecked: "treeCheckedChange", search: "searchChange" }, usesInheritance: true, ngImport: i0, template: '', isInline: true }); }
|
|
270
271
|
}
|
|
271
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
272
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: XFindProperty, decorators: [{
|
|
272
273
|
type: Component,
|
|
273
274
|
args: [{ selector: `${XFindPrefix}-property`, template: '' }]
|
|
274
275
|
}] });
|
|
@@ -278,11 +279,11 @@ class XFindComponent extends XFindProperty {
|
|
|
278
279
|
super(...arguments);
|
|
279
280
|
this.find = viewChild.required('find');
|
|
280
281
|
this.dialogCom = viewChild.required('dialogCom');
|
|
281
|
-
this.tableCom = viewChild('tableCom');
|
|
282
|
-
this.treeCom = viewChild('treeCom');
|
|
282
|
+
this.tableCom = viewChild('tableCom', ...(ngDevMode ? [{ debugName: "tableCom" }] : []));
|
|
283
|
+
this.treeCom = viewChild('treeCom', ...(ngDevMode ? [{ debugName: "treeCom" }] : []));
|
|
283
284
|
this.buttonCom = viewChild.required('buttonCom');
|
|
284
|
-
this.tableRef = viewChild('tableRef');
|
|
285
|
-
this.treeRef = viewChild('treeRef');
|
|
285
|
+
this.tableRef = viewChild('tableRef', ...(ngDevMode ? [{ debugName: "tableRef" }] : []));
|
|
286
|
+
this.treeRef = viewChild('treeRef', ...(ngDevMode ? [{ debugName: "treeRef" }] : []));
|
|
286
287
|
this.tableRefChanged = toObservable(this.tableRef)
|
|
287
288
|
.pipe(tap((x) => x && this.multiple() && this.setSubscribe()))
|
|
288
289
|
.subscribe();
|
|
@@ -312,15 +313,15 @@ class XFindComponent extends XFindProperty {
|
|
|
312
313
|
}
|
|
313
314
|
}
|
|
314
315
|
return this.tableColumns();
|
|
315
|
-
});
|
|
316
|
-
this.getEmpty = computed(() => !this.temp() || this.temp().length === 0);
|
|
317
|
-
this.hasTable = computed(() => this.tableColumns().length > 0);
|
|
316
|
+
}, ...(ngDevMode ? [{ debugName: "tableColumnsSignal" }] : []));
|
|
317
|
+
this.getEmpty = computed(() => !this.temp() || this.temp().length === 0, ...(ngDevMode ? [{ debugName: "getEmpty" }] : []));
|
|
318
|
+
this.hasTable = computed(() => this.tableColumns().length > 0, ...(ngDevMode ? [{ debugName: "hasTable" }] : []));
|
|
318
319
|
this.hasTree = computed(() => (Array.isArray(this.treeData()) && this.treeData().length > 0) ||
|
|
319
320
|
this.treeData() instanceof Function ||
|
|
320
|
-
this.treeData() instanceof Observable);
|
|
321
|
-
this.hasTreeTable = computed(() => this.hasTable() && this.hasTree());
|
|
322
|
-
this.hasTreeMultiple = computed(() => this.hasTree() && !this.hasTreeTable() && this.multiple());
|
|
323
|
-
this.hasSearch = computed(() => this.search() && this.hasTable());
|
|
321
|
+
this.treeData() instanceof Observable, ...(ngDevMode ? [{ debugName: "hasTree" }] : []));
|
|
322
|
+
this.hasTreeTable = computed(() => this.hasTable() && this.hasTree(), ...(ngDevMode ? [{ debugName: "hasTreeTable" }] : []));
|
|
323
|
+
this.hasTreeMultiple = computed(() => this.hasTree() && !this.hasTreeTable() && this.multiple(), ...(ngDevMode ? [{ debugName: "hasTreeMultiple" }] : []));
|
|
324
|
+
this.hasSearch = computed(() => this.search() && this.hasTable(), ...(ngDevMode ? [{ debugName: "hasSearch" }] : []));
|
|
324
325
|
this.dialogWidthSignal = computed(() => {
|
|
325
326
|
if (XIsUndefined(this.dialogWidth())) {
|
|
326
327
|
if ((this.hasTable() && this.hasTree()) || this.hasTable()) {
|
|
@@ -334,21 +335,21 @@ class XFindComponent extends XFindProperty {
|
|
|
334
335
|
}
|
|
335
336
|
}
|
|
336
337
|
return this.dialogWidth();
|
|
337
|
-
});
|
|
338
|
-
this.temp = signal(undefined);
|
|
339
|
-
this.height = signal(100);
|
|
338
|
+
}, ...(ngDevMode ? [{ debugName: "dialogWidthSignal" }] : []));
|
|
339
|
+
this.temp = signal(undefined, ...(ngDevMode ? [{ debugName: "temp" }] : []));
|
|
340
|
+
this.height = signal(100, ...(ngDevMode ? [{ debugName: "height" }] : []));
|
|
340
341
|
this.unSubject = new Subject();
|
|
341
342
|
this.document = inject(DOCUMENT);
|
|
342
|
-
this.fontSize = computed(() => parseFloat(XComputedStyle(this.document.documentElement, 'font-size')));
|
|
343
|
+
this.fontSize = computed(() => parseFloat(XComputedStyle(this.document.documentElement, 'font-size')), ...(ngDevMode ? [{ debugName: "fontSize" }] : []));
|
|
343
344
|
this.classMap = computed(() => ({
|
|
344
345
|
[`${XFindPrefix}-${this.size()}`]: !!this.size(),
|
|
345
346
|
[`x-justify-${this.justify()}`]: !!this.justify(),
|
|
346
347
|
[`x-align-${this.align()}`]: !!this.align(),
|
|
347
348
|
[`x-direction-${this.direction()}`]: !!this.direction()
|
|
348
|
-
}));
|
|
349
|
+
}), ...(ngDevMode ? [{ debugName: "classMap" }] : []));
|
|
349
350
|
this.labelMapSignal = computed(() => ({
|
|
350
351
|
[`x-text-align-${this.labelAlign()}`]: !!this.labelAlign()
|
|
351
|
-
}));
|
|
352
|
+
}), ...(ngDevMode ? [{ debugName: "labelMapSignal" }] : []));
|
|
352
353
|
}
|
|
353
354
|
ngOnChanges(simples) {
|
|
354
355
|
const { tableData } = simples;
|
|
@@ -565,10 +566,10 @@ class XFindComponent extends XFindProperty {
|
|
|
565
566
|
this.tableQuery.set(tableQuery);
|
|
566
567
|
this.tableCom().change(1);
|
|
567
568
|
}
|
|
568
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
569
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.0.0", type: XFindComponent, isStandalone: true, selector: "x-find", providers: [XValueAccessor(XFindComponent)], viewQueries: [{ propertyName: "find", first: true, predicate: ["find"], descendants: true, isSignal: true }, { propertyName: "dialogCom", first: true, predicate: ["dialogCom"], descendants: true, isSignal: true }, { propertyName: "tableCom", first: true, predicate: ["tableCom"], descendants: true, isSignal: true }, { propertyName: "treeCom", first: true, predicate: ["treeCom"], descendants: true, isSignal: true }, { propertyName: "buttonCom", first: true, predicate: ["buttonCom"], descendants: true, isSignal: true }, { propertyName: "tableRef", first: true, predicate: ["tableRef"], descendants: true, isSignal: true }, { propertyName: "treeRef", first: true, predicate: ["treeRef"], descendants: true, isSignal: true }], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "<div\r\n #find\r\n class=\"x-find\"\r\n [class.x-flex]=\"justify() || align() || direction()\"\r\n [class.x-checked]=\"value()\"\r\n [class.x-disabled]=\"disabledComputed()\"\r\n [class.x-required]=\"requiredIsEmpty()\"\r\n [class.x-invalid]=\"invalid()\"\r\n [ngClass]=\"classMap()\"\r\n>\r\n @if (label()) {\r\n <label\r\n [class.x-find-label-required]=\"requiredComputed()\"\r\n [style.width]=\"labelWidth()\"\r\n [ngClass]=\"labelMapSignal()\"\r\n >{{ label() }}</label\r\n >\r\n }\r\n <div class=\"x-find-row\">\r\n <x-button\r\n #buttonCom\r\n icon=\"fto-search\"\r\n [onlyIcon]=\"!bordered()\"\r\n [size]=\"size()\"\r\n [disabled]=\"disabledComputed()\"\r\n attrType=\"button\"\r\n (click)=\"showModal()\"\r\n flat\r\n plain\r\n ></x-button>\r\n <div class=\"x-find-tags\">\r\n @if (multiple()) {\r\n @for (item of value(); track item.id; let i = $index) {\r\n <x-tag\r\n closable\r\n [size]=\"size()\"\r\n [bordered]=\"bordered()\"\r\n [disabled]=\"disabledComputed()\"\r\n (close)=\"tagClose(i)\"\r\n >{{ item[columnLabel()] }}</x-tag\r\n >\r\n }\r\n } @else if (value()) {\r\n <x-tag closable [disabled]=\"disabledComputed()\" [bordered]=\"bordered()\" [size]=\"size()\" (close)=\"tagClose()\">{{\r\n value()[columnLabel()]\r\n }}</x-tag>\r\n }\r\n </div>\r\n </div>\r\n</div>\r\n\r\n<x-dialog\r\n #dialogCom\r\n [title]=\"dialogTitle()\"\r\n [width]=\"dialogWidthSignal()\"\r\n [height]=\"dialogHeight()\"\r\n [buttonsCenter]=\"dialogButtonsCenter()\"\r\n [className]=\"'x-find-dialog-container'\"\r\n [(visible)]=\"dialogVisible\"\r\n (closeDone)=\"dialogCloseDone()\"\r\n (confirm)=\"sure()\"\r\n>\r\n <div class=\"x-find-dialog\" [class.x-find-dialog-tree-table]=\"hasTable() && hasTree()\">\r\n @if (hasTree()) {\r\n <div class=\"x-find-dialog-tree\" #treeRef [style.height.px]=\"hasTreeTable() && multiple() && height()\">\r\n <x-tree\r\n #treeCom\r\n [data]=\"treeData()\"\r\n [nodeHeight]=\"'1.8rem'\"\r\n [(manual)]=\"dialogVisible\"\r\n [activatedId]=\"treeActivatedId()\"\r\n [expandedLevel]=\"treeExpandedLevel()\"\r\n (activatedChange)=\"treeActivatedClick($event)\"\r\n [checkbox]=\"hasTreeMultiple() || treeCheckbox()\"\r\n [(checked)]=\"treeChecked\"\r\n (checkboxChange)=\"treeCheckboxChange($event)\"\r\n [levelCheck]=\"!hasTreeMultiple()\"\r\n ></x-tree>\r\n </div>\r\n }\r\n @if (hasTable()) {\r\n <div class=\"x-find-dialog-table\" #tableRef>\r\n @if (hasSearch()) {\r\n <div class=\"x-find-search\">\r\n <x-input\r\n [label]=\"search()!.label!\"\r\n direction=\"row\"\r\n (xKeydown)=\"searchKeyDown($event)\"\r\n [(ngModel)]=\"search()!.value\"\r\n ></x-input>\r\n <x-button plain text (click)=\"searchClick()\">{{ search()!.button || '\u67E5\u8BE2' }}</x-button>\r\n </div>\r\n }\r\n <x-table\r\n #tableCom\r\n [data]=\"tableData()\"\r\n [columns]=\"tableColumnsSignal()\"\r\n [(manual)]=\"dialogVisible\"\r\n [(index)]=\"tableIndex\"\r\n [(size)]=\"tableSize\"\r\n [(query)]=\"tableQuery\"\r\n [(total)]=\"tableTotal\"\r\n [allowSelectRow]=\"!multiple()\"\r\n [allowCheckRow]=\"multiple()\"\r\n [checkedRow]=\"tableCheckedRow()\"\r\n [loading]=\"tableLoading()\"\r\n (sortChange)=\"tableSortChange.emit($event)\"\r\n [(activatedRow)]=\"tableActivatedRow\"\r\n (activatedRowChange)=\"tableActivatedRowChange($event!)\"\r\n [rowHeight]=\"tableRowHeight()\"\r\n [bodyHeight]=\"tableBodyHeight()!\"\r\n [virtualScroll]=\"tableVirtualScroll()\"\r\n [scroll]=\"tableScroll()\"\r\n [minBufferPx]=\"tableMinBufferPx()\"\r\n [maxBufferPx]=\"tableMaxBufferPx()\"\r\n [adaptionHeight]=\"tableAdaptionHeight()!\"\r\n [docPercent]=\"tableDocPercent()\"\r\n (rowClick)=\"tableRowEmit.emit($event)\"\r\n ></x-table>\r\n </div>\r\n }\r\n @if (multiple()) {\r\n <div class=\"x-find-dialog-checked\" [class.x-find-empty]=\"getEmpty()\" [style.height.px]=\"height()\">\r\n @if (getEmpty()) {\r\n <x-empty [content]=\"dialogEmptyContent()\"></x-empty>\r\n }\r\n <div class=\"x-find-dialog-tags\">\r\n @for (item of temp(); track item.id; let i = $index) {\r\n <x-tag closable (close)=\"tempClose(i, item)\">\r\n <span>{{ item[columnLabel()] }}</span>\r\n </x-tag>\r\n }\r\n </div>\r\n </div>\r\n }\r\n </div>\r\n</x-dialog>\r\n\r\n<ng-template #treeLabelTpl let-node=\"$node\">\r\n <div class=\"x-find-dialog-tree-node\">\r\n <span>{{ node.label }} </span>\r\n @if (node.$checked) {\r\n <x-icon type=\"fto-check\"></x-icon>\r\n }\r\n </div>\r\n</ng-template>\r\n", styles: ["@charset \"UTF-8\";.x-find{margin:0;padding:0}.x-find{width:100%}.x-find.x-flex{display:flex}.x-find.x-justify-start{justify-content:flex-start}.x-find.x-justify-center{justify-content:center}.x-find.x-justify-end{justify-content:flex-end}.x-find.x-justify-space-between{justify-content:space-between}.x-find.x-justify-space-around{justify-content:space-around}.x-find.x-align-start{align-items:flex-start}.x-find.x-align-center{align-items:center}.x-find.x-align-end{align-items:flex-end}.x-find.x-direction-column{flex-direction:column}.x-find.x-direction-column-reverse{flex-direction:column-reverse}.x-find.x-direction-row{flex-direction:row}.x-find.x-direction-row-reverse{flex-direction:row-reverse}.x-find>label{display:inline-block;white-space:nowrap;position:relative;color:var(--x-text-300);font-weight:600}.x-find>label.x-text-align-start{text-align:start}.x-find>label.x-text-align-center{text-align:center}.x-find>label.x-text-align-end{text-align:end}.x-find-label-required:before{display:inline-block;margin-right:.25rem;color:var(--x-danger);line-height:1;font-size:var(--x-font-size-small);content:\"*\"}.x-find-row{flex:1;display:flex;align-items:flex-start;position:relative}.x-find-tags{margin:-.0625rem -.0625rem -.0625rem .4375rem}.x-find-tags>x-tag{margin:.0625rem}.x-find.x-required>label{color:var(--x-danger)}.x-find.x-direction-row>label{padding:0 .5rem 0 0}.x-find.x-direction-row-reverse>label{padding:0 0 0 .5rem}.x-find.x-direction-column,.x-find.x-direction-column-reverse{align-items:inherit}.x-find-big>label{height:var(--x-height-big);line-height:var(--x-height-big)}.x-find-large>label{height:var(--x-height-large);line-height:var(--x-height-large)}.x-find-medium>label{height:var(--x-height-medium);line-height:var(--x-height-medium)}.x-find-small>label{height:var(--x-height-small);line-height:var(--x-height-small)}.x-find-small .x-find-tags{margin-top:-.1875rem}.x-find-small .x-find-tags>x-tag{margin-top:.125rem}.x-find-mini>label{height:var(--x-height-mini);line-height:var(--x-height-mini)}.x-find-mini .x-find-tags{margin-top:-.25rem}.x-find-mini .x-find-tags>x-tag{margin-top:.125rem}.x-find-dialog{flex:1;display:flex}.x-find-dialog-table{flex:1;min-height:18.75rem;height:fit-content}.x-find-dialog-tree{flex:1;min-height:18.75rem;max-height:25rem;overflow-y:auto}.x-find-dialog-tree .x-tree-node-content.x-activated{color:var(--x-primary)}.x-find-dialog-tree-node{flex:1;display:flex;align-items:center;justify-content:space-between}.x-find-dialog-tree-node>span{flex:1;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;-webkit-user-select:none;user-select:none}.x-find-dialog-tree-table .x-find-dialog-tree{flex:initial;min-height:initial;max-height:initial;width:14rem;margin-right:1rem;padding-right:1rem;border-right:var(--x-border-width) var(--x-border-style) var(--x-border)}.x-find-dialog-checked{margin-left:1rem;border-left:var(--x-border-width) var(--x-border-style) var(--x-border);padding-left:1rem;width:10rem;overflow-y:auto;height:100%}.x-find-dialog-checked x-tag{display:block}.x-find-dialog-checked x-tag:not(:first-child){margin-top:.5rem}.x-find-dialog-checked x-tag .x-tag{width:100%;display:flex;justify-content:space-between}.x-find-dialog-checked x-tag .x-tag>span{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.x-find-dialog-checked.x-find-empty{display:flex;align-items:center;justify-content:center}.x-find-dialog-container .x-dialog-content{overflow:initial}.x-find-search{display:flex;padding:.3rem}.x-find-search .x-input,.x-find-search x-input{width:15rem}.x-find-search .x-button{margin-left:.5rem}\n"], dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "component", type: XTagComponent, selector: "x-tag" }, { kind: "component", type: XButtonComponent, selector: "x-button" }, { kind: "component", type: XDialogComponent, selector: "x-dialog" }, { kind: "component", type: XTableComponent, selector: "x-table" }, { kind: "component", type: XTreeComponent, selector: "x-tree" }, { kind: "component", type: XIconComponent, selector: "x-icon" }, { kind: "component", type: XEmptyComponent, selector: "x-empty" }, { kind: "component", type: XInputComponent, selector: "x-input" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
569
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: XFindComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
570
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.2.4", type: XFindComponent, isStandalone: true, selector: "x-find", providers: [XValueAccessor(XFindComponent)], viewQueries: [{ propertyName: "find", first: true, predicate: ["find"], descendants: true, isSignal: true }, { propertyName: "dialogCom", first: true, predicate: ["dialogCom"], descendants: true, isSignal: true }, { propertyName: "tableCom", first: true, predicate: ["tableCom"], descendants: true, isSignal: true }, { propertyName: "treeCom", first: true, predicate: ["treeCom"], descendants: true, isSignal: true }, { propertyName: "buttonCom", first: true, predicate: ["buttonCom"], descendants: true, isSignal: true }, { propertyName: "tableRef", first: true, predicate: ["tableRef"], descendants: true, isSignal: true }, { propertyName: "treeRef", first: true, predicate: ["treeRef"], descendants: true, isSignal: true }], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "<div\r\n #find\r\n class=\"x-find\"\r\n [class.x-flex]=\"justify() || align() || direction()\"\r\n [class.x-checked]=\"value()\"\r\n [class.x-disabled]=\"disabledComputed()\"\r\n [class.x-required]=\"requiredIsEmpty()\"\r\n [class.x-invalid]=\"invalid()\"\r\n [ngClass]=\"classMap()\"\r\n>\r\n @if (label()) {\r\n <label\r\n [class.x-find-label-required]=\"requiredComputed()\"\r\n [style.width]=\"labelWidth()\"\r\n [ngClass]=\"labelMapSignal()\"\r\n *xOutlet=\"label()\"\r\n >\r\n {{ label() }}\r\n </label>\r\n }\r\n <div class=\"x-find-row\">\r\n <x-button\r\n #buttonCom\r\n icon=\"fto-search\"\r\n [onlyIcon]=\"!bordered()\"\r\n [size]=\"size()\"\r\n [disabled]=\"disabledComputed()\"\r\n attrType=\"button\"\r\n (click)=\"showModal()\"\r\n flat\r\n plain\r\n ></x-button>\r\n <div class=\"x-find-tags\">\r\n @if (multiple()) {\r\n @for (item of value(); track item.id; let i = $index) {\r\n <x-tag\r\n closable\r\n [size]=\"size()\"\r\n [bordered]=\"bordered()\"\r\n [disabled]=\"disabledComputed()\"\r\n (close)=\"tagClose(i)\"\r\n >{{ item[columnLabel()] }}</x-tag\r\n >\r\n }\r\n } @else if (value()) {\r\n <x-tag closable [disabled]=\"disabledComputed()\" [bordered]=\"bordered()\" [size]=\"size()\" (close)=\"tagClose()\">{{\r\n value()[columnLabel()]\r\n }}</x-tag>\r\n }\r\n </div>\r\n </div>\r\n</div>\r\n\r\n<x-dialog\r\n #dialogCom\r\n [title]=\"dialogTitle()\"\r\n [width]=\"dialogWidthSignal()\"\r\n [height]=\"dialogHeight()\"\r\n [buttonsCenter]=\"dialogButtonsCenter()\"\r\n [className]=\"'x-find-dialog-container'\"\r\n [(visible)]=\"dialogVisible\"\r\n (closeDone)=\"dialogCloseDone()\"\r\n (confirm)=\"sure()\"\r\n>\r\n <div class=\"x-find-dialog\" [class.x-find-dialog-tree-table]=\"hasTable() && hasTree()\">\r\n @if (hasTree()) {\r\n <div class=\"x-find-dialog-tree\" #treeRef [style.height.px]=\"hasTreeTable() && multiple() && height()\">\r\n <x-tree\r\n #treeCom\r\n [data]=\"treeData()\"\r\n [nodeHeight]=\"'1.8rem'\"\r\n [(manual)]=\"dialogVisible\"\r\n [activatedId]=\"treeActivatedId()\"\r\n [expandedLevel]=\"treeExpandedLevel()\"\r\n (activatedChange)=\"treeActivatedClick($event)\"\r\n [checkbox]=\"hasTreeMultiple() || treeCheckbox()\"\r\n [(checked)]=\"treeChecked\"\r\n (checkboxChange)=\"treeCheckboxChange($event)\"\r\n [levelCheck]=\"!hasTreeMultiple()\"\r\n ></x-tree>\r\n </div>\r\n }\r\n @if (hasTable()) {\r\n <div class=\"x-find-dialog-table\" #tableRef>\r\n @if (hasSearch()) {\r\n <div class=\"x-find-search\">\r\n <x-input\r\n [label]=\"search()!.label!\"\r\n direction=\"row\"\r\n (xKeydown)=\"searchKeyDown($event)\"\r\n [(ngModel)]=\"search()!.value\"\r\n ></x-input>\r\n <x-button plain text (click)=\"searchClick()\">{{ search()!.button || '\u67E5\u8BE2' }}</x-button>\r\n </div>\r\n }\r\n <x-table\r\n #tableCom\r\n [data]=\"tableData()\"\r\n [columns]=\"tableColumnsSignal()\"\r\n [(manual)]=\"dialogVisible\"\r\n [(index)]=\"tableIndex\"\r\n [(size)]=\"tableSize\"\r\n [(query)]=\"tableQuery\"\r\n [(total)]=\"tableTotal\"\r\n [allowSelectRow]=\"!multiple()\"\r\n [allowCheckRow]=\"multiple()\"\r\n [checkedRow]=\"tableCheckedRow()\"\r\n [loading]=\"tableLoading()\"\r\n (sortChange)=\"tableSortChange.emit($event)\"\r\n [(activatedRow)]=\"tableActivatedRow\"\r\n (activatedRowChange)=\"tableActivatedRowChange($event!)\"\r\n [rowHeight]=\"tableRowHeight()\"\r\n [bodyHeight]=\"tableBodyHeight()!\"\r\n [virtualScroll]=\"tableVirtualScroll()\"\r\n [scroll]=\"tableScroll()\"\r\n [minBufferPx]=\"tableMinBufferPx()\"\r\n [maxBufferPx]=\"tableMaxBufferPx()\"\r\n [adaptionHeight]=\"tableAdaptionHeight()!\"\r\n [docPercent]=\"tableDocPercent()\"\r\n (rowClick)=\"tableRowEmit.emit($event)\"\r\n ></x-table>\r\n </div>\r\n }\r\n @if (multiple()) {\r\n <div class=\"x-find-dialog-checked\" [class.x-find-empty]=\"getEmpty()\" [style.height.px]=\"height()\">\r\n @if (getEmpty()) {\r\n <x-empty [content]=\"dialogEmptyContent()\"></x-empty>\r\n }\r\n <div class=\"x-find-dialog-tags\">\r\n @for (item of temp(); track item.id; let i = $index) {\r\n <x-tag closable (close)=\"tempClose(i, item)\">\r\n <span>{{ item[columnLabel()] }}</span>\r\n </x-tag>\r\n }\r\n </div>\r\n </div>\r\n }\r\n </div>\r\n</x-dialog>\r\n\r\n<ng-template #treeLabelTpl let-node=\"$node\">\r\n <div class=\"x-find-dialog-tree-node\">\r\n <span>{{ node.label }} </span>\r\n @if (node.$checked) {\r\n <x-icon type=\"fto-check\"></x-icon>\r\n }\r\n </div>\r\n</ng-template>\r\n", styles: ["@charset \"UTF-8\";.x-find{margin:0;padding:0}.x-find{width:100%}.x-find.x-flex{display:flex}.x-find.x-justify-start{justify-content:flex-start}.x-find.x-justify-center{justify-content:center}.x-find.x-justify-end{justify-content:flex-end}.x-find.x-justify-space-between{justify-content:space-between}.x-find.x-justify-space-around{justify-content:space-around}.x-find.x-align-start{align-items:flex-start}.x-find.x-align-center{align-items:center}.x-find.x-align-end{align-items:flex-end}.x-find.x-direction-column{flex-direction:column}.x-find.x-direction-column-reverse{flex-direction:column-reverse}.x-find.x-direction-row{flex-direction:row}.x-find.x-direction-row-reverse{flex-direction:row-reverse}.x-find>label{display:inline-block;white-space:nowrap;position:relative;color:var(--x-text-300);font-weight:500}.x-find>label.x-text-align-start{text-align:start}.x-find>label.x-text-align-center{text-align:center}.x-find>label.x-text-align-end{text-align:end}.x-find-label-required:before{display:inline-block;margin-right:.25rem;color:var(--x-danger);line-height:1;font-size:var(--x-font-size-small);content:\"*\"}.x-find-row{flex:1;display:flex;align-items:flex-start;position:relative}.x-find-tags{margin:-.0625rem -.0625rem -.0625rem .4375rem}.x-find-tags>x-tag{margin:.0625rem}.x-find.x-required>label{color:var(--x-danger)}.x-find.x-direction-row>label{padding:0 .5rem 0 0}.x-find.x-direction-row-reverse>label{padding:0 0 0 .5rem}.x-find.x-direction-column,.x-find.x-direction-column-reverse{align-items:inherit}.x-find-big>label{height:var(--x-height-big);line-height:var(--x-height-big)}.x-find-large>label{height:var(--x-height-large);line-height:var(--x-height-large)}.x-find-medium>label{height:var(--x-height-medium);line-height:var(--x-height-medium)}.x-find-small>label{height:var(--x-height-small);line-height:var(--x-height-small)}.x-find-small .x-find-tags{margin-top:-.1875rem}.x-find-small .x-find-tags>x-tag{margin-top:.125rem}.x-find-mini>label{height:var(--x-height-mini);line-height:var(--x-height-mini)}.x-find-mini .x-find-tags{margin-top:-.25rem}.x-find-mini .x-find-tags>x-tag{margin-top:.125rem}.x-find-dialog{flex:1;display:flex}.x-find-dialog-table{flex:1;min-height:18.75rem;height:fit-content}.x-find-dialog-tree{flex:1;min-height:18.75rem;max-height:25rem;overflow-y:auto}.x-find-dialog-tree .x-tree-node-content.x-activated{color:var(--x-primary)}.x-find-dialog-tree-node{flex:1;display:flex;align-items:center;justify-content:space-between}.x-find-dialog-tree-node>span{flex:1;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;-webkit-user-select:none;user-select:none}.x-find-dialog-tree-table .x-find-dialog-tree{flex:initial;min-height:initial;max-height:initial;width:14rem;margin-right:1rem;padding-right:1rem;border-right:var(--x-border-width) var(--x-border-style) var(--x-border)}.x-find-dialog-checked{margin-left:1rem;border-left:var(--x-border-width) var(--x-border-style) var(--x-border);padding-left:1rem;width:10rem;overflow-y:auto;height:100%}.x-find-dialog-checked x-tag{display:block}.x-find-dialog-checked x-tag:not(:first-child){margin-top:.5rem}.x-find-dialog-checked x-tag .x-tag{width:100%;display:flex;justify-content:space-between}.x-find-dialog-checked x-tag .x-tag>span{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.x-find-dialog-checked.x-find-empty{display:flex;align-items:center;justify-content:center}.x-find-dialog-container .x-dialog-content{overflow:initial}.x-find-search{display:flex;padding:.3rem}.x-find-search .x-input,.x-find-search x-input{width:15rem}.x-find-search .x-button{margin-left:.5rem}\n"], dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "component", type: XTagComponent, selector: "x-tag" }, { kind: "component", type: XButtonComponent, selector: "x-button" }, { kind: "component", type: XDialogComponent, selector: "x-dialog" }, { kind: "component", type: XTableComponent, selector: "x-table" }, { kind: "component", type: XTreeComponent, selector: "x-tree" }, { kind: "component", type: XIconComponent, selector: "x-icon" }, { kind: "component", type: XEmptyComponent, selector: "x-empty" }, { kind: "component", type: XInputComponent, selector: "x-input" }, { kind: "directive", type: XOutletDirective, selector: "[xOutlet]", inputs: ["xOutletContext", "xOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
570
571
|
}
|
|
571
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
572
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: XFindComponent, decorators: [{
|
|
572
573
|
type: Component,
|
|
573
574
|
args: [{ selector: `${XFindPrefix}`, imports: [
|
|
574
575
|
NgClass,
|
|
@@ -581,16 +582,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0", ngImpor
|
|
|
581
582
|
XTreeComponent,
|
|
582
583
|
XIconComponent,
|
|
583
584
|
XEmptyComponent,
|
|
584
|
-
XInputComponent
|
|
585
|
-
|
|
585
|
+
XInputComponent,
|
|
586
|
+
XOutletDirective
|
|
587
|
+
], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, providers: [XValueAccessor(XFindComponent)], template: "<div\r\n #find\r\n class=\"x-find\"\r\n [class.x-flex]=\"justify() || align() || direction()\"\r\n [class.x-checked]=\"value()\"\r\n [class.x-disabled]=\"disabledComputed()\"\r\n [class.x-required]=\"requiredIsEmpty()\"\r\n [class.x-invalid]=\"invalid()\"\r\n [ngClass]=\"classMap()\"\r\n>\r\n @if (label()) {\r\n <label\r\n [class.x-find-label-required]=\"requiredComputed()\"\r\n [style.width]=\"labelWidth()\"\r\n [ngClass]=\"labelMapSignal()\"\r\n *xOutlet=\"label()\"\r\n >\r\n {{ label() }}\r\n </label>\r\n }\r\n <div class=\"x-find-row\">\r\n <x-button\r\n #buttonCom\r\n icon=\"fto-search\"\r\n [onlyIcon]=\"!bordered()\"\r\n [size]=\"size()\"\r\n [disabled]=\"disabledComputed()\"\r\n attrType=\"button\"\r\n (click)=\"showModal()\"\r\n flat\r\n plain\r\n ></x-button>\r\n <div class=\"x-find-tags\">\r\n @if (multiple()) {\r\n @for (item of value(); track item.id; let i = $index) {\r\n <x-tag\r\n closable\r\n [size]=\"size()\"\r\n [bordered]=\"bordered()\"\r\n [disabled]=\"disabledComputed()\"\r\n (close)=\"tagClose(i)\"\r\n >{{ item[columnLabel()] }}</x-tag\r\n >\r\n }\r\n } @else if (value()) {\r\n <x-tag closable [disabled]=\"disabledComputed()\" [bordered]=\"bordered()\" [size]=\"size()\" (close)=\"tagClose()\">{{\r\n value()[columnLabel()]\r\n }}</x-tag>\r\n }\r\n </div>\r\n </div>\r\n</div>\r\n\r\n<x-dialog\r\n #dialogCom\r\n [title]=\"dialogTitle()\"\r\n [width]=\"dialogWidthSignal()\"\r\n [height]=\"dialogHeight()\"\r\n [buttonsCenter]=\"dialogButtonsCenter()\"\r\n [className]=\"'x-find-dialog-container'\"\r\n [(visible)]=\"dialogVisible\"\r\n (closeDone)=\"dialogCloseDone()\"\r\n (confirm)=\"sure()\"\r\n>\r\n <div class=\"x-find-dialog\" [class.x-find-dialog-tree-table]=\"hasTable() && hasTree()\">\r\n @if (hasTree()) {\r\n <div class=\"x-find-dialog-tree\" #treeRef [style.height.px]=\"hasTreeTable() && multiple() && height()\">\r\n <x-tree\r\n #treeCom\r\n [data]=\"treeData()\"\r\n [nodeHeight]=\"'1.8rem'\"\r\n [(manual)]=\"dialogVisible\"\r\n [activatedId]=\"treeActivatedId()\"\r\n [expandedLevel]=\"treeExpandedLevel()\"\r\n (activatedChange)=\"treeActivatedClick($event)\"\r\n [checkbox]=\"hasTreeMultiple() || treeCheckbox()\"\r\n [(checked)]=\"treeChecked\"\r\n (checkboxChange)=\"treeCheckboxChange($event)\"\r\n [levelCheck]=\"!hasTreeMultiple()\"\r\n ></x-tree>\r\n </div>\r\n }\r\n @if (hasTable()) {\r\n <div class=\"x-find-dialog-table\" #tableRef>\r\n @if (hasSearch()) {\r\n <div class=\"x-find-search\">\r\n <x-input\r\n [label]=\"search()!.label!\"\r\n direction=\"row\"\r\n (xKeydown)=\"searchKeyDown($event)\"\r\n [(ngModel)]=\"search()!.value\"\r\n ></x-input>\r\n <x-button plain text (click)=\"searchClick()\">{{ search()!.button || '\u67E5\u8BE2' }}</x-button>\r\n </div>\r\n }\r\n <x-table\r\n #tableCom\r\n [data]=\"tableData()\"\r\n [columns]=\"tableColumnsSignal()\"\r\n [(manual)]=\"dialogVisible\"\r\n [(index)]=\"tableIndex\"\r\n [(size)]=\"tableSize\"\r\n [(query)]=\"tableQuery\"\r\n [(total)]=\"tableTotal\"\r\n [allowSelectRow]=\"!multiple()\"\r\n [allowCheckRow]=\"multiple()\"\r\n [checkedRow]=\"tableCheckedRow()\"\r\n [loading]=\"tableLoading()\"\r\n (sortChange)=\"tableSortChange.emit($event)\"\r\n [(activatedRow)]=\"tableActivatedRow\"\r\n (activatedRowChange)=\"tableActivatedRowChange($event!)\"\r\n [rowHeight]=\"tableRowHeight()\"\r\n [bodyHeight]=\"tableBodyHeight()!\"\r\n [virtualScroll]=\"tableVirtualScroll()\"\r\n [scroll]=\"tableScroll()\"\r\n [minBufferPx]=\"tableMinBufferPx()\"\r\n [maxBufferPx]=\"tableMaxBufferPx()\"\r\n [adaptionHeight]=\"tableAdaptionHeight()!\"\r\n [docPercent]=\"tableDocPercent()\"\r\n (rowClick)=\"tableRowEmit.emit($event)\"\r\n ></x-table>\r\n </div>\r\n }\r\n @if (multiple()) {\r\n <div class=\"x-find-dialog-checked\" [class.x-find-empty]=\"getEmpty()\" [style.height.px]=\"height()\">\r\n @if (getEmpty()) {\r\n <x-empty [content]=\"dialogEmptyContent()\"></x-empty>\r\n }\r\n <div class=\"x-find-dialog-tags\">\r\n @for (item of temp(); track item.id; let i = $index) {\r\n <x-tag closable (close)=\"tempClose(i, item)\">\r\n <span>{{ item[columnLabel()] }}</span>\r\n </x-tag>\r\n }\r\n </div>\r\n </div>\r\n }\r\n </div>\r\n</x-dialog>\r\n\r\n<ng-template #treeLabelTpl let-node=\"$node\">\r\n <div class=\"x-find-dialog-tree-node\">\r\n <span>{{ node.label }} </span>\r\n @if (node.$checked) {\r\n <x-icon type=\"fto-check\"></x-icon>\r\n }\r\n </div>\r\n</ng-template>\r\n", styles: ["@charset \"UTF-8\";.x-find{margin:0;padding:0}.x-find{width:100%}.x-find.x-flex{display:flex}.x-find.x-justify-start{justify-content:flex-start}.x-find.x-justify-center{justify-content:center}.x-find.x-justify-end{justify-content:flex-end}.x-find.x-justify-space-between{justify-content:space-between}.x-find.x-justify-space-around{justify-content:space-around}.x-find.x-align-start{align-items:flex-start}.x-find.x-align-center{align-items:center}.x-find.x-align-end{align-items:flex-end}.x-find.x-direction-column{flex-direction:column}.x-find.x-direction-column-reverse{flex-direction:column-reverse}.x-find.x-direction-row{flex-direction:row}.x-find.x-direction-row-reverse{flex-direction:row-reverse}.x-find>label{display:inline-block;white-space:nowrap;position:relative;color:var(--x-text-300);font-weight:500}.x-find>label.x-text-align-start{text-align:start}.x-find>label.x-text-align-center{text-align:center}.x-find>label.x-text-align-end{text-align:end}.x-find-label-required:before{display:inline-block;margin-right:.25rem;color:var(--x-danger);line-height:1;font-size:var(--x-font-size-small);content:\"*\"}.x-find-row{flex:1;display:flex;align-items:flex-start;position:relative}.x-find-tags{margin:-.0625rem -.0625rem -.0625rem .4375rem}.x-find-tags>x-tag{margin:.0625rem}.x-find.x-required>label{color:var(--x-danger)}.x-find.x-direction-row>label{padding:0 .5rem 0 0}.x-find.x-direction-row-reverse>label{padding:0 0 0 .5rem}.x-find.x-direction-column,.x-find.x-direction-column-reverse{align-items:inherit}.x-find-big>label{height:var(--x-height-big);line-height:var(--x-height-big)}.x-find-large>label{height:var(--x-height-large);line-height:var(--x-height-large)}.x-find-medium>label{height:var(--x-height-medium);line-height:var(--x-height-medium)}.x-find-small>label{height:var(--x-height-small);line-height:var(--x-height-small)}.x-find-small .x-find-tags{margin-top:-.1875rem}.x-find-small .x-find-tags>x-tag{margin-top:.125rem}.x-find-mini>label{height:var(--x-height-mini);line-height:var(--x-height-mini)}.x-find-mini .x-find-tags{margin-top:-.25rem}.x-find-mini .x-find-tags>x-tag{margin-top:.125rem}.x-find-dialog{flex:1;display:flex}.x-find-dialog-table{flex:1;min-height:18.75rem;height:fit-content}.x-find-dialog-tree{flex:1;min-height:18.75rem;max-height:25rem;overflow-y:auto}.x-find-dialog-tree .x-tree-node-content.x-activated{color:var(--x-primary)}.x-find-dialog-tree-node{flex:1;display:flex;align-items:center;justify-content:space-between}.x-find-dialog-tree-node>span{flex:1;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;-webkit-user-select:none;user-select:none}.x-find-dialog-tree-table .x-find-dialog-tree{flex:initial;min-height:initial;max-height:initial;width:14rem;margin-right:1rem;padding-right:1rem;border-right:var(--x-border-width) var(--x-border-style) var(--x-border)}.x-find-dialog-checked{margin-left:1rem;border-left:var(--x-border-width) var(--x-border-style) var(--x-border);padding-left:1rem;width:10rem;overflow-y:auto;height:100%}.x-find-dialog-checked x-tag{display:block}.x-find-dialog-checked x-tag:not(:first-child){margin-top:.5rem}.x-find-dialog-checked x-tag .x-tag{width:100%;display:flex;justify-content:space-between}.x-find-dialog-checked x-tag .x-tag>span{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.x-find-dialog-checked.x-find-empty{display:flex;align-items:center;justify-content:center}.x-find-dialog-container .x-dialog-content{overflow:initial}.x-find-search{display:flex;padding:.3rem}.x-find-search .x-input,.x-find-search x-input{width:15rem}.x-find-search .x-button{margin-left:.5rem}\n"] }]
|
|
586
588
|
}] });
|
|
587
589
|
|
|
588
590
|
class XFindModule {
|
|
589
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
590
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.
|
|
591
|
-
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.
|
|
591
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: XFindModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
592
|
+
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.2.4", ngImport: i0, type: XFindModule, imports: [XFindComponent], exports: [XFindComponent] }); }
|
|
593
|
+
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: XFindModule, imports: [XFindComponent] }); }
|
|
592
594
|
}
|
|
593
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
595
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: XFindModule, decorators: [{
|
|
594
596
|
type: NgModule,
|
|
595
597
|
args: [{
|
|
596
598
|
exports: [XFindComponent],
|