@sme.up/ketchup 6.0.0 → 6.2.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/{cell-utils-a78d6fac.js → cell-utils-fe64a28c.js} +2 -2
- package/dist/cjs/{f-button-ac179257.js → f-button-5b69d882.js} +4 -4
- package/dist/cjs/f-cell-3a740c48.js +418 -0
- package/dist/cjs/f-checkbox-57443ca3.js +29 -0
- package/dist/cjs/{f-chip-b00897d7.js → f-chip-02e83f82.js} +3 -3
- package/dist/cjs/{f-image-89f25556.js → f-image-2a61ece2.js} +2 -2
- package/dist/cjs/{f-paginator-utils-8fa501b3.js → f-paginator-utils-09126bdd.js} +5 -5
- package/dist/cjs/{f-text-field-e1e45ade.js → f-text-field-9ee20a67.js} +3 -3
- package/dist/cjs/{index-eb556444.js → index-06b131ea.js} +6 -4
- package/dist/cjs/ketchup.cjs.js +3 -3
- package/dist/cjs/kup-accordion.cjs.entry.js +4 -4
- package/dist/cjs/kup-autocomplete_25.cjs.entry.js +209 -193
- package/dist/cjs/kup-box.cjs.entry.js +1306 -0
- package/dist/cjs/kup-calendar.cjs.entry.js +7 -7
- package/dist/cjs/kup-cell.cjs.entry.js +10 -9
- package/dist/cjs/kup-dash-list.cjs.entry.js +4 -4
- package/dist/cjs/kup-dash_2.cjs.entry.js +4 -7
- package/dist/cjs/{kup-form-editor.cjs.entry.js → kup-dashboard.cjs.entry.js} +123 -148
- package/dist/cjs/kup-drawer.cjs.entry.js +4 -4
- package/dist/cjs/{kup-box_2.cjs.entry.js → kup-echart.cjs.entry.js} +53 -1338
- package/dist/cjs/kup-family-tree.cjs.entry.js +410 -0
- package/dist/cjs/kup-form.cjs.entry.js +480 -0
- package/dist/cjs/kup-iframe.cjs.entry.js +3 -3
- package/dist/cjs/kup-image-list.cjs.entry.js +73 -11
- package/dist/cjs/kup-lazy.cjs.entry.js +4 -4
- package/dist/cjs/kup-magic-box.cjs.entry.js +4 -4
- package/dist/cjs/{kup-manager-7a941909.js → kup-manager-02acbb37.js} +407 -7
- package/dist/cjs/kup-nav-bar.cjs.entry.js +3 -3
- package/dist/cjs/kup-numeric-picker.cjs.entry.js +3 -3
- package/dist/cjs/kup-photo-frame.cjs.entry.js +5 -5
- package/dist/cjs/kup-probe.cjs.entry.js +2 -2
- package/dist/cjs/kup-qlik.cjs.entry.js +2 -2
- package/dist/cjs/kup-snackbar.cjs.entry.js +5 -5
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/{utils-6287d878.js → utils-4b208b48.js} +1 -1
- package/dist/collection/assets/dashboard.js +113 -0
- package/dist/collection/assets/data-table.js +15 -0
- package/dist/collection/assets/family-tree.js +2437 -0
- package/dist/collection/assets/form.js +433 -0
- package/dist/collection/assets/grid.js +17 -0
- package/dist/collection/assets/index.js +14 -6
- package/dist/collection/collection-manifest.json +4 -3
- package/dist/collection/components/kup-autocomplete/kup-autocomplete.js +135 -129
- package/dist/collection/components/kup-box/kup-box.js +13 -2
- package/dist/collection/components/kup-button/kup-button.js +1 -0
- package/dist/collection/components/kup-combobox/kup-combobox.js +16 -13
- package/dist/collection/components/kup-dashboard/kup-dashboard-declarations.js +10 -0
- package/dist/collection/components/{kup-form-editor/kup-form-editor.css → kup-dashboard/kup-dashboard.css} +7 -6
- package/dist/collection/components/{kup-form-editor/kup-form-editor.js → kup-dashboard/kup-dashboard.js} +148 -149
- package/dist/collection/components/kup-data-table/kup-data-table.js +7 -6
- package/dist/collection/components/kup-drawer/kup-drawer.css +5 -8
- package/dist/collection/components/kup-dropdown-button/kup-dropdown-button.js +1 -0
- package/dist/collection/components/kup-family-tree/kup-family-tree-declarations.js +12 -0
- package/dist/collection/components/kup-family-tree/kup-family-tree.css +101 -0
- package/dist/collection/components/kup-family-tree/kup-family-tree.js +666 -0
- package/dist/collection/components/kup-form/kup-form-declarations.js +25 -0
- package/dist/collection/components/kup-form/kup-form.css +99 -0
- package/dist/collection/components/kup-form/kup-form.js +647 -0
- package/dist/collection/components/kup-grid/kup-grid.js +1 -4
- package/dist/collection/components/kup-image-list/kup-image-list-state.js +9 -0
- package/dist/collection/components/kup-image-list/kup-image-list.css +0 -6
- package/dist/collection/components/kup-image-list/kup-image-list.js +113 -1
- package/dist/collection/components/kup-lazy/kup-lazy.css +13 -6
- package/dist/collection/components/kup-list/kup-list-helper.js +9 -3
- package/dist/collection/components/kup-photo-frame/kup-photo-frame.css +13 -3
- package/dist/collection/components/kup-photo-frame/kup-photo-frame.js +1 -1
- package/dist/collection/components/kup-text-field/kup-text-field-declarations.js +3 -0
- package/dist/collection/components/kup-text-field/kup-text-field.js +27 -0
- package/dist/collection/components/kup-time-picker/kup-time-picker.js +0 -6
- package/dist/collection/components/kup-tree/kup-tree.js +10 -4
- package/dist/collection/f-components/f-button/f-button.js +2 -2
- package/dist/collection/f-components/f-cell/f-cell-declarations.js +5 -1
- package/dist/collection/f-components/f-cell/f-cell.js +34 -114
- package/dist/collection/f-components/f-text-field/f-text-field.js +1 -1
- package/dist/collection/managers/kup-data/kup-data-node-helper.js +69 -0
- package/dist/collection/managers/kup-data/kup-data.js +109 -1
- package/dist/collection/managers/kup-language/kup-language-declarations.js +11 -0
- package/dist/collection/managers/kup-objects/kup-objects.js +10 -0
- package/dist/collection/managers/kup-theme/kup-theme-declarations.js +20 -3
- package/dist/collection/types/GenericTypes.js +3 -2
- package/dist/esm/{cell-utils-964da6b5.js → cell-utils-cb5d4149.js} +2 -2
- package/dist/esm/{f-button-871a544b.js → f-button-fd44ef70.js} +4 -4
- package/dist/esm/{f-cell-521ef17a.js → f-cell-7b159a22.js} +48 -283
- package/dist/esm/f-checkbox-c51c4a75.js +27 -0
- package/dist/esm/{f-chip-1dda722f.js → f-chip-c2e4c522.js} +3 -3
- package/dist/esm/{f-image-c468d8ae.js → f-image-2ab4b9aa.js} +2 -2
- package/dist/esm/{f-paginator-utils-7dff8ff0.js → f-paginator-utils-ef537d82.js} +5 -5
- package/dist/esm/{f-text-field-d6c61c73.js → f-text-field-41c575eb.js} +3 -3
- package/dist/esm/{index-baeab1ac.js → index-ad6ab214.js} +6 -4
- package/dist/esm/ketchup.js +3 -3
- package/dist/esm/kup-accordion.entry.js +4 -4
- package/dist/esm/kup-autocomplete_25.entry.js +199 -183
- package/dist/esm/kup-box.entry.js +1302 -0
- package/dist/esm/kup-calendar.entry.js +7 -7
- package/dist/esm/kup-cell.entry.js +9 -8
- package/dist/esm/kup-dash-list.entry.js +4 -4
- package/dist/esm/kup-dash_2.entry.js +4 -7
- package/dist/esm/{kup-form-editor.entry.js → kup-dashboard.entry.js} +123 -148
- package/dist/esm/kup-drawer.entry.js +4 -4
- package/dist/esm/{kup-box_2.entry.js → kup-echart.entry.js} +54 -1338
- package/dist/esm/kup-family-tree.entry.js +406 -0
- package/dist/esm/kup-form.entry.js +476 -0
- package/dist/esm/kup-iframe.entry.js +3 -3
- package/dist/esm/kup-image-list.entry.js +72 -10
- package/dist/esm/kup-lazy.entry.js +4 -4
- package/dist/esm/kup-magic-box.entry.js +4 -4
- package/dist/esm/{kup-manager-58b075b4.js → kup-manager-22a475e6.js} +404 -8
- package/dist/esm/kup-nav-bar.entry.js +3 -3
- package/dist/esm/kup-numeric-picker.entry.js +3 -3
- package/dist/esm/kup-photo-frame.entry.js +5 -5
- package/dist/esm/kup-probe.entry.js +2 -2
- package/dist/esm/kup-qlik.entry.js +2 -2
- package/dist/esm/kup-snackbar.entry.js +5 -5
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{utils-d7e4b3c2.js → utils-2c1f4122.js} +1 -1
- package/dist/ketchup/ketchup.esm.js +1 -1
- package/dist/ketchup/p-06c6cc68.js +1 -0
- package/dist/ketchup/{p-3c11e615.entry.js → p-0dacd4bc.entry.js} +1 -1
- package/dist/ketchup/{p-fac1a08b.entry.js → p-1959f835.entry.js} +1 -1
- package/dist/ketchup/p-1c44dc62.entry.js +1 -0
- package/dist/ketchup/{p-f09f2f98.entry.js → p-264b1b19.entry.js} +1 -1
- package/dist/ketchup/p-38d7584e.js +1 -0
- package/dist/ketchup/{p-f71a1675.entry.js → p-42080355.entry.js} +1 -1
- package/dist/ketchup/p-4bc9f98b.entry.js +1 -0
- package/dist/ketchup/p-578583db.entry.js +1 -0
- package/dist/ketchup/p-5866d507.entry.js +1 -0
- package/dist/ketchup/p-61059e9d.entry.js +9 -0
- package/dist/ketchup/{p-a615a92b.entry.js → p-664be494.entry.js} +1 -1
- package/dist/ketchup/{p-d2ee56dd.entry.js → p-67cd575d.entry.js} +1 -1
- package/dist/ketchup/{p-e0035c58.js → p-682a367a.js} +1 -1
- package/dist/ketchup/p-6ccf7eb2.entry.js +1 -0
- package/dist/ketchup/p-7230ab97.entry.js +1 -0
- package/dist/ketchup/p-752b4cef.entry.js +1 -0
- package/dist/ketchup/{p-954cc340.entry.js → p-7de3e7ac.entry.js} +1 -1
- package/dist/ketchup/p-928c5c36.js +1 -0
- package/dist/ketchup/{p-6dff70f8.entry.js → p-9b36497d.entry.js} +1 -1
- package/dist/ketchup/{p-99e0d768.entry.js → p-b982d137.entry.js} +1 -1
- package/dist/ketchup/{p-8cdf61a4.js → p-c0219e5e.js} +1 -1
- package/dist/ketchup/p-c55fd0a7.entry.js +1 -0
- package/dist/ketchup/p-cd5cfa7c.js +1 -0
- package/dist/ketchup/p-d154b3a0.entry.js +1 -0
- package/dist/ketchup/p-d2affb6f.entry.js +27 -0
- package/dist/ketchup/p-d3b542b3.js +2 -0
- package/dist/ketchup/{p-7454cb92.js → p-d6c12c6c.js} +1 -1
- package/dist/ketchup/p-da0eab60.entry.js +1 -0
- package/dist/ketchup/{p-7eff4eee.js → p-dc62a30f.js} +1 -1
- package/dist/ketchup/p-e9366aaf.entry.js +39 -0
- package/dist/ketchup/{p-44ec4f03.js → p-edae3076.js} +1 -1
- package/dist/ketchup/p-fc2b1229.js +30 -0
- package/dist/types/components/kup-autocomplete/kup-autocomplete.d.ts +1 -16
- package/dist/types/components/{kup-form-editor/kup-form-editor-declarations.d.ts → kup-dashboard/kup-dashboard-declarations.d.ts} +9 -27
- package/dist/types/components/{kup-form-editor/kup-form-editor.d.ts → kup-dashboard/kup-dashboard.d.ts} +12 -9
- package/dist/types/components/kup-family-tree/kup-family-tree-declarations.d.ts +33 -0
- package/dist/types/components/kup-family-tree/kup-family-tree.d.ts +61 -0
- package/dist/types/components/kup-form/kup-form-declarations.d.ts +60 -0
- package/dist/types/components/kup-form/kup-form.d.ts +63 -0
- package/dist/types/components/kup-image-list/kup-image-list-state.d.ts +6 -0
- package/dist/types/components/kup-image-list/kup-image-list.d.ts +17 -0
- package/dist/types/components/kup-text-field/kup-text-field-declarations.d.ts +3 -0
- package/dist/types/components/kup-text-field/kup-text-field.d.ts +5 -0
- package/dist/types/components/kup-time-picker/kup-time-picker.d.ts +0 -6
- package/dist/types/components/kup-tree/kup-tree-declarations.d.ts +2 -0
- package/dist/types/components.d.ts +460 -241
- package/dist/types/f-components/f-cell/f-cell-declarations.d.ts +4 -1
- package/dist/types/f-components/f-text-field/f-text-field-declarations.d.ts +1 -0
- package/dist/types/managers/kup-data/kup-data-declarations.d.ts +8 -0
- package/dist/types/managers/kup-data/kup-data-node-helper.d.ts +15 -1
- package/dist/types/managers/kup-data/kup-data.d.ts +7 -1
- package/dist/types/managers/kup-language/kup-language-declarations.d.ts +11 -1
- package/dist/types/managers/kup-objects/kup-objects.d.ts +6 -0
- package/dist/types/types/GenericTypes.d.ts +3 -2
- package/package.json +2 -2
- package/dist/cjs/f-cell-69294bca.js +0 -653
- package/dist/cjs/kup-field.cjs.entry.js +0 -241
- package/dist/collection/assets/form-editor.js +0 -338
- package/dist/collection/components/kup-field/kup-field-declarations.js +0 -15
- package/dist/collection/components/kup-field/kup-field.css +0 -48
- package/dist/collection/components/kup-field/kup-field.js +0 -514
- package/dist/collection/components/kup-form-editor/kup-form-editor-declarations.js +0 -23
- package/dist/esm/kup-field.entry.js +0 -237
- package/dist/ketchup/p-1ae66cc5.js +0 -1
- package/dist/ketchup/p-34b74425.js +0 -1
- package/dist/ketchup/p-4ffbc3ff.js +0 -1
- package/dist/ketchup/p-5264a3e6.entry.js +0 -1
- package/dist/ketchup/p-65974e48.entry.js +0 -1
- package/dist/ketchup/p-65b46587.entry.js +0 -40
- package/dist/ketchup/p-80968627.entry.js +0 -1
- package/dist/ketchup/p-a0f6e25c.entry.js +0 -1
- package/dist/ketchup/p-aca0e54b.js +0 -30
- package/dist/ketchup/p-b8939a8b.entry.js +0 -1
- package/dist/ketchup/p-bfc3bac7.js +0 -1
- package/dist/ketchup/p-c5ce8951.entry.js +0 -1
- package/dist/ketchup/p-cad1e097.entry.js +0 -9
- package/dist/ketchup/p-db71436b.entry.js +0 -27
- package/dist/ketchup/p-e1039cf2.entry.js +0 -1
- package/dist/ketchup/p-ea10176c.entry.js +0 -1
- package/dist/types/components/kup-field/kup-field-declarations.d.ts +0 -25
- package/dist/types/components/kup-field/kup-field.d.ts +0 -90
|
@@ -1,180 +1,26 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { h } from './index-
|
|
3
|
-
import { c as getCellValueForDisplay } from './cell-utils-
|
|
4
|
-
import { F as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
1
|
+
import { Y as editableTypes, Z as kupTypes, b as KupThemeColorValues, _ as FCellTypes, W as KupTagNames, $ as fullWidthFieldsComps, a0 as FCellClasses, a1 as autoCenterComps, a2 as FCellEvents } from './kup-manager-22a475e6.js';
|
|
2
|
+
import { h } from './index-ad6ab214.js';
|
|
3
|
+
import { c as getCellValueForDisplay } from './cell-utils-cb5d4149.js';
|
|
4
|
+
import { F as FCheckbox } from './f-checkbox-c51c4a75.js';
|
|
5
|
+
import { F as FTextField } from './f-text-field-41c575eb.js';
|
|
6
|
+
import { h as stringToNumber } from './utils-2c1f4122.js';
|
|
7
|
+
import { F as FImage } from './f-image-2ab4b9aa.js';
|
|
8
|
+
import { a as FChip } from './f-chip-c2e4c522.js';
|
|
8
9
|
|
|
9
10
|
/*-------------------------------------------------*/
|
|
10
11
|
/* C o m p o n e n t */
|
|
11
12
|
/*-------------------------------------------------*/
|
|
12
|
-
const
|
|
13
|
-
|
|
14
|
-
'data-indeterminate': props.indeterminate ? true : false,
|
|
15
|
-
};
|
|
16
|
-
const classObj = {
|
|
17
|
-
checkbox: true,
|
|
18
|
-
'checkbox--checked': props.checked && !props.indeterminate ? true : false,
|
|
19
|
-
'checkbox--disabled': props.disabled ? true : false,
|
|
20
|
-
'checkbox--indeterminate': props.indeterminate ? true : false,
|
|
21
|
-
};
|
|
22
|
-
return (h("div", Object.assign({ class: `f-checkbox ${props.danger ? 'kup-danger' : ''} ${props.info ? 'kup-info' : ''} ${props.secondary ? 'kup-secondary' : ''} ${props.success ? 'kup-success' : ''} ${props.warning ? 'kup-warning' : ''} ${props.wrapperClass ? props.wrapperClass : ''}` }, props.dataSet, { id: props.id, title: props.title }),
|
|
13
|
+
const FSwitch = (props) => {
|
|
14
|
+
return (h("div", Object.assign({ class: `f-switch ${props.danger ? 'kup-danger' : ''} ${props.info ? 'kup-info' : ''} ${props.secondary ? 'kup-secondary' : ''} ${props.success ? 'kup-success' : ''} ${props.warning ? 'kup-warning' : ''} ${props.wrapperClass ? props.wrapperClass : ''}` }, props.dataSet, { id: props.id, title: props.title }),
|
|
23
15
|
h("div", { class: `form-field ${props.leadingLabel ? 'form-field--align-end' : ''}` },
|
|
24
|
-
h("div", { class:
|
|
25
|
-
h("
|
|
26
|
-
h("div", { class: "
|
|
27
|
-
h("
|
|
28
|
-
h("
|
|
29
|
-
|
|
30
|
-
props.label ? h("label", null, props.label) : undefined)));
|
|
16
|
+
h("div", { class: `switch ${props.checked ? 'switch--checked' : ''} ${props.disabled ? 'switch--disabled' : ''}` },
|
|
17
|
+
h("div", { class: "switch__track" }),
|
|
18
|
+
h("div", { class: "switch__thumb-underlay" },
|
|
19
|
+
h("div", { class: "switch__thumb" },
|
|
20
|
+
h("input", { type: "checkbox", class: "switch__native-control", role: "switch", checked: props.checked, disabled: props.disabled, value: props.checked ? 'on' : 'off', onBlur: props.onBlur, onChange: props.onChange, onFocus: props.onFocus })))),
|
|
21
|
+
h("label", { onClick: props.onChange }, props.label))));
|
|
31
22
|
};
|
|
32
23
|
|
|
33
|
-
const autoAlignComps = [KupTagNames.DATA_TABLE, KupTagNames.TREE];
|
|
34
|
-
/**
|
|
35
|
-
* Supported cell events.
|
|
36
|
-
*/
|
|
37
|
-
var FCellEvents;
|
|
38
|
-
(function (FCellEvents) {
|
|
39
|
-
FCellEvents["CLICK"] = "kup-cell-click";
|
|
40
|
-
FCellEvents["ICON_CLICK"] = "kup-cell-iconclick";
|
|
41
|
-
FCellEvents["INPUT"] = "kup-cell-input";
|
|
42
|
-
FCellEvents["UPDATE"] = "kup-cell-update";
|
|
43
|
-
})(FCellEvents || (FCellEvents = {}));
|
|
44
|
-
/**
|
|
45
|
-
* Supported cell padding.
|
|
46
|
-
*/
|
|
47
|
-
var FCellPadding;
|
|
48
|
-
(function (FCellPadding) {
|
|
49
|
-
FCellPadding["DENSE"] = "dense";
|
|
50
|
-
FCellPadding["MEDIUM"] = "medium";
|
|
51
|
-
FCellPadding["NONE"] = "";
|
|
52
|
-
FCellPadding["WIDE"] = "wide";
|
|
53
|
-
})(FCellPadding || (FCellPadding = {}));
|
|
54
|
-
/**
|
|
55
|
-
* Supported cell CSS classes.
|
|
56
|
-
*/
|
|
57
|
-
var FCellClasses;
|
|
58
|
-
(function (FCellClasses) {
|
|
59
|
-
FCellClasses["BG_DANGER"] = "danger-bg";
|
|
60
|
-
FCellClasses["BG_GREEN"] = "green-bg";
|
|
61
|
-
FCellClasses["BG_GREY"] = "grey-bg";
|
|
62
|
-
FCellClasses["BG_ORANGE"] = "orange-bg";
|
|
63
|
-
FCellClasses["BG_PURPLE"] = "purple-bg";
|
|
64
|
-
FCellClasses["BG_SUCCESS"] = "success-bg";
|
|
65
|
-
FCellClasses["BG_TEAL"] = "teal-bg";
|
|
66
|
-
FCellClasses["BG_WARNING"] = "warning-bg";
|
|
67
|
-
FCellClasses["C_BG_DANGER"] = "c-danger-bg";
|
|
68
|
-
FCellClasses["C_BG_GREEN"] = "c-green-bg";
|
|
69
|
-
FCellClasses["C_BG_GREY"] = "c-grey-bg";
|
|
70
|
-
FCellClasses["C_BG_ORANGE"] = "c-orange-bg";
|
|
71
|
-
FCellClasses["C_BG_PURPLE"] = "c-purple-bg";
|
|
72
|
-
FCellClasses["C_BG_SUCCESS"] = "c-success-bg";
|
|
73
|
-
FCellClasses["C_BG_TEAL"] = "c-teal-bg";
|
|
74
|
-
FCellClasses["C_BG_WARNING"] = "c-warning-bg";
|
|
75
|
-
FCellClasses["C_CENTERED"] = "c-centered";
|
|
76
|
-
FCellClasses["C_FITTED"] = "c-fitted";
|
|
77
|
-
FCellClasses["C_PADDED"] = "c-padded";
|
|
78
|
-
FCellClasses["C_PADDED_HOR"] = "c-padded-hor";
|
|
79
|
-
FCellClasses["C_PADDED_VER"] = "c-padded-ver";
|
|
80
|
-
FCellClasses["C_ROUND"] = "c-round";
|
|
81
|
-
FCellClasses["C_RIGHT_ALIGNED"] = "c-right-aligned";
|
|
82
|
-
FCellClasses["C_SHAPED"] = "c-shaped";
|
|
83
|
-
FCellClasses["C_TEXT_VERTICAL"] = "c-vertical-text";
|
|
84
|
-
FCellClasses["CLICKABLE"] = "clickable";
|
|
85
|
-
FCellClasses["HOVER_DISPLAY"] = "display-on-hover";
|
|
86
|
-
FCellClasses["HOVER_EXPAND"] = "expand-on-hover";
|
|
87
|
-
FCellClasses["HOVER_REDUCE"] = "reduce-on-hover";
|
|
88
|
-
FCellClasses["INDICATOR_TOPRIGHT"] = "top-right-indicator";
|
|
89
|
-
FCellClasses["LINK"] = "link";
|
|
90
|
-
FCellClasses["MONOSPACE"] = "monospace";
|
|
91
|
-
FCellClasses["OBJ"] = "obj";
|
|
92
|
-
FCellClasses["SHAPED"] = "shaped";
|
|
93
|
-
FCellClasses["TEXT_DANGER"] = "danger-text";
|
|
94
|
-
FCellClasses["TEXT_INFO"] = "info-text";
|
|
95
|
-
FCellClasses["TEXT_PRIMARY"] = "primary-text";
|
|
96
|
-
FCellClasses["TEXT_PURPLE"] = "purple-text";
|
|
97
|
-
FCellClasses["TEXT_SECONDARY"] = "secondary-text";
|
|
98
|
-
FCellClasses["TEXT_STRONG"] = "strong-text";
|
|
99
|
-
FCellClasses["TEXT_SUCCESS"] = "success-text";
|
|
100
|
-
FCellClasses["TEXT_WARNING"] = "warning-text";
|
|
101
|
-
FCellClasses["UNDERLINED"] = "underlined";
|
|
102
|
-
})(FCellClasses || (FCellClasses = {}));
|
|
103
|
-
/**
|
|
104
|
-
* Supported cell shapes.
|
|
105
|
-
*/
|
|
106
|
-
var FCellShapes;
|
|
107
|
-
(function (FCellShapes) {
|
|
108
|
-
FCellShapes["AUTOCOMPLETE"] = "ACP";
|
|
109
|
-
FCellShapes["BUTTON_LIST"] = "BTN";
|
|
110
|
-
FCellShapes["CHART"] = "GRA";
|
|
111
|
-
FCellShapes["CHECKBOX"] = "CHK";
|
|
112
|
-
FCellShapes["CHIP"] = "CHI";
|
|
113
|
-
FCellShapes["COLOR_PICKER"] = "CLP";
|
|
114
|
-
FCellShapes["COMBOBOX"] = "CMB";
|
|
115
|
-
FCellShapes["EDITOR"] = "EDT";
|
|
116
|
-
FCellShapes["GAUGE"] = "GAU";
|
|
117
|
-
FCellShapes["IMAGE"] = "IMG";
|
|
118
|
-
FCellShapes["KNOB"] = "KNB";
|
|
119
|
-
FCellShapes["PROGRESS_BAR"] = "PGB";
|
|
120
|
-
FCellShapes["RADIO"] = "RAD";
|
|
121
|
-
FCellShapes["RATING"] = "RTG";
|
|
122
|
-
FCellShapes["TEXT_FIELD"] = "ITX";
|
|
123
|
-
})(FCellShapes || (FCellShapes = {}));
|
|
124
|
-
/**
|
|
125
|
-
* Supported cell types.
|
|
126
|
-
*/
|
|
127
|
-
var FCellTypes;
|
|
128
|
-
(function (FCellTypes) {
|
|
129
|
-
FCellTypes["AUTOCOMPLETE"] = "autocomplete";
|
|
130
|
-
FCellTypes["BAR"] = "bar";
|
|
131
|
-
FCellTypes["BUTTON"] = "button";
|
|
132
|
-
FCellTypes["BUTTON_LIST"] = "button-list";
|
|
133
|
-
FCellTypes["CHART"] = "chart";
|
|
134
|
-
FCellTypes["CHECKBOX"] = "checkbox";
|
|
135
|
-
FCellTypes["CHIP"] = "chips";
|
|
136
|
-
FCellTypes["COLOR_PICKER"] = "color-picker";
|
|
137
|
-
FCellTypes["COMBOBOX"] = "combobox";
|
|
138
|
-
FCellTypes["DATE"] = "date";
|
|
139
|
-
FCellTypes["DATETIME"] = "datetime";
|
|
140
|
-
FCellTypes["EDITOR"] = "editor";
|
|
141
|
-
FCellTypes["GAUGE"] = "gauge";
|
|
142
|
-
FCellTypes["ICON"] = "icon";
|
|
143
|
-
FCellTypes["IMAGE"] = "image";
|
|
144
|
-
FCellTypes["KNOB"] = "knob";
|
|
145
|
-
FCellTypes["LINK"] = "link";
|
|
146
|
-
FCellTypes["NUMBER"] = "number";
|
|
147
|
-
FCellTypes["PROGRESS_BAR"] = "progress-bar";
|
|
148
|
-
FCellTypes["RADIO"] = "radio";
|
|
149
|
-
FCellTypes["RATING"] = "rating";
|
|
150
|
-
FCellTypes["STRING"] = "string";
|
|
151
|
-
FCellTypes["TIME"] = "time";
|
|
152
|
-
})(FCellTypes || (FCellTypes = {}));
|
|
153
|
-
const editableTypes = [
|
|
154
|
-
FCellTypes.AUTOCOMPLETE,
|
|
155
|
-
FCellTypes.CHECKBOX,
|
|
156
|
-
FCellTypes.COLOR_PICKER,
|
|
157
|
-
FCellTypes.COMBOBOX,
|
|
158
|
-
FCellTypes.DATE,
|
|
159
|
-
FCellTypes.NUMBER,
|
|
160
|
-
FCellTypes.RATING,
|
|
161
|
-
FCellTypes.STRING,
|
|
162
|
-
FCellTypes.TIME,
|
|
163
|
-
];
|
|
164
|
-
const kupTypes = [
|
|
165
|
-
FCellTypes.BAR,
|
|
166
|
-
FCellTypes.BUTTON,
|
|
167
|
-
FCellTypes.BUTTON_LIST,
|
|
168
|
-
FCellTypes.CHART,
|
|
169
|
-
FCellTypes.CHIP,
|
|
170
|
-
FCellTypes.COLOR_PICKER,
|
|
171
|
-
FCellTypes.GAUGE,
|
|
172
|
-
FCellTypes.KNOB,
|
|
173
|
-
FCellTypes.PROGRESS_BAR,
|
|
174
|
-
FCellTypes.RADIO,
|
|
175
|
-
FCellTypes.RATING,
|
|
176
|
-
];
|
|
177
|
-
|
|
178
24
|
const dom = document.documentElement;
|
|
179
25
|
/*-------------------------------------------------*/
|
|
180
26
|
/* C o m p o n e n t */
|
|
@@ -193,7 +39,7 @@ const FCell = (props, children) => {
|
|
|
193
39
|
const hasObj = !dom.ketchup.objects.isEmptyKupObj(cell.obj);
|
|
194
40
|
const isEditable = cell.isEditable && props.editable ? true : false;
|
|
195
41
|
const valueToDisplay = props.previousValue !== cell.value ? cell.value : '';
|
|
196
|
-
const cellType =
|
|
42
|
+
const cellType = dom.ketchup.data.cell.getType(cell, shape);
|
|
197
43
|
const subcomponentProps = Object.assign({}, cell.data);
|
|
198
44
|
let cssClasses = cell.cssClass
|
|
199
45
|
? cell.cssClass
|
|
@@ -368,27 +214,28 @@ function setCellSizeKup(cellType, subcomponentProps, cell) {
|
|
|
368
214
|
function setEditableCell(cellType, classObj, cell, column, props) {
|
|
369
215
|
switch (cellType) {
|
|
370
216
|
case FCellTypes.AUTOCOMPLETE:
|
|
371
|
-
return (h("kup-autocomplete", Object.assign({}, cell.data, { class:
|
|
217
|
+
return (h("kup-autocomplete", Object.assign({ initialValue: cell.value }, cell.data, { class: isFullWidth(props) ? 'kup-full-width' : '', "onkup-autocomplete-change": (e) => cellEvent(e, props, cellType, FCellEvents.UPDATE), "onkup-autocomplete-input": (e) => cellEvent(e, props, cellType, FCellEvents.INPUT), "onkup-autocomplete-iconclick": (e) => cellEvent(e, props, cellType, FCellEvents.ICON_CLICK) })));
|
|
372
218
|
case FCellTypes.CHECKBOX:
|
|
373
|
-
if (
|
|
374
|
-
.tagName)) {
|
|
219
|
+
if (isAutoCentered(props)) {
|
|
375
220
|
classObj[FCellClasses.C_CENTERED] = true;
|
|
376
221
|
}
|
|
377
222
|
return (h(FCheckbox, Object.assign({}, cell.data, { onChange: (e) => cellEvent(e, props, cellType, FCellEvents.UPDATE) })));
|
|
378
223
|
case FCellTypes.COLOR_PICKER:
|
|
379
|
-
return (h("kup-color-picker", Object.assign({}, cell.data, { class:
|
|
224
|
+
return (h("kup-color-picker", Object.assign({ initialValue: cell.value }, cell.data, { class: isFullWidth(props) ? 'kup-full-width' : '', disabled: false, "onkup-colorpicker-change": (e) => cellEvent(e, props, cellType, FCellEvents.UPDATE) })));
|
|
380
225
|
case FCellTypes.COMBOBOX:
|
|
381
|
-
return (h("kup-combobox", Object.assign({}, cell.data, { class:
|
|
226
|
+
return (h("kup-combobox", Object.assign({ initialValue: cell.value }, cell.data, { class: isFullWidth(props) ? 'kup-full-width' : '', "onkup-combobox-change": (e) => cellEvent(e, props, cellType, FCellEvents.UPDATE), "onkup-combobox-input": (e) => cellEvent(e, props, cellType, FCellEvents.INPUT), "onkup-combobox-iconclick": (e) => cellEvent(e, props, cellType, FCellEvents.ICON_CLICK) })));
|
|
382
227
|
case FCellTypes.DATE:
|
|
383
|
-
return (h("kup-date-picker", Object.assign({ initialValue: cell.value }, cell.data, { class:
|
|
228
|
+
return (h("kup-date-picker", Object.assign({ initialValue: cell.value }, cell.data, { class: isFullWidth(props) ? 'kup-full-width' : '', "onkup-datepicker-change": (e) => cellEvent(e, props, cellType, FCellEvents.UPDATE), "onkup-datepicker-input": (e) => cellEvent(e, props, cellType, FCellEvents.INPUT) })));
|
|
384
229
|
case FCellTypes.RATING:
|
|
385
230
|
return (h("kup-rating", Object.assign({}, cell.data, { disabled: false, "onkup-rating-click": (e) => cellEvent(e, props, cellType, FCellEvents.UPDATE) })));
|
|
231
|
+
case FCellTypes.SWITCH:
|
|
232
|
+
return (h(FSwitch, Object.assign({}, cell.data, { disabled: false, onChange: (e) => cellEvent(e, props, cellType, FCellEvents.UPDATE) })));
|
|
386
233
|
case FCellTypes.TIME:
|
|
387
|
-
return (h("kup-time-picker", Object.assign({ initialValue: cell.value }, cell.data, { class:
|
|
234
|
+
return (h("kup-time-picker", Object.assign({ 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) })));
|
|
388
235
|
case FCellTypes.NUMBER:
|
|
389
236
|
classObj[FCellClasses.C_RIGHT_ALIGNED] = true;
|
|
390
237
|
case FCellTypes.STRING:
|
|
391
|
-
return (h(FTextField, Object.assign({}, cell.data, { icon: cell.icon ? cell.icon : column.icon ? column.icon : null, fullWidth: true, inputType: cellType === FCellTypes.NUMBER ? 'number' : null, value: cellType === FCellTypes.NUMBER
|
|
238
|
+
return (h(FTextField, Object.assign({}, cell.data, { icon: cell.icon ? cell.icon : column.icon ? column.icon : null, fullWidth: isFullWidth(props) ? true : false, inputType: cellType === FCellTypes.NUMBER ? 'number' : null, value: cellType === FCellTypes.NUMBER
|
|
392
239
|
? stringToNumber(cell.value).toString()
|
|
393
240
|
: cell.value, onChange: (e) => cellEvent(e, props, cellType, FCellEvents.UPDATE), onInput: (e) => cellEvent(e, props, cellType, FCellEvents.INPUT), onIconClick: (e) => cellEvent(e, props, cellType, FCellEvents.ICON_CLICK) })));
|
|
394
241
|
}
|
|
@@ -406,8 +253,7 @@ function setCell(cellType, subcomponentProps, content, classObj, cell, column, p
|
|
|
406
253
|
}
|
|
407
254
|
return content;
|
|
408
255
|
case FCellTypes.CHECKBOX:
|
|
409
|
-
if (
|
|
410
|
-
.tagName)) {
|
|
256
|
+
if (isAutoCentered(props)) {
|
|
411
257
|
classObj[FCellClasses.C_CENTERED] = true;
|
|
412
258
|
}
|
|
413
259
|
return (h(FImage, { resource: subcomponentProps.checked
|
|
@@ -417,8 +263,7 @@ function setCell(cellType, subcomponentProps, content, classObj, cell, column, p
|
|
|
417
263
|
return h("div", { innerHTML: cell.value });
|
|
418
264
|
case FCellTypes.ICON:
|
|
419
265
|
case FCellTypes.IMAGE:
|
|
420
|
-
if (
|
|
421
|
-
.tagName)) {
|
|
266
|
+
if (isAutoCentered(props)) {
|
|
422
267
|
classObj[FCellClasses.C_CENTERED] = true;
|
|
423
268
|
}
|
|
424
269
|
if (subcomponentProps.badgeData) {
|
|
@@ -434,13 +279,18 @@ function setCell(cellType, subcomponentProps, content, classObj, cell, column, p
|
|
|
434
279
|
if (cellValueNumber < 0) {
|
|
435
280
|
classObj[FCellClasses.TEXT_DANGER] = true;
|
|
436
281
|
}
|
|
437
|
-
if (
|
|
438
|
-
.tagName)) {
|
|
282
|
+
if (isAutoCentered(props)) {
|
|
439
283
|
classObj[FCellClasses.C_RIGHT_ALIGNED] = true;
|
|
440
284
|
}
|
|
441
285
|
return h("div", { class: "f-cell__text" }, cellValue);
|
|
442
286
|
}
|
|
443
287
|
return h("div", { class: "f-cell__text" }, content);
|
|
288
|
+
case FCellTypes.SWITCH:
|
|
289
|
+
if (isAutoCentered(props)) {
|
|
290
|
+
classObj[FCellClasses.C_CENTERED] = true;
|
|
291
|
+
}
|
|
292
|
+
subcomponentProps['disabled'] = true;
|
|
293
|
+
return h(FSwitch, Object.assign({}, subcomponentProps));
|
|
444
294
|
default:
|
|
445
295
|
return h("div", { class: "f-cell__text" }, content);
|
|
446
296
|
}
|
|
@@ -460,14 +310,12 @@ function setKupCell(cellType, classObj, subcomponentProps, cell, row, column, pr
|
|
|
460
310
|
h(FImage, Object.assign({}, subcomponentProps))));
|
|
461
311
|
}
|
|
462
312
|
case FCellTypes.BUTTON:
|
|
463
|
-
if (
|
|
464
|
-
.tagName)) {
|
|
313
|
+
if (isAutoCentered(props)) {
|
|
465
314
|
classObj[FCellClasses.C_CENTERED] = true;
|
|
466
315
|
}
|
|
467
316
|
return (h("kup-button", Object.assign({}, subcomponentProps, { "onkup-button-click": (e) => cellEvent(e, props, cellType, FCellEvents.CLICK) })));
|
|
468
317
|
case FCellTypes.BUTTON_LIST:
|
|
469
|
-
if (
|
|
470
|
-
.tagName)) {
|
|
318
|
+
if (isAutoCentered(props)) {
|
|
471
319
|
classObj[FCellClasses.C_CENTERED] = true;
|
|
472
320
|
}
|
|
473
321
|
subcomponentProps['data-storage'] = {
|
|
@@ -477,23 +325,21 @@ function setKupCell(cellType, classObj, subcomponentProps, cell, row, column, pr
|
|
|
477
325
|
};
|
|
478
326
|
return h("kup-button-list", Object.assign({}, subcomponentProps));
|
|
479
327
|
case FCellTypes.CHART:
|
|
480
|
-
if (
|
|
481
|
-
.tagName)) {
|
|
328
|
+
if (isAutoCentered(props)) {
|
|
482
329
|
classObj[FCellClasses.C_CENTERED] = true;
|
|
483
330
|
}
|
|
484
331
|
return h("kup-chart", Object.assign({}, subcomponentProps));
|
|
485
332
|
case FCellTypes.CHIP:
|
|
486
333
|
return h(FChip, Object.assign({}, subcomponentProps));
|
|
487
334
|
case FCellTypes.COLOR_PICKER:
|
|
488
|
-
return (h("kup-color-picker", Object.assign({}, subcomponentProps, { class:
|
|
335
|
+
return (h("kup-color-picker", Object.assign({}, subcomponentProps, { class: isFullWidth(props) ? 'kup-full-width' : '', disabled: true })));
|
|
489
336
|
case FCellTypes.GAUGE:
|
|
490
337
|
return (h("kup-gauge", Object.assign({ value: stringToNumber(cell.value), "width-component": "280px" }, subcomponentProps)));
|
|
491
338
|
case FCellTypes.KNOB:
|
|
492
339
|
case FCellTypes.PROGRESS_BAR:
|
|
493
340
|
return h("kup-progress-bar", Object.assign({}, subcomponentProps));
|
|
494
341
|
case FCellTypes.RADIO:
|
|
495
|
-
if (
|
|
496
|
-
.tagName)) {
|
|
342
|
+
if (isAutoCentered(props)) {
|
|
497
343
|
classObj[FCellClasses.C_CENTERED] = true;
|
|
498
344
|
}
|
|
499
345
|
subcomponentProps['disabled'] = row.readOnly;
|
|
@@ -502,94 +348,6 @@ function setKupCell(cellType, classObj, subcomponentProps, cell, row, column, pr
|
|
|
502
348
|
return h("kup-rating", Object.assign({}, subcomponentProps, { disabled: true }));
|
|
503
349
|
}
|
|
504
350
|
}
|
|
505
|
-
function getCellType(cell, shape) {
|
|
506
|
-
const obj = cell.obj;
|
|
507
|
-
if (shape) {
|
|
508
|
-
switch (shape.toUpperCase()) {
|
|
509
|
-
case FCellShapes.AUTOCOMPLETE:
|
|
510
|
-
return FCellTypes.AUTOCOMPLETE;
|
|
511
|
-
case FCellShapes.BUTTON_LIST:
|
|
512
|
-
return FCellTypes.BUTTON_LIST;
|
|
513
|
-
case FCellShapes.CHART:
|
|
514
|
-
return FCellTypes.CHART;
|
|
515
|
-
case FCellShapes.CHECKBOX:
|
|
516
|
-
return FCellTypes.CHECKBOX;
|
|
517
|
-
case FCellShapes.CHIP:
|
|
518
|
-
return FCellTypes.CHIP;
|
|
519
|
-
case FCellShapes.COLOR_PICKER:
|
|
520
|
-
return FCellTypes.COLOR_PICKER;
|
|
521
|
-
case FCellShapes.COMBOBOX:
|
|
522
|
-
return FCellTypes.COMBOBOX;
|
|
523
|
-
case FCellShapes.EDITOR:
|
|
524
|
-
return FCellTypes.EDITOR;
|
|
525
|
-
case FCellShapes.GAUGE:
|
|
526
|
-
return FCellTypes.GAUGE;
|
|
527
|
-
case FCellShapes.IMAGE:
|
|
528
|
-
return FCellTypes.IMAGE;
|
|
529
|
-
case FCellShapes.KNOB:
|
|
530
|
-
return FCellTypes.KNOB;
|
|
531
|
-
case FCellShapes.PROGRESS_BAR:
|
|
532
|
-
return FCellTypes.PROGRESS_BAR;
|
|
533
|
-
case FCellShapes.RADIO:
|
|
534
|
-
return FCellTypes.RADIO;
|
|
535
|
-
case FCellShapes.RATING:
|
|
536
|
-
return FCellTypes.RATING;
|
|
537
|
-
case FCellShapes.TEXT_FIELD:
|
|
538
|
-
return FCellTypes.STRING;
|
|
539
|
-
}
|
|
540
|
-
}
|
|
541
|
-
if (dom.ketchup.objects.isBar(obj)) {
|
|
542
|
-
return FCellTypes.BAR;
|
|
543
|
-
}
|
|
544
|
-
else if (dom.ketchup.objects.isButton(obj)) {
|
|
545
|
-
return FCellTypes.BUTTON;
|
|
546
|
-
}
|
|
547
|
-
else if (dom.ketchup.objects.isChart(obj)) {
|
|
548
|
-
return FCellTypes.CHART;
|
|
549
|
-
}
|
|
550
|
-
else if (dom.ketchup.objects.isCheckbox(obj)) {
|
|
551
|
-
return FCellTypes.CHECKBOX;
|
|
552
|
-
}
|
|
553
|
-
else if (dom.ketchup.objects.isColor(obj)) {
|
|
554
|
-
return FCellTypes.COLOR_PICKER;
|
|
555
|
-
}
|
|
556
|
-
else if (dom.ketchup.objects.isIcon(obj)) {
|
|
557
|
-
return FCellTypes.ICON;
|
|
558
|
-
}
|
|
559
|
-
else if (dom.ketchup.objects.isImage(obj)) {
|
|
560
|
-
return FCellTypes.IMAGE;
|
|
561
|
-
}
|
|
562
|
-
else if (dom.ketchup.objects.isLink(obj)) {
|
|
563
|
-
return FCellTypes.LINK;
|
|
564
|
-
}
|
|
565
|
-
else if (dom.ketchup.objects.isProgressBar(obj)) {
|
|
566
|
-
return FCellTypes.PROGRESS_BAR;
|
|
567
|
-
}
|
|
568
|
-
else if (dom.ketchup.objects.isRadio(obj)) {
|
|
569
|
-
return FCellTypes.RADIO;
|
|
570
|
-
}
|
|
571
|
-
else if (dom.ketchup.objects.isKupObjList(obj)) {
|
|
572
|
-
return FCellTypes.CHIP;
|
|
573
|
-
}
|
|
574
|
-
else if (dom.ketchup.objects.isNumber(obj)) {
|
|
575
|
-
return FCellTypes.NUMBER;
|
|
576
|
-
}
|
|
577
|
-
else if (dom.ketchup.objects.isDate(obj)) {
|
|
578
|
-
return FCellTypes.DATE;
|
|
579
|
-
}
|
|
580
|
-
else if (dom.ketchup.objects.isTimestamp(obj)) {
|
|
581
|
-
return FCellTypes.DATETIME;
|
|
582
|
-
}
|
|
583
|
-
else if (dom.ketchup.objects.isTime(obj)) {
|
|
584
|
-
return FCellTypes.TIME;
|
|
585
|
-
}
|
|
586
|
-
else if (dom.ketchup.objects.isVoCodver(obj)) {
|
|
587
|
-
return FCellTypes.ICON;
|
|
588
|
-
}
|
|
589
|
-
else {
|
|
590
|
-
return FCellTypes.STRING;
|
|
591
|
-
}
|
|
592
|
-
}
|
|
593
351
|
function cellEvent(e, props, cellType, cellEventName) {
|
|
594
352
|
const cell = props.cell;
|
|
595
353
|
const column = props.column;
|
|
@@ -610,6 +368,7 @@ function cellEvent(e, props, cellType, cellEventName) {
|
|
|
610
368
|
}
|
|
611
369
|
break;
|
|
612
370
|
case FCellTypes.CHECKBOX:
|
|
371
|
+
case FCellTypes.SWITCH:
|
|
613
372
|
value = value === 'on' ? '0' : '1';
|
|
614
373
|
if (cell.data) {
|
|
615
374
|
cell.data.checked =
|
|
@@ -645,6 +404,12 @@ function cellEvent(e, props, cellType, cellEventName) {
|
|
|
645
404
|
}
|
|
646
405
|
catch (error) { }
|
|
647
406
|
}
|
|
407
|
+
}
|
|
408
|
+
function isAutoCentered(props) {
|
|
409
|
+
return autoCenterComps.includes(props.component.rootElement.tagName);
|
|
410
|
+
}
|
|
411
|
+
function isFullWidth(props) {
|
|
412
|
+
return fullWidthFieldsComps.includes(props.component.rootElement.tagName);
|
|
648
413
|
}
|
|
649
414
|
|
|
650
|
-
export {
|
|
415
|
+
export { FCell as F, FSwitch as a };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { h } from './index-ad6ab214.js';
|
|
2
|
+
|
|
3
|
+
/*-------------------------------------------------*/
|
|
4
|
+
/* C o m p o n e n t */
|
|
5
|
+
/*-------------------------------------------------*/
|
|
6
|
+
const FCheckbox = (props) => {
|
|
7
|
+
const indeterminateAttr = {
|
|
8
|
+
'data-indeterminate': props.indeterminate ? true : false,
|
|
9
|
+
};
|
|
10
|
+
const classObj = {
|
|
11
|
+
checkbox: true,
|
|
12
|
+
'checkbox--checked': props.checked && !props.indeterminate ? true : false,
|
|
13
|
+
'checkbox--disabled': props.disabled ? true : false,
|
|
14
|
+
'checkbox--indeterminate': props.indeterminate ? true : false,
|
|
15
|
+
};
|
|
16
|
+
return (h("div", Object.assign({ class: `f-checkbox ${props.danger ? 'kup-danger' : ''} ${props.info ? 'kup-info' : ''} ${props.secondary ? 'kup-secondary' : ''} ${props.success ? 'kup-success' : ''} ${props.warning ? 'kup-warning' : ''} ${props.wrapperClass ? props.wrapperClass : ''}` }, props.dataSet, { id: props.id, title: props.title }),
|
|
17
|
+
h("div", { class: `form-field ${props.leadingLabel ? 'form-field--align-end' : ''}` },
|
|
18
|
+
h("div", { class: classObj },
|
|
19
|
+
h("input", Object.assign({ type: "checkbox", class: "checkbox__native-control", checked: props.checked, disabled: props.disabled, onBlur: props.onBlur, onChange: props.onChange, onFocus: props.onFocus }, indeterminateAttr, { value: props.checked ? 'on' : 'off' })),
|
|
20
|
+
h("div", { class: "checkbox__background", onClick: props.onChange },
|
|
21
|
+
h("svg", { class: "checkbox__checkmark", viewBox: "0 0 24 24" },
|
|
22
|
+
h("path", { class: "checkbox__checkmark-path", fill: "none", d: "M1.73,12.91 8.1,19.28 22.79,4.59" })),
|
|
23
|
+
h("div", { class: "checkbox__mixedmark" }))),
|
|
24
|
+
props.label ? h("label", null, props.label) : undefined)));
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
export { FCheckbox as F };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { h } from './index-
|
|
2
|
-
import { F as FImage } from './f-image-
|
|
3
|
-
import {
|
|
1
|
+
import { h } from './index-ad6ab214.js';
|
|
2
|
+
import { F as FImage } from './f-image-2ab4b9aa.js';
|
|
3
|
+
import { K as KupThemeIconValues, h as KupLanguageGeneric, b as KupThemeColorValues } from './kup-manager-22a475e6.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Types of the f-chip component.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { h, a as getAssetPath } from './index-
|
|
2
|
-
import { b as KupThemeColorValues } from './kup-manager-
|
|
1
|
+
import { h, a as getAssetPath } from './index-ad6ab214.js';
|
|
2
|
+
import { b as KupThemeColorValues } from './kup-manager-22a475e6.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* The type of a CSS step in CSS-drawing mode.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { b as isValidFormattedStringTime, f as formattedStringToCustomUnformattedStringTime, j as formattedStringToDefaultUnformattedStringTimestamp, k as isValidFormattedStringNumber, l as formattedStringToUnformattedStringNumber, m as unformattedStringNumberToNumber, h as stringToNumber, o as isNumber } from './utils-
|
|
3
|
-
import { b as getValueForDisplay, a as getValueForDisplay2, c as getCellValueForDisplay, g as getColumnByName, d as compareValues, e as compareCell } from './cell-utils-
|
|
4
|
-
import { h } from './index-
|
|
5
|
-
import { F as FButton } from './f-button-
|
|
1
|
+
import { W as KupTagNames, d as KupDatesFormats, r as KupDatesNormalize, s as KupObjects, M as SortMode, T as TotalMode, X as KupLanguagePage, n as KupLanguageRow, h as KupLanguageGeneric } from './kup-manager-22a475e6.js';
|
|
2
|
+
import { b as isValidFormattedStringTime, f as formattedStringToCustomUnformattedStringTime, j as formattedStringToDefaultUnformattedStringTimestamp, k as isValidFormattedStringNumber, l as formattedStringToUnformattedStringNumber, m as unformattedStringNumberToNumber, h as stringToNumber, o as isNumber } from './utils-2c1f4122.js';
|
|
3
|
+
import { b as getValueForDisplay, a as getValueForDisplay2, c as getCellValueForDisplay, g as getColumnByName, d as compareValues, e as compareCell } from './cell-utils-cb5d4149.js';
|
|
4
|
+
import { h } from './index-ad6ab214.js';
|
|
5
|
+
import { F as FButton } from './f-button-fd44ef70.js';
|
|
6
6
|
import { F as FButtonStyling } from './f-button-declarations-b1b4cac4.js';
|
|
7
7
|
|
|
8
8
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { h, a as getAssetPath } from './index-
|
|
2
|
-
import {
|
|
1
|
+
import { h, a as getAssetPath } from './index-ad6ab214.js';
|
|
2
|
+
import { K as KupThemeIconValues } from './kup-manager-22a475e6.js';
|
|
3
3
|
|
|
4
4
|
/*-------------------------------------------------*/
|
|
5
5
|
/* C o m p o n e n t */
|
|
@@ -56,7 +56,7 @@ function setContent(props) {
|
|
|
56
56
|
props.maxLength)) : undefined,
|
|
57
57
|
!props.trailingIcon ? iconEl : undefined,
|
|
58
58
|
props.textArea ? (h("span", { class: "mdc-text-field__resizer" },
|
|
59
|
-
h("textarea", { class: "mdc-text-field__input", disabled: props.disabled, readOnly: props.readOnly, maxlength: props.maxLength, value: props.value, onBlur: props.onBlur, onClick: props.onClick, onChange: props.onChange, onFocus: props.onFocus, onInput: props.onInput, onKeyDown: props.onKeyDown }))) : (h("input", { type: props.inputType ? props.inputType : 'text', step: props.step, min: props.min, max: props.max, class: "mdc-text-field__input", disabled: props.disabled, readOnly: props.readOnly, placeholder: props.fullWidth ? props.label : undefined, maxlength: props.maxLength, value: props.value, onBlur: props.onBlur, onClick: props.onClick, onChange: props.onChange, onFocus: props.onFocus, onInput: props.onInput, onKeyDown: props.onKeyDown })),
|
|
59
|
+
h("textarea", { class: "mdc-text-field__input", disabled: props.disabled, readOnly: props.readOnly, maxlength: props.maxLength, value: props.value, onBlur: props.onBlur, onClick: props.onClick, onChange: props.onChange, onFocus: props.onFocus, onInput: props.onInput, onKeyDown: props.onKeyDown }))) : (h("input", { type: props.inputType ? props.inputType : 'text', step: props.step, min: props.min, max: props.max, name: props.name, class: "mdc-text-field__input", disabled: props.disabled, readOnly: props.readOnly, placeholder: props.fullWidth ? props.label : undefined, maxlength: props.maxLength, value: props.value, onBlur: props.onBlur, onClick: props.onClick, onChange: props.onChange, onFocus: props.onFocus, onInput: props.onInput, onKeyDown: props.onKeyDown })),
|
|
60
60
|
props.isClearable ? (h("span", { class: `mdc-text-field__icon kup-icon ${KupThemeIconValues.CLEAR.replace('--', '')}`, onClick: props.onClearIconClick })) : undefined,
|
|
61
61
|
props.trailingIcon ? iconEl : undefined,
|
|
62
62
|
!props.fullWidth && !isOutlined ? labelEl : undefined,
|
|
@@ -89,7 +89,7 @@ const registerStyle = (scopeId, cssText, allowCS) => {
|
|
|
89
89
|
};
|
|
90
90
|
const addStyle = (styleContainerNode, cmpMeta, mode, hostElm) => {
|
|
91
91
|
let scopeId = getScopeId(cmpMeta);
|
|
92
|
-
|
|
92
|
+
const style = styles.get(scopeId);
|
|
93
93
|
// if an element is NOT connected then getRootNode() will return the wrong root node
|
|
94
94
|
// so the fallback is to always use the document for the root node in those cases
|
|
95
95
|
styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc;
|
|
@@ -175,7 +175,7 @@ const h = (nodeName, vnodeData, ...children) => {
|
|
|
175
175
|
let key = null;
|
|
176
176
|
let simple = false;
|
|
177
177
|
let lastSimple = false;
|
|
178
|
-
|
|
178
|
+
const vNodeChildren = [];
|
|
179
179
|
const walk = (c) => {
|
|
180
180
|
for (let i = 0; i < c.length; i++) {
|
|
181
181
|
child = c[i];
|
|
@@ -375,7 +375,7 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
375
375
|
if ((isProp || (isComplex && newValue !== null)) && !isSvg) {
|
|
376
376
|
try {
|
|
377
377
|
if (!elm.tagName.includes('-')) {
|
|
378
|
-
|
|
378
|
+
const n = newValue == null ? '' : newValue;
|
|
379
379
|
// Workaround for Safari, moving the <input> caret when re-assigning the same valued
|
|
380
380
|
if (memberName === 'list') {
|
|
381
381
|
isProp = false;
|
|
@@ -452,7 +452,7 @@ const updateElement = (oldVnode, newVnode, isSvgMode, memberName) => {
|
|
|
452
452
|
};
|
|
453
453
|
const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
454
454
|
// tslint:disable-next-line: prefer-const
|
|
455
|
-
|
|
455
|
+
const newVNode = newParentVNode.$children$[childIndex];
|
|
456
456
|
let i = 0;
|
|
457
457
|
let elm;
|
|
458
458
|
let childNode;
|
|
@@ -1396,7 +1396,9 @@ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
1396
1396
|
if (module) {
|
|
1397
1397
|
return module[exportName];
|
|
1398
1398
|
}
|
|
1399
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/
|
|
1399
1400
|
return import(
|
|
1401
|
+
/* @vite-ignore */
|
|
1400
1402
|
/* webpackInclude: /\.entry\.js$/ */
|
|
1401
1403
|
/* webpackExclude: /\.system\.entry\.js$/ */
|
|
1402
1404
|
/* webpackMode: "lazy" */
|