@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,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const utils = require('./utils-
|
|
4
|
-
const kupManager = require('./kup-manager-
|
|
3
|
+
const utils = require('./utils-4b208b48.js');
|
|
4
|
+
const kupManager = require('./kup-manager-02acbb37.js');
|
|
5
5
|
|
|
6
6
|
const dom = document.documentElement;
|
|
7
7
|
// -------------
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const index = require('./index-
|
|
3
|
+
const index = require('./index-06b131ea.js');
|
|
4
4
|
const fButtonDeclarations = require('./f-button-declarations-b611587f.js');
|
|
5
|
-
const fImage = require('./f-image-
|
|
5
|
+
const fImage = require('./f-image-2a61ece2.js');
|
|
6
6
|
|
|
7
7
|
/*-------------------------------------------------*/
|
|
8
8
|
/* C o m p o n e n t */
|
|
@@ -60,7 +60,7 @@ function renderButton(props) {
|
|
|
60
60
|
const styleSpinnerContainer = {
|
|
61
61
|
'--kup_button_spinner_height': propsFImage.sizeY,
|
|
62
62
|
};
|
|
63
|
-
return (index.h("button", { class: classObj, disabled: props.disabled, onBlur: props.onBlur, onClick: props.onClick, onFocus: props.onFocus, style: styleSpinnerContainer, type: "button" },
|
|
63
|
+
return (index.h("button", { class: classObj, disabled: props.disabled, onBlur: props.onBlur, onClick: props.onClick, onFocus: props.onFocus, style: styleSpinnerContainer, "aria-label": props.title, type: "button" },
|
|
64
64
|
props.trailingIcon
|
|
65
65
|
? [
|
|
66
66
|
index.h("span", { class: classLabelObj }, props.label),
|
|
@@ -95,7 +95,7 @@ function renderIconButton(props) {
|
|
|
95
95
|
const iconOff = props.iconOff
|
|
96
96
|
? props.iconOff
|
|
97
97
|
: props.icon + '_border';
|
|
98
|
-
return (index.h("button", { class: classObj, disabled: props.disabled, onClick: props.onClick, style: styleSpinnerContainer, type: "button", value: props.checked ? 'on' : 'off' },
|
|
98
|
+
return (index.h("button", { class: classObj, disabled: props.disabled, onClick: props.onClick, style: styleSpinnerContainer, type: "button", value: props.checked ? 'on' : 'off', "aria-label": props.title },
|
|
99
99
|
!props.showSpinner || props.disabled ? (index.h(fImage.FImage, Object.assign({}, propsFImage, { resource: props.toggable && !props.checked ? iconOff : props.icon, wrapperClass: `icon-button__icon kup-icon` }))) : null,
|
|
100
100
|
props.toggable && !props.showSpinner ? (index.h(fImage.FImage, Object.assign({}, propsFImage, { resource: props.icon, wrapperClass: `icon-button__icon icon-button__icon--on kup-icon` }))) : null,
|
|
101
101
|
props.showSpinner && !props.disabled ? (index.h("div", { class: "icon-button__spinner-container" },
|
|
@@ -0,0 +1,418 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const kupManager = require('./kup-manager-02acbb37.js');
|
|
4
|
+
const index = require('./index-06b131ea.js');
|
|
5
|
+
const cellUtils = require('./cell-utils-fe64a28c.js');
|
|
6
|
+
const fCheckbox = require('./f-checkbox-57443ca3.js');
|
|
7
|
+
const fTextField = require('./f-text-field-9ee20a67.js');
|
|
8
|
+
const utils = require('./utils-4b208b48.js');
|
|
9
|
+
const fImage = require('./f-image-2a61ece2.js');
|
|
10
|
+
const fChip = require('./f-chip-02e83f82.js');
|
|
11
|
+
|
|
12
|
+
/*-------------------------------------------------*/
|
|
13
|
+
/* C o m p o n e n t */
|
|
14
|
+
/*-------------------------------------------------*/
|
|
15
|
+
const FSwitch = (props) => {
|
|
16
|
+
return (index.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 }),
|
|
17
|
+
index.h("div", { class: `form-field ${props.leadingLabel ? 'form-field--align-end' : ''}` },
|
|
18
|
+
index.h("div", { class: `switch ${props.checked ? 'switch--checked' : ''} ${props.disabled ? 'switch--disabled' : ''}` },
|
|
19
|
+
index.h("div", { class: "switch__track" }),
|
|
20
|
+
index.h("div", { class: "switch__thumb-underlay" },
|
|
21
|
+
index.h("div", { class: "switch__thumb" },
|
|
22
|
+
index.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 })))),
|
|
23
|
+
index.h("label", { onClick: props.onChange }, props.label))));
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
const dom = document.documentElement;
|
|
27
|
+
/*-------------------------------------------------*/
|
|
28
|
+
/* C o m p o n e n t */
|
|
29
|
+
/*-------------------------------------------------*/
|
|
30
|
+
const FCell = (props, children) => {
|
|
31
|
+
const cell = props.cell;
|
|
32
|
+
const column = props.column;
|
|
33
|
+
const row = props.row;
|
|
34
|
+
const shape = props.shape
|
|
35
|
+
? props.shape
|
|
36
|
+
: cell.shape
|
|
37
|
+
? cell.shape
|
|
38
|
+
: column.shape
|
|
39
|
+
? column.shape
|
|
40
|
+
: null;
|
|
41
|
+
const hasObj = !dom.ketchup.objects.isEmptyKupObj(cell.obj);
|
|
42
|
+
const isEditable = cell.isEditable && props.editable ? true : false;
|
|
43
|
+
const valueToDisplay = props.previousValue !== cell.value ? cell.value : '';
|
|
44
|
+
const cellType = dom.ketchup.data.cell.getType(cell, shape);
|
|
45
|
+
const subcomponentProps = Object.assign({}, cell.data);
|
|
46
|
+
let cssClasses = cell.cssClass
|
|
47
|
+
? cell.cssClass
|
|
48
|
+
: column.cssClass
|
|
49
|
+
? column.cssClass
|
|
50
|
+
: '';
|
|
51
|
+
const classObj = {
|
|
52
|
+
'f-cell': true,
|
|
53
|
+
[kupManager.FCellClasses.OBJ]: hasObj ? true : false,
|
|
54
|
+
[cellType + '-cell']: true,
|
|
55
|
+
[props.wrapperClass]: props.wrapperClass ? true : false,
|
|
56
|
+
[props.density]: props.density && cellType !== kupManager.FCellTypes.BAR ? true : false,
|
|
57
|
+
[cssClasses]: cssClasses ? true : false,
|
|
58
|
+
};
|
|
59
|
+
let content = valueToDisplay;
|
|
60
|
+
if (isEditable && kupManager.editableTypes.includes(cellType)) {
|
|
61
|
+
content = setEditableCell(cellType, classObj, cell, column, props);
|
|
62
|
+
}
|
|
63
|
+
else if (cell.data && kupManager.kupTypes.includes(cellType)) {
|
|
64
|
+
if (props.setSizes) {
|
|
65
|
+
setCellSizeKup(cellType, subcomponentProps, cell);
|
|
66
|
+
}
|
|
67
|
+
if (!props.renderKup) {
|
|
68
|
+
const lazyClass = 'cell-' + cellType + ' placeholder';
|
|
69
|
+
content = index.h("span", { class: lazyClass });
|
|
70
|
+
}
|
|
71
|
+
else {
|
|
72
|
+
content = setKupCell(cellType, classObj, subcomponentProps, cell, row, column, props);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
else {
|
|
76
|
+
if (props.setSizes) {
|
|
77
|
+
setCellSize(cellType, subcomponentProps, cell, props);
|
|
78
|
+
}
|
|
79
|
+
content = setCell(cellType, subcomponentProps, content, classObj, cell, column, props);
|
|
80
|
+
}
|
|
81
|
+
let icon = null;
|
|
82
|
+
if (!isEditable && (column.icon || cell.icon) && content) {
|
|
83
|
+
const fProps = {
|
|
84
|
+
color: `rgba(var(${kupManager.KupThemeColorValues.TEXT}-rgb), 0.375)`,
|
|
85
|
+
resource: cell.icon ? cell.icon : column.icon,
|
|
86
|
+
sizeX: '1.25em',
|
|
87
|
+
sizeY: '1.25em',
|
|
88
|
+
wrapperClass: 'obj-icon',
|
|
89
|
+
};
|
|
90
|
+
icon = index.h(fImage.FImage, Object.assign({}, fProps));
|
|
91
|
+
}
|
|
92
|
+
let cellTitle = null;
|
|
93
|
+
if (dom.ketchup.debug.isDebug() && hasObj) {
|
|
94
|
+
cellTitle = cell.obj.t + '; ' + cell.obj.p + '; ' + cell.obj.k + ';';
|
|
95
|
+
}
|
|
96
|
+
else if (cell.title != null && cell.title.trim() != '') {
|
|
97
|
+
cellTitle = cell.title;
|
|
98
|
+
}
|
|
99
|
+
let infoEl = null;
|
|
100
|
+
if (cell.info) {
|
|
101
|
+
const info = Object.assign({}, cell.info);
|
|
102
|
+
if (!info.color) {
|
|
103
|
+
info.color = `var(${kupManager.KupThemeColorValues.INFO})`;
|
|
104
|
+
}
|
|
105
|
+
if (!info.icon) {
|
|
106
|
+
info.icon = 'info';
|
|
107
|
+
}
|
|
108
|
+
const fProps = {
|
|
109
|
+
color: info.color,
|
|
110
|
+
resource: info.icon,
|
|
111
|
+
sizeX: '1.25em',
|
|
112
|
+
sizeY: '1.25em',
|
|
113
|
+
title: info.message ? info.message : '',
|
|
114
|
+
wrapperClass: 'cell-info',
|
|
115
|
+
};
|
|
116
|
+
infoEl = index.h(fImage.FImage, Object.assign({}, fProps));
|
|
117
|
+
}
|
|
118
|
+
return (index.h("div", { class: classObj, "kup-get-cell-props": () => {
|
|
119
|
+
return props;
|
|
120
|
+
}, style: cell.style },
|
|
121
|
+
index.h("div", { class: "f-cell__content", style: cell.styleContent, title: cellTitle }, children && children.length > 0
|
|
122
|
+
? children
|
|
123
|
+
: [props.indents, infoEl, icon, content])));
|
|
124
|
+
};
|
|
125
|
+
function setCellSize(cellType, subcomponentProps, cell, props) {
|
|
126
|
+
switch (cellType) {
|
|
127
|
+
case kupManager.FCellTypes.CHECKBOX:
|
|
128
|
+
case kupManager.FCellTypes.ICON:
|
|
129
|
+
if (!subcomponentProps.sizeX) {
|
|
130
|
+
subcomponentProps.sizeX = '18px';
|
|
131
|
+
}
|
|
132
|
+
if (!subcomponentProps.sizeY) {
|
|
133
|
+
subcomponentProps.sizeY = '18px';
|
|
134
|
+
}
|
|
135
|
+
if (cell.style) {
|
|
136
|
+
if (!cell.style.height) {
|
|
137
|
+
cell.style['minHeight'] = subcomponentProps.sizeY;
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
else {
|
|
141
|
+
cell.style = {
|
|
142
|
+
minHeight: subcomponentProps.sizeY,
|
|
143
|
+
};
|
|
144
|
+
}
|
|
145
|
+
break;
|
|
146
|
+
case kupManager.FCellTypes.IMAGE:
|
|
147
|
+
if (props.component.rootElement.tagName ===
|
|
148
|
+
kupManager.KupTagNames.BOX) {
|
|
149
|
+
if (!subcomponentProps.sizeY) {
|
|
150
|
+
subcomponentProps.sizeY = 'auto';
|
|
151
|
+
}
|
|
152
|
+
if (subcomponentProps.fit === undefined) {
|
|
153
|
+
subcomponentProps.fit = true;
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
else if (!subcomponentProps.sizeX) {
|
|
157
|
+
subcomponentProps.sizeX = 'auto';
|
|
158
|
+
}
|
|
159
|
+
if (!subcomponentProps.sizeY) {
|
|
160
|
+
subcomponentProps.sizeY = '64px';
|
|
161
|
+
}
|
|
162
|
+
break;
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
function setCellSizeKup(cellType, subcomponentProps, cell) {
|
|
166
|
+
switch (cellType) {
|
|
167
|
+
case kupManager.FCellTypes.BAR:
|
|
168
|
+
if (!subcomponentProps.sizeY) {
|
|
169
|
+
subcomponentProps.sizeY = '26px';
|
|
170
|
+
}
|
|
171
|
+
break;
|
|
172
|
+
case kupManager.FCellTypes.BUTTON:
|
|
173
|
+
let height = '';
|
|
174
|
+
if (subcomponentProps.label) {
|
|
175
|
+
height = '36px';
|
|
176
|
+
}
|
|
177
|
+
if (cell.style) {
|
|
178
|
+
if (!cell.style.height) {
|
|
179
|
+
cell.style['minHeight'] = height;
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
else {
|
|
183
|
+
cell.style = { minHeight: height };
|
|
184
|
+
}
|
|
185
|
+
break;
|
|
186
|
+
case kupManager.FCellTypes.CHART:
|
|
187
|
+
if (!subcomponentProps.sizeX) {
|
|
188
|
+
subcomponentProps.sizeX = '100%';
|
|
189
|
+
}
|
|
190
|
+
if (!subcomponentProps.sizeY) {
|
|
191
|
+
subcomponentProps.sizeY = '100%';
|
|
192
|
+
}
|
|
193
|
+
break;
|
|
194
|
+
case kupManager.FCellTypes.CHIP:
|
|
195
|
+
if (cell.style) {
|
|
196
|
+
if (!cell.style.height) {
|
|
197
|
+
cell.style['minHeight'] = '40px';
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
else {
|
|
201
|
+
cell.style = { minHeight: '40px' };
|
|
202
|
+
}
|
|
203
|
+
break;
|
|
204
|
+
case kupManager.FCellTypes.RADIO:
|
|
205
|
+
if (cell.style) {
|
|
206
|
+
if (!cell.style.height) {
|
|
207
|
+
cell.style['minHeight'] = '40px';
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
else {
|
|
211
|
+
cell.style = { minHeight: '40px' };
|
|
212
|
+
}
|
|
213
|
+
break;
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
function setEditableCell(cellType, classObj, cell, column, props) {
|
|
217
|
+
switch (cellType) {
|
|
218
|
+
case kupManager.FCellTypes.AUTOCOMPLETE:
|
|
219
|
+
return (index.h("kup-autocomplete", Object.assign({ initialValue: cell.value }, cell.data, { class: isFullWidth(props) ? 'kup-full-width' : '', "onkup-autocomplete-change": (e) => cellEvent(e, props, cellType, kupManager.FCellEvents.UPDATE), "onkup-autocomplete-input": (e) => cellEvent(e, props, cellType, kupManager.FCellEvents.INPUT), "onkup-autocomplete-iconclick": (e) => cellEvent(e, props, cellType, kupManager.FCellEvents.ICON_CLICK) })));
|
|
220
|
+
case kupManager.FCellTypes.CHECKBOX:
|
|
221
|
+
if (isAutoCentered(props)) {
|
|
222
|
+
classObj[kupManager.FCellClasses.C_CENTERED] = true;
|
|
223
|
+
}
|
|
224
|
+
return (index.h(fCheckbox.FCheckbox, Object.assign({}, cell.data, { onChange: (e) => cellEvent(e, props, cellType, kupManager.FCellEvents.UPDATE) })));
|
|
225
|
+
case kupManager.FCellTypes.COLOR_PICKER:
|
|
226
|
+
return (index.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, kupManager.FCellEvents.UPDATE) })));
|
|
227
|
+
case kupManager.FCellTypes.COMBOBOX:
|
|
228
|
+
return (index.h("kup-combobox", Object.assign({ initialValue: cell.value }, cell.data, { class: isFullWidth(props) ? 'kup-full-width' : '', "onkup-combobox-change": (e) => cellEvent(e, props, cellType, kupManager.FCellEvents.UPDATE), "onkup-combobox-input": (e) => cellEvent(e, props, cellType, kupManager.FCellEvents.INPUT), "onkup-combobox-iconclick": (e) => cellEvent(e, props, cellType, kupManager.FCellEvents.ICON_CLICK) })));
|
|
229
|
+
case kupManager.FCellTypes.DATE:
|
|
230
|
+
return (index.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, kupManager.FCellEvents.UPDATE), "onkup-datepicker-input": (e) => cellEvent(e, props, cellType, kupManager.FCellEvents.INPUT) })));
|
|
231
|
+
case kupManager.FCellTypes.RATING:
|
|
232
|
+
return (index.h("kup-rating", Object.assign({}, cell.data, { disabled: false, "onkup-rating-click": (e) => cellEvent(e, props, cellType, kupManager.FCellEvents.UPDATE) })));
|
|
233
|
+
case kupManager.FCellTypes.SWITCH:
|
|
234
|
+
return (index.h(FSwitch, Object.assign({}, cell.data, { disabled: false, onChange: (e) => cellEvent(e, props, cellType, kupManager.FCellEvents.UPDATE) })));
|
|
235
|
+
case kupManager.FCellTypes.TIME:
|
|
236
|
+
return (index.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, kupManager.FCellEvents.UPDATE), "onkup-timepicker-input": (e) => cellEvent(e, props, cellType, kupManager.FCellEvents.INPUT) })));
|
|
237
|
+
case kupManager.FCellTypes.NUMBER:
|
|
238
|
+
classObj[kupManager.FCellClasses.C_RIGHT_ALIGNED] = true;
|
|
239
|
+
case kupManager.FCellTypes.STRING:
|
|
240
|
+
return (index.h(fTextField.FTextField, Object.assign({}, cell.data, { icon: cell.icon ? cell.icon : column.icon ? column.icon : null, fullWidth: isFullWidth(props) ? true : false, inputType: cellType === kupManager.FCellTypes.NUMBER ? 'number' : null, value: cellType === kupManager.FCellTypes.NUMBER
|
|
241
|
+
? utils.stringToNumber(cell.value).toString()
|
|
242
|
+
: cell.value, onChange: (e) => cellEvent(e, props, cellType, kupManager.FCellEvents.UPDATE), onInput: (e) => cellEvent(e, props, cellType, kupManager.FCellEvents.INPUT), onIconClick: (e) => cellEvent(e, props, cellType, kupManager.FCellEvents.ICON_CLICK) })));
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
function setCell(cellType, subcomponentProps, content, classObj, cell, column, props) {
|
|
246
|
+
switch (cellType) {
|
|
247
|
+
case kupManager.FCellTypes.AUTOCOMPLETE:
|
|
248
|
+
case kupManager.FCellTypes.COMBOBOX:
|
|
249
|
+
case kupManager.FCellTypes.DATE:
|
|
250
|
+
case kupManager.FCellTypes.DATETIME:
|
|
251
|
+
case kupManager.FCellTypes.TIME:
|
|
252
|
+
if (content && content != '') {
|
|
253
|
+
const cellValue = cellUtils.getCellValueForDisplay(column, cell);
|
|
254
|
+
return index.h("div", { class: "f-cell__text" }, cellValue);
|
|
255
|
+
}
|
|
256
|
+
return content;
|
|
257
|
+
case kupManager.FCellTypes.CHECKBOX:
|
|
258
|
+
if (isAutoCentered(props)) {
|
|
259
|
+
classObj[kupManager.FCellClasses.C_CENTERED] = true;
|
|
260
|
+
}
|
|
261
|
+
return (index.h(fImage.FImage, { resource: subcomponentProps.checked
|
|
262
|
+
? 'check_box'
|
|
263
|
+
: 'check_box_outline_blank', sizeX: "18px", sizeY: "18px" }));
|
|
264
|
+
case kupManager.FCellTypes.EDITOR:
|
|
265
|
+
return index.h("div", { innerHTML: cell.value });
|
|
266
|
+
case kupManager.FCellTypes.ICON:
|
|
267
|
+
case kupManager.FCellTypes.IMAGE:
|
|
268
|
+
if (isAutoCentered(props)) {
|
|
269
|
+
classObj[kupManager.FCellClasses.C_CENTERED] = true;
|
|
270
|
+
}
|
|
271
|
+
if (subcomponentProps.badgeData) {
|
|
272
|
+
classObj[kupManager.FCellClasses.C_PADDED] = true;
|
|
273
|
+
}
|
|
274
|
+
return index.h(fImage.FImage, Object.assign({}, subcomponentProps));
|
|
275
|
+
case kupManager.FCellTypes.LINK:
|
|
276
|
+
return (index.h("a", { href: content, target: "_blank" }, cell.value));
|
|
277
|
+
case kupManager.FCellTypes.NUMBER:
|
|
278
|
+
if (content && content != '') {
|
|
279
|
+
const cellValueNumber = utils.stringToNumber(cell.value);
|
|
280
|
+
const cellValue = cellUtils.getCellValueForDisplay(column, cell);
|
|
281
|
+
if (cellValueNumber < 0) {
|
|
282
|
+
classObj[kupManager.FCellClasses.TEXT_DANGER] = true;
|
|
283
|
+
}
|
|
284
|
+
if (isAutoCentered(props)) {
|
|
285
|
+
classObj[kupManager.FCellClasses.C_RIGHT_ALIGNED] = true;
|
|
286
|
+
}
|
|
287
|
+
return index.h("div", { class: "f-cell__text" }, cellValue);
|
|
288
|
+
}
|
|
289
|
+
return index.h("div", { class: "f-cell__text" }, content);
|
|
290
|
+
case kupManager.FCellTypes.SWITCH:
|
|
291
|
+
if (isAutoCentered(props)) {
|
|
292
|
+
classObj[kupManager.FCellClasses.C_CENTERED] = true;
|
|
293
|
+
}
|
|
294
|
+
subcomponentProps['disabled'] = true;
|
|
295
|
+
return index.h(FSwitch, Object.assign({}, subcomponentProps));
|
|
296
|
+
default:
|
|
297
|
+
return index.h("div", { class: "f-cell__text" }, content);
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
function setKupCell(cellType, classObj, subcomponentProps, cell, row, column, props) {
|
|
301
|
+
switch (cellType) {
|
|
302
|
+
case kupManager.FCellTypes.BAR:
|
|
303
|
+
if (!subcomponentProps.data) {
|
|
304
|
+
return index.h("kup-image", Object.assign({}, subcomponentProps));
|
|
305
|
+
}
|
|
306
|
+
else {
|
|
307
|
+
const barStyle = {
|
|
308
|
+
height: subcomponentProps.sizeY,
|
|
309
|
+
width: '100%',
|
|
310
|
+
};
|
|
311
|
+
return (index.h("div", { style: barStyle },
|
|
312
|
+
index.h(fImage.FImage, Object.assign({}, subcomponentProps))));
|
|
313
|
+
}
|
|
314
|
+
case kupManager.FCellTypes.BUTTON:
|
|
315
|
+
if (isAutoCentered(props)) {
|
|
316
|
+
classObj[kupManager.FCellClasses.C_CENTERED] = true;
|
|
317
|
+
}
|
|
318
|
+
return (index.h("kup-button", Object.assign({}, subcomponentProps, { "onkup-button-click": (e) => cellEvent(e, props, cellType, kupManager.FCellEvents.CLICK) })));
|
|
319
|
+
case kupManager.FCellTypes.BUTTON_LIST:
|
|
320
|
+
if (isAutoCentered(props)) {
|
|
321
|
+
classObj[kupManager.FCellClasses.C_CENTERED] = true;
|
|
322
|
+
}
|
|
323
|
+
subcomponentProps['data-storage'] = {
|
|
324
|
+
cell: cell,
|
|
325
|
+
row: row,
|
|
326
|
+
column: column,
|
|
327
|
+
};
|
|
328
|
+
return index.h("kup-button-list", Object.assign({}, subcomponentProps));
|
|
329
|
+
case kupManager.FCellTypes.CHART:
|
|
330
|
+
if (isAutoCentered(props)) {
|
|
331
|
+
classObj[kupManager.FCellClasses.C_CENTERED] = true;
|
|
332
|
+
}
|
|
333
|
+
return index.h("kup-chart", Object.assign({}, subcomponentProps));
|
|
334
|
+
case kupManager.FCellTypes.CHIP:
|
|
335
|
+
return index.h(fChip.FChip, Object.assign({}, subcomponentProps));
|
|
336
|
+
case kupManager.FCellTypes.COLOR_PICKER:
|
|
337
|
+
return (index.h("kup-color-picker", Object.assign({}, subcomponentProps, { class: isFullWidth(props) ? 'kup-full-width' : '', disabled: true })));
|
|
338
|
+
case kupManager.FCellTypes.GAUGE:
|
|
339
|
+
return (index.h("kup-gauge", Object.assign({ value: utils.stringToNumber(cell.value), "width-component": "280px" }, subcomponentProps)));
|
|
340
|
+
case kupManager.FCellTypes.KNOB:
|
|
341
|
+
case kupManager.FCellTypes.PROGRESS_BAR:
|
|
342
|
+
return index.h("kup-progress-bar", Object.assign({}, subcomponentProps));
|
|
343
|
+
case kupManager.FCellTypes.RADIO:
|
|
344
|
+
if (isAutoCentered(props)) {
|
|
345
|
+
classObj[kupManager.FCellClasses.C_CENTERED] = true;
|
|
346
|
+
}
|
|
347
|
+
subcomponentProps['disabled'] = row.readOnly;
|
|
348
|
+
return index.h("kup-radio", Object.assign({}, subcomponentProps));
|
|
349
|
+
case kupManager.FCellTypes.RATING:
|
|
350
|
+
return index.h("kup-rating", Object.assign({}, subcomponentProps, { disabled: true }));
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
function cellEvent(e, props, cellType, cellEventName) {
|
|
354
|
+
const cell = props.cell;
|
|
355
|
+
const column = props.column;
|
|
356
|
+
const comp = props.component;
|
|
357
|
+
const row = props.row;
|
|
358
|
+
const isInputEvent = !!(e.target.tagName === 'INPUT');
|
|
359
|
+
let value = isInputEvent
|
|
360
|
+
? e.target.value
|
|
361
|
+
: e.detail.value;
|
|
362
|
+
if (cellEventName === kupManager.FCellEvents.UPDATE) {
|
|
363
|
+
switch (cellType) {
|
|
364
|
+
case kupManager.FCellTypes.AUTOCOMPLETE:
|
|
365
|
+
case kupManager.FCellTypes.COMBOBOX:
|
|
366
|
+
case kupManager.FCellTypes.DATE:
|
|
367
|
+
case kupManager.FCellTypes.TIME:
|
|
368
|
+
if (cell.data) {
|
|
369
|
+
cell.data['initialValue'] = value;
|
|
370
|
+
}
|
|
371
|
+
break;
|
|
372
|
+
case kupManager.FCellTypes.CHECKBOX:
|
|
373
|
+
case kupManager.FCellTypes.SWITCH:
|
|
374
|
+
value = value === 'on' ? '0' : '1';
|
|
375
|
+
if (cell.data) {
|
|
376
|
+
cell.data.checked =
|
|
377
|
+
value === '0' ? false : true;
|
|
378
|
+
}
|
|
379
|
+
break;
|
|
380
|
+
}
|
|
381
|
+
if (cell.obj) {
|
|
382
|
+
cell.obj.k = value.toString();
|
|
383
|
+
}
|
|
384
|
+
cell.value = value.toString();
|
|
385
|
+
cell.displayedValue = null;
|
|
386
|
+
cell.displayedValue = cellUtils.getCellValueForDisplay(column, cell);
|
|
387
|
+
}
|
|
388
|
+
if (comp && comp.rootElement) {
|
|
389
|
+
const cellEvent = new CustomEvent(cellEventName, {
|
|
390
|
+
bubbles: true,
|
|
391
|
+
cancelable: true,
|
|
392
|
+
composed: true,
|
|
393
|
+
detail: {
|
|
394
|
+
comp: comp,
|
|
395
|
+
id: comp.rootElement.id,
|
|
396
|
+
cell: cell,
|
|
397
|
+
column: column,
|
|
398
|
+
event: e,
|
|
399
|
+
row: row,
|
|
400
|
+
type: cellType,
|
|
401
|
+
},
|
|
402
|
+
});
|
|
403
|
+
comp.rootElement.dispatchEvent(cellEvent);
|
|
404
|
+
try {
|
|
405
|
+
comp.refresh();
|
|
406
|
+
}
|
|
407
|
+
catch (error) { }
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
function isAutoCentered(props) {
|
|
411
|
+
return kupManager.autoCenterComps.includes(props.component.rootElement.tagName);
|
|
412
|
+
}
|
|
413
|
+
function isFullWidth(props) {
|
|
414
|
+
return kupManager.fullWidthFieldsComps.includes(props.component.rootElement.tagName);
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
exports.FCell = FCell;
|
|
418
|
+
exports.FSwitch = FSwitch;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const index = require('./index-06b131ea.js');
|
|
4
|
+
|
|
5
|
+
/*-------------------------------------------------*/
|
|
6
|
+
/* C o m p o n e n t */
|
|
7
|
+
/*-------------------------------------------------*/
|
|
8
|
+
const FCheckbox = (props) => {
|
|
9
|
+
const indeterminateAttr = {
|
|
10
|
+
'data-indeterminate': props.indeterminate ? true : false,
|
|
11
|
+
};
|
|
12
|
+
const classObj = {
|
|
13
|
+
checkbox: true,
|
|
14
|
+
'checkbox--checked': props.checked && !props.indeterminate ? true : false,
|
|
15
|
+
'checkbox--disabled': props.disabled ? true : false,
|
|
16
|
+
'checkbox--indeterminate': props.indeterminate ? true : false,
|
|
17
|
+
};
|
|
18
|
+
return (index.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 }),
|
|
19
|
+
index.h("div", { class: `form-field ${props.leadingLabel ? 'form-field--align-end' : ''}` },
|
|
20
|
+
index.h("div", { class: classObj },
|
|
21
|
+
index.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' })),
|
|
22
|
+
index.h("div", { class: "checkbox__background", onClick: props.onChange },
|
|
23
|
+
index.h("svg", { class: "checkbox__checkmark", viewBox: "0 0 24 24" },
|
|
24
|
+
index.h("path", { class: "checkbox__checkmark-path", fill: "none", d: "M1.73,12.91 8.1,19.28 22.79,4.59" })),
|
|
25
|
+
index.h("div", { class: "checkbox__mixedmark" }))),
|
|
26
|
+
props.label ? index.h("label", null, props.label) : undefined)));
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
exports.FCheckbox = FCheckbox;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const index = require('./index-
|
|
4
|
-
const fImage = require('./f-image-
|
|
5
|
-
const kupManager = require('./kup-manager-
|
|
3
|
+
const index = require('./index-06b131ea.js');
|
|
4
|
+
const fImage = require('./f-image-2a61ece2.js');
|
|
5
|
+
const kupManager = require('./kup-manager-02acbb37.js');
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Types of the f-chip component.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const index = require('./index-
|
|
4
|
-
const kupManager = require('./kup-manager-
|
|
3
|
+
const index = require('./index-06b131ea.js');
|
|
4
|
+
const kupManager = require('./kup-manager-02acbb37.js');
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* The type of a CSS step in CSS-drawing mode.
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const kupManager = require('./kup-manager-
|
|
4
|
-
const utils = require('./utils-
|
|
5
|
-
const cellUtils = require('./cell-utils-
|
|
6
|
-
const index = require('./index-
|
|
7
|
-
const fButton = require('./f-button-
|
|
3
|
+
const kupManager = require('./kup-manager-02acbb37.js');
|
|
4
|
+
const utils = require('./utils-4b208b48.js');
|
|
5
|
+
const cellUtils = require('./cell-utils-fe64a28c.js');
|
|
6
|
+
const index = require('./index-06b131ea.js');
|
|
7
|
+
const fButton = require('./f-button-5b69d882.js');
|
|
8
8
|
const fButtonDeclarations = require('./f-button-declarations-b611587f.js');
|
|
9
9
|
|
|
10
10
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const index = require('./index-
|
|
4
|
-
const kupManager = require('./kup-manager-
|
|
3
|
+
const index = require('./index-06b131ea.js');
|
|
4
|
+
const kupManager = require('./kup-manager-02acbb37.js');
|
|
5
5
|
|
|
6
6
|
/*-------------------------------------------------*/
|
|
7
7
|
/* C o m p o n e n t */
|
|
@@ -58,7 +58,7 @@ function setContent(props) {
|
|
|
58
58
|
props.maxLength)) : undefined,
|
|
59
59
|
!props.trailingIcon ? iconEl : undefined,
|
|
60
60
|
props.textArea ? (index.h("span", { class: "mdc-text-field__resizer" },
|
|
61
|
-
index.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 }))) : (index.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 })),
|
|
61
|
+
index.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 }))) : (index.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 })),
|
|
62
62
|
props.isClearable ? (index.h("span", { class: `mdc-text-field__icon kup-icon ${kupManager.KupThemeIconValues.CLEAR.replace('--', '')}`, onClick: props.onClearIconClick })) : undefined,
|
|
63
63
|
props.trailingIcon ? iconEl : undefined,
|
|
64
64
|
!props.fullWidth && !isOutlined ? labelEl : undefined,
|
|
@@ -111,7 +111,7 @@ const registerStyle = (scopeId, cssText, allowCS) => {
|
|
|
111
111
|
};
|
|
112
112
|
const addStyle = (styleContainerNode, cmpMeta, mode, hostElm) => {
|
|
113
113
|
let scopeId = getScopeId(cmpMeta);
|
|
114
|
-
|
|
114
|
+
const style = styles.get(scopeId);
|
|
115
115
|
// if an element is NOT connected then getRootNode() will return the wrong root node
|
|
116
116
|
// so the fallback is to always use the document for the root node in those cases
|
|
117
117
|
styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc;
|
|
@@ -197,7 +197,7 @@ const h = (nodeName, vnodeData, ...children) => {
|
|
|
197
197
|
let key = null;
|
|
198
198
|
let simple = false;
|
|
199
199
|
let lastSimple = false;
|
|
200
|
-
|
|
200
|
+
const vNodeChildren = [];
|
|
201
201
|
const walk = (c) => {
|
|
202
202
|
for (let i = 0; i < c.length; i++) {
|
|
203
203
|
child = c[i];
|
|
@@ -397,7 +397,7 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
397
397
|
if ((isProp || (isComplex && newValue !== null)) && !isSvg) {
|
|
398
398
|
try {
|
|
399
399
|
if (!elm.tagName.includes('-')) {
|
|
400
|
-
|
|
400
|
+
const n = newValue == null ? '' : newValue;
|
|
401
401
|
// Workaround for Safari, moving the <input> caret when re-assigning the same valued
|
|
402
402
|
if (memberName === 'list') {
|
|
403
403
|
isProp = false;
|
|
@@ -474,7 +474,7 @@ const updateElement = (oldVnode, newVnode, isSvgMode, memberName) => {
|
|
|
474
474
|
};
|
|
475
475
|
const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
476
476
|
// tslint:disable-next-line: prefer-const
|
|
477
|
-
|
|
477
|
+
const newVNode = newParentVNode.$children$[childIndex];
|
|
478
478
|
let i = 0;
|
|
479
479
|
let elm;
|
|
480
480
|
let childNode;
|
|
@@ -1418,7 +1418,9 @@ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
1418
1418
|
if (module) {
|
|
1419
1419
|
return module[exportName];
|
|
1420
1420
|
}
|
|
1421
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/
|
|
1421
1422
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
1423
|
+
/* @vite-ignore */
|
|
1422
1424
|
/* webpackInclude: /\.entry\.js$/ */
|
|
1423
1425
|
/* webpackExclude: /\.system\.entry\.js$/ */
|
|
1424
1426
|
/* webpackMode: "lazy" */
|