@sme.up/ketchup 5.2.1-SNAPSHOT → 6.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/CHANGELOG.md +5 -0
- package/dist/cjs/{cell-utils-d96b2993.js → cell-utils-a78d6fac.js} +2 -2
- package/dist/cjs/{component-d1496215.js → component-72a5b626.js} +30 -0
- package/dist/cjs/{f-button-2b9b99b1.js → f-button-ac179257.js} +1 -1
- package/dist/cjs/{f-cell-8351cb84.js → f-cell-69294bca.js} +37 -37
- package/dist/cjs/{f-chip-df59e1b0.js → f-chip-b00897d7.js} +4 -3
- package/dist/cjs/{f-image-12bab3b5.js → f-image-89f25556.js} +1 -1
- package/dist/cjs/f-paginator-utils-8fa501b3.js +1898 -0
- package/dist/cjs/{f-text-field-e7c35b5b.js → f-text-field-e1e45ade.js} +1 -1
- package/dist/cjs/{f-text-field-mdc-a67f5dfe.js → f-text-field-mdc-85997738.js} +23 -305
- package/dist/cjs/ketchup.cjs.js +2 -2
- package/dist/cjs/kup-accordion.cjs.entry.js +4 -4
- package/dist/cjs/{kup-autocomplete_27.cjs.entry.js → kup-autocomplete_25.cjs.entry.js} +1509 -5423
- package/dist/cjs/{kup-echart.cjs.entry.js → kup-box_2.cjs.entry.js} +17101 -14787
- package/dist/cjs/kup-calendar.cjs.entry.js +41 -33
- package/dist/cjs/kup-cell.cjs.entry.js +7 -7
- package/dist/cjs/kup-dash-list.cjs.entry.js +3 -3
- package/dist/cjs/kup-dash_2.cjs.entry.js +2 -2
- package/dist/cjs/kup-drawer.cjs.entry.js +11 -4
- package/dist/cjs/kup-field.cjs.entry.js +1 -1
- package/dist/cjs/kup-form-editor.cjs.entry.js +404 -0
- package/dist/cjs/kup-iframe.cjs.entry.js +2 -2
- package/dist/cjs/kup-image-list.cjs.entry.js +228 -0
- package/dist/cjs/kup-lazy.cjs.entry.js +2 -2
- package/dist/cjs/kup-magic-box.cjs.entry.js +3 -3
- package/dist/cjs/kup-manager-7a941909.js +16703 -0
- package/dist/cjs/kup-nav-bar.cjs.entry.js +2 -2
- package/dist/cjs/kup-numeric-picker.cjs.entry.js +4 -4
- package/dist/cjs/kup-photo-frame.cjs.entry.js +4 -4
- 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 +5 -5
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{utils-e99921c1.js → utils-6287d878.js} +1 -1
- package/dist/collection/assets/card.js +4 -5
- package/dist/collection/assets/data-table.js +44 -79
- package/dist/collection/assets/form-editor.js +338 -0
- package/dist/collection/assets/image-list.js +624 -0
- package/dist/collection/assets/index.js +8 -0
- package/dist/collection/assets/kupdata.js +0 -3
- package/dist/collection/assets/kuptooltip.js +53 -7
- package/dist/collection/assets/tree.js +0 -128
- package/dist/collection/collection-manifest.json +7 -6
- package/dist/collection/components/kup-autocomplete/kup-autocomplete.js +1 -1
- package/dist/collection/components/kup-box/kup-box-declarations.js +0 -4
- package/dist/collection/components/kup-box/kup-box.js +7 -135
- package/dist/collection/components/kup-card/built-in/kup-card-clock.js +1 -1
- package/dist/collection/components/kup-card/built-in/kup-card-column-drop-menu.js +1 -2
- package/dist/collection/components/kup-card/kup-card.css +26 -8
- package/dist/collection/components/kup-card/kup-card.js +1 -2
- package/dist/collection/components/kup-card/standard/kup-card-standard.js +14 -6
- package/dist/collection/components/kup-combobox/kup-combobox.js +1 -1
- package/dist/collection/components/kup-data-table/kup-data-table-declarations.js +1 -3
- package/dist/collection/components/kup-data-table/kup-data-table-state.js +1 -1
- package/dist/collection/components/kup-data-table/kup-data-table.js +19 -136
- package/dist/collection/components/kup-drawer/kup-drawer.css +1 -0
- package/dist/collection/components/kup-drawer/kup-drawer.js +8 -1
- package/dist/collection/components/kup-form-editor/kup-form-editor-declarations.js +23 -0
- package/dist/collection/components/kup-form-editor/kup-form-editor.css +80 -0
- package/dist/collection/components/kup-form-editor/kup-form-editor.js +561 -0
- package/dist/collection/components/kup-image-list/kup-image-list-declarations.js +10 -0
- package/dist/collection/components/kup-image-list/kup-image-list.css +166 -0
- package/dist/collection/components/kup-image-list/kup-image-list.js +432 -0
- package/dist/collection/components/kup-photo-frame/kup-photo-frame.css +3 -13
- package/dist/collection/components/kup-photo-frame/kup-photo-frame.js +1 -1
- package/dist/collection/components/kup-snackbar/kup-snackbar.css +4 -0
- package/dist/collection/components/kup-tab-bar/kup-tab-bar.js +18 -19
- package/dist/collection/components/kup-time-picker/kup-time-picker.js +2 -2
- package/dist/collection/components/kup-tree/kup-tree-declarations.js +0 -4
- package/dist/collection/components/kup-tree/kup-tree.css +10 -3
- package/dist/collection/components/kup-tree/kup-tree.js +81 -145
- package/dist/collection/f-components/f-cell/f-cell.js +7 -7
- package/dist/collection/f-components/f-chip/f-chip.js +2 -1
- package/dist/collection/managers/kup-data/kup-data-node-helper.js +24 -0
- package/dist/collection/managers/kup-data/kup-data.js +4 -1
- package/dist/collection/managers/kup-dynamic-position/kup-dynamic-position.js +4 -2
- package/dist/collection/managers/kup-interact/kup-interact.js +1 -22
- package/dist/collection/managers/kup-language/kup-language-declarations.js +2 -0
- package/dist/collection/managers/kup-manager/kup-manager.js +21 -2
- package/dist/collection/managers/kup-theme/kup-theme-declarations.js +5 -0
- package/dist/collection/managers/kup-tooltip/kup-tooltip.js +53 -20
- package/dist/collection/types/GenericTypes.js +2 -0
- package/dist/collection/utils/kup-column-menu/kup-column-menu.js +7 -11
- package/dist/esm/{cell-utils-f4bdbbc8.js → cell-utils-964da6b5.js} +3 -3
- package/dist/esm/{component-c4eb6153.js → component-b1bedf1d.js} +27 -2
- package/dist/esm/{f-button-54a49fd8.js → f-button-871a544b.js} +1 -1
- package/dist/esm/{f-cell-d5dac50b.js → f-cell-521ef17a.js} +38 -38
- package/dist/esm/{f-chip-a3035b4b.js → f-chip-1dda722f.js} +5 -4
- package/dist/esm/{f-image-d32465e3.js → f-image-c468d8ae.js} +1 -1
- package/dist/esm/f-paginator-utils-7dff8ff0.js +1884 -0
- package/dist/esm/{f-text-field-c25cc63f.js → f-text-field-d6c61c73.js} +1 -1
- package/dist/esm/{f-text-field-mdc-9fbbefc3.js → f-text-field-mdc-d42d3f9e.js} +2 -284
- package/dist/esm/ketchup.js +2 -2
- package/dist/esm/kup-accordion.entry.js +5 -5
- package/dist/esm/{kup-autocomplete_27.entry.js → kup-autocomplete_25.entry.js} +1461 -5373
- package/dist/esm/{kup-echart.entry.js → kup-box_2.entry.js} +17101 -14788
- package/dist/esm/kup-calendar.entry.js +42 -34
- package/dist/esm/kup-cell.entry.js +7 -7
- package/dist/esm/kup-dash-list.entry.js +3 -3
- package/dist/esm/kup-dash_2.entry.js +2 -2
- package/dist/esm/kup-drawer.entry.js +11 -4
- package/dist/esm/kup-field.entry.js +1 -1
- package/dist/esm/kup-form-editor.entry.js +400 -0
- package/dist/esm/kup-iframe.entry.js +2 -2
- package/dist/esm/kup-image-list.entry.js +224 -0
- package/dist/esm/kup-lazy.entry.js +2 -2
- package/dist/esm/kup-magic-box.entry.js +3 -3
- package/dist/esm/kup-manager-58b075b4.js +16686 -0
- package/dist/esm/kup-nav-bar.entry.js +2 -2
- package/dist/esm/kup-numeric-picker.entry.js +5 -5
- package/dist/esm/kup-photo-frame.entry.js +4 -4
- 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 +5 -5
- package/dist/esm/loader.js +2 -2
- package/dist/esm/polyfills/css-shim.js +1 -1
- package/dist/esm/{tslib.es6-8f2d44b6.js → tslib.es6-3eea2234.js} +1 -1
- package/dist/esm/{utils-f24319a0.js → utils-d7e4b3c2.js} +2 -2
- package/dist/ketchup/ketchup.esm.js +1 -1
- package/dist/ketchup/{p-7a74ad17.js → p-1ae66cc5.js} +1 -1
- package/dist/ketchup/{p-e6709c26.entry.js → p-3c11e615.entry.js} +1 -1
- package/dist/ketchup/{p-669bde31.js → p-44ec4f03.js} +1 -1
- package/dist/ketchup/p-4ffbc3ff.js +1 -0
- package/dist/ketchup/p-5264a3e6.entry.js +1 -0
- package/dist/ketchup/{p-e8e3c9da.entry.js → p-65974e48.entry.js} +1 -1
- package/dist/ketchup/p-65b46587.entry.js +40 -0
- package/dist/ketchup/{p-09d708c4.entry.js → p-6dff70f8.entry.js} +1 -1
- package/dist/ketchup/{p-34748c91.js → p-7454cb92.js} +1 -1
- package/dist/ketchup/{p-a0b1d769.js → p-79b0730b.js} +1 -1
- package/dist/ketchup/p-7eff4eee.js +1 -0
- package/dist/ketchup/p-80968627.entry.js +1 -0
- package/dist/ketchup/{p-8c44c3b9.js → p-81605f08.js} +4 -5
- package/dist/ketchup/p-8cdf61a4.js +1 -0
- package/dist/ketchup/{p-8418e8fa.entry.js → p-954cc340.entry.js} +1 -1
- package/dist/ketchup/{p-4173422f.entry.js → p-99e0d768.entry.js} +1 -1
- package/dist/ketchup/{p-41741c28.entry.js → p-a0f6e25c.entry.js} +1 -1
- package/dist/ketchup/p-a203f78b.js +45 -0
- package/dist/ketchup/{p-9a61d8dc.entry.js → p-a615a92b.entry.js} +1 -1
- package/dist/ketchup/p-aca0e54b.js +30 -0
- package/dist/ketchup/p-b8939a8b.entry.js +1 -0
- package/dist/ketchup/p-bfc3bac7.js +1 -0
- package/dist/ketchup/p-c5ce8951.entry.js +1 -0
- package/dist/ketchup/p-cad1e097.entry.js +9 -0
- package/dist/ketchup/{p-bb8844bf.entry.js → p-d2ee56dd.entry.js} +1 -1
- package/dist/ketchup/p-db71436b.entry.js +27 -0
- package/dist/ketchup/{p-40f97429.js → p-e0035c58.js} +1 -1
- package/dist/ketchup/p-e1039cf2.entry.js +1 -0
- package/dist/ketchup/{p-44192f30.entry.js → p-ea10176c.entry.js} +1 -1
- package/dist/ketchup/{p-67842f1e.entry.js → p-f09f2f98.entry.js} +1 -1
- package/dist/ketchup/{p-203d6295.entry.js → p-f71a1675.entry.js} +1 -1
- package/dist/ketchup/{p-11e72a8c.entry.js → p-fac1a08b.entry.js} +1 -1
- package/dist/types/components/kup-box/kup-box-declarations.d.ts +3 -5
- package/dist/types/components/kup-box/kup-box.d.ts +0 -22
- package/dist/types/components/kup-data-table/kup-data-table-declarations.d.ts +2 -4
- package/dist/types/components/kup-data-table/kup-data-table-state.d.ts +1 -1
- package/dist/types/components/kup-data-table/kup-data-table.d.ts +1 -19
- package/dist/types/components/kup-form-editor/kup-form-editor-declarations.d.ts +79 -0
- package/dist/types/components/kup-form-editor/kup-form-editor.d.ts +72 -0
- package/dist/types/components/kup-image-list/kup-image-list-declarations.d.ts +14 -0
- package/dist/types/components/kup-image-list/kup-image-list.d.ts +56 -0
- package/dist/types/components/kup-tab-bar/kup-tab-bar-declarations.d.ts +3 -9
- package/dist/types/components/kup-tab-bar/kup-tab-bar.d.ts +6 -6
- package/dist/types/components/kup-tree/kup-tree-declarations.d.ts +1 -5
- package/dist/types/components/kup-tree/kup-tree.d.ts +1 -25
- package/dist/types/components.d.ts +121 -231
- package/dist/types/managers/kup-data/kup-data-declarations.d.ts +1 -0
- package/dist/types/managers/kup-data/kup-data-node-helper.d.ts +7 -0
- package/dist/types/managers/kup-data/kup-data.d.ts +1 -0
- package/dist/types/managers/kup-language/kup-language-declarations.d.ts +2 -0
- package/dist/types/managers/kup-manager/kup-manager-declarations.d.ts +4 -0
- package/dist/types/managers/kup-manager/kup-manager.d.ts +12 -0
- package/dist/types/managers/kup-tooltip/kup-tooltip-declarations.d.ts +3 -3
- package/dist/types/managers/kup-tooltip/kup-tooltip.d.ts +17 -6
- package/dist/types/types/GenericTypes.d.ts +2 -0
- package/dist/types/utils/kup-column-menu/kup-column-menu.d.ts +1 -3
- package/package.json +15 -14
- package/dist/cjs/kup-manager-5c03da64.js +0 -8795
- package/dist/collection/assets/tooltip.js +0 -73
- package/dist/collection/components/kup-tooltip/kup-tooltip-declarations.js +0 -20
- package/dist/collection/components/kup-tooltip/kup-tooltip.css +0 -149
- package/dist/collection/components/kup-tooltip/kup-tooltip.js +0 -1205
- package/dist/collection/utils/helpers.js +0 -38
- package/dist/esm/kup-manager-9316a184.js +0 -8778
- package/dist/ketchup/p-12773ca8.js +0 -9
- package/dist/ketchup/p-44f8da2a.js +0 -1
- package/dist/ketchup/p-4f56932b.js +0 -1
- package/dist/ketchup/p-7ba8fa4a.entry.js +0 -39
- package/dist/ketchup/p-7de0d7e1.js +0 -1
- package/dist/ketchup/p-96bf19aa.entry.js +0 -1
- package/dist/ketchup/p-b0ddcce9.entry.js +0 -9
- package/dist/ketchup/p-b6c21223.entry.js +0 -27
- package/dist/ketchup/p-c58a2a81.entry.js +0 -1
- package/dist/ketchup/p-ca3d585b.entry.js +0 -1
- package/dist/ketchup/p-ecb7069b.js +0 -135
- package/dist/types/components/kup-tooltip/kup-tooltip-declarations.d.ts +0 -93
- package/dist/types/components/kup-tooltip/kup-tooltip.d.ts +0 -142
- package/dist/types/utils/helpers.d.ts +0 -4
package/CHANGELOG.md
ADDED
|
@@ -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-6287d878.js');
|
|
4
|
+
const kupManager = require('./kup-manager-7a941909.js');
|
|
5
5
|
|
|
6
6
|
const dom = document.documentElement;
|
|
7
7
|
// -------------
|
|
@@ -258,6 +258,31 @@ function matches(element, selector) {
|
|
|
258
258
|
|| element.msMatchesSelector;
|
|
259
259
|
return nativeMatches.call(element, selector);
|
|
260
260
|
}
|
|
261
|
+
/**
|
|
262
|
+
* Used to compute the estimated scroll width of elements. When an element is
|
|
263
|
+
* hidden due to display: none; being applied to a parent element, the width is
|
|
264
|
+
* returned as 0. However, the element will have a true width once no longer
|
|
265
|
+
* inside a display: none context. This method computes an estimated width when
|
|
266
|
+
* the element is hidden or returns the true width when the element is visble.
|
|
267
|
+
* @param {Element} element the element whose width to estimate
|
|
268
|
+
*/
|
|
269
|
+
function estimateScrollWidth(element) {
|
|
270
|
+
// Check the offsetParent. If the element inherits display: none from any
|
|
271
|
+
// parent, the offsetParent property will be null (see
|
|
272
|
+
// https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/offsetParent).
|
|
273
|
+
// This check ensures we only clone the node when necessary.
|
|
274
|
+
var htmlEl = element;
|
|
275
|
+
if (htmlEl.offsetParent !== null) {
|
|
276
|
+
return htmlEl.scrollWidth;
|
|
277
|
+
}
|
|
278
|
+
var clone = htmlEl.cloneNode(true);
|
|
279
|
+
clone.style.setProperty('position', 'absolute');
|
|
280
|
+
clone.style.setProperty('transform', 'translate(-9999px, -9999px)');
|
|
281
|
+
document.documentElement.appendChild(clone);
|
|
282
|
+
var scrollWidth = clone.scrollWidth;
|
|
283
|
+
document.documentElement.removeChild(clone);
|
|
284
|
+
return scrollWidth;
|
|
285
|
+
}
|
|
261
286
|
|
|
262
287
|
/**
|
|
263
288
|
* @license
|
|
@@ -992,5 +1017,10 @@ var MDCRipple = /** @class */ (function (_super) {
|
|
|
992
1017
|
return MDCRipple;
|
|
993
1018
|
}(MDCComponent));
|
|
994
1019
|
|
|
1020
|
+
exports.MDCComponent = MDCComponent;
|
|
1021
|
+
exports.MDCFoundation = MDCFoundation;
|
|
995
1022
|
exports.MDCRipple = MDCRipple;
|
|
996
1023
|
exports.MDCRippleFoundation = MDCRippleFoundation;
|
|
1024
|
+
exports.applyPassive = applyPassive;
|
|
1025
|
+
exports.estimateScrollWidth = estimateScrollWidth;
|
|
1026
|
+
exports.matches = matches;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
const index = require('./index-eb556444.js');
|
|
4
4
|
const fButtonDeclarations = require('./f-button-declarations-b611587f.js');
|
|
5
|
-
const fImage = require('./f-image-
|
|
5
|
+
const fImage = require('./f-image-89f25556.js');
|
|
6
6
|
|
|
7
7
|
/*-------------------------------------------------*/
|
|
8
8
|
/* C o m p o n e n t */
|
|
@@ -1,12 +1,36 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const kupManager = require('./kup-manager-
|
|
3
|
+
const kupManager = require('./kup-manager-7a941909.js');
|
|
4
4
|
const index = require('./index-eb556444.js');
|
|
5
|
-
const cellUtils = require('./cell-utils-
|
|
6
|
-
const fTextField = require('./f-text-field-
|
|
7
|
-
const utils = require('./utils-
|
|
8
|
-
const fImage = require('./f-image-
|
|
9
|
-
const fChip = require('./f-chip-
|
|
5
|
+
const cellUtils = require('./cell-utils-a78d6fac.js');
|
|
6
|
+
const fTextField = require('./f-text-field-e1e45ade.js');
|
|
7
|
+
const utils = require('./utils-6287d878.js');
|
|
8
|
+
const fImage = require('./f-image-89f25556.js');
|
|
9
|
+
const fChip = require('./f-chip-b00897d7.js');
|
|
10
|
+
|
|
11
|
+
/*-------------------------------------------------*/
|
|
12
|
+
/* C o m p o n e n t */
|
|
13
|
+
/*-------------------------------------------------*/
|
|
14
|
+
const FCheckbox = (props) => {
|
|
15
|
+
const indeterminateAttr = {
|
|
16
|
+
'data-indeterminate': props.indeterminate ? true : false,
|
|
17
|
+
};
|
|
18
|
+
const classObj = {
|
|
19
|
+
checkbox: true,
|
|
20
|
+
'checkbox--checked': props.checked && !props.indeterminate ? true : false,
|
|
21
|
+
'checkbox--disabled': props.disabled ? true : false,
|
|
22
|
+
'checkbox--indeterminate': props.indeterminate ? true : false,
|
|
23
|
+
};
|
|
24
|
+
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 }),
|
|
25
|
+
index.h("div", { class: `form-field ${props.leadingLabel ? 'form-field--align-end' : ''}` },
|
|
26
|
+
index.h("div", { class: classObj },
|
|
27
|
+
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' })),
|
|
28
|
+
index.h("div", { class: "checkbox__background", onClick: props.onChange },
|
|
29
|
+
index.h("svg", { class: "checkbox__checkmark", viewBox: "0 0 24 24" },
|
|
30
|
+
index.h("path", { class: "checkbox__checkmark-path", fill: "none", d: "M1.73,12.91 8.1,19.28 22.79,4.59" })),
|
|
31
|
+
index.h("div", { class: "checkbox__mixedmark" }))),
|
|
32
|
+
props.label ? index.h("label", null, props.label) : undefined)));
|
|
33
|
+
};
|
|
10
34
|
|
|
11
35
|
const autoAlignComps = [kupManager.KupTagNames.DATA_TABLE, kupManager.KupTagNames.TREE];
|
|
12
36
|
/**
|
|
@@ -153,35 +177,11 @@ const kupTypes = [
|
|
|
153
177
|
FCellTypes.RATING,
|
|
154
178
|
];
|
|
155
179
|
|
|
156
|
-
/*-------------------------------------------------*/
|
|
157
|
-
/* C o m p o n e n t */
|
|
158
|
-
/*-------------------------------------------------*/
|
|
159
|
-
const FCheckbox = (props) => {
|
|
160
|
-
const indeterminateAttr = {
|
|
161
|
-
'data-indeterminate': props.indeterminate ? true : false,
|
|
162
|
-
};
|
|
163
|
-
const classObj = {
|
|
164
|
-
checkbox: true,
|
|
165
|
-
'checkbox--checked': props.checked && !props.indeterminate ? true : false,
|
|
166
|
-
'checkbox--disabled': props.disabled ? true : false,
|
|
167
|
-
'checkbox--indeterminate': props.indeterminate ? true : false,
|
|
168
|
-
};
|
|
169
|
-
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 }),
|
|
170
|
-
index.h("div", { class: `form-field ${props.leadingLabel ? 'form-field--align-end' : ''}` },
|
|
171
|
-
index.h("div", { class: classObj },
|
|
172
|
-
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' })),
|
|
173
|
-
index.h("div", { class: "checkbox__background", onClick: props.onChange },
|
|
174
|
-
index.h("svg", { class: "checkbox__checkmark", viewBox: "0 0 24 24" },
|
|
175
|
-
index.h("path", { class: "checkbox__checkmark-path", fill: "none", d: "M1.73,12.91 8.1,19.28 22.79,4.59" })),
|
|
176
|
-
index.h("div", { class: "checkbox__mixedmark" }))),
|
|
177
|
-
props.label ? index.h("label", null, props.label) : undefined)));
|
|
178
|
-
};
|
|
179
|
-
|
|
180
180
|
const dom = document.documentElement;
|
|
181
181
|
/*-------------------------------------------------*/
|
|
182
182
|
/* C o m p o n e n t */
|
|
183
183
|
/*-------------------------------------------------*/
|
|
184
|
-
const FCell = (props) => {
|
|
184
|
+
const FCell = (props, children) => {
|
|
185
185
|
const cell = props.cell;
|
|
186
186
|
const column = props.column;
|
|
187
187
|
const row = props.row;
|
|
@@ -269,12 +269,12 @@ const FCell = (props) => {
|
|
|
269
269
|
};
|
|
270
270
|
infoEl = index.h(fImage.FImage, Object.assign({}, fProps));
|
|
271
271
|
}
|
|
272
|
-
return (index.h("div", { class: classObj,
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
content)));
|
|
272
|
+
return (index.h("div", { class: classObj, "kup-get-cell-props": () => {
|
|
273
|
+
return props;
|
|
274
|
+
}, style: cell.style },
|
|
275
|
+
index.h("div", { class: "f-cell__content", style: cell.styleContent, title: cellTitle }, children && children.length > 0
|
|
276
|
+
? children
|
|
277
|
+
: [props.indents, infoEl, icon, content])));
|
|
278
278
|
};
|
|
279
279
|
function setCellSize(cellType, subcomponentProps, cell, props) {
|
|
280
280
|
switch (cellType) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const index = require('./index-eb556444.js');
|
|
4
|
-
const fImage = require('./f-image-
|
|
5
|
-
const kupManager = require('./kup-manager-
|
|
4
|
+
const fImage = require('./f-image-89f25556.js');
|
|
5
|
+
const kupManager = require('./kup-manager-7a941909.js');
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Types of the f-chip component.
|
|
@@ -76,7 +76,8 @@ function createChipList(props, isChoice, isFilter, isInput) {
|
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
78
|
function createChip(chip) {
|
|
79
|
-
|
|
79
|
+
const onlyIcon = !!(chip.icon && !chip.value);
|
|
80
|
+
let componentClass = `chip ${onlyIcon ? 'chip--only-icon' : ''}`;
|
|
80
81
|
let iconEl = [];
|
|
81
82
|
let iconClass = 'chip__icon chip__icon--leading';
|
|
82
83
|
if (isFilter || isChoice) {
|