@limetech/lime-elements 34.1.0-next.8 → 34.1.1-next.2
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/{_arrayIncludesWith-d69e30af.js → _arrayIncludesWith-36a6fafb.js} +7 -6
- package/dist/cjs/{_assignValue-493aac17.js → _assignValue-c9fc3712.js} +2 -2
- package/dist/cjs/{_defineProperty-c081d04c.js → _defineProperty-8351e789.js} +4 -3
- package/dist/cjs/{checkbox.template-d4423721.js → checkbox.template-312308d8.js} +9 -1
- package/dist/cjs/eq-9a943b00.js +75 -0
- package/dist/cjs/{isArrayLike-2bebb99c.js → isArrayLike-ac53bdac.js} +1 -30
- package/dist/cjs/{isEqual-1ce0c121.js → isEqual-e3b9c27c.js} +21 -19
- package/dist/cjs/{eq-3b43a5ca.js → isObject-e28b7997.js} +0 -71
- package/dist/cjs/isObjectLike-3e3f0cba.js +31 -0
- package/dist/cjs/{isSymbol-4666002c.js → isSymbol-d22b2798.js} +3 -3
- package/dist/cjs/lime-elements.cjs.js +1 -1
- package/dist/cjs/limel-checkbox.cjs.entry.js +3 -3
- package/dist/cjs/limel-chip-set.cjs.entry.js +50 -28
- package/dist/cjs/limel-code-editor.cjs.entry.js +1 -1
- package/dist/cjs/limel-color-picker-palette_2.cjs.entry.js +188 -0
- package/dist/cjs/limel-color-picker.cjs.entry.js +51 -0
- package/dist/cjs/limel-file.cjs.entry.js +1 -1
- package/dist/cjs/{limel-flatpickr-adapter_2.cjs.entry.js → limel-flatpickr-adapter.cjs.entry.js} +8 -801
- package/dist/cjs/limel-form.cjs.entry.js +62 -27
- package/dist/cjs/limel-grid.cjs.entry.js +1 -1
- package/dist/cjs/limel-input-field.cjs.entry.js +713 -0
- package/dist/cjs/{limel-list_2.cjs.entry.js → limel-list_3.cjs.entry.js} +1948 -2
- package/dist/cjs/limel-menu-list.cjs.entry.js +1 -1
- package/dist/cjs/limel-menu.cjs.entry.js +5 -4
- package/dist/cjs/limel-picker.cjs.entry.js +1 -1
- package/dist/cjs/limel-slider.cjs.entry.js +69 -13
- package/dist/cjs/limel-tab-bar.cjs.entry.js +7 -5
- package/dist/cjs/limel-table.cjs.entry.js +9 -7
- package/dist/cjs/{limel-tooltip.cjs.entry.js → limel-tooltip_2.cjs.entry.js} +16 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{pickBy-64252559.js → pickBy-88b0430a.js} +10 -10
- package/dist/cjs/toNumber-062ea29c.js +99 -0
- package/dist/cjs/{zipObject-2f430e94.js → zipObject-4050a45f.js} +1 -1
- package/dist/collection/collection-manifest.json +2 -0
- package/dist/collection/components/checkbox/checkbox.css +96 -0
- package/dist/collection/components/checkbox/checkbox.js +19 -1
- package/dist/collection/components/checkbox/checkbox.template.js +9 -1
- package/dist/collection/components/chip-set/chip-set.css +22 -0
- package/dist/collection/components/chip-set/chip-set.js +75 -35
- package/dist/collection/components/code-editor/code-editor.css +7 -0
- package/dist/collection/components/color-picker/color-picker-palette.css +1239 -0
- package/dist/collection/components/color-picker/color-picker-palette.js +135 -0
- package/dist/collection/components/color-picker/color-picker.css +108 -0
- package/dist/collection/components/color-picker/color-picker.js +189 -0
- package/dist/collection/components/color-picker/swatches.js +29 -0
- package/dist/collection/components/file/file.js +1 -1
- package/dist/collection/components/form/adapters/widget-adapter.js +4 -1
- package/dist/collection/components/form/fields/schema-field.js +3 -1
- package/dist/collection/components/form/form.js +50 -0
- package/dist/collection/components/form/templates/array-field-collapsible-item.js +8 -8
- package/dist/collection/components/form/templates/common.js +1 -1
- package/dist/collection/components/form/widgets/select.js +3 -4
- package/dist/collection/components/grid/grid.css +1 -1
- package/dist/collection/components/input-field/input-field.css +13 -0
- package/dist/collection/components/list/list-renderer.js +17 -0
- package/dist/collection/components/list/list.css +421 -2
- package/dist/collection/components/list/list.js +1 -0
- package/dist/collection/components/menu-list/menu-list.css +1408 -60
- package/dist/collection/components/picker/picker.js +18 -1
- package/dist/collection/components/slider/slider.js +69 -13
- package/dist/esm/{_arrayIncludesWith-3f5ce249.js → _arrayIncludesWith-b5d3fd9e.js} +5 -4
- package/dist/esm/{_assignValue-94fb6adc.js → _assignValue-08fe10bc.js} +2 -2
- package/dist/esm/{_defineProperty-cbf98a2a.js → _defineProperty-8c869077.js} +2 -1
- package/dist/esm/{checkbox.template-dbdd27c8.js → checkbox.template-4be69ce6.js} +9 -1
- package/dist/esm/eq-c1c7f528.js +72 -0
- package/dist/esm/{isArrayLike-14db8f02.js → isArrayLike-dd37ba9a.js} +2 -30
- package/dist/esm/{isEqual-4d982635.js → isEqual-4f22635f.js} +5 -3
- package/dist/esm/{eq-f40dd1d6.js → isObject-c74e273c.js} +1 -70
- package/dist/esm/isObjectLike-38996507.js +29 -0
- package/dist/esm/{isSymbol-84252d8e.js → isSymbol-5bf20921.js} +2 -2
- package/dist/esm/lime-elements.js +1 -1
- package/dist/esm/limel-checkbox.entry.js +3 -3
- package/dist/esm/limel-chip-set.entry.js +50 -28
- package/dist/esm/limel-code-editor.entry.js +1 -1
- package/dist/esm/limel-color-picker-palette_2.entry.js +183 -0
- package/dist/esm/limel-color-picker.entry.js +47 -0
- package/dist/esm/limel-file.entry.js +1 -1
- package/dist/esm/{limel-flatpickr-adapter_2.entry.js → limel-flatpickr-adapter.entry.js} +8 -800
- package/dist/esm/limel-form.entry.js +58 -23
- package/dist/esm/limel-grid.entry.js +1 -1
- package/dist/esm/limel-input-field.entry.js +709 -0
- package/dist/esm/{limel-list_2.entry.js → limel-list_3.entry.js} +1948 -3
- package/dist/esm/limel-menu-list.entry.js +1 -1
- package/dist/esm/limel-menu.entry.js +5 -4
- package/dist/esm/limel-picker.entry.js +1 -1
- package/dist/esm/limel-slider.entry.js +69 -13
- package/dist/esm/limel-tab-bar.entry.js +7 -5
- package/dist/esm/limel-table.entry.js +9 -7
- package/dist/esm/{limel-tooltip.entry.js → limel-tooltip_2.entry.js} +16 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{pickBy-c485c1b5.js → pickBy-8a849e46.js} +5 -5
- package/dist/esm/toNumber-a6ed64f0.js +97 -0
- package/dist/esm/{zipObject-53fcafb3.js → zipObject-22e88ce9.js} +1 -1
- package/dist/lime-elements/lime-elements.esm.js +1 -1
- package/dist/lime-elements/p-090bc949.js +1 -0
- package/dist/lime-elements/p-0c121e2f.js +1 -0
- package/dist/lime-elements/{p-c6b97214.entry.js → p-0ce9165f.entry.js} +1 -1
- package/dist/lime-elements/p-13f0e4f4.entry.js +1 -0
- package/dist/lime-elements/p-1876a96a.entry.js +1 -0
- package/dist/lime-elements/{p-425a0596.js → p-1a64b531.js} +1 -1
- package/dist/lime-elements/p-365098fe.js +1 -0
- package/dist/lime-elements/p-379955f4.js +1 -0
- package/dist/lime-elements/p-426d11b4.js +1 -0
- package/dist/lime-elements/p-440084ea.js +1 -0
- package/dist/lime-elements/p-468e940e.entry.js +16 -0
- package/dist/lime-elements/p-46af5a60.entry.js +82 -0
- package/dist/lime-elements/p-4bc5d3fc.entry.js +1 -0
- package/dist/lime-elements/p-511d71e0.entry.js +1 -0
- package/dist/lime-elements/p-5170a62c.entry.js +1 -0
- package/dist/lime-elements/p-5a9ecd77.entry.js +73 -0
- package/dist/lime-elements/p-6003f817.entry.js +1 -0
- package/dist/lime-elements/p-7f43b0c4.js +1 -0
- package/dist/lime-elements/p-858c6b82.js +1 -0
- package/dist/lime-elements/p-8a2c1038.entry.js +16 -0
- package/dist/lime-elements/{p-a1153d2a.entry.js → p-8ad5e143.entry.js} +1 -1
- package/dist/lime-elements/{p-b386bfeb.entry.js → p-a2cf74c1.entry.js} +1 -1
- package/dist/lime-elements/p-a77cbb08.entry.js +1 -0
- package/dist/lime-elements/p-c93050d6.js +1 -0
- package/dist/lime-elements/p-d48ad9f7.entry.js +126 -0
- package/dist/lime-elements/p-d529bb7d.js +1 -0
- package/dist/lime-elements/{p-fc691234.entry.js → p-d93a3b07.entry.js} +2 -2
- package/dist/lime-elements/p-eda23c05.js +1 -0
- package/dist/lime-elements/{p-ff0217b3.entry.js → p-f2c706b8.entry.js} +1 -1
- package/dist/lime-elements/p-f83213b8.js +1 -0
- package/dist/lime-elements/{p-23d59a30.entry.js → p-fbe6100e.entry.js} +1 -1
- package/dist/types/components/checkbox/checkbox.d.ts +5 -0
- package/dist/types/components/checkbox/checkbox.template.d.ts +1 -0
- package/dist/types/components/chip-set/chip-set.d.ts +12 -0
- package/dist/types/components/color-picker/color-picker-palette.d.ts +32 -0
- package/dist/types/components/color-picker/color-picker.d.ts +54 -0
- package/dist/types/components/color-picker/swatches.d.ts +4 -0
- package/dist/types/components/form/form.d.ts +7 -1
- package/dist/types/components/list/list-item.types.d.ts +14 -0
- package/dist/types/components/list/list-renderer.d.ts +2 -0
- package/dist/types/components/list/list.d.ts +1 -0
- package/dist/types/components/picker/picker.d.ts +4 -0
- package/dist/types/components/slider/slider.d.ts +8 -0
- package/dist/types/components.d.ts +147 -1
- package/package.json +1 -1
- package/dist/cjs/limel-popover.cjs.entry.js +0 -116
- package/dist/cjs/limel-portal.cjs.entry.js +0 -1935
- package/dist/cjs/limel-tooltip-content.cjs.entry.js +0 -22
- package/dist/esm/limel-popover.entry.js +0 -112
- package/dist/esm/limel-portal.entry.js +0 -1931
- package/dist/esm/limel-tooltip-content.entry.js +0 -18
- package/dist/lime-elements/p-1cf833c8.entry.js +0 -16
- package/dist/lime-elements/p-227d2c5a.entry.js +0 -1
- package/dist/lime-elements/p-3ce2d46a.js +0 -1
- package/dist/lime-elements/p-77afe6dd.entry.js +0 -1
- package/dist/lime-elements/p-7c4d91f5.js +0 -1
- package/dist/lime-elements/p-845e645a.entry.js +0 -1
- package/dist/lime-elements/p-89b5a983.js +0 -1
- package/dist/lime-elements/p-8bbe3720.js +0 -1
- package/dist/lime-elements/p-8d8bd2ab.entry.js +0 -73
- package/dist/lime-elements/p-8e4ff107.js +0 -1
- package/dist/lime-elements/p-acfbf7ac.js +0 -1
- package/dist/lime-elements/p-b5d6abc3.entry.js +0 -126
- package/dist/lime-elements/p-bbc1bb01.entry.js +0 -1
- package/dist/lime-elements/p-c0765c9b.js +0 -1
- package/dist/lime-elements/p-df55ee67.entry.js +0 -82
- package/dist/lime-elements/p-e28a4246.entry.js +0 -1
- package/dist/lime-elements/p-ee7355e7.js +0 -1
- package/dist/lime-elements/p-f4495f59.entry.js +0 -1
- package/dist/lime-elements/p-facf936d.entry.js +0 -1
- package/dist/lime-elements/p-fbe32287.entry.js +0 -16
- package/dist/lime-elements/p-fc610f15.js +0 -1
|
@@ -1431,7 +1431,12 @@ let Slider = class {
|
|
|
1431
1431
|
*/
|
|
1432
1432
|
this.valuemin = 0;
|
|
1433
1433
|
this.changeHandler = (event) => {
|
|
1434
|
-
|
|
1434
|
+
let value = event.detail.value;
|
|
1435
|
+
const step = this.multiplyByFactor(this.step);
|
|
1436
|
+
if (!this.isMultipleOfStep(value, step)) {
|
|
1437
|
+
value = this.roundToStep(value, step);
|
|
1438
|
+
}
|
|
1439
|
+
this.change.emit(value / this.factor);
|
|
1435
1440
|
};
|
|
1436
1441
|
this.inputHandler = this.inputHandler.bind(this);
|
|
1437
1442
|
this.getContainerClassList = this.getContainerClassList.bind(this);
|
|
@@ -1443,11 +1448,10 @@ let Slider = class {
|
|
|
1443
1448
|
this.initialize();
|
|
1444
1449
|
}
|
|
1445
1450
|
initialize() {
|
|
1446
|
-
const
|
|
1447
|
-
if (!
|
|
1451
|
+
const inputElement = this.getInputElement();
|
|
1452
|
+
if (!inputElement) {
|
|
1448
1453
|
return;
|
|
1449
1454
|
}
|
|
1450
|
-
const inputElement = element.querySelector('input');
|
|
1451
1455
|
const value = this.getValue();
|
|
1452
1456
|
/*
|
|
1453
1457
|
For some reason the input element's `value` attribute is removed
|
|
@@ -1472,7 +1476,6 @@ let Slider = class {
|
|
|
1472
1476
|
*/
|
|
1473
1477
|
const greaterThanOrEqualMin = value >= this.valuemin;
|
|
1474
1478
|
const lessThanOrEqualMax = value <= this.valuemax;
|
|
1475
|
-
const dividableByStep = value % this.step === 0;
|
|
1476
1479
|
if (!greaterThanOrEqualMin) {
|
|
1477
1480
|
const newMin = this.multiplyByFactor(value);
|
|
1478
1481
|
inputElement.setAttribute('min', `${newMin}`);
|
|
@@ -1481,20 +1484,16 @@ let Slider = class {
|
|
|
1481
1484
|
const newMax = this.multiplyByFactor(value);
|
|
1482
1485
|
inputElement.setAttribute('max', `${newMax}`);
|
|
1483
1486
|
}
|
|
1484
|
-
if (!
|
|
1487
|
+
if (!this.isMultipleOfStep(value, this.step)) {
|
|
1485
1488
|
inputElement.removeAttribute('step');
|
|
1486
1489
|
}
|
|
1487
|
-
this.
|
|
1488
|
-
this.mdcSlider.listen('MDCSlider:change', this.changeHandler);
|
|
1489
|
-
this.mdcSlider.listen('MDCSlider:input', this.inputHandler);
|
|
1490
|
+
this.createMDCSlider();
|
|
1490
1491
|
}
|
|
1491
1492
|
componentWillLoad() {
|
|
1492
1493
|
this.setPercentageClass(this.value);
|
|
1493
1494
|
}
|
|
1494
1495
|
disconnectedCallback() {
|
|
1495
|
-
this.
|
|
1496
|
-
this.mdcSlider.unlisten('MDCSlider:input', this.inputHandler);
|
|
1497
|
-
this.mdcSlider.destroy();
|
|
1496
|
+
this.destroyMDCSlider();
|
|
1498
1497
|
}
|
|
1499
1498
|
getContainerClassList() {
|
|
1500
1499
|
return {
|
|
@@ -1533,7 +1532,16 @@ let Slider = class {
|
|
|
1533
1532
|
if (!this.mdcSlider) {
|
|
1534
1533
|
return;
|
|
1535
1534
|
}
|
|
1536
|
-
this.
|
|
1535
|
+
const value = this.multiplyByFactor(this.getValue());
|
|
1536
|
+
this.mdcSlider.setValue(value);
|
|
1537
|
+
if (this.isStepConfigured()) {
|
|
1538
|
+
return;
|
|
1539
|
+
}
|
|
1540
|
+
const step = this.multiplyByFactor(this.step);
|
|
1541
|
+
if (!this.isMultipleOfStep(value, step)) {
|
|
1542
|
+
return;
|
|
1543
|
+
}
|
|
1544
|
+
this.reCreateSliderWithStep();
|
|
1537
1545
|
}
|
|
1538
1546
|
updateDisabledState() {
|
|
1539
1547
|
if (!this.mdcSlider) {
|
|
@@ -1557,6 +1565,54 @@ let Slider = class {
|
|
|
1557
1565
|
setPercentageClass(value) {
|
|
1558
1566
|
this.percentageClass = getPercentageClass((value - this.valuemin) / (this.valuemax - this.valuemin));
|
|
1559
1567
|
}
|
|
1568
|
+
isMultipleOfStep(value, step) {
|
|
1569
|
+
if (!step) {
|
|
1570
|
+
return true;
|
|
1571
|
+
}
|
|
1572
|
+
return value % step === 0;
|
|
1573
|
+
}
|
|
1574
|
+
roundToStep(value, step) {
|
|
1575
|
+
return Math.round(value / step) * step;
|
|
1576
|
+
}
|
|
1577
|
+
getRootElement() {
|
|
1578
|
+
return this.rootElement.shadowRoot.querySelector('.mdc-slider');
|
|
1579
|
+
}
|
|
1580
|
+
getInputElement() {
|
|
1581
|
+
const element = this.getRootElement();
|
|
1582
|
+
if (!element) {
|
|
1583
|
+
return;
|
|
1584
|
+
}
|
|
1585
|
+
return element.querySelector('input');
|
|
1586
|
+
}
|
|
1587
|
+
isStepConfigured() {
|
|
1588
|
+
if (!this.step) {
|
|
1589
|
+
return true;
|
|
1590
|
+
}
|
|
1591
|
+
const input = this.getInputElement();
|
|
1592
|
+
if (!input) {
|
|
1593
|
+
return true;
|
|
1594
|
+
}
|
|
1595
|
+
return input.hasAttribute('step');
|
|
1596
|
+
}
|
|
1597
|
+
reCreateSliderWithStep() {
|
|
1598
|
+
const inputElement = this.getInputElement();
|
|
1599
|
+
const step = `${this.multiplyByFactor(this.step)}`;
|
|
1600
|
+
inputElement.setAttribute('step', step);
|
|
1601
|
+
this.destroyMDCSlider();
|
|
1602
|
+
this.createMDCSlider();
|
|
1603
|
+
}
|
|
1604
|
+
createMDCSlider() {
|
|
1605
|
+
const element = this.getRootElement();
|
|
1606
|
+
this.mdcSlider = new MDCSlider(element);
|
|
1607
|
+
this.mdcSlider.listen('MDCSlider:change', this.changeHandler);
|
|
1608
|
+
this.mdcSlider.listen('MDCSlider:input', this.inputHandler);
|
|
1609
|
+
}
|
|
1610
|
+
destroyMDCSlider() {
|
|
1611
|
+
this.mdcSlider.unlisten('MDCSlider:change', this.changeHandler);
|
|
1612
|
+
this.mdcSlider.unlisten('MDCSlider:input', this.inputHandler);
|
|
1613
|
+
this.mdcSlider.destroy();
|
|
1614
|
+
this.mdcSlider = undefined;
|
|
1615
|
+
}
|
|
1560
1616
|
get rootElement() { return index.getElement(this); }
|
|
1561
1617
|
static get watchers() { return {
|
|
1562
1618
|
"disabled": ["watchDisabled"],
|
|
@@ -3,15 +3,17 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-e63a89d7.js');
|
|
6
|
-
const isEqual = require('./isEqual-
|
|
6
|
+
const isEqual = require('./isEqual-e3b9c27c.js');
|
|
7
7
|
const component = require('./component-f532119f.js');
|
|
8
8
|
const component$1 = require('./component-2faaa141.js');
|
|
9
9
|
const ponyfill = require('./ponyfill-98ca4766.js');
|
|
10
|
-
const _arrayIncludesWith = require('./_arrayIncludesWith-
|
|
11
|
-
require('./eq-
|
|
12
|
-
require('./
|
|
10
|
+
const _arrayIncludesWith = require('./_arrayIncludesWith-36a6fafb.js');
|
|
11
|
+
require('./eq-9a943b00.js');
|
|
12
|
+
require('./isObject-e28b7997.js');
|
|
13
|
+
require('./_defineProperty-8351e789.js');
|
|
13
14
|
require('./isArray-d188a04f.js');
|
|
14
|
-
require('./
|
|
15
|
+
require('./isObjectLike-3e3f0cba.js');
|
|
16
|
+
require('./isArrayLike-ac53bdac.js');
|
|
15
17
|
|
|
16
18
|
/** Used as the size to enable large array optimizations. */
|
|
17
19
|
var LARGE_ARRAY_SIZE = 200;
|
|
@@ -3,14 +3,16 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-e63a89d7.js');
|
|
6
|
-
const pickBy = require('./pickBy-
|
|
7
|
-
const isEqual = require('./isEqual-
|
|
8
|
-
require('./
|
|
6
|
+
const pickBy = require('./pickBy-88b0430a.js');
|
|
7
|
+
const isEqual = require('./isEqual-e3b9c27c.js');
|
|
8
|
+
require('./isObject-e28b7997.js');
|
|
9
9
|
require('./isArray-d188a04f.js');
|
|
10
|
-
require('./isSymbol-
|
|
11
|
-
require('./
|
|
12
|
-
require('./
|
|
13
|
-
require('./
|
|
10
|
+
require('./isSymbol-d22b2798.js');
|
|
11
|
+
require('./isObjectLike-3e3f0cba.js');
|
|
12
|
+
require('./isArrayLike-ac53bdac.js');
|
|
13
|
+
require('./eq-9a943b00.js');
|
|
14
|
+
require('./_assignValue-c9fc3712.js');
|
|
15
|
+
require('./_defineProperty-8351e789.js');
|
|
14
16
|
|
|
15
17
|
/* Tabulator v4.9.3 (c) Oliver Folkerd */
|
|
16
18
|
|
|
@@ -67,4 +67,20 @@ let Tooltip = class {
|
|
|
67
67
|
};
|
|
68
68
|
Tooltip.style = tooltipCss;
|
|
69
69
|
|
|
70
|
+
const tooltipContentCss = ":host{animation:display-tooltip 0.2s ease;display:flex;flex-direction:row;border-radius:0.25rem;padding:0.25rem 0.5rem;font-size:0.875rem;background-color:rgb(var(--contrast-1300));box-shadow:var(--shadow-depth-16)}.label{color:rgb(var(--contrast-200))}.helper-label{color:rgb(var(--contrast-800));padding:0 0 0 1rem}.helper-label:empty{display:none}@keyframes display-tooltip{0%{opacity:0;transform:translate3d(0, 0, 0) scale(0.94)}100%{opacity:1;transform:translate3d(0, 0, 0) scale(1)}}";
|
|
71
|
+
|
|
72
|
+
let TooltipContent = class {
|
|
73
|
+
constructor(hostRef) {
|
|
74
|
+
index.registerInstance(this, hostRef);
|
|
75
|
+
}
|
|
76
|
+
render() {
|
|
77
|
+
return [
|
|
78
|
+
index.h("div", { class: "label" }, this.label),
|
|
79
|
+
index.h("div", { class: "helper-label" }, this.helperLabel),
|
|
80
|
+
];
|
|
81
|
+
}
|
|
82
|
+
};
|
|
83
|
+
TooltipContent.style = tooltipContentCss;
|
|
84
|
+
|
|
70
85
|
exports.limel_tooltip = Tooltip;
|
|
86
|
+
exports.limel_tooltip_content = TooltipContent;
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -14,7 +14,7 @@ const patchEsm = () => {
|
|
|
14
14
|
const defineCustomElements = (win, options) => {
|
|
15
15
|
if (typeof window === 'undefined') return Promise.resolve();
|
|
16
16
|
return patchEsm().then(() => {
|
|
17
|
-
return index.bootstrapLazy([["limel-picker.cjs",[[1,"limel-picker",{"disabled":[4],"readonly":[516],"label":[1],"searchLabel":[1,"search-label"],"leadingIcon":[1,"leading-icon"],"emptyResultMessage":[1,"empty-result-message"],"required":[4],"value":[16],"searcher":[16],"multiple":[4],"delimiter":[513],"actions":[16],"actionPosition":[1,"action-position"],"actionScrollBehavior":[1,"action-scroll-behavior"],"badgeIcons":[516,"badge-icons"],"items":[32],"textValue":[32],"loading":[32],"chips":[32]}]]],["limel-date-picker.cjs",[[1,"limel-date-picker",{"disabled":[516],"readonly":[516],"invalid":[516],"label":[513],"helperText":[513,"helper-text"],"required":[516],"value":[16],"type":[513],"format":[513],"language":[513],"formattedValue":[32],"internalFormat":[32],"showPortal":[32]}]]],["limel-button-group.cjs",[[1,"limel-button-group",{"value":[16],"disabled":[516],"selectedButtonId":[32]}]]],["limel-select.cjs",[[1,"limel-select",{"disabled":[516],"readonly":[516],"invalid":[516],"required":[516],"label":[513],"helperText":[513,"helper-text"],"value":[16],"options":[16],"multiple":[4],"menuOpen":[32]}]]],["limel-tab-panel.cjs",[[1,"limel-tab-panel",{"tabs":[1040]}]]],["limel-file.cjs",[[1,"limel-file",{"value":[16],"label":[513],"required":[516],"disabled":[516],"readonly":[516],"accept":[513],"language":[1],"isDraggingOverDropZone":[32]}]]],["limel-menu.cjs",[[1,"limel-menu",{"items":[16],"disabled":[516],"openDirection":[513,"open-direction"],"open":[1540],"badgeIcons":[516,"badge-icons"],"gridLayout":[516,"grid-layout"]}]]],["limel-button.cjs",[[1,"limel-button",{"label":[513],"primary":[516],"outlined":[516],"icon":[513],"disabled":[516],"loading":[516]}]]],["limel-collapsible-section.cjs",[[1,"limel-collapsible-section",{"isOpen":[1540,"is-open"],"header":[513],"actions":[16]}]]],["limel-dialog.cjs",[[1,"limel-dialog",{"heading":[1],"fullscreen":[516],"open":[1540],"closingActions":[16]}]]],["limel-
|
|
17
|
+
return index.bootstrapLazy([["limel-color-picker.cjs",[[1,"limel-color-picker",{"value":[513],"label":[513],"helperText":[513,"helper-text"],"tooltipLabel":[513,"tooltip-label"],"required":[516],"readonly":[516],"isOpen":[32]}]]],["limel-picker.cjs",[[1,"limel-picker",{"disabled":[4],"readonly":[516],"label":[1],"searchLabel":[1,"search-label"],"helperText":[513,"helper-text"],"leadingIcon":[1,"leading-icon"],"emptyResultMessage":[1,"empty-result-message"],"required":[4],"value":[16],"searcher":[16],"multiple":[4],"delimiter":[513],"actions":[16],"actionPosition":[1,"action-position"],"actionScrollBehavior":[1,"action-scroll-behavior"],"badgeIcons":[516,"badge-icons"],"items":[32],"textValue":[32],"loading":[32],"chips":[32]}]]],["limel-date-picker.cjs",[[1,"limel-date-picker",{"disabled":[516],"readonly":[516],"invalid":[516],"label":[513],"helperText":[513,"helper-text"],"required":[516],"value":[16],"type":[513],"format":[513],"language":[513],"formattedValue":[32],"internalFormat":[32],"showPortal":[32]}]]],["limel-button-group.cjs",[[1,"limel-button-group",{"value":[16],"disabled":[516],"selectedButtonId":[32]}]]],["limel-select.cjs",[[1,"limel-select",{"disabled":[516],"readonly":[516],"invalid":[516],"required":[516],"label":[513],"helperText":[513,"helper-text"],"value":[16],"options":[16],"multiple":[4],"menuOpen":[32]}]]],["limel-tab-panel.cjs",[[1,"limel-tab-panel",{"tabs":[1040]}]]],["limel-file.cjs",[[1,"limel-file",{"value":[16],"label":[513],"required":[516],"disabled":[516],"readonly":[516],"accept":[513],"language":[1],"isDraggingOverDropZone":[32]}]]],["limel-menu.cjs",[[1,"limel-menu",{"items":[16],"disabled":[516],"openDirection":[513,"open-direction"],"open":[1540],"badgeIcons":[516,"badge-icons"],"gridLayout":[516,"grid-layout"]}]]],["limel-button.cjs",[[1,"limel-button",{"label":[513],"primary":[516],"outlined":[516],"icon":[513],"disabled":[516],"loading":[516]}]]],["limel-collapsible-section.cjs",[[1,"limel-collapsible-section",{"isOpen":[1540,"is-open"],"header":[513],"actions":[16]}]]],["limel-dialog.cjs",[[1,"limel-dialog",{"heading":[1],"fullscreen":[516],"open":[1540],"closingActions":[16]}]]],["limel-progress-flow.cjs",[[1,"limel-progress-flow",{"flowItems":[16],"disabled":[4],"readonly":[4]}]]],["limel-banner.cjs",[[1,"limel-banner",{"message":[513],"icon":[513],"isOpen":[32],"open":[64],"close":[64]}]]],["limel-table.cjs",[[1,"limel-table",{"data":[16],"columns":[16],"mode":[1],"pageSize":[2,"page-size"],"totalRows":[2,"total-rows"],"sorting":[16],"activeRow":[1040],"movableColumns":[4,"movable-columns"],"loading":[4],"page":[2],"emptyMessage":[1,"empty-message"]}]]],["limel-checkbox.cjs",[[1,"limel-checkbox",{"disabled":[516],"readonly":[516],"label":[513],"helperText":[513,"helper-text"],"checked":[516],"required":[516],"modified":[32]}]]],["limel-circular-progress.cjs",[[1,"limel-circular-progress",{"value":[2],"maxValue":[2,"max-value"],"suffix":[1],"displayPercentageColors":[4,"display-percentage-colors"],"size":[513]}]]],["limel-code-editor.cjs",[[1,"limel-code-editor",{"value":[1],"language":[1],"readonly":[4],"lineNumbers":[4,"line-numbers"],"colorScheme":[1,"color-scheme"],"random":[32]}]]],["limel-config.cjs",[[1,"limel-config",{"config":[16]}]]],["limel-flex-container.cjs",[[1,"limel-flex-container",{"direction":[513],"justify":[513],"align":[513],"reverse":[516]}]]],["limel-form.cjs",[[1,"limel-form",{"schema":[16],"value":[16],"disabled":[4],"propsFactory":[16],"transformErrors":[16]}]]],["limel-grid.cjs",[[1,"limel-grid"]]],["limel-linear-progress.cjs",[[1,"limel-linear-progress",{"value":[2],"indeterminate":[4]}]]],["limel-slider.cjs",[[1,"limel-slider",{"disabled":[516],"readonly":[516],"factor":[514],"label":[513],"helperText":[513,"helper-text"],"unit":[513],"value":[514],"valuemax":[514],"valuemin":[514],"step":[514],"percentageClass":[32]}]]],["limel-snackbar.cjs",[[1,"limel-snackbar",{"message":[1],"timeout":[2],"actionText":[1,"action-text"],"dismissible":[4],"multiline":[4],"language":[1],"show":[64]}]]],["limel-switch.cjs",[[1,"limel-switch",{"label":[513],"disabled":[516],"readonly":[516],"value":[516],"fieldId":[32]}]]],["limel-tab-bar.cjs",[[1,"limel-tab-bar",{"tabs":[1040],"canScrollLeft":[32],"canScrollRight":[32]},[[9,"resize","handleWindowResize"]]]]],["limel-header.cjs",[[1,"limel-header",{"icon":[1],"heading":[1],"subheading":[1],"supportingText":[1,"supporting-text"]}]]],["limel-progress-flow-item.cjs",[[0,"limel-progress-flow-item",{"item":[16],"disabled":[4],"readonly":[4]}]]],["limel-flatpickr-adapter.cjs",[[1,"limel-flatpickr-adapter",{"value":[16],"type":[1],"format":[1],"isOpen":[4,"is-open"],"inputElement":[16],"language":[1]}]]],["limel-menu-list.cjs",[[1,"limel-menu-list",{"items":[16],"badgeIcons":[4,"badge-icons"],"iconSize":[1,"icon-size"],"type":[1],"maxLinesSecondaryText":[2,"max-lines-secondary-text"]}]]],["limel-popover-surface.cjs",[[1,"limel-popover-surface",{"contentCollection":[16]}]]],["limel-icon.cjs",[[1,"limel-icon",{"size":[513],"name":[513],"badge":[516]}]]],["limel-input-field.cjs",[[1,"limel-input-field",{"disabled":[516],"readonly":[516],"invalid":[516],"label":[513],"helperText":[513,"helper-text"],"required":[516],"value":[513],"trailingIcon":[513,"trailing-icon"],"leadingIcon":[513,"leading-icon"],"pattern":[513],"type":[513],"formatNumber":[516,"format-number"],"step":[520],"max":[514],"min":[514],"maxlength":[514],"minlength":[514],"completions":[16],"showLink":[516,"show-link"],"isFocused":[32],"isModified":[32],"showCompletions":[32]}]]],["limel-color-picker-palette_2.cjs",[[1,"limel-color-picker-palette",{"value":[513],"label":[513],"helperText":[513,"helper-text"],"required":[516]}],[1,"limel-popover",{"open":[4]}]]],["limel-badge.cjs",[[1,"limel-badge",{"label":[514]}]]],["limel-chip-set.cjs",[[1,"limel-chip-set",{"value":[16],"type":[513],"label":[513],"helperText":[513,"helper-text"],"disabled":[516],"readonly":[516],"maxItems":[514,"max-items"],"required":[516],"searchLabel":[513,"search-label"],"emptyInputOnBlur":[516,"empty-input-on-blur"],"clearAllButton":[4,"clear-all-button"],"leadingIcon":[513,"leading-icon"],"delimiter":[513],"language":[1],"editMode":[32],"textValue":[32],"blurred":[32],"inputChipIndexSelected":[32],"getEditMode":[64],"setFocus":[64],"emptyInput":[64]}]]],["limel-icon-button.cjs",[[1,"limel-icon-button",{"icon":[513],"elevated":[516],"label":[513],"disabled":[516],"relayout":[64]}]]],["limel-spinner.cjs",[[1,"limel-spinner",{"size":[513],"limeBranded":[4,"lime-branded"]}]]],["limel-list_3.cjs",[[1,"limel-list",{"items":[16],"badgeIcons":[4,"badge-icons"],"iconSize":[1,"icon-size"],"type":[1],"maxLinesSecondaryText":[2,"max-lines-secondary-text"]}],[1,"limel-menu-surface",{"open":[4],"allowClicksElement":[16]}],[1,"limel-portal",{"openDirection":[1,"open-direction"],"position":[1],"containerId":[1,"container-id"],"containerStyle":[16],"parent":[16],"inheritParentWidth":[4,"inherit-parent-width"],"visible":[4]}]]],["limel-tooltip_2.cjs",[[1,"limel-tooltip",{"label":[513],"helperLabel":[513,"helper-label"],"elementId":[513,"element-id"],"open":[32]}],[1,"limel-tooltip-content",{"label":[513],"helperLabel":[513,"helper-label"]}]]]], options);
|
|
18
18
|
});
|
|
19
19
|
};
|
|
20
20
|
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const isEqual = require('./isEqual-
|
|
4
|
-
const
|
|
3
|
+
const isEqual = require('./isEqual-e3b9c27c.js');
|
|
4
|
+
const isObject = require('./isObject-e28b7997.js');
|
|
5
5
|
const isArray = require('./isArray-d188a04f.js');
|
|
6
|
-
const isSymbol = require('./isSymbol-
|
|
7
|
-
const isArrayLike = require('./isArrayLike-
|
|
8
|
-
const _assignValue = require('./_assignValue-
|
|
6
|
+
const isSymbol = require('./isSymbol-d22b2798.js');
|
|
7
|
+
const isArrayLike = require('./isArrayLike-ac53bdac.js');
|
|
8
|
+
const _assignValue = require('./_assignValue-c9fc3712.js');
|
|
9
9
|
|
|
10
10
|
/** Used as references for various `Number` constants. */
|
|
11
11
|
var INFINITY$1 = 1 / 0;
|
|
12
12
|
|
|
13
13
|
/** Used to convert symbols to primitives and strings. */
|
|
14
|
-
var symbolProto =
|
|
14
|
+
var symbolProto = isObject.Symbol ? isObject.Symbol.prototype : undefined,
|
|
15
15
|
symbolToString = symbolProto ? symbolProto.toString : undefined;
|
|
16
16
|
|
|
17
17
|
/**
|
|
@@ -71,7 +71,7 @@ var hasOwnProperty$1 = objectProto$1.hasOwnProperty;
|
|
|
71
71
|
* @returns {Array} Returns the array of property names.
|
|
72
72
|
*/
|
|
73
73
|
function baseKeysIn(object) {
|
|
74
|
-
if (!
|
|
74
|
+
if (!isObject.isObject(object)) {
|
|
75
75
|
return nativeKeysIn(object);
|
|
76
76
|
}
|
|
77
77
|
var isProto = isEqual.isPrototype(object),
|
|
@@ -463,7 +463,7 @@ function baseIsMatch(object, source, matchData, customizer) {
|
|
|
463
463
|
* equality comparisons, else `false`.
|
|
464
464
|
*/
|
|
465
465
|
function isStrictComparable(value) {
|
|
466
|
-
return value === value && !
|
|
466
|
+
return value === value && !isObject.isObject(value);
|
|
467
467
|
}
|
|
468
468
|
|
|
469
469
|
/**
|
|
@@ -794,7 +794,7 @@ function negate(predicate) {
|
|
|
794
794
|
* @returns {Object} Returns `object`.
|
|
795
795
|
*/
|
|
796
796
|
function baseSet(object, path, value, customizer) {
|
|
797
|
-
if (!
|
|
797
|
+
if (!isObject.isObject(object)) {
|
|
798
798
|
return object;
|
|
799
799
|
}
|
|
800
800
|
path = castPath(path, object);
|
|
@@ -816,7 +816,7 @@ function baseSet(object, path, value, customizer) {
|
|
|
816
816
|
var objValue = nested[key];
|
|
817
817
|
newValue = customizer ? customizer(objValue, key, nested) : undefined;
|
|
818
818
|
if (newValue === undefined) {
|
|
819
|
-
newValue =
|
|
819
|
+
newValue = isObject.isObject(objValue)
|
|
820
820
|
? objValue
|
|
821
821
|
: (isArrayLike.isIndex(path[index + 1]) ? [] : {});
|
|
822
822
|
}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const isObject = require('./isObject-e28b7997.js');
|
|
4
|
+
const isSymbol = require('./isSymbol-d22b2798.js');
|
|
5
|
+
|
|
6
|
+
/** Used to match a single whitespace character. */
|
|
7
|
+
var reWhitespace = /\s/;
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Used by `_.trim` and `_.trimEnd` to get the index of the last non-whitespace
|
|
11
|
+
* character of `string`.
|
|
12
|
+
*
|
|
13
|
+
* @private
|
|
14
|
+
* @param {string} string The string to inspect.
|
|
15
|
+
* @returns {number} Returns the index of the last non-whitespace character.
|
|
16
|
+
*/
|
|
17
|
+
function trimmedEndIndex(string) {
|
|
18
|
+
var index = string.length;
|
|
19
|
+
|
|
20
|
+
while (index-- && reWhitespace.test(string.charAt(index))) {}
|
|
21
|
+
return index;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/** Used to match leading whitespace. */
|
|
25
|
+
var reTrimStart = /^\s+/;
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* The base implementation of `_.trim`.
|
|
29
|
+
*
|
|
30
|
+
* @private
|
|
31
|
+
* @param {string} string The string to trim.
|
|
32
|
+
* @returns {string} Returns the trimmed string.
|
|
33
|
+
*/
|
|
34
|
+
function baseTrim(string) {
|
|
35
|
+
return string
|
|
36
|
+
? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, '')
|
|
37
|
+
: string;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/** Used as references for various `Number` constants. */
|
|
41
|
+
var NAN = 0 / 0;
|
|
42
|
+
|
|
43
|
+
/** Used to detect bad signed hexadecimal string values. */
|
|
44
|
+
var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
|
|
45
|
+
|
|
46
|
+
/** Used to detect binary string values. */
|
|
47
|
+
var reIsBinary = /^0b[01]+$/i;
|
|
48
|
+
|
|
49
|
+
/** Used to detect octal string values. */
|
|
50
|
+
var reIsOctal = /^0o[0-7]+$/i;
|
|
51
|
+
|
|
52
|
+
/** Built-in method references without a dependency on `root`. */
|
|
53
|
+
var freeParseInt = parseInt;
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Converts `value` to a number.
|
|
57
|
+
*
|
|
58
|
+
* @static
|
|
59
|
+
* @memberOf _
|
|
60
|
+
* @since 4.0.0
|
|
61
|
+
* @category Lang
|
|
62
|
+
* @param {*} value The value to process.
|
|
63
|
+
* @returns {number} Returns the number.
|
|
64
|
+
* @example
|
|
65
|
+
*
|
|
66
|
+
* _.toNumber(3.2);
|
|
67
|
+
* // => 3.2
|
|
68
|
+
*
|
|
69
|
+
* _.toNumber(Number.MIN_VALUE);
|
|
70
|
+
* // => 5e-324
|
|
71
|
+
*
|
|
72
|
+
* _.toNumber(Infinity);
|
|
73
|
+
* // => Infinity
|
|
74
|
+
*
|
|
75
|
+
* _.toNumber('3.2');
|
|
76
|
+
* // => 3.2
|
|
77
|
+
*/
|
|
78
|
+
function toNumber(value) {
|
|
79
|
+
if (typeof value == 'number') {
|
|
80
|
+
return value;
|
|
81
|
+
}
|
|
82
|
+
if (isSymbol.isSymbol(value)) {
|
|
83
|
+
return NAN;
|
|
84
|
+
}
|
|
85
|
+
if (isObject.isObject(value)) {
|
|
86
|
+
var other = typeof value.valueOf == 'function' ? value.valueOf() : value;
|
|
87
|
+
value = isObject.isObject(other) ? (other + '') : other;
|
|
88
|
+
}
|
|
89
|
+
if (typeof value != 'string') {
|
|
90
|
+
return value === 0 ? value : +value;
|
|
91
|
+
}
|
|
92
|
+
value = baseTrim(value);
|
|
93
|
+
var isBinary = reIsBinary.test(value);
|
|
94
|
+
return (isBinary || reIsOctal.test(value))
|
|
95
|
+
? freeParseInt(value.slice(2), isBinary ? 2 : 8)
|
|
96
|
+
: (reIsBadHex.test(value) ? NAN : +value);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
exports.toNumber = toNumber;
|
|
@@ -9,6 +9,8 @@
|
|
|
9
9
|
"./components/circular-progress/circular-progress.js",
|
|
10
10
|
"./components/code-editor/code-editor.js",
|
|
11
11
|
"./components/collapsible-section/collapsible-section.js",
|
|
12
|
+
"./components/color-picker/color-picker-palette.js",
|
|
13
|
+
"./components/color-picker/color-picker.js",
|
|
12
14
|
"./components/config/config.js",
|
|
13
15
|
"./components/date-picker/date-picker.js",
|
|
14
16
|
"./components/date-picker/flatpickr-adapter/flatpickr-adapter.js",
|
|
@@ -762,6 +762,7 @@
|
|
|
762
762
|
|
|
763
763
|
.mdc-form-field {
|
|
764
764
|
display: flex;
|
|
765
|
+
flex-wrap: wrap;
|
|
765
766
|
}
|
|
766
767
|
.mdc-form-field .mdc-checkbox.mdc-checkbox--invalid .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate) ~ .mdc-checkbox__background {
|
|
767
768
|
border-color: var(--lime-error-text-color);
|
|
@@ -804,4 +805,99 @@
|
|
|
804
805
|
100% {
|
|
805
806
|
opacity: 0;
|
|
806
807
|
}
|
|
808
|
+
}
|
|
809
|
+
/*
|
|
810
|
+
* This file is imported into every component!
|
|
811
|
+
*
|
|
812
|
+
* Nothing in this file may output any CSS
|
|
813
|
+
* without being explicitly called by outside code.
|
|
814
|
+
*/
|
|
815
|
+
/*
|
|
816
|
+
* This file is imported into every component that uses MDC!
|
|
817
|
+
*
|
|
818
|
+
* Anything in this file that generates CSS output on its own,
|
|
819
|
+
* without being explicitly used, will output that CSS in every
|
|
820
|
+
* single component, increasing the size of the production build.
|
|
821
|
+
* Avoid that unless there's very good reason for it!
|
|
822
|
+
*/
|
|
823
|
+
/*
|
|
824
|
+
* This file is imported into every component that uses MDC!
|
|
825
|
+
*
|
|
826
|
+
* Anything in this file that generates CSS output on its own,
|
|
827
|
+
* without being explicitly used, will output that CSS in every
|
|
828
|
+
* single component, increasing the size of the production build.
|
|
829
|
+
* Avoid that unless there's very good reason for it!
|
|
830
|
+
*/
|
|
831
|
+
:host {
|
|
832
|
+
--mdc-theme-primary: var(
|
|
833
|
+
--lime-primary-color,
|
|
834
|
+
rgb(var(--color-teal-default))
|
|
835
|
+
);
|
|
836
|
+
--mdc-theme-secondary: var(
|
|
837
|
+
--lime-secondary-color,
|
|
838
|
+
rgb(var(--contrast-1100))
|
|
839
|
+
);
|
|
840
|
+
--mdc-theme-on-primary: var(
|
|
841
|
+
--lime-on-primary-color,
|
|
842
|
+
rgb(var(--contrast-100))
|
|
843
|
+
);
|
|
844
|
+
--mdc-theme-on-secondary: var(
|
|
845
|
+
--lime-on-secondary-color,
|
|
846
|
+
rgb(var(--contrast-100))
|
|
847
|
+
);
|
|
848
|
+
--mdc-theme-text-disabled-on-background: var(
|
|
849
|
+
--lime-text-disabled-on-background-color,
|
|
850
|
+
rgba(var(--contrast-1700), 0.38)
|
|
851
|
+
);
|
|
852
|
+
--mdc-theme-text-primary-on-background: var(
|
|
853
|
+
--lime-text-primary-on-background-color,
|
|
854
|
+
rgba(var(--contrast-1700), 0.87)
|
|
855
|
+
);
|
|
856
|
+
--mdc-theme-text-secondary-on-background: var(
|
|
857
|
+
--lime-text-secondary-on-background-color,
|
|
858
|
+
rgba(var(--contrast-1700), 0.54)
|
|
859
|
+
);
|
|
860
|
+
--lime-error-text-color: rgb(var(--color-red-darker));
|
|
861
|
+
--mdc-theme-surface: var(
|
|
862
|
+
--lime-surface-background-color,
|
|
863
|
+
rgb(var(--contrast-100))
|
|
864
|
+
);
|
|
865
|
+
--mdc-theme-on-surface: var(
|
|
866
|
+
--lime-on-surface-color,
|
|
867
|
+
var(--lime-text-primary-on-background-color)
|
|
868
|
+
);
|
|
869
|
+
}
|
|
870
|
+
|
|
871
|
+
.limel-checkbox-helper-line {
|
|
872
|
+
flex-basis: 100%;
|
|
873
|
+
padding-right: 1rem;
|
|
874
|
+
padding-left: 1rem;
|
|
875
|
+
}
|
|
876
|
+
|
|
877
|
+
.limel-checkbox-helper-text {
|
|
878
|
+
font-family: Roboto, sans-serif;
|
|
879
|
+
-moz-osx-font-smoothing: grayscale;
|
|
880
|
+
-webkit-font-smoothing: antialiased;
|
|
881
|
+
font-size: 0.6875rem;
|
|
882
|
+
font-weight: 400;
|
|
883
|
+
letter-spacing: 0.0333333333em;
|
|
884
|
+
text-decoration: inherit;
|
|
885
|
+
text-transform: inherit;
|
|
886
|
+
display: block;
|
|
887
|
+
margin-top: 0;
|
|
888
|
+
line-height: normal;
|
|
889
|
+
margin: 0;
|
|
890
|
+
transition: opacity 150ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
891
|
+
opacity: 0;
|
|
892
|
+
color: rgba(var(--contrast-1200), 1);
|
|
893
|
+
}
|
|
894
|
+
|
|
895
|
+
.mdc-form-field:hover .limel-checkbox-helper-text, .mdc-form-field:focus .limel-checkbox-helper-text, .mdc-form-field:focus-visible .limel-checkbox-helper-text, .mdc-form-field:focus-within .limel-checkbox-helper-text {
|
|
896
|
+
opacity: 1;
|
|
897
|
+
}
|
|
898
|
+
|
|
899
|
+
@media (pointer: coarse) {
|
|
900
|
+
.limel-checkbox-helper-text {
|
|
901
|
+
opacity: 1;
|
|
902
|
+
}
|
|
807
903
|
}
|
|
@@ -5,6 +5,7 @@ import { createRandomString } from '../../util/random-string';
|
|
|
5
5
|
import { CheckboxTemplate } from './checkbox.template';
|
|
6
6
|
/**
|
|
7
7
|
* @exampleComponent limel-example-checkbox
|
|
8
|
+
* @exampleComponent limel-example-checkbox-helper-text
|
|
8
9
|
*/
|
|
9
10
|
export class Checkbox {
|
|
10
11
|
constructor() {
|
|
@@ -51,7 +52,7 @@ export class Checkbox {
|
|
|
51
52
|
(_b = this.formField) === null || _b === void 0 ? void 0 : _b.destroy();
|
|
52
53
|
}
|
|
53
54
|
render() {
|
|
54
|
-
return (h(CheckboxTemplate, { disabled: this.disabled || this.readonly, label: this.label, checked: this.checked, required: this.required, invalid: this.required && this.modified && !this.checked, onChange: this.onChange, id: this.id }));
|
|
55
|
+
return (h(CheckboxTemplate, { disabled: this.disabled || this.readonly, label: this.label, helperText: this.helperText, checked: this.checked, required: this.required, invalid: this.required && this.modified && !this.checked, onChange: this.onChange, id: this.id }));
|
|
55
56
|
}
|
|
56
57
|
onChange(event) {
|
|
57
58
|
event.stopPropagation();
|
|
@@ -120,6 +121,23 @@ export class Checkbox {
|
|
|
120
121
|
"attribute": "label",
|
|
121
122
|
"reflect": true
|
|
122
123
|
},
|
|
124
|
+
"helperText": {
|
|
125
|
+
"type": "string",
|
|
126
|
+
"mutable": false,
|
|
127
|
+
"complexType": {
|
|
128
|
+
"original": "string",
|
|
129
|
+
"resolved": "string",
|
|
130
|
+
"references": {}
|
|
131
|
+
},
|
|
132
|
+
"required": false,
|
|
133
|
+
"optional": false,
|
|
134
|
+
"docs": {
|
|
135
|
+
"tags": [],
|
|
136
|
+
"text": "Optional helper text to display below the checkbox"
|
|
137
|
+
},
|
|
138
|
+
"attribute": "helper-text",
|
|
139
|
+
"reflect": true
|
|
140
|
+
},
|
|
123
141
|
"checked": {
|
|
124
142
|
"type": "boolean",
|
|
125
143
|
"mutable": false,
|
|
@@ -17,5 +17,13 @@ export const CheckboxTemplate = (props) => {
|
|
|
17
17
|
'mdc-checkbox--invalid': props.invalid,
|
|
18
18
|
'mdc-checkbox--disabled': props.disabled,
|
|
19
19
|
'mdc-checkbox--required': props.required,
|
|
20
|
-
}, htmlFor: props.id }, props.label)
|
|
20
|
+
}, htmlFor: props.id }, props.label),
|
|
21
|
+
h(HelperText, { text: props.helperText })));
|
|
22
|
+
};
|
|
23
|
+
const HelperText = (props) => {
|
|
24
|
+
if (typeof props.text !== 'string') {
|
|
25
|
+
return;
|
|
26
|
+
}
|
|
27
|
+
return (h("div", { class: "limel-checkbox-helper-line" },
|
|
28
|
+
h("p", { class: "limel-checkbox-helper-text", "aria-hidden": "true" }, props.text.trim())));
|
|
21
29
|
};
|
|
@@ -2622,4 +2622,26 @@ limel-icon.mdc-chip__icon.mdc-chip__icon--leading {
|
|
|
2622
2622
|
}
|
|
2623
2623
|
:host(.is-file-picker.shows-dropzone) .mdc-text-field:not(.has-chips):not(.lime-text-field--readonly) .mdc-notched-outline .mdc-notched-outline__notch {
|
|
2624
2624
|
max-width: 40%;
|
|
2625
|
+
}
|
|
2626
|
+
|
|
2627
|
+
.mdc-text-field-helper-line {
|
|
2628
|
+
flex-basis: 100%;
|
|
2629
|
+
}
|
|
2630
|
+
|
|
2631
|
+
.mdc-text-field-helper-text:before {
|
|
2632
|
+
height: 0.75rem;
|
|
2633
|
+
display: inline-block;
|
|
2634
|
+
width: 0;
|
|
2635
|
+
content: "";
|
|
2636
|
+
vertical-align: 0;
|
|
2637
|
+
}
|
|
2638
|
+
|
|
2639
|
+
:host(:not([type=input])) .mdc-chip-set:hover .mdc-text-field-helper-text, :host(:not([type=input])) .mdc-chip-set:focus .mdc-text-field-helper-text, :host(:not([type=input])) .mdc-chip-set:focus-visible .mdc-text-field-helper-text, :host(:not([type=input])) .mdc-chip-set:focus-within .mdc-text-field-helper-text {
|
|
2640
|
+
opacity: 1;
|
|
2641
|
+
}
|
|
2642
|
+
|
|
2643
|
+
@media (pointer: coarse) {
|
|
2644
|
+
:host(:not([type=input])) .mdc-chip-set .mdc-text-field-helper-text {
|
|
2645
|
+
opacity: 1;
|
|
2646
|
+
}
|
|
2625
2647
|
}
|