@maggioli-design-system/mds-input-tip-item 1.5.3 → 1.5.5
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/mds-input-tip-item.cjs.entry.js +10 -8
- package/dist/collection/common/locale.js +10 -8
- package/dist/collection/common/number.js +5 -0
- package/dist/collection/common/slot.js +10 -1
- package/dist/collection/common/unit.js +16 -1
- package/dist/collection/components/mds-input-tip-item/test/mds-input-tip.stories.js +3 -1
- package/dist/collection/dictionary/button.js +20 -1
- package/dist/collection/dictionary/icon.js +1 -1
- package/dist/components/mds-input-tip-item.js +10 -8
- package/dist/documentation.json +1 -1
- package/dist/esm/mds-input-tip-item.entry.js +10 -8
- package/dist/esm-es5/mds-input-tip-item.entry.js +1 -1
- package/dist/mds-input-tip-item/p-28df55ce.system.entry.js +6 -0
- package/dist/mds-input-tip-item/p-a5c5e095.system.js +1 -1
- package/dist/stats.json +16 -15
- package/dist/types/common/number.d.ts +2 -0
- package/dist/types/common/slot.d.ts +2 -1
- package/dist/types/common/unit.d.ts +3 -1
- package/dist/types/components/mds-input-tip-item/test/mds-input-tip.stories.d.ts +3 -1
- package/dist/types/dictionary/button.d.ts +4 -1
- package/dist/types/type/button.d.ts +2 -0
- package/documentation.json +36 -2
- package/package.json +2 -2
- package/readme.md +2 -0
- package/src/common/locale.ts +10 -8
- package/src/common/number.ts +8 -0
- package/src/common/slot.ts +12 -0
- package/src/common/unit.ts +23 -0
- package/src/components/mds-input-tip-item/test/mds-input-tip.stories.tsx +8 -5
- package/src/dictionary/button.ts +25 -0
- package/src/dictionary/icon.ts +2 -1
- package/src/fixtures/icons.json +9 -1
- package/src/tailwind/components.css +1 -1
- package/src/type/button.ts +15 -0
- package/www/build/p-28df55ce.system.entry.js +6 -0
- package/www/build/p-a5c5e095.system.js +1 -1
- package/dist/mds-input-tip-item/p-514cf0ee.system.entry.js +0 -6
- package/src/fixtures/iconsauce.json +0 -310
- package/www/build/p-514cf0ee.system.entry.js +0 -6
|
@@ -802,15 +802,17 @@ class Locale {
|
|
|
802
802
|
};
|
|
803
803
|
this.update = (doc) => {
|
|
804
804
|
const context = doc !== null && doc !== void 0 ? doc : this.element.shadowRoot;
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
805
|
+
if (context) {
|
|
806
|
+
context.querySelectorAll('*').forEach(el => {
|
|
807
|
+
if (el.tagName.toLowerCase().startsWith('mds-')) {
|
|
808
|
+
// eslint-disable-next-line no-restricted-syntax
|
|
809
|
+
if (el && 'updateLang' in el) {
|
|
810
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
811
|
+
el.updateLang();
|
|
812
|
+
}
|
|
811
813
|
}
|
|
812
|
-
}
|
|
813
|
-
}
|
|
814
|
+
});
|
|
815
|
+
}
|
|
814
816
|
};
|
|
815
817
|
this.pluralize = (tag, context) => {
|
|
816
818
|
const languagePhrase = this.config[this.language] ? this.config[this.language][tag] : this.config[this.rollbackLanguage][tag];
|
|
@@ -19,15 +19,17 @@ export class Locale {
|
|
|
19
19
|
};
|
|
20
20
|
this.update = (doc) => {
|
|
21
21
|
const context = doc !== null && doc !== void 0 ? doc : this.element.shadowRoot;
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
22
|
+
if (context) {
|
|
23
|
+
context.querySelectorAll('*').forEach(el => {
|
|
24
|
+
if (el.tagName.toLowerCase().startsWith('mds-')) {
|
|
25
|
+
// eslint-disable-next-line no-restricted-syntax
|
|
26
|
+
if (el && 'updateLang' in el) {
|
|
27
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
28
|
+
el.updateLang();
|
|
29
|
+
}
|
|
28
30
|
}
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
+
});
|
|
32
|
+
}
|
|
31
33
|
};
|
|
32
34
|
this.pluralize = (tag, context) => {
|
|
33
35
|
const languagePhrase = this.config[this.language] ? this.config[this.language][tag] : this.config[this.rollbackLanguage][tag];
|
|
@@ -25,4 +25,13 @@ const hasSlotted = (el, name) => {
|
|
|
25
25
|
}
|
|
26
26
|
return false;
|
|
27
27
|
};
|
|
28
|
-
|
|
28
|
+
const hasSlottedContent = (el, name) => {
|
|
29
|
+
var _a;
|
|
30
|
+
const query = name ? `slot[name="${name}"]` : 'slot:not([name])';
|
|
31
|
+
const slot = (_a = el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector(query);
|
|
32
|
+
if (!slot)
|
|
33
|
+
return false;
|
|
34
|
+
const assignedNodes = slot.assignedNodes({ flatten: true });
|
|
35
|
+
return assignedNodes.some(node => { var _a; return node.nodeType === Node.TEXT_NODE && ((_a = node.textContent) === null || _a === void 0 ? void 0 : _a.trim()) !== ''; });
|
|
36
|
+
};
|
|
37
|
+
export { hasSlottedElements, hasSlottedNodes, hasSlottedContent, hasSlotted, };
|
|
@@ -7,6 +7,15 @@ const cssDurationToMilliseconds = (duration, defaultValue = 1000) => {
|
|
|
7
7
|
}
|
|
8
8
|
return defaultValue;
|
|
9
9
|
};
|
|
10
|
+
const cssDurationToSeconds = (duration, defaultValue = 1000) => {
|
|
11
|
+
if (duration.includes('ms')) {
|
|
12
|
+
return Number(duration.replace('ms', '')) / 1000;
|
|
13
|
+
}
|
|
14
|
+
if (duration.includes('s')) {
|
|
15
|
+
return Number(duration.replace('s', ''));
|
|
16
|
+
}
|
|
17
|
+
return defaultValue;
|
|
18
|
+
};
|
|
10
19
|
const cssSizeToNumber = (size, defaultValue = 0) => {
|
|
11
20
|
if (size.includes('px')) {
|
|
12
21
|
return Number(size.replace('px', ''));
|
|
@@ -19,4 +28,10 @@ const cssSizeToNumber = (size, defaultValue = 0) => {
|
|
|
19
28
|
}
|
|
20
29
|
return defaultValue;
|
|
21
30
|
};
|
|
22
|
-
|
|
31
|
+
const cssRotationToNumber = (size, defaultValue = 0) => {
|
|
32
|
+
if (size.includes('deg')) {
|
|
33
|
+
return Number(size.replace('deg', ''));
|
|
34
|
+
}
|
|
35
|
+
return defaultValue;
|
|
36
|
+
};
|
|
37
|
+
export { cssDurationToMilliseconds, cssDurationToSeconds, cssRotationToNumber, cssSizeToNumber, };
|
|
@@ -11,12 +11,27 @@ const buttonVariantDictionary = [
|
|
|
11
11
|
'success',
|
|
12
12
|
'warning',
|
|
13
13
|
];
|
|
14
|
+
const buttonDropdownVariantDictionary = [
|
|
15
|
+
'ai',
|
|
16
|
+
'dark',
|
|
17
|
+
'error',
|
|
18
|
+
'info',
|
|
19
|
+
'light',
|
|
20
|
+
'primary',
|
|
21
|
+
'secondary',
|
|
22
|
+
'success',
|
|
23
|
+
'warning',
|
|
24
|
+
];
|
|
14
25
|
const buttonToneVariantDictionary = [
|
|
15
26
|
'strong',
|
|
16
27
|
'weak',
|
|
17
28
|
'ghost',
|
|
18
29
|
'quiet',
|
|
19
30
|
];
|
|
31
|
+
const buttonToneMinimalVariantDictionary = [
|
|
32
|
+
'strong',
|
|
33
|
+
'weak',
|
|
34
|
+
];
|
|
20
35
|
const buttonTargetDictionary = [
|
|
21
36
|
'blank',
|
|
22
37
|
'self',
|
|
@@ -27,6 +42,10 @@ const buttonSizeDictionary = [
|
|
|
27
42
|
'lg',
|
|
28
43
|
'xl',
|
|
29
44
|
];
|
|
45
|
+
const tabSizeDictionary = [
|
|
46
|
+
'sm',
|
|
47
|
+
'md',
|
|
48
|
+
];
|
|
30
49
|
const buttonIconPositionDictionary = [
|
|
31
50
|
'left',
|
|
32
51
|
'right',
|
|
@@ -36,4 +55,4 @@ const buttonTypeDictionary = [
|
|
|
36
55
|
'submit',
|
|
37
56
|
'reset',
|
|
38
57
|
];
|
|
39
|
-
export { buttonIconPositionDictionary, buttonSizeDictionary, buttonTargetDictionary, buttonToneVariantDictionary, buttonTypeDictionary, buttonVariantDictionary, };
|
|
58
|
+
export { buttonDropdownVariantDictionary, buttonIconPositionDictionary, buttonSizeDictionary, buttonTargetDictionary, buttonToneMinimalVariantDictionary, buttonToneVariantDictionary, buttonTypeDictionary, buttonVariantDictionary, tabSizeDictionary, };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import jsonIconsDictionary from "../fixtures/icons.json";
|
|
2
|
-
import jsonMggIconsDictionary from "
|
|
2
|
+
import jsonMggIconsDictionary from "@maggioli-design-system/svg-icons/dist/iconsauce.json";
|
|
3
3
|
const iconsDictionary = jsonIconsDictionary;
|
|
4
4
|
const mggIconsDictionary = jsonMggIconsDictionary;
|
|
5
5
|
const svgIconsDictionary = [
|
|
@@ -798,15 +798,17 @@ class Locale {
|
|
|
798
798
|
};
|
|
799
799
|
this.update = (doc) => {
|
|
800
800
|
const context = doc !== null && doc !== void 0 ? doc : this.element.shadowRoot;
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
801
|
+
if (context) {
|
|
802
|
+
context.querySelectorAll('*').forEach(el => {
|
|
803
|
+
if (el.tagName.toLowerCase().startsWith('mds-')) {
|
|
804
|
+
// eslint-disable-next-line no-restricted-syntax
|
|
805
|
+
if (el && 'updateLang' in el) {
|
|
806
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
807
|
+
el.updateLang();
|
|
808
|
+
}
|
|
807
809
|
}
|
|
808
|
-
}
|
|
809
|
-
}
|
|
810
|
+
});
|
|
811
|
+
}
|
|
810
812
|
};
|
|
811
813
|
this.pluralize = (tag, context) => {
|
|
812
814
|
const languagePhrase = this.config[this.language] ? this.config[this.language][tag] : this.config[this.rollbackLanguage][tag];
|
package/dist/documentation.json
CHANGED
|
@@ -798,15 +798,17 @@ class Locale {
|
|
|
798
798
|
};
|
|
799
799
|
this.update = (doc) => {
|
|
800
800
|
const context = doc !== null && doc !== void 0 ? doc : this.element.shadowRoot;
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
801
|
+
if (context) {
|
|
802
|
+
context.querySelectorAll('*').forEach(el => {
|
|
803
|
+
if (el.tagName.toLowerCase().startsWith('mds-')) {
|
|
804
|
+
// eslint-disable-next-line no-restricted-syntax
|
|
805
|
+
if (el && 'updateLang' in el) {
|
|
806
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
807
|
+
el.updateLang();
|
|
808
|
+
}
|
|
807
809
|
}
|
|
808
|
-
}
|
|
809
|
-
}
|
|
810
|
+
});
|
|
811
|
+
}
|
|
810
812
|
};
|
|
811
813
|
this.pluralize = (tag, context) => {
|
|
812
814
|
const languagePhrase = this.config[this.language] ? this.config[this.language][tag] : this.config[this.rollbackLanguage][tag];
|
|
@@ -3,4 +3,4 @@ var __awaiter=this&&this.__awaiter||function(t,e,r,i){function n(t){return t ins
|
|
|
3
3
|
* mustache.js - Logic-less {{mustache}} templates with JavaScript
|
|
4
4
|
* http://github.com/janl/mustache.js
|
|
5
5
|
*/
|
|
6
|
-
var t=Object.prototype.toString;var e=Array.isArray||function e(r){return t.call(r)==="[object Array]"};function r(t){return typeof t==="function"}function i(t){return e(t)?"array":typeof t}function n(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function a(t,e){return t!=null&&typeof t==="object"&&e in t}function d(t,e){return t!=null&&typeof t!=="object"&&t.hasOwnProperty&&t.hasOwnProperty(e)}var s=RegExp.prototype.test;function o(t,e){return s.call(t,e)}var u=/\S/;function h(t){return!o(u,t)}var c={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/","`":"`","=":"="};function l(t){return String(t).replace(/[&<>"'`=\/]/g,(function t(e){return c[e]}))}var m=/\s*/;var f=/\s+/;var y=/\s*=/;var p=/\s*\}/;var b=/#|\^|\/|>|\{|&|=|!/;function v(t,r){if(!t)return[];var i=false;var a=[];var d=[];var s=[];var o=false;var u=false;var c="";var l=0;function v(){if(o&&!u){while(s.length)delete d[s.pop()]}else{s=[]}o=false;u=false}var x,q,I;function $(t){if(typeof t==="string")t=t.split(f,2);if(!e(t)||t.length!==2)throw new Error("Invalid tags: "+t);x=new RegExp(n(t[0])+"\\s*");q=new RegExp("\\s*"+n(t[1]));I=new RegExp("\\s*"+n("}"+t[1]))}$(r||E.tags);var j=new k(t);var T,_,S,z,C,L;while(!j.eos()){T=j.pos;S=j.scanUntil(x);if(S){for(var M=0,R=S.length;M<R;++M){z=S.charAt(M);if(h(z)){s.push(d.length);c+=z}else{u=true;i=true;c+=" "}d.push(["text",z,T,T+1]);T+=1;if(z==="\n"){v();c="";l=0;i=false}}}if(!j.scan(x))break;o=true;_=j.scan(b)||"name";j.scan(m);if(_==="="){S=j.scanUntil(y);j.scan(y);j.scanUntil(q)}else if(_==="{"){S=j.scanUntil(I);j.scan(p);j.scanUntil(q);_="&"}else{S=j.scanUntil(q)}if(!j.scan(q))throw new Error("Unclosed tag at "+j.pos);if(_==">"){C=[_,S,T,j.pos,c,l,i]}else{C=[_,S,T,j.pos]}l++;d.push(C);if(_==="#"||_==="^"){a.push(C)}else if(_==="/"){L=a.pop();if(!L)throw new Error('Unopened section "'+S+'" at '+T);if(L[1]!==S)throw new Error('Unclosed section "'+L[1]+'" at '+T)}else if(_==="name"||_==="{"||_==="&"){u=true}else if(_==="="){$(S)}}v();L=a.pop();if(L)throw new Error('Unclosed section "'+L[1]+'" at '+j.pos);return w(g(d))}function g(t){var e=[];var r,i;for(var n=0,a=t.length;n<a;++n){r=t[n];if(r){if(r[0]==="text"&&i&&i[0]==="text"){i[1]+=r[1];i[3]=r[3]}else{e.push(r);i=r}}}return e}function w(t){var e=[];var r=e;var i=[];var n,a;for(var d=0,s=t.length;d<s;++d){n=t[d];switch(n[0]){case"#":case"^":r.push(n);i.push(n);r=n[4]=[];break;case"/":a=i.pop();a[5]=n[2];r=i.length>0?i[i.length-1][4]:e;break;default:r.push(n)}}return e}function k(t){this.string=t;this.tail=t;this.pos=0}k.prototype.eos=function t(){return this.tail===""};k.prototype.scan=function t(e){var r=this.tail.match(e);if(!r||r.index!==0)return"";var i=r[0];this.tail=this.tail.substring(i.length);this.pos+=i.length;return i};k.prototype.scanUntil=function t(e){var r=this.tail.search(e),i;switch(r){case-1:i=this.tail;this.tail="";break;case 0:i="";break;default:i=this.tail.substring(0,r);this.tail=this.tail.substring(r)}this.pos+=i.length;return i};function x(t,e){this.view=t;this.cache={".":this.view};this.parent=e}x.prototype.push=function t(e){return new x(e,this)};x.prototype.lookup=function t(e){var i=this.cache;var n;if(i.hasOwnProperty(e)){n=i[e]}else{var s=this,o,u,h,c=false;while(s){if(e.indexOf(".")>0){o=s.view;u=e.split(".");h=0;while(o!=null&&h<u.length){if(h===u.length-1)c=a(o,u[h])||d(o,u[h]);o=o[u[h++]]}}else{o=s.view[e];c=a(s.view,e)}if(c){n=o;break}s=s.parent}i[e]=n}if(r(n))n=n.call(this.view);return n};function q(){this.templateCache={_cache:{},set:function t(e,r){this._cache[e]=r},get:function t(e){return this._cache[e]},clear:function t(){this._cache={}}}}q.prototype.clearCache=function t(){if(typeof this.templateCache!=="undefined"){this.templateCache.clear()}};q.prototype.parse=function t(e,r){var i=this.templateCache;var n=e+":"+(r||E.tags).join(":");var a=typeof i!=="undefined";var d=a?i.get(n):undefined;if(d==undefined){d=v(e,r);a&&i.set(n,d)}return d};q.prototype.render=function t(e,r,i,n){var a=this.getConfigTags(n);var d=this.parse(e,a);var s=r instanceof x?r:new x(r,undefined);return this.renderTokens(d,s,i,e,n)};q.prototype.renderTokens=function t(e,r,i,n,a){var d="";var s,o,u;for(var h=0,c=e.length;h<c;++h){u=undefined;s=e[h];o=s[0];if(o==="#")u=this.renderSection(s,r,i,n,a);else if(o==="^")u=this.renderInverted(s,r,i,n,a);else if(o===">")u=this.renderPartial(s,r,i,a);else if(o==="&")u=this.unescapedValue(s,r);else if(o==="name")u=this.escapedValue(s,r,a);else if(o==="text")u=this.rawValue(s);if(u!==undefined)d+=u}return d};q.prototype.renderSection=function t(i,n,a,d,s){var o=this;var u="";var h=n.lookup(i[1]);function c(t){return o.render(t,n,a,s)}if(!h)return;if(e(h)){for(var l=0,m=h.length;l<m;++l){u+=this.renderTokens(i[4],n.push(h[l]),a,d,s)}}else if(typeof h==="object"||typeof h==="string"||typeof h==="number"){u+=this.renderTokens(i[4],n.push(h),a,d,s)}else if(r(h)){if(typeof d!=="string")throw new Error("Cannot use higher-order sections without the original template");h=h.call(n.view,d.slice(i[3],i[5]),c);if(h!=null)u+=h}else{u+=this.renderTokens(i[4],n,a,d,s)}return u};q.prototype.renderInverted=function t(r,i,n,a,d){var s=i.lookup(r[1]);if(!s||e(s)&&s.length===0)return this.renderTokens(r[4],i,n,a,d)};q.prototype.indentPartial=function t(e,r,i){var n=r.replace(/[^ \t]/g,"");var a=e.split("\n");for(var d=0;d<a.length;d++){if(a[d].length&&(d>0||!i)){a[d]=n+a[d]}}return a.join("\n")};q.prototype.renderPartial=function t(e,i,n,a){if(!n)return;var d=this.getConfigTags(a);var s=r(n)?n(e[1]):n[e[1]];if(s!=null){var o=e[6];var u=e[5];var h=e[4];var c=s;if(u==0&&h){c=this.indentPartial(s,h,o)}var l=this.parse(c,d);return this.renderTokens(l,i,n,c,a)}};q.prototype.unescapedValue=function t(e,r){var i=r.lookup(e[1]);if(i!=null)return i};q.prototype.escapedValue=function t(e,r,i){var n=this.getConfigEscape(i)||E.escape;var a=r.lookup(e[1]);if(a!=null)return typeof a==="number"&&n===E.escape?String(a):n(a)};q.prototype.rawValue=function t(e){return e[1]};q.prototype.getConfigTags=function t(r){if(e(r)){return r}else if(r&&typeof r==="object"){return r.tags}else{return undefined}};q.prototype.getConfigEscape=function t(r){if(r&&typeof r==="object"&&!e(r)){return r.escape}else{return undefined}};var E={name:"mustache.js",version:"4.2.0",tags:["{{","}}"],clearCache:undefined,escape:undefined,parse:undefined,render:undefined,Scanner:undefined,Context:undefined,Writer:undefined,set templateCache(t){I.templateCache=t},get templateCache(){return I.templateCache}};var I=new q;E.clearCache=function t(){return I.clearCache()};E.parse=function t(e,r){return I.parse(e,r)};E.render=function t(e,r,n,a){if(typeof e!=="string"){throw new TypeError('Invalid template! Template should be a "string" '+'but "'+i(e)+'" was given as the first '+"argument for mustache#render(template, view, partials)")}return I.render(e,r,n,a)};E.escape=l;E.Scanner=k;E.Context=x;E.Writer=q;return E}))})(mustache);var Locale=function(){function t(t){var e=this;this.rollbackLanguage="en";this.set=function(t){e.config=t};this.lang=function(t){e.element=t;e.closestElement=e.element.closest("[lang]");if(e.closestElement){if(e.closestElement.lang){e.language=e.closestElement.lang;return e.language}}e.language=e.rollbackLanguage;return e.language};this.update=function(t){var r=t!==null&&t!==void 0?t:e.element.shadowRoot;r&&r.querySelectorAll("*").forEach((function(t){if(t.tagName.toLowerCase().startsWith("mds-")){if(t&&"updateLang"in t){t.updateLang()}}}))};this.pluralize=function(t,r){var i=e.config[e.language]?e.config[e.language][t]:e.config[e.rollbackLanguage][t];var n=[];if(Array.isArray(i)){n.push(i[0]);n.push(i[1])}else{n.push(i);n.push(i)}var a=n[0];var d=a;var s=Object.keys(r);if(s.length>0){var o=s[0];if(typeof r[o]==="number"){if(r[o]!==1){d=n[1]}}}return mustache.exports.render(d,r)};this.get=function(t,r){if(r){return e.pluralize(t,r)}return e.config[e.language]?e.config[e.language][t]:e.config[e.rollbackLanguage][t]};if(t){this.set(t)}}return t}();var required$3="Απαιτείται";var disabled$3="Απενεργοποιημένο";var readonly$3="Μόνο για ανάγνωση";var localeEl={required:required$3,disabled:disabled$3,readonly:readonly$3};var required$2="Required";var disabled$2="Disabled";var readonly$2="Read only";var localeEn={required:required$2,disabled:disabled$2,readonly:readonly$2};var required$1="Requerido";var disabled$1="Deshabilitado";var readonly$1="Solo lectura";var localeEs={required:required$1,disabled:disabled$1,readonly:readonly$1};var required="Obbligatorio";var disabled="Disattivato";var readonly="Sola lettura";var localeIt={required:required,disabled:disabled,readonly:readonly};var mdsInputTipItemCss='@tailwind components; :host{--mds-input-tip-item-background:rgb(var(--tone-neutral-01));--mds-input-tip-item-color:rgb(var(--tone-neutral));--mds-input-tip-item-icon-color:rgb(var(--tone-neutral));height:0.75rem;border-radius:0.375rem;-webkit-transition-duration:300ms;transition-duration:300ms;-webkit-transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);-ms-flex-align:center;align-items:center;background-color:var(--mds-input-tip-item-background);color:var(--mds-input-tip-item-color);display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;min-width:0.75rem;padding:0;pointer-events:none;position:static;text-align:center;-webkit-transform:translate(0, 0);transform:translate(0, 0);-webkit-transition-property:background-color, border-radius, color, padding-left, padding-right, -webkit-transform;transition-property:background-color, border-radius, color, padding-left, padding-right, -webkit-transform;transition-property:background-color, border-radius, color, padding-left, padding-right, transform;transition-property:background-color, border-radius, color, padding-left, padding-right, transform, -webkit-transform;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.content{height:0.75rem;-webkit-transition-duration:200ms;transition-duration:200ms;-webkit-transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);display:grid;grid-template-columns:0fr;opacity:0;overflow:hidden;-webkit-transition-property:grid-template-columns, opacity;transition-property:grid-template-columns, opacity;transition-property:grid-template-columns, opacity, -ms-grid-columns}.text{line-height:0.75rem}.icon{display:-ms-flexbox;display:flex}.icon svg{aspect-ratio:1/1;height:100%;width:100%}.icon{height:0.75rem;width:0.75rem;fill:var(--mds-input-tip-item-icon-color);-webkit-transform:translateY(-1px);transform:translateY(-1px)}:host(:not([expanded])){color:transparent}:host([expanded]){padding-left:0.5rem;padding-right:0.5rem;--mds-input-tip-item-color:rgb(var(--tone-neutral))}:host([expanded]) .content{grid-template-columns:1fr;opacity:1}:host([variant="required"]){--mds-input-tip-item-background:rgb(var(--status-error-05))}:host([variant="required-success"]){--mds-input-tip-item-background:rgb(var(--status-success-05))}:host([variant="readonly"]){--mds-input-tip-item-background:rgb(var(--status-info-05))}:host([variant="disabled"]){--mds-input-tip-item-background:rgb(var(--tone-neutral-05))}:host([variant="text"]){--mds-input-tip-item-background:rgb(var(--tone-neutral-03))}:host([variant="count-empty"]){--mds-input-tip-item-color:rgb(var(--status-info-02));--mds-input-tip-item-background:rgb(var(--status-info-08))}:host([variant="count-incomplete"]){--mds-input-tip-item-color:rgb(var(--status-success-02));--mds-input-tip-item-background:rgb(var(--status-success-08))}:host([variant="count-almost"]){--mds-input-tip-item-color:rgb(var(--status-warning-02));--mds-input-tip-item-background:rgb(var(--status-warning-08))}:host([variant="count-almost-full"]){--mds-input-tip-item-color:rgb(var(--status-error-02));--mds-input-tip-item-background:rgb(var(--status-error-08))}:host([variant="count-full"]){--mds-input-tip-item-color:rgb(var(--status-error-09));--mds-input-tip-item-background:rgb(var(--status-error-05))}:host-context(.pref-animation-reduce),:host-context(.pref-animation-reduce) .content{-webkit-transition-duration:0s;transition-duration:0s}@media (prefers-reduced-motion){:host-context(.pref-animation-system),:host-context(.pref-animation-system) .content{-webkit-transition-duration:0s;transition-duration:0s}}:host-context(.pref-contrast-more):host([variant="count-empty"]){--mds-input-tip-item-color:rgb(var(--status-info-10));--mds-input-tip-item-background:rgb(var(--status-info-05))}:host-context(.pref-contrast-more):host([variant="count-incomplete"]){--mds-input-tip-item-color:rgb(var(--status-success-10));--mds-input-tip-item-background:rgb(var(--status-success-05))}:host-context(.pref-contrast-more):host([variant="count-almost"]){--mds-input-tip-item-color:rgb(var(--status-warning-10));--mds-input-tip-item-background:rgb(var(--status-warning-05))}:host-context(.pref-contrast-more):host([variant="count-almost-full"]){--mds-input-tip-item-color:rgb(var(--status-error-10));--mds-input-tip-item-background:rgb(var(--status-error-05))}@media (prefers-contrast: more){:host-context(.pref-contrast-system):host([variant="count-empty"]){--mds-input-tip-item-color:rgb(var(--status-info-10));--mds-input-tip-item-background:rgb(var(--status-info-05))}:host-context(.pref-contrast-system):host([variant="count-incomplete"]){--mds-input-tip-item-color:rgb(var(--status-success-10));--mds-input-tip-item-background:rgb(var(--status-success-05))}:host-context(.pref-contrast-system):host([variant="count-almost"]){--mds-input-tip-item-color:rgb(var(--status-warning-10));--mds-input-tip-item-background:rgb(var(--status-warning-05))}:host-context(.pref-contrast-system):host([variant="count-almost-full"]){--mds-input-tip-item-color:rgb(var(--status-error-10));--mds-input-tip-item-background:rgb(var(--status-error-05))}}:host(:not(:is([hydrated],.hydrated))){-webkit-animation-duration:0s;animation-duration:0s;border-color:transparent;-webkit-box-shadow:0 0 0 transparent;box-shadow:0 0 0 transparent;opacity:0;outline-color:transparent;-webkit-transition-delay:0s;transition-delay:0s;-webkit-transition-duration:0s;transition-duration:0s;visibility:hidden}mds-accordion:not(:is([hydrated],.hydrated)),mds-accordion-item:not(:is([hydrated],.hydrated)),mds-accordion-timer:not(:is([hydrated],.hydrated)),mds-accordion-timer-item:not(:is([hydrated],.hydrated)),mds-author:not(:is([hydrated],.hydrated)),mds-avatar:not(:is([hydrated],.hydrated)),mds-badge:not(:is([hydrated],.hydrated)),mds-banner:not(:is([hydrated],.hydrated)),mds-benchmark-bar:not(:is([hydrated],.hydrated)),mds-bibliography:not(:is([hydrated],.hydrated)),mds-breadcrumb:not(:is([hydrated],.hydrated)),mds-breadcrumb-item:not(:is([hydrated],.hydrated)),mds-button:not(:is([hydrated],.hydrated)),mds-card:not(:is([hydrated],.hydrated)),mds-card-content:not(:is([hydrated],.hydrated)),mds-card-footer:not(:is([hydrated],.hydrated)),mds-card-header:not(:is([hydrated],.hydrated)),mds-card-media:not(:is([hydrated],.hydrated)),mds-chip:not(:is([hydrated],.hydrated)),mds-details:not(:is([hydrated],.hydrated)),mds-dropdown:not(:is([hydrated],.hydrated)),mds-entity:not(:is([hydrated],.hydrated)),mds-file:not(:is([hydrated],.hydrated)),mds-file-preview:not(:is([hydrated],.hydrated)),mds-filter:not(:is([hydrated],.hydrated)),mds-filter-item:not(:is([hydrated],.hydrated)),mds-header:not(:is([hydrated],.hydrated)),mds-header-bar:not(:is([hydrated],.hydrated)),mds-help:not(:is([hydrated],.hydrated)),mds-horizontal-scroll:not(:is([hydrated],.hydrated)),mds-hr:not(:is([hydrated],.hydrated)),mds-icon:not(:is([hydrated],.hydrated)),mds-img:not(:is([hydrated],.hydrated)),mds-input:not(:is([hydrated],.hydrated)),mds-input-field:not(:is([hydrated],.hydrated)),mds-input-range:not(:is([hydrated],.hydrated)),mds-input-select:not(:is([hydrated],.hydrated)),mds-input-switch:not(:is([hydrated],.hydrated)),mds-input-tip:not(:is([hydrated],.hydrated)),mds-input-tip-item:not(:is([hydrated],.hydrated)),mds-input-upload:not(:is([hydrated],.hydrated)),mds-keyboard:not(:is([hydrated],.hydrated)),mds-keyboard-key:not(:is([hydrated],.hydrated)),mds-kpi:not(:is([hydrated],.hydrated)),mds-kpi-item:not(:is([hydrated],.hydrated)),mds-label:not(:is([hydrated],.hydrated)),mds-list:not(:is([hydrated],.hydrated)),mds-list-item:not(:is([hydrated],.hydrated)),mds-modal:not(:is([hydrated],.hydrated)),mds-note:not(:is([hydrated],.hydrated)),mds-notification:not(:is([hydrated],.hydrated)),mds-paginator:not(:is([hydrated],.hydrated)),mds-paginator-item:not(:is([hydrated],.hydrated)),mds-pref:not(:is([hydrated],.hydrated)),mds-pref-animation:not(:is([hydrated],.hydrated)),mds-pref-consumption:not(:is([hydrated],.hydrated)),mds-pref-contrast:not(:is([hydrated],.hydrated)),mds-pref-language:not(:is([hydrated],.hydrated)),mds-pref-language-item:not(:is([hydrated],.hydrated)),mds-pref-theme:not(:is([hydrated],.hydrated)),mds-price-table:not(:is([hydrated],.hydrated)),mds-price-table-features:not(:is([hydrated],.hydrated)),mds-price-table-features-cell:not(:is([hydrated],.hydrated)),mds-price-table-features-row:not(:is([hydrated],.hydrated)),mds-price-table-header:not(:is([hydrated],.hydrated)),mds-price-table-list:not(:is([hydrated],.hydrated)),mds-price-table-list-item:not(:is([hydrated],.hydrated)),mds-progress:not(:is([hydrated],.hydrated)),mds-push-notification:not(:is([hydrated],.hydrated)),mds-push-notifications:not(:is([hydrated],.hydrated)),mds-quote:not(:is([hydrated],.hydrated)),mds-separator:not(:is([hydrated],.hydrated)),mds-spinner:not(:is([hydrated],.hydrated)),mds-stepper-bar:not(:is([hydrated],.hydrated)),mds-stepper-bar-item:not(:is([hydrated],.hydrated)),mds-tab:not(:is([hydrated],.hydrated)),mds-tab-bar:not(:is([hydrated],.hydrated)),mds-tab-bar-item:not(:is([hydrated],.hydrated)),mds-tab-item:not(:is([hydrated],.hydrated)),mds-table:not(:is([hydrated],.hydrated)),mds-table-body:not(:is([hydrated],.hydrated)),mds-table-cell:not(:is([hydrated],.hydrated)),mds-table-footer:not(:is([hydrated],.hydrated)),mds-table-header:not(:is([hydrated],.hydrated)),mds-table-header-cell:not(:is([hydrated],.hydrated)),mds-table-row:not(:is([hydrated],.hydrated)),mds-text:not(:is([hydrated],.hydrated)),mds-toast:not(:is([hydrated],.hydrated)),mds-tooltip:not(:is([hydrated],.hydrated)),mds-tree:not(:is([hydrated],.hydrated)),mds-tree-item:not(:is([hydrated],.hydrated)),mds-url-view:not(:is([hydrated],.hydrated)),mds-usage:not(:is([hydrated],.hydrated)),mds-video-wall:not(:is([hydrated],.hydrated)),mds-zero:not(:is([hydrated],.hydrated)){-webkit-animation-duration:0s;animation-duration:0s;border-color:transparent;-webkit-box-shadow:0 0 0 transparent;box-shadow:0 0 0 transparent;opacity:0;outline-color:transparent;-webkit-transition-delay:0s;transition-delay:0s;-webkit-transition-duration:0s;transition-duration:0s;visibility:hidden}';var MdsInputTipItemStyle0=mdsInputTipItemCss;var MdsInputTipItem=function(){function t(t){registerInstance(this,t);this.t=new Locale({en:localeEn,el:localeEl,es:localeEs,it:localeIt});this.variant="required"}t.prototype.updateLang=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.language=this.t.lang(this.element);return[2]}))}))};t.prototype.componentWillRender=function(){this.t.lang(this.element)};t.prototype.handleEcpandedChanged=function(t){if(t===false){this.expanded=undefined}};t.prototype.render=function(){return h(Host,{key:"f33ad71b08aa4883c7260e20e7f9b8f43dcf0519"},h("div",{key:"5b67c52055c0095cca9227159467b683d5ea0f51",class:"content"},this.variant==="text"&&h("mds-text",{key:"cd394cc4c4af8a6614c5dc822c0bb18eb6e42c91",typography:"option",truncate:"word"},h("span",{key:"b7ddcd89a9b15a5d5f9ec6ba25c1e89d62c88663",class:"text"},h("slot",{key:"91cc7606f0788161127653082871d34877367ec2"}))),this.variant==="readonly"&&h("mds-text",{key:"d32601380ff2619d3bd92c4ca0b39d7bad4b54fb",typography:"option",truncate:"word"},h("span",{key:"9a38d81925d19762ca42301d6c6ed97f6f967031",class:"text"},this.variant&&this.t.get(this.variant.toString()))),this.variant==="disabled"&&h("mds-text",{key:"00033b59e084466020cb3e1a2b68d3be119c5bf0",typography:"option",truncate:"word"},h("span",{key:"3f165a5b0b1203a560aaaef5de029fb3418d7ab6",class:"text"},this.variant&&this.t.get(this.variant.toString()))),this.variant==="required"&&h("mds-text",{key:"d50e0f3f3ad8648fb2a5d03c4b61a3930d3f20a4",typography:"option",truncate:"word"},h("span",{key:"f99be6cb7039922aaed356489a85b2b33dbe8794",class:"text"},this.variant&&this.t.get(this.variant.toString()))),this.variant==="required-success"&&h("span",{key:"84481ab95da9f97954878fa341537790404f34b6",class:"icon",innerHTML:miBaselineDone}),(this.variant==="count-almost"||this.variant==="count-almost-full"||this.variant==="count-empty"||this.variant==="count-full"||this.variant==="count-incomplete")&&h("mds-text",{key:"43adceea6ad36da642f5a02cbf9c54c44e5b9f40",typography:"option",truncate:"word"},h("span",{key:"0bb53315c34315233c64846e0c3f4ad120d10359",class:"text"},h("slot",{key:"427514dbe5a58065d5eba66a1be77530d99c8957"})))))};Object.defineProperty(t.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{expanded:["handleEcpandedChanged"]}},enumerable:false,configurable:true});return t}();MdsInputTipItem.style=MdsInputTipItemStyle0;export{MdsInputTipItem as mds_input_tip_item};
|
|
6
|
+
var t=Object.prototype.toString;var e=Array.isArray||function e(r){return t.call(r)==="[object Array]"};function r(t){return typeof t==="function"}function i(t){return e(t)?"array":typeof t}function n(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function a(t,e){return t!=null&&typeof t==="object"&&e in t}function d(t,e){return t!=null&&typeof t!=="object"&&t.hasOwnProperty&&t.hasOwnProperty(e)}var s=RegExp.prototype.test;function o(t,e){return s.call(t,e)}var u=/\S/;function h(t){return!o(u,t)}var c={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/","`":"`","=":"="};function l(t){return String(t).replace(/[&<>"'`=\/]/g,(function t(e){return c[e]}))}var m=/\s*/;var f=/\s+/;var y=/\s*=/;var p=/\s*\}/;var b=/#|\^|\/|>|\{|&|=|!/;function v(t,r){if(!t)return[];var i=false;var a=[];var d=[];var s=[];var o=false;var u=false;var c="";var l=0;function v(){if(o&&!u){while(s.length)delete d[s.pop()]}else{s=[]}o=false;u=false}var x,q,I;function $(t){if(typeof t==="string")t=t.split(f,2);if(!e(t)||t.length!==2)throw new Error("Invalid tags: "+t);x=new RegExp(n(t[0])+"\\s*");q=new RegExp("\\s*"+n(t[1]));I=new RegExp("\\s*"+n("}"+t[1]))}$(r||E.tags);var j=new k(t);var T,_,S,z,C,L;while(!j.eos()){T=j.pos;S=j.scanUntil(x);if(S){for(var M=0,R=S.length;M<R;++M){z=S.charAt(M);if(h(z)){s.push(d.length);c+=z}else{u=true;i=true;c+=" "}d.push(["text",z,T,T+1]);T+=1;if(z==="\n"){v();c="";l=0;i=false}}}if(!j.scan(x))break;o=true;_=j.scan(b)||"name";j.scan(m);if(_==="="){S=j.scanUntil(y);j.scan(y);j.scanUntil(q)}else if(_==="{"){S=j.scanUntil(I);j.scan(p);j.scanUntil(q);_="&"}else{S=j.scanUntil(q)}if(!j.scan(q))throw new Error("Unclosed tag at "+j.pos);if(_==">"){C=[_,S,T,j.pos,c,l,i]}else{C=[_,S,T,j.pos]}l++;d.push(C);if(_==="#"||_==="^"){a.push(C)}else if(_==="/"){L=a.pop();if(!L)throw new Error('Unopened section "'+S+'" at '+T);if(L[1]!==S)throw new Error('Unclosed section "'+L[1]+'" at '+T)}else if(_==="name"||_==="{"||_==="&"){u=true}else if(_==="="){$(S)}}v();L=a.pop();if(L)throw new Error('Unclosed section "'+L[1]+'" at '+j.pos);return w(g(d))}function g(t){var e=[];var r,i;for(var n=0,a=t.length;n<a;++n){r=t[n];if(r){if(r[0]==="text"&&i&&i[0]==="text"){i[1]+=r[1];i[3]=r[3]}else{e.push(r);i=r}}}return e}function w(t){var e=[];var r=e;var i=[];var n,a;for(var d=0,s=t.length;d<s;++d){n=t[d];switch(n[0]){case"#":case"^":r.push(n);i.push(n);r=n[4]=[];break;case"/":a=i.pop();a[5]=n[2];r=i.length>0?i[i.length-1][4]:e;break;default:r.push(n)}}return e}function k(t){this.string=t;this.tail=t;this.pos=0}k.prototype.eos=function t(){return this.tail===""};k.prototype.scan=function t(e){var r=this.tail.match(e);if(!r||r.index!==0)return"";var i=r[0];this.tail=this.tail.substring(i.length);this.pos+=i.length;return i};k.prototype.scanUntil=function t(e){var r=this.tail.search(e),i;switch(r){case-1:i=this.tail;this.tail="";break;case 0:i="";break;default:i=this.tail.substring(0,r);this.tail=this.tail.substring(r)}this.pos+=i.length;return i};function x(t,e){this.view=t;this.cache={".":this.view};this.parent=e}x.prototype.push=function t(e){return new x(e,this)};x.prototype.lookup=function t(e){var i=this.cache;var n;if(i.hasOwnProperty(e)){n=i[e]}else{var s=this,o,u,h,c=false;while(s){if(e.indexOf(".")>0){o=s.view;u=e.split(".");h=0;while(o!=null&&h<u.length){if(h===u.length-1)c=a(o,u[h])||d(o,u[h]);o=o[u[h++]]}}else{o=s.view[e];c=a(s.view,e)}if(c){n=o;break}s=s.parent}i[e]=n}if(r(n))n=n.call(this.view);return n};function q(){this.templateCache={_cache:{},set:function t(e,r){this._cache[e]=r},get:function t(e){return this._cache[e]},clear:function t(){this._cache={}}}}q.prototype.clearCache=function t(){if(typeof this.templateCache!=="undefined"){this.templateCache.clear()}};q.prototype.parse=function t(e,r){var i=this.templateCache;var n=e+":"+(r||E.tags).join(":");var a=typeof i!=="undefined";var d=a?i.get(n):undefined;if(d==undefined){d=v(e,r);a&&i.set(n,d)}return d};q.prototype.render=function t(e,r,i,n){var a=this.getConfigTags(n);var d=this.parse(e,a);var s=r instanceof x?r:new x(r,undefined);return this.renderTokens(d,s,i,e,n)};q.prototype.renderTokens=function t(e,r,i,n,a){var d="";var s,o,u;for(var h=0,c=e.length;h<c;++h){u=undefined;s=e[h];o=s[0];if(o==="#")u=this.renderSection(s,r,i,n,a);else if(o==="^")u=this.renderInverted(s,r,i,n,a);else if(o===">")u=this.renderPartial(s,r,i,a);else if(o==="&")u=this.unescapedValue(s,r);else if(o==="name")u=this.escapedValue(s,r,a);else if(o==="text")u=this.rawValue(s);if(u!==undefined)d+=u}return d};q.prototype.renderSection=function t(i,n,a,d,s){var o=this;var u="";var h=n.lookup(i[1]);function c(t){return o.render(t,n,a,s)}if(!h)return;if(e(h)){for(var l=0,m=h.length;l<m;++l){u+=this.renderTokens(i[4],n.push(h[l]),a,d,s)}}else if(typeof h==="object"||typeof h==="string"||typeof h==="number"){u+=this.renderTokens(i[4],n.push(h),a,d,s)}else if(r(h)){if(typeof d!=="string")throw new Error("Cannot use higher-order sections without the original template");h=h.call(n.view,d.slice(i[3],i[5]),c);if(h!=null)u+=h}else{u+=this.renderTokens(i[4],n,a,d,s)}return u};q.prototype.renderInverted=function t(r,i,n,a,d){var s=i.lookup(r[1]);if(!s||e(s)&&s.length===0)return this.renderTokens(r[4],i,n,a,d)};q.prototype.indentPartial=function t(e,r,i){var n=r.replace(/[^ \t]/g,"");var a=e.split("\n");for(var d=0;d<a.length;d++){if(a[d].length&&(d>0||!i)){a[d]=n+a[d]}}return a.join("\n")};q.prototype.renderPartial=function t(e,i,n,a){if(!n)return;var d=this.getConfigTags(a);var s=r(n)?n(e[1]):n[e[1]];if(s!=null){var o=e[6];var u=e[5];var h=e[4];var c=s;if(u==0&&h){c=this.indentPartial(s,h,o)}var l=this.parse(c,d);return this.renderTokens(l,i,n,c,a)}};q.prototype.unescapedValue=function t(e,r){var i=r.lookup(e[1]);if(i!=null)return i};q.prototype.escapedValue=function t(e,r,i){var n=this.getConfigEscape(i)||E.escape;var a=r.lookup(e[1]);if(a!=null)return typeof a==="number"&&n===E.escape?String(a):n(a)};q.prototype.rawValue=function t(e){return e[1]};q.prototype.getConfigTags=function t(r){if(e(r)){return r}else if(r&&typeof r==="object"){return r.tags}else{return undefined}};q.prototype.getConfigEscape=function t(r){if(r&&typeof r==="object"&&!e(r)){return r.escape}else{return undefined}};var E={name:"mustache.js",version:"4.2.0",tags:["{{","}}"],clearCache:undefined,escape:undefined,parse:undefined,render:undefined,Scanner:undefined,Context:undefined,Writer:undefined,set templateCache(t){I.templateCache=t},get templateCache(){return I.templateCache}};var I=new q;E.clearCache=function t(){return I.clearCache()};E.parse=function t(e,r){return I.parse(e,r)};E.render=function t(e,r,n,a){if(typeof e!=="string"){throw new TypeError('Invalid template! Template should be a "string" '+'but "'+i(e)+'" was given as the first '+"argument for mustache#render(template, view, partials)")}return I.render(e,r,n,a)};E.escape=l;E.Scanner=k;E.Context=x;E.Writer=q;return E}))})(mustache);var Locale=function(){function t(t){var e=this;this.rollbackLanguage="en";this.set=function(t){e.config=t};this.lang=function(t){e.element=t;e.closestElement=e.element.closest("[lang]");if(e.closestElement){if(e.closestElement.lang){e.language=e.closestElement.lang;return e.language}}e.language=e.rollbackLanguage;return e.language};this.update=function(t){var r=t!==null&&t!==void 0?t:e.element.shadowRoot;if(r){r.querySelectorAll("*").forEach((function(t){if(t.tagName.toLowerCase().startsWith("mds-")){if(t&&"updateLang"in t){t.updateLang()}}}))}};this.pluralize=function(t,r){var i=e.config[e.language]?e.config[e.language][t]:e.config[e.rollbackLanguage][t];var n=[];if(Array.isArray(i)){n.push(i[0]);n.push(i[1])}else{n.push(i);n.push(i)}var a=n[0];var d=a;var s=Object.keys(r);if(s.length>0){var o=s[0];if(typeof r[o]==="number"){if(r[o]!==1){d=n[1]}}}return mustache.exports.render(d,r)};this.get=function(t,r){if(r){return e.pluralize(t,r)}return e.config[e.language]?e.config[e.language][t]:e.config[e.rollbackLanguage][t]};if(t){this.set(t)}}return t}();var required$3="Απαιτείται";var disabled$3="Απενεργοποιημένο";var readonly$3="Μόνο για ανάγνωση";var localeEl={required:required$3,disabled:disabled$3,readonly:readonly$3};var required$2="Required";var disabled$2="Disabled";var readonly$2="Read only";var localeEn={required:required$2,disabled:disabled$2,readonly:readonly$2};var required$1="Requerido";var disabled$1="Deshabilitado";var readonly$1="Solo lectura";var localeEs={required:required$1,disabled:disabled$1,readonly:readonly$1};var required="Obbligatorio";var disabled="Disattivato";var readonly="Sola lettura";var localeIt={required:required,disabled:disabled,readonly:readonly};var mdsInputTipItemCss='@tailwind components; :host{--mds-input-tip-item-background:rgb(var(--tone-neutral-01));--mds-input-tip-item-color:rgb(var(--tone-neutral));--mds-input-tip-item-icon-color:rgb(var(--tone-neutral));height:0.75rem;border-radius:0.375rem;-webkit-transition-duration:300ms;transition-duration:300ms;-webkit-transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);-ms-flex-align:center;align-items:center;background-color:var(--mds-input-tip-item-background);color:var(--mds-input-tip-item-color);display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;min-width:0.75rem;padding:0;pointer-events:none;position:static;text-align:center;-webkit-transform:translate(0, 0);transform:translate(0, 0);-webkit-transition-property:background-color, border-radius, color, padding-left, padding-right, -webkit-transform;transition-property:background-color, border-radius, color, padding-left, padding-right, -webkit-transform;transition-property:background-color, border-radius, color, padding-left, padding-right, transform;transition-property:background-color, border-radius, color, padding-left, padding-right, transform, -webkit-transform;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.content{height:0.75rem;-webkit-transition-duration:200ms;transition-duration:200ms;-webkit-transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);display:grid;grid-template-columns:0fr;opacity:0;overflow:hidden;-webkit-transition-property:grid-template-columns, opacity;transition-property:grid-template-columns, opacity;transition-property:grid-template-columns, opacity, -ms-grid-columns}.text{line-height:0.75rem}.icon{display:-ms-flexbox;display:flex}.icon svg{aspect-ratio:1/1;height:100%;width:100%}.icon{height:0.75rem;width:0.75rem;fill:var(--mds-input-tip-item-icon-color);-webkit-transform:translateY(-1px);transform:translateY(-1px)}:host(:not([expanded])){color:transparent}:host([expanded]){padding-left:0.5rem;padding-right:0.5rem;--mds-input-tip-item-color:rgb(var(--tone-neutral))}:host([expanded]) .content{grid-template-columns:1fr;opacity:1}:host([variant="required"]){--mds-input-tip-item-background:rgb(var(--status-error-05))}:host([variant="required-success"]){--mds-input-tip-item-background:rgb(var(--status-success-05))}:host([variant="readonly"]){--mds-input-tip-item-background:rgb(var(--status-info-05))}:host([variant="disabled"]){--mds-input-tip-item-background:rgb(var(--tone-neutral-05))}:host([variant="text"]){--mds-input-tip-item-background:rgb(var(--tone-neutral-03))}:host([variant="count-empty"]){--mds-input-tip-item-color:rgb(var(--status-info-02));--mds-input-tip-item-background:rgb(var(--status-info-08))}:host([variant="count-incomplete"]){--mds-input-tip-item-color:rgb(var(--status-success-02));--mds-input-tip-item-background:rgb(var(--status-success-08))}:host([variant="count-almost"]){--mds-input-tip-item-color:rgb(var(--status-warning-02));--mds-input-tip-item-background:rgb(var(--status-warning-08))}:host([variant="count-almost-full"]){--mds-input-tip-item-color:rgb(var(--status-error-02));--mds-input-tip-item-background:rgb(var(--status-error-08))}:host([variant="count-full"]){--mds-input-tip-item-color:rgb(var(--status-error-09));--mds-input-tip-item-background:rgb(var(--status-error-05))}:host-context(.pref-animation-reduce),:host-context(.pref-animation-reduce) .content{-webkit-transition-duration:0s;transition-duration:0s}@media (prefers-reduced-motion){:host-context(.pref-animation-system),:host-context(.pref-animation-system) .content{-webkit-transition-duration:0s;transition-duration:0s}}:host-context(.pref-contrast-more):host([variant="count-empty"]){--mds-input-tip-item-color:rgb(var(--status-info-10));--mds-input-tip-item-background:rgb(var(--status-info-05))}:host-context(.pref-contrast-more):host([variant="count-incomplete"]){--mds-input-tip-item-color:rgb(var(--status-success-10));--mds-input-tip-item-background:rgb(var(--status-success-05))}:host-context(.pref-contrast-more):host([variant="count-almost"]){--mds-input-tip-item-color:rgb(var(--status-warning-10));--mds-input-tip-item-background:rgb(var(--status-warning-05))}:host-context(.pref-contrast-more):host([variant="count-almost-full"]){--mds-input-tip-item-color:rgb(var(--status-error-10));--mds-input-tip-item-background:rgb(var(--status-error-05))}@media (prefers-contrast: more){:host-context(.pref-contrast-system):host([variant="count-empty"]){--mds-input-tip-item-color:rgb(var(--status-info-10));--mds-input-tip-item-background:rgb(var(--status-info-05))}:host-context(.pref-contrast-system):host([variant="count-incomplete"]){--mds-input-tip-item-color:rgb(var(--status-success-10));--mds-input-tip-item-background:rgb(var(--status-success-05))}:host-context(.pref-contrast-system):host([variant="count-almost"]){--mds-input-tip-item-color:rgb(var(--status-warning-10));--mds-input-tip-item-background:rgb(var(--status-warning-05))}:host-context(.pref-contrast-system):host([variant="count-almost-full"]){--mds-input-tip-item-color:rgb(var(--status-error-10));--mds-input-tip-item-background:rgb(var(--status-error-05))}}:host(:not(:is([hydrated],.hydrated))){-webkit-animation-duration:0s;animation-duration:0s;border-color:transparent;-webkit-box-shadow:0 0 0 transparent;box-shadow:0 0 0 transparent;opacity:0;outline-color:transparent;-webkit-transition-delay:0s;transition-delay:0s;-webkit-transition-duration:0s;transition-duration:0s;visibility:hidden}mds-accordion:not(:is([hydrated],.hydrated)),mds-accordion-item:not(:is([hydrated],.hydrated)),mds-accordion-timer:not(:is([hydrated],.hydrated)),mds-accordion-timer-item:not(:is([hydrated],.hydrated)),mds-author:not(:is([hydrated],.hydrated)),mds-avatar:not(:is([hydrated],.hydrated)),mds-badge:not(:is([hydrated],.hydrated)),mds-banner:not(:is([hydrated],.hydrated)),mds-benchmark-bar:not(:is([hydrated],.hydrated)),mds-bibliography:not(:is([hydrated],.hydrated)),mds-breadcrumb:not(:is([hydrated],.hydrated)),mds-breadcrumb-item:not(:is([hydrated],.hydrated)),mds-button:not(:is([hydrated],.hydrated)),mds-card:not(:is([hydrated],.hydrated)),mds-card-content:not(:is([hydrated],.hydrated)),mds-card-footer:not(:is([hydrated],.hydrated)),mds-card-header:not(:is([hydrated],.hydrated)),mds-card-media:not(:is([hydrated],.hydrated)),mds-chip:not(:is([hydrated],.hydrated)),mds-details:not(:is([hydrated],.hydrated)),mds-dropdown:not(:is([hydrated],.hydrated)),mds-entity:not(:is([hydrated],.hydrated)),mds-file:not(:is([hydrated],.hydrated)),mds-file-preview:not(:is([hydrated],.hydrated)),mds-filter:not(:is([hydrated],.hydrated)),mds-filter-item:not(:is([hydrated],.hydrated)),mds-header:not(:is([hydrated],.hydrated)),mds-header-bar:not(:is([hydrated],.hydrated)),mds-help:not(:is([hydrated],.hydrated)),mds-horizontal-scroll:not(:is([hydrated],.hydrated)),mds-hr:not(:is([hydrated],.hydrated)),mds-icon:not(:is([hydrated],.hydrated)),mds-img:not(:is([hydrated],.hydrated)),mds-input:not(:is([hydrated],.hydrated)),mds-input-field:not(:is([hydrated],.hydrated)),mds-input-range:not(:is([hydrated],.hydrated)),mds-input-select:not(:is([hydrated],.hydrated)),mds-input-switch:not(:is([hydrated],.hydrated)),mds-input-tip:not(:is([hydrated],.hydrated)),mds-input-tip-item:not(:is([hydrated],.hydrated)),mds-input-upload:not(:is([hydrated],.hydrated)),mds-keyboard:not(:is([hydrated],.hydrated)),mds-keyboard-key:not(:is([hydrated],.hydrated)),mds-kpi:not(:is([hydrated],.hydrated)),mds-kpi-item:not(:is([hydrated],.hydrated)),mds-label:not(:is([hydrated],.hydrated)),mds-list:not(:is([hydrated],.hydrated)),mds-list-item:not(:is([hydrated],.hydrated)),mds-modal:not(:is([hydrated],.hydrated)),mds-note:not(:is([hydrated],.hydrated)),mds-notification:not(:is([hydrated],.hydrated)),mds-paginator:not(:is([hydrated],.hydrated)),mds-paginator-item:not(:is([hydrated],.hydrated)),mds-pref:not(:is([hydrated],.hydrated)),mds-pref-animation:not(:is([hydrated],.hydrated)),mds-pref-consumption:not(:is([hydrated],.hydrated)),mds-pref-contrast:not(:is([hydrated],.hydrated)),mds-pref-language:not(:is([hydrated],.hydrated)),mds-pref-language-item:not(:is([hydrated],.hydrated)),mds-pref-theme:not(:is([hydrated],.hydrated)),mds-price-table:not(:is([hydrated],.hydrated)),mds-price-table-features:not(:is([hydrated],.hydrated)),mds-price-table-features-cell:not(:is([hydrated],.hydrated)),mds-price-table-features-row:not(:is([hydrated],.hydrated)),mds-price-table-header:not(:is([hydrated],.hydrated)),mds-price-table-list:not(:is([hydrated],.hydrated)),mds-price-table-list-item:not(:is([hydrated],.hydrated)),mds-progress:not(:is([hydrated],.hydrated)),mds-push-notification:not(:is([hydrated],.hydrated)),mds-push-notifications:not(:is([hydrated],.hydrated)),mds-quote:not(:is([hydrated],.hydrated)),mds-separator:not(:is([hydrated],.hydrated)),mds-spinner:not(:is([hydrated],.hydrated)),mds-stepper-bar:not(:is([hydrated],.hydrated)),mds-stepper-bar-item:not(:is([hydrated],.hydrated)),mds-tab:not(:is([hydrated],.hydrated)),mds-tab-bar:not(:is([hydrated],.hydrated)),mds-tab-bar-item:not(:is([hydrated],.hydrated)),mds-tab-item:not(:is([hydrated],.hydrated)),mds-table:not(:is([hydrated],.hydrated)),mds-table-body:not(:is([hydrated],.hydrated)),mds-table-cell:not(:is([hydrated],.hydrated)),mds-table-footer:not(:is([hydrated],.hydrated)),mds-table-header:not(:is([hydrated],.hydrated)),mds-table-header-cell:not(:is([hydrated],.hydrated)),mds-table-row:not(:is([hydrated],.hydrated)),mds-text:not(:is([hydrated],.hydrated)),mds-toast:not(:is([hydrated],.hydrated)),mds-tooltip:not(:is([hydrated],.hydrated)),mds-tree:not(:is([hydrated],.hydrated)),mds-tree-item:not(:is([hydrated],.hydrated)),mds-url-view:not(:is([hydrated],.hydrated)),mds-usage:not(:is([hydrated],.hydrated)),mds-video-wall:not(:is([hydrated],.hydrated)),mds-zero:not(:is([hydrated],.hydrated)){-webkit-animation-duration:0s;animation-duration:0s;border-color:transparent;-webkit-box-shadow:0 0 0 transparent;box-shadow:0 0 0 transparent;opacity:0;outline-color:transparent;-webkit-transition-delay:0s;transition-delay:0s;-webkit-transition-duration:0s;transition-duration:0s;visibility:hidden}';var MdsInputTipItemStyle0=mdsInputTipItemCss;var MdsInputTipItem=function(){function t(t){registerInstance(this,t);this.t=new Locale({en:localeEn,el:localeEl,es:localeEs,it:localeIt});this.variant="required"}t.prototype.updateLang=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.language=this.t.lang(this.element);return[2]}))}))};t.prototype.componentWillRender=function(){this.t.lang(this.element)};t.prototype.handleEcpandedChanged=function(t){if(t===false){this.expanded=undefined}};t.prototype.render=function(){return h(Host,{key:"f33ad71b08aa4883c7260e20e7f9b8f43dcf0519"},h("div",{key:"5b67c52055c0095cca9227159467b683d5ea0f51",class:"content"},this.variant==="text"&&h("mds-text",{key:"cd394cc4c4af8a6614c5dc822c0bb18eb6e42c91",typography:"option",truncate:"word"},h("span",{key:"b7ddcd89a9b15a5d5f9ec6ba25c1e89d62c88663",class:"text"},h("slot",{key:"91cc7606f0788161127653082871d34877367ec2"}))),this.variant==="readonly"&&h("mds-text",{key:"d32601380ff2619d3bd92c4ca0b39d7bad4b54fb",typography:"option",truncate:"word"},h("span",{key:"9a38d81925d19762ca42301d6c6ed97f6f967031",class:"text"},this.variant&&this.t.get(this.variant.toString()))),this.variant==="disabled"&&h("mds-text",{key:"00033b59e084466020cb3e1a2b68d3be119c5bf0",typography:"option",truncate:"word"},h("span",{key:"3f165a5b0b1203a560aaaef5de029fb3418d7ab6",class:"text"},this.variant&&this.t.get(this.variant.toString()))),this.variant==="required"&&h("mds-text",{key:"d50e0f3f3ad8648fb2a5d03c4b61a3930d3f20a4",typography:"option",truncate:"word"},h("span",{key:"f99be6cb7039922aaed356489a85b2b33dbe8794",class:"text"},this.variant&&this.t.get(this.variant.toString()))),this.variant==="required-success"&&h("span",{key:"84481ab95da9f97954878fa341537790404f34b6",class:"icon",innerHTML:miBaselineDone}),(this.variant==="count-almost"||this.variant==="count-almost-full"||this.variant==="count-empty"||this.variant==="count-full"||this.variant==="count-incomplete")&&h("mds-text",{key:"43adceea6ad36da642f5a02cbf9c54c44e5b9f40",typography:"option",truncate:"word"},h("span",{key:"0bb53315c34315233c64846e0c3f4ad120d10359",class:"text"},h("slot",{key:"427514dbe5a58065d5eba66a1be77530d99c8957"})))))};Object.defineProperty(t.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{expanded:["handleEcpandedChanged"]}},enumerable:false,configurable:true});return t}();MdsInputTipItem.style=MdsInputTipItemStyle0;export{MdsInputTipItem as mds_input_tip_item};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
var __awaiter=this&&this.__awaiter||function(t,e,r,i){function n(t){return t instanceof r?t:new r((function(e){e(t)}))}return new(r||(r=Promise))((function(r,a){function d(t){try{o(i.next(t))}catch(t){a(t)}}function s(t){try{o(i["throw"](t))}catch(t){a(t)}}function o(t){t.done?r(t.value):n(t.value).then(d,s)}o((i=i.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},i,n,a,d;return d={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(d[Symbol.iterator]=function(){return this}),d;function s(t){return function(e){return o([t,e])}}function o(s){if(i)throw new TypeError("Generator is already executing.");while(d&&(d=0,s[0]&&(r=0)),r)try{if(i=1,n&&(a=s[0]&2?n["return"]:s[0]?n["throw"]||((a=n["return"])&&a.call(n),0):n.next)&&!(a=a.call(n,s[1])).done)return a;if(n=0,a)s=[s[0]&2,a.value];switch(s[0]){case 0:case 1:a=s;break;case 4:r.label++;return{value:s[1],done:false};case 5:r.label++;n=s[1];s=[0];continue;case 7:s=r.ops.pop();r.trys.pop();continue;default:if(!(a=r.trys,a=a.length>0&&a[a.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!a||s[1]>a[0]&&s[1]<a[3])){r.label=s[1];break}if(s[0]===6&&r.label<a[1]){r.label=a[1];a=s;break}if(a&&r.label<a[2]){r.label=a[2];r.ops.push(s);break}if(a[2])r.ops.pop();r.trys.pop();continue}s=e.call(t,r)}catch(t){s=[6,t];n=0}finally{i=a=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};System.register(["./p-f3fcd277.system.js"],(function(t){"use strict";var e,r,i,n;return{setters:[function(t){e=t.r;r=t.h;i=t.H;n=t.g}],execute:function(){var a='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M9 16.2L4.8 12l-1.4 1.4L9 19L21 7l-1.4-1.4L9 16.2z"/></svg>';var d=typeof globalThis!=="undefined"?globalThis:typeof window!=="undefined"?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:{};var s={exports:{}};(function(t,e){(function(e,r){t.exports=r()})(d,(function(){
|
|
2
|
+
/*!
|
|
3
|
+
* mustache.js - Logic-less {{mustache}} templates with JavaScript
|
|
4
|
+
* http://github.com/janl/mustache.js
|
|
5
|
+
*/
|
|
6
|
+
var t=Object.prototype.toString;var e=Array.isArray||function e(r){return t.call(r)==="[object Array]"};function r(t){return typeof t==="function"}function i(t){return e(t)?"array":typeof t}function n(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function a(t,e){return t!=null&&typeof t==="object"&&e in t}function d(t,e){return t!=null&&typeof t!=="object"&&t.hasOwnProperty&&t.hasOwnProperty(e)}var s=RegExp.prototype.test;function o(t,e){return s.call(t,e)}var u=/\S/;function h(t){return!o(u,t)}var c={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/","`":"`","=":"="};function f(t){return String(t).replace(/[&<>"'`=\/]/g,(function t(e){return c[e]}))}var m=/\s*/;var y=/\s+/;var l=/\s*=/;var p=/\s*\}/;var b=/#|\^|\/|>|\{|&|=|!/;function v(t,r){if(!t)return[];var i=false;var a=[];var d=[];var s=[];var o=false;var u=false;var c="";var f=0;function v(){if(o&&!u){while(s.length)delete d[s.pop()]}else{s=[]}o=false;u=false}var x,j,E;function _(t){if(typeof t==="string")t=t.split(y,2);if(!e(t)||t.length!==2)throw new Error("Invalid tags: "+t);x=new RegExp(n(t[0])+"\\s*");j=new RegExp("\\s*"+n(t[1]));E=new RegExp("\\s*"+n("}"+t[1]))}_(r||q.tags);var S=new k(t);var z,R,C,L,T,O;while(!S.eos()){z=S.pos;C=S.scanUntil(x);if(C){for(var D=0,U=C.length;D<U;++D){L=C.charAt(D);if(h(L)){s.push(d.length);c+=L}else{u=true;i=true;c+=" "}d.push(["text",L,z,z+1]);z+=1;if(L==="\n"){v();c="";f=0;i=false}}}if(!S.scan(x))break;o=true;R=S.scan(b)||"name";S.scan(m);if(R==="="){C=S.scanUntil(l);S.scan(l);S.scanUntil(j)}else if(R==="{"){C=S.scanUntil(E);S.scan(p);S.scanUntil(j);R="&"}else{C=S.scanUntil(j)}if(!S.scan(j))throw new Error("Unclosed tag at "+S.pos);if(R==">"){T=[R,C,z,S.pos,c,f,i]}else{T=[R,C,z,S.pos]}f++;d.push(T);if(R==="#"||R==="^"){a.push(T)}else if(R==="/"){O=a.pop();if(!O)throw new Error('Unopened section "'+C+'" at '+z);if(O[1]!==C)throw new Error('Unclosed section "'+O[1]+'" at '+z)}else if(R==="name"||R==="{"||R==="&"){u=true}else if(R==="="){_(C)}}v();O=a.pop();if(O)throw new Error('Unclosed section "'+O[1]+'" at '+S.pos);return w(g(d))}function g(t){var e=[];var r,i;for(var n=0,a=t.length;n<a;++n){r=t[n];if(r){if(r[0]==="text"&&i&&i[0]==="text"){i[1]+=r[1];i[3]=r[3]}else{e.push(r);i=r}}}return e}function w(t){var e=[];var r=e;var i=[];var n,a;for(var d=0,s=t.length;d<s;++d){n=t[d];switch(n[0]){case"#":case"^":r.push(n);i.push(n);r=n[4]=[];break;case"/":a=i.pop();a[5]=n[2];r=i.length>0?i[i.length-1][4]:e;break;default:r.push(n)}}return e}function k(t){this.string=t;this.tail=t;this.pos=0}k.prototype.eos=function t(){return this.tail===""};k.prototype.scan=function t(e){var r=this.tail.match(e);if(!r||r.index!==0)return"";var i=r[0];this.tail=this.tail.substring(i.length);this.pos+=i.length;return i};k.prototype.scanUntil=function t(e){var r=this.tail.search(e),i;switch(r){case-1:i=this.tail;this.tail="";break;case 0:i="";break;default:i=this.tail.substring(0,r);this.tail=this.tail.substring(r)}this.pos+=i.length;return i};function x(t,e){this.view=t;this.cache={".":this.view};this.parent=e}x.prototype.push=function t(e){return new x(e,this)};x.prototype.lookup=function t(e){var i=this.cache;var n;if(i.hasOwnProperty(e)){n=i[e]}else{var s=this,o,u,h,c=false;while(s){if(e.indexOf(".")>0){o=s.view;u=e.split(".");h=0;while(o!=null&&h<u.length){if(h===u.length-1)c=a(o,u[h])||d(o,u[h]);o=o[u[h++]]}}else{o=s.view[e];c=a(s.view,e)}if(c){n=o;break}s=s.parent}i[e]=n}if(r(n))n=n.call(this.view);return n};function j(){this.templateCache={_cache:{},set:function t(e,r){this._cache[e]=r},get:function t(e){return this._cache[e]},clear:function t(){this._cache={}}}}j.prototype.clearCache=function t(){if(typeof this.templateCache!=="undefined"){this.templateCache.clear()}};j.prototype.parse=function t(e,r){var i=this.templateCache;var n=e+":"+(r||q.tags).join(":");var a=typeof i!=="undefined";var d=a?i.get(n):undefined;if(d==undefined){d=v(e,r);a&&i.set(n,d)}return d};j.prototype.render=function t(e,r,i,n){var a=this.getConfigTags(n);var d=this.parse(e,a);var s=r instanceof x?r:new x(r,undefined);return this.renderTokens(d,s,i,e,n)};j.prototype.renderTokens=function t(e,r,i,n,a){var d="";var s,o,u;for(var h=0,c=e.length;h<c;++h){u=undefined;s=e[h];o=s[0];if(o==="#")u=this.renderSection(s,r,i,n,a);else if(o==="^")u=this.renderInverted(s,r,i,n,a);else if(o===">")u=this.renderPartial(s,r,i,a);else if(o==="&")u=this.unescapedValue(s,r);else if(o==="name")u=this.escapedValue(s,r,a);else if(o==="text")u=this.rawValue(s);if(u!==undefined)d+=u}return d};j.prototype.renderSection=function t(i,n,a,d,s){var o=this;var u="";var h=n.lookup(i[1]);function c(t){return o.render(t,n,a,s)}if(!h)return;if(e(h)){for(var f=0,m=h.length;f<m;++f){u+=this.renderTokens(i[4],n.push(h[f]),a,d,s)}}else if(typeof h==="object"||typeof h==="string"||typeof h==="number"){u+=this.renderTokens(i[4],n.push(h),a,d,s)}else if(r(h)){if(typeof d!=="string")throw new Error("Cannot use higher-order sections without the original template");h=h.call(n.view,d.slice(i[3],i[5]),c);if(h!=null)u+=h}else{u+=this.renderTokens(i[4],n,a,d,s)}return u};j.prototype.renderInverted=function t(r,i,n,a,d){var s=i.lookup(r[1]);if(!s||e(s)&&s.length===0)return this.renderTokens(r[4],i,n,a,d)};j.prototype.indentPartial=function t(e,r,i){var n=r.replace(/[^ \t]/g,"");var a=e.split("\n");for(var d=0;d<a.length;d++){if(a[d].length&&(d>0||!i)){a[d]=n+a[d]}}return a.join("\n")};j.prototype.renderPartial=function t(e,i,n,a){if(!n)return;var d=this.getConfigTags(a);var s=r(n)?n(e[1]):n[e[1]];if(s!=null){var o=e[6];var u=e[5];var h=e[4];var c=s;if(u==0&&h){c=this.indentPartial(s,h,o)}var f=this.parse(c,d);return this.renderTokens(f,i,n,c,a)}};j.prototype.unescapedValue=function t(e,r){var i=r.lookup(e[1]);if(i!=null)return i};j.prototype.escapedValue=function t(e,r,i){var n=this.getConfigEscape(i)||q.escape;var a=r.lookup(e[1]);if(a!=null)return typeof a==="number"&&n===q.escape?String(a):n(a)};j.prototype.rawValue=function t(e){return e[1]};j.prototype.getConfigTags=function t(r){if(e(r)){return r}else if(r&&typeof r==="object"){return r.tags}else{return undefined}};j.prototype.getConfigEscape=function t(r){if(r&&typeof r==="object"&&!e(r)){return r.escape}else{return undefined}};var q={name:"mustache.js",version:"4.2.0",tags:["{{","}}"],clearCache:undefined,escape:undefined,parse:undefined,render:undefined,Scanner:undefined,Context:undefined,Writer:undefined,set templateCache(t){E.templateCache=t},get templateCache(){return E.templateCache}};var E=new j;q.clearCache=function t(){return E.clearCache()};q.parse=function t(e,r){return E.parse(e,r)};q.render=function t(e,r,n,a){if(typeof e!=="string"){throw new TypeError('Invalid template! Template should be a "string" '+'but "'+i(e)+'" was given as the first '+"argument for mustache#render(template, view, partials)")}return E.render(e,r,n,a)};q.escape=f;q.Scanner=k;q.Context=x;q.Writer=j;return q}))})(s);var o=function(){function t(t){var e=this;this.rollbackLanguage="en";this.set=function(t){e.config=t};this.lang=function(t){e.element=t;e.closestElement=e.element.closest("[lang]");if(e.closestElement){if(e.closestElement.lang){e.language=e.closestElement.lang;return e.language}}e.language=e.rollbackLanguage;return e.language};this.update=function(t){var r=t!==null&&t!==void 0?t:e.element.shadowRoot;if(r){r.querySelectorAll("*").forEach((function(t){if(t.tagName.toLowerCase().startsWith("mds-")){if(t&&"updateLang"in t){t.updateLang()}}}))}};this.pluralize=function(t,r){var i=e.config[e.language]?e.config[e.language][t]:e.config[e.rollbackLanguage][t];var n=[];if(Array.isArray(i)){n.push(i[0]);n.push(i[1])}else{n.push(i);n.push(i)}var a=n[0];var d=a;var o=Object.keys(r);if(o.length>0){var u=o[0];if(typeof r[u]==="number"){if(r[u]!==1){d=n[1]}}}return s.exports.render(d,r)};this.get=function(t,r){if(r){return e.pluralize(t,r)}return e.config[e.language]?e.config[e.language][t]:e.config[e.rollbackLanguage][t]};if(t){this.set(t)}}return t}();var u="Απαιτείται";var h="Απενεργοποιημένο";var c="Μόνο για ανάγνωση";var f={required:u,disabled:h,readonly:c};var m="Required";var y="Disabled";var l="Read only";var p={required:m,disabled:y,readonly:l};var b="Requerido";var v="Deshabilitado";var g="Solo lectura";var w={required:b,disabled:v,readonly:g};var k="Obbligatorio";var x="Disattivato";var j="Sola lettura";var q={required:k,disabled:x,readonly:j};var E='@tailwind components; :host{--mds-input-tip-item-background:rgb(var(--tone-neutral-01));--mds-input-tip-item-color:rgb(var(--tone-neutral));--mds-input-tip-item-icon-color:rgb(var(--tone-neutral));height:0.75rem;border-radius:0.375rem;-webkit-transition-duration:300ms;transition-duration:300ms;-webkit-transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);-ms-flex-align:center;align-items:center;background-color:var(--mds-input-tip-item-background);color:var(--mds-input-tip-item-color);display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;min-width:0.75rem;padding:0;pointer-events:none;position:static;text-align:center;-webkit-transform:translate(0, 0);transform:translate(0, 0);-webkit-transition-property:background-color, border-radius, color, padding-left, padding-right, -webkit-transform;transition-property:background-color, border-radius, color, padding-left, padding-right, -webkit-transform;transition-property:background-color, border-radius, color, padding-left, padding-right, transform;transition-property:background-color, border-radius, color, padding-left, padding-right, transform, -webkit-transform;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.content{height:0.75rem;-webkit-transition-duration:200ms;transition-duration:200ms;-webkit-transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);display:grid;grid-template-columns:0fr;opacity:0;overflow:hidden;-webkit-transition-property:grid-template-columns, opacity;transition-property:grid-template-columns, opacity;transition-property:grid-template-columns, opacity, -ms-grid-columns}.text{line-height:0.75rem}.icon{display:-ms-flexbox;display:flex}.icon svg{aspect-ratio:1/1;height:100%;width:100%}.icon{height:0.75rem;width:0.75rem;fill:var(--mds-input-tip-item-icon-color);-webkit-transform:translateY(-1px);transform:translateY(-1px)}:host(:not([expanded])){color:transparent}:host([expanded]){padding-left:0.5rem;padding-right:0.5rem;--mds-input-tip-item-color:rgb(var(--tone-neutral))}:host([expanded]) .content{grid-template-columns:1fr;opacity:1}:host([variant="required"]){--mds-input-tip-item-background:rgb(var(--status-error-05))}:host([variant="required-success"]){--mds-input-tip-item-background:rgb(var(--status-success-05))}:host([variant="readonly"]){--mds-input-tip-item-background:rgb(var(--status-info-05))}:host([variant="disabled"]){--mds-input-tip-item-background:rgb(var(--tone-neutral-05))}:host([variant="text"]){--mds-input-tip-item-background:rgb(var(--tone-neutral-03))}:host([variant="count-empty"]){--mds-input-tip-item-color:rgb(var(--status-info-02));--mds-input-tip-item-background:rgb(var(--status-info-08))}:host([variant="count-incomplete"]){--mds-input-tip-item-color:rgb(var(--status-success-02));--mds-input-tip-item-background:rgb(var(--status-success-08))}:host([variant="count-almost"]){--mds-input-tip-item-color:rgb(var(--status-warning-02));--mds-input-tip-item-background:rgb(var(--status-warning-08))}:host([variant="count-almost-full"]){--mds-input-tip-item-color:rgb(var(--status-error-02));--mds-input-tip-item-background:rgb(var(--status-error-08))}:host([variant="count-full"]){--mds-input-tip-item-color:rgb(var(--status-error-09));--mds-input-tip-item-background:rgb(var(--status-error-05))}:host-context(.pref-animation-reduce),:host-context(.pref-animation-reduce) .content{-webkit-transition-duration:0s;transition-duration:0s}@media (prefers-reduced-motion){:host-context(.pref-animation-system),:host-context(.pref-animation-system) .content{-webkit-transition-duration:0s;transition-duration:0s}}:host-context(.pref-contrast-more):host([variant="count-empty"]){--mds-input-tip-item-color:rgb(var(--status-info-10));--mds-input-tip-item-background:rgb(var(--status-info-05))}:host-context(.pref-contrast-more):host([variant="count-incomplete"]){--mds-input-tip-item-color:rgb(var(--status-success-10));--mds-input-tip-item-background:rgb(var(--status-success-05))}:host-context(.pref-contrast-more):host([variant="count-almost"]){--mds-input-tip-item-color:rgb(var(--status-warning-10));--mds-input-tip-item-background:rgb(var(--status-warning-05))}:host-context(.pref-contrast-more):host([variant="count-almost-full"]){--mds-input-tip-item-color:rgb(var(--status-error-10));--mds-input-tip-item-background:rgb(var(--status-error-05))}@media (prefers-contrast: more){:host-context(.pref-contrast-system):host([variant="count-empty"]){--mds-input-tip-item-color:rgb(var(--status-info-10));--mds-input-tip-item-background:rgb(var(--status-info-05))}:host-context(.pref-contrast-system):host([variant="count-incomplete"]){--mds-input-tip-item-color:rgb(var(--status-success-10));--mds-input-tip-item-background:rgb(var(--status-success-05))}:host-context(.pref-contrast-system):host([variant="count-almost"]){--mds-input-tip-item-color:rgb(var(--status-warning-10));--mds-input-tip-item-background:rgb(var(--status-warning-05))}:host-context(.pref-contrast-system):host([variant="count-almost-full"]){--mds-input-tip-item-color:rgb(var(--status-error-10));--mds-input-tip-item-background:rgb(var(--status-error-05))}}:host(:not(:is([hydrated],.hydrated))){-webkit-animation-duration:0s;animation-duration:0s;border-color:transparent;-webkit-box-shadow:0 0 0 transparent;box-shadow:0 0 0 transparent;opacity:0;outline-color:transparent;-webkit-transition-delay:0s;transition-delay:0s;-webkit-transition-duration:0s;transition-duration:0s;visibility:hidden}mds-accordion:not(:is([hydrated],.hydrated)),mds-accordion-item:not(:is([hydrated],.hydrated)),mds-accordion-timer:not(:is([hydrated],.hydrated)),mds-accordion-timer-item:not(:is([hydrated],.hydrated)),mds-author:not(:is([hydrated],.hydrated)),mds-avatar:not(:is([hydrated],.hydrated)),mds-badge:not(:is([hydrated],.hydrated)),mds-banner:not(:is([hydrated],.hydrated)),mds-benchmark-bar:not(:is([hydrated],.hydrated)),mds-bibliography:not(:is([hydrated],.hydrated)),mds-breadcrumb:not(:is([hydrated],.hydrated)),mds-breadcrumb-item:not(:is([hydrated],.hydrated)),mds-button:not(:is([hydrated],.hydrated)),mds-card:not(:is([hydrated],.hydrated)),mds-card-content:not(:is([hydrated],.hydrated)),mds-card-footer:not(:is([hydrated],.hydrated)),mds-card-header:not(:is([hydrated],.hydrated)),mds-card-media:not(:is([hydrated],.hydrated)),mds-chip:not(:is([hydrated],.hydrated)),mds-details:not(:is([hydrated],.hydrated)),mds-dropdown:not(:is([hydrated],.hydrated)),mds-entity:not(:is([hydrated],.hydrated)),mds-file:not(:is([hydrated],.hydrated)),mds-file-preview:not(:is([hydrated],.hydrated)),mds-filter:not(:is([hydrated],.hydrated)),mds-filter-item:not(:is([hydrated],.hydrated)),mds-header:not(:is([hydrated],.hydrated)),mds-header-bar:not(:is([hydrated],.hydrated)),mds-help:not(:is([hydrated],.hydrated)),mds-horizontal-scroll:not(:is([hydrated],.hydrated)),mds-hr:not(:is([hydrated],.hydrated)),mds-icon:not(:is([hydrated],.hydrated)),mds-img:not(:is([hydrated],.hydrated)),mds-input:not(:is([hydrated],.hydrated)),mds-input-field:not(:is([hydrated],.hydrated)),mds-input-range:not(:is([hydrated],.hydrated)),mds-input-select:not(:is([hydrated],.hydrated)),mds-input-switch:not(:is([hydrated],.hydrated)),mds-input-tip:not(:is([hydrated],.hydrated)),mds-input-tip-item:not(:is([hydrated],.hydrated)),mds-input-upload:not(:is([hydrated],.hydrated)),mds-keyboard:not(:is([hydrated],.hydrated)),mds-keyboard-key:not(:is([hydrated],.hydrated)),mds-kpi:not(:is([hydrated],.hydrated)),mds-kpi-item:not(:is([hydrated],.hydrated)),mds-label:not(:is([hydrated],.hydrated)),mds-list:not(:is([hydrated],.hydrated)),mds-list-item:not(:is([hydrated],.hydrated)),mds-modal:not(:is([hydrated],.hydrated)),mds-note:not(:is([hydrated],.hydrated)),mds-notification:not(:is([hydrated],.hydrated)),mds-paginator:not(:is([hydrated],.hydrated)),mds-paginator-item:not(:is([hydrated],.hydrated)),mds-pref:not(:is([hydrated],.hydrated)),mds-pref-animation:not(:is([hydrated],.hydrated)),mds-pref-consumption:not(:is([hydrated],.hydrated)),mds-pref-contrast:not(:is([hydrated],.hydrated)),mds-pref-language:not(:is([hydrated],.hydrated)),mds-pref-language-item:not(:is([hydrated],.hydrated)),mds-pref-theme:not(:is([hydrated],.hydrated)),mds-price-table:not(:is([hydrated],.hydrated)),mds-price-table-features:not(:is([hydrated],.hydrated)),mds-price-table-features-cell:not(:is([hydrated],.hydrated)),mds-price-table-features-row:not(:is([hydrated],.hydrated)),mds-price-table-header:not(:is([hydrated],.hydrated)),mds-price-table-list:not(:is([hydrated],.hydrated)),mds-price-table-list-item:not(:is([hydrated],.hydrated)),mds-progress:not(:is([hydrated],.hydrated)),mds-push-notification:not(:is([hydrated],.hydrated)),mds-push-notifications:not(:is([hydrated],.hydrated)),mds-quote:not(:is([hydrated],.hydrated)),mds-separator:not(:is([hydrated],.hydrated)),mds-spinner:not(:is([hydrated],.hydrated)),mds-stepper-bar:not(:is([hydrated],.hydrated)),mds-stepper-bar-item:not(:is([hydrated],.hydrated)),mds-tab:not(:is([hydrated],.hydrated)),mds-tab-bar:not(:is([hydrated],.hydrated)),mds-tab-bar-item:not(:is([hydrated],.hydrated)),mds-tab-item:not(:is([hydrated],.hydrated)),mds-table:not(:is([hydrated],.hydrated)),mds-table-body:not(:is([hydrated],.hydrated)),mds-table-cell:not(:is([hydrated],.hydrated)),mds-table-footer:not(:is([hydrated],.hydrated)),mds-table-header:not(:is([hydrated],.hydrated)),mds-table-header-cell:not(:is([hydrated],.hydrated)),mds-table-row:not(:is([hydrated],.hydrated)),mds-text:not(:is([hydrated],.hydrated)),mds-toast:not(:is([hydrated],.hydrated)),mds-tooltip:not(:is([hydrated],.hydrated)),mds-tree:not(:is([hydrated],.hydrated)),mds-tree-item:not(:is([hydrated],.hydrated)),mds-url-view:not(:is([hydrated],.hydrated)),mds-usage:not(:is([hydrated],.hydrated)),mds-video-wall:not(:is([hydrated],.hydrated)),mds-zero:not(:is([hydrated],.hydrated)){-webkit-animation-duration:0s;animation-duration:0s;border-color:transparent;-webkit-box-shadow:0 0 0 transparent;box-shadow:0 0 0 transparent;opacity:0;outline-color:transparent;-webkit-transition-delay:0s;transition-delay:0s;-webkit-transition-duration:0s;transition-duration:0s;visibility:hidden}';var _=E;var S=t("mds_input_tip_item",function(){function t(t){e(this,t);this.t=new o({en:p,el:f,es:w,it:q});this.variant="required"}t.prototype.updateLang=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.language=this.t.lang(this.element);return[2]}))}))};t.prototype.componentWillRender=function(){this.t.lang(this.element)};t.prototype.handleEcpandedChanged=function(t){if(t===false){this.expanded=undefined}};t.prototype.render=function(){return r(i,{key:"f33ad71b08aa4883c7260e20e7f9b8f43dcf0519"},r("div",{key:"5b67c52055c0095cca9227159467b683d5ea0f51",class:"content"},this.variant==="text"&&r("mds-text",{key:"cd394cc4c4af8a6614c5dc822c0bb18eb6e42c91",typography:"option",truncate:"word"},r("span",{key:"b7ddcd89a9b15a5d5f9ec6ba25c1e89d62c88663",class:"text"},r("slot",{key:"91cc7606f0788161127653082871d34877367ec2"}))),this.variant==="readonly"&&r("mds-text",{key:"d32601380ff2619d3bd92c4ca0b39d7bad4b54fb",typography:"option",truncate:"word"},r("span",{key:"9a38d81925d19762ca42301d6c6ed97f6f967031",class:"text"},this.variant&&this.t.get(this.variant.toString()))),this.variant==="disabled"&&r("mds-text",{key:"00033b59e084466020cb3e1a2b68d3be119c5bf0",typography:"option",truncate:"word"},r("span",{key:"3f165a5b0b1203a560aaaef5de029fb3418d7ab6",class:"text"},this.variant&&this.t.get(this.variant.toString()))),this.variant==="required"&&r("mds-text",{key:"d50e0f3f3ad8648fb2a5d03c4b61a3930d3f20a4",typography:"option",truncate:"word"},r("span",{key:"f99be6cb7039922aaed356489a85b2b33dbe8794",class:"text"},this.variant&&this.t.get(this.variant.toString()))),this.variant==="required-success"&&r("span",{key:"84481ab95da9f97954878fa341537790404f34b6",class:"icon",innerHTML:a}),(this.variant==="count-almost"||this.variant==="count-almost-full"||this.variant==="count-empty"||this.variant==="count-full"||this.variant==="count-incomplete")&&r("mds-text",{key:"43adceea6ad36da642f5a02cbf9c54c44e5b9f40",typography:"option",truncate:"word"},r("span",{key:"0bb53315c34315233c64846e0c3f4ad120d10359",class:"text"},r("slot",{key:"427514dbe5a58065d5eba66a1be77530d99c8957"})))))};Object.defineProperty(t.prototype,"element",{get:function(){return n(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{expanded:["handleEcpandedChanged"]}},enumerable:false,configurable:true});return t}());S.style=_}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(n,t,e,r){function i(n){return n instanceof e?n:new e((function(t){t(n)}))}return new(e||(e=Promise))((function(e,u){function a(n){try{o(r.next(n))}catch(n){u(n)}}function c(n){try{o(r["throw"](n))}catch(n){u(n)}}function o(n){n.done?e(n.value):i(n.value).then(a,c)}o((r=r.apply(n,t||[])).next())}))};var __generator=this&&this.__generator||function(n,t){var e={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]},r,i,u,a;return a={next:c(0),throw:c(1),return:c(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function c(n){return function(t){return o([n,t])}}function o(c){if(r)throw new TypeError("Generator is already executing.");while(a&&(a=0,c[0]&&(e=0)),e)try{if(r=1,i&&(u=c[0]&2?i["return"]:c[0]?i["throw"]||((u=i["return"])&&u.call(i),0):i.next)&&!(u=u.call(i,c[1])).done)return u;if(i=0,u)c=[c[0]&2,u.value];switch(c[0]){case 0:case 1:u=c;break;case 4:e.label++;return{value:c[1],done:false};case 5:e.label++;i=c[1];c=[0];continue;case 7:c=e.ops.pop();e.trys.pop();continue;default:if(!(u=e.trys,u=u.length>0&&u[u.length-1])&&(c[0]===6||c[0]===2)){e=0;continue}if(c[0]===3&&(!u||c[1]>u[0]&&c[1]<u[3])){e.label=c[1];break}if(c[0]===6&&e.label<u[1]){e.label=u[1];u=c;break}if(u&&e.label<u[2]){e.label=u[2];e.ops.push(c);break}if(u[2])e.ops.pop();e.trys.pop();continue}c=t.call(n,e)}catch(n){c=[6,n];i=0}finally{r=u=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:true}}};System.register(["./p-f3fcd277.system.js","./p-56ba5cbf.system.js"],(function(n,t){"use strict";var e,r,i;return{setters:[function(t){e=t.p;r=t.b;n("setNonce",t.s)},function(n){i=n.g}],execute:function(){var n=this;var u=function(){var n=t.meta.url;var r={};if(n!==""){r.resourcesUrl=new URL(".",n).href}return e(r)};u().then((function(t){return __awaiter(n,void 0,void 0,(function(){return __generator(this,(function(n){switch(n.label){case 0:return[4,i()];case 1:n.sent();return[2,r([["p-
|
|
1
|
+
var __awaiter=this&&this.__awaiter||function(n,t,e,r){function i(n){return n instanceof e?n:new e((function(t){t(n)}))}return new(e||(e=Promise))((function(e,u){function a(n){try{o(r.next(n))}catch(n){u(n)}}function c(n){try{o(r["throw"](n))}catch(n){u(n)}}function o(n){n.done?e(n.value):i(n.value).then(a,c)}o((r=r.apply(n,t||[])).next())}))};var __generator=this&&this.__generator||function(n,t){var e={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]},r,i,u,a;return a={next:c(0),throw:c(1),return:c(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function c(n){return function(t){return o([n,t])}}function o(c){if(r)throw new TypeError("Generator is already executing.");while(a&&(a=0,c[0]&&(e=0)),e)try{if(r=1,i&&(u=c[0]&2?i["return"]:c[0]?i["throw"]||((u=i["return"])&&u.call(i),0):i.next)&&!(u=u.call(i,c[1])).done)return u;if(i=0,u)c=[c[0]&2,u.value];switch(c[0]){case 0:case 1:u=c;break;case 4:e.label++;return{value:c[1],done:false};case 5:e.label++;i=c[1];c=[0];continue;case 7:c=e.ops.pop();e.trys.pop();continue;default:if(!(u=e.trys,u=u.length>0&&u[u.length-1])&&(c[0]===6||c[0]===2)){e=0;continue}if(c[0]===3&&(!u||c[1]>u[0]&&c[1]<u[3])){e.label=c[1];break}if(c[0]===6&&e.label<u[1]){e.label=u[1];u=c;break}if(u&&e.label<u[2]){e.label=u[2];e.ops.push(c);break}if(u[2])e.ops.pop();e.trys.pop();continue}c=t.call(n,e)}catch(n){c=[6,n];i=0}finally{r=u=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:true}}};System.register(["./p-f3fcd277.system.js","./p-56ba5cbf.system.js"],(function(n,t){"use strict";var e,r,i;return{setters:[function(t){e=t.p;r=t.b;n("setNonce",t.s)},function(n){i=n.g}],execute:function(){var n=this;var u=function(){var n=t.meta.url;var r={};if(n!==""){r.resourcesUrl=new URL(".",n).href}return e(r)};u().then((function(t){return __awaiter(n,void 0,void 0,(function(){return __generator(this,(function(n){switch(n.label){case 0:return[4,i()];case 1:n.sent();return[2,r([["p-28df55ce.system",[[1,"mds-input-tip-item",{variant:[513],expanded:[1540],language:[32],updateLang:[64]},null,{expanded:["handleEcpandedChanged"]}]]]],t)]}}))}))}))}}}));
|
package/dist/stats.json
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
{
|
|
2
|
-
"timestamp": "
|
|
2
|
+
"timestamp": "2026-02-19T19:21:10",
|
|
3
3
|
"compiler": {
|
|
4
4
|
"name": "node",
|
|
5
|
-
"version": "22.
|
|
5
|
+
"version": "22.15.0"
|
|
6
6
|
},
|
|
7
7
|
"app": {
|
|
8
8
|
"namespace": "MdsInputTipItem",
|
|
9
9
|
"fsNamespace": "mds-input-tip-item",
|
|
10
10
|
"components": 1,
|
|
11
11
|
"entries": 1,
|
|
12
|
-
"bundles":
|
|
12
|
+
"bundles": 105,
|
|
13
13
|
"outputs": [
|
|
14
14
|
{
|
|
15
15
|
"name": "dist-collection",
|
|
16
|
-
"files":
|
|
16
|
+
"files": 57,
|
|
17
17
|
"generatedFiles": [
|
|
18
18
|
"./dist/collection/common/aria.js",
|
|
19
19
|
"./dist/collection/common/browser.js",
|
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
"./dist/collection/common/icon.js",
|
|
25
25
|
"./dist/collection/common/keyboard-manager.js",
|
|
26
26
|
"./dist/collection/common/locale.js",
|
|
27
|
+
"./dist/collection/common/number.js",
|
|
27
28
|
"./dist/collection/common/slot.js",
|
|
28
29
|
"./dist/collection/common/string.js",
|
|
29
30
|
"./dist/collection/common/unit.js",
|
|
@@ -111,8 +112,8 @@
|
|
|
111
112
|
"./dist/mds-input-tip-item/mds-input-tip-item.esm.js",
|
|
112
113
|
"./dist/mds-input-tip-item/mds-input-tip-item.js",
|
|
113
114
|
"./dist/mds-input-tip-item/p-152179b9.js",
|
|
115
|
+
"./dist/mds-input-tip-item/p-28df55ce.system.entry.js",
|
|
114
116
|
"./dist/mds-input-tip-item/p-50ea2036.system.js",
|
|
115
|
-
"./dist/mds-input-tip-item/p-514cf0ee.system.entry.js",
|
|
116
117
|
"./dist/mds-input-tip-item/p-56ba5cbf.system.js",
|
|
117
118
|
"./dist/mds-input-tip-item/p-a5c5e095.system.js",
|
|
118
119
|
"./dist/mds-input-tip-item/p-ad0ff97f.entry.js",
|
|
@@ -122,8 +123,8 @@
|
|
|
122
123
|
"./www/build/mds-input-tip-item.esm.js",
|
|
123
124
|
"./www/build/mds-input-tip-item.js",
|
|
124
125
|
"./www/build/p-152179b9.js",
|
|
126
|
+
"./www/build/p-28df55ce.system.entry.js",
|
|
125
127
|
"./www/build/p-50ea2036.system.js",
|
|
126
|
-
"./www/build/p-514cf0ee.system.entry.js",
|
|
127
128
|
"./www/build/p-56ba5cbf.system.js",
|
|
128
129
|
"./www/build/p-a5c5e095.system.js",
|
|
129
130
|
"./www/build/p-ad0ff97f.entry.js",
|
|
@@ -166,7 +167,7 @@
|
|
|
166
167
|
"imports": [
|
|
167
168
|
"p-152179b9.js"
|
|
168
169
|
],
|
|
169
|
-
"originalByteSize":
|
|
170
|
+
"originalByteSize": 42056
|
|
170
171
|
}
|
|
171
172
|
],
|
|
172
173
|
"esm": [
|
|
@@ -180,7 +181,7 @@
|
|
|
180
181
|
"imports": [
|
|
181
182
|
"index-12f9b038.js"
|
|
182
183
|
],
|
|
183
|
-
"originalByteSize":
|
|
184
|
+
"originalByteSize": 42060
|
|
184
185
|
}
|
|
185
186
|
],
|
|
186
187
|
"es5": [
|
|
@@ -194,7 +195,7 @@
|
|
|
194
195
|
"imports": [
|
|
195
196
|
"index-12f9b038.js"
|
|
196
197
|
],
|
|
197
|
-
"originalByteSize":
|
|
198
|
+
"originalByteSize": 42060
|
|
198
199
|
}
|
|
199
200
|
],
|
|
200
201
|
"system": [
|
|
@@ -203,12 +204,12 @@
|
|
|
203
204
|
"components": [
|
|
204
205
|
"mds-input-tip-item"
|
|
205
206
|
],
|
|
206
|
-
"bundleId": "p-
|
|
207
|
-
"fileName": "p-
|
|
207
|
+
"bundleId": "p-28df55ce.system",
|
|
208
|
+
"fileName": "p-28df55ce.system.entry.js",
|
|
208
209
|
"imports": [
|
|
209
210
|
"p-f3fcd277.system.js"
|
|
210
211
|
],
|
|
211
|
-
"originalByteSize":
|
|
212
|
+
"originalByteSize": 44680
|
|
212
213
|
}
|
|
213
214
|
],
|
|
214
215
|
"commonjs": [
|
|
@@ -222,7 +223,7 @@
|
|
|
222
223
|
"imports": [
|
|
223
224
|
"index-733e68a3.js"
|
|
224
225
|
],
|
|
225
|
-
"originalByteSize":
|
|
226
|
+
"originalByteSize": 42197
|
|
226
227
|
}
|
|
227
228
|
]
|
|
228
229
|
},
|
|
@@ -564,6 +565,7 @@
|
|
|
564
565
|
"./src/common/icon.ts": [],
|
|
565
566
|
"./src/common/keyboard-manager.ts": [],
|
|
566
567
|
"./src/common/locale.ts": [],
|
|
568
|
+
"./src/common/number.ts": [],
|
|
567
569
|
"./src/common/slot.ts": [],
|
|
568
570
|
"./src/common/string.ts": [],
|
|
569
571
|
"./src/common/unit.ts": [],
|
|
@@ -600,8 +602,7 @@
|
|
|
600
602
|
"./src/dictionary/file-extensions.ts": [],
|
|
601
603
|
"./src/dictionary/floating-ui.ts": [],
|
|
602
604
|
"./src/dictionary/icon.ts": [
|
|
603
|
-
"./src/fixtures/icons.json"
|
|
604
|
-
"./src/fixtures/iconsauce.json"
|
|
605
|
+
"./src/fixtures/icons.json"
|
|
605
606
|
],
|
|
606
607
|
"./src/dictionary/input.ts": [],
|
|
607
608
|
"./src/dictionary/keyboard.ts": [],
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
declare const hasSlottedElements: (el: HTMLElement, name?: string) => boolean;
|
|
2
2
|
declare const hasSlottedNodes: (el: HTMLElement, name?: string) => boolean;
|
|
3
3
|
declare const hasSlotted: (el: HTMLElement, name?: string) => boolean;
|
|
4
|
-
|
|
4
|
+
declare const hasSlottedContent: (el: HTMLElement, name?: string) => boolean;
|
|
5
|
+
export { hasSlottedElements, hasSlottedNodes, hasSlottedContent, hasSlotted, };
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
declare const cssDurationToMilliseconds: (duration: string, defaultValue?: number) => number;
|
|
2
|
+
declare const cssDurationToSeconds: (duration: string, defaultValue?: number) => number;
|
|
2
3
|
declare const cssSizeToNumber: (size: string, defaultValue?: number) => number;
|
|
3
|
-
|
|
4
|
+
declare const cssRotationToNumber: (size: string, defaultValue?: number) => number;
|
|
5
|
+
export { cssDurationToMilliseconds, cssDurationToSeconds, cssRotationToNumber, cssSizeToNumber, };
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
declare const buttonVariantDictionary: string[];
|
|
2
|
+
declare const buttonDropdownVariantDictionary: string[];
|
|
2
3
|
declare const buttonToneVariantDictionary: string[];
|
|
4
|
+
declare const buttonToneMinimalVariantDictionary: string[];
|
|
3
5
|
declare const buttonTargetDictionary: string[];
|
|
4
6
|
declare const buttonSizeDictionary: string[];
|
|
7
|
+
declare const tabSizeDictionary: string[];
|
|
5
8
|
declare const buttonIconPositionDictionary: string[];
|
|
6
9
|
declare const buttonTypeDictionary: string[];
|
|
7
|
-
export { buttonIconPositionDictionary, buttonSizeDictionary, buttonTargetDictionary, buttonToneVariantDictionary, buttonTypeDictionary, buttonVariantDictionary, };
|
|
10
|
+
export { buttonDropdownVariantDictionary, buttonIconPositionDictionary, buttonSizeDictionary, buttonTargetDictionary, buttonToneMinimalVariantDictionary, buttonToneVariantDictionary, buttonTypeDictionary, buttonVariantDictionary, tabSizeDictionary, };
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export type ButtonType = 'a' | 'button' | 'reset' | 'submit';
|
|
2
2
|
export type ButtonTargetType = 'self' | 'blank';
|
|
3
3
|
export type ButtonSizeType = 'sm' | 'md' | 'lg' | 'xl';
|
|
4
|
+
export type TabSizeType = 'sm' | 'md';
|
|
4
5
|
export type ButtonIconPositionType = 'left' | 'right';
|
|
5
6
|
export type ButtonVariantType = 'ai' | 'apple' | 'dark' | 'error' | 'google' | 'info' | 'light' | 'primary' | 'secondary' | 'success' | 'warning';
|
|
7
|
+
export type ButtonDropdownVariantType = 'ai' | 'dark' | 'error' | 'info' | 'light' | 'primary' | 'secondary' | 'success' | 'warning';
|