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