@ng-nest/ui 21.0.12 → 22.0.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/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 +46 -34
- package/fesm2022/ng-nest-ui-alert.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-anchor.mjs +43 -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-attachments.mjs +74 -48
- package/fesm2022/ng-nest-ui-attachments.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-auto-complete.mjs +114 -70
- package/fesm2022/ng-nest-ui-auto-complete.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-avatar.mjs +47 -32
- package/fesm2022/ng-nest-ui-avatar.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-back-top.mjs +23 -18
- package/fesm2022/ng-nest-ui-back-top.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-badge.mjs +30 -23
- package/fesm2022/ng-nest-ui-badge.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-base-form.mjs +75 -44
- package/fesm2022/ng-nest-ui-base-form.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-bubble.mjs +76 -48
- package/fesm2022/ng-nest-ui-bubble.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-button.mjs +53 -42
- package/fesm2022/ng-nest-ui-button.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-calendar.mjs +30 -20
- package/fesm2022/ng-nest-ui-calendar.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-card.mjs +21 -16
- package/fesm2022/ng-nest-ui-card.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-carousel.mjs +68 -46
- package/fesm2022/ng-nest-ui-carousel.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-cascade.mjs +121 -73
- package/fesm2022/ng-nest-ui-cascade.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-checkbox.mjs +54 -38
- package/fesm2022/ng-nest-ui-checkbox.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-collapse.mjs +38 -30
- package/fesm2022/ng-nest-ui-collapse.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-color-picker.mjs +119 -72
- package/fesm2022/ng-nest-ui-color-picker.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-color.mjs +22 -16
- package/fesm2022/ng-nest-ui-color.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-comment.mjs +23 -21
- package/fesm2022/ng-nest-ui-comment.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-container.mjs +40 -37
- package/fesm2022/ng-nest-ui-container.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-contextmenu.mjs +71 -45
- package/fesm2022/ng-nest-ui-contextmenu.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-core.mjs +24 -21
- package/fesm2022/ng-nest-ui-core.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-coversations.mjs +25 -18
- package/fesm2022/ng-nest-ui-coversations.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-crumb.mjs +15 -13
- package/fesm2022/ng-nest-ui-crumb.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-date-picker.mjs +425 -256
- package/fesm2022/ng-nest-ui-date-picker.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-description.mjs +42 -31
- package/fesm2022/ng-nest-ui-description.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-dialog.mjs +106 -82
- package/fesm2022/ng-nest-ui-dialog.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-divider.mjs +24 -17
- package/fesm2022/ng-nest-ui-divider.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-doc.mjs +7 -7
- package/fesm2022/ng-nest-ui-drag.mjs +10 -10
- package/fesm2022/ng-nest-ui-drawer.mjs +52 -43
- package/fesm2022/ng-nest-ui-drawer.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-dropdown.mjs +94 -58
- package/fesm2022/ng-nest-ui-dropdown.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-empty.mjs +14 -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-find.mjs +111 -71
- package/fesm2022/ng-nest-ui-find.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-form.mjs +45 -33
- package/fesm2022/ng-nest-ui-form.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-highlight.mjs +26 -20
- package/fesm2022/ng-nest-ui-highlight.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-i18n.mjs +16 -15
- package/fesm2022/ng-nest-ui-i18n.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-icon.mjs +28 -21
- package/fesm2022/ng-nest-ui-icon.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-image.mjs +57 -51
- 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 +63 -42
- package/fesm2022/ng-nest-ui-input-number.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-input.mjs +130 -85
- package/fesm2022/ng-nest-ui-input.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-keyword.mjs +19 -15
- package/fesm2022/ng-nest-ui-keyword.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-layout.mjs +37 -31
- package/fesm2022/ng-nest-ui-layout.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-link.mjs +23 -18
- package/fesm2022/ng-nest-ui-link.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-list.mjs +137 -89
- package/fesm2022/ng-nest-ui-list.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-loading.mjs +36 -25
- package/fesm2022/ng-nest-ui-loading.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-menu.mjs +68 -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.mjs +10 -10
- package/fesm2022/ng-nest-ui-notification.mjs +10 -10
- package/fesm2022/ng-nest-ui-outlet.mjs +11 -9
- package/fesm2022/ng-nest-ui-outlet.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-page-header.mjs +20 -15
- package/fesm2022/ng-nest-ui-page-header.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-pagination.mjs +69 -48
- package/fesm2022/ng-nest-ui-pagination.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-pattern.mjs +7 -7
- package/fesm2022/ng-nest-ui-popconfirm.mjs +40 -27
- package/fesm2022/ng-nest-ui-popconfirm.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-popover.mjs +57 -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-progress.mjs +60 -41
- package/fesm2022/ng-nest-ui-progress.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-prompts.mjs +18 -15
- package/fesm2022/ng-nest-ui-prompts.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-radio.mjs +50 -35
- package/fesm2022/ng-nest-ui-radio.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-rate.mjs +43 -29
- package/fesm2022/ng-nest-ui-rate.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-resizable.mjs +18 -16
- package/fesm2022/ng-nest-ui-resizable.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-result.mjs +22 -16
- package/fesm2022/ng-nest-ui-result.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-ripple.mjs +14 -13
- package/fesm2022/ng-nest-ui-ripple.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-scrollable.mjs +41 -24
- package/fesm2022/ng-nest-ui-scrollable.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-select.mjs +196 -117
- package/fesm2022/ng-nest-ui-select.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-sender.mjs +43 -31
- package/fesm2022/ng-nest-ui-sender.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-skeleton.mjs +17 -15
- package/fesm2022/ng-nest-ui-skeleton.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-slider-select.mjs +85 -53
- package/fesm2022/ng-nest-ui-slider-select.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-slider.mjs +58 -37
- package/fesm2022/ng-nest-ui-slider.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-splitter.mjs +32 -24
- package/fesm2022/ng-nest-ui-splitter.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-statistic.mjs +44 -30
- package/fesm2022/ng-nest-ui-statistic.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-steps.mjs +30 -22
- package/fesm2022/ng-nest-ui-steps.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-suggestion.mjs +23 -20
- package/fesm2022/ng-nest-ui-suggestion.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-switch.mjs +35 -25
- package/fesm2022/ng-nest-ui-switch.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-table-view.mjs +78 -69
- package/fesm2022/ng-nest-ui-table-view.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-table.mjs +320 -205
- package/fesm2022/ng-nest-ui-table.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-tabs.mjs +74 -56
- package/fesm2022/ng-nest-ui-tabs.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-tag.mjs +30 -23
- package/fesm2022/ng-nest-ui-tag.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-text-retract.mjs +19 -15
- package/fesm2022/ng-nest-ui-text-retract.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-textarea.mjs +69 -44
- package/fesm2022/ng-nest-ui-textarea.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-theme.mjs +34 -23
- package/fesm2022/ng-nest-ui-theme.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-thought-chain.mjs +26 -19
- package/fesm2022/ng-nest-ui-thought-chain.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-time-ago.mjs +7 -7
- package/fesm2022/ng-nest-ui-time-picker.mjs +164 -96
- 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-timeline.mjs +26 -19
- package/fesm2022/ng-nest-ui-timeline.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-tooltip.mjs +53 -35
- package/fesm2022/ng-nest-ui-tooltip.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-transfer.mjs +66 -40
- package/fesm2022/ng-nest-ui-transfer.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-tree-file.mjs +39 -28
- package/fesm2022/ng-nest-ui-tree-file.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-tree-select.mjs +186 -111
- package/fesm2022/ng-nest-ui-tree-select.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-tree.mjs +166 -105
- package/fesm2022/ng-nest-ui-tree.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-typography.mjs +16 -13
- package/fesm2022/ng-nest-ui-typography.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-upload.mjs +81 -53
- package/fesm2022/ng-nest-ui-upload.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-watermark.mjs +44 -34
- package/fesm2022/ng-nest-ui-watermark.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-welcome.mjs +22 -16
- package/fesm2022/ng-nest-ui-welcome.mjs.map +1 -1
- package/package.json +3 -2
- package/types/ng-nest-ui-base-form.d.ts +3 -3
- package/types/ng-nest-ui-carousel.d.ts +1 -1
- package/types/ng-nest-ui-container.d.ts +1 -1
- package/types/ng-nest-ui-core.d.ts +1 -1
- package/types/ng-nest-ui-dialog.d.ts +1 -1
- package/types/ng-nest-ui-drawer.d.ts +1 -1
- package/types/ng-nest-ui-form.d.ts +12 -12
- package/types/ng-nest-ui-layout.d.ts +1 -1
- package/types/ng-nest-ui-list.d.ts +1 -1
- package/types/ng-nest-ui-portal.d.ts +3 -3
- package/types/ng-nest-ui-table-view.d.ts +1 -1
- package/types/ng-nest-ui-table.d.ts +1 -1
- package/types/ng-nest-ui-tabs.d.ts +1 -1
- package/types/ng-nest-ui-tree.d.ts +1 -1
|
@@ -35,82 +35,91 @@ class XFindProperty extends XFormControlFunction(X_FIND_CONFIG_NAME) {
|
|
|
35
35
|
* @zh_CN 显示边框
|
|
36
36
|
* @en_US Display Border
|
|
37
37
|
*/
|
|
38
|
-
this.bordered = input(this.config?.bordered ?? true, { ...(ngDevMode ? { debugName: "bordered" } : {}), transform: XToBoolean });
|
|
38
|
+
this.bordered = input(this.config?.bordered ?? true, { ...(ngDevMode ? { debugName: "bordered" } : /* istanbul ignore next */ {}), transform: XToBoolean });
|
|
39
39
|
/**
|
|
40
40
|
* @zh_CN 多选
|
|
41
41
|
* @en_US Multiple choice
|
|
42
42
|
*/
|
|
43
|
-
this.multiple = input(false, { ...(ngDevMode ? { debugName: "multiple" } : {}), transform: XToBoolean });
|
|
43
|
+
this.multiple = input(false, { ...(ngDevMode ? { debugName: "multiple" } : /* istanbul ignore next */ {}), transform: XToBoolean });
|
|
44
44
|
/**
|
|
45
45
|
* @zh_CN 选中 label 名称字段
|
|
46
46
|
* @en_US Check the label name field
|
|
47
47
|
*/
|
|
48
|
-
this.columnLabel = input(this.config?.columnLabel ?? 'label',
|
|
48
|
+
this.columnLabel = input(this.config?.columnLabel ?? 'label', /* @ts-ignore */
|
|
49
|
+
...(ngDevMode ? [{ debugName: "columnLabel" }] : /* istanbul ignore next */ []));
|
|
49
50
|
/**
|
|
50
51
|
* @zh_CN 弹框标题
|
|
51
52
|
* @en_US Bullet title
|
|
52
53
|
*/
|
|
53
|
-
this.dialogTitle = input(this.config?.dialogTitle ?? '查找选择',
|
|
54
|
+
this.dialogTitle = input(this.config?.dialogTitle ?? '查找选择', /* @ts-ignore */
|
|
55
|
+
...(ngDevMode ? [{ debugName: "dialogTitle" }] : /* istanbul ignore next */ []));
|
|
54
56
|
/**
|
|
55
57
|
* @zh_CN 弹框表格选择列头名称
|
|
56
58
|
* @en_US Ball Form Select List Name
|
|
57
59
|
*/
|
|
58
|
-
this.dialogCheckboxLabel = input(this.config?.dialogCheckboxLabel ?? '选择',
|
|
60
|
+
this.dialogCheckboxLabel = input(this.config?.dialogCheckboxLabel ?? '选择', /* @ts-ignore */
|
|
61
|
+
...(ngDevMode ? [{ debugName: "dialogCheckboxLabel" }] : /* istanbul ignore next */ []));
|
|
59
62
|
/**
|
|
60
63
|
* @zh_CN 弹框表格选择列宽
|
|
61
64
|
* @en_US Ball Form Select List width
|
|
62
65
|
*/
|
|
63
|
-
this.dialogCheckboxWidth = input(this.config?.dialogCheckboxWidth ?? '60px', { ...(ngDevMode ? { debugName: "dialogCheckboxWidth" } : {}), transform: XToCssPixelValue });
|
|
66
|
+
this.dialogCheckboxWidth = input(this.config?.dialogCheckboxWidth ?? '60px', { ...(ngDevMode ? { debugName: "dialogCheckboxWidth" } : /* istanbul ignore next */ {}), transform: XToCssPixelValue });
|
|
64
67
|
/**
|
|
65
68
|
* @zh_CN 弹框选择数据为空的提示信息
|
|
66
69
|
* @en_US Ball box selection data empty prompt information
|
|
67
70
|
*/
|
|
68
|
-
this.dialogEmptyContent = input(this.config?.dialogEmptyContent ?? '请选择数据',
|
|
71
|
+
this.dialogEmptyContent = input(this.config?.dialogEmptyContent ?? '请选择数据', /* @ts-ignore */
|
|
72
|
+
...(ngDevMode ? [{ debugName: "dialogEmptyContent" }] : /* istanbul ignore next */ []));
|
|
69
73
|
/**
|
|
70
74
|
* @zh_CN 弹框宽度
|
|
71
75
|
* @en_US Bullet frame width
|
|
72
76
|
*/
|
|
73
|
-
this.dialogWidth = input('', { ...(ngDevMode ? { debugName: "dialogWidth" } : {}), transform: XToCssPixelValue });
|
|
77
|
+
this.dialogWidth = input('', { ...(ngDevMode ? { debugName: "dialogWidth" } : /* istanbul ignore next */ {}), transform: XToCssPixelValue });
|
|
74
78
|
/**
|
|
75
79
|
* @zh_CN 弹框高度
|
|
76
80
|
* @en_US Height of bullet frame
|
|
77
81
|
*/
|
|
78
|
-
this.dialogHeight = input('', { ...(ngDevMode ? { debugName: "dialogHeight" } : {}), transform: XToCssPixelValue });
|
|
82
|
+
this.dialogHeight = input('', { ...(ngDevMode ? { debugName: "dialogHeight" } : /* istanbul ignore next */ {}), transform: XToCssPixelValue });
|
|
79
83
|
/**
|
|
80
84
|
* @zh_CN 弹框显示,隐藏
|
|
81
85
|
* @en_US Bullet box display, hide
|
|
82
86
|
*/
|
|
83
|
-
this.dialogVisible = model(false,
|
|
87
|
+
this.dialogVisible = model(false, /* @ts-ignore */
|
|
88
|
+
...(ngDevMode ? [{ debugName: "dialogVisible" }] : /* istanbul ignore next */ []));
|
|
84
89
|
/**
|
|
85
90
|
* @zh_CN 按钮居中
|
|
86
91
|
* @en_US Button centered
|
|
87
92
|
*/
|
|
88
|
-
this.dialogButtonsCenter = input(false, { ...(ngDevMode ? { debugName: "dialogButtonsCenter" } : {}), transform: XToBoolean });
|
|
93
|
+
this.dialogButtonsCenter = input(false, { ...(ngDevMode ? { debugName: "dialogButtonsCenter" } : /* istanbul ignore next */ {}), transform: XToBoolean });
|
|
89
94
|
/**
|
|
90
95
|
* @zh_CN 表格行数据
|
|
91
96
|
* @en_US Table row data
|
|
92
97
|
*/
|
|
93
|
-
this.tableData = input([], { ...(ngDevMode ? { debugName: "tableData" } : {}), transform: XToDataConvert });
|
|
98
|
+
this.tableData = input([], { ...(ngDevMode ? { debugName: "tableData" } : /* istanbul ignore next */ {}), transform: XToDataConvert });
|
|
94
99
|
/**
|
|
95
100
|
* @zh_CN 表格页码
|
|
96
101
|
* @en_US Table page number
|
|
97
102
|
*/
|
|
98
|
-
this.tableIndex = model(this.config?.tableIndex ?? 1,
|
|
103
|
+
this.tableIndex = model(this.config?.tableIndex ?? 1, /* @ts-ignore */
|
|
104
|
+
...(ngDevMode ? [{ debugName: "tableIndex" }] : /* istanbul ignore next */ []));
|
|
99
105
|
/**
|
|
100
106
|
* @zh_CN 表每页数据条数
|
|
101
107
|
* @en_US Number of data items per page
|
|
102
108
|
*/
|
|
103
|
-
this.tableSize = model(this.config?.tableSize ?? 10,
|
|
109
|
+
this.tableSize = model(this.config?.tableSize ?? 10, /* @ts-ignore */
|
|
110
|
+
...(ngDevMode ? [{ debugName: "tableSize" }] : /* istanbul ignore next */ []));
|
|
104
111
|
/**
|
|
105
112
|
* @zh_CN 表格查询条件
|
|
106
113
|
* @en_US Number of data items per page
|
|
107
114
|
*/
|
|
108
|
-
this.tableQuery = model({},
|
|
115
|
+
this.tableQuery = model({}, /* @ts-ignore */
|
|
116
|
+
...(ngDevMode ? [{ debugName: "tableQuery" }] : /* istanbul ignore next */ []));
|
|
109
117
|
/**
|
|
110
118
|
* @zh_CN 表格数据总条数
|
|
111
119
|
* @en_US Total number of table data
|
|
112
120
|
*/
|
|
113
|
-
this.tableTotal = model(0,
|
|
121
|
+
this.tableTotal = model(0, /* @ts-ignore */
|
|
122
|
+
...(ngDevMode ? [{ debugName: "tableTotal" }] : /* istanbul ignore next */ []));
|
|
114
123
|
/**
|
|
115
124
|
* @zh_CN 排序点击的事件
|
|
116
125
|
* @en_US Sort click events
|
|
@@ -120,12 +129,14 @@ class XFindProperty extends XFormControlFunction(X_FIND_CONFIG_NAME) {
|
|
|
120
129
|
* @zh_CN 表格列参数
|
|
121
130
|
* @en_US Table column parameters
|
|
122
131
|
*/
|
|
123
|
-
this.tableColumns = input([],
|
|
132
|
+
this.tableColumns = input([], /* @ts-ignore */
|
|
133
|
+
...(ngDevMode ? [{ debugName: "tableColumns" }] : /* istanbul ignore next */ []));
|
|
124
134
|
/**
|
|
125
135
|
* @zh_CN 当前选中行数据
|
|
126
136
|
* @en_US Currently selected row data
|
|
127
137
|
*/
|
|
128
|
-
this.tableActivatedRow = model(
|
|
138
|
+
this.tableActivatedRow = model(/* @ts-ignore */
|
|
139
|
+
...(ngDevMode ? [undefined, { debugName: "tableActivatedRow" }] : /* istanbul ignore next */ []));
|
|
129
140
|
/**
|
|
130
141
|
* @zh_CN 表格行点击事件
|
|
131
142
|
* @en_US Table row click event
|
|
@@ -135,137 +146,149 @@ class XFindProperty extends XFormControlFunction(X_FIND_CONFIG_NAME) {
|
|
|
135
146
|
* @zh_CN 表格行点击事件
|
|
136
147
|
* @en_US Table row click event
|
|
137
148
|
*/
|
|
138
|
-
this.tableCheckedRow = model({},
|
|
149
|
+
this.tableCheckedRow = model({}, /* @ts-ignore */
|
|
150
|
+
...(ngDevMode ? [{ debugName: "tableCheckedRow" }] : /* istanbul ignore next */ []));
|
|
139
151
|
/**
|
|
140
152
|
* @zh_CN 是否启用加载 loading
|
|
141
153
|
* @en_US Whether to enable loading loading
|
|
142
154
|
*/
|
|
143
|
-
this.tableLoading = input(this.config?.tableLoading ?? false, { ...(ngDevMode ? { debugName: "tableLoading" } : {}), transform: XToBoolean });
|
|
155
|
+
this.tableLoading = input(this.config?.tableLoading ?? false, { ...(ngDevMode ? { debugName: "tableLoading" } : /* istanbul ignore next */ {}), transform: XToBoolean });
|
|
144
156
|
/**
|
|
145
157
|
* @zh_CN 表格开启虚拟滚动
|
|
146
158
|
* @en_US Table opens virtual scrolling
|
|
147
159
|
*/
|
|
148
|
-
this.tableVirtualScroll = input(this.config?.tableVirtualScroll ?? false, { ...(ngDevMode ? { debugName: "tableVirtualScroll" } : {}), transform: XToBoolean });
|
|
160
|
+
this.tableVirtualScroll = input(this.config?.tableVirtualScroll ?? false, { ...(ngDevMode ? { debugName: "tableVirtualScroll" } : /* istanbul ignore next */ {}), transform: XToBoolean });
|
|
149
161
|
/**
|
|
150
162
|
* @zh_CN 表格滚动区域高宽
|
|
151
163
|
* @en_US table height and width of rolling area
|
|
152
164
|
*/
|
|
153
|
-
this.tableScroll = input(
|
|
165
|
+
this.tableScroll = input(/* @ts-ignore */
|
|
166
|
+
...(ngDevMode ? [undefined, { debugName: "tableScroll" }] : /* istanbul ignore next */ []));
|
|
154
167
|
/**
|
|
155
168
|
* @zh_CN 表格 body 数据高度
|
|
156
169
|
* @en_US Table body data height
|
|
157
170
|
*/
|
|
158
|
-
this.tableBodyHeight = input(null, { ...(ngDevMode ? { debugName: "tableBodyHeight" } : {}), transform: XToNumber });
|
|
171
|
+
this.tableBodyHeight = input(null, { ...(ngDevMode ? { debugName: "tableBodyHeight" } : /* istanbul ignore next */ {}), transform: XToNumber });
|
|
159
172
|
/**
|
|
160
173
|
* @zh_CN 表格超出可视窗口缓冲区的最小值,对应 cdk scroll 中的参数
|
|
161
174
|
* @en_US The table exceeds the minimum value of the visible window buffer, corresponding to the parameters in cdk scroll
|
|
162
175
|
*/
|
|
163
|
-
this.tableMinBufferPx = input(100, { ...(ngDevMode ? { debugName: "tableMinBufferPx" } : {}), transform: XToNumber });
|
|
176
|
+
this.tableMinBufferPx = input(100, { ...(ngDevMode ? { debugName: "tableMinBufferPx" } : /* istanbul ignore next */ {}), transform: XToNumber });
|
|
164
177
|
/**
|
|
165
178
|
* @zh_CN 表格渲染新数据缓冲区的像素,对应 cdk scroll 中的参数
|
|
166
179
|
* @en_US The pixels of the new data buffer for the table rendering, corresponding to the parameters in cdk scroll
|
|
167
180
|
*/
|
|
168
|
-
this.tableMaxBufferPx = input(200, { ...(ngDevMode ? { debugName: "tableMaxBufferPx" } : {}), transform: XToNumber });
|
|
181
|
+
this.tableMaxBufferPx = input(200, { ...(ngDevMode ? { debugName: "tableMaxBufferPx" } : /* istanbul ignore next */ {}), transform: XToNumber });
|
|
169
182
|
/**
|
|
170
183
|
* @zh_CN 表格自适应高度,table 高度等于屏幕高度减掉此处设置的数值
|
|
171
184
|
* @en_US Table adaptive height, table height is equal to the screen height minus the value set here
|
|
172
185
|
*/
|
|
173
|
-
this.tableAdaptionHeight = input(null, { ...(ngDevMode ? { debugName: "tableAdaptionHeight" } : {}), transform: XToNumber });
|
|
186
|
+
this.tableAdaptionHeight = input(null, { ...(ngDevMode ? { debugName: "tableAdaptionHeight" } : /* istanbul ignore next */ {}), transform: XToNumber });
|
|
174
187
|
/**
|
|
175
188
|
* @zh_CN 表格文档高度百分比,弹窗百分比高度用到
|
|
176
189
|
* @en_US Table document height percentage, used for pop-up window percentage height
|
|
177
190
|
*/
|
|
178
|
-
this.tableDocPercent = input(1, { ...(ngDevMode ? { debugName: "tableDocPercent" } : {}), transform: XToNumber });
|
|
191
|
+
this.tableDocPercent = input(1, { ...(ngDevMode ? { debugName: "tableDocPercent" } : /* istanbul ignore next */ {}), transform: XToNumber });
|
|
179
192
|
/**
|
|
180
193
|
* @zh_CN 表格行高度,单位 px
|
|
181
194
|
* @en_US Table row height, unit px
|
|
182
195
|
*/
|
|
183
|
-
this.tableRowHeight = input(this.config?.tableRowHeight ?? 42, { ...(ngDevMode ? { debugName: "tableRowHeight" } : {}), transform: XToNumber });
|
|
196
|
+
this.tableRowHeight = input(this.config?.tableRowHeight ?? 42, { ...(ngDevMode ? { debugName: "tableRowHeight" } : /* istanbul ignore next */ {}), transform: XToNumber });
|
|
184
197
|
/**
|
|
185
198
|
* @zh_CN 树节点数据
|
|
186
199
|
* @en_US Tree node data
|
|
187
200
|
*/
|
|
188
|
-
this.treeData = input([], { ...(ngDevMode ? { debugName: "treeData" } : {}), transform: XToDataConvert });
|
|
201
|
+
this.treeData = input([], { ...(ngDevMode ? { debugName: "treeData" } : /* istanbul ignore next */ {}), transform: XToDataConvert });
|
|
189
202
|
/**
|
|
190
203
|
* @zh_CN 树当前激活的节点 Id
|
|
191
204
|
* @en_US Id of the currently active node of the tree
|
|
192
205
|
*/
|
|
193
|
-
this.treeActivatedId = model(
|
|
206
|
+
this.treeActivatedId = model(/* @ts-ignore */
|
|
207
|
+
...(ngDevMode ? [undefined, { debugName: "treeActivatedId" }] : /* istanbul ignore next */ []));
|
|
194
208
|
/**
|
|
195
209
|
* @zh_CN 树默认展开的层级
|
|
196
210
|
* @en_US The level of the tree expanded by default
|
|
197
211
|
*/
|
|
198
|
-
this.treeExpandedLevel = input(this.config?.treeExpandedLevel ?? 0, { ...(ngDevMode ? { debugName: "treeExpandedLevel" } : {}), transform: XToNumber });
|
|
212
|
+
this.treeExpandedLevel = input(this.config?.treeExpandedLevel ?? 0, { ...(ngDevMode ? { debugName: "treeExpandedLevel" } : /* istanbul ignore next */ {}), transform: XToNumber });
|
|
199
213
|
/**
|
|
200
214
|
* @zh_CN 树 checkbox 选中的节点
|
|
201
215
|
* @en_US Tree checkbox selected node
|
|
202
216
|
*/
|
|
203
|
-
this.treeChecked = model([],
|
|
217
|
+
this.treeChecked = model([], /* @ts-ignore */
|
|
218
|
+
...(ngDevMode ? [{ debugName: "treeChecked" }] : /* istanbul ignore next */ []));
|
|
204
219
|
/**
|
|
205
220
|
* @zh_CN 树显示多选框
|
|
206
221
|
* @en_US Tree display checkbox
|
|
207
222
|
*/
|
|
208
|
-
this.treeCheckbox = input(false, { ...(ngDevMode ? { debugName: "treeCheckbox" } : {}), transform: XToBoolean });
|
|
223
|
+
this.treeCheckbox = input(false, { ...(ngDevMode ? { debugName: "treeCheckbox" } : /* istanbul ignore next */ {}), transform: XToBoolean });
|
|
209
224
|
/**
|
|
210
225
|
* @zh_CN 树和表格同时存在的时候,树节点 id 对应表格的属性,用来做表格数据过滤
|
|
211
226
|
* @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
|
|
212
227
|
*/
|
|
213
|
-
this.treeTableConnect = input(
|
|
228
|
+
this.treeTableConnect = input(/* @ts-ignore */
|
|
229
|
+
...(ngDevMode ? [undefined, { debugName: "treeTableConnect" }] : /* istanbul ignore next */ []));
|
|
214
230
|
/**
|
|
215
231
|
* @zh_CN 数据查询过滤表单
|
|
216
232
|
* @en_US form for data filter
|
|
217
233
|
*/
|
|
218
|
-
this.search = model(null,
|
|
234
|
+
this.search = model(null, /* @ts-ignore */
|
|
235
|
+
...(ngDevMode ? [{ debugName: "search" }] : /* istanbul ignore next */ []));
|
|
219
236
|
/**
|
|
220
237
|
* @zh_CN 尺寸
|
|
221
238
|
* @en_US Size
|
|
222
239
|
*/
|
|
223
|
-
this.size = input(this.config?.size ?? 'medium',
|
|
240
|
+
this.size = input(this.config?.size ?? 'medium', /* @ts-ignore */
|
|
241
|
+
...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
|
|
224
242
|
/**
|
|
225
243
|
* @zh_CN 标签
|
|
226
244
|
* @en_US Label
|
|
227
245
|
*/
|
|
228
|
-
this.label = input('',
|
|
246
|
+
this.label = input('', /* @ts-ignore */
|
|
247
|
+
...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
|
|
229
248
|
/**
|
|
230
249
|
* @zh_CN 标签宽度
|
|
231
250
|
* @en_US Label width
|
|
232
251
|
*/
|
|
233
|
-
this.labelWidth = input('', { ...(ngDevMode ? { debugName: "labelWidth" } : {}), transform: XToCssPixelValue });
|
|
252
|
+
this.labelWidth = input('', { ...(ngDevMode ? { debugName: "labelWidth" } : /* istanbul ignore next */ {}), transform: XToCssPixelValue });
|
|
234
253
|
/**
|
|
235
254
|
* @zh_CN 标签文字对齐方式
|
|
236
255
|
* @en_US Label text alignment method
|
|
237
256
|
*/
|
|
238
|
-
this.labelAlign = input('start',
|
|
257
|
+
this.labelAlign = input('start', /* @ts-ignore */
|
|
258
|
+
...(ngDevMode ? [{ debugName: "labelAlign" }] : /* istanbul ignore next */ []));
|
|
239
259
|
/**
|
|
240
260
|
* @zh_CN flex 布局下的子元素水平排列方式
|
|
241
261
|
* @en_US The level of sub-element level arrangement under flex layout
|
|
242
262
|
*/
|
|
243
|
-
this.justify = input('start',
|
|
263
|
+
this.justify = input('start', /* @ts-ignore */
|
|
264
|
+
...(ngDevMode ? [{ debugName: "justify" }] : /* istanbul ignore next */ []));
|
|
244
265
|
/**
|
|
245
266
|
* @zh_CN flex 布局下的子元素垂直排列方式
|
|
246
267
|
* @en_US sub-element vertical arrangement method under flex layout
|
|
247
268
|
*/
|
|
248
|
-
this.align = input('start',
|
|
269
|
+
this.align = input('start', /* @ts-ignore */
|
|
270
|
+
...(ngDevMode ? [{ debugName: "align" }] : /* istanbul ignore next */ []));
|
|
249
271
|
/**
|
|
250
272
|
* @zh_CN flex 布局下的子元素排列方向
|
|
251
273
|
* @en_US The direction of the sub-element arrangement under flex layout
|
|
252
274
|
*/
|
|
253
|
-
this.direction = input('column',
|
|
275
|
+
this.direction = input('column', /* @ts-ignore */
|
|
276
|
+
...(ngDevMode ? [{ debugName: "direction" }] : /* istanbul ignore next */ []));
|
|
254
277
|
/**
|
|
255
278
|
* @zh_CN 禁用
|
|
256
279
|
* @en_US Disabled
|
|
257
280
|
*/
|
|
258
|
-
this.disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : {}), transform: XToBoolean });
|
|
281
|
+
this.disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: XToBoolean });
|
|
259
282
|
/**
|
|
260
283
|
* @zh_CN 必填
|
|
261
284
|
* @en_US Required
|
|
262
285
|
*/
|
|
263
|
-
this.required = input(false, { ...(ngDevMode ? { debugName: "required" } : {}), transform: XToBoolean });
|
|
286
|
+
this.required = input(false, { ...(ngDevMode ? { debugName: "required" } : /* istanbul ignore next */ {}), transform: XToBoolean });
|
|
264
287
|
}
|
|
265
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
266
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "
|
|
288
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.1", ngImport: i0, type: XFindProperty, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
289
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.1", 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 }); }
|
|
267
290
|
}
|
|
268
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
291
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.1", ngImport: i0, type: XFindProperty, decorators: [{
|
|
269
292
|
type: Component,
|
|
270
293
|
args: [{ selector: `${XFindPrefix}-property`, template: '' }]
|
|
271
294
|
}], propDecorators: { bordered: [{ type: i0.Input, args: [{ isSignal: true, alias: "bordered", required: false }] }], multiple: [{ type: i0.Input, args: [{ isSignal: true, alias: "multiple", required: false }] }], columnLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "columnLabel", required: false }] }], dialogTitle: [{ type: i0.Input, args: [{ isSignal: true, alias: "dialogTitle", required: false }] }], dialogCheckboxLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "dialogCheckboxLabel", required: false }] }], dialogCheckboxWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "dialogCheckboxWidth", required: false }] }], dialogEmptyContent: [{ type: i0.Input, args: [{ isSignal: true, alias: "dialogEmptyContent", required: false }] }], dialogWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "dialogWidth", required: false }] }], dialogHeight: [{ type: i0.Input, args: [{ isSignal: true, alias: "dialogHeight", required: false }] }], dialogVisible: [{ type: i0.Input, args: [{ isSignal: true, alias: "dialogVisible", required: false }] }, { type: i0.Output, args: ["dialogVisibleChange"] }], dialogButtonsCenter: [{ type: i0.Input, args: [{ isSignal: true, alias: "dialogButtonsCenter", required: false }] }], tableData: [{ type: i0.Input, args: [{ isSignal: true, alias: "tableData", required: false }] }], tableIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "tableIndex", required: false }] }, { type: i0.Output, args: ["tableIndexChange"] }], tableSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "tableSize", required: false }] }, { type: i0.Output, args: ["tableSizeChange"] }], tableQuery: [{ type: i0.Input, args: [{ isSignal: true, alias: "tableQuery", required: false }] }, { type: i0.Output, args: ["tableQueryChange"] }], tableTotal: [{ type: i0.Input, args: [{ isSignal: true, alias: "tableTotal", required: false }] }, { type: i0.Output, args: ["tableTotalChange"] }], tableSortChange: [{ type: i0.Output, args: ["tableSortChange"] }], tableColumns: [{ type: i0.Input, args: [{ isSignal: true, alias: "tableColumns", required: false }] }], tableActivatedRow: [{ type: i0.Input, args: [{ isSignal: true, alias: "tableActivatedRow", required: false }] }, { type: i0.Output, args: ["tableActivatedRowChange"] }], tableRowEmit: [{ type: i0.Output, args: ["tableRowEmit"] }], tableCheckedRow: [{ type: i0.Input, args: [{ isSignal: true, alias: "tableCheckedRow", required: false }] }, { type: i0.Output, args: ["tableCheckedRowChange"] }], tableLoading: [{ type: i0.Input, args: [{ isSignal: true, alias: "tableLoading", required: false }] }], tableVirtualScroll: [{ type: i0.Input, args: [{ isSignal: true, alias: "tableVirtualScroll", required: false }] }], tableScroll: [{ type: i0.Input, args: [{ isSignal: true, alias: "tableScroll", required: false }] }], tableBodyHeight: [{ type: i0.Input, args: [{ isSignal: true, alias: "tableBodyHeight", required: false }] }], tableMinBufferPx: [{ type: i0.Input, args: [{ isSignal: true, alias: "tableMinBufferPx", required: false }] }], tableMaxBufferPx: [{ type: i0.Input, args: [{ isSignal: true, alias: "tableMaxBufferPx", required: false }] }], tableAdaptionHeight: [{ type: i0.Input, args: [{ isSignal: true, alias: "tableAdaptionHeight", required: false }] }], tableDocPercent: [{ type: i0.Input, args: [{ isSignal: true, alias: "tableDocPercent", required: false }] }], tableRowHeight: [{ type: i0.Input, args: [{ isSignal: true, alias: "tableRowHeight", required: false }] }], treeData: [{ type: i0.Input, args: [{ isSignal: true, alias: "treeData", required: false }] }], treeActivatedId: [{ type: i0.Input, args: [{ isSignal: true, alias: "treeActivatedId", required: false }] }, { type: i0.Output, args: ["treeActivatedIdChange"] }], treeExpandedLevel: [{ type: i0.Input, args: [{ isSignal: true, alias: "treeExpandedLevel", required: false }] }], treeChecked: [{ type: i0.Input, args: [{ isSignal: true, alias: "treeChecked", required: false }] }, { type: i0.Output, args: ["treeCheckedChange"] }], treeCheckbox: [{ type: i0.Input, args: [{ isSignal: true, alias: "treeCheckbox", required: false }] }], treeTableConnect: [{ type: i0.Input, args: [{ isSignal: true, alias: "treeTableConnect", required: false }] }], search: [{ type: i0.Input, args: [{ isSignal: true, alias: "search", required: false }] }, { type: i0.Output, args: ["searchChange"] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], labelWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "labelWidth", required: false }] }], labelAlign: [{ type: i0.Input, args: [{ isSignal: true, alias: "labelAlign", required: false }] }], justify: [{ type: i0.Input, args: [{ isSignal: true, alias: "justify", required: false }] }], align: [{ type: i0.Input, args: [{ isSignal: true, alias: "align", required: false }] }], direction: [{ type: i0.Input, args: [{ isSignal: true, alias: "direction", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }] } });
|
|
@@ -275,11 +298,15 @@ class XFindComponent extends XFindProperty {
|
|
|
275
298
|
super(...arguments);
|
|
276
299
|
this.find = viewChild.required('find');
|
|
277
300
|
this.dialogCom = viewChild.required('dialogCom');
|
|
278
|
-
this.tableCom = viewChild('tableCom',
|
|
279
|
-
|
|
301
|
+
this.tableCom = viewChild('tableCom', /* @ts-ignore */
|
|
302
|
+
...(ngDevMode ? [{ debugName: "tableCom" }] : /* istanbul ignore next */ []));
|
|
303
|
+
this.treeCom = viewChild('treeCom', /* @ts-ignore */
|
|
304
|
+
...(ngDevMode ? [{ debugName: "treeCom" }] : /* istanbul ignore next */ []));
|
|
280
305
|
this.buttonCom = viewChild.required('buttonCom');
|
|
281
|
-
this.tableRef = viewChild('tableRef',
|
|
282
|
-
|
|
306
|
+
this.tableRef = viewChild('tableRef', /* @ts-ignore */
|
|
307
|
+
...(ngDevMode ? [{ debugName: "tableRef" }] : /* istanbul ignore next */ []));
|
|
308
|
+
this.treeRef = viewChild('treeRef', /* @ts-ignore */
|
|
309
|
+
...(ngDevMode ? [{ debugName: "treeRef" }] : /* istanbul ignore next */ []));
|
|
283
310
|
this.tableRefChanged = toObservable(this.tableRef)
|
|
284
311
|
.pipe(tap((x) => x && this.multiple() && this.setSubscribe()))
|
|
285
312
|
.subscribe();
|
|
@@ -309,15 +336,22 @@ class XFindComponent extends XFindProperty {
|
|
|
309
336
|
}
|
|
310
337
|
}
|
|
311
338
|
return this.tableColumns();
|
|
312
|
-
},
|
|
313
|
-
|
|
314
|
-
this.
|
|
339
|
+
}, /* @ts-ignore */
|
|
340
|
+
...(ngDevMode ? [{ debugName: "tableColumnsSignal" }] : /* istanbul ignore next */ []));
|
|
341
|
+
this.getEmpty = computed(() => !this.temp() || this.temp().length === 0, /* @ts-ignore */
|
|
342
|
+
...(ngDevMode ? [{ debugName: "getEmpty" }] : /* istanbul ignore next */ []));
|
|
343
|
+
this.hasTable = computed(() => this.tableColumns().length > 0, /* @ts-ignore */
|
|
344
|
+
...(ngDevMode ? [{ debugName: "hasTable" }] : /* istanbul ignore next */ []));
|
|
315
345
|
this.hasTree = computed(() => (Array.isArray(this.treeData()) && this.treeData().length > 0) ||
|
|
316
346
|
this.treeData() instanceof Function ||
|
|
317
|
-
this.treeData() instanceof Observable,
|
|
318
|
-
|
|
319
|
-
this.
|
|
320
|
-
|
|
347
|
+
this.treeData() instanceof Observable, /* @ts-ignore */
|
|
348
|
+
...(ngDevMode ? [{ debugName: "hasTree" }] : /* istanbul ignore next */ []));
|
|
349
|
+
this.hasTreeTable = computed(() => this.hasTable() && this.hasTree(), /* @ts-ignore */
|
|
350
|
+
...(ngDevMode ? [{ debugName: "hasTreeTable" }] : /* istanbul ignore next */ []));
|
|
351
|
+
this.hasTreeMultiple = computed(() => this.hasTree() && !this.hasTreeTable() && this.multiple(), /* @ts-ignore */
|
|
352
|
+
...(ngDevMode ? [{ debugName: "hasTreeMultiple" }] : /* istanbul ignore next */ []));
|
|
353
|
+
this.hasSearch = computed(() => this.search() && this.hasTable(), /* @ts-ignore */
|
|
354
|
+
...(ngDevMode ? [{ debugName: "hasSearch" }] : /* istanbul ignore next */ []));
|
|
321
355
|
this.dialogWidthSignal = computed(() => {
|
|
322
356
|
if (XIsUndefined(this.dialogWidth())) {
|
|
323
357
|
if ((this.hasTable() && this.hasTree()) || this.hasTable()) {
|
|
@@ -331,21 +365,27 @@ class XFindComponent extends XFindProperty {
|
|
|
331
365
|
}
|
|
332
366
|
}
|
|
333
367
|
return this.dialogWidth();
|
|
334
|
-
},
|
|
335
|
-
|
|
336
|
-
this.
|
|
368
|
+
}, /* @ts-ignore */
|
|
369
|
+
...(ngDevMode ? [{ debugName: "dialogWidthSignal" }] : /* istanbul ignore next */ []));
|
|
370
|
+
this.temp = signal(undefined, /* @ts-ignore */
|
|
371
|
+
...(ngDevMode ? [{ debugName: "temp" }] : /* istanbul ignore next */ []));
|
|
372
|
+
this.height = signal(100, /* @ts-ignore */
|
|
373
|
+
...(ngDevMode ? [{ debugName: "height" }] : /* istanbul ignore next */ []));
|
|
337
374
|
this.unSubject = new Subject();
|
|
338
375
|
this.document = inject(DOCUMENT);
|
|
339
|
-
this.fontSize = computed(() => parseFloat(XComputedStyle(this.document.documentElement, 'font-size')),
|
|
376
|
+
this.fontSize = computed(() => parseFloat(XComputedStyle(this.document.documentElement, 'font-size')), /* @ts-ignore */
|
|
377
|
+
...(ngDevMode ? [{ debugName: "fontSize" }] : /* istanbul ignore next */ []));
|
|
340
378
|
this.classMap = computed(() => ({
|
|
341
379
|
[`${XFindPrefix}-${this.size()}`]: !!this.size(),
|
|
342
380
|
[`x-justify-${this.justify()}`]: !!this.justify(),
|
|
343
381
|
[`x-align-${this.align()}`]: !!this.align(),
|
|
344
382
|
[`x-direction-${this.direction()}`]: !!this.direction()
|
|
345
|
-
}),
|
|
383
|
+
}), /* @ts-ignore */
|
|
384
|
+
...(ngDevMode ? [{ debugName: "classMap" }] : /* istanbul ignore next */ []));
|
|
346
385
|
this.labelMapSignal = computed(() => ({
|
|
347
386
|
[`x-text-align-${this.labelAlign()}`]: !!this.labelAlign()
|
|
348
|
-
}),
|
|
387
|
+
}), /* @ts-ignore */
|
|
388
|
+
...(ngDevMode ? [{ debugName: "labelMapSignal" }] : /* istanbul ignore next */ []));
|
|
349
389
|
}
|
|
350
390
|
ngOnChanges(simples) {
|
|
351
391
|
const { tableData } = simples;
|
|
@@ -562,10 +602,10 @@ class XFindComponent extends XFindProperty {
|
|
|
562
602
|
this.tableQuery.set(tableQuery);
|
|
563
603
|
this.tableCom().change(1);
|
|
564
604
|
}
|
|
565
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
566
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.1.1", 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 }); }
|
|
605
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.1", ngImport: i0, type: XFindComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
606
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.1", 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 }); }
|
|
567
607
|
}
|
|
568
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
608
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.1", ngImport: i0, type: XFindComponent, decorators: [{
|
|
569
609
|
type: Component,
|
|
570
610
|
args: [{ selector: `${XFindPrefix}`, imports: [
|
|
571
611
|
NgClass,
|
|
@@ -584,11 +624,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImpor
|
|
|
584
624
|
}], propDecorators: { find: [{ type: i0.ViewChild, args: ['find', { isSignal: true }] }], dialogCom: [{ type: i0.ViewChild, args: ['dialogCom', { isSignal: true }] }], tableCom: [{ type: i0.ViewChild, args: ['tableCom', { isSignal: true }] }], treeCom: [{ type: i0.ViewChild, args: ['treeCom', { isSignal: true }] }], buttonCom: [{ type: i0.ViewChild, args: ['buttonCom', { isSignal: true }] }], tableRef: [{ type: i0.ViewChild, args: ['tableRef', { isSignal: true }] }], treeRef: [{ type: i0.ViewChild, args: ['treeRef', { isSignal: true }] }] } });
|
|
585
625
|
|
|
586
626
|
class XFindModule {
|
|
587
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
588
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
589
|
-
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
627
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.1", ngImport: i0, type: XFindModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
628
|
+
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.0.1", ngImport: i0, type: XFindModule, imports: [XFindComponent], exports: [XFindComponent] }); }
|
|
629
|
+
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.0.1", ngImport: i0, type: XFindModule, imports: [XFindComponent] }); }
|
|
590
630
|
}
|
|
591
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
631
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.1", ngImport: i0, type: XFindModule, decorators: [{
|
|
592
632
|
type: NgModule,
|
|
593
633
|
args: [{
|
|
594
634
|
exports: [XFindComponent],
|