bitboss-ui 0.1.71 → 0.1.73

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.
Files changed (96) hide show
  1. package/dist/components/BbChip/BbChip.vue.d.ts +1 -1
  2. package/dist/index106.js +2 -2
  3. package/dist/index110.js +14 -11
  4. package/dist/index110.js.map +1 -1
  5. package/dist/index111.js +1 -1
  6. package/dist/index113.js +1 -1
  7. package/dist/index116.js +1 -1
  8. package/dist/index118.js +1 -1
  9. package/dist/index119.js +1 -1
  10. package/dist/index12.js +2 -2
  11. package/dist/index120.js +1 -1
  12. package/dist/index14.js +8 -8
  13. package/dist/index16.js +3 -3
  14. package/dist/index18.js +2 -2
  15. package/dist/index186.js +2 -2
  16. package/dist/index186.js.map +1 -1
  17. package/dist/index189.js +3 -2
  18. package/dist/index189.js.map +1 -1
  19. package/dist/index190.js +33 -348
  20. package/dist/index190.js.map +1 -1
  21. package/dist/index191.js +6 -134
  22. package/dist/index191.js.map +1 -1
  23. package/dist/index192.js +2 -5
  24. package/dist/index192.js.map +1 -1
  25. package/dist/index193.js +348 -17
  26. package/dist/index193.js.map +1 -1
  27. package/dist/index194.js +2 -2
  28. package/dist/index194.js.map +1 -1
  29. package/dist/index196.js +321 -176
  30. package/dist/index196.js.map +1 -1
  31. package/dist/index197.js +134 -23
  32. package/dist/index197.js.map +1 -1
  33. package/dist/index198.js +5 -331
  34. package/dist/index198.js.map +1 -1
  35. package/dist/index199.js +19 -3
  36. package/dist/index199.js.map +1 -1
  37. package/dist/index20.js +1 -1
  38. package/dist/index200.js +2 -35
  39. package/dist/index200.js.map +1 -1
  40. package/dist/index201.js +186 -6
  41. package/dist/index201.js.map +1 -1
  42. package/dist/index202.js +23 -3
  43. package/dist/index202.js.map +1 -1
  44. package/dist/index203.js +3 -3
  45. package/dist/index203.js.map +1 -1
  46. package/dist/index204.js +3 -235
  47. package/dist/index204.js.map +1 -1
  48. package/dist/index205.js +1 -1
  49. package/dist/index206.js +1 -1
  50. package/dist/index207.js +1 -1
  51. package/dist/index208.js +1 -1
  52. package/dist/index210.js +2 -2
  53. package/dist/index210.js.map +1 -1
  54. package/dist/index211.js +235 -2
  55. package/dist/index211.js.map +1 -1
  56. package/dist/index213.js +2 -2
  57. package/dist/index214.js +1 -1
  58. package/dist/index216.js +1 -1
  59. package/dist/index218.js +10 -5
  60. package/dist/index218.js.map +1 -1
  61. package/dist/index219.js +435 -2
  62. package/dist/index219.js.map +1 -1
  63. package/dist/index220.js +8 -294
  64. package/dist/index220.js.map +1 -1
  65. package/dist/index221.js +89 -2
  66. package/dist/index221.js.map +1 -1
  67. package/dist/index222.js +200 -2
  68. package/dist/index222.js.map +1 -1
  69. package/dist/index227.js +2 -11
  70. package/dist/index227.js.map +1 -1
  71. package/dist/index228.js +5 -434
  72. package/dist/index228.js.map +1 -1
  73. package/dist/index229.js +2 -9
  74. package/dist/index229.js.map +1 -1
  75. package/dist/index230.js +294 -88
  76. package/dist/index230.js.map +1 -1
  77. package/dist/index231.js +2 -2
  78. package/dist/index231.js.map +1 -1
  79. package/dist/index232.js +2 -224
  80. package/dist/index232.js.map +1 -1
  81. package/dist/index233.js +19 -53
  82. package/dist/index233.js.map +1 -1
  83. package/dist/index234.js +258 -200
  84. package/dist/index234.js.map +1 -1
  85. package/dist/index243.js +1 -1
  86. package/dist/index26.js +2 -2
  87. package/dist/index28.js +4 -4
  88. package/dist/index30.js +1 -1
  89. package/dist/index62.js +3 -3
  90. package/dist/index69.js +1 -1
  91. package/dist/index72.js +1 -1
  92. package/dist/index76.js +3 -3
  93. package/dist/index78.js +1 -1
  94. package/dist/index98.js +2 -2
  95. package/dist/style.css +1 -1
  96. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  import type { CommonProps } from '../../types/CommonProps';
2
- export type BbChipProps = Pick<CommonProps, 'text'> & {
2
+ export type BbChipProps = Pick<CommonProps, "text"> & {
3
3
  /**
4
4
  * Renders a button with a close icon. Used to indicate the possibility of deleting the item.
5
5
  */
package/dist/index106.js CHANGED
@@ -4,8 +4,8 @@ import { useId as j } from "./index118.js";
4
4
  import { wait as C } from "./index117.js";
5
5
  import q from "./index6.js";
6
6
  import "./index7.js";
7
- import { autoUpdate as A } from "./index190.js";
8
- import { flip as G, shift as J } from "./index198.js";
7
+ import { autoUpdate as A } from "./index193.js";
8
+ import { flip as G, shift as J } from "./index196.js";
9
9
  const K = /* @__PURE__ */ l("span", { class: "bb-tooltip__arrow" }, null, -1), Q = { class: "bb-tooltip__bubble" }, W = /* @__PURE__ */ l("svg", {
10
10
  viewBox: "0 0 24 24",
11
11
  fill: "none",
package/dist/index110.js CHANGED
@@ -1,14 +1,17 @@
1
- import { defineComponent as c, openBlock as t, createElementBlock as o, createElementVNode as a, renderSlot as i, createTextVNode as r, toDisplayString as p, withModifiers as _, createCommentVNode as d } from "vue";
1
+ import { defineComponent as c, openBlock as t, createElementBlock as o, createElementVNode as l, renderSlot as i, createTextVNode as r, toDisplayString as p, withModifiers as _, createCommentVNode as d } from "vue";
2
2
  const b = { class: "bb-chip" }, h = { class: "bb-chip__content" }, m = ["aria-label", "onClick"], L = {
3
3
  xmlns: "http://www.w3.org/2000/svg",
4
- viewBox: "0 0 24 24",
4
+ viewBox: "0 0 20 20",
5
5
  role: "img",
6
6
  "aria-hidden": "true",
7
7
  class: "v-icon__svg",
8
- style: { "font-size": "18px", height: "18px", width: "18px" }
9
- }, u = /* @__PURE__ */ a("path", { d: "M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z" }, null, -1), C = [
8
+ style: { height: "20px", width: "20px" }
9
+ }, u = /* @__PURE__ */ l("path", {
10
+ d: "M15 6.375L14.125 5.5L10 9.625L5.875 5.5L5 6.375L9.125 10.5L5 14.625L5.875 15.5L10 11.375L14.125 15.5L15 14.625L10.875 10.5L15 6.375Z",
11
+ fill: "currentColor"
12
+ }, null, -1), f = [
10
13
  u
11
- ], w = /* @__PURE__ */ c({
14
+ ], C = /* @__PURE__ */ c({
12
15
  __name: "BbChip",
13
16
  props: {
14
17
  text: {},
@@ -16,12 +19,12 @@ const b = { class: "bb-chip" }, h = { class: "bb-chip__content" }, m = ["aria-la
16
19
  clearableLabel: { default: "Elimina" }
17
20
  },
18
21
  emits: ["click:clear"],
19
- setup(f, { emit: l }) {
20
- const s = l, n = (e) => {
22
+ setup(g, { emit: a }) {
23
+ const s = a, n = (e) => {
21
24
  s("click:clear", e);
22
25
  };
23
- return (e, g) => (t(), o("span", b, [
24
- a("span", h, [
26
+ return (e, k) => (t(), o("span", b, [
27
+ l("span", h, [
25
28
  i(e.$slots, "default", {}, () => [
26
29
  r(p(e.text), 1)
27
30
  ])
@@ -33,12 +36,12 @@ const b = { class: "bb-chip" }, h = { class: "bb-chip__content" }, m = ["aria-la
33
36
  onClick: _(n, ["stop", "prevent"]),
34
37
  type: "button"
35
38
  }, [
36
- (t(), o("svg", L, C))
39
+ (t(), o("svg", L, f))
37
40
  ], 8, m)) : d("", !0)
38
41
  ]));
39
42
  }
40
43
  });
41
44
  export {
42
- w as default
45
+ C as default
43
46
  };
44
47
  //# sourceMappingURL=index110.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index110.js","sources":["../src/components/BbChip/BbChip.vue?vue&type=script&setup=true&lang.ts"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { renderSlot as _renderSlot, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, withModifiers as _withModifiers, createCommentVNode as _createCommentVNode } from \"vue\"\n\nconst _hoisted_1 = { class: \"bb-chip\" }\nconst _hoisted_2 = { class: \"bb-chip__content\" }\nconst _hoisted_3 = [\"aria-label\", \"onClick\"]\nconst _hoisted_4 = {\n xmlns: \"http://www.w3.org/2000/svg\",\n viewBox: \"0 0 24 24\",\n role: \"img\",\n \"aria-hidden\": \"true\",\n class: \"v-icon__svg\",\n style: {\"font-size\":\"18px\",\"height\":\"18px\",\"width\":\"18px\"}\n}\nconst _hoisted_5 = /*#__PURE__*/_createElementVNode(\"path\", { d: \"M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z\" }, null, -1)\nconst _hoisted_6 = [\n _hoisted_5\n]\n\nimport type { CommonProps } from '@/types/CommonProps';\n\nexport type BbChipProps = Pick<CommonProps, 'text'> & {\n /**\n * Renders a button with a close icon. Used to indicate the possibility of deleting the item.\n */\n clearable?: true;\n /**\n * The label the clearing button must have\n */\n clearableLabel: string\n}\n\nexport type BbChipEvents = {\n (e: \"click:clear\", event: MouseEvent): void;\n}\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'BbChip',\n props: {\n text: {},\n clearable: { type: Boolean },\n clearableLabel: { default: 'Elimina' }\n },\n emits: [\"click:clear\"],\n setup(__props: any, { emit: __emit }) {\n\n\n\n\n\nconst emit = __emit;\nconst onClear = (event: MouseEvent) =>{\n emit(\"click:clear\", event)\n};\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"span\", _hoisted_1, [\n _createElementVNode(\"span\", _hoisted_2, [\n _renderSlot(_ctx.$slots, \"default\", {}, () => [\n _createTextVNode(_toDisplayString(_ctx.text), 1)\n ])\n ]),\n (_ctx.clearable)\n ? (_openBlock(), _createElementBlock(\"button\", {\n key: 0,\n \"aria-label\": _ctx.clearableLabel,\n class: \"bb-chip__clear-button\",\n onClick: _withModifiers(onClear, [\"stop\",\"prevent\"]),\n type: \"button\"\n }, [\n (_openBlock(), _createElementBlock(\"svg\", _hoisted_4, _hoisted_6))\n ], 8, _hoisted_3))\n : _createCommentVNode(\"\", true)\n ]))\n}\n}\n\n})"],"names":["_hoisted_1","_hoisted_2","_hoisted_3","_hoisted_4","_hoisted_5","_hoisted_6","_sfc_main","_defineComponent","__props","__emit","emit","onClear","event","_ctx","_cache","_openBlock","_createElementBlock","_createElementVNode","_renderSlot","_createTextVNode","_toDisplayString","_withModifiers","_createCommentVNode"],"mappings":";AAGA,MAAMA,IAAa,EAAE,OAAO,aACtBC,IAAa,EAAE,OAAO,sBACtBC,IAAa,CAAC,cAAc,SAAS,GACrCC,IAAa;AAAA,EACjB,OAAO;AAAA,EACP,SAAS;AAAA,EACT,MAAM;AAAA,EACN,eAAe;AAAA,EACf,OAAO;AAAA,EACP,OAAO,EAAC,aAAY,QAAO,QAAS,QAAO,OAAQ,OAAM;AAC3D,GACMC,sBAA8C,QAAQ,EAAE,GAAG,8MAA8M,MAAM,EAAE,GACjRC,IAAa;AAAA,EACjBD;AACF,GAoB4BE,IAAiBC,gBAAAA,EAAA;AAAA,EAC3C,QAAQ;AAAA,EACR,OAAO;AAAA,IACL,MAAM,CAAC;AAAA,IACP,WAAW,EAAE,MAAM,QAAQ;AAAA,IAC3B,gBAAgB,EAAE,SAAS,UAAU;AAAA,EACvC;AAAA,EACA,OAAO,CAAC,aAAa;AAAA,EACrB,MAAMC,GAAc,EAAE,MAAMC,KAAU;AAMxC,UAAMC,IAAOD,GACPE,IAAU,CAACC,MAAqB;AACpC,MAAAF,EAAK,eAAeE,CAAK;AAAA,IAAA;AAGpB,WAAA,CAACC,GAAUC,OACRC,EAAW,GAAGC,EAAoB,QAAQhB,GAAY;AAAA,MAC5DiB,EAAoB,QAAQhB,GAAY;AAAA,QACtCiB,EAAYL,EAAK,QAAQ,WAAW,IAAI,MAAM;AAAA,UAC5CM,EAAiBC,EAAiBP,EAAK,IAAI,GAAG,CAAC;AAAA,QAAA,CAChD;AAAA,MAAA,CACF;AAAA,MACAA,EAAK,aACDE,KAAcC,EAAoB,UAAU;AAAA,QAC3C,KAAK;AAAA,QACL,cAAcH,EAAK;AAAA,QACnB,OAAO;AAAA,QACP,SAASQ,EAAeV,GAAS,CAAC,QAAO,SAAS,CAAC;AAAA,QACnD,MAAM;AAAA,MAAA,GACL;AAAA,SACAI,EAAW,GAAGC,EAAoB,OAAOb,GAAYE,CAAU;AAAA,SAC/D,GAAGH,CAAU,KAChBoB,EAAoB,IAAI,EAAI;AAAA,IAAA,CACjC;AAAA,EAEH;AAEA,CAAC;"}
1
+ {"version":3,"file":"index110.js","sources":["../src/components/BbChip/BbChip.vue?vue&type=script&setup=true&lang.ts"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { renderSlot as _renderSlot, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, withModifiers as _withModifiers, createCommentVNode as _createCommentVNode } from \"vue\"\n\nconst _hoisted_1 = { class: \"bb-chip\" }\nconst _hoisted_2 = { class: \"bb-chip__content\" }\nconst _hoisted_3 = [\"aria-label\", \"onClick\"]\nconst _hoisted_4 = {\n xmlns: \"http://www.w3.org/2000/svg\",\n viewBox: \"0 0 20 20\",\n role: \"img\",\n \"aria-hidden\": \"true\",\n class: \"v-icon__svg\",\n style: {\"height\":\"20px\",\"width\":\"20px\"}\n}\nconst _hoisted_5 = /*#__PURE__*/_createElementVNode(\"path\", {\n d: \"M15 6.375L14.125 5.5L10 9.625L5.875 5.5L5 6.375L9.125 10.5L5 14.625L5.875 15.5L10 11.375L14.125 15.5L15 14.625L10.875 10.5L15 6.375Z\",\n fill: \"currentColor\"\n}, null, -1)\nconst _hoisted_6 = [\n _hoisted_5\n]\n\nimport type { CommonProps } from \"@/types/CommonProps\";\n\nexport type BbChipProps = Pick<CommonProps, \"text\"> & {\n /**\n * Renders a button with a close icon. Used to indicate the possibility of deleting the item.\n */\n clearable?: true;\n /**\n * The label the clearing button must have\n */\n clearableLabel: string;\n};\n\nexport type BbChipEvents = {\n (e: \"click:clear\", event: MouseEvent): void;\n};\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'BbChip',\n props: {\n text: {},\n clearable: { type: Boolean },\n clearableLabel: { default: \"Elimina\" }\n },\n emits: [\"click:clear\"],\n setup(__props: any, { emit: __emit }) {\n\n\n\n\n\nconst emit = __emit;\nconst onClear = (event: MouseEvent) => {\n emit(\"click:clear\", event);\n};\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"span\", _hoisted_1, [\n _createElementVNode(\"span\", _hoisted_2, [\n _renderSlot(_ctx.$slots, \"default\", {}, () => [\n _createTextVNode(_toDisplayString(_ctx.text), 1)\n ])\n ]),\n (_ctx.clearable)\n ? (_openBlock(), _createElementBlock(\"button\", {\n key: 0,\n \"aria-label\": _ctx.clearableLabel,\n class: \"bb-chip__clear-button\",\n onClick: _withModifiers(onClear, [\"stop\",\"prevent\"]),\n type: \"button\"\n }, [\n (_openBlock(), _createElementBlock(\"svg\", _hoisted_4, _hoisted_6))\n ], 8, _hoisted_3))\n : _createCommentVNode(\"\", true)\n ]))\n}\n}\n\n})"],"names":["_hoisted_1","_hoisted_2","_hoisted_3","_hoisted_4","_hoisted_5","_hoisted_6","_sfc_main","_defineComponent","__props","__emit","emit","onClear","event","_ctx","_cache","_openBlock","_createElementBlock","_createElementVNode","_renderSlot","_createTextVNode","_toDisplayString","_withModifiers","_createCommentVNode"],"mappings":";AAGA,MAAMA,IAAa,EAAE,OAAO,aACtBC,IAAa,EAAE,OAAO,sBACtBC,IAAa,CAAC,cAAc,SAAS,GACrCC,IAAa;AAAA,EACjB,OAAO;AAAA,EACP,SAAS;AAAA,EACT,MAAM;AAAA,EACN,eAAe;AAAA,EACf,OAAO;AAAA,EACP,OAAO,EAAC,QAAS,QAAO,OAAQ,OAAM;AACxC,GACMC,sBAA8C,QAAQ;AAAA,EAC1D,GAAG;AAAA,EACH,MAAM;AACR,GAAG,MAAM,EAAE,GACLC,IAAa;AAAA,EACjBD;AACF,GAoB4BE,IAAiBC,gBAAAA,EAAA;AAAA,EAC3C,QAAQ;AAAA,EACR,OAAO;AAAA,IACL,MAAM,CAAC;AAAA,IACP,WAAW,EAAE,MAAM,QAAQ;AAAA,IAC3B,gBAAgB,EAAE,SAAS,UAAU;AAAA,EACvC;AAAA,EACA,OAAO,CAAC,aAAa;AAAA,EACrB,MAAMC,GAAc,EAAE,MAAMC,KAAU;AAMxC,UAAMC,IAAOD,GACPE,IAAU,CAACC,MAAsB;AACrC,MAAAF,EAAK,eAAeE,CAAK;AAAA,IAAA;AAGpB,WAAA,CAACC,GAAUC,OACRC,EAAW,GAAGC,EAAoB,QAAQhB,GAAY;AAAA,MAC5DiB,EAAoB,QAAQhB,GAAY;AAAA,QACtCiB,EAAYL,EAAK,QAAQ,WAAW,IAAI,MAAM;AAAA,UAC5CM,EAAiBC,EAAiBP,EAAK,IAAI,GAAG,CAAC;AAAA,QAAA,CAChD;AAAA,MAAA,CACF;AAAA,MACAA,EAAK,aACDE,KAAcC,EAAoB,UAAU;AAAA,QAC3C,KAAK;AAAA,QACL,cAAcH,EAAK;AAAA,QACnB,OAAO;AAAA,QACP,SAASQ,EAAeV,GAAS,CAAC,QAAO,SAAS,CAAC;AAAA,QACnD,MAAM;AAAA,MAAA,GACL;AAAA,SACAI,EAAW,GAAGC,EAAoB,OAAOb,GAAYE,CAAU;AAAA,SAC/D,GAAGH,CAAU,KAChBoB,EAAoB,IAAI,EAAI;AAAA,IAAA,CACjC;AAAA,EAEH;AAEA,CAAC;"}
package/dist/index111.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as i, ref as a, watch as s, computed as u, openBlock as c, createElementBlock as p, normalizeProps as d, guardReactiveProps as m, createElementVNode as b, renderSlot as v, createCommentVNode as f } from "vue";
2
2
  import { wait as V } from "./index117.js";
3
- import { throttle as _ } from "./index199.js";
3
+ import { throttle as _ } from "./index189.js";
4
4
  const h = { class: "bb-collapsible__content" }, k = /* @__PURE__ */ i({
5
5
  __name: "BbCollapsible",
6
6
  props: {
package/dist/index113.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as v, ref as r, onMounted as p, onBeforeUnmount as h, openBlock as i, createBlock as l, resolveDynamicComponent as u, normalizeStyle as m, withCtx as f, renderSlot as d } from "vue";
2
- import { throttle as g } from "./index199.js";
2
+ import { throttle as g } from "./index189.js";
3
3
  const O = /* @__PURE__ */ v({
4
4
  __name: "BbSmoothHeight",
5
5
  props: {
package/dist/index116.js CHANGED
@@ -1,4 +1,4 @@
1
- import { clamp as o } from "./index189.js";
1
+ import { clamp as o } from "./index186.js";
2
2
  const r = (t, e) => t * 100 / e, p = (t, e) => t / 100 * e, l = (t, e, n) => r(t - e, n - e), P = ({
3
3
  value: t = 0,
4
4
  originalBounds: e,
package/dist/index118.js CHANGED
@@ -1,4 +1,4 @@
1
- import { nanoid as e } from "./index186.js";
1
+ import { nanoid as e } from "./index192.js";
2
2
  import { ref as o } from "vue";
3
3
  const f = () => {
4
4
  const r = o(e());
package/dist/index119.js CHANGED
@@ -1,4 +1,4 @@
1
- import t from "./index204.js";
1
+ import t from "./index211.js";
2
2
  const o = () => ({
3
3
  getItemText(i, n) {
4
4
  if (typeof i == "string" && !n)
package/dist/index12.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as de, ref as k, computed as h, watch as ue, openBlock as d, createElementBlock as u, mergeProps as ce, createElementVNode as i, createTextVNode as be, toDisplayString as f, unref as p, withDirectives as L, createVNode as g, Transition as V, withCtx as w, vShow as z, createCommentVNode as A, normalizeClass as x, Fragment as O, renderList as S, renderSlot as R, nextTick as me } from "vue";
2
- import c from "./index192.js";
2
+ import c from "./index198.js";
3
3
  import fe from "./index205.js";
4
4
  import pe from "./index206.js";
5
- import he from "./index193.js";
5
+ import he from "./index199.js";
6
6
  import ye from "./index207.js";
7
7
  import _e from "./index208.js";
8
8
  import { groupBy as W } from "./index209.js";
package/dist/index120.js CHANGED
@@ -1,4 +1,4 @@
1
- import e from "./index204.js";
1
+ import e from "./index211.js";
2
2
  const r = () => ({
3
3
  getItemValue(o, f) {
4
4
  if (typeof o == "object" && o) {
package/dist/index14.js CHANGED
@@ -1,17 +1,17 @@
1
1
  import { defineComponent as R, ref as l, computed as Y, watch as J, onMounted as Q, onBeforeUnmount as X, openBlock as B, createElementBlock as Z, normalizeClass as C, renderSlot as u, createElementVNode as g, withDirectives as x, mergeProps as T, unref as d, toDisplayString as ee, createBlock as ae, Teleport as te, createVNode as ne, createSlots as oe, renderList as le, withCtx as ie, normalizeProps as re, guardReactiveProps as se } from "vue";
2
- import { autoUpdate as ue, computePosition as de } from "./index190.js";
3
- import ce from "./index191.js";
4
- import c from "./index192.js";
5
- import fe from "./index193.js";
6
- import { identity as pe } from "./index194.js";
2
+ import { autoUpdate as ue, computePosition as de } from "./index193.js";
3
+ import ce from "./index197.js";
4
+ import c from "./index198.js";
5
+ import fe from "./index199.js";
6
+ import { identity as pe } from "./index200.js";
7
7
  import { last as me } from "./index195.js";
8
- import { vMaska as be } from "./index196.js";
8
+ import { vMaska as be } from "./index201.js";
9
9
  import { wait as I } from "./index117.js";
10
10
  import ve from "./index12.js";
11
11
  import "./index13.js";
12
- import O from "./index197.js";
12
+ import O from "./index202.js";
13
13
  import { useId as ye } from "./index118.js";
14
- import { offset as ge, flip as he, shift as ke } from "./index198.js";
14
+ import { offset as ge, flip as he, shift as ke } from "./index196.js";
15
15
  const we = ["autocomplete", "autofocus", "data-maska", "disabled", "id", "name", "placeholder", "readonly", "value", "aria-describedby"], Ee = ["id"], Pe = /* @__PURE__ */ R({
16
16
  __name: "BaseDatePickerInput",
17
17
  props: {
package/dist/index16.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import { defineComponent as J, ref as o, useAttrs as Q, computed as m, onMounted as A, onBeforeUnmount as X, watch as Y, nextTick as E, openBlock as y, createBlock as Z, Teleport as ee, createElementVNode as l, mergeProps as H, createElementBlock as V, renderSlot as i, createTextVNode as te, toDisplayString as D, createCommentVNode as M } from "vue";
2
- import { throttle as oe } from "./index199.js";
3
- import { useFocusTrap as le } from "./index200.js";
2
+ import { throttle as oe } from "./index189.js";
3
+ import { useFocusTrap as le } from "./index190.js";
4
4
  import { useId as N } from "./index118.js";
5
5
  import { wait as W } from "./index117.js";
6
- import { waitFor as ae } from "./index201.js";
6
+ import { waitFor as ae } from "./index191.js";
7
7
  const se = { class: "bb-base-dialog-close" }, ne = { class: "bb-base-dialog-close__content" }, ie = { class: "bb-base-dialog-close__label" }, re = /* @__PURE__ */ l("span", { class: "bb-base-dialog-close__icon" }, [
8
8
  /* @__PURE__ */ l("svg", {
9
9
  viewBox: "0 0 24 24",
package/dist/index18.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as $, computed as n, openBlock as i, createElementBlock as b, createBlock as h, resolveDynamicComponent as v, normalizeProps as o, guardReactiveProps as l, withCtx as c, renderSlot as _, createTextVNode as A, toDisplayString as g, createElementVNode as E, unref as z, createVNode as S, Fragment as T, renderList as V } from "vue";
2
- import { deburr as N } from "./index202.js";
2
+ import { deburr as N } from "./index203.js";
3
3
  import { getAsPercentage as P } from "./index116.js";
4
- import { snakeCase as D } from "./index203.js";
4
+ import { snakeCase as D } from "./index204.js";
5
5
  import { useId as I } from "./index118.js";
6
6
  import F from "./index113.js";
7
7
  import "./index174.js";
package/dist/index186.js CHANGED
@@ -1,5 +1,5 @@
1
- let o = (n = 21) => crypto.getRandomValues(new Uint8Array(n)).reduce((r, e) => (e &= 63, e < 36 ? r += e.toString(36) : e < 62 ? r += (e - 26).toString(36).toUpperCase() : e > 62 ? r += "-" : r += "_", r), "");
1
+ const n = (t, a, m) => Math.min(Math.max(t, a), m);
2
2
  export {
3
- o as nanoid
3
+ n as clamp
4
4
  };
5
5
  //# sourceMappingURL=index186.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index186.js","sources":["../node_modules/nanoid/index.browser.js"],"sourcesContent":["export { urlAlphabet } from './url-alphabet/index.js'\nexport let random = bytes => crypto.getRandomValues(new Uint8Array(bytes))\nexport let customRandom = (alphabet, defaultSize, getRandom) => {\n let mask = (2 << (Math.log(alphabet.length - 1) / Math.LN2)) - 1\n let step = -~((1.6 * mask * defaultSize) / alphabet.length)\n return (size = defaultSize) => {\n let id = ''\n while (true) {\n let bytes = getRandom(step)\n let j = step\n while (j--) {\n id += alphabet[bytes[j] & mask] || ''\n if (id.length === size) return id\n }\n }\n }\n}\nexport let customAlphabet = (alphabet, size = 21) =>\n customRandom(alphabet, size, random)\nexport let nanoid = (size = 21) =>\n crypto.getRandomValues(new Uint8Array(size)).reduce((id, byte) => {\n byte &= 63\n if (byte < 36) {\n id += byte.toString(36)\n } else if (byte < 62) {\n id += (byte - 26).toString(36).toUpperCase()\n } else if (byte > 62) {\n id += '-'\n } else {\n id += '_'\n }\n return id\n }, '')\n"],"names":["nanoid","size","id","byte"],"mappings":"AAmBU,IAACA,IAAS,CAACC,IAAO,OAC1B,OAAO,gBAAgB,IAAI,WAAWA,CAAI,CAAC,EAAE,OAAO,CAACC,GAAIC,OACvDA,KAAQ,IACJA,IAAO,KACTD,KAAMC,EAAK,SAAS,EAAE,IACbA,IAAO,KAChBD,MAAOC,IAAO,IAAI,SAAS,EAAE,EAAE,YAAa,IACnCA,IAAO,KAChBD,KAAM,MAENA,KAAM,KAEDA,IACN,EAAE;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index186.js","sources":["../src/utilities/functions/clamp.ts"],"sourcesContent":["/**\n * Returns value ensuring it doesn't go below min and exceed max.\n * EXAMPLE: clamp(5, 7, 20) === 7\n * @param value The value to clamp\n * @param min Minimum bound\n * @param max Maximum bound\n * @returns \n */\n\nexport const clamp = (value: number, min: number, max: number) => {\n return Math.min(Math.max(value, min), max);\n};\n"],"names":["clamp","value","min","max"],"mappings":"AASO,MAAMA,IAAQ,CAACC,GAAeC,GAAaC,MACzC,KAAK,IAAI,KAAK,IAAIF,GAAOC,CAAG,GAAGC,CAAG;"}
package/dist/index189.js CHANGED
@@ -1,5 +1,6 @@
1
- const n = (t, a, m) => Math.min(Math.max(t, a), m);
1
+ import t from "./index221.js";
2
+ const r = t;
2
3
  export {
3
- n as clamp
4
+ r as throttle
4
5
  };
5
6
  //# sourceMappingURL=index189.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index189.js","sources":["../src/utilities/functions/clamp.ts"],"sourcesContent":["/**\n * Returns value ensuring it doesn't go below min and exceed max.\n * EXAMPLE: clamp(5, 7, 20) === 7\n * @param value The value to clamp\n * @param min Minimum bound\n * @param max Maximum bound\n * @returns \n */\n\nexport const clamp = (value: number, min: number, max: number) => {\n return Math.min(Math.max(value, min), max);\n};\n"],"names":["clamp","value","min","max"],"mappings":"AASO,MAAMA,IAAQ,CAACC,GAAeC,GAAaC,MACzC,KAAK,IAAI,KAAK,IAAIF,GAAOC,CAAG,GAAGC,CAAG;"}
1
+ {"version":3,"file":"index189.js","sources":["../src/utilities/functions/throttle.ts"],"sourcesContent":["import t from \"lodash.throttle\";\n\nexport const throttle = t;"],"names":["throttle"],"mappings":";AAEO,MAAMA,IAAW;"}
package/dist/index190.js CHANGED
@@ -1,353 +1,38 @@
1
- import { computePosition as Z } from "./index198.js";
2
- import { detectOverflow as Ct, flip as Et, offset as Ot, shift as Tt } from "./index198.js";
3
- import { createCoords as x, rectToClientRect as U, round as A, max as T, min as H, floor as B } from "./index223.js";
4
- import { getOverflowAncestors as I, isElement as y, getWindow as E, getComputedStyle as m, getDocumentElement as b, isHTMLElement as v, isWebKit as _, getNodeName as F, isOverflowElement as z, getNodeScroll as N, isTableElement as P, isContainingBlock as K, getContainingBlock as tt, getParentNode as V, isLastTraversableNode as X } from "./index224.js";
5
- function j(t) {
6
- const e = m(t);
7
- let o = parseFloat(e.width) || 0, i = parseFloat(e.height) || 0;
8
- const n = v(t), c = n ? t.offsetWidth : o, s = n ? t.offsetHeight : i, r = A(o) !== c || A(i) !== s;
9
- return r && (o = c, i = s), {
10
- width: o,
11
- height: i,
12
- $: r
1
+ import { unrefElement as m } from "./index218.js";
2
+ import { ref as u, watch as l } from "vue";
3
+ import { createFocusTrap as d } from "./index219.js";
4
+ import { tryOnScopeDispose as D } from "./index220.js";
5
+ function O(i, a = {}) {
6
+ let e;
7
+ const { immediate: f, ...n } = a, c = u(!1), s = u(!1), o = (t) => e && e.activate(t), r = (t) => e && e.deactivate(t), v = () => {
8
+ e && (e.pause(), s.value = !0);
9
+ }, p = () => {
10
+ e && (e.unpause(), s.value = !1);
11
+ };
12
+ return l(
13
+ () => m(i),
14
+ (t) => {
15
+ t && (e = d(t, {
16
+ ...n,
17
+ onActivate() {
18
+ c.value = !0, a.onActivate && a.onActivate();
19
+ },
20
+ onDeactivate() {
21
+ c.value = !1, a.onDeactivate && a.onDeactivate();
22
+ }
23
+ }), f && o());
24
+ },
25
+ { flush: "post" }
26
+ ), D(() => r()), {
27
+ hasFocus: c,
28
+ isPaused: s,
29
+ activate: o,
30
+ deactivate: r,
31
+ pause: v,
32
+ unpause: p
13
33
  };
14
34
  }
15
- function M(t) {
16
- return y(t) ? t : t.contextElement;
17
- }
18
- function L(t) {
19
- const e = M(t);
20
- if (!v(e))
21
- return x(1);
22
- const o = e.getBoundingClientRect(), {
23
- width: i,
24
- height: n,
25
- $: c
26
- } = j(e);
27
- let s = (c ? A(o.width) : o.width) / i, r = (c ? A(o.height) : o.height) / n;
28
- return (!s || !Number.isFinite(s)) && (s = 1), (!r || !Number.isFinite(r)) && (r = 1), {
29
- x: s,
30
- y: r
31
- };
32
- }
33
- const et = /* @__PURE__ */ x(0);
34
- function G(t) {
35
- const e = E(t);
36
- return !_() || !e.visualViewport ? et : {
37
- x: e.visualViewport.offsetLeft,
38
- y: e.visualViewport.offsetTop
39
- };
40
- }
41
- function ot(t, e, o) {
42
- return e === void 0 && (e = !1), !o || e && o !== E(t) ? !1 : e;
43
- }
44
- function O(t, e, o, i) {
45
- e === void 0 && (e = !1), o === void 0 && (o = !1);
46
- const n = t.getBoundingClientRect(), c = M(t);
47
- let s = x(1);
48
- e && (i ? y(i) && (s = L(i)) : s = L(t));
49
- const r = ot(c, o, i) ? G(c) : x(0);
50
- let l = (n.left + r.x) / s.x, f = (n.top + r.y) / s.y, p = n.width / s.x, d = n.height / s.y;
51
- if (c) {
52
- const w = E(c), a = i && y(i) ? E(i) : i;
53
- let g = w.frameElement;
54
- for (; g && i && a !== w; ) {
55
- const h = L(g), R = g.getBoundingClientRect(), u = m(g), C = R.left + (g.clientLeft + parseFloat(u.paddingLeft)) * h.x, W = R.top + (g.clientTop + parseFloat(u.paddingTop)) * h.y;
56
- l *= h.x, f *= h.y, p *= h.x, d *= h.y, l += C, f += W, g = E(g).frameElement;
57
- }
58
- }
59
- return U({
60
- width: p,
61
- height: d,
62
- x: l,
63
- y: f
64
- });
65
- }
66
- function it(t) {
67
- let {
68
- rect: e,
69
- offsetParent: o,
70
- strategy: i
71
- } = t;
72
- const n = v(o), c = b(o);
73
- if (o === c)
74
- return e;
75
- let s = {
76
- scrollLeft: 0,
77
- scrollTop: 0
78
- }, r = x(1);
79
- const l = x(0);
80
- if ((n || !n && i !== "fixed") && ((F(o) !== "body" || z(c)) && (s = N(o)), v(o))) {
81
- const f = O(o);
82
- r = L(o), l.x = f.x + o.clientLeft, l.y = f.y + o.clientTop;
83
- }
84
- return {
85
- width: e.width * r.x,
86
- height: e.height * r.y,
87
- x: e.x * r.x - s.scrollLeft * r.x + l.x,
88
- y: e.y * r.y - s.scrollTop * r.y + l.y
89
- };
90
- }
91
- function nt(t) {
92
- return Array.from(t.getClientRects());
93
- }
94
- function J(t) {
95
- return O(b(t)).left + N(t).scrollLeft;
96
- }
97
- function st(t) {
98
- const e = b(t), o = N(t), i = t.ownerDocument.body, n = T(e.scrollWidth, e.clientWidth, i.scrollWidth, i.clientWidth), c = T(e.scrollHeight, e.clientHeight, i.scrollHeight, i.clientHeight);
99
- let s = -o.scrollLeft + J(t);
100
- const r = -o.scrollTop;
101
- return m(i).direction === "rtl" && (s += T(e.clientWidth, i.clientWidth) - n), {
102
- width: n,
103
- height: c,
104
- x: s,
105
- y: r
106
- };
107
- }
108
- function rt(t, e) {
109
- const o = E(t), i = b(t), n = o.visualViewport;
110
- let c = i.clientWidth, s = i.clientHeight, r = 0, l = 0;
111
- if (n) {
112
- c = n.width, s = n.height;
113
- const f = _();
114
- (!f || f && e === "fixed") && (r = n.offsetLeft, l = n.offsetTop);
115
- }
116
- return {
117
- width: c,
118
- height: s,
119
- x: r,
120
- y: l
121
- };
122
- }
123
- function ct(t, e) {
124
- const o = O(t, !0, e === "fixed"), i = o.top + t.clientTop, n = o.left + t.clientLeft, c = v(t) ? L(t) : x(1), s = t.clientWidth * c.x, r = t.clientHeight * c.y, l = n * c.x, f = i * c.y;
125
- return {
126
- width: s,
127
- height: r,
128
- x: l,
129
- y: f
130
- };
131
- }
132
- function k(t, e, o) {
133
- let i;
134
- if (e === "viewport")
135
- i = rt(t, o);
136
- else if (e === "document")
137
- i = st(b(t));
138
- else if (y(e))
139
- i = ct(e, o);
140
- else {
141
- const n = G(t);
142
- i = {
143
- ...e,
144
- x: e.x - n.x,
145
- y: e.y - n.y
146
- };
147
- }
148
- return U(i);
149
- }
150
- function Q(t, e) {
151
- const o = V(t);
152
- return o === e || !y(o) || X(o) ? !1 : m(o).position === "fixed" || Q(o, e);
153
- }
154
- function lt(t, e) {
155
- const o = e.get(t);
156
- if (o)
157
- return o;
158
- let i = I(t, [], !1).filter((r) => y(r) && F(r) !== "body"), n = null;
159
- const c = m(t).position === "fixed";
160
- let s = c ? V(t) : t;
161
- for (; y(s) && !X(s); ) {
162
- const r = m(s), l = K(s);
163
- !l && r.position === "fixed" && (n = null), (c ? !l && !n : !l && r.position === "static" && !!n && ["absolute", "fixed"].includes(n.position) || z(s) && !l && Q(t, s)) ? i = i.filter((p) => p !== s) : n = r, s = V(s);
164
- }
165
- return e.set(t, i), i;
166
- }
167
- function ft(t) {
168
- let {
169
- element: e,
170
- boundary: o,
171
- rootBoundary: i,
172
- strategy: n
173
- } = t;
174
- const s = [...o === "clippingAncestors" ? lt(e, this._c) : [].concat(o), i], r = s[0], l = s.reduce((f, p) => {
175
- const d = k(e, p, n);
176
- return f.top = T(d.top, f.top), f.right = H(d.right, f.right), f.bottom = H(d.bottom, f.bottom), f.left = T(d.left, f.left), f;
177
- }, k(e, r, n));
178
- return {
179
- width: l.right - l.left,
180
- height: l.bottom - l.top,
181
- x: l.left,
182
- y: l.top
183
- };
184
- }
185
- function ut(t) {
186
- return j(t);
187
- }
188
- function ht(t, e, o) {
189
- const i = v(e), n = b(e), c = o === "fixed", s = O(t, !0, c, e);
190
- let r = {
191
- scrollLeft: 0,
192
- scrollTop: 0
193
- };
194
- const l = x(0);
195
- if (i || !i && !c)
196
- if ((F(e) !== "body" || z(n)) && (r = N(e)), i) {
197
- const f = O(e, !0, c, e);
198
- l.x = f.x + e.clientLeft, l.y = f.y + e.clientTop;
199
- } else
200
- n && (l.x = J(n));
201
- return {
202
- x: s.left + r.scrollLeft - l.x,
203
- y: s.top + r.scrollTop - l.y,
204
- width: s.width,
205
- height: s.height
206
- };
207
- }
208
- function q(t, e) {
209
- return !v(t) || m(t).position === "fixed" ? null : e ? e(t) : t.offsetParent;
210
- }
211
- function Y(t, e) {
212
- const o = E(t);
213
- if (!v(t))
214
- return o;
215
- let i = q(t, e);
216
- for (; i && P(i) && m(i).position === "static"; )
217
- i = q(i, e);
218
- return i && (F(i) === "html" || F(i) === "body" && m(i).position === "static" && !K(i)) ? o : i || tt(t) || o;
219
- }
220
- const at = async function(t) {
221
- let {
222
- reference: e,
223
- floating: o,
224
- strategy: i
225
- } = t;
226
- const n = this.getOffsetParent || Y, c = this.getDimensions;
227
- return {
228
- reference: ht(e, await n(o), i),
229
- floating: {
230
- x: 0,
231
- y: 0,
232
- ...await c(o)
233
- }
234
- };
235
- };
236
- function dt(t) {
237
- return m(t).direction === "rtl";
238
- }
239
- const gt = {
240
- convertOffsetParentRelativeRectToViewportRelativeRect: it,
241
- getDocumentElement: b,
242
- getClippingRect: ft,
243
- getOffsetParent: Y,
244
- getElementRects: at,
245
- getClientRects: nt,
246
- getDimensions: ut,
247
- getScale: L,
248
- isElement: y,
249
- isRTL: dt
250
- };
251
- function pt(t, e) {
252
- let o = null, i;
253
- const n = b(t);
254
- function c() {
255
- clearTimeout(i), o && o.disconnect(), o = null;
256
- }
257
- function s(r, l) {
258
- r === void 0 && (r = !1), l === void 0 && (l = 1), c();
259
- const {
260
- left: f,
261
- top: p,
262
- width: d,
263
- height: w
264
- } = t.getBoundingClientRect();
265
- if (r || e(), !d || !w)
266
- return;
267
- const a = B(p), g = B(n.clientWidth - (f + d)), h = B(n.clientHeight - (p + w)), R = B(f), C = {
268
- rootMargin: -a + "px " + -g + "px " + -h + "px " + -R + "px",
269
- threshold: T(0, H(1, l)) || 1
270
- };
271
- let W = !0;
272
- function S($) {
273
- const D = $[0].intersectionRatio;
274
- if (D !== l) {
275
- if (!W)
276
- return s();
277
- D ? s(!1, D) : i = setTimeout(() => {
278
- s(!1, 1e-7);
279
- }, 100);
280
- }
281
- W = !1;
282
- }
283
- try {
284
- o = new IntersectionObserver(S, {
285
- ...C,
286
- // Handle <iframe>s
287
- root: n.ownerDocument
288
- });
289
- } catch {
290
- o = new IntersectionObserver(S, C);
291
- }
292
- o.observe(t);
293
- }
294
- return s(!0), c;
295
- }
296
- function yt(t, e, o, i) {
297
- i === void 0 && (i = {});
298
- const {
299
- ancestorScroll: n = !0,
300
- ancestorResize: c = !0,
301
- elementResize: s = typeof ResizeObserver == "function",
302
- layoutShift: r = typeof IntersectionObserver == "function",
303
- animationFrame: l = !1
304
- } = i, f = M(t), p = n || c ? [...f ? I(f) : [], ...I(e)] : [];
305
- p.forEach((u) => {
306
- n && u.addEventListener("scroll", o, {
307
- passive: !0
308
- }), c && u.addEventListener("resize", o);
309
- });
310
- const d = f && r ? pt(f, o) : null;
311
- let w = -1, a = null;
312
- s && (a = new ResizeObserver((u) => {
313
- let [C] = u;
314
- C && C.target === f && a && (a.unobserve(e), cancelAnimationFrame(w), w = requestAnimationFrame(() => {
315
- a && a.observe(e);
316
- })), o();
317
- }), f && !l && a.observe(f), a.observe(e));
318
- let g, h = l ? O(t) : null;
319
- l && R();
320
- function R() {
321
- const u = O(t);
322
- h && (u.x !== h.x || u.y !== h.y || u.width !== h.width || u.height !== h.height) && o(), h = u, g = requestAnimationFrame(R);
323
- }
324
- return o(), () => {
325
- p.forEach((u) => {
326
- n && u.removeEventListener("scroll", o), c && u.removeEventListener("resize", o);
327
- }), d && d(), a && a.disconnect(), a = null, l && cancelAnimationFrame(g);
328
- };
329
- }
330
- const vt = (t, e, o) => {
331
- const i = /* @__PURE__ */ new Map(), n = {
332
- platform: gt,
333
- ...o
334
- }, c = {
335
- ...n.platform,
336
- _c: i
337
- };
338
- return Z(t, e, {
339
- ...n,
340
- platform: c
341
- });
342
- };
343
35
  export {
344
- yt as autoUpdate,
345
- vt as computePosition,
346
- Ct as detectOverflow,
347
- Et as flip,
348
- I as getOverflowAncestors,
349
- Ot as offset,
350
- gt as platform,
351
- Tt as shift
36
+ O as useFocusTrap
352
37
  };
353
38
  //# sourceMappingURL=index190.js.map