@limetech/lime-elements 37.11.5 → 37.12.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 +8 -0
- package/dist/cjs/lime-elements.cjs.js +1 -1
- package/dist/cjs/limel-breadcrumbs_3.cjs.entry.js +17 -16
- package/dist/cjs/limel-breadcrumbs_3.cjs.entry.js.map +1 -1
- package/dist/cjs/limel-flatpickr-adapter.cjs.entry.js +64 -53
- package/dist/cjs/limel-flatpickr-adapter.cjs.entry.js.map +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/menu/menu.js +37 -18
- package/dist/collection/components/menu/menu.js.map +1 -1
- package/dist/esm/lime-elements.js +1 -1
- package/dist/esm/limel-breadcrumbs_3.entry.js +17 -16
- package/dist/esm/limel-breadcrumbs_3.entry.js.map +1 -1
- package/dist/esm/limel-flatpickr-adapter.entry.js +64 -53
- package/dist/esm/limel-flatpickr-adapter.entry.js.map +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/lime-elements/lime-elements.esm.js +1 -1
- package/dist/lime-elements/lime-elements.esm.js.map +1 -1
- package/dist/lime-elements/{p-f081f064.entry.js → p-1b4d3901.entry.js} +2 -2
- package/dist/lime-elements/p-1b4d3901.entry.js.map +1 -0
- package/dist/lime-elements/{p-1d7a37ce.entry.js → p-885274d9.entry.js} +5 -5
- package/dist/lime-elements/p-885274d9.entry.js.map +1 -0
- package/dist/types/components/menu/menu.d.ts +7 -2
- package/dist/types/components.d.ts +8 -0
- package/package.json +6 -6
- package/dist/lime-elements/p-1d7a37ce.entry.js.map +0 -1
- package/dist/lime-elements/p-f081f064.entry.js.map +0 -1
|
@@ -6576,38 +6576,42 @@ class DatetimePicker extends Picker {
|
|
|
6576
6576
|
/* eslint-disable */
|
|
6577
6577
|
const keys = Object.keys;
|
|
6578
6578
|
function isBoolean(val) {
|
|
6579
|
-
return typeof val === "boolean"
|
|
6579
|
+
return typeof val === "boolean";
|
|
6580
6580
|
}
|
|
6581
6581
|
function isElement(val) {
|
|
6582
|
-
return val && typeof val.nodeType === "number"
|
|
6582
|
+
return val && typeof val.nodeType === "number";
|
|
6583
6583
|
}
|
|
6584
6584
|
function isString(val) {
|
|
6585
|
-
return typeof val === "string"
|
|
6585
|
+
return typeof val === "string";
|
|
6586
6586
|
}
|
|
6587
6587
|
function isNumber(val) {
|
|
6588
|
-
return typeof val === "number"
|
|
6588
|
+
return typeof val === "number";
|
|
6589
6589
|
}
|
|
6590
6590
|
function isObject(val) {
|
|
6591
|
-
return typeof val === "object" ? val !== null : isFunction(val)
|
|
6591
|
+
return typeof val === "object" ? val !== null : isFunction(val);
|
|
6592
6592
|
}
|
|
6593
6593
|
function isFunction(val) {
|
|
6594
|
-
return typeof val === "function"
|
|
6594
|
+
return typeof val === "function";
|
|
6595
6595
|
}
|
|
6596
6596
|
function isComponentClass(Component) {
|
|
6597
6597
|
const { prototype } = Component;
|
|
6598
|
-
return !!(prototype && prototype.isReactComponent)
|
|
6598
|
+
return !!(prototype && prototype.isReactComponent);
|
|
6599
6599
|
}
|
|
6600
6600
|
function isArrayLike(obj) {
|
|
6601
|
-
return
|
|
6601
|
+
return (
|
|
6602
|
+
isObject(obj) &&
|
|
6603
|
+
typeof obj.length === "number" &&
|
|
6604
|
+
typeof obj.nodeType !== "number"
|
|
6605
|
+
);
|
|
6602
6606
|
}
|
|
6603
6607
|
function forEach(value, fn) {
|
|
6604
|
-
if (!value) return
|
|
6608
|
+
if (!value) return;
|
|
6605
6609
|
for (const key of keys(value)) {
|
|
6606
6610
|
fn(value[key], key);
|
|
6607
6611
|
}
|
|
6608
6612
|
}
|
|
6609
6613
|
function isRef(maybeRef) {
|
|
6610
|
-
return isObject(maybeRef) && "current" in maybeRef
|
|
6614
|
+
return isObject(maybeRef) && "current" in maybeRef;
|
|
6611
6615
|
}
|
|
6612
6616
|
|
|
6613
6617
|
/**
|
|
@@ -6673,7 +6677,7 @@ const isUnitlessNumber = {
|
|
|
6673
6677
|
* WebkitTransitionDuration
|
|
6674
6678
|
*/
|
|
6675
6679
|
function prefixKey(prefix, key) {
|
|
6676
|
-
return prefix + key.charAt(0).toUpperCase() + key.substring(1)
|
|
6680
|
+
return prefix + key.charAt(0).toUpperCase() + key.substring(1);
|
|
6677
6681
|
}
|
|
6678
6682
|
|
|
6679
6683
|
/**
|
|
@@ -6683,8 +6687,8 @@ function prefixKey(prefix, key) {
|
|
|
6683
6687
|
const prefixes = ["Webkit", "ms", "Moz", "O"];
|
|
6684
6688
|
// Using Object.keys here, or else the vanilla for-in loop makes IE8 go into an
|
|
6685
6689
|
// infinite loop, because it iterates over the newly added props too.
|
|
6686
|
-
keys(isUnitlessNumber).forEach(prop => {
|
|
6687
|
-
prefixes.forEach(prefix => {
|
|
6690
|
+
keys(isUnitlessNumber).forEach((prop) => {
|
|
6691
|
+
prefixes.forEach((prefix) => {
|
|
6688
6692
|
isUnitlessNumber[prefixKey(prefix, prop)] = 0; // isUnitlessNumber[prop]
|
|
6689
6693
|
});
|
|
6690
6694
|
});
|
|
@@ -6692,10 +6696,10 @@ keys(isUnitlessNumber).forEach(prop => {
|
|
|
6692
6696
|
const jsxDomType = Symbol.for("jsx-dom:type");
|
|
6693
6697
|
var JsxDomType = /*#__PURE__*/ (function (JsxDomType) {
|
|
6694
6698
|
JsxDomType["ShadowRoot"] = "ShadowRoot";
|
|
6695
|
-
return JsxDomType
|
|
6699
|
+
return JsxDomType;
|
|
6696
6700
|
})(JsxDomType || {});
|
|
6697
6701
|
function isShadowRoot(el) {
|
|
6698
|
-
return el != null && el[jsxDomType] === JsxDomType.ShadowRoot
|
|
6702
|
+
return el != null && el[jsxDomType] === JsxDomType.ShadowRoot;
|
|
6699
6703
|
}
|
|
6700
6704
|
|
|
6701
6705
|
const SVGNamespace = "http://www.w3.org/2000/svg";
|
|
@@ -6705,9 +6709,8 @@ const XMLNamespace = "http://www.w3.org/XML/1998/namespace";
|
|
|
6705
6709
|
// https://facebook.github.io/react/docs/jsx-in-depth.html#booleans-null-and-undefined-are-ignored
|
|
6706
6710
|
// Emulate JSX Expression logic to ignore certain type of children or className.
|
|
6707
6711
|
function isVisibleChild(value) {
|
|
6708
|
-
return !isBoolean(value) && value != null
|
|
6712
|
+
return !isBoolean(value) && value != null;
|
|
6709
6713
|
}
|
|
6710
|
-
const DomTokenList = typeof DOMTokenList !== "undefined" ? DOMTokenList : function () {};
|
|
6711
6714
|
|
|
6712
6715
|
/**
|
|
6713
6716
|
* Convert a `value` to a className string.
|
|
@@ -6715,17 +6718,18 @@ const DomTokenList = typeof DOMTokenList !== "undefined" ? DOMTokenList : functi
|
|
|
6715
6718
|
*/
|
|
6716
6719
|
function className(value) {
|
|
6717
6720
|
if (Array.isArray(value)) {
|
|
6718
|
-
return value.map(className).filter(Boolean).join(" ")
|
|
6719
|
-
} else if (value instanceof DomTokenList) {
|
|
6720
|
-
return "" + value
|
|
6721
|
+
return value.map(className).filter(Boolean).join(" ");
|
|
6721
6722
|
} else if (isObject(value)) {
|
|
6723
|
+
if (Symbol.iterator in value) {
|
|
6724
|
+
return className(Array.from(value));
|
|
6725
|
+
}
|
|
6722
6726
|
return keys(value)
|
|
6723
|
-
.filter(k => value[k])
|
|
6724
|
-
.join(" ")
|
|
6727
|
+
.filter((k) => value[k])
|
|
6728
|
+
.join(" ");
|
|
6725
6729
|
} else if (isVisibleChild(value)) {
|
|
6726
|
-
return "" + value
|
|
6730
|
+
return "" + value;
|
|
6727
6731
|
} else {
|
|
6728
|
-
return ""
|
|
6732
|
+
return "";
|
|
6729
6733
|
}
|
|
6730
6734
|
}
|
|
6731
6735
|
const svg = {
|
|
@@ -6792,7 +6796,7 @@ function initComponentClass(Class, attr, children) {
|
|
|
6792
6796
|
children,
|
|
6793
6797
|
};
|
|
6794
6798
|
const instance = new Class(attr);
|
|
6795
|
-
return instance.render()
|
|
6799
|
+
return instance.render();
|
|
6796
6800
|
}
|
|
6797
6801
|
|
|
6798
6802
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
@@ -6815,10 +6819,12 @@ function jsx(tag, _ref) {
|
|
|
6815
6819
|
// Select `option` elements in `select`
|
|
6816
6820
|
if (node instanceof window.HTMLSelectElement && attr.value != null) {
|
|
6817
6821
|
if (attr.multiple === true && Array.isArray(attr.value)) {
|
|
6818
|
-
const values = attr.value.map(value => String(value));
|
|
6822
|
+
const values = attr.value.map((value) => String(value));
|
|
6819
6823
|
node
|
|
6820
6824
|
.querySelectorAll("option")
|
|
6821
|
-
.forEach(
|
|
6825
|
+
.forEach(
|
|
6826
|
+
(option) => (option.selected = values.includes(option.value)),
|
|
6827
|
+
);
|
|
6822
6828
|
} else {
|
|
6823
6829
|
node.value = attr.value;
|
|
6824
6830
|
}
|
|
@@ -6839,13 +6845,15 @@ function jsx(tag, _ref) {
|
|
|
6839
6845
|
children,
|
|
6840
6846
|
});
|
|
6841
6847
|
} else {
|
|
6842
|
-
throw new TypeError(`Invalid JSX element type: ${tag}`)
|
|
6848
|
+
throw new TypeError(`Invalid JSX element type: ${tag}`);
|
|
6843
6849
|
}
|
|
6844
|
-
return node
|
|
6850
|
+
return node;
|
|
6845
6851
|
}
|
|
6846
6852
|
function createElement(tag, attr) {
|
|
6847
6853
|
for (
|
|
6848
|
-
var _len = arguments.length,
|
|
6854
|
+
var _len = arguments.length,
|
|
6855
|
+
children = new Array(_len > 2 ? _len - 2 : 0),
|
|
6856
|
+
_key2 = 2;
|
|
6849
6857
|
_key2 < _len;
|
|
6850
6858
|
_key2++
|
|
6851
6859
|
) {
|
|
@@ -6857,14 +6865,14 @@ function createElement(tag, attr) {
|
|
|
6857
6865
|
}
|
|
6858
6866
|
attr = attr || {};
|
|
6859
6867
|
if (attr.children != null && !children.length) {
|
|
6860
|
-
({ children, ...attr } = attr);
|
|
6868
|
+
({ children, ...attr } = attr);
|
|
6861
6869
|
}
|
|
6862
6870
|
return jsx(
|
|
6863
6871
|
tag,
|
|
6864
6872
|
{
|
|
6865
6873
|
...attr,
|
|
6866
6874
|
children,
|
|
6867
|
-
})
|
|
6875
|
+
});
|
|
6868
6876
|
}
|
|
6869
6877
|
function attachRef(ref, node) {
|
|
6870
6878
|
if (isRef(ref)) {
|
|
@@ -6892,7 +6900,7 @@ function appendChildren(children, node) {
|
|
|
6892
6900
|
for (const child of [...children]) {
|
|
6893
6901
|
appendChild(child, node);
|
|
6894
6902
|
}
|
|
6895
|
-
return node
|
|
6903
|
+
return node;
|
|
6896
6904
|
}
|
|
6897
6905
|
function appendChildToNode(child, node) {
|
|
6898
6906
|
if (node instanceof window.HTMLTemplateElement) {
|
|
@@ -6902,12 +6910,12 @@ function appendChildToNode(child, node) {
|
|
|
6902
6910
|
}
|
|
6903
6911
|
}
|
|
6904
6912
|
function normalizeAttribute(s, separator) {
|
|
6905
|
-
return s.replace(/[A-Z]/g, match => separator + match.toLowerCase())
|
|
6913
|
+
return s.replace(/[A-Z]/g, (match) => separator + match.toLowerCase());
|
|
6906
6914
|
}
|
|
6907
6915
|
function style(node, value) {
|
|
6908
6916
|
if (value == null || value === false);
|
|
6909
6917
|
else if (Array.isArray(value)) {
|
|
6910
|
-
value.forEach(v => style(node, v));
|
|
6918
|
+
value.forEach((v) => style(node, v));
|
|
6911
6919
|
} else if (isString(value)) {
|
|
6912
6920
|
node.setAttribute("style", value);
|
|
6913
6921
|
} else if (isObject(value)) {
|
|
@@ -6934,53 +6942,53 @@ function attribute(key, value, node) {
|
|
|
6934
6942
|
case "xlinkTitle":
|
|
6935
6943
|
case "xlinkType":
|
|
6936
6944
|
attrNS(node, XLinkNamespace, normalizeAttribute(key, ":"), value);
|
|
6937
|
-
return
|
|
6945
|
+
return;
|
|
6938
6946
|
case "xmlnsXlink":
|
|
6939
6947
|
attr(node, normalizeAttribute(key, ":"), value);
|
|
6940
|
-
return
|
|
6948
|
+
return;
|
|
6941
6949
|
case "xmlBase":
|
|
6942
6950
|
case "xmlLang":
|
|
6943
6951
|
case "xmlSpace":
|
|
6944
6952
|
attrNS(node, XMLNamespace, normalizeAttribute(key, ":"), value);
|
|
6945
|
-
return
|
|
6953
|
+
return;
|
|
6946
6954
|
}
|
|
6947
6955
|
switch (key) {
|
|
6948
6956
|
case "htmlFor":
|
|
6949
6957
|
attr(node, "for", value);
|
|
6950
|
-
return
|
|
6958
|
+
return;
|
|
6951
6959
|
case "dataset":
|
|
6952
6960
|
forEach(value, (dataValue, dataKey) => {
|
|
6953
6961
|
if (dataValue != null) {
|
|
6954
6962
|
node.dataset[dataKey] = dataValue;
|
|
6955
6963
|
}
|
|
6956
6964
|
});
|
|
6957
|
-
return
|
|
6965
|
+
return;
|
|
6958
6966
|
case "innerHTML":
|
|
6959
6967
|
case "innerText":
|
|
6960
6968
|
case "textContent":
|
|
6961
6969
|
if (isVisibleChild(value)) {
|
|
6962
6970
|
node[key] = value;
|
|
6963
6971
|
}
|
|
6964
|
-
return
|
|
6972
|
+
return;
|
|
6965
6973
|
case "dangerouslySetInnerHTML":
|
|
6966
6974
|
if (isObject(value)) {
|
|
6967
6975
|
node.innerHTML = value["__html"];
|
|
6968
6976
|
}
|
|
6969
|
-
return
|
|
6977
|
+
return;
|
|
6970
6978
|
case "value":
|
|
6971
6979
|
if (value == null || node instanceof window.HTMLSelectElement) {
|
|
6972
6980
|
// skip nullish values
|
|
6973
6981
|
// for `<select>` apply value after appending `<option>` elements
|
|
6974
|
-
return
|
|
6982
|
+
return;
|
|
6975
6983
|
} else if (node instanceof window.HTMLTextAreaElement) {
|
|
6976
6984
|
node.value = value;
|
|
6977
|
-
return
|
|
6985
|
+
return;
|
|
6978
6986
|
}
|
|
6979
6987
|
// use attribute for other elements
|
|
6980
|
-
break
|
|
6988
|
+
break;
|
|
6981
6989
|
case "spellCheck":
|
|
6982
6990
|
node.spellcheck = value;
|
|
6983
|
-
return
|
|
6991
|
+
return;
|
|
6984
6992
|
case "class":
|
|
6985
6993
|
case "className":
|
|
6986
6994
|
if (isFunction(value)) {
|
|
@@ -6988,22 +6996,21 @@ function attribute(key, value, node) {
|
|
|
6988
6996
|
} else {
|
|
6989
6997
|
attr(node, "class", className(value));
|
|
6990
6998
|
}
|
|
6991
|
-
return
|
|
6999
|
+
return;
|
|
6992
7000
|
case "ref":
|
|
6993
7001
|
case "namespaceURI":
|
|
6994
|
-
return
|
|
7002
|
+
return;
|
|
6995
7003
|
case "style":
|
|
6996
7004
|
style(node, value);
|
|
6997
|
-
return
|
|
7005
|
+
return;
|
|
6998
7006
|
case "on":
|
|
6999
7007
|
case "onCapture":
|
|
7000
7008
|
forEach(value, (eventHandler, eventName) => {
|
|
7001
7009
|
node.addEventListener(eventName, eventHandler, key === "onCapture");
|
|
7002
7010
|
});
|
|
7003
|
-
return
|
|
7011
|
+
return;
|
|
7004
7012
|
// fallthrough
|
|
7005
7013
|
}
|
|
7006
|
-
|
|
7007
7014
|
if (isFunction(value)) {
|
|
7008
7015
|
if (key[0] === "o" && key[1] === "n") {
|
|
7009
7016
|
let attribute = key.toLowerCase();
|
|
@@ -7017,7 +7024,11 @@ function attribute(key, value, node) {
|
|
|
7017
7024
|
// use property when possible PR #17
|
|
7018
7025
|
node[attribute] = value;
|
|
7019
7026
|
} else if (useCapture) {
|
|
7020
|
-
node.addEventListener(
|
|
7027
|
+
node.addEventListener(
|
|
7028
|
+
attribute.substring(2, attribute.length - 7),
|
|
7029
|
+
value,
|
|
7030
|
+
true,
|
|
7031
|
+
);
|
|
7021
7032
|
} else {
|
|
7022
7033
|
let eventName;
|
|
7023
7034
|
if (attribute in window) {
|
|
@@ -7061,7 +7072,7 @@ function attributes(attr, node) {
|
|
|
7061
7072
|
for (const key of keys(attr)) {
|
|
7062
7073
|
attribute(key, attr[key], node);
|
|
7063
7074
|
}
|
|
7064
|
-
return node
|
|
7075
|
+
return node;
|
|
7065
7076
|
}
|
|
7066
7077
|
|
|
7067
7078
|
const NBROFMONTHS$1 = 12;
|