@trendyol/baklava 2.0.0-beta.10 → 2.0.0-beta.13
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/README.md +1 -1
- package/dist/baklava.js +1 -1
- package/dist/chunk-DHVCDAR2.js +7 -0
- package/dist/chunk-DHVCDAR2.js.map +7 -0
- package/dist/{chunk-CGZOADFQ.js → chunk-LJVEBQTA.js} +2 -2
- package/dist/{chunk-CGZOADFQ.js.map → chunk-LJVEBQTA.js.map} +3 -3
- package/dist/{chunk-X4LRPXVB.js → chunk-NA2LJ7AF.js} +25 -27
- package/dist/chunk-NA2LJ7AF.js.map +7 -0
- package/dist/chunk-OQVMZFLV.js +185 -0
- package/dist/chunk-OQVMZFLV.js.map +7 -0
- package/dist/chunk-ZXOB5CCG.js +31 -0
- package/dist/chunk-ZXOB5CCG.js.map +7 -0
- package/dist/components/badge/bl-badge.js +1 -1
- package/dist/components/button/bl-button.js +1 -1
- package/dist/components/icon/bl-icon.js +1 -1
- package/dist/components/icon/icon-list.js.map +2 -2
- package/dist/components/input/bl-input.js +2 -0
- package/dist/components/input/bl-input.js.map +7 -0
- package/dist/custom-elements.json +480 -0
- package/dist/themes/default.css +1 -1
- package/dist/themes/default.css.map +2 -2
- package/package.json +27 -39
- package/dist/chunk-LZZFV4ZE.js +0 -31
- package/dist/chunk-LZZFV4ZE.js.map +0 -7
- package/dist/chunk-X4LRPXVB.js.map +0 -7
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trendyol/baklava",
|
|
3
|
-
"version": "2.0.0-beta.
|
|
3
|
+
"version": "2.0.0-beta.13",
|
|
4
4
|
"description": "Trendyol Baklava Design System",
|
|
5
5
|
"main": "dist/baklava.js",
|
|
6
6
|
"module": "dist/baklava.js",
|
|
@@ -16,24 +16,16 @@
|
|
|
16
16
|
},
|
|
17
17
|
"license": "MIT",
|
|
18
18
|
"scripts": {
|
|
19
|
-
"prestart": "npm run
|
|
19
|
+
"prestart": "npm run build",
|
|
20
20
|
"prepare": "husky install",
|
|
21
|
-
"start": "npm run storybook:dev
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"build:dev": "node scripts/build.js",
|
|
21
|
+
"start": "npm run storybook:dev",
|
|
22
|
+
"analyze": "cem analyze",
|
|
23
|
+
"commit": "commit",
|
|
24
|
+
"build": "node scripts/build.js && npm run analyze",
|
|
25
|
+
"build-storybook": "NODE_ENV=production build-storybook -o storybook-static",
|
|
26
|
+
"deploy-storybook": "storybook-to-ghpages --ci --source-branch=next --host-token-env-variable=GITHUB_TOKEN",
|
|
28
27
|
"serve": "node scripts/build.js --serve",
|
|
29
|
-
"storybook:axe:prod": "npm run storybook:prod && npm run axe-storybook --build-dir=storybook-static/",
|
|
30
|
-
"storybook:axe:dev": "npm-run-all -s storybook:axe:dev:chromium storybook:axe:dev:firefox",
|
|
31
|
-
"storybook:axe:dev:chromium": "npm run axe-storybook --storybook-address=\"http://localhost:1994\" --browser chromium",
|
|
32
|
-
"storybook:axe:dev:firefox": "npm run axe-storybook --storybook-address=\"http://localhost:1994\" --browser firefox",
|
|
33
|
-
"storybook:axe:dev:webkit": "npm run axe-storybook --storybook-address=\"http://localhost:1994\" --browser webkit",
|
|
34
28
|
"storybook:dev": "start-storybook -p 1994",
|
|
35
|
-
"storybook.prod": "npm run storybook:prod",
|
|
36
|
-
"storybook:prod": "npm run prep && npm run storybook:wait && NODE_ENV=production build-storybook -o storybook-static",
|
|
37
29
|
"lint": "npm-run-all -s lint:*",
|
|
38
30
|
"lint:eslint": "eslint .",
|
|
39
31
|
"lint:tsc": "tsc --noEmit",
|
|
@@ -45,20 +37,16 @@
|
|
|
45
37
|
"ci": "rm -rf node_modules && npm install --frozen-lockfile",
|
|
46
38
|
"clean": "npm-run-all -s clean:*",
|
|
47
39
|
"clean:dist": "rimraf dist",
|
|
48
|
-
"clean:generated": "rimraf src/custom-elements.json && rimraf src/component-list.json",
|
|
49
40
|
"clean:modules": "rimraf node_modules",
|
|
50
41
|
"reset": "npm run clean && npm install",
|
|
51
42
|
"reboot": "npm run clean && npm install && npm start",
|
|
52
|
-
"pretest": "npm run build
|
|
43
|
+
"pretest": "npm run build",
|
|
53
44
|
"test": "web-test-runner --coverage",
|
|
45
|
+
"test:dev": "web-test-runner --coverage --dev",
|
|
54
46
|
"test:component": "npm run test -- --group",
|
|
55
47
|
"test:watch": "web-test-runner --coverage --watch",
|
|
56
48
|
"test:debug": "web-test-runner --coverage --watch --debug",
|
|
57
|
-
"test:headless": "web-test-runner --coverage --watch --debug --headless"
|
|
58
|
-
"storybook": "start-storybook -p 6006",
|
|
59
|
-
"build-storybook": "build-storybook",
|
|
60
|
-
"chromatic": "npx chromatic",
|
|
61
|
-
"commit": "commit"
|
|
49
|
+
"test:headless": "web-test-runner --coverage --watch --debug --headless"
|
|
62
50
|
},
|
|
63
51
|
"keywords": [
|
|
64
52
|
"web-components",
|
|
@@ -77,25 +65,25 @@
|
|
|
77
65
|
"@commitlint/cli": "^16.2.4",
|
|
78
66
|
"@commitlint/config-conventional": "^16.2.4",
|
|
79
67
|
"@commitlint/prompt-cli": "^16.2.4",
|
|
80
|
-
"@
|
|
81
|
-
"@
|
|
82
|
-
"@storybook/addon-
|
|
83
|
-
"@storybook/addon-
|
|
84
|
-
"@storybook/addon-
|
|
85
|
-
"@storybook/addon-
|
|
86
|
-
"@storybook/
|
|
68
|
+
"@custom-elements-manifest/analyzer": "^0.6.3",
|
|
69
|
+
"@open-wc/testing": "^3.1.6",
|
|
70
|
+
"@storybook/addon-a11y": "6.5.9",
|
|
71
|
+
"@storybook/addon-actions": "6.5.9",
|
|
72
|
+
"@storybook/addon-essentials": "6.5.9",
|
|
73
|
+
"@storybook/addon-links": "6.5.9",
|
|
74
|
+
"@storybook/addon-storysource": "6.5.9",
|
|
75
|
+
"@storybook/storybook-deployer": "^2.8.11",
|
|
76
|
+
"@storybook/web-components": "6.5.9",
|
|
87
77
|
"@typescript-eslint/eslint-plugin": "^5.18.0",
|
|
88
78
|
"@typescript-eslint/parser": "^5.18.0",
|
|
89
|
-
"@web/dev-server-esbuild": "
|
|
90
|
-
"@web/dev-server-import-maps": "^0.0.6",
|
|
79
|
+
"@web/dev-server-esbuild": "0.2.16",
|
|
91
80
|
"@web/dev-server-rollup": "^0.3.17",
|
|
92
81
|
"@web/test-runner": "^0.13.15",
|
|
93
82
|
"@web/test-runner-playwright": "^0.8.6",
|
|
94
83
|
"@web/test-runner-puppeteer": "^0.10.5",
|
|
95
84
|
"@webcomponents/webcomponentsjs": "^2.5.0",
|
|
96
|
-
"chromatic": "^6.5.4",
|
|
97
85
|
"del": "^6.1.0",
|
|
98
|
-
"esbuild": "^0.14.
|
|
86
|
+
"esbuild": "^0.14.50",
|
|
99
87
|
"esbuild-plugin-lit-css": "^2.0.0",
|
|
100
88
|
"eslint": "^8.12.0",
|
|
101
89
|
"eslint-config-prettier": "^8.5.0",
|
|
@@ -111,14 +99,13 @@
|
|
|
111
99
|
"prettier": "^2.0.4",
|
|
112
100
|
"rimraf": "^3.0.2",
|
|
113
101
|
"rollup-plugin-lit-css": "^4.0.0",
|
|
114
|
-
"storybook": "
|
|
102
|
+
"storybook": "6.5.9",
|
|
115
103
|
"stylelint": "^14.6.1",
|
|
116
104
|
"stylelint-config-prettier": "^9.0.3",
|
|
117
105
|
"stylelint-config-standard": "^25.0.0",
|
|
118
106
|
"ts-lit-plugin": "^1.2.1",
|
|
119
|
-
"typescript": "
|
|
120
|
-
"wait-on": "^5.3.0"
|
|
121
|
-
"web-component-analyzer": "^1.0.3"
|
|
107
|
+
"typescript": "4.6.3",
|
|
108
|
+
"wait-on": "^5.3.0"
|
|
122
109
|
},
|
|
123
110
|
"lint-staged": {
|
|
124
111
|
"**/*.{js,,ts,}": [
|
|
@@ -129,5 +116,6 @@
|
|
|
129
116
|
"**/*.{css,}": [
|
|
130
117
|
"npx stylelint --fix src/components/**/*.css"
|
|
131
118
|
]
|
|
132
|
-
}
|
|
119
|
+
},
|
|
120
|
+
"customElements": "dist/custom-elements.json"
|
|
133
121
|
}
|
package/dist/chunk-LZZFV4ZE.js
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import{a as L}from"./chunk-NZ3RGSR6.js";var D=window.ShadowRoot&&(window.ShadyCSS===void 0||window.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,B=Symbol(),ot=new Map,T=class{constructor(t,e){if(this._$cssResult$=!0,e!==B)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t}get styleSheet(){let t=ot.get(this.cssText);return D&&t===void 0&&(ot.set(this.cssText,t=new CSSStyleSheet),t.replaceSync(this.cssText)),t}toString(){return this.cssText}},nt=r=>new T(typeof r=="string"?r:r+"",B),V=(r,...t)=>{let e=r.length===1?r[0]:t.reduce((i,s,o)=>i+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+r[o+1],r[0]);return new T(e,B)},K=(r,t)=>{D?r.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet):t.forEach(e=>{let i=document.createElement("style"),s=window.litNonce;s!==void 0&&i.setAttribute("nonce",s),i.textContent=e.cssText,r.appendChild(i)})},q=D?r=>r:r=>r instanceof CSSStyleSheet?(t=>{let e="";for(let i of t.cssRules)e+=i.cssText;return nt(e)})(r):r;var W,lt=window.trustedTypes,Nt=lt?lt.emptyScript:"",at=window.reactiveElementPolyfillSupport,Z={toAttribute(r,t){switch(t){case Boolean:r=r?Nt:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,t){let e=r;switch(t){case Boolean:e=r!==null;break;case Number:e=r===null?null:Number(r);break;case Object:case Array:try{e=JSON.parse(r)}catch{e=null}}return e}},ht=(r,t)=>t!==r&&(t==t||r==r),G={attribute:!0,type:String,converter:Z,reflect:!1,hasChanged:ht},m=class extends HTMLElement{constructor(){super(),this._$Et=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Ei=null,this.o()}static addInitializer(t){var e;(e=this.l)!==null&&e!==void 0||(this.l=[]),this.l.push(t)}static get observedAttributes(){this.finalize();let t=[];return this.elementProperties.forEach((e,i)=>{let s=this._$Eh(i,e);s!==void 0&&(this._$Eu.set(s,i),t.push(s))}),t}static createProperty(t,e=G){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){let i=typeof t=="symbol"?Symbol():"__"+t,s=this.getPropertyDescriptor(t,i,e);s!==void 0&&Object.defineProperty(this.prototype,t,s)}}static getPropertyDescriptor(t,e,i){return{get(){return this[e]},set(s){let o=this[t];this[e]=s,this.requestUpdate(t,o,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||G}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;let t=Object.getPrototypeOf(this);if(t.finalize(),this.elementProperties=new Map(t.elementProperties),this._$Eu=new Map,this.hasOwnProperty("properties")){let e=this.properties,i=[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)];for(let s of i)this.createProperty(s,e[s])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){let e=[];if(Array.isArray(t)){let i=new Set(t.flat(1/0).reverse());for(let s of i)e.unshift(q(s))}else t!==void 0&&e.push(q(t));return e}static _$Eh(t,e){let i=e.attribute;return i===!1?void 0:typeof i=="string"?i:typeof t=="string"?t.toLowerCase():void 0}o(){var t;this._$Ep=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$Em(),this.requestUpdate(),(t=this.constructor.l)===null||t===void 0||t.forEach(e=>e(this))}addController(t){var e,i;((e=this._$Eg)!==null&&e!==void 0?e:this._$Eg=[]).push(t),this.renderRoot!==void 0&&this.isConnected&&((i=t.hostConnected)===null||i===void 0||i.call(t))}removeController(t){var e;(e=this._$Eg)===null||e===void 0||e.splice(this._$Eg.indexOf(t)>>>0,1)}_$Em(){this.constructor.elementProperties.forEach((t,e)=>{this.hasOwnProperty(e)&&(this._$Et.set(e,this[e]),delete this[e])})}createRenderRoot(){var t;let e=(t=this.shadowRoot)!==null&&t!==void 0?t:this.attachShadow(this.constructor.shadowRootOptions);return K(e,this.constructor.elementStyles),e}connectedCallback(){var t;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$Eg)===null||t===void 0||t.forEach(e=>{var i;return(i=e.hostConnected)===null||i===void 0?void 0:i.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$Eg)===null||t===void 0||t.forEach(e=>{var i;return(i=e.hostDisconnected)===null||i===void 0?void 0:i.call(e)})}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$ES(t,e,i=G){var s,o;let n=this.constructor._$Eh(t,i);if(n!==void 0&&i.reflect===!0){let d=((o=(s=i.converter)===null||s===void 0?void 0:s.toAttribute)!==null&&o!==void 0?o:Z.toAttribute)(e,i.type);this._$Ei=t,d==null?this.removeAttribute(n):this.setAttribute(n,d),this._$Ei=null}}_$AK(t,e){var i,s,o;let n=this.constructor,d=n._$Eu.get(t);if(d!==void 0&&this._$Ei!==d){let l=n.getPropertyOptions(d),a=l.converter,p=(o=(s=(i=a)===null||i===void 0?void 0:i.fromAttribute)!==null&&s!==void 0?s:typeof a=="function"?a:null)!==null&&o!==void 0?o:Z.fromAttribute;this._$Ei=d,this[d]=p(e,l.type),this._$Ei=null}}requestUpdate(t,e,i){let s=!0;t!==void 0&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||ht)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),i.reflect===!0&&this._$Ei!==t&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(t,i))):s=!1),!this.isUpdatePending&&s&&(this._$Ep=this._$E_())}async _$E_(){this.isUpdatePending=!0;try{await this._$Ep}catch(e){Promise.reject(e)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Et&&(this._$Et.forEach((s,o)=>this[o]=s),this._$Et=void 0);let e=!1,i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),(t=this._$Eg)===null||t===void 0||t.forEach(s=>{var o;return(o=s.hostUpdate)===null||o===void 0?void 0:o.call(s)}),this.update(i)):this._$EU()}catch(s){throw e=!1,this._$EU(),s}e&&this._$AE(i)}willUpdate(t){}_$AE(t){var e;(e=this._$Eg)===null||e===void 0||e.forEach(i=>{var s;return(s=i.hostUpdated)===null||s===void 0?void 0:s.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Ep}shouldUpdate(t){return!0}update(t){this._$EC!==void 0&&(this._$EC.forEach((e,i)=>this._$ES(i,this[i],e)),this._$EC=void 0),this._$EU()}updated(t){}firstUpdated(t){}};m.finalized=!0,m.elementProperties=new Map,m.elementStyles=[],m.shadowRootOptions={mode:"open"},at?.({ReactiveElement:m}),((W=globalThis.reactiveElementVersions)!==null&&W!==void 0?W:globalThis.reactiveElementVersions=[]).push("1.3.0");var J,w=globalThis.trustedTypes,dt=w?w.createPolicy("lit-html",{createHTML:r=>r}):void 0,$=`lit$${(Math.random()+"").slice(9)}$`,$t="?"+$,Ht=`<${$t}>`,x=document,R=(r="")=>x.createComment(r),N=r=>r===null||typeof r!="object"&&typeof r!="function",yt=Array.isArray,Mt=r=>{var t;return yt(r)||typeof((t=r)===null||t===void 0?void 0:t[Symbol.iterator])=="function"},U=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ct=/-->/g,ut=/>/g,_=/>|[ \n\r](?:([^\s"'>=/]+)([ \n\r]*=[ \n\r]*(?:[^ \n\r"'`<>=]|("|')|))|$)/g,pt=/'/g,vt=/"/g,_t=/^(?:script|style|textarea|title)$/i,gt=r=>(t,...e)=>({_$litType$:r,strings:t,values:e}),At=gt(1),Vt=gt(2),f=Symbol.for("lit-noChange"),c=Symbol.for("lit-nothing"),mt=new WeakMap,Et=(r,t,e)=>{var i,s;let o=(i=e?.renderBefore)!==null&&i!==void 0?i:t,n=o._$litPart$;if(n===void 0){let d=(s=e?.renderBefore)!==null&&s!==void 0?s:null;o._$litPart$=n=new A(t.insertBefore(R(),d),d,void 0,e??{})}return n._$AI(r),n},b=x.createTreeWalker(x,129,null,!1),kt=(r,t)=>{let e=r.length-1,i=[],s,o=t===2?"<svg>":"",n=U;for(let l=0;l<e;l++){let a=r[l],p,h,u=-1,v=0;for(;v<a.length&&(n.lastIndex=v,h=n.exec(a),h!==null);)v=n.lastIndex,n===U?h[1]==="!--"?n=ct:h[1]!==void 0?n=ut:h[2]!==void 0?(_t.test(h[2])&&(s=RegExp("</"+h[2],"g")),n=_):h[3]!==void 0&&(n=_):n===_?h[0]===">"?(n=s??U,u=-1):h[1]===void 0?u=-2:(u=n.lastIndex-h[2].length,p=h[1],n=h[3]===void 0?_:h[3]==='"'?vt:pt):n===vt||n===pt?n=_:n===ct||n===ut?n=U:(n=_,s=void 0);let k=n===_&&r[l+1].startsWith("/>")?" ":"";o+=n===U?a+Ht:u>=0?(i.push(p),a.slice(0,u)+"$lit$"+a.slice(u)+$+k):a+$+(u===-2?(i.push(void 0),l):k)}let d=o+(r[e]||"<?>")+(t===2?"</svg>":"");if(!Array.isArray(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return[dt!==void 0?dt.createHTML(d):d,i]},g=class{constructor({strings:t,_$litType$:e},i){let s;this.parts=[];let o=0,n=0,d=t.length-1,l=this.parts,[a,p]=kt(t,e);if(this.el=g.createElement(a,i),b.currentNode=this.el.content,e===2){let h=this.el.content,u=h.firstChild;u.remove(),h.append(...u.childNodes)}for(;(s=b.nextNode())!==null&&l.length<d;){if(s.nodeType===1){if(s.hasAttributes()){let h=[];for(let u of s.getAttributeNames())if(u.endsWith("$lit$")||u.startsWith($)){let v=p[n++];if(h.push(u),v!==void 0){let k=s.getAttribute(v.toLowerCase()+"$lit$").split($),O=/([.?@])?(.*)/.exec(v);l.push({type:1,index:o,name:O[2],strings:k,ctor:O[1]==="."?Y:O[1]==="?"?Q:O[1]==="@"?X:P})}else l.push({type:6,index:o})}for(let u of h)s.removeAttribute(u)}if(_t.test(s.tagName)){let h=s.textContent.split($),u=h.length-1;if(u>0){s.textContent=w?w.emptyScript:"";for(let v=0;v<u;v++)s.append(h[v],R()),b.nextNode(),l.push({type:2,index:++o});s.append(h[u],R())}}}else if(s.nodeType===8)if(s.data===$t)l.push({type:2,index:o});else{let h=-1;for(;(h=s.data.indexOf($,h+1))!==-1;)l.push({type:7,index:o}),h+=$.length-1}o++}}static createElement(t,e){let i=x.createElement("template");return i.innerHTML=t,i}};function C(r,t,e=r,i){var s,o,n,d;if(t===f)return t;let l=i!==void 0?(s=e._$Cl)===null||s===void 0?void 0:s[i]:e._$Cu,a=N(t)?void 0:t._$litDirective$;return l?.constructor!==a&&((o=l?._$AO)===null||o===void 0||o.call(l,!1),a===void 0?l=void 0:(l=new a(r),l._$AT(r,e,i)),i!==void 0?((n=(d=e)._$Cl)!==null&&n!==void 0?n:d._$Cl=[])[i]=l:e._$Cu=l),l!==void 0&&(t=C(r,l._$AS(r,t.values),l,i)),t}var F=class{constructor(t,e){this.v=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(t){var e;let{el:{content:i},parts:s}=this._$AD,o=((e=t?.creationScope)!==null&&e!==void 0?e:x).importNode(i,!0);b.currentNode=o;let n=b.nextNode(),d=0,l=0,a=s[0];for(;a!==void 0;){if(d===a.index){let p;a.type===2?p=new A(n,n.nextSibling,this,t):a.type===1?p=new a.ctor(n,a.name,a.strings,this,t):a.type===6&&(p=new tt(n,this,t)),this.v.push(p),a=s[++l]}d!==a?.index&&(n=b.nextNode(),d++)}return o}m(t){let e=0;for(let i of this.v)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}},A=class{constructor(t,e,i,s){var o;this.type=2,this._$AH=c,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=s,this._$Cg=(o=s?.isConnected)===null||o===void 0||o}get _$AU(){var t,e;return(e=(t=this._$AM)===null||t===void 0?void 0:t._$AU)!==null&&e!==void 0?e:this._$Cg}get parentNode(){let t=this._$AA.parentNode,e=this._$AM;return e!==void 0&&t.nodeType===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=C(this,t,e),N(t)?t===c||t==null||t===""?(this._$AH!==c&&this._$AR(),this._$AH=c):t!==this._$AH&&t!==f&&this.$(t):t._$litType$!==void 0?this.T(t):t.nodeType!==void 0?this.k(t):Mt(t)?this.S(t):this.$(t)}A(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}k(t){this._$AH!==t&&(this._$AR(),this._$AH=this.A(t))}$(t){this._$AH!==c&&N(this._$AH)?this._$AA.nextSibling.data=t:this.k(x.createTextNode(t)),this._$AH=t}T(t){var e;let{values:i,_$litType$:s}=t,o=typeof s=="number"?this._$AC(t):(s.el===void 0&&(s.el=g.createElement(s.h,this.options)),s);if(((e=this._$AH)===null||e===void 0?void 0:e._$AD)===o)this._$AH.m(i);else{let n=new F(o,this),d=n.p(this.options);n.m(i),this.k(d),this._$AH=n}}_$AC(t){let e=mt.get(t.strings);return e===void 0&&mt.set(t.strings,e=new g(t)),e}S(t){yt(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,i,s=0;for(let o of t)s===e.length?e.push(i=new A(this.A(R()),this.A(R()),this,this.options)):i=e[s],i._$AI(o),s++;s<e.length&&(this._$AR(i&&i._$AB.nextSibling,s),e.length=s)}_$AR(t=this._$AA.nextSibling,e){var i;for((i=this._$AP)===null||i===void 0||i.call(this,!1,!0,e);t&&t!==this._$AB;){let s=t.nextSibling;t.remove(),t=s}}setConnected(t){var e;this._$AM===void 0&&(this._$Cg=t,(e=this._$AP)===null||e===void 0||e.call(this,t))}},P=class{constructor(t,e,i,s,o){this.type=1,this._$AH=c,this._$AN=void 0,this.element=t,this.name=e,this._$AM=s,this.options=o,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=c}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,s){let o=this.strings,n=!1;if(o===void 0)t=C(this,t,e,0),n=!N(t)||t!==this._$AH&&t!==f,n&&(this._$AH=t);else{let d=t,l,a;for(t=o[0],l=0;l<o.length-1;l++)a=C(this,d[i+l],e,l),a===f&&(a=this._$AH[l]),n||(n=!N(a)||a!==this._$AH[l]),a===c?t=c:t!==c&&(t+=(a??"")+o[l+1]),this._$AH[l]=a}n&&!s&&this.C(t)}C(t){t===c?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},Y=class extends P{constructor(){super(...arguments),this.type=3}C(t){this.element[this.name]=t===c?void 0:t}},Ot=w?w.emptyScript:"",Q=class extends P{constructor(){super(...arguments),this.type=4}C(t){t&&t!==c?this.element.setAttribute(this.name,Ot):this.element.removeAttribute(this.name)}},X=class extends P{constructor(t,e,i,s,o){super(t,e,i,s,o),this.type=5}_$AI(t,e=this){var i;if((t=(i=C(this,t,e,0))!==null&&i!==void 0?i:c)===f)return;let s=this._$AH,o=t===c&&s!==c||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,n=t!==c&&(s===c||o);o&&this.element.removeEventListener(this.name,this,s),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;typeof this._$AH=="function"?this._$AH.call((i=(e=this.options)===null||e===void 0?void 0:e.host)!==null&&i!==void 0?i:this.element,t):this._$AH.handleEvent(t)}},tt=class{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){C(this,t)}};var ft=window.litHtmlPolyfillSupport;ft?.(g,A),((J=globalThis.litHtmlVersions)!==null&&J!==void 0?J:globalThis.litHtmlVersions=[]).push("2.2.1");var et,it;var y=class extends m{constructor(){super(...arguments),this.renderOptions={host:this},this._$Dt=void 0}createRenderRoot(){var t,e;let i=super.createRenderRoot();return(t=(e=this.renderOptions).renderBefore)!==null&&t!==void 0||(e.renderBefore=i.firstChild),i}update(t){let e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Dt=Et(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Dt)===null||t===void 0||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Dt)===null||t===void 0||t.setConnected(!1)}render(){return f}};y.finalized=!0,y._$litElement$=!0,(et=globalThis.litElementHydrateSupport)===null||et===void 0||et.call(globalThis,{LitElement:y});var St=globalThis.litElementPolyfillSupport;St?.({LitElement:y});((it=globalThis.litElementVersions)!==null&&it!==void 0?it:globalThis.litElementVersions=[]).push("3.2.0");var bt=r=>t=>typeof t=="function"?((e,i)=>(window.customElements.define(e,i),i))(r,t):((e,i)=>{let{kind:s,elements:o}=i;return{kind:s,elements:o,finisher(n){window.customElements.define(e,n)}}})(r,t);var Lt=(r,t)=>t.kind==="method"&&t.descriptor&&!("value"in t.descriptor)?{...t,finisher(e){e.createProperty(t.key,r)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:t.key,initializer(){typeof t.initializer=="function"&&(this[t.key]=t.initializer.call(this))},finisher(e){e.createProperty(t.key,r)}};function z(r){return(t,e)=>e!==void 0?((i,s,o)=>{s.constructor.createProperty(o,i)})(r,t,e):Lt(r,t)}function wt(r){return z({...r,state:!0})}var st,me=((st=window.HTMLSlotElement)===null||st===void 0?void 0:st.prototype.assignedElements)!=null?(r,t)=>r.assignedElements(t):(r,t)=>r.assignedNodes(t).filter(e=>e.nodeType===Node.ELEMENT_NODE);var xt={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},j=r=>(...t)=>({_$litDirective$:r,values:t}),I=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};var E=class extends I{constructor(t){if(super(t),this.it=c,t.type!==xt.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===c||t==null)return this.ft=void 0,this.it=t;if(t===f)return t;if(typeof t!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this.ft;this.it=t;let e=[t];return e.raw=e,this.ft={_$litType$:this.constructor.resultType,strings:e,values:[]}}};E.directiveName="unsafeHTML",E.resultType=1;var Me=j(E);var M=class extends E{};M.directiveName="unsafeSVG",M.resultType=2;var Ct=j(M);var Tt="./assets";function Dt(r){Tt=r}function Ut(){return Tt}var Pt=import.meta.url;Pt&&Dt(Pt.split("/").slice(0,-1).concat("assets").join("/"));var qt=V`:host {
|
|
2
|
-
display: inline-block;
|
|
3
|
-
position: relative;
|
|
4
|
-
width: 1em;
|
|
5
|
-
height: 1em;
|
|
6
|
-
min-width: 1em;
|
|
7
|
-
min-height: 1em;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
:host div,
|
|
11
|
-
:host svg {
|
|
12
|
-
width: 100%;
|
|
13
|
-
height: 100%;
|
|
14
|
-
}
|
|
15
|
-
`,Rt=qt;var rt=new Map,S=class extends y{static get styles(){return[Rt]}get name(){return this._iconName}set name(e){e!==this._iconName&&(this._iconName=e,this.load())}async load(){let i=`${Ut()}/${this.name}.svg`;rt.has(i)||rt.set(i,fetch(i));try{let o=await(await rt.get(i))?.clone();o?.ok?(this.svg=await o.text(),this.event("bl-load",`${this.name} icon loaded`),this.requestUpdate()):this.event("bl-error",`${this.name} icon failed to load`)}catch(s){this.event("bl-error",`${this.name} icon failed to load [${s}]`)}}event(e,i){this.dispatchEvent(new CustomEvent(e,{detail:i,bubbles:!0,composed:!0}))}render(){return At`<div aria-hidden="true">${Ct(this.svg)}</div>`}};L([z()],S.prototype,"name",1),L([wt()],S.prototype,"svg",2),S=L([bt("bl-icon")],S);export{V as a,At as b,f as c,c as d,y as e,bt as f,z as g,xt as h,j as i,I as j,Dt as k,Ut as l,S as m};
|
|
16
|
-
/**
|
|
17
|
-
* @license
|
|
18
|
-
* Copyright 2017 Google LLC
|
|
19
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
20
|
-
*/
|
|
21
|
-
/**
|
|
22
|
-
* @license
|
|
23
|
-
* Copyright 2019 Google LLC
|
|
24
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
25
|
-
*/
|
|
26
|
-
/**
|
|
27
|
-
* @license
|
|
28
|
-
* Copyright 2021 Google LLC
|
|
29
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
30
|
-
*/
|
|
31
|
-
//# sourceMappingURL=chunk-LZZFV4ZE.js.map
|