@ng-nest/ui 20.0.7 → 20.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/auto-complete/index.d.ts +33 -8
- package/base-form/index.d.ts +3 -3
- package/calendar/index.d.ts +1 -2
- package/cascade/index.d.ts +33 -8
- package/checkbox/index.d.ts +3 -3
- package/color-picker/index.d.ts +34 -8
- package/core/index.d.ts +40 -8
- package/date-picker/index.d.ts +57 -12
- package/dropdown/index.d.ts +4 -4
- package/fesm2022/ng-nest-ui-affix.mjs +12 -12
- package/fesm2022/ng-nest-ui-affix.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-alert.mjs +35 -35
- package/fesm2022/ng-nest-ui-alert.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-anchor.mjs +31 -31
- package/fesm2022/ng-nest-ui-anchor.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-api.mjs +7 -7
- package/fesm2022/ng-nest-ui-api.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-auto-complete.mjs +82 -72
- package/fesm2022/ng-nest-ui-auto-complete.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-avatar.mjs +31 -31
- package/fesm2022/ng-nest-ui-avatar.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-back-top.mjs +18 -18
- package/fesm2022/ng-nest-ui-back-top.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-badge.mjs +23 -23
- package/fesm2022/ng-nest-ui-badge.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-base-form.mjs +45 -45
- package/fesm2022/ng-nest-ui-base-form.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-button.mjs +42 -42
- package/fesm2022/ng-nest-ui-button.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-calendar.mjs +20 -20
- package/fesm2022/ng-nest-ui-calendar.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-card.mjs +15 -15
- package/fesm2022/ng-nest-ui-card.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-carousel.mjs +46 -46
- package/fesm2022/ng-nest-ui-carousel.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-cascade.mjs +86 -76
- package/fesm2022/ng-nest-ui-cascade.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-checkbox.mjs +39 -39
- package/fesm2022/ng-nest-ui-checkbox.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-collapse.mjs +31 -31
- package/fesm2022/ng-nest-ui-collapse.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-color-picker.mjs +91 -72
- package/fesm2022/ng-nest-ui-color-picker.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-color.mjs +16 -16
- package/fesm2022/ng-nest-ui-color.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-comment.mjs +21 -21
- package/fesm2022/ng-nest-ui-comment.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-container.mjs +37 -37
- package/fesm2022/ng-nest-ui-container.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-core.mjs +38 -22
- package/fesm2022/ng-nest-ui-core.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-crumb.mjs +13 -13
- package/fesm2022/ng-nest-ui-crumb.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-date-picker.mjs +273 -253
- package/fesm2022/ng-nest-ui-date-picker.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-description.mjs +31 -31
- package/fesm2022/ng-nest-ui-description.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-dialog.mjs +81 -81
- package/fesm2022/ng-nest-ui-dialog.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-doc.mjs +7 -7
- package/fesm2022/ng-nest-ui-doc.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-drag.mjs +10 -10
- package/fesm2022/ng-nest-ui-drag.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-drawer.mjs +42 -42
- package/fesm2022/ng-nest-ui-drawer.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-dropdown.mjs +49 -49
- package/fesm2022/ng-nest-ui-dropdown.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-empty.mjs +12 -12
- package/fesm2022/ng-nest-ui-empty.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-examples.mjs +7 -7
- package/fesm2022/ng-nest-ui-examples.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-find.mjs +79 -77
- package/fesm2022/ng-nest-ui-find.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-form.mjs +33 -33
- package/fesm2022/ng-nest-ui-form.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-highlight.mjs +20 -20
- package/fesm2022/ng-nest-ui-highlight.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-i18n.mjs +15 -15
- package/fesm2022/ng-nest-ui-i18n.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-icon.mjs +21 -21
- package/fesm2022/ng-nest-ui-icon.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-image.mjs +39 -39
- package/fesm2022/ng-nest-ui-image.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-inner.mjs +11 -11
- package/fesm2022/ng-nest-ui-inner.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-input-number.mjs +42 -42
- package/fesm2022/ng-nest-ui-input-number.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-input.mjs +102 -81
- package/fesm2022/ng-nest-ui-input.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-keyword.mjs +15 -15
- package/fesm2022/ng-nest-ui-keyword.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-layout.mjs +31 -31
- package/fesm2022/ng-nest-ui-layout.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-link.mjs +18 -18
- package/fesm2022/ng-nest-ui-link.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-list.mjs +80 -80
- package/fesm2022/ng-nest-ui-list.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-loading.mjs +22 -22
- package/fesm2022/ng-nest-ui-loading.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-menu.mjs +45 -45
- package/fesm2022/ng-nest-ui-menu.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-message-box.mjs +10 -10
- package/fesm2022/ng-nest-ui-message-box.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-message.mjs +10 -10
- package/fesm2022/ng-nest-ui-message.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-notification.mjs +10 -10
- package/fesm2022/ng-nest-ui-notification.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-outlet.mjs +9 -9
- package/fesm2022/ng-nest-ui-outlet.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-page-header.mjs +15 -15
- package/fesm2022/ng-nest-ui-page-header.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-pagination.mjs +53 -53
- package/fesm2022/ng-nest-ui-pagination.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-pattern.mjs +7 -7
- package/fesm2022/ng-nest-ui-pattern.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-popconfirm.mjs +27 -27
- package/fesm2022/ng-nest-ui-popconfirm.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-popover.mjs +38 -38
- package/fesm2022/ng-nest-ui-popover.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-portal.mjs +7 -7
- package/fesm2022/ng-nest-ui-portal.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-progress.mjs +38 -38
- package/fesm2022/ng-nest-ui-progress.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-radio.mjs +36 -36
- package/fesm2022/ng-nest-ui-radio.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-rate.mjs +30 -30
- package/fesm2022/ng-nest-ui-rate.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-resizable.mjs +16 -16
- package/fesm2022/ng-nest-ui-resizable.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-result.mjs +16 -16
- package/fesm2022/ng-nest-ui-result.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-ripple.mjs +13 -13
- package/fesm2022/ng-nest-ui-ripple.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-scrollable.mjs +102 -19
- package/fesm2022/ng-nest-ui-scrollable.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-select.mjs +121 -111
- package/fesm2022/ng-nest-ui-select.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-skeleton.mjs +15 -15
- package/fesm2022/ng-nest-ui-skeleton.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-slider-select.mjs +54 -54
- package/fesm2022/ng-nest-ui-slider-select.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-slider.mjs +39 -39
- package/fesm2022/ng-nest-ui-slider.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-statistic.mjs +30 -30
- package/fesm2022/ng-nest-ui-statistic.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-steps.mjs +19 -19
- package/fesm2022/ng-nest-ui-steps.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-switch.mjs +26 -26
- package/fesm2022/ng-nest-ui-switch.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-table-view.mjs +490 -242
- package/fesm2022/ng-nest-ui-table-view.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-table.mjs +221 -221
- package/fesm2022/ng-nest-ui-table.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-tabs.mjs +58 -58
- package/fesm2022/ng-nest-ui-tabs.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-tag.mjs +22 -22
- package/fesm2022/ng-nest-ui-tag.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-text-retract.mjs +15 -15
- package/fesm2022/ng-nest-ui-text-retract.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-textarea.mjs +41 -41
- package/fesm2022/ng-nest-ui-textarea.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-theme.mjs +23 -23
- package/fesm2022/ng-nest-ui-theme.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-time-ago.mjs +7 -7
- package/fesm2022/ng-nest-ui-time-ago.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-time-picker.mjs +104 -94
- package/fesm2022/ng-nest-ui-time-picker.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-time-range.mjs +7 -7
- package/fesm2022/ng-nest-ui-time-range.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-timeline.mjs +15 -15
- package/fesm2022/ng-nest-ui-timeline.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-tooltip.mjs +38 -38
- package/fesm2022/ng-nest-ui-tooltip.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-transfer.mjs +40 -40
- package/fesm2022/ng-nest-ui-transfer.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-tree-file.mjs +28 -28
- package/fesm2022/ng-nest-ui-tree-file.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-tree-select.mjs +126 -116
- package/fesm2022/ng-nest-ui-tree-select.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-tree.mjs +107 -107
- package/fesm2022/ng-nest-ui-tree.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-typography.mjs +13 -13
- package/fesm2022/ng-nest-ui-typography.mjs.map +1 -1
- package/fesm2022/ng-nest-ui-upload.mjs +37 -37
- package/fesm2022/ng-nest-ui-upload.mjs.map +1 -1
- package/find/index.d.ts +5 -5
- package/form/index.d.ts +1 -1
- package/input/index.d.ts +32 -5
- package/input-number/index.d.ts +5 -5
- package/list/index.d.ts +2 -2
- package/message-box/index.d.ts +4 -5
- package/package.json +20 -20
- package/radio/index.d.ts +3 -3
- package/rate/index.d.ts +5 -5
- package/scrollable/index.d.ts +15 -7
- package/select/index.d.ts +38 -8
- package/slider-select/index.d.ts +3 -3
- package/steps/index.d.ts +1 -2
- package/switch/index.d.ts +3 -3
- package/table-view/index.d.ts +121 -79
- package/textarea/index.d.ts +3 -3
- package/theme/index.d.ts +1 -1
- package/time-picker/index.d.ts +33 -8
- package/transfer/index.d.ts +1 -1
- package/tree-select/index.d.ts +33 -8
- package/upload/index.d.ts +2 -2
|
@@ -37,77 +37,77 @@ class XTableProperty extends XPropertyFunction(X_TABLE_CONFIG_NAME) {
|
|
|
37
37
|
* @zh_CN 行数据
|
|
38
38
|
* @en_US Row data
|
|
39
39
|
*/
|
|
40
|
-
this.data = input([], { transform: XToDataConvert });
|
|
40
|
+
this.data = input([], ...(ngDevMode ? [{ debugName: "data", transform: XToDataConvert }] : [{ transform: XToDataConvert }]));
|
|
41
41
|
/**
|
|
42
42
|
* @zh_CN 列集合
|
|
43
43
|
* @en_US Column set
|
|
44
44
|
*/
|
|
45
|
-
this.columns = input([]);
|
|
45
|
+
this.columns = input([], ...(ngDevMode ? [{ debugName: "columns" }] : []));
|
|
46
46
|
/**
|
|
47
47
|
* @zh_CN 表头和行高,单位 px
|
|
48
48
|
* @en_US Header and row height, unit px
|
|
49
49
|
*/
|
|
50
|
-
this.rowHeight = input(this.config?.rowHeight ?? 42, { transform: XToNumber });
|
|
50
|
+
this.rowHeight = input(this.config?.rowHeight ?? 42, ...(ngDevMode ? [{ debugName: "rowHeight", transform: XToNumber }] : [{ transform: XToNumber }]));
|
|
51
51
|
/**
|
|
52
52
|
* @zh_CN 是否启用加载 loading
|
|
53
53
|
* @en_US Whether to enable loading
|
|
54
54
|
*/
|
|
55
|
-
this.loading = input(this.config?.loading ?? false, { transform: XToBoolean });
|
|
55
|
+
this.loading = input(this.config?.loading ?? false, ...(ngDevMode ? [{ debugName: "loading", transform: XToBoolean }] : [{ transform: XToBoolean }]));
|
|
56
56
|
/**
|
|
57
57
|
* @zh_CN 是否展示列边框
|
|
58
58
|
* @en_US Whether to show column borders
|
|
59
59
|
*/
|
|
60
|
-
this.bordered = input(this.config?.bordered ?? false, { transform: XToBoolean });
|
|
60
|
+
this.bordered = input(this.config?.bordered ?? false, ...(ngDevMode ? [{ debugName: "bordered", transform: XToBoolean }] : [{ transform: XToBoolean }]));
|
|
61
61
|
/**
|
|
62
62
|
* @zh_CN 是否显示列头
|
|
63
63
|
* @en_US Whether to display the column headers
|
|
64
64
|
*/
|
|
65
|
-
this.showHeader = input(this.config?.showHeader ?? true, { transform: XToBoolean });
|
|
65
|
+
this.showHeader = input(this.config?.showHeader ?? true, ...(ngDevMode ? [{ debugName: "showHeader", transform: XToBoolean }] : [{ transform: XToBoolean }]));
|
|
66
66
|
/**
|
|
67
67
|
* @zh_CN 列头显示位置
|
|
68
68
|
* @en_US Whether to display the column headers
|
|
69
69
|
*/
|
|
70
|
-
this.headerPosition = input(this.config?.headerPosition ?? 'top');
|
|
70
|
+
this.headerPosition = input(this.config?.headerPosition ?? 'top', ...(ngDevMode ? [{ debugName: "headerPosition" }] : []));
|
|
71
71
|
/**
|
|
72
72
|
* @zh_CN 列内容支持 innerHTML 渲染 html 标签
|
|
73
73
|
* @en_US Column content supports innerHTML rendering of HTML tags
|
|
74
74
|
*/
|
|
75
|
-
this.bodyInnerHTML = input(this.config?.bodyInnerHTML ?? false, { transform: XToBoolean });
|
|
75
|
+
this.bodyInnerHTML = input(this.config?.bodyInnerHTML ?? false, ...(ngDevMode ? [{ debugName: "bodyInnerHTML", transform: XToBoolean }] : [{ transform: XToBoolean }]));
|
|
76
76
|
/**
|
|
77
77
|
* @zh_CN 当前选中行数据
|
|
78
78
|
* @en_US Currently selected row data
|
|
79
79
|
*/
|
|
80
|
-
this.activatedRow = model();
|
|
80
|
+
this.activatedRow = model(...(ngDevMode ? [undefined, { debugName: "activatedRow" }] : []));
|
|
81
81
|
/**
|
|
82
82
|
* @zh_CN 列头自定义模板,通过 key-value 的方式指定每列的模版
|
|
83
83
|
* @en_US Column header custom template
|
|
84
84
|
*/
|
|
85
|
-
this.headColumnTpl = input({});
|
|
85
|
+
this.headColumnTpl = input({}, ...(ngDevMode ? [{ debugName: "headColumnTpl" }] : []));
|
|
86
86
|
/**
|
|
87
87
|
* @zh_CN 列头单元格自定义模板,优先级低于列头自定义模板
|
|
88
88
|
* @en_US Column header custom template
|
|
89
89
|
*/
|
|
90
|
-
this.headThTpl = input();
|
|
90
|
+
this.headThTpl = input(...(ngDevMode ? [undefined, { debugName: "headThTpl" }] : []));
|
|
91
91
|
/**
|
|
92
92
|
* @zh_CN 列内容自定义模板,通过 key-value 的方式指定每列的模版
|
|
93
93
|
* @en_US Column content custom template
|
|
94
94
|
*/
|
|
95
|
-
this.bodyColumnTpl = input({});
|
|
95
|
+
this.bodyColumnTpl = input({}, ...(ngDevMode ? [{ debugName: "bodyColumnTpl" }] : []));
|
|
96
96
|
/**
|
|
97
97
|
* @zh_CN 单元格的自定义模板,优先级低于列内容自定义模板
|
|
98
98
|
* @en_US Custom template of cells
|
|
99
99
|
*/
|
|
100
|
-
this.bodyTdTpl = input();
|
|
100
|
+
this.bodyTdTpl = input(...(ngDevMode ? [undefined, { debugName: "bodyTdTpl" }] : []));
|
|
101
101
|
/**
|
|
102
102
|
* @zh_CN 行条件样式
|
|
103
103
|
* @en_US Row condition class
|
|
104
104
|
*/
|
|
105
|
-
this.rowClass = input();
|
|
105
|
+
this.rowClass = input(...(ngDevMode ? [undefined, { debugName: "rowClass" }] : []));
|
|
106
106
|
/**
|
|
107
107
|
* @zh_CN 列头搜索自定义模板
|
|
108
108
|
* @en_US Line head search custom template
|
|
109
109
|
*/
|
|
110
|
-
this.headSearchTpl = input();
|
|
110
|
+
this.headSearchTpl = input(...(ngDevMode ? [undefined, { debugName: "headSearchTpl" }] : []));
|
|
111
111
|
/**
|
|
112
112
|
* @zh_CN 排序点击的事件
|
|
113
113
|
* @en_US Sort click events
|
|
@@ -127,295 +127,295 @@ class XTableProperty extends XPropertyFunction(X_TABLE_CONFIG_NAME) {
|
|
|
127
127
|
* @zh_CN 允许行点击选中当前行
|
|
128
128
|
* @en_US Allow row click to select
|
|
129
129
|
*/
|
|
130
|
-
this.allowSelectRow = input(this.config?.allowSelectRow ?? true, { transform: XToBoolean });
|
|
130
|
+
this.allowSelectRow = input(this.config?.allowSelectRow ?? true, ...(ngDevMode ? [{ debugName: "allowSelectRow", transform: XToBoolean }] : [{ transform: XToBoolean }]));
|
|
131
131
|
/**
|
|
132
132
|
* @zh_CN 允许行点击选中 checkbox
|
|
133
133
|
* @en_US Allow lines to click checkbox
|
|
134
134
|
*/
|
|
135
|
-
this.allowCheckRow = input(this.config?.allowCheckRow ?? true, { transform: XToBoolean });
|
|
135
|
+
this.allowCheckRow = input(this.config?.allowCheckRow ?? true, ...(ngDevMode ? [{ debugName: "allowCheckRow", transform: XToBoolean }] : [{ transform: XToBoolean }]));
|
|
136
136
|
/**
|
|
137
137
|
* @zh_CN 开启虚拟滚动
|
|
138
138
|
* @en_US Turn on virtual scrolling
|
|
139
139
|
*/
|
|
140
|
-
this.virtualScroll = input(this.config?.virtualScroll ?? false, { transform: XToBoolean });
|
|
140
|
+
this.virtualScroll = input(this.config?.virtualScroll ?? false, ...(ngDevMode ? [{ debugName: "virtualScroll", transform: XToBoolean }] : [{ transform: XToBoolean }]));
|
|
141
141
|
/**
|
|
142
142
|
* @zh_CN body 数据高度,只有开启虚拟滚动的时候生效
|
|
143
143
|
* @en_US body data height
|
|
144
144
|
*/
|
|
145
|
-
this.bodyHeight = input(undefined, { transform: XToNumber });
|
|
145
|
+
this.bodyHeight = input(undefined, ...(ngDevMode ? [{ debugName: "bodyHeight", transform: XToNumber }] : [{ transform: XToNumber }]));
|
|
146
146
|
/**
|
|
147
147
|
* @zh_CN itemSize,对应 cdk scroll 中的参数
|
|
148
148
|
* @en_US itemSize,corresponding to the parameters in cdk scroll
|
|
149
149
|
*/
|
|
150
|
-
this.itemSize = input(this.config?.itemSize ?? 42, { transform: XToNumber });
|
|
150
|
+
this.itemSize = input(this.config?.itemSize ?? 42, ...(ngDevMode ? [{ debugName: "itemSize", transform: XToNumber }] : [{ transform: XToNumber }]));
|
|
151
151
|
/**
|
|
152
152
|
* @zh_CN 超出可视窗口缓冲区的最小值,对应 cdk scroll 中的参数
|
|
153
153
|
* @en_US Exceed the minimum value of the visible window buffer, corresponding to the parameters in cdk scroll
|
|
154
154
|
*/
|
|
155
|
-
this.minBufferPx = input(100, { transform: XToNumber });
|
|
155
|
+
this.minBufferPx = input(100, ...(ngDevMode ? [{ debugName: "minBufferPx", transform: XToNumber }] : [{ transform: XToNumber }]));
|
|
156
156
|
/**
|
|
157
157
|
* @zh_CN 渲染新数据缓冲区的像素,对应 cdk scroll 中的参数
|
|
158
158
|
* @en_US Render the pixels of the new data buffer, corresponding to the parameters in cdk scroll
|
|
159
159
|
*/
|
|
160
|
-
this.maxBufferPx = input(200, { transform: XToNumber });
|
|
160
|
+
this.maxBufferPx = input(200, ...(ngDevMode ? [{ debugName: "maxBufferPx", transform: XToNumber }] : [{ transform: XToNumber }]));
|
|
161
161
|
/**
|
|
162
162
|
* @zh_CN 自适应高度,table 高度等于屏幕高度减掉此处设置的数值
|
|
163
163
|
* @en_US Adaptive height, table height is equal to the screen height minus the value set here
|
|
164
164
|
*/
|
|
165
|
-
this.adaptionHeight = input(undefined, { transform: XToNumber });
|
|
165
|
+
this.adaptionHeight = input(undefined, ...(ngDevMode ? [{ debugName: "adaptionHeight", transform: XToNumber }] : [{ transform: XToNumber }]));
|
|
166
166
|
/**
|
|
167
167
|
* @zh_CN 文档高度百分比,弹窗百分比高度用到
|
|
168
168
|
* @en_US Document height percentage, used by pop-up window percentage height
|
|
169
169
|
*/
|
|
170
|
-
this.docPercent = input(1, { transform: XToNumber });
|
|
170
|
+
this.docPercent = input(1, ...(ngDevMode ? [{ debugName: "docPercent", transform: XToNumber }] : [{ transform: XToNumber }]));
|
|
171
171
|
/**
|
|
172
172
|
* @zh_CN checkbox 列初始选中的数据,列中激活 checkbox
|
|
173
173
|
* @en_US Checkbox column initially selected data, checkbox is activated in column
|
|
174
174
|
*/
|
|
175
|
-
this.checkedRow = input({});
|
|
175
|
+
this.checkedRow = input({}, ...(ngDevMode ? [{ debugName: "checkedRow" }] : []));
|
|
176
176
|
/**
|
|
177
177
|
* @zh_CN 禁用拖动 checkbox 批量选中/取消
|
|
178
178
|
* @en_US Disable dragging checkboxes for batch selection/cancellation
|
|
179
179
|
*/
|
|
180
|
-
this.checkboxDragDisabled = input(false, { transform: XToBoolean });
|
|
180
|
+
this.checkboxDragDisabled = input(false, ...(ngDevMode ? [{ debugName: "checkboxDragDisabled", transform: XToBoolean }] : [{ transform: XToBoolean }]));
|
|
181
181
|
/**
|
|
182
182
|
* @zh_CN 如果 data 是函数类型,可以通过此参数控制请求,常用于弹框中的表格,弹出后再请求
|
|
183
183
|
* @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
|
|
184
184
|
*/
|
|
185
|
-
this.manual = model(true);
|
|
185
|
+
this.manual = model(true, ...(ngDevMode ? [{ debugName: "manual" }] : []));
|
|
186
186
|
/**
|
|
187
187
|
* @zh_CN 滚动区域高宽
|
|
188
188
|
* @en_US Height and width of rolling area
|
|
189
189
|
*/
|
|
190
|
-
this.scroll = input();
|
|
190
|
+
this.scroll = input(...(ngDevMode ? [undefined, { debugName: "scroll" }] : []));
|
|
191
191
|
/**
|
|
192
192
|
* @zh_CN 表格页头
|
|
193
193
|
* @en_US Table header
|
|
194
194
|
*/
|
|
195
|
-
this.header = input();
|
|
195
|
+
this.header = input(...(ngDevMode ? [undefined, { debugName: "header" }] : []));
|
|
196
196
|
/**
|
|
197
197
|
* @zh_CN 表格页尾
|
|
198
198
|
* @en_US Table footer
|
|
199
199
|
*/
|
|
200
|
-
this.footer = input();
|
|
200
|
+
this.footer = input(...(ngDevMode ? [undefined, { debugName: "footer" }] : []));
|
|
201
201
|
/**
|
|
202
202
|
* @zh_CN 单元格配置
|
|
203
203
|
* @en_US Cell config
|
|
204
204
|
*/
|
|
205
|
-
this.cellConfig = input();
|
|
205
|
+
this.cellConfig = input(...(ngDevMode ? [undefined, { debugName: "cellConfig" }] : []));
|
|
206
206
|
/**
|
|
207
207
|
* @zh_CN 尺寸
|
|
208
208
|
* @en_US Size
|
|
209
209
|
*/
|
|
210
|
-
this.rowSize = input(this.config?.rowSize ?? 'medium');
|
|
210
|
+
this.rowSize = input(this.config?.rowSize ?? 'medium', ...(ngDevMode ? [{ debugName: "rowSize" }] : []));
|
|
211
211
|
/**
|
|
212
212
|
* @zh_CN 分页器位置
|
|
213
213
|
* @en_US Pagination position
|
|
214
214
|
*/
|
|
215
|
-
this.paginationPosition = input('bottom-left');
|
|
215
|
+
this.paginationPosition = input('bottom-left', ...(ngDevMode ? [{ debugName: "paginationPosition" }] : []));
|
|
216
216
|
/**
|
|
217
217
|
* @zh_CN 隐藏表格外边框
|
|
218
218
|
* @en_US Hidden table wrap border
|
|
219
219
|
*/
|
|
220
|
-
this.hiddenWrapBorder = input(this.config?.hiddenWrapBorder ?? false, {
|
|
221
|
-
|
|
222
|
-
|
|
220
|
+
this.hiddenWrapBorder = input(this.config?.hiddenWrapBorder ?? false, ...(ngDevMode ? [{ debugName: "hiddenWrapBorder", transform: XToBoolean }] : [{
|
|
221
|
+
transform: XToBoolean
|
|
222
|
+
}]));
|
|
223
223
|
/**
|
|
224
224
|
* @deprecated useless
|
|
225
225
|
* @zh_CN 隐藏分页器按钮边框
|
|
226
226
|
* @en_US Hidden pagination button border
|
|
227
227
|
*/
|
|
228
|
-
this.hiddenPaginationBorder = input(this.config?.hiddenPaginationBorder ?? false, {
|
|
229
|
-
|
|
230
|
-
|
|
228
|
+
this.hiddenPaginationBorder = input(this.config?.hiddenPaginationBorder ?? false, ...(ngDevMode ? [{ debugName: "hiddenPaginationBorder", transform: XToBoolean }] : [{
|
|
229
|
+
transform: XToBoolean
|
|
230
|
+
}]));
|
|
231
231
|
/**
|
|
232
232
|
* @zh_CN 显示分页器
|
|
233
233
|
* @en_US Pagination position
|
|
234
234
|
*/
|
|
235
|
-
this.showPagination = input(this.config?.showPagination ?? true, {
|
|
236
|
-
|
|
237
|
-
|
|
235
|
+
this.showPagination = input(this.config?.showPagination ?? true, ...(ngDevMode ? [{ debugName: "showPagination", transform: XToBoolean }] : [{
|
|
236
|
+
transform: XToBoolean
|
|
237
|
+
}]));
|
|
238
238
|
/**
|
|
239
239
|
* @zh_CN 树形表格
|
|
240
240
|
* @en_US Tree table
|
|
241
241
|
*/
|
|
242
|
-
this.treeTable = input(this.config?.treeTable ?? false, {
|
|
243
|
-
|
|
244
|
-
|
|
242
|
+
this.treeTable = input(this.config?.treeTable ?? false, ...(ngDevMode ? [{ debugName: "treeTable", transform: XToBoolean }] : [{
|
|
243
|
+
transform: XToBoolean
|
|
244
|
+
}]));
|
|
245
245
|
/**
|
|
246
246
|
* @zh_CN 树形表格展开所有节点
|
|
247
247
|
* @en_US Tree table
|
|
248
248
|
*/
|
|
249
|
-
this.expandedAll = input(this.config?.expandedAll ?? false, {
|
|
250
|
-
|
|
251
|
-
|
|
249
|
+
this.expandedAll = input(this.config?.expandedAll ?? false, ...(ngDevMode ? [{ debugName: "expandedAll", transform: XToBoolean }] : [{
|
|
250
|
+
transform: XToBoolean
|
|
251
|
+
}]));
|
|
252
252
|
/**
|
|
253
253
|
* @zh_CN 默认展开的层级,-1 不展开
|
|
254
254
|
* @en_US Default expanded level
|
|
255
255
|
*/
|
|
256
|
-
this.expandedLevel = input(this.config?.expandedLevel ?? -1, {
|
|
257
|
-
|
|
258
|
-
|
|
256
|
+
this.expandedLevel = input(this.config?.expandedLevel ?? -1, ...(ngDevMode ? [{ debugName: "expandedLevel", transform: XToNumber }] : [{
|
|
257
|
+
transform: XToNumber
|
|
258
|
+
}]));
|
|
259
259
|
/**
|
|
260
260
|
* @zh_CN 展开的节点
|
|
261
261
|
* @en_US Expanded node
|
|
262
262
|
*/
|
|
263
|
-
this.expanded = input([]);
|
|
263
|
+
this.expanded = input([], ...(ngDevMode ? [{ debugName: "expanded" }] : []));
|
|
264
264
|
/**
|
|
265
265
|
* @zh_CN 自定义展开内容
|
|
266
266
|
* @en_US Customized expansion content
|
|
267
267
|
*/
|
|
268
|
-
this.expandTpl = input();
|
|
268
|
+
this.expandTpl = input(...(ngDevMode ? [undefined, { debugName: "expandTpl" }] : []));
|
|
269
269
|
/**
|
|
270
270
|
* @zh_CN 显示数据为空的提示
|
|
271
271
|
* @en_US Display a prompt with empty data
|
|
272
272
|
*/
|
|
273
|
-
this.showEmpty = input(this.config?.showEmpty ?? true, {
|
|
274
|
-
|
|
275
|
-
|
|
273
|
+
this.showEmpty = input(this.config?.showEmpty ?? true, ...(ngDevMode ? [{ debugName: "showEmpty", transform: XToBoolean }] : [{
|
|
274
|
+
transform: XToBoolean
|
|
275
|
+
}]));
|
|
276
276
|
/**
|
|
277
277
|
* @zh_CN 数据为空的提示图片地址或自定义模板
|
|
278
278
|
* @en_US Picture address or custom template
|
|
279
279
|
*/
|
|
280
|
-
this.emptyImg = input(this.config?.emptyImg ?? undefined);
|
|
280
|
+
this.emptyImg = input(this.config?.emptyImg ?? undefined, ...(ngDevMode ? [{ debugName: "emptyImg" }] : []));
|
|
281
281
|
/**
|
|
282
282
|
* @zh_CN 数据为空的提示内容或自定义模板
|
|
283
283
|
* @en_US Content or custom template
|
|
284
284
|
*/
|
|
285
|
-
this.emptyContent = input(this.config?.emptyContent ?? undefined);
|
|
285
|
+
this.emptyContent = input(this.config?.emptyContent ?? undefined, ...(ngDevMode ? [{ debugName: "emptyContent" }] : []));
|
|
286
286
|
/**
|
|
287
287
|
* @zh_CN 当前页码
|
|
288
288
|
* @en_US Current page number
|
|
289
289
|
*/
|
|
290
|
-
this.index = model(this.config?.index ?? 1);
|
|
290
|
+
this.index = model(this.config?.index ?? 1, ...(ngDevMode ? [{ debugName: "index" }] : []));
|
|
291
291
|
/**
|
|
292
292
|
* @zh_CN 每页显示条数
|
|
293
293
|
* @en_US Number of items displayed per page
|
|
294
294
|
*/
|
|
295
|
-
this.size = model(this.config?.size ?? 10);
|
|
295
|
+
this.size = model(this.config?.size ?? 10, ...(ngDevMode ? [{ debugName: "size" }] : []));
|
|
296
296
|
/**
|
|
297
297
|
* @zh_CN 总数
|
|
298
298
|
* @en_US Total
|
|
299
299
|
*/
|
|
300
|
-
this.total = model(0);
|
|
300
|
+
this.total = model(0, ...(ngDevMode ? [{ debugName: "total" }] : []));
|
|
301
301
|
/**
|
|
302
302
|
* @zh_CN 查询条件
|
|
303
303
|
* @en_US Query conditions
|
|
304
304
|
*/
|
|
305
|
-
this.query = model({});
|
|
305
|
+
this.query = model({}, ...(ngDevMode ? [{ debugName: "query" }] : []));
|
|
306
306
|
/**
|
|
307
307
|
* @zh_CN 最多显示的分页数量
|
|
308
308
|
* @en_US The largest number of pages display
|
|
309
309
|
*/
|
|
310
|
-
this.pageLinkSize = input(this.config?.pageLinkSize ?? 5, { transform: XToNumber });
|
|
310
|
+
this.pageLinkSize = input(this.config?.pageLinkSize ?? 5, ...(ngDevMode ? [{ debugName: "pageLinkSize", transform: XToNumber }] : [{ transform: XToNumber }]));
|
|
311
311
|
/**
|
|
312
312
|
* @zh_CN 显示首尾页跳转
|
|
313
313
|
* @en_US Display the first and last page
|
|
314
314
|
*/
|
|
315
|
-
this.showEllipsis = input(this.config?.showEllipsis ?? true, { transform: XToBoolean });
|
|
315
|
+
this.showEllipsis = input(this.config?.showEllipsis ?? true, ...(ngDevMode ? [{ debugName: "showEllipsis", transform: XToBoolean }] : [{ transform: XToBoolean }]));
|
|
316
316
|
/**
|
|
317
317
|
* @zh_CN 显示总条数
|
|
318
318
|
* @en_US Display the total
|
|
319
319
|
*/
|
|
320
|
-
this.showTotal = input(this.config?.showTotal ?? true, { transform: XToBoolean });
|
|
320
|
+
this.showTotal = input(this.config?.showTotal ?? true, ...(ngDevMode ? [{ debugName: "showTotal", transform: XToBoolean }] : [{ transform: XToBoolean }]));
|
|
321
321
|
/**
|
|
322
322
|
* @zh_CN 按钮间距
|
|
323
323
|
* @en_US Button spacing
|
|
324
324
|
*/
|
|
325
|
-
this.space = input(this.config?.space ?? '0.25rem', { transform: XToCssPixelValue });
|
|
325
|
+
this.space = input(this.config?.space ?? '0.25rem', ...(ngDevMode ? [{ debugName: "space", transform: XToCssPixelValue }] : [{ transform: XToCssPixelValue }]));
|
|
326
326
|
/**
|
|
327
327
|
* @zh_CN 添加背景色
|
|
328
328
|
* @en_US Show background
|
|
329
329
|
*/
|
|
330
|
-
this.showBackground = input(this.config?.showBackground ?? false, { transform: XToBoolean });
|
|
330
|
+
this.showBackground = input(this.config?.showBackground ?? false, ...(ngDevMode ? [{ debugName: "showBackground", transform: XToBoolean }] : [{ transform: XToBoolean }]));
|
|
331
331
|
/**
|
|
332
332
|
* @zh_CN 显示分页条数
|
|
333
333
|
* @en_US Show size
|
|
334
334
|
*/
|
|
335
|
-
this.showSize = input(this.config?.showSize ?? false, { transform: XToBoolean });
|
|
335
|
+
this.showSize = input(this.config?.showSize ?? false, ...(ngDevMode ? [{ debugName: "showSize", transform: XToBoolean }] : [{ transform: XToBoolean }]));
|
|
336
336
|
/**
|
|
337
337
|
* @zh_CN 分页条数选择框的宽度
|
|
338
338
|
* @en_US size with select
|
|
339
339
|
*/
|
|
340
|
-
this.sizeWidth = input(this.config?.sizeWidth ?? '6.875rem', { transform: XToCssPixelValue });
|
|
340
|
+
this.sizeWidth = input(this.config?.sizeWidth ?? '6.875rem', ...(ngDevMode ? [{ debugName: "sizeWidth", transform: XToCssPixelValue }] : [{ transform: XToCssPixelValue }]));
|
|
341
341
|
/**
|
|
342
342
|
* @zh_CN 显示输入分页条数(不能跟下拉选项同时使用)
|
|
343
343
|
* @en_US Display the number of input page breaks (cannot exist with the drop-down options of page breaks)
|
|
344
344
|
*/
|
|
345
|
-
this.showInputSize = input(this.config?.showInputSize ?? false, { transform: XToBoolean });
|
|
345
|
+
this.showInputSize = input(this.config?.showInputSize ?? false, ...(ngDevMode ? [{ debugName: "showInputSize", transform: XToBoolean }] : [{ transform: XToBoolean }]));
|
|
346
346
|
/**
|
|
347
347
|
* @zh_CN 显示输入分页框的 tooltip 提示信息,默认显示
|
|
348
348
|
* @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
|
|
349
349
|
*/
|
|
350
|
-
this.showInputSizeTooltipText = input(this.config?.showInputSizeTooltipText ?? true, {
|
|
351
|
-
|
|
352
|
-
|
|
350
|
+
this.showInputSizeTooltipText = input(this.config?.showInputSizeTooltipText ?? true, ...(ngDevMode ? [{ debugName: "showInputSizeTooltipText", transform: XToBoolean }] : [{
|
|
351
|
+
transform: XToBoolean
|
|
352
|
+
}]));
|
|
353
353
|
/**
|
|
354
354
|
* @zh_CN 输入分页框的 tooltip 提示信息,默认根据输入确认改变的方式来显示
|
|
355
355
|
* @en_US Enter the tooltip prompt information for the pagination box, which will be displayed by default based on the confirmation of the input
|
|
356
356
|
*/
|
|
357
|
-
this.inputSizeTooltipText = input(this.config?.inputSizeTooltipText ?? '');
|
|
357
|
+
this.inputSizeTooltipText = input(this.config?.inputSizeTooltipText ?? '', ...(ngDevMode ? [{ debugName: "inputSizeTooltipText" }] : []));
|
|
358
358
|
/**
|
|
359
359
|
* @zh_CN 分页条数输入框的宽度
|
|
360
360
|
* @en_US size with input
|
|
361
361
|
*/
|
|
362
|
-
this.inputSizeWidth = input(this.config?.sizeWidth ?? '3.125rem', {
|
|
363
|
-
|
|
364
|
-
|
|
362
|
+
this.inputSizeWidth = input(this.config?.sizeWidth ?? '3.125rem', ...(ngDevMode ? [{ debugName: "inputSizeWidth", transform: XToCssPixelValue }] : [{
|
|
363
|
+
transform: XToCssPixelValue
|
|
364
|
+
}]));
|
|
365
365
|
/**
|
|
366
366
|
* @zh_CN 分页选择的数据项
|
|
367
367
|
* @en_US Paging choose items of data
|
|
368
368
|
*/
|
|
369
|
-
this.sizeData = input(this.config?.sizeData ?? XPaginationSizeData);
|
|
369
|
+
this.sizeData = input(this.config?.sizeData ?? XPaginationSizeData, ...(ngDevMode ? [{ debugName: "sizeData" }] : []));
|
|
370
370
|
/**
|
|
371
371
|
* @zh_CN 禁用整个分页
|
|
372
372
|
* @en_US disabled
|
|
373
373
|
*/
|
|
374
|
-
this.disabled = input(false, { transform: XToBoolean });
|
|
374
|
+
this.disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled", transform: XToBoolean }] : [{ transform: XToBoolean }]));
|
|
375
375
|
/**
|
|
376
376
|
* @zh_CN 显示跳转输入框
|
|
377
377
|
* @en_US Show size
|
|
378
378
|
*/
|
|
379
|
-
this.showJump = input(false, { transform: XToBoolean });
|
|
379
|
+
this.showJump = input(false, ...(ngDevMode ? [{ debugName: "showJump", transform: XToBoolean }] : [{ transform: XToBoolean }]));
|
|
380
380
|
/**
|
|
381
381
|
* @zh_CN 显示跳转输入框的 tooltip 提示信息,默认显示
|
|
382
382
|
* @en_US Show the tooltip prompt information for jumping to the input box is displayed by default based on the confirmation of input changes
|
|
383
383
|
*/
|
|
384
|
-
this.showJumpTooltipText = input(this.config?.showJumpTooltipText ?? true, {
|
|
385
|
-
|
|
386
|
-
|
|
384
|
+
this.showJumpTooltipText = input(this.config?.showJumpTooltipText ?? true, ...(ngDevMode ? [{ debugName: "showJumpTooltipText", transform: XToBoolean }] : [{
|
|
385
|
+
transform: XToBoolean
|
|
386
|
+
}]));
|
|
387
387
|
/**
|
|
388
388
|
* @zh_CN 跳转输入框的 tooltip 提示信息,默认根据输入确认改变的方式来显示
|
|
389
389
|
* @en_US The tooltip prompt information for jumping to the input box is displayed by default based on the confirmation of input changes
|
|
390
390
|
*/
|
|
391
|
-
this.jumpTooltipText = input(this.config?.jumpTooltipText ?? '');
|
|
391
|
+
this.jumpTooltipText = input(this.config?.jumpTooltipText ?? '', ...(ngDevMode ? [{ debugName: "jumpTooltipText" }] : []));
|
|
392
392
|
/**
|
|
393
393
|
* @zh_CN 跳转页的宽度
|
|
394
394
|
* @en_US size with
|
|
395
395
|
*/
|
|
396
|
-
this.jumpWidth = input(this.config?.jumpWidth ?? '3.125rem', { transform: XToCssPixelValue });
|
|
396
|
+
this.jumpWidth = input(this.config?.jumpWidth ?? '3.125rem', ...(ngDevMode ? [{ debugName: "jumpWidth", transform: XToCssPixelValue }] : [{ transform: XToCssPixelValue }]));
|
|
397
397
|
/**
|
|
398
398
|
* @zh_CN 总数自定义模板
|
|
399
399
|
* @en_US Total template
|
|
400
400
|
*/
|
|
401
|
-
this.totalTpl = input();
|
|
401
|
+
this.totalTpl = input(...(ngDevMode ? [undefined, { debugName: "totalTpl" }] : []));
|
|
402
402
|
/**
|
|
403
403
|
* @zh_CN 简单分页
|
|
404
404
|
* @en_US Simple
|
|
405
405
|
*/
|
|
406
|
-
this.simple = input(this.config?.simple ?? false, { transform: XToBoolean });
|
|
406
|
+
this.simple = input(this.config?.simple ?? false, ...(ngDevMode ? [{ debugName: "simple", transform: XToBoolean }] : [{ transform: XToBoolean }]));
|
|
407
407
|
/**
|
|
408
408
|
* @zh_CN 简单分页输入框宽度
|
|
409
409
|
* @en_US Simple index with
|
|
410
410
|
*/
|
|
411
|
-
this.simpleIndexWidth = input(this.config?.simpleIndexWidth ?? '8.125rem', {
|
|
412
|
-
|
|
413
|
-
|
|
411
|
+
this.simpleIndexWidth = input(this.config?.simpleIndexWidth ?? '8.125rem', ...(ngDevMode ? [{ debugName: "simpleIndexWidth", transform: XToCssPixelValue }] : [{
|
|
412
|
+
transform: XToCssPixelValue
|
|
413
|
+
}]));
|
|
414
414
|
/**
|
|
415
415
|
* @zh_CN 输入确认改变的方式,针对输入分页大小和输入跳转页
|
|
416
416
|
* @en_US The method for confirming changes in input is based on the input page size and input jump page
|
|
417
417
|
*/
|
|
418
|
-
this.inputIndexSizeSureType = input(this.config?.inputIndexSizeSureType ?? 'enter');
|
|
418
|
+
this.inputIndexSizeSureType = input(this.config?.inputIndexSizeSureType ?? 'enter', ...(ngDevMode ? [{ debugName: "inputIndexSizeSureType" }] : []));
|
|
419
419
|
/**
|
|
420
420
|
* @zh_CN 行点击事件
|
|
421
421
|
* @en_US Row click event
|
|
@@ -452,10 +452,10 @@ class XTableProperty extends XPropertyFunction(X_TABLE_CONFIG_NAME) {
|
|
|
452
452
|
*/
|
|
453
453
|
this.columnDragWidthEnded = output();
|
|
454
454
|
}
|
|
455
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
456
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.0.0", 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 }, 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 }); }
|
|
455
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: XTableProperty, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
456
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.2.4", 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 }, 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 }); }
|
|
457
457
|
}
|
|
458
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
458
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: XTableProperty, decorators: [{
|
|
459
459
|
type: Component,
|
|
460
460
|
args: [{ selector: `${XTablePrefix}-property`, template: '' }]
|
|
461
461
|
}] });
|
|
@@ -475,42 +475,42 @@ class XTableHeadProperty extends XProperty {
|
|
|
475
475
|
* @zh_CN 列集合
|
|
476
476
|
* @en_US Column set
|
|
477
477
|
*/
|
|
478
|
-
this.columns = input([]);
|
|
478
|
+
this.columns = input([], ...(ngDevMode ? [{ debugName: "columns" }] : []));
|
|
479
479
|
/**
|
|
480
480
|
* @zh_CN 高度,单位 px
|
|
481
481
|
* @en_US Height in px
|
|
482
482
|
*/
|
|
483
|
-
this.rowHeight = input(42, { transform: XToNumber });
|
|
483
|
+
this.rowHeight = input(42, ...(ngDevMode ? [{ debugName: "rowHeight", transform: XToNumber }] : [{ transform: XToNumber }]));
|
|
484
484
|
/**
|
|
485
485
|
* @zh_CN 自定义模板
|
|
486
486
|
* @en_US Custom template
|
|
487
487
|
*/
|
|
488
|
-
this.columnTpl = input({});
|
|
488
|
+
this.columnTpl = input({}, ...(ngDevMode ? [{ debugName: "columnTpl" }] : []));
|
|
489
489
|
/**
|
|
490
490
|
* @zh_CN 竖向滚动条宽度
|
|
491
491
|
* @en_US Vertical scroll bar width
|
|
492
492
|
*/
|
|
493
|
-
this.scrollYWidth = input(null, { transform: XToNumber });
|
|
493
|
+
this.scrollYWidth = input(null, ...(ngDevMode ? [{ debugName: "scrollYWidth", transform: XToNumber }] : [{ transform: XToNumber }]));
|
|
494
494
|
/**
|
|
495
495
|
* @zh_CN 横向滚动条宽度
|
|
496
496
|
* @en_US Horizontal scroll bar width
|
|
497
497
|
*/
|
|
498
|
-
this.scrollXWidth = input(null, { transform: XToNumber });
|
|
498
|
+
this.scrollXWidth = input(null, ...(ngDevMode ? [{ debugName: "scrollXWidth", transform: XToNumber }] : [{ transform: XToNumber }]));
|
|
499
499
|
/**
|
|
500
500
|
* @zh_CN 单元格配置
|
|
501
501
|
* @en_US Cell merge rules
|
|
502
502
|
*/
|
|
503
|
-
this.cellConfig = input();
|
|
503
|
+
this.cellConfig = input(...(ngDevMode ? [undefined, { debugName: "cellConfig" }] : []));
|
|
504
504
|
/**
|
|
505
505
|
* @zh_CN 显示的位置
|
|
506
506
|
* @en_US Display position
|
|
507
507
|
*/
|
|
508
|
-
this.position = input();
|
|
508
|
+
this.position = input(...(ngDevMode ? [undefined, { debugName: "position" }] : []));
|
|
509
509
|
}
|
|
510
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
511
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.
|
|
510
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: XTableHeadProperty, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
511
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.2.4", type: XTableHeadProperty, isStandalone: true, selector: "x-table-head-property", inputs: { columns: { classPropertyName: "columns", publicName: "columns", 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 }); }
|
|
512
512
|
}
|
|
513
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
513
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: XTableHeadProperty, decorators: [{
|
|
514
514
|
type: Component,
|
|
515
515
|
args: [{ selector: `${XTableHeadPrefix}-property`, template: '' }]
|
|
516
516
|
}] });
|
|
@@ -530,107 +530,107 @@ class XTableBodyProperty extends XProperty {
|
|
|
530
530
|
* @zh_CN 行数据
|
|
531
531
|
* @en_US Row data
|
|
532
532
|
*/
|
|
533
|
-
this.data = input([]);
|
|
533
|
+
this.data = input([], ...(ngDevMode ? [{ debugName: "data" }] : []));
|
|
534
534
|
/**
|
|
535
535
|
* @zh_CN 列集合
|
|
536
536
|
* @en_US Column set
|
|
537
537
|
*/
|
|
538
|
-
this.columns = input([]);
|
|
538
|
+
this.columns = input([], ...(ngDevMode ? [{ debugName: "columns" }] : []));
|
|
539
539
|
/**
|
|
540
540
|
* @zh_CN 自定义模板
|
|
541
541
|
* @en_US Custom template
|
|
542
542
|
*/
|
|
543
|
-
this.columnTpl = input({});
|
|
543
|
+
this.columnTpl = input({}, ...(ngDevMode ? [{ debugName: "columnTpl" }] : []));
|
|
544
544
|
/**
|
|
545
545
|
* @zh_CN 当前选中行数据
|
|
546
546
|
* @en_US Currently selected row data
|
|
547
547
|
*/
|
|
548
|
-
this.activatedRow = model();
|
|
548
|
+
this.activatedRow = model(...(ngDevMode ? [undefined, { debugName: "activatedRow" }] : []));
|
|
549
549
|
/**
|
|
550
550
|
* @zh_CN 高度,单位 px。设置为 0 表示行高自适应内容高度。
|
|
551
551
|
* @en_US Height in px. set to 0 means that the row height is adaptive to the content height
|
|
552
552
|
*/
|
|
553
|
-
this.rowHeight = input(42, { transform: XToNumber });
|
|
553
|
+
this.rowHeight = input(42, ...(ngDevMode ? [{ debugName: "rowHeight", transform: XToNumber }] : [{ transform: XToNumber }]));
|
|
554
554
|
/**
|
|
555
555
|
* @zh_CN body 数据高度
|
|
556
556
|
* @en_US body data height
|
|
557
557
|
*/
|
|
558
|
-
this.bodyHeight = input(null, { transform: XToNumber });
|
|
558
|
+
this.bodyHeight = input(null, ...(ngDevMode ? [{ debugName: "bodyHeight", transform: XToNumber }] : [{ transform: XToNumber }]));
|
|
559
559
|
/**
|
|
560
560
|
* @zh_CN 允许行点击选中
|
|
561
561
|
* @en_US Allow row click to select
|
|
562
562
|
*/
|
|
563
|
-
this.allowSelectRow = input(true, { transform: XToBoolean });
|
|
563
|
+
this.allowSelectRow = input(true, ...(ngDevMode ? [{ debugName: "allowSelectRow", transform: XToBoolean }] : [{ transform: XToBoolean }]));
|
|
564
564
|
/**
|
|
565
565
|
* @zh_CN 开启虚拟滚动
|
|
566
566
|
* @en_US Turn on virtual scrolling
|
|
567
567
|
*/
|
|
568
|
-
this.virtualScroll = input(false, { transform: XToBoolean });
|
|
568
|
+
this.virtualScroll = input(false, ...(ngDevMode ? [{ debugName: "virtualScroll", transform: XToBoolean }] : [{ transform: XToBoolean }]));
|
|
569
569
|
/**
|
|
570
570
|
* @zh_CN itemSize,对应 cdk scroll 中的参数
|
|
571
571
|
* @en_US itemSize,corresponding to the parameters in cdk scroll
|
|
572
572
|
*/
|
|
573
|
-
this.itemSize = input(42, { transform: XToNumber });
|
|
573
|
+
this.itemSize = input(42, ...(ngDevMode ? [{ debugName: "itemSize", transform: XToNumber }] : [{ transform: XToNumber }]));
|
|
574
574
|
/**
|
|
575
575
|
* @zh_CN 超出可视窗口缓冲区的最小值,对应 cdk scroll 中的参数
|
|
576
576
|
* @en_US Exceed the minimum value of the visible window buffer, corresponding to the parameters in cdk scroll
|
|
577
577
|
*/
|
|
578
|
-
this.minBufferPx = input(100, { transform: XToNumber });
|
|
578
|
+
this.minBufferPx = input(100, ...(ngDevMode ? [{ debugName: "minBufferPx", transform: XToNumber }] : [{ transform: XToNumber }]));
|
|
579
579
|
/**
|
|
580
580
|
* @zh_CN 渲染新数据缓冲区的像素,对应 cdk scroll 中的参数
|
|
581
581
|
* @en_US Render the pixels of the new data buffer, corresponding to the parameters in cdk scroll
|
|
582
582
|
*/
|
|
583
|
-
this.maxBufferPx = input(200, { transform: XToNumber });
|
|
583
|
+
this.maxBufferPx = input(200, ...(ngDevMode ? [{ debugName: "maxBufferPx", transform: XToNumber }] : [{ transform: XToNumber }]));
|
|
584
584
|
/**
|
|
585
585
|
* @zh_CN 自适应高度,table 高度等于屏幕高度减掉此处设置的数值
|
|
586
586
|
* @en_US Adaptive height, table height is equal to the screen height minus the value set here
|
|
587
587
|
*/
|
|
588
|
-
this.adaptionHeight = input(null, { transform: XToNumber });
|
|
588
|
+
this.adaptionHeight = input(null, ...(ngDevMode ? [{ debugName: "adaptionHeight", transform: XToNumber }] : [{ transform: XToNumber }]));
|
|
589
589
|
/**
|
|
590
590
|
* @zh_CN 文档高度百分比,弹窗百分比高度用到
|
|
591
591
|
* @en_US Document height percentage, used by pop-up window percentage height
|
|
592
592
|
*/
|
|
593
|
-
this.docPercent = input(1, { transform: XToNumber });
|
|
593
|
+
this.docPercent = input(1, ...(ngDevMode ? [{ debugName: "docPercent", transform: XToNumber }] : [{ transform: XToNumber }]));
|
|
594
594
|
/**
|
|
595
595
|
* @zh_CN 滚动区域高宽
|
|
596
596
|
* @en_US Height and width of rolling area
|
|
597
597
|
*/
|
|
598
|
-
this.scroll = input();
|
|
598
|
+
this.scroll = input(...(ngDevMode ? [undefined, { debugName: "scroll" }] : []));
|
|
599
599
|
/**
|
|
600
600
|
* @zh_CN 单元格配置规则
|
|
601
601
|
* @en_US Cell config rules
|
|
602
602
|
*/
|
|
603
|
-
this.cellConfig = input();
|
|
603
|
+
this.cellConfig = input(...(ngDevMode ? [undefined, { debugName: "cellConfig" }] : []));
|
|
604
604
|
/**
|
|
605
605
|
* @zh_CN 行条件样式
|
|
606
606
|
* @en_US Row condition class
|
|
607
607
|
*/
|
|
608
|
-
this.rowClass = input();
|
|
608
|
+
this.rowClass = input(...(ngDevMode ? [undefined, { debugName: "rowClass" }] : []));
|
|
609
609
|
/**
|
|
610
610
|
* @zh_CN 树形表格下的层级
|
|
611
611
|
* @en_US The level under the tree table
|
|
612
612
|
*/
|
|
613
|
-
this.level = input(0, { transform: XToNumber });
|
|
613
|
+
this.level = input(0, ...(ngDevMode ? [{ debugName: "level", transform: XToNumber }] : [{ transform: XToNumber }]));
|
|
614
614
|
/**
|
|
615
615
|
* @zh_CN 树形表格展开所有节点
|
|
616
616
|
* @en_US Tree table
|
|
617
617
|
*/
|
|
618
|
-
this.expandedAll = input(false, { transform: XToBoolean });
|
|
618
|
+
this.expandedAll = input(false, ...(ngDevMode ? [{ debugName: "expandedAll", transform: XToBoolean }] : [{ transform: XToBoolean }]));
|
|
619
619
|
/**
|
|
620
620
|
* @zh_CN 自定义展开内容
|
|
621
621
|
* @en_US Customized expansion content
|
|
622
622
|
*/
|
|
623
|
-
this.expandTpl = input();
|
|
623
|
+
this.expandTpl = input(...(ngDevMode ? [undefined, { debugName: "expandTpl" }] : []));
|
|
624
624
|
/**
|
|
625
625
|
* @zh_CN 行点击事件
|
|
626
626
|
* @en_US Row click event
|
|
627
627
|
*/
|
|
628
628
|
this.rowClick = output();
|
|
629
629
|
}
|
|
630
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
631
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.
|
|
630
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: XTableBodyProperty, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
631
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.2.4", 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 }); }
|
|
632
632
|
}
|
|
633
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
633
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: XTableBodyProperty, decorators: [{
|
|
634
634
|
type: Component,
|
|
635
635
|
args: [{ selector: `${XTableBodyPrefix}-property`, template: '' }]
|
|
636
636
|
}] });
|
|
@@ -650,17 +650,17 @@ class XTableFootProperty extends XProperty {
|
|
|
650
650
|
* @zh_CN 表格页尾
|
|
651
651
|
* @en_US Table footer
|
|
652
652
|
*/
|
|
653
|
-
this.footer = input();
|
|
653
|
+
this.footer = input(...(ngDevMode ? [undefined, { debugName: "footer" }] : []));
|
|
654
654
|
/**
|
|
655
655
|
* @zh_CN 表头和行高,单位 px
|
|
656
656
|
* @en_US Header and row height, unit px
|
|
657
657
|
*/
|
|
658
|
-
this.rowHeight = input(null, { transform: XToNumber });
|
|
658
|
+
this.rowHeight = input(null, ...(ngDevMode ? [{ debugName: "rowHeight", transform: XToNumber }] : [{ transform: XToNumber }]));
|
|
659
659
|
}
|
|
660
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
661
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.
|
|
660
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: XTableFootProperty, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
661
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.2.4", 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 }); }
|
|
662
662
|
}
|
|
663
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
663
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: XTableFootProperty, decorators: [{
|
|
664
664
|
type: Component,
|
|
665
665
|
args: [{ selector: `${XTableFootPrefix}-property`, template: '' }]
|
|
666
666
|
}] });
|
|
@@ -671,8 +671,8 @@ class XTableHeadComponent extends XTableHeadProperty {
|
|
|
671
671
|
this.table = inject(XTableComponent, { optional: true });
|
|
672
672
|
this.cdr = inject(ChangeDetectorRef);
|
|
673
673
|
this.thead = viewChild.required('thead');
|
|
674
|
-
this.sort = signal([]);
|
|
675
|
-
this.sortStr = signal('');
|
|
674
|
+
this.sort = signal([], ...(ngDevMode ? [{ debugName: "sort" }] : []));
|
|
675
|
+
this.sortStr = signal('', ...(ngDevMode ? [{ debugName: "sortStr" }] : []));
|
|
676
676
|
this.theadStyle = computed(() => {
|
|
677
677
|
let height = this.rowHeight() === 0 ? '' : this.rowHeight();
|
|
678
678
|
if (this.cellConfig() && this.cellConfig().cells) {
|
|
@@ -685,12 +685,12 @@ class XTableHeadComponent extends XTableHeadProperty {
|
|
|
685
685
|
return {
|
|
686
686
|
['min-height']: `${this.getRowHeight()}px`
|
|
687
687
|
};
|
|
688
|
-
});
|
|
688
|
+
}, ...(ngDevMode ? [{ debugName: "theadStyle" }] : []));
|
|
689
689
|
this.thClassMap = computed(() => ({
|
|
690
690
|
[`${XTablePrefix}-th-${this.table.rowSize()}`]: !XIsEmpty(this.table.rowSize())
|
|
691
|
-
}));
|
|
692
|
-
this.initColumns = computed(() => [...this.columns()]);
|
|
693
|
-
this.getRowHeight = computed(() => (this.rowHeight() == 0 ? '' : this.rowHeight()));
|
|
691
|
+
}), ...(ngDevMode ? [{ debugName: "thClassMap" }] : []));
|
|
692
|
+
this.initColumns = computed(() => [...this.columns()], ...(ngDevMode ? [{ debugName: "initColumns" }] : []));
|
|
693
|
+
this.getRowHeight = computed(() => (this.rowHeight() == 0 ? '' : this.rowHeight()), ...(ngDevMode ? [{ debugName: "getRowHeight" }] : []));
|
|
694
694
|
this.elementRef = inject(ElementRef);
|
|
695
695
|
}
|
|
696
696
|
ngOnInit() {
|
|
@@ -802,10 +802,10 @@ class XTableHeadComponent extends XTableHeadProperty {
|
|
|
802
802
|
this.table.detectChanges();
|
|
803
803
|
this.table.columnDragEnded.emit(column);
|
|
804
804
|
}
|
|
805
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
806
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.
|
|
805
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: XTableHeadComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
806
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.2.4", 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]=\"getRowHeight()\">\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]=\"getRowHeight()\"\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]=\"getRowHeight()\"\r\n [style.min-height.px]=\"getRowHeight()\"\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]=\"getRowHeight()\"\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 }); }
|
|
807
807
|
}
|
|
808
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
808
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: XTableHeadComponent, decorators: [{
|
|
809
809
|
type: Component,
|
|
810
810
|
args: [{ selector: `${XTableHeadPrefix}`, imports: [
|
|
811
811
|
NgStyle,
|
|
@@ -826,7 +826,7 @@ class XTableFootComponent extends XTableFootProperty {
|
|
|
826
826
|
this.tfoot = viewChild.required('tfoot');
|
|
827
827
|
this.table = inject(XTableComponent, { optional: true });
|
|
828
828
|
this.cdr = inject(ChangeDetectorRef);
|
|
829
|
-
this.getRowHeight = computed(() => (this.rowHeight() == 0 ? '' : this.rowHeight()));
|
|
829
|
+
this.getRowHeight = computed(() => (this.rowHeight() == 0 ? '' : this.rowHeight()), ...(ngDevMode ? [{ debugName: "getRowHeight" }] : []));
|
|
830
830
|
this.elementRef = inject(ElementRef);
|
|
831
831
|
}
|
|
832
832
|
ngOnInit() {
|
|
@@ -835,10 +835,10 @@ class XTableFootComponent extends XTableFootProperty {
|
|
|
835
835
|
ngAfterViewInit() {
|
|
836
836
|
this.table.tfoot.set(this.tfoot());
|
|
837
837
|
}
|
|
838
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
839
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "20.
|
|
838
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: XTableFootComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
839
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "20.2.4", 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 }); }
|
|
840
840
|
}
|
|
841
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
841
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: XTableFootComponent, decorators: [{
|
|
842
842
|
type: Component,
|
|
843
843
|
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" }]
|
|
844
844
|
}] });
|
|
@@ -851,10 +851,10 @@ class XTableCheckboxDragSelectService {
|
|
|
851
851
|
this.downValue = false;
|
|
852
852
|
this.changeRows = [];
|
|
853
853
|
}
|
|
854
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
855
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.
|
|
854
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: XTableCheckboxDragSelectService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
855
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: XTableCheckboxDragSelectService, providedIn: 'root' }); }
|
|
856
856
|
}
|
|
857
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
857
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: XTableCheckboxDragSelectService, decorators: [{
|
|
858
858
|
type: Injectable,
|
|
859
859
|
args: [{ providedIn: 'root' }]
|
|
860
860
|
}] });
|
|
@@ -864,10 +864,10 @@ class XTableCheckboxDragSelectDirective {
|
|
|
864
864
|
this.dragSelectService = inject(XTableCheckboxDragSelectService);
|
|
865
865
|
this.document = inject(DOCUMENT);
|
|
866
866
|
this.checkbox = inject(XCheckboxComponent, { host: true });
|
|
867
|
-
this.dragRows = input.required();
|
|
868
|
-
this.dragRow = input.required();
|
|
869
|
-
this.dragColumn = input.required();
|
|
870
|
-
this.dragDisabled = input(false);
|
|
867
|
+
this.dragRows = input.required(...(ngDevMode ? [{ debugName: "dragRows" }] : []));
|
|
868
|
+
this.dragRow = input.required(...(ngDevMode ? [{ debugName: "dragRow" }] : []));
|
|
869
|
+
this.dragColumn = input.required(...(ngDevMode ? [{ debugName: "dragColumn" }] : []));
|
|
870
|
+
this.dragDisabled = input(false, ...(ngDevMode ? [{ debugName: "dragDisabled" }] : []));
|
|
871
871
|
this.dragStart = output();
|
|
872
872
|
this.dragMove = output();
|
|
873
873
|
this.dragEnd = output();
|
|
@@ -934,10 +934,10 @@ class XTableCheckboxDragSelectDirective {
|
|
|
934
934
|
isCheckboxLike(el) {
|
|
935
935
|
return el.classList.contains('x-checkbox-box');
|
|
936
936
|
}
|
|
937
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
938
|
-
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.
|
|
937
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: XTableCheckboxDragSelectDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
938
|
+
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.2.4", 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 }); }
|
|
939
939
|
}
|
|
940
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
940
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: XTableCheckboxDragSelectDirective, decorators: [{
|
|
941
941
|
type: Directive,
|
|
942
942
|
args: [{
|
|
943
943
|
selector: '[xTableCheckboxDragSelect]'
|
|
@@ -960,21 +960,21 @@ class XTableBodyComponent extends XTableBodyProperty {
|
|
|
960
960
|
this.elementRef = inject((ElementRef));
|
|
961
961
|
this.cdr = inject(ChangeDetectorRef);
|
|
962
962
|
this.tbody = viewChild.required('tbody');
|
|
963
|
-
this.virtualBody = viewChild(CdkVirtualScrollViewport);
|
|
963
|
+
this.virtualBody = viewChild(CdkVirtualScrollViewport, ...(ngDevMode ? [{ debugName: "virtualBody" }] : []));
|
|
964
964
|
this.table = inject(XTableComponent, { optional: true });
|
|
965
965
|
this.doc = inject(DOCUMENT$1);
|
|
966
966
|
this.unSubject = new Subject();
|
|
967
967
|
this.domSanitizer = inject(DomSanitizer);
|
|
968
|
-
this.tbodyStyle = signal({});
|
|
969
|
-
this.isEmpty = computed(() => this.data().length === 0);
|
|
970
|
-
this.getRowHeight = computed(() => (this.rowHeight() == 0 ? '' : this.rowHeight()));
|
|
971
|
-
this.getItemSize = computed(() => this.rowHeight() !== 0 && this.itemSize() > this.rowHeight() ? this.rowHeight() : this.itemSize());
|
|
972
|
-
this.docClientHeight = signal(this.doc.documentElement.clientHeight);
|
|
973
|
-
this.headHeight = signal(0);
|
|
974
|
-
this.captionHeight = signal(0);
|
|
975
|
-
this.footHeight = signal(0);
|
|
976
|
-
this.paginationHeight = signal(0);
|
|
977
|
-
this.checkboxDragging = signal(false);
|
|
968
|
+
this.tbodyStyle = signal({}, ...(ngDevMode ? [{ debugName: "tbodyStyle" }] : []));
|
|
969
|
+
this.isEmpty = computed(() => this.data().length === 0, ...(ngDevMode ? [{ debugName: "isEmpty" }] : []));
|
|
970
|
+
this.getRowHeight = computed(() => (this.rowHeight() == 0 ? '' : this.rowHeight()), ...(ngDevMode ? [{ debugName: "getRowHeight" }] : []));
|
|
971
|
+
this.getItemSize = computed(() => this.rowHeight() !== 0 && this.itemSize() > this.rowHeight() ? this.rowHeight() : this.itemSize(), ...(ngDevMode ? [{ debugName: "getItemSize" }] : []));
|
|
972
|
+
this.docClientHeight = signal(this.doc.documentElement.clientHeight, ...(ngDevMode ? [{ debugName: "docClientHeight" }] : []));
|
|
973
|
+
this.headHeight = signal(0, ...(ngDevMode ? [{ debugName: "headHeight" }] : []));
|
|
974
|
+
this.captionHeight = signal(0, ...(ngDevMode ? [{ debugName: "captionHeight" }] : []));
|
|
975
|
+
this.footHeight = signal(0, ...(ngDevMode ? [{ debugName: "footHeight" }] : []));
|
|
976
|
+
this.paginationHeight = signal(0, ...(ngDevMode ? [{ debugName: "paginationHeight" }] : []));
|
|
977
|
+
this.checkboxDragging = signal(false, ...(ngDevMode ? [{ debugName: "checkboxDragging" }] : []));
|
|
978
978
|
this.bodyHeightSignal = computed(() => {
|
|
979
979
|
const adaptionHeight = this.adaptionHeight();
|
|
980
980
|
if (adaptionHeight && adaptionHeight > 0) {
|
|
@@ -992,21 +992,21 @@ class XTableBodyComponent extends XTableBodyProperty {
|
|
|
992
992
|
return this.scroll().y;
|
|
993
993
|
}
|
|
994
994
|
return this.bodyHeight();
|
|
995
|
-
});
|
|
995
|
+
}, ...(ngDevMode ? [{ debugName: "bodyHeightSignal" }] : []));
|
|
996
996
|
this.minBufferPxSignal = computed(() => {
|
|
997
997
|
const adaptionHeight = this.adaptionHeight();
|
|
998
998
|
if (adaptionHeight && adaptionHeight > 0) {
|
|
999
999
|
return this.bodyHeightSignal();
|
|
1000
1000
|
}
|
|
1001
1001
|
return this.minBufferPx();
|
|
1002
|
-
});
|
|
1002
|
+
}, ...(ngDevMode ? [{ debugName: "minBufferPxSignal" }] : []));
|
|
1003
1003
|
this.maxBufferPxSignal = computed(() => {
|
|
1004
1004
|
const adaptionHeight = this.adaptionHeight();
|
|
1005
1005
|
if (adaptionHeight && adaptionHeight > 0) {
|
|
1006
1006
|
return this.bodyHeightSignal() * 1.2;
|
|
1007
1007
|
}
|
|
1008
1008
|
return this.maxBufferPx();
|
|
1009
|
-
});
|
|
1009
|
+
}, ...(ngDevMode ? [{ debugName: "maxBufferPxSignal" }] : []));
|
|
1010
1010
|
effect(() => {
|
|
1011
1011
|
if (this.virtualBody()) {
|
|
1012
1012
|
this.virtualBody()['_scrollStrategy']['_minBufferPx'] = this.minBufferPxSignal();
|
|
@@ -1161,10 +1161,10 @@ class XTableBodyComponent extends XTableBodyProperty {
|
|
|
1161
1161
|
trackByItem(_index, item) {
|
|
1162
1162
|
return item.id;
|
|
1163
1163
|
}
|
|
1164
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
1165
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.
|
|
1164
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: XTableBodyComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1165
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.2.4", 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 data(); 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 data(); 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 @if (table.treeTable() && row.children && row.expanded) {\r\n <div class=\"x-table-children\" [class.x-table-expandTpl]=\"expandTpl()\">\r\n <x-table-body\r\n [data]=\"row.children\"\r\n [columns]=\"table.columns()\"\r\n [itemSize]=\"table.itemSize()\"\r\n [rowHeight]=\"table.rowHeight()\"\r\n [columnTpl]=\"table.bodyColumnTpl()\"\r\n [allowSelectRow]=\"table.allowSelectRow()\"\r\n [rowClass]=\"table.rowClass()\"\r\n [cellConfig]=\"table.cellConfig()?.tbody\"\r\n [(activatedRow)]=\"table.activatedRow\"\r\n [expandedAll]=\"expandedAll()\"\r\n [expandTpl]=\"expandTpl()\"\r\n [level]=\"row.level! + 1\"\r\n ></x-table-body>\r\n </div>\r\n }\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 @if (level() > 0 && expandTpl()) {\r\n <ng-container *xOutlet=\"expandTpl(); context: { $row: row, $index: i, $level: level() }\"></ng-container>\r\n } @else if (level() === 0 || !expandTpl()) {\r\n <ng-container *xOutlet=\"rowDefault; context: { row: row, i: i, level: level() }\"></ng-container>\r\n }\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: "component", type: XTableBodyComponent, selector: "x-table-body" }, { 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 }); }
|
|
1166
1166
|
}
|
|
1167
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
1167
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: XTableBodyComponent, decorators: [{
|
|
1168
1168
|
type: Component,
|
|
1169
1169
|
args: [{ selector: `${XTableBodyPrefix}`, imports: [
|
|
1170
1170
|
NgClass,
|
|
@@ -1187,49 +1187,49 @@ class XTableComponent extends XTableProperty {
|
|
|
1187
1187
|
this.elementRef = inject((ElementRef));
|
|
1188
1188
|
this.cdr = inject(ChangeDetectorRef);
|
|
1189
1189
|
this.unSubject = new Subject();
|
|
1190
|
-
this.classMap = computed(() => ({ [`${XTablePrefix}-row-size-${this.rowSize()}`]: !XIsEmpty(this.rowSize()) }));
|
|
1191
|
-
this.theads = signal([]);
|
|
1192
|
-
this.tfoot = signal(null);
|
|
1193
|
-
this.virtualBody = signal(null);
|
|
1190
|
+
this.classMap = computed(() => ({ [`${XTablePrefix}-row-size-${this.rowSize()}`]: !XIsEmpty(this.rowSize()) }), ...(ngDevMode ? [{ debugName: "classMap" }] : []));
|
|
1191
|
+
this.theads = signal([], ...(ngDevMode ? [{ debugName: "theads" }] : []));
|
|
1192
|
+
this.tfoot = signal(null, ...(ngDevMode ? [{ debugName: "tfoot" }] : []));
|
|
1193
|
+
this.virtualBody = signal(null, ...(ngDevMode ? [{ debugName: "virtualBody" }] : []));
|
|
1194
1194
|
this.theadsChange = [];
|
|
1195
|
-
this.scrollContentEle = signal(null);
|
|
1196
|
-
this.hasScrollY = signal(false);
|
|
1197
|
-
this.scrollYWidth = signal(0);
|
|
1198
|
-
this.hasScrollX = signal(false);
|
|
1199
|
-
this.scrollXHeight = signal(0);
|
|
1200
|
-
this.scrollXWidth = signal(null);
|
|
1201
|
-
this.scrollLeft = signal(0);
|
|
1202
|
-
this.scrollLeftMax = signal(false);
|
|
1203
|
-
this.scrollTop = signal(0);
|
|
1204
|
-
this.rowChecked = signal(null);
|
|
1205
|
-
this.headCheckboxList = signal([]);
|
|
1206
|
-
this.rowExpand = signal(null);
|
|
1207
|
-
this.headExpandList = signal([]);
|
|
1208
|
-
this.dataIsFunc = signal(false);
|
|
1209
|
-
this.getting = signal(false);
|
|
1210
|
-
this.tableData = signal([]);
|
|
1211
|
-
this.treeTableData = signal([]);
|
|
1212
|
-
this.checkedValues = signal({});
|
|
1213
|
-
this.indeterminate = signal('$$indeterminate');
|
|
1195
|
+
this.scrollContentEle = signal(null, ...(ngDevMode ? [{ debugName: "scrollContentEle" }] : []));
|
|
1196
|
+
this.hasScrollY = signal(false, ...(ngDevMode ? [{ debugName: "hasScrollY" }] : []));
|
|
1197
|
+
this.scrollYWidth = signal(0, ...(ngDevMode ? [{ debugName: "scrollYWidth" }] : []));
|
|
1198
|
+
this.hasScrollX = signal(false, ...(ngDevMode ? [{ debugName: "hasScrollX" }] : []));
|
|
1199
|
+
this.scrollXHeight = signal(0, ...(ngDevMode ? [{ debugName: "scrollXHeight" }] : []));
|
|
1200
|
+
this.scrollXWidth = signal(null, ...(ngDevMode ? [{ debugName: "scrollXWidth" }] : []));
|
|
1201
|
+
this.scrollLeft = signal(0, ...(ngDevMode ? [{ debugName: "scrollLeft" }] : []));
|
|
1202
|
+
this.scrollLeftMax = signal(false, ...(ngDevMode ? [{ debugName: "scrollLeftMax" }] : []));
|
|
1203
|
+
this.scrollTop = signal(0, ...(ngDevMode ? [{ debugName: "scrollTop" }] : []));
|
|
1204
|
+
this.rowChecked = signal(null, ...(ngDevMode ? [{ debugName: "rowChecked" }] : []));
|
|
1205
|
+
this.headCheckboxList = signal([], ...(ngDevMode ? [{ debugName: "headCheckboxList" }] : []));
|
|
1206
|
+
this.rowExpand = signal(null, ...(ngDevMode ? [{ debugName: "rowExpand" }] : []));
|
|
1207
|
+
this.headExpandList = signal([], ...(ngDevMode ? [{ debugName: "headExpandList" }] : []));
|
|
1208
|
+
this.dataIsFunc = signal(false, ...(ngDevMode ? [{ debugName: "dataIsFunc" }] : []));
|
|
1209
|
+
this.getting = signal(false, ...(ngDevMode ? [{ debugName: "getting" }] : []));
|
|
1210
|
+
this.tableData = signal([], ...(ngDevMode ? [{ debugName: "tableData" }] : []));
|
|
1211
|
+
this.treeTableData = signal([], ...(ngDevMode ? [{ debugName: "treeTableData" }] : []));
|
|
1212
|
+
this.checkedValues = signal({}, ...(ngDevMode ? [{ debugName: "checkedValues" }] : []));
|
|
1213
|
+
this.indeterminate = signal('$$indeterminate', ...(ngDevMode ? [{ debugName: "indeterminate" }] : []));
|
|
1214
1214
|
this.table = viewChild.required('table');
|
|
1215
|
-
this.caption = viewChild('caption');
|
|
1216
|
-
this.pagination = viewChild('pagination');
|
|
1217
|
-
this.stickyTopRightEle = viewChild('stickyTopRightEle');
|
|
1218
|
-
this.stickyBottomRightEle = viewChild('stickyBottomRightEle');
|
|
1219
|
-
this.headCom = viewChildren(XTableHeadComponent);
|
|
1220
|
-
this.bodyCom = viewChildren(XTableBodyComponent);
|
|
1221
|
-
this.footCom = viewChild(XTableFootComponent);
|
|
1222
|
-
this.getScrollLeft = computed(() => this.scrollLeft() > 0);
|
|
1223
|
-
this.getScrollTop = computed(() => this.scrollTop() > 0);
|
|
1224
|
-
this.getRowHeight = computed(() => (this.rowHeight() === 0 ? '' : this.rowHeight()));
|
|
1225
|
-
this.getStickyTopScrollTop = computed(() => (this.caption() ? this.caption().nativeElement.offsetHeight : 0));
|
|
1215
|
+
this.caption = viewChild('caption', ...(ngDevMode ? [{ debugName: "caption" }] : []));
|
|
1216
|
+
this.pagination = viewChild('pagination', ...(ngDevMode ? [{ debugName: "pagination" }] : []));
|
|
1217
|
+
this.stickyTopRightEle = viewChild('stickyTopRightEle', ...(ngDevMode ? [{ debugName: "stickyTopRightEle" }] : []));
|
|
1218
|
+
this.stickyBottomRightEle = viewChild('stickyBottomRightEle', ...(ngDevMode ? [{ debugName: "stickyBottomRightEle" }] : []));
|
|
1219
|
+
this.headCom = viewChildren(XTableHeadComponent, ...(ngDevMode ? [{ debugName: "headCom" }] : []));
|
|
1220
|
+
this.bodyCom = viewChildren(XTableBodyComponent, ...(ngDevMode ? [{ debugName: "bodyCom" }] : []));
|
|
1221
|
+
this.footCom = viewChild(XTableFootComponent, ...(ngDevMode ? [{ debugName: "footCom" }] : []));
|
|
1222
|
+
this.getScrollLeft = computed(() => this.scrollLeft() > 0, ...(ngDevMode ? [{ debugName: "getScrollLeft" }] : []));
|
|
1223
|
+
this.getScrollTop = computed(() => this.scrollTop() > 0, ...(ngDevMode ? [{ debugName: "getScrollTop" }] : []));
|
|
1224
|
+
this.getRowHeight = computed(() => (this.rowHeight() === 0 ? '' : this.rowHeight()), ...(ngDevMode ? [{ debugName: "getRowHeight" }] : []));
|
|
1225
|
+
this.getStickyTopScrollTop = computed(() => (this.caption() ? this.caption().nativeElement.offsetHeight : 0), ...(ngDevMode ? [{ debugName: "getStickyTopScrollTop" }] : []));
|
|
1226
1226
|
this.getStickyBottomScrollTop = computed(() => {
|
|
1227
1227
|
let top = 0;
|
|
1228
1228
|
if (this.footer() && this.tfoot()) {
|
|
1229
1229
|
top += this.tfoot().nativeElement.clientHeight + 1;
|
|
1230
1230
|
}
|
|
1231
1231
|
return top;
|
|
1232
|
-
});
|
|
1232
|
+
}, ...(ngDevMode ? [{ debugName: "getStickyBottomScrollTop" }] : []));
|
|
1233
1233
|
this.getStickyTopRightEleHeight = computed(() => {
|
|
1234
1234
|
if (this.stickyTopRightEle()) {
|
|
1235
1235
|
return this.stickyTopRightEle().nativeElement.offsetHeight;
|
|
@@ -1237,7 +1237,7 @@ class XTableComponent extends XTableProperty {
|
|
|
1237
1237
|
else {
|
|
1238
1238
|
return 0;
|
|
1239
1239
|
}
|
|
1240
|
-
});
|
|
1240
|
+
}, ...(ngDevMode ? [{ debugName: "getStickyTopRightEleHeight" }] : []));
|
|
1241
1241
|
this.getStickyBottomRightEleHeight = computed(() => {
|
|
1242
1242
|
if (this.stickyBottomRightEle()) {
|
|
1243
1243
|
return this.stickyBottomRightEle().nativeElement.offsetHeight;
|
|
@@ -1245,14 +1245,14 @@ class XTableComponent extends XTableProperty {
|
|
|
1245
1245
|
else {
|
|
1246
1246
|
return 0;
|
|
1247
1247
|
}
|
|
1248
|
-
});
|
|
1248
|
+
}, ...(ngDevMode ? [{ debugName: "getStickyBottomRightEleHeight" }] : []));
|
|
1249
1249
|
this.hasStickyTopRight = computed(() => this.showHeader() &&
|
|
1250
1250
|
(this.headerPosition() === 'top' || this.headerPosition() === 'top-bottom') &&
|
|
1251
|
-
this.columns().some((x) => Number(x.right) >= 0));
|
|
1252
|
-
this.hasStickyTopRightSearch = computed(() => !!this.headSearchTpl());
|
|
1251
|
+
this.columns().some((x) => Number(x.right) >= 0), ...(ngDevMode ? [{ debugName: "hasStickyTopRight" }] : []));
|
|
1252
|
+
this.hasStickyTopRightSearch = computed(() => !!this.headSearchTpl(), ...(ngDevMode ? [{ debugName: "hasStickyTopRightSearch" }] : []));
|
|
1253
1253
|
this.hasStickyBottomRight = computed(() => this.showHeader() &&
|
|
1254
1254
|
(this.headerPosition() === 'bottom' || this.headerPosition() === 'top-bottom') &&
|
|
1255
|
-
this.columns().some((x) => Number(x.right) >= 0));
|
|
1255
|
+
this.columns().some((x) => Number(x.right) >= 0), ...(ngDevMode ? [{ debugName: "hasStickyBottomRight" }] : []));
|
|
1256
1256
|
this.cellConfigSignal = computed(() => {
|
|
1257
1257
|
const cellConfig = this.cellConfig();
|
|
1258
1258
|
if (!cellConfig)
|
|
@@ -1284,9 +1284,9 @@ class XTableComponent extends XTableProperty {
|
|
|
1284
1284
|
return { gridTemplateColumns, cells };
|
|
1285
1285
|
};
|
|
1286
1286
|
return { thead: setRule(cellConfig.thead), tbody: setRule(cellConfig.tbody) };
|
|
1287
|
-
});
|
|
1288
|
-
this.tbodyHeight = signal(0);
|
|
1289
|
-
this.tbodyScrollHeight = signal(0);
|
|
1287
|
+
}, ...(ngDevMode ? [{ debugName: "cellConfigSignal" }] : []));
|
|
1288
|
+
this.tbodyHeight = signal(0, ...(ngDevMode ? [{ debugName: "tbodyHeight" }] : []));
|
|
1289
|
+
this.tbodyScrollHeight = signal(0, ...(ngDevMode ? [{ debugName: "tbodyScrollHeight" }] : []));
|
|
1290
1290
|
}
|
|
1291
1291
|
ngOnInit() {
|
|
1292
1292
|
this.setRowChecked();
|
|
@@ -1533,10 +1533,10 @@ class XTableComponent extends XTableProperty {
|
|
|
1533
1533
|
this.footCom()?.cdr.markForCheck();
|
|
1534
1534
|
this.cdr.markForCheck();
|
|
1535
1535
|
}
|
|
1536
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
1537
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.0.0", type: XTableComponent, isStandalone: true, selector: "x-table", 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-wrap-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 [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 [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-wrap-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 }); }
|
|
1536
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: XTableComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
1537
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.2.4", type: XTableComponent, isStandalone: true, selector: "x-table", 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-wrap-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 [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 [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-wrap-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 }); }
|
|
1538
1538
|
}
|
|
1539
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
1539
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: XTableComponent, decorators: [{
|
|
1540
1540
|
type: Component,
|
|
1541
1541
|
args: [{ selector: `${XTablePrefix}`, imports: [
|
|
1542
1542
|
NgClass,
|
|
@@ -1550,11 +1550,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0", ngImpor
|
|
|
1550
1550
|
}] });
|
|
1551
1551
|
|
|
1552
1552
|
class XTableModule {
|
|
1553
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
1554
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.
|
|
1555
|
-
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.
|
|
1553
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: XTableModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1554
|
+
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.2.4", ngImport: i0, type: XTableModule, imports: [XTableComponent, XTableHeadComponent, XTableBodyComponent, XTableFootComponent], exports: [XTableComponent] }); }
|
|
1555
|
+
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: XTableModule, imports: [XTableComponent, XTableHeadComponent, XTableBodyComponent] }); }
|
|
1556
1556
|
}
|
|
1557
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
1557
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: XTableModule, decorators: [{
|
|
1558
1558
|
type: NgModule,
|
|
1559
1559
|
args: [{
|
|
1560
1560
|
exports: [XTableComponent],
|