@useinsider/ab-components 0.0.150-beta.90 → 0.0.150-beta.91
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ab-components.cjs.js +1 -1
- package/dist/ab-components.cjs.js.map +1 -1
- package/dist/ab-components.es.js +1 -1
- package/dist/ab-components.iife.js +1 -1
- package/dist/ab-components.iife.js.map +1 -1
- package/dist/ab-components.umd.js +1 -1
- package/dist/ab-components.umd.js.map +1 -1
- package/dist/{index-DtzParvM.js → index-OCZiT9g1.js} +3 -3
- package/dist/index-OCZiT9g1.js.map +1 -0
- package/dist/{liquid-BukDVyfu.js → liquid-DZ6nV5Sw.js} +2 -2
- package/dist/{liquid-BukDVyfu.js.map → liquid-DZ6nV5Sw.js.map} +1 -1
- package/package.json +1 -1
- package/dist/index-DtzParvM.js.map +0 -1
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
</clipPath>
|
|
91
91
|
</defs>
|
|
92
92
|
</svg>
|
|
93
|
-
`,fk={class:"ab-onsite-no-data"},pk=["innerHTML"],hk={class:"ab-onsite-no-data__title"},mk={key:0,class:"ab-onsite-no-data__description"},gk=mt(i.defineComponent({__name:"OnsiteNoData",props:{title:{},description:{default:""},buttonLabel:{default:""},buttonIcon:{default:void 0}},emits:["action"],setup(n,{emit:e}){const t=e;return(r,a)=>(i.openBlock(),i.createElementBlock("div",fk,[i.createElementVNode("span",{"aria-hidden":"true",class:"ab-onsite-no-data__illustration",innerHTML:i.unref(dk)},null,8,pk),i.createElementVNode("p",hk,i.toDisplayString(r.title),1),r.description?(i.openBlock(),i.createElementBlock("p",mk,i.toDisplayString(r.description),1)):i.createCommentVNode("",!0),r.buttonLabel?(i.openBlock(),i.createBlock(Bt,{key:1,class:"ab-onsite-no-data__action",color:"subtle-primary",variant:"solid","icon-size":24,label:r.buttonLabel,"left-icon-name":r.buttonIcon,onClick:a[0]||(a[0]=o=>t("action"))},null,8,["label","left-icon-name"])):i.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-fcf897c6"]]),no={inputButton__size_default:"_inputButton__size_default_1qxth_1",inputButton__size_small:"_inputButton__size_small_1qxth_8",inputButton:"_inputButton_1qxth_1",inputButton__input:"_inputButton__input_1qxth_65","inputButton__solid-primary":"_inputButton__solid-primary_1qxth_108","no-hover-effect":"_no-hover-effect_1qxth_115","inputButton--selected":"_inputButton--selected_1qxth_131","inputButton__solid-subtle-primary":"_inputButton__solid-subtle-primary_1qxth_138","inputButton__solid-secondary":"_inputButton__solid-secondary_1qxth_168","inputButton__solid-neutral":"_inputButton__solid-neutral_1qxth_198","inputButton__solid-danger":"_inputButton__solid-danger_1qxth_228","inputButton__solid-warning":"_inputButton__solid-warning_1qxth_258","inputButton__solid-smart":"_inputButton__solid-smart_1qxth_288","inputButton__ghost-primary":"_inputButton__ghost-primary_1qxth_318","inputButton__ghost-subtle-primary":"_inputButton__ghost-subtle-primary_1qxth_348","inputButton__ghost-secondary":"_inputButton__ghost-secondary_1qxth_378","inputButton__ghost-neutral":"_inputButton__ghost-neutral_1qxth_408","inputButton__ghost-danger":"_inputButton__ghost-danger_1qxth_438","inputButton__ghost-warning":"_inputButton__ghost-warning_1qxth_468","inputButton__ghost-smart":"_inputButton__ghost-smart_1qxth_498","inputButton__text-primary":"_inputButton__text-primary_1qxth_528","inputButton__text-text":"_inputButton__text-text_1qxth_558","inputButton__text-subtle-primary":"_inputButton__text-subtle-primary_1qxth_588","inputButton__text-secondary":"_inputButton__text-secondary_1qxth_618","inputButton__text-neutral":"_inputButton__text-neutral_1qxth_648","inputButton__text-danger":"_inputButton__text-danger_1qxth_678","inputButton__text-warning":"_inputButton__text-warning_1qxth_708","inputButton__text-smart":"_inputButton__text-smart_1qxth_738","inputButton__outline-primary":"_inputButton__outline-primary_1qxth_768","inputButton__outline-subtle-primary":"_inputButton__outline-subtle-primary_1qxth_801","inputButton__outline-secondary":"_inputButton__outline-secondary_1qxth_834","inputButton__outline-neutral":"_inputButton__outline-neutral_1qxth_867","inputButton__outline-danger":"_inputButton__outline-danger_1qxth_900","inputButton__outline-warning":"_inputButton__outline-warning_1qxth_933","inputButton__outline-smart":"_inputButton__outline-smart_1qxth_966",inputButton__solid:"_inputButton__solid_1qxth_108",fill:"_fill_1qxth_1013"},bk=["disabled"],yk=["disabled","placeholder","type","value"],_k=i.defineComponent({__name:"InputButton",props:{variant:{},color:{},size:{default:"default"},rightIconName:{},iconSize:{default:16},loadingStatus:{type:Boolean,default:!1},successStatus:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},fill:{type:Boolean,default:!1},customClass:{},inputValue:{default:""},inputPlaceholder:{default:""},inputType:{default:"text"}},emits:["click","input-change"],setup(n,{emit:e}){const t=n,r=e,a=p=>{t.disabled||r("click",p)},o=p=>{const f=p.target;r("input-change",f.value)},u=p=>{p.key==="Enter"?(p.preventDefault(),p.target.blur()):p.key==="Escape"&&(p.preventDefault(),p.target.value=t.inputValue||"",p.target.blur())},s=i.computed(()=>{if(t.loadingStatus)return"loading-circle";if(t.successStatus)return"line-check-natural"}),d=i.computed(()=>{const p=[no.inputButton,no[`inputButton__${t.variant}`],no[`inputButton__${t.variant}-${t.color}`],no[`inputButton__size_${t.size}`]];return t.fill&&p.push(no.fill),t.customClass&&p.push(t.customClass),p});return(p,f)=>(i.openBlock(),i.createElementBlock("button",{class:i.normalizeClass(d.value),disabled:t.disabled,onClick:a},[s.value?(i.openBlock(),i.createBlock(Oe,{key:0,name:s.value,size:p.iconSize},null,8,["name","size"])):i.createCommentVNode("",!0),i.createElementVNode("input",{class:i.normalizeClass(i.unref(no).inputButton__input),disabled:t.disabled,placeholder:p.inputPlaceholder,type:p.inputType,value:p.inputValue,onClick:f[0]||(f[0]=i.withModifiers(()=>{},["stop"])),onInput:o,onKeydown:u},null,42,yk),p.rightIconName?(i.openBlock(),i.createBlock(Oe,{key:1,name:p.rightIconName,size:p.iconSize},null,8,["name","size"])):i.createCommentVNode("",!0)],10,bk))}});function P7(n,e){let t;return(...r)=>{t&&clearTimeout(t),t=setTimeout(()=>{n(...r)},e)}}const wk=["background-codesnippet-sidebar","background-elevated","background-surface-subtle","border-state-error","shadow-elevation","text-default","text-state-disabled"],Ck=/^[#\w\s().,%/+-]+$/,Ek=[["--vscode-editor-background","background-elevated"],["--vscode-editorGutter-background","background-elevated"],["--vscode-editorLineNumber-foreground","text-state-disabled"],["--vscode-editorLineNumber-activeForeground","text-default"],["--vscode-editor-foreground","text-default"]];function vk(n){const e=n.closest(
|
|
93
|
+
`,fk={class:"ab-onsite-no-data"},pk=["innerHTML"],hk={class:"ab-onsite-no-data__title"},mk={key:0,class:"ab-onsite-no-data__description"},gk=mt(i.defineComponent({__name:"OnsiteNoData",props:{title:{},description:{default:""},buttonLabel:{default:""},buttonIcon:{default:void 0}},emits:["action"],setup(n,{emit:e}){const t=e;return(r,a)=>(i.openBlock(),i.createElementBlock("div",fk,[i.createElementVNode("span",{"aria-hidden":"true",class:"ab-onsite-no-data__illustration",innerHTML:i.unref(dk)},null,8,pk),i.createElementVNode("p",hk,i.toDisplayString(r.title),1),r.description?(i.openBlock(),i.createElementBlock("p",mk,i.toDisplayString(r.description),1)):i.createCommentVNode("",!0),r.buttonLabel?(i.openBlock(),i.createBlock(Bt,{key:1,class:"ab-onsite-no-data__action",color:"subtle-primary",variant:"solid","icon-size":24,label:r.buttonLabel,"left-icon-name":r.buttonIcon,onClick:a[0]||(a[0]=o=>t("action"))},null,8,["label","left-icon-name"])):i.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-fcf897c6"]]),no={inputButton__size_default:"_inputButton__size_default_1qxth_1",inputButton__size_small:"_inputButton__size_small_1qxth_8",inputButton:"_inputButton_1qxth_1",inputButton__input:"_inputButton__input_1qxth_65","inputButton__solid-primary":"_inputButton__solid-primary_1qxth_108","no-hover-effect":"_no-hover-effect_1qxth_115","inputButton--selected":"_inputButton--selected_1qxth_131","inputButton__solid-subtle-primary":"_inputButton__solid-subtle-primary_1qxth_138","inputButton__solid-secondary":"_inputButton__solid-secondary_1qxth_168","inputButton__solid-neutral":"_inputButton__solid-neutral_1qxth_198","inputButton__solid-danger":"_inputButton__solid-danger_1qxth_228","inputButton__solid-warning":"_inputButton__solid-warning_1qxth_258","inputButton__solid-smart":"_inputButton__solid-smart_1qxth_288","inputButton__ghost-primary":"_inputButton__ghost-primary_1qxth_318","inputButton__ghost-subtle-primary":"_inputButton__ghost-subtle-primary_1qxth_348","inputButton__ghost-secondary":"_inputButton__ghost-secondary_1qxth_378","inputButton__ghost-neutral":"_inputButton__ghost-neutral_1qxth_408","inputButton__ghost-danger":"_inputButton__ghost-danger_1qxth_438","inputButton__ghost-warning":"_inputButton__ghost-warning_1qxth_468","inputButton__ghost-smart":"_inputButton__ghost-smart_1qxth_498","inputButton__text-primary":"_inputButton__text-primary_1qxth_528","inputButton__text-text":"_inputButton__text-text_1qxth_558","inputButton__text-subtle-primary":"_inputButton__text-subtle-primary_1qxth_588","inputButton__text-secondary":"_inputButton__text-secondary_1qxth_618","inputButton__text-neutral":"_inputButton__text-neutral_1qxth_648","inputButton__text-danger":"_inputButton__text-danger_1qxth_678","inputButton__text-warning":"_inputButton__text-warning_1qxth_708","inputButton__text-smart":"_inputButton__text-smart_1qxth_738","inputButton__outline-primary":"_inputButton__outline-primary_1qxth_768","inputButton__outline-subtle-primary":"_inputButton__outline-subtle-primary_1qxth_801","inputButton__outline-secondary":"_inputButton__outline-secondary_1qxth_834","inputButton__outline-neutral":"_inputButton__outline-neutral_1qxth_867","inputButton__outline-danger":"_inputButton__outline-danger_1qxth_900","inputButton__outline-warning":"_inputButton__outline-warning_1qxth_933","inputButton__outline-smart":"_inputButton__outline-smart_1qxth_966",inputButton__solid:"_inputButton__solid_1qxth_108",fill:"_fill_1qxth_1013"},bk=["disabled"],yk=["disabled","placeholder","type","value"],_k=i.defineComponent({__name:"InputButton",props:{variant:{},color:{},size:{default:"default"},rightIconName:{},iconSize:{default:16},loadingStatus:{type:Boolean,default:!1},successStatus:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},fill:{type:Boolean,default:!1},customClass:{},inputValue:{default:""},inputPlaceholder:{default:""},inputType:{default:"text"}},emits:["click","input-change"],setup(n,{emit:e}){const t=n,r=e,a=p=>{t.disabled||r("click",p)},o=p=>{const f=p.target;r("input-change",f.value)},u=p=>{p.key==="Enter"?(p.preventDefault(),p.target.blur()):p.key==="Escape"&&(p.preventDefault(),p.target.value=t.inputValue||"",p.target.blur())},s=i.computed(()=>{if(t.loadingStatus)return"loading-circle";if(t.successStatus)return"line-check-natural"}),d=i.computed(()=>{const p=[no.inputButton,no[`inputButton__${t.variant}`],no[`inputButton__${t.variant}-${t.color}`],no[`inputButton__size_${t.size}`]];return t.fill&&p.push(no.fill),t.customClass&&p.push(t.customClass),p});return(p,f)=>(i.openBlock(),i.createElementBlock("button",{class:i.normalizeClass(d.value),disabled:t.disabled,onClick:a},[s.value?(i.openBlock(),i.createBlock(Oe,{key:0,name:s.value,size:p.iconSize},null,8,["name","size"])):i.createCommentVNode("",!0),i.createElementVNode("input",{class:i.normalizeClass(i.unref(no).inputButton__input),disabled:t.disabled,placeholder:p.inputPlaceholder,type:p.inputType,value:p.inputValue,onClick:f[0]||(f[0]=i.withModifiers(()=>{},["stop"])),onInput:o,onKeydown:u},null,42,yk),p.rightIconName?(i.openBlock(),i.createBlock(Oe,{key:1,name:p.rightIconName,size:p.iconSize},null,8,["name","size"])):i.createCommentVNode("",!0)],10,bk))}});function P7(n,e){let t;return(...r)=>{t&&clearTimeout(t),t=setTimeout(()=>{n(...r)},e)}}const wk=["background-codesnippet-sidebar","background-elevated","background-surface-subtle","border-state-error","shadow-elevation","text-default","text-state-disabled"],Ck=/^[#\w\s().,%/+-]+$/,Ek=[["--vscode-editor-background","background-elevated"],["--vscode-editorGutter-background","background-elevated"],["--vscode-editorLineNumber-foreground","text-state-disabled"],["--vscode-editorLineNumber-activeForeground","text-default"],["--vscode-editor-foreground","text-default"]];function vk(n){const e=n.closest("[data-ins-editor]");if(!e)return"";const t=getComputedStyle(e),r=new Map;if(wk.forEach(s=>{const d=t.getPropertyValue(`--ins-${s}`).trim();d&&Ck.test(d)&&r.set(s,d)}),!r.size)return"";const a=[...r].map(([s,d])=>`--ins-${s}: ${d};`).join(" "),o=Ek.filter(([,s])=>r.has(s)).map(([s,d])=>`${s}: var(--ins-${d});`).join(" "),u=r.has("text-default")?" html .monaco-editor .view-lines span.mtk1 { color: var(--ins-text-default); }":"";return`:root { ${a} }`+(o?` html .monaco-editor { ${o} }`:"")+u}function M7(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(n,a).enumerable})),t.push.apply(t,r)}return t}function V7(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?M7(Object(t),!0).forEach(function(r){kk(n,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):M7(Object(t)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(t,r))})}return n}function kk(n,e,t){return e=Ak(e),e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function Ak(n){var e=Sk(n,"string");return typeof e=="symbol"?e:String(e)}function Sk(n,e){if(typeof n!="object"||n===null)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}const Dk=q7({});function q7(n){return e.withOptions=t=>q7(V7(V7({},n),t)),e;function e(t,...r){const a=typeof t=="string"?[t]:t.raw,{escapeSpecialCharacters:o=Array.isArray(t)}=n;let u="";for(let p=0;p<a.length;p++){let f=a[p];o&&(f=f.replace(/\\\n[ \t]*/g,"").replace(/\\`/g,"`").replace(/\\\$/g,"$").replace(/\\\{/g,"{")),u+=f,p<r.length&&(u+=r[p])}const s=u.split(`
|
|
94
94
|
`);let d=null;for(const p of s){const f=p.match(/^(\s+)\S+/);if(f){const m=f[1].length;d?d=Math.min(d,m):d=m}}if(d!==null){const p=d;u=s.map(f=>f[0]===" "||f[0]===" "?f.slice(p):f).join(`
|
|
95
95
|
`)}return u=u.trim(),o&&(u=u.replace(/\\n/g,`
|
|
96
96
|
`)),u}}const xk=`<!DOCTYPE html>
|