@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
|
@@ -37,82 +37,91 @@ class XTableProperty extends XPropertyFunction(X_TABLE_CONFIG_NAME) {
|
|
|
37
37
|
* @zh_CN 行数据
|
|
38
38
|
* @en_US Row data
|
|
39
39
|
*/
|
|
40
|
-
this.data = input([], { ...(ngDevMode ? { debugName: "data" } : {}), transform: XToDataConvert });
|
|
40
|
+
this.data = input([], { ...(ngDevMode ? { debugName: "data" } : /* istanbul ignore next */ {}), transform: XToDataConvert });
|
|
41
41
|
/**
|
|
42
42
|
* @zh_CN 列集合
|
|
43
43
|
* @en_US Column set
|
|
44
44
|
*/
|
|
45
|
-
this.columns = input([],
|
|
45
|
+
this.columns = input([], /* @ts-ignore */
|
|
46
|
+
...(ngDevMode ? [{ debugName: "columns" }] : /* istanbul ignore next */ []));
|
|
46
47
|
/**
|
|
47
48
|
* @zh_CN 表头高度,单位 px
|
|
48
49
|
* @en_US Header height, unit px
|
|
49
50
|
*/
|
|
50
|
-
this.headerHeight = input(this.config?.headerHeight ?? null, { ...(ngDevMode ? { debugName: "headerHeight" } : {}), transform: XToNumber });
|
|
51
|
+
this.headerHeight = input(this.config?.headerHeight ?? null, { ...(ngDevMode ? { debugName: "headerHeight" } : /* istanbul ignore next */ {}), transform: XToNumber });
|
|
51
52
|
/**
|
|
52
53
|
* @zh_CN 行高,单位 px
|
|
53
54
|
* @en_US Row height, unit px
|
|
54
55
|
*/
|
|
55
|
-
this.rowHeight = input(this.config?.rowHeight ?? 42, { ...(ngDevMode ? { debugName: "rowHeight" } : {}), transform: XToNumber });
|
|
56
|
+
this.rowHeight = input(this.config?.rowHeight ?? 42, { ...(ngDevMode ? { debugName: "rowHeight" } : /* istanbul ignore next */ {}), transform: XToNumber });
|
|
56
57
|
/**
|
|
57
58
|
* @zh_CN 是否启用加载 loading
|
|
58
59
|
* @en_US Whether to enable loading
|
|
59
60
|
*/
|
|
60
|
-
this.loading = input(this.config?.loading ?? false, { ...(ngDevMode ? { debugName: "loading" } : {}), transform: XToBoolean });
|
|
61
|
+
this.loading = input(this.config?.loading ?? false, { ...(ngDevMode ? { debugName: "loading" } : /* istanbul ignore next */ {}), transform: XToBoolean });
|
|
61
62
|
/**
|
|
62
63
|
* @zh_CN 是否展示列边框
|
|
63
64
|
* @en_US Whether to show column borders
|
|
64
65
|
*/
|
|
65
|
-
this.bordered = input(this.config?.bordered ?? false, { ...(ngDevMode ? { debugName: "bordered" } : {}), transform: XToBoolean });
|
|
66
|
+
this.bordered = input(this.config?.bordered ?? false, { ...(ngDevMode ? { debugName: "bordered" } : /* istanbul ignore next */ {}), transform: XToBoolean });
|
|
66
67
|
/**
|
|
67
68
|
* @zh_CN 是否显示列头
|
|
68
69
|
* @en_US Whether to display the column headers
|
|
69
70
|
*/
|
|
70
|
-
this.showHeader = input(this.config?.showHeader ?? true, { ...(ngDevMode ? { debugName: "showHeader" } : {}), transform: XToBoolean });
|
|
71
|
+
this.showHeader = input(this.config?.showHeader ?? true, { ...(ngDevMode ? { debugName: "showHeader" } : /* istanbul ignore next */ {}), transform: XToBoolean });
|
|
71
72
|
/**
|
|
72
73
|
* @zh_CN 列头显示位置
|
|
73
74
|
* @en_US Whether to display the column headers
|
|
74
75
|
*/
|
|
75
|
-
this.headerPosition = input(this.config?.headerPosition ?? 'top',
|
|
76
|
+
this.headerPosition = input(this.config?.headerPosition ?? 'top', /* @ts-ignore */
|
|
77
|
+
...(ngDevMode ? [{ debugName: "headerPosition" }] : /* istanbul ignore next */ []));
|
|
76
78
|
/**
|
|
77
79
|
* @zh_CN 列内容支持 innerHTML 渲染 html 标签
|
|
78
80
|
* @en_US Column content supports innerHTML rendering of HTML tags
|
|
79
81
|
*/
|
|
80
|
-
this.bodyInnerHTML = input(this.config?.bodyInnerHTML ?? false, { ...(ngDevMode ? { debugName: "bodyInnerHTML" } : {}), transform: XToBoolean });
|
|
82
|
+
this.bodyInnerHTML = input(this.config?.bodyInnerHTML ?? false, { ...(ngDevMode ? { debugName: "bodyInnerHTML" } : /* istanbul ignore next */ {}), transform: XToBoolean });
|
|
81
83
|
/**
|
|
82
84
|
* @zh_CN 当前选中行数据
|
|
83
85
|
* @en_US Currently selected row data
|
|
84
86
|
*/
|
|
85
|
-
this.activatedRow = model(
|
|
87
|
+
this.activatedRow = model(/* @ts-ignore */
|
|
88
|
+
...(ngDevMode ? [undefined, { debugName: "activatedRow" }] : /* istanbul ignore next */ []));
|
|
86
89
|
/**
|
|
87
90
|
* @zh_CN 列头自定义模板,通过 key-value 的方式指定每列的模版
|
|
88
91
|
* @en_US Column header custom template
|
|
89
92
|
*/
|
|
90
|
-
this.headColumnTpl = input({},
|
|
93
|
+
this.headColumnTpl = input({}, /* @ts-ignore */
|
|
94
|
+
...(ngDevMode ? [{ debugName: "headColumnTpl" }] : /* istanbul ignore next */ []));
|
|
91
95
|
/**
|
|
92
96
|
* @zh_CN 列头单元格自定义模板,优先级低于列头自定义模板
|
|
93
97
|
* @en_US Column header custom template
|
|
94
98
|
*/
|
|
95
|
-
this.headThTpl = input(
|
|
99
|
+
this.headThTpl = input(/* @ts-ignore */
|
|
100
|
+
...(ngDevMode ? [undefined, { debugName: "headThTpl" }] : /* istanbul ignore next */ []));
|
|
96
101
|
/**
|
|
97
102
|
* @zh_CN 列内容自定义模板,通过 key-value 的方式指定每列的模版
|
|
98
103
|
* @en_US Column content custom template
|
|
99
104
|
*/
|
|
100
|
-
this.bodyColumnTpl = input({},
|
|
105
|
+
this.bodyColumnTpl = input({}, /* @ts-ignore */
|
|
106
|
+
...(ngDevMode ? [{ debugName: "bodyColumnTpl" }] : /* istanbul ignore next */ []));
|
|
101
107
|
/**
|
|
102
108
|
* @zh_CN 单元格的自定义模板,优先级低于列内容自定义模板
|
|
103
109
|
* @en_US Custom template of cells
|
|
104
110
|
*/
|
|
105
|
-
this.bodyTdTpl = input(
|
|
111
|
+
this.bodyTdTpl = input(/* @ts-ignore */
|
|
112
|
+
...(ngDevMode ? [undefined, { debugName: "bodyTdTpl" }] : /* istanbul ignore next */ []));
|
|
106
113
|
/**
|
|
107
114
|
* @zh_CN 行条件样式
|
|
108
115
|
* @en_US Row condition class
|
|
109
116
|
*/
|
|
110
|
-
this.rowClass = input(
|
|
117
|
+
this.rowClass = input(/* @ts-ignore */
|
|
118
|
+
...(ngDevMode ? [undefined, { debugName: "rowClass" }] : /* istanbul ignore next */ []));
|
|
111
119
|
/**
|
|
112
120
|
* @zh_CN 列头搜索自定义模板
|
|
113
121
|
* @en_US Line head search custom template
|
|
114
122
|
*/
|
|
115
|
-
this.headSearchTpl = input(
|
|
123
|
+
this.headSearchTpl = input(/* @ts-ignore */
|
|
124
|
+
...(ngDevMode ? [undefined, { debugName: "headSearchTpl" }] : /* istanbul ignore next */ []));
|
|
116
125
|
/**
|
|
117
126
|
* @zh_CN 排序点击的事件
|
|
118
127
|
* @en_US Sort click events
|
|
@@ -132,273 +141,294 @@ class XTableProperty extends XPropertyFunction(X_TABLE_CONFIG_NAME) {
|
|
|
132
141
|
* @zh_CN 允许行点击选中当前行
|
|
133
142
|
* @en_US Allow row click to select
|
|
134
143
|
*/
|
|
135
|
-
this.allowSelectRow = input(this.config?.allowSelectRow ?? true, { ...(ngDevMode ? { debugName: "allowSelectRow" } : {}), transform: XToBoolean });
|
|
144
|
+
this.allowSelectRow = input(this.config?.allowSelectRow ?? true, { ...(ngDevMode ? { debugName: "allowSelectRow" } : /* istanbul ignore next */ {}), transform: XToBoolean });
|
|
136
145
|
/**
|
|
137
146
|
* @zh_CN 允许行点击选中 checkbox
|
|
138
147
|
* @en_US Allow lines to click checkbox
|
|
139
148
|
*/
|
|
140
|
-
this.allowCheckRow = input(this.config?.allowCheckRow ?? true, { ...(ngDevMode ? { debugName: "allowCheckRow" } : {}), transform: XToBoolean });
|
|
149
|
+
this.allowCheckRow = input(this.config?.allowCheckRow ?? true, { ...(ngDevMode ? { debugName: "allowCheckRow" } : /* istanbul ignore next */ {}), transform: XToBoolean });
|
|
141
150
|
/**
|
|
142
151
|
* @zh_CN 开启虚拟滚动
|
|
143
152
|
* @en_US Turn on virtual scrolling
|
|
144
153
|
*/
|
|
145
|
-
this.virtualScroll = input(this.config?.virtualScroll ?? false, { ...(ngDevMode ? { debugName: "virtualScroll" } : {}), transform: XToBoolean });
|
|
154
|
+
this.virtualScroll = input(this.config?.virtualScroll ?? false, { ...(ngDevMode ? { debugName: "virtualScroll" } : /* istanbul ignore next */ {}), transform: XToBoolean });
|
|
146
155
|
/**
|
|
147
156
|
* @zh_CN body 数据高度,只有开启虚拟滚动的时候生效
|
|
148
157
|
* @en_US body data height
|
|
149
158
|
*/
|
|
150
|
-
this.bodyHeight = input(undefined, { ...(ngDevMode ? { debugName: "bodyHeight" } : {}), transform: XToNumber });
|
|
159
|
+
this.bodyHeight = input(undefined, { ...(ngDevMode ? { debugName: "bodyHeight" } : /* istanbul ignore next */ {}), transform: XToNumber });
|
|
151
160
|
/**
|
|
152
161
|
* @zh_CN itemSize,对应 cdk scroll 中的参数
|
|
153
162
|
* @en_US itemSize,corresponding to the parameters in cdk scroll
|
|
154
163
|
*/
|
|
155
|
-
this.itemSize = input(this.config?.itemSize ?? 42, { ...(ngDevMode ? { debugName: "itemSize" } : {}), transform: XToNumber });
|
|
164
|
+
this.itemSize = input(this.config?.itemSize ?? 42, { ...(ngDevMode ? { debugName: "itemSize" } : /* istanbul ignore next */ {}), transform: XToNumber });
|
|
156
165
|
/**
|
|
157
166
|
* @zh_CN 超出可视窗口缓冲区的最小值,对应 cdk scroll 中的参数
|
|
158
167
|
* @en_US Exceed the minimum value of the visible window buffer, corresponding to the parameters in cdk scroll
|
|
159
168
|
*/
|
|
160
|
-
this.minBufferPx = input(100, { ...(ngDevMode ? { debugName: "minBufferPx" } : {}), transform: XToNumber });
|
|
169
|
+
this.minBufferPx = input(100, { ...(ngDevMode ? { debugName: "minBufferPx" } : /* istanbul ignore next */ {}), transform: XToNumber });
|
|
161
170
|
/**
|
|
162
171
|
* @zh_CN 渲染新数据缓冲区的像素,对应 cdk scroll 中的参数
|
|
163
172
|
* @en_US Render the pixels of the new data buffer, corresponding to the parameters in cdk scroll
|
|
164
173
|
*/
|
|
165
|
-
this.maxBufferPx = input(200, { ...(ngDevMode ? { debugName: "maxBufferPx" } : {}), transform: XToNumber });
|
|
174
|
+
this.maxBufferPx = input(200, { ...(ngDevMode ? { debugName: "maxBufferPx" } : /* istanbul ignore next */ {}), transform: XToNumber });
|
|
166
175
|
/**
|
|
167
176
|
* @zh_CN 自适应高度,table 高度等于屏幕高度减掉此处设置的数值
|
|
168
177
|
* @en_US Adaptive height, table height is equal to the screen height minus the value set here
|
|
169
178
|
*/
|
|
170
|
-
this.adaptionHeight = input(undefined, { ...(ngDevMode ? { debugName: "adaptionHeight" } : {}), transform: XToNumber });
|
|
179
|
+
this.adaptionHeight = input(undefined, { ...(ngDevMode ? { debugName: "adaptionHeight" } : /* istanbul ignore next */ {}), transform: XToNumber });
|
|
171
180
|
/**
|
|
172
181
|
* @zh_CN 文档高度百分比,弹窗百分比高度用到
|
|
173
182
|
* @en_US Document height percentage, used by pop-up window percentage height
|
|
174
183
|
*/
|
|
175
|
-
this.docPercent = input(1, { ...(ngDevMode ? { debugName: "docPercent" } : {}), transform: XToNumber });
|
|
184
|
+
this.docPercent = input(1, { ...(ngDevMode ? { debugName: "docPercent" } : /* istanbul ignore next */ {}), transform: XToNumber });
|
|
176
185
|
/**
|
|
177
186
|
* @zh_CN checkbox 列初始选中的数据,列中激活 checkbox
|
|
178
187
|
* @en_US Checkbox column initially selected data, checkbox is activated in column
|
|
179
188
|
*/
|
|
180
|
-
this.checkedRow = input({},
|
|
189
|
+
this.checkedRow = input({}, /* @ts-ignore */
|
|
190
|
+
...(ngDevMode ? [{ debugName: "checkedRow" }] : /* istanbul ignore next */ []));
|
|
181
191
|
/**
|
|
182
192
|
* @zh_CN 禁用拖动 checkbox 批量选中/取消
|
|
183
193
|
* @en_US Disable dragging checkboxes for batch selection/cancellation
|
|
184
194
|
*/
|
|
185
|
-
this.checkboxDragDisabled = input(false, { ...(ngDevMode ? { debugName: "checkboxDragDisabled" } : {}), transform: XToBoolean });
|
|
195
|
+
this.checkboxDragDisabled = input(false, { ...(ngDevMode ? { debugName: "checkboxDragDisabled" } : /* istanbul ignore next */ {}), transform: XToBoolean });
|
|
186
196
|
/**
|
|
187
197
|
* @zh_CN 如果 data 是函数类型,可以通过此参数控制请求,常用于弹框中的表格,弹出后再请求
|
|
188
198
|
* @en_US If data is a function type, you can use this parameter to control the request, which is often used in the form in the pop-up box, and then request it after it pops up
|
|
189
199
|
*/
|
|
190
|
-
this.manual = model(true,
|
|
200
|
+
this.manual = model(true, /* @ts-ignore */
|
|
201
|
+
...(ngDevMode ? [{ debugName: "manual" }] : /* istanbul ignore next */ []));
|
|
191
202
|
/**
|
|
192
203
|
* @zh_CN 滚动区域高宽
|
|
193
204
|
* @en_US Height and width of rolling area
|
|
194
205
|
*/
|
|
195
|
-
this.scroll = input(
|
|
206
|
+
this.scroll = input(/* @ts-ignore */
|
|
207
|
+
...(ngDevMode ? [undefined, { debugName: "scroll" }] : /* istanbul ignore next */ []));
|
|
196
208
|
/**
|
|
197
209
|
* @zh_CN 表格页头
|
|
198
210
|
* @en_US Table header
|
|
199
211
|
*/
|
|
200
|
-
this.header = input(
|
|
212
|
+
this.header = input(/* @ts-ignore */
|
|
213
|
+
...(ngDevMode ? [undefined, { debugName: "header" }] : /* istanbul ignore next */ []));
|
|
201
214
|
/**
|
|
202
215
|
* @zh_CN 表格页尾
|
|
203
216
|
* @en_US Table footer
|
|
204
217
|
*/
|
|
205
|
-
this.footer = input(
|
|
218
|
+
this.footer = input(/* @ts-ignore */
|
|
219
|
+
...(ngDevMode ? [undefined, { debugName: "footer" }] : /* istanbul ignore next */ []));
|
|
206
220
|
/**
|
|
207
221
|
* @zh_CN 单元格配置
|
|
208
222
|
* @en_US Cell config
|
|
209
223
|
*/
|
|
210
|
-
this.cellConfig = input(
|
|
224
|
+
this.cellConfig = input(/* @ts-ignore */
|
|
225
|
+
...(ngDevMode ? [undefined, { debugName: "cellConfig" }] : /* istanbul ignore next */ []));
|
|
211
226
|
/**
|
|
212
227
|
* @zh_CN 尺寸
|
|
213
228
|
* @en_US Size
|
|
214
229
|
*/
|
|
215
|
-
this.rowSize = input(this.config?.rowSize ?? 'medium',
|
|
230
|
+
this.rowSize = input(this.config?.rowSize ?? 'medium', /* @ts-ignore */
|
|
231
|
+
...(ngDevMode ? [{ debugName: "rowSize" }] : /* istanbul ignore next */ []));
|
|
216
232
|
/**
|
|
217
233
|
* @zh_CN 分页器位置
|
|
218
234
|
* @en_US Pagination position
|
|
219
235
|
*/
|
|
220
|
-
this.paginationPosition = input('bottom-left',
|
|
236
|
+
this.paginationPosition = input('bottom-left', /* @ts-ignore */
|
|
237
|
+
...(ngDevMode ? [{ debugName: "paginationPosition" }] : /* istanbul ignore next */ []));
|
|
221
238
|
/**
|
|
222
239
|
* @zh_CN 隐藏表格外边框
|
|
223
240
|
* @en_US Hidden table wrap border
|
|
224
241
|
*/
|
|
225
|
-
this.hiddenWrapBorder = input(this.config?.hiddenWrapBorder ?? false, { ...(ngDevMode ? { debugName: "hiddenWrapBorder" } : {}), transform: XToBoolean });
|
|
242
|
+
this.hiddenWrapBorder = input(this.config?.hiddenWrapBorder ?? false, { ...(ngDevMode ? { debugName: "hiddenWrapBorder" } : /* istanbul ignore next */ {}), transform: XToBoolean });
|
|
226
243
|
/**
|
|
227
244
|
* @deprecated useless
|
|
228
245
|
* @zh_CN 隐藏分页器按钮边框
|
|
229
246
|
* @en_US Hidden pagination button border
|
|
230
247
|
*/
|
|
231
|
-
this.hiddenPaginationBorder = input(this.config?.hiddenPaginationBorder ?? false, { ...(ngDevMode ? { debugName: "hiddenPaginationBorder" } : {}), transform: XToBoolean });
|
|
248
|
+
this.hiddenPaginationBorder = input(this.config?.hiddenPaginationBorder ?? false, { ...(ngDevMode ? { debugName: "hiddenPaginationBorder" } : /* istanbul ignore next */ {}), transform: XToBoolean });
|
|
232
249
|
/**
|
|
233
250
|
* @zh_CN 显示分页器
|
|
234
251
|
* @en_US Pagination position
|
|
235
252
|
*/
|
|
236
|
-
this.showPagination = input(this.config?.showPagination ?? true, { ...(ngDevMode ? { debugName: "showPagination" } : {}), transform: XToBoolean });
|
|
253
|
+
this.showPagination = input(this.config?.showPagination ?? true, { ...(ngDevMode ? { debugName: "showPagination" } : /* istanbul ignore next */ {}), transform: XToBoolean });
|
|
237
254
|
/**
|
|
238
255
|
* @zh_CN 树形表格
|
|
239
256
|
* @en_US Tree table
|
|
240
257
|
*/
|
|
241
|
-
this.treeTable = input(this.config?.treeTable ?? false, { ...(ngDevMode ? { debugName: "treeTable" } : {}), transform: XToBoolean });
|
|
258
|
+
this.treeTable = input(this.config?.treeTable ?? false, { ...(ngDevMode ? { debugName: "treeTable" } : /* istanbul ignore next */ {}), transform: XToBoolean });
|
|
242
259
|
/**
|
|
243
260
|
* @zh_CN 树形表格展开所有节点
|
|
244
261
|
* @en_US Tree table
|
|
245
262
|
*/
|
|
246
|
-
this.expandedAll = input(this.config?.expandedAll ?? false, { ...(ngDevMode ? { debugName: "expandedAll" } : {}), transform: XToBoolean });
|
|
263
|
+
this.expandedAll = input(this.config?.expandedAll ?? false, { ...(ngDevMode ? { debugName: "expandedAll" } : /* istanbul ignore next */ {}), transform: XToBoolean });
|
|
247
264
|
/**
|
|
248
265
|
* @zh_CN 默认展开的层级,-1 不展开
|
|
249
266
|
* @en_US Default expanded level
|
|
250
267
|
*/
|
|
251
|
-
this.expandedLevel = input(this.config?.expandedLevel ?? -1, { ...(ngDevMode ? { debugName: "expandedLevel" } : {}), transform: XToNumber });
|
|
268
|
+
this.expandedLevel = input(this.config?.expandedLevel ?? -1, { ...(ngDevMode ? { debugName: "expandedLevel" } : /* istanbul ignore next */ {}), transform: XToNumber });
|
|
252
269
|
/**
|
|
253
270
|
* @zh_CN 展开的节点
|
|
254
271
|
* @en_US Expanded node
|
|
255
272
|
*/
|
|
256
|
-
this.expanded = input([],
|
|
273
|
+
this.expanded = input([], /* @ts-ignore */
|
|
274
|
+
...(ngDevMode ? [{ debugName: "expanded" }] : /* istanbul ignore next */ []));
|
|
257
275
|
/**
|
|
258
276
|
* @zh_CN 自定义展开内容
|
|
259
277
|
* @en_US Customized expansion content
|
|
260
278
|
*/
|
|
261
|
-
this.expandTpl = input(
|
|
279
|
+
this.expandTpl = input(/* @ts-ignore */
|
|
280
|
+
...(ngDevMode ? [undefined, { debugName: "expandTpl" }] : /* istanbul ignore next */ []));
|
|
262
281
|
/**
|
|
263
282
|
* @zh_CN 显示数据为空的提示
|
|
264
283
|
* @en_US Display a prompt with empty data
|
|
265
284
|
*/
|
|
266
|
-
this.showEmpty = input(this.config?.showEmpty ?? true, { ...(ngDevMode ? { debugName: "showEmpty" } : {}), transform: XToBoolean });
|
|
285
|
+
this.showEmpty = input(this.config?.showEmpty ?? true, { ...(ngDevMode ? { debugName: "showEmpty" } : /* istanbul ignore next */ {}), transform: XToBoolean });
|
|
267
286
|
/**
|
|
268
287
|
* @zh_CN 数据为空的提示图片地址或自定义模板
|
|
269
288
|
* @en_US Picture address or custom template
|
|
270
289
|
*/
|
|
271
|
-
this.emptyImg = input(this.config?.emptyImg ?? undefined,
|
|
290
|
+
this.emptyImg = input(this.config?.emptyImg ?? undefined, /* @ts-ignore */
|
|
291
|
+
...(ngDevMode ? [{ debugName: "emptyImg" }] : /* istanbul ignore next */ []));
|
|
272
292
|
/**
|
|
273
293
|
* @zh_CN 数据为空的提示内容或自定义模板
|
|
274
294
|
* @en_US Content or custom template
|
|
275
295
|
*/
|
|
276
|
-
this.emptyContent = input(this.config?.emptyContent ?? undefined,
|
|
296
|
+
this.emptyContent = input(this.config?.emptyContent ?? undefined, /* @ts-ignore */
|
|
297
|
+
...(ngDevMode ? [{ debugName: "emptyContent" }] : /* istanbul ignore next */ []));
|
|
277
298
|
/**
|
|
278
299
|
* @zh_CN 当前页码
|
|
279
300
|
* @en_US Current page number
|
|
280
301
|
*/
|
|
281
|
-
this.index = model(this.config?.index ?? 1,
|
|
302
|
+
this.index = model(this.config?.index ?? 1, /* @ts-ignore */
|
|
303
|
+
...(ngDevMode ? [{ debugName: "index" }] : /* istanbul ignore next */ []));
|
|
282
304
|
/**
|
|
283
305
|
* @zh_CN 每页显示条数
|
|
284
306
|
* @en_US Number of items displayed per page
|
|
285
307
|
*/
|
|
286
|
-
this.size = model(this.config?.size ?? 10,
|
|
308
|
+
this.size = model(this.config?.size ?? 10, /* @ts-ignore */
|
|
309
|
+
...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
|
|
287
310
|
/**
|
|
288
311
|
* @zh_CN 总数
|
|
289
312
|
* @en_US Total
|
|
290
313
|
*/
|
|
291
|
-
this.total = model(0,
|
|
314
|
+
this.total = model(0, /* @ts-ignore */
|
|
315
|
+
...(ngDevMode ? [{ debugName: "total" }] : /* istanbul ignore next */ []));
|
|
292
316
|
/**
|
|
293
317
|
* @zh_CN 查询条件
|
|
294
318
|
* @en_US Query conditions
|
|
295
319
|
*/
|
|
296
|
-
this.query = model({},
|
|
320
|
+
this.query = model({}, /* @ts-ignore */
|
|
321
|
+
...(ngDevMode ? [{ debugName: "query" }] : /* istanbul ignore next */ []));
|
|
297
322
|
/**
|
|
298
323
|
* @zh_CN 最多显示的分页数量
|
|
299
324
|
* @en_US The largest number of pages display
|
|
300
325
|
*/
|
|
301
|
-
this.pageLinkSize = input(this.config?.pageLinkSize ?? 5, { ...(ngDevMode ? { debugName: "pageLinkSize" } : {}), transform: XToNumber });
|
|
326
|
+
this.pageLinkSize = input(this.config?.pageLinkSize ?? 5, { ...(ngDevMode ? { debugName: "pageLinkSize" } : /* istanbul ignore next */ {}), transform: XToNumber });
|
|
302
327
|
/**
|
|
303
328
|
* @zh_CN 显示首尾页跳转
|
|
304
329
|
* @en_US Display the first and last page
|
|
305
330
|
*/
|
|
306
|
-
this.showEllipsis = input(this.config?.showEllipsis ?? true, { ...(ngDevMode ? { debugName: "showEllipsis" } : {}), transform: XToBoolean });
|
|
331
|
+
this.showEllipsis = input(this.config?.showEllipsis ?? true, { ...(ngDevMode ? { debugName: "showEllipsis" } : /* istanbul ignore next */ {}), transform: XToBoolean });
|
|
307
332
|
/**
|
|
308
333
|
* @zh_CN 显示总条数
|
|
309
334
|
* @en_US Display the total
|
|
310
335
|
*/
|
|
311
|
-
this.showTotal = input(this.config?.showTotal ?? true, { ...(ngDevMode ? { debugName: "showTotal" } : {}), transform: XToBoolean });
|
|
336
|
+
this.showTotal = input(this.config?.showTotal ?? true, { ...(ngDevMode ? { debugName: "showTotal" } : /* istanbul ignore next */ {}), transform: XToBoolean });
|
|
312
337
|
/**
|
|
313
338
|
* @zh_CN 按钮间距
|
|
314
339
|
* @en_US Button spacing
|
|
315
340
|
*/
|
|
316
|
-
this.space = input(this.config?.space ?? '0.25rem', { ...(ngDevMode ? { debugName: "space" } : {}), transform: XToCssPixelValue });
|
|
341
|
+
this.space = input(this.config?.space ?? '0.25rem', { ...(ngDevMode ? { debugName: "space" } : /* istanbul ignore next */ {}), transform: XToCssPixelValue });
|
|
317
342
|
/**
|
|
318
343
|
* @zh_CN 添加背景色
|
|
319
344
|
* @en_US Show background
|
|
320
345
|
*/
|
|
321
|
-
this.showBackground = input(this.config?.showBackground ?? false, { ...(ngDevMode ? { debugName: "showBackground" } : {}), transform: XToBoolean });
|
|
346
|
+
this.showBackground = input(this.config?.showBackground ?? false, { ...(ngDevMode ? { debugName: "showBackground" } : /* istanbul ignore next */ {}), transform: XToBoolean });
|
|
322
347
|
/**
|
|
323
348
|
* @zh_CN 显示分页条数
|
|
324
349
|
* @en_US Show size
|
|
325
350
|
*/
|
|
326
|
-
this.showSize = input(this.config?.showSize ?? false, { ...(ngDevMode ? { debugName: "showSize" } : {}), transform: XToBoolean });
|
|
351
|
+
this.showSize = input(this.config?.showSize ?? false, { ...(ngDevMode ? { debugName: "showSize" } : /* istanbul ignore next */ {}), transform: XToBoolean });
|
|
327
352
|
/**
|
|
328
353
|
* @zh_CN 分页条数选择框的宽度
|
|
329
354
|
* @en_US size with select
|
|
330
355
|
*/
|
|
331
|
-
this.sizeWidth = input(this.config?.sizeWidth ?? '6.875rem', { ...(ngDevMode ? { debugName: "sizeWidth" } : {}), transform: XToCssPixelValue });
|
|
356
|
+
this.sizeWidth = input(this.config?.sizeWidth ?? '6.875rem', { ...(ngDevMode ? { debugName: "sizeWidth" } : /* istanbul ignore next */ {}), transform: XToCssPixelValue });
|
|
332
357
|
/**
|
|
333
358
|
* @zh_CN 显示输入分页条数(不能跟下拉选项同时使用)
|
|
334
359
|
* @en_US Display the number of input page breaks (cannot exist with the drop-down options of page breaks)
|
|
335
360
|
*/
|
|
336
|
-
this.showInputSize = input(this.config?.showInputSize ?? false, { ...(ngDevMode ? { debugName: "showInputSize" } : {}), transform: XToBoolean });
|
|
361
|
+
this.showInputSize = input(this.config?.showInputSize ?? false, { ...(ngDevMode ? { debugName: "showInputSize" } : /* istanbul ignore next */ {}), transform: XToBoolean });
|
|
337
362
|
/**
|
|
338
363
|
* @zh_CN 显示输入分页框的 tooltip 提示信息,默认显示
|
|
339
364
|
* @en_US show enter the tooltip prompt information for the pagination box, which will be displayed by default based on the confirmation of the input
|
|
340
365
|
*/
|
|
341
|
-
this.showInputSizeTooltipText = input(this.config?.showInputSizeTooltipText ?? true, { ...(ngDevMode ? { debugName: "showInputSizeTooltipText" } : {}), transform: XToBoolean });
|
|
366
|
+
this.showInputSizeTooltipText = input(this.config?.showInputSizeTooltipText ?? true, { ...(ngDevMode ? { debugName: "showInputSizeTooltipText" } : /* istanbul ignore next */ {}), transform: XToBoolean });
|
|
342
367
|
/**
|
|
343
368
|
* @zh_CN 输入分页框的 tooltip 提示信息,默认根据输入确认改变的方式来显示
|
|
344
369
|
* @en_US Enter the tooltip prompt information for the pagination box, which will be displayed by default based on the confirmation of the input
|
|
345
370
|
*/
|
|
346
|
-
this.inputSizeTooltipText = input(this.config?.inputSizeTooltipText ?? '',
|
|
371
|
+
this.inputSizeTooltipText = input(this.config?.inputSizeTooltipText ?? '', /* @ts-ignore */
|
|
372
|
+
...(ngDevMode ? [{ debugName: "inputSizeTooltipText" }] : /* istanbul ignore next */ []));
|
|
347
373
|
/**
|
|
348
374
|
* @zh_CN 分页条数输入框的宽度
|
|
349
375
|
* @en_US size with input
|
|
350
376
|
*/
|
|
351
|
-
this.inputSizeWidth = input(this.config?.sizeWidth ?? '3.125rem', { ...(ngDevMode ? { debugName: "inputSizeWidth" } : {}), transform: XToCssPixelValue });
|
|
377
|
+
this.inputSizeWidth = input(this.config?.sizeWidth ?? '3.125rem', { ...(ngDevMode ? { debugName: "inputSizeWidth" } : /* istanbul ignore next */ {}), transform: XToCssPixelValue });
|
|
352
378
|
/**
|
|
353
379
|
* @zh_CN 分页选择的数据项
|
|
354
380
|
* @en_US Paging choose items of data
|
|
355
381
|
*/
|
|
356
|
-
this.sizeData = input(this.config?.sizeData ?? XPaginationSizeData,
|
|
382
|
+
this.sizeData = input(this.config?.sizeData ?? XPaginationSizeData, /* @ts-ignore */
|
|
383
|
+
...(ngDevMode ? [{ debugName: "sizeData" }] : /* istanbul ignore next */ []));
|
|
357
384
|
/**
|
|
358
385
|
* @zh_CN 禁用整个分页
|
|
359
386
|
* @en_US disabled
|
|
360
387
|
*/
|
|
361
|
-
this.disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : {}), transform: XToBoolean });
|
|
388
|
+
this.disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: XToBoolean });
|
|
362
389
|
/**
|
|
363
390
|
* @zh_CN 显示跳转输入框
|
|
364
391
|
* @en_US Show size
|
|
365
392
|
*/
|
|
366
|
-
this.showJump = input(false, { ...(ngDevMode ? { debugName: "showJump" } : {}), transform: XToBoolean });
|
|
393
|
+
this.showJump = input(false, { ...(ngDevMode ? { debugName: "showJump" } : /* istanbul ignore next */ {}), transform: XToBoolean });
|
|
367
394
|
/**
|
|
368
395
|
* @zh_CN 显示跳转输入框的 tooltip 提示信息,默认显示
|
|
369
396
|
* @en_US Show the tooltip prompt information for jumping to the input box is displayed by default based on the confirmation of input changes
|
|
370
397
|
*/
|
|
371
|
-
this.showJumpTooltipText = input(this.config?.showJumpTooltipText ?? true, { ...(ngDevMode ? { debugName: "showJumpTooltipText" } : {}), transform: XToBoolean });
|
|
398
|
+
this.showJumpTooltipText = input(this.config?.showJumpTooltipText ?? true, { ...(ngDevMode ? { debugName: "showJumpTooltipText" } : /* istanbul ignore next */ {}), transform: XToBoolean });
|
|
372
399
|
/**
|
|
373
400
|
* @zh_CN 跳转输入框的 tooltip 提示信息,默认根据输入确认改变的方式来显示
|
|
374
401
|
* @en_US The tooltip prompt information for jumping to the input box is displayed by default based on the confirmation of input changes
|
|
375
402
|
*/
|
|
376
|
-
this.jumpTooltipText = input(this.config?.jumpTooltipText ?? '',
|
|
403
|
+
this.jumpTooltipText = input(this.config?.jumpTooltipText ?? '', /* @ts-ignore */
|
|
404
|
+
...(ngDevMode ? [{ debugName: "jumpTooltipText" }] : /* istanbul ignore next */ []));
|
|
377
405
|
/**
|
|
378
406
|
* @zh_CN 跳转页的宽度
|
|
379
407
|
* @en_US size with
|
|
380
408
|
*/
|
|
381
|
-
this.jumpWidth = input(this.config?.jumpWidth ?? '3.125rem', { ...(ngDevMode ? { debugName: "jumpWidth" } : {}), transform: XToCssPixelValue });
|
|
409
|
+
this.jumpWidth = input(this.config?.jumpWidth ?? '3.125rem', { ...(ngDevMode ? { debugName: "jumpWidth" } : /* istanbul ignore next */ {}), transform: XToCssPixelValue });
|
|
382
410
|
/**
|
|
383
411
|
* @zh_CN 总数自定义模板
|
|
384
412
|
* @en_US Total template
|
|
385
413
|
*/
|
|
386
|
-
this.totalTpl = input(
|
|
414
|
+
this.totalTpl = input(/* @ts-ignore */
|
|
415
|
+
...(ngDevMode ? [undefined, { debugName: "totalTpl" }] : /* istanbul ignore next */ []));
|
|
387
416
|
/**
|
|
388
417
|
* @zh_CN 简单分页
|
|
389
418
|
* @en_US Simple
|
|
390
419
|
*/
|
|
391
|
-
this.simple = input(this.config?.simple ?? false, { ...(ngDevMode ? { debugName: "simple" } : {}), transform: XToBoolean });
|
|
420
|
+
this.simple = input(this.config?.simple ?? false, { ...(ngDevMode ? { debugName: "simple" } : /* istanbul ignore next */ {}), transform: XToBoolean });
|
|
392
421
|
/**
|
|
393
422
|
* @zh_CN 简单分页输入框宽度
|
|
394
423
|
* @en_US Simple index with
|
|
395
424
|
*/
|
|
396
|
-
this.simpleIndexWidth = input(this.config?.simpleIndexWidth ?? '8.125rem', { ...(ngDevMode ? { debugName: "simpleIndexWidth" } : {}), transform: XToCssPixelValue });
|
|
425
|
+
this.simpleIndexWidth = input(this.config?.simpleIndexWidth ?? '8.125rem', { ...(ngDevMode ? { debugName: "simpleIndexWidth" } : /* istanbul ignore next */ {}), transform: XToCssPixelValue });
|
|
397
426
|
/**
|
|
398
427
|
* @zh_CN 输入确认改变的方式,针对输入分页大小和输入跳转页
|
|
399
428
|
* @en_US The method for confirming changes in input is based on the input page size and input jump page
|
|
400
429
|
*/
|
|
401
|
-
this.inputIndexSizeSureType = input(this.config?.inputIndexSizeSureType ?? 'enter',
|
|
430
|
+
this.inputIndexSizeSureType = input(this.config?.inputIndexSizeSureType ?? 'enter', /* @ts-ignore */
|
|
431
|
+
...(ngDevMode ? [{ debugName: "inputIndexSizeSureType" }] : /* istanbul ignore next */ []));
|
|
402
432
|
/**
|
|
403
433
|
* @zh_CN 行点击事件
|
|
404
434
|
* @en_US Row click event
|
|
@@ -435,10 +465,10 @@ class XTableProperty extends XPropertyFunction(X_TABLE_CONFIG_NAME) {
|
|
|
435
465
|
*/
|
|
436
466
|
this.columnDragWidthEnded = output();
|
|
437
467
|
}
|
|
438
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
439
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.1.1", type: XTableProperty, isStandalone: true, selector: "x-table-property", inputs: { data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: false, transformFunction: null }, columns: { classPropertyName: "columns", publicName: "columns", isSignal: true, isRequired: false, transformFunction: null }, headerHeight: { classPropertyName: "headerHeight", publicName: "headerHeight", isSignal: true, isRequired: false, transformFunction: null }, rowHeight: { classPropertyName: "rowHeight", publicName: "rowHeight", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, bordered: { classPropertyName: "bordered", publicName: "bordered", isSignal: true, isRequired: false, transformFunction: null }, showHeader: { classPropertyName: "showHeader", publicName: "showHeader", isSignal: true, isRequired: false, transformFunction: null }, headerPosition: { classPropertyName: "headerPosition", publicName: "headerPosition", isSignal: true, isRequired: false, transformFunction: null }, bodyInnerHTML: { classPropertyName: "bodyInnerHTML", publicName: "bodyInnerHTML", isSignal: true, isRequired: false, transformFunction: null }, activatedRow: { classPropertyName: "activatedRow", publicName: "activatedRow", isSignal: true, isRequired: false, transformFunction: null }, headColumnTpl: { classPropertyName: "headColumnTpl", publicName: "headColumnTpl", isSignal: true, isRequired: false, transformFunction: null }, headThTpl: { classPropertyName: "headThTpl", publicName: "headThTpl", isSignal: true, isRequired: false, transformFunction: null }, bodyColumnTpl: { classPropertyName: "bodyColumnTpl", publicName: "bodyColumnTpl", isSignal: true, isRequired: false, transformFunction: null }, bodyTdTpl: { classPropertyName: "bodyTdTpl", publicName: "bodyTdTpl", isSignal: true, isRequired: false, transformFunction: null }, rowClass: { classPropertyName: "rowClass", publicName: "rowClass", isSignal: true, isRequired: false, transformFunction: null }, headSearchTpl: { classPropertyName: "headSearchTpl", publicName: "headSearchTpl", isSignal: true, isRequired: false, transformFunction: null }, allowSelectRow: { classPropertyName: "allowSelectRow", publicName: "allowSelectRow", isSignal: true, isRequired: false, transformFunction: null }, allowCheckRow: { classPropertyName: "allowCheckRow", publicName: "allowCheckRow", isSignal: true, isRequired: false, transformFunction: null }, virtualScroll: { classPropertyName: "virtualScroll", publicName: "virtualScroll", isSignal: true, isRequired: false, transformFunction: null }, bodyHeight: { classPropertyName: "bodyHeight", publicName: "bodyHeight", isSignal: true, isRequired: false, transformFunction: null }, itemSize: { classPropertyName: "itemSize", publicName: "itemSize", isSignal: true, isRequired: false, transformFunction: null }, minBufferPx: { classPropertyName: "minBufferPx", publicName: "minBufferPx", isSignal: true, isRequired: false, transformFunction: null }, maxBufferPx: { classPropertyName: "maxBufferPx", publicName: "maxBufferPx", isSignal: true, isRequired: false, transformFunction: null }, adaptionHeight: { classPropertyName: "adaptionHeight", publicName: "adaptionHeight", isSignal: true, isRequired: false, transformFunction: null }, docPercent: { classPropertyName: "docPercent", publicName: "docPercent", isSignal: true, isRequired: false, transformFunction: null }, checkedRow: { classPropertyName: "checkedRow", publicName: "checkedRow", isSignal: true, isRequired: false, transformFunction: null }, checkboxDragDisabled: { classPropertyName: "checkboxDragDisabled", publicName: "checkboxDragDisabled", isSignal: true, isRequired: false, transformFunction: null }, manual: { classPropertyName: "manual", publicName: "manual", isSignal: true, isRequired: false, transformFunction: null }, scroll: { classPropertyName: "scroll", publicName: "scroll", isSignal: true, isRequired: false, transformFunction: null }, header: { classPropertyName: "header", publicName: "header", isSignal: true, isRequired: false, transformFunction: null }, footer: { classPropertyName: "footer", publicName: "footer", isSignal: true, isRequired: false, transformFunction: null }, cellConfig: { classPropertyName: "cellConfig", publicName: "cellConfig", isSignal: true, isRequired: false, transformFunction: null }, rowSize: { classPropertyName: "rowSize", publicName: "rowSize", isSignal: true, isRequired: false, transformFunction: null }, paginationPosition: { classPropertyName: "paginationPosition", publicName: "paginationPosition", isSignal: true, isRequired: false, transformFunction: null }, hiddenWrapBorder: { classPropertyName: "hiddenWrapBorder", publicName: "hiddenWrapBorder", isSignal: true, isRequired: false, transformFunction: null }, hiddenPaginationBorder: { classPropertyName: "hiddenPaginationBorder", publicName: "hiddenPaginationBorder", isSignal: true, isRequired: false, transformFunction: null }, showPagination: { classPropertyName: "showPagination", publicName: "showPagination", isSignal: true, isRequired: false, transformFunction: null }, treeTable: { classPropertyName: "treeTable", publicName: "treeTable", isSignal: true, isRequired: false, transformFunction: null }, expandedAll: { classPropertyName: "expandedAll", publicName: "expandedAll", isSignal: true, isRequired: false, transformFunction: null }, expandedLevel: { classPropertyName: "expandedLevel", publicName: "expandedLevel", isSignal: true, isRequired: false, transformFunction: null }, expanded: { classPropertyName: "expanded", publicName: "expanded", isSignal: true, isRequired: false, transformFunction: null }, expandTpl: { classPropertyName: "expandTpl", publicName: "expandTpl", isSignal: true, isRequired: false, transformFunction: null }, showEmpty: { classPropertyName: "showEmpty", publicName: "showEmpty", isSignal: true, isRequired: false, transformFunction: null }, emptyImg: { classPropertyName: "emptyImg", publicName: "emptyImg", isSignal: true, isRequired: false, transformFunction: null }, emptyContent: { classPropertyName: "emptyContent", publicName: "emptyContent", isSignal: true, isRequired: false, transformFunction: null }, index: { classPropertyName: "index", publicName: "index", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, total: { classPropertyName: "total", publicName: "total", isSignal: true, isRequired: false, transformFunction: null }, query: { classPropertyName: "query", publicName: "query", isSignal: true, isRequired: false, transformFunction: null }, pageLinkSize: { classPropertyName: "pageLinkSize", publicName: "pageLinkSize", isSignal: true, isRequired: false, transformFunction: null }, showEllipsis: { classPropertyName: "showEllipsis", publicName: "showEllipsis", isSignal: true, isRequired: false, transformFunction: null }, showTotal: { classPropertyName: "showTotal", publicName: "showTotal", isSignal: true, isRequired: false, transformFunction: null }, space: { classPropertyName: "space", publicName: "space", isSignal: true, isRequired: false, transformFunction: null }, showBackground: { classPropertyName: "showBackground", publicName: "showBackground", isSignal: true, isRequired: false, transformFunction: null }, showSize: { classPropertyName: "showSize", publicName: "showSize", isSignal: true, isRequired: false, transformFunction: null }, sizeWidth: { classPropertyName: "sizeWidth", publicName: "sizeWidth", isSignal: true, isRequired: false, transformFunction: null }, showInputSize: { classPropertyName: "showInputSize", publicName: "showInputSize", isSignal: true, isRequired: false, transformFunction: null }, showInputSizeTooltipText: { classPropertyName: "showInputSizeTooltipText", publicName: "showInputSizeTooltipText", isSignal: true, isRequired: false, transformFunction: null }, inputSizeTooltipText: { classPropertyName: "inputSizeTooltipText", publicName: "inputSizeTooltipText", isSignal: true, isRequired: false, transformFunction: null }, inputSizeWidth: { classPropertyName: "inputSizeWidth", publicName: "inputSizeWidth", isSignal: true, isRequired: false, transformFunction: null }, sizeData: { classPropertyName: "sizeData", publicName: "sizeData", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, showJump: { classPropertyName: "showJump", publicName: "showJump", isSignal: true, isRequired: false, transformFunction: null }, showJumpTooltipText: { classPropertyName: "showJumpTooltipText", publicName: "showJumpTooltipText", isSignal: true, isRequired: false, transformFunction: null }, jumpTooltipText: { classPropertyName: "jumpTooltipText", publicName: "jumpTooltipText", isSignal: true, isRequired: false, transformFunction: null }, jumpWidth: { classPropertyName: "jumpWidth", publicName: "jumpWidth", isSignal: true, isRequired: false, transformFunction: null }, totalTpl: { classPropertyName: "totalTpl", publicName: "totalTpl", isSignal: true, isRequired: false, transformFunction: null }, simple: { classPropertyName: "simple", publicName: "simple", isSignal: true, isRequired: false, transformFunction: null }, simpleIndexWidth: { classPropertyName: "simpleIndexWidth", publicName: "simpleIndexWidth", isSignal: true, isRequired: false, transformFunction: null }, inputIndexSizeSureType: { classPropertyName: "inputIndexSizeSureType", publicName: "inputIndexSizeSureType", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { activatedRow: "activatedRowChange", sortChange: "sortChange", headCheckboxChange: "headCheckboxChange", bodyCheckboxChange: "bodyCheckboxChange", manual: "manualChange", index: "indexChange", size: "sizeChange", total: "totalChange", query: "queryChange", rowClick: "rowClick", columnDragStarted: "columnDragStarted", columnDragEnded: "columnDragEnded", columnDropListDropped: "columnDropListDropped", columnDragWidthStarted: "columnDragWidthStarted", columnDragWidthMoved: "columnDragWidthMoved", columnDragWidthEnded: "columnDragWidthEnded" }, usesInheritance: true, ngImport: i0, template: '', isInline: true }); }
|
|
468
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.1", ngImport: i0, type: XTableProperty, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
469
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.1", type: XTableProperty, isStandalone: true, selector: "x-table-property", inputs: { data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: false, transformFunction: null }, columns: { classPropertyName: "columns", publicName: "columns", isSignal: true, isRequired: false, transformFunction: null }, headerHeight: { classPropertyName: "headerHeight", publicName: "headerHeight", isSignal: true, isRequired: false, transformFunction: null }, rowHeight: { classPropertyName: "rowHeight", publicName: "rowHeight", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, bordered: { classPropertyName: "bordered", publicName: "bordered", isSignal: true, isRequired: false, transformFunction: null }, showHeader: { classPropertyName: "showHeader", publicName: "showHeader", isSignal: true, isRequired: false, transformFunction: null }, headerPosition: { classPropertyName: "headerPosition", publicName: "headerPosition", isSignal: true, isRequired: false, transformFunction: null }, bodyInnerHTML: { classPropertyName: "bodyInnerHTML", publicName: "bodyInnerHTML", isSignal: true, isRequired: false, transformFunction: null }, activatedRow: { classPropertyName: "activatedRow", publicName: "activatedRow", isSignal: true, isRequired: false, transformFunction: null }, headColumnTpl: { classPropertyName: "headColumnTpl", publicName: "headColumnTpl", isSignal: true, isRequired: false, transformFunction: null }, headThTpl: { classPropertyName: "headThTpl", publicName: "headThTpl", isSignal: true, isRequired: false, transformFunction: null }, bodyColumnTpl: { classPropertyName: "bodyColumnTpl", publicName: "bodyColumnTpl", isSignal: true, isRequired: false, transformFunction: null }, bodyTdTpl: { classPropertyName: "bodyTdTpl", publicName: "bodyTdTpl", isSignal: true, isRequired: false, transformFunction: null }, rowClass: { classPropertyName: "rowClass", publicName: "rowClass", isSignal: true, isRequired: false, transformFunction: null }, headSearchTpl: { classPropertyName: "headSearchTpl", publicName: "headSearchTpl", isSignal: true, isRequired: false, transformFunction: null }, allowSelectRow: { classPropertyName: "allowSelectRow", publicName: "allowSelectRow", isSignal: true, isRequired: false, transformFunction: null }, allowCheckRow: { classPropertyName: "allowCheckRow", publicName: "allowCheckRow", isSignal: true, isRequired: false, transformFunction: null }, virtualScroll: { classPropertyName: "virtualScroll", publicName: "virtualScroll", isSignal: true, isRequired: false, transformFunction: null }, bodyHeight: { classPropertyName: "bodyHeight", publicName: "bodyHeight", isSignal: true, isRequired: false, transformFunction: null }, itemSize: { classPropertyName: "itemSize", publicName: "itemSize", isSignal: true, isRequired: false, transformFunction: null }, minBufferPx: { classPropertyName: "minBufferPx", publicName: "minBufferPx", isSignal: true, isRequired: false, transformFunction: null }, maxBufferPx: { classPropertyName: "maxBufferPx", publicName: "maxBufferPx", isSignal: true, isRequired: false, transformFunction: null }, adaptionHeight: { classPropertyName: "adaptionHeight", publicName: "adaptionHeight", isSignal: true, isRequired: false, transformFunction: null }, docPercent: { classPropertyName: "docPercent", publicName: "docPercent", isSignal: true, isRequired: false, transformFunction: null }, checkedRow: { classPropertyName: "checkedRow", publicName: "checkedRow", isSignal: true, isRequired: false, transformFunction: null }, checkboxDragDisabled: { classPropertyName: "checkboxDragDisabled", publicName: "checkboxDragDisabled", isSignal: true, isRequired: false, transformFunction: null }, manual: { classPropertyName: "manual", publicName: "manual", isSignal: true, isRequired: false, transformFunction: null }, scroll: { classPropertyName: "scroll", publicName: "scroll", isSignal: true, isRequired: false, transformFunction: null }, header: { classPropertyName: "header", publicName: "header", isSignal: true, isRequired: false, transformFunction: null }, footer: { classPropertyName: "footer", publicName: "footer", isSignal: true, isRequired: false, transformFunction: null }, cellConfig: { classPropertyName: "cellConfig", publicName: "cellConfig", isSignal: true, isRequired: false, transformFunction: null }, rowSize: { classPropertyName: "rowSize", publicName: "rowSize", isSignal: true, isRequired: false, transformFunction: null }, paginationPosition: { classPropertyName: "paginationPosition", publicName: "paginationPosition", isSignal: true, isRequired: false, transformFunction: null }, hiddenWrapBorder: { classPropertyName: "hiddenWrapBorder", publicName: "hiddenWrapBorder", isSignal: true, isRequired: false, transformFunction: null }, hiddenPaginationBorder: { classPropertyName: "hiddenPaginationBorder", publicName: "hiddenPaginationBorder", isSignal: true, isRequired: false, transformFunction: null }, showPagination: { classPropertyName: "showPagination", publicName: "showPagination", isSignal: true, isRequired: false, transformFunction: null }, treeTable: { classPropertyName: "treeTable", publicName: "treeTable", isSignal: true, isRequired: false, transformFunction: null }, expandedAll: { classPropertyName: "expandedAll", publicName: "expandedAll", isSignal: true, isRequired: false, transformFunction: null }, expandedLevel: { classPropertyName: "expandedLevel", publicName: "expandedLevel", isSignal: true, isRequired: false, transformFunction: null }, expanded: { classPropertyName: "expanded", publicName: "expanded", isSignal: true, isRequired: false, transformFunction: null }, expandTpl: { classPropertyName: "expandTpl", publicName: "expandTpl", isSignal: true, isRequired: false, transformFunction: null }, showEmpty: { classPropertyName: "showEmpty", publicName: "showEmpty", isSignal: true, isRequired: false, transformFunction: null }, emptyImg: { classPropertyName: "emptyImg", publicName: "emptyImg", isSignal: true, isRequired: false, transformFunction: null }, emptyContent: { classPropertyName: "emptyContent", publicName: "emptyContent", isSignal: true, isRequired: false, transformFunction: null }, index: { classPropertyName: "index", publicName: "index", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, total: { classPropertyName: "total", publicName: "total", isSignal: true, isRequired: false, transformFunction: null }, query: { classPropertyName: "query", publicName: "query", isSignal: true, isRequired: false, transformFunction: null }, pageLinkSize: { classPropertyName: "pageLinkSize", publicName: "pageLinkSize", isSignal: true, isRequired: false, transformFunction: null }, showEllipsis: { classPropertyName: "showEllipsis", publicName: "showEllipsis", isSignal: true, isRequired: false, transformFunction: null }, showTotal: { classPropertyName: "showTotal", publicName: "showTotal", isSignal: true, isRequired: false, transformFunction: null }, space: { classPropertyName: "space", publicName: "space", isSignal: true, isRequired: false, transformFunction: null }, showBackground: { classPropertyName: "showBackground", publicName: "showBackground", isSignal: true, isRequired: false, transformFunction: null }, showSize: { classPropertyName: "showSize", publicName: "showSize", isSignal: true, isRequired: false, transformFunction: null }, sizeWidth: { classPropertyName: "sizeWidth", publicName: "sizeWidth", isSignal: true, isRequired: false, transformFunction: null }, showInputSize: { classPropertyName: "showInputSize", publicName: "showInputSize", isSignal: true, isRequired: false, transformFunction: null }, showInputSizeTooltipText: { classPropertyName: "showInputSizeTooltipText", publicName: "showInputSizeTooltipText", isSignal: true, isRequired: false, transformFunction: null }, inputSizeTooltipText: { classPropertyName: "inputSizeTooltipText", publicName: "inputSizeTooltipText", isSignal: true, isRequired: false, transformFunction: null }, inputSizeWidth: { classPropertyName: "inputSizeWidth", publicName: "inputSizeWidth", isSignal: true, isRequired: false, transformFunction: null }, sizeData: { classPropertyName: "sizeData", publicName: "sizeData", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, showJump: { classPropertyName: "showJump", publicName: "showJump", isSignal: true, isRequired: false, transformFunction: null }, showJumpTooltipText: { classPropertyName: "showJumpTooltipText", publicName: "showJumpTooltipText", isSignal: true, isRequired: false, transformFunction: null }, jumpTooltipText: { classPropertyName: "jumpTooltipText", publicName: "jumpTooltipText", isSignal: true, isRequired: false, transformFunction: null }, jumpWidth: { classPropertyName: "jumpWidth", publicName: "jumpWidth", isSignal: true, isRequired: false, transformFunction: null }, totalTpl: { classPropertyName: "totalTpl", publicName: "totalTpl", isSignal: true, isRequired: false, transformFunction: null }, simple: { classPropertyName: "simple", publicName: "simple", isSignal: true, isRequired: false, transformFunction: null }, simpleIndexWidth: { classPropertyName: "simpleIndexWidth", publicName: "simpleIndexWidth", isSignal: true, isRequired: false, transformFunction: null }, inputIndexSizeSureType: { classPropertyName: "inputIndexSizeSureType", publicName: "inputIndexSizeSureType", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { activatedRow: "activatedRowChange", sortChange: "sortChange", headCheckboxChange: "headCheckboxChange", bodyCheckboxChange: "bodyCheckboxChange", manual: "manualChange", index: "indexChange", size: "sizeChange", total: "totalChange", query: "queryChange", rowClick: "rowClick", columnDragStarted: "columnDragStarted", columnDragEnded: "columnDragEnded", columnDropListDropped: "columnDropListDropped", columnDragWidthStarted: "columnDragWidthStarted", columnDragWidthMoved: "columnDragWidthMoved", columnDragWidthEnded: "columnDragWidthEnded" }, usesInheritance: true, ngImport: i0, template: '', isInline: true }); }
|
|
440
470
|
}
|
|
441
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
471
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.1", ngImport: i0, type: XTableProperty, decorators: [{
|
|
442
472
|
type: Component,
|
|
443
473
|
args: [{ selector: `${XTablePrefix}-property`, template: '' }]
|
|
444
474
|
}], propDecorators: { data: [{ type: i0.Input, args: [{ isSignal: true, alias: "data", required: false }] }], columns: [{ type: i0.Input, args: [{ isSignal: true, alias: "columns", required: false }] }], headerHeight: [{ type: i0.Input, args: [{ isSignal: true, alias: "headerHeight", required: false }] }], rowHeight: [{ type: i0.Input, args: [{ isSignal: true, alias: "rowHeight", required: false }] }], loading: [{ type: i0.Input, args: [{ isSignal: true, alias: "loading", required: false }] }], bordered: [{ type: i0.Input, args: [{ isSignal: true, alias: "bordered", required: false }] }], showHeader: [{ type: i0.Input, args: [{ isSignal: true, alias: "showHeader", required: false }] }], headerPosition: [{ type: i0.Input, args: [{ isSignal: true, alias: "headerPosition", required: false }] }], bodyInnerHTML: [{ type: i0.Input, args: [{ isSignal: true, alias: "bodyInnerHTML", required: false }] }], activatedRow: [{ type: i0.Input, args: [{ isSignal: true, alias: "activatedRow", required: false }] }, { type: i0.Output, args: ["activatedRowChange"] }], headColumnTpl: [{ type: i0.Input, args: [{ isSignal: true, alias: "headColumnTpl", required: false }] }], headThTpl: [{ type: i0.Input, args: [{ isSignal: true, alias: "headThTpl", required: false }] }], bodyColumnTpl: [{ type: i0.Input, args: [{ isSignal: true, alias: "bodyColumnTpl", required: false }] }], bodyTdTpl: [{ type: i0.Input, args: [{ isSignal: true, alias: "bodyTdTpl", required: false }] }], rowClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "rowClass", required: false }] }], headSearchTpl: [{ type: i0.Input, args: [{ isSignal: true, alias: "headSearchTpl", required: false }] }], sortChange: [{ type: i0.Output, args: ["sortChange"] }], headCheckboxChange: [{ type: i0.Output, args: ["headCheckboxChange"] }], bodyCheckboxChange: [{ type: i0.Output, args: ["bodyCheckboxChange"] }], allowSelectRow: [{ type: i0.Input, args: [{ isSignal: true, alias: "allowSelectRow", required: false }] }], allowCheckRow: [{ type: i0.Input, args: [{ isSignal: true, alias: "allowCheckRow", required: false }] }], virtualScroll: [{ type: i0.Input, args: [{ isSignal: true, alias: "virtualScroll", required: false }] }], bodyHeight: [{ type: i0.Input, args: [{ isSignal: true, alias: "bodyHeight", required: false }] }], itemSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "itemSize", required: false }] }], minBufferPx: [{ type: i0.Input, args: [{ isSignal: true, alias: "minBufferPx", required: false }] }], maxBufferPx: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxBufferPx", required: false }] }], adaptionHeight: [{ type: i0.Input, args: [{ isSignal: true, alias: "adaptionHeight", required: false }] }], docPercent: [{ type: i0.Input, args: [{ isSignal: true, alias: "docPercent", required: false }] }], checkedRow: [{ type: i0.Input, args: [{ isSignal: true, alias: "checkedRow", required: false }] }], checkboxDragDisabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "checkboxDragDisabled", required: false }] }], manual: [{ type: i0.Input, args: [{ isSignal: true, alias: "manual", required: false }] }, { type: i0.Output, args: ["manualChange"] }], scroll: [{ type: i0.Input, args: [{ isSignal: true, alias: "scroll", required: false }] }], header: [{ type: i0.Input, args: [{ isSignal: true, alias: "header", required: false }] }], footer: [{ type: i0.Input, args: [{ isSignal: true, alias: "footer", required: false }] }], cellConfig: [{ type: i0.Input, args: [{ isSignal: true, alias: "cellConfig", required: false }] }], rowSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "rowSize", required: false }] }], paginationPosition: [{ type: i0.Input, args: [{ isSignal: true, alias: "paginationPosition", required: false }] }], hiddenWrapBorder: [{ type: i0.Input, args: [{ isSignal: true, alias: "hiddenWrapBorder", required: false }] }], hiddenPaginationBorder: [{ type: i0.Input, args: [{ isSignal: true, alias: "hiddenPaginationBorder", required: false }] }], showPagination: [{ type: i0.Input, args: [{ isSignal: true, alias: "showPagination", required: false }] }], treeTable: [{ type: i0.Input, args: [{ isSignal: true, alias: "treeTable", required: false }] }], expandedAll: [{ type: i0.Input, args: [{ isSignal: true, alias: "expandedAll", required: false }] }], expandedLevel: [{ type: i0.Input, args: [{ isSignal: true, alias: "expandedLevel", required: false }] }], expanded: [{ type: i0.Input, args: [{ isSignal: true, alias: "expanded", required: false }] }], expandTpl: [{ type: i0.Input, args: [{ isSignal: true, alias: "expandTpl", required: false }] }], showEmpty: [{ type: i0.Input, args: [{ isSignal: true, alias: "showEmpty", required: false }] }], emptyImg: [{ type: i0.Input, args: [{ isSignal: true, alias: "emptyImg", required: false }] }], emptyContent: [{ type: i0.Input, args: [{ isSignal: true, alias: "emptyContent", required: false }] }], index: [{ type: i0.Input, args: [{ isSignal: true, alias: "index", required: false }] }, { type: i0.Output, args: ["indexChange"] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }, { type: i0.Output, args: ["sizeChange"] }], total: [{ type: i0.Input, args: [{ isSignal: true, alias: "total", required: false }] }, { type: i0.Output, args: ["totalChange"] }], query: [{ type: i0.Input, args: [{ isSignal: true, alias: "query", required: false }] }, { type: i0.Output, args: ["queryChange"] }], pageLinkSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "pageLinkSize", required: false }] }], showEllipsis: [{ type: i0.Input, args: [{ isSignal: true, alias: "showEllipsis", required: false }] }], showTotal: [{ type: i0.Input, args: [{ isSignal: true, alias: "showTotal", required: false }] }], space: [{ type: i0.Input, args: [{ isSignal: true, alias: "space", required: false }] }], showBackground: [{ type: i0.Input, args: [{ isSignal: true, alias: "showBackground", required: false }] }], showSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "showSize", required: false }] }], sizeWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "sizeWidth", required: false }] }], showInputSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "showInputSize", required: false }] }], showInputSizeTooltipText: [{ type: i0.Input, args: [{ isSignal: true, alias: "showInputSizeTooltipText", required: false }] }], inputSizeTooltipText: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputSizeTooltipText", required: false }] }], inputSizeWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputSizeWidth", required: false }] }], sizeData: [{ type: i0.Input, args: [{ isSignal: true, alias: "sizeData", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], showJump: [{ type: i0.Input, args: [{ isSignal: true, alias: "showJump", required: false }] }], showJumpTooltipText: [{ type: i0.Input, args: [{ isSignal: true, alias: "showJumpTooltipText", required: false }] }], jumpTooltipText: [{ type: i0.Input, args: [{ isSignal: true, alias: "jumpTooltipText", required: false }] }], jumpWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "jumpWidth", required: false }] }], totalTpl: [{ type: i0.Input, args: [{ isSignal: true, alias: "totalTpl", required: false }] }], simple: [{ type: i0.Input, args: [{ isSignal: true, alias: "simple", required: false }] }], simpleIndexWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "simpleIndexWidth", required: false }] }], inputIndexSizeSureType: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputIndexSizeSureType", required: false }] }], rowClick: [{ type: i0.Output, args: ["rowClick"] }], columnDragStarted: [{ type: i0.Output, args: ["columnDragStarted"] }], columnDragEnded: [{ type: i0.Output, args: ["columnDragEnded"] }], columnDropListDropped: [{ type: i0.Output, args: ["columnDropListDropped"] }], columnDragWidthStarted: [{ type: i0.Output, args: ["columnDragWidthStarted"] }], columnDragWidthMoved: [{ type: i0.Output, args: ["columnDragWidthMoved"] }], columnDragWidthEnded: [{ type: i0.Output, args: ["columnDragWidthEnded"] }] } });
|
|
@@ -458,47 +488,51 @@ class XTableHeadProperty extends XProperty {
|
|
|
458
488
|
* @zh_CN 列集合
|
|
459
489
|
* @en_US Column set
|
|
460
490
|
*/
|
|
461
|
-
this.columns = input([],
|
|
491
|
+
this.columns = input([], /* @ts-ignore */
|
|
492
|
+
...(ngDevMode ? [{ debugName: "columns" }] : /* istanbul ignore next */ []));
|
|
462
493
|
/**
|
|
463
494
|
* @zh_CN 表头高度,单位 px
|
|
464
495
|
* @en_US Header height, unit px
|
|
465
496
|
*/
|
|
466
|
-
this.headerHeight = input(null, { ...(ngDevMode ? { debugName: "headerHeight" } : {}), transform: XToNumber });
|
|
497
|
+
this.headerHeight = input(null, { ...(ngDevMode ? { debugName: "headerHeight" } : /* istanbul ignore next */ {}), transform: XToNumber });
|
|
467
498
|
/**
|
|
468
499
|
* @zh_CN 高度,单位 px
|
|
469
500
|
* @en_US Height in px
|
|
470
501
|
*/
|
|
471
|
-
this.rowHeight = input(42, { ...(ngDevMode ? { debugName: "rowHeight" } : {}), transform: XToNumber });
|
|
502
|
+
this.rowHeight = input(42, { ...(ngDevMode ? { debugName: "rowHeight" } : /* istanbul ignore next */ {}), transform: XToNumber });
|
|
472
503
|
/**
|
|
473
504
|
* @zh_CN 自定义模板
|
|
474
505
|
* @en_US Custom template
|
|
475
506
|
*/
|
|
476
|
-
this.columnTpl = input({},
|
|
507
|
+
this.columnTpl = input({}, /* @ts-ignore */
|
|
508
|
+
...(ngDevMode ? [{ debugName: "columnTpl" }] : /* istanbul ignore next */ []));
|
|
477
509
|
/**
|
|
478
510
|
* @zh_CN 竖向滚动条宽度
|
|
479
511
|
* @en_US Vertical scroll bar width
|
|
480
512
|
*/
|
|
481
|
-
this.scrollYWidth = input(null, { ...(ngDevMode ? { debugName: "scrollYWidth" } : {}), transform: XToNumber });
|
|
513
|
+
this.scrollYWidth = input(null, { ...(ngDevMode ? { debugName: "scrollYWidth" } : /* istanbul ignore next */ {}), transform: XToNumber });
|
|
482
514
|
/**
|
|
483
515
|
* @zh_CN 横向滚动条宽度
|
|
484
516
|
* @en_US Horizontal scroll bar width
|
|
485
517
|
*/
|
|
486
|
-
this.scrollXWidth = input(null, { ...(ngDevMode ? { debugName: "scrollXWidth" } : {}), transform: XToNumber });
|
|
518
|
+
this.scrollXWidth = input(null, { ...(ngDevMode ? { debugName: "scrollXWidth" } : /* istanbul ignore next */ {}), transform: XToNumber });
|
|
487
519
|
/**
|
|
488
520
|
* @zh_CN 单元格配置
|
|
489
521
|
* @en_US Cell merge rules
|
|
490
522
|
*/
|
|
491
|
-
this.cellConfig = input(
|
|
523
|
+
this.cellConfig = input(/* @ts-ignore */
|
|
524
|
+
...(ngDevMode ? [undefined, { debugName: "cellConfig" }] : /* istanbul ignore next */ []));
|
|
492
525
|
/**
|
|
493
526
|
* @zh_CN 显示的位置
|
|
494
527
|
* @en_US Display position
|
|
495
528
|
*/
|
|
496
|
-
this.position = input(
|
|
529
|
+
this.position = input(/* @ts-ignore */
|
|
530
|
+
...(ngDevMode ? [undefined, { debugName: "position" }] : /* istanbul ignore next */ []));
|
|
497
531
|
}
|
|
498
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
499
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "
|
|
532
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.1", ngImport: i0, type: XTableHeadProperty, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
533
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.1", type: XTableHeadProperty, isStandalone: true, selector: "x-table-head-property", inputs: { columns: { classPropertyName: "columns", publicName: "columns", isSignal: true, isRequired: false, transformFunction: null }, headerHeight: { classPropertyName: "headerHeight", publicName: "headerHeight", isSignal: true, isRequired: false, transformFunction: null }, rowHeight: { classPropertyName: "rowHeight", publicName: "rowHeight", isSignal: true, isRequired: false, transformFunction: null }, columnTpl: { classPropertyName: "columnTpl", publicName: "columnTpl", isSignal: true, isRequired: false, transformFunction: null }, scrollYWidth: { classPropertyName: "scrollYWidth", publicName: "scrollYWidth", isSignal: true, isRequired: false, transformFunction: null }, scrollXWidth: { classPropertyName: "scrollXWidth", publicName: "scrollXWidth", isSignal: true, isRequired: false, transformFunction: null }, cellConfig: { classPropertyName: "cellConfig", publicName: "cellConfig", isSignal: true, isRequired: false, transformFunction: null }, position: { classPropertyName: "position", publicName: "position", isSignal: true, isRequired: false, transformFunction: null } }, usesInheritance: true, ngImport: i0, template: '', isInline: true }); }
|
|
500
534
|
}
|
|
501
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
535
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.1", ngImport: i0, type: XTableHeadProperty, decorators: [{
|
|
502
536
|
type: Component,
|
|
503
537
|
args: [{ selector: `${XTableHeadPrefix}-property`, template: '' }]
|
|
504
538
|
}], propDecorators: { columns: [{ type: i0.Input, args: [{ isSignal: true, alias: "columns", required: false }] }], headerHeight: [{ type: i0.Input, args: [{ isSignal: true, alias: "headerHeight", required: false }] }], rowHeight: [{ type: i0.Input, args: [{ isSignal: true, alias: "rowHeight", required: false }] }], columnTpl: [{ type: i0.Input, args: [{ isSignal: true, alias: "columnTpl", required: false }] }], scrollYWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "scrollYWidth", required: false }] }], scrollXWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "scrollXWidth", required: false }] }], cellConfig: [{ type: i0.Input, args: [{ isSignal: true, alias: "cellConfig", required: false }] }], position: [{ type: i0.Input, args: [{ isSignal: true, alias: "position", required: false }] }] } });
|
|
@@ -518,107 +552,115 @@ class XTableBodyProperty extends XProperty {
|
|
|
518
552
|
* @zh_CN 行数据
|
|
519
553
|
* @en_US Row data
|
|
520
554
|
*/
|
|
521
|
-
this.data = input([],
|
|
555
|
+
this.data = input([], /* @ts-ignore */
|
|
556
|
+
...(ngDevMode ? [{ debugName: "data" }] : /* istanbul ignore next */ []));
|
|
522
557
|
/**
|
|
523
558
|
* @zh_CN 列集合
|
|
524
559
|
* @en_US Column set
|
|
525
560
|
*/
|
|
526
|
-
this.columns = input([],
|
|
561
|
+
this.columns = input([], /* @ts-ignore */
|
|
562
|
+
...(ngDevMode ? [{ debugName: "columns" }] : /* istanbul ignore next */ []));
|
|
527
563
|
/**
|
|
528
564
|
* @zh_CN 自定义模板
|
|
529
565
|
* @en_US Custom template
|
|
530
566
|
*/
|
|
531
|
-
this.columnTpl = input({},
|
|
567
|
+
this.columnTpl = input({}, /* @ts-ignore */
|
|
568
|
+
...(ngDevMode ? [{ debugName: "columnTpl" }] : /* istanbul ignore next */ []));
|
|
532
569
|
/**
|
|
533
570
|
* @zh_CN 当前选中行数据
|
|
534
571
|
* @en_US Currently selected row data
|
|
535
572
|
*/
|
|
536
|
-
this.activatedRow = model(
|
|
573
|
+
this.activatedRow = model(/* @ts-ignore */
|
|
574
|
+
...(ngDevMode ? [undefined, { debugName: "activatedRow" }] : /* istanbul ignore next */ []));
|
|
537
575
|
/**
|
|
538
576
|
* @zh_CN 高度,单位 px。设置为 0 表示行高自适应内容高度。
|
|
539
577
|
* @en_US Height in px. set to 0 means that the row height is adaptive to the content height
|
|
540
578
|
*/
|
|
541
|
-
this.rowHeight = input(42, { ...(ngDevMode ? { debugName: "rowHeight" } : {}), transform: XToNumber });
|
|
579
|
+
this.rowHeight = input(42, { ...(ngDevMode ? { debugName: "rowHeight" } : /* istanbul ignore next */ {}), transform: XToNumber });
|
|
542
580
|
/**
|
|
543
581
|
* @zh_CN body 数据高度
|
|
544
582
|
* @en_US body data height
|
|
545
583
|
*/
|
|
546
|
-
this.bodyHeight = input(null, { ...(ngDevMode ? { debugName: "bodyHeight" } : {}), transform: XToNumber });
|
|
584
|
+
this.bodyHeight = input(null, { ...(ngDevMode ? { debugName: "bodyHeight" } : /* istanbul ignore next */ {}), transform: XToNumber });
|
|
547
585
|
/**
|
|
548
586
|
* @zh_CN 允许行点击选中
|
|
549
587
|
* @en_US Allow row click to select
|
|
550
588
|
*/
|
|
551
|
-
this.allowSelectRow = input(true, { ...(ngDevMode ? { debugName: "allowSelectRow" } : {}), transform: XToBoolean });
|
|
589
|
+
this.allowSelectRow = input(true, { ...(ngDevMode ? { debugName: "allowSelectRow" } : /* istanbul ignore next */ {}), transform: XToBoolean });
|
|
552
590
|
/**
|
|
553
591
|
* @zh_CN 开启虚拟滚动
|
|
554
592
|
* @en_US Turn on virtual scrolling
|
|
555
593
|
*/
|
|
556
|
-
this.virtualScroll = input(false, { ...(ngDevMode ? { debugName: "virtualScroll" } : {}), transform: XToBoolean });
|
|
594
|
+
this.virtualScroll = input(false, { ...(ngDevMode ? { debugName: "virtualScroll" } : /* istanbul ignore next */ {}), transform: XToBoolean });
|
|
557
595
|
/**
|
|
558
596
|
* @zh_CN itemSize,对应 cdk scroll 中的参数
|
|
559
597
|
* @en_US itemSize,corresponding to the parameters in cdk scroll
|
|
560
598
|
*/
|
|
561
|
-
this.itemSize = input(42, { ...(ngDevMode ? { debugName: "itemSize" } : {}), transform: XToNumber });
|
|
599
|
+
this.itemSize = input(42, { ...(ngDevMode ? { debugName: "itemSize" } : /* istanbul ignore next */ {}), transform: XToNumber });
|
|
562
600
|
/**
|
|
563
601
|
* @zh_CN 超出可视窗口缓冲区的最小值,对应 cdk scroll 中的参数
|
|
564
602
|
* @en_US Exceed the minimum value of the visible window buffer, corresponding to the parameters in cdk scroll
|
|
565
603
|
*/
|
|
566
|
-
this.minBufferPx = input(100, { ...(ngDevMode ? { debugName: "minBufferPx" } : {}), transform: XToNumber });
|
|
604
|
+
this.minBufferPx = input(100, { ...(ngDevMode ? { debugName: "minBufferPx" } : /* istanbul ignore next */ {}), transform: XToNumber });
|
|
567
605
|
/**
|
|
568
606
|
* @zh_CN 渲染新数据缓冲区的像素,对应 cdk scroll 中的参数
|
|
569
607
|
* @en_US Render the pixels of the new data buffer, corresponding to the parameters in cdk scroll
|
|
570
608
|
*/
|
|
571
|
-
this.maxBufferPx = input(200, { ...(ngDevMode ? { debugName: "maxBufferPx" } : {}), transform: XToNumber });
|
|
609
|
+
this.maxBufferPx = input(200, { ...(ngDevMode ? { debugName: "maxBufferPx" } : /* istanbul ignore next */ {}), transform: XToNumber });
|
|
572
610
|
/**
|
|
573
611
|
* @zh_CN 自适应高度,table 高度等于屏幕高度减掉此处设置的数值
|
|
574
612
|
* @en_US Adaptive height, table height is equal to the screen height minus the value set here
|
|
575
613
|
*/
|
|
576
|
-
this.adaptionHeight = input(null, { ...(ngDevMode ? { debugName: "adaptionHeight" } : {}), transform: XToNumber });
|
|
614
|
+
this.adaptionHeight = input(null, { ...(ngDevMode ? { debugName: "adaptionHeight" } : /* istanbul ignore next */ {}), transform: XToNumber });
|
|
577
615
|
/**
|
|
578
616
|
* @zh_CN 文档高度百分比,弹窗百分比高度用到
|
|
579
617
|
* @en_US Document height percentage, used by pop-up window percentage height
|
|
580
618
|
*/
|
|
581
|
-
this.docPercent = input(1, { ...(ngDevMode ? { debugName: "docPercent" } : {}), transform: XToNumber });
|
|
619
|
+
this.docPercent = input(1, { ...(ngDevMode ? { debugName: "docPercent" } : /* istanbul ignore next */ {}), transform: XToNumber });
|
|
582
620
|
/**
|
|
583
621
|
* @zh_CN 滚动区域高宽
|
|
584
622
|
* @en_US Height and width of rolling area
|
|
585
623
|
*/
|
|
586
|
-
this.scroll = input(
|
|
624
|
+
this.scroll = input(/* @ts-ignore */
|
|
625
|
+
...(ngDevMode ? [undefined, { debugName: "scroll" }] : /* istanbul ignore next */ []));
|
|
587
626
|
/**
|
|
588
627
|
* @zh_CN 单元格配置规则
|
|
589
628
|
* @en_US Cell config rules
|
|
590
629
|
*/
|
|
591
|
-
this.cellConfig = input(
|
|
630
|
+
this.cellConfig = input(/* @ts-ignore */
|
|
631
|
+
...(ngDevMode ? [undefined, { debugName: "cellConfig" }] : /* istanbul ignore next */ []));
|
|
592
632
|
/**
|
|
593
633
|
* @zh_CN 行条件样式
|
|
594
634
|
* @en_US Row condition class
|
|
595
635
|
*/
|
|
596
|
-
this.rowClass = input(
|
|
636
|
+
this.rowClass = input(/* @ts-ignore */
|
|
637
|
+
...(ngDevMode ? [undefined, { debugName: "rowClass" }] : /* istanbul ignore next */ []));
|
|
597
638
|
/**
|
|
598
639
|
* @zh_CN 树形表格下的层级
|
|
599
640
|
* @en_US The level under the tree table
|
|
600
641
|
*/
|
|
601
|
-
this.level = input(0, { ...(ngDevMode ? { debugName: "level" } : {}), transform: XToNumber });
|
|
642
|
+
this.level = input(0, { ...(ngDevMode ? { debugName: "level" } : /* istanbul ignore next */ {}), transform: XToNumber });
|
|
602
643
|
/**
|
|
603
644
|
* @zh_CN 树形表格展开所有节点
|
|
604
645
|
* @en_US Tree table
|
|
605
646
|
*/
|
|
606
|
-
this.expandedAll = input(false, { ...(ngDevMode ? { debugName: "expandedAll" } : {}), transform: XToBoolean });
|
|
647
|
+
this.expandedAll = input(false, { ...(ngDevMode ? { debugName: "expandedAll" } : /* istanbul ignore next */ {}), transform: XToBoolean });
|
|
607
648
|
/**
|
|
608
649
|
* @zh_CN 自定义展开内容
|
|
609
650
|
* @en_US Customized expansion content
|
|
610
651
|
*/
|
|
611
|
-
this.expandTpl = input(
|
|
652
|
+
this.expandTpl = input(/* @ts-ignore */
|
|
653
|
+
...(ngDevMode ? [undefined, { debugName: "expandTpl" }] : /* istanbul ignore next */ []));
|
|
612
654
|
/**
|
|
613
655
|
* @zh_CN 行点击事件
|
|
614
656
|
* @en_US Row click event
|
|
615
657
|
*/
|
|
616
658
|
this.rowClick = output();
|
|
617
659
|
}
|
|
618
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
619
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "
|
|
660
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.1", ngImport: i0, type: XTableBodyProperty, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
661
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.1", type: XTableBodyProperty, isStandalone: true, selector: "x-table-body-property", inputs: { data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: false, transformFunction: null }, columns: { classPropertyName: "columns", publicName: "columns", isSignal: true, isRequired: false, transformFunction: null }, columnTpl: { classPropertyName: "columnTpl", publicName: "columnTpl", isSignal: true, isRequired: false, transformFunction: null }, activatedRow: { classPropertyName: "activatedRow", publicName: "activatedRow", isSignal: true, isRequired: false, transformFunction: null }, rowHeight: { classPropertyName: "rowHeight", publicName: "rowHeight", isSignal: true, isRequired: false, transformFunction: null }, bodyHeight: { classPropertyName: "bodyHeight", publicName: "bodyHeight", isSignal: true, isRequired: false, transformFunction: null }, allowSelectRow: { classPropertyName: "allowSelectRow", publicName: "allowSelectRow", isSignal: true, isRequired: false, transformFunction: null }, virtualScroll: { classPropertyName: "virtualScroll", publicName: "virtualScroll", isSignal: true, isRequired: false, transformFunction: null }, itemSize: { classPropertyName: "itemSize", publicName: "itemSize", isSignal: true, isRequired: false, transformFunction: null }, minBufferPx: { classPropertyName: "minBufferPx", publicName: "minBufferPx", isSignal: true, isRequired: false, transformFunction: null }, maxBufferPx: { classPropertyName: "maxBufferPx", publicName: "maxBufferPx", isSignal: true, isRequired: false, transformFunction: null }, adaptionHeight: { classPropertyName: "adaptionHeight", publicName: "adaptionHeight", isSignal: true, isRequired: false, transformFunction: null }, docPercent: { classPropertyName: "docPercent", publicName: "docPercent", isSignal: true, isRequired: false, transformFunction: null }, scroll: { classPropertyName: "scroll", publicName: "scroll", isSignal: true, isRequired: false, transformFunction: null }, cellConfig: { classPropertyName: "cellConfig", publicName: "cellConfig", isSignal: true, isRequired: false, transformFunction: null }, rowClass: { classPropertyName: "rowClass", publicName: "rowClass", isSignal: true, isRequired: false, transformFunction: null }, level: { classPropertyName: "level", publicName: "level", isSignal: true, isRequired: false, transformFunction: null }, expandedAll: { classPropertyName: "expandedAll", publicName: "expandedAll", isSignal: true, isRequired: false, transformFunction: null }, expandTpl: { classPropertyName: "expandTpl", publicName: "expandTpl", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { activatedRow: "activatedRowChange", rowClick: "rowClick" }, usesInheritance: true, ngImport: i0, template: '', isInline: true }); }
|
|
620
662
|
}
|
|
621
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
663
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.1", ngImport: i0, type: XTableBodyProperty, decorators: [{
|
|
622
664
|
type: Component,
|
|
623
665
|
args: [{ selector: `${XTableBodyPrefix}-property`, template: '' }]
|
|
624
666
|
}], propDecorators: { data: [{ type: i0.Input, args: [{ isSignal: true, alias: "data", required: false }] }], columns: [{ type: i0.Input, args: [{ isSignal: true, alias: "columns", required: false }] }], columnTpl: [{ type: i0.Input, args: [{ isSignal: true, alias: "columnTpl", required: false }] }], activatedRow: [{ type: i0.Input, args: [{ isSignal: true, alias: "activatedRow", required: false }] }, { type: i0.Output, args: ["activatedRowChange"] }], rowHeight: [{ type: i0.Input, args: [{ isSignal: true, alias: "rowHeight", required: false }] }], bodyHeight: [{ type: i0.Input, args: [{ isSignal: true, alias: "bodyHeight", required: false }] }], allowSelectRow: [{ type: i0.Input, args: [{ isSignal: true, alias: "allowSelectRow", required: false }] }], virtualScroll: [{ type: i0.Input, args: [{ isSignal: true, alias: "virtualScroll", required: false }] }], itemSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "itemSize", required: false }] }], minBufferPx: [{ type: i0.Input, args: [{ isSignal: true, alias: "minBufferPx", required: false }] }], maxBufferPx: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxBufferPx", required: false }] }], adaptionHeight: [{ type: i0.Input, args: [{ isSignal: true, alias: "adaptionHeight", required: false }] }], docPercent: [{ type: i0.Input, args: [{ isSignal: true, alias: "docPercent", required: false }] }], scroll: [{ type: i0.Input, args: [{ isSignal: true, alias: "scroll", required: false }] }], cellConfig: [{ type: i0.Input, args: [{ isSignal: true, alias: "cellConfig", required: false }] }], rowClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "rowClass", required: false }] }], level: [{ type: i0.Input, args: [{ isSignal: true, alias: "level", required: false }] }], expandedAll: [{ type: i0.Input, args: [{ isSignal: true, alias: "expandedAll", required: false }] }], expandTpl: [{ type: i0.Input, args: [{ isSignal: true, alias: "expandTpl", required: false }] }], rowClick: [{ type: i0.Output, args: ["rowClick"] }] } });
|
|
@@ -638,17 +680,18 @@ class XTableFootProperty extends XProperty {
|
|
|
638
680
|
* @zh_CN 表格页尾
|
|
639
681
|
* @en_US Table footer
|
|
640
682
|
*/
|
|
641
|
-
this.footer = input(
|
|
683
|
+
this.footer = input(/* @ts-ignore */
|
|
684
|
+
...(ngDevMode ? [undefined, { debugName: "footer" }] : /* istanbul ignore next */ []));
|
|
642
685
|
/**
|
|
643
686
|
* @zh_CN 表头和行高,单位 px
|
|
644
687
|
* @en_US Header and row height, unit px
|
|
645
688
|
*/
|
|
646
|
-
this.rowHeight = input(null, { ...(ngDevMode ? { debugName: "rowHeight" } : {}), transform: XToNumber });
|
|
689
|
+
this.rowHeight = input(null, { ...(ngDevMode ? { debugName: "rowHeight" } : /* istanbul ignore next */ {}), transform: XToNumber });
|
|
647
690
|
}
|
|
648
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
649
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "
|
|
691
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.1", ngImport: i0, type: XTableFootProperty, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
692
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.1", type: XTableFootProperty, isStandalone: true, selector: "x-table-foot-property", inputs: { footer: { classPropertyName: "footer", publicName: "footer", isSignal: true, isRequired: false, transformFunction: null }, rowHeight: { classPropertyName: "rowHeight", publicName: "rowHeight", isSignal: true, isRequired: false, transformFunction: null } }, usesInheritance: true, ngImport: i0, template: '', isInline: true }); }
|
|
650
693
|
}
|
|
651
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
694
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.1", ngImport: i0, type: XTableFootProperty, decorators: [{
|
|
652
695
|
type: Component,
|
|
653
696
|
args: [{ selector: `${XTableFootPrefix}-property`, template: '' }]
|
|
654
697
|
}], propDecorators: { footer: [{ type: i0.Input, args: [{ isSignal: true, alias: "footer", required: false }] }], rowHeight: [{ type: i0.Input, args: [{ isSignal: true, alias: "rowHeight", required: false }] }] } });
|
|
@@ -661,8 +704,10 @@ class XTableHeadComponent extends XTableHeadProperty {
|
|
|
661
704
|
this.table = inject(X_TABLE_CONTEXT, { optional: true });
|
|
662
705
|
this.cdr = inject(ChangeDetectorRef);
|
|
663
706
|
this.thead = viewChild.required('thead');
|
|
664
|
-
this.sort = signal([],
|
|
665
|
-
|
|
707
|
+
this.sort = signal([], /* @ts-ignore */
|
|
708
|
+
...(ngDevMode ? [{ debugName: "sort" }] : /* istanbul ignore next */ []));
|
|
709
|
+
this.sortStr = signal('', /* @ts-ignore */
|
|
710
|
+
...(ngDevMode ? [{ debugName: "sortStr" }] : /* istanbul ignore next */ []));
|
|
666
711
|
this.theadStyle = computed(() => {
|
|
667
712
|
let height = this.getHeaderHeight();
|
|
668
713
|
if (this.cellConfig() && this.cellConfig().cells) {
|
|
@@ -675,13 +720,18 @@ class XTableHeadComponent extends XTableHeadProperty {
|
|
|
675
720
|
return {
|
|
676
721
|
['min-height']: `${height}px`
|
|
677
722
|
};
|
|
678
|
-
},
|
|
723
|
+
}, /* @ts-ignore */
|
|
724
|
+
...(ngDevMode ? [{ debugName: "theadStyle" }] : /* istanbul ignore next */ []));
|
|
679
725
|
this.thClassMap = computed(() => ({
|
|
680
726
|
[`${XTablePrefix}-th-${this.table.rowSize()}`]: !XIsEmpty(this.table.rowSize())
|
|
681
|
-
}),
|
|
682
|
-
|
|
683
|
-
this.
|
|
684
|
-
|
|
727
|
+
}), /* @ts-ignore */
|
|
728
|
+
...(ngDevMode ? [{ debugName: "thClassMap" }] : /* istanbul ignore next */ []));
|
|
729
|
+
this.initColumns = computed(() => [...this.columns()], /* @ts-ignore */
|
|
730
|
+
...(ngDevMode ? [{ debugName: "initColumns" }] : /* istanbul ignore next */ []));
|
|
731
|
+
this.getRowHeight = computed(() => (this.rowHeight() == 0 ? '' : this.rowHeight()), /* @ts-ignore */
|
|
732
|
+
...(ngDevMode ? [{ debugName: "getRowHeight" }] : /* istanbul ignore next */ []));
|
|
733
|
+
this.getHeaderHeight = computed(() => this.headerHeight() ?? this.getRowHeight(), /* @ts-ignore */
|
|
734
|
+
...(ngDevMode ? [{ debugName: "getHeaderHeight" }] : /* istanbul ignore next */ []));
|
|
685
735
|
this.elementRef = inject(ElementRef);
|
|
686
736
|
}
|
|
687
737
|
ngOnInit() {
|
|
@@ -793,10 +843,10 @@ class XTableHeadComponent extends XTableHeadProperty {
|
|
|
793
843
|
this.table.detectChanges();
|
|
794
844
|
this.table.columnDragEnded.emit(column);
|
|
795
845
|
}
|
|
796
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
797
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
846
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.1", ngImport: i0, type: XTableHeadComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
847
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.1", type: XTableHeadComponent, isStandalone: true, selector: "x-table-head", viewQueries: [{ propertyName: "thead", first: true, predicate: ["thead"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "<thead\r\n #thead\r\n [ngStyle]=\"theadStyle()\"\r\n [class.x-table-head-top]=\"position() === 'top'\"\r\n [class.x-table-head-bottom]=\"position() === 'bottom'\"\r\n>\r\n @if (cellConfig()) {\r\n <tr [style.gridTemplateColumns]=\"cellConfig()!.gridTemplateColumns\" [style.min-height.px]=\"getHeaderHeight()\">\r\n @for (column of cellConfig()!.cells; track column.id) {\r\n <th\r\n [class.x-table-sticky]=\"table.getStickyLeft(column) || table.getStickyRight(column)\"\r\n [class.x-table-sticky-left]=\"table.getStickyLeft(column)\"\r\n [class.x-table-sticky-right]=\"table.getStickyRight(column)\"\r\n [class.x-table-sticky-left-last]=\"table.getStickyLeftLast(column)\"\r\n [class.x-table-sticky-right-first]=\"table.getStickyRightFirst(column)\"\r\n [class.x-table-width-drag]=\"column.dragWidth\"\r\n [style.grid-area]=\"column.gridArea\"\r\n [style.left.px]=\"column.left\"\r\n [style.right.px]=\"column.right\"\r\n [style.min-height.px]=\"getHeaderHeight()\"\r\n [title]=\"column?.label\"\r\n >\r\n <ng-container *ngTemplateOutlet=\"columnBaseTpl; context: { column: column }\"></ng-container>\r\n @if (column.dragWidth) {\r\n <div\r\n class=\"x-table-drag-width\"\r\n x-drag\r\n (dragMoved)=\"dragWidthMoved($event, column)\"\r\n (dragStarted)=\"dragWidthStarted($event, column)\"\r\n (dragEnded)=\"dragWidthEnded($event, column)\"\r\n ></div>\r\n }\r\n </th>\r\n }\r\n </tr>\r\n } @else {\r\n <ng-container *ngTemplateOutlet=\"columnsTpl\"></ng-container>\r\n }\r\n @if (table.headSearchTpl()) {\r\n <ng-container *ngTemplateOutlet=\"columnsTpl; context: { case: 'search' }\"></ng-container>\r\n }\r\n</thead>\r\n\r\n<ng-template #columnsTpl let-case=\"case\">\r\n <tr\r\n cdkDropList\r\n cdkDropListOrientation=\"horizontal\"\r\n (cdkDropListSorted)=\"dropListSorted($event)\"\r\n (cdkDropListDropped)=\"dropListDropped($event)\"\r\n [style.height.px]=\"getHeaderHeight()\"\r\n [style.min-height.px]=\"getHeaderHeight()\"\r\n [style.padding-right.px]=\"scrollYWidth()\"\r\n [style.min-width.px]=\"scrollXWidth()\"\r\n [class.x-table-search]=\"case === 'search'\"\r\n >\r\n @for (column of initColumns(); track column.id) {\r\n <th\r\n cdkDrag\r\n [cdkDragDisabled]=\"column.draggingWidth || !column.dragColumn\"\r\n (cdkDragStarted)=\"dragStarted($event, column)\"\r\n (cdkDragEnded)=\"dragEnded(column)\"\r\n [ngClass]=\"thClassMap()\"\r\n [class.x-table-th]=\"true\"\r\n [class.x-table-sticky]=\"table.getSticky(column)\"\r\n [class.x-table-sticky-left]=\"table.getStickyLeft(column)\"\r\n [class.x-table-sticky-right]=\"table.getStickyRight(column)\"\r\n [class.x-table-sticky-left-last]=\"table.getStickyLeftLast(column)\"\r\n [class.x-table-sticky-right-first]=\"table.getStickyRightFirst(column)\"\r\n [style.min-height.px]=\"getHeaderHeight()\"\r\n [style.width.px]=\"getColumnWidth(column)\"\r\n [style.left.px]=\"column.left\"\r\n [style.right.px]=\"getColumnRight(column.right)\"\r\n [style.flex]=\"getFlex(column)\"\r\n >\r\n @switch (case) {\r\n @case ('search') {\r\n <ng-container *xOutlet=\"table.headSearchTpl()!; context: { $column: column }\"></ng-container>\r\n }\r\n @default {\r\n <ng-container *ngTemplateOutlet=\"columnBaseTpl; context: { column: column }\"></ng-container>\r\n @if (column.dragWidth) {\r\n <div\r\n class=\"x-table-drag-width\"\r\n x-drag\r\n (dragMoved)=\"dragWidthMoved($event, column)\"\r\n (dragStarted)=\"dragWidthStarted($event, column);\"\r\n (dragEnded)=\"dragWidthEnded($event, column)\"\r\n ></div>\r\n }\r\n }\r\n }\r\n </th>\r\n }\r\n </tr>\r\n</ng-template>\r\n\r\n<ng-template #columnBaseTpl let-column=\"column\">\r\n @switch (column.type) {\r\n @case ('checkbox') {\r\n @if (column.headChecked) {\r\n <x-checkbox\r\n [data]=\"[{ id: true, label: column.label }]\"\r\n [(ngModel)]=\"table.checkedValues()[column.id]\"\r\n (ngModelChange)=\"table.headChecked($event, column)\"\r\n [indeterminate]=\"table.checkedValues()[column.id + table.indeterminate()]\"\r\n single\r\n ></x-checkbox>\r\n }\r\n @if (!column.headChecked) {\r\n <ng-container *ngTemplateOutlet=\"cloumnDefaultTpl; context: { column: column }\"></ng-container>\r\n }\r\n }\r\n @case ('index') {\r\n <a\r\n ><ng-container *xOutlet=\"columnTpl()[column.id]; context: { $column: column }\">\r\n <ng-container *xOutlet=\"table.headThTpl(); context: { $column: column }\">\r\n {{ column.label }}\r\n </ng-container>\r\n </ng-container></a\r\n >\r\n }\r\n @default {\r\n <ng-container *ngTemplateOutlet=\"cloumnDefaultTpl; context: { column: column }\"></ng-container>\r\n }\r\n }\r\n</ng-template>\r\n\r\n<ng-template #cloumnDefaultTpl let-column=\"column\">\r\n <a [class.x-table-sort]=\"column.sort\" (click)=\"onSort(column)\" [style.text-align]=\"column.textAlign\">\r\n <ng-container *xOutlet=\"columnTpl()[column.id]; context: { $column: column }\">\r\n <ng-container *xOutlet=\"table.headThTpl(); context: { $column: column }\">\r\n {{ column.label }}\r\n </ng-container>\r\n </ng-container>\r\n @if (column.sort) {\r\n <x-icon\r\n type=\"fto-bar-chart\"\r\n class=\"x-table-sort-icon\"\r\n [class.x-table-icon-up]=\"sortStr() === column.id + ' desc'\"\r\n [class.x-table-icon-down]=\"sortStr() === column.id + ' asc'\"\r\n ></x-icon>\r\n }\r\n </a>\r\n</ng-template>\r\n", dependencies: [{ kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { 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: "directive", type: XDragDirective, selector: "[x-drag]" }, { kind: "ngmodule", type: DragDropModule }, { kind: "directive", type: i2.CdkDropList, selector: "[cdkDropList], cdk-drop-list", inputs: ["cdkDropListConnectedTo", "cdkDropListData", "cdkDropListOrientation", "id", "cdkDropListLockAxis", "cdkDropListDisabled", "cdkDropListSortingDisabled", "cdkDropListEnterPredicate", "cdkDropListSortPredicate", "cdkDropListAutoScrollDisabled", "cdkDropListAutoScrollStep", "cdkDropListElementContainer", "cdkDropListHasAnchor"], outputs: ["cdkDropListDropped", "cdkDropListEntered", "cdkDropListExited", "cdkDropListSorted"], exportAs: ["cdkDropList"] }, { kind: "directive", type: i2.CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer", "cdkDragScale"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { kind: "component", type: XCheckboxComponent, selector: "x-checkbox" }, { kind: "directive", type: XOutletDirective, selector: "[xOutlet]", inputs: ["xOutletContext", "xOutlet"] }, { kind: "component", type: XIconComponent, selector: "x-icon" }], encapsulation: i0.ViewEncapsulation.None }); }
|
|
798
848
|
}
|
|
799
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
849
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.1", ngImport: i0, type: XTableHeadComponent, decorators: [{
|
|
800
850
|
type: Component,
|
|
801
851
|
args: [{ selector: `${XTableHeadPrefix}`, imports: [
|
|
802
852
|
NgStyle,
|
|
@@ -817,7 +867,8 @@ class XTableFootComponent extends XTableFootProperty {
|
|
|
817
867
|
this.tfoot = viewChild.required('tfoot');
|
|
818
868
|
this.table = inject(X_TABLE_CONTEXT, { optional: true });
|
|
819
869
|
this.cdr = inject(ChangeDetectorRef);
|
|
820
|
-
this.getRowHeight = computed(() => (this.rowHeight() == 0 ? '' : this.rowHeight()),
|
|
870
|
+
this.getRowHeight = computed(() => (this.rowHeight() == 0 ? '' : this.rowHeight()), /* @ts-ignore */
|
|
871
|
+
...(ngDevMode ? [{ debugName: "getRowHeight" }] : /* istanbul ignore next */ []));
|
|
821
872
|
this.elementRef = inject(ElementRef);
|
|
822
873
|
}
|
|
823
874
|
ngOnInit() {
|
|
@@ -826,10 +877,10 @@ class XTableFootComponent extends XTableFootProperty {
|
|
|
826
877
|
ngAfterViewInit() {
|
|
827
878
|
this.table.tfoot.set(this.tfoot());
|
|
828
879
|
}
|
|
829
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
830
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "
|
|
880
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.1", ngImport: i0, type: XTableFootComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
881
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.0.1", type: XTableFootComponent, isStandalone: true, selector: "x-table-foot", viewQueries: [{ propertyName: "tfoot", first: true, predicate: ["tfoot"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "<tfoot #tfoot class=\"x-table-footer\" [style.height.px]=\"getRowHeight()!\" [style.min-height.px]=\"getRowHeight()\">\r\n <ng-container *xOutlet=\"footer()\">{{ footer() }}</ng-container>\r\n</tfoot>\r\n", dependencies: [{ kind: "directive", type: XOutletDirective, selector: "[xOutlet]", inputs: ["xOutletContext", "xOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
831
882
|
}
|
|
832
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
883
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.1", ngImport: i0, type: XTableFootComponent, decorators: [{
|
|
833
884
|
type: Component,
|
|
834
885
|
args: [{ selector: `${XTableFootPrefix}`, imports: [XOutletDirective], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<tfoot #tfoot class=\"x-table-footer\" [style.height.px]=\"getRowHeight()!\" [style.min-height.px]=\"getRowHeight()\">\r\n <ng-container *xOutlet=\"footer()\">{{ footer() }}</ng-container>\r\n</tfoot>\r\n" }]
|
|
835
886
|
}], propDecorators: { tfoot: [{ type: i0.ViewChild, args: ['tfoot', { isSignal: true }] }] } });
|
|
@@ -842,10 +893,10 @@ class XTableCheckboxDragSelectService {
|
|
|
842
893
|
this.downValue = false;
|
|
843
894
|
this.changeRows = [];
|
|
844
895
|
}
|
|
845
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
846
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
896
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.1", ngImport: i0, type: XTableCheckboxDragSelectService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
897
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.1", ngImport: i0, type: XTableCheckboxDragSelectService, providedIn: 'root' }); }
|
|
847
898
|
}
|
|
848
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
899
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.1", ngImport: i0, type: XTableCheckboxDragSelectService, decorators: [{
|
|
849
900
|
type: Injectable,
|
|
850
901
|
args: [{ providedIn: 'root' }]
|
|
851
902
|
}] });
|
|
@@ -855,10 +906,14 @@ class XTableCheckboxDragSelectDirective {
|
|
|
855
906
|
this.dragSelectService = inject(XTableCheckboxDragSelectService);
|
|
856
907
|
this.document = inject(DOCUMENT);
|
|
857
908
|
this.checkbox = inject(XCheckboxComponent, { host: true });
|
|
858
|
-
this.dragRows = input.required(
|
|
859
|
-
|
|
860
|
-
this.
|
|
861
|
-
|
|
909
|
+
this.dragRows = input.required(/* @ts-ignore */
|
|
910
|
+
...(ngDevMode ? [{ debugName: "dragRows" }] : /* istanbul ignore next */ []));
|
|
911
|
+
this.dragRow = input.required(/* @ts-ignore */
|
|
912
|
+
...(ngDevMode ? [{ debugName: "dragRow" }] : /* istanbul ignore next */ []));
|
|
913
|
+
this.dragColumn = input.required(/* @ts-ignore */
|
|
914
|
+
...(ngDevMode ? [{ debugName: "dragColumn" }] : /* istanbul ignore next */ []));
|
|
915
|
+
this.dragDisabled = input(false, /* @ts-ignore */
|
|
916
|
+
...(ngDevMode ? [{ debugName: "dragDisabled" }] : /* istanbul ignore next */ []));
|
|
862
917
|
this.dragStart = output();
|
|
863
918
|
this.dragMove = output();
|
|
864
919
|
this.dragEnd = output();
|
|
@@ -928,10 +983,10 @@ class XTableCheckboxDragSelectDirective {
|
|
|
928
983
|
isCheckboxLike(el) {
|
|
929
984
|
return el.classList.contains('x-checkbox-box');
|
|
930
985
|
}
|
|
931
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
932
|
-
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
986
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.1", ngImport: i0, type: XTableCheckboxDragSelectDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
987
|
+
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.0.1", type: XTableCheckboxDragSelectDirective, isStandalone: true, selector: "[xTableCheckboxDragSelect]", inputs: { dragRows: { classPropertyName: "dragRows", publicName: "dragRows", isSignal: true, isRequired: true, transformFunction: null }, dragRow: { classPropertyName: "dragRow", publicName: "dragRow", isSignal: true, isRequired: true, transformFunction: null }, dragColumn: { classPropertyName: "dragColumn", publicName: "dragColumn", isSignal: true, isRequired: true, transformFunction: null }, dragDisabled: { classPropertyName: "dragDisabled", publicName: "dragDisabled", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { dragStart: "dragStart", dragMove: "dragMove", dragEnd: "dragEnd" }, host: { listeners: { "mousedown": "onMouseDown($event)", "document:mouseup": "onMouseUp()", "document:mousemove": "onMouseMove($event)" } }, ngImport: i0 }); }
|
|
933
988
|
}
|
|
934
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
989
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.1", ngImport: i0, type: XTableCheckboxDragSelectDirective, decorators: [{
|
|
935
990
|
type: Directive,
|
|
936
991
|
args: [{
|
|
937
992
|
selector: '[xTableCheckboxDragSelect]'
|
|
@@ -954,22 +1009,34 @@ class XTableBodyComponent extends XTableBodyProperty {
|
|
|
954
1009
|
this.elementRef = inject((ElementRef));
|
|
955
1010
|
this.cdr = inject(ChangeDetectorRef);
|
|
956
1011
|
this.tbody = viewChild.required('tbody');
|
|
957
|
-
this.virtualBody = viewChild(CdkVirtualScrollViewport,
|
|
1012
|
+
this.virtualBody = viewChild(CdkVirtualScrollViewport, /* @ts-ignore */
|
|
1013
|
+
...(ngDevMode ? [{ debugName: "virtualBody" }] : /* istanbul ignore next */ []));
|
|
958
1014
|
this.table = inject(X_TABLE_CONTEXT, { optional: true });
|
|
959
1015
|
this.doc = inject(DOCUMENT$1);
|
|
960
1016
|
this.unSubject = new Subject();
|
|
961
1017
|
this.domSanitizer = inject(DomSanitizer);
|
|
962
|
-
this.tbodyStyle = signal({},
|
|
963
|
-
|
|
964
|
-
this.
|
|
965
|
-
|
|
966
|
-
this.
|
|
967
|
-
|
|
968
|
-
this.
|
|
969
|
-
|
|
970
|
-
this.
|
|
971
|
-
|
|
972
|
-
this.
|
|
1018
|
+
this.tbodyStyle = signal({}, /* @ts-ignore */
|
|
1019
|
+
...(ngDevMode ? [{ debugName: "tbodyStyle" }] : /* istanbul ignore next */ []));
|
|
1020
|
+
this.isEmpty = computed(() => this.data().length === 0, /* @ts-ignore */
|
|
1021
|
+
...(ngDevMode ? [{ debugName: "isEmpty" }] : /* istanbul ignore next */ []));
|
|
1022
|
+
this.getRowHeight = computed(() => (this.rowHeight() == 0 ? '' : this.rowHeight()), /* @ts-ignore */
|
|
1023
|
+
...(ngDevMode ? [{ debugName: "getRowHeight" }] : /* istanbul ignore next */ []));
|
|
1024
|
+
this.getItemSize = computed(() => this.rowHeight() !== 0 && this.itemSize() > this.rowHeight() ? this.rowHeight() : this.itemSize(), /* @ts-ignore */
|
|
1025
|
+
...(ngDevMode ? [{ debugName: "getItemSize" }] : /* istanbul ignore next */ []));
|
|
1026
|
+
this.docClientHeight = signal(this.doc.documentElement.clientHeight, /* @ts-ignore */
|
|
1027
|
+
...(ngDevMode ? [{ debugName: "docClientHeight" }] : /* istanbul ignore next */ []));
|
|
1028
|
+
this.headHeight = signal(0, /* @ts-ignore */
|
|
1029
|
+
...(ngDevMode ? [{ debugName: "headHeight" }] : /* istanbul ignore next */ []));
|
|
1030
|
+
this.captionHeight = signal(0, /* @ts-ignore */
|
|
1031
|
+
...(ngDevMode ? [{ debugName: "captionHeight" }] : /* istanbul ignore next */ []));
|
|
1032
|
+
this.footHeight = signal(0, /* @ts-ignore */
|
|
1033
|
+
...(ngDevMode ? [{ debugName: "footHeight" }] : /* istanbul ignore next */ []));
|
|
1034
|
+
this.paginationHeight = signal(0, /* @ts-ignore */
|
|
1035
|
+
...(ngDevMode ? [{ debugName: "paginationHeight" }] : /* istanbul ignore next */ []));
|
|
1036
|
+
this.checkboxDragging = signal(false, /* @ts-ignore */
|
|
1037
|
+
...(ngDevMode ? [{ debugName: "checkboxDragging" }] : /* istanbul ignore next */ []));
|
|
1038
|
+
this.expandChanged = signal(false, /* @ts-ignore */
|
|
1039
|
+
...(ngDevMode ? [{ debugName: "expandChanged" }] : /* istanbul ignore next */ []));
|
|
973
1040
|
this.bodyHeightSignal = computed(() => {
|
|
974
1041
|
const adaptionHeight = this.adaptionHeight();
|
|
975
1042
|
if (adaptionHeight && adaptionHeight > 0) {
|
|
@@ -987,21 +1054,24 @@ class XTableBodyComponent extends XTableBodyProperty {
|
|
|
987
1054
|
return this.scroll().y;
|
|
988
1055
|
}
|
|
989
1056
|
return this.bodyHeight();
|
|
990
|
-
},
|
|
1057
|
+
}, /* @ts-ignore */
|
|
1058
|
+
...(ngDevMode ? [{ debugName: "bodyHeightSignal" }] : /* istanbul ignore next */ []));
|
|
991
1059
|
this.minBufferPxSignal = computed(() => {
|
|
992
1060
|
const adaptionHeight = this.adaptionHeight();
|
|
993
1061
|
if (adaptionHeight && adaptionHeight > 0) {
|
|
994
1062
|
return this.bodyHeightSignal();
|
|
995
1063
|
}
|
|
996
1064
|
return this.minBufferPx();
|
|
997
|
-
},
|
|
1065
|
+
}, /* @ts-ignore */
|
|
1066
|
+
...(ngDevMode ? [{ debugName: "minBufferPxSignal" }] : /* istanbul ignore next */ []));
|
|
998
1067
|
this.maxBufferPxSignal = computed(() => {
|
|
999
1068
|
const adaptionHeight = this.adaptionHeight();
|
|
1000
1069
|
if (adaptionHeight && adaptionHeight > 0) {
|
|
1001
1070
|
return this.bodyHeightSignal() * 1.2;
|
|
1002
1071
|
}
|
|
1003
1072
|
return this.maxBufferPx();
|
|
1004
|
-
},
|
|
1073
|
+
}, /* @ts-ignore */
|
|
1074
|
+
...(ngDevMode ? [{ debugName: "maxBufferPxSignal" }] : /* istanbul ignore next */ []));
|
|
1005
1075
|
this.treeData = computed(() => {
|
|
1006
1076
|
if (!this.table.treeTable())
|
|
1007
1077
|
return [];
|
|
@@ -1017,12 +1087,14 @@ class XTableBodyComponent extends XTableBodyProperty {
|
|
|
1017
1087
|
};
|
|
1018
1088
|
addItems(this.data());
|
|
1019
1089
|
return treeData;
|
|
1020
|
-
},
|
|
1090
|
+
}, /* @ts-ignore */
|
|
1091
|
+
...(ngDevMode ? [{ debugName: "treeData" }] : /* istanbul ignore next */ []));
|
|
1021
1092
|
this.rows = computed(() => {
|
|
1022
1093
|
if (!this.table.treeTable())
|
|
1023
1094
|
return this.data();
|
|
1024
1095
|
return this.treeData();
|
|
1025
|
-
},
|
|
1096
|
+
}, /* @ts-ignore */
|
|
1097
|
+
...(ngDevMode ? [{ debugName: "rows" }] : /* istanbul ignore next */ []));
|
|
1026
1098
|
effect(() => {
|
|
1027
1099
|
if (this.virtualBody()) {
|
|
1028
1100
|
this.virtualBody()['_scrollStrategy']['_minBufferPx'] = this.minBufferPxSignal();
|
|
@@ -1177,10 +1249,10 @@ class XTableBodyComponent extends XTableBodyProperty {
|
|
|
1177
1249
|
trackByItem(_index, item) {
|
|
1178
1250
|
return item.id;
|
|
1179
1251
|
}
|
|
1180
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1181
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
1252
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.1", ngImport: i0, type: XTableBodyComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1253
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.1", type: XTableBodyComponent, isStandalone: true, selector: "x-table-body", viewQueries: [{ propertyName: "tbody", first: true, predicate: ["tbody"], descendants: true, isSignal: true }, { propertyName: "virtualBody", first: true, predicate: CdkVirtualScrollViewport, descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "<tbody #tbody [class.x-table-body-checkbox-dragging]=\"checkboxDragging()\">\r\n @if (cellConfig()) {\r\n @for (row of data(); track row.id; let i = $index) {\r\n <tr [style.gridTemplateColumns]=\"cellConfig()!.gridTemplateColumns\" [attr.data-row-key]=\"row.id\">\r\n @for (column of cellConfig()!.cells; track column; let j = $index) {\r\n <td\r\n [title]=\"getTitle(row, column)\"\r\n [class.x-table-sticky]=\"table.getStickyLeft(column) || table.getStickyRight(column)\"\r\n [class.x-table-sticky-left]=\"table.getStickyLeft(column)\"\r\n [class.x-table-sticky-right]=\"table.getStickyRight(column)\"\r\n [class.x-table-sticky-left-last]=\"table.getStickyLeftLast(column)\"\r\n [class.x-table-sticky-right-first]=\"table.getStickyRightFirst(column)\"\r\n [style.left.px]=\"column.left\"\r\n [style.right.px]=\"column.right\"\r\n [style.grid-area]=\"column.gridArea\"\r\n >\r\n <ng-container *ngTemplateOutlet=\"cellTpl; context: { column: column, row: row, i: i }\"></ng-container>\r\n </td>\r\n }\r\n </tr>\r\n }\r\n } @else {\r\n @if (virtualScroll()) {\r\n <cdk-virtual-scroll-viewport\r\n #virtualBody\r\n [itemSize]=\"getItemSize()\"\r\n [minBufferPx]=\"minBufferPxSignal()\"\r\n [maxBufferPx]=\"maxBufferPxSignal()\"\r\n [style.height.px]=\"bodyHeightSignal()\"\r\n >\r\n <tr\r\n *cdkVirtualFor=\"let row of rows(); let index = index; trackBy: trackByItem\"\r\n [class.x-table-activated]=\"allowSelectRow() && activatedRow()?.id === row.id\"\r\n [style.height.px]=\"getRowHeight()\"\r\n [style.min-height.px]=\"getRowHeight()\"\r\n (click)=\"onRowClick($event, row)\"\r\n [attr.data-row-key]=\"row.id\"\r\n >\r\n <!-- rowHeight \u4E3A 0 \u7684\u65F6\u5019\uFF0Cindex \u4E0B\u6807\u83B7\u53D6\u4E0D\u5230 -->\r\n <ng-container *ngTemplateOutlet=\"rowTpl; context: { row: row, i: getIndex(index, row) }\"></ng-container>\r\n </tr>\r\n </cdk-virtual-scroll-viewport>\r\n } @else {\r\n @for (row of rows(); track row.id; let i = $index) {\r\n <tr\r\n [class.x-table-activated]=\"allowSelectRow() && activatedRow()?.id === row.id\"\r\n [style.height.px]=\"getRowHeight()\"\r\n [style.min-height.px]=\"getRowHeight()\"\r\n (click)=\"onRowClick($event, row)\"\r\n [attr.data-row-key]=\"row.id\"\r\n >\r\n <ng-container *ngTemplateOutlet=\"rowTpl; context: { row: row, i: i }\"></ng-container>\r\n </tr>\r\n }\r\n }\r\n }\r\n @if (table.showEmpty() && isEmpty() && level() === 0) {\r\n <x-empty [img]=\"table.emptyImg()!\" [content]=\"table.emptyContent()!\"></x-empty>\r\n }\r\n</tbody>\r\n\r\n<ng-template #rowTpl let-row=\"row\" let-i=\"i\">\r\n <ng-container *xOutlet=\"rowDefault; context: { row: row, i: i, level: row.level }\"></ng-container>\r\n</ng-template>\r\n\r\n<ng-template #rowDefault let-row=\"row\" let-i=\"i\">\r\n @for (column of columns(); track column.id; let j = $index) {\r\n <td\r\n [style.width.px]=\"column.width\"\r\n [style.flex]=\"getFlex(column)\"\r\n [title]=\"getTitle(row, column)\"\r\n [class.x-table-dragging]=\"column.dragging\"\r\n [class.x-table-sticky]=\"table.getStickyLeft(column) || table.getStickyRight(column)\"\r\n [class.x-table-sticky-left]=\"table.getStickyLeft(column)\"\r\n [class.x-table-sticky-right]=\"table.getStickyRight(column)\"\r\n [class.x-table-sticky-left-last]=\"table.getStickyLeftLast(column)\"\r\n [class.x-table-sticky-right-first]=\"table.getStickyRightFirst(column)\"\r\n [style.left.px]=\"column.left\"\r\n [style.right.px]=\"column.right\"\r\n [ngClass]=\"!rowClass() ? {} : rowClass()!(row, i)\"\r\n >\r\n <ng-template *ngTemplateOutlet=\"cellTpl; context: { column: column, row: row, i: i }\"></ng-template>\r\n </td>\r\n }\r\n</ng-template>\r\n\r\n<ng-template #cellTpl let-column=\"column\" let-row=\"row\" let-i=\"i\">\r\n @switch (column.type) {\r\n @case ('checkbox') {\r\n <x-checkbox\r\n xTableCheckboxDragSelect\r\n [dragRows]=\"data()\"\r\n [dragRow]=\"row\"\r\n [dragColumn]=\"column\"\r\n (dragStart)=\"checkboxDragging.set(true)\"\r\n (dragEnd)=\"checkboxDragging.set(false); table.setCheckbox($event, column)\"\r\n [dragDisabled]=\"row.disabled || column.checkboxDragDisabled || table.checkboxDragDisabled()\"\r\n [data]=\"[{ id: true, label: '' }]\"\r\n [(ngModel)]=\"row[column.id]\"\r\n [disabled]=\"row.disabled\"\r\n (ngModelChange)=\"table.bodyChecked(column, row)\"\r\n single\r\n ></x-checkbox>\r\n }\r\n @case ('index') {\r\n <div>{{ table.getIndex(i) }}</div>\r\n }\r\n @default {\r\n @if (table.isExpandColumn(column)) {\r\n <x-button\r\n [class.is-leaf]=\"!row.leaf\"\r\n [class.is-expanded]=\"row.expanded\"\r\n (click)=\"onExpanded($event, row)\"\r\n icon=\"fto-chevron-right\"\r\n size=\"mini\"\r\n onlyIcon\r\n flat\r\n plain\r\n class=\"x-table-expand\"\r\n [style.margin-left.rem]=\"row.level - 0.5\"\r\n ></x-button>\r\n }\r\n <ng-container\r\n *xOutlet=\"columnTpl()[column.id]; context: { $column: column, $row: row, $index: table.getIndex(i) }\"\r\n >\r\n <ng-container *xOutlet=\"table.bodyTdTpl(); context: { $column: column, $row: row, $index: table.getIndex(i) }\">\r\n @if ((table.bodyInnerHTML() && column.innerHTML !== false) || column.innerHTML) {\r\n <div x-inner-html [html]=\"row[column.id]\" [style]=\"{ textAlign: column.textAlign }\"></div>\r\n } @else {\r\n <div [style.text-align]=\"column.textAlign\">{{ row[column.id] }}</div>\r\n }\r\n {{ table.rowExpand() && table.rowExpand()!.id === column.id ? 'x-table-body-level-' + row.level : '' }}\r\n </ng-container>\r\n </ng-container>\r\n }\r\n }\r\n</ng-template>\r\n", dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { 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: "component", type: XEmptyComponent, selector: "x-empty" }, { kind: "ngmodule", type: ScrollingModule }, { kind: "directive", type: i2$1.CdkFixedSizeVirtualScroll, selector: "cdk-virtual-scroll-viewport[itemSize]", inputs: ["itemSize", "minBufferPx", "maxBufferPx"] }, { kind: "directive", type: i2$1.CdkVirtualForOf, selector: "[cdkVirtualFor][cdkVirtualForOf]", inputs: ["cdkVirtualForOf", "cdkVirtualForTrackBy", "cdkVirtualForTemplate", "cdkVirtualForTemplateCacheSize"] }, { kind: "component", type: i2$1.CdkVirtualScrollViewport, selector: "cdk-virtual-scroll-viewport", inputs: ["orientation", "appendOnly"], outputs: ["scrolledIndexChange"] }, { kind: "directive", type: XOutletDirective, selector: "[xOutlet]", inputs: ["xOutletContext", "xOutlet"] }, { kind: "component", type: XCheckboxComponent, selector: "x-checkbox" }, { kind: "component", type: XButtonComponent, selector: "x-button" }, { kind: "component", type: XInnerHTMLComponent, selector: "[x-inner-html], x-inner-html", inputs: ["html", "style"] }, { kind: "directive", type: XTableCheckboxDragSelectDirective, selector: "[xTableCheckboxDragSelect]", inputs: ["dragRows", "dragRow", "dragColumn", "dragDisabled"], outputs: ["dragStart", "dragMove", "dragEnd"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
1182
1254
|
}
|
|
1183
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1255
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.1", ngImport: i0, type: XTableBodyComponent, decorators: [{
|
|
1184
1256
|
type: Component,
|
|
1185
1257
|
args: [{ selector: `${XTableBodyPrefix}`, imports: [
|
|
1186
1258
|
NgClass,
|
|
@@ -1203,49 +1275,84 @@ class XTableComponent extends XTableProperty {
|
|
|
1203
1275
|
this.elementRef = inject((ElementRef));
|
|
1204
1276
|
this.cdr = inject(ChangeDetectorRef);
|
|
1205
1277
|
this.unSubject = new Subject();
|
|
1206
|
-
this.classMap = computed(() => ({ [`${XTablePrefix}-row-size-${this.rowSize()}`]: !XIsEmpty(this.rowSize()) }),
|
|
1207
|
-
|
|
1208
|
-
this.
|
|
1209
|
-
|
|
1278
|
+
this.classMap = computed(() => ({ [`${XTablePrefix}-row-size-${this.rowSize()}`]: !XIsEmpty(this.rowSize()) }), /* @ts-ignore */
|
|
1279
|
+
...(ngDevMode ? [{ debugName: "classMap" }] : /* istanbul ignore next */ []));
|
|
1280
|
+
this.theads = signal([], /* @ts-ignore */
|
|
1281
|
+
...(ngDevMode ? [{ debugName: "theads" }] : /* istanbul ignore next */ []));
|
|
1282
|
+
this.tfoot = signal(null, /* @ts-ignore */
|
|
1283
|
+
...(ngDevMode ? [{ debugName: "tfoot" }] : /* istanbul ignore next */ []));
|
|
1284
|
+
this.virtualBody = signal(null, /* @ts-ignore */
|
|
1285
|
+
...(ngDevMode ? [{ debugName: "virtualBody" }] : /* istanbul ignore next */ []));
|
|
1210
1286
|
this.theadsChange = [];
|
|
1211
|
-
this.scrollContentEle = signal(null,
|
|
1212
|
-
|
|
1213
|
-
this.
|
|
1214
|
-
|
|
1215
|
-
this.
|
|
1216
|
-
|
|
1217
|
-
this.
|
|
1218
|
-
|
|
1219
|
-
this.
|
|
1220
|
-
|
|
1221
|
-
this.
|
|
1222
|
-
|
|
1223
|
-
this.
|
|
1224
|
-
|
|
1225
|
-
this.
|
|
1226
|
-
|
|
1227
|
-
this.
|
|
1228
|
-
|
|
1229
|
-
this.
|
|
1287
|
+
this.scrollContentEle = signal(null, /* @ts-ignore */
|
|
1288
|
+
...(ngDevMode ? [{ debugName: "scrollContentEle" }] : /* istanbul ignore next */ []));
|
|
1289
|
+
this.hasScrollY = signal(false, /* @ts-ignore */
|
|
1290
|
+
...(ngDevMode ? [{ debugName: "hasScrollY" }] : /* istanbul ignore next */ []));
|
|
1291
|
+
this.scrollYWidth = signal(0, /* @ts-ignore */
|
|
1292
|
+
...(ngDevMode ? [{ debugName: "scrollYWidth" }] : /* istanbul ignore next */ []));
|
|
1293
|
+
this.hasScrollX = signal(false, /* @ts-ignore */
|
|
1294
|
+
...(ngDevMode ? [{ debugName: "hasScrollX" }] : /* istanbul ignore next */ []));
|
|
1295
|
+
this.scrollXHeight = signal(0, /* @ts-ignore */
|
|
1296
|
+
...(ngDevMode ? [{ debugName: "scrollXHeight" }] : /* istanbul ignore next */ []));
|
|
1297
|
+
this.scrollXWidth = signal(null, /* @ts-ignore */
|
|
1298
|
+
...(ngDevMode ? [{ debugName: "scrollXWidth" }] : /* istanbul ignore next */ []));
|
|
1299
|
+
this.scrollLeft = signal(0, /* @ts-ignore */
|
|
1300
|
+
...(ngDevMode ? [{ debugName: "scrollLeft" }] : /* istanbul ignore next */ []));
|
|
1301
|
+
this.scrollLeftMax = signal(false, /* @ts-ignore */
|
|
1302
|
+
...(ngDevMode ? [{ debugName: "scrollLeftMax" }] : /* istanbul ignore next */ []));
|
|
1303
|
+
this.scrollTop = signal(0, /* @ts-ignore */
|
|
1304
|
+
...(ngDevMode ? [{ debugName: "scrollTop" }] : /* istanbul ignore next */ []));
|
|
1305
|
+
this.rowChecked = signal(null, /* @ts-ignore */
|
|
1306
|
+
...(ngDevMode ? [{ debugName: "rowChecked" }] : /* istanbul ignore next */ []));
|
|
1307
|
+
this.headCheckboxList = signal([], /* @ts-ignore */
|
|
1308
|
+
...(ngDevMode ? [{ debugName: "headCheckboxList" }] : /* istanbul ignore next */ []));
|
|
1309
|
+
this.rowExpand = signal(null, /* @ts-ignore */
|
|
1310
|
+
...(ngDevMode ? [{ debugName: "rowExpand" }] : /* istanbul ignore next */ []));
|
|
1311
|
+
this.headExpandList = signal([], /* @ts-ignore */
|
|
1312
|
+
...(ngDevMode ? [{ debugName: "headExpandList" }] : /* istanbul ignore next */ []));
|
|
1313
|
+
this.dataIsFunc = signal(false, /* @ts-ignore */
|
|
1314
|
+
...(ngDevMode ? [{ debugName: "dataIsFunc" }] : /* istanbul ignore next */ []));
|
|
1315
|
+
this.getting = signal(false, /* @ts-ignore */
|
|
1316
|
+
...(ngDevMode ? [{ debugName: "getting" }] : /* istanbul ignore next */ []));
|
|
1317
|
+
this.tableData = signal([], /* @ts-ignore */
|
|
1318
|
+
...(ngDevMode ? [{ debugName: "tableData" }] : /* istanbul ignore next */ []));
|
|
1319
|
+
this.treeTableData = signal([], /* @ts-ignore */
|
|
1320
|
+
...(ngDevMode ? [{ debugName: "treeTableData" }] : /* istanbul ignore next */ []));
|
|
1321
|
+
this.checkedValues = signal({}, /* @ts-ignore */
|
|
1322
|
+
...(ngDevMode ? [{ debugName: "checkedValues" }] : /* istanbul ignore next */ []));
|
|
1323
|
+
this.indeterminate = signal('$$indeterminate', /* @ts-ignore */
|
|
1324
|
+
...(ngDevMode ? [{ debugName: "indeterminate" }] : /* istanbul ignore next */ []));
|
|
1230
1325
|
this.table = viewChild.required('table');
|
|
1231
|
-
this.caption = viewChild('caption',
|
|
1232
|
-
|
|
1233
|
-
this.
|
|
1234
|
-
|
|
1235
|
-
this.
|
|
1236
|
-
|
|
1237
|
-
this.
|
|
1238
|
-
|
|
1239
|
-
this.
|
|
1240
|
-
|
|
1241
|
-
this.
|
|
1326
|
+
this.caption = viewChild('caption', /* @ts-ignore */
|
|
1327
|
+
...(ngDevMode ? [{ debugName: "caption" }] : /* istanbul ignore next */ []));
|
|
1328
|
+
this.pagination = viewChild('pagination', /* @ts-ignore */
|
|
1329
|
+
...(ngDevMode ? [{ debugName: "pagination" }] : /* istanbul ignore next */ []));
|
|
1330
|
+
this.stickyTopRightEle = viewChild('stickyTopRightEle', /* @ts-ignore */
|
|
1331
|
+
...(ngDevMode ? [{ debugName: "stickyTopRightEle" }] : /* istanbul ignore next */ []));
|
|
1332
|
+
this.stickyBottomRightEle = viewChild('stickyBottomRightEle', /* @ts-ignore */
|
|
1333
|
+
...(ngDevMode ? [{ debugName: "stickyBottomRightEle" }] : /* istanbul ignore next */ []));
|
|
1334
|
+
this.headCom = viewChildren(XTableHeadComponent, /* @ts-ignore */
|
|
1335
|
+
...(ngDevMode ? [{ debugName: "headCom" }] : /* istanbul ignore next */ []));
|
|
1336
|
+
this.bodyCom = viewChildren(XTableBodyComponent, /* @ts-ignore */
|
|
1337
|
+
...(ngDevMode ? [{ debugName: "bodyCom" }] : /* istanbul ignore next */ []));
|
|
1338
|
+
this.footCom = viewChild(XTableFootComponent, /* @ts-ignore */
|
|
1339
|
+
...(ngDevMode ? [{ debugName: "footCom" }] : /* istanbul ignore next */ []));
|
|
1340
|
+
this.getScrollLeft = computed(() => this.scrollLeft() > 0, /* @ts-ignore */
|
|
1341
|
+
...(ngDevMode ? [{ debugName: "getScrollLeft" }] : /* istanbul ignore next */ []));
|
|
1342
|
+
this.getScrollTop = computed(() => this.scrollTop() > 0, /* @ts-ignore */
|
|
1343
|
+
...(ngDevMode ? [{ debugName: "getScrollTop" }] : /* istanbul ignore next */ []));
|
|
1344
|
+
this.getRowHeight = computed(() => (this.rowHeight() === 0 ? '' : this.rowHeight()), /* @ts-ignore */
|
|
1345
|
+
...(ngDevMode ? [{ debugName: "getRowHeight" }] : /* istanbul ignore next */ []));
|
|
1346
|
+
this.getStickyTopScrollTop = computed(() => (this.caption() ? this.caption().nativeElement.offsetHeight : 0), /* @ts-ignore */
|
|
1347
|
+
...(ngDevMode ? [{ debugName: "getStickyTopScrollTop" }] : /* istanbul ignore next */ []));
|
|
1242
1348
|
this.getStickyBottomScrollTop = computed(() => {
|
|
1243
1349
|
let top = 0;
|
|
1244
1350
|
if (this.footer() && this.tfoot()) {
|
|
1245
1351
|
top += this.tfoot().nativeElement.clientHeight + 1;
|
|
1246
1352
|
}
|
|
1247
1353
|
return top;
|
|
1248
|
-
},
|
|
1354
|
+
}, /* @ts-ignore */
|
|
1355
|
+
...(ngDevMode ? [{ debugName: "getStickyBottomScrollTop" }] : /* istanbul ignore next */ []));
|
|
1249
1356
|
this.getStickyTopRightEleHeight = computed(() => {
|
|
1250
1357
|
if (this.stickyTopRightEle()) {
|
|
1251
1358
|
return this.stickyTopRightEle().nativeElement.offsetHeight;
|
|
@@ -1253,7 +1360,8 @@ class XTableComponent extends XTableProperty {
|
|
|
1253
1360
|
else {
|
|
1254
1361
|
return 0;
|
|
1255
1362
|
}
|
|
1256
|
-
},
|
|
1363
|
+
}, /* @ts-ignore */
|
|
1364
|
+
...(ngDevMode ? [{ debugName: "getStickyTopRightEleHeight" }] : /* istanbul ignore next */ []));
|
|
1257
1365
|
this.getStickyBottomRightEleHeight = computed(() => {
|
|
1258
1366
|
if (this.stickyBottomRightEle()) {
|
|
1259
1367
|
return this.stickyBottomRightEle().nativeElement.offsetHeight;
|
|
@@ -1261,14 +1369,18 @@ class XTableComponent extends XTableProperty {
|
|
|
1261
1369
|
else {
|
|
1262
1370
|
return 0;
|
|
1263
1371
|
}
|
|
1264
|
-
},
|
|
1372
|
+
}, /* @ts-ignore */
|
|
1373
|
+
...(ngDevMode ? [{ debugName: "getStickyBottomRightEleHeight" }] : /* istanbul ignore next */ []));
|
|
1265
1374
|
this.hasStickyTopRight = computed(() => this.showHeader() &&
|
|
1266
1375
|
(this.headerPosition() === 'top' || this.headerPosition() === 'top-bottom') &&
|
|
1267
|
-
this.columns().some((x) => Number(x.right) >= 0),
|
|
1268
|
-
|
|
1376
|
+
this.columns().some((x) => Number(x.right) >= 0), /* @ts-ignore */
|
|
1377
|
+
...(ngDevMode ? [{ debugName: "hasStickyTopRight" }] : /* istanbul ignore next */ []));
|
|
1378
|
+
this.hasStickyTopRightSearch = computed(() => !!this.headSearchTpl(), /* @ts-ignore */
|
|
1379
|
+
...(ngDevMode ? [{ debugName: "hasStickyTopRightSearch" }] : /* istanbul ignore next */ []));
|
|
1269
1380
|
this.hasStickyBottomRight = computed(() => this.showHeader() &&
|
|
1270
1381
|
(this.headerPosition() === 'bottom' || this.headerPosition() === 'top-bottom') &&
|
|
1271
|
-
this.columns().some((x) => Number(x.right) >= 0),
|
|
1382
|
+
this.columns().some((x) => Number(x.right) >= 0), /* @ts-ignore */
|
|
1383
|
+
...(ngDevMode ? [{ debugName: "hasStickyBottomRight" }] : /* istanbul ignore next */ []));
|
|
1272
1384
|
this.cellConfigSignal = computed(() => {
|
|
1273
1385
|
const cellConfig = this.cellConfig();
|
|
1274
1386
|
if (!cellConfig)
|
|
@@ -1300,9 +1412,12 @@ class XTableComponent extends XTableProperty {
|
|
|
1300
1412
|
return { gridTemplateColumns, cells };
|
|
1301
1413
|
};
|
|
1302
1414
|
return { thead: setRule(cellConfig.thead), tbody: setRule(cellConfig.tbody) };
|
|
1303
|
-
},
|
|
1304
|
-
|
|
1305
|
-
this.
|
|
1415
|
+
}, /* @ts-ignore */
|
|
1416
|
+
...(ngDevMode ? [{ debugName: "cellConfigSignal" }] : /* istanbul ignore next */ []));
|
|
1417
|
+
this.tbodyHeight = signal(0, /* @ts-ignore */
|
|
1418
|
+
...(ngDevMode ? [{ debugName: "tbodyHeight" }] : /* istanbul ignore next */ []));
|
|
1419
|
+
this.tbodyScrollHeight = signal(0, /* @ts-ignore */
|
|
1420
|
+
...(ngDevMode ? [{ debugName: "tbodyScrollHeight" }] : /* istanbul ignore next */ []));
|
|
1306
1421
|
}
|
|
1307
1422
|
ngOnInit() {
|
|
1308
1423
|
this.setRowChecked();
|
|
@@ -1549,15 +1664,15 @@ class XTableComponent extends XTableProperty {
|
|
|
1549
1664
|
this.footCom()?.cdr.markForCheck();
|
|
1550
1665
|
this.cdr.markForCheck();
|
|
1551
1666
|
}
|
|
1552
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1553
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
1667
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.1", ngImport: i0, type: XTableComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
1668
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.1", type: XTableComponent, isStandalone: true, selector: "x-table", providers: [
|
|
1554
1669
|
{
|
|
1555
1670
|
provide: X_TABLE_CONTEXT,
|
|
1556
1671
|
useExisting: XTableComponent
|
|
1557
1672
|
}
|
|
1558
1673
|
], viewQueries: [{ propertyName: "table", first: true, predicate: ["table"], descendants: true, isSignal: true }, { propertyName: "caption", first: true, predicate: ["caption"], descendants: true, isSignal: true }, { propertyName: "pagination", first: true, predicate: ["pagination"], descendants: true, isSignal: true }, { propertyName: "stickyTopRightEle", first: true, predicate: ["stickyTopRightEle"], descendants: true, isSignal: true }, { propertyName: "stickyBottomRightEle", first: true, predicate: ["stickyBottomRightEle"], descendants: true, isSignal: true }, { propertyName: "headCom", predicate: XTableHeadComponent, descendants: true, isSignal: true }, { propertyName: "bodyCom", predicate: XTableBodyComponent, descendants: true, isSignal: true }, { propertyName: "footCom", first: true, predicate: XTableFootComponent, descendants: true, isSignal: true }], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "<table\r\n #table\r\n class=\"x-table\"\r\n [ngClass]=\"classMap()\"\r\n [x-loading]=\"loading() && getting()\"\r\n [class.x-table-wrapper-border-hidden]=\"hiddenWrapBorder()\"\r\n [class.x-table-scroll-left]=\"getScrollLeft()\"\r\n [class.x-table-scroll-left-max]=\"scrollLeftMax()\"\r\n [class.x-table-scroll-top]=\"getScrollTop()\"\r\n [class.x-table-has-scroll-right]=\"scrollYWidth()\"\r\n [class.x-table-has-scroll-bottom]=\"scrollXWidth()\"\r\n [class.x-table-bordered]=\"bordered()\"\r\n [class.x-table-td-adaption-height]=\"rowHeight() == 0\"\r\n [class.x-table-cell-config]=\"!!cellConfigSignal()\"\r\n [class.x-table-last-tr-bordered]=\"!!adaptionHeight() || tbodyHeight() >= tbodyScrollHeight()\"\r\n>\r\n @if (header()) {\r\n <caption #caption class=\"x-table-header\" [style.height.px]=\"getRowHeight()\" [style.min-height.px]=\"getRowHeight()\">\r\n <ng-container *xOutlet=\"header()\">{{ header() }}</ng-container>\r\n </caption>\r\n }\r\n @if (showHeader() && (headerPosition() === 'top' || headerPosition() === 'top-bottom')) {\r\n <x-table-head\r\n [columns]=\"columns()\"\r\n [rowHeight]=\"rowHeight()\"\r\n [headerHeight]=\"headerHeight()!\"\r\n [columnTpl]=\"headColumnTpl()\"\r\n [scrollYWidth]=\"scrollYWidth()\"\r\n [scrollXWidth]=\"scrollXWidth()!\"\r\n [cellConfig]=\"cellConfigSignal()?.thead\"\r\n [position]=\"'top'\"\r\n ></x-table-head>\r\n }\r\n <x-table-body\r\n [data]=\"treeTable() ? treeTableData() : tableData()\"\r\n [columns]=\"columns()\"\r\n [itemSize]=\"itemSize()\"\r\n [rowHeight]=\"rowHeight()\"\r\n [bodyHeight]=\"bodyHeight()!\"\r\n [columnTpl]=\"bodyColumnTpl()\"\r\n [allowSelectRow]=\"allowSelectRow()\"\r\n [virtualScroll]=\"virtualScroll()\"\r\n [minBufferPx]=\"minBufferPx()\"\r\n [maxBufferPx]=\"maxBufferPx()\"\r\n [adaptionHeight]=\"adaptionHeight()!\"\r\n [docPercent]=\"docPercent()\"\r\n [scroll]=\"scroll()\"\r\n [rowClass]=\"rowClass()\"\r\n [cellConfig]=\"cellConfigSignal()?.tbody\"\r\n [expandedAll]=\"expandedAll()\"\r\n [expandTpl]=\"expandTpl()\"\r\n [(activatedRow)]=\"activatedRow\"\r\n (rowClick)=\"rowClick.emit($event)\"\r\n ></x-table-body>\r\n @if (showHeader() && (headerPosition() === 'bottom' || headerPosition() === 'top-bottom')) {\r\n <x-table-head\r\n [columns]=\"columns()\"\r\n [rowHeight]=\"rowHeight()\"\r\n [headerHeight]=\"headerHeight()!\"\r\n [columnTpl]=\"headColumnTpl()\"\r\n [scrollYWidth]=\"scrollYWidth()\"\r\n [scrollXWidth]=\"scrollXWidth()!\"\r\n [cellConfig]=\"cellConfigSignal()?.thead\"\r\n [position]=\"'bottom'\"\r\n ></x-table-head>\r\n }\r\n @if (footer()) {\r\n <x-table-foot [footer]=\"footer()\" [rowHeight]=\"rowHeight()\"></x-table-foot>\r\n }\r\n @if (hasStickyTopRight()) {\r\n <div\r\n #stickyTopRightEle\r\n class=\"x-table-sticky-right-scroll\"\r\n [class.x-table-border-bottom]=\"headSearchTpl()\"\r\n [style.top.px]=\"getStickyTopScrollTop()\"\r\n [style.width.px]=\"scrollYWidth()\"\r\n [style.height.px]=\"getRowHeight()\"\r\n [style.min-height.px]=\"getRowHeight()\"\r\n ></div>\r\n }\r\n @if (hasStickyTopRight() && headSearchTpl()) {\r\n <div\r\n class=\"x-table-sticky-right-scroll\"\r\n [style.top.px]=\"getStickyTopScrollTop() + getStickyTopRightEleHeight()\"\r\n [style.width.px]=\"scrollYWidth()\"\r\n [style.height.px]=\"getRowHeight()\"\r\n [style.min-height.px]=\"getRowHeight()\"\r\n ></div>\r\n }\r\n @if (hasStickyBottomRight()) {\r\n <div\r\n #stickyBottomRightEle\r\n class=\"x-table-sticky-right-scroll\"\r\n [style.bottom.px]=\"getStickyBottomScrollTop()\"\r\n [style.width.px]=\"scrollYWidth()\"\r\n [style.height.px]=\"getRowHeight()\"\r\n [style.min-height.px]=\"getRowHeight()\"\r\n ></div>\r\n }\r\n @if (hasStickyBottomRight() && headSearchTpl()) {\r\n <div\r\n class=\"x-table-sticky-right-scroll\"\r\n [class.x-table-border-bottom]=\"headSearchTpl()\"\r\n [style.bottom.px]=\"getStickyBottomScrollTop() + getStickyBottomRightEleHeight()\"\r\n [style.width.px]=\"scrollYWidth()\"\r\n [style.height.px]=\"getRowHeight()\"\r\n [style.min-height.px]=\"getRowHeight()\"\r\n ></div>\r\n }\r\n</table>\r\n@if (showPagination() && size()) {\r\n <x-pagination\r\n #pagination\r\n [(index)]=\"index\"\r\n [(size)]=\"size\"\r\n [(query)]=\"query\"\r\n [total]=\"total()\"\r\n (indexChange)=\"pageChange('index')\"\r\n (sizeChange)=\"pageChange('size')\"\r\n [showEllipsis]=\"showEllipsis()\"\r\n [showTotal]=\"showTotal()\"\r\n [space]=\"space()\"\r\n [showBackground]=\"showBackground()\"\r\n [showSize]=\"showSize()\"\r\n [showJump]=\"showJump()\"\r\n [jumpWidth]=\"jumpWidth()\"\r\n [showInputSize]=\"showInputSize()\"\r\n [inputSizeWidth]=\"inputSizeWidth()\"\r\n [sizeData]=\"sizeData()\"\r\n [sizeWidth]=\"sizeWidth()\"\r\n [pageLinkSize]=\"pageLinkSize()\"\r\n [disabled]=\"disabled()\"\r\n [totalTpl]=\"totalTpl()\"\r\n [simple]=\"simple()\"\r\n [simpleIndexWidth]=\"simpleIndexWidth()\"\r\n [jumpTooltipText]=\"jumpTooltipText()\"\r\n [showJumpTooltipText]=\"showJumpTooltipText()\"\r\n [inputSizeTooltipText]=\"inputSizeTooltipText()\"\r\n [showInputSizeTooltipText]=\"showInputSizeTooltipText()\"\r\n [inputIndexSizeSureType]=\"inputIndexSizeSureType()\"\r\n >\r\n </x-pagination>\r\n}\r\n", styles: [".x-table{margin:0;padding:0}.x-table{display:flex;flex-direction:column;border-collapse:collapse;width:100%;position:relative}.x-table:not(.x-table-wrapper-border-hidden){border:var(--x-border-width) var(--x-border-style) var(--x-border)}.x-table>thead{position:relative;overflow:hidden;display:block;min-height:42px}.x-table>thead>tr{width:100%;display:flex;min-height:42px}.x-table>thead>tr>th{display:flex;align-items:center;flex:1;position:relative;font-weight:600;background-color:var(--x-background);border-bottom:var(--x-border-width) var(--x-border-style) var(--x-border)}.x-table>thead>tr>th>a{display:inline-flex;align-items:center;color:var(--x-text-300);overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.x-table>thead>tr>th.x-table-sticky{position:sticky;z-index:5}.x-table>thead>tr>th .x-table-drag-width{position:absolute;height:100%;width:.1875rem;right:-.125rem;cursor:ew-resize;transition:background-color var(--x-animation-duration-fast);z-index:1}.x-table>thead>tr>th .x-table-drag-width:hover{background-color:var(--x-primary)}.x-table>thead>tr.cdk-drop-list-dragging>th.cdk-drag-placeholder{background-color:var(--x-background-a200);opacity:.9}.x-table>thead.x-table-head-bottom>tr>th{border-top:var(--x-border-width) var(--x-border-style) var(--x-border);border-bottom:none}.x-table>thead.x-table-head-bottom>tr.x-table-search>th{border-top:var(--x-border-width) var(--x-border-style) var(--x-border)}.x-table>tbody{display:block;border-top:none;position:relative;min-height:7rem}.x-table>tbody tr{display:flex}.x-table>tbody tr>td{display:flex;align-items:center;position:relative;justify-content:space-between;overflow:hidden;background-color:var(--x-background);border-bottom:var(--x-border-width) var(--x-border-style) var(--x-border)}.x-table>tbody tr>td>div{flex:1;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.x-table>tbody tr>td.x-table-sticky{position:sticky;z-index:5}.x-table>tbody tr>td>x-button .x-icon{transition:var(--x-animation-duration-base)}.x-table>tbody tr>td>x-button.is-leaf{visibility:hidden}.x-table>tbody tr>td>x-button.is-expanded .x-icon{transform:rotate(90deg)}.x-table>tbody tr>td.x-table-dragging{background-color:var(--x-background-a200);opacity:.9}.x-table>tbody tr.x-table-activated>td{background-color:var(--x-primary-900)}.x-table>tbody tr:hover:not(.x-table-activated)>td{background-color:var(--x-background-a100)}.x-table>tbody tr:last-child>td{border-bottom:none}.x-table>tbody x-empty{position:absolute;top:0;width:100%;padding:calc(var(--x-font-size) * 2)}.x-table-sort{cursor:pointer;transition:transform .2s}.x-table-sort:hover{color:var(--x-text-300)}.x-table-sort:active{transform:translate(1px,1px)}.x-table-sort-icon.x-icon{margin-left:.25rem;display:none;font-size:1rem;transform:rotate(90deg) rotateY(180deg);transition:.3s}.x-table-sort-icon.x-icon.x-table-icon-up,.x-table-sort-icon.x-icon.x-table-icon-down{display:inherit}.x-table-sort-icon.x-icon.x-table-icon-down{transform:rotate(90deg)}.x-table-scroll-top>tbody:before{position:absolute;box-shadow:inset 0 10px 8px -8px #00000026;top:-1px;right:0;height:30px;width:100%;transition:box-shadow .3s;content:\"\";pointer-events:none;z-index:10}.x-table-scroll-left .x-table-sticky-left-last:after{position:absolute;box-shadow:inset 10px 0 8px -8px #00000026;top:0;right:0;bottom:-1px;width:30px;transform:translate(100%);transition:box-shadow .3s;content:\"\";pointer-events:none}.x-table-td-adaption-height>tbody tr>td{overflow:inherit}.x-table-td-adaption-height>tbody tr>td>div{white-space:inherit;text-overflow:inherit;overflow:inherit}.x-table-bordered>thead>tr>th,.x-table-bordered>tbody tr>td{border-right:var(--x-border-width) var(--x-border-style) var(--x-border);padding-left:calc(var(--x-font-size) / 2)}.x-table-bordered>thead>tr>th:last-child,.x-table-bordered>tbody tr>td:last-child{border-right:none}.x-table-cell-config>thead tr,.x-table-cell-config>tbody tr{display:grid;grid-auto-flow:row;height:100%}.x-table-cell-config>thead>tr>th,.x-table-cell-config>tbody tr>td{border-right:var(--x-border-width) var(--x-border-style) var(--x-border)}.x-table-cell-config>thead>tr>th:last-child,.x-table-cell-config>tbody tr>td:last-child{border-right:none}.x-table-expand{margin-right:.5rem}.x-table-expandTpl>tr{display:block!important;height:inherit!important}.x-table-header{border-bottom:var(--x-border-width) var(--x-border-style) var(--x-border);text-align:left;display:flex;align-items:center}.x-table-footer{display:flex;align-items:center;border-top:var(--x-border-width) var(--x-border-style) var(--x-border)}.x-table-sticky-right-scroll{position:absolute;right:0;min-height:42px;background-color:var(--x-background);z-index:1}.x-table-has-scroll-right .x-table-footer{border-top:var(--x-border-width) var(--x-border-style) var(--x-border)}.x-table-has-scroll-bottom:not(.x-table-scroll-left-max) .x-table-sticky-right-first:after{box-shadow:inset -10px 0 8px -8px #00000026;position:absolute;top:0;bottom:-1px;left:0;width:30px;transform:translate(-100%);transition:box-shadow .3s;content:\"\";pointer-events:none}.x-table-border-bottom{border-bottom:var(--x-border-width) var(--x-border-style) var(--x-border)}.x-table-border-top{border-top:var(--x-border-width) var(--x-border-style) var(--x-border)}.x-table-last-tr-bordered>tbody tr:last-child>td{border-bottom:var(--x-border-width) var(--x-border-style) var(--x-border)}.x-table-row-size-big>thead>tr>th,.x-table-row-size-big>tbody tr>td{padding:calc(var(--x-font-size) / 5 * 4) calc(var(--x-font-size) * 5 / 4) calc(var(--x-font-size) / 5 * 4) calc(var(--x-font-size) * 5 / 4)}.x-table-row-size-big .x-table-header,.x-table-row-size-big .x-table-footer{padding:calc(var(--x-font-size) / 5 * 4) calc(var(--x-font-size) * 5 / 4) calc(var(--x-font-size) / 5 * 4) calc(var(--x-font-size) * 5 / 4)}.x-table-row-size-large>thead>tr>th,.x-table-row-size-large>tbody tr>td{padding:calc(var(--x-font-size) / 4 * 3) calc(var(--x-font-size) * 4 / 3) calc(var(--x-font-size) / 4 * 3) calc(var(--x-font-size) * 4 / 3)}.x-table-row-size-large .x-table-header,.x-table-row-size-large .x-table-footer{padding:calc(var(--x-font-size) / 4 * 3) calc(var(--x-font-size) * 4 / 3) calc(var(--x-font-size) / 4 * 3) calc(var(--x-font-size) * 4 / 3)}.x-table-row-size-medium>thead>tr>th,.x-table-row-size-medium>tbody tr>td{padding:calc(var(--x-font-size) / 2) var(--x-font-size) calc(var(--x-font-size) / 2) var(--x-font-size)}.x-table-row-size-medium .x-table-header,.x-table-row-size-medium .x-table-footer{padding:calc(var(--x-font-size) / 2) var(--x-font-size) calc(var(--x-font-size) / 2) var(--x-font-size)}.x-table-row-size-small>thead>tr>th,.x-table-row-size-small>tbody tr>td{padding:calc(var(--x-font-size) / 3) calc(var(--x-font-size) * 2 / 3) calc(var(--x-font-size) / 3) calc(var(--x-font-size) * 2 / 3)}.x-table-row-size-small .x-table-header,.x-table-row-size-small .x-table-footer{padding:calc(var(--x-font-size) / 3) calc(var(--x-font-size) * 2 / 3) calc(var(--x-font-size) / 3) calc(var(--x-font-size) * 2 / 3)}.x-table-row-size-mini>thead>tr>th,.x-table-row-size-mini>tbody tr>td{padding:calc(var(--x-font-size) / 4) calc(var(--x-font-size) / 2) calc(var(--x-font-size) / 4) calc(var(--x-font-size) / 2)}.x-table-row-size-mini .x-table-header,.x-table-row-size-mini .x-table-footer{padding:calc(var(--x-font-size) / 4) calc(var(--x-font-size) / 2) calc(var(--x-font-size) / 4) calc(var(--x-font-size) / 2)}x-table{width:100%;display:flex;flex-direction:column}x-table .x-pagination{padding-top:calc(var(--x-font-size) / 2)}x-table.x-table-top-left{flex-direction:column-reverse}x-table.x-table-top-left .x-pagination{padding-top:0;padding-bottom:calc(var(--x-font-size) / 2)}x-table.x-table-top-center{flex-direction:column-reverse;align-items:center}x-table.x-table-top-center .x-pagination{padding-top:0;padding-bottom:calc(var(--x-font-size) / 2)}x-table.x-table-top-right{flex-direction:column-reverse;align-items:flex-end}x-table.x-table-top-right .x-pagination{padding-top:0;padding-bottom:calc(var(--x-font-size) / 2)}x-table.x-table-bottom-center{align-items:center}x-table.x-table-bottom-right{align-items:flex-end}body>.x-table-th{display:block;overflow:hidden}body>.x-table-th-big{padding:calc(var(--x-font-size) / 5 * 4) calc(var(--x-font-size) * 5 / 4) calc(var(--x-font-size) / 5 * 4) calc(var(--x-font-size) * 5 / 4)}body>.x-table-th-large{padding:calc(var(--x-font-size) / 4 * 3) calc(var(--x-font-size) * 4 / 3) calc(var(--x-font-size) / 4 * 3) calc(var(--x-font-size) * 4 / 3)}body>.x-table-th-medium{padding:calc(var(--x-font-size) / 2) var(--x-font-size) calc(var(--x-font-size) / 2) var(--x-font-size)}body>.x-table-th-small{padding:calc(var(--x-font-size) / 3) calc(var(--x-font-size) * 2 / 3) calc(var(--x-font-size) / 3) calc(var(--x-font-size) * 2 / 3)}body>.x-table-th-mini{padding:calc(var(--x-font-size) / 4) calc(var(--x-font-size) / 2) calc(var(--x-font-size) / 4) calc(var(--x-font-size) / 2)}body>.x-table-th.cdk-drag-preview{display:flex;align-items:center;border:var(--x-border-width) var(--x-border-style) var(--x-border);border-style:dashed;background-color:var(--x-background);opacity:.8;box-shadow:var(--x-box-shadow)}body>.x-table-th.cdk-drag-preview>a{display:inline-flex;align-items:center;color:var(--x-text-300);overflow:hidden;white-space:nowrap;text-overflow:ellipsis}body>.x-table-th.cdk-drag-animating{transition:transform var(--x-animation-duration-base) cubic-bezier(0,0,.2,1)}\n"], dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: XOutletDirective, selector: "[xOutlet]", inputs: ["xOutletContext", "xOutlet"] }, { kind: "component", type: XLoadingComponent, selector: "x-loading, [x-loading]" }, { kind: "component", type: XTableHeadComponent, selector: "x-table-head" }, { kind: "component", type: XTableFootComponent, selector: "x-table-foot" }, { kind: "component", type: XTableBodyComponent, selector: "x-table-body" }, { kind: "component", type: XPaginationComponent, selector: "x-pagination" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
1559
1674
|
}
|
|
1560
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1675
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.1", ngImport: i0, type: XTableComponent, decorators: [{
|
|
1561
1676
|
type: Component,
|
|
1562
1677
|
args: [{ selector: `${XTablePrefix}`, imports: [
|
|
1563
1678
|
NgClass,
|
|
@@ -1576,11 +1691,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImpor
|
|
|
1576
1691
|
}], propDecorators: { table: [{ type: i0.ViewChild, args: ['table', { isSignal: true }] }], caption: [{ type: i0.ViewChild, args: ['caption', { isSignal: true }] }], pagination: [{ type: i0.ViewChild, args: ['pagination', { isSignal: true }] }], stickyTopRightEle: [{ type: i0.ViewChild, args: ['stickyTopRightEle', { isSignal: true }] }], stickyBottomRightEle: [{ type: i0.ViewChild, args: ['stickyBottomRightEle', { isSignal: true }] }], headCom: [{ type: i0.ViewChildren, args: [i0.forwardRef(() => XTableHeadComponent), { isSignal: true }] }], bodyCom: [{ type: i0.ViewChildren, args: [i0.forwardRef(() => XTableBodyComponent), { isSignal: true }] }], footCom: [{ type: i0.ViewChild, args: [i0.forwardRef(() => XTableFootComponent), { isSignal: true }] }] } });
|
|
1577
1692
|
|
|
1578
1693
|
class XTableModule {
|
|
1579
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1580
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
1581
|
-
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
1694
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.1", ngImport: i0, type: XTableModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1695
|
+
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.0.1", ngImport: i0, type: XTableModule, imports: [XTableComponent, XTableHeadComponent, XTableBodyComponent, XTableFootComponent], exports: [XTableComponent] }); }
|
|
1696
|
+
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.0.1", ngImport: i0, type: XTableModule, imports: [XTableComponent, XTableHeadComponent, XTableBodyComponent] }); }
|
|
1582
1697
|
}
|
|
1583
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1698
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.1", ngImport: i0, type: XTableModule, decorators: [{
|
|
1584
1699
|
type: NgModule,
|
|
1585
1700
|
args: [{
|
|
1586
1701
|
exports: [XTableComponent],
|