@dataengineeringformachinelearning/viking-ui 4.1.0 → 4.1.1
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/package.json +11 -38
- package/dist/LICENSE +0 -201
- package/dist/README.md +0 -277
- package/dist/deml-components.css +0 -1145
- package/dist/design-tokens.css +0 -903
- package/dist/fesm2022/dataengineeringformachinelearning-viking-ui.mjs +0 -15096
- package/dist/fesm2022/dataengineeringformachinelearning-viking-ui.mjs.map +0 -1
- package/dist/fonts/inter/InterVariable-Italic.woff2 +0 -0
- package/dist/fonts/inter/InterVariable.woff2 +0 -0
- package/dist/icons.js +0 -306
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -1
- package/dist/package.json +0 -112
- package/dist/site-drakkar.js +0 -229
- package/dist/src/tokens/series-presets.ts +0 -15
- package/dist/src/tokens/tailwind.preset.js +0 -209
- package/dist/src/tokens/viking-tokens.json +0 -320
- package/dist/types/dataengineeringformachinelearning-viking-ui.d.ts +0 -2859
- package/dist/viking-components.css +0 -2351
- package/dist/viking-tokens.json +0 -320
- package/dist/viking-ui-elements.js +0 -2425
- package/dist/viking-ui.css +0 -1
- package/dist/viking.manifest.json +0 -271
- package/dist/web-components.js +0 -5129
- package/dist/widget.js +0 -888
|
@@ -1,2425 +0,0 @@
|
|
|
1
|
-
"use strict";var VikingUI=(()=>{var kt=Object.defineProperty;var Qt=Object.getOwnPropertyDescriptor;var te=Object.getOwnPropertyNames;var ee=Object.prototype.hasOwnProperty;var ie=(e,t)=>{for(var i in t)kt(e,i,{get:t[i],enumerable:!0})},re=(e,t,i,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of te(t))!ee.call(e,a)&&a!==i&&kt(e,a,{get:()=>t[a],enumerable:!(r=Qt(t,a))||r.enumerable});return e};var ne=e=>re(kt({},"__esModule",{value:!0}),e);var Ze={};ie(Ze,{VikingBadgeWc:()=>S,VikingButtonWc:()=>R,VikingCalloutWc:()=>E,VikingCardWc:()=>I,VikingFieldWc:()=>A,VikingInputWc:()=>M,VikingModalWc:()=>C,VikingSearchPaletteWc:()=>y,VikingSelectWc:()=>N,VikingSiteFooterWc:()=>V,VikingSiteNavbarWc:()=>$,VikingStatusCardWc:()=>L,VikingStatusPillWc:()=>T,VikingSuiteHeaderWc:()=>q,VikingSuiteSearchPaletteWc:()=>w,VikingThemeToggleWc:()=>U,registerVikingBadgeWc:()=>Q,registerVikingButtonWc:()=>tt,registerVikingCalloutWc:()=>et,registerVikingCardWc:()=>it,registerVikingElements:()=>_t,registerVikingFieldWc:()=>rt,registerVikingInputWc:()=>nt,registerVikingModalWc:()=>at,registerVikingSearchPaletteWc:()=>P,registerVikingSelectWc:()=>pt,registerVikingSiteFooterWc:()=>vt,registerVikingSiteNavbarWc:()=>ht,registerVikingStatusCardWc:()=>ot,registerVikingStatusPillWc:()=>st,registerVikingSuiteHeaderWc:()=>ut,registerVikingSuiteSearchPaletteWc:()=>W,registerVikingThemeToggleWc:()=>G});var u=(e,t)=>{if("adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype){let r=new CSSStyleSheet;r.replaceSync(t),e.adoptedStyleSheets=[r];return}let i=document.createElement("style");i.textContent=t,e.append(i)},k=(e,t)=>e.hasAttribute(t)&&e.getAttribute(t)!=="false",j=(e,t)=>{e&&typeof e.setFormValue=="function"&&e.setFormValue(t)},Y=e=>{let t=e.attachInternals;return typeof t=="function"?t.call(e):null},X=e=>{e&&typeof e.showModal=="function"&&!e.open&&e.showModal()},O=e=>{e&&typeof e.close=="function"&&e.open&&e.close()};var c=typeof HTMLElement>"u"?class{}:HTMLElement,_=e=>`${e}-${Math.random().toString(36).slice(2,9)}`,n=e=>{let t={"&":"&","<":"<",">":">",'"':""","'":"'"};return e.replace(/[&<>"']/g,i=>t[i]??i)},Z=()=>typeof navigator<"u"&&/Mac|iPhone|iPad/i.test(navigator.platform)?"\u2318":"Ctrl",l=(e,t)=>{typeof customElements>"u"||customElements.get(e)||customElements.define(e,t)},d=(e,t)=>{typeof customElements>"u"||customElements.get(e)||customElements.define(e,class extends t{})};var bt={"alert-circle":'<circle cx="12" cy="12" r="10"/><line x1="12" x2="12" y1="8" y2="12"/><line x1="12" x2="12.01" y1="16" y2="16"/>',"alert-triangle":'<path d="m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3"/><path d="M12 9v4"/><path d="M12 17h.01"/>',"arrow-left":'<path d="m12 19-7-7 7-7"/><path d="M19 12H5"/>',"arrow-right":'<path d="M5 12h14"/><path d="m12 5 7 7-7 7"/>',"arrow-up-right":'<path d="M7 7h10v10"/><path d="M7 17 17 7"/>',"bar-chart":'<path d="M3 3v16a2 2 0 0 0 2 2h16"/><path d="M18 17V9"/><path d="M13 17V5"/><path d="M8 17v-3"/>',bell:'<path d="M10.268 21a2 2 0 0 0 3.464 0"/><path d="M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326"/>',bold:'<path d="M6 12h9a4 4 0 0 1 0 8H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h7a4 4 0 0 1 0 8"/>',bolt:'<path d="M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z"/>',brain:'<path d="M12 18V5"/><path d="M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4"/><path d="M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5"/><path d="M17.997 5.125a4 4 0 0 1 2.526 5.77"/><path d="M18 18a4 4 0 0 0 2-7.464"/><path d="M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517"/><path d="M6 18a4 4 0 0 1-2-7.464"/><path d="M6.003 5.125a4 4 0 0 0-2.526 5.77"/>',bug:'<path d="M12 20v-9"/><path d="M14 7a4 4 0 0 1 4 4v3a6 6 0 0 1-12 0v-3a4 4 0 0 1 4-4z"/><path d="M14.12 3.88 16 2"/><path d="M21 21a4 4 0 0 0-3.81-4"/><path d="M21 5a4 4 0 0 1-3.55 3.97"/><path d="M22 13h-4"/><path d="M3 21a4 4 0 0 1 3.81-4"/><path d="M3 5a4 4 0 0 0 3.55 3.97"/><path d="M6 13H2"/><path d="m8 2 1.88 1.88"/><path d="M9 7.13V6a3 3 0 1 1 6 0v1.13"/>',building:'<path d="M12 10h.01"/><path d="M12 14h.01"/><path d="M12 6h.01"/><path d="M16 10h.01"/><path d="M16 14h.01"/><path d="M16 6h.01"/><path d="M8 10h.01"/><path d="M8 14h.01"/><path d="M8 6h.01"/><path d="M9 22v-3a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v3"/><rect x="4" y="2" width="16" height="20" rx="2"/>',calendar:'<path d="M8 2v4"/><path d="M16 2v4"/><rect width="18" height="18" x="3" y="4" rx="2"/><path d="M3 10h18"/>',check:'<path d="M20 6 9 17l-5-5"/>',"check-circle":'<circle cx="12" cy="12" r="10"/><path d="m9 12 2 2 4-4"/>',"chevron-down":'<path d="m6 9 6 6 6-6"/>',"chevron-left":'<path d="m15 18-6-6 6-6"/>',"chevron-right":'<path d="m9 18 6-6-6-6"/>',"chevron-up":'<path d="m18 15-6-6-6 6"/>',chip:'<path d="M12 20v2"/><path d="M12 2v2"/><path d="M17 20v2"/><path d="M17 2v2"/><path d="M2 12h2"/><path d="M2 17h2"/><path d="M2 7h2"/><path d="M20 12h2"/><path d="M20 17h2"/><path d="M20 7h2"/><path d="M7 20v2"/><path d="M7 2v2"/><rect x="4" y="4" width="16" height="16" rx="2"/><rect x="8" y="8" width="8" height="8" rx="1"/>',clock:'<circle cx="12" cy="12" r="10"/><path d="M12 6v6l4 2"/>',cloud:'<path d="M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z"/>',cookie:'<path d="M12 2a10 10 0 1 0 10 10 4 4 0 0 1-5-5 4 4 0 0 1-5-5"/><path d="M8.5 8.5v.01"/><path d="M16 15.5v.01"/><path d="M12 12v.01"/><path d="M11 17v.01"/><path d="M7 14v.01"/>',copy:'<rect width="14" height="14" x="8" y="8" rx="2" ry="2"/><path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"/>',"dots-horizontal":'<circle cx="12" cy="12" r="1" fill="currentColor" stroke="none"/><circle cx="19" cy="12" r="1" fill="currentColor" stroke="none"/><circle cx="5" cy="12" r="1" fill="currentColor" stroke="none"/>',"dots-vertical":'<circle cx="12" cy="12" r="1" fill="currentColor" stroke="none"/><circle cx="12" cy="5" r="1" fill="currentColor" stroke="none"/><circle cx="12" cy="19" r="1" fill="currentColor" stroke="none"/>',download:'<path d="M12 15V3"/><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/><path d="m7 10 5 5 5-5"/>',external:'<path d="M15 3h6v6"/><path d="M10 14 21 3"/><path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"/>',eye:'<path d="M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0"/><circle cx="12" cy="12" r="3"/>',"eye-off":'<path d="M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49"/><path d="M14.084 14.158a3 3 0 0 1-4.242-4.242"/><path d="M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143"/><path d="m2 2 20 20"/>',file:'<path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/>',filter:'<path d="M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z"/>',fingerprint:'<path d="M12 10a2 2 0 0 0-2 2c0 1.02-.1 2.51-.26 4"/><path d="M14 13.12c0 2.38 0 6.38-1 8.88"/><path d="M17.29 21.02c.12-.6.43-2.3.5-3.02"/><path d="M2 12a10 10 0 0 1 18-6"/><path d="M2 16h.01"/><path d="M21.8 16c.2-2 .131-5.354 0-6"/><path d="M5 19.5C5.5 18 6 15 6 12a6 6 0 0 1 .34-2"/><path d="M8.65 22c.21-.66.45-1.32.57-2"/><path d="M9 6.8a6 6 0 0 1 9 5.2v2"/>',folder:'<path d="M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z"/>',globe:'<circle cx="12" cy="12" r="10"/><path d="M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20"/><path d="M2 12h20"/>',"grip-vertical":'<circle cx="9" cy="12" r="1" fill="currentColor" stroke="none"/><circle cx="9" cy="5" r="1" fill="currentColor" stroke="none"/><circle cx="9" cy="19" r="1" fill="currentColor" stroke="none"/><circle cx="15" cy="12" r="1" fill="currentColor" stroke="none"/><circle cx="15" cy="5" r="1" fill="currentColor" stroke="none"/><circle cx="15" cy="19" r="1" fill="currentColor" stroke="none"/>',heart:'<path d="M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5"/>',home:'<path d="M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8"/><path d="M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"/>',image:'<rect width="18" height="18" x="3" y="3" rx="2" ry="2"/><circle cx="9" cy="9" r="2"/><path d="m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21"/>',info:'<circle cx="12" cy="12" r="10"/><path d="M12 16v-4"/><path d="M12 8h.01"/>',insights:'<path d="M3 3v16a2 2 0 0 0 2 2h16"/><path d="m19 9-5 5-4-4-3 3"/>',italic:'<line x1="19" x2="10" y1="4" y2="4"/><line x1="14" x2="5" y1="20" y2="20"/><line x1="15" x2="9" y1="4" y2="20"/>',key:'<path d="M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z"/><circle cx="16.5" cy="7.5" r=".5" fill="currentColor"/>',link:'<path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"/><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"/>',list:'<path d="M3 5h.01"/><path d="M3 12h.01"/><path d="M3 19h.01"/><path d="M8 5h13"/><path d="M8 12h13"/><path d="M8 19h13"/>',"list-ordered":'<path d="M11 5h10"/><path d="M11 12h10"/><path d="M11 19h10"/><path d="M4 4h1v5"/><path d="M4 9h2"/><path d="M6.5 20H3.4c0-1 2.6-1.925 2.6-3.5a1.5 1.5 0 0 0-2.6-1.02"/>',loader:'<path d="M21 12a9 9 0 1 1-6.219-8.56"/>',lock:'<rect width="18" height="11" x="3" y="11" rx="2" ry="2"/><path d="M7 11V7a5 5 0 0 1 10 0v4"/>',"log-in":'<path d="m10 17 5-5-5-5"/><path d="M15 12H3"/><path d="M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4"/>',"log-out":'<path d="m16 17 5-5-5-5"/><path d="M21 12H9"/><path d="M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"/>',mail:'<path d="m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7"/><rect x="2" y="4" width="20" height="16" rx="2"/>',menu:'<path d="M4 5h16"/><path d="M4 12h16"/><path d="M4 19h16"/>',minus:'<path d="M5 12h14"/>',moon:'<path d="M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401"/>',network:'<rect x="16" y="16" width="6" height="6" rx="1"/><rect x="2" y="16" width="6" height="6" rx="1"/><rect x="9" y="2" width="6" height="6" rx="1"/><path d="M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3"/><path d="M12 12V8"/>',paperclip:'<path d="m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551"/>',pencil:'<path d="M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z"/><path d="m15 5 4 4"/>',phone:'<path d="M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384"/>',play:'<path d="M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z" fill="currentColor" stroke="none"/>',plus:'<path d="M5 12h14"/><path d="M12 5v14"/>',policy:'<path d="M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z"/><path d="m9 12 2 2 4-4"/>',refresh:'<path d="M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8"/><path d="M21 3v5h-5"/><path d="M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16"/><path d="M8 16H3v5"/>',rocket:'<path d="M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5"/><path d="M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09"/><path d="M9 12a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.4 22.4 0 0 1-4 2z"/><path d="M9 12H4s.55-3.03 2-4c1.62-1.08 5 .05 5 .05"/>',search:'<path d="m21 21-4.34-4.34"/><circle cx="11" cy="11" r="8"/>',"search-off":'<path d="m13.5 8.5-5 5"/><path d="m8.5 8.5 5 5"/><circle cx="11" cy="11" r="8"/><path d="m21 21-4.3-4.3"/>',send:'<path d="M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z"/><path d="m21.854 2.147-10.94 10.939"/>',server:'<rect width="20" height="8" x="2" y="2" rx="2" ry="2"/><rect width="20" height="8" x="2" y="14" rx="2" ry="2"/><line x1="6" x2="6.01" y1="6" y2="6"/><line x1="6" x2="6.01" y1="18" y2="18"/>',settings:'<path d="M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915"/><circle cx="12" cy="12" r="3"/>',shield:'<path d="M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z"/>',ship:'<path d="M12 10.189V14"/><path d="M12 2v3"/><path d="M19 13V7a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2v6"/><path d="M19.38 20A11.6 11.6 0 0 0 21 14l-8.188-3.639a2 2 0 0 0-1.624 0L3 14a11.6 11.6 0 0 0 2.81 7.76"/><path d="M2 21c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1s1.2 1 2.5 1c2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1"/>',sparkle:'<path d="M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z"/><path d="M20 2v4"/><path d="M22 4h-4"/><circle cx="4" cy="20" r="2"/>',speed:'<path d="m12 14 4-4"/><path d="M3.34 19a10 10 0 1 1 17.32 0"/>',star:'<path d="M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z"/>',sun:'<circle cx="12" cy="12" r="4"/><path d="M12 2v2"/><path d="M12 20v2"/><path d="m4.93 4.93 1.41 1.41"/><path d="m17.66 17.66 1.41 1.41"/><path d="M2 12h2"/><path d="M20 12h2"/><path d="m6.34 17.66-1.41 1.41"/><path d="m19.07 4.93-1.41 1.41"/>',terminal:'<path d="M12 19h8"/><path d="m4 17 6-6-6-6"/>',trash:'<path d="M10 11v6"/><path d="M14 11v6"/><path d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6"/><path d="M3 6h18"/><path d="M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"/>',"trending-up":'<path d="M16 7h6v6"/><path d="m22 7-8.5 8.5-5-5L2 17"/>',underline:'<path d="M6 4v6a6 6 0 0 0 12 0V4"/><line x1="4" x2="20" y1="20" y2="20"/>',upload:'<path d="M12 3v12"/><path d="m17 8-5-5-5 5"/><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/>',user:'<path d="M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2"/><circle cx="12" cy="7" r="4"/>',"user-shield":'<path d="M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z"/><path d="M6.376 18.91a6 6 0 0 1 11.249.003"/><circle cx="12" cy="11" r="4"/>',x:'<path d="M18 6 6 18"/><path d="m6 6 12 12"/>'};var mt={deml:'<rect x="3" y="3" width="18" height="18" rx="2"/><path d="M8 17V13M12 17V8M16 17V11"/>',"deml-compact":'<rect x="4" y="4" width="16" height="16" rx="3"/><path d="M9 16V12M12 16V9M15 16V13"/>',"deml-lockup":'<rect x="3" y="3" width="18" height="14" rx="2"/><path d="M8 17V13M12 17V8M16 17V11"/><path d="M3 20h18"/>'},ft={drakkar:'<path d="M12 10.189V14"/><path d="M12 2v3"/><path d="M19 13V7a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2v6"/><path d="M19.38 20A11.6 11.6 0 0 0 21 14l-8.188-3.639a2 2 0 0 0-1.624 0L3 14a11.6 11.6 0 0 0 2.81 7.76"/><path d="M2 21c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1s1.2 1 2.5 1c2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1"/>',"drakkar-compact":'<rect x="3" y="3" width="18" height="18" rx="2"/><path d="M12 10.189V14"/><path d="M12 2v3"/><path d="M19 13V7a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2v6"/><path d="M19.38 20A11.6 11.6 0 0 0 21 14l-8.188-3.639a2 2 0 0 0-1.624 0L3 14a11.6 11.6 0 0 0 2.81 7.76"/><path d="M2 21c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1s1.2 1 2.5 1c2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1"/>',"drakkar-lockup":'<path d="M12 10.189V14"/><path d="M12 2v3"/><path d="M19 13V7a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2v6"/><path d="M19.38 20A11.6 11.6 0 0 0 21 14l-8.188-3.639a2 2 0 0 0-1.624 0L3 14a11.6 11.6 0 0 0 2.81 7.76"/><path d="M2 21c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1s1.2 1 2.5 1c2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1"/><path d="M3 21h18"/>'},Et={deml:'<path d="M5 4a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V4zM8 13h2.5v4H8v-4zM12 8h2.5v9H12V8zM16 11h2.5v6H16v-6z"/>',"deml-compact":'<path d="M6 5a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1V5zM9 12h1.5v4H9v-4zM12 9h1.5v7H12V9zM15 11h1.5v5H15v-5z"/>',"deml-lockup":'<path d="M4 4a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v11a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V4zM8 13h2.5v4H8v-4zM12 8h2.5v9H12V8zM16 11h2.5v6H16v-6z"/><rect x="3" y="19" width="18" height="2" rx="1"/>'},It={drakkar:'<path d="M7 5h10a2 2 0 0 1 2 2v3.5L20.8 14.2l-7.8-3.5a1.8 1.8 0 0 0-1.4 0L3.2 14.2a10.5 10.5 0 0 0 2.6 7.2L5.2 13V7a2 2 0 0 0-2-2z"/><rect x="10.85" y="2" width="2.3" height="12" rx="0.4"/>',"drakkar-compact":'<path d="M3 3h18a2 2 0 0 1 2 2v18a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z"/><path d="M7.5 12.5 12 9.8l4.5 2.7v2.2c0 .8-.5 1.4-1.2 1.7L12 17.8l-3.3-1.6c-.7-.3-1.2-.9-1.2-1.7v-2.2z"/><rect x="11" y="6" width="2" height="5.5" rx="0.35"/>',"drakkar-lockup":'<path d="M7 5h10a2 2 0 0 1 2 2v3.5L20.8 14.2l-7.8-3.5a1.8 1.8 0 0 0-1.4 0L3.2 14.2a10.5 10.5 0 0 0 2.6 7.2L5.2 13V7a2 2 0 0 0-2-2z"/><rect x="10.85" y="2" width="2.3" height="12" rx="0.4"/><rect x="3" y="20" width="18" height="2" rx="1"/>'},At=Object.keys(mt),ai=Object.keys(ft);var Mt={kubernetes:"#326CE5",tensorflow:"#FF6F00",pytorch:"#EE4C2C","apache-spark":"#E25A1C",databricks:"#FF3621","aws-redshift":"#8C4FFF"},si=Object.keys(Mt);var Ct={kubernetes:"M10.204 14.35l.007.01-.999 2.413a5.171 5.171 0 0 1-2.075-2.597l2.578-.437.004.005a.44.44 0 0 1 .484.606zm-.833-2.129a.44.44 0 0 0 .173-.756l.002-.011L7.585 9.7a5.143 5.143 0 0 0-.73 3.255l2.514-.725.002-.009zm1.145-1.98a.44.44 0 0 0 .699-.337l.01-.005.15-2.62a5.144 5.144 0 0 0-3.01 1.442l2.147 1.523.004-.002zm.76 2.75l.723.349.722-.347.18-.78-.5-.623h-.804l-.5.623.179.779zm1.5-3.095a.44.44 0 0 0 .7.336l.008.003 2.134-1.513a5.188 5.188 0 0 0-2.992-1.442l.148 2.615.002.001zm10.876 5.97l-5.773 7.181a1.6 1.6 0 0 1-1.248.594l-9.261.003a1.6 1.6 0 0 1-1.247-.596l-5.776-7.18a1.583 1.583 0 0 1-.307-1.34L2.1 5.573c.108-.47.425-.864.863-1.073L11.305.513a1.606 1.606 0 0 1 1.385 0l8.345 3.985c.438.209.755.604.863 1.073l2.062 8.955c.108.47-.005.963-.308 1.34zm-3.289-2.057c-.042-.01-.103-.026-.145-.034-.174-.033-.315-.025-.479-.038-.35-.037-.638-.067-.895-.148-.105-.04-.18-.165-.216-.216l-.201-.059a6.45 6.45 0 0 0-.105-2.332 6.465 6.465 0 0 0-.936-2.163c.052-.047.15-.133.177-.159.008-.09.001-.183.094-.282.197-.185.444-.338.743-.522.142-.084.273-.137.415-.242.032-.024.076-.062.11-.089.24-.191.295-.52.123-.736-.172-.216-.506-.236-.745-.045-.034.027-.08.062-.111.088-.134.116-.217.23-.33.35-.246.25-.45.458-.673.609-.097.056-.239.037-.303.033l-.19.135a6.545 6.545 0 0 0-4.146-2.003l-.012-.223c-.065-.062-.143-.115-.163-.25-.022-.268.015-.557.057-.905.023-.163.061-.298.068-.475.001-.04-.001-.099-.001-.142 0-.306-.224-.555-.5-.555-.275 0-.499.249-.499.555l.001.014c0 .041-.002.092 0 .128.006.177.044.312.067.475.042.348.078.637.056.906a.545.545 0 0 1-.162.258l-.012.211a6.424 6.424 0 0 0-4.166 2.003 8.373 8.373 0 0 1-.18-.128c-.09.012-.18.04-.297-.029-.223-.15-.427-.358-.673-.608-.113-.12-.195-.234-.329-.349-.03-.026-.077-.062-.111-.088a.594.594 0 0 0-.348-.132.481.481 0 0 0-.398.176c-.172.216-.117.546.123.737l.007.005.104.083c.142.105.272.159.414.242.299.185.546.338.743.522.076.082.09.226.1.288l.16.143a6.462 6.462 0 0 0-1.02 4.506l-.208.06c-.055.072-.133.184-.215.217-.257.081-.546.11-.895.147-.164.014-.305.006-.48.039-.037.007-.09.02-.133.03l-.004.002-.007.002c-.295.071-.484.342-.423.608.061.267.349.429.645.365l.007-.001.01-.003.129-.029c.17-.046.294-.113.448-.172.33-.118.604-.217.87-.256.112-.009.23.069.288.101l.217-.037a6.5 6.5 0 0 0 2.88 3.596l-.09.218c.033.084.069.199.044.282-.097.252-.263.517-.452.813-.091.136-.185.242-.268.399-.02.037-.045.095-.064.134-.128.275-.034.591.213.71.248.12.556-.007.69-.282v-.002c.02-.039.046-.09.062-.127.07-.162.094-.301.144-.458.132-.332.205-.68.387-.897.05-.06.13-.082.215-.105l.113-.205a6.453 6.453 0 0 0 4.609.012l.106.192c.086.028.18.042.256.155.136.232.229.507.342.84.05.156.074.295.145.457.016.037.043.09.062.129.133.276.442.402.69.282.247-.118.341-.435.213-.71-.02-.039-.045-.096-.065-.134-.083-.156-.177-.261-.268-.398-.19-.296-.346-.541-.443-.793-.04-.13.007-.21.038-.294-.018-.022-.059-.144-.083-.202a6.499 6.499 0 0 0 2.88-3.622c.064.01.176.03.213.038.075-.05.144-.114.28-.104.266.039.54.138.87.256.154.06.277.128.448.173.036.01.088.019.13.028l.009.003.007.001c.297.064.584-.098.645-.365.06-.266-.128-.537-.423-.608zM16.4 9.701l-1.95 1.746v.005a.44.44 0 0 0 .173.757l.003.01 2.526.728a5.199 5.199 0 0 0-.108-1.674A5.208 5.208 0 0 0 16.4 9.7zm-4.013 5.325a.437.437 0 0 0-.404-.232.44.44 0 0 0-.372.233h-.002l-1.268 2.292a5.164 5.164 0 0 0 3.326.003l-1.27-2.296h-.01zm1.888-1.293a.44.44 0 0 0-.27.036.44.44 0 0 0-.214.572l-.003.004 1.01 2.438a5.15 5.15 0 0 0 2.081-2.615l-2.6-.44-.004.005z",tensorflow:"M1.292 5.856L11.54 0v24l-4.095-2.378V7.603l-6.168 3.564.015-5.31zm21.43 5.311l-.014-5.31L12.46 0v24l4.095-2.378V14.87l3.092 1.788-.018-4.618-3.074-1.756V7.603l6.168 3.564z",pytorch:"M12.005 0L4.952 7.053a9.865 9.865 0 000 14.022 9.866 9.866 0 0014.022 0c3.984-3.9 3.986-10.205.085-14.023l-1.744 1.743c2.904 2.905 2.904 7.634 0 10.538s-7.634 2.904-10.538 0-2.904-7.634 0-10.538l4.647-4.646.582-.665zm3.568 3.899a1.327 1.327 0 00-1.327 1.327 1.327 1.327 0 001.327 1.328A1.327 1.327 0 0016.9 5.226 1.327 1.327 0 0015.573 3.9z","apache-spark":"M10.812 0c-.425.013-.845.215-1.196.605a3.593 3.593 0 00-.493.722c-.355.667-.425 1.415-.556 2.143a551.9 551.9 0 00-.726 4.087c-.027.16-.096.227-.244.273C5.83 8.386 4.06 8.94 2.3 9.514c-.387.125-.773.289-1.114.506-1.042.665-1.196 1.753-.415 2.71.346.422.79.715 1.284.936 1.1.49 2.202.976 3.3 1.47.019.01.036.013.053.019h-.004l1.306.535c0 .023.002.045 0 .073-.2 2.03-.39 4.063-.58 6.095-.04.419-.012.831.134 1.23.317.87 1.065 1.148 1.881.701.372-.204.666-.497.937-.818 1.372-1.623 2.746-3.244 4.113-4.872.111-.133.205-.15.363-.098.349.117.697.231 1.045.347h.001c.02.012.045.02.073.03l.142.042c1.248.416 2.68.775 3.929 1.19.4.132.622.164 1.045.098.311-.048.592-.062.828-.236.602-.33.995-.957.988-1.682-.005-.427-.154-.813-.35-1.186-.82-1.556-1.637-3.113-2.461-4.666-.078-.148-.076-.243.037-.375 1.381-1.615 2.756-3.236 4.133-4.855.272-.32.513-.658.653-1.058.308-.878-.09-1.57-1-1.741a2.783 2.783 0 00-1.235.069c-1.974.521-3.947 1.041-5.918 1.57-.175.047-.26.015-.355-.144a353.08 353.08 0 00-2.421-4.018 4.61 4.61 0 00-.652-.849c-.371-.37-.802-.549-1.227-.536zm.172 3.703a.592.592 0 01.189.211c.87 1.446 1.742 2.89 2.609 4.338.07.118.135.16.277.121 1.525-.41 3.052-.813 4.579-1.217.367-.098.735-.193 1.103-.289a.399.399 0 01-.1.2c-1.259 1.48-2.516 2.962-3.779 4.438-.11.13-.12.22-.04.37.937 1.803 1.768 3.309 2.498 4.76l-3.696-1.019c-.538-.18-1.077-.358-1.615-.539-.163-.055-.25-.03-.36.1-1.248 1.488-2.504 2.97-3.759 4.454a.398.398 0 01-.18.132c.035-.378.068-.757.104-1.136.149-1.572.297-3.144.451-4.716-.03-.318.117-.405-.322-.545-1.493-.593-3.346-1.321-4.816-1.905a.595.595 0 01.24-.134c1.797-.57 3.595-1.14 5.394-1.705.127-.04.199-.092.211-.233.013-.148.05-.294.076-.441.241-1.363.483-2.726.726-4.088.068-.386.14-.771.21-1.157z",databricks:"M.95 14.184L12 20.403l9.919-5.55v2.21L12 22.662l-10.484-5.96-.565.308v.77L12 24l11.05-6.218v-4.317l-.515-.309L12 19.118l-9.867-5.653v-2.21L12 16.805l11.05-6.218V6.32l-.515-.308L12 11.974 2.647 6.681 12 1.388l7.76 4.368.668-.411v-.566L12 0 .95 6.27v.72L12 13.207l9.919-5.55v2.26L12 15.52 1.516 9.56l-.565.308Z","aws-redshift":"M16.639 9.932a.822.822 0 0 1-.822-.82.823.823 0 0 1 1.645 0c0 .452-.37.82-.823.82m-2.086 4.994a.823.823 0 0 1-.822-.822.822.822 0 0 1 1.645 0 .822.822 0 0 1-.823.822m-5.004-.833a.822.822 0 1 1 .002-1.644.822.822 0 0 1-.002 1.644m-2.083 4.578a.823.823 0 0 1-.823-.82.823.823 0 0 1 1.645 0c0 .452-.37.82-.822.82m9.173-11.236a1.68 1.68 0 0 0-1.68 1.676c0 .566.285 1.066.718 1.37l-.782 1.982a1.674 1.674 0 0 0-1.923 1.104l-1.753-.398a1.675 1.675 0 0 0-3.348.103c0 .432.169.823.438 1.12l-.764 1.79c-.028-.001-.053-.008-.08-.008a1.68 1.68 0 0 0-1.68 1.676 1.68 1.68 0 0 0 3.36 0c0-.593-.312-1.112-.778-1.41l.674-1.579c.161.052.33.088.508.088.661 0 1.228-.386 1.502-.94l1.856.42a1.68 1.68 0 0 0 3.327-.325c0-.5-.224-.943-.574-1.25l.822-2.083c.053.005.104.016.157.016a1.68 1.68 0 0 0 1.68-1.676 1.68 1.68 0 0 0-1.68-1.676M12 23.145c-4.17 0-7.286-1.252-7.286-2.37V4.79C6.14 5.938 9.131 6.547 12 6.547c2.869 0 5.86-.609 7.286-1.756v15.983c0 1.12-3.116 2.37-7.286 2.37M12 .856c4.293 0 7.286 1.274 7.286 2.419 0 1.143-2.993 2.418-7.286 2.418-4.293 0-7.286-1.275-7.286-2.418C4.714 2.129 7.707.855 12 .855m8.143 2.419C20.143 1.147 15.947 0 12 0 8.052 0 3.857 1.147 3.857 3.274l.002.01h-.002v17.49C3.857 22.87 8.052 24 12 24c3.947 0 8.143-1.13 8.143-3.226V3.284h-.002l.002-.01"},z=e=>{let t=Mt[e],i=Ct[e];return`<path fill="${t}" d="${i}"/>`},li={kubernetes:z("kubernetes"),tensorflow:z("tensorflow"),pytorch:z("pytorch"),"apache-spark":z("apache-spark"),databricks:z("databricks"),"aws-redshift":z("aws-redshift")},Lt=Object.fromEntries(Object.entries(Ct).map(([e,t])=>[e,`<path d="${t}"/>`]));var ae={hub:'<circle cx="12" cy="12" r="3"/><path d="M12 3v3M12 18v3M3 12h3M18 12h3M5.6 5.6l2.1 2.1M16.3 16.3l2.1 2.1M18.4 5.6l-2.1 2.1M7.7 16.3l-2.1 2.1"/>',model:'<rect x="4" y="8" width="16" height="10" rx="2"/><path d="M8 8V6a4 4 0 0 1 8 0v2"/>',google:'<path d="M12 11.2v2.4h6.6c-.3 1.5-1.8 4.4-6.6 4.4-4 0-7.2-3.3-7.2-7.3S8 3.4 12 3.4c2.3 0 3.9 1 4.8 1.8l3.2-3.1C17.5.8 14.9 0 12 0 5.4 0 0 5.4 0 12s5.4 12 12 12c6.9 0 11.5-4.8 11.5-11.6 0-.8-.1-1.4-.2-1.9H12z"/>',apple:'<path d="M16.365 12.14c.02 2.53 2.21 3.38 2.23 3.39-.02.07-.35 1.21-1.16 2.4-.7 1.02-1.43 2.03-2.58 2.05-1.13.02-1.49-.67-2.78-.67-1.29 0-1.69.65-2.75.69-1.11.04-1.95-1.12-2.66-2.13-1.44-2.08-2.54-5.87-1.07-8.43.73-1.27 2.04-2.08 3.46-2.1 1.08-.02 2.1.72 2.78.72.67 0 2.14-.89 3.61-.76.61.03 2.33.25 3.44 1.88-.09.06-2.05 1.2-2.03 3.55M13.75 3.64c.59-.71 1-1.7.89-2.68-.86.03-1.9.57-2.52 1.28-.55.63-1.03 1.65-.9 2.62.95.07 1.92-.49 2.53-1.22"/>'},F={...bt,...mt,...ft,...Lt,...ae},Tt={...Et,...It},oe={analytics:"deml",security:"shield",link:"link",visibility:"eye",shield:"shield",trending_up:"trending-up",lock:"lock",fingerprint:"fingerprint",gpp_maybe:"shield",verified_user:"user-shield",bolt:"bolt",cloud:"cloud",lan:"network",hub:"hub",speed:"speed",rocket_launch:"rocket",insights:"insights",check:"check",description:"file",vpn_key:"key",policy:"policy",bug_report:"bug",search:"search",chevron_left:"chevron-left",chevron_right:"chevron-right",verified:"check-circle",warning:"alert-triangle",close:"x",account_balance:"building",send:"send",check_circle:"check-circle",play_circle:"play",input:"terminal",model_training:"model",auto_awesome:"sparkle",error_outline:"alert-circle",home:"home",cookie:"cookie",search_off:"search-off",person_add:"user",storage:"aws-redshift",data_object:"aws-redshift",memory:"tensorflow",psychology:"pytorch",dns:"server",login:"log-in"},Vt=["play","dots-horizontal","dots-vertical","grip-vertical"],pi=["google","apple",...At];var se=new Set(Object.keys(F)),$t=e=>{let t=e.trim().toLowerCase().replace(/\s+/g,"_");if(se.has(t))return t;let i=oe[t];return i||"info"},ki=Object.keys(F),bi=Object.keys(bt);var le=new Set(Vt),h=(e,t=16,i="viking-wc-icon")=>{let r=$t(e),a=le.has(r),o=a?Tt[r]??F[r]:F[r];return a?`<svg class="${i}" width="${t}" height="${t}" viewBox="0 0 24 24" fill="currentColor" fill-rule="evenodd" aria-hidden="true">${o}</svg>`:`<svg class="${i}" width="${t}" height="${t}" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">${o}</svg>`},J={accent:"info",secondary:"info",success:"check-circle",warning:"alert-triangle",danger:"alert-circle",info:"info",muted:"info",subtle:"info"};var Nt=`
|
|
2
|
-
:host {
|
|
3
|
-
display: inline-flex;
|
|
4
|
-
font-family: var(--viking-font-family);
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
:host([full-width]) {
|
|
8
|
-
display: flex;
|
|
9
|
-
width: 100%;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
:host([full-width]) .viking-btn {
|
|
13
|
-
width: 100%;
|
|
14
|
-
min-width: 0;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
:host([compact]) .viking-btn {
|
|
18
|
-
min-width: 0;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
:host([square]) {
|
|
22
|
-
flex: 0 0 auto;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
.viking-btn {
|
|
26
|
-
--viking-btn-depth-shadow: var(--viking-shadow-sm);
|
|
27
|
-
--viking-btn-hover-shadow: var(--viking-shadow-hover);
|
|
28
|
-
--viking-btn-press-shadow:
|
|
29
|
-
inset 0 1px 2px color-mix(in srgb, var(--viking-black) 28%, transparent),
|
|
30
|
-
var(--viking-shadow-xs);
|
|
31
|
-
|
|
32
|
-
font-family: inherit;
|
|
33
|
-
font-size: var(--viking-font-size-ui, var(--viking-font-size-sm));
|
|
34
|
-
font-weight: var(--viking-font-weight-semibold);
|
|
35
|
-
letter-spacing: var(--viking-letter-spacing-wide);
|
|
36
|
-
line-height: var(--viking-line-height-snug);
|
|
37
|
-
display: inline-flex;
|
|
38
|
-
align-items: center;
|
|
39
|
-
justify-content: center;
|
|
40
|
-
gap: var(--viking-space-1-5);
|
|
41
|
-
min-height: var(--viking-control-height);
|
|
42
|
-
padding: var(--viking-space-half) var(--viking-control-padding-x);
|
|
43
|
-
border-radius: var(--viking-radius-md);
|
|
44
|
-
border: 1px solid transparent;
|
|
45
|
-
cursor: pointer;
|
|
46
|
-
text-decoration: none;
|
|
47
|
-
transition: var(--viking-transition-interactive);
|
|
48
|
-
width: auto;
|
|
49
|
-
min-width: var(--viking-btn-min-width, 120px);
|
|
50
|
-
white-space: nowrap;
|
|
51
|
-
position: relative;
|
|
52
|
-
background-clip: padding-box;
|
|
53
|
-
isolation: isolate;
|
|
54
|
-
user-select: none;
|
|
55
|
-
-webkit-tap-highlight-color: transparent;
|
|
56
|
-
box-sizing: border-box;
|
|
57
|
-
overflow: hidden;
|
|
58
|
-
box-shadow: var(--viking-btn-depth-shadow);
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
.viking-btn::before {
|
|
62
|
-
content: "";
|
|
63
|
-
position: absolute;
|
|
64
|
-
inset: 1px 1px auto;
|
|
65
|
-
height: 1px;
|
|
66
|
-
background: linear-gradient(
|
|
67
|
-
90deg,
|
|
68
|
-
transparent,
|
|
69
|
-
color-mix(in srgb, var(--viking-metallic-100) 45%, transparent),
|
|
70
|
-
transparent
|
|
71
|
-
);
|
|
72
|
-
pointer-events: none;
|
|
73
|
-
opacity: 0.88;
|
|
74
|
-
transition: var(--viking-transition-interactive);
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
.viking-btn:focus-visible {
|
|
78
|
-
outline: var(--viking-ring-width) solid var(--viking-ring);
|
|
79
|
-
outline-offset: var(--viking-ring-offset);
|
|
80
|
-
z-index: 1;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
.viking-btn:disabled,
|
|
84
|
-
.viking-btn[aria-busy='true'] {
|
|
85
|
-
opacity: var(--viking-state-disabled-opacity);
|
|
86
|
-
cursor: not-allowed;
|
|
87
|
-
transform: none !important;
|
|
88
|
-
box-shadow: none !important;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
.viking-btn[aria-busy='true'] {
|
|
92
|
-
cursor: wait;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
.viking-btn[aria-busy='true']::before,
|
|
96
|
-
.viking-btn[aria-busy='true'] .viking-btn-label {
|
|
97
|
-
opacity: 0.78;
|
|
98
|
-
transform: translateY(1px);
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
.viking-btn[aria-busy='true'] .viking-btn-spinner {
|
|
102
|
-
opacity: 0.85;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
.viking-btn::after {
|
|
106
|
-
content: "";
|
|
107
|
-
position: absolute;
|
|
108
|
-
inset: auto 0 0 0;
|
|
109
|
-
height: 1px;
|
|
110
|
-
background: linear-gradient(
|
|
111
|
-
90deg,
|
|
112
|
-
transparent,
|
|
113
|
-
color-mix(
|
|
114
|
-
in srgb,
|
|
115
|
-
var(--viking-metallic-100) 18%,
|
|
116
|
-
transparent
|
|
117
|
-
),
|
|
118
|
-
transparent
|
|
119
|
-
);
|
|
120
|
-
pointer-events: none;
|
|
121
|
-
opacity: 0.45;
|
|
122
|
-
transition: var(--viking-transition-interactive);
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
.viking-btn-sm {
|
|
126
|
-
min-height: var(--viking-control-height-sm);
|
|
127
|
-
padding: 0 var(--viking-space-2);
|
|
128
|
-
font-size: var(--viking-font-size-xs);
|
|
129
|
-
min-width: auto;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
.viking-btn-xs {
|
|
133
|
-
min-height: var(--viking-control-height-xs);
|
|
134
|
-
padding: 0 var(--viking-space-1);
|
|
135
|
-
font-size: var(--viking-font-size-xs);
|
|
136
|
-
min-width: auto;
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
.viking-btn-square {
|
|
140
|
-
display: inline-grid;
|
|
141
|
-
place-items: center;
|
|
142
|
-
width: var(--viking-control-height);
|
|
143
|
-
min-width: var(--viking-control-height);
|
|
144
|
-
max-width: var(--viking-control-height);
|
|
145
|
-
height: var(--viking-control-height);
|
|
146
|
-
min-height: var(--viking-control-height);
|
|
147
|
-
padding: 0;
|
|
148
|
-
line-height: 1;
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
.viking-btn-square.viking-btn-sm {
|
|
152
|
-
width: var(--viking-control-height-sm);
|
|
153
|
-
min-width: var(--viking-control-height-sm);
|
|
154
|
-
max-width: var(--viking-control-height-sm);
|
|
155
|
-
height: var(--viking-control-height-sm);
|
|
156
|
-
min-height: var(--viking-control-height-sm);
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
.viking-btn-square.viking-btn-xs {
|
|
160
|
-
width: var(--viking-control-height-xs);
|
|
161
|
-
min-width: var(--viking-control-height-xs);
|
|
162
|
-
max-width: var(--viking-control-height-xs);
|
|
163
|
-
height: var(--viking-control-height-xs);
|
|
164
|
-
min-height: var(--viking-control-height-xs);
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
.viking-btn-square .viking-btn-label {
|
|
168
|
-
display: inline-grid;
|
|
169
|
-
place-items: center;
|
|
170
|
-
width: 100%;
|
|
171
|
-
height: 100%;
|
|
172
|
-
line-height: 1;
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
.viking-btn-square ::slotted(*) {
|
|
176
|
-
display: inline-flex;
|
|
177
|
-
align-items: center;
|
|
178
|
-
justify-content: center;
|
|
179
|
-
margin: 0;
|
|
180
|
-
line-height: 1;
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
.viking-btn-square ::slotted(svg),
|
|
184
|
-
.viking-btn-square ::slotted([data-viking-icon]) {
|
|
185
|
-
width: var(--viking-icon-size-md, 20px);
|
|
186
|
-
height: var(--viking-icon-size-md, 20px);
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
::slotted(viking-icon),
|
|
190
|
-
::slotted(.viking-icon),
|
|
191
|
-
::slotted([data-viking-icon]) {
|
|
192
|
-
display: inline-flex;
|
|
193
|
-
align-items: center;
|
|
194
|
-
justify-content: center;
|
|
195
|
-
width: var(--viking-icon-size-md);
|
|
196
|
-
height: var(--viking-icon-size-md);
|
|
197
|
-
line-height: 1;
|
|
198
|
-
flex-shrink: 0;
|
|
199
|
-
pointer-events: none;
|
|
200
|
-
flex: 0 0 auto;
|
|
201
|
-
margin-block: calc(var(--viking-space-half) * -1);
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
.viking-btn-outline {
|
|
205
|
-
background: var(--viking-surface);
|
|
206
|
-
color: var(--viking-text);
|
|
207
|
-
border-color: var(--viking-border-strong);
|
|
208
|
-
box-shadow: var(--viking-btn-depth-shadow);
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
.viking-btn-outline:hover:not(:disabled):not([aria-busy='true']) {
|
|
212
|
-
background: color-mix(in srgb, var(--viking-accent) 5%, var(--viking-surface-alt));
|
|
213
|
-
border-color: color-mix(in srgb, var(--viking-accent) 45%, var(--viking-border-strong));
|
|
214
|
-
box-shadow: var(--viking-btn-hover-shadow);
|
|
215
|
-
transform: translateY(var(--viking-state-hover-lift));
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
.viking-btn-outline:active:not(:disabled):not([aria-busy='true']) {
|
|
219
|
-
transform: translateY(0) scale(var(--viking-state-active-scale));
|
|
220
|
-
box-shadow: var(--viking-btn-press-shadow);
|
|
221
|
-
border-color: var(--viking-border-strong);
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
.viking-btn-primary {
|
|
225
|
-
background: var(--viking-accent);
|
|
226
|
-
color: var(--viking-accent-content);
|
|
227
|
-
border-color: color-mix(in srgb, var(--viking-accent) 82%, var(--viking-black));
|
|
228
|
-
box-shadow:
|
|
229
|
-
var(--viking-btn-depth-shadow),
|
|
230
|
-
inset 0 1px 0 color-mix(in srgb, var(--viking-white-pure) 12%, transparent);
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
.viking-btn-primary:hover:not(:disabled):not([aria-busy='true']) {
|
|
234
|
-
background: var(--viking-accent-hover);
|
|
235
|
-
border-color: var(--viking-accent-hover);
|
|
236
|
-
box-shadow: var(--viking-btn-hover-shadow);
|
|
237
|
-
transform: translateY(var(--viking-state-hover-lift));
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
.viking-btn-primary:active:not(:disabled):not([aria-busy='true']) {
|
|
241
|
-
transform: translateY(0) scale(var(--viking-state-active-scale));
|
|
242
|
-
box-shadow: var(--viking-btn-press-shadow);
|
|
243
|
-
border-color: color-mix(in srgb, var(--viking-accent) 82%, var(--viking-black));
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
.viking-btn-secondary {
|
|
247
|
-
background: var(--viking-accent-secondary);
|
|
248
|
-
color: var(--viking-accent-secondary-content);
|
|
249
|
-
border-color: color-mix(in srgb, var(--viking-accent-secondary) 82%, var(--viking-black));
|
|
250
|
-
box-shadow:
|
|
251
|
-
var(--viking-btn-depth-shadow),
|
|
252
|
-
inset 0 1px 0 color-mix(in srgb, var(--viking-white-pure) 10%, transparent);
|
|
253
|
-
}
|
|
254
|
-
|
|
255
|
-
.viking-btn-secondary:hover:not(:disabled):not([aria-busy='true']) {
|
|
256
|
-
background: var(--viking-accent-secondary-hover);
|
|
257
|
-
border-color: var(--viking-accent-secondary-hover);
|
|
258
|
-
box-shadow: var(--viking-btn-hover-shadow);
|
|
259
|
-
transform: translateY(var(--viking-state-hover-lift));
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
.viking-btn-secondary:active:not(:disabled):not([aria-busy='true']) {
|
|
263
|
-
transform: translateY(0) scale(var(--viking-state-active-scale));
|
|
264
|
-
box-shadow: var(--viking-btn-press-shadow);
|
|
265
|
-
border-color: color-mix(in srgb, var(--viking-accent-secondary) 82%, var(--viking-black));
|
|
266
|
-
}
|
|
267
|
-
|
|
268
|
-
.viking-btn-filled {
|
|
269
|
-
background: var(--viking-surface-alt);
|
|
270
|
-
color: var(--viking-text);
|
|
271
|
-
border-color: var(--viking-border);
|
|
272
|
-
box-shadow: var(--viking-shadow-xs);
|
|
273
|
-
}
|
|
274
|
-
|
|
275
|
-
.viking-btn-filled:hover:not(:disabled):not([aria-busy='true']) {
|
|
276
|
-
border-color: color-mix(in srgb, var(--viking-accent) 45%, var(--viking-border));
|
|
277
|
-
background: color-mix(in srgb, var(--viking-accent) 8%, var(--viking-surface-alt));
|
|
278
|
-
box-shadow: var(--viking-btn-depth-shadow);
|
|
279
|
-
transform: translateY(var(--viking-state-hover-lift));
|
|
280
|
-
}
|
|
281
|
-
|
|
282
|
-
.viking-btn-filled:active:not(:disabled):not([aria-busy='true']) {
|
|
283
|
-
transform: translateY(0) scale(var(--viking-state-active-scale));
|
|
284
|
-
box-shadow: var(--viking-btn-press-shadow);
|
|
285
|
-
border-color: color-mix(in srgb, var(--viking-accent) 20%, var(--viking-border));
|
|
286
|
-
background: color-mix(in srgb, var(--viking-surface-alt) 84%, var(--viking-accent));
|
|
287
|
-
}
|
|
288
|
-
|
|
289
|
-
.viking-btn-danger {
|
|
290
|
-
background: var(--viking-danger);
|
|
291
|
-
color: var(--viking-on-danger);
|
|
292
|
-
border-color: color-mix(in srgb, var(--viking-danger) 85%, var(--viking-black));
|
|
293
|
-
box-shadow:
|
|
294
|
-
var(--viking-btn-depth-shadow),
|
|
295
|
-
inset 0 1px 0 color-mix(in srgb, var(--viking-white-pure) 10%, transparent);
|
|
296
|
-
}
|
|
297
|
-
|
|
298
|
-
.viking-btn-danger:hover:not(:disabled):not([aria-busy='true']) {
|
|
299
|
-
background: color-mix(in srgb, var(--viking-danger) 88%, var(--viking-white));
|
|
300
|
-
border-color: color-mix(in srgb, var(--viking-danger) 92%, var(--viking-white));
|
|
301
|
-
box-shadow: var(--viking-btn-hover-shadow);
|
|
302
|
-
transform: translateY(var(--viking-state-hover-lift));
|
|
303
|
-
}
|
|
304
|
-
|
|
305
|
-
.viking-btn-danger:active:not(:disabled):not([aria-busy='true']) {
|
|
306
|
-
transform: translateY(0) scale(var(--viking-state-active-scale));
|
|
307
|
-
border-color: color-mix(in srgb, var(--viking-danger) 72%, var(--viking-black));
|
|
308
|
-
background: color-mix(in srgb, var(--viking-danger) 84%, var(--viking-black));
|
|
309
|
-
box-shadow: var(--viking-btn-press-shadow);
|
|
310
|
-
}
|
|
311
|
-
|
|
312
|
-
.viking-btn-ghost {
|
|
313
|
-
background: transparent;
|
|
314
|
-
color: var(--viking-text);
|
|
315
|
-
min-width: auto;
|
|
316
|
-
box-shadow: none;
|
|
317
|
-
border-color: transparent;
|
|
318
|
-
}
|
|
319
|
-
|
|
320
|
-
.viking-btn-ghost:hover:not(:disabled):not([aria-busy='true']) {
|
|
321
|
-
background: var(--viking-accent-soft);
|
|
322
|
-
color: var(--viking-accent-strong);
|
|
323
|
-
border-color: var(--viking-border-subtle);
|
|
324
|
-
transform: translateY(var(--viking-state-hover-lift));
|
|
325
|
-
}
|
|
326
|
-
|
|
327
|
-
.viking-btn-ghost:active:not(:disabled):not([aria-busy='true']) {
|
|
328
|
-
transform: translateY(0) scale(var(--viking-state-active-scale));
|
|
329
|
-
background: var(--viking-accent-soft);
|
|
330
|
-
color: var(--viking-accent-strong);
|
|
331
|
-
}
|
|
332
|
-
|
|
333
|
-
.viking-btn-subtle {
|
|
334
|
-
background: transparent;
|
|
335
|
-
color: var(--viking-text-muted);
|
|
336
|
-
border-color: var(--viking-border-subtle);
|
|
337
|
-
min-width: auto;
|
|
338
|
-
box-shadow: none;
|
|
339
|
-
}
|
|
340
|
-
|
|
341
|
-
.viking-btn-subtle:hover:not(:disabled):not([aria-busy='true']) {
|
|
342
|
-
color: var(--viking-text);
|
|
343
|
-
background: var(--viking-accent-soft);
|
|
344
|
-
border-color: var(--viking-border-strong);
|
|
345
|
-
}
|
|
346
|
-
|
|
347
|
-
.viking-btn-subtle:active:not(:disabled):not([aria-busy='true']) {
|
|
348
|
-
transform: translateY(0) scale(var(--viking-state-active-scale));
|
|
349
|
-
border-color: var(--viking-border);
|
|
350
|
-
background: color-mix(in srgb, var(--viking-accent-soft) 70%, var(--viking-surface));
|
|
351
|
-
box-shadow: inset 0 1px 2px color-mix(in srgb, var(--viking-black) 24%, transparent);
|
|
352
|
-
}
|
|
353
|
-
|
|
354
|
-
.viking-btn:active:not(:disabled):not([aria-busy='true']) {
|
|
355
|
-
transform: translateY(0) scale(var(--viking-state-active-scale));
|
|
356
|
-
}
|
|
357
|
-
|
|
358
|
-
.viking-btn-label {
|
|
359
|
-
display: inline-flex;
|
|
360
|
-
align-items: center;
|
|
361
|
-
justify-content: center;
|
|
362
|
-
gap: var(--viking-space-1);
|
|
363
|
-
line-height: 1.2;
|
|
364
|
-
min-width: 0;
|
|
365
|
-
text-align: center;
|
|
366
|
-
white-space: nowrap;
|
|
367
|
-
}
|
|
368
|
-
|
|
369
|
-
.viking-btn-label ::slotted(*) {
|
|
370
|
-
display: inline-flex;
|
|
371
|
-
align-items: center;
|
|
372
|
-
justify-content: center;
|
|
373
|
-
flex: 0 0 auto;
|
|
374
|
-
line-height: 1;
|
|
375
|
-
}
|
|
376
|
-
|
|
377
|
-
.viking-btn-label ::slotted([data-viking-icon]),
|
|
378
|
-
.viking-btn-label ::slotted(svg),
|
|
379
|
-
.viking-btn-label ::slotted(viking-icon) {
|
|
380
|
-
width: var(--viking-icon-size-md);
|
|
381
|
-
height: var(--viking-icon-size-md);
|
|
382
|
-
}
|
|
383
|
-
|
|
384
|
-
.viking-btn-spinner {
|
|
385
|
-
flex: 0 0 auto;
|
|
386
|
-
width: var(--viking-icon-size-sm, 18px);
|
|
387
|
-
height: var(--viking-icon-size-sm, 18px);
|
|
388
|
-
border: 2px solid currentColor;
|
|
389
|
-
border-right-color: transparent;
|
|
390
|
-
border-radius: var(--viking-radius-pill);
|
|
391
|
-
animation: viking-spin 0.8s linear infinite;
|
|
392
|
-
}
|
|
393
|
-
|
|
394
|
-
@keyframes viking-spin {
|
|
395
|
-
to { transform: rotate(360deg); }
|
|
396
|
-
}
|
|
397
|
-
|
|
398
|
-
@media (prefers-reduced-motion: reduce) {
|
|
399
|
-
.viking-btn-spinner { animation-duration: 0.01ms; }
|
|
400
|
-
.viking-btn { transition-duration: 0.01ms; }
|
|
401
|
-
}
|
|
402
|
-
`,Ht=`
|
|
403
|
-
:host {
|
|
404
|
-
display: block;
|
|
405
|
-
font-family: var(--viking-font-family);
|
|
406
|
-
}
|
|
407
|
-
|
|
408
|
-
.viking-input-shell {
|
|
409
|
-
display: flex;
|
|
410
|
-
align-items: center;
|
|
411
|
-
gap: var(--viking-space-1);
|
|
412
|
-
min-height: var(--viking-control-height);
|
|
413
|
-
padding: 0 var(--viking-space-2);
|
|
414
|
-
font-family: inherit;
|
|
415
|
-
font-size: var(--viking-font-size);
|
|
416
|
-
color: var(--viking-text);
|
|
417
|
-
background: var(--viking-surface-alt);
|
|
418
|
-
border: 1px solid var(--viking-border);
|
|
419
|
-
border-radius: var(--viking-radius-sm);
|
|
420
|
-
box-shadow: var(--viking-shadow-xs);
|
|
421
|
-
transition: var(--viking-transition-interactive);
|
|
422
|
-
width: 100%;
|
|
423
|
-
min-width: 0;
|
|
424
|
-
box-sizing: border-box;
|
|
425
|
-
}
|
|
426
|
-
|
|
427
|
-
.viking-input-shell:hover:not(.viking-disabled):not(.viking-loading) {
|
|
428
|
-
border-color: color-mix(in srgb, var(--viking-accent) 35%, var(--viking-border-strong));
|
|
429
|
-
box-shadow: var(--viking-shadow-sm);
|
|
430
|
-
}
|
|
431
|
-
|
|
432
|
-
.viking-input-shell:focus-within:not(.viking-loading) {
|
|
433
|
-
outline: var(--viking-ring-width) solid var(--viking-ring);
|
|
434
|
-
outline-offset: var(--viking-ring-offset);
|
|
435
|
-
border-color: var(--viking-accent);
|
|
436
|
-
box-shadow: var(--viking-shadow-sm);
|
|
437
|
-
}
|
|
438
|
-
|
|
439
|
-
.viking-input-shell.viking-disabled,
|
|
440
|
-
.viking-input-shell.viking-loading {
|
|
441
|
-
opacity: var(--viking-state-disabled-opacity);
|
|
442
|
-
}
|
|
443
|
-
|
|
444
|
-
.viking-input-shell.viking-loading {
|
|
445
|
-
cursor: wait;
|
|
446
|
-
}
|
|
447
|
-
|
|
448
|
-
.viking-input-native {
|
|
449
|
-
flex: 1;
|
|
450
|
-
min-width: 0;
|
|
451
|
-
width: 100%;
|
|
452
|
-
border: none;
|
|
453
|
-
outline: none !important;
|
|
454
|
-
background: transparent;
|
|
455
|
-
color: var(--viking-text);
|
|
456
|
-
font-family: inherit;
|
|
457
|
-
font-size: inherit;
|
|
458
|
-
padding: 0;
|
|
459
|
-
}
|
|
460
|
-
|
|
461
|
-
.viking-input-native::placeholder {
|
|
462
|
-
color: var(--viking-text-muted);
|
|
463
|
-
}
|
|
464
|
-
|
|
465
|
-
input {
|
|
466
|
-
flex: 1;
|
|
467
|
-
min-width: 0;
|
|
468
|
-
border: none;
|
|
469
|
-
outline: none !important;
|
|
470
|
-
background: transparent;
|
|
471
|
-
color: var(--viking-text);
|
|
472
|
-
font-family: inherit;
|
|
473
|
-
font-size: inherit;
|
|
474
|
-
padding: 0;
|
|
475
|
-
}
|
|
476
|
-
|
|
477
|
-
input::placeholder {
|
|
478
|
-
color: var(--viking-text-muted);
|
|
479
|
-
}
|
|
480
|
-
|
|
481
|
-
input:disabled {
|
|
482
|
-
cursor: not-allowed;
|
|
483
|
-
}
|
|
484
|
-
|
|
485
|
-
.viking-input-clear {
|
|
486
|
-
display: inline-flex;
|
|
487
|
-
align-items: center;
|
|
488
|
-
justify-content: center;
|
|
489
|
-
min-width: var(--viking-touch-target-comfort, 44px);
|
|
490
|
-
min-height: var(--viking-touch-target-comfort, 44px);
|
|
491
|
-
border: none;
|
|
492
|
-
background: transparent;
|
|
493
|
-
color: var(--viking-text-muted);
|
|
494
|
-
cursor: pointer;
|
|
495
|
-
padding: var(--viking-space-half);
|
|
496
|
-
border-radius: var(--viking-radius-pill);
|
|
497
|
-
transition: var(--viking-transition-interactive);
|
|
498
|
-
flex-shrink: 0;
|
|
499
|
-
-webkit-tap-highlight-color: transparent;
|
|
500
|
-
}
|
|
501
|
-
|
|
502
|
-
.viking-input-clear:hover {
|
|
503
|
-
color: var(--viking-text);
|
|
504
|
-
background: var(--viking-accent-soft);
|
|
505
|
-
}
|
|
506
|
-
|
|
507
|
-
.viking-input-clear:focus-visible {
|
|
508
|
-
outline: var(--viking-ring-width) solid var(--viking-ring);
|
|
509
|
-
outline-offset: var(--viking-ring-offset);
|
|
510
|
-
}
|
|
511
|
-
|
|
512
|
-
.viking-input-spinner {
|
|
513
|
-
width: 1rem;
|
|
514
|
-
height: 1rem;
|
|
515
|
-
border: 2px solid var(--viking-text-muted);
|
|
516
|
-
border-right-color: transparent;
|
|
517
|
-
border-radius: 50%;
|
|
518
|
-
animation: viking-spin 0.8s linear infinite;
|
|
519
|
-
flex-shrink: 0;
|
|
520
|
-
}
|
|
521
|
-
|
|
522
|
-
@keyframes viking-spin {
|
|
523
|
-
to { transform: rotate(360deg); }
|
|
524
|
-
}
|
|
525
|
-
`,Dt=`
|
|
526
|
-
:host {
|
|
527
|
-
display: block;
|
|
528
|
-
font-family: var(--viking-font-family);
|
|
529
|
-
color: var(--viking-text);
|
|
530
|
-
min-width: 0;
|
|
531
|
-
}
|
|
532
|
-
|
|
533
|
-
:host([hidden]) {
|
|
534
|
-
display: none;
|
|
535
|
-
}
|
|
536
|
-
|
|
537
|
-
:host([width='full']) {
|
|
538
|
-
width: 100%;
|
|
539
|
-
}
|
|
540
|
-
|
|
541
|
-
:host([width='half']) {
|
|
542
|
-
width: 100%;
|
|
543
|
-
max-width: var(--viking-select-half-max-width, min(100%, 24rem));
|
|
544
|
-
}
|
|
545
|
-
|
|
546
|
-
.viking-field {
|
|
547
|
-
display: flex;
|
|
548
|
-
flex-direction: column;
|
|
549
|
-
gap: var(--viking-space-1);
|
|
550
|
-
}
|
|
551
|
-
|
|
552
|
-
.viking-field-label-row {
|
|
553
|
-
display: flex;
|
|
554
|
-
align-items: baseline;
|
|
555
|
-
justify-content: space-between;
|
|
556
|
-
gap: var(--viking-space-2);
|
|
557
|
-
}
|
|
558
|
-
|
|
559
|
-
.viking-field-label {
|
|
560
|
-
display: inline-flex;
|
|
561
|
-
align-items: center;
|
|
562
|
-
gap: var(--viking-space-half);
|
|
563
|
-
font-size: var(--viking-font-size-ui);
|
|
564
|
-
font-weight: var(--viking-font-weight-bold);
|
|
565
|
-
color: var(--viking-text);
|
|
566
|
-
line-height: var(--viking-line-height-snug);
|
|
567
|
-
cursor: pointer;
|
|
568
|
-
}
|
|
569
|
-
|
|
570
|
-
.viking-field-required {
|
|
571
|
-
color: var(--viking-danger-text);
|
|
572
|
-
}
|
|
573
|
-
|
|
574
|
-
.viking-field-control {
|
|
575
|
-
min-width: 0;
|
|
576
|
-
}
|
|
577
|
-
|
|
578
|
-
.viking-field-description,
|
|
579
|
-
.viking-field-error {
|
|
580
|
-
margin: 0;
|
|
581
|
-
font-size: var(--viking-font-size-xs);
|
|
582
|
-
line-height: var(--viking-line-height-relaxed);
|
|
583
|
-
}
|
|
584
|
-
|
|
585
|
-
.viking-field-description {
|
|
586
|
-
color: var(--viking-text-muted);
|
|
587
|
-
}
|
|
588
|
-
|
|
589
|
-
.viking-field-error {
|
|
590
|
-
color: var(--viking-danger-text);
|
|
591
|
-
}
|
|
592
|
-
`,Ot=`
|
|
593
|
-
:host {
|
|
594
|
-
display: inline-flex;
|
|
595
|
-
align-items: center;
|
|
596
|
-
gap: var(--viking-space-half);
|
|
597
|
-
padding: var(--viking-space-half) var(--viking-space-1);
|
|
598
|
-
font-family: var(--viking-font-family);
|
|
599
|
-
font-size: var(--viking-font-size-xs);
|
|
600
|
-
font-weight: var(--viking-font-weight-semibold);
|
|
601
|
-
letter-spacing: var(--viking-letter-spacing-wide);
|
|
602
|
-
line-height: var(--viking-line-height-snug);
|
|
603
|
-
border-radius: var(--viking-radius-pill);
|
|
604
|
-
border: 1px solid var(--viking-border);
|
|
605
|
-
background: var(--viking-surface-alt);
|
|
606
|
-
color: var(--viking-text);
|
|
607
|
-
white-space: nowrap;
|
|
608
|
-
transition: var(--viking-transition-interactive);
|
|
609
|
-
box-shadow: var(--viking-shadow-xs);
|
|
610
|
-
}
|
|
611
|
-
|
|
612
|
-
:host([size='sm']) {
|
|
613
|
-
padding: 0 var(--viking-space-1);
|
|
614
|
-
font-size: var(--viking-font-size-2xs);
|
|
615
|
-
}
|
|
616
|
-
|
|
617
|
-
:host([tone='accent']) {
|
|
618
|
-
background: var(--viking-accent);
|
|
619
|
-
border-color: color-mix(in srgb, var(--viking-accent) 80%, var(--viking-black));
|
|
620
|
-
color: var(--viking-accent-content);
|
|
621
|
-
box-shadow: var(--viking-shadow-sm);
|
|
622
|
-
}
|
|
623
|
-
|
|
624
|
-
:host([tone='secondary']) {
|
|
625
|
-
background: color-mix(in srgb, var(--viking-accent-secondary) 16%, var(--viking-surface));
|
|
626
|
-
border-color: color-mix(in srgb, var(--viking-accent-secondary) 55%, transparent);
|
|
627
|
-
color: var(--viking-accent-secondary);
|
|
628
|
-
}
|
|
629
|
-
|
|
630
|
-
:host([tone='success']) {
|
|
631
|
-
background: color-mix(in srgb, var(--viking-success) 16%, var(--viking-surface));
|
|
632
|
-
border-color: color-mix(in srgb, var(--viking-success) 55%, transparent);
|
|
633
|
-
color: var(--viking-success);
|
|
634
|
-
}
|
|
635
|
-
|
|
636
|
-
:host([tone='warning']) {
|
|
637
|
-
background: color-mix(in srgb, var(--viking-warning) 18%, var(--viking-surface));
|
|
638
|
-
border-color: color-mix(in srgb, var(--viking-warning) 55%, transparent);
|
|
639
|
-
color: var(--viking-warning);
|
|
640
|
-
}
|
|
641
|
-
|
|
642
|
-
:host([tone='danger']) {
|
|
643
|
-
background: color-mix(in srgb, var(--viking-danger) 14%, var(--viking-surface));
|
|
644
|
-
border-color: color-mix(in srgb, var(--viking-danger) 50%, transparent);
|
|
645
|
-
color: var(--viking-danger-text);
|
|
646
|
-
}
|
|
647
|
-
|
|
648
|
-
:host([tone='info']) {
|
|
649
|
-
background: color-mix(in srgb, var(--viking-info) 14%, var(--viking-surface));
|
|
650
|
-
border-color: color-mix(in srgb, var(--viking-info) 50%, transparent);
|
|
651
|
-
color: var(--viking-info);
|
|
652
|
-
}
|
|
653
|
-
|
|
654
|
-
:host([tone='muted']),
|
|
655
|
-
:host([tone='subtle']) {
|
|
656
|
-
color: var(--viking-text-muted);
|
|
657
|
-
background: var(--viking-surface);
|
|
658
|
-
border-color: var(--viking-border-subtle);
|
|
659
|
-
}
|
|
660
|
-
|
|
661
|
-
.viking-wc-icon {
|
|
662
|
-
flex-shrink: 0;
|
|
663
|
-
}
|
|
664
|
-
|
|
665
|
-
.viking-badge-remove {
|
|
666
|
-
display: inline-flex;
|
|
667
|
-
align-items: center;
|
|
668
|
-
justify-content: center;
|
|
669
|
-
min-width: var(--viking-touch-target-comfort, 44px);
|
|
670
|
-
min-height: var(--viking-touch-target-comfort, 44px);
|
|
671
|
-
border: none;
|
|
672
|
-
background: transparent;
|
|
673
|
-
color: currentColor;
|
|
674
|
-
cursor: pointer;
|
|
675
|
-
padding: var(--viking-space-half);
|
|
676
|
-
border-radius: var(--viking-radius-pill);
|
|
677
|
-
transition: var(--viking-transition-interactive);
|
|
678
|
-
margin-left: calc(var(--viking-space-half) * -1);
|
|
679
|
-
}
|
|
680
|
-
|
|
681
|
-
.viking-badge-remove:hover {
|
|
682
|
-
background: color-mix(in srgb, currentColor 12%, transparent);
|
|
683
|
-
}
|
|
684
|
-
|
|
685
|
-
.viking-badge-remove:focus-visible {
|
|
686
|
-
outline: var(--viking-ring-width) solid var(--viking-ring);
|
|
687
|
-
outline-offset: var(--viking-ring-offset);
|
|
688
|
-
}
|
|
689
|
-
`,zt=`
|
|
690
|
-
:host {
|
|
691
|
-
display: block;
|
|
692
|
-
font-family: var(--viking-font-family);
|
|
693
|
-
}
|
|
694
|
-
|
|
695
|
-
:host([hidden]) {
|
|
696
|
-
display: none;
|
|
697
|
-
}
|
|
698
|
-
|
|
699
|
-
.viking-callout {
|
|
700
|
-
display: flex;
|
|
701
|
-
align-items: flex-start;
|
|
702
|
-
gap: var(--viking-space-2);
|
|
703
|
-
padding: var(--viking-space-2);
|
|
704
|
-
border-radius: var(--viking-radius-lg);
|
|
705
|
-
border: 1px solid var(--viking-border);
|
|
706
|
-
border-left-width: 3px;
|
|
707
|
-
background: var(--viking-surface-alt);
|
|
708
|
-
color: var(--viking-text);
|
|
709
|
-
font-size: var(--viking-font-size-sm);
|
|
710
|
-
box-shadow: var(--viking-shadow-sm);
|
|
711
|
-
}
|
|
712
|
-
|
|
713
|
-
.viking-callout-icon {
|
|
714
|
-
flex-shrink: 0;
|
|
715
|
-
margin-top: 2px;
|
|
716
|
-
color: var(--viking-text-muted);
|
|
717
|
-
}
|
|
718
|
-
|
|
719
|
-
.viking-callout-body {
|
|
720
|
-
flex: 1;
|
|
721
|
-
min-width: 0;
|
|
722
|
-
}
|
|
723
|
-
|
|
724
|
-
.viking-callout-heading {
|
|
725
|
-
margin: 0 0 var(--viking-space-half);
|
|
726
|
-
font-size: var(--viking-font-size-ui);
|
|
727
|
-
font-weight: var(--viking-font-weight-bold);
|
|
728
|
-
color: var(--viking-text);
|
|
729
|
-
}
|
|
730
|
-
|
|
731
|
-
.viking-callout-text {
|
|
732
|
-
margin: 0;
|
|
733
|
-
color: var(--viking-text);
|
|
734
|
-
line-height: var(--viking-line-height-relaxed);
|
|
735
|
-
}
|
|
736
|
-
|
|
737
|
-
.viking-callout-close {
|
|
738
|
-
display: inline-flex;
|
|
739
|
-
align-items: center;
|
|
740
|
-
justify-content: center;
|
|
741
|
-
min-width: var(--viking-touch-target-comfort, 44px);
|
|
742
|
-
min-height: var(--viking-touch-target-comfort, 44px);
|
|
743
|
-
border: none;
|
|
744
|
-
background: transparent;
|
|
745
|
-
color: var(--viking-text-muted);
|
|
746
|
-
cursor: pointer;
|
|
747
|
-
padding: var(--viking-space-half);
|
|
748
|
-
border-radius: var(--viking-radius);
|
|
749
|
-
transition: var(--viking-transition-interactive);
|
|
750
|
-
flex-shrink: 0;
|
|
751
|
-
}
|
|
752
|
-
|
|
753
|
-
.viking-callout-close:hover {
|
|
754
|
-
color: var(--viking-text);
|
|
755
|
-
background: color-mix(in srgb, currentColor 8%, transparent);
|
|
756
|
-
}
|
|
757
|
-
|
|
758
|
-
.viking-callout-close:focus-visible {
|
|
759
|
-
outline: var(--viking-ring-width) solid var(--viking-ring);
|
|
760
|
-
outline-offset: var(--viking-ring-offset);
|
|
761
|
-
}
|
|
762
|
-
|
|
763
|
-
.viking-callout-accent {
|
|
764
|
-
border-color: var(--viking-accent);
|
|
765
|
-
border-left-color: var(--viking-accent);
|
|
766
|
-
background: var(--viking-accent-soft);
|
|
767
|
-
}
|
|
768
|
-
|
|
769
|
-
.viking-callout-accent .viking-callout-icon {
|
|
770
|
-
color: var(--viking-accent);
|
|
771
|
-
}
|
|
772
|
-
|
|
773
|
-
.viking-callout-secondary {
|
|
774
|
-
border-color: color-mix(in srgb, var(--viking-accent-secondary) 45%, transparent);
|
|
775
|
-
border-left-color: var(--viking-accent-secondary);
|
|
776
|
-
background: var(--viking-accent-secondary-soft);
|
|
777
|
-
}
|
|
778
|
-
|
|
779
|
-
.viking-callout-secondary .viking-callout-icon {
|
|
780
|
-
color: var(--viking-accent-secondary);
|
|
781
|
-
}
|
|
782
|
-
|
|
783
|
-
.viking-callout-info {
|
|
784
|
-
border-color: color-mix(in srgb, var(--viking-info) 45%, transparent);
|
|
785
|
-
border-left-color: var(--viking-info);
|
|
786
|
-
background: color-mix(in srgb, var(--viking-info) 10%, var(--viking-surface));
|
|
787
|
-
}
|
|
788
|
-
|
|
789
|
-
.viking-callout-info .viking-callout-icon {
|
|
790
|
-
color: var(--viking-info);
|
|
791
|
-
}
|
|
792
|
-
|
|
793
|
-
.viking-callout-success {
|
|
794
|
-
border-color: color-mix(in srgb, var(--viking-success) 45%, transparent);
|
|
795
|
-
border-left-color: var(--viking-success);
|
|
796
|
-
background: color-mix(in srgb, var(--viking-success) 10%, var(--viking-surface));
|
|
797
|
-
}
|
|
798
|
-
|
|
799
|
-
.viking-callout-success .viking-callout-icon {
|
|
800
|
-
color: var(--viking-success);
|
|
801
|
-
}
|
|
802
|
-
|
|
803
|
-
.viking-callout-warning {
|
|
804
|
-
border-color: color-mix(in srgb, var(--viking-warning) 45%, transparent);
|
|
805
|
-
border-left-color: var(--viking-warning);
|
|
806
|
-
background: color-mix(in srgb, var(--viking-warning) 12%, var(--viking-surface));
|
|
807
|
-
}
|
|
808
|
-
|
|
809
|
-
.viking-callout-warning .viking-callout-icon {
|
|
810
|
-
color: var(--viking-warning);
|
|
811
|
-
}
|
|
812
|
-
|
|
813
|
-
.viking-callout-danger {
|
|
814
|
-
border-color: var(--viking-danger);
|
|
815
|
-
border-left-color: var(--viking-danger);
|
|
816
|
-
background: color-mix(in srgb, var(--viking-crimson-600) 22%, var(--viking-surface));
|
|
817
|
-
color: var(--viking-white);
|
|
818
|
-
}
|
|
819
|
-
|
|
820
|
-
.viking-callout-danger .viking-callout-icon {
|
|
821
|
-
color: var(--viking-crimson-400);
|
|
822
|
-
}
|
|
823
|
-
|
|
824
|
-
.viking-callout-danger .viking-callout-text {
|
|
825
|
-
color: var(--viking-white);
|
|
826
|
-
}
|
|
827
|
-
`,Rt=`
|
|
828
|
-
:host {
|
|
829
|
-
display: block;
|
|
830
|
-
font-family: var(--viking-font-family);
|
|
831
|
-
min-width: 0;
|
|
832
|
-
}
|
|
833
|
-
|
|
834
|
-
:host([width='full']) {
|
|
835
|
-
width: 100%;
|
|
836
|
-
}
|
|
837
|
-
|
|
838
|
-
:host([width='half']) {
|
|
839
|
-
width: 100%;
|
|
840
|
-
max-width: var(--viking-select-half-max-width, min(100%, 24rem));
|
|
841
|
-
}
|
|
842
|
-
|
|
843
|
-
.viking-field {
|
|
844
|
-
display: flex;
|
|
845
|
-
flex-direction: column;
|
|
846
|
-
gap: var(--viking-space-1);
|
|
847
|
-
}
|
|
848
|
-
|
|
849
|
-
.viking-field-label {
|
|
850
|
-
font-size: var(--viking-font-size-ui);
|
|
851
|
-
font-weight: var(--viking-font-weight-bold);
|
|
852
|
-
color: var(--viking-text);
|
|
853
|
-
}
|
|
854
|
-
|
|
855
|
-
.viking-field-description {
|
|
856
|
-
margin: 0;
|
|
857
|
-
font-size: var(--viking-font-size-xs);
|
|
858
|
-
color: var(--viking-text-muted);
|
|
859
|
-
}
|
|
860
|
-
|
|
861
|
-
.viking-field-error {
|
|
862
|
-
margin: 0;
|
|
863
|
-
font-size: var(--viking-font-size-xs);
|
|
864
|
-
color: var(--viking-danger);
|
|
865
|
-
}
|
|
866
|
-
|
|
867
|
-
.viking-select-native {
|
|
868
|
-
width: 100%;
|
|
869
|
-
min-height: var(--viking-control-height);
|
|
870
|
-
padding: 0 var(--viking-space-2);
|
|
871
|
-
border: 1px solid var(--viking-border-strong);
|
|
872
|
-
border-radius: var(--viking-radius);
|
|
873
|
-
background: var(--viking-surface);
|
|
874
|
-
color: var(--viking-text);
|
|
875
|
-
font-family: inherit;
|
|
876
|
-
font-size: var(--viking-font-size);
|
|
877
|
-
cursor: pointer;
|
|
878
|
-
transition: var(--viking-transition-interactive);
|
|
879
|
-
box-shadow: var(--viking-shadow-sm);
|
|
880
|
-
}
|
|
881
|
-
|
|
882
|
-
.viking-select-native:hover:not(:disabled) {
|
|
883
|
-
border-color: var(--viking-accent-strong);
|
|
884
|
-
box-shadow: var(--viking-shadow-md);
|
|
885
|
-
}
|
|
886
|
-
|
|
887
|
-
.viking-select-native:focus-visible {
|
|
888
|
-
outline: var(--viking-ring-width) solid var(--viking-ring);
|
|
889
|
-
outline-offset: var(--viking-ring-offset);
|
|
890
|
-
}
|
|
891
|
-
|
|
892
|
-
.viking-select-native:disabled {
|
|
893
|
-
opacity: var(--viking-state-disabled-opacity);
|
|
894
|
-
cursor: not-allowed;
|
|
895
|
-
}
|
|
896
|
-
|
|
897
|
-
.viking-select-native[aria-invalid='true'] {
|
|
898
|
-
border-color: var(--viking-danger);
|
|
899
|
-
}
|
|
900
|
-
`,Pt=`
|
|
901
|
-
:host {
|
|
902
|
-
display: contents;
|
|
903
|
-
}
|
|
904
|
-
|
|
905
|
-
.viking-modal-backdrop:not([open]) {
|
|
906
|
-
display: none !important;
|
|
907
|
-
pointer-events: none;
|
|
908
|
-
}
|
|
909
|
-
|
|
910
|
-
.viking-modal-backdrop {
|
|
911
|
-
position: fixed;
|
|
912
|
-
inset: 0;
|
|
913
|
-
z-index: var(--viking-z-overlay, 10001);
|
|
914
|
-
display: flex;
|
|
915
|
-
align-items: center;
|
|
916
|
-
justify-content: center;
|
|
917
|
-
padding: var(--viking-space-3);
|
|
918
|
-
background: var(--viking-overlay-backdrop);
|
|
919
|
-
backdrop-filter: blur(8px);
|
|
920
|
-
-webkit-backdrop-filter: blur(8px);
|
|
921
|
-
border: none;
|
|
922
|
-
animation: viking-backdrop-in var(--viking-duration-fast) var(--viking-ease-out);
|
|
923
|
-
}
|
|
924
|
-
|
|
925
|
-
.viking-modal-panel {
|
|
926
|
-
display: flex;
|
|
927
|
-
flex-direction: column;
|
|
928
|
-
gap: var(--viking-space-2);
|
|
929
|
-
width: min(522px, calc(100vw - var(--viking-space-4)));
|
|
930
|
-
max-height: calc(100vh - var(--viking-space-6));
|
|
931
|
-
padding: var(--viking-space-3);
|
|
932
|
-
border: 1px solid var(--viking-border-strong);
|
|
933
|
-
border-radius: var(--viking-radius-lg);
|
|
934
|
-
background: var(--viking-surface);
|
|
935
|
-
color: var(--viking-text);
|
|
936
|
-
box-shadow: var(--viking-shadow-lg);
|
|
937
|
-
font-family: var(--viking-font-family);
|
|
938
|
-
position: relative;
|
|
939
|
-
overflow: hidden;
|
|
940
|
-
animation: viking-modal-in var(--viking-duration) var(--viking-ease-default);
|
|
941
|
-
}
|
|
942
|
-
|
|
943
|
-
.viking-modal-panel::before {
|
|
944
|
-
content: '';
|
|
945
|
-
position: absolute;
|
|
946
|
-
inset: 0 0 auto;
|
|
947
|
-
height: 1px;
|
|
948
|
-
background: linear-gradient(
|
|
949
|
-
90deg,
|
|
950
|
-
transparent,
|
|
951
|
-
color-mix(in srgb, var(--viking-metallic-200) 22%, transparent),
|
|
952
|
-
transparent
|
|
953
|
-
);
|
|
954
|
-
pointer-events: none;
|
|
955
|
-
}
|
|
956
|
-
|
|
957
|
-
.viking-modal-header {
|
|
958
|
-
display: flex;
|
|
959
|
-
align-items: flex-start;
|
|
960
|
-
justify-content: space-between;
|
|
961
|
-
gap: var(--viking-space-2);
|
|
962
|
-
padding-bottom: var(--viking-space-1);
|
|
963
|
-
border-bottom: 1px solid var(--viking-border-subtle);
|
|
964
|
-
}
|
|
965
|
-
|
|
966
|
-
.viking-modal-heading {
|
|
967
|
-
margin: 0;
|
|
968
|
-
font-size: var(--viking-font-size-md);
|
|
969
|
-
font-weight: var(--viking-font-weight-bold);
|
|
970
|
-
letter-spacing: var(--viking-letter-spacing-tight);
|
|
971
|
-
color: var(--viking-text);
|
|
972
|
-
line-height: var(--viking-line-height-tight);
|
|
973
|
-
}
|
|
974
|
-
|
|
975
|
-
.viking-modal-close {
|
|
976
|
-
display: inline-flex;
|
|
977
|
-
align-items: center;
|
|
978
|
-
justify-content: center;
|
|
979
|
-
min-width: var(--viking-touch-target-comfort, 44px);
|
|
980
|
-
min-height: var(--viking-touch-target-comfort, 44px);
|
|
981
|
-
border: 1px solid transparent;
|
|
982
|
-
background: transparent;
|
|
983
|
-
color: var(--viking-text-muted);
|
|
984
|
-
cursor: pointer;
|
|
985
|
-
border-radius: var(--viking-radius);
|
|
986
|
-
transition: var(--viking-transition-interactive);
|
|
987
|
-
flex-shrink: 0;
|
|
988
|
-
}
|
|
989
|
-
|
|
990
|
-
.viking-modal-close:hover {
|
|
991
|
-
color: var(--viking-text);
|
|
992
|
-
background: var(--viking-accent-soft);
|
|
993
|
-
border-color: var(--viking-border-subtle);
|
|
994
|
-
}
|
|
995
|
-
|
|
996
|
-
.viking-modal-close:focus-visible {
|
|
997
|
-
outline: var(--viking-ring-width) solid var(--viking-ring);
|
|
998
|
-
outline-offset: var(--viking-ring-offset);
|
|
999
|
-
}
|
|
1000
|
-
|
|
1001
|
-
.viking-modal-body {
|
|
1002
|
-
overflow-y: auto;
|
|
1003
|
-
color: var(--viking-text-muted);
|
|
1004
|
-
font-size: var(--viking-font-size);
|
|
1005
|
-
line-height: var(--viking-line-height-relaxed);
|
|
1006
|
-
}
|
|
1007
|
-
|
|
1008
|
-
.viking-modal-footer {
|
|
1009
|
-
display: flex;
|
|
1010
|
-
flex-wrap: wrap;
|
|
1011
|
-
gap: var(--viking-space-2);
|
|
1012
|
-
justify-content: flex-end;
|
|
1013
|
-
padding-top: var(--viking-space-2);
|
|
1014
|
-
border-top: 1px solid var(--viking-border-subtle);
|
|
1015
|
-
}
|
|
1016
|
-
|
|
1017
|
-
.viking-modal-footer:empty {
|
|
1018
|
-
display: none;
|
|
1019
|
-
}
|
|
1020
|
-
|
|
1021
|
-
@keyframes viking-backdrop-in {
|
|
1022
|
-
from { opacity: 0; }
|
|
1023
|
-
to { opacity: 1; }
|
|
1024
|
-
}
|
|
1025
|
-
|
|
1026
|
-
@keyframes viking-modal-in {
|
|
1027
|
-
from {
|
|
1028
|
-
opacity: 0;
|
|
1029
|
-
transform: translateY(var(--viking-space-1)) scale(0.98);
|
|
1030
|
-
}
|
|
1031
|
-
to {
|
|
1032
|
-
opacity: 1;
|
|
1033
|
-
transform: translateY(0) scale(1);
|
|
1034
|
-
}
|
|
1035
|
-
}
|
|
1036
|
-
|
|
1037
|
-
@media (prefers-reduced-motion: reduce) {
|
|
1038
|
-
.viking-modal-backdrop,
|
|
1039
|
-
.viking-modal-panel {
|
|
1040
|
-
animation: none;
|
|
1041
|
-
}
|
|
1042
|
-
}
|
|
1043
|
-
`,Bt=`
|
|
1044
|
-
:host {
|
|
1045
|
-
display: contents;
|
|
1046
|
-
}
|
|
1047
|
-
|
|
1048
|
-
.viking-search-palette-backdrop {
|
|
1049
|
-
position: fixed;
|
|
1050
|
-
inset: 0;
|
|
1051
|
-
z-index: var(--viking-z-overlay, 10001);
|
|
1052
|
-
display: flex;
|
|
1053
|
-
align-items: flex-start;
|
|
1054
|
-
justify-content: center;
|
|
1055
|
-
padding: 10vh var(--viking-space-2) var(--viking-space-2);
|
|
1056
|
-
background: var(--viking-overlay-backdrop);
|
|
1057
|
-
backdrop-filter: blur(8px);
|
|
1058
|
-
-webkit-backdrop-filter: blur(8px);
|
|
1059
|
-
border: none;
|
|
1060
|
-
animation: viking-backdrop-in var(--viking-duration-fast) var(--viking-ease-out);
|
|
1061
|
-
}
|
|
1062
|
-
|
|
1063
|
-
.viking-search-palette-backdrop:not([open]) {
|
|
1064
|
-
display: none !important;
|
|
1065
|
-
pointer-events: none;
|
|
1066
|
-
}
|
|
1067
|
-
|
|
1068
|
-
.viking-search-palette {
|
|
1069
|
-
display: flex;
|
|
1070
|
-
flex-direction: column;
|
|
1071
|
-
background: var(--viking-surface-raised, var(--viking-surface));
|
|
1072
|
-
border: 1px solid var(--viking-border-strong);
|
|
1073
|
-
border-radius: var(--viking-radius-lg);
|
|
1074
|
-
box-shadow: var(--viking-shadow-lg);
|
|
1075
|
-
overflow: hidden;
|
|
1076
|
-
max-width: 600px;
|
|
1077
|
-
width: min(100%, 600px);
|
|
1078
|
-
margin: 0 auto;
|
|
1079
|
-
font-family: var(--viking-font-family);
|
|
1080
|
-
color: var(--viking-text);
|
|
1081
|
-
animation: viking-modal-in var(--viking-duration) var(--viking-ease-default);
|
|
1082
|
-
position: relative;
|
|
1083
|
-
isolation: isolate;
|
|
1084
|
-
}
|
|
1085
|
-
|
|
1086
|
-
.viking-search-palette::before {
|
|
1087
|
-
content: '';
|
|
1088
|
-
position: absolute;
|
|
1089
|
-
inset: 0 0 auto;
|
|
1090
|
-
height: 1px;
|
|
1091
|
-
background: linear-gradient(
|
|
1092
|
-
90deg,
|
|
1093
|
-
transparent,
|
|
1094
|
-
color-mix(in srgb, var(--viking-metallic-200) 22%, transparent),
|
|
1095
|
-
transparent
|
|
1096
|
-
);
|
|
1097
|
-
pointer-events: none;
|
|
1098
|
-
z-index: 1;
|
|
1099
|
-
}
|
|
1100
|
-
|
|
1101
|
-
.viking-search-palette-header {
|
|
1102
|
-
display: flex;
|
|
1103
|
-
align-items: center;
|
|
1104
|
-
padding: var(--viking-space-2);
|
|
1105
|
-
border-bottom: 1px solid var(--viking-border);
|
|
1106
|
-
gap: var(--viking-space-1);
|
|
1107
|
-
background: color-mix(in srgb, var(--viking-bg) 26%, var(--viking-surface-raised));
|
|
1108
|
-
}
|
|
1109
|
-
|
|
1110
|
-
.viking-search-palette-header:focus-within {
|
|
1111
|
-
border-bottom-color: var(--viking-accent);
|
|
1112
|
-
box-shadow: inset 0 -2px 0 var(--viking-accent-soft);
|
|
1113
|
-
}
|
|
1114
|
-
|
|
1115
|
-
.viking-search-palette-icon {
|
|
1116
|
-
color: var(--viking-text-muted);
|
|
1117
|
-
flex-shrink: 0;
|
|
1118
|
-
}
|
|
1119
|
-
|
|
1120
|
-
.viking-search-palette-input {
|
|
1121
|
-
flex: 1;
|
|
1122
|
-
background: none;
|
|
1123
|
-
border: none;
|
|
1124
|
-
outline: none;
|
|
1125
|
-
font-size: calc(var(--viking-font-size) * 1.05);
|
|
1126
|
-
color: var(--viking-text);
|
|
1127
|
-
font-family: inherit;
|
|
1128
|
-
min-width: 0;
|
|
1129
|
-
}
|
|
1130
|
-
|
|
1131
|
-
.viking-search-palette-input::placeholder {
|
|
1132
|
-
color: var(--viking-text-muted);
|
|
1133
|
-
}
|
|
1134
|
-
|
|
1135
|
-
.viking-search-palette-close {
|
|
1136
|
-
display: inline-flex;
|
|
1137
|
-
align-items: center;
|
|
1138
|
-
justify-content: center;
|
|
1139
|
-
min-width: var(--viking-touch-target-comfort, 44px);
|
|
1140
|
-
min-height: var(--viking-touch-target-comfort, 44px);
|
|
1141
|
-
border: none;
|
|
1142
|
-
background: transparent;
|
|
1143
|
-
color: var(--viking-text-muted);
|
|
1144
|
-
cursor: pointer;
|
|
1145
|
-
padding: var(--viking-space-half);
|
|
1146
|
-
border-radius: var(--viking-radius);
|
|
1147
|
-
transition: var(--viking-transition-interactive);
|
|
1148
|
-
flex-shrink: 0;
|
|
1149
|
-
}
|
|
1150
|
-
|
|
1151
|
-
.viking-search-palette-close:hover {
|
|
1152
|
-
color: var(--viking-text);
|
|
1153
|
-
background: var(--viking-accent-soft);
|
|
1154
|
-
}
|
|
1155
|
-
|
|
1156
|
-
.viking-search-palette-close:focus-visible {
|
|
1157
|
-
outline: var(--viking-ring-width) solid var(--viking-ring);
|
|
1158
|
-
outline-offset: var(--viking-ring-offset);
|
|
1159
|
-
}
|
|
1160
|
-
|
|
1161
|
-
.viking-search-palette-body {
|
|
1162
|
-
max-height: 50vh;
|
|
1163
|
-
overflow-y: auto;
|
|
1164
|
-
padding: var(--viking-space-2);
|
|
1165
|
-
}
|
|
1166
|
-
|
|
1167
|
-
.viking-search-palette-footer {
|
|
1168
|
-
display: flex;
|
|
1169
|
-
align-items: center;
|
|
1170
|
-
justify-content: center;
|
|
1171
|
-
gap: var(--viking-space-1);
|
|
1172
|
-
padding: var(--viking-space-1) var(--viking-space-2);
|
|
1173
|
-
border-top: 1px solid var(--viking-border);
|
|
1174
|
-
font-size: calc(var(--viking-font-size) * 0.85);
|
|
1175
|
-
color: var(--viking-text-muted);
|
|
1176
|
-
}
|
|
1177
|
-
|
|
1178
|
-
.viking-kbd {
|
|
1179
|
-
display: inline-flex;
|
|
1180
|
-
align-items: center;
|
|
1181
|
-
justify-content: center;
|
|
1182
|
-
min-width: 1.5rem;
|
|
1183
|
-
padding: 2px 6px;
|
|
1184
|
-
font-family: inherit;
|
|
1185
|
-
font-size: calc(var(--viking-font-size) * 0.75);
|
|
1186
|
-
border-radius: calc(var(--viking-radius) / 2);
|
|
1187
|
-
border: 1px solid var(--viking-border);
|
|
1188
|
-
background: var(--viking-surface-alt);
|
|
1189
|
-
}
|
|
1190
|
-
|
|
1191
|
-
.viking-search-results {
|
|
1192
|
-
display: flex;
|
|
1193
|
-
flex-direction: column;
|
|
1194
|
-
gap: var(--viking-space-1);
|
|
1195
|
-
}
|
|
1196
|
-
|
|
1197
|
-
.viking-search-group-label {
|
|
1198
|
-
margin: var(--viking-space-1) 0 var(--viking-space-half);
|
|
1199
|
-
padding: 0 var(--viking-space-1);
|
|
1200
|
-
font-size: var(--viking-font-size-2xs);
|
|
1201
|
-
font-weight: var(--viking-font-weight-semibold);
|
|
1202
|
-
letter-spacing: var(--viking-letter-spacing-caps);
|
|
1203
|
-
text-transform: uppercase;
|
|
1204
|
-
color: var(--viking-text-muted);
|
|
1205
|
-
}
|
|
1206
|
-
|
|
1207
|
-
.viking-search-result {
|
|
1208
|
-
display: flex;
|
|
1209
|
-
align-items: center;
|
|
1210
|
-
min-height: var(--viking-control-height-sm, 36px);
|
|
1211
|
-
padding: var(--viking-space-1) var(--viking-space-2);
|
|
1212
|
-
border-radius: var(--viking-radius);
|
|
1213
|
-
background: var(--viking-surface-alt);
|
|
1214
|
-
border: 1px solid var(--viking-border-subtle);
|
|
1215
|
-
cursor: pointer;
|
|
1216
|
-
transition: var(--viking-transition-interactive);
|
|
1217
|
-
gap: var(--viking-space-1);
|
|
1218
|
-
text-decoration: none;
|
|
1219
|
-
color: inherit;
|
|
1220
|
-
}
|
|
1221
|
-
|
|
1222
|
-
.viking-search-result:hover,
|
|
1223
|
-
.viking-search-result.is-selected {
|
|
1224
|
-
background: color-mix(in srgb, var(--viking-accent) 10%, var(--viking-surface-alt));
|
|
1225
|
-
border-color: color-mix(in srgb, var(--viking-accent) 42%, var(--viking-border-strong));
|
|
1226
|
-
box-shadow: var(--viking-shadow-sm);
|
|
1227
|
-
}
|
|
1228
|
-
|
|
1229
|
-
.viking-search-result:focus-visible {
|
|
1230
|
-
outline: var(--viking-ring-width) solid var(--viking-ring);
|
|
1231
|
-
outline-offset: var(--viking-ring-offset);
|
|
1232
|
-
}
|
|
1233
|
-
|
|
1234
|
-
.viking-search-result-title {
|
|
1235
|
-
font-size: var(--viking-font-size-sm);
|
|
1236
|
-
font-weight: var(--viking-font-weight-semibold);
|
|
1237
|
-
color: var(--viking-text);
|
|
1238
|
-
}
|
|
1239
|
-
|
|
1240
|
-
.viking-search-result-snippet {
|
|
1241
|
-
font-size: var(--viking-font-size-xs);
|
|
1242
|
-
color: var(--viking-text-muted);
|
|
1243
|
-
}
|
|
1244
|
-
|
|
1245
|
-
.viking-search-empty {
|
|
1246
|
-
padding: var(--viking-space-3);
|
|
1247
|
-
text-align: center;
|
|
1248
|
-
color: var(--viking-text-muted);
|
|
1249
|
-
font-size: var(--viking-font-size-sm);
|
|
1250
|
-
}
|
|
1251
|
-
|
|
1252
|
-
@keyframes viking-backdrop-in {
|
|
1253
|
-
from { opacity: 0; }
|
|
1254
|
-
to { opacity: 1; }
|
|
1255
|
-
}
|
|
1256
|
-
|
|
1257
|
-
@keyframes viking-modal-in {
|
|
1258
|
-
from {
|
|
1259
|
-
opacity: 0;
|
|
1260
|
-
transform: translateY(var(--viking-space-1)) scale(0.98);
|
|
1261
|
-
}
|
|
1262
|
-
to {
|
|
1263
|
-
opacity: 1;
|
|
1264
|
-
transform: translateY(0) scale(1);
|
|
1265
|
-
}
|
|
1266
|
-
}
|
|
1267
|
-
|
|
1268
|
-
@media (prefers-reduced-motion: reduce) {
|
|
1269
|
-
.viking-search-palette-backdrop,
|
|
1270
|
-
.viking-search-palette {
|
|
1271
|
-
animation: none;
|
|
1272
|
-
}
|
|
1273
|
-
}
|
|
1274
|
-
`;var ce=new Set(["accent","secondary","success","warning","danger","info","muted","subtle"]),S=class extends c{static tag="viking-badge";static legacyTag="viking-badge-wc";static get observedAttributes(){return["tone","size","icon","removable"]}shadow;constructor(){super(),this.shadow=this.attachShadow({mode:"open"}),u(this.shadow,Ot)}connectedCallback(){this.render()}attributeChangedCallback(){this.isConnected&&this.render()}get tone(){let t=this.getAttribute("tone")??"";return ce.has(t)?t:null}get size(){return this.getAttribute("size")==="sm"?"sm":null}get removable(){return this.hasAttribute("removable")&&this.getAttribute("removable")!=="false"}onRemove=()=>{this.dispatchEvent(new CustomEvent("viking-removed",{bubbles:!0,composed:!0}))};render(){let t=this.tone;t&&this.getAttribute("tone")!==t?this.setAttribute("tone",t):!t&&this.hasAttribute("tone")&&this.removeAttribute("tone");let i=this.size;i&&this.getAttribute("size")!==i?this.setAttribute("size",i):!i&&this.hasAttribute("size")&&this.removeAttribute("size");let r=this.getAttribute("icon")??(t?J[t]:null),a=r?h(r,16):"";this.shadow.innerHTML=`
|
|
1275
|
-
${a}
|
|
1276
|
-
<span part="label"><slot></slot></span>
|
|
1277
|
-
${this.removable?`<button type="button" class="viking-badge-remove" part="remove" aria-label="Remove">${h("x",14)}</button>`:""}
|
|
1278
|
-
`,this.shadow.querySelector(".viking-badge-remove")?.addEventListener("click",this.onRemove)}},Q=()=>{l(S.tag,S),d(S.legacyTag,S)};var de=new Set(["outline","primary","secondary","filled","danger","ghost","subtle"]),ge=new Set(["sm","xs"]),R=class extends c{static angularTag="viking-button";static tag="viking-button-wc";static get observedAttributes(){return["variant","size","type","disabled","loading","href","target","aria-label","aria-busy","square","full-width","compact"]}shadow;control=null;constructor(){super(),this.shadow=this.attachShadow({mode:"open"}),u(this.shadow,Nt)}connectedCallback(){this.render(),this.control?.addEventListener("click",this.onClick)}disconnectedCallback(){this.control?.removeEventListener("click",this.onClick)}attributeChangedCallback(){this.isConnected&&this.render()}onClick=t=>{if(this.disabled||this.loading){t.preventDefault(),t.stopPropagation();return}this.dispatchEvent(new CustomEvent("viking-press",{bubbles:!0,composed:!0,detail:t}))};get variant(){let t=this.getAttribute("variant")??"outline";return de.has(t)?t:"outline"}get size(){let t=this.getAttribute("size");return t&&ge.has(t)?t:null}get disabled(){return k(this,"disabled")}get loading(){return k(this,"loading")}get square(){return k(this,"square")}render(){let t=this.getAttribute("href"),i=!!t,r=i?"a":"button",a=["viking-btn",`viking-btn-${this.variant}`,this.size?`viking-btn-${this.size}`:"",this.square?"viking-btn-square":""].filter(Boolean).join(" "),o=this.getAttribute("aria-label")??"",s=this.getAttribute("aria-busy")==="true"||this.loading?"true":null,v=n(this.getAttribute("type")??"button"),g=t?n(t):"",p=this.getAttribute("target"),f=p?n(p):"";this.shadow.innerHTML=`
|
|
1279
|
-
<${r}
|
|
1280
|
-
class="${a}"
|
|
1281
|
-
part="control"
|
|
1282
|
-
${i?`href="${g}"`:`type="${v}"`}
|
|
1283
|
-
${i&&f?`target="${f}"`:""}
|
|
1284
|
-
${i&&p==="_blank"?'rel="noopener noreferrer"':""}
|
|
1285
|
-
${this.disabled||this.loading?"disabled":""}
|
|
1286
|
-
${o?`aria-label="${n(o)}"`:""}
|
|
1287
|
-
${s?`aria-busy="${s}"`:""}
|
|
1288
|
-
${this.disabled&&i?'aria-disabled="true" tabindex="-1"':""}
|
|
1289
|
-
>
|
|
1290
|
-
${this.loading?'<span class="viking-btn-spinner" aria-hidden="true"></span>':""}
|
|
1291
|
-
<span class="viking-btn-label" part="label"><slot></slot></span>
|
|
1292
|
-
</${r}>
|
|
1293
|
-
`,this.control=this.shadow.querySelector(r)}},tt=()=>{l(R.tag,R)};var ve=new Set(["accent","secondary","success","warning","danger","info","muted"]),E=class extends c{static tag="viking-callout";static legacyTag="viking-callout-wc";static get observedAttributes(){return["tone","heading","icon","dismissible","hidden"]}shadow;constructor(){super(),this.shadow=this.attachShadow({mode:"open"}),u(this.shadow,zt)}connectedCallback(){this.render()}attributeChangedCallback(){this.isConnected&&this.render()}get tone(){let t=this.getAttribute("tone")??"info";return ve.has(t)?t:"info"}get dismissible(){return this.hasAttribute("dismissible")&&this.getAttribute("dismissible")!=="false"}onDismiss=()=>{this.setAttribute("hidden",""),this.dispatchEvent(new CustomEvent("viking-close",{bubbles:!0,composed:!0}))};render(){let t=this.getAttribute("heading")??"",i=this.getAttribute("icon")??J[this.tone]??"info",r=h(i,22,"viking-callout-icon");this.shadow.innerHTML=`
|
|
1294
|
-
<div class="viking-callout viking-callout-${this.tone}" role="note" part="surface">
|
|
1295
|
-
<span part="icon">${r}</span>
|
|
1296
|
-
<div class="viking-callout-body" part="body">
|
|
1297
|
-
${t?`<p class="viking-callout-heading" part="heading">${n(t)}</p>`:""}
|
|
1298
|
-
<div class="viking-callout-text" part="text"><slot></slot></div>
|
|
1299
|
-
</div>
|
|
1300
|
-
${this.dismissible?`<button type="button" class="viking-callout-close" part="close" aria-label="Dismiss">${h("x",18)}</button>`:""}
|
|
1301
|
-
</div>
|
|
1302
|
-
`,this.shadow.querySelector(".viking-callout-close")?.addEventListener("click",this.onDismiss)}},et=()=>{l(E.tag,E),d(E.legacyTag,E)};var I=class extends c{static tag="viking-card";static legacyTag="viking-card-wc";static get observedAttributes(){return["compact","interactive","title","loading"]}connectedCallback(){this.syncClasses()}attributeChangedCallback(){this.isConnected&&this.syncClasses()}syncClasses(){this.classList.add("viking-card"),this.classList.toggle("viking-card-compact",this.hasAttribute("compact")),this.classList.toggle("viking-card-interactive",this.hasAttribute("interactive")),this.classList.toggle("viking-card-loading",this.hasAttribute("loading"));let t=this.getAttribute("title");t?(this.setAttribute("role","region"),this.setAttribute("aria-label",t)):(this.removeAttribute("role"),this.removeAttribute("aria-label"))}},it=()=>{l(I.tag,I),d(I.legacyTag,I)};var A=class extends c{static tag="viking-field";static legacyTag="viking-field-wc";static get observedAttributes(){return["label","description","error","required","width"]}shadow;labelId=_("viking-field-label");descriptionId=_("viking-field-description");errorId=_("viking-field-error");slotEl=null;constructor(){super(),this.shadow=this.attachShadow({mode:"open"}),u(this.shadow,Dt)}connectedCallback(){this.render(),this.syncControlA11y()}disconnectedCallback(){this.slotEl?.removeEventListener("slotchange",this.syncControlA11y)}attributeChangedCallback(){this.isConnected&&(this.render(),this.syncControlA11y())}get control(){return(this.slotEl?.assignedElements({flatten:!0})??[]).find(i=>i instanceof HTMLElement)??null}focusControl=()=>{this.control?.focus?.()};syncControlA11y=()=>{let t=this.control;if(!t)return;let i=[this.getAttribute("description")??"",this.getAttribute("error")??""].filter(Boolean).join(" "),r=this.getAttribute("label")??"";r&&!t.hasAttribute("aria-label")&&t.setAttribute("aria-label",r),i?t.setAttribute("aria-description",i):t.removeAttribute("aria-description"),this.getAttribute("error")?(t.setAttribute("aria-invalid","true"),t.setAttribute("error",this.getAttribute("error")??"")):(t.removeAttribute("aria-invalid"),t.getAttribute("error")===""&&t.removeAttribute("error")),k(this,"required")&&t.setAttribute("required","")};render(){let t=this.getAttribute("label")??"",i=this.getAttribute("description")??"",r=this.getAttribute("error")??"",a=k(this,"required");this.shadow.innerHTML=`
|
|
1303
|
-
<div class="viking-field" part="field" role="group" aria-labelledby="${this.labelId}">
|
|
1304
|
-
${t?`<div class="viking-field-label-row" part="label-row">
|
|
1305
|
-
<span class="viking-field-label" part="label" id="${this.labelId}">
|
|
1306
|
-
<span>${n(t)}</span>
|
|
1307
|
-
${a?'<span class="viking-field-required" aria-label="required">*</span>':""}
|
|
1308
|
-
</span>
|
|
1309
|
-
</div>`:`<span id="${this.labelId}" hidden>Form field</span>`}
|
|
1310
|
-
<div class="viking-field-control" part="control"><slot></slot></div>
|
|
1311
|
-
${i?`<p id="${this.descriptionId}" class="viking-field-description" part="description">${n(i)}</p>`:""}
|
|
1312
|
-
${r?`<p id="${this.errorId}" class="viking-field-error" part="error" role="alert">${n(r)}</p>`:""}
|
|
1313
|
-
</div>
|
|
1314
|
-
`,this.slotEl=this.shadow.querySelector("slot"),this.slotEl?.addEventListener("slotchange",this.syncControlA11y),this.shadow.querySelector(".viking-field-label")?.addEventListener("click",this.focusControl)}},rt=()=>{l(A.tag,A),d(A.legacyTag,A)};var M=class extends c{static formAssociated=!0;static tag="viking-input";static legacyTag="viking-input-wc";static get observedAttributes(){return["type","placeholder","value","disabled","loading","clearable","name","autocomplete","required","readonly","minlength","maxlength","pattern","error","aria-label","aria-describedby","bare"]}shadow;internals;input=null;constructor(){super(),this.shadow=this.attachShadow({mode:"open"}),this.internals=Y(this),u(this.shadow,Ht)}connectedCallback(){this.render(),this.syncFormValue()}attributeChangedCallback(t){if(this.isConnected){if(t==="value"&&this.input){this.input.value=this.getAttribute("value")??"",this.syncFormValue();return}this.render()}}get value(){return this.input?.value??this.getAttribute("value")??""}set value(t){let i=t??"";this.setAttribute("value",i),this.input&&(this.input.value=i),this.syncFormValue()}get disabled(){return k(this,"disabled")}get loading(){return k(this,"loading")}get clearable(){return k(this,"clearable")}get bare(){return k(this,"bare")}onInput=()=>{let t=this.input?.value??"";this.setAttribute("value",t),this.syncFormValue(),this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))};onBlur=()=>{this.dispatchEvent(new Event("blur",{bubbles:!0,composed:!0}))};onClear=()=>{this.value="",this.input?.focus(),this.dispatchEvent(new CustomEvent("viking-cleared",{bubbles:!0,composed:!0})),this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0}))};syncFormValue(){j(this.internals,this.value)}render(){let t=["viking-input-shell",this.disabled?"viking-disabled":"",this.loading?"viking-loading":""].filter(Boolean).join(" "),i=n(this.getAttribute("type")??"text"),r=this.getAttribute("placeholder")??"",a=n(r),o=n(this.getAttribute("value")??""),s=this.getAttribute("aria-label")??(r||"Text input"),v=n(this.getAttribute("autocomplete")??""),g=n(this.getAttribute("aria-describedby")??""),p=n(this.getAttribute("minlength")??""),f=n(this.getAttribute("maxlength")??""),m=n(this.getAttribute("pattern")??""),x=this.getAttribute("error")??"",H=k(this,"required"),D=k(this,"readonly"),Jt=this.clearable&&o.length>0&&!this.loading&&!this.bare,St=`
|
|
1315
|
-
${this.disabled||this.loading?"disabled":""}
|
|
1316
|
-
${H?"required":""}
|
|
1317
|
-
${D?"readonly":""}
|
|
1318
|
-
aria-label="${n(s)}"
|
|
1319
|
-
${g?`aria-describedby="${g}"`:""}
|
|
1320
|
-
${this.loading?'aria-busy="true"':""}
|
|
1321
|
-
${x?'aria-invalid="true"':""}
|
|
1322
|
-
${v?`autocomplete="${v}"`:""}
|
|
1323
|
-
${p?`minlength="${p}"`:""}
|
|
1324
|
-
${f?`maxlength="${f}"`:""}
|
|
1325
|
-
${m?`pattern="${m}"`:""}
|
|
1326
|
-
`;this.bare?this.shadow.innerHTML=`
|
|
1327
|
-
<input
|
|
1328
|
-
part="input"
|
|
1329
|
-
class="viking-input-native"
|
|
1330
|
-
type="${i}"
|
|
1331
|
-
placeholder="${a}"
|
|
1332
|
-
value="${o}"
|
|
1333
|
-
${St}
|
|
1334
|
-
/>
|
|
1335
|
-
`:this.shadow.innerHTML=`
|
|
1336
|
-
<div class="${t}" part="shell">
|
|
1337
|
-
<slot name="leading"></slot>
|
|
1338
|
-
<input
|
|
1339
|
-
part="input"
|
|
1340
|
-
type="${i}"
|
|
1341
|
-
placeholder="${a}"
|
|
1342
|
-
value="${o}"
|
|
1343
|
-
${St}
|
|
1344
|
-
/>
|
|
1345
|
-
${this.loading?'<span class="viking-input-spinner" aria-hidden="true"></span>':""}
|
|
1346
|
-
${Jt?'<button type="button" class="viking-input-clear" aria-label="Clear input" part="clear">\xD7</button>':""}
|
|
1347
|
-
<slot name="trailing"></slot>
|
|
1348
|
-
</div>
|
|
1349
|
-
`,this.input=this.shadow.querySelector("input"),this.input?.addEventListener("input",this.onInput),this.input?.addEventListener("blur",this.onBlur),this.shadow.querySelector(".viking-input-clear")?.addEventListener("click",this.onClear)}},nt=()=>{l(M.tag,M),d(M.legacyTag,M)};var C=class extends c{static angularTag="viking-modal";static tag="viking-modal-wc";static dialogTag="viking-dialog";static get observedAttributes(){return["open","title","dismissible"]}shadow;dialogEl=null;constructor(){super(),this.shadow=this.attachShadow({mode:"open"}),u(this.shadow,Pt)}connectedCallback(){this.render(),this.syncOpen(),this.dialogEl?.addEventListener("close",this.onClose),this.dialogEl?.addEventListener("click",this.onBackdropClick)}disconnectedCallback(){this.dialogEl?.removeEventListener("close",this.onClose),this.dialogEl?.removeEventListener("click",this.onBackdropClick)}attributeChangedCallback(t){if(this.isConnected){if(t==="open"){this.syncOpen();return}if(t==="title"){this.updateTitle();return}t==="dismissible"&&(this.render(),this.syncOpen())}}openModal(){this.setAttribute("open",""),this.syncOpen()}closeModal(){this.removeAttribute("open"),O(this.dialogEl)}open(){this.openModal()}close(){this.closeModal()}get dismissible(){return this.getAttribute("dismissible")!=="false"}onClose=()=>{this.removeAttribute("open"),this.dispatchEvent(new CustomEvent("viking-close",{bubbles:!0,composed:!0}))};onBackdropClick=t=>{this.dismissible&&t.target===this.dialogEl&&this.closeModal()};syncOpen(){if(!this.dialogEl)return;let t=this.hasAttribute("open");t&&!this.dialogEl.open?(X(this.dialogEl),queueMicrotask(()=>{(this.shadow.querySelector(".viking-modal-close")??this.dialogEl)?.focus()})):!t&&this.dialogEl.open&&O(this.dialogEl)}updateTitle(){let t=this.getAttribute("title")??"Dialog",i=this.shadow.querySelector(".viking-modal-heading");i&&(i.textContent=t),this.dialogEl?.setAttribute("aria-label",t)}render(){let t=this.getAttribute("title")??"Dialog";this.shadow.innerHTML=`
|
|
1350
|
-
<dialog class="viking-modal-backdrop" aria-label="${n(t)}" aria-modal="true">
|
|
1351
|
-
<div class="viking-modal-panel" part="panel" role="document">
|
|
1352
|
-
<header class="viking-modal-header" part="header">
|
|
1353
|
-
<h2 class="viking-modal-heading" part="title">${n(t)}</h2>
|
|
1354
|
-
${this.dismissible?`<button type="button" class="viking-modal-close" part="close" aria-label="Close dialog">${h("x",20)}</button>`:""}
|
|
1355
|
-
</header>
|
|
1356
|
-
<div class="viking-modal-body" part="body"><slot></slot></div>
|
|
1357
|
-
<footer class="viking-modal-footer" part="footer"><slot name="actions"></slot></footer>
|
|
1358
|
-
</div>
|
|
1359
|
-
</dialog>
|
|
1360
|
-
`,this.dialogEl=this.shadow.querySelector("dialog"),this.shadow.querySelector(".viking-modal-close")?.addEventListener("click",()=>this.closeModal()),this.dialogEl?.addEventListener("keydown",i=>{i.key==="Escape"&&this.dismissible&&(i.preventDefault(),this.closeModal())})}},at=()=>{l(C.tag,C),d(C.dialogTag,C)};var he=e=>{let t=e.getAttribute("items");if(!t)return[];try{let i=JSON.parse(t);return Array.isArray(i)?i:[]}catch{return[]}},ue=(e,t)=>[e.title,e.snippet??"",e.group??"",e.href,...e.keywords??[]].join(" ").toLowerCase().includes(t),pe=(e,t)=>{let i=t.trim().toLowerCase();return i?e.filter(r=>ue(r,i)):e},ke=e=>{let t=new Map;return e.forEach(i=>{let r=i.group??null,a=t.get(r)??[];a.push(i),t.set(r,a)}),Array.from(t.entries()).map(([i,r])=>({group:i,items:r}))},y=class extends c{static tag="viking-command-palette";static searchTag="viking-search-palette";static legacyTag="viking-search-palette-wc";static get observedAttributes(){return["open","placeholder","items","global-shortcut"]}shadow;dialogEl=null;inputEl=null;resultsEl=null;globalKeyHandler=null;resultsId=_("viking-search-results");inputId=_("viking-search-input");query="";activeIndex=0;flatResults=[];constructor(){super(),this.shadow=this.attachShadow({mode:"open"}),u(this.shadow,Bt)}connectedCallback(){this.render(),this.removeAttribute("open"),this.syncOpen(),this.bindGlobalShortcut(),this.dialogEl?.addEventListener("close",this.onClose),this.dialogEl?.addEventListener("click",this.onBackdropClick),this.inputEl?.addEventListener("input",this.onInput),this.inputEl?.addEventListener("keydown",this.onInputKeydown)}disconnectedCallback(){this.dialogEl?.removeEventListener("close",this.onClose),this.dialogEl?.removeEventListener("click",this.onBackdropClick),this.inputEl?.removeEventListener("input",this.onInput),this.inputEl?.removeEventListener("keydown",this.onInputKeydown),this.unbindGlobalShortcut()}attributeChangedCallback(t){if(this.isConnected&&(t==="open"&&this.syncOpen(),t==="global-shortcut"&&(this.unbindGlobalShortcut(),this.bindGlobalShortcut()),t==="items"||t==="placeholder"))if(t==="placeholder"&&this.inputEl){let i=this.getAttribute("placeholder")??"Search documentation, dashboard, API\u2026";this.inputEl.placeholder=i,this.inputEl.setAttribute("aria-label",i)}else this.renderResults()}openPalette(){this.setAttribute("open",""),this.syncOpen()}closePalette(){this.removeAttribute("open"),O(this.dialogEl)}search(t){this.query=t,this.inputEl&&(this.inputEl.value=t),this.activeIndex=0,this.renderResults(),this.dispatchEvent(new CustomEvent("viking-query",{bubbles:!0,composed:!0,detail:{query:this.query}}))}onClose=()=>{this.removeAttribute("open"),this.query="",this.activeIndex=0,this.inputEl&&(this.inputEl.value=""),this.dispatchEvent(new CustomEvent("viking-close",{bubbles:!0,composed:!0}))};onBackdropClick=t=>{t.target===this.dialogEl&&this.closePalette()};onInput=t=>{this.query=t.target.value??this.inputEl?.value??"",this.activeIndex=0,this.renderResults(),this.dispatchEvent(new CustomEvent("viking-query",{bubbles:!0,composed:!0,detail:{query:this.query}}))};onInputKeydown=t=>{if(this.flatResults.length===0){t.key==="Escape"&&(t.preventDefault(),this.closePalette());return}if(t.key==="ArrowDown"){t.preventDefault(),this.activeIndex=Math.min(this.flatResults.length-1,this.activeIndex+1),this.renderResults(),this.scrollActiveIntoView();return}if(t.key==="ArrowUp"){t.preventDefault(),this.activeIndex=Math.max(0,this.activeIndex-1),this.renderResults(),this.scrollActiveIntoView();return}if(t.key==="Enter"){t.preventDefault();let i=this.flatResults[this.activeIndex];i&&this.activateItem(i)}};bindGlobalShortcut(){k(this,"global-shortcut")&&(this.globalKeyHandler=t=>{(t.metaKey||t.ctrlKey)&&t.key.toLowerCase()==="k"&&(t.preventDefault(),this.hasAttribute("open")?this.closePalette():this.openPalette())},document.addEventListener("keydown",this.globalKeyHandler))}unbindGlobalShortcut(){this.globalKeyHandler&&(document.removeEventListener("keydown",this.globalKeyHandler),this.globalKeyHandler=null)}syncOpen(){if(!this.dialogEl)return;let t=this.hasAttribute("open");t&&!this.dialogEl.open?(this.dialogEl.removeAttribute("aria-hidden"),X(this.dialogEl),this.activeIndex=0,this.renderResults(),queueMicrotask(()=>this.inputEl?.focus())):!t&&this.dialogEl.open?(O(this.dialogEl),this.dialogEl.setAttribute("aria-hidden","true")):t||this.dialogEl.setAttribute("aria-hidden","true")}scrollActiveIntoView(){this.resultsEl?.querySelector(".viking-search-result.is-selected")?.scrollIntoView({block:"nearest"})}activateItem(t){if(this.dispatchEvent(new CustomEvent("viking-select",{bubbles:!0,composed:!0,detail:{item:t}})),this.closePalette(),t.action==="cookie-settings"){globalThis.DemlWidgets?.openCookieSettings?.();return}if(t.action==="bug-report"){let i=globalThis.DemlWidgets;if(i?.openBugReport){i.openBugReport();return}}t.href&&t.href!=="#"&&window.location.assign(t.href)}renderResults(){if(!this.resultsEl)return;let t=he(this),i=this.query.trim().toLowerCase(),r=pe(t,i);if(this.flatResults=r,r.length===0){let g=this.query.trim();this.resultsEl.innerHTML=`<p class="viking-search-empty" role="status">${g?"No results found":"Start typing to search\u2026"}</p>`,this.inputEl?.removeAttribute("aria-activedescendant");return}this.activeIndex>=r.length&&(this.activeIndex=r.length-1);let a=0,s=ke(r).map(({group:g,items:p})=>{let f=g?`<p class="viking-search-group-label" role="presentation">${n(g)}</p>`:"",m=p.map(x=>{let H=`${this.resultsId}-result-${a}`,D=a===this.activeIndex;return a+=1,`
|
|
1361
|
-
<a
|
|
1362
|
-
id="${H}"
|
|
1363
|
-
class="viking-search-result${D?" is-selected":""}"
|
|
1364
|
-
role="option"
|
|
1365
|
-
aria-selected="${D}"
|
|
1366
|
-
href="${n(x.href)}"
|
|
1367
|
-
part="result"
|
|
1368
|
-
data-index="${a-1}"
|
|
1369
|
-
>
|
|
1370
|
-
<div>
|
|
1371
|
-
<div class="viking-search-result-title">${n(x.title)}</div>
|
|
1372
|
-
${x.snippet?`<div class="viking-search-result-snippet">${n(x.snippet)}</div>`:""}
|
|
1373
|
-
</div>
|
|
1374
|
-
</a>`}).join("");return`${f}${m}`}).join("");this.resultsEl.innerHTML=`<div class="viking-search-results" id="${this.resultsId}" role="listbox" aria-label="Search results">${s}</div>`;let v=`${this.resultsId}-result-${this.activeIndex}`;this.inputEl?.setAttribute("aria-activedescendant",v),this.inputEl?.setAttribute("role","combobox"),this.inputEl?.setAttribute("aria-expanded","true"),this.inputEl?.setAttribute("aria-controls",this.resultsId),this.resultsEl.querySelectorAll(".viking-search-result").forEach(g=>{g.addEventListener("click",p=>{p.preventDefault();let f=Number(g.dataset.index??0),m=this.flatResults[f];m&&this.activateItem(m)}),g.addEventListener("mouseenter",()=>{let p=Number(g.dataset.index??0);this.activeIndex=p,this.renderResults()})})}render(){let t=this.getAttribute("placeholder")??"Search documentation, dashboard, API\u2026",i=Z();this.shadow.innerHTML=`
|
|
1375
|
-
<dialog class="viking-search-palette-backdrop" aria-label="Search" aria-hidden="true">
|
|
1376
|
-
<div class="viking-search-palette" part="panel" role="document">
|
|
1377
|
-
<div class="viking-search-palette-header" part="header">
|
|
1378
|
-
<span class="viking-search-palette-icon" aria-hidden="true">${h("search",24)}</span>
|
|
1379
|
-
<input
|
|
1380
|
-
id="${this.inputId}"
|
|
1381
|
-
type="search"
|
|
1382
|
-
class="viking-search-palette-input"
|
|
1383
|
-
part="input"
|
|
1384
|
-
placeholder="${n(t)}"
|
|
1385
|
-
aria-label="${n(t)}"
|
|
1386
|
-
aria-autocomplete="list"
|
|
1387
|
-
autocomplete="off"
|
|
1388
|
-
spellcheck="false"
|
|
1389
|
-
/>
|
|
1390
|
-
<button type="button" class="viking-search-palette-close" part="close" aria-label="Close search">${h("x",20)}</button>
|
|
1391
|
-
</div>
|
|
1392
|
-
<div class="viking-search-palette-body" part="body">
|
|
1393
|
-
<slot></slot>
|
|
1394
|
-
<div class="viking-search-results-host"></div>
|
|
1395
|
-
</div>
|
|
1396
|
-
<footer class="viking-search-palette-footer" part="footer">
|
|
1397
|
-
<span class="viking-kbd">${i}</span><span class="viking-kbd">K</span> toggle \xB7
|
|
1398
|
-
<span class="viking-kbd">\u2191</span><span class="viking-kbd">\u2193</span> navigate \xB7
|
|
1399
|
-
<span class="viking-kbd">Enter</span> open \xB7
|
|
1400
|
-
<span class="viking-kbd">Esc</span> close
|
|
1401
|
-
</footer>
|
|
1402
|
-
</div>
|
|
1403
|
-
</dialog>
|
|
1404
|
-
`,this.dialogEl=this.shadow.querySelector("dialog"),this.inputEl=this.shadow.querySelector("input"),this.resultsEl=this.shadow.querySelector(".viking-search-results-host"),this.shadow.querySelector(".viking-search-palette-close")?.addEventListener("click",()=>this.closePalette()),this.dialogEl?.addEventListener("keydown",r=>{r.key==="Escape"&&(r.preventDefault(),this.closePalette())})}},P=()=>{l(y.tag,y),d(y.searchTag,y),d(y.legacyTag,y)};var be=new Set(["accent","secondary","success","warning","danger","info","muted"]),L=class extends c{static tag="viking-status-card";static legacyTag="viking-status-card-wc";static get observedAttributes(){return["title","subtitle","status","status-tone","status-dot","href","target","compact","loading","interactive","aria-label"]}shadow=this.attachShadow({mode:"open"});connectedCallback(){this.render()}attributeChangedCallback(){this.isConnected&&this.render()}get compact(){let t=this.getAttribute("compact");return t!==null&&t!=="false"}get loading(){let t=this.getAttribute("loading");return t!==null&&t!=="false"}get interactive(){let t=this.getAttribute("interactive");return t!==null&&t!=="false"}get href(){return this.getAttribute("href")}get target(){return this.getAttribute("target")}get statusTone(){let t=this.getAttribute("status-tone")??"muted";return be.has(t)?t:"muted"}get statusDot(){let t=this.getAttribute("status-dot");return t!==null&&t!=="false"}get cardTitle(){return this.getAttribute("title")??""}get subtitle(){return this.getAttribute("subtitle")??""}get status(){return this.getAttribute("status")??""}render(){let t=this.status.length>0,i=this.cardTitle,r=this.subtitle,a=this.compact?" status-card--compact":"",o=this.loading?" status-card--loading":"",s=this.interactive?" status-card--interactive":"",v=`status-card${a}${o}${s}`,g=this.target==="_blank"?' rel="noopener noreferrer"':"",p=this.statusDot?'<span class="status-card__status-dot" aria-hidden="true"></span>':"",f=t?`<span class="status-card__status status-card__status-${this.statusTone}" part="status">${p}<span>${n(this.status)}</span></span>`:"",m=this.href?n(this.href):"",x=n(this.getAttribute("aria-label")??""),H=m?"a":"div",D=`
|
|
1405
|
-
<header class="status-card__header">
|
|
1406
|
-
<div class="status-card__title-wrap">
|
|
1407
|
-
${i?`<h3 class="status-card__title" part="title">${n(i)}</h3>`:""}
|
|
1408
|
-
${r?`<p class="status-card__subtitle" part="subtitle">${n(r)}</p>`:""}
|
|
1409
|
-
</div>
|
|
1410
|
-
${t||p?`<div class="status-card__status-wrap">${f}</div>`:""}
|
|
1411
|
-
</header>
|
|
1412
|
-
`;this.shadow.innerHTML=`
|
|
1413
|
-
<style>
|
|
1414
|
-
${me}
|
|
1415
|
-
</style>
|
|
1416
|
-
<${H}
|
|
1417
|
-
class="${v}"
|
|
1418
|
-
part="card"
|
|
1419
|
-
${m?`href="${m}"`:""}
|
|
1420
|
-
${this.target?`target="${n(this.target)}"`:""}
|
|
1421
|
-
${m?g:""}
|
|
1422
|
-
${x?`aria-label="${x}"`:""}
|
|
1423
|
-
>
|
|
1424
|
-
${D}
|
|
1425
|
-
<section class="status-card__body">
|
|
1426
|
-
<slot></slot>
|
|
1427
|
-
</section>
|
|
1428
|
-
</${H}>
|
|
1429
|
-
`}},me=`
|
|
1430
|
-
:host {
|
|
1431
|
-
display: block;
|
|
1432
|
-
}
|
|
1433
|
-
|
|
1434
|
-
:host([compact]) .status-card,
|
|
1435
|
-
:host .status-card--compact {
|
|
1436
|
-
padding: var(--viking-card-padding-compact);
|
|
1437
|
-
gap: var(--viking-space-2);
|
|
1438
|
-
}
|
|
1439
|
-
|
|
1440
|
-
.status-card {
|
|
1441
|
-
display: grid;
|
|
1442
|
-
gap: var(--viking-space-3);
|
|
1443
|
-
width: 100%;
|
|
1444
|
-
padding: var(--viking-card-padding);
|
|
1445
|
-
border-radius: var(--viking-radius-lg);
|
|
1446
|
-
border: 1px solid var(--viking-border);
|
|
1447
|
-
background: var(--viking-surface);
|
|
1448
|
-
color: var(--viking-text);
|
|
1449
|
-
box-shadow: var(--viking-shadow-sm);
|
|
1450
|
-
box-sizing: border-box;
|
|
1451
|
-
position: relative;
|
|
1452
|
-
transition: var(--viking-transition-interactive);
|
|
1453
|
-
text-decoration: none;
|
|
1454
|
-
overflow: hidden;
|
|
1455
|
-
}
|
|
1456
|
-
|
|
1457
|
-
.status-card::before {
|
|
1458
|
-
content: "";
|
|
1459
|
-
position: absolute;
|
|
1460
|
-
inset: 0 0 auto;
|
|
1461
|
-
height: 1px;
|
|
1462
|
-
background: linear-gradient(
|
|
1463
|
-
90deg,
|
|
1464
|
-
transparent,
|
|
1465
|
-
color-mix(in srgb, var(--viking-metallic-200) 24%, transparent),
|
|
1466
|
-
transparent
|
|
1467
|
-
);
|
|
1468
|
-
pointer-events: none;
|
|
1469
|
-
}
|
|
1470
|
-
|
|
1471
|
-
.status-card--interactive {
|
|
1472
|
-
cursor: pointer;
|
|
1473
|
-
}
|
|
1474
|
-
|
|
1475
|
-
.status-card--interactive:hover {
|
|
1476
|
-
border-color: var(--viking-accent-strong);
|
|
1477
|
-
box-shadow: var(--viking-shadow-hover);
|
|
1478
|
-
transform: translateY(var(--viking-state-hover-lift));
|
|
1479
|
-
}
|
|
1480
|
-
|
|
1481
|
-
.status-card--loading {
|
|
1482
|
-
pointer-events: none;
|
|
1483
|
-
opacity: var(--viking-state-disabled-opacity);
|
|
1484
|
-
}
|
|
1485
|
-
|
|
1486
|
-
.status-card__header {
|
|
1487
|
-
display: flex;
|
|
1488
|
-
justify-content: space-between;
|
|
1489
|
-
gap: var(--viking-space-3);
|
|
1490
|
-
align-items: flex-start;
|
|
1491
|
-
min-width: 0;
|
|
1492
|
-
}
|
|
1493
|
-
|
|
1494
|
-
.status-card__title-wrap {
|
|
1495
|
-
display: grid;
|
|
1496
|
-
gap: var(--viking-space-1);
|
|
1497
|
-
min-width: 0;
|
|
1498
|
-
}
|
|
1499
|
-
|
|
1500
|
-
.status-card__title {
|
|
1501
|
-
margin: 0;
|
|
1502
|
-
font-size: var(--viking-font-size-xl);
|
|
1503
|
-
font-weight: var(--viking-font-weight-bold);
|
|
1504
|
-
letter-spacing: var(--viking-letter-spacing-tight);
|
|
1505
|
-
line-height: var(--viking-line-height-tight);
|
|
1506
|
-
}
|
|
1507
|
-
|
|
1508
|
-
.status-card__subtitle {
|
|
1509
|
-
margin: 0;
|
|
1510
|
-
max-width: 60ch;
|
|
1511
|
-
color: var(--viking-text-muted);
|
|
1512
|
-
font-size: var(--viking-font-size-base);
|
|
1513
|
-
line-height: var(--viking-line-height-relaxed);
|
|
1514
|
-
}
|
|
1515
|
-
|
|
1516
|
-
.status-card__status-wrap {
|
|
1517
|
-
display: inline-flex;
|
|
1518
|
-
align-items: center;
|
|
1519
|
-
justify-content: flex-end;
|
|
1520
|
-
}
|
|
1521
|
-
|
|
1522
|
-
.status-card__status {
|
|
1523
|
-
display: inline-flex;
|
|
1524
|
-
align-items: center;
|
|
1525
|
-
gap: var(--viking-space-1);
|
|
1526
|
-
max-width: fit-content;
|
|
1527
|
-
padding: calc(var(--viking-space-half) - 1px) var(--viking-space-1);
|
|
1528
|
-
border-radius: var(--viking-radius-pill);
|
|
1529
|
-
border: 1px solid var(--viking-border-subtle);
|
|
1530
|
-
background: color-mix(in srgb, var(--viking-surface) 92%, transparent);
|
|
1531
|
-
color: var(--viking-text-muted);
|
|
1532
|
-
text-transform: capitalize;
|
|
1533
|
-
font-size: var(--viking-font-size-xs);
|
|
1534
|
-
font-weight: var(--viking-font-weight-semibold);
|
|
1535
|
-
letter-spacing: var(--viking-letter-spacing-wide);
|
|
1536
|
-
}
|
|
1537
|
-
|
|
1538
|
-
.status-card__status-dot {
|
|
1539
|
-
width: var(--viking-space-1);
|
|
1540
|
-
height: var(--viking-space-1);
|
|
1541
|
-
border-radius: var(--viking-radius-full);
|
|
1542
|
-
background: currentColor;
|
|
1543
|
-
flex: 0 0 auto;
|
|
1544
|
-
}
|
|
1545
|
-
|
|
1546
|
-
.status-card__status-success {
|
|
1547
|
-
background: color-mix(in srgb, var(--viking-success) 12%, var(--viking-surface));
|
|
1548
|
-
border-color: color-mix(in srgb, var(--viking-success) 40%, transparent);
|
|
1549
|
-
color: var(--viking-success);
|
|
1550
|
-
}
|
|
1551
|
-
|
|
1552
|
-
.status-card__status-warning {
|
|
1553
|
-
background: color-mix(in srgb, var(--viking-warning) 12%, var(--viking-surface));
|
|
1554
|
-
border-color: color-mix(in srgb, var(--viking-warning) 40%, transparent);
|
|
1555
|
-
color: var(--viking-warning);
|
|
1556
|
-
}
|
|
1557
|
-
|
|
1558
|
-
.status-card__status-danger {
|
|
1559
|
-
background: color-mix(in srgb, var(--viking-danger) 12%, var(--viking-surface));
|
|
1560
|
-
border-color: color-mix(in srgb, var(--viking-danger) 45%, transparent);
|
|
1561
|
-
color: var(--viking-danger-text);
|
|
1562
|
-
}
|
|
1563
|
-
|
|
1564
|
-
.status-card__status-accent {
|
|
1565
|
-
background: color-mix(in srgb, var(--viking-accent) 12%, var(--viking-surface));
|
|
1566
|
-
border-color: color-mix(in srgb, var(--viking-accent) 40%, transparent);
|
|
1567
|
-
color: var(--viking-accent);
|
|
1568
|
-
}
|
|
1569
|
-
|
|
1570
|
-
.status-card__status-secondary {
|
|
1571
|
-
background: color-mix(in srgb, var(--viking-accent-secondary) 12%, var(--viking-surface));
|
|
1572
|
-
border-color: color-mix(in srgb, var(--viking-accent-secondary) 40%, transparent);
|
|
1573
|
-
color: var(--viking-accent-secondary);
|
|
1574
|
-
}
|
|
1575
|
-
|
|
1576
|
-
.status-card__status-info {
|
|
1577
|
-
background: color-mix(in srgb, var(--viking-info) 12%, var(--viking-surface));
|
|
1578
|
-
border-color: color-mix(in srgb, var(--viking-info) 40%, transparent);
|
|
1579
|
-
color: var(--viking-info);
|
|
1580
|
-
}
|
|
1581
|
-
|
|
1582
|
-
.status-card__status-muted {
|
|
1583
|
-
background: var(--viking-surface);
|
|
1584
|
-
border-color: var(--viking-border-subtle);
|
|
1585
|
-
color: var(--viking-text-muted);
|
|
1586
|
-
}
|
|
1587
|
-
|
|
1588
|
-
.status-card__body {
|
|
1589
|
-
display: grid;
|
|
1590
|
-
gap: var(--viking-space-3);
|
|
1591
|
-
min-width: 0;
|
|
1592
|
-
}
|
|
1593
|
-
`,ot=()=>{l(L.tag,L),d(L.legacyTag,L)};var fe=new Set(["accent","secondary","success","warning","danger","info","muted"]),T=class extends c{static tag="viking-status-pill";static legacyTag="viking-status-pill-wc";static get observedAttributes(){return["tone","icon","href","target","compact","dot","removable","aria-label"]}shadow;constructor(){super(),this.shadow=this.attachShadow({mode:"open"}),u(this.shadow,xe)}connectedCallback(){this.render()}attributeChangedCallback(){this.isConnected&&this.render()}get tone(){let t=this.getAttribute("tone")??"muted";return fe.has(t)?t:"muted"}get compact(){let t=this.getAttribute("compact");return t!==null&&t!=="false"}get removable(){let t=this.getAttribute("removable");return t!==null&&t!=="false"}get href(){return this.getAttribute("href")}get icon(){return this.getAttribute("icon")}get showDot(){let t=this.getAttribute("dot");return t!==null&&t!=="false"}onRemove=()=>{this.dispatchEvent(new CustomEvent("viking-pill-removed",{bubbles:!0,composed:!0}))};render(){let t=this.tone,i=this.compact?" status-pill--compact":"",r=this.icon?h(this.icon,14,"status-pill__icon"):"",a=this.showDot?'<span class="status-pill__dot" aria-hidden="true"></span>':"",o='<span class="status-pill__label" part="label"><slot></slot></span>',s=n(this.getAttribute("aria-label")??""),v=this.href,g=this.getAttribute("target"),p=v&&g==="_blank"?' rel="noopener noreferrer"':"";if(v){this.shadow.innerHTML=`
|
|
1594
|
-
<a
|
|
1595
|
-
class="status-pill status-pill-${t}${i}"
|
|
1596
|
-
part="control"
|
|
1597
|
-
href="${n(v)}"
|
|
1598
|
-
${g?`target="${n(g)}"${p}`:""}
|
|
1599
|
-
${s?`aria-label="${s}"`:""}
|
|
1600
|
-
>
|
|
1601
|
-
${a}
|
|
1602
|
-
${r}
|
|
1603
|
-
${o}
|
|
1604
|
-
</a>
|
|
1605
|
-
`;return}this.shadow.innerHTML=`
|
|
1606
|
-
<span
|
|
1607
|
-
class="status-pill status-pill-${t}${i}"
|
|
1608
|
-
part="control"
|
|
1609
|
-
${s?`role="status" aria-label="${s}"`:""}
|
|
1610
|
-
>
|
|
1611
|
-
${a}
|
|
1612
|
-
${r}
|
|
1613
|
-
${o}
|
|
1614
|
-
${this.removable?'<button type="button" class="status-pill__remove" part="remove" aria-label="Remove"><span class="status-pill__remove-icon" aria-hidden="true">×</span></button>':""}
|
|
1615
|
-
</span>
|
|
1616
|
-
`,this.shadow.querySelector(".status-pill__remove")?.addEventListener("click",this.onRemove)}},xe=`
|
|
1617
|
-
:host {
|
|
1618
|
-
display: inline-flex;
|
|
1619
|
-
}
|
|
1620
|
-
|
|
1621
|
-
.status-pill {
|
|
1622
|
-
--viking-status-pill-bg: color-mix(in srgb, var(--viking-surface-alt) 88%, var(--viking-surface));
|
|
1623
|
-
--viking-status-pill-text: var(--viking-text-muted);
|
|
1624
|
-
--viking-status-pill-border: var(--viking-border-subtle);
|
|
1625
|
-
--viking-status-pill-shadow: var(--viking-shadow-xs);
|
|
1626
|
-
|
|
1627
|
-
display: inline-flex;
|
|
1628
|
-
align-items: center;
|
|
1629
|
-
gap: var(--viking-space-half);
|
|
1630
|
-
padding: var(--viking-space-half) var(--viking-space-2);
|
|
1631
|
-
border-radius: var(--viking-radius-pill);
|
|
1632
|
-
border: 1px solid var(--viking-status-pill-border);
|
|
1633
|
-
background: var(--viking-status-pill-bg);
|
|
1634
|
-
color: var(--viking-status-pill-text);
|
|
1635
|
-
font-family: var(--viking-font-family);
|
|
1636
|
-
font-size: var(--viking-font-size-xs);
|
|
1637
|
-
font-weight: var(--viking-font-weight-semibold);
|
|
1638
|
-
letter-spacing: var(--viking-letter-spacing-caps);
|
|
1639
|
-
line-height: var(--viking-line-height-snug);
|
|
1640
|
-
white-space: nowrap;
|
|
1641
|
-
text-transform: uppercase;
|
|
1642
|
-
box-shadow: var(--viking-status-pill-shadow);
|
|
1643
|
-
}
|
|
1644
|
-
|
|
1645
|
-
:host(:hover) .status-pill {
|
|
1646
|
-
text-decoration: none;
|
|
1647
|
-
}
|
|
1648
|
-
|
|
1649
|
-
.status-pill--compact {
|
|
1650
|
-
padding: var(--viking-space-half);
|
|
1651
|
-
font-size: var(--viking-font-size-2xs);
|
|
1652
|
-
}
|
|
1653
|
-
|
|
1654
|
-
.status-pill__label {
|
|
1655
|
-
display: inline-flex;
|
|
1656
|
-
align-items: center;
|
|
1657
|
-
}
|
|
1658
|
-
|
|
1659
|
-
.status-pill__dot {
|
|
1660
|
-
width: var(--viking-space-1);
|
|
1661
|
-
height: var(--viking-space-1);
|
|
1662
|
-
border-radius: var(--viking-radius-full);
|
|
1663
|
-
background: currentColor;
|
|
1664
|
-
flex: 0 0 auto;
|
|
1665
|
-
}
|
|
1666
|
-
|
|
1667
|
-
.status-pill__icon,
|
|
1668
|
-
::slotted([data-viking-icon]) {
|
|
1669
|
-
width: var(--viking-space-3);
|
|
1670
|
-
height: var(--viking-space-3);
|
|
1671
|
-
color: currentColor;
|
|
1672
|
-
flex-shrink: 0;
|
|
1673
|
-
}
|
|
1674
|
-
|
|
1675
|
-
.status-pill__remove {
|
|
1676
|
-
display: inline-flex;
|
|
1677
|
-
align-items: center;
|
|
1678
|
-
justify-content: center;
|
|
1679
|
-
border: 1px solid transparent;
|
|
1680
|
-
background: transparent;
|
|
1681
|
-
color: currentColor;
|
|
1682
|
-
border-radius: var(--viking-radius-full);
|
|
1683
|
-
width: var(--viking-touch-target-min);
|
|
1684
|
-
height: var(--viking-touch-target-min);
|
|
1685
|
-
margin-right: calc(var(--viking-space-half) * -1);
|
|
1686
|
-
padding: 0;
|
|
1687
|
-
cursor: pointer;
|
|
1688
|
-
}
|
|
1689
|
-
|
|
1690
|
-
.status-pill__remove:hover {
|
|
1691
|
-
background: color-mix(in srgb, currentColor 10%, transparent);
|
|
1692
|
-
}
|
|
1693
|
-
|
|
1694
|
-
.status-pill__remove:focus-visible {
|
|
1695
|
-
outline: var(--viking-ring-width) solid var(--viking-ring);
|
|
1696
|
-
outline-offset: var(--viking-ring-offset);
|
|
1697
|
-
}
|
|
1698
|
-
|
|
1699
|
-
.status-pill-accent {
|
|
1700
|
-
--viking-status-pill-bg: color-mix(in srgb, var(--viking-accent) 18%, var(--viking-surface));
|
|
1701
|
-
--viking-status-pill-text: var(--viking-accent);
|
|
1702
|
-
--viking-status-pill-border: color-mix(in srgb, var(--viking-accent) 52%, transparent);
|
|
1703
|
-
}
|
|
1704
|
-
|
|
1705
|
-
.status-pill-secondary {
|
|
1706
|
-
--viking-status-pill-bg: color-mix(in srgb, var(--viking-accent-secondary) 16%, var(--viking-surface));
|
|
1707
|
-
--viking-status-pill-text: var(--viking-accent-secondary);
|
|
1708
|
-
--viking-status-pill-border: color-mix(in srgb, var(--viking-accent-secondary) 52%, transparent);
|
|
1709
|
-
}
|
|
1710
|
-
|
|
1711
|
-
.status-pill-success {
|
|
1712
|
-
--viking-status-pill-bg: color-mix(in srgb, var(--viking-success) 16%, var(--viking-surface));
|
|
1713
|
-
--viking-status-pill-text: var(--viking-success);
|
|
1714
|
-
--viking-status-pill-border: color-mix(in srgb, var(--viking-success) 55%, transparent);
|
|
1715
|
-
}
|
|
1716
|
-
|
|
1717
|
-
.status-pill-warning {
|
|
1718
|
-
--viking-status-pill-bg: color-mix(in srgb, var(--viking-warning) 16%, var(--viking-surface));
|
|
1719
|
-
--viking-status-pill-text: var(--viking-warning);
|
|
1720
|
-
--viking-status-pill-border: color-mix(in srgb, var(--viking-warning) 55%, transparent);
|
|
1721
|
-
}
|
|
1722
|
-
|
|
1723
|
-
.status-pill-danger {
|
|
1724
|
-
--viking-status-pill-bg: color-mix(in srgb, var(--viking-danger) 14%, var(--viking-surface));
|
|
1725
|
-
--viking-status-pill-text: var(--viking-danger-text);
|
|
1726
|
-
--viking-status-pill-border: color-mix(in srgb, var(--viking-danger) 50%, transparent);
|
|
1727
|
-
}
|
|
1728
|
-
|
|
1729
|
-
.status-pill-info {
|
|
1730
|
-
--viking-status-pill-bg: color-mix(in srgb, var(--viking-info) 14%, var(--viking-surface));
|
|
1731
|
-
--viking-status-pill-text: var(--viking-info);
|
|
1732
|
-
--viking-status-pill-border: color-mix(in srgb, var(--viking-info) 50%, transparent);
|
|
1733
|
-
}
|
|
1734
|
-
|
|
1735
|
-
.status-pill-muted {
|
|
1736
|
-
--viking-status-pill-bg: var(--viking-surface);
|
|
1737
|
-
--viking-status-pill-text: var(--viking-text-muted);
|
|
1738
|
-
--viking-status-pill-border: var(--viking-border-subtle);
|
|
1739
|
-
}
|
|
1740
|
-
|
|
1741
|
-
.status-pill a {
|
|
1742
|
-
color: inherit;
|
|
1743
|
-
}
|
|
1744
|
-
|
|
1745
|
-
a.status-pill {
|
|
1746
|
-
text-decoration: none;
|
|
1747
|
-
}
|
|
1748
|
-
`,st=()=>{l(T.tag,T),d(T.legacyTag,T)};var B=[{id:"explore",label:"Explore",icon:"globe",appHref:"/explore",marketingHref:"/explore",platform:!0},{id:"documentation",label:"Documentation",icon:"file",appHref:"https://dataengineeringformachinelearning.com/documentation/",marketingHref:"/documentation"},{id:"dashboard",label:"Dashboard",icon:"home",appHref:"/dashboard",marketingHref:"/dashboard",requireAuth:!0,platform:!0},{id:"sites",label:"Sites",icon:"building",appHref:"/settings",marketingHref:"/settings",requireAuth:!0,platform:!0},{id:"account",label:"Account",icon:"user",appHref:"/account",marketingHref:"/account",requireAuth:!0,platform:!0}],lt=[{title:"Platform",links:[{label:"Explore",appHref:"/explore",marketingHref:"/explore",platform:!0},{label:"Dashboard",appHref:"/dashboard",marketingHref:"/dashboard",platform:!0},{label:"Sites",appHref:"/settings",marketingHref:"/settings",platform:!0},{label:"Account",appHref:"/account",marketingHref:"/account",platform:!0},{label:"Platform Status",appHref:"/status/platform-status",marketingHref:"/status/platform-status",platform:!0}]},{title:"Resources",links:[{label:"Documentation",appHref:"https://dataengineeringformachinelearning.com/documentation/",marketingHref:"/documentation"},{label:"Whitepaper",appHref:"https://dataengineeringformachinelearning.com/whitepaper/",marketingHref:"/whitepaper"},{label:"Book",appHref:"https://dataengineeringformachinelearning.com/book/",marketingHref:"/book"}]},{title:"Support",links:[{label:"Platform Status",appHref:"/status/platform-status",marketingHref:"/status/platform-status",platform:!0},{label:"Report a Bug",appHref:"#",marketingHref:"#",action:"bug-report"}]},{title:"Legal & Compliance",links:[{label:"Privacy Policy",appHref:"https://dataengineeringformachinelearning.com/privacy/",marketingHref:"/privacy"},{label:"Terms of Service",appHref:"https://dataengineeringformachinelearning.com/terms/",marketingHref:"/terms"},{label:"SOC2 Compliance",appHref:"https://dataengineeringformachinelearning.com/compliance/",marketingHref:"/compliance"},{label:"GDPR Compliance",appHref:"https://dataengineeringformachinelearning.com/privacy/#gdpr",marketingHref:"/privacy#gdpr"},{label:"Cookie Settings",appHref:"#",marketingHref:"#",action:"cookie-settings"}]}],ye="reportBug=1",we="cookieSettings=1",Kt=e=>/^https?:\/\//i.test(e),ct=(e,t)=>{if(Kt(t))return t;let i=e.replace(/\/$/,""),r=t.startsWith("/")?t:`/${t}`;return`${i}${r}`},xt=e=>`${ct(e.app,"/")}?${ye}`,yt=e=>`${ct(e.marketing,"/")}?${we}`,Wt=(e,t)=>Kt(e)||e.startsWith("mailto:")||e.startsWith("/")?e:ct(t.marketing,e),Ut=(e,t,i)=>t==="app"?e:ct(i.app,e),K=(e,t,i)=>e.platform?Ut(e.appHref,t,i):t==="app"?e.appHref:Wt(e.marketingHref,i),dt=(e,t,i)=>e.action==="bug-report"?t==="app"?"#":xt(i):e.action==="cookie-settings"?yt(i):e.platform?Ut(e.appHref,t,i):t==="app"?e.appHref:Wt(e.marketingHref,i),gt=(e,t)=>e==="marketing"?"/":t.marketing,Gt=(e,t=!1)=>e.filter(i=>!i.requireAuth||t);var b={app:"https://deml.app",marketing:"https://dataengineeringformachinelearning.com",backend:"https://backend.deml.app"};var qt=new Set(["app","marketing","backend","docs"]),_e=()=>{let e=document.documentElement.getAttribute("data-deml-context");if(e&&qt.has(e))return e;let t=window.location.hostname;return t.startsWith("backend.")?"backend":t.includes("deml.app")?"app":"marketing"},Se=e=>{let t=e.getAttribute("context");return t&&qt.has(t)?t:_e()},Ee=e=>{let t=globalThis.__DEML??{};return{app:e.getAttribute("app-url")??t.app??b.app,marketing:e.getAttribute("marketing-url")??t.marketing??b.marketing,backend:e.getAttribute("backend-url")??t.backend??b.backend}},Ie=e=>{let t=e.getAttribute("year"),i=t?Number(t):new Date().getFullYear();return Number.isFinite(i)?i:new Date().getFullYear()},Ae=(e,t)=>lt.map(i=>{let r=i.links.map(a=>{let o=dt(a,e,t);return`
|
|
1749
|
-
<li>
|
|
1750
|
-
<a href="${n(o)}">${n(a.label)}</a>
|
|
1751
|
-
</li>
|
|
1752
|
-
`}).join("");return`
|
|
1753
|
-
<div class="footer-column">
|
|
1754
|
-
<h3 class="footer-column-title">${n(i.title)}</h3>
|
|
1755
|
-
<ul class="footer-list">
|
|
1756
|
-
${r}
|
|
1757
|
-
</ul>
|
|
1758
|
-
</div>
|
|
1759
|
-
`}).join(""),V=class extends HTMLElement{static tag="viking-site-footer";static legacyTag="viking-site-footer-wc";static get observedAttributes(){return["context","app-url","marketing-url","backend-url","year"]}connectedCallback(){this.render()}attributeChangedCallback(){this.isConnected&&this.render()}render(){let t=Se(this),i=Ee(this),r=Ie(this),a=Ae(t,i);this.innerHTML=`
|
|
1760
|
-
<footer class="mega-footer">
|
|
1761
|
-
<div class="footer-content">
|
|
1762
|
-
<nav class="footer-directory" aria-label="Footer Directory">
|
|
1763
|
-
${a}
|
|
1764
|
-
</nav>
|
|
1765
|
-
|
|
1766
|
-
<section class="footer-bottom">
|
|
1767
|
-
<div class="footer-badges-top">
|
|
1768
|
-
<span
|
|
1769
|
-
class="usa-badge"
|
|
1770
|
-
id="usa-badge"
|
|
1771
|
-
role="button"
|
|
1772
|
-
tabindex="0"
|
|
1773
|
-
aria-label="Made in the U.S.A."
|
|
1774
|
-
>
|
|
1775
|
-
<span class="usa-badge-icon" aria-hidden="true">\u{1F1FA}\u{1F1F8}</span>
|
|
1776
|
-
<span>Made in the U.S.A</span>
|
|
1777
|
-
</span>
|
|
1778
|
-
</div>
|
|
1779
|
-
|
|
1780
|
-
<div class="footer-compliance-row">
|
|
1781
|
-
<div class="copyright-info">
|
|
1782
|
-
<span class="copyright-text">
|
|
1783
|
-
Copyright \xA9 ${r} Data Engineering for Machine Learning by
|
|
1784
|
-
<a href="https://joealongi.dev/" target="_blank" rel="noopener noreferrer">Joe Alongi</a>.
|
|
1785
|
-
All rights reserved.
|
|
1786
|
-
</span>
|
|
1787
|
-
</div>
|
|
1788
|
-
</div>
|
|
1789
|
-
</section>
|
|
1790
|
-
</div>
|
|
1791
|
-
</footer>
|
|
1792
|
-
`}},vt=()=>{l(V.tag,V),d(V.legacyTag,V)};var Ft=new Set(["app","marketing","backend","docs"]),Me=()=>{let e=document.documentElement.getAttribute("data-deml-context");if(e&&Ft.has(e))return e;let t=window.location.hostname;return t.startsWith("ui.")?"docs":t.startsWith("backend.")?"backend":t.includes("deml.app")?"app":"marketing"},Ce=e=>{let t=e.getAttribute("context");return t&&Ft.has(t)?t:Me()},jt=(e,t)=>{let i=e.getAttribute(t);return i!==null&&i!=="false"},Le=e=>{let t=globalThis.__DEML??{};return{app:e.getAttribute("app-url")??t.app??b.app,marketing:e.getAttribute("marketing-url")??t.marketing??b.marketing,backend:e.getAttribute("backend-url")??t.backend??b.backend}},Te=e=>jt(e,"authenticated"),Ve=e=>e.getAttribute("show-search")===null?!0:jt(e,"show-search"),$e=(e,t)=>{let i=e.getAttribute("sign-in-href");if(i)return i;let r=e.getAttribute("return-url")??window.location.href;return`${t.app}/login?returnUrl=${encodeURIComponent(r)}`},$=class extends HTMLElement{static tag="viking-site-navbar";static legacyTag="viking-site-navbar-wc";static get observedAttributes(){return["context","app-url","marketing-url","backend-url","authenticated","show-search","sign-in-href","dashboard-href","return-url"]}connectedCallback(){this.render()}attributeChangedCallback(){this.isConnected&&this.render()}renderNavLinks(t,i,r="desktop"){let a=r==="mobile"?"mobile-nav-btn":"nav-btn";return B.map(o=>{let s=K(o,t,i),v=o.requireAuth,g=v?" hidden":"",p=v?' data-require-auth="true"':"";return`
|
|
1793
|
-
<a
|
|
1794
|
-
href="${n(s)}"
|
|
1795
|
-
class="${a}"
|
|
1796
|
-
data-nav-id="${n(o.id)}"
|
|
1797
|
-
${p}
|
|
1798
|
-
${g}
|
|
1799
|
-
>
|
|
1800
|
-
<span data-viking-icon="${n(o.icon)}" data-viking-icon-size="16" aria-hidden="true"></span>
|
|
1801
|
-
<span>${n(o.label)}</span>
|
|
1802
|
-
</a>
|
|
1803
|
-
`}).join("")}renderAuthDesktop(t,i,r){return`
|
|
1804
|
-
<div class="desktop-auth">
|
|
1805
|
-
<viking-button-wc
|
|
1806
|
-
variant="primary"
|
|
1807
|
-
class="auth-btn"
|
|
1808
|
-
href="${n(t?r:i)}"
|
|
1809
|
-
id="auth-btn-desktop"
|
|
1810
|
-
>
|
|
1811
|
-
<span
|
|
1812
|
-
id="auth-icon-desktop"
|
|
1813
|
-
data-viking-icon="${t?"home":"arrow-right"}"
|
|
1814
|
-
data-viking-icon-size="16"
|
|
1815
|
-
aria-hidden="true"
|
|
1816
|
-
></span>
|
|
1817
|
-
<span id="auth-text-desktop">${t?"Dashboard":"Sign In"}</span>
|
|
1818
|
-
</viking-button-wc>
|
|
1819
|
-
<viking-button-wc
|
|
1820
|
-
variant="ghost"
|
|
1821
|
-
class="auth-btn auth-signout-btn"
|
|
1822
|
-
id="auth-signout-desktop"
|
|
1823
|
-
${t?"":" hidden"}
|
|
1824
|
-
>
|
|
1825
|
-
Sign Out
|
|
1826
|
-
</viking-button-wc>
|
|
1827
|
-
</div>
|
|
1828
|
-
`}renderAuthMobile(t,i,r){return`
|
|
1829
|
-
<div class="mobile-divider"></div>
|
|
1830
|
-
<viking-button-wc
|
|
1831
|
-
variant="primary"
|
|
1832
|
-
full-width
|
|
1833
|
-
class="mobile-auth-btn auth-btn"
|
|
1834
|
-
href="${n(t?i:r)}"
|
|
1835
|
-
id="auth-btn-mobile"
|
|
1836
|
-
>
|
|
1837
|
-
<span
|
|
1838
|
-
id="auth-icon-mobile"
|
|
1839
|
-
data-viking-icon="${t?"home":"arrow-right"}"
|
|
1840
|
-
data-viking-icon-size="16"
|
|
1841
|
-
aria-hidden="true"
|
|
1842
|
-
></span>
|
|
1843
|
-
<span id="auth-text-mobile">${t?"Dashboard":"Sign In"}</span>
|
|
1844
|
-
</viking-button-wc>
|
|
1845
|
-
<viking-button-wc
|
|
1846
|
-
variant="ghost"
|
|
1847
|
-
full-width
|
|
1848
|
-
class="mobile-auth-btn auth-btn auth-signout-btn"
|
|
1849
|
-
id="auth-signout-mobile"
|
|
1850
|
-
${t?"":" hidden"}
|
|
1851
|
-
>
|
|
1852
|
-
Sign Out
|
|
1853
|
-
</viking-button-wc>
|
|
1854
|
-
`}renderSearchButton(t){return t?`
|
|
1855
|
-
<div class="navbar-search" role="search">
|
|
1856
|
-
<viking-button-wc
|
|
1857
|
-
variant="outline"
|
|
1858
|
-
square
|
|
1859
|
-
compact
|
|
1860
|
-
class="navbar-search-trigger"
|
|
1861
|
-
aria-label="Open search (${navigator.platform.match(/Mac|iPhone|iPad/i)?"\u2318K":"Ctrl+K"})"
|
|
1862
|
-
id="navbar-search-trigger"
|
|
1863
|
-
>
|
|
1864
|
-
<span data-viking-icon="search" data-viking-icon-size="20" aria-hidden="true"></span>
|
|
1865
|
-
</viking-button-wc>
|
|
1866
|
-
</div>
|
|
1867
|
-
`:""}render(){let t=Ce(this),i=Le(this),r=Te(this),a=Ve(this),o=gt(t,i),s=$e(this,i),v=this.getAttribute("dashboard-href")??`${i.app}/dashboard`,g=this.renderNavLinks(t,i,"desktop"),p=this.renderNavLinks(t,i,"mobile"),f=this.renderAuthDesktop(r,s,v),m=this.renderAuthMobile(r,v,s),x=this.renderSearchButton(a);this.innerHTML=`
|
|
1868
|
-
<header class="navbar">
|
|
1869
|
-
<div class="navbar-content">
|
|
1870
|
-
<div class="navbar-left">
|
|
1871
|
-
<a href="${n(o)}" class="navbar-brand" aria-label="Go to homepage" id="navbar-brand-link">
|
|
1872
|
-
<span
|
|
1873
|
-
class="brand-icon navbar-logo"
|
|
1874
|
-
data-viking-icon="drakkar"
|
|
1875
|
-
data-viking-icon-color="accent"
|
|
1876
|
-
data-viking-icon-size="28"
|
|
1877
|
-
aria-hidden="true"
|
|
1878
|
-
></span>
|
|
1879
|
-
</a>
|
|
1880
|
-
</div>
|
|
1881
|
-
|
|
1882
|
-
<nav class="navbar-center desktop-nav" aria-label="Main navigation">
|
|
1883
|
-
${g}
|
|
1884
|
-
</nav>
|
|
1885
|
-
|
|
1886
|
-
<div class="navbar-right">
|
|
1887
|
-
${x}
|
|
1888
|
-
${f}
|
|
1889
|
-
<viking-theme-toggle-wc class="theme-toggle-btn" aria-label="Toggle light and dark theme"></viking-theme-toggle-wc>
|
|
1890
|
-
<viking-button-wc
|
|
1891
|
-
variant="outline"
|
|
1892
|
-
square
|
|
1893
|
-
class="menu-toggle-btn"
|
|
1894
|
-
aria-label="Toggle navigation menu"
|
|
1895
|
-
aria-controls="mobile-menu"
|
|
1896
|
-
aria-expanded="false"
|
|
1897
|
-
id="mobile-menu-btn"
|
|
1898
|
-
>
|
|
1899
|
-
<span data-viking-icon="menu" data-viking-icon-size="24" aria-hidden="true"></span>
|
|
1900
|
-
</viking-button-wc>
|
|
1901
|
-
</div>
|
|
1902
|
-
</div>
|
|
1903
|
-
|
|
1904
|
-
<nav class="mobile-menu" id="mobile-menu" aria-label="Mobile navigation" hidden>
|
|
1905
|
-
${p}
|
|
1906
|
-
${m}
|
|
1907
|
-
</nav>
|
|
1908
|
-
</header>
|
|
1909
|
-
`}},ht=()=>{l($.tag,$),d($.legacyTag,$)};var Ne=e=>{let t=new Set;return e.filter(i=>{let r=`${i.title}:${i.href}:${i.action??""}`;return t.has(r)?!1:(t.add(r),!0)})},He=(e,t,i)=>({title:e.label,href:K(e,t,i),snippet:`Open ${e.label}`,group:"Platform",keywords:[e.id,e.label.toLowerCase(),"navigate","go"]}),De=(e,t,i,r)=>e.action==="cookie-settings"?{title:e.label,href:yt(r),snippet:"Manage analytics and cookie preferences",group:t,keywords:["cookies","consent","privacy","gdpr"],action:"cookie-settings"}:e.action==="bug-report"?{title:e.label,href:i==="app"?"#":xt(r),snippet:"Submit a product issue or regression",group:t,keywords:["bug","issue","support","feedback"],action:"bug-report"}:{title:e.label,href:dt(e,i,r),snippet:`Open ${e.label}`,group:t,keywords:[e.label.toLowerCase(),t.toLowerCase()]},Oe=[{title:"Viking-UI Components",snippet:"Browse the design system showcase",group:"Resources",keywords:["viking","ui","design system","components","showcase"]},{title:"Design tokens",snippet:"Canonical --viking-* token matrix",group:"Resources",keywords:["tokens","theme","css","variables"]},{title:"API reference",snippet:"OpenAPI schema and REST endpoints",group:"Resources",keywords:["api","openapi","swagger","rest"]}],ze=(e,t,i)=>{switch(e.title){case"Viking-UI Components":return"https://ui.dataengineeringformachinelearning.com/components";case"Design tokens":return"https://ui.dataengineeringformachinelearning.com/tokens";case"API reference":return`${i.backend.replace(/\/$/,"")}/api/docs`;default:return t==="app"?i.app:i.marketing}},Re=[{title:"Components",href:"/components",snippet:"Browse all documented primitives",group:"Viking-UI",keywords:["components","showcase","registry"]},{title:"Playground",href:"/playground",snippet:"Live Web Component sandbox",group:"Viking-UI",keywords:["playground","sandbox","demo"]},{title:"Architecture",href:"/architecture",snippet:"CSS + WC + Angular layers",group:"Viking-UI",keywords:["architecture","layers","web component"]},{title:"Design tokens",href:"/tokens",snippet:"Canonical --viking-* token matrix",group:"Viking-UI",keywords:["tokens","theme","css","variables"]},{title:"Theming",href:"/theming",snippet:"Light/dark mode and sync pipeline",group:"Viking-UI",keywords:["theming","dark","light","mode"]},{title:"Framework guides",href:"/frameworks",snippet:"Angular, Astro, Django setup",group:"Viking-UI",keywords:["frameworks","angular","astro","django"]},{title:"Contributing",href:"/contributing",snippet:"Extend the Viking-UI kit",group:"Viking-UI",keywords:["contributing","extend","primitives"]}],Pe=(e,t)=>e.startsWith("http")?e:`${t.replace(/\/$/,"")}${e.startsWith("/")?e:`/${e}`}`,wt=(e,t,i)=>{let r=e==="docs"?"marketing":e,a=[...B.map(o=>He(o,r,t)),...lt.flatMap(o=>o.links.map(s=>De(s,o.title,r,t))),...Oe.map(o=>({...o,href:ze(o,r,t)}))];if(e==="app"&&a.push({title:"Settings",href:"/settings",snippet:"Workspace domains, billing, and security",group:"Platform",keywords:["settings","sites","workspace","configuration"]},{title:"Billing & subscription",href:"/settings/billing",snippet:"Manage plan, invoices, and payment methods",group:"Platform",keywords:["billing","stripe","subscription","payment"]},{title:"Security settings",href:"/settings/security",snippet:"Keys, sessions, and access controls",group:"Platform",keywords:["security","keys","auth","rbac"]}),e==="docs"){let o=i?.docsOrigin??"https://ui.dataengineeringformachinelearning.com";a.push(...Re.map(s=>({...s,href:Pe(s.href,o)})))}return Ne(a)};var Yt=new Set(["app","marketing","backend","docs"]),Be=()=>{let e=document.documentElement.getAttribute("data-deml-context");if(e&&Yt.has(e))return e;let t=window.location.hostname;return t.startsWith("ui.")?"docs":t.includes("deml.app")&&!t.startsWith("backend.")?"app":t.startsWith("backend.")?"backend":"marketing"},Ke=e=>{let t=globalThis.__DEML??{};return{app:e.getAttribute("app-url")??t.app??b.app,marketing:e.getAttribute("marketing-url")??t.marketing??b.marketing,backend:e.getAttribute("backend-url")??t.backend??b.backend}},We=e=>{let t=e.getAttribute("context");return t&&Yt.has(t)?t:Be()},w=class extends c{static tag="viking-suite-command-palette";static searchTag="viking-suite-search-palette";static legacyTag="viking-suite-search-palette-wc";static get observedAttributes(){return["context","app-url","marketing-url","backend-url","placeholder","global-shortcut"]}paletteEl=null;itemsLoaded=!1;connectedCallback(){P(),this.ensurePalette(),this.loadItems()}attributeChangedCallback(t){if(this.isConnected){if(t==="placeholder"&&this.paletteEl){let i=this.getAttribute("placeholder")??"Search documentation, dashboard, settings\u2026";this.paletteEl.setAttribute("placeholder",i);return}if(t==="global-shortcut"&&this.paletteEl){k(this,"global-shortcut")||!this.hasAttribute("global-shortcut")?this.paletteEl.setAttribute("global-shortcut",""):this.paletteEl.removeAttribute("global-shortcut");return}(t==="context"||t==="app-url"||t==="marketing-url"||t==="backend-url")&&this.loadItems(!0)}}openPalette(){this.ensurePalette(),this.loadItems().then(()=>this.paletteEl?.openPalette())}closePalette(){this.paletteEl?.closePalette()}ensurePalette(){if(this.paletteEl)return;this.paletteEl=document.createElement("viking-command-palette"),this.paletteEl.id="deml-command-palette";let t=this.getAttribute("placeholder")??"Search documentation, dashboard, settings\u2026";this.paletteEl.setAttribute("placeholder",t),(k(this,"global-shortcut")||!this.hasAttribute("global-shortcut"))&&this.paletteEl.setAttribute("global-shortcut",""),this.append(this.paletteEl)}async loadItems(t=!1){if(!this.paletteEl||this.itemsLoaded&&!t)return;let i=We(this),r=Ke(this),a=wt(i,r,{docsOrigin:window.location.origin});try{let o=await fetch("/assets/site-drakkar.json",{cache:"no-cache"});if(o.ok){let s=await o.json();(s.navLinks?.length||s.footerColumns?.length)&&(a=wt(i,r,{docsOrigin:window.location.origin}))}}catch{}this.paletteEl.setAttribute("items",JSON.stringify(a)),this.itemsLoaded=!0}},W=()=>{l(w.tag,w),d(w.searchTag,w),d(w.legacyTag,w)};var Ue=`
|
|
1910
|
-
:host {
|
|
1911
|
-
display: inline-flex;
|
|
1912
|
-
}
|
|
1913
|
-
|
|
1914
|
-
.theme-toggle-btn {
|
|
1915
|
-
display: inline-flex;
|
|
1916
|
-
align-items: center;
|
|
1917
|
-
justify-content: center;
|
|
1918
|
-
flex-shrink: 0;
|
|
1919
|
-
width: var(--viking-control-height, 40px);
|
|
1920
|
-
height: var(--viking-control-height, 40px);
|
|
1921
|
-
min-width: var(--viking-control-height, 40px);
|
|
1922
|
-
padding: 0;
|
|
1923
|
-
border: 1px solid color-mix(in srgb, var(--viking-accent, var(--viking-accent)) 32%, var(--viking-border-strong, var(--viking-border)));
|
|
1924
|
-
border-radius: var(--viking-radius);
|
|
1925
|
-
background: color-mix(in srgb, var(--viking-accent, var(--viking-accent)) 8%, var(--viking-surface));
|
|
1926
|
-
color: var(--viking-accent-strong, var(--viking-ring));
|
|
1927
|
-
box-shadow: var(--viking-shadow-sm);
|
|
1928
|
-
cursor: pointer;
|
|
1929
|
-
transition: var(--viking-transition-interactive);
|
|
1930
|
-
-webkit-tap-highlight-color: transparent;
|
|
1931
|
-
}
|
|
1932
|
-
|
|
1933
|
-
.theme-toggle-btn:hover {
|
|
1934
|
-
border-color: var(--viking-accent-strong, var(--viking-ring));
|
|
1935
|
-
background: color-mix(in srgb, var(--viking-accent, var(--viking-accent)) 14%, var(--viking-surface-alt));
|
|
1936
|
-
color: var(--viking-accent-strong, var(--viking-ring));
|
|
1937
|
-
box-shadow: var(--viking-shadow-md);
|
|
1938
|
-
}
|
|
1939
|
-
|
|
1940
|
-
.theme-toggle-btn:focus-visible {
|
|
1941
|
-
outline: var(--viking-ring-width, 2px) solid var(--viking-ring);
|
|
1942
|
-
outline-offset: var(--viking-ring-offset, 2px);
|
|
1943
|
-
}
|
|
1944
|
-
|
|
1945
|
-
.theme-toggle-btn:active {
|
|
1946
|
-
transform: scale(var(--viking-state-active-scale, 0.98));
|
|
1947
|
-
}
|
|
1948
|
-
|
|
1949
|
-
.theme-icon {
|
|
1950
|
-
display: none;
|
|
1951
|
-
}
|
|
1952
|
-
|
|
1953
|
-
.theme-icon.is-visible {
|
|
1954
|
-
display: block;
|
|
1955
|
-
}
|
|
1956
|
-
`,Ge=e=>{document.documentElement.setAttribute("data-theme",e),document.documentElement.classList.toggle("dark",e==="dark"),localStorage.setItem("theme",e)},Xt=()=>{let e=localStorage.getItem("theme");return e==="light"||e==="dark"?e:window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"},U=class extends c{static tag="viking-theme-toggle-wc";shadow;button=null;sunIcon=null;moonIcon=null;onStorage=()=>{this.syncIcons()};constructor(){super(),this.shadow=this.attachShadow({mode:"open"}),u(this.shadow,Ue)}connectedCallback(){this.render(),this.syncIcons(),this.button?.addEventListener("click",this.onClick),window.addEventListener("storage",this.onStorage),window.addEventListener("viking-theme-change",this.onThemeChange)}disconnectedCallback(){this.button?.removeEventListener("click",this.onClick),window.removeEventListener("storage",this.onStorage),window.removeEventListener("viking-theme-change",this.onThemeChange)}onThemeChange=()=>{this.syncIcons()};onClick=()=>{let t=Xt()==="light"?"dark":"light";Ge(t),this.syncIcons(),this.dispatchEvent(new CustomEvent("viking-theme-change",{bubbles:!0,composed:!0,detail:{theme:t}}))};syncIcons=()=>{let t=Xt()==="dark";this.sunIcon?.classList.toggle("is-visible",t),this.moonIcon?.classList.toggle("is-visible",!t)};render(){let t=this.getAttribute("aria-label")??"Toggle light and dark theme";this.shadow.innerHTML=`
|
|
1957
|
-
<button type="button" class="theme-toggle-btn" part="control" aria-label="${t}">
|
|
1958
|
-
<svg class="theme-icon theme-icon-sun" width="20" height="20" viewBox="0 0 24 24" aria-hidden="true">
|
|
1959
|
-
<circle cx="12" cy="12" r="4" fill="none" stroke="currentColor" stroke-width="2"/>
|
|
1960
|
-
<path stroke="currentColor" stroke-width="2" d="M12 2v2M12 20v2M4.93 4.93l1.41 1.41M17.66 17.66l1.41 1.41M2 12h2M20 12h2M4.93 19.07l1.41-1.41M17.66 6.34l1.41-1.41"/>
|
|
1961
|
-
</svg>
|
|
1962
|
-
<svg class="theme-icon theme-icon-moon" width="20" height="20" viewBox="0 0 24 24" aria-hidden="true">
|
|
1963
|
-
<path fill="currentColor" d="M21 12.79A9 9 0 1111.21 3 7 7 0 0021 12.79z"/>
|
|
1964
|
-
</svg>
|
|
1965
|
-
</button>
|
|
1966
|
-
`,this.button=this.shadow.querySelector("button"),this.sunIcon=this.shadow.querySelector(".theme-icon-sun"),this.moonIcon=this.shadow.querySelector(".theme-icon-moon")}},G=()=>{l(U.tag,U)};var Zt=new Set(["app","marketing","backend","docs"]),qe=`
|
|
1967
|
-
:host {
|
|
1968
|
-
display: block;
|
|
1969
|
-
position: sticky;
|
|
1970
|
-
top: 0;
|
|
1971
|
-
z-index: var(--viking-z-sticky, 50);
|
|
1972
|
-
color: var(--viking-text);
|
|
1973
|
-
font-family: var(--viking-font-family);
|
|
1974
|
-
}
|
|
1975
|
-
|
|
1976
|
-
* {
|
|
1977
|
-
box-sizing: border-box;
|
|
1978
|
-
}
|
|
1979
|
-
|
|
1980
|
-
.suite-header {
|
|
1981
|
-
width: 100%;
|
|
1982
|
-
min-height: var(--viking-navbar-height, var(--viking-space-8));
|
|
1983
|
-
background: var(--viking-surface);
|
|
1984
|
-
border-bottom: var(--viking-border-width, 1px) solid var(--viking-border);
|
|
1985
|
-
box-shadow: var(--viking-shadow-xs);
|
|
1986
|
-
isolation: isolate;
|
|
1987
|
-
}
|
|
1988
|
-
|
|
1989
|
-
.suite-header__bar {
|
|
1990
|
-
display: grid;
|
|
1991
|
-
grid-template-columns: minmax(max-content, auto) minmax(0, 1fr) max-content;
|
|
1992
|
-
align-items: center;
|
|
1993
|
-
gap: var(--viking-space-1);
|
|
1994
|
-
width: 100%;
|
|
1995
|
-
max-width: var(--viking-container-max-width);
|
|
1996
|
-
min-height: var(--viking-navbar-height, var(--viking-space-8));
|
|
1997
|
-
margin-inline: auto;
|
|
1998
|
-
padding-inline: var(--viking-page-gutter);
|
|
1999
|
-
}
|
|
2000
|
-
|
|
2001
|
-
.suite-header__brand {
|
|
2002
|
-
display: inline-flex;
|
|
2003
|
-
align-items: center;
|
|
2004
|
-
justify-content: center;
|
|
2005
|
-
gap: var(--viking-space-1);
|
|
2006
|
-
min-width: 0;
|
|
2007
|
-
min-height: var(--viking-control-height);
|
|
2008
|
-
color: var(--viking-text);
|
|
2009
|
-
text-decoration: none;
|
|
2010
|
-
border-radius: var(--viking-radius);
|
|
2011
|
-
}
|
|
2012
|
-
|
|
2013
|
-
.suite-header__brand:focus-visible,
|
|
2014
|
-
.suite-header__link:focus-visible,
|
|
2015
|
-
.suite-header__icon-button:focus-visible,
|
|
2016
|
-
.suite-header__auth-link:focus-visible,
|
|
2017
|
-
.suite-header__user-trigger:focus-visible,
|
|
2018
|
-
.suite-header__menu-link:focus-visible,
|
|
2019
|
-
.suite-header__menu-button:focus-visible {
|
|
2020
|
-
outline: var(--viking-ring-width) solid var(--viking-ring);
|
|
2021
|
-
outline-offset: var(--viking-ring-offset);
|
|
2022
|
-
}
|
|
2023
|
-
|
|
2024
|
-
.suite-header__mark {
|
|
2025
|
-
display: inline-flex;
|
|
2026
|
-
align-items: center;
|
|
2027
|
-
justify-content: center;
|
|
2028
|
-
width: var(--viking-space-4);
|
|
2029
|
-
height: var(--viking-space-4);
|
|
2030
|
-
color: var(--viking-accent);
|
|
2031
|
-
flex: 0 0 auto;
|
|
2032
|
-
}
|
|
2033
|
-
|
|
2034
|
-
.suite-header__lockup {
|
|
2035
|
-
display: none;
|
|
2036
|
-
min-width: 0;
|
|
2037
|
-
color: var(--viking-text);
|
|
2038
|
-
font-size: var(--viking-font-size-sm);
|
|
2039
|
-
font-weight: var(--viking-font-weight-bold);
|
|
2040
|
-
line-height: var(--viking-line-height-tight);
|
|
2041
|
-
letter-spacing: var(--viking-letter-spacing-caps);
|
|
2042
|
-
text-transform: uppercase;
|
|
2043
|
-
white-space: nowrap;
|
|
2044
|
-
}
|
|
2045
|
-
|
|
2046
|
-
.suite-header__nav {
|
|
2047
|
-
display: none;
|
|
2048
|
-
align-items: center;
|
|
2049
|
-
justify-content: center;
|
|
2050
|
-
gap: var(--viking-space-half);
|
|
2051
|
-
min-width: 0;
|
|
2052
|
-
overflow: hidden;
|
|
2053
|
-
}
|
|
2054
|
-
|
|
2055
|
-
.suite-header__link {
|
|
2056
|
-
display: inline-flex;
|
|
2057
|
-
align-items: center;
|
|
2058
|
-
justify-content: center;
|
|
2059
|
-
gap: var(--viking-space-half);
|
|
2060
|
-
min-width: 0;
|
|
2061
|
-
height: var(--viking-control-height);
|
|
2062
|
-
padding-inline: var(--viking-space-1-5);
|
|
2063
|
-
color: var(--viking-text-muted);
|
|
2064
|
-
border-radius: var(--viking-radius) var(--viking-radius) 0 0;
|
|
2065
|
-
font-size: var(--viking-font-size-sm);
|
|
2066
|
-
font-weight: var(--viking-font-weight-semibold);
|
|
2067
|
-
line-height: var(--viking-line-height-none);
|
|
2068
|
-
letter-spacing: var(--viking-letter-spacing-caps);
|
|
2069
|
-
text-decoration: none;
|
|
2070
|
-
text-transform: uppercase;
|
|
2071
|
-
white-space: nowrap;
|
|
2072
|
-
transition: var(--viking-transition-interactive);
|
|
2073
|
-
}
|
|
2074
|
-
|
|
2075
|
-
.suite-header__link:hover,
|
|
2076
|
-
.suite-header__link[aria-current='page'] {
|
|
2077
|
-
color: var(--viking-text);
|
|
2078
|
-
background: var(--viking-surface-alt);
|
|
2079
|
-
}
|
|
2080
|
-
|
|
2081
|
-
.suite-header__actions {
|
|
2082
|
-
display: inline-flex;
|
|
2083
|
-
align-items: center;
|
|
2084
|
-
justify-content: flex-end;
|
|
2085
|
-
gap: var(--viking-space-1);
|
|
2086
|
-
min-width: 0;
|
|
2087
|
-
}
|
|
2088
|
-
|
|
2089
|
-
.suite-header__icon-button,
|
|
2090
|
-
.suite-header__menu-button,
|
|
2091
|
-
.suite-header__user-trigger,
|
|
2092
|
-
.suite-header__auth-link {
|
|
2093
|
-
min-height: var(--viking-control-height);
|
|
2094
|
-
border: var(--viking-border-width, 1px) solid var(--viking-border-strong);
|
|
2095
|
-
border-radius: var(--viking-radius);
|
|
2096
|
-
background: var(--viking-surface);
|
|
2097
|
-
color: var(--viking-text);
|
|
2098
|
-
box-shadow: var(--viking-shadow-sm);
|
|
2099
|
-
cursor: pointer;
|
|
2100
|
-
font-family: inherit;
|
|
2101
|
-
transition: var(--viking-transition-interactive);
|
|
2102
|
-
-webkit-tap-highlight-color: transparent;
|
|
2103
|
-
}
|
|
2104
|
-
|
|
2105
|
-
.suite-header__icon-button,
|
|
2106
|
-
.suite-header__menu-button {
|
|
2107
|
-
display: inline-flex;
|
|
2108
|
-
align-items: center;
|
|
2109
|
-
justify-content: center;
|
|
2110
|
-
width: var(--viking-control-height);
|
|
2111
|
-
min-width: var(--viking-control-height);
|
|
2112
|
-
padding: 0;
|
|
2113
|
-
}
|
|
2114
|
-
|
|
2115
|
-
.suite-header__icon-button:hover,
|
|
2116
|
-
.suite-header__menu-button:hover,
|
|
2117
|
-
.suite-header__user-trigger:hover,
|
|
2118
|
-
.suite-header__auth-link:hover {
|
|
2119
|
-
border-color: var(--viking-accent-strong);
|
|
2120
|
-
background: var(--viking-surface-alt);
|
|
2121
|
-
box-shadow: var(--viking-shadow-md);
|
|
2122
|
-
}
|
|
2123
|
-
|
|
2124
|
-
.suite-header__auth-link {
|
|
2125
|
-
display: none;
|
|
2126
|
-
align-items: center;
|
|
2127
|
-
justify-content: center;
|
|
2128
|
-
gap: var(--viking-space-half);
|
|
2129
|
-
min-width: max-content;
|
|
2130
|
-
padding-inline: var(--viking-space-2);
|
|
2131
|
-
background: var(--viking-accent);
|
|
2132
|
-
border-color: var(--viking-accent);
|
|
2133
|
-
color: var(--viking-accent-content);
|
|
2134
|
-
font-size: var(--viking-font-size-sm);
|
|
2135
|
-
font-weight: var(--viking-font-weight-bold);
|
|
2136
|
-
line-height: var(--viking-line-height-none);
|
|
2137
|
-
letter-spacing: var(--viking-letter-spacing-caps);
|
|
2138
|
-
text-decoration: none;
|
|
2139
|
-
text-transform: uppercase;
|
|
2140
|
-
}
|
|
2141
|
-
|
|
2142
|
-
.suite-header__auth-icon,
|
|
2143
|
-
.suite-header__menu-icon,
|
|
2144
|
-
.suite-header__action-icon,
|
|
2145
|
-
.suite-header__avatar-icon,
|
|
2146
|
-
.suite-header__chevron {
|
|
2147
|
-
display: inline-flex;
|
|
2148
|
-
align-items: center;
|
|
2149
|
-
justify-content: center;
|
|
2150
|
-
flex-shrink: 0;
|
|
2151
|
-
}
|
|
2152
|
-
|
|
2153
|
-
.suite-header__auth-link:hover {
|
|
2154
|
-
background: var(--viking-accent-hover);
|
|
2155
|
-
color: var(--viking-accent-content);
|
|
2156
|
-
}
|
|
2157
|
-
|
|
2158
|
-
.suite-header__user {
|
|
2159
|
-
position: relative;
|
|
2160
|
-
display: none;
|
|
2161
|
-
}
|
|
2162
|
-
|
|
2163
|
-
.suite-header__user-trigger {
|
|
2164
|
-
display: inline-flex;
|
|
2165
|
-
align-items: center;
|
|
2166
|
-
justify-content: center;
|
|
2167
|
-
gap: var(--viking-space-1);
|
|
2168
|
-
min-width: max-content;
|
|
2169
|
-
padding-inline: var(--viking-space-1);
|
|
2170
|
-
}
|
|
2171
|
-
|
|
2172
|
-
.suite-header__avatar {
|
|
2173
|
-
display: inline-flex;
|
|
2174
|
-
align-items: center;
|
|
2175
|
-
justify-content: center;
|
|
2176
|
-
width: var(--viking-space-3);
|
|
2177
|
-
height: var(--viking-space-3);
|
|
2178
|
-
border-radius: var(--viking-radius-full);
|
|
2179
|
-
background: var(--viking-accent-soft);
|
|
2180
|
-
color: var(--viking-accent-strong);
|
|
2181
|
-
}
|
|
2182
|
-
|
|
2183
|
-
.suite-header__user-text {
|
|
2184
|
-
display: none;
|
|
2185
|
-
max-width: var(--viking-space-16);
|
|
2186
|
-
overflow: hidden;
|
|
2187
|
-
color: var(--viking-text);
|
|
2188
|
-
font-size: var(--viking-font-size-sm);
|
|
2189
|
-
font-weight: var(--viking-font-weight-semibold);
|
|
2190
|
-
line-height: var(--viking-line-height-tight);
|
|
2191
|
-
text-overflow: ellipsis;
|
|
2192
|
-
white-space: nowrap;
|
|
2193
|
-
}
|
|
2194
|
-
|
|
2195
|
-
.suite-header__menu {
|
|
2196
|
-
position: absolute;
|
|
2197
|
-
inset-block-start: calc(100% + var(--viking-space-1));
|
|
2198
|
-
inset-inline-end: 0;
|
|
2199
|
-
display: none;
|
|
2200
|
-
min-width: var(--viking-space-24);
|
|
2201
|
-
padding: var(--viking-space-1);
|
|
2202
|
-
background: var(--viking-surface);
|
|
2203
|
-
border: var(--viking-border-width, 1px) solid var(--viking-border-strong);
|
|
2204
|
-
border-radius: var(--viking-radius);
|
|
2205
|
-
box-shadow: var(--viking-shadow-lg);
|
|
2206
|
-
}
|
|
2207
|
-
|
|
2208
|
-
.suite-header__user[data-open='true'] .suite-header__menu {
|
|
2209
|
-
display: grid;
|
|
2210
|
-
gap: var(--viking-space-half);
|
|
2211
|
-
}
|
|
2212
|
-
|
|
2213
|
-
.suite-header__menu-label {
|
|
2214
|
-
padding: var(--viking-space-1);
|
|
2215
|
-
color: var(--viking-text-muted);
|
|
2216
|
-
font-size: var(--viking-font-size-xs);
|
|
2217
|
-
line-height: var(--viking-line-height-tight);
|
|
2218
|
-
}
|
|
2219
|
-
|
|
2220
|
-
.suite-header__menu-label strong {
|
|
2221
|
-
display: block;
|
|
2222
|
-
color: var(--viking-text);
|
|
2223
|
-
font-size: var(--viking-font-size-sm);
|
|
2224
|
-
}
|
|
2225
|
-
|
|
2226
|
-
.suite-header__menu-link,
|
|
2227
|
-
.suite-header__menu-button {
|
|
2228
|
-
display: inline-flex;
|
|
2229
|
-
align-items: center;
|
|
2230
|
-
justify-content: flex-start;
|
|
2231
|
-
gap: var(--viking-space-1);
|
|
2232
|
-
width: 100%;
|
|
2233
|
-
min-height: var(--viking-control-height);
|
|
2234
|
-
padding-inline: var(--viking-space-1);
|
|
2235
|
-
background: transparent;
|
|
2236
|
-
border: 0;
|
|
2237
|
-
border-radius: var(--viking-radius-sm);
|
|
2238
|
-
box-shadow: none;
|
|
2239
|
-
color: var(--viking-text);
|
|
2240
|
-
font: inherit;
|
|
2241
|
-
text-align: start;
|
|
2242
|
-
text-decoration: none;
|
|
2243
|
-
}
|
|
2244
|
-
|
|
2245
|
-
.suite-header__menu-link:hover,
|
|
2246
|
-
.suite-header__menu-button:hover {
|
|
2247
|
-
background: var(--viking-surface-alt);
|
|
2248
|
-
}
|
|
2249
|
-
|
|
2250
|
-
.suite-header__mobile {
|
|
2251
|
-
display: none;
|
|
2252
|
-
width: 100%;
|
|
2253
|
-
max-width: var(--viking-container-max-width);
|
|
2254
|
-
margin-inline: auto;
|
|
2255
|
-
padding: 0 var(--viking-page-gutter) var(--viking-space-2);
|
|
2256
|
-
}
|
|
2257
|
-
|
|
2258
|
-
.suite-header[data-menu-open='true'] .suite-header__mobile {
|
|
2259
|
-
display: grid;
|
|
2260
|
-
gap: var(--viking-space-1);
|
|
2261
|
-
}
|
|
2262
|
-
|
|
2263
|
-
.suite-header__mobile .suite-header__link,
|
|
2264
|
-
.suite-header__mobile .suite-header__auth-link,
|
|
2265
|
-
.suite-header__mobile .suite-header__menu-button {
|
|
2266
|
-
display: inline-flex;
|
|
2267
|
-
justify-content: flex-start;
|
|
2268
|
-
width: 100%;
|
|
2269
|
-
border-radius: var(--viking-radius);
|
|
2270
|
-
}
|
|
2271
|
-
|
|
2272
|
-
.suite-header__mobile .suite-header__auth-link {
|
|
2273
|
-
justify-content: center;
|
|
2274
|
-
margin-block-start: var(--viking-space-1);
|
|
2275
|
-
}
|
|
2276
|
-
|
|
2277
|
-
viking-suite-command-palette {
|
|
2278
|
-
display: contents;
|
|
2279
|
-
}
|
|
2280
|
-
|
|
2281
|
-
@media (min-width: 520px) {
|
|
2282
|
-
.suite-header__lockup,
|
|
2283
|
-
.suite-header__user-text {
|
|
2284
|
-
display: inline;
|
|
2285
|
-
}
|
|
2286
|
-
}
|
|
2287
|
-
|
|
2288
|
-
@media (min-width: 768px) {
|
|
2289
|
-
.suite-header__bar {
|
|
2290
|
-
padding-inline: var(--viking-page-gutter-lg);
|
|
2291
|
-
}
|
|
2292
|
-
|
|
2293
|
-
.suite-header__nav {
|
|
2294
|
-
display: flex;
|
|
2295
|
-
}
|
|
2296
|
-
|
|
2297
|
-
.suite-header__auth-link,
|
|
2298
|
-
.suite-header__user {
|
|
2299
|
-
display: inline-flex;
|
|
2300
|
-
}
|
|
2301
|
-
|
|
2302
|
-
.suite-header__menu-button {
|
|
2303
|
-
display: none;
|
|
2304
|
-
}
|
|
2305
|
-
|
|
2306
|
-
.suite-header[data-menu-open='true'] .suite-header__mobile {
|
|
2307
|
-
display: none;
|
|
2308
|
-
}
|
|
2309
|
-
}
|
|
2310
|
-
`,Fe=()=>{let e=document.documentElement.getAttribute("data-deml-context");if(e&&Zt.has(e))return e;let t=window.location.hostname;return t.startsWith("ui.")?"docs":t.startsWith("backend.")?"backend":t.includes("deml.app")?"app":"marketing"},je=e=>{let t=e.getAttribute("context");return t&&Zt.has(t)?t:Fe()},Ye=e=>{let t=globalThis.__DEML??{};return{app:e.getAttribute("app-url")??t.app??b.app,marketing:e.getAttribute("marketing-url")??t.marketing??b.marketing,backend:e.getAttribute("backend-url")??t.backend??b.backend}},Xe=e=>{try{let t=new URL(e,window.location.origin);return t.origin===window.location.origin&&t.pathname===window.location.pathname}catch{return!1}},q=class extends c{static tag="viking-suite-header";static get observedAttributes(){return["context","app-url","marketing-url","backend-url","authenticated","user-name","user-email","sign-in-href","dashboard-href"]}shadow;menuOpen=!1;userMenuOpen=!1;paletteEl=null;constructor(){super(),this.shadow=this.attachShadow({mode:"open"}),u(this.shadow,qe)}connectedCallback(){G(),W(),this.render(),document.addEventListener("click",this.onDocumentClick)}disconnectedCallback(){document.removeEventListener("click",this.onDocumentClick)}attributeChangedCallback(){this.isConnected&&this.render()}openSearch(){this.paletteEl?.openPalette(),this.dispatchEvent(new CustomEvent("viking-search-open",{bubbles:!0,composed:!0}))}onDocumentClick=t=>{t.composedPath().includes(this)||(this.menuOpen||this.userMenuOpen)&&(this.menuOpen=!1,this.userMenuOpen=!1,this.syncOpenState())};onSearchClick=()=>{this.openSearch()};onMenuClick=()=>{this.menuOpen=!this.menuOpen,this.syncOpenState()};onUserClick=()=>{this.userMenuOpen=!this.userMenuOpen,this.syncOpenState()};onSignInClick=t=>{let i=new CustomEvent("viking-sign-in",{bubbles:!0,cancelable:!0,composed:!0,detail:t});this.dispatchEvent(i),i.defaultPrevented&&t.preventDefault()};onSignOutClick=()=>{this.userMenuOpen=!1,this.menuOpen=!1,this.syncOpenState(),this.dispatchEvent(new CustomEvent("viking-sign-out",{bubbles:!0,composed:!0}))};syncOpenState(){let t=this.shadow.querySelector(".suite-header"),i=this.shadow.querySelector("[data-menu-toggle]"),r=this.shadow.querySelector(".suite-header__user"),a=this.shadow.querySelector("[data-user-toggle]");t?.setAttribute("data-menu-open",String(this.menuOpen)),i?.setAttribute("aria-expanded",String(this.menuOpen)),r?.setAttribute("data-open",String(this.userMenuOpen)),a?.setAttribute("aria-expanded",String(this.userMenuOpen))}renderNavLinks(t,i,r){return Gt(B,r).map(a=>{let o=K(a,t,i),s=Xe(o)?' aria-current="page"':"";return`
|
|
2311
|
-
<a class="suite-header__link" href="${n(o)}"${s}>
|
|
2312
|
-
${h(a.icon,16,"suite-header__link-icon")}
|
|
2313
|
-
<span>${n(a.label)}</span>
|
|
2314
|
-
</a>
|
|
2315
|
-
`}).join("")}renderAuth(t,i,r=!1){if(!i){let s=this.getAttribute("sign-in-href")??`${t.app}/login`;return`
|
|
2316
|
-
<a class="suite-header__auth-link" href="${n(s)}" data-sign-in>
|
|
2317
|
-
<span>Sign In</span>
|
|
2318
|
-
${h("arrow-right",16,"suite-header__auth-icon")}
|
|
2319
|
-
</a>
|
|
2320
|
-
`}if(r)return`
|
|
2321
|
-
<a class="suite-header__menu-link" href="${n(this.getDashboardHref(t))}">
|
|
2322
|
-
${h("home",16,"suite-header__menu-icon")}
|
|
2323
|
-
<span>Dashboard</span>
|
|
2324
|
-
</a>
|
|
2325
|
-
<button class="suite-header__menu-button" type="button" data-sign-out>
|
|
2326
|
-
${h("log-out",16,"suite-header__menu-icon")}
|
|
2327
|
-
<span>Sign Out</span>
|
|
2328
|
-
</button>
|
|
2329
|
-
`;let a=this.getAttribute("user-name")??"Account",o=this.getAttribute("user-email")??"";return`
|
|
2330
|
-
<div class="suite-header__user" data-open="${String(this.userMenuOpen)}">
|
|
2331
|
-
<button
|
|
2332
|
-
class="suite-header__user-trigger"
|
|
2333
|
-
type="button"
|
|
2334
|
-
aria-haspopup="menu"
|
|
2335
|
-
aria-expanded="${String(this.userMenuOpen)}"
|
|
2336
|
-
data-user-toggle
|
|
2337
|
-
>
|
|
2338
|
-
<span class="suite-header__avatar" aria-hidden="true">
|
|
2339
|
-
${h("user",16,"suite-header__avatar-icon")}
|
|
2340
|
-
</span>
|
|
2341
|
-
<span class="suite-header__user-text">${n(a)}</span>
|
|
2342
|
-
${h("chevron-down",16,"suite-header__chevron")}
|
|
2343
|
-
</button>
|
|
2344
|
-
<div class="suite-header__menu" role="menu">
|
|
2345
|
-
<div class="suite-header__menu-label">
|
|
2346
|
-
<strong>${n(a)}</strong>
|
|
2347
|
-
${o?`<span>${n(o)}</span>`:""}
|
|
2348
|
-
</div>
|
|
2349
|
-
<a class="suite-header__menu-link" role="menuitem" href="${n(this.getDashboardHref(t))}">
|
|
2350
|
-
${h("home",16,"suite-header__menu-icon")}
|
|
2351
|
-
<span>Dashboard</span>
|
|
2352
|
-
</a>
|
|
2353
|
-
<button class="suite-header__menu-button" type="button" role="menuitem" data-sign-out>
|
|
2354
|
-
${h("log-out",16,"suite-header__menu-icon")}
|
|
2355
|
-
<span>Sign Out</span>
|
|
2356
|
-
</button>
|
|
2357
|
-
</div>
|
|
2358
|
-
</div>
|
|
2359
|
-
`}getDashboardHref(t){return this.getAttribute("dashboard-href")??`${t.app}/dashboard`}render(){let t=je(this),i=Ye(this),r=k(this,"authenticated"),a=this.renderNavLinks(t,i,r),o=gt(t,i),s=`${Z()}K`;this.shadow.innerHTML=`
|
|
2360
|
-
<header class="suite-header" data-menu-open="${String(this.menuOpen)}">
|
|
2361
|
-
<div class="suite-header__bar">
|
|
2362
|
-
<a class="suite-header__brand" href="${n(o)}" aria-label="Data Engineering for Machine Learning home">
|
|
2363
|
-
<span class="suite-header__mark" aria-hidden="true">
|
|
2364
|
-
${h("drakkar",28,"suite-header__brand-icon")}
|
|
2365
|
-
</span>
|
|
2366
|
-
<span class="suite-header__lockup">DEML</span>
|
|
2367
|
-
</a>
|
|
2368
|
-
|
|
2369
|
-
<nav class="suite-header__nav" aria-label="Main navigation">
|
|
2370
|
-
${a}
|
|
2371
|
-
</nav>
|
|
2372
|
-
|
|
2373
|
-
<div class="suite-header__actions">
|
|
2374
|
-
<button
|
|
2375
|
-
class="suite-header__icon-button"
|
|
2376
|
-
type="button"
|
|
2377
|
-
aria-label="Open command palette (${s})"
|
|
2378
|
-
title="Open command palette (${s})"
|
|
2379
|
-
data-search-trigger
|
|
2380
|
-
>
|
|
2381
|
-
${h("search",18,"suite-header__action-icon")}
|
|
2382
|
-
</button>
|
|
2383
|
-
${this.renderAuth(i,r)}
|
|
2384
|
-
<viking-theme-toggle-wc></viking-theme-toggle-wc>
|
|
2385
|
-
<button
|
|
2386
|
-
class="suite-header__menu-button"
|
|
2387
|
-
type="button"
|
|
2388
|
-
aria-label="Toggle navigation menu"
|
|
2389
|
-
aria-expanded="${String(this.menuOpen)}"
|
|
2390
|
-
data-menu-toggle
|
|
2391
|
-
>
|
|
2392
|
-
${h(this.menuOpen?"x":"menu",18,"suite-header__action-icon")}
|
|
2393
|
-
</button>
|
|
2394
|
-
</div>
|
|
2395
|
-
</div>
|
|
2396
|
-
|
|
2397
|
-
<nav class="suite-header__mobile" aria-label="Mobile navigation">
|
|
2398
|
-
${a}
|
|
2399
|
-
${this.renderAuth(i,r,!0)}
|
|
2400
|
-
</nav>
|
|
2401
|
-
</header>
|
|
2402
|
-
<viking-suite-command-palette
|
|
2403
|
-
context="${t}"
|
|
2404
|
-
app-url="${n(i.app)}"
|
|
2405
|
-
marketing-url="${n(i.marketing)}"
|
|
2406
|
-
backend-url="${n(i.backend)}"
|
|
2407
|
-
global-shortcut
|
|
2408
|
-
></viking-suite-command-palette>
|
|
2409
|
-
`,this.paletteEl=this.shadow.querySelector("viking-suite-command-palette"),this.shadow.querySelector("[data-search-trigger]")?.addEventListener("click",this.onSearchClick),this.shadow.querySelector("[data-menu-toggle]")?.addEventListener("click",this.onMenuClick),this.shadow.querySelector("[data-user-toggle]")?.addEventListener("click",this.onUserClick),this.shadow.querySelectorAll("[data-sign-in]").forEach(v=>v.addEventListener("click",this.onSignInClick)),this.shadow.querySelectorAll("[data-sign-out]").forEach(v=>v.addEventListener("click",this.onSignOutClick))}},ut=()=>{l(q.tag,q)};var N=class extends c{static formAssociated=!0;static tag="viking-select";static legacyTag="viking-select-wc";static get observedAttributes(){return["label","name","value","placeholder","description","error","width","disabled","required"]}shadow;internals;selectEl=null;optionObserver=null;controlId=_("viking-select");constructor(){super(),this.shadow=this.attachShadow({mode:"open"}),this.internals=Y(this),u(this.shadow,Rt)}connectedCallback(){this.render(),this.syncOptions(),this.observeOptions(),this.selectEl?.addEventListener("change",this.onChange)}disconnectedCallback(){this.selectEl?.removeEventListener("change",this.onChange),this.optionObserver?.disconnect(),this.optionObserver=null}attributeChangedCallback(t){if(this.isConnected){if(t==="value"&&this.selectEl){this.selectEl.value=this.getAttribute("value")??"",this.syncFormValue();return}if(t==="error"||t==="description"||t==="label"){this.render(),this.syncOptions();return}this.render(),this.syncOptions()}}get value(){return this.selectEl?.value??this.getAttribute("value")??""}set value(t){this.setAttribute("value",t),this.selectEl&&(this.selectEl.value=t),this.syncFormValue()}onChange=()=>{let t=this.selectEl?.value??"";this.setAttribute("value",t),this.syncFormValue(),this.dispatchEvent(new CustomEvent("viking-change",{bubbles:!0,composed:!0,detail:{value:t}}))};syncFormValue(){j(this.internals,this.value)}observeOptions(){this.optionObserver?.disconnect(),this.optionObserver=new MutationObserver(()=>this.syncOptions()),this.optionObserver.observe(this,{childList:!0,subtree:!0,characterData:!0})}render(){let t=this.getAttribute("label")??"",i=this.getAttribute("name")??"",r=this.hasAttribute("disabled"),a=this.hasAttribute("required"),o=this.getAttribute("error")??"",s=this.getAttribute("description")??"",v=[s&&`${this.controlId}-desc`,o&&`${this.controlId}-error`].filter(Boolean).join(" ");this.shadow.innerHTML=`
|
|
2410
|
-
<div class="viking-field" part="field">
|
|
2411
|
-
${t?`<label class="viking-field-label" part="label" for="${this.controlId}">${n(t)}</label>`:""}
|
|
2412
|
-
<select
|
|
2413
|
-
id="${this.controlId}"
|
|
2414
|
-
class="viking-select-native"
|
|
2415
|
-
part="control"
|
|
2416
|
-
${i?`name="${n(i)}"`:""}
|
|
2417
|
-
${r?"disabled":""}
|
|
2418
|
-
${a?"required":""}
|
|
2419
|
-
${o?'aria-invalid="true"':""}
|
|
2420
|
-
${v?`aria-describedby="${v}"`:""}
|
|
2421
|
-
></select>
|
|
2422
|
-
${s?`<p id="${this.controlId}-desc" class="viking-field-description" part="description">${n(s)}</p>`:""}
|
|
2423
|
-
${o?`<p id="${this.controlId}-error" class="viking-field-error" part="error" role="alert">${n(o)}</p>`:""}
|
|
2424
|
-
</div>
|
|
2425
|
-
`,this.selectEl=this.shadow.querySelector("select");let g=this.getAttribute("value");this.selectEl&&g&&(this.selectEl.value=g),this.syncFormValue()}syncOptions(){if(!this.selectEl)return;let t=this.selectEl.value;this.selectEl.innerHTML="";let i=this.querySelectorAll("option");if(i.length===0){let a=this.getAttribute("placeholder")??"Select\u2026",o=document.createElement("option");o.value="",o.textContent=a,o.disabled=!0,o.selected=!this.getAttribute("value"),this.selectEl.append(o);return}i.forEach(a=>{this.selectEl?.append(a.cloneNode(!0))});let r=this.getAttribute("value");r?this.selectEl.value=r:t&&(this.selectEl.value=t),this.syncFormValue()}},pt=()=>{l(N.tag,N),d(N.legacyTag,N)};var _t=()=>{tt(),rt(),nt(),Q(),et(),it(),pt(),at(),P(),ot(),st(),ut(),W(),ht(),vt(),G()};typeof globalThis<"u"&&typeof document<"u"&&(document.readyState==="loading"?document.addEventListener("DOMContentLoaded",_t):_t());return ne(Ze);})();
|