@sme.up/ketchup 6.8.0 → 7.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{f-button-229c63fd.js → f-button-293afb08.js} +1 -1
- package/dist/cjs/{f-cell-dd006395.js → f-cell-06b323ca.js} +11 -8
- package/dist/cjs/{f-chip-f2c369fd.js → f-chip-1c944c07.js} +2 -2
- package/dist/cjs/{f-image-847a6ddf.js → f-image-bfb4e4c9.js} +1 -1
- package/dist/cjs/{f-paginator-utils-cedc4b3e.js → f-paginator-utils-c9560cfd.js} +2 -2
- package/dist/cjs/{f-text-field-fe85187d.js → f-text-field-e99c5a26.js} +1 -1
- package/dist/cjs/ketchup.cjs.js +1 -1
- package/dist/cjs/kup-accordion.cjs.entry.js +2 -2
- package/dist/cjs/kup-autocomplete_26.cjs.entry.js +166 -23
- package/dist/cjs/kup-box.cjs.entry.js +7 -7
- package/dist/cjs/kup-calendar.cjs.entry.js +4 -4
- package/dist/cjs/kup-cell.cjs.entry.js +5 -5
- package/dist/cjs/kup-dash-list.cjs.entry.js +1 -1
- package/dist/cjs/kup-dash_2.cjs.entry.js +1 -1
- package/dist/cjs/kup-dashboard.cjs.entry.js +4 -4
- package/dist/cjs/kup-drawer.cjs.entry.js +1 -1
- package/dist/cjs/kup-echart.cjs.entry.js +1 -1
- package/dist/cjs/kup-family-tree.cjs.entry.js +3 -3
- package/dist/cjs/kup-iframe.cjs.entry.js +1 -1
- package/dist/cjs/kup-image-list.cjs.entry.js +6 -6
- package/dist/cjs/kup-lazy.cjs.entry.js +1 -1
- package/dist/cjs/kup-magic-box.cjs.entry.js +2 -2
- package/dist/cjs/{kup-manager-c53468cd.js → kup-manager-1e882e61.js} +7 -2
- package/dist/cjs/kup-nav-bar.cjs.entry.js +1 -1
- package/dist/cjs/kup-numeric-picker.cjs.entry.js +2 -2
- package/dist/cjs/kup-photo-frame.cjs.entry.js +1 -1
- package/dist/cjs/kup-probe.cjs.entry.js +1 -1
- package/dist/cjs/kup-qlik.cjs.entry.js +1 -1
- package/dist/cjs/kup-snackbar.cjs.entry.js +3 -3
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/assets/card.js +9 -2
- package/dist/collection/assets/data-table.js +4 -1
- package/dist/collection/components/kup-card/box/kup-card-box.js +114 -5
- package/dist/collection/components/kup-card/kup-card.css +171 -21
- package/dist/collection/components/kup-chip/kup-chip.js +2 -2
- package/dist/collection/components/kup-data-table/kup-data-table.js +10 -3
- package/dist/collection/components/kup-form/kup-form-declarations.js +3 -0
- package/dist/collection/components/kup-form/kup-form.js +56 -3
- package/dist/collection/f-components/f-cell/f-cell-declarations.js +2 -0
- package/dist/collection/f-components/f-cell/f-cell.js +7 -4
- package/dist/collection/managers/kup-data/kup-data-column-helper.js +4 -1
- package/dist/collection/utils/kup-column-menu/kup-column-menu.js +1 -1
- package/dist/components/index.d.ts +68 -0
- package/dist/components/index.js +48 -0
- package/dist/components/kup-accordion.d.ts +11 -0
- package/dist/components/kup-accordion.js +363 -0
- package/dist/components/kup-autocomplete.d.ts +11 -0
- package/dist/components/kup-autocomplete.js +6 -0
- package/dist/components/kup-autocomplete2.js +46145 -0
- package/dist/components/kup-badge.d.ts +11 -0
- package/dist/components/kup-badge.js +6 -0
- package/dist/components/kup-box.d.ts +11 -0
- package/dist/components/kup-box.js +6 -0
- package/dist/components/kup-box2.js +1412 -0
- package/dist/components/kup-button-list.d.ts +11 -0
- package/dist/components/kup-button-list.js +6 -0
- package/dist/components/kup-button.d.ts +11 -0
- package/dist/components/kup-button.js +6 -0
- package/dist/components/kup-calendar.d.ts +11 -0
- package/dist/components/kup-calendar.js +14818 -0
- package/dist/components/kup-card.d.ts +11 -0
- package/dist/components/kup-card.js +6 -0
- package/dist/components/kup-cell.d.ts +11 -0
- package/dist/components/kup-cell.js +332 -0
- package/dist/components/kup-chart.d.ts +11 -0
- package/dist/components/kup-chart.js +6 -0
- package/dist/components/kup-checkbox.d.ts +11 -0
- package/dist/components/kup-checkbox.js +6 -0
- package/dist/components/kup-chip.d.ts +11 -0
- package/dist/components/kup-chip.js +6 -0
- package/dist/components/kup-color-picker.d.ts +11 -0
- package/dist/components/kup-color-picker.js +6 -0
- package/dist/components/kup-combobox.d.ts +11 -0
- package/dist/components/kup-combobox.js +6 -0
- package/dist/components/kup-dash-list.d.ts +11 -0
- package/dist/components/kup-dash-list.js +275 -0
- package/dist/components/kup-dash.d.ts +11 -0
- package/dist/components/kup-dash.js +6 -0
- package/dist/components/kup-dash2.js +223 -0
- package/dist/components/kup-dashboard.d.ts +11 -0
- package/dist/components/kup-dashboard.js +559 -0
- package/dist/components/kup-data-table.d.ts +11 -0
- package/dist/components/kup-data-table.js +6 -0
- package/dist/components/kup-date-picker.d.ts +11 -0
- package/dist/components/kup-date-picker.js +6 -0
- package/dist/components/kup-drawer.d.ts +11 -0
- package/dist/components/kup-drawer.js +303 -0
- package/dist/components/kup-dropdown-button.d.ts +11 -0
- package/dist/components/kup-dropdown-button.js +6 -0
- package/dist/components/kup-echart.d.ts +11 -0
- package/dist/components/kup-echart.js +6 -0
- package/dist/components/kup-echart2.js +94317 -0
- package/dist/components/kup-family-tree.d.ts +11 -0
- package/dist/components/kup-family-tree.js +623 -0
- package/dist/components/kup-form.d.ts +11 -0
- package/dist/components/kup-form.js +6 -0
- package/dist/components/kup-gauge.d.ts +11 -0
- package/dist/components/kup-gauge.js +6 -0
- package/dist/components/kup-grid.d.ts +11 -0
- package/dist/components/kup-grid.js +6 -0
- package/dist/components/kup-grid2.js +256 -0
- package/dist/components/kup-iframe.d.ts +11 -0
- package/dist/components/kup-iframe.js +257 -0
- package/dist/components/kup-image-list.d.ts +11 -0
- package/dist/components/kup-image-list.js +416 -0
- package/dist/components/kup-image.d.ts +11 -0
- package/dist/components/kup-image.js +6 -0
- package/dist/components/kup-lazy.d.ts +11 -0
- package/dist/components/kup-lazy.js +352 -0
- package/dist/components/kup-list.d.ts +11 -0
- package/dist/components/kup-list.js +6 -0
- package/dist/components/kup-magic-box.d.ts +11 -0
- package/dist/components/kup-magic-box.js +470 -0
- package/dist/components/kup-nav-bar.d.ts +11 -0
- package/dist/components/kup-nav-bar.js +292 -0
- package/dist/components/kup-numeric-picker.d.ts +11 -0
- package/dist/components/kup-numeric-picker.js +536 -0
- package/dist/components/kup-photo-frame.d.ts +11 -0
- package/dist/components/kup-photo-frame.js +308 -0
- package/dist/components/kup-probe.d.ts +11 -0
- package/dist/components/kup-probe.js +403 -0
- package/dist/components/kup-progress-bar.d.ts +11 -0
- package/dist/components/kup-progress-bar.js +6 -0
- package/dist/components/kup-qlik.d.ts +11 -0
- package/dist/components/kup-qlik.js +302 -0
- package/dist/components/kup-radio.d.ts +11 -0
- package/dist/components/kup-radio.js +6 -0
- package/dist/components/kup-rating.d.ts +11 -0
- package/dist/components/kup-rating.js +6 -0
- package/dist/components/kup-snackbar.d.ts +11 -0
- package/dist/components/kup-snackbar.js +272 -0
- package/dist/components/kup-spinner.d.ts +11 -0
- package/dist/components/kup-spinner.js +6 -0
- package/dist/components/kup-switch.d.ts +11 -0
- package/dist/components/kup-switch.js +6 -0
- package/dist/components/kup-tab-bar.d.ts +11 -0
- package/dist/components/kup-tab-bar.js +6 -0
- package/dist/components/kup-text-field.d.ts +11 -0
- package/dist/components/kup-text-field.js +6 -0
- package/dist/components/kup-time-picker.d.ts +11 -0
- package/dist/components/kup-time-picker.js +6 -0
- package/dist/components/kup-tree.d.ts +11 -0
- package/dist/components/kup-tree.js +6 -0
- package/dist/esm/{f-button-d1aba968.js → f-button-4aad092d.js} +1 -1
- package/dist/esm/{f-cell-646406bb.js → f-cell-43ca8ab5.js} +11 -8
- package/dist/esm/{f-chip-d94e9e81.js → f-chip-94851217.js} +2 -2
- package/dist/esm/{f-image-57c88302.js → f-image-48a4b032.js} +1 -1
- package/dist/esm/{f-paginator-utils-2c865e9a.js → f-paginator-utils-fe00f75c.js} +2 -2
- package/dist/esm/{f-text-field-b0a1fea6.js → f-text-field-b6f9ce84.js} +1 -1
- package/dist/esm/ketchup.js +1 -1
- package/dist/esm/kup-accordion.entry.js +2 -2
- package/dist/esm/kup-autocomplete_26.entry.js +166 -23
- package/dist/esm/kup-box.entry.js +7 -7
- package/dist/esm/kup-calendar.entry.js +4 -4
- package/dist/esm/kup-cell.entry.js +5 -5
- package/dist/esm/kup-dash-list.entry.js +1 -1
- package/dist/esm/kup-dash_2.entry.js +1 -1
- package/dist/esm/kup-dashboard.entry.js +4 -4
- package/dist/esm/kup-drawer.entry.js +1 -1
- package/dist/esm/kup-echart.entry.js +1 -1
- package/dist/esm/kup-family-tree.entry.js +3 -3
- package/dist/esm/kup-iframe.entry.js +1 -1
- package/dist/esm/kup-image-list.entry.js +6 -6
- package/dist/esm/kup-lazy.entry.js +1 -1
- package/dist/esm/kup-magic-box.entry.js +2 -2
- package/dist/esm/{kup-manager-c0fbb180.js → kup-manager-07c9ba13.js} +7 -2
- package/dist/esm/kup-nav-bar.entry.js +1 -1
- package/dist/esm/kup-numeric-picker.entry.js +2 -2
- package/dist/esm/kup-photo-frame.entry.js +1 -1
- package/dist/esm/kup-probe.entry.js +1 -1
- package/dist/esm/kup-qlik.entry.js +1 -1
- package/dist/esm/kup-snackbar.entry.js +3 -3
- package/dist/esm/loader.js +1 -1
- package/dist/ketchup/ketchup.esm.js +1 -1
- package/dist/ketchup/{p-a1fe329f.entry.js → p-02be3dd2.entry.js} +1 -1
- package/dist/ketchup/{p-35e16ea2.entry.js → p-10281712.entry.js} +1 -1
- package/dist/ketchup/{p-b1da1ba7.entry.js → p-122f51a0.entry.js} +1 -1
- package/dist/ketchup/{p-e6f19333.entry.js → p-14aec9c8.entry.js} +1 -1
- package/dist/ketchup/{p-a992cf87.js → p-200c76a8.js} +1 -1
- package/dist/ketchup/{p-738685f9.entry.js → p-23f50851.entry.js} +1 -1
- package/dist/ketchup/{p-30766296.entry.js → p-2935f22d.entry.js} +1 -1
- package/dist/ketchup/{p-7c8c5444.entry.js → p-33429412.entry.js} +1 -1
- package/dist/ketchup/{p-596bdc10.entry.js → p-3a55568c.entry.js} +1 -1
- package/dist/ketchup/{p-cee3635a.entry.js → p-4c92f0a4.entry.js} +1 -1
- package/dist/ketchup/{p-a740352c.js → p-5781af8a.js} +1 -1
- package/dist/ketchup/{p-1914969e.entry.js → p-5f7da18e.entry.js} +1 -1
- package/dist/ketchup/{p-9214ef33.entry.js → p-69a9af60.entry.js} +1 -1
- package/dist/ketchup/{p-f43b445e.entry.js → p-7134b172.entry.js} +1 -1
- package/dist/ketchup/{p-980ed953.entry.js → p-772f4bb7.entry.js} +1 -1
- package/dist/ketchup/{p-72d4fa26.entry.js → p-79936744.entry.js} +1 -1
- package/dist/ketchup/{p-395675b8.js → p-86e4bfad.js} +1 -1
- package/dist/ketchup/p-8f8b5a08.entry.js +9 -0
- package/dist/ketchup/{p-250118e3.entry.js → p-94e3b109.entry.js} +1 -1
- package/dist/ketchup/{p-86154e2b.js → p-984a05ff.js} +1 -1
- package/dist/ketchup/{p-eb10958a.entry.js → p-9f759d8d.entry.js} +1 -1
- package/dist/ketchup/{p-351cecba.entry.js → p-ab6c66f7.entry.js} +1 -1
- package/dist/ketchup/{p-fa37e92e.entry.js → p-be7748e6.entry.js} +1 -1
- package/dist/ketchup/{p-61ff1761.js → p-c1a5ed6b.js} +1 -1
- package/dist/ketchup/p-e3b85cae.js +1 -0
- package/dist/ketchup/p-e8666a6d.js +1 -0
- package/dist/ketchup/{p-d422151a.entry.js → p-eab86c09.entry.js} +1 -1
- package/dist/ketchup/{p-991bd70d.entry.js → p-ec2d1c8c.entry.js} +1 -1
- package/dist/types/adoptedStyleSheet-shim.d.ts +3 -3
- package/dist/types/components/kup-box/kup-box-declarations.d.ts +9 -9
- package/dist/types/components/kup-card/box/kup-card-box.d.ts +24 -0
- package/dist/types/components/kup-form/kup-form-declarations.d.ts +4 -1
- package/dist/types/components/kup-form/kup-form.d.ts +11 -1
- package/dist/types/components.d.ts +21 -1
- package/dist/types/f-components/f-cell/f-cell-declarations.d.ts +2 -1
- package/package.json +1 -1
- package/dist/ketchup/p-3cf97e3a.js +0 -1
- package/dist/ketchup/p-d05ed931.entry.js +0 -9
- package/dist/ketchup/p-ecac6269.js +0 -1
|
@@ -77,22 +77,23 @@ export function create3(component) {
|
|
|
77
77
|
* @returns {VNode} 4th box layout virtual node.
|
|
78
78
|
*/
|
|
79
79
|
export function create4(component) {
|
|
80
|
+
var _a;
|
|
80
81
|
const cells = component.data.cell;
|
|
81
82
|
const columns = component.data.columns;
|
|
82
83
|
let image = null;
|
|
83
84
|
let value = null;
|
|
84
85
|
for (let index = 0; index < cells.length; index++) {
|
|
85
86
|
const cell = cells[index];
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
87
|
+
const isImage = dom.ketchup.objects.isImage(cell.obj) ||
|
|
88
|
+
dom.ketchup.objects.isIcon(cell.obj) ||
|
|
89
|
+
((_a = cell.shape) === null || _a === void 0 ? void 0 : _a.toUpperCase()) === FCellShapes.IMAGE;
|
|
90
|
+
if (!image && isImage) {
|
|
90
91
|
image = index;
|
|
91
92
|
if (!cell.data) {
|
|
92
93
|
cell.data = { resource: cell.value };
|
|
93
94
|
}
|
|
94
95
|
}
|
|
95
|
-
if (!value && !
|
|
96
|
+
if (!value && !isImage) {
|
|
96
97
|
value = index;
|
|
97
98
|
}
|
|
98
99
|
}
|
|
@@ -116,3 +117,111 @@ export function create4(component) {
|
|
|
116
117
|
};
|
|
117
118
|
return (h("div", { class: `box-layout-${component.layoutNumber}` }, h("div", { class: "container" }, h("div", { class: "image" }, h(FCell, Object.assign({}, imageProps))), h("div", { class: "value" }, h(FCell, Object.assign({}, valueProps))))));
|
|
118
119
|
}
|
|
120
|
+
/**
|
|
121
|
+
* 5th box card layout, image on the left and rows of text.
|
|
122
|
+
* @param {KupCard} component - Card component.
|
|
123
|
+
* @returns {VNode} 5th box layout virtual node.
|
|
124
|
+
*/
|
|
125
|
+
export function create5(component) {
|
|
126
|
+
var _a;
|
|
127
|
+
const cells = component.data.cell;
|
|
128
|
+
const columns = component.data.columns;
|
|
129
|
+
const rows = [];
|
|
130
|
+
let imageProps = null;
|
|
131
|
+
for (let index = 0; index < cells.length; index++) {
|
|
132
|
+
const cell = cells[index];
|
|
133
|
+
const column = component.data.columns[index];
|
|
134
|
+
const isImage = dom.ketchup.objects.isImage(cell.obj) ||
|
|
135
|
+
dom.ketchup.objects.isIcon(cell.obj) ||
|
|
136
|
+
((_a = cell.shape) === null || _a === void 0 ? void 0 : _a.toUpperCase()) === FCellShapes.IMAGE;
|
|
137
|
+
if (!imageProps && isImage) {
|
|
138
|
+
imageProps = {
|
|
139
|
+
cell: cells[index],
|
|
140
|
+
column: columns[index],
|
|
141
|
+
component: component,
|
|
142
|
+
density: FCellPadding.NONE,
|
|
143
|
+
renderKup: true,
|
|
144
|
+
row: { cells: { [columns[index].name]: cells[index] } },
|
|
145
|
+
wrapperClass: 'c-centered',
|
|
146
|
+
};
|
|
147
|
+
if (!cell.data) {
|
|
148
|
+
cell.data = { resource: cell.value };
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
else {
|
|
152
|
+
const props = {
|
|
153
|
+
cell: cell,
|
|
154
|
+
column: column,
|
|
155
|
+
component: component,
|
|
156
|
+
density: FCellPadding.NONE,
|
|
157
|
+
renderKup: true,
|
|
158
|
+
row: { cells: { [column.name]: cell } },
|
|
159
|
+
};
|
|
160
|
+
rows.push(h("tr", null, h("td", { class: "label" }, column.title), h("td", { class: `value` }, h(FCell, Object.assign({}, props)))));
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
return (h("div", { class: `box-layout-${component.layoutNumber}` }, h("div", { class: "container" }, imageProps ? (h("div", { class: "image" }, h(FCell, Object.assign({}, imageProps)))) : null, h("div", { class: "table" }, h("table", null, rows)))));
|
|
164
|
+
}
|
|
165
|
+
/**
|
|
166
|
+
* 6th box card layout, image on the left and vertical list of text.
|
|
167
|
+
* @param {KupCard} component - Card component.
|
|
168
|
+
* @returns {VNode} 6th box layout virtual node.
|
|
169
|
+
*/
|
|
170
|
+
export function create6(component) {
|
|
171
|
+
var _a;
|
|
172
|
+
const cells = component.data.cell;
|
|
173
|
+
const columns = component.data.columns;
|
|
174
|
+
const rows = [];
|
|
175
|
+
let image = null;
|
|
176
|
+
for (let index = 0; index < cells.length; index++) {
|
|
177
|
+
const cell = cells[index];
|
|
178
|
+
const column = component.data.columns[index];
|
|
179
|
+
const isImage = dom.ketchup.objects.isImage(cell.obj) ||
|
|
180
|
+
dom.ketchup.objects.isIcon(cell.obj) ||
|
|
181
|
+
((_a = cell.shape) === null || _a === void 0 ? void 0 : _a.toUpperCase()) === FCellShapes.IMAGE;
|
|
182
|
+
if (!image && isImage) {
|
|
183
|
+
image = index;
|
|
184
|
+
if (!cell.data) {
|
|
185
|
+
cell.data = { resource: cell.value };
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
else {
|
|
189
|
+
const props = {
|
|
190
|
+
cell: cell,
|
|
191
|
+
column: column,
|
|
192
|
+
component: component,
|
|
193
|
+
density: FCellPadding.NONE,
|
|
194
|
+
renderKup: true,
|
|
195
|
+
row: { cells: { [column.name]: cell } },
|
|
196
|
+
};
|
|
197
|
+
rows.push(h("tr", null, h("td", { class: "label" }, column.title)));
|
|
198
|
+
rows.push(h("tr", null, h("td", { class: `value` }, h(FCell, Object.assign({}, props)))));
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
const imageProps = {
|
|
202
|
+
cell: cells[image],
|
|
203
|
+
column: columns[image],
|
|
204
|
+
component: component,
|
|
205
|
+
density: FCellPadding.NONE,
|
|
206
|
+
renderKup: true,
|
|
207
|
+
row: { cells: { [columns[image].name]: cells[image] } },
|
|
208
|
+
wrapperClass: 'c-centered',
|
|
209
|
+
};
|
|
210
|
+
return (h("div", { class: `box-layout-${component.layoutNumber}` }, h("div", { class: "container" }, h("div", { class: "image" }, h(FCell, Object.assign({}, imageProps))), h("div", { class: "table" }, h("table", null, rows)))));
|
|
211
|
+
}
|
|
212
|
+
/**
|
|
213
|
+
* 7th box card layout, image above and rows of text.
|
|
214
|
+
* @param {KupCard} component - Card component.
|
|
215
|
+
* @returns {VNode} 7th box layout virtual node.
|
|
216
|
+
*/
|
|
217
|
+
export function create7(component) {
|
|
218
|
+
return create5(component);
|
|
219
|
+
}
|
|
220
|
+
/**
|
|
221
|
+
* 8th box card layout, image above and vertical list of text.
|
|
222
|
+
* @param {KupCard} component - Card component.
|
|
223
|
+
* @returns {VNode} 8th box layout virtual node.
|
|
224
|
+
*/
|
|
225
|
+
export function create8(component) {
|
|
226
|
+
return create6(component);
|
|
227
|
+
}
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
width: 50%;
|
|
15
15
|
}
|
|
16
16
|
.box-layout-1 .value {
|
|
17
|
-
padding: 0.5em;
|
|
18
17
|
font-weight: bold;
|
|
18
|
+
padding: 0.5em;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
.box-layout-2 {
|
|
@@ -54,6 +54,14 @@
|
|
|
54
54
|
.box-layout-3 .flex-container {
|
|
55
55
|
align-items: center;
|
|
56
56
|
display: flex;
|
|
57
|
+
justify-content: center;
|
|
58
|
+
width: 100%;
|
|
59
|
+
}
|
|
60
|
+
.box-layout-3 .flex-container:first-child {
|
|
61
|
+
justify-content: flex-start;
|
|
62
|
+
}
|
|
63
|
+
.box-layout-3 .flex-container:last-child {
|
|
64
|
+
justify-content: flex-end;
|
|
57
65
|
}
|
|
58
66
|
.box-layout-3 .label {
|
|
59
67
|
overflow: hidden;
|
|
@@ -88,14 +96,175 @@
|
|
|
88
96
|
width: 64px;
|
|
89
97
|
}
|
|
90
98
|
.box-layout-4 .value {
|
|
91
|
-
padding: 0.5em;
|
|
92
99
|
font-weight: bold;
|
|
100
|
+
padding-top: 0.5em;
|
|
93
101
|
}
|
|
94
102
|
.box-layout-4 .f-cell.c-centered .f-cell__content img,
|
|
95
103
|
.box-layout-4 .f-cell.c-centered .f-cell__content .f-image {
|
|
96
104
|
margin: 0;
|
|
97
105
|
}
|
|
98
106
|
|
|
107
|
+
.box-layout-5 {
|
|
108
|
+
background-color: var(--kup-background-color);
|
|
109
|
+
color: var(--kup-text-color);
|
|
110
|
+
display: flex;
|
|
111
|
+
font-size: var(--kup-font-size);
|
|
112
|
+
height: 100%;
|
|
113
|
+
padding: 1em 0.5em;
|
|
114
|
+
}
|
|
115
|
+
.box-layout-5 .container {
|
|
116
|
+
display: flex;
|
|
117
|
+
height: 100%;
|
|
118
|
+
margin: auto;
|
|
119
|
+
width: 100%;
|
|
120
|
+
}
|
|
121
|
+
.box-layout-5 .image {
|
|
122
|
+
display: flex;
|
|
123
|
+
height: 100%;
|
|
124
|
+
margin: auto;
|
|
125
|
+
width: 50%;
|
|
126
|
+
}
|
|
127
|
+
.box-layout-5 .label,
|
|
128
|
+
.box-layout-5 .value {
|
|
129
|
+
padding: 0.5em;
|
|
130
|
+
}
|
|
131
|
+
.box-layout-5 .label {
|
|
132
|
+
overflow: hidden;
|
|
133
|
+
text-align: right;
|
|
134
|
+
text-overflow: ellipsis;
|
|
135
|
+
white-space: nowrap;
|
|
136
|
+
}
|
|
137
|
+
.box-layout-5 .value {
|
|
138
|
+
font-weight: bold;
|
|
139
|
+
}
|
|
140
|
+
.box-layout-5 .table {
|
|
141
|
+
box-sizing: border-box;
|
|
142
|
+
padding: 1.25em;
|
|
143
|
+
}
|
|
144
|
+
.box-layout-5 .table,
|
|
145
|
+
.box-layout-5 table {
|
|
146
|
+
width: 100%;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.box-layout-6 {
|
|
150
|
+
background-color: var(--kup-background-color);
|
|
151
|
+
color: var(--kup-text-color);
|
|
152
|
+
display: flex;
|
|
153
|
+
font-size: var(--kup-font-size);
|
|
154
|
+
height: 100%;
|
|
155
|
+
padding: 1em 0.5em;
|
|
156
|
+
}
|
|
157
|
+
.box-layout-6 .container {
|
|
158
|
+
display: flex;
|
|
159
|
+
height: 100%;
|
|
160
|
+
margin: auto;
|
|
161
|
+
width: 100%;
|
|
162
|
+
}
|
|
163
|
+
.box-layout-6 .image {
|
|
164
|
+
display: flex;
|
|
165
|
+
height: 100%;
|
|
166
|
+
margin: auto;
|
|
167
|
+
width: 50%;
|
|
168
|
+
}
|
|
169
|
+
.box-layout-6 .label {
|
|
170
|
+
padding-bottom: 0.25em;
|
|
171
|
+
}
|
|
172
|
+
.box-layout-6 .value {
|
|
173
|
+
font-weight: bold;
|
|
174
|
+
padding-bottom: 1.25em;
|
|
175
|
+
}
|
|
176
|
+
.box-layout-6 tr:last-child .value {
|
|
177
|
+
padding-bottom: 0;
|
|
178
|
+
}
|
|
179
|
+
.box-layout-6 .table {
|
|
180
|
+
box-sizing: border-box;
|
|
181
|
+
display: flex;
|
|
182
|
+
height: max-content;
|
|
183
|
+
margin: auto;
|
|
184
|
+
padding: 1.25em;
|
|
185
|
+
}
|
|
186
|
+
.box-layout-6 .table,
|
|
187
|
+
.box-layout-6 table {
|
|
188
|
+
width: 100%;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
.box-layout-7 {
|
|
192
|
+
background-color: var(--kup-background-color);
|
|
193
|
+
color: var(--kup-text-color);
|
|
194
|
+
display: flex;
|
|
195
|
+
font-size: var(--kup-font-size);
|
|
196
|
+
height: 100%;
|
|
197
|
+
padding: 1em 0.5em;
|
|
198
|
+
}
|
|
199
|
+
.box-layout-7 .container {
|
|
200
|
+
height: 100%;
|
|
201
|
+
margin: auto;
|
|
202
|
+
width: 100%;
|
|
203
|
+
}
|
|
204
|
+
.box-layout-7 .image {
|
|
205
|
+
width: 100%;
|
|
206
|
+
}
|
|
207
|
+
.box-layout-7 .label,
|
|
208
|
+
.box-layout-7 .value {
|
|
209
|
+
padding: 0.25em;
|
|
210
|
+
}
|
|
211
|
+
.box-layout-7 .label {
|
|
212
|
+
overflow: hidden;
|
|
213
|
+
text-overflow: ellipsis;
|
|
214
|
+
white-space: nowrap;
|
|
215
|
+
}
|
|
216
|
+
.box-layout-7 .value {
|
|
217
|
+
font-weight: bold;
|
|
218
|
+
}
|
|
219
|
+
.box-layout-7 .table {
|
|
220
|
+
box-sizing: border-box;
|
|
221
|
+
padding: 1.25em;
|
|
222
|
+
padding-bottom: 0;
|
|
223
|
+
}
|
|
224
|
+
.box-layout-7 .table,
|
|
225
|
+
.box-layout-7 table {
|
|
226
|
+
width: 100%;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
.box-layout-8 {
|
|
230
|
+
background-color: var(--kup-background-color);
|
|
231
|
+
color: var(--kup-text-color);
|
|
232
|
+
display: flex;
|
|
233
|
+
font-size: var(--kup-font-size);
|
|
234
|
+
height: 100%;
|
|
235
|
+
padding: 1em 0.5em;
|
|
236
|
+
}
|
|
237
|
+
.box-layout-8 .container {
|
|
238
|
+
height: 100%;
|
|
239
|
+
margin: auto;
|
|
240
|
+
width: 100%;
|
|
241
|
+
}
|
|
242
|
+
.box-layout-8 .image {
|
|
243
|
+
width: 100%;
|
|
244
|
+
}
|
|
245
|
+
.box-layout-8 .label {
|
|
246
|
+
overflow: hidden;
|
|
247
|
+
padding-bottom: 0.25em;
|
|
248
|
+
text-overflow: ellipsis;
|
|
249
|
+
white-space: nowrap;
|
|
250
|
+
}
|
|
251
|
+
.box-layout-8 .value {
|
|
252
|
+
font-weight: bold;
|
|
253
|
+
padding-bottom: 1.25em;
|
|
254
|
+
}
|
|
255
|
+
.box-layout-8 tr:last-child .value {
|
|
256
|
+
padding-bottom: 0;
|
|
257
|
+
}
|
|
258
|
+
.box-layout-8 .table {
|
|
259
|
+
box-sizing: border-box;
|
|
260
|
+
padding: 1.25em;
|
|
261
|
+
padding-bottom: 0;
|
|
262
|
+
}
|
|
263
|
+
.box-layout-8 .table,
|
|
264
|
+
.box-layout-8 table {
|
|
265
|
+
width: 100%;
|
|
266
|
+
}
|
|
267
|
+
|
|
99
268
|
.built-in-layout-1 {
|
|
100
269
|
background-color: var(--kup-background-color);
|
|
101
270
|
border-radius: 4px;
|
|
@@ -2738,23 +2907,4 @@
|
|
|
2738
2907
|
}
|
|
2739
2908
|
.card-view.visible {
|
|
2740
2909
|
display: block;
|
|
2741
|
-
}
|
|
2742
|
-
|
|
2743
|
-
.dialog-layout-7 {
|
|
2744
|
-
background-color: var(--kup-background-color);
|
|
2745
|
-
box-shadow: 0 2px 1px -1px rgba(0, 0, 0, 0.2), 0 1px 1px 0 rgba(0, 0, 0, 0.14), 0 1px 3px 0 rgba(0, 0, 0, 0.12);
|
|
2746
|
-
display: flex;
|
|
2747
|
-
flex-direction: column;
|
|
2748
|
-
height: 100%;
|
|
2749
|
-
max-height: 95vh;
|
|
2750
|
-
max-width: 95vw;
|
|
2751
|
-
width: 100%;
|
|
2752
|
-
}
|
|
2753
|
-
.dialog-layout-7 .section-1 {
|
|
2754
|
-
max-height: 40vh;
|
|
2755
|
-
overflow: auto;
|
|
2756
|
-
}
|
|
2757
|
-
.dialog-layout-7 .section-2 {
|
|
2758
|
-
display: flex;
|
|
2759
|
-
justify-content: center;
|
|
2760
2910
|
}
|
|
@@ -109,7 +109,7 @@ export class KupChip {
|
|
|
109
109
|
const isChoice = this.type.toLowerCase() === FChipType.CHOICE;
|
|
110
110
|
let firstCheckedFound = false;
|
|
111
111
|
if (isChoice) {
|
|
112
|
-
for (let j = 0; j < this.data.length; j++) {
|
|
112
|
+
for (let j = 0; this.data && j < this.data.length; j++) {
|
|
113
113
|
if (this.data[j].checked && firstCheckedFound) {
|
|
114
114
|
this.data[j].checked = false;
|
|
115
115
|
let message = 'Found occurence of data(' +
|
|
@@ -154,7 +154,7 @@ export class KupChip {
|
|
|
154
154
|
? true
|
|
155
155
|
: false,
|
|
156
156
|
};
|
|
157
|
-
for (let j = 0; j < this.data.length; j++) {
|
|
157
|
+
for (let j = 0; this.data && j < this.data.length; j++) {
|
|
158
158
|
props.onBlur.push((chip) => this.onKupBlur(chip));
|
|
159
159
|
props.onClick.push((chip) => this.onKupClick(chip));
|
|
160
160
|
props.onExpansionClick.push((chip, e) => {
|
|
@@ -766,12 +766,15 @@ export class KupDataTable {
|
|
|
766
766
|
//this.identifyAndInitRows();
|
|
767
767
|
identify(this.getRows());
|
|
768
768
|
this.expandGroupsHandler();
|
|
769
|
-
if (document.
|
|
770
|
-
__classPrivateFieldSet(this, _KupDataTable_navBarHeight, document.
|
|
769
|
+
if (document.querySelector('.header')) {
|
|
770
|
+
__classPrivateFieldSet(this, _KupDataTable_navBarHeight, document.querySelector('.header').clientHeight, "f");
|
|
771
771
|
}
|
|
772
772
|
else {
|
|
773
773
|
__classPrivateFieldSet(this, _KupDataTable_navBarHeight, 0, "f");
|
|
774
774
|
}
|
|
775
|
+
if (document.querySelector('.topbar')) {
|
|
776
|
+
__classPrivateFieldSet(this, _KupDataTable_navBarHeight, __classPrivateFieldGet(this, _KupDataTable_navBarHeight, "f") + document.querySelector('.topbar').clientHeight, "f");
|
|
777
|
+
}
|
|
775
778
|
__classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_setObserver).call(this);
|
|
776
779
|
//this.recalculateRows();
|
|
777
780
|
// Detects is the browser is Safari. If needed, this function can be moved into an external file and then imported into components
|
|
@@ -3464,13 +3467,17 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
3464
3467
|
delete column.icon;
|
|
3465
3468
|
}
|
|
3466
3469
|
}, _KupDataTable_updateStickyHeaderSize = function _KupDataTable_updateStickyHeaderSize() {
|
|
3467
|
-
const navBar = document.
|
|
3470
|
+
const navBar = document.querySelector('.header');
|
|
3471
|
+
const topBar = document.querySelector('.topbar');
|
|
3468
3472
|
if (navBar) {
|
|
3469
3473
|
__classPrivateFieldSet(this, _KupDataTable_navBarHeight, navBar.clientHeight, "f");
|
|
3470
3474
|
}
|
|
3471
3475
|
else {
|
|
3472
3476
|
__classPrivateFieldSet(this, _KupDataTable_navBarHeight, 0, "f");
|
|
3473
3477
|
}
|
|
3478
|
+
if (topBar) {
|
|
3479
|
+
__classPrivateFieldSet(this, _KupDataTable_navBarHeight, __classPrivateFieldGet(this, _KupDataTable_navBarHeight, "f") + topBar.clientHeight, "f");
|
|
3480
|
+
}
|
|
3474
3481
|
if (__classPrivateFieldGet(this, _KupDataTable_stickyTheadRef, "f")) {
|
|
3475
3482
|
__classPrivateFieldGet(this, _KupDataTable_stickyTheadRef, "f").style.top = __classPrivateFieldGet(this, _KupDataTable_navBarHeight, "f") + 'px';
|
|
3476
3483
|
const widthTable = __classPrivateFieldGet(this, _KupDataTable_tableAreaRef, "f").offsetWidth;
|
|
@@ -7,7 +7,9 @@ export var KupFormProps;
|
|
|
7
7
|
KupFormProps["customStyle"] = "Custom style of the component.";
|
|
8
8
|
KupFormProps["data"] = "Actual data of the form.";
|
|
9
9
|
KupFormProps["hiddenSubmitButton"] = "Creates a hidden submit button in order to submit the form with enter.";
|
|
10
|
+
KupFormProps["labelPlacement"] = "Sets the label placement for 'all' fields in form";
|
|
10
11
|
KupFormProps["layout"] = "How the form will arrange its content.";
|
|
12
|
+
KupFormProps["submitCb"] = "Sets the callback function on submit form";
|
|
11
13
|
})(KupFormProps || (KupFormProps = {}));
|
|
12
14
|
export var KupFormLabelAlignment;
|
|
13
15
|
(function (KupFormLabelAlignment) {
|
|
@@ -21,6 +23,7 @@ export var KupFormLabelPlacement;
|
|
|
21
23
|
KupFormLabelPlacement["LEFT"] = "left";
|
|
22
24
|
KupFormLabelPlacement["HIDDEN"] = "hidden";
|
|
23
25
|
KupFormLabelPlacement["PLACEHOLDER"] = "placeholder";
|
|
26
|
+
KupFormLabelPlacement["WATERMARK"] = "watermark";
|
|
24
27
|
KupFormLabelPlacement["RIGHT"] = "right";
|
|
25
28
|
KupFormLabelPlacement["TOP"] = "top";
|
|
26
29
|
})(KupFormLabelPlacement || (KupFormLabelPlacement = {}));
|
|
@@ -19,7 +19,9 @@ export class KupForm {
|
|
|
19
19
|
this.customStyle = '';
|
|
20
20
|
this.data = null;
|
|
21
21
|
this.hiddenSubmitButton = false;
|
|
22
|
+
this.labelPlacement = KupFormLabelPlacement.LEFT;
|
|
22
23
|
this.layout = null;
|
|
24
|
+
this.submitCb = null;
|
|
23
25
|
}
|
|
24
26
|
/*-------------------------------------------------*/
|
|
25
27
|
/* W a t c h e r s */
|
|
@@ -153,7 +155,7 @@ export class KupForm {
|
|
|
153
155
|
form: true,
|
|
154
156
|
'form--column': !horizontal,
|
|
155
157
|
};
|
|
156
|
-
return (h("form", { class: classObj, name: this.rootElement.id }, formContent, this.hiddenSubmitButton ? (h(FButton, { buttonType: "submit", label: this.kupManager.language.translate(KupLanguageGeneric.CONFIRM), wrapperClass: "form__submit" })) : null));
|
|
158
|
+
return (h("form", { class: classObj, name: this.rootElement.id, onSubmit: this.submitCb }, formContent, this.hiddenSubmitButton ? (h(FButton, { buttonType: "submit", label: this.kupManager.language.translate(KupLanguageGeneric.CONFIRM), wrapperClass: "form__submit" })) : null));
|
|
157
159
|
}
|
|
158
160
|
renderSection(section, parent, row, visibleColumns) {
|
|
159
161
|
var _a;
|
|
@@ -198,7 +200,7 @@ export class KupForm {
|
|
|
198
200
|
});
|
|
199
201
|
}
|
|
200
202
|
const isGrid = !!section.columns;
|
|
201
|
-
const labelPlacement = ((_a = section === null || section === void 0 ? void 0 : section.label) === null || _a === void 0 ? void 0 : _a.placement) ||
|
|
203
|
+
const labelPlacement = ((_a = section === null || section === void 0 ? void 0 : section.label) === null || _a === void 0 ? void 0 : _a.placement) || this.labelPlacement;
|
|
202
204
|
const sectionClass = {
|
|
203
205
|
form__section: true,
|
|
204
206
|
'form__section--column': !isGrid && !section.horizontal,
|
|
@@ -275,10 +277,12 @@ export class KupForm {
|
|
|
275
277
|
};
|
|
276
278
|
const label = formField.label || column.title;
|
|
277
279
|
resetLabel();
|
|
278
|
-
|
|
280
|
+
const labelPlacement = ((_a = section === null || section === void 0 ? void 0 : section.label) === null || _a === void 0 ? void 0 : _a.placement) || this.labelPlacement;
|
|
281
|
+
switch (labelPlacement) {
|
|
279
282
|
case KupFormLabelPlacement.BOTTOM:
|
|
280
283
|
return [h("tr", null, fieldCell()), h("tr", null, labelCell(label))];
|
|
281
284
|
case KupFormLabelPlacement.PLACEHOLDER:
|
|
285
|
+
case KupFormLabelPlacement.WATERMARK:
|
|
282
286
|
setPlaceholderLabel();
|
|
283
287
|
case KupFormLabelPlacement.HIDDEN: {
|
|
284
288
|
if (section) {
|
|
@@ -500,6 +504,32 @@ export class KupForm {
|
|
|
500
504
|
"reflect": false,
|
|
501
505
|
"defaultValue": "false"
|
|
502
506
|
},
|
|
507
|
+
"labelPlacement": {
|
|
508
|
+
"type": "string",
|
|
509
|
+
"mutable": false,
|
|
510
|
+
"complexType": {
|
|
511
|
+
"original": "KupFormLabelPlacement",
|
|
512
|
+
"resolved": "KupFormLabelPlacement.BOTTOM | KupFormLabelPlacement.HIDDEN | KupFormLabelPlacement.LEFT | KupFormLabelPlacement.PLACEHOLDER | KupFormLabelPlacement.RIGHT | KupFormLabelPlacement.TOP | KupFormLabelPlacement.WATERMARK",
|
|
513
|
+
"references": {
|
|
514
|
+
"KupFormLabelPlacement": {
|
|
515
|
+
"location": "import",
|
|
516
|
+
"path": "./kup-form-declarations"
|
|
517
|
+
}
|
|
518
|
+
}
|
|
519
|
+
},
|
|
520
|
+
"required": false,
|
|
521
|
+
"optional": false,
|
|
522
|
+
"docs": {
|
|
523
|
+
"tags": [{
|
|
524
|
+
"name": "default",
|
|
525
|
+
"text": "KupFormLabelPlacement.LEFT"
|
|
526
|
+
}],
|
|
527
|
+
"text": "Sets the label placement for 'all' fields in form"
|
|
528
|
+
},
|
|
529
|
+
"attribute": "label-placement",
|
|
530
|
+
"reflect": false,
|
|
531
|
+
"defaultValue": "KupFormLabelPlacement.LEFT"
|
|
532
|
+
},
|
|
503
533
|
"layout": {
|
|
504
534
|
"type": "unknown",
|
|
505
535
|
"mutable": false,
|
|
@@ -523,6 +553,29 @@ export class KupForm {
|
|
|
523
553
|
"text": "How the form will arrange its content."
|
|
524
554
|
},
|
|
525
555
|
"defaultValue": "null"
|
|
556
|
+
},
|
|
557
|
+
"submitCb": {
|
|
558
|
+
"type": "unknown",
|
|
559
|
+
"mutable": false,
|
|
560
|
+
"complexType": {
|
|
561
|
+
"original": "(e: SubmitEvent) => unknown",
|
|
562
|
+
"resolved": "(e: SubmitEvent) => unknown",
|
|
563
|
+
"references": {
|
|
564
|
+
"SubmitEvent": {
|
|
565
|
+
"location": "global"
|
|
566
|
+
}
|
|
567
|
+
}
|
|
568
|
+
},
|
|
569
|
+
"required": false,
|
|
570
|
+
"optional": false,
|
|
571
|
+
"docs": {
|
|
572
|
+
"tags": [{
|
|
573
|
+
"name": "default",
|
|
574
|
+
"text": "null"
|
|
575
|
+
}],
|
|
576
|
+
"text": "Sets the callback function on submit form"
|
|
577
|
+
},
|
|
578
|
+
"defaultValue": "null"
|
|
526
579
|
}
|
|
527
580
|
};
|
|
528
581
|
}
|
|
@@ -9,6 +9,7 @@ export var FCellEvents;
|
|
|
9
9
|
FCellEvents["CLICK"] = "kup-cell-click";
|
|
10
10
|
FCellEvents["ICON_CLICK"] = "kup-cell-iconclick";
|
|
11
11
|
FCellEvents["INPUT"] = "kup-cell-input";
|
|
12
|
+
FCellEvents["KEYUP"] = "kup-cell-keyup";
|
|
12
13
|
FCellEvents["UPDATE"] = "kup-cell-update";
|
|
13
14
|
})(FCellEvents || (FCellEvents = {}));
|
|
14
15
|
/**
|
|
@@ -128,6 +129,7 @@ export const editableTypes = [
|
|
|
128
129
|
FCellTypes.COLOR_PICKER,
|
|
129
130
|
FCellTypes.COMBOBOX,
|
|
130
131
|
FCellTypes.DATE,
|
|
132
|
+
FCellTypes.LINK,
|
|
131
133
|
FCellTypes.NUMBER,
|
|
132
134
|
FCellTypes.RATING,
|
|
133
135
|
FCellTypes.STRING,
|
|
@@ -101,7 +101,7 @@ export const FCell = (props, children) => {
|
|
|
101
101
|
};
|
|
102
102
|
infoEl = h(FImage, Object.assign({}, fProps));
|
|
103
103
|
}
|
|
104
|
-
return (h("div", { class: classObj, "kup-get-cell-props": () => {
|
|
104
|
+
return (h("div", { onKeyUp: (e) => cellEvent(e, props, cellType, FCellEvents.KEYUP), class: classObj, "kup-get-cell-props": () => {
|
|
105
105
|
return props;
|
|
106
106
|
}, style: cell.style }, h("div", { class: "f-cell__content", style: cell.styleContent, title: cellTitle }, children && children.length > 0
|
|
107
107
|
? children
|
|
@@ -221,6 +221,7 @@ function setEditableCell(cellType, classObj, cell, column, props) {
|
|
|
221
221
|
return (h("kup-time-picker", Object.assign({ key: column.name + props.row.id, initialValue: cell.value }, cell.data, { class: isFullWidth(props) ? 'kup-full-width' : '', "onkup-timepicker-change": (e) => cellEvent(e, props, cellType, FCellEvents.UPDATE), "onkup-timepicker-input": (e) => cellEvent(e, props, cellType, FCellEvents.INPUT) })));
|
|
222
222
|
case FCellTypes.NUMBER:
|
|
223
223
|
classObj[FCellClasses.C_RIGHT_ALIGNED] = true;
|
|
224
|
+
case FCellTypes.LINK:
|
|
224
225
|
case FCellTypes.STRING:
|
|
225
226
|
return (h(FTextField, Object.assign({ inputType: cellType === FCellTypes.NUMBER ? 'number' : null, fullWidth: isFullWidth(props) ? true : false }, cell.data, { icon: cell.icon ? cell.icon : column.icon ? column.icon : null, value: cellType === FCellTypes.NUMBER
|
|
226
227
|
? stringToNumber(cell.value).toString()
|
|
@@ -385,10 +386,12 @@ function cellEvent(e, props, cellType, cellEventName) {
|
|
|
385
386
|
},
|
|
386
387
|
});
|
|
387
388
|
comp.rootElement.dispatchEvent(cellEvent);
|
|
388
|
-
|
|
389
|
-
|
|
389
|
+
if (cellEventName === FCellEvents.UPDATE) {
|
|
390
|
+
try {
|
|
391
|
+
comp.refresh();
|
|
392
|
+
}
|
|
393
|
+
catch (error) { }
|
|
390
394
|
}
|
|
391
|
-
catch (error) { }
|
|
392
395
|
}
|
|
393
396
|
}
|
|
394
397
|
function isAutoCentered(props) {
|
|
@@ -9,10 +9,13 @@ const dom = document.documentElement;
|
|
|
9
9
|
* @returns {Column[]} Columns matching the criteria.
|
|
10
10
|
*/
|
|
11
11
|
export function findColumns(dataset, filters) {
|
|
12
|
+
const result = [];
|
|
13
|
+
if (!dataset) {
|
|
14
|
+
return result;
|
|
15
|
+
}
|
|
12
16
|
const columns = dataset.columns
|
|
13
17
|
? dataset.columns
|
|
14
18
|
: dataset;
|
|
15
|
-
const result = [];
|
|
16
19
|
for (let index = 0; index < columns.length; index++) {
|
|
17
20
|
const column = columns[index];
|
|
18
21
|
for (const key in filters) {
|
|
@@ -205,7 +205,7 @@ export class KupColumnMenu {
|
|
|
205
205
|
*/
|
|
206
206
|
prepChip(comp, column) {
|
|
207
207
|
let props = [];
|
|
208
|
-
const chipProps = {};
|
|
208
|
+
const chipProps = { data: [] };
|
|
209
209
|
if (column.children) {
|
|
210
210
|
const chipData = [];
|
|
211
211
|
for (let index = 0; index < column.children.length; index++) {
|