@limetech/lime-elements 36.3.0-next.23 → 36.3.0-next.25
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/limel-badge.cjs.entry.js +4 -9
- package/dist/cjs/limel-flatpickr-adapter.cjs.entry.js +85 -101
- package/dist/cjs/limel-menu.cjs.entry.js +3 -3
- package/dist/cjs/limel-spinner.cjs.entry.js +1 -1
- package/dist/collection/components/badge/badge.css +22 -18
- package/dist/collection/components/badge/badge.js +3 -8
- package/dist/collection/components/menu/menu.css +2 -2
- package/dist/collection/components/menu/menu.js +2 -2
- package/dist/collection/components/spinner/spinner.css +4 -0
- package/dist/esm/limel-badge.entry.js +4 -9
- package/dist/esm/limel-flatpickr-adapter.entry.js +85 -101
- package/dist/esm/limel-menu.entry.js +3 -3
- package/dist/esm/limel-spinner.entry.js +1 -1
- package/dist/lime-elements/lime-elements.esm.js +1 -1
- package/dist/lime-elements/{p-a8d38277.entry.js → p-10e259de.entry.js} +1 -1
- package/dist/lime-elements/{p-079921e9.entry.js → p-2c9843fe.entry.js} +1 -1
- package/dist/lime-elements/p-2fd478df.entry.js +1 -0
- package/dist/lime-elements/p-d16b27b9.entry.js +1 -0
- package/dist/types/components/menu/menu.d.ts +1 -0
- package/package.json +6 -6
- package/dist/lime-elements/p-2b0e06d6.entry.js +0 -1
- package/dist/lime-elements/p-e6a94294.entry.js +0 -1
|
@@ -6598,7 +6598,6 @@ function isArrayLike(obj) {
|
|
|
6598
6598
|
}
|
|
6599
6599
|
function forEach(value, fn) {
|
|
6600
6600
|
if (!value) return
|
|
6601
|
-
|
|
6602
6601
|
for (const key of keys(value)) {
|
|
6603
6602
|
fn(value[key], key);
|
|
6604
6603
|
}
|
|
@@ -6607,6 +6606,16 @@ function isRef(maybeRef) {
|
|
|
6607
6606
|
return isObject(maybeRef) && "current" in maybeRef
|
|
6608
6607
|
}
|
|
6609
6608
|
|
|
6609
|
+
/**
|
|
6610
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6611
|
+
*
|
|
6612
|
+
* This source code is licensed under the MIT license found on
|
|
6613
|
+
* https://github.com/facebook/react/blob/b87aabdfe1b7461e7331abb3601d9e6bb27544bc/LICENSE
|
|
6614
|
+
*/
|
|
6615
|
+
|
|
6616
|
+
/**
|
|
6617
|
+
* CSS properties which accept numbers but are not in units of "px".
|
|
6618
|
+
*/
|
|
6610
6619
|
const isUnitlessNumber = {
|
|
6611
6620
|
animationIterationCount: 0,
|
|
6612
6621
|
borderImageOutset: 0,
|
|
@@ -6642,6 +6651,7 @@ const isUnitlessNumber = {
|
|
|
6642
6651
|
widows: 0,
|
|
6643
6652
|
zIndex: 0,
|
|
6644
6653
|
zoom: 0,
|
|
6654
|
+
// SVG-related properties
|
|
6645
6655
|
fillOpacity: 0,
|
|
6646
6656
|
floodOpacity: 0,
|
|
6647
6657
|
stopOpacity: 0,
|
|
@@ -6652,20 +6662,31 @@ const isUnitlessNumber = {
|
|
|
6652
6662
|
strokeWidth: 0,
|
|
6653
6663
|
};
|
|
6654
6664
|
|
|
6665
|
+
/**
|
|
6666
|
+
* @param prefix vendor-specific prefix, eg: Webkit
|
|
6667
|
+
* @param key style name, eg: transitionDuration
|
|
6668
|
+
* @return style name prefixed with `prefix`, properly camelCased, eg:
|
|
6669
|
+
* WebkitTransitionDuration
|
|
6670
|
+
*/
|
|
6655
6671
|
function prefixKey(prefix, key) {
|
|
6656
6672
|
return prefix + key.charAt(0).toUpperCase() + key.substring(1)
|
|
6657
6673
|
}
|
|
6658
6674
|
|
|
6675
|
+
/**
|
|
6676
|
+
* Support style names that may come passed in prefixed by adding permutations
|
|
6677
|
+
* of vendor prefixes.
|
|
6678
|
+
*/
|
|
6659
6679
|
const prefixes = ["Webkit", "ms", "Moz", "O"];
|
|
6680
|
+
// Using Object.keys here, or else the vanilla for-in loop makes IE8 go into an
|
|
6681
|
+
// infinite loop, because it iterates over the newly added props too.
|
|
6660
6682
|
keys(isUnitlessNumber).forEach(prop => {
|
|
6661
6683
|
prefixes.forEach(prefix => {
|
|
6662
|
-
isUnitlessNumber[prefixKey(prefix, prop)] = 0;
|
|
6684
|
+
isUnitlessNumber[prefixKey(prefix, prop)] = 0; // isUnitlessNumber[prop]
|
|
6663
6685
|
});
|
|
6664
6686
|
});
|
|
6665
6687
|
|
|
6666
6688
|
const jsxDomType = Symbol.for("jsx-dom:type");
|
|
6667
6689
|
var JsxDomType
|
|
6668
|
-
|
|
6669
6690
|
;(function (JsxDomType) {
|
|
6670
6691
|
JsxDomType["ShadowRoot"] = "ShadowRoot";
|
|
6671
6692
|
})(JsxDomType || (JsxDomType = {}));
|
|
@@ -6677,13 +6698,22 @@ const SVGNamespace = "http://www.w3.org/2000/svg";
|
|
|
6677
6698
|
const XLinkNamespace = "http://www.w3.org/1999/xlink";
|
|
6678
6699
|
const XMLNamespace = "http://www.w3.org/XML/1998/namespace";
|
|
6679
6700
|
|
|
6701
|
+
// https://facebook.github.io/react/docs/jsx-in-depth.html#booleans-null-and-undefined-are-ignored
|
|
6702
|
+
// Emulate JSX Expression logic to ignore certain type of children or className.
|
|
6680
6703
|
function isVisibleChild(value) {
|
|
6681
6704
|
return !isBoolean(value) && value != null
|
|
6682
6705
|
}
|
|
6706
|
+
const DomTokenList = typeof DOMTokenList !== "undefined" ? DOMTokenList : function () {};
|
|
6683
6707
|
|
|
6708
|
+
/**
|
|
6709
|
+
* Convert a `value` to a className string.
|
|
6710
|
+
* `value` can be a string, an array or a `Dictionary<boolean>`.
|
|
6711
|
+
*/
|
|
6684
6712
|
function className(value) {
|
|
6685
6713
|
if (Array.isArray(value)) {
|
|
6686
6714
|
return value.map(className).filter(Boolean).join(" ")
|
|
6715
|
+
} else if (value instanceof DomTokenList) {
|
|
6716
|
+
return "" + value
|
|
6687
6717
|
} else if (isObject(value)) {
|
|
6688
6718
|
return keys(value)
|
|
6689
6719
|
.filter(k => value[k])
|
|
@@ -6752,34 +6782,25 @@ const svg = {
|
|
|
6752
6782
|
};
|
|
6753
6783
|
const nonPresentationSVGAttributes =
|
|
6754
6784
|
/^(a(ll|t|u)|base[FP]|c(al|lipPathU|on)|di|ed|ex|filter[RU]|g(lyphR|r)|ke|l(en|im)|ma(rker[HUW]|s)|n|pat|pr|point[^e]|re[^n]|s[puy]|st[^or]|ta|textL|vi|xC|y|z)/;
|
|
6755
|
-
class Component {
|
|
6756
|
-
constructor(props) {
|
|
6757
|
-
this.props = props;
|
|
6758
|
-
}
|
|
6759
|
-
|
|
6760
|
-
render() {
|
|
6761
|
-
return null
|
|
6762
|
-
}
|
|
6763
|
-
}
|
|
6764
|
-
Object.defineProperties(Component.prototype, {
|
|
6765
|
-
isReactComponent: {
|
|
6766
|
-
value: true,
|
|
6767
|
-
},
|
|
6768
|
-
});
|
|
6769
|
-
|
|
6770
6785
|
function initComponentClass(Class, attr, children) {
|
|
6771
|
-
attr = {
|
|
6786
|
+
attr = {
|
|
6787
|
+
...attr,
|
|
6788
|
+
children,
|
|
6789
|
+
};
|
|
6772
6790
|
const instance = new Class(attr);
|
|
6773
6791
|
return instance.render()
|
|
6774
6792
|
}
|
|
6775
6793
|
|
|
6776
|
-
|
|
6794
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
6795
|
+
function jsx(tag, _ref) {
|
|
6796
|
+
let { children, ...attr } = _ref;
|
|
6777
6797
|
if (!attr.namespaceURI && svg[tag] === 0) {
|
|
6778
|
-
attr = {
|
|
6798
|
+
attr = {
|
|
6799
|
+
...attr,
|
|
6800
|
+
namespaceURI: SVGNamespace,
|
|
6801
|
+
};
|
|
6779
6802
|
}
|
|
6780
|
-
|
|
6781
6803
|
let node;
|
|
6782
|
-
|
|
6783
6804
|
if (isString(tag)) {
|
|
6784
6805
|
node = attr.namespaceURI
|
|
6785
6806
|
? document.createElementNS(attr.namespaceURI, tag)
|
|
@@ -6787,6 +6808,7 @@ function jsx(tag, { children, ...attr }) {
|
|
|
6787
6808
|
attributes(attr, node);
|
|
6788
6809
|
appendChild(children, node);
|
|
6789
6810
|
|
|
6811
|
+
// Select `option` elements in `select`
|
|
6790
6812
|
if (node instanceof window.HTMLSelectElement && attr.value != null) {
|
|
6791
6813
|
if (attr.multiple === true && Array.isArray(attr.value)) {
|
|
6792
6814
|
const values = attr.value.map(value => String(value));
|
|
@@ -6797,37 +6819,49 @@ function jsx(tag, { children, ...attr }) {
|
|
|
6797
6819
|
node.value = attr.value;
|
|
6798
6820
|
}
|
|
6799
6821
|
}
|
|
6800
|
-
|
|
6801
6822
|
attachRef(attr.ref, node);
|
|
6802
6823
|
} else if (isFunction(tag)) {
|
|
6824
|
+
// Custom elements.
|
|
6803
6825
|
if (isObject(tag.defaultProps)) {
|
|
6804
|
-
attr = {
|
|
6826
|
+
attr = {
|
|
6827
|
+
...tag.defaultProps,
|
|
6828
|
+
...attr,
|
|
6829
|
+
};
|
|
6805
6830
|
}
|
|
6806
|
-
|
|
6807
6831
|
node = isComponentClass(tag)
|
|
6808
6832
|
? initComponentClass(tag, attr, children)
|
|
6809
|
-
: tag({
|
|
6833
|
+
: tag({
|
|
6834
|
+
...attr,
|
|
6835
|
+
children,
|
|
6836
|
+
});
|
|
6810
6837
|
} else {
|
|
6811
6838
|
throw new TypeError(`Invalid JSX element type: ${tag}`)
|
|
6812
6839
|
}
|
|
6813
|
-
|
|
6814
6840
|
return node
|
|
6815
6841
|
}
|
|
6816
|
-
function createElement(tag, attr
|
|
6842
|
+
function createElement(tag, attr) {
|
|
6843
|
+
for (
|
|
6844
|
+
var _len = arguments.length, children = new Array(_len > 2 ? _len - 2 : 0), _key = 2;
|
|
6845
|
+
_key < _len;
|
|
6846
|
+
_key++
|
|
6847
|
+
) {
|
|
6848
|
+
children[_key - 2] = arguments[_key];
|
|
6849
|
+
}
|
|
6817
6850
|
if (isString(attr) || Array.isArray(attr)) {
|
|
6818
6851
|
children.unshift(attr);
|
|
6819
6852
|
attr = {};
|
|
6820
6853
|
}
|
|
6821
|
-
|
|
6822
6854
|
attr = attr || {};
|
|
6823
|
-
|
|
6824
6855
|
if (attr.children != null && !children.length) {
|
|
6825
6856
|
({ children, ...attr } = attr);
|
|
6826
6857
|
}
|
|
6827
|
-
|
|
6828
|
-
|
|
6858
|
+
return jsx(
|
|
6859
|
+
tag,
|
|
6860
|
+
{
|
|
6861
|
+
...attr,
|
|
6862
|
+
children,
|
|
6863
|
+
})
|
|
6829
6864
|
}
|
|
6830
|
-
|
|
6831
6865
|
function attachRef(ref, node) {
|
|
6832
6866
|
if (isRef(ref)) {
|
|
6833
6867
|
ref.current = node;
|
|
@@ -6835,7 +6869,6 @@ function attachRef(ref, node) {
|
|
|
6835
6869
|
ref(node);
|
|
6836
6870
|
}
|
|
6837
6871
|
}
|
|
6838
|
-
|
|
6839
6872
|
function appendChild(child, node) {
|
|
6840
6873
|
if (isArrayLike(child)) {
|
|
6841
6874
|
appendChildren(child, node);
|
|
@@ -6851,15 +6884,12 @@ function appendChild(child, node) {
|
|
|
6851
6884
|
attachRef(child.ref, shadowRoot);
|
|
6852
6885
|
}
|
|
6853
6886
|
}
|
|
6854
|
-
|
|
6855
6887
|
function appendChildren(children, node) {
|
|
6856
6888
|
for (const child of [...children]) {
|
|
6857
6889
|
appendChild(child, node);
|
|
6858
6890
|
}
|
|
6859
|
-
|
|
6860
6891
|
return node
|
|
6861
6892
|
}
|
|
6862
|
-
|
|
6863
6893
|
function appendChildToNode(child, node) {
|
|
6864
6894
|
if (node instanceof window.HTMLTemplateElement) {
|
|
6865
6895
|
node.content.appendChild(child);
|
|
@@ -6867,11 +6897,9 @@ function appendChildToNode(child, node) {
|
|
|
6867
6897
|
node.appendChild(child);
|
|
6868
6898
|
}
|
|
6869
6899
|
}
|
|
6870
|
-
|
|
6871
6900
|
function normalizeAttribute(s, separator) {
|
|
6872
6901
|
return s.replace(/[A-Z]/g, match => separator + match.toLowerCase())
|
|
6873
6902
|
}
|
|
6874
|
-
|
|
6875
6903
|
function style(node, value) {
|
|
6876
6904
|
if (value == null || value === false);
|
|
6877
6905
|
else if (Array.isArray(value)) {
|
|
@@ -6888,7 +6916,6 @@ function style(node, value) {
|
|
|
6888
6916
|
});
|
|
6889
6917
|
}
|
|
6890
6918
|
}
|
|
6891
|
-
|
|
6892
6919
|
function attribute(key, value, node) {
|
|
6893
6920
|
switch (key) {
|
|
6894
6921
|
case "xlinkActuate":
|
|
@@ -6900,23 +6927,19 @@ function attribute(key, value, node) {
|
|
|
6900
6927
|
case "xlinkType":
|
|
6901
6928
|
attrNS(node, XLinkNamespace, normalizeAttribute(key, ":"), value);
|
|
6902
6929
|
return
|
|
6903
|
-
|
|
6904
6930
|
case "xmlnsXlink":
|
|
6905
6931
|
attr(node, normalizeAttribute(key, ":"), value);
|
|
6906
6932
|
return
|
|
6907
|
-
|
|
6908
6933
|
case "xmlBase":
|
|
6909
6934
|
case "xmlLang":
|
|
6910
6935
|
case "xmlSpace":
|
|
6911
6936
|
attrNS(node, XMLNamespace, normalizeAttribute(key, ":"), value);
|
|
6912
6937
|
return
|
|
6913
6938
|
}
|
|
6914
|
-
|
|
6915
6939
|
switch (key) {
|
|
6916
6940
|
case "htmlFor":
|
|
6917
6941
|
attr(node, "for", value);
|
|
6918
6942
|
return
|
|
6919
|
-
|
|
6920
6943
|
case "dataset":
|
|
6921
6944
|
forEach(value, (dataValue, dataKey) => {
|
|
6922
6945
|
if (dataValue != null) {
|
|
@@ -6924,37 +6947,32 @@ function attribute(key, value, node) {
|
|
|
6924
6947
|
}
|
|
6925
6948
|
});
|
|
6926
6949
|
return
|
|
6927
|
-
|
|
6928
6950
|
case "innerHTML":
|
|
6929
6951
|
case "innerText":
|
|
6930
6952
|
case "textContent":
|
|
6931
6953
|
if (isVisibleChild(value)) {
|
|
6932
6954
|
node[key] = value;
|
|
6933
6955
|
}
|
|
6934
|
-
|
|
6935
6956
|
return
|
|
6936
|
-
|
|
6937
6957
|
case "dangerouslySetInnerHTML":
|
|
6938
6958
|
if (isObject(value)) {
|
|
6939
6959
|
node.innerHTML = value["__html"];
|
|
6940
6960
|
}
|
|
6941
|
-
|
|
6942
6961
|
return
|
|
6943
|
-
|
|
6944
6962
|
case "value":
|
|
6945
6963
|
if (value == null || node instanceof window.HTMLSelectElement) {
|
|
6964
|
+
// skip nullish values
|
|
6965
|
+
// for `<select>` apply value after appending `<option>` elements
|
|
6946
6966
|
return
|
|
6947
6967
|
} else if (node instanceof window.HTMLTextAreaElement) {
|
|
6948
6968
|
node.value = value;
|
|
6949
6969
|
return
|
|
6950
6970
|
}
|
|
6951
|
-
|
|
6971
|
+
// use attribute for other elements
|
|
6952
6972
|
break
|
|
6953
|
-
|
|
6954
6973
|
case "spellCheck":
|
|
6955
6974
|
node.spellcheck = value;
|
|
6956
6975
|
return
|
|
6957
|
-
|
|
6958
6976
|
case "class":
|
|
6959
6977
|
case "className":
|
|
6960
6978
|
if (isFunction(value)) {
|
|
@@ -6962,45 +6980,49 @@ function attribute(key, value, node) {
|
|
|
6962
6980
|
} else {
|
|
6963
6981
|
attr(node, "class", className(value));
|
|
6964
6982
|
}
|
|
6965
|
-
|
|
6966
6983
|
return
|
|
6967
|
-
|
|
6968
6984
|
case "ref":
|
|
6969
6985
|
case "namespaceURI":
|
|
6970
6986
|
return
|
|
6971
|
-
|
|
6972
6987
|
case "style":
|
|
6973
6988
|
style(node, value);
|
|
6974
6989
|
return
|
|
6975
|
-
|
|
6976
6990
|
case "on":
|
|
6977
6991
|
case "onCapture":
|
|
6978
6992
|
forEach(value, (eventHandler, eventName) => {
|
|
6979
6993
|
node.addEventListener(eventName, eventHandler, key === "onCapture");
|
|
6980
6994
|
});
|
|
6981
6995
|
return
|
|
6996
|
+
// fallthrough
|
|
6982
6997
|
}
|
|
6983
6998
|
|
|
6984
6999
|
if (isFunction(value)) {
|
|
6985
7000
|
if (key[0] === "o" && key[1] === "n") {
|
|
6986
7001
|
const attribute = key.toLowerCase();
|
|
6987
7002
|
const useCapture = attribute.endsWith("capture");
|
|
6988
|
-
|
|
6989
7003
|
if (!useCapture && node[attribute] === null) {
|
|
7004
|
+
// use property when possible PR #17
|
|
6990
7005
|
node[attribute] = value;
|
|
6991
7006
|
} else if (useCapture) {
|
|
6992
7007
|
node.addEventListener(attribute.substring(2, attribute.length - 7), value, true);
|
|
6993
7008
|
} else {
|
|
6994
7009
|
let eventName;
|
|
6995
|
-
|
|
6996
7010
|
if (attribute in window) {
|
|
6997
|
-
|
|
7011
|
+
// standard event
|
|
7012
|
+
// the JSX attribute could have been "onMouseOver" and the
|
|
7013
|
+
// member name "onmouseover" is on the window's prototype
|
|
7014
|
+
// so let's add the listener "mouseover", which is all lowercased
|
|
7015
|
+
const standardEventName = attribute.substring(2);
|
|
6998
7016
|
eventName = standardEventName;
|
|
6999
7017
|
} else {
|
|
7000
|
-
|
|
7001
|
-
|
|
7018
|
+
// custom event
|
|
7019
|
+
// the JSX attribute could have been "onMyCustomEvent"
|
|
7020
|
+
// so let's trim off the "on" prefix and lowercase the first character
|
|
7021
|
+
// and add the listener "myCustomEvent"
|
|
7022
|
+
// except for the first character, we keep the event name case
|
|
7023
|
+
const customEventName = attribute[2] + key.slice(3);
|
|
7024
|
+
eventName = customEventName;
|
|
7002
7025
|
}
|
|
7003
|
-
|
|
7004
7026
|
node.addEventListener(eventName, value);
|
|
7005
7027
|
}
|
|
7006
7028
|
}
|
|
@@ -7016,57 +7038,19 @@ function attribute(key, value, node) {
|
|
|
7016
7038
|
}
|
|
7017
7039
|
}
|
|
7018
7040
|
}
|
|
7019
|
-
|
|
7020
7041
|
function attr(node, key, value) {
|
|
7021
7042
|
node.setAttribute(key, value);
|
|
7022
7043
|
}
|
|
7023
|
-
|
|
7024
7044
|
function attrNS(node, namespace, key, value) {
|
|
7025
7045
|
node.setAttributeNS(namespace, key, value);
|
|
7026
7046
|
}
|
|
7027
|
-
|
|
7028
7047
|
function attributes(attr, node) {
|
|
7029
7048
|
for (const key of keys(attr)) {
|
|
7030
7049
|
attribute(key, attr[key], node);
|
|
7031
7050
|
}
|
|
7032
|
-
|
|
7033
7051
|
return node
|
|
7034
7052
|
}
|
|
7035
7053
|
|
|
7036
|
-
const cache = new Map();
|
|
7037
|
-
|
|
7038
|
-
const createStyledComponent =
|
|
7039
|
-
name =>
|
|
7040
|
-
(list, ...interpolations) =>
|
|
7041
|
-
({ style, ...props }) => {
|
|
7042
|
-
const lastIndex = list.length - 1;
|
|
7043
|
-
const css =
|
|
7044
|
-
list.slice(0, lastIndex).reduce((p, s, i) => p + s + interpolations[i](props), "") +
|
|
7045
|
-
list[lastIndex];
|
|
7046
|
-
return createElement(name, {
|
|
7047
|
-
style: [css, style],
|
|
7048
|
-
...props,
|
|
7049
|
-
})
|
|
7050
|
-
};
|
|
7051
|
-
|
|
7052
|
-
const baseStyled = customComponent => createStyledComponent(customComponent);
|
|
7053
|
-
|
|
7054
|
-
new Proxy(baseStyled, {
|
|
7055
|
-
get(_, name) {
|
|
7056
|
-
return setIfAbsent(cache, name, () => createStyledComponent(name))
|
|
7057
|
-
},
|
|
7058
|
-
});
|
|
7059
|
-
|
|
7060
|
-
function setIfAbsent(map, key, getValue) {
|
|
7061
|
-
if (map.has(key)) {
|
|
7062
|
-
return map.get(key)
|
|
7063
|
-
} else {
|
|
7064
|
-
const value = getValue(key);
|
|
7065
|
-
map.set(key, value);
|
|
7066
|
-
return value
|
|
7067
|
-
}
|
|
7068
|
-
}
|
|
7069
|
-
|
|
7070
7054
|
const NBROFMONTHS$1 = 12;
|
|
7071
7055
|
class MonthPicker extends Picker {
|
|
7072
7056
|
constructor(dateFormat = 'MM/YYYY', language, change, translations) {
|
|
@@ -7,7 +7,7 @@ import './_getNative-93d6bfe9.js';
|
|
|
7
7
|
import './eq-c1c7f528.js';
|
|
8
8
|
import './isObject-c74e273c.js';
|
|
9
9
|
|
|
10
|
-
const menuCss = ":host(limel-menu){isolation:isolate;position:relative;display:inline-block;--badge-background-color:var(\n --notification-badge-background-color,\n rgb(var(--color-red-default))\n );--badge-text-color:var(\n --notification-badge-text-color,\n rgb(var(--color-white))\n )}:host([hidden]){display:none}.menu__trigger{border-color:transparent;border-width:1px;border-style:solid;background:none;color:rgb(var(--contrast-800));height:2.25rem}.menu__trigger-enabled:hover{border-color:rgb(var(--contrast-800));color:rgb(var(--contrast-1100))}.mdc-menu-surface--anchor{position:relative}limel-badge{position:absolute;top:-0.
|
|
10
|
+
const menuCss = ":host(limel-menu){isolation:isolate;position:relative;display:inline-block;--badge-background-color:var(\n --notification-badge-background-color,\n rgb(var(--color-red-default))\n );--badge-text-color:var(\n --notification-badge-text-color,\n rgb(var(--color-white))\n )}:host([hidden]){display:none}.menu__trigger{border-color:transparent;border-width:1px;border-style:solid;background:none;color:rgb(var(--contrast-800));height:2.25rem}.menu__trigger-enabled:hover{border-color:rgb(var(--contrast-800));color:rgb(var(--contrast-1100))}.mdc-menu-surface--anchor{position:relative}limel-badge{position:absolute;top:-0.25rem;right:-0.25rem}";
|
|
11
11
|
|
|
12
12
|
const Menu = class {
|
|
13
13
|
constructor(hostRef) {
|
|
@@ -59,11 +59,11 @@ const Menu = class {
|
|
|
59
59
|
(_a = menuElements[selectedIndex]) === null || _a === void 0 ? void 0 : _a.focus();
|
|
60
60
|
};
|
|
61
61
|
this.renderNotificationBadge = () => {
|
|
62
|
-
|
|
63
|
-
if (this.items.some(hasNotificationBadge)) {
|
|
62
|
+
if (this.items.some(this.hasNotificationBadge)) {
|
|
64
63
|
return h("limel-badge", null);
|
|
65
64
|
}
|
|
66
65
|
};
|
|
66
|
+
this.hasNotificationBadge = (item) => this.isMenuItem(item) && item.badge !== undefined;
|
|
67
67
|
this.items = [];
|
|
68
68
|
this.disabled = false;
|
|
69
69
|
this.openDirection = 'bottom-start';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, h } from './index-cdfd351d.js';
|
|
2
2
|
|
|
3
|
-
const spinnerCss = ":host{--mdc-theme-primary:var(\n --lime-primary-color,\n rgb(var(--color-teal-default))\n );--mdc-theme-secondary:var(\n --lime-secondary-color,\n rgb(var(--contrast-1100))\n );--mdc-theme-on-primary:var(\n --lime-on-primary-color,\n rgb(var(--contrast-100))\n );--mdc-theme-on-secondary:var(\n --lime-on-secondary-color,\n rgb(var(--contrast-100))\n );--mdc-theme-text-disabled-on-background:var(\n --lime-text-disabled-on-background-color,\n rgba(var(--contrast-1700), 0.38)\n );--mdc-theme-text-primary-on-background:var(\n --lime-text-primary-on-background-color,\n rgba(var(--contrast-1700), 0.87)\n );--mdc-theme-text-secondary-on-background:var(\n --lime-text-secondary-on-background-color,\n rgba(var(--contrast-1700), 0.54)\n );--mdc-theme-error:var(\n --lime-error-background-color,\n rgb(var(--color-red-dark))\n );--lime-error-text-color:rgb(var(--color-red-darker));--mdc-theme-surface:var(\n --lime-surface-background-color,\n rgb(var(--contrast-100))\n );--mdc-theme-on-surface:var(\n --lime-on-surface-color,\n rgb(var(--contrast-1500))\n )}@keyframes spin{50%{transform:rotate(180deg)}100%{transform:rotate(720deg)}}@keyframes fade-in-the-spinner{0%{transform:scale(0.7);opacity:0}100%{transform:scale(1);opacity:1}}@keyframes animate-colored-circles{5%{stroke-dashoffset:0}10%,100%{stroke-dashoffset:63}}:host([hidden]){display:none}:host{box-sizing:border-box;display:flex;align-items:center;justify-content:center;height:1.5rem;width:1.5rem;transform:translate3d(0, 0, 0);animation:fade-in-the-spinner 0.5s ease forwards}:host([size=x-small]){height:2rem;width:2rem}:host([size=small]){height:2.125rem;width:2.125rem}:host([size=medium]){height:2.75rem;width:2.75rem}:host([size=large]){height:4rem;width:4rem}.spinner{animation:spin 1s linear infinite;transform-origin:center}.color{animation:animate-colored-circles 10s linear infinite;fill:none;stroke-dasharray:63;stroke-dashoffset:63;stroke-linecap:round;stroke-width:4}.color.thick{stroke-width:10}.color:nth-child(1){stroke:var(--spinner-color-1, rgb(var(--lime-brand-color-deep-red)))}.color:nth-child(2){stroke:var(--spinner-color-2, rgb(var(--lime-brand-color-sellable-orange)));animation-delay:1s}.color:nth-child(3){stroke:var(--spinner-color-3, rgb(var(--lime-brand-color-simple-blue)));animation-delay:2s}.color:nth-child(4){stroke:var(--spinner-color-4, rgb(var(--lime-brand-color-orange)));animation-delay:3s}.color:nth-child(5){stroke:var(--spinner-color-5, rgb(var(--lime-brand-color-lime-green)));animation-delay:4s}.color:nth-child(6){stroke:var(--spinner-color-6, rgb(var(--lime-brand-color-yellow)));animation-delay:5s}.color:nth-child(7){stroke:var(--spinner-color-7, rgb(var(--lime-brand-color-flexible-turquoise)));animation-delay:6s}.color:nth-child(8){stroke:var(--spinner-color-8, rgb(var(--lime-brand-color-loving-magenta)));animation-delay:7s}.color:nth-child(9){stroke:var(--spinner-color-9, rgb(var(--lime-brand-color-dark-blue)));animation-delay:8s}.color:nth-child(10){stroke:var(--spinner-color-9, rgb(var(--lime-brand-color-light-grey)));animation-delay:9s}.outline{stroke:rgba(var(--lime-brand-color-light-grey), 0.3);fill:none;stroke-linecap:round;stroke-width:4}.outline.thick{stroke-width:10}";
|
|
3
|
+
const spinnerCss = ":host{--mdc-theme-primary:var(\n --lime-primary-color,\n rgb(var(--color-teal-default))\n );--mdc-theme-secondary:var(\n --lime-secondary-color,\n rgb(var(--contrast-1100))\n );--mdc-theme-on-primary:var(\n --lime-on-primary-color,\n rgb(var(--contrast-100))\n );--mdc-theme-on-secondary:var(\n --lime-on-secondary-color,\n rgb(var(--contrast-100))\n );--mdc-theme-text-disabled-on-background:var(\n --lime-text-disabled-on-background-color,\n rgba(var(--contrast-1700), 0.38)\n );--mdc-theme-text-primary-on-background:var(\n --lime-text-primary-on-background-color,\n rgba(var(--contrast-1700), 0.87)\n );--mdc-theme-text-secondary-on-background:var(\n --lime-text-secondary-on-background-color,\n rgba(var(--contrast-1700), 0.54)\n );--mdc-theme-error:var(\n --lime-error-background-color,\n rgb(var(--color-red-dark))\n );--lime-error-text-color:rgb(var(--color-red-darker));--mdc-theme-surface:var(\n --lime-surface-background-color,\n rgb(var(--contrast-100))\n );--mdc-theme-on-surface:var(\n --lime-on-surface-color,\n rgb(var(--contrast-1500))\n )}:host(limel-spinner){display:block}@keyframes spin{50%{transform:rotate(180deg)}100%{transform:rotate(720deg)}}@keyframes fade-in-the-spinner{0%{transform:scale(0.7);opacity:0}100%{transform:scale(1);opacity:1}}@keyframes animate-colored-circles{5%{stroke-dashoffset:0}10%,100%{stroke-dashoffset:63}}:host([hidden]){display:none}:host{box-sizing:border-box;display:flex;align-items:center;justify-content:center;height:1.5rem;width:1.5rem;transform:translate3d(0, 0, 0);animation:fade-in-the-spinner 0.5s ease forwards}:host([size=x-small]){height:2rem;width:2rem}:host([size=small]){height:2.125rem;width:2.125rem}:host([size=medium]){height:2.75rem;width:2.75rem}:host([size=large]){height:4rem;width:4rem}.spinner{animation:spin 1s linear infinite;transform-origin:center}.color{animation:animate-colored-circles 10s linear infinite;fill:none;stroke-dasharray:63;stroke-dashoffset:63;stroke-linecap:round;stroke-width:4}.color.thick{stroke-width:10}.color:nth-child(1){stroke:var(--spinner-color-1, rgb(var(--lime-brand-color-deep-red)))}.color:nth-child(2){stroke:var(--spinner-color-2, rgb(var(--lime-brand-color-sellable-orange)));animation-delay:1s}.color:nth-child(3){stroke:var(--spinner-color-3, rgb(var(--lime-brand-color-simple-blue)));animation-delay:2s}.color:nth-child(4){stroke:var(--spinner-color-4, rgb(var(--lime-brand-color-orange)));animation-delay:3s}.color:nth-child(5){stroke:var(--spinner-color-5, rgb(var(--lime-brand-color-lime-green)));animation-delay:4s}.color:nth-child(6){stroke:var(--spinner-color-6, rgb(var(--lime-brand-color-yellow)));animation-delay:5s}.color:nth-child(7){stroke:var(--spinner-color-7, rgb(var(--lime-brand-color-flexible-turquoise)));animation-delay:6s}.color:nth-child(8){stroke:var(--spinner-color-8, rgb(var(--lime-brand-color-loving-magenta)));animation-delay:7s}.color:nth-child(9){stroke:var(--spinner-color-9, rgb(var(--lime-brand-color-dark-blue)));animation-delay:8s}.color:nth-child(10){stroke:var(--spinner-color-9, rgb(var(--lime-brand-color-light-grey)));animation-delay:9s}.outline{stroke:rgba(var(--lime-brand-color-light-grey), 0.3);fill:none;stroke-linecap:round;stroke-width:4}.outline.thick{stroke-width:10}";
|
|
4
4
|
|
|
5
5
|
const Spinner = class {
|
|
6
6
|
constructor(hostRef) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,b as l}from"./p-d4e788e1.js";(()=>{const l=import.meta.url,i={};return""!==l&&(i.resourcesUrl=new URL(".",l).href),e(i)})().then((e=>l([["p-0bf916a0",[[1,"limel-color-picker",{value:[513],label:[513],helperText:[513,"helper-text"],tooltipLabel:[513,"tooltip-label"],required:[516],readonly:[516],isOpen:[32]}]]],["p-6980ef7f",[[1,"limel-dock",{dockItems:[16],dockFooterItems:[16],accessibleLabel:[513,"accessible-label"],expanded:[516],allowResize:[516,"allow-resize"],mobileBreakPoint:[514,"mobile-break-point"],useMobileLayout:[32]}]]],["p-3a7b55ce",[[1,"limel-split-button",{label:[513],primary:[516],icon:[513],disabled:[516],items:[16]}]]],["p-cad7cda1",[[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]}]]],["p-b40f37d7",[[1,"limel-date-picker",{disabled:[516],readonly:[516],invalid:[516],label:[513],placeholder:[513],helperText:[513,"helper-text"],required:[516],value:[16],type:[513],format:[513],language:[513],formatter:[16],formattedValue:[32],internalFormat:[32],showPortal:[32]}]]],["p-52e18d94",[[1,"limel-button-group",{value:[16],disabled:[516],selectedButtonId:[32]}]]],["p-e479f165",[[1,"limel-info-tile",{value:[520],icon:[1],label:[513],prefix:[513],suffix:[513],disabled:[516],badge:[520],loading:[516],link:[16],progress:[16]}]]],["p-c234a991",[[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]}]]],["p-a0c78744",[[1,"limel-snackbar",{message:[1],timeout:[2],actionText:[1,"action-text"],dismissible:[4],multiline:[4],language:[1],show:[64]}]]],["p-3fda3473",[[1,"limel-tab-panel",{tabs:[1040]}]]],["p-d1187867",[[1,"limel-file",{value:[16],label:[513],required:[516],disabled:[516],readonly:[516],accept:[513],language:[1],isDraggingOverDropZone:[32]}]]],["p-5393213b",[[1,"limel-collapsible-section",{isOpen:[1540,"is-open"],header:[513],actions:[16]}]]],["p-b079fc71",[[1,"limel-dialog",{heading:[1],fullscreen:[516],open:[1540],closingActions:[16]}]]],["p-35a6ab13",[[1,"limel-progress-flow",{flowItems:[16],disabled:[4],readonly:[4]}]]],["p-2f2ea041",[[1,"limel-shortcut",{icon:[513],label:[513],disabled:[516],badge:[520],link:[16]}]]],["p-6784c5c3",[[1,"limel-table",{data:[16],columns:[16],mode:[1],layout:[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"],aggregates:[16],selectable:[4],selection:[16]}]]],["p-bf3d6097",[[1,"limel-banner",{message:[513],icon:[513],isOpen:[32],open:[64],close:[64]}]]],["p-405207fa",[[1,"limel-code-editor",{value:[1],language:[1],readonly:[4],lineNumbers:[4,"line-numbers"],fold:[4],lint:[4],colorScheme:[1,"color-scheme"],random:[32]}]]],["p-6c38b505",[[1,"limel-config",{config:[16]}]]],["p-5338663b",[[1,"limel-flex-container",{direction:[513],justify:[513],align:[513],reverse:[516]}]]],["p-dcf88b3e",[[1,"limel-form",{schema:[16],value:[16],disabled:[4],propsFactory:[16],transformErrors:[16],errors:[16]}]]],["p-82cd7bb6",[[1,"limel-grid"]]],["p-8c4e3b46",[[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]}]]],["p-c6e913a4",[[1,"limel-switch",{label:[513],disabled:[516],readonly:[516],value:[516],fieldId:[32]}]]],["p-c6c0d63c",[[0,"limel-dock-button",{item:[16],expanded:[516],useMobileLayout:[516,"use-mobile-layout"],isOpen:[32]}]]],["p-5409b92f",[[1,"limel-color-picker-palette",{value:[513],label:[513],helperText:[513,"helper-text"],required:[516]}]]],["p-071e8438",[[1,"limel-menu-list",{items:[16],badgeIcons:[4,"badge-icons"],iconSize:[1,"icon-size"],type:[1],maxLinesSecondaryText:[2,"max-lines-secondary-text"]}]]],["p-
|
|
1
|
+
import{p as e,b as l}from"./p-d4e788e1.js";(()=>{const l=import.meta.url,i={};return""!==l&&(i.resourcesUrl=new URL(".",l).href),e(i)})().then((e=>l([["p-0bf916a0",[[1,"limel-color-picker",{value:[513],label:[513],helperText:[513,"helper-text"],tooltipLabel:[513,"tooltip-label"],required:[516],readonly:[516],isOpen:[32]}]]],["p-6980ef7f",[[1,"limel-dock",{dockItems:[16],dockFooterItems:[16],accessibleLabel:[513,"accessible-label"],expanded:[516],allowResize:[516,"allow-resize"],mobileBreakPoint:[514,"mobile-break-point"],useMobileLayout:[32]}]]],["p-3a7b55ce",[[1,"limel-split-button",{label:[513],primary:[516],icon:[513],disabled:[516],items:[16]}]]],["p-cad7cda1",[[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]}]]],["p-b40f37d7",[[1,"limel-date-picker",{disabled:[516],readonly:[516],invalid:[516],label:[513],placeholder:[513],helperText:[513,"helper-text"],required:[516],value:[16],type:[513],format:[513],language:[513],formatter:[16],formattedValue:[32],internalFormat:[32],showPortal:[32]}]]],["p-52e18d94",[[1,"limel-button-group",{value:[16],disabled:[516],selectedButtonId:[32]}]]],["p-e479f165",[[1,"limel-info-tile",{value:[520],icon:[1],label:[513],prefix:[513],suffix:[513],disabled:[516],badge:[520],loading:[516],link:[16],progress:[16]}]]],["p-c234a991",[[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]}]]],["p-a0c78744",[[1,"limel-snackbar",{message:[1],timeout:[2],actionText:[1,"action-text"],dismissible:[4],multiline:[4],language:[1],show:[64]}]]],["p-3fda3473",[[1,"limel-tab-panel",{tabs:[1040]}]]],["p-d1187867",[[1,"limel-file",{value:[16],label:[513],required:[516],disabled:[516],readonly:[516],accept:[513],language:[1],isDraggingOverDropZone:[32]}]]],["p-5393213b",[[1,"limel-collapsible-section",{isOpen:[1540,"is-open"],header:[513],actions:[16]}]]],["p-b079fc71",[[1,"limel-dialog",{heading:[1],fullscreen:[516],open:[1540],closingActions:[16]}]]],["p-35a6ab13",[[1,"limel-progress-flow",{flowItems:[16],disabled:[4],readonly:[4]}]]],["p-2f2ea041",[[1,"limel-shortcut",{icon:[513],label:[513],disabled:[516],badge:[520],link:[16]}]]],["p-6784c5c3",[[1,"limel-table",{data:[16],columns:[16],mode:[1],layout:[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"],aggregates:[16],selectable:[4],selection:[16]}]]],["p-bf3d6097",[[1,"limel-banner",{message:[513],icon:[513],isOpen:[32],open:[64],close:[64]}]]],["p-405207fa",[[1,"limel-code-editor",{value:[1],language:[1],readonly:[4],lineNumbers:[4,"line-numbers"],fold:[4],lint:[4],colorScheme:[1,"color-scheme"],random:[32]}]]],["p-6c38b505",[[1,"limel-config",{config:[16]}]]],["p-5338663b",[[1,"limel-flex-container",{direction:[513],justify:[513],align:[513],reverse:[516]}]]],["p-dcf88b3e",[[1,"limel-form",{schema:[16],value:[16],disabled:[4],propsFactory:[16],transformErrors:[16],errors:[16]}]]],["p-82cd7bb6",[[1,"limel-grid"]]],["p-8c4e3b46",[[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]}]]],["p-c6e913a4",[[1,"limel-switch",{label:[513],disabled:[516],readonly:[516],value:[516],fieldId:[32]}]]],["p-c6c0d63c",[[0,"limel-dock-button",{item:[16],expanded:[516],useMobileLayout:[516,"use-mobile-layout"],isOpen:[32]}]]],["p-5409b92f",[[1,"limel-color-picker-palette",{value:[513],label:[513],helperText:[513,"helper-text"],required:[516]}]]],["p-071e8438",[[1,"limel-menu-list",{items:[16],badgeIcons:[4,"badge-icons"],iconSize:[1,"icon-size"],type:[1],maxLinesSecondaryText:[2,"max-lines-secondary-text"]}]]],["p-d16b27b9",[[1,"limel-menu",{items:[16],disabled:[516],openDirection:[513,"open-direction"],open:[1540],badgeIcons:[516,"badge-icons"],gridLayout:[516,"grid-layout"]}]]],["p-55c8cb64",[[1,"limel-tab-bar",{tabs:[1040],canScrollLeft:[32],canScrollRight:[32]},[[9,"resize","handleWindowResize"]]]]],["p-95cefb5f",[[1,"limel-header",{icon:[1],heading:[1],subheading:[1],supportingText:[1,"supporting-text"]}]]],["p-cfaa685f",[[0,"limel-progress-flow-item",{item:[16],disabled:[4],readonly:[4]}]]],["p-eed2a202",[[1,"limel-checkbox",{disabled:[516],readonly:[516],label:[513],helperText:[513,"helper-text"],checked:[516],indeterminate:[516],required:[516],modified:[32]}]]],["p-2c9843fe",[[1,"limel-flatpickr-adapter",{value:[16],type:[1],format:[1],isOpen:[4,"is-open"],inputElement:[16],language:[1],formatter:[16]}]]],["p-004aad18",[[1,"limel-button",{label:[513],primary:[516],outlined:[516],icon:[513],disabled:[516],loading:[516],loadingFailed:[516,"loading-failed"],justLoaded:[32]}]]],["p-ff340a70",[[1,"limel-chip-set",{value:[16],type:[513],label:[513],helperText:[513,"helper-text"],disabled:[516],readonly:[516],inputType:[513,"input-type"],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]}]]],["p-05d88196",[[1,"limel-circular-progress",{value:[2],maxValue:[2,"max-value"],prefix:[513],suffix:[1],displayPercentageColors:[4,"display-percentage-colors"],size:[513]}],[1,"limel-linear-progress",{value:[2],indeterminate:[4]}]]],["p-15c3ec8e",[[1,"limel-input-field",{disabled:[516],readonly:[516],invalid:[516],label:[513],placeholder:[513],helperText:[513,"helper-text"],prefix:[513],suffix:[513],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]}]]],["p-934456bc",[[1,"limel-icon-button",{icon:[513],elevated:[516],label:[513],disabled:[516]}]]],["p-10e259de",[[1,"limel-spinner",{size:[513],limeBranded:[4,"lime-branded"]}]]],["p-2fd478df",[[1,"limel-badge",{label:[520]}]]],["p-90961075",[[1,"limel-portal",{openDirection:[1,"open-direction"],position:[1],containerId:[1,"container-id"],containerStyle:[16],parent:[16],inheritParentWidth:[4,"inherit-parent-width"],visible:[4]}]]],["p-93ad8b90",[[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]}]]],["p-029360c8",[[1,"limel-popover",{open:[4],openDirection:[513,"open-direction"]}],[1,"limel-tooltip",{elementId:[513,"element-id"],label:[513],helperLabel:[513,"helper-label"],maxlength:[514],open:[32]}],[1,"limel-popover-surface",{contentCollection:[16]}],[1,"limel-tooltip-content",{label:[513],helperLabel:[513,"helper-label"],maxlength:[514]}]]],["p-75d01713",[[1,"limel-icon",{size:[513],name:[513],badge:[516]}]]]],e)));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r,h as c}from"./p-d4e788e1.js";const o=class{constructor(c){r(this,c),this.size="mini",this.limeBranded=!0}render(){return[c("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},this.renderSpinner())]}renderSpinner(){return this.limeBranded?c("g",null,c("g",{"clip-path":"url(#mask)"},c("circle",{class:"outline thick",cx:"12",cy:"12",r:"12"}),c("g",{class:"spinner"},c("circle",{class:"color thick",cx:"12",cy:"12",r:"12"}),c("circle",{class:"color thick",cx:"12",cy:"12",r:"12"}),c("circle",{class:"color thick",cx:"12",cy:"12",r:"12"}),c("circle",{class:"color thick",cx:"12",cy:"12",r:"12"}),c("circle",{class:"color thick",cx:"12",cy:"12",r:"12"}),c("circle",{class:"color thick",cx:"12",cy:"12",r:"12"}),c("circle",{class:"color thick",cx:"12",cy:"12",r:"12"}),c("circle",{class:"color thick",cx:"12",cy:"12",r:"12"}),c("circle",{class:"color thick",cx:"12",cy:"12",r:"12"}),c("circle",{class:"color thick",cx:"12",cy:"12",r:"12"}),c("circle",{class:"color thick",cx:"12",cy:"12",r:"12"}))),c("clipPath",{id:"mask"},c("path",{d:"M2.166 11.248C2.166 5.04 7.058 0 13.083 0 19.108 0 24 5.04 24 11.248c0 3.229-1.307 6.548-4.533 9.306-3.908 3.343-9.15 3.8-17.254 3.249-2.405-.164-2.753-.588-1.51-1.533C4.61 19.3 2.165 17.025 2.165 11.248zm3.124 9.834c5.563.227 9.416-.246 12.397-2.76 2.432-2.05 3.482-4.56 3.51-7.074.05-4.613-3.636-8.36-8.114-8.36-4.478 0-8.114 3.746-8.114 8.36 0 2.793.607 4.737.726 6.345.092 1.252.03 2.388-.405 3.49z"}))):c("g",null,c("circle",{class:"outline",cx:"12",cy:"12",r:"10"}),c("g",{class:"spinner"},c("circle",{class:"color",cx:"12",cy:"12",r:"10"}),c("circle",{class:"color",cx:"12",cy:"12",r:"10"}),c("circle",{class:"color",cx:"12",cy:"12",r:"10"}),c("circle",{class:"color",cx:"12",cy:"12",r:"10"}),c("circle",{class:"color",cx:"12",cy:"12",r:"10"}),c("circle",{class:"color",cx:"12",cy:"12",r:"10"}),c("circle",{class:"color",cx:"12",cy:"12",r:"10"}),c("circle",{class:"color",cx:"12",cy:"12",r:"10"}),c("circle",{class:"color",cx:"12",cy:"12",r:"10"}),c("circle",{class:"color",cx:"12",cy:"12",r:"10"}),c("circle",{class:"color",cx:"12",cy:"12",r:"10"})))}};o.style=":host{--mdc-theme-primary:var(\n --lime-primary-color,\n rgb(var(--color-teal-default))\n );--mdc-theme-secondary:var(\n --lime-secondary-color,\n rgb(var(--contrast-1100))\n );--mdc-theme-on-primary:var(\n --lime-on-primary-color,\n rgb(var(--contrast-100))\n );--mdc-theme-on-secondary:var(\n --lime-on-secondary-color,\n rgb(var(--contrast-100))\n );--mdc-theme-text-disabled-on-background:var(\n --lime-text-disabled-on-background-color,\n rgba(var(--contrast-1700), 0.38)\n );--mdc-theme-text-primary-on-background:var(\n --lime-text-primary-on-background-color,\n rgba(var(--contrast-1700), 0.87)\n );--mdc-theme-text-secondary-on-background:var(\n --lime-text-secondary-on-background-color,\n rgba(var(--contrast-1700), 0.54)\n );--mdc-theme-error:var(\n --lime-error-background-color,\n rgb(var(--color-red-dark))\n );--lime-error-text-color:rgb(var(--color-red-darker));--mdc-theme-surface:var(\n --lime-surface-background-color,\n rgb(var(--contrast-100))\n );--mdc-theme-on-surface:var(\n --lime-on-surface-color,\n rgb(var(--contrast-1500))\n )}@keyframes spin{50%{transform:rotate(180deg)}100%{transform:rotate(720deg)}}@keyframes fade-in-the-spinner{0%{transform:scale(0.7);opacity:0}100%{transform:scale(1);opacity:1}}@keyframes animate-colored-circles{5%{stroke-dashoffset:0}10%,100%{stroke-dashoffset:63}}:host([hidden]){display:none}:host{box-sizing:border-box;display:flex;align-items:center;justify-content:center;height:1.5rem;width:1.5rem;transform:translate3d(0, 0, 0);animation:fade-in-the-spinner 0.5s ease forwards}:host([size=x-small]){height:2rem;width:2rem}:host([size=small]){height:2.125rem;width:2.125rem}:host([size=medium]){height:2.75rem;width:2.75rem}:host([size=large]){height:4rem;width:4rem}.spinner{animation:spin 1s linear infinite;transform-origin:center}.color{animation:animate-colored-circles 10s linear infinite;fill:none;stroke-dasharray:63;stroke-dashoffset:63;stroke-linecap:round;stroke-width:4}.color.thick{stroke-width:10}.color:nth-child(1){stroke:var(--spinner-color-1, rgb(var(--lime-brand-color-deep-red)))}.color:nth-child(2){stroke:var(--spinner-color-2, rgb(var(--lime-brand-color-sellable-orange)));animation-delay:1s}.color:nth-child(3){stroke:var(--spinner-color-3, rgb(var(--lime-brand-color-simple-blue)));animation-delay:2s}.color:nth-child(4){stroke:var(--spinner-color-4, rgb(var(--lime-brand-color-orange)));animation-delay:3s}.color:nth-child(5){stroke:var(--spinner-color-5, rgb(var(--lime-brand-color-lime-green)));animation-delay:4s}.color:nth-child(6){stroke:var(--spinner-color-6, rgb(var(--lime-brand-color-yellow)));animation-delay:5s}.color:nth-child(7){stroke:var(--spinner-color-7, rgb(var(--lime-brand-color-flexible-turquoise)));animation-delay:6s}.color:nth-child(8){stroke:var(--spinner-color-8, rgb(var(--lime-brand-color-loving-magenta)));animation-delay:7s}.color:nth-child(9){stroke:var(--spinner-color-9, rgb(var(--lime-brand-color-dark-blue)));animation-delay:8s}.color:nth-child(10){stroke:var(--spinner-color-9, rgb(var(--lime-brand-color-light-grey)));animation-delay:9s}.outline{stroke:rgba(var(--lime-brand-color-light-grey), 0.3);fill:none;stroke-linecap:round;stroke-width:4}.outline.thick{stroke-width:10}";export{o as limel_spinner}
|
|
1
|
+
import{r,h as c}from"./p-d4e788e1.js";const o=class{constructor(c){r(this,c),this.size="mini",this.limeBranded=!0}render(){return[c("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},this.renderSpinner())]}renderSpinner(){return this.limeBranded?c("g",null,c("g",{"clip-path":"url(#mask)"},c("circle",{class:"outline thick",cx:"12",cy:"12",r:"12"}),c("g",{class:"spinner"},c("circle",{class:"color thick",cx:"12",cy:"12",r:"12"}),c("circle",{class:"color thick",cx:"12",cy:"12",r:"12"}),c("circle",{class:"color thick",cx:"12",cy:"12",r:"12"}),c("circle",{class:"color thick",cx:"12",cy:"12",r:"12"}),c("circle",{class:"color thick",cx:"12",cy:"12",r:"12"}),c("circle",{class:"color thick",cx:"12",cy:"12",r:"12"}),c("circle",{class:"color thick",cx:"12",cy:"12",r:"12"}),c("circle",{class:"color thick",cx:"12",cy:"12",r:"12"}),c("circle",{class:"color thick",cx:"12",cy:"12",r:"12"}),c("circle",{class:"color thick",cx:"12",cy:"12",r:"12"}),c("circle",{class:"color thick",cx:"12",cy:"12",r:"12"}))),c("clipPath",{id:"mask"},c("path",{d:"M2.166 11.248C2.166 5.04 7.058 0 13.083 0 19.108 0 24 5.04 24 11.248c0 3.229-1.307 6.548-4.533 9.306-3.908 3.343-9.15 3.8-17.254 3.249-2.405-.164-2.753-.588-1.51-1.533C4.61 19.3 2.165 17.025 2.165 11.248zm3.124 9.834c5.563.227 9.416-.246 12.397-2.76 2.432-2.05 3.482-4.56 3.51-7.074.05-4.613-3.636-8.36-8.114-8.36-4.478 0-8.114 3.746-8.114 8.36 0 2.793.607 4.737.726 6.345.092 1.252.03 2.388-.405 3.49z"}))):c("g",null,c("circle",{class:"outline",cx:"12",cy:"12",r:"10"}),c("g",{class:"spinner"},c("circle",{class:"color",cx:"12",cy:"12",r:"10"}),c("circle",{class:"color",cx:"12",cy:"12",r:"10"}),c("circle",{class:"color",cx:"12",cy:"12",r:"10"}),c("circle",{class:"color",cx:"12",cy:"12",r:"10"}),c("circle",{class:"color",cx:"12",cy:"12",r:"10"}),c("circle",{class:"color",cx:"12",cy:"12",r:"10"}),c("circle",{class:"color",cx:"12",cy:"12",r:"10"}),c("circle",{class:"color",cx:"12",cy:"12",r:"10"}),c("circle",{class:"color",cx:"12",cy:"12",r:"10"}),c("circle",{class:"color",cx:"12",cy:"12",r:"10"}),c("circle",{class:"color",cx:"12",cy:"12",r:"10"})))}};o.style=":host{--mdc-theme-primary:var(\n --lime-primary-color,\n rgb(var(--color-teal-default))\n );--mdc-theme-secondary:var(\n --lime-secondary-color,\n rgb(var(--contrast-1100))\n );--mdc-theme-on-primary:var(\n --lime-on-primary-color,\n rgb(var(--contrast-100))\n );--mdc-theme-on-secondary:var(\n --lime-on-secondary-color,\n rgb(var(--contrast-100))\n );--mdc-theme-text-disabled-on-background:var(\n --lime-text-disabled-on-background-color,\n rgba(var(--contrast-1700), 0.38)\n );--mdc-theme-text-primary-on-background:var(\n --lime-text-primary-on-background-color,\n rgba(var(--contrast-1700), 0.87)\n );--mdc-theme-text-secondary-on-background:var(\n --lime-text-secondary-on-background-color,\n rgba(var(--contrast-1700), 0.54)\n );--mdc-theme-error:var(\n --lime-error-background-color,\n rgb(var(--color-red-dark))\n );--lime-error-text-color:rgb(var(--color-red-darker));--mdc-theme-surface:var(\n --lime-surface-background-color,\n rgb(var(--contrast-100))\n );--mdc-theme-on-surface:var(\n --lime-on-surface-color,\n rgb(var(--contrast-1500))\n )}:host(limel-spinner){display:block}@keyframes spin{50%{transform:rotate(180deg)}100%{transform:rotate(720deg)}}@keyframes fade-in-the-spinner{0%{transform:scale(0.7);opacity:0}100%{transform:scale(1);opacity:1}}@keyframes animate-colored-circles{5%{stroke-dashoffset:0}10%,100%{stroke-dashoffset:63}}:host([hidden]){display:none}:host{box-sizing:border-box;display:flex;align-items:center;justify-content:center;height:1.5rem;width:1.5rem;transform:translate3d(0, 0, 0);animation:fade-in-the-spinner 0.5s ease forwards}:host([size=x-small]){height:2rem;width:2rem}:host([size=small]){height:2.125rem;width:2.125rem}:host([size=medium]){height:2.75rem;width:2.75rem}:host([size=large]){height:4rem;width:4rem}.spinner{animation:spin 1s linear infinite;transform-origin:center}.color{animation:animate-colored-circles 10s linear infinite;fill:none;stroke-dasharray:63;stroke-dashoffset:63;stroke-linecap:round;stroke-width:4}.color.thick{stroke-width:10}.color:nth-child(1){stroke:var(--spinner-color-1, rgb(var(--lime-brand-color-deep-red)))}.color:nth-child(2){stroke:var(--spinner-color-2, rgb(var(--lime-brand-color-sellable-orange)));animation-delay:1s}.color:nth-child(3){stroke:var(--spinner-color-3, rgb(var(--lime-brand-color-simple-blue)));animation-delay:2s}.color:nth-child(4){stroke:var(--spinner-color-4, rgb(var(--lime-brand-color-orange)));animation-delay:3s}.color:nth-child(5){stroke:var(--spinner-color-5, rgb(var(--lime-brand-color-lime-green)));animation-delay:4s}.color:nth-child(6){stroke:var(--spinner-color-6, rgb(var(--lime-brand-color-yellow)));animation-delay:5s}.color:nth-child(7){stroke:var(--spinner-color-7, rgb(var(--lime-brand-color-flexible-turquoise)));animation-delay:6s}.color:nth-child(8){stroke:var(--spinner-color-8, rgb(var(--lime-brand-color-loving-magenta)));animation-delay:7s}.color:nth-child(9){stroke:var(--spinner-color-9, rgb(var(--lime-brand-color-dark-blue)));animation-delay:8s}.color:nth-child(10){stroke:var(--spinner-color-9, rgb(var(--lime-brand-color-light-grey)));animation-delay:9s}.outline{stroke:rgba(var(--lime-brand-color-light-grey), 0.3);fill:none;stroke-linecap:round;stroke-width:4}.outline.thick{stroke-width:10}";export{o as limel_spinner}
|