@shtabapp/ui-kit 1.66.0 → 1.67.0
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/CHANGELOG.md +13 -0
- package/dist/SButton-CLTNdnCK.cjs +1 -0
- package/dist/{SButton-DQTSlo61.js → SButton-LAOBxpd4.js} +5 -0
- package/dist/{SChip-B6vcMlZD.cjs → SChip-Dcvk3JI8.cjs} +1 -1
- package/dist/{SChip-DBlJ-4jv.js → SChip-NDTK29yq.js} +1 -1
- package/dist/{SColorPicker-C_161aLA.js → SColorPicker-BmaA5Xnp.js} +4 -4
- package/dist/{SColorPicker-B_rbs-0d.cjs → SColorPicker-D7mTRL7K.cjs} +1 -1
- package/dist/{SDropdown-B1OGbIYg.cjs → SDropdown-BdgpPzfl.cjs} +1 -1
- package/dist/{SDropdown-CiXHI3g1.js → SDropdown-xNcC6JDy.js} +1 -1
- package/dist/{SInput-Be10IJ_E.cjs → SInput-B4So5LGW.cjs} +1 -1
- package/dist/{SInput-CqC-jrCC.js → SInput-D8NftspL.js} +1 -1
- package/dist/{SList-Bxet9twB.js → SList-BuXrkB03.js} +1 -1
- package/dist/{SList-3YwWEhUU.cjs → SList-CvP0U6U1.cjs} +1 -1
- package/dist/{SListItem-Chd81xY0.js → SListItem-BOSQGRWA.js} +1 -1
- package/dist/{SListItem-Rb59ZhEw.cjs → SListItem-BeaflFVf.cjs} +1 -1
- package/dist/{SPhotoEdit-0grpjqZQ.cjs → SPhotoEdit-CShhPLJt.cjs} +1 -1
- package/dist/{SPhotoEdit-COkIQFxd.js → SPhotoEdit-r63G2NZI.js} +1 -1
- package/dist/{SSelect-EhvfGB4d.cjs → SSelect-Coyrc99Y.cjs} +1 -1
- package/dist/{SSelect-C3-8vi2u.js → SSelect-DUtNtnqM.js} +5 -5
- package/dist/{STable-CADyNvk8.js → STable-CJBdcrD2.js} +106 -100
- package/dist/STable-PkWtyYaP.cjs +1 -0
- package/dist/{STabs-BbABxzdN.js → STabs-BARXqgoB.js} +1 -1
- package/dist/{STabs-a337ikYi.cjs → STabs-n5hMERTK.cjs} +1 -1
- package/dist/{STag-BJV5gtD6.js → STag-C5KhPWjQ.js} +1 -1
- package/dist/{STag-B68ch31f.cjs → STag-ZPrc5q4N.cjs} +1 -1
- package/dist/{STagGroup-DnNdOCrX.js → STagGroup-BGwvunuu.js} +1 -1
- package/dist/{STagGroup-B4ktVLZ5.cjs → STagGroup-ccEvIkK7.cjs} +1 -1
- package/dist/components/SButton/SButton.types.d.ts +2 -0
- package/dist/components/SButton/SButton.types.d.ts.map +1 -1
- package/dist/components/SButton/SButton.vue.d.ts.map +1 -1
- package/dist/components/STable/STable.vue.d.ts.map +1 -1
- package/dist/components/STable/constants/tableSizes.d.ts +17 -4
- package/dist/components/STable/constants/tableSizes.d.ts.map +1 -1
- package/dist/components/STable/utils/useTableScrollScale.d.ts +2 -1
- package/dist/components/STable/utils/useTableScrollScale.d.ts.map +1 -1
- package/dist/components/STable/utils/useTableVirtualRows.d.ts +3 -1
- package/dist/components/STable/utils/useTableVirtualRows.d.ts.map +1 -1
- package/dist/composables/connectedPosition/getOverflow.d.ts.map +1 -1
- package/dist/composables/useFloatingOverlay.d.ts.map +1 -1
- package/dist/entries/button.cjs +1 -1
- package/dist/entries/button.js +1 -1
- package/dist/entries/chip.cjs +1 -1
- package/dist/entries/chip.js +1 -1
- package/dist/entries/color-picker.cjs +1 -1
- package/dist/entries/color-picker.js +1 -1
- package/dist/entries/composables.cjs +1 -1
- package/dist/entries/composables.js +1 -1
- package/dist/entries/dropdown.cjs +1 -1
- package/dist/entries/dropdown.js +2 -2
- package/dist/entries/input.cjs +1 -1
- package/dist/entries/input.js +1 -1
- package/dist/entries/list-item.cjs +1 -1
- package/dist/entries/list-item.js +1 -1
- package/dist/entries/list.cjs +1 -1
- package/dist/entries/list.js +1 -1
- package/dist/entries/photo-edit.cjs +1 -1
- package/dist/entries/photo-edit.js +1 -1
- package/dist/entries/select.cjs +1 -1
- package/dist/entries/select.js +1 -1
- package/dist/entries/table.cjs +1 -1
- package/dist/entries/table.js +1 -1
- package/dist/entries/tabs.cjs +1 -1
- package/dist/entries/tabs.js +1 -1
- package/dist/entries/tag-group.cjs +1 -1
- package/dist/entries/tag-group.js +2 -2
- package/dist/entries/tag.cjs +1 -1
- package/dist/entries/tag.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +14 -14
- package/dist/uikit-components.css +1 -1
- package/dist/useFloatingOverlay-Dp44TxvN.cjs +1 -0
- package/dist/{useFloatingOverlay-B1BvRxLz.js → useFloatingOverlay-b9_eDGNE.js} +66 -67
- package/package.json +1 -1
- package/dist/SButton-BN-PppY7.cjs +0 -1
- package/dist/STable-D1x-kIBO.cjs +0 -1
- package/dist/useFloatingOverlay-CtQBdvS9.cjs +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as e, t } from "./contrastSurfaceTextColor-BDlLSSXC.js";
|
|
2
2
|
import { t as n } from "./colorValue-CSh0chxp.js";
|
|
3
|
-
import { i as r, n as i, r as a, t as o } from "./SButton-
|
|
3
|
+
import { i as r, n as i, r as a, t as o } from "./SButton-LAOBxpd4.js";
|
|
4
4
|
import { n as s, r as c, t as l } from "./useLink-Com5VhOk.js";
|
|
5
5
|
import { computed as u, createBlock as d, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createVNode as h, defineComponent as g, mergeModels as _, mergeProps as v, openBlock as y, resolveDynamicComponent as b, toDisplayString as x, unref as S, useAttrs as C, useModel as w, withCtx as T, withModifiers as E } from "vue";
|
|
6
6
|
import { useUiKitI18n as D } from "@shtabapp/ui-kit-primitives";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require("./contrastSurfaceTextColor-BRjRzXyZ.cjs"),t=require("./colorValue-Dda7fKd3.cjs"),n=require("./SButton-
|
|
1
|
+
const e=require("./contrastSurfaceTextColor-BRjRzXyZ.cjs"),t=require("./colorValue-Dda7fKd3.cjs"),n=require("./SButton-CLTNdnCK.cjs"),r=require("./useLink-1LLWpdDZ.cjs");let i=require("vue"),a=require("@shtabapp/ui-kit-primitives");var o=function(e){return e.RED_ORANGE=`red-orange`,e.ORANGE=`orange`,e.YELLOW=`yellow`,e.GREEN=`green`,e.TEAL=`teal`,e.CYAN=`cyan`,e.BLUE=`blue`,e.INDIGO=`indigo`,e.VIOLET=`violet`,e.MAGENTA=`magenta`,e.PINK=`pink`,e.GRAY=`gray`,e.RED=`red`,e.WHITE_BORDER=`white-border`,e.BILLING=`billing`,e.BILLING_LIGHT=`billing-light`,e}({}),s=function(e){return e.SMALL=`small`,e.MEDIUM=`medium`,e}({}),c=n=>e.n(n)||t.t(n),l=e=>c(e)?`s-ui-tag--color-custom`:`s-ui-tag--color-${e}`,u=t=>{let n={"--s-ui-tag-bg":t};return e.n(t)&&(n[`--s-ui-tag-text`]=e.t(t)),n},d={class:`s-ui-tag__content s-ui-typography-body-12-regular`},f={key:0,class:`s-ui-tag__actions`},p={class:`s-ui-tag__action-close`},m=(0,i.defineComponent)({inheritAttrs:!1,__name:`STag`,props:(0,i.mergeModels)({color:{default:()=>o.RED_ORANGE},size:{default:()=>s.MEDIUM},short:{type:Boolean,default:!1},closable:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},selected:{type:Boolean,default:!1},link:{},exact:{type:Boolean,default:!1},replace:{type:Boolean,default:!1}},{modelValue:{default:``},modelModifiers:{}}),emits:(0,i.mergeModels)([`close`],[`update:modelValue`]),setup(e,{emit:t}){let o=(0,i.useModel)(e,`modelValue`),s=t,{t:m}=(0,a.useUiKitI18n)(),h=(0,i.useAttrs)(),g=r.t(()=>e.link,()=>e.exact,()=>e.replace),_=g.linkPresentation,v=(0,i.computed)(()=>{let e=_.value;return e.mode===`none`?`span`:e.rootTag}),y=(0,i.computed)(()=>r.n(_.value,{replace:e.replace})),b=(0,i.computed)(()=>({...y.value,...h})),x=(0,i.computed)(()=>g.isRouterLink.value?g.isActive.value:e.selected),S=(0,i.computed)(()=>e.closable&&!e.short),C=(0,i.computed)(()=>{if(e.disabled)return-1;if(!r.r(e.link))return S.value?0:-1}),w=(0,i.computed)(()=>[l(e.color),`s-ui-tag--size-${e.size}`,{"s-ui-tag--short":e.short,"s-ui-tag--disabled":e.disabled,"s-ui-tag--selected":x.value,"s-ui-tag--link":r.r(e.link)}]),T=(0,i.computed)(()=>{if(c(e.color))return u(e.color)}),E=(0,i.computed)(()=>e.short?o.value.slice(0,1):o.value),D=()=>{s(`close`)},O=[`Enter`,` `,`Spacebar`],k=[`Delete`,`Backspace`],A=t=>{if(!e.disabled){if(g.isRouterLink.value&&O.includes(t.key)){t.preventDefault(),g.navigate();return}if(t.target===t.currentTarget&&k.includes(t.key)){if(!S.value)return;t.preventDefault(),s(`close`)}}};return(t,r)=>((0,i.openBlock)(),(0,i.createBlock)((0,i.resolveDynamicComponent)(v.value),(0,i.mergeProps)({class:[`s-ui-tag`,w.value],style:T.value,tabindex:C.value,"aria-disabled":e.disabled?!0:void 0},b.value,{onKeydown:A}),{default:(0,i.withCtx)(()=>[(0,i.createElementVNode)(`span`,d,(0,i.toDisplayString)(E.value),1),S.value?((0,i.openBlock)(),(0,i.createElementBlock)(`span`,f,[(0,i.createElementVNode)(`span`,p,[(0,i.createVNode)((0,i.unref)(n.t),{appearance:(0,i.unref)(n.n).BARE,variant:(0,i.unref)(n.i).NEUTRAL,size:(0,i.unref)(n.r).SMALL,disabled:e.disabled,tabindex:-1,icon:`closeMini`,"aria-label":(0,i.unref)(m)(`tag.close`),onClick:(0,i.withModifiers)(D,[`stop`])},null,8,[`appearance`,`variant`,`size`,`disabled`,`aria-label`])])])):(0,i.createCommentVNode)(``,!0)]),_:1},16,[`class`,`style`,`tabindex`,`aria-disabled`]))}});Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return o}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return s}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return m}});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as e } from "./SOverflowGroup-CyksOav7.js";
|
|
2
|
-
import { n as t, r as n, t as r } from "./STag-
|
|
2
|
+
import { n as t, r as n, t as r } from "./STag-C5KhPWjQ.js";
|
|
3
3
|
import { cloneVNode as i, createBlock as a, createVNode as o, defineComponent as s, openBlock as c, renderSlot as l, unref as u, withCtx as d } from "vue";
|
|
4
4
|
//#region src/components/STagGroup/utils/applyTagGroupItemProps.ts
|
|
5
5
|
var f = (e, { size: t, short: n }) => e.type === r ? i(e, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require("./SOverflowGroup-rmU10_7L.cjs"),t=require("./STag-
|
|
1
|
+
const e=require("./SOverflowGroup-rmU10_7L.cjs"),t=require("./STag-ZPrc5q4N.cjs");let n=require("vue");var r=(e,{size:r,short:i})=>e.type===t.t?(0,n.cloneVNode)(e,{size:r,short:i,...i?{closable:!1}:{}}):e,i=(0,n.defineComponent)({__name:`STagGroup`,props:{maxVisible:{},size:{default:()=>t.r.SMALL},short:{type:Boolean,default:!0}},setup(i){let a=e=>r(e,{size:i.size,short:i.short});return(r,o)=>((0,n.openBlock)(),(0,n.createBlock)(e.t,{class:`s-ui-tag-group`,role:`group`,"cluster-class":`s-ui-tag-group__cluster`,"max-visible":i.maxVisible,"map-vnode":a},{overflow:(0,n.withCtx)(({overflowLabel:e})=>[(0,n.createVNode)((0,n.unref)(t.t),{color:(0,n.unref)(t.n).WHITE_BORDER,size:i.size,short:!1,"model-value":e},null,8,[`color`,`size`,`model-value`])]),default:(0,n.withCtx)(()=>[(0,n.renderSlot)(r.$slots,`default`)]),_:3},8,[`max-visible`]))}});Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return i}});
|
|
@@ -42,6 +42,8 @@ export interface ISButtonProps {
|
|
|
42
42
|
iconRight?: TSIconName;
|
|
43
43
|
/** Показывает внутренний индикатор в правом верхнем углу, если не передан `counter`. */
|
|
44
44
|
indicator?: boolean;
|
|
45
|
+
/** Растягивает кнопку на всю ширину контейнера. */
|
|
46
|
+
fullWidth?: boolean;
|
|
45
47
|
/** Показывает спиннер поверх и блокирует клики. */
|
|
46
48
|
loading?: boolean;
|
|
47
49
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SButton.types.d.ts","sourceRoot":"","sources":["../../../src/components/SButton/SButton.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAA;AAC7D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,GAAG,CAAA;AAChC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAC7C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAElD,oBAAY,iBAAiB;IAC3B,KAAK,UAAU;IACf,KAAK,UAAU;IACf,OAAO,YAAY;IACnB,QAAQ,aAAa;IACrB,IAAI,SAAS;CACd;AAED,oBAAY,cAAc;IACxB,IAAI,SAAS;IACb,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,OAAO,YAAY;CACpB;AAED,oBAAY,WAAW;IACrB,KAAK,UAAU;IACf,MAAM,WAAW;IACjB,KAAK,UAAU;CAChB;AAED,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,MAAM,CAAA;AAE3C,MAAM,WAAW,aAAa;IAC5B;;;OAGG;IACH,UAAU,CAAC,EAAE,iBAAiB,CAAA;IAC9B,oDAAoD;IACpD,UAAU,CAAC,EAAE,YAAY,CAAA;IACzB,qDAAqD;IACrD,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,qDAAqD;IACrD,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,4EAA4E;IAC5E,IAAI,CAAC,EAAE,UAAU,CAAA;IACjB,6BAA6B;IAC7B,QAAQ,CAAC,EAAE,UAAU,CAAA;IACrB,4BAA4B;IAC5B,SAAS,CAAC,EAAE,UAAU,CAAA;IACtB,wFAAwF;IACxF,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,mDAAmD;IACnD,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB;;;OAGG;IACH,IAAI,CAAC,EAAE,WAAW,CAAA;IAClB,mDAAmD;IACnD,KAAK,CAAC,EAAE,aAAa,CAAA;IACrB;;;OAGG;IACH,OAAO,CAAC,EAAE,cAAc,CAAA;IACxB,8DAA8D;IAC9D,IAAI,CAAC,EAAE,MAAM,GAAG,gBAAgB,CAAA;IAChC,iEAAiE;IACjE,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,qDAAqD;IACrD,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,MAAM,MAAM,gBAAgB,GAAG,YAAY,CAAC,OAAO,OAAO,CAAC,CAAA"}
|
|
1
|
+
{"version":3,"file":"SButton.types.d.ts","sourceRoot":"","sources":["../../../src/components/SButton/SButton.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAA;AAC7D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,GAAG,CAAA;AAChC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAC7C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAElD,oBAAY,iBAAiB;IAC3B,KAAK,UAAU;IACf,KAAK,UAAU;IACf,OAAO,YAAY;IACnB,QAAQ,aAAa;IACrB,IAAI,SAAS;CACd;AAED,oBAAY,cAAc;IACxB,IAAI,SAAS;IACb,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,OAAO,YAAY;CACpB;AAED,oBAAY,WAAW;IACrB,KAAK,UAAU;IACf,MAAM,WAAW;IACjB,KAAK,UAAU;CAChB;AAED,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,MAAM,CAAA;AAE3C,MAAM,WAAW,aAAa;IAC5B;;;OAGG;IACH,UAAU,CAAC,EAAE,iBAAiB,CAAA;IAC9B,oDAAoD;IACpD,UAAU,CAAC,EAAE,YAAY,CAAA;IACzB,qDAAqD;IACrD,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,qDAAqD;IACrD,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,4EAA4E;IAC5E,IAAI,CAAC,EAAE,UAAU,CAAA;IACjB,6BAA6B;IAC7B,QAAQ,CAAC,EAAE,UAAU,CAAA;IACrB,4BAA4B;IAC5B,SAAS,CAAC,EAAE,UAAU,CAAA;IACtB,wFAAwF;IACxF,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,mDAAmD;IACnD,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,mDAAmD;IACnD,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB;;;OAGG;IACH,IAAI,CAAC,EAAE,WAAW,CAAA;IAClB,mDAAmD;IACnD,KAAK,CAAC,EAAE,aAAa,CAAA;IACrB;;;OAGG;IACH,OAAO,CAAC,EAAE,cAAc,CAAA;IACxB,8DAA8D;IAC9D,IAAI,CAAC,EAAE,MAAM,GAAG,gBAAgB,CAAA;IAChC,iEAAiE;IACjE,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,qDAAqD;IACrD,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,MAAM,MAAM,gBAAgB,GAAG,YAAY,CAAC,OAAO,OAAO,CAAC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SButton.vue.d.ts","sourceRoot":"","sources":["../../../src/components/SButton/SButton.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SButton.vue.d.ts","sourceRoot":"","sources":["../../../src/components/SButton/SButton.vue"],"names":[],"mappings":"AAuSA,OAAO,EAAkD,KAAK,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAyXpG,QAAA,IAAuB,QAAQ,IAAY,CAAE;AAC7C,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAOhD,QAAA,MAAM,UAAU,sSAEd,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"STable.vue.d.ts","sourceRoot":"","sources":["../../../src/components/STable/STable.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"STable.vue.d.ts","sourceRoot":"","sources":["../../../src/components/STable/STable.vue"],"names":[],"mappings":"AAo+CA,OAAO,EAML,KAAK,aAAa,EAClB,KAAK,kBAAkB,EACvB,KAAK,YAAY,EACjB,KAAK,sBAAsB,EAC3B,KAAK,yBAAyB,EAC9B,KAAK,oBAAoB,EACzB,KAAK,2BAA2B,EAEhC,KAAK,qBAAqB,EAC1B,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACtB,MAAM,gBAAgB,CAAA;AA4CvB,QAAA,MAAM,YAAY,GAAK,KAAK,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC3D,aAAa,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,EAC9D,YAAY,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,EAC3G,gBAAgB,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,EAClE;WA6rEO,OAAO,KAAK,EAAE,WAAW,GAAG,mBAAmB,CAAC;qBA9xC3C,MAAM,GAAG,SAAS;mBAClB,MAAM,EAAE;mBACR,MAAM,EAAE;sBACL,MAAM,EAAE,GAAG,SAAS;uBACnB,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,SAAS;wBACjC,MAAM,EAAE,GAAG,SAAS;oBACxB,gBAAgB,EAAE;;;;;uBAn2BJ,QAAQ;;;iBAEC,MAAM;kBAAQ,KAAK;;;;iBAV3B,MAAM;kBAAQ,KAAK;mBAAS,UAAU,GAAG,aAAa;;;iBAEhD,MAAM;kBAAQ,KAAK;mBAAS,UAAU;;;iBAE3C,MAAM;kBAAQ,KAAK;uBAAa,MAAM;mBAAS,UAAU;;;;uBAQ5C,MAAM;wBAAc,KAAK;mBAAS,MAAM;;;iBAEjD,MAAM;kBAAQ,KAAK;;;iBAEjB,MAAM;mBAAS,MAAM;;;iBAEvB,MAAM;qBAAW,MAAM;mBAAS,MAAM,EAAE;;;;;;;;KAinEiB,CAAC,GAAG,CAAC,OAAO,UAAU,SAAS;QAAE,oBAAoB,EAAE,MAAM,CAAC,CAAA;KAAE,GAAG,CAAC,GAAG,EAAE,CAAC;YAC5J,CAAC,OAAO,EAAE,OAAO,KAAK,EAAE,gBAAgB;;8BAh6CpB,MAAM,YAAY;YAAE,KAAK,CAAC,EAAE,kBAAkB,CAAA;SAAE;;;;;MAg6CN,KAAK,IAAI;WACxE,GAAG;;wCA1mE2B,oBAAoB,CAAC,KAAK,CAAC,KAAK,OAAO;;0CAErC,sBAAsB,CAAC,KAAK,CAAC,KAAK,OAAO;;+CAEpC,sBAAsB,CAAC,KAAK,CAAC,KAAK,OAAO;;0CAE9C;YAClC,MAAM,EAAE,aAAa,CAAC,KAAK,CAAC,CAAA;YAC5B,WAAW,CAAC,EAAE,kBAAkB,CAAA;SACjC,KAAK,OAAO;;sBAEC,CAAC,KAAK,EAAE,qBAAqB,CAAC,KAAK,CAAC,KAAK,OAAO;wBAC9C,CAAC,KAAK,EAAE,qBAAqB,CAAC,KAAK,CAAC,KAAK,OAAO;0BAC9C,CAAC,KAAK,EAAE,qBAAqB,CAAC,KAAK,CAAC,KAAK,OAAO;uBACnD,CAAC,KAAK,EAAE,qBAAqB,CAAC,KAAK,CAAC,KAAK,OAAO;yBAC9C,CAAC,KAAK,EAAE,2BAA2B,CAAC,KAAK,CAAC,KAAK,OAAO;sBACzD,CAAC,KAAK,EAAE,wBAAwB,CAAC,KAAK,CAAC,KAAK,OAAO;yBAChD,CAAC,KAAK,EAAE;YAAE,MAAM,EAAE,OAAO,CAAA;SAAE,KAAK,OAAO;yBACvC,MAAM,OAAO;uBACf,CAAC,KAAK,EAAE,mBAAmB,CAAC,KAAK,CAAC,KAAK,OAAO;yBAC5C,CAAC,KAAK,EAAE,oBAAoB,CAAC,KAAK,CAAC,KAAK,OAAO;yBAC/C,CAAC,KAAK,EAAE;YACvB,OAAO,EAAE,SAAS,aAAa,CAAC,KAAK,CAAC,EAAE,CAAA;YACxC,cAAc,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,OAAO,CAAA;YAC9C,YAAY,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAA;SAC1C,KAAK,OAAO;kBACH,CAAC,KAAK,EAAE,mBAAmB,CAAC,KAAK,CAAC,KAAK,OAAO;oBAC5C,CAAC,KAAK,EAAE,mBAAmB,CAAC,KAAK,CAAC,KAAK,OAAO;mBAC/C,CAAC,KAAK,EAAE,mBAAmB,CAAC,KAAK,CAAC,KAAK,OAAO;gBACjD,MAAM,OAAO;;UA+kElB;mBA/nEqB,QAAQ;;aAEC,MAAM;cAAQ,KAAK;;aAV3B,MAAM;cAAQ,KAAK;eAAS,UAAU,GAAG,aAAa;;aAEhD,MAAM;cAAQ,KAAK;eAAS,UAAU;;aAE3C,MAAM;cAAQ,KAAK;mBAAa,MAAM;eAAS,UAAU;;mBAQ5C,MAAM;oBAAc,KAAK;eAAS,MAAM;;aAEjD,MAAM;cAAQ,KAAK;;aAEjB,MAAM;eAAS,MAAM;;aAEvB,MAAM;iBAAW,MAAM;eAAS,MAAM,EAAE;ioBAqnE/B;EAEvC,KACQ,OAAO,KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,CAAC,OAAO,WAAW,CAAC,CAAA;CAAI,CAAC;wBACvD,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,mBAAmB,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,GAAG,GAAG;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG;KAAG,CAAC,IAAI,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,CAAC,GAAG,EAAE,CAAC"}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Единственный источник размеров STable (Figma SHTAB DS 2.0.0, canvas «✅ Table»).
|
|
3
3
|
* CSS-переменные блока инжектятся из этих констант в rootStyle — дублей в CSS нет.
|
|
4
|
+
* Исключение — высота строки: продукт держит 40, макет 2.0.0 рисует 52.
|
|
4
5
|
*/
|
|
5
6
|
export declare const TABLE_HEADER_HEIGHT = 40;
|
|
6
|
-
|
|
7
|
+
/** Продуктовое решение: 40 против 52 в макете 2.0.0. Ритм строки совпадает с шапкой. */
|
|
8
|
+
export declare const TABLE_ROW_MIN_HEIGHT = 40;
|
|
7
9
|
export declare const TABLE_INDICATOR_COLUMN_WIDTH = 2;
|
|
8
10
|
export declare const TABLE_CHECKBOX_COLUMN_WIDTH = 24;
|
|
9
11
|
export declare const TABLE_RIGHT_EDGE_COLUMN_WIDTH = 40;
|
|
@@ -13,14 +15,18 @@ export declare const TABLE_COLUMNS_MANAGER_COLUMN_WIDTH = 32;
|
|
|
13
15
|
export declare const TABLE_TREE_INDENT = 18;
|
|
14
16
|
/** Агрегатный футер tfoot. */
|
|
15
17
|
export declare const TABLE_FOOTER_BAR_HEIGHT = 40;
|
|
16
|
-
/** Строка создания — обычная строка
|
|
17
|
-
export declare const TABLE_CREATE_ROW_HEIGHT =
|
|
18
|
+
/** Строка создания — обычная строка таблицы, а не полоса агрегата. */
|
|
19
|
+
export declare const TABLE_CREATE_ROW_HEIGHT = 40;
|
|
18
20
|
export declare const TABLE_PRIMARY_COLUMN_DEFAULT_WIDTH = 430;
|
|
19
21
|
export declare const TABLE_COLUMN_DEFAULT_WIDTH = 160;
|
|
20
22
|
export declare const TABLE_COLUMN_DEFAULT_MIN_WIDTH = 60;
|
|
21
23
|
/** Figma: компонент scrollBar — 12px и по вертикали, и по горизонтали. */
|
|
22
24
|
export declare const TABLE_SCROLLBAR_SIZE = 12;
|
|
23
|
-
|
|
25
|
+
/**
|
|
26
|
+
* Оценка строки для виртуализатора равна минимальной высоте: отдельный литерал
|
|
27
|
+
* молча разошёлся бы с CSS, и модель прокрутки поехала бы относительно раскладки.
|
|
28
|
+
*/
|
|
29
|
+
export declare const TABLE_ESTIMATE_ROW_SIZE = 40;
|
|
24
30
|
export declare const TABLE_OVERSCAN = 8;
|
|
25
31
|
/**
|
|
26
32
|
* Запас окна по направлению прокрутки (строк, по скорости за кадр): композитор уводит
|
|
@@ -52,6 +58,13 @@ export declare const TABLE_SCROLL_PROBE_HEIGHT = 1000000000;
|
|
|
52
58
|
* иначе спейсеры клампились бы и строки у начала/конца таблицы ехали на высоту строки.
|
|
53
59
|
*/
|
|
54
60
|
export declare const TABLE_SCROLL_IDENTITY_EDGE = 2000;
|
|
61
|
+
/**
|
|
62
|
+
* Допуск «запись scrollTop легла в DOM». Браузер магнитит её к сетке float32 (у потолка
|
|
63
|
+
* прокрутки шаг 2 UI-px), и такому смещению намеренный офсет пережить обязан. А вот в
|
|
64
|
+
* скрытом контейнере запись игнорируется целиком — расхождение там на порядки больше
|
|
65
|
+
* допуска, и намерению верить нельзя.
|
|
66
|
+
*/
|
|
67
|
+
export declare const TABLE_SCROLL_WRITE_TOLERANCE = 4;
|
|
55
68
|
/**
|
|
56
69
|
* Прогрессивная гидрация строк окна: за кадр полный рендер получают не больше бюджета
|
|
57
70
|
* новых строк, остальные ждут плашками. Бюджет адаптивный (AIMD по времени кадра):
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tableSizes.d.ts","sourceRoot":"","sources":["../../../../src/components/STable/constants/tableSizes.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"tableSizes.d.ts","sourceRoot":"","sources":["../../../../src/components/STable/constants/tableSizes.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,eAAO,MAAM,mBAAmB,KAAK,CAAA;AACrC,wFAAwF;AACxF,eAAO,MAAM,oBAAoB,KAAK,CAAA;AACtC,eAAO,MAAM,4BAA4B,IAAI,CAAA;AAC7C,eAAO,MAAM,2BAA2B,KAAK,CAAA;AAC7C,eAAO,MAAM,6BAA6B,KAAK,CAAA;AAC/C,sFAAsF;AACtF,eAAO,MAAM,kCAAkC,KAAK,CAAA;AACpD,sEAAsE;AACtE,eAAO,MAAM,iBAAiB,KAAK,CAAA;AACnC,8BAA8B;AAC9B,eAAO,MAAM,uBAAuB,KAAK,CAAA;AACzC,sEAAsE;AACtE,eAAO,MAAM,uBAAuB,KAAuB,CAAA;AAC3D,eAAO,MAAM,kCAAkC,MAAM,CAAA;AACrD,eAAO,MAAM,0BAA0B,MAAM,CAAA;AAC7C,eAAO,MAAM,8BAA8B,KAAK,CAAA;AAChD,0EAA0E;AAC1E,eAAO,MAAM,oBAAoB,KAAK,CAAA;AAEtC;;;GAGG;AACH,eAAO,MAAM,uBAAuB,KAAuB,CAAA;AAC3D,eAAO,MAAM,cAAc,IAAI,CAAA;AAC/B;;;;GAIG;AACH,eAAO,MAAM,+BAA+B,KAAK,CAAA;AACjD;;;;;GAKG;AACH,eAAO,MAAM,+BAA+B,OAAO,CAAA;AACnD,eAAO,MAAM,6BAA6B,IAAI,CAAA;AAC9C,eAAO,MAAM,wBAAwB,IAAI,CAAA;AAEzC;;;;;GAKG;AACH,eAAO,MAAM,2BAA2B,WAAa,CAAA;AACrD,eAAO,MAAM,+BAA+B,SAAU,CAAA;AACtD,eAAO,MAAM,yBAAyB,aAAgB,CAAA;AACtD;;;;GAIG;AACH,eAAO,MAAM,0BAA0B,OAAQ,CAAA;AAC/C;;;;;GAKG;AACH,eAAO,MAAM,4BAA4B,IAAI,CAAA;AAE7C;;;;GAIG;AACH,eAAO,MAAM,8BAA8B,KAAK,CAAA;AAChD,eAAO,MAAM,0BAA0B,IAAI,CAAA;AAC3C,eAAO,MAAM,0BAA0B,KAAK,CAAA;AAC5C,eAAO,MAAM,2BAA2B,IAAI,CAAA;AAC5C,eAAO,MAAM,6BAA6B,KAAK,CAAA;AAC/C,eAAO,MAAM,6BAA6B,KAAK,CAAA;AAE/C,eAAO,MAAM,0BAA0B,IAAI,CAAA;AAC3C,eAAO,MAAM,+BAA+B,IAAI,CAAA;AAChD,eAAO,MAAM,uBAAuB,MAAM,CAAA;AAE1C,+EAA+E;AAC/E,eAAO,MAAM,4BAA4B,IAAI,CAAA;AAC7C,eAAO,MAAM,uBAAuB,MAAM,CAAA;AAC1C,eAAO,MAAM,0BAA0B,OAAO,CAAA;AAC9C,eAAO,MAAM,0BAA0B,MAAM,CAAA;AAE7C,2EAA2E;AAC3E,eAAO,MAAM,uBAAuB,0BAA0B,CAAA"}
|
|
@@ -29,6 +29,7 @@ export declare const useTableScrollScale: ({ scrollElement, totalSize, viewportH
|
|
|
29
29
|
active: import("vue").ComputedRef<boolean>;
|
|
30
30
|
uiToModel: (uiOffset: number) => number;
|
|
31
31
|
modelToUi: (modelOffset: number) => number;
|
|
32
|
-
|
|
32
|
+
resolveModelOffset: (container: HTMLElement) => number;
|
|
33
|
+
setScrollTop: (container: HTMLElement, uiOffset: number, modelOffset?: number) => void;
|
|
33
34
|
};
|
|
34
35
|
//# sourceMappingURL=useTableScrollScale.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useTableScrollScale.d.ts","sourceRoot":"","sources":["../../../../src/components/STable/utils/useTableScrollScale.ts"],"names":[],"mappings":"AAAA,OAAO,EAML,KAAK,gBAAgB,EACrB,KAAK,GAAG,EACT,MAAM,KAAK,CAAA;
|
|
1
|
+
{"version":3,"file":"useTableScrollScale.d.ts","sourceRoot":"","sources":["../../../../src/components/STable/utils/useTableScrollScale.ts"],"names":[],"mappings":"AAAA,OAAO,EAML,KAAK,gBAAgB,EACrB,KAAK,GAAG,EACT,MAAM,KAAK,CAAA;AAYZ,MAAM,WAAW,2BAA2B;IAC1C,aAAa,EAAE,GAAG,CAAC,WAAW,GAAG,IAAI,CAAC,CAAA;IACtC,uDAAuD;IACvD,SAAS,EAAE,gBAAgB,CAAC,MAAM,CAAC,CAAA;IACnC,gDAAgD;IAChD,cAAc,EAAE,gBAAgB,CAAC,MAAM,CAAC,CAAA;IACxC,4DAA4D;IAC5D,WAAW,EAAE,gBAAgB,CAAC,MAAM,CAAC,CAAA;IACrC;;;;OAIG;IACH,SAAS,CAAC,EAAE,CAAC,WAAW,EAAE,MAAM,KAAK,IAAI,CAAA;CAC1C;AA+GD;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB,GAAI,uEAMjC,2BAA2B;;;;;;;0BAmBC,MAAM;6BAIH,MAAM;oCAwCC,WAAW;8BA0CjB,WAAW,YAAY,MAAM,gBAAgB,MAAM;CA6IrF,CAAA"}
|
|
@@ -19,6 +19,8 @@ export interface IUseTableVirtualRowsOptions {
|
|
|
19
19
|
viewportHeight: MaybeRefOrGetter<number>;
|
|
20
20
|
/** Шапка и полосы tfoot: входят в scrollHeight, но не в модельную высоту строк. */
|
|
21
21
|
extraHeight: MaybeRefOrGetter<number>;
|
|
22
|
+
/** Только липкая шапка: полоса видимых строк начинается под ней, а не от верха скроллера. */
|
|
23
|
+
headerHeight: MaybeRefOrGetter<number>;
|
|
22
24
|
}
|
|
23
25
|
/**
|
|
24
26
|
* Оконная математика поверх @tanstack/vue-virtual для спейсерной виртуализации:
|
|
@@ -28,7 +30,7 @@ export interface IUseTableVirtualRowsOptions {
|
|
|
28
30
|
* не перевызывается при смене data-index у переиспользованного элемента).
|
|
29
31
|
* resizeItem сам компенсирует scrollTop при перемере строк выше вьюпорта.
|
|
30
32
|
*/
|
|
31
|
-
export declare const useTableVirtualRows: ({ rowCount, enabled, autoMeasure, estimateRowSize, estimateRowSizeByIndex, overscan, scrollElement, getRowKey, rowsVersion, viewportHeight, extraHeight, }: IUseTableVirtualRowsOptions) => {
|
|
33
|
+
export declare const useTableVirtualRows: ({ rowCount, enabled, autoMeasure, estimateRowSize, estimateRowSizeByIndex, overscan, scrollElement, getRowKey, rowsVersion, viewportHeight, extraHeight, headerHeight, }: IUseTableVirtualRowsOptions) => {
|
|
32
34
|
rowVirtualizer: Ref<Virtualizer<HTMLElement, Element>, Virtualizer<HTMLElement, Element>>;
|
|
33
35
|
virtualItems: import("vue").ComputedRef<VirtualItem[]>;
|
|
34
36
|
windowIndexes: import("vue").ComputedRef<number[]>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useTableVirtualRows.d.ts","sourceRoot":"","sources":["../../../../src/components/STable/utils/useTableVirtualRows.ts"],"names":[],"mappings":"AAAA,OAAO,EAAwC,KAAK,gBAAgB,EAAE,KAAK,GAAG,EAAE,MAAM,KAAK,CAAA;AAE3F,OAAO,EAIL,KAAK,WAAW,EAChB,KAAK,WAAW,EACjB,MAAM,uBAAuB,CAAA;AAG9B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AAKzD,MAAM,WAAW,2BAA2B;IAC1C,QAAQ,EAAE,gBAAgB,CAAC,MAAM,CAAC,CAAA;IAClC,OAAO,EAAE,gBAAgB,CAAC,OAAO,CAAC,CAAA;IAClC,0DAA0D;IAC1D,WAAW,EAAE,gBAAgB,CAAC,OAAO,CAAC,CAAA;IACtC,eAAe,EAAE,gBAAgB,CAAC,MAAM,CAAC,CAAA;IACzC,yEAAyE;IACzE,sBAAsB,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,MAAM,GAAG,SAAS,CAAA;IACjE,QAAQ,EAAE,gBAAgB,CAAC,MAAM,CAAC,CAAA;IAClC,aAAa,EAAE,GAAG,CAAC,WAAW,GAAG,IAAI,CAAC,CAAA;IACtC,4EAA4E;IAC5E,SAAS,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,MAAM,GAAG,MAAM,CAAA;IAChD,wEAAwE;IACxE,WAAW,EAAE,gBAAgB,CAAC,OAAO,CAAC,CAAA;IACtC,sFAAsF;IACtF,cAAc,EAAE,gBAAgB,CAAC,MAAM,CAAC,CAAA;IACxC,mFAAmF;IACnF,WAAW,EAAE,gBAAgB,CAAC,MAAM,CAAC,CAAA;
|
|
1
|
+
{"version":3,"file":"useTableVirtualRows.d.ts","sourceRoot":"","sources":["../../../../src/components/STable/utils/useTableVirtualRows.ts"],"names":[],"mappings":"AAAA,OAAO,EAAwC,KAAK,gBAAgB,EAAE,KAAK,GAAG,EAAE,MAAM,KAAK,CAAA;AAE3F,OAAO,EAIL,KAAK,WAAW,EAChB,KAAK,WAAW,EACjB,MAAM,uBAAuB,CAAA;AAG9B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AAKzD,MAAM,WAAW,2BAA2B;IAC1C,QAAQ,EAAE,gBAAgB,CAAC,MAAM,CAAC,CAAA;IAClC,OAAO,EAAE,gBAAgB,CAAC,OAAO,CAAC,CAAA;IAClC,0DAA0D;IAC1D,WAAW,EAAE,gBAAgB,CAAC,OAAO,CAAC,CAAA;IACtC,eAAe,EAAE,gBAAgB,CAAC,MAAM,CAAC,CAAA;IACzC,yEAAyE;IACzE,sBAAsB,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,MAAM,GAAG,SAAS,CAAA;IACjE,QAAQ,EAAE,gBAAgB,CAAC,MAAM,CAAC,CAAA;IAClC,aAAa,EAAE,GAAG,CAAC,WAAW,GAAG,IAAI,CAAC,CAAA;IACtC,4EAA4E;IAC5E,SAAS,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,MAAM,GAAG,MAAM,CAAA;IAChD,wEAAwE;IACxE,WAAW,EAAE,gBAAgB,CAAC,OAAO,CAAC,CAAA;IACtC,sFAAsF;IACtF,cAAc,EAAE,gBAAgB,CAAC,MAAM,CAAC,CAAA;IACxC,mFAAmF;IACnF,WAAW,EAAE,gBAAgB,CAAC,MAAM,CAAC,CAAA;IACrC,6FAA6F;IAC7F,YAAY,EAAE,gBAAgB,CAAC,MAAM,CAAC,CAAA;CACvC;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,mBAAmB,GAAI,0KAajC,2BAA2B;;;;;;;;;;8BAoVK,MAAM,UAAS,kBAAkB;;;;;6BAsDlC,MAAM;;;;+BAWJ,MAAM;;;;yCAxCI,MAAM;CAoEnD,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getOverflow.d.ts","sourceRoot":"","sources":["../../../src/composables/connectedPosition/getOverflow.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,KAAK,SAAS,EAAE,KAAK,QAAQ,EAAE,MAAM,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"getOverflow.d.ts","sourceRoot":"","sources":["../../../src/composables/connectedPosition/getOverflow.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,KAAK,SAAS,EAAE,KAAK,QAAQ,EAAE,MAAM,SAAS,CAAA;AAQpE,eAAO,MAAM,WAAW,GACtB,YAAY,QAAQ,EACpB,cAAc,QAAQ,EACtB,iBAAiB,MAAM,KACtB,SAYF,CAAA;AAED,eAAO,MAAM,mBAAmB,GAC9B,UAAU,SAAS,EACnB,MAAM,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,KACxC,OAWF,CAAA;AAED,eAAO,MAAM,cAAc,GAAI,UAAU,SAAS,KAAG,OAOpD,CAAA;AAED,eAAO,MAAM,wBAAwB,GAAI,UAAU,SAAS,EAAE,YAAY,WAAW,KAAG,OAMvF,CAAA;AAED,eAAO,MAAM,kBAAkB,GAAI,WAAW,QAAQ,EAAE,YAAY,QAAQ,KAAG,OAO9E,CAAA;AAED,eAAO,MAAM,qBAAqB,GAAI,cAAc,QAAQ,EAAE,SAAS,MAAM,KAAG,QAc/E,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useFloatingOverlay.d.ts","sourceRoot":"","sources":["../../src/composables/useFloatingOverlay.ts"],"names":[],"mappings":"AAAA,OAAO,EAOL,KAAK,uBAAuB,EAC5B,KAAK,WAAW,EAChB,KAAK,gBAAgB,EACrB,KAAK,UAAU,EACf,KAAK,UAAU,EAChB,MAAM,KAAK,CAAA;AAGZ,OAAO,EAGL,kBAAkB,EAClB,mBAAmB,EAcpB,MAAM,qBAAqB,CAAA;AAE5B,MAAM,WAAW,0BAA0B;IACzC,IAAI,EAAE,gBAAgB,CAAC,OAAO,CAAC,CAAA;IAC/B,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAA;IACtC,SAAS,EAAE,gBAAgB,CAAC,WAAW,GAAG,uBAAuB,GAAG,IAAI,CAAC,CAAA;IACzE,KAAK,EAAE,gBAAgB,CAAC,WAAW,GAAG,IAAI,CAAC,CAAA;IAC3C,SAAS,CAAC,EAAE,gBAAgB,CAAC,mBAAmB,CAAC,CAAA;IACjD,MAAM,CAAC,EAAE,gBAAgB,CAAC,MAAM,CAAC,CAAA;IACjC,IAAI,CAAC,EAAE,gBAAgB,CAAC,OAAO,CAAC,CAAA;IAChC,KAAK,CAAC,EAAE,gBAAgB,CAAC,OAAO,CAAC,CAAA;IACjC,mBAAmB,CAAC,EAAE,gBAAgB,CAAC,OAAO,CAAC,CAAA;IAC/C,WAAW,CAAC,EAAE,gBAAgB,CAAC,OAAO,CAAC,CAAA;IACvC,qBAAqB,CAAC,EAAE,gBAAgB,CAAC,OAAO,CAAC,CAAA;IACjD,eAAe,CAAC,EAAE,gBAAgB,CAAC,OAAO,CAAC,CAAA;IAC3C,eAAe,CAAC,EAAE,gBAAgB,CAAC,MAAM,CAAC,CAAA;IAC1C,KAAK,CAAC,EAAE,gBAAgB,CAAC,OAAO,CAAC,CAAA;IACjC,QAAQ,CAAC,EAAE,gBAAgB,CAAC,kBAAkB,CAAC,CAAA;CAChD;AAED,MAAM,WAAW,yBAAyB;IACxC,WAAW,EAAE,WAAW,CAAC,UAAU,CAAC,CAAA;IACpC,cAAc,EAAE,UAAU,CAAC,MAAM,GAAG,SAAS,CAAC,CAAA;IAC9C,iBAAiB,EAAE,UAAU,CAAC,mBAAmB,CAAC,CAAA;IAClD,eAAe,EAAE,UAAU,CAAC,OAAO,CAAC,CAAA;IACpC,cAAc,EAAE,UAAU,CAAC,MAAM,CAAC,CAAA;IAClC,WAAW,EAAE,WAAW,CAAC,UAAU,GAAG,SAAS,CAAC,CAAA;IAChD,eAAe,EAAE,UAAU,CAAC,OAAO,CAAC,CAAA;IACpC,cAAc,EAAE,MAAM,IAAI,CAAA;CAC3B;
|
|
1
|
+
{"version":3,"file":"useFloatingOverlay.d.ts","sourceRoot":"","sources":["../../src/composables/useFloatingOverlay.ts"],"names":[],"mappings":"AAAA,OAAO,EAOL,KAAK,uBAAuB,EAC5B,KAAK,WAAW,EAChB,KAAK,gBAAgB,EACrB,KAAK,UAAU,EACf,KAAK,UAAU,EAChB,MAAM,KAAK,CAAA;AAGZ,OAAO,EAGL,kBAAkB,EAClB,mBAAmB,EAcpB,MAAM,qBAAqB,CAAA;AAE5B,MAAM,WAAW,0BAA0B;IACzC,IAAI,EAAE,gBAAgB,CAAC,OAAO,CAAC,CAAA;IAC/B,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAA;IACtC,SAAS,EAAE,gBAAgB,CAAC,WAAW,GAAG,uBAAuB,GAAG,IAAI,CAAC,CAAA;IACzE,KAAK,EAAE,gBAAgB,CAAC,WAAW,GAAG,IAAI,CAAC,CAAA;IAC3C,SAAS,CAAC,EAAE,gBAAgB,CAAC,mBAAmB,CAAC,CAAA;IACjD,MAAM,CAAC,EAAE,gBAAgB,CAAC,MAAM,CAAC,CAAA;IACjC,IAAI,CAAC,EAAE,gBAAgB,CAAC,OAAO,CAAC,CAAA;IAChC,KAAK,CAAC,EAAE,gBAAgB,CAAC,OAAO,CAAC,CAAA;IACjC,mBAAmB,CAAC,EAAE,gBAAgB,CAAC,OAAO,CAAC,CAAA;IAC/C,WAAW,CAAC,EAAE,gBAAgB,CAAC,OAAO,CAAC,CAAA;IACvC,qBAAqB,CAAC,EAAE,gBAAgB,CAAC,OAAO,CAAC,CAAA;IACjD,eAAe,CAAC,EAAE,gBAAgB,CAAC,OAAO,CAAC,CAAA;IAC3C,eAAe,CAAC,EAAE,gBAAgB,CAAC,MAAM,CAAC,CAAA;IAC1C,KAAK,CAAC,EAAE,gBAAgB,CAAC,OAAO,CAAC,CAAA;IACjC,QAAQ,CAAC,EAAE,gBAAgB,CAAC,kBAAkB,CAAC,CAAA;CAChD;AAED,MAAM,WAAW,yBAAyB;IACxC,WAAW,EAAE,WAAW,CAAC,UAAU,CAAC,CAAA;IACpC,cAAc,EAAE,UAAU,CAAC,MAAM,GAAG,SAAS,CAAC,CAAA;IAC9C,iBAAiB,EAAE,UAAU,CAAC,mBAAmB,CAAC,CAAA;IAClD,eAAe,EAAE,UAAU,CAAC,OAAO,CAAC,CAAA;IACpC,cAAc,EAAE,UAAU,CAAC,MAAM,CAAC,CAAA;IAClC,WAAW,EAAE,WAAW,CAAC,UAAU,GAAG,SAAS,CAAC,CAAA;IAChD,eAAe,EAAE,UAAU,CAAC,OAAO,CAAC,CAAA;IACpC,cAAc,EAAE,MAAM,IAAI,CAAA;CAC3B;AAsFD,eAAO,MAAM,kBAAkB,GAC7B,SAAS,0BAA0B,KAClC,yBAmVF,CAAA"}
|
package/dist/entries/button.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../SButton-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../SButton-CLTNdnCK.cjs");exports.EButtonAppearance=e.n,exports.EButtonSize=e.r,exports.EButtonVariant=e.i,exports.SButton=e.t;
|
package/dist/entries/button.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as e, n as t, r as n, t as r } from "../SButton-
|
|
1
|
+
import { i as e, n as t, r as n, t as r } from "../SButton-LAOBxpd4.js";
|
|
2
2
|
export { t as EButtonAppearance, n as EButtonSize, e as EButtonVariant, r as SButton };
|
package/dist/entries/chip.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../SChip-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../SChip-Dcvk3JI8.cjs");exports.ESChipColor=e.n,exports.ESChipSize=e.r,exports.SChip=e.t;
|
package/dist/entries/chip.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, r as t, t as n } from "../SChip-
|
|
1
|
+
import { n as e, r as t, t as n } from "../SChip-NDTK29yq.js";
|
|
2
2
|
export { e as ESChipColor, t as ESChipSize, n as SChip };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../SColorPicker-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../SColorPicker-D7mTRL7K.cjs"),t=require("../SColorPalette-CqIA4Qtp.cjs"),n=require("../colorValue-Dda7fKd3.cjs");exports.EColorFormat=t.o,exports.MAX_RECENT_COLORS=e.i,exports.RECOMMENDED_COLOR_PALETTE=t.r,exports.SColorArea=e.r,exports.SColorPicker=e.t,exports.SColorValues=e.n,exports.isSameColor=n.r,exports.resolveColorPreview=n.a;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as e, n as t, r as n, t as r } from "../SColorPicker-
|
|
1
|
+
import { i as e, n as t, r as n, t as r } from "../SColorPicker-BmaA5Xnp.js";
|
|
2
2
|
import { o as i, r as a } from "../SColorPalette-OCu-tgZ3.js";
|
|
3
3
|
import { a as o, r as s } from "../colorValue-CSh0chxp.js";
|
|
4
4
|
export { i as EColorFormat, e as MAX_RECENT_COLORS, a as RECOMMENDED_COLOR_PALETTE, n as SColorArea, r as SColorPicker, t as SColorValues, s as isSameColor, o as resolveColorPreview };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../useSelectionGroup-NJvi3hNo.cjs"),t=require("../useSelectLink-DZIAhQ2J.cjs"),n=require("../useLink-1LLWpdDZ.cjs"),r=require("../useFloatingOverlay-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../useSelectionGroup-NJvi3hNo.cjs"),t=require("../useSelectLink-DZIAhQ2J.cjs"),n=require("../useLink-1LLWpdDZ.cjs"),r=require("../useFloatingOverlay-Dp44TxvN.cjs");exports.ESDropdownPlacement=r.a,exports.ESelectionMode=e.n,exports.ESelectionOrientation=e.r,exports.computeConnectedPosition=r.n,exports.resolveOwnPropOrGroupedOrFallback=e.a,exports.useFloatingOverlay=r.t,exports.useLink=n.t,exports.useSelectLink=t.t,exports.useSelectionGroup=e.o,exports.useSelectionGroupItem=t.n;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as e, n as t, o as n, r } from "../useSelectionGroup-BCAmPf3R.js";
|
|
2
2
|
import { n as i, t as a } from "../useSelectLink-2aCIYmF6.js";
|
|
3
3
|
import { t as o } from "../useLink-Com5VhOk.js";
|
|
4
|
-
import { a as s, n as c, t as l } from "../useFloatingOverlay-
|
|
4
|
+
import { a as s, n as c, t as l } from "../useFloatingOverlay-b9_eDGNE.js";
|
|
5
5
|
export { s as ESDropdownPlacement, t as ESelectionMode, r as ESelectionOrientation, c as computeConnectedPosition, e as resolveOwnPropOrGroupedOrFallback, l as useFloatingOverlay, o as useLink, a as useSelectLink, n as useSelectionGroup, i as useSelectionGroupItem };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../useFloatingOverlay-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../useFloatingOverlay-Dp44TxvN.cjs"),t=require("../SDropdown-BdgpPzfl.cjs");exports.ESDropdownPlacement=e.a,exports.SDropdown=t.t,exports.S_DROPDOWN_SHEET_BREAKPOINT=t.n;
|
package/dist/entries/dropdown.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as e } from "../useFloatingOverlay-
|
|
2
|
-
import { n as t, t as n } from "../SDropdown-
|
|
1
|
+
import { a as e } from "../useFloatingOverlay-b9_eDGNE.js";
|
|
2
|
+
import { n as t, t as n } from "../SDropdown-xNcC6JDy.js";
|
|
3
3
|
export { e as ESDropdownPlacement, n as SDropdown, t as S_DROPDOWN_SHEET_BREAKPOINT };
|
package/dist/entries/input.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../SInput-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../SInput-B4So5LGW.cjs");exports.ESInputCustomize=e.n,exports.SInput=e.t;
|
package/dist/entries/input.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, t } from "../SInput-
|
|
1
|
+
import { n as e, t } from "../SInput-D8NftspL.js";
|
|
2
2
|
export { e as ESInputCustomize, t as SInput };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../SListItem-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../SListItem-BeaflFVf.cjs");exports.ESListItemVariant=e.n,exports.SListItem=e.t;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, t } from "../SListItem-
|
|
1
|
+
import { n as e, t } from "../SListItem-BOSQGRWA.js";
|
|
2
2
|
export { e as ESListItemVariant, t as SListItem };
|
package/dist/entries/list.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../SList-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../SList-CvP0U6U1.cjs");exports.ESListGap=e.a,exports.SList=e.t;
|
package/dist/entries/list.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as e, t } from "../SList-
|
|
1
|
+
import { a as e, t } from "../SList-BuXrkB03.js";
|
|
2
2
|
export { e as ESListGap, t as SList };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../SPhotoEdit-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../SPhotoEdit-CShhPLJt.cjs");exports.ESPhotoEditShape=e.n,exports.ESPhotoEditSize=e.r,exports.SPhotoEdit=e.t;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, r as t, t as n } from "../SPhotoEdit-
|
|
1
|
+
import { n as e, r as t, t as n } from "../SPhotoEdit-r63G2NZI.js";
|
|
2
2
|
export { e as ESPhotoEditShape, t as ESPhotoEditSize, n as SPhotoEdit };
|
package/dist/entries/select.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../SSelect-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../SSelect-Coyrc99Y.cjs");exports.ESSelectSearchable=e.n,exports.SSelect=e.t;
|
package/dist/entries/select.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, t } from "../SSelect-
|
|
1
|
+
import { n as e, t } from "../SSelect-DUtNtnqM.js";
|
|
2
2
|
export { e as ESSelectSearchable, t as SSelect };
|
package/dist/entries/table.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../STable-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../STable-PkWtyYaP.cjs");exports.ESTableCellState=e.n,exports.ESTableCheckState=e.r,exports.ESTableColumnAlign=e.i,exports.ESTableColumnSticky=e.a,exports.ESTableDropAction=e.o,exports.ESTableFooterTone=e.s,exports.ESTableRowHeightMode=e.c,exports.ESTableRowKind=e.l,exports.ESTableRowState=e.u,exports.ESTableRowsDragMode=e.d,exports.ESTableSortDirection=e.f,exports.STable=e.t;
|
package/dist/entries/table.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as e, c as t, d as n, f as r, i, l as a, n as o, o as s, r as c, s as l, t as u, u as d } from "../STable-
|
|
1
|
+
import { a as e, c as t, d as n, f as r, i, l as a, n as o, o as s, r as c, s as l, t as u, u as d } from "../STable-CJBdcrD2.js";
|
|
2
2
|
export { o as ESTableCellState, c as ESTableCheckState, i as ESTableColumnAlign, e as ESTableColumnSticky, s as ESTableDropAction, l as ESTableFooterTone, t as ESTableRowHeightMode, a as ESTableRowKind, d as ESTableRowState, n as ESTableRowsDragMode, r as ESTableSortDirection, u as STable };
|
package/dist/entries/tabs.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../STab-C06drUMG.cjs"),t=require("../STabs-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../STab-C06drUMG.cjs"),t=require("../STabs-n5hMERTK.cjs");exports.ESTabAppearance=e.n,exports.ESTabSize=e.r,exports.STab=e.t,exports.STabs=t.t;
|
package/dist/entries/tabs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../STag-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../STag-ZPrc5q4N.cjs"),t=require("../STagGroup-ccEvIkK7.cjs");exports.ESTagColor=e.n,exports.ESTagSize=e.r,exports.STagGroup=t.t;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { n as e, r as t } from "../STag-
|
|
2
|
-
import { t as n } from "../STagGroup-
|
|
1
|
+
import { n as e, r as t } from "../STag-C5KhPWjQ.js";
|
|
2
|
+
import { t as n } from "../STagGroup-BGwvunuu.js";
|
|
3
3
|
export { e as ESTagColor, t as ESTagSize, n as STagGroup };
|
package/dist/entries/tag.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../STag-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../STag-ZPrc5q4N.cjs");exports.ESTagColor=e.n,exports.ESTagSize=e.r,exports.STag=e.t;
|
package/dist/entries/tag.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, r as t, t as n } from "../STag-
|
|
1
|
+
import { n as e, r as t, t as n } from "../STag-C5KhPWjQ.js";
|
|
2
2
|
export { e as ESTagColor, t as ESTagSize, n as STag };
|
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./SBadge-d1GOPFP-.cjs"),t=require("./SAvatar-ClmtSIFg.cjs"),n=require("./SColorPicker-B_rbs-0d.cjs"),r=require("./SColorPalette-CqIA4Qtp.cjs"),i=require("./colorValue-Dda7fKd3.cjs"),a=require("./SAvatarGroup-By8oMNTe.cjs"),o=require("./SButton-BN-PppY7.cjs"),s=require("./useSelectionGroup-NJvi3hNo.cjs"),c=require("./useSelectLink-DZIAhQ2J.cjs"),l=require("./SButtonGroup-Co1AUbsm.cjs"),u=require("./SCheckbox-DnnC5mOH.cjs"),d=require("./SCard-DKZYyR5b.cjs"),f=require("./SSegmentControl-BaD9BK2s.cjs"),p=require("./STab-C06drUMG.cjs"),m=require("./STabs-a337ikYi.cjs"),h=require("./useFloatingOverlay-CtQBdvS9.cjs"),g=require("./STag-B68ch31f.cjs"),_=require("./STagGroup-B4ktVLZ5.cjs"),v=require("./SChip-B6vcMlZD.cjs"),y=require("./SDropdown-B1OGbIYg.cjs"),b=require("./SDropdownMenu-k9SxaFVH.cjs"),x=require("./SInput-Be10IJ_E.cjs"),S=require("./SInlineMessage-gjkMiE-W.cjs"),C=require("./SLabel-DLKfepRW.cjs"),w=require("./treeKeyboardNavigation-BOz2SVus.cjs"),T=require("./SListItem-Rb59ZhEw.cjs"),E=require("./SList-3YwWEhUU.cjs"),ee=require("./SSelect-EhvfGB4d.cjs"),D=require("./SRadio-DRo_GU5A.cjs"),O=require("./SToggle-CGd0Mh0R.cjs"),k=require("./SInlineInput-D3vCX4QA.cjs"),te=require("./STextarea-C4qDIp2k.cjs"),A=require("./SPhotoEdit-0grpjqZQ.cjs"),j=require("./SChartLegend-DGtjd6zV.cjs"),M=require("./useChartInteractivity-CXSdHPOw.cjs"),ne=require("./SChartLine-nIGaef_o.cjs"),re=require("./resolveSeriesPaletteColor-B5qoBbXN.cjs"),ie=require("./SChartStackedArea-BNe6FAg8.cjs"),ae=require("./SChartStackedBar-D1G-VloG.cjs"),oe=require("./SChartHorizontalBar-Bv90SV6E.cjs"),se=require("./SChartPie-Bv5Obcwb.cjs"),ce=require("./SChartMultiLine-BzoW4ETf.cjs"),le=require("./SChartBurnup-Ch3UMa9w.cjs"),ue=require("./useHasListener-BPgtbbo6.cjs"),de=require("./SChartBar-CBU1uCuL.cjs"),fe=require("./SChartProgress-xxqrj03o.cjs"),N=require("./buildWorkTimeLegendItems-DjhLKbAP.cjs"),P=require("./STable-D1x-kIBO.cjs");let F=require("vue"),I=require("@shtabapp/ui-kit-primitives"),pe=require("@vueuse/core");var L=[`--s-ui-chart-segmented-bar-palette-1`,`--s-ui-chart-segmented-bar-palette-2`,`--s-ui-chart-segmented-bar-palette-3`,`--s-ui-chart-segmented-bar-palette-4`,`--s-ui-chart-segmented-bar-palette-5`,`--s-ui-chart-segmented-bar-palette-6`,`--s-ui-chart-segmented-bar-palette-7`,`--s-ui-chart-segmented-bar-palette-8`],R=[`--s-ui-chart-segmented-bar-skeleton-palette-1`,`--s-ui-chart-segmented-bar-skeleton-palette-2`,`--s-ui-chart-segmented-bar-skeleton-palette-3`,`--s-ui-chart-segmented-bar-skeleton-palette-4`,`--s-ui-chart-segmented-bar-skeleton-palette-5`,`--s-ui-chart-segmented-bar-skeleton-palette-6`,`--s-ui-chart-segmented-bar-skeleton-palette-7`,`--s-ui-chart-segmented-bar-skeleton-palette-8`],me=(e,t,n,r=!1)=>re.t(e,t,n,r,{palette:L,paletteFallback:L[0],skeletonPalette:R,skeletonFallback:R[0]}),z=function(e){return e.INFO_ACCENT=`info-accent`,e.INFO_NORMAL=`info-normal`,e.SUCCESS=`success`,e.WARNING=`warning`,e.DANGER=`danger`,e.BILLING=`billing`,e}({}),B=function(e){return e.HORIZONTAL=`horizontal`,e.VERTICAL=`vertical`,e}({}),V=function(e){return e.ICON=`icon`,e.AVATAR=`avatar`,e}({}),H=function(e){return e.BANNER=`banner`,e.TOAST=`toast`,e}({}),he={[z.INFO_ACCENT]:I.ESIconName.infoCircle,[z.INFO_NORMAL]:I.ESIconName.infoCircle,[z.SUCCESS]:I.ESIconName.checkCircle,[z.WARNING]:I.ESIconName.alertCircle,[z.DANGER]:I.ESIconName.dangerCircleFill,[z.BILLING]:I.ESIconName.infoCircle},ge=(e,t)=>t||he[e],_e=[`role`],ve={class:`s-ui-notification__body`},ye={key:0,class:`s-ui-notification__leftside`},be={key:0,class:`s-ui-notification__icon`},xe={class:`s-ui-notification__content`},Se={class:`s-ui-notification__title-row`},Ce={key:0,class:`s-ui-notification__description-block`},we={key:0,class:`s-ui-notification__description s-ui-typography-label-12-medium`},Te={key:1,class:`s-ui-notification__actions-stack`},Ee={key:1,class:`s-ui-notification__actions-row`},U=(0,F.defineComponent)({__name:`SNotification`,props:{type:{default:()=>z.INFO_ACCENT},layout:{default:()=>B.HORIZONTAL},leftside:{default:()=>V.ICON},surface:{default:()=>H.BANNER},title:{},description:{},linkText:{},linkIconRight:{},primaryButtonText:{},secondaryButtonText:{},showPrimaryButton:{type:Boolean,default:!1},closable:{type:Boolean,default:!0},closeAriaLabel:{default:``},icon:{},avatar:{},width:{},maxWidth:{},truncateTitle:{type:Boolean,default:!1}},emits:[`close`,`linkClick`,`primaryAction`,`secondaryAction`],setup(e,{emit:n}){let r=n,i=(0,F.useSlots)(),a=(0,F.computed)(()=>[`s-ui-notification--type-${e.type}`,`s-ui-notification--layout-${e.layout}`,`s-ui-notification--surface-${e.surface}`]),s=(0,F.computed)(()=>{let t={};return e.width&&(t.width=typeof e.width==`number`?`${e.width}px`:e.width),e.maxWidth&&(t.maxWidth=typeof e.maxWidth==`number`?`${e.maxWidth}px`:e.maxWidth),t}),c=(0,F.computed)(()=>e.type===z.DANGER?`alert`:`status`),l=(0,F.computed)(()=>ge(e.type,e.icon)),u=(0,F.computed)(()=>e.type===z.BILLING),d=(0,F.computed)(()=>!!(e.leftside===V.AVATAR&&e.avatar||e.leftside===V.ICON)),f=(0,F.computed)(()=>!!(e.description||e.linkText||i.description)),p=(0,F.computed)(()=>e.showPrimaryButton&&(e.primaryButtonText||e.secondaryButtonText)),m=(0,F.computed)(()=>e.showPrimaryButton&&e.primaryButtonText||e.closable),h=(0,F.computed)(()=>e.type===z.BILLING?o.n.MAJOR:o.n.OUTLINED),g=(0,F.computed)(()=>e.type===z.BILLING?o.i.BILLING:o.i.MAIN),_=()=>{r(`close`)},v=()=>{r(`linkClick`)},y=()=>{r(`primaryAction`)},b=()=>{r(`secondaryAction`)};return(n,r)=>((0,F.openBlock)(),(0,F.createElementBlock)(`div`,{class:(0,F.normalizeClass)([`s-ui-notification`,a.value]),style:(0,F.normalizeStyle)(s.value),role:c.value},[(0,F.createElementVNode)(`div`,ve,[d.value?((0,F.openBlock)(),(0,F.createElementBlock)(`div`,ye,[e.leftside===(0,F.unref)(V).ICON?((0,F.openBlock)(),(0,F.createElementBlock)(`div`,be,[(0,F.createVNode)((0,F.unref)(I.SIcon),{name:l.value,size:16,billing:u.value},null,8,[`name`,`billing`])])):e.leftside===(0,F.unref)(V).AVATAR&&e.avatar?((0,F.openBlock)(),(0,F.createBlock)((0,F.unref)(t.t),{key:1,name:e.avatar.name,src:e.avatar.src,badge:e.avatar.badge,size:(0,F.unref)(t.o).SIZE_20,showName:!1},null,8,[`name`,`src`,`badge`,`size`])):(0,F.createCommentVNode)(``,!0)])):(0,F.createCommentVNode)(``,!0),(0,F.createElementVNode)(`div`,xe,[(0,F.createElementVNode)(`div`,Se,[(0,F.createElementVNode)(`span`,{class:(0,F.normalizeClass)([`s-ui-notification__title s-ui-typography-label-14-medium`,{"s-ui-notification__title--truncated":e.truncateTitle}])},[(0,F.renderSlot)(n.$slots,`title`,{},()=>[(0,F.createTextVNode)((0,F.toDisplayString)(e.title),1)])],2),e.layout===(0,F.unref)(B).VERTICAL&&e.closable?((0,F.openBlock)(),(0,F.createBlock)((0,F.unref)(o.t),{key:0,class:`s-ui-notification__close`,appearance:(0,F.unref)(o.n).BARE,variant:(0,F.unref)(o.i).NEUTRAL,size:(0,F.unref)(o.r).SMALL,"aria-label":e.closeAriaLabel,icon:`closeMini`,onClick:_},null,8,[`appearance`,`variant`,`size`,`aria-label`])):(0,F.createCommentVNode)(``,!0)]),f.value?((0,F.openBlock)(),(0,F.createElementBlock)(`div`,Ce,[e.description||(0,F.unref)(i).description?((0,F.openBlock)(),(0,F.createElementBlock)(`span`,we,[(0,F.renderSlot)(n.$slots,`description`,{},()=>[(0,F.createTextVNode)((0,F.toDisplayString)(e.description),1)])])):(0,F.createCommentVNode)(``,!0),e.linkText?((0,F.openBlock)(),(0,F.createBlock)((0,F.unref)(o.t),{key:1,class:`s-ui-notification__link`,appearance:(0,F.unref)(o.n).BARE,variant:(0,F.unref)(o.i).MAIN,size:(0,F.unref)(o.r).SMALL,iconRight:e.linkIconRight,onClick:v},{default:(0,F.withCtx)(()=>[(0,F.createTextVNode)((0,F.toDisplayString)(e.linkText),1)]),_:1},8,[`appearance`,`variant`,`size`,`iconRight`])):(0,F.createCommentVNode)(``,!0)])):(0,F.createCommentVNode)(``,!0),e.layout===(0,F.unref)(B).VERTICAL&&p.value?((0,F.openBlock)(),(0,F.createElementBlock)(`div`,Te,[e.showPrimaryButton&&e.primaryButtonText?((0,F.openBlock)(),(0,F.createBlock)((0,F.unref)(o.t),{key:0,appearance:h.value,variant:g.value,size:(0,F.unref)(o.r).SMALL,onClick:y},{default:(0,F.withCtx)(()=>[(0,F.createTextVNode)((0,F.toDisplayString)(e.primaryButtonText),1)]),_:1},8,[`appearance`,`variant`,`size`])):(0,F.createCommentVNode)(``,!0),e.showPrimaryButton&&e.secondaryButtonText?((0,F.openBlock)(),(0,F.createBlock)((0,F.unref)(o.t),{key:1,appearance:(0,F.unref)(o.n).BARE,variant:(0,F.unref)(o.i).NEUTRAL,size:(0,F.unref)(o.r).SMALL,onClick:b},{default:(0,F.withCtx)(()=>[(0,F.createTextVNode)((0,F.toDisplayString)(e.secondaryButtonText),1)]),_:1},8,[`appearance`,`variant`,`size`])):(0,F.createCommentVNode)(``,!0)])):(0,F.createCommentVNode)(``,!0)]),e.layout===(0,F.unref)(B).HORIZONTAL&&m.value?((0,F.openBlock)(),(0,F.createElementBlock)(`div`,Ee,[e.showPrimaryButton&&e.primaryButtonText?((0,F.openBlock)(),(0,F.createBlock)((0,F.unref)(o.t),{key:0,appearance:h.value,variant:g.value,size:(0,F.unref)(o.r).SMALL,onClick:y},{default:(0,F.withCtx)(()=>[(0,F.createTextVNode)((0,F.toDisplayString)(e.primaryButtonText),1)]),_:1},8,[`appearance`,`variant`,`size`])):(0,F.createCommentVNode)(``,!0),e.layout===(0,F.unref)(B).HORIZONTAL&&e.closable?((0,F.openBlock)(),(0,F.createBlock)((0,F.unref)(o.t),{key:1,class:`s-ui-notification__close`,appearance:(0,F.unref)(o.n).BARE,variant:(0,F.unref)(o.i).NEUTRAL,size:(0,F.unref)(o.r).SMALL,"aria-label":e.closeAriaLabel,icon:`closeMini`,onClick:_},null,8,[`appearance`,`variant`,`size`,`aria-label`])):(0,F.createCommentVNode)(``,!0)])):(0,F.createCommentVNode)(``,!0)])],14,_e))}}),De=(0,F.defineComponent)({__name:`SBanner`,props:{type:{default:()=>z.INFO_ACCENT},layout:{default:()=>B.HORIZONTAL},leftside:{default:()=>V.ICON},elevated:{type:Boolean,default:!1},title:{},description:{},linkText:{},linkIconRight:{},primaryButtonText:{},secondaryButtonText:{},showPrimaryButton:{type:Boolean,default:!1},closable:{type:Boolean,default:!0},closeAriaLabel:{default:``},icon:{},avatar:{},maxWidth:{},truncateTitle:{type:Boolean,default:!1}},emits:[`close`,`linkClick`,`primaryAction`,`secondaryAction`],setup(e,{emit:t}){let n=t,r=(0,F.useSlots)(),i=(0,F.computed)(()=>({"s-ui-banner--elevated":e.elevated}));return(t,a)=>((0,F.openBlock)(),(0,F.createBlock)(U,{class:(0,F.normalizeClass)([`s-ui-banner`,i.value]),"data-qa":`ui:banner`,type:e.type,layout:e.layout,leftside:e.leftside,surface:(0,F.unref)(H).BANNER,title:e.title,description:e.description,linkText:e.linkText,linkIconRight:e.linkIconRight,primaryButtonText:e.primaryButtonText,secondaryButtonText:e.secondaryButtonText,showPrimaryButton:e.showPrimaryButton,closable:e.closable,closeAriaLabel:e.closeAriaLabel,icon:e.icon,avatar:e.avatar,maxWidth:e.maxWidth,truncateTitle:e.truncateTitle,onClose:a[0]||=e=>n(`close`),onLinkClick:a[1]||=e=>n(`linkClick`),onPrimaryAction:a[2]||=e=>n(`primaryAction`),onSecondaryAction:a[3]||=e=>n(`secondaryAction`)},(0,F.createSlots)({_:2},[(0,F.unref)(r).title?{name:`title`,fn:(0,F.withCtx)(()=>[(0,F.renderSlot)(t.$slots,`title`)]),key:`0`}:void 0,(0,F.unref)(r).description?{name:`description`,fn:(0,F.withCtx)(()=>[(0,F.renderSlot)(t.$slots,`description`)]),key:`1`}:void 0]),1032,[`class`,`type`,`layout`,`leftside`,`surface`,`title`,`description`,`linkText`,`linkIconRight`,`primaryButtonText`,`secondaryButtonText`,`showPrimaryButton`,`closable`,`closeAriaLabel`,`icon`,`avatar`,`maxWidth`,`truncateTitle`]))}}),W=(0,F.defineComponent)({__name:`SToast`,props:{type:{default:()=>z.INFO_ACCENT},layout:{default:()=>B.HORIZONTAL},leftside:{default:()=>V.ICON},title:{},description:{},linkText:{},primaryButtonText:{},secondaryButtonText:{},showPrimaryButton:{type:Boolean,default:!1},closable:{type:Boolean,default:!0},closeAriaLabel:{default:``},icon:{},avatar:{},width:{},truncateTitle:{type:Boolean,default:!1}},emits:[`close`,`linkClick`,`primaryAction`,`secondaryAction`],setup(e,{emit:t}){let n=t,r=(0,F.useSlots)(),i=(0,F.computed)(()=>e.width??360);return(t,a)=>((0,F.openBlock)(),(0,F.createBlock)(U,{class:`s-ui-toast`,"data-qa":`ui:toast`,type:e.type,layout:e.layout,leftside:e.leftside,surface:(0,F.unref)(H).TOAST,title:e.title,description:e.description,linkText:e.linkText,primaryButtonText:e.primaryButtonText,secondaryButtonText:e.secondaryButtonText,showPrimaryButton:e.showPrimaryButton,closable:e.closable,closeAriaLabel:e.closeAriaLabel,icon:e.icon,avatar:e.avatar,width:i.value,truncateTitle:e.truncateTitle,onClose:a[0]||=e=>n(`close`),onLinkClick:a[1]||=e=>n(`linkClick`),onPrimaryAction:a[2]||=e=>n(`primaryAction`),onSecondaryAction:a[3]||=e=>n(`secondaryAction`)},(0,F.createSlots)({_:2},[(0,F.unref)(r).title?{name:`title`,fn:(0,F.withCtx)(()=>[(0,F.renderSlot)(t.$slots,`title`)]),key:`0`}:void 0,(0,F.unref)(r).description?{name:`description`,fn:(0,F.withCtx)(()=>[(0,F.renderSlot)(t.$slots,`description`)]),key:`1`}:void 0]),1032,[`type`,`layout`,`leftside`,`surface`,`title`,`description`,`linkText`,`primaryButtonText`,`secondaryButtonText`,`showPrimaryButton`,`closable`,`closeAriaLabel`,`icon`,`avatar`,`width`,`truncateTitle`]))}}),Oe=.05,ke=[`data-mounted`,`data-front`,`data-expanded`,`data-removed`,`data-visible`],Ae=(0,F.defineComponent)({__name:`SToastProviderToast`,props:{index:{},expanded:{type:Boolean},frontToastHeight:{},stackPeek:{},removed:{type:Boolean},visible:{type:Boolean},offsetY:{}},emits:[`heightChange`],setup(e,{emit:t}){let n=t,r=(0,F.ref)(null),i=(0,F.ref)(0),a=(0,F.ref)(!1),o=(0,F.computed)(()=>e.index===0),s=(0,F.computed)(()=>1-e.index*Oe),c=(0,F.computed)(()=>({"--s-ui-toast-provider-toasts-before":String(e.index),"--s-ui-toast-provider-lift-amount":`${e.stackPeek*-1}px`,"--s-ui-toast-provider-front-toast-height":`${e.frontToastHeight}px`,"--s-ui-toast-provider-offset-y":`${e.offsetY}px`,"--s-ui-toast-provider-initial-height":`${i.value}px`,"--s-ui-toast-provider-stack-scale":String(s.value),zIndex:String(1e3-e.index)}));return(0,pe.useResizeObserver)(r,e=>{let t=e[0]?.contentRect.height??0;t!==i.value&&(i.value=t,n(`heightChange`,t))}),(0,F.onMounted)(()=>{requestAnimationFrame(()=>{requestAnimationFrame(()=>{a.value=!0})})}),(t,n)=>((0,F.openBlock)(),(0,F.createElementBlock)(`div`,{class:`s-ui-toast-provider__toast`,"data-mounted":a.value,"data-front":o.value,"data-expanded":e.expanded,"data-removed":e.removed,"data-visible":e.visible,style:(0,F.normalizeStyle)(c.value)},[(0,F.createElementVNode)(`div`,{ref_key:`contentRef`,ref:r,class:`s-ui-toast-provider__toast-content`},[(0,F.renderSlot)(t.$slots,`default`)],512)],12,ke))}}),G=4e3,K=1e4,je=50,q=(e,t)=>{let n=G+(e.length+(t?.length??0))*50;return n>1e4?K:n},J=(0,F.shallowRef)([]),Y=new Map,Me=0,Ne={type:z.INFO_ACCENT,layout:B.HORIZONTAL,leftside:V.ICON,showPrimaryButton:!1,closable:!0},Pe=()=>`toast-${Date.now()}-${++Me}`,X=e=>{let t=Y.get(e);t&&(window.clearTimeout(t),Y.delete(e))},Z=e=>{X(e.id);let t=e.duration===void 0?q(e.title,e.description):e.duration;if(t>0){let n=window.setTimeout(()=>{Q(e.id)},t);Y.set(e.id,n)}},Q=e=>{let t=J.value.findIndex(t=>t.id===e);if(t===-1)return;let n=J.value[t];n&&(X(e),n.onClose&&n.onClose(),J.value=J.value.filter(t=>t.id!==e))},Fe=()=>{Y.forEach(e=>window.clearTimeout(e)),Y.clear(),J.value=[]},$=e=>e.length<=3?e:(e.slice(3).forEach(e=>{X(e.id)}),e.slice(0,3)),Ie=e=>{let t=e.id??Pe(),n={...Ne,...e,id:t},r=J.value.findIndex(e=>e.id===t);if(r>-1){let e=[...J.value];e[r]=n,J.value=$(e)}else J.value=$([n,...J.value]);return Z(n),t},Le=(e,t)=>{let n=J.value.findIndex(t=>t.id===e);if(n===-1)return;let r=J.value[n];if(!r)return;let i={...r,...t,id:r.id},a=[...J.value];a[n]=i,J.value=a,Z(i)},Re=()=>({toasts:J,show:Ie,hide:Q,hideAll:Fe,update:Le}),ze=(0,F.defineComponent)({__name:`SToastProvider`,setup(e){let{toasts:t,hide:n}=Re(),r=(0,F.computed)(()=>t.value.slice(0,3)),i=(0,F.ref)(!1),a=(0,F.shallowRef)({}),o=(0,F.ref)(new Set),s=(0,F.computed)(()=>t.value[0]??null),c=(0,F.computed)(()=>s.value?a.value[s.value.id]??0:0),l=(0,F.ref)(0),u=(0,F.computed)(()=>c.value>0?c.value:l.value);(0,F.watch)(c,e=>{e>0&&(l.value=e)});let d=(0,F.computed)(()=>{if(r.value.length===0)return{};if(i.value)return{height:`${r.value.reduce((e,t,n)=>{let r=a.value[t.id]??0,i=n>0?4:0;return e+r+i},0)}px`};let e=Math.min(r.value.length-1,2)*10;return{height:`${u.value+e}px`}}),f=e=>{let t=0;for(let n=0;n<e;n+=1){let e=r.value[n];e&&(t+=(a.value[e.id]??0)+4)}return t},p=e=>o.value.has(e),m=()=>{r.value.length>1&&(i.value=!0)},h=()=>{i.value=!1},g=(e,t)=>{a.value={...a.value,[e]:t}},_=e=>{o.value.has(e)||(o.value=new Set([...o.value,e]),window.setTimeout(()=>{n(e);let t=new Set(o.value);t.delete(e),o.value=t;let r={...a.value};delete r[e],a.value=r},200))},v=e=>{e.onLinkClick&&e.onLinkClick()},y=e=>{e.onPrimaryAction&&e.onPrimaryAction(e.id)},b=e=>{e.onSecondaryAction&&e.onSecondaryAction()};return(e,t)=>((0,F.openBlock)(),(0,F.createBlock)(F.Teleport,{to:`body`},[(0,F.createElementVNode)(`div`,{class:`s-ui-toast-provider`,onMouseenter:m,onMouseleave:h},[r.value.length>0?((0,F.openBlock)(),(0,F.createElementBlock)(`div`,{key:0,class:`s-ui-toast-provider__list`,style:(0,F.normalizeStyle)(d.value)},[((0,F.openBlock)(!0),(0,F.createElementBlock)(F.Fragment,null,(0,F.renderList)(r.value,(t,n)=>((0,F.openBlock)(),(0,F.createBlock)(Ae,{key:t.id,index:n,expanded:i.value,"front-toast-height":u.value,"stack-peek":(0,F.unref)(10),removed:p(t.id),visible:n<(0,F.unref)(3),"offset-y":f(n),onHeightChange:e=>g(t.id,e)},{default:(0,F.withCtx)(()=>[(0,F.renderSlot)(e.$slots,`toast`,{toast:t},()=>[t.component?((0,F.openBlock)(),(0,F.createBlock)((0,F.resolveDynamicComponent)(t.component),(0,F.mergeProps)({key:0,ref_for:!0},t.componentProps,{toast:t,onClose:e=>_(t.id)}),null,16,[`toast`,`onClose`])):((0,F.openBlock)(),(0,F.createBlock)((0,F.unref)(W),{key:1,type:t.type,layout:t.layout,leftside:t.leftside,title:t.title,description:t.description,linkText:t.linkText,primaryButtonText:t.primaryButtonText,secondaryButtonText:t.secondaryButtonText,showPrimaryButton:t.showPrimaryButton,closable:t.closable,closeAriaLabel:t.closeAriaLabel,icon:t.icon,avatar:t.avatar,width:t.width,truncateTitle:t.truncateTitle,onClose:e=>_(t.id),onLinkClick:e=>v(t),onPrimaryAction:e=>y(t),onSecondaryAction:e=>b(t)},null,8,[`type`,`layout`,`leftside`,`title`,`description`,`linkText`,`primaryButtonText`,`secondaryButtonText`,`showPrimaryButton`,`closable`,`closeAriaLabel`,`icon`,`avatar`,`width`,`truncateTitle`,`onClose`,`onLinkClick`,`onPrimaryAction`,`onSecondaryAction`]))])]),_:2},1032,[`index`,`expanded`,`front-toast-height`,`stack-peek`,`removed`,`visible`,`offset-y`,`onHeightChange`]))),128))],4)):(0,F.createCommentVNode)(``,!0)],32)]))}}),Be=4,Ve=4,He=1,Ue=`400 12px var(--s-ui-font-family-label)`,We=4,Ge=(e,t,n,r,i,a)=>{let o=Math.min(a,r/2,i/2);e.beginPath(),e.moveTo(t+o,n),e.lineTo(t+r-o,n),e.arcTo(t+r,n,t+r,n+o,o),e.lineTo(t+r,n+i-o),e.arcTo(t+r,n+i,t+r-o,n+i,o),e.lineTo(t+o,n+i),e.arcTo(t,n+i,t,n+i-o,o),e.lineTo(t,n+o),e.arcTo(t,n,t+o,n,o),e.closePath()},Ke=e=>{let t=e.getProps([`x`,`y`,`base`],!0),n=Number(t.x),r=Number(t.y),i=Number(t.base);return!Number.isFinite(n)||!Number.isFinite(r)||!Number.isFinite(i)?null:{left:Math.min(i,n),width:Math.abs(n-i),centerY:r}},qe=(e,t,n,r)=>{let i=Ke(t);if(!i)return;let a=`${n}`,o=e.measureText(a).width+Be*2;if(i.width<o+We*2)return;let s=i.left+i.width/2;Ge(e,s-o/2,i.centerY-20/2,o,20,Ve),e.fillStyle=r.background,e.fill(),e.lineWidth=He,e.strokeStyle=r.border,e.stroke(),e.fillStyle=r.text,e.fillText(a,s,i.centerY)},Je=e=>({id:`segmentedBarBadge`,afterDatasetsDraw(t){let n={background:M.S(M.g.pieBadgeBackground,e),border:M.S(M.g.pieBadgeBorder,e),text:M.S(M.g.pieBadgeText,e)},{ctx:r}=t;r.save(),r.font=Ue,r.textAlign=`center`,r.textBaseline=`middle`,t.data.datasets.forEach((e,i)=>{let a=t.getDatasetMeta(i)?.data[0],o=e.data[0];a&&typeof o==`number`&&o>0&&qe(r,a,o,n)}),r.restore()}}),Ye=40,Xe=4,Ze=1,Qe=[`mousemove`,`mouseout`,`click`,`touchstart`,`touchmove`],$e=({segments:e,segmentColors:t,colorHostElement:n,skeleton:r=!1,onSegmentClick:i})=>{if(e.length===0)return null;let a=M.S(`--s-ui-color-surface-primary`,n),o=e.reduce((e,t)=>e+t.value,0),s=M.r({kind:`series`,skeleton:r,colorHostElement:n,onIndexClick:i});return{type:`bar`,data:{labels:[``],datasets:e.map((e,n)=>({label:e.label,data:[e.value],backgroundColor:t[n],hoverBackgroundColor:t[n],borderColor:a,borderWidth:{left:Ze,right:Ze},borderSkipped:!1,borderRadius:Xe,barThickness:Ye,stack:`track`}))},options:{indexAxis:`y`,responsive:!0,maintainAspectRatio:!1,layout:{padding:0},events:r?[]:Qe,onHover:s.onHover,onClick:s.onClick,hover:r?void 0:{mode:`nearest`,intersect:!0},elements:r?void 0:{bar:{hoverBorderColor:a}},plugins:{legend:{display:!1},tooltip:{enabled:!1}},scales:{x:{display:!1,stacked:!0,min:0,max:o},y:{display:!1,stacked:!0}}},plugins:[...r?[]:[Je(n)],...s.plugins]}},et=[4,1,2,1,3,1,2,1].map((e,t)=>({label:`Series ${t+1}`,value:e})),tt={class:`s-ui-chart-segmented-bar__canvas-wrap`},nt=(0,F.defineComponent)({__name:`SChartSegmentedBar`,props:{segments:{default:()=>[]},showLegend:{type:Boolean,default:!0},loading:{type:Boolean,default:!1}},emits:[`segmentClick`],setup(e,{expose:t,emit:n}){let r=n,i=M.w,a=(0,F.useTemplateRef)(`chartRootRef`),o=(0,F.useTemplateRef)(`chartCanvasRef`),s=(0,F.computed)(()=>e.loading?et:e.segments),c=(0,F.computed)(()=>s.value.map((t,n)=>me(n,a.value,t.fillColor,e.loading))),l=(0,F.computed)(()=>s.value.map((e,t)=>({segment:e,segmentIndex:t})).filter(({segment:e})=>e.value>0)),u=(0,F.computed)(()=>l.value.map(({segment:e})=>e)),d=(0,F.computed)(()=>l.value.map(({segmentIndex:e})=>c.value[e]??``)),f=(0,F.computed)(()=>{let e=new Map;return l.value.forEach(({segmentIndex:t},n)=>{e.set(t,n)}),e}),p=e=>{let t=l.value[e];t&&r(`segmentClick`,t.segmentIndex,t.segment)},m=ue.t(`onSegmentClick`),h=(0,F.computed)(()=>$e({segments:u.value,segmentColors:d.value,colorHostElement:a.value,skeleton:e.loading,onSegmentClick:m()?p:void 0})),g=(0,F.computed)(()=>s.value.map((e,t)=>({label:e.label,color:c.value[t]??``}))),{chartInstance:_}=M.n({canvasRef:o,config:h,enabled:(0,F.computed)(()=>e.loading||u.value.length>0)}),{exportImage:v,handleLegendItemHover:y}=M.t({chartInstance:_,canvasRef:o,colorHostElement:a}),b=e=>{y(e===null?null:f.value.get(e)??null)};return t({exportImage:v}),(t,n)=>((0,F.openBlock)(),(0,F.createElementBlock)(`div`,{ref_key:`chartRootRef`,ref:a,class:(0,F.normalizeClass)([`s-ui-chart-segmented-bar`,{"s-ui-chart-segmented-bar--skeleton":e.loading}]),"data-qa":`ui:chart-segmented-bar`},[(0,F.createElementVNode)(`div`,tt,[(0,F.createVNode)((0,F.unref)(M.C),{loading:e.loading,type:(0,F.unref)(i).CARTESIAN},{default:(0,F.withCtx)(()=>[(0,F.createElementVNode)(`canvas`,{ref_key:`chartCanvasRef`,ref:o,class:`s-ui-chart-segmented-bar__canvas`},null,512)]),_:1},8,[`loading`,`type`])]),e.showLegend&&g.value.length?((0,F.openBlock)(),(0,F.createBlock)((0,F.unref)(j.t),{key:0,items:g.value,disabled:e.loading,interactive:!e.loading,onItemHover:b},null,8,[`items`,`disabled`,`interactive`])):(0,F.createCommentVNode)(``,!0)],2))}}),rt={key:0,class:`s-ui-chart-widget__header`},it={key:0,class:`s-ui-chart-widget__title-skeleton`,"aria-hidden":`true`},at={key:1,class:`s-ui-chart-widget__title s-ui-typography-label-16-medium`},ot={class:`s-ui-chart-widget__controls`},st={key:1,class:`s-ui-chart-widget__content`},ct=(0,F.defineComponent)({__name:`SChartWidget`,props:(0,F.mergeModels)({title:{default:``},collapsible:{type:Boolean,default:!1},hideContentWhenCollapsed:{type:Boolean,default:!0},loading:{type:Boolean,default:!1}},{collapsed:{type:Boolean,default:!1},collapsedModifiers:{}}),emits:[`update:collapsed`],setup(e){let t=(0,F.useModel)(e,`collapsed`),n=(0,F.useSlots)(),{t:r}=(0,I.useUiKitI18n)(),i=(0,F.computed)(()=>!!e.title||!!n.title||!!n.actions||e.collapsible),a=(0,F.computed)(()=>!t.value||!e.collapsible||!e.hideContentWhenCollapsed),s=(0,F.computed)(()=>r(t.value?`chartWidget.expand`:`chartWidget.collapse`));return(n,r)=>((0,F.openBlock)(),(0,F.createElementBlock)(`div`,{class:(0,F.normalizeClass)([`s-ui-chart-widget`,{"s-ui-chart-widget--skeleton":e.loading}]),"data-qa":`ui:chart-widget`},[i.value?((0,F.openBlock)(),(0,F.createElementBlock)(`div`,rt,[e.loading?((0,F.openBlock)(),(0,F.createElementBlock)(`span`,it)):((0,F.openBlock)(),(0,F.createElementBlock)(`span`,at,[(0,F.renderSlot)(n.$slots,`title`,{},()=>[(0,F.createTextVNode)((0,F.toDisplayString)(e.title),1)])])),(0,F.createElementVNode)(`div`,ot,[(0,F.renderSlot)(n.$slots,`actions`),e.collapsible?((0,F.openBlock)(),(0,F.createBlock)((0,F.unref)(o.t),{key:0,appearance:(0,F.unref)(o.n).OUTLINED,variant:(0,F.unref)(o.i).NEUTRAL,size:(0,F.unref)(o.r).SMALL,icon:t.value?(0,F.unref)(I.ESIconName).chevronDown:(0,F.unref)(I.ESIconName).chevronUp,"aria-label":s.value,"aria-expanded":!t.value,onClick:r[0]||=e=>t.value=!t.value},null,8,[`appearance`,`variant`,`size`,`icon`,`aria-label`,`aria-expanded`])):(0,F.createCommentVNode)(``,!0)])])):(0,F.createCommentVNode)(``,!0),a.value?((0,F.openBlock)(),(0,F.createElementBlock)(`div`,st,[(0,F.renderSlot)(n.$slots,`default`)])):(0,F.createCommentVNode)(``,!0)],2))}});exports.CALENDAR_WEEK_SLOT_COUNT=N.a,exports.DAY_TIMELINE_MINUTES=N.r,exports.DEFAULT_COLOR_PALETTE=r.i,exports.EAccentColor=r.a,exports.EButtonAppearance=o.n,exports.EButtonGroupLayout=l.i,exports.EButtonSize=o.r,exports.EButtonVariant=o.i,exports.EColorFormat=r.o,exports.EConnectedPositionStrategy=h.r,exports.ENotificationLayout=B,exports.ENotificationLeftside=V,exports.ENotificationType=z,exports.ESAvatarBadge=t.n,exports.ESAvatarColor=t.r,exports.ESAvatarGroupSize=a.n,exports.ESAvatarIconBackground=t.i,exports.ESAvatarShape=t.a,exports.ESAvatarSize=t.o,exports.ESBadgeColor=e.n,exports.ESBadgePlacement=e.r,exports.ESCardLayout=d.n,exports.ESCheckboxColor=u.n,exports.ESCheckboxLabelPlacement=u.r,exports.ESCheckboxSize=u.i,exports.ESChipColor=v.n,exports.ESChipSize=v.r,exports.ESColorPaletteLayout=r.n,exports.ESDropdownBoundary=h.i,exports.ESDropdownPlacement=h.a,exports.ESInlineGroupOrientation=l.r,exports.ESInlineInputAppearance=k.n,exports.ESInlineMessageValidationStatus=S.n,exports.ESInputCustomize=x.n,exports.ESLabelSize=C.n,exports.ESLabelVariant=C.r,exports.ESListGap=E.a,exports.ESListItemVariant=T.n,exports.ESPhotoEditShape=A.n,exports.ESPhotoEditSize=A.r,exports.ESRadioLabelPlacement=D.n,exports.ESSegmentControlSize=f.n,exports.ESSelectSearchable=ee.n,exports.ESTabAppearance=p.n,exports.ESTabSize=p.r,exports.ESTableCellState=P.n,exports.ESTableCheckState=P.r,exports.ESTableColumnAlign=P.i,exports.ESTableColumnSticky=P.a,exports.ESTableDropAction=P.o,exports.ESTableFooterTone=P.s,exports.ESTableRowHeightMode=P.c,exports.ESTableRowKind=P.l,exports.ESTableRowState=P.u,exports.ESTableRowsDragMode=P.d,exports.ESTableSortDirection=P.f,exports.ESTagColor=g.n,exports.ESTagSize=g.r,exports.ESToggleLabelPlacement=O.n,exports.ESToggleSize=O.r,exports.ESelectionFocusMode=s.t,exports.ESelectionMode=s.n,exports.ESelectionOrientation=s.r,exports.EWorkTimeSource=N.c,exports.MAX_RECENT_COLORS=n.i,exports.RECOMMENDED_COLOR_PALETTE=r.r,exports.SAvatar=t.t,exports.SAvatarGroup=a.t,exports.SBadge=e.t,exports.SBanner=De,exports.SButton=o.t,exports.SButtonGroup=l.t,exports.SCalendarMonth=N.l,exports.SCalendarWeekGrid=N.i,exports.SCard=d.t,exports.SChartBar=de.t,exports.SChartBurnup=le.t,exports.SChartHorizontalBar=oe.t,exports.SChartLegend=j.t,exports.SChartLine=ne.t,exports.SChartMultiLine=ce.t,exports.SChartPie=se.t,exports.SChartProgress=fe.t,exports.SChartSegmentedBar=nt,exports.SChartStackedArea=ie.t,exports.SChartStackedBar=ae.t,exports.SChartWidget=ct,exports.SCheckbox=u.t,exports.SChip=v.t,exports.SColorArea=n.r,exports.SColorPalette=r.t,exports.SColorPicker=n.t,exports.SColorValues=n.n,exports.SDayTimeline=N.n,exports.SDropdown=y.t,exports.SDropdownMenu=b.t,exports.SInlineGroup=l.n,exports.SInlineInput=k.t,exports.SInlineMessage=S.t,exports.SInput=x.t,exports.SLabel=C.t,exports.SList=E.t,exports.SListItem=T.t,exports.SPhotoEdit=A.t,exports.SRadio=D.t,exports.SSegmentControl=f.t,exports.SSelect=ee.t,exports.STab=p.t,exports.STable=P.t,exports.STabs=m.t,exports.STag=g.t,exports.STagGroup=_.t,exports.STextarea=te.t,exports.SToast=W,exports.SToastProvider=ze,exports.SToggle=O.t,exports.S_DROPDOWN_SHEET_BREAKPOINT=y.n,exports.TOAST_AUTO_DURATION_MAX_MS=K,exports.TOAST_AUTO_DURATION_MIN_MS=G,exports.TOAST_AUTO_DURATION_MS_PER_CHAR=je,exports.WORK_TIME_SOURCE_COLOR_VARS=N.o,exports.WORK_TIME_SOURCE_ORDER=N.s,exports.buildWorkTimeLegendItems=N.t,exports.computeAutoDuration=q,exports.computeConnectedPosition=h.n,Object.defineProperty(exports,"createUiKit",{enumerable:!0,get:function(){return I.createUiKit}}),exports.formatDurationHM=N.u,exports.isSameColor=i.r,exports.normalizeColorValue=i.i,exports.resolveColorPreview=i.a,exports.resolveOwnPropOrGroupedOrFallback=s.a,Object.defineProperty(exports,"setUiKitLocale",{enumerable:!0,get:function(){return I.setUiKitLocale}}),Object.defineProperty(exports,"uiKitLocaleEn",{enumerable:!0,get:function(){return I.uiKitLocaleEn}}),Object.defineProperty(exports,"uiKitLocaleRu",{enumerable:!0,get:function(){return I.uiKitLocaleRu}}),exports.useFlatTreeList=w.s,exports.useFloatingOverlay=h.t,exports.useSListEndReached=w.a,exports.useSelectionGroup=s.o,exports.useSelectionGroupItem=c.n,exports.useToast=Re,Object.defineProperty(exports,"useUiKitI18n",{enumerable:!0,get:function(){return I.useUiKitI18n}});var lt=require("@shtabapp/ui-kit-tokens");Object.keys(lt).forEach(function(e){e!=="default"&&!Object.prototype.hasOwnProperty.call(exports,e)&&Object.defineProperty(exports,e,{enumerable:!0,get:function(){return lt[e]}})}),Object.keys(I).forEach(function(e){e!=="default"&&!Object.prototype.hasOwnProperty.call(exports,e)&&Object.defineProperty(exports,e,{enumerable:!0,get:function(){return I[e]}})});
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./SBadge-d1GOPFP-.cjs"),t=require("./SAvatar-ClmtSIFg.cjs"),n=require("./SColorPicker-D7mTRL7K.cjs"),r=require("./SColorPalette-CqIA4Qtp.cjs"),i=require("./colorValue-Dda7fKd3.cjs"),a=require("./SAvatarGroup-By8oMNTe.cjs"),o=require("./SButton-CLTNdnCK.cjs"),s=require("./useSelectionGroup-NJvi3hNo.cjs"),c=require("./useSelectLink-DZIAhQ2J.cjs"),l=require("./SButtonGroup-Co1AUbsm.cjs"),u=require("./SCheckbox-DnnC5mOH.cjs"),d=require("./SCard-DKZYyR5b.cjs"),f=require("./SSegmentControl-BaD9BK2s.cjs"),p=require("./STab-C06drUMG.cjs"),m=require("./STabs-n5hMERTK.cjs"),h=require("./useFloatingOverlay-Dp44TxvN.cjs"),g=require("./STag-ZPrc5q4N.cjs"),_=require("./STagGroup-ccEvIkK7.cjs"),v=require("./SChip-Dcvk3JI8.cjs"),y=require("./SDropdown-BdgpPzfl.cjs"),b=require("./SDropdownMenu-k9SxaFVH.cjs"),x=require("./SInput-B4So5LGW.cjs"),S=require("./SInlineMessage-gjkMiE-W.cjs"),C=require("./SLabel-DLKfepRW.cjs"),w=require("./treeKeyboardNavigation-BOz2SVus.cjs"),T=require("./SListItem-BeaflFVf.cjs"),E=require("./SList-CvP0U6U1.cjs"),ee=require("./SSelect-Coyrc99Y.cjs"),D=require("./SRadio-DRo_GU5A.cjs"),O=require("./SToggle-CGd0Mh0R.cjs"),k=require("./SInlineInput-D3vCX4QA.cjs"),te=require("./STextarea-C4qDIp2k.cjs"),A=require("./SPhotoEdit-CShhPLJt.cjs"),j=require("./SChartLegend-DGtjd6zV.cjs"),M=require("./useChartInteractivity-CXSdHPOw.cjs"),ne=require("./SChartLine-nIGaef_o.cjs"),re=require("./resolveSeriesPaletteColor-B5qoBbXN.cjs"),ie=require("./SChartStackedArea-BNe6FAg8.cjs"),ae=require("./SChartStackedBar-D1G-VloG.cjs"),oe=require("./SChartHorizontalBar-Bv90SV6E.cjs"),se=require("./SChartPie-Bv5Obcwb.cjs"),ce=require("./SChartMultiLine-BzoW4ETf.cjs"),le=require("./SChartBurnup-Ch3UMa9w.cjs"),ue=require("./useHasListener-BPgtbbo6.cjs"),de=require("./SChartBar-CBU1uCuL.cjs"),fe=require("./SChartProgress-xxqrj03o.cjs"),N=require("./buildWorkTimeLegendItems-DjhLKbAP.cjs"),P=require("./STable-PkWtyYaP.cjs");let F=require("vue"),I=require("@shtabapp/ui-kit-primitives"),pe=require("@vueuse/core");var L=[`--s-ui-chart-segmented-bar-palette-1`,`--s-ui-chart-segmented-bar-palette-2`,`--s-ui-chart-segmented-bar-palette-3`,`--s-ui-chart-segmented-bar-palette-4`,`--s-ui-chart-segmented-bar-palette-5`,`--s-ui-chart-segmented-bar-palette-6`,`--s-ui-chart-segmented-bar-palette-7`,`--s-ui-chart-segmented-bar-palette-8`],R=[`--s-ui-chart-segmented-bar-skeleton-palette-1`,`--s-ui-chart-segmented-bar-skeleton-palette-2`,`--s-ui-chart-segmented-bar-skeleton-palette-3`,`--s-ui-chart-segmented-bar-skeleton-palette-4`,`--s-ui-chart-segmented-bar-skeleton-palette-5`,`--s-ui-chart-segmented-bar-skeleton-palette-6`,`--s-ui-chart-segmented-bar-skeleton-palette-7`,`--s-ui-chart-segmented-bar-skeleton-palette-8`],me=(e,t,n,r=!1)=>re.t(e,t,n,r,{palette:L,paletteFallback:L[0],skeletonPalette:R,skeletonFallback:R[0]}),z=function(e){return e.INFO_ACCENT=`info-accent`,e.INFO_NORMAL=`info-normal`,e.SUCCESS=`success`,e.WARNING=`warning`,e.DANGER=`danger`,e.BILLING=`billing`,e}({}),B=function(e){return e.HORIZONTAL=`horizontal`,e.VERTICAL=`vertical`,e}({}),V=function(e){return e.ICON=`icon`,e.AVATAR=`avatar`,e}({}),H=function(e){return e.BANNER=`banner`,e.TOAST=`toast`,e}({}),he={[z.INFO_ACCENT]:I.ESIconName.infoCircle,[z.INFO_NORMAL]:I.ESIconName.infoCircle,[z.SUCCESS]:I.ESIconName.checkCircle,[z.WARNING]:I.ESIconName.alertCircle,[z.DANGER]:I.ESIconName.dangerCircleFill,[z.BILLING]:I.ESIconName.infoCircle},ge=(e,t)=>t||he[e],_e=[`role`],ve={class:`s-ui-notification__body`},ye={key:0,class:`s-ui-notification__leftside`},be={key:0,class:`s-ui-notification__icon`},xe={class:`s-ui-notification__content`},Se={class:`s-ui-notification__title-row`},Ce={key:0,class:`s-ui-notification__description-block`},we={key:0,class:`s-ui-notification__description s-ui-typography-label-12-medium`},Te={key:1,class:`s-ui-notification__actions-stack`},Ee={key:1,class:`s-ui-notification__actions-row`},U=(0,F.defineComponent)({__name:`SNotification`,props:{type:{default:()=>z.INFO_ACCENT},layout:{default:()=>B.HORIZONTAL},leftside:{default:()=>V.ICON},surface:{default:()=>H.BANNER},title:{},description:{},linkText:{},linkIconRight:{},primaryButtonText:{},secondaryButtonText:{},showPrimaryButton:{type:Boolean,default:!1},closable:{type:Boolean,default:!0},closeAriaLabel:{default:``},icon:{},avatar:{},width:{},maxWidth:{},truncateTitle:{type:Boolean,default:!1}},emits:[`close`,`linkClick`,`primaryAction`,`secondaryAction`],setup(e,{emit:n}){let r=n,i=(0,F.useSlots)(),a=(0,F.computed)(()=>[`s-ui-notification--type-${e.type}`,`s-ui-notification--layout-${e.layout}`,`s-ui-notification--surface-${e.surface}`]),s=(0,F.computed)(()=>{let t={};return e.width&&(t.width=typeof e.width==`number`?`${e.width}px`:e.width),e.maxWidth&&(t.maxWidth=typeof e.maxWidth==`number`?`${e.maxWidth}px`:e.maxWidth),t}),c=(0,F.computed)(()=>e.type===z.DANGER?`alert`:`status`),l=(0,F.computed)(()=>ge(e.type,e.icon)),u=(0,F.computed)(()=>e.type===z.BILLING),d=(0,F.computed)(()=>!!(e.leftside===V.AVATAR&&e.avatar||e.leftside===V.ICON)),f=(0,F.computed)(()=>!!(e.description||e.linkText||i.description)),p=(0,F.computed)(()=>e.showPrimaryButton&&(e.primaryButtonText||e.secondaryButtonText)),m=(0,F.computed)(()=>e.showPrimaryButton&&e.primaryButtonText||e.closable),h=(0,F.computed)(()=>e.type===z.BILLING?o.n.MAJOR:o.n.OUTLINED),g=(0,F.computed)(()=>e.type===z.BILLING?o.i.BILLING:o.i.MAIN),_=()=>{r(`close`)},v=()=>{r(`linkClick`)},y=()=>{r(`primaryAction`)},b=()=>{r(`secondaryAction`)};return(n,r)=>((0,F.openBlock)(),(0,F.createElementBlock)(`div`,{class:(0,F.normalizeClass)([`s-ui-notification`,a.value]),style:(0,F.normalizeStyle)(s.value),role:c.value},[(0,F.createElementVNode)(`div`,ve,[d.value?((0,F.openBlock)(),(0,F.createElementBlock)(`div`,ye,[e.leftside===(0,F.unref)(V).ICON?((0,F.openBlock)(),(0,F.createElementBlock)(`div`,be,[(0,F.createVNode)((0,F.unref)(I.SIcon),{name:l.value,size:16,billing:u.value},null,8,[`name`,`billing`])])):e.leftside===(0,F.unref)(V).AVATAR&&e.avatar?((0,F.openBlock)(),(0,F.createBlock)((0,F.unref)(t.t),{key:1,name:e.avatar.name,src:e.avatar.src,badge:e.avatar.badge,size:(0,F.unref)(t.o).SIZE_20,showName:!1},null,8,[`name`,`src`,`badge`,`size`])):(0,F.createCommentVNode)(``,!0)])):(0,F.createCommentVNode)(``,!0),(0,F.createElementVNode)(`div`,xe,[(0,F.createElementVNode)(`div`,Se,[(0,F.createElementVNode)(`span`,{class:(0,F.normalizeClass)([`s-ui-notification__title s-ui-typography-label-14-medium`,{"s-ui-notification__title--truncated":e.truncateTitle}])},[(0,F.renderSlot)(n.$slots,`title`,{},()=>[(0,F.createTextVNode)((0,F.toDisplayString)(e.title),1)])],2),e.layout===(0,F.unref)(B).VERTICAL&&e.closable?((0,F.openBlock)(),(0,F.createBlock)((0,F.unref)(o.t),{key:0,class:`s-ui-notification__close`,appearance:(0,F.unref)(o.n).BARE,variant:(0,F.unref)(o.i).NEUTRAL,size:(0,F.unref)(o.r).SMALL,"aria-label":e.closeAriaLabel,icon:`closeMini`,onClick:_},null,8,[`appearance`,`variant`,`size`,`aria-label`])):(0,F.createCommentVNode)(``,!0)]),f.value?((0,F.openBlock)(),(0,F.createElementBlock)(`div`,Ce,[e.description||(0,F.unref)(i).description?((0,F.openBlock)(),(0,F.createElementBlock)(`span`,we,[(0,F.renderSlot)(n.$slots,`description`,{},()=>[(0,F.createTextVNode)((0,F.toDisplayString)(e.description),1)])])):(0,F.createCommentVNode)(``,!0),e.linkText?((0,F.openBlock)(),(0,F.createBlock)((0,F.unref)(o.t),{key:1,class:`s-ui-notification__link`,appearance:(0,F.unref)(o.n).BARE,variant:(0,F.unref)(o.i).MAIN,size:(0,F.unref)(o.r).SMALL,iconRight:e.linkIconRight,onClick:v},{default:(0,F.withCtx)(()=>[(0,F.createTextVNode)((0,F.toDisplayString)(e.linkText),1)]),_:1},8,[`appearance`,`variant`,`size`,`iconRight`])):(0,F.createCommentVNode)(``,!0)])):(0,F.createCommentVNode)(``,!0),e.layout===(0,F.unref)(B).VERTICAL&&p.value?((0,F.openBlock)(),(0,F.createElementBlock)(`div`,Te,[e.showPrimaryButton&&e.primaryButtonText?((0,F.openBlock)(),(0,F.createBlock)((0,F.unref)(o.t),{key:0,appearance:h.value,variant:g.value,size:(0,F.unref)(o.r).SMALL,onClick:y},{default:(0,F.withCtx)(()=>[(0,F.createTextVNode)((0,F.toDisplayString)(e.primaryButtonText),1)]),_:1},8,[`appearance`,`variant`,`size`])):(0,F.createCommentVNode)(``,!0),e.showPrimaryButton&&e.secondaryButtonText?((0,F.openBlock)(),(0,F.createBlock)((0,F.unref)(o.t),{key:1,appearance:(0,F.unref)(o.n).BARE,variant:(0,F.unref)(o.i).NEUTRAL,size:(0,F.unref)(o.r).SMALL,onClick:b},{default:(0,F.withCtx)(()=>[(0,F.createTextVNode)((0,F.toDisplayString)(e.secondaryButtonText),1)]),_:1},8,[`appearance`,`variant`,`size`])):(0,F.createCommentVNode)(``,!0)])):(0,F.createCommentVNode)(``,!0)]),e.layout===(0,F.unref)(B).HORIZONTAL&&m.value?((0,F.openBlock)(),(0,F.createElementBlock)(`div`,Ee,[e.showPrimaryButton&&e.primaryButtonText?((0,F.openBlock)(),(0,F.createBlock)((0,F.unref)(o.t),{key:0,appearance:h.value,variant:g.value,size:(0,F.unref)(o.r).SMALL,onClick:y},{default:(0,F.withCtx)(()=>[(0,F.createTextVNode)((0,F.toDisplayString)(e.primaryButtonText),1)]),_:1},8,[`appearance`,`variant`,`size`])):(0,F.createCommentVNode)(``,!0),e.layout===(0,F.unref)(B).HORIZONTAL&&e.closable?((0,F.openBlock)(),(0,F.createBlock)((0,F.unref)(o.t),{key:1,class:`s-ui-notification__close`,appearance:(0,F.unref)(o.n).BARE,variant:(0,F.unref)(o.i).NEUTRAL,size:(0,F.unref)(o.r).SMALL,"aria-label":e.closeAriaLabel,icon:`closeMini`,onClick:_},null,8,[`appearance`,`variant`,`size`,`aria-label`])):(0,F.createCommentVNode)(``,!0)])):(0,F.createCommentVNode)(``,!0)])],14,_e))}}),De=(0,F.defineComponent)({__name:`SBanner`,props:{type:{default:()=>z.INFO_ACCENT},layout:{default:()=>B.HORIZONTAL},leftside:{default:()=>V.ICON},elevated:{type:Boolean,default:!1},title:{},description:{},linkText:{},linkIconRight:{},primaryButtonText:{},secondaryButtonText:{},showPrimaryButton:{type:Boolean,default:!1},closable:{type:Boolean,default:!0},closeAriaLabel:{default:``},icon:{},avatar:{},maxWidth:{},truncateTitle:{type:Boolean,default:!1}},emits:[`close`,`linkClick`,`primaryAction`,`secondaryAction`],setup(e,{emit:t}){let n=t,r=(0,F.useSlots)(),i=(0,F.computed)(()=>({"s-ui-banner--elevated":e.elevated}));return(t,a)=>((0,F.openBlock)(),(0,F.createBlock)(U,{class:(0,F.normalizeClass)([`s-ui-banner`,i.value]),"data-qa":`ui:banner`,type:e.type,layout:e.layout,leftside:e.leftside,surface:(0,F.unref)(H).BANNER,title:e.title,description:e.description,linkText:e.linkText,linkIconRight:e.linkIconRight,primaryButtonText:e.primaryButtonText,secondaryButtonText:e.secondaryButtonText,showPrimaryButton:e.showPrimaryButton,closable:e.closable,closeAriaLabel:e.closeAriaLabel,icon:e.icon,avatar:e.avatar,maxWidth:e.maxWidth,truncateTitle:e.truncateTitle,onClose:a[0]||=e=>n(`close`),onLinkClick:a[1]||=e=>n(`linkClick`),onPrimaryAction:a[2]||=e=>n(`primaryAction`),onSecondaryAction:a[3]||=e=>n(`secondaryAction`)},(0,F.createSlots)({_:2},[(0,F.unref)(r).title?{name:`title`,fn:(0,F.withCtx)(()=>[(0,F.renderSlot)(t.$slots,`title`)]),key:`0`}:void 0,(0,F.unref)(r).description?{name:`description`,fn:(0,F.withCtx)(()=>[(0,F.renderSlot)(t.$slots,`description`)]),key:`1`}:void 0]),1032,[`class`,`type`,`layout`,`leftside`,`surface`,`title`,`description`,`linkText`,`linkIconRight`,`primaryButtonText`,`secondaryButtonText`,`showPrimaryButton`,`closable`,`closeAriaLabel`,`icon`,`avatar`,`maxWidth`,`truncateTitle`]))}}),W=(0,F.defineComponent)({__name:`SToast`,props:{type:{default:()=>z.INFO_ACCENT},layout:{default:()=>B.HORIZONTAL},leftside:{default:()=>V.ICON},title:{},description:{},linkText:{},primaryButtonText:{},secondaryButtonText:{},showPrimaryButton:{type:Boolean,default:!1},closable:{type:Boolean,default:!0},closeAriaLabel:{default:``},icon:{},avatar:{},width:{},truncateTitle:{type:Boolean,default:!1}},emits:[`close`,`linkClick`,`primaryAction`,`secondaryAction`],setup(e,{emit:t}){let n=t,r=(0,F.useSlots)(),i=(0,F.computed)(()=>e.width??360);return(t,a)=>((0,F.openBlock)(),(0,F.createBlock)(U,{class:`s-ui-toast`,"data-qa":`ui:toast`,type:e.type,layout:e.layout,leftside:e.leftside,surface:(0,F.unref)(H).TOAST,title:e.title,description:e.description,linkText:e.linkText,primaryButtonText:e.primaryButtonText,secondaryButtonText:e.secondaryButtonText,showPrimaryButton:e.showPrimaryButton,closable:e.closable,closeAriaLabel:e.closeAriaLabel,icon:e.icon,avatar:e.avatar,width:i.value,truncateTitle:e.truncateTitle,onClose:a[0]||=e=>n(`close`),onLinkClick:a[1]||=e=>n(`linkClick`),onPrimaryAction:a[2]||=e=>n(`primaryAction`),onSecondaryAction:a[3]||=e=>n(`secondaryAction`)},(0,F.createSlots)({_:2},[(0,F.unref)(r).title?{name:`title`,fn:(0,F.withCtx)(()=>[(0,F.renderSlot)(t.$slots,`title`)]),key:`0`}:void 0,(0,F.unref)(r).description?{name:`description`,fn:(0,F.withCtx)(()=>[(0,F.renderSlot)(t.$slots,`description`)]),key:`1`}:void 0]),1032,[`type`,`layout`,`leftside`,`surface`,`title`,`description`,`linkText`,`primaryButtonText`,`secondaryButtonText`,`showPrimaryButton`,`closable`,`closeAriaLabel`,`icon`,`avatar`,`width`,`truncateTitle`]))}}),Oe=.05,ke=[`data-mounted`,`data-front`,`data-expanded`,`data-removed`,`data-visible`],Ae=(0,F.defineComponent)({__name:`SToastProviderToast`,props:{index:{},expanded:{type:Boolean},frontToastHeight:{},stackPeek:{},removed:{type:Boolean},visible:{type:Boolean},offsetY:{}},emits:[`heightChange`],setup(e,{emit:t}){let n=t,r=(0,F.ref)(null),i=(0,F.ref)(0),a=(0,F.ref)(!1),o=(0,F.computed)(()=>e.index===0),s=(0,F.computed)(()=>1-e.index*Oe),c=(0,F.computed)(()=>({"--s-ui-toast-provider-toasts-before":String(e.index),"--s-ui-toast-provider-lift-amount":`${e.stackPeek*-1}px`,"--s-ui-toast-provider-front-toast-height":`${e.frontToastHeight}px`,"--s-ui-toast-provider-offset-y":`${e.offsetY}px`,"--s-ui-toast-provider-initial-height":`${i.value}px`,"--s-ui-toast-provider-stack-scale":String(s.value),zIndex:String(1e3-e.index)}));return(0,pe.useResizeObserver)(r,e=>{let t=e[0]?.contentRect.height??0;t!==i.value&&(i.value=t,n(`heightChange`,t))}),(0,F.onMounted)(()=>{requestAnimationFrame(()=>{requestAnimationFrame(()=>{a.value=!0})})}),(t,n)=>((0,F.openBlock)(),(0,F.createElementBlock)(`div`,{class:`s-ui-toast-provider__toast`,"data-mounted":a.value,"data-front":o.value,"data-expanded":e.expanded,"data-removed":e.removed,"data-visible":e.visible,style:(0,F.normalizeStyle)(c.value)},[(0,F.createElementVNode)(`div`,{ref_key:`contentRef`,ref:r,class:`s-ui-toast-provider__toast-content`},[(0,F.renderSlot)(t.$slots,`default`)],512)],12,ke))}}),G=4e3,K=1e4,je=50,q=(e,t)=>{let n=G+(e.length+(t?.length??0))*50;return n>1e4?K:n},J=(0,F.shallowRef)([]),Y=new Map,Me=0,Ne={type:z.INFO_ACCENT,layout:B.HORIZONTAL,leftside:V.ICON,showPrimaryButton:!1,closable:!0},Pe=()=>`toast-${Date.now()}-${++Me}`,X=e=>{let t=Y.get(e);t&&(window.clearTimeout(t),Y.delete(e))},Z=e=>{X(e.id);let t=e.duration===void 0?q(e.title,e.description):e.duration;if(t>0){let n=window.setTimeout(()=>{Q(e.id)},t);Y.set(e.id,n)}},Q=e=>{let t=J.value.findIndex(t=>t.id===e);if(t===-1)return;let n=J.value[t];n&&(X(e),n.onClose&&n.onClose(),J.value=J.value.filter(t=>t.id!==e))},Fe=()=>{Y.forEach(e=>window.clearTimeout(e)),Y.clear(),J.value=[]},$=e=>e.length<=3?e:(e.slice(3).forEach(e=>{X(e.id)}),e.slice(0,3)),Ie=e=>{let t=e.id??Pe(),n={...Ne,...e,id:t},r=J.value.findIndex(e=>e.id===t);if(r>-1){let e=[...J.value];e[r]=n,J.value=$(e)}else J.value=$([n,...J.value]);return Z(n),t},Le=(e,t)=>{let n=J.value.findIndex(t=>t.id===e);if(n===-1)return;let r=J.value[n];if(!r)return;let i={...r,...t,id:r.id},a=[...J.value];a[n]=i,J.value=a,Z(i)},Re=()=>({toasts:J,show:Ie,hide:Q,hideAll:Fe,update:Le}),ze=(0,F.defineComponent)({__name:`SToastProvider`,setup(e){let{toasts:t,hide:n}=Re(),r=(0,F.computed)(()=>t.value.slice(0,3)),i=(0,F.ref)(!1),a=(0,F.shallowRef)({}),o=(0,F.ref)(new Set),s=(0,F.computed)(()=>t.value[0]??null),c=(0,F.computed)(()=>s.value?a.value[s.value.id]??0:0),l=(0,F.ref)(0),u=(0,F.computed)(()=>c.value>0?c.value:l.value);(0,F.watch)(c,e=>{e>0&&(l.value=e)});let d=(0,F.computed)(()=>{if(r.value.length===0)return{};if(i.value)return{height:`${r.value.reduce((e,t,n)=>{let r=a.value[t.id]??0,i=n>0?4:0;return e+r+i},0)}px`};let e=Math.min(r.value.length-1,2)*10;return{height:`${u.value+e}px`}}),f=e=>{let t=0;for(let n=0;n<e;n+=1){let e=r.value[n];e&&(t+=(a.value[e.id]??0)+4)}return t},p=e=>o.value.has(e),m=()=>{r.value.length>1&&(i.value=!0)},h=()=>{i.value=!1},g=(e,t)=>{a.value={...a.value,[e]:t}},_=e=>{o.value.has(e)||(o.value=new Set([...o.value,e]),window.setTimeout(()=>{n(e);let t=new Set(o.value);t.delete(e),o.value=t;let r={...a.value};delete r[e],a.value=r},200))},v=e=>{e.onLinkClick&&e.onLinkClick()},y=e=>{e.onPrimaryAction&&e.onPrimaryAction(e.id)},b=e=>{e.onSecondaryAction&&e.onSecondaryAction()};return(e,t)=>((0,F.openBlock)(),(0,F.createBlock)(F.Teleport,{to:`body`},[(0,F.createElementVNode)(`div`,{class:`s-ui-toast-provider`,onMouseenter:m,onMouseleave:h},[r.value.length>0?((0,F.openBlock)(),(0,F.createElementBlock)(`div`,{key:0,class:`s-ui-toast-provider__list`,style:(0,F.normalizeStyle)(d.value)},[((0,F.openBlock)(!0),(0,F.createElementBlock)(F.Fragment,null,(0,F.renderList)(r.value,(t,n)=>((0,F.openBlock)(),(0,F.createBlock)(Ae,{key:t.id,index:n,expanded:i.value,"front-toast-height":u.value,"stack-peek":(0,F.unref)(10),removed:p(t.id),visible:n<(0,F.unref)(3),"offset-y":f(n),onHeightChange:e=>g(t.id,e)},{default:(0,F.withCtx)(()=>[(0,F.renderSlot)(e.$slots,`toast`,{toast:t},()=>[t.component?((0,F.openBlock)(),(0,F.createBlock)((0,F.resolveDynamicComponent)(t.component),(0,F.mergeProps)({key:0,ref_for:!0},t.componentProps,{toast:t,onClose:e=>_(t.id)}),null,16,[`toast`,`onClose`])):((0,F.openBlock)(),(0,F.createBlock)((0,F.unref)(W),{key:1,type:t.type,layout:t.layout,leftside:t.leftside,title:t.title,description:t.description,linkText:t.linkText,primaryButtonText:t.primaryButtonText,secondaryButtonText:t.secondaryButtonText,showPrimaryButton:t.showPrimaryButton,closable:t.closable,closeAriaLabel:t.closeAriaLabel,icon:t.icon,avatar:t.avatar,width:t.width,truncateTitle:t.truncateTitle,onClose:e=>_(t.id),onLinkClick:e=>v(t),onPrimaryAction:e=>y(t),onSecondaryAction:e=>b(t)},null,8,[`type`,`layout`,`leftside`,`title`,`description`,`linkText`,`primaryButtonText`,`secondaryButtonText`,`showPrimaryButton`,`closable`,`closeAriaLabel`,`icon`,`avatar`,`width`,`truncateTitle`,`onClose`,`onLinkClick`,`onPrimaryAction`,`onSecondaryAction`]))])]),_:2},1032,[`index`,`expanded`,`front-toast-height`,`stack-peek`,`removed`,`visible`,`offset-y`,`onHeightChange`]))),128))],4)):(0,F.createCommentVNode)(``,!0)],32)]))}}),Be=4,Ve=4,He=1,Ue=`400 12px var(--s-ui-font-family-label)`,We=4,Ge=(e,t,n,r,i,a)=>{let o=Math.min(a,r/2,i/2);e.beginPath(),e.moveTo(t+o,n),e.lineTo(t+r-o,n),e.arcTo(t+r,n,t+r,n+o,o),e.lineTo(t+r,n+i-o),e.arcTo(t+r,n+i,t+r-o,n+i,o),e.lineTo(t+o,n+i),e.arcTo(t,n+i,t,n+i-o,o),e.lineTo(t,n+o),e.arcTo(t,n,t+o,n,o),e.closePath()},Ke=e=>{let t=e.getProps([`x`,`y`,`base`],!0),n=Number(t.x),r=Number(t.y),i=Number(t.base);return!Number.isFinite(n)||!Number.isFinite(r)||!Number.isFinite(i)?null:{left:Math.min(i,n),width:Math.abs(n-i),centerY:r}},qe=(e,t,n,r)=>{let i=Ke(t);if(!i)return;let a=`${n}`,o=e.measureText(a).width+Be*2;if(i.width<o+We*2)return;let s=i.left+i.width/2;Ge(e,s-o/2,i.centerY-20/2,o,20,Ve),e.fillStyle=r.background,e.fill(),e.lineWidth=He,e.strokeStyle=r.border,e.stroke(),e.fillStyle=r.text,e.fillText(a,s,i.centerY)},Je=e=>({id:`segmentedBarBadge`,afterDatasetsDraw(t){let n={background:M.S(M.g.pieBadgeBackground,e),border:M.S(M.g.pieBadgeBorder,e),text:M.S(M.g.pieBadgeText,e)},{ctx:r}=t;r.save(),r.font=Ue,r.textAlign=`center`,r.textBaseline=`middle`,t.data.datasets.forEach((e,i)=>{let a=t.getDatasetMeta(i)?.data[0],o=e.data[0];a&&typeof o==`number`&&o>0&&qe(r,a,o,n)}),r.restore()}}),Ye=40,Xe=4,Ze=1,Qe=[`mousemove`,`mouseout`,`click`,`touchstart`,`touchmove`],$e=({segments:e,segmentColors:t,colorHostElement:n,skeleton:r=!1,onSegmentClick:i})=>{if(e.length===0)return null;let a=M.S(`--s-ui-color-surface-primary`,n),o=e.reduce((e,t)=>e+t.value,0),s=M.r({kind:`series`,skeleton:r,colorHostElement:n,onIndexClick:i});return{type:`bar`,data:{labels:[``],datasets:e.map((e,n)=>({label:e.label,data:[e.value],backgroundColor:t[n],hoverBackgroundColor:t[n],borderColor:a,borderWidth:{left:Ze,right:Ze},borderSkipped:!1,borderRadius:Xe,barThickness:Ye,stack:`track`}))},options:{indexAxis:`y`,responsive:!0,maintainAspectRatio:!1,layout:{padding:0},events:r?[]:Qe,onHover:s.onHover,onClick:s.onClick,hover:r?void 0:{mode:`nearest`,intersect:!0},elements:r?void 0:{bar:{hoverBorderColor:a}},plugins:{legend:{display:!1},tooltip:{enabled:!1}},scales:{x:{display:!1,stacked:!0,min:0,max:o},y:{display:!1,stacked:!0}}},plugins:[...r?[]:[Je(n)],...s.plugins]}},et=[4,1,2,1,3,1,2,1].map((e,t)=>({label:`Series ${t+1}`,value:e})),tt={class:`s-ui-chart-segmented-bar__canvas-wrap`},nt=(0,F.defineComponent)({__name:`SChartSegmentedBar`,props:{segments:{default:()=>[]},showLegend:{type:Boolean,default:!0},loading:{type:Boolean,default:!1}},emits:[`segmentClick`],setup(e,{expose:t,emit:n}){let r=n,i=M.w,a=(0,F.useTemplateRef)(`chartRootRef`),o=(0,F.useTemplateRef)(`chartCanvasRef`),s=(0,F.computed)(()=>e.loading?et:e.segments),c=(0,F.computed)(()=>s.value.map((t,n)=>me(n,a.value,t.fillColor,e.loading))),l=(0,F.computed)(()=>s.value.map((e,t)=>({segment:e,segmentIndex:t})).filter(({segment:e})=>e.value>0)),u=(0,F.computed)(()=>l.value.map(({segment:e})=>e)),d=(0,F.computed)(()=>l.value.map(({segmentIndex:e})=>c.value[e]??``)),f=(0,F.computed)(()=>{let e=new Map;return l.value.forEach(({segmentIndex:t},n)=>{e.set(t,n)}),e}),p=e=>{let t=l.value[e];t&&r(`segmentClick`,t.segmentIndex,t.segment)},m=ue.t(`onSegmentClick`),h=(0,F.computed)(()=>$e({segments:u.value,segmentColors:d.value,colorHostElement:a.value,skeleton:e.loading,onSegmentClick:m()?p:void 0})),g=(0,F.computed)(()=>s.value.map((e,t)=>({label:e.label,color:c.value[t]??``}))),{chartInstance:_}=M.n({canvasRef:o,config:h,enabled:(0,F.computed)(()=>e.loading||u.value.length>0)}),{exportImage:v,handleLegendItemHover:y}=M.t({chartInstance:_,canvasRef:o,colorHostElement:a}),b=e=>{y(e===null?null:f.value.get(e)??null)};return t({exportImage:v}),(t,n)=>((0,F.openBlock)(),(0,F.createElementBlock)(`div`,{ref_key:`chartRootRef`,ref:a,class:(0,F.normalizeClass)([`s-ui-chart-segmented-bar`,{"s-ui-chart-segmented-bar--skeleton":e.loading}]),"data-qa":`ui:chart-segmented-bar`},[(0,F.createElementVNode)(`div`,tt,[(0,F.createVNode)((0,F.unref)(M.C),{loading:e.loading,type:(0,F.unref)(i).CARTESIAN},{default:(0,F.withCtx)(()=>[(0,F.createElementVNode)(`canvas`,{ref_key:`chartCanvasRef`,ref:o,class:`s-ui-chart-segmented-bar__canvas`},null,512)]),_:1},8,[`loading`,`type`])]),e.showLegend&&g.value.length?((0,F.openBlock)(),(0,F.createBlock)((0,F.unref)(j.t),{key:0,items:g.value,disabled:e.loading,interactive:!e.loading,onItemHover:b},null,8,[`items`,`disabled`,`interactive`])):(0,F.createCommentVNode)(``,!0)],2))}}),rt={key:0,class:`s-ui-chart-widget__header`},it={key:0,class:`s-ui-chart-widget__title-skeleton`,"aria-hidden":`true`},at={key:1,class:`s-ui-chart-widget__title s-ui-typography-label-16-medium`},ot={class:`s-ui-chart-widget__controls`},st={key:1,class:`s-ui-chart-widget__content`},ct=(0,F.defineComponent)({__name:`SChartWidget`,props:(0,F.mergeModels)({title:{default:``},collapsible:{type:Boolean,default:!1},hideContentWhenCollapsed:{type:Boolean,default:!0},loading:{type:Boolean,default:!1}},{collapsed:{type:Boolean,default:!1},collapsedModifiers:{}}),emits:[`update:collapsed`],setup(e){let t=(0,F.useModel)(e,`collapsed`),n=(0,F.useSlots)(),{t:r}=(0,I.useUiKitI18n)(),i=(0,F.computed)(()=>!!e.title||!!n.title||!!n.actions||e.collapsible),a=(0,F.computed)(()=>!t.value||!e.collapsible||!e.hideContentWhenCollapsed),s=(0,F.computed)(()=>r(t.value?`chartWidget.expand`:`chartWidget.collapse`));return(n,r)=>((0,F.openBlock)(),(0,F.createElementBlock)(`div`,{class:(0,F.normalizeClass)([`s-ui-chart-widget`,{"s-ui-chart-widget--skeleton":e.loading}]),"data-qa":`ui:chart-widget`},[i.value?((0,F.openBlock)(),(0,F.createElementBlock)(`div`,rt,[e.loading?((0,F.openBlock)(),(0,F.createElementBlock)(`span`,it)):((0,F.openBlock)(),(0,F.createElementBlock)(`span`,at,[(0,F.renderSlot)(n.$slots,`title`,{},()=>[(0,F.createTextVNode)((0,F.toDisplayString)(e.title),1)])])),(0,F.createElementVNode)(`div`,ot,[(0,F.renderSlot)(n.$slots,`actions`),e.collapsible?((0,F.openBlock)(),(0,F.createBlock)((0,F.unref)(o.t),{key:0,appearance:(0,F.unref)(o.n).OUTLINED,variant:(0,F.unref)(o.i).NEUTRAL,size:(0,F.unref)(o.r).SMALL,icon:t.value?(0,F.unref)(I.ESIconName).chevronDown:(0,F.unref)(I.ESIconName).chevronUp,"aria-label":s.value,"aria-expanded":!t.value,onClick:r[0]||=e=>t.value=!t.value},null,8,[`appearance`,`variant`,`size`,`icon`,`aria-label`,`aria-expanded`])):(0,F.createCommentVNode)(``,!0)])])):(0,F.createCommentVNode)(``,!0),a.value?((0,F.openBlock)(),(0,F.createElementBlock)(`div`,st,[(0,F.renderSlot)(n.$slots,`default`)])):(0,F.createCommentVNode)(``,!0)],2))}});exports.CALENDAR_WEEK_SLOT_COUNT=N.a,exports.DAY_TIMELINE_MINUTES=N.r,exports.DEFAULT_COLOR_PALETTE=r.i,exports.EAccentColor=r.a,exports.EButtonAppearance=o.n,exports.EButtonGroupLayout=l.i,exports.EButtonSize=o.r,exports.EButtonVariant=o.i,exports.EColorFormat=r.o,exports.EConnectedPositionStrategy=h.r,exports.ENotificationLayout=B,exports.ENotificationLeftside=V,exports.ENotificationType=z,exports.ESAvatarBadge=t.n,exports.ESAvatarColor=t.r,exports.ESAvatarGroupSize=a.n,exports.ESAvatarIconBackground=t.i,exports.ESAvatarShape=t.a,exports.ESAvatarSize=t.o,exports.ESBadgeColor=e.n,exports.ESBadgePlacement=e.r,exports.ESCardLayout=d.n,exports.ESCheckboxColor=u.n,exports.ESCheckboxLabelPlacement=u.r,exports.ESCheckboxSize=u.i,exports.ESChipColor=v.n,exports.ESChipSize=v.r,exports.ESColorPaletteLayout=r.n,exports.ESDropdownBoundary=h.i,exports.ESDropdownPlacement=h.a,exports.ESInlineGroupOrientation=l.r,exports.ESInlineInputAppearance=k.n,exports.ESInlineMessageValidationStatus=S.n,exports.ESInputCustomize=x.n,exports.ESLabelSize=C.n,exports.ESLabelVariant=C.r,exports.ESListGap=E.a,exports.ESListItemVariant=T.n,exports.ESPhotoEditShape=A.n,exports.ESPhotoEditSize=A.r,exports.ESRadioLabelPlacement=D.n,exports.ESSegmentControlSize=f.n,exports.ESSelectSearchable=ee.n,exports.ESTabAppearance=p.n,exports.ESTabSize=p.r,exports.ESTableCellState=P.n,exports.ESTableCheckState=P.r,exports.ESTableColumnAlign=P.i,exports.ESTableColumnSticky=P.a,exports.ESTableDropAction=P.o,exports.ESTableFooterTone=P.s,exports.ESTableRowHeightMode=P.c,exports.ESTableRowKind=P.l,exports.ESTableRowState=P.u,exports.ESTableRowsDragMode=P.d,exports.ESTableSortDirection=P.f,exports.ESTagColor=g.n,exports.ESTagSize=g.r,exports.ESToggleLabelPlacement=O.n,exports.ESToggleSize=O.r,exports.ESelectionFocusMode=s.t,exports.ESelectionMode=s.n,exports.ESelectionOrientation=s.r,exports.EWorkTimeSource=N.c,exports.MAX_RECENT_COLORS=n.i,exports.RECOMMENDED_COLOR_PALETTE=r.r,exports.SAvatar=t.t,exports.SAvatarGroup=a.t,exports.SBadge=e.t,exports.SBanner=De,exports.SButton=o.t,exports.SButtonGroup=l.t,exports.SCalendarMonth=N.l,exports.SCalendarWeekGrid=N.i,exports.SCard=d.t,exports.SChartBar=de.t,exports.SChartBurnup=le.t,exports.SChartHorizontalBar=oe.t,exports.SChartLegend=j.t,exports.SChartLine=ne.t,exports.SChartMultiLine=ce.t,exports.SChartPie=se.t,exports.SChartProgress=fe.t,exports.SChartSegmentedBar=nt,exports.SChartStackedArea=ie.t,exports.SChartStackedBar=ae.t,exports.SChartWidget=ct,exports.SCheckbox=u.t,exports.SChip=v.t,exports.SColorArea=n.r,exports.SColorPalette=r.t,exports.SColorPicker=n.t,exports.SColorValues=n.n,exports.SDayTimeline=N.n,exports.SDropdown=y.t,exports.SDropdownMenu=b.t,exports.SInlineGroup=l.n,exports.SInlineInput=k.t,exports.SInlineMessage=S.t,exports.SInput=x.t,exports.SLabel=C.t,exports.SList=E.t,exports.SListItem=T.t,exports.SPhotoEdit=A.t,exports.SRadio=D.t,exports.SSegmentControl=f.t,exports.SSelect=ee.t,exports.STab=p.t,exports.STable=P.t,exports.STabs=m.t,exports.STag=g.t,exports.STagGroup=_.t,exports.STextarea=te.t,exports.SToast=W,exports.SToastProvider=ze,exports.SToggle=O.t,exports.S_DROPDOWN_SHEET_BREAKPOINT=y.n,exports.TOAST_AUTO_DURATION_MAX_MS=K,exports.TOAST_AUTO_DURATION_MIN_MS=G,exports.TOAST_AUTO_DURATION_MS_PER_CHAR=je,exports.WORK_TIME_SOURCE_COLOR_VARS=N.o,exports.WORK_TIME_SOURCE_ORDER=N.s,exports.buildWorkTimeLegendItems=N.t,exports.computeAutoDuration=q,exports.computeConnectedPosition=h.n,Object.defineProperty(exports,"createUiKit",{enumerable:!0,get:function(){return I.createUiKit}}),exports.formatDurationHM=N.u,exports.isSameColor=i.r,exports.normalizeColorValue=i.i,exports.resolveColorPreview=i.a,exports.resolveOwnPropOrGroupedOrFallback=s.a,Object.defineProperty(exports,"setUiKitLocale",{enumerable:!0,get:function(){return I.setUiKitLocale}}),Object.defineProperty(exports,"uiKitLocaleEn",{enumerable:!0,get:function(){return I.uiKitLocaleEn}}),Object.defineProperty(exports,"uiKitLocaleRu",{enumerable:!0,get:function(){return I.uiKitLocaleRu}}),exports.useFlatTreeList=w.s,exports.useFloatingOverlay=h.t,exports.useSListEndReached=w.a,exports.useSelectionGroup=s.o,exports.useSelectionGroupItem=c.n,exports.useToast=Re,Object.defineProperty(exports,"useUiKitI18n",{enumerable:!0,get:function(){return I.useUiKitI18n}});var lt=require("@shtabapp/ui-kit-tokens");Object.keys(lt).forEach(function(e){e!=="default"&&!Object.prototype.hasOwnProperty.call(exports,e)&&Object.defineProperty(exports,e,{enumerable:!0,get:function(){return lt[e]}})}),Object.keys(I).forEach(function(e){e!=="default"&&!Object.prototype.hasOwnProperty.call(exports,e)&&Object.defineProperty(exports,e,{enumerable:!0,get:function(){return I[e]}})});
|