bitboss-ui 0.2.5 → 0.2.7

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 (134) hide show
  1. package/dist/components/BbTable/BbTable.vue.d.ts +112 -245
  2. package/dist/components/BbTable/types.d.ts +6 -6
  3. package/dist/index101.js +3 -3
  4. package/dist/index101.js.map +1 -1
  5. package/dist/index103.js +2 -2
  6. package/dist/index109.js +1 -1
  7. package/dist/index11.js +2 -2
  8. package/dist/index111.js +4 -4
  9. package/dist/index113.js +1 -1
  10. package/dist/index116.js +1 -1
  11. package/dist/index117.js +1 -1
  12. package/dist/index118.js +1 -1
  13. package/dist/index119.js +1 -1
  14. package/dist/index121.js +1 -1
  15. package/dist/index125.js +1 -1
  16. package/dist/index126.js +1 -1
  17. package/dist/index128.js +2 -2
  18. package/dist/index15.js +8 -8
  19. package/dist/index17.js +9 -9
  20. package/dist/index19.js +3 -3
  21. package/dist/index195.js +3 -5
  22. package/dist/index195.js.map +1 -1
  23. package/dist/index196.js +35 -16
  24. package/dist/index196.js.map +1 -1
  25. package/dist/index197.js +6 -16
  26. package/dist/index197.js.map +1 -1
  27. package/dist/index198.js +2 -19
  28. package/dist/index198.js.map +1 -1
  29. package/dist/index199.js +2 -20
  30. package/dist/index199.js.map +1 -1
  31. package/dist/index200.js +4 -29
  32. package/dist/index200.js.map +1 -1
  33. package/dist/index201.js +235 -8
  34. package/dist/index201.js.map +1 -1
  35. package/dist/index202.js +351 -2
  36. package/dist/index202.js.map +1 -1
  37. package/dist/index203.js +133 -234
  38. package/dist/index203.js.map +1 -1
  39. package/dist/index204.js +5 -10
  40. package/dist/index204.js.map +1 -1
  41. package/dist/index205.js +19 -2
  42. package/dist/index205.js.map +1 -1
  43. package/dist/index206.js +2 -4
  44. package/dist/index206.js.map +1 -1
  45. package/dist/index207.js +2 -351
  46. package/dist/index207.js.map +1 -1
  47. package/dist/index208.js +181 -129
  48. package/dist/index208.js.map +1 -1
  49. package/dist/index209.js +23 -2
  50. package/dist/index209.js.map +1 -1
  51. package/dist/index21.js +2 -2
  52. package/dist/index210.js +358 -175
  53. package/dist/index210.js.map +1 -1
  54. package/dist/index211.js +16 -23
  55. package/dist/index211.js.map +1 -1
  56. package/dist/index212.js +14 -367
  57. package/dist/index212.js.map +1 -1
  58. package/dist/index213.js +20 -2
  59. package/dist/index213.js.map +1 -1
  60. package/dist/index214.js +29 -2
  61. package/dist/index214.js.map +1 -1
  62. package/dist/index215.js +8 -3
  63. package/dist/index215.js.map +1 -1
  64. package/dist/index216.js +3 -3
  65. package/dist/index216.js.map +1 -1
  66. package/dist/index217.js +3 -3
  67. package/dist/index217.js.map +1 -1
  68. package/dist/index218.js +2 -2
  69. package/dist/index218.js.map +1 -1
  70. package/dist/index219.js +2 -6
  71. package/dist/index219.js.map +1 -1
  72. package/dist/index220.js +9 -34
  73. package/dist/index220.js.map +1 -1
  74. package/dist/index222.js +4 -4
  75. package/dist/index223.js +1 -1
  76. package/dist/index225.js +1 -1
  77. package/dist/index226.js +435 -2
  78. package/dist/index226.js.map +1 -1
  79. package/dist/index227.js +88 -3
  80. package/dist/index227.js.map +1 -1
  81. package/dist/index228.js +2 -295
  82. package/dist/index228.js.map +1 -1
  83. package/dist/index229.js +200 -6
  84. package/dist/index229.js.map +1 -1
  85. package/dist/index23.js +1 -1
  86. package/dist/index230.js +4 -2
  87. package/dist/index230.js.map +1 -1
  88. package/dist/index231.js +6 -2
  89. package/dist/index231.js.map +1 -1
  90. package/dist/index232.js +2 -2
  91. package/dist/index233.js +295 -2
  92. package/dist/index233.js.map +1 -1
  93. package/dist/index234.js +2 -2
  94. package/dist/index236.js +116 -68
  95. package/dist/index236.js.map +1 -1
  96. package/dist/index237.js +105 -161
  97. package/dist/index237.js.map +1 -1
  98. package/dist/index238.js +2 -2
  99. package/dist/index239.js +2 -2
  100. package/dist/index240.js +2 -117
  101. package/dist/index240.js.map +1 -1
  102. package/dist/index241.js +2 -106
  103. package/dist/index241.js.map +1 -1
  104. package/dist/index242.js +224 -2
  105. package/dist/index242.js.map +1 -1
  106. package/dist/index243.js +53 -19
  107. package/dist/index243.js.map +1 -1
  108. package/dist/index244.js +161 -257
  109. package/dist/index244.js.map +1 -1
  110. package/dist/index245.js +2 -2
  111. package/dist/index245.js.map +1 -1
  112. package/dist/index246.js +68 -88
  113. package/dist/index246.js.map +1 -1
  114. package/dist/index247.js +2 -435
  115. package/dist/index247.js.map +1 -1
  116. package/dist/index248.js +2 -200
  117. package/dist/index248.js.map +1 -1
  118. package/dist/index25.js +2 -2
  119. package/dist/index252.js +1 -1
  120. package/dist/index253.js +2 -2
  121. package/dist/index29.js +3 -3
  122. package/dist/index31.js +6 -6
  123. package/dist/index33.js +2 -2
  124. package/dist/index35.js +2 -2
  125. package/dist/index47.js +1 -1
  126. package/dist/index49.js +1 -1
  127. package/dist/index65.js +3 -3
  128. package/dist/index72.js +1 -1
  129. package/dist/index75.js +53 -46
  130. package/dist/index75.js.map +1 -1
  131. package/dist/index79.js +3 -3
  132. package/dist/index81.js +1 -1
  133. package/dist/style.css +1 -1
  134. package/package.json +1 -1
package/dist/index75.js CHANGED
@@ -1,21 +1,21 @@
1
- import { defineComponent as G, ref as o, useAttrs as J, computed as b, onMounted as Q, watch as U, openBlock as m, createBlock as X, Teleport as Y, createElementVNode as s, mergeProps as N, createElementBlock as w, renderSlot as n, createTextVNode as Z, toDisplayString as z, createCommentVNode as B, nextTick as ee } from "vue";
2
- import { useFocusTrap as te } from "./index220.js";
1
+ import { defineComponent as q, ref as s, useAttrs as G, computed as b, onMounted as J, watch as Q, onBeforeUnmount as X, openBlock as m, createBlock as Y, Teleport as Z, createElementVNode as o, mergeProps as N, createElementBlock as w, renderSlot as l, createTextVNode as ee, toDisplayString as z, createCommentVNode as B, nextTick as te } from "vue";
2
+ import { useFocusTrap as oe } from "./index196.js";
3
3
  import { useId as L } from "./index7.js";
4
- import { wait as E } from "./index122.js";
5
- const se = { class: "bb-offcanvas-close" }, oe = { class: "bb-offcanvas-close__content" }, ae = { class: "bb-offcanvas-close__label" }, le = /* @__PURE__ */ s("span", { class: "bb-offcanvas-close__icon" }, [
6
- /* @__PURE__ */ s("svg", {
4
+ import { wait as O } from "./index122.js";
5
+ const se = { class: "bb-offcanvas-close" }, ae = { class: "bb-offcanvas-close__content" }, ne = { class: "bb-offcanvas-close__label" }, le = /* @__PURE__ */ o("span", { class: "bb-offcanvas-close__icon" }, [
6
+ /* @__PURE__ */ o("svg", {
7
7
  viewBox: "0 0 24 24",
8
8
  fill: "none",
9
9
  xmlns: "http://www.w3.org/2000/svg"
10
10
  }, [
11
- /* @__PURE__ */ s("path", {
11
+ /* @__PURE__ */ o("path", {
12
12
  d: "M23 23L1 1M23 1L1 23",
13
13
  stroke: "currentColor",
14
14
  "stroke-width": "2",
15
15
  "stroke-linecap": "round"
16
16
  })
17
17
  ])
18
- ], -1), ne = /* @__PURE__ */ s("div", { style: { flex: "10000 10000 0%" } }, null, -1), de = /* @__PURE__ */ G({
18
+ ], -1), ie = /* @__PURE__ */ o("div", { style: { flex: "10000 10000 0%" } }, null, -1), fe = /* @__PURE__ */ q({
19
19
  __name: "BbOffCanvas",
20
20
  props: {
21
21
  closeLabel: { default: "Chiudi" },
@@ -36,22 +36,29 @@ const se = { class: "bb-offcanvas-close" }, oe = { class: "bb-offcanvas-close__c
36
36
  direction: { default: "left" }
37
37
  },
38
38
  emits: ["shown", "hidden", "update:modelValue"],
39
- setup(O, { emit: T }) {
40
- const e = O, r = T, y = `title_${L().id.value}`, h = `description_${L().id.value}`, d = o(null), V = o(null), x = o(null), S = o(null), A = o(null), M = o(null), W = J(), { activate: I, deactivate: R } = te(V, {
39
+ setup(x, { emit: E }) {
40
+ const e = x, r = E, y = `title_${L().id.value}`, h = `description_${L().id.value}`, d = s(null), V = s(null), S = s(null), T = s(null), A = s(null), M = s(null), W = G(), { activate: R, deactivate: I } = oe(V, {
41
41
  clickOutsideDeactivates: !0,
42
42
  /* On esc deactivate the trap, return focus and then close the modal */
43
- escapeDeactivates: () => (ee(() => {
43
+ escapeDeactivates: () => (te(() => {
44
44
  r("update:modelValue", !1);
45
45
  }), !0)
46
- }), $ = b(() => e.closeLabel), _ = o(!1), c = o(!1), g = o(!0), u = o(!1), f = o(e.eager || e.modelValue), C = o(null), F = b(() => c.value || u.value);
47
- Q(() => {
46
+ }), $ = b(() => e.closeLabel), _ = s(!1), c = s(!1), g = s(!0), u = s(!1), f = s(e.eager || e.modelValue), C = s(null), F = b(() => c.value || u.value);
47
+ J(() => {
48
48
  e.modelValue && D();
49
- }), U(
49
+ }), Q(
50
50
  () => e.modelValue,
51
51
  () => {
52
52
  D();
53
53
  }
54
- );
54
+ ), X(() => {
55
+ if (e.modelValue) {
56
+ let t = Number(
57
+ document.body.dataset.openCanvases ?? "0"
58
+ );
59
+ t--, document.body.dataset.openCanvases = t.toString(), t || (document.body.style.overflow = "auto", document.body.style.paddingRight = "0px");
60
+ }
61
+ });
55
62
  const D = async () => {
56
63
  if (e.modelValue) {
57
64
  f.value || (f.value = !0), document.activeElement && (C.value = document.activeElement), g.value = !1, u.value = !1, c.value = !0;
@@ -60,9 +67,9 @@ const se = { class: "bb-offcanvas-close" }, oe = { class: "bb-offcanvas-close__c
60
67
  );
61
68
  t++, document.body.dataset.openCanvases = t.toString();
62
69
  const a = window.innerWidth - document.documentElement.clientWidth;
63
- document.body.style.overflow = "hidden", document.body.style.paddingRight = `${a}px`, await E(e.transitionDuration), c.value = !1, _.value = !0, r("shown"), I();
70
+ document.body.style.overflow = "hidden", document.body.style.paddingRight = `${a}px`, await O(e.transitionDuration), c.value = !1, _.value = !0, r("shown"), R();
64
71
  } else {
65
- R(), c.value = !1, _.value = !1, u.value = !0, await E(e.transitionDuration);
72
+ I(), c.value = !1, _.value = !1, u.value = !0, await O(e.transitionDuration);
66
73
  let t = Number(
67
74
  document.body.dataset.openCanvases ?? "0"
68
75
  );
@@ -93,12 +100,12 @@ const se = { class: "bb-offcanvas-close" }, oe = { class: "bb-offcanvas-close__c
93
100
  onTouchmove: v,
94
101
  onWheel: v,
95
102
  onKeydown: v
96
- }, l = {
103
+ }, n = {
97
104
  transitionDuration: e.transitionDuration / 1e3 + "s"
98
105
  };
99
106
  return {
100
107
  class: t,
101
- style: l,
108
+ style: n,
102
109
  ...a,
103
110
  ...W
104
111
  };
@@ -114,31 +121,31 @@ const se = { class: "bb-offcanvas-close" }, oe = { class: "bb-offcanvas-close__c
114
121
  "aria-modal": !0
115
122
  };
116
123
  f.value && (a["aria-labelledby"] = y, e.description && (a["aria-describedby"] = h));
117
- let l, j, i;
124
+ let n, U, i;
118
125
  const p = {
119
126
  sm: 384,
120
127
  md: 652,
121
128
  lg: 896
122
129
  };
123
- e.direction === "left" || e.direction === "right" ? e.fullscreen ? l = "100%" : typeof e.size == "number" ? l = e.size + "px" : e.size in p ? l = p[e.size] + "px" : l = e.size + "px" : e.fullscreen ? i = "100%" : typeof e.size == "number" ? i = e.size + "px" : e.size in p ? i = p[e.size] + "px" : Number.isNaN(Number(e.size)) ? e.size === "auto" && (i = "auto") : i = e.size + "px";
124
- const q = {
125
- maxWidth: l,
126
- maxHeight: j,
130
+ e.direction === "left" || e.direction === "right" ? e.fullscreen ? n = "100%" : typeof e.size == "number" ? n = e.size + "px" : e.size in p ? n = p[e.size] + "px" : n = e.size + "px" : e.fullscreen ? i = "100%" : typeof e.size == "number" ? i = e.size + "px" : e.size in p ? i = p[e.size] + "px" : Number.isNaN(Number(e.size)) ? e.size === "auto" && (i = "auto") : i = e.size + "px";
131
+ const j = {
132
+ maxWidth: n,
133
+ maxHeight: U,
127
134
  height: i,
128
135
  transitionDuration: e.transitionDuration / 1e3 + "s"
129
136
  };
130
137
  return {
131
138
  class: t,
132
- style: q,
139
+ style: j,
133
140
  ...a
134
141
  };
135
142
  });
136
- return (t, a) => (m(), X(Y, { to: "body" }, [
137
- s("div", N(K.value, {
143
+ return (t, a) => (m(), Y(Z, { to: "body" }, [
144
+ o("div", N(K.value, {
138
145
  ref_key: "overlay",
139
146
  ref: d
140
147
  }), [
141
- s("div", N(P.value, {
148
+ o("div", N(P.value, {
142
149
  ref_key: "panel",
143
150
  ref: V
144
151
  }), [
@@ -146,36 +153,36 @@ const se = { class: "bb-offcanvas-close" }, oe = { class: "bb-offcanvas-close__c
146
153
  key: 0,
147
154
  class: "bb-offcanvas__content",
148
155
  ref_key: "content",
149
- ref: x
156
+ ref: S
150
157
  }, [
151
- n(t.$slots, "content", { close: k }, () => [
152
- s("div", {
158
+ l(t.$slots, "content", { close: k }, () => [
159
+ o("div", {
153
160
  class: "bb-offcanvas__header",
154
161
  ref_key: "header",
155
- ref: S
162
+ ref: T
156
163
  }, [
157
- n(t.$slots, "header", {
164
+ l(t.$slots, "header", {
158
165
  titleId: y,
159
166
  close: k,
160
167
  title: t.title
161
168
  }, () => [
162
- s("span", {
169
+ o("span", {
163
170
  class: "bb-offcanvas__title",
164
171
  id: y
165
172
  }, [
166
- n(t.$slots, "title", { text: t.title }, () => [
167
- Z(z(t.title), 1)
173
+ l(t.$slots, "title", { text: t.title }, () => [
174
+ ee(z(t.title), 1)
168
175
  ])
169
176
  ]),
170
- s("span", se, [
177
+ o("span", se, [
171
178
  t.showClose ? (m(), w("button", {
172
179
  key: 0,
173
180
  onClick: k,
174
181
  type: "button"
175
182
  }, [
176
- n(t.$slots, "close", { text: $.value }, () => [
177
- s("span", oe, [
178
- s("span", ae, z($.value), 1),
183
+ l(t.$slots, "close", { text: $.value }, () => [
184
+ o("span", ae, [
185
+ o("span", ne, z($.value), 1),
179
186
  le
180
187
  ])
181
188
  ])
@@ -183,12 +190,12 @@ const se = { class: "bb-offcanvas-close" }, oe = { class: "bb-offcanvas-close__c
183
190
  ])
184
191
  ])
185
192
  ], 512),
186
- s("div", {
193
+ o("div", {
187
194
  class: "bb-offcanvas__body",
188
195
  ref_key: "body",
189
196
  ref: A
190
197
  }, [
191
- n(t.$slots, "description", {
198
+ l(t.$slots, "description", {
192
199
  descriptionId: h,
193
200
  text: t.description
194
201
  }, () => [
@@ -198,15 +205,15 @@ const se = { class: "bb-offcanvas-close" }, oe = { class: "bb-offcanvas-close__c
198
205
  class: "bb-offcanvas__description"
199
206
  }, z(t.description), 1)) : B("", !0)
200
207
  ]),
201
- n(t.$slots, "default")
208
+ l(t.$slots, "default")
202
209
  ], 512),
203
- ne,
204
- s("div", {
210
+ ie,
211
+ o("div", {
205
212
  class: "bb-offcanvas__footer",
206
213
  ref_key: "footer",
207
214
  ref: M
208
215
  }, [
209
- n(t.$slots, "footer")
216
+ l(t.$slots, "footer")
210
217
  ], 512)
211
218
  ])
212
219
  ], 512)) : B("", !0)
@@ -216,6 +223,6 @@ const se = { class: "bb-offcanvas-close" }, oe = { class: "bb-offcanvas-close__c
216
223
  }
217
224
  });
218
225
  export {
219
- de as default
226
+ fe as default
220
227
  };
221
228
  //# sourceMappingURL=index75.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index75.js","sources":["../src/components/BbOffCanvas/BbOffCanvas.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, createCommentVNode as _createCommentVNode, mergeProps as _mergeProps, Teleport as _Teleport, createBlock as _createBlock } from \"vue\"\n\nconst _hoisted_1 = { class: \"bb-offcanvas-close\" }\nconst _hoisted_2 = { class: \"bb-offcanvas-close__content\" }\nconst _hoisted_3 = { class: \"bb-offcanvas-close__label\" }\nconst _hoisted_4 = /*#__PURE__*/_createElementVNode(\"span\", { class: \"bb-offcanvas-close__icon\" }, [\n /*#__PURE__*/_createElementVNode(\"svg\", {\n viewBox: \"0 0 24 24\",\n fill: \"none\",\n xmlns: \"http://www.w3.org/2000/svg\"\n }, [\n /*#__PURE__*/_createElementVNode(\"path\", {\n d: \"M23 23L1 1M23 1L1 23\",\n stroke: \"currentColor\",\n \"stroke-width\": \"2\",\n \"stroke-linecap\": \"round\"\n })\n ])\n], -1)\nconst _hoisted_5 = /*#__PURE__*/_createElementVNode(\"div\", { style: {\"flex\":\"10000 10000 0%\"} }, null, -1)\n\nimport { computed, nextTick, onMounted, ref, useAttrs, watch } from \"vue\";\nimport { useFocusTrap } from \"@vueuse/integrations/useFocusTrap\";\nimport { useId } from \"@/composables/useId\";\nimport { wait } from \"@/utilities/functions/wait\";\nimport type { CommonProps, Size } from \"@/types/CommonProps\";\n\nexport type Sizes = {\n sm: number;\n md: number;\n lg: number;\n};\n\nexport type BbOffCanvasProps = Pick<\n CommonProps,\n | \"closeLabel\"\n | \"compact\"\n | \"disabled\"\n | \"eager\"\n | \"panelClasses\"\n | \"overlayClasses\"\n | \"persistent\"\n | \"showClose\"\n | \"title\"\n | \"transition\"\n | \"transitionDuration\"\n> &\n Size<Sizes> & {\n /**\n * Description of the content of the modal. Extremely useful for accessibility reasons.\n */\n description?: string;\n /**\n * Displays the modala as fulscreen with no margin to the page\n */\n fullscreen?: boolean;\n /**\n * Defines the state open / closed of the modal.\n */\n modelValue?: boolean | null;\n /**\n * Defines the direction the offcanvas should appear from\n */\n direction?: \"left\" | \"top\" | \"right\" | \"bottom\";\n };\n\nexport type BbOffCanvasEvents = {\n (e: \"shown\"): void;\n (e: \"hidden\"): void;\n (e: \"update:modelValue\", value: boolean): void;\n};\n\nexport type BbOffCanvasSlots = {\n header?: (props: {\n titleId: typeof titleId;\n close: typeof onCloseClick;\n title: BbOffCanvasProps[\"title\"];\n }) => any;\n title?: (props: { text: BbOffCanvasProps[\"title\"] }) => any;\n close?: (props: { text: BbOffCanvasProps[\"closeLabel\"] }) => any;\n description?: (props: {\n descriptionId: typeof descriptionId;\n text: BbOffCanvasProps[\"description\"];\n }) => any;\n default?: (props: {}) => any;\n content?: (props: { close: typeof onCloseClick }) => any;\n footer?: (props: {}) => any;\n};\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'BbOffCanvas',\n props: {\n closeLabel: { default: \"Chiudi\" },\n compact: { type: Boolean },\n disabled: { type: Boolean },\n eager: { type: Boolean },\n panelClasses: { default: () => [] },\n overlayClasses: { default: () => [] },\n persistent: { type: Boolean },\n showClose: { type: Boolean, default: true },\n title: {},\n transition: { default: \"fade\" },\n transitionDuration: { default: 350 },\n size: { default: \"sm\" },\n description: {},\n fullscreen: { type: Boolean },\n modelValue: { type: [Boolean, null] },\n direction: { default: \"left\" }\n },\n emits: [\"shown\", \"hidden\", \"update:modelValue\"],\n setup(__props: any, { emit: __emit }) {\n\nconst props = __props;\n\nconst emit = __emit;\n\n\n\nconst titleId = `title_${useId().id.value}`;\nconst descriptionId = `description_${useId().id.value}`;\n\nconst overlay = ref<HTMLElement | null>(null);\nconst panel = ref<HTMLElement | null>(null);\nconst content = ref<HTMLElement | null>(null);\nconst header = ref<HTMLElement | null>(null);\nconst body = ref<HTMLElement | null>(null);\nconst footer = ref<HTMLElement | null>(null);\nconst attrs = useAttrs();\n\nconst { activate, deactivate } = useFocusTrap(panel, {\n clickOutsideDeactivates: true,\n /* On esc deactivate the trap, return focus and then close the modal */\n escapeDeactivates: () => {\n nextTick(() => {\n emit(\"update:modelValue\", false);\n });\n return true;\n },\n});\n\nconst closeLabel = computed(() => props.closeLabel);\n\nconst open = ref(false);\nconst opening = ref(false);\nconst closed = ref(true);\nconst closing = ref(false);\nconst hasRenderedAtLeastOnce = ref(props.eager || props.modelValue);\nconst lastFocusedElement = ref<Element | null>(null);\n\nconst busy = computed(() => opening.value || closing.value);\n\nonMounted(() => {\n if (props.modelValue) {\n alignToModelValue();\n }\n});\n\n/**\n * Every time modelValue changes align the display to it\n */\nwatch(\n () => props.modelValue,\n () => {\n alignToModelValue();\n }\n);\n\n/**\n * When modelValue becomes true if the component wasn't rendered render it\n * and wait for it to be on the page (or transitions would not work).\n * Stash the latest focused element so we can return it later when it closes.\n * Focus on the panel upon opening.\n * ---\n * Notice all interactions update modelValue and then this function aligns the display to it\n */\nconst alignToModelValue = async () => {\n if (props.modelValue) {\n if (!hasRenderedAtLeastOnce.value) {\n hasRenderedAtLeastOnce.value = true;\n }\n if (document.activeElement) {\n lastFocusedElement.value = document.activeElement;\n }\n\n closed.value = false;\n closing.value = false;\n opening.value = true;\n\n // This prevents overscroll chaining (additional scrolling to the body when the modal has been completely scrolled)\n\n let currentlyOpenCanvases = Number(\n document.body.dataset[\"openCanvases\"] ?? \"0\"\n );\n currentlyOpenCanvases++;\n document.body.dataset[\"openCanvases\"] = currentlyOpenCanvases.toString();\n const scrollBarWidth =\n window.innerWidth - document.documentElement.clientWidth;\n document.body.style.overflow = \"hidden\";\n document.body.style.paddingRight = `${scrollBarWidth}px`;\n\n await wait(props.transitionDuration);\n\n opening.value = false;\n open.value = true;\n emit(\"shown\");\n activate();\n } else {\n deactivate();\n opening.value = false;\n open.value = false;\n closing.value = true;\n\n await wait(props.transitionDuration);\n\n let currentlyOpenCanvases = Number(\n document.body.dataset[\"openCanvases\"] ?? \"0\"\n );\n // This prevents overscroll chaining (additional scrolling to the body when the modal has been completely scrolled)\n currentlyOpenCanvases--;\n document.body.dataset[\"openCanvases\"] = currentlyOpenCanvases.toString();\n if (!currentlyOpenCanvases) {\n document.body.style.overflow = \"auto\";\n document.body.style.paddingRight = \"0px\";\n }\n closing.value = false;\n closed.value = true;\n emit(\"hidden\");\n if (lastFocusedElement.value instanceof HTMLElement) {\n lastFocusedElement.value.focus();\n }\n }\n};\n\n/**\n * Disable scrolling\n */\nconst onOverlayScroll = (event: UIEvent) => {\n if (event.target === overlay.value) {\n event.preventDefault();\n }\n};\n\n/**\n * Close the modal on overlay click if not persistent\n */\nconst onOverlayClick = (event: MouseEvent) => {\n if (props.disabled || busy.value) return;\n if (overlay.value) {\n if (event.target === overlay.value) {\n if (!props.persistent) {\n emit(\"update:modelValue\", false);\n }\n }\n }\n};\n\n/**\n * On click on the X button\n */\nconst onCloseClick = () => {\n if (props.disabled) return;\n emit(\"update:modelValue\", false);\n};\n\nconst overlayAttributes = computed(() => {\n const classes = [\n {\n \"bb-offcanvas bb-offcanvas__overlay\": true,\n \"bb-offcanvas--fullscreen\": props.fullscreen,\n \"bb-offcanvas--open\": open.value,\n \"bb-offcanvas--opening\": opening.value,\n \"bb-offcanvas--closed\": closed.value,\n \"bb-offcanvas--closing\": closing.value,\n [`bb-offcanvas--transition-${props.transition}`]: true,\n [`bb-offcanvas--${props.direction}`]: true,\n },\n props.overlayClasses,\n ].flat();\n const eventListeners = {\n onClick: onOverlayClick,\n onScroll: onOverlayScroll,\n onTouchmove: onOverlayScroll,\n onWheel: onOverlayScroll,\n onKeydown: onOverlayScroll,\n };\n\n const style = {\n transitionDuration: props.transitionDuration / 1000 + \"s\",\n };\n return {\n class: classes,\n style,\n ...eventListeners,\n ...attrs,\n };\n});\n\nconst panelAttributes = computed(() => {\n const classes = [\n {\n \"bb-offcanvas__panel\": true,\n \"bb-offcanvas__panel--compact\": props.compact,\n },\n props.panelClasses,\n ].flat();\n\n const accessibilityAttrs: {\n [key: string]: string | boolean;\n } = {\n role: \"dialog\",\n \"aria-modal\": true,\n };\n\n if (hasRenderedAtLeastOnce.value) {\n accessibilityAttrs[\"aria-labelledby\"] = titleId;\n\n if (props.description)\n accessibilityAttrs[\"aria-describedby\"] = descriptionId;\n }\n\n let maxWidth;\n let maxHeight;\n let height;\n const sizes: Sizes = {\n sm: 384,\n md: 652,\n lg: 896,\n };\n if (props.direction === \"left\" || props.direction === \"right\") {\n if (props.fullscreen) maxWidth = \"100%\";\n else if (typeof props.size === \"number\") maxWidth = props.size + \"px\";\n else if (props.size in sizes)\n maxWidth = sizes[props.size as keyof Sizes] + \"px\";\n else maxWidth = props.size + \"px\";\n } else {\n if (props.fullscreen) height = \"100%\";\n else if (typeof props.size === \"number\") height = props.size + \"px\";\n else if (props.size in sizes)\n height = sizes[props.size as keyof Sizes] + \"px\";\n else if (!Number.isNaN(Number(props.size))) height = props.size + \"px\";\n else if (props.size === \"auto\") height = \"auto\";\n }\n\n const style = {\n maxWidth,\n maxHeight,\n height,\n transitionDuration: props.transitionDuration / 1000 + \"s\",\n };\n\n return {\n class: classes,\n style,\n ...accessibilityAttrs,\n };\n});\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createBlock(_Teleport, { to: \"body\" }, [\n _createElementVNode(\"div\", _mergeProps(overlayAttributes.value, {\n ref_key: \"overlay\",\n ref: overlay\n }), [\n _createElementVNode(\"div\", _mergeProps(panelAttributes.value, {\n ref_key: \"panel\",\n ref: panel\n }), [\n (hasRenderedAtLeastOnce.value)\n ? (_openBlock(), _createElementBlock(\"div\", {\n key: 0,\n class: \"bb-offcanvas__content\",\n ref_key: \"content\",\n ref: content\n }, [\n _renderSlot(_ctx.$slots, \"content\", { close: onCloseClick }, () => [\n _createElementVNode(\"div\", {\n class: \"bb-offcanvas__header\",\n ref_key: \"header\",\n ref: header\n }, [\n _renderSlot(_ctx.$slots, \"header\", {\n titleId: titleId,\n close: onCloseClick,\n title: _ctx.title\n }, () => [\n _createElementVNode(\"span\", {\n class: \"bb-offcanvas__title\",\n id: titleId\n }, [\n _renderSlot(_ctx.$slots, \"title\", { text: _ctx.title }, () => [\n _createTextVNode(_toDisplayString(_ctx.title), 1)\n ])\n ]),\n _createElementVNode(\"span\", _hoisted_1, [\n (_ctx.showClose)\n ? (_openBlock(), _createElementBlock(\"button\", {\n key: 0,\n onClick: onCloseClick,\n type: \"button\"\n }, [\n _renderSlot(_ctx.$slots, \"close\", { text: closeLabel.value }, () => [\n _createElementVNode(\"span\", _hoisted_2, [\n _createElementVNode(\"span\", _hoisted_3, _toDisplayString(closeLabel.value), 1),\n _hoisted_4\n ])\n ])\n ]))\n : _createCommentVNode(\"\", true)\n ])\n ])\n ], 512),\n _createElementVNode(\"div\", {\n class: \"bb-offcanvas__body\",\n ref_key: \"body\",\n ref: body\n }, [\n _renderSlot(_ctx.$slots, \"description\", {\n descriptionId: descriptionId,\n text: _ctx.description\n }, () => [\n (_ctx.description)\n ? (_openBlock(), _createElementBlock(\"div\", {\n key: 0,\n id: descriptionId,\n class: \"bb-offcanvas__description\"\n }, _toDisplayString(_ctx.description), 1))\n : _createCommentVNode(\"\", true)\n ]),\n _renderSlot(_ctx.$slots, \"default\")\n ], 512),\n _hoisted_5,\n _createElementVNode(\"div\", {\n class: \"bb-offcanvas__footer\",\n ref_key: \"footer\",\n ref: footer\n }, [\n _renderSlot(_ctx.$slots, \"footer\")\n ], 512)\n ])\n ], 512))\n : _createCommentVNode(\"\", true)\n ], 16)\n ], 16)\n ]))\n}\n}\n\n})"],"names":["_hoisted_1","_hoisted_2","_hoisted_3","_hoisted_4","_createElementVNode","_hoisted_5","_sfc_main","_defineComponent","__props","__emit","props","emit","titleId","useId","descriptionId","overlay","ref","panel","content","header","body","footer","attrs","useAttrs","activate","deactivate","useFocusTrap","nextTick","closeLabel","computed","open","opening","closed","closing","hasRenderedAtLeastOnce","lastFocusedElement","busy","onMounted","alignToModelValue","watch","currentlyOpenCanvases","scrollBarWidth","wait","onOverlayScroll","event","onOverlayClick","onCloseClick","overlayAttributes","classes","eventListeners","style","panelAttributes","accessibilityAttrs","maxWidth","maxHeight","height","sizes","_ctx","_cache","_openBlock","_createBlock","_Teleport","_mergeProps","_createElementBlock","_renderSlot","_createTextVNode","_toDisplayString","_createCommentVNode"],"mappings":";;;;AAGA,MAAMA,KAAa,EAAE,OAAO,wBACtBC,KAAa,EAAE,OAAO,iCACtBC,KAAa,EAAE,OAAO,+BACtBC,KAA8CC,gBAAAA,EAAA,QAAQ,EAAE,OAAO,8BAA8B;AAAA,oBAChE,OAAO;AAAA,IACtC,SAAS;AAAA,IACT,MAAM;AAAA,IACN,OAAO;AAAA,EAAA,GACN;AAAA,sBACgC,QAAQ;AAAA,MACvC,GAAG;AAAA,MACH,QAAQ;AAAA,MACR,gBAAgB;AAAA,MAChB,kBAAkB;AAAA,IAAA,CACnB;AAAA,EAAA,CACF;AACH,GAAG,EAAE,GACCC,KAA8CD,gBAAAA,EAAA,OAAO,EAAE,OAAO,EAAC,MAAO,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AAQH,IAAY;AAAA,0BACtCG,EAAoB,QAAQF,IAAYgE,EAAiBtC,EAAW,KAAK,GAAG,CAAC;AAAA,0BAC7EzB;AAAA,wBAAA,CACD;AAAA,sBAAA,CACF;AAAA,oBAAA,CACF,KACDgE,EAAoB,IAAI,EAAI;AAAA,kBAAA,CACjC;AAAA,gBAAA,CACF;AAAA,iBACA,GAAG;AAAA,cACN/D,EAAoB,OAAO;AAAA,gBACzB,OAAO;AAAA,gBACP,SAAS;AAAA,gBACT,KAAKgB;AAAA,cAAA,GACJ;AAAA,gBACD4C,EAAYP,EAAK,QAAQ,eAAe;AAAA,kBACtC,eAAA3C;AAAA,kBACA,MAAM2C,EAAK;AAAA,gBAAA,GACV,MAAM;AAAA,kBACNA,EAAK,eACDE,KAAcI,EAAoB,OAAO;AAAA,oBACxC,KAAK;AAAA,oBACL,IAAIjD;AAAA,oBACJ,OAAO;AAAA,kBAAA,GACNoD,EAAiBT,EAAK,WAAW,GAAG,CAAC,KACxCU,EAAoB,IAAI,EAAI;AAAA,gBAAA,CACjC;AAAA,gBACDH,EAAYP,EAAK,QAAQ,SAAS;AAAA,iBACjC,GAAG;AAAA,cACNpD;AAAA,cACAD,EAAoB,OAAO;AAAA,gBACzB,OAAO;AAAA,gBACP,SAAS;AAAA,gBACT,KAAKiB;AAAA,cAAA,GACJ;AAAA,gBACD2C,EAAYP,EAAK,QAAQ,QAAQ;AAAA,iBAChC,GAAG;AAAA,YAAA,CACP;AAAA,UACA,GAAA,GAAG,KACNU,EAAoB,IAAI,EAAI;AAAA,WAC/B,EAAE;AAAA,SACJ,EAAE;AAAA,IAAA,CACN;AAAA,EAEH;AAEA,CAAC;"}
1
+ {"version":3,"file":"index75.js","sources":["../src/components/BbOffCanvas/BbOffCanvas.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, createCommentVNode as _createCommentVNode, mergeProps as _mergeProps, Teleport as _Teleport, createBlock as _createBlock } from \"vue\"\n\nconst _hoisted_1 = { class: \"bb-offcanvas-close\" }\nconst _hoisted_2 = { class: \"bb-offcanvas-close__content\" }\nconst _hoisted_3 = { class: \"bb-offcanvas-close__label\" }\nconst _hoisted_4 = /*#__PURE__*/_createElementVNode(\"span\", { class: \"bb-offcanvas-close__icon\" }, [\n /*#__PURE__*/_createElementVNode(\"svg\", {\n viewBox: \"0 0 24 24\",\n fill: \"none\",\n xmlns: \"http://www.w3.org/2000/svg\"\n }, [\n /*#__PURE__*/_createElementVNode(\"path\", {\n d: \"M23 23L1 1M23 1L1 23\",\n stroke: \"currentColor\",\n \"stroke-width\": \"2\",\n \"stroke-linecap\": \"round\"\n })\n ])\n], -1)\nconst _hoisted_5 = /*#__PURE__*/_createElementVNode(\"div\", { style: {\"flex\":\"10000 10000 0%\"} }, null, -1)\n\nimport { computed, nextTick, onBeforeUnmount, onMounted, ref, useAttrs, watch } from \"vue\";\nimport { useFocusTrap } from \"@vueuse/integrations/useFocusTrap\";\nimport { useId } from \"@/composables/useId\";\nimport { wait } from \"@/utilities/functions/wait\";\nimport type { CommonProps, Size } from \"@/types/CommonProps\";\n\nexport type Sizes = {\n sm: number;\n md: number;\n lg: number;\n};\n\nexport type BbOffCanvasProps = Pick<\n CommonProps,\n | \"closeLabel\"\n | \"compact\"\n | \"disabled\"\n | \"eager\"\n | \"panelClasses\"\n | \"overlayClasses\"\n | \"persistent\"\n | \"showClose\"\n | \"title\"\n | \"transition\"\n | \"transitionDuration\"\n> &\n Size<Sizes> & {\n /**\n * Description of the content of the modal. Extremely useful for accessibility reasons.\n */\n description?: string;\n /**\n * Displays the modala as fulscreen with no margin to the page\n */\n fullscreen?: boolean;\n /**\n * Defines the state open / closed of the modal.\n */\n modelValue?: boolean | null;\n /**\n * Defines the direction the offcanvas should appear from\n */\n direction?: \"left\" | \"top\" | \"right\" | \"bottom\";\n };\n\nexport type BbOffCanvasEvents = {\n (e: \"shown\"): void;\n (e: \"hidden\"): void;\n (e: \"update:modelValue\", value: boolean): void;\n};\n\nexport type BbOffCanvasSlots = {\n header?: (props: {\n titleId: typeof titleId;\n close: typeof onCloseClick;\n title: BbOffCanvasProps[\"title\"];\n }) => any;\n title?: (props: { text: BbOffCanvasProps[\"title\"] }) => any;\n close?: (props: { text: BbOffCanvasProps[\"closeLabel\"] }) => any;\n description?: (props: {\n descriptionId: typeof descriptionId;\n text: BbOffCanvasProps[\"description\"];\n }) => any;\n default?: (props: {}) => any;\n content?: (props: { close: typeof onCloseClick }) => any;\n footer?: (props: {}) => any;\n};\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'BbOffCanvas',\n props: {\n closeLabel: { default: \"Chiudi\" },\n compact: { type: Boolean },\n disabled: { type: Boolean },\n eager: { type: Boolean },\n panelClasses: { default: () => [] },\n overlayClasses: { default: () => [] },\n persistent: { type: Boolean },\n showClose: { type: Boolean, default: true },\n title: {},\n transition: { default: \"fade\" },\n transitionDuration: { default: 350 },\n size: { default: \"sm\" },\n description: {},\n fullscreen: { type: Boolean },\n modelValue: { type: [Boolean, null] },\n direction: { default: \"left\" }\n },\n emits: [\"shown\", \"hidden\", \"update:modelValue\"],\n setup(__props: any, { emit: __emit }) {\n\nconst props = __props;\n\nconst emit = __emit;\n\n\n\nconst titleId = `title_${useId().id.value}`;\nconst descriptionId = `description_${useId().id.value}`;\n\nconst overlay = ref<HTMLElement | null>(null);\nconst panel = ref<HTMLElement | null>(null);\nconst content = ref<HTMLElement | null>(null);\nconst header = ref<HTMLElement | null>(null);\nconst body = ref<HTMLElement | null>(null);\nconst footer = ref<HTMLElement | null>(null);\nconst attrs = useAttrs();\n\nconst { activate, deactivate } = useFocusTrap(panel, {\n clickOutsideDeactivates: true,\n /* On esc deactivate the trap, return focus and then close the modal */\n escapeDeactivates: () => {\n nextTick(() => {\n emit(\"update:modelValue\", false);\n });\n return true;\n },\n});\n\nconst closeLabel = computed(() => props.closeLabel);\n\nconst open = ref(false);\nconst opening = ref(false);\nconst closed = ref(true);\nconst closing = ref(false);\nconst hasRenderedAtLeastOnce = ref(props.eager || props.modelValue);\nconst lastFocusedElement = ref<Element | null>(null);\n\nconst busy = computed(() => opening.value || closing.value);\n\nonMounted(() => {\n if (props.modelValue) {\n alignToModelValue();\n }\n});\n\n/**\n * Every time modelValue changes align the display to it\n */\nwatch(\n () => props.modelValue,\n () => {\n alignToModelValue();\n }\n);\nonBeforeUnmount(() => {\n if (props.modelValue) {\n let currentlyOpenCanvases = Number(\n document.body.dataset[\"openCanvases\"] ?? \"0\"\n );\n // This prevents overscroll chaining (additional scrolling to the body when the modal has been completely scrolled)\n currentlyOpenCanvases--;\n document.body.dataset[\"openCanvases\"] = currentlyOpenCanvases.toString();\n if (!currentlyOpenCanvases) {\n document.body.style.overflow = \"auto\";\n document.body.style.paddingRight = \"0px\";\n }\n }\n});\n\n/**\n * When modelValue becomes true if the component wasn't rendered render it\n * and wait for it to be on the page (or transitions would not work).\n * Stash the latest focused element so we can return it later when it closes.\n * Focus on the panel upon opening.\n * ---\n * Notice all interactions update modelValue and then this function aligns the display to it\n */\nconst alignToModelValue = async () => {\n if (props.modelValue) {\n if (!hasRenderedAtLeastOnce.value) {\n hasRenderedAtLeastOnce.value = true;\n }\n if (document.activeElement) {\n lastFocusedElement.value = document.activeElement;\n }\n\n closed.value = false;\n closing.value = false;\n opening.value = true;\n\n // This prevents overscroll chaining (additional scrolling to the body when the modal has been completely scrolled)\n\n let currentlyOpenCanvases = Number(\n document.body.dataset[\"openCanvases\"] ?? \"0\"\n );\n currentlyOpenCanvases++;\n document.body.dataset[\"openCanvases\"] = currentlyOpenCanvases.toString();\n const scrollBarWidth =\n window.innerWidth - document.documentElement.clientWidth;\n document.body.style.overflow = \"hidden\";\n document.body.style.paddingRight = `${scrollBarWidth}px`;\n\n await wait(props.transitionDuration);\n\n opening.value = false;\n open.value = true;\n emit(\"shown\");\n activate();\n } else {\n deactivate();\n opening.value = false;\n open.value = false;\n closing.value = true;\n\n await wait(props.transitionDuration);\n\n let currentlyOpenCanvases = Number(\n document.body.dataset[\"openCanvases\"] ?? \"0\"\n );\n // This prevents overscroll chaining (additional scrolling to the body when the modal has been completely scrolled)\n currentlyOpenCanvases--;\n document.body.dataset[\"openCanvases\"] = currentlyOpenCanvases.toString();\n if (!currentlyOpenCanvases) {\n document.body.style.overflow = \"auto\";\n document.body.style.paddingRight = \"0px\";\n }\n closing.value = false;\n closed.value = true;\n emit(\"hidden\");\n if (lastFocusedElement.value instanceof HTMLElement) {\n lastFocusedElement.value.focus();\n }\n }\n};\n\n/**\n * Disable scrolling\n */\nconst onOverlayScroll = (event: UIEvent) => {\n if (event.target === overlay.value) {\n event.preventDefault();\n }\n};\n\n/**\n * Close the modal on overlay click if not persistent\n */\nconst onOverlayClick = (event: MouseEvent) => {\n if (props.disabled || busy.value) return;\n if (overlay.value) {\n if (event.target === overlay.value) {\n if (!props.persistent) {\n emit(\"update:modelValue\", false);\n }\n }\n }\n};\n\n/**\n * On click on the X button\n */\nconst onCloseClick = () => {\n if (props.disabled) return;\n emit(\"update:modelValue\", false);\n};\n\nconst overlayAttributes = computed(() => {\n const classes = [\n {\n \"bb-offcanvas bb-offcanvas__overlay\": true,\n \"bb-offcanvas--fullscreen\": props.fullscreen,\n \"bb-offcanvas--open\": open.value,\n \"bb-offcanvas--opening\": opening.value,\n \"bb-offcanvas--closed\": closed.value,\n \"bb-offcanvas--closing\": closing.value,\n [`bb-offcanvas--transition-${props.transition}`]: true,\n [`bb-offcanvas--${props.direction}`]: true,\n },\n props.overlayClasses,\n ].flat();\n const eventListeners = {\n onClick: onOverlayClick,\n onScroll: onOverlayScroll,\n onTouchmove: onOverlayScroll,\n onWheel: onOverlayScroll,\n onKeydown: onOverlayScroll,\n };\n\n const style = {\n transitionDuration: props.transitionDuration / 1000 + \"s\",\n };\n return {\n class: classes,\n style,\n ...eventListeners,\n ...attrs,\n };\n});\n\nconst panelAttributes = computed(() => {\n const classes = [\n {\n \"bb-offcanvas__panel\": true,\n \"bb-offcanvas__panel--compact\": props.compact,\n },\n props.panelClasses,\n ].flat();\n\n const accessibilityAttrs: {\n [key: string]: string | boolean;\n } = {\n role: \"dialog\",\n \"aria-modal\": true,\n };\n\n if (hasRenderedAtLeastOnce.value) {\n accessibilityAttrs[\"aria-labelledby\"] = titleId;\n\n if (props.description)\n accessibilityAttrs[\"aria-describedby\"] = descriptionId;\n }\n\n let maxWidth;\n let maxHeight;\n let height;\n const sizes: Sizes = {\n sm: 384,\n md: 652,\n lg: 896,\n };\n if (props.direction === \"left\" || props.direction === \"right\") {\n if (props.fullscreen) maxWidth = \"100%\";\n else if (typeof props.size === \"number\") maxWidth = props.size + \"px\";\n else if (props.size in sizes)\n maxWidth = sizes[props.size as keyof Sizes] + \"px\";\n else maxWidth = props.size + \"px\";\n } else {\n if (props.fullscreen) height = \"100%\";\n else if (typeof props.size === \"number\") height = props.size + \"px\";\n else if (props.size in sizes)\n height = sizes[props.size as keyof Sizes] + \"px\";\n else if (!Number.isNaN(Number(props.size))) height = props.size + \"px\";\n else if (props.size === \"auto\") height = \"auto\";\n }\n\n const style = {\n maxWidth,\n maxHeight,\n height,\n transitionDuration: props.transitionDuration / 1000 + \"s\",\n };\n\n return {\n class: classes,\n style,\n ...accessibilityAttrs,\n };\n});\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createBlock(_Teleport, { to: \"body\" }, [\n _createElementVNode(\"div\", _mergeProps(overlayAttributes.value, {\n ref_key: \"overlay\",\n ref: overlay\n }), [\n _createElementVNode(\"div\", _mergeProps(panelAttributes.value, {\n ref_key: \"panel\",\n ref: panel\n }), [\n (hasRenderedAtLeastOnce.value)\n ? (_openBlock(), _createElementBlock(\"div\", {\n key: 0,\n class: \"bb-offcanvas__content\",\n ref_key: \"content\",\n ref: content\n }, [\n _renderSlot(_ctx.$slots, \"content\", { close: onCloseClick }, () => [\n _createElementVNode(\"div\", {\n class: \"bb-offcanvas__header\",\n ref_key: \"header\",\n ref: header\n }, [\n _renderSlot(_ctx.$slots, \"header\", {\n titleId: titleId,\n close: onCloseClick,\n title: _ctx.title\n }, () => [\n _createElementVNode(\"span\", {\n class: \"bb-offcanvas__title\",\n id: titleId\n }, [\n _renderSlot(_ctx.$slots, \"title\", { text: _ctx.title }, () => [\n _createTextVNode(_toDisplayString(_ctx.title), 1)\n ])\n ]),\n _createElementVNode(\"span\", _hoisted_1, [\n (_ctx.showClose)\n ? (_openBlock(), _createElementBlock(\"button\", {\n key: 0,\n onClick: onCloseClick,\n type: \"button\"\n }, [\n _renderSlot(_ctx.$slots, \"close\", { text: closeLabel.value }, () => [\n _createElementVNode(\"span\", _hoisted_2, [\n _createElementVNode(\"span\", _hoisted_3, _toDisplayString(closeLabel.value), 1),\n _hoisted_4\n ])\n ])\n ]))\n : _createCommentVNode(\"\", true)\n ])\n ])\n ], 512),\n _createElementVNode(\"div\", {\n class: \"bb-offcanvas__body\",\n ref_key: \"body\",\n ref: body\n }, [\n _renderSlot(_ctx.$slots, \"description\", {\n descriptionId: descriptionId,\n text: _ctx.description\n }, () => [\n (_ctx.description)\n ? (_openBlock(), _createElementBlock(\"div\", {\n key: 0,\n id: descriptionId,\n class: \"bb-offcanvas__description\"\n }, _toDisplayString(_ctx.description), 1))\n : _createCommentVNode(\"\", true)\n ]),\n _renderSlot(_ctx.$slots, \"default\")\n ], 512),\n _hoisted_5,\n _createElementVNode(\"div\", {\n class: \"bb-offcanvas__footer\",\n ref_key: \"footer\",\n ref: footer\n }, [\n _renderSlot(_ctx.$slots, \"footer\")\n ], 512)\n ])\n ], 512))\n : _createCommentVNode(\"\", true)\n ], 16)\n ], 16)\n ]))\n}\n}\n\n})"],"names":["_hoisted_1","_hoisted_2","_hoisted_3","_hoisted_4","_createElementVNode","_hoisted_5","_sfc_main","_defineComponent","__props","__emit","props","emit","titleId","useId","descriptionId","overlay","ref","panel","content","header","body","footer","attrs","useAttrs","activate","deactivate","useFocusTrap","nextTick","closeLabel","computed","open","opening","closed","closing","hasRenderedAtLeastOnce","lastFocusedElement","busy","onMounted","alignToModelValue","watch","onBeforeUnmount","currentlyOpenCanvases","scrollBarWidth","wait","onOverlayScroll","event","onOverlayClick","onCloseClick","overlayAttributes","classes","eventListeners","style","panelAttributes","accessibilityAttrs","maxWidth","maxHeight","height","sizes","_ctx","_cache","_openBlock","_createBlock","_Teleport","_mergeProps","_createElementBlock","_renderSlot","_createTextVNode","_toDisplayString","_createCommentVNode"],"mappings":";;;;AAGA,MAAMA,KAAa,EAAE,OAAO,wBACtBC,KAAa,EAAE,OAAO,iCACtBC,KAAa,EAAE,OAAO,+BACtBC,KAA8CC,gBAAAA,EAAA,QAAQ,EAAE,OAAO,8BAA8B;AAAA,oBAChE,OAAO;AAAA,IACtC,SAAS;AAAA,IACT,MAAM;AAAA,IACN,OAAO;AAAA,EAAA,GACN;AAAA,sBACgC,QAAQ;AAAA,MACvC,GAAG;AAAA,MACH,QAAQ;AAAA,MACR,gBAAgB;AAAA,MAChB,kBAAkB;AAAA,IAAA,CACnB;AAAA,EAAA,CACF;AACH,GAAG,EAAE,GACCC,KAA8CD,gBAAAA,EAAA,OAAO,EAAE,OAAO,EAAC,MAAO,mBAAqB,GAAA,MAAM,EAAE,GAuE7EE,KAAiBC,gBAAAA,EAAA;AAAA,EAC3C,QAAQ;AAAA,EACR,OAAO;AAAA,IACL,YAAY,EAAE,SAAS,SAAS;AAAA,IAChC,SAAS,EAAE,MAAM,QAAQ;AAAA,IACzB,UAAU,EAAE,MAAM,QAAQ;AAAA,IAC1B,OAAO,EAAE,MAAM,QAAQ;AAAA,IACvB,cAAc,EAAE,SAAS,MAAM,GAAG;AAAA,IAClC,gBAAgB,EAAE,SAAS,MAAM,GAAG;AAAA,IACpC,YAAY,EAAE,MAAM,QAAQ;AAAA,IAC5B,WAAW,EAAE,MAAM,SAAS,SAAS,GAAK;AAAA,IAC1C,OAAO,CAAC;AAAA,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AAI;AAAA,kBAAA,CACjC;AAAA,gBAAA,CACF;AAAA,iBACA,GAAG;AAAA,cACNhE,EAAoB,OAAO;AAAA,gBACzB,OAAO;AAAA,gBACP,SAAS;AAAA,gBACT,KAAKgB;AAAA,cAAA,GACJ;AAAA,gBACD6C,EAAYP,EAAK,QAAQ,eAAe;AAAA,kBACtC,eAAA5C;AAAA,kBACA,MAAM4C,EAAK;AAAA,gBAAA,GACV,MAAM;AAAA,kBACNA,EAAK,eACDE,KAAcI,EAAoB,OAAO;AAAA,oBACxC,KAAK;AAAA,oBACL,IAAIlD;AAAA,oBACJ,OAAO;AAAA,kBAAA,GACNqD,EAAiBT,EAAK,WAAW,GAAG,CAAC,KACxCU,EAAoB,IAAI,EAAI;AAAA,gBAAA,CACjC;AAAA,gBACDH,EAAYP,EAAK,QAAQ,SAAS;AAAA,iBACjC,GAAG;AAAA,cACNrD;AAAA,cACAD,EAAoB,OAAO;AAAA,gBACzB,OAAO;AAAA,gBACP,SAAS;AAAA,gBACT,KAAKiB;AAAA,cAAA,GACJ;AAAA,gBACD4C,EAAYP,EAAK,QAAQ,QAAQ;AAAA,iBAChC,GAAG;AAAA,YAAA,CACP;AAAA,UACA,GAAA,GAAG,KACNU,EAAoB,IAAI,EAAI;AAAA,WAC/B,EAAE;AAAA,SACJ,EAAE;AAAA,IAAA,CACN;AAAA,EAEH;AAEA,CAAC;"}
package/dist/index79.js CHANGED
@@ -1,12 +1,12 @@
1
1
  import { defineComponent as N, ref as a, computed as C, openBlock as f, createElementBlock as $, mergeProps as T, createElementVNode as s, renderSlot as B, normalizeProps as V, guardReactiveProps as I, unref as m, createBlock as P, Teleport as R, normalizeClass as U, normalizeStyle as j, withCtx as G, createCommentVNode as D, nextTick as J } from "vue";
2
2
  import { useFloating as K, arrow as Q } from "./index222.js";
3
- import { useFocusTrap as W } from "./index220.js";
3
+ import { useFocusTrap as W } from "./index196.js";
4
4
  import { useId as X } from "./index7.js";
5
5
  import { wait as E } from "./index122.js";
6
6
  import Y from "./index9.js";
7
7
  import "./index10.js";
8
- import { autoUpdate as Z } from "./index207.js";
9
- import { flip as ee, offset as oe, shift as te } from "./index212.js";
8
+ import { autoUpdate as Z } from "./index202.js";
9
+ import { flip as ee, offset as oe, shift as te } from "./index210.js";
10
10
  const ae = ["id"], re = { class: "bb-popover__bubble" }, ne = /* @__PURE__ */ s("span", { class: "bb-popover__close-label" }, "Chiudi", -1), se = /* @__PURE__ */ s("svg", {
11
11
  viewBox: "0 0 24 24",
12
12
  fill: "none",
package/dist/index81.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as a, computed as l, openBlock as s, createElementBlock as n, normalizeClass as m, createElementVNode as i, normalizeStyle as c } from "vue";
2
- import { clamp as p } from "./index213.js";
2
+ import { clamp as p } from "./index198.js";
3
3
  import { getAsPercentageBetween as d } from "./index121.js";
4
4
  const v = /* @__PURE__ */ a({
5
5
  __name: "BbProgress",