bitboss-ui 1.0.44 → 1.0.46

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 (162) hide show
  1. package/dist/composables/useBbConfig.d.ts +13 -0
  2. package/dist/composables/useLogger.d.ts +4 -0
  3. package/dist/index10.js +48 -18
  4. package/dist/index10.js.map +1 -1
  5. package/dist/index103.js +3 -3
  6. package/dist/index111.js +1 -1
  7. package/dist/index113.js +4 -4
  8. package/dist/index115.js +1 -1
  9. package/dist/index119.js +1 -1
  10. package/dist/index12.js +3 -3
  11. package/dist/index120.js +1 -1
  12. package/dist/index121.js +1 -1
  13. package/dist/index123.js +1 -1
  14. package/dist/index127.js +1 -1
  15. package/dist/index128.js +1 -1
  16. package/dist/index129.js +1 -1
  17. package/dist/index133.js +2 -2
  18. package/dist/index16.js +8 -8
  19. package/dist/index18.js +12 -12
  20. package/dist/index198.js +5 -2
  21. package/dist/index198.js.map +1 -1
  22. package/dist/index199.js +16 -3
  23. package/dist/index199.js.map +1 -1
  24. package/dist/index20.js +4 -4
  25. package/dist/index200.js +16 -3
  26. package/dist/index200.js.map +1 -1
  27. package/dist/index201.js +17 -119
  28. package/dist/index201.js.map +1 -1
  29. package/dist/index202.js +17 -131
  30. package/dist/index202.js.map +1 -1
  31. package/dist/index203.js +29 -5
  32. package/dist/index203.js.map +1 -1
  33. package/dist/index204.js +8 -19
  34. package/dist/index204.js.map +1 -1
  35. package/dist/index205.js +2 -2
  36. package/dist/index205.js.map +1 -1
  37. package/dist/index206.js +7 -2
  38. package/dist/index206.js.map +1 -1
  39. package/dist/index207.js +5 -35
  40. package/dist/index207.js.map +1 -1
  41. package/dist/index208.js +2 -174
  42. package/dist/index208.js.map +1 -1
  43. package/dist/index209.js +2 -6
  44. package/dist/index209.js.map +1 -1
  45. package/dist/index210.js +4 -7
  46. package/dist/index210.js.map +1 -1
  47. package/dist/index211.js +2 -368
  48. package/dist/index211.js.map +1 -1
  49. package/dist/index212.js +3 -373
  50. package/dist/index212.js.map +1 -1
  51. package/dist/index213.js +35 -16
  52. package/dist/index213.js.map +1 -1
  53. package/dist/index214.js +6 -16
  54. package/dist/index214.js.map +1 -1
  55. package/dist/index215.js +7 -20
  56. package/dist/index215.js.map +1 -1
  57. package/dist/index216.js +79 -29
  58. package/dist/index216.js.map +1 -1
  59. package/dist/index217.js +121 -8
  60. package/dist/index217.js.map +1 -1
  61. package/dist/index218.js +2 -235
  62. package/dist/index218.js.map +1 -1
  63. package/dist/index219.js +7 -2
  64. package/dist/index219.js.map +1 -1
  65. package/dist/index22.js +2 -2
  66. package/dist/index220.js +368 -4
  67. package/dist/index220.js.map +1 -1
  68. package/dist/index221.js +373 -2
  69. package/dist/index221.js.map +1 -1
  70. package/dist/index222.js +3 -3
  71. package/dist/index222.js.map +1 -1
  72. package/dist/index223.js +3 -7
  73. package/dist/index223.js.map +1 -1
  74. package/dist/index224.js +134 -79
  75. package/dist/index224.js.map +1 -1
  76. package/dist/index225.js +2 -2
  77. package/dist/index225.js.map +1 -1
  78. package/dist/index226.js +172 -8
  79. package/dist/index226.js.map +1 -1
  80. package/dist/index227.js +235 -2
  81. package/dist/index227.js.map +1 -1
  82. package/dist/index228.js +10 -6
  83. package/dist/index228.js.map +1 -1
  84. package/dist/index229.js +2 -17
  85. package/dist/index229.js.map +1 -1
  86. package/dist/index230.js +8 -78
  87. package/dist/index230.js.map +1 -1
  88. package/dist/index231.js +23 -9
  89. package/dist/index231.js.map +1 -1
  90. package/dist/index232.js +295 -23
  91. package/dist/index232.js.map +1 -1
  92. package/dist/index233.js +5 -223
  93. package/dist/index233.js.map +1 -1
  94. package/dist/index234.js +2 -258
  95. package/dist/index234.js.map +1 -1
  96. package/dist/index235.js +2 -6
  97. package/dist/index235.js.map +1 -1
  98. package/dist/index236.js +2 -2
  99. package/dist/index237.js +2 -295
  100. package/dist/index237.js.map +1 -1
  101. package/dist/index238.js +2 -2
  102. package/dist/index24.js +1 -1
  103. package/dist/index240.js +6 -106
  104. package/dist/index240.js.map +1 -1
  105. package/dist/index241.js +15 -433
  106. package/dist/index241.js.map +1 -1
  107. package/dist/index242.js +3 -116
  108. package/dist/index242.js.map +1 -1
  109. package/dist/index243.js +424 -189
  110. package/dist/index243.js.map +1 -1
  111. package/dist/index244.js +89 -2
  112. package/dist/index244.js.map +1 -1
  113. package/dist/index245.js +79 -2
  114. package/dist/index245.js.map +1 -1
  115. package/dist/index246.js +2 -2
  116. package/dist/index246.js.map +1 -1
  117. package/dist/index247.js +69 -2
  118. package/dist/index247.js.map +1 -1
  119. package/dist/index248.js +5 -4
  120. package/dist/index248.js.map +1 -1
  121. package/dist/index249.js +200 -2
  122. package/dist/index249.js.map +1 -1
  123. package/dist/index250.js +224 -69
  124. package/dist/index250.js.map +1 -1
  125. package/dist/index251.js +258 -5
  126. package/dist/index251.js.map +1 -1
  127. package/dist/index252.js +105 -88
  128. package/dist/index252.js.map +1 -1
  129. package/dist/index253.js +15 -2
  130. package/dist/index253.js.map +1 -1
  131. package/dist/index254.js +2 -4
  132. package/dist/index254.js.map +1 -1
  133. package/dist/index255.js +117 -4
  134. package/dist/index255.js.map +1 -1
  135. package/dist/index256.js +2 -61
  136. package/dist/index256.js.map +1 -1
  137. package/dist/index257.js +4 -15
  138. package/dist/index257.js.map +1 -1
  139. package/dist/index258.js +4 -2
  140. package/dist/index258.js.map +1 -1
  141. package/dist/index259.js +64 -0
  142. package/dist/index259.js.map +1 -0
  143. package/dist/index26.js +2 -2
  144. package/dist/index260.js +5 -0
  145. package/dist/index260.js.map +1 -0
  146. package/dist/index30.js +3 -3
  147. package/dist/index32.js +9 -9
  148. package/dist/index34.js +3 -3
  149. package/dist/index36.js +2 -2
  150. package/dist/index40.js +2 -2
  151. package/dist/index50.js +1 -1
  152. package/dist/index52.js +1 -1
  153. package/dist/index56.js +1 -1
  154. package/dist/index68.js +5 -5
  155. package/dist/index72.js +2 -2
  156. package/dist/index74.js +1 -1
  157. package/dist/index77.js +2 -2
  158. package/dist/index79.js +1 -1
  159. package/dist/index81.js +4 -4
  160. package/dist/index83.js +1 -1
  161. package/dist/style.css +1 -1
  162. package/package.json +2 -2
@@ -0,0 +1,13 @@
1
+ type Config = {
2
+ inertiaLinkName: string;
3
+ nuxtLinkName: string;
4
+ };
5
+ export declare const _config: {
6
+ [x: string]: any;
7
+ inertiaLinkName: string;
8
+ nuxtLinkName: string;
9
+ };
10
+ export declare const useBbConfig: () => {
11
+ setConfig: (config: Partial<Config>) => void;
12
+ };
13
+ export {};
@@ -0,0 +1,4 @@
1
+ export declare const useLogger: () => {
2
+ warn: (message: string) => void;
3
+ error: (message: string) => void;
4
+ };
package/dist/index10.js CHANGED
@@ -1,5 +1,7 @@
1
- import { defineComponent as v, getCurrentInstance as c, computed as n, resolveComponent as u, openBlock as y, createBlock as g, resolveDynamicComponent as k, mergeProps as C, withCtx as h, renderSlot as m, createTextVNode as S, toDisplayString as x } from "vue";
2
- const A = /* @__PURE__ */ v({
1
+ import { defineComponent as y, getCurrentInstance as d, computed as s, resolveComponent as p, openBlock as k, createBlock as h, resolveDynamicComponent as C, mergeProps as x, withCtx as S, renderSlot as L, createTextVNode as B, toDisplayString as N } from "vue";
2
+ import { _config as n } from "./index206.js";
3
+ import { useLogger as b } from "./index207.js";
4
+ const A = /* @__PURE__ */ y({
3
5
  __name: "BaseButton",
4
6
  props: {
5
7
  activeClass: {},
@@ -29,31 +31,59 @@ const A = /* @__PURE__ */ v({
29
31
  to: {},
30
32
  type: { default: "button" }
31
33
  },
32
- setup(d) {
33
- var o, s, l, i;
34
- const e = d, r = !!((s = (o = c()) == null ? void 0 : o.proxy) != null && s.$inertia), p = !!((i = (l = c()) == null ? void 0 : l.proxy) != null && i.$nuxt), a = n(() => e.href || e.to && e.disabled ? r && !e.disabled && !e.target ? u("Link") : "a" : e.to ? p ? u("NuxtLink") : "router-link" : e.tag), b = n(() => ({
34
+ setup(f) {
35
+ var i, l, u, c;
36
+ const t = f, r = !!((l = (i = d()) == null ? void 0 : i.proxy) != null && l.$inertia), m = !!((c = (u = d()) == null ? void 0 : u.proxy) != null && c.$nuxt), a = s(() => {
37
+ if (t.href || t.to && t.disabled) {
38
+ if (r && !t.disabled && !t.target) {
39
+ const e = p(n.inertiaLinkName);
40
+ if (typeof e == "string") {
41
+ const { warn: o } = b();
42
+ o(
43
+ `Inertia link component "${n.inertiaLinkName}" could not be resolved. Ensure you app registers a link component with the name "${n.inertiaLinkName}" or set bitboss-ui config key "inertiaLinkName" to the correct value globally. Please visit ${n.documentationURL}/getting-started to resolve setup issues in bitboss-ui.`
44
+ );
45
+ }
46
+ return e;
47
+ }
48
+ return "a";
49
+ }
50
+ if (t.to) {
51
+ if (m) {
52
+ const e = p(n.nuxtLinkName);
53
+ if (typeof e == "string") {
54
+ const { warn: o } = b();
55
+ o(
56
+ `Nuxt link component "${n.nuxtLinkName}" could not be resolved. Ensure you app registers a link component with the name "${n.nuxtLinkName}" or set bitboss-ui config key "nuxtLInkName" to the correct value globally. Please visit ${n.documentationURL}/getting-started to resolve setup issues in bitboss-ui.`
57
+ );
58
+ }
59
+ return e;
60
+ }
61
+ return "router-link";
62
+ }
63
+ return t.tag;
64
+ }), g = s(() => ({
35
65
  "base-btn": !0,
36
- "base-btn--block": e.block,
37
- "base-btn--disabled": e.disabled
38
- })), f = n(() => {
39
- const t = {};
40
- switch (a.value === "button" ? (t.disabled = e.disabled, t.type = e.type) : a.value === "a" || r && typeof a.value != "string" && a.value.name === "Link" ? e.disabled ? (t["aria-disabled"] = !0, t.role = "link") : (t.href = e.href, t.target = e.target, r && (t.data = e.data, t.headers = e.headers, t.method = e.method, t.onBefore = e.onBefore, t.onCancel = e.onCancel, t.onCancelToken = e.onCancelToken, t.onFinish = e.onFinish, t.only = e.only, t.onProgress = e.onProgress, t.onStart = e.onStart, t.onSuccess = e.onSuccess, t.preserveScroll = e.preserveScroll, t.preserveState = e.preserveState, t.queryStringArrayFormat = e.queryStringArrayFormat, t.replace = e.replace)) : (a.value === "router-link" || typeof a.value != "string" && a.value.name === "NuxtLink") && (t.activeClass = e.activeClass, t.ariaCurrentValue = e.ariaCurrentValue, t.exactActiveClass = e.exactActiveClass, t.replace = e.replace, t.target = e.target, t.to = e.to), a.value) {
66
+ "base-btn--block": t.block,
67
+ "base-btn--disabled": t.disabled
68
+ })), v = s(() => {
69
+ const e = {};
70
+ switch (a.value === "button" ? (e.disabled = t.disabled, e.type = t.type) : a.value === "a" || r && typeof a.value != "string" && a.value.name === "Link" ? t.disabled ? (e["aria-disabled"] = !0, e.role = "link") : (e.href = t.href, e.target = t.target, r && (e.data = t.data, e.headers = t.headers, e.method = t.method, e.onBefore = t.onBefore, e.onCancel = t.onCancel, e.onCancelToken = t.onCancelToken, e.onFinish = t.onFinish, e.only = t.only, e.onProgress = t.onProgress, e.onStart = t.onStart, e.onSuccess = t.onSuccess, e.preserveScroll = t.preserveScroll, e.preserveState = t.preserveState, e.queryStringArrayFormat = t.queryStringArrayFormat, e.replace = t.replace)) : (a.value === "router-link" || typeof a.value != "string" && a.value.name === "NuxtLink") && (e.activeClass = t.activeClass, e.ariaCurrentValue = t.ariaCurrentValue, e.exactActiveClass = t.exactActiveClass, e.replace = t.replace, e.target = t.target, e.to = t.to), a.value) {
41
71
  case "button":
42
- t.disabled = e.disabled, t.type = e.type;
72
+ e.disabled = t.disabled, e.type = t.type;
43
73
  break;
44
74
  case "a":
45
- e.disabled ? (t["aria-disabled"] = !0, t.role = "link") : t.href = e.href;
75
+ t.disabled ? (e["aria-disabled"] = !0, e.role = "link") : e.href = t.href;
46
76
  break;
47
77
  case "router-link":
48
- t.to = e.to;
78
+ e.to = t.to;
49
79
  break;
50
80
  }
51
- return t;
81
+ return e;
52
82
  });
53
- return (t, B) => (y(), g(k(a.value), C({ class: b.value }, f.value), {
54
- default: h(() => [
55
- m(t.$slots, "default", {}, () => [
56
- S(x(t.text), 1)
83
+ return (e, o) => (k(), h(C(a.value), x({ class: g.value }, v.value), {
84
+ default: S(() => [
85
+ L(e.$slots, "default", {}, () => [
86
+ B(N(e.text), 1)
57
87
  ])
58
88
  ]),
59
89
  _: 3
@@ -1 +1 @@
1
- {"version":3,"file":"index10.js","sources":["../src/components/BaseButton/BaseButton.vue"],"sourcesContent":["<template>\n\t<component :is=\"tag\" :class=\"classes\" v-bind=\"attributes\">\n\t\t<slot>{{ text }}</slot>\n\t</component>\n</template>\n\n<script setup lang=\"ts\">\nimport { computed, getCurrentInstance, resolveComponent } from 'vue';\nimport type { RouteLocationRaw } from 'vue-router';\n\nexport type BaseButtonProps = {\n\t/**\n\t * Class to apply when the link is active\n\t */\n\tactiveClass?: string;\n\n\t/**\n\t * Value passed to the attribute `aria-current` when the link is exact active.\n\t *\n\t * @defaultValue `'page'`\n\t */\n\tariaCurrentValue?:\n\t\t| 'page'\n\t\t| 'step'\n\t\t| 'location'\n\t\t| 'date'\n\t\t| 'time'\n\t\t| 'true'\n\t\t| 'false';\n\n\t/**\n\t * Displays the component as full width.\n\t */\n\tblock?: boolean;\n\n\tdata?: object;\n\n\t/**\n\t * Disables the component\n\t */\n\tdisabled?: boolean;\n\n\t/**\n\t * Class to apply when the link is exact active\n\t */\n\texactActiveClass?: string;\n\n\theaders?: object;\n\n\t/**\n\t * Returns the hyperlink's URL.\n\t *\n\t * Can be set, to change the URL.\n\t */\n\thref?: HTMLAnchorElement['href'];\n\n\tmethod?: 'get' | 'post' | 'put' | 'patch' | 'delete';\n\n\tonBefore?: () => void;\n\n\tonCancel?: () => void;\n\n\tonCancelToken?: (cancelToken: import('axios').CancelTokenSource) => void;\n\n\tonFinish?: () => void;\n\n\tonly?: string[];\n\n\tonProgress?: (progress: { percentage: number | undefined }) => void;\n\n\tonStart?: () => void;\n\n\tonSuccess?: () => void;\n\n\tpreserveScroll?: boolean | ((props: { [key: string]: unknown }) => boolean);\n\n\tpreserveState?:\n\t\t| boolean\n\t\t| ((props: { [key: string]: unknown }) => boolean)\n\t\t| null;\n\n\tqueryStringArrayFormat?: 'brackets' | 'indices';\n\n\t/**\n\t * Calls `router.replace` instead of `router.push`.\n\t */\n\treplace?: boolean;\n\n\t/**\n\t * Any HTML tag corresponding to a non-void HTMl element.\n\t */\n\ttag?: string;\n\n\t/**\n\t * Sets or retrieves the window or frame at which to target content.\n\t */\n\ttarget?: HTMLAnchorElement['target'];\n\n\t/**\n\t * Text content of the component.\n\t */\n\ttext?: string;\n\n\t/**\n\t * Route Location the link should navigate to when clicked on.\n\t */\n\tto?: RouteLocationRaw;\n\n\t/**\n\t * Gets the classification and default behavior of the button.\n\t */\n\ttype?: HTMLButtonElement['type'];\n};\n\nconst props = withDefaults(defineProps<BaseButtonProps>(), {\n\ttag: 'button',\n\ttype: 'button',\n});\n\ndefineSlots<{\n\tdefault?: (props: object) => any;\n}>();\n\n/* Ignore because possibly undefined */\n// @ts-expect-error possibly undef\nconst isInertia = !!getCurrentInstance()?.proxy?.$inertia;\n\n// @ts-expect-error possibly undef\nconst isNuxt = !!getCurrentInstance()?.proxy?.$nuxt;\n\nconst tag = computed(() => {\n\t// For disabled links always render a\n\tif (props.href || (props.to && props.disabled)) {\n\t\t// Prevent rendering inertia links if target is passed (inertia doesn't support external links)\n\t\tif (isInertia && !props.disabled && !props.target)\n\t\t\treturn resolveComponent('Link');\n\t\treturn 'a';\n\t}\n\tif (props.to) {\n\t\tif (isNuxt) return resolveComponent('NuxtLink');\n\t\treturn 'router-link';\n\t}\n\treturn props.tag;\n});\n\nconst classes = computed(() => ({\n\t'base-btn': true,\n\t'base-btn--block': props.block,\n\t'base-btn--disabled': props.disabled,\n}));\n\nconst attributes = computed(() => {\n\ttype PossibleAttributes = {\n\t\tactiveClass: BaseButtonProps['activeClass'];\n\n\t\t'aria-disabled': boolean;\n\n\t\tariaCurrentValue: BaseButtonProps['ariaCurrentValue'];\n\n\t\tdata: BaseButtonProps['data'];\n\n\t\tdisabled: boolean;\n\n\t\texactActiveClass: BaseButtonProps['exactActiveClass'];\n\n\t\theaders: BaseButtonProps['headers'];\n\n\t\thref: string;\n\n\t\tmethod: BaseButtonProps['method'];\n\n\t\tonBefore: BaseButtonProps['onBefore'];\n\n\t\tonCancel: BaseButtonProps['onCancel'];\n\n\t\tonCancelToken: BaseButtonProps['onCancelToken'];\n\n\t\tonFinish: BaseButtonProps['onFinish'];\n\n\t\tonly: BaseButtonProps['only'];\n\n\t\tonProgress: BaseButtonProps['onProgress'];\n\n\t\tonStart: BaseButtonProps['onStart'];\n\n\t\tonSuccess: BaseButtonProps['onSuccess'];\n\n\t\tpreserveScroll: BaseButtonProps['preserveScroll'];\n\n\t\tpreserveState: BaseButtonProps['preserveState'];\n\n\t\tqueryStringArrayFormat: BaseButtonProps['queryStringArrayFormat'];\n\n\t\treplace: BaseButtonProps['replace'];\n\n\t\trole: string;\n\n\t\tstyle: { [rule: string]: string };\n\n\t\ttarget: string;\n\n\t\tto: BaseButtonProps['to'];\n\n\t\ttype: string;\n\t};\n\tconst initial: Partial<PossibleAttributes> = {};\n\n\tif (tag.value === 'button') {\n\t\tinitial.disabled = props.disabled;\n\t\tinitial.type = props.type;\n\t} else if (\n\t\ttag.value === 'a' ||\n\t\t(isInertia && typeof tag.value !== 'string' && tag.value.name === 'Link')\n\t) {\n\t\t// When rendering as anchor prevent navigation if disabled\n\t\t// https://getbootstrap.com/docs/4.0/components/buttons/#disabled-state\n\t\tif (props.disabled) {\n\t\t\tinitial['aria-disabled'] = true;\n\t\t\tinitial.role = 'link';\n\t\t} else {\n\t\t\t// Only attach the href to active links\n\t\t\t// https://www.scottohara.me/blog/2021/05/28/disabled-links.html\n\t\t\tinitial.href = props.href;\n\t\t\tinitial.target = props.target;\n\n\t\t\tif (isInertia) {\n\t\t\t\tinitial.data = props.data;\n\t\t\t\tinitial.headers = props.headers;\n\t\t\t\tinitial.method = props.method;\n\t\t\t\tinitial.onBefore = props.onBefore;\n\t\t\t\tinitial.onCancel = props.onCancel;\n\t\t\t\tinitial.onCancelToken = props.onCancelToken;\n\t\t\t\tinitial.onFinish = props.onFinish;\n\t\t\t\tinitial.only = props.only;\n\t\t\t\tinitial.onProgress = props.onProgress;\n\t\t\t\tinitial.onStart = props.onStart;\n\t\t\t\tinitial.onSuccess = props.onSuccess;\n\t\t\t\tinitial.preserveScroll = props.preserveScroll;\n\t\t\t\tinitial.preserveState = props.preserveState;\n\t\t\t\tinitial.queryStringArrayFormat = props.queryStringArrayFormat;\n\t\t\t\tinitial.replace = props.replace;\n\t\t\t}\n\t\t}\n\t} else if (\n\t\ttag.value === 'router-link' ||\n\t\t(typeof tag.value !== 'string' && tag.value.name === 'NuxtLink')\n\t) {\n\t\tinitial.activeClass = props.activeClass;\n\t\tinitial.ariaCurrentValue = props.ariaCurrentValue;\n\t\tinitial.exactActiveClass = props.exactActiveClass;\n\t\tinitial.replace = props.replace;\n\t\tinitial.target = props.target;\n\t\tinitial.to = props.to;\n\t}\n\n\tswitch (tag.value) {\n\t\tcase 'button':\n\t\t\tinitial.disabled = props.disabled;\n\t\t\tinitial.type = props.type;\n\t\t\tbreak;\n\t\tcase 'a':\n\t\t\t// When rendering as anchor prevent navigation if disabled\n\t\t\t// https://getbootstrap.com/docs/4.0/components/buttons/#disabled-state\n\t\t\tif (props.disabled) {\n\t\t\t\tinitial['aria-disabled'] = true;\n\t\t\t\tinitial.role = 'link';\n\t\t\t} else {\n\t\t\t\t// Only attach the href to active links\n\t\t\t\t// https://www.scottohara.me/blog/2021/05/28/disabled-links.html\n\t\t\t\tinitial.href = props.href;\n\t\t\t}\n\t\t\tbreak;\n\t\tcase 'router-link':\n\t\t\tinitial.to = props.to;\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t}\n\treturn initial;\n});\n</script>\n<style lang=\"postcss\">\n@import '@/assets/css/BaseButton';\n</style>\n"],"names":["props","__props","isInertia","_b","_a","getCurrentInstance","isNuxt","_d","_c","tag","computed","resolveComponent","classes","attributes","initial"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkHA,UAAMA,IAAQC,GAWRC,IAAY,CAAC,GAACC,KA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AUd,EAAM,aAI1BS,EAAI,UAAU,iBACb,OAAOA,EAAI,SAAU,YAAYA,EAAI,MAAM,SAAS,gBAErDK,EAAQ,cAAcd,EAAM,aAC5Bc,EAAQ,mBAAmBd,EAAM,kBACjCc,EAAQ,mBAAmBd,EAAM,kBACjCc,EAAQ,UAAUd,EAAM,SACxBc,EAAQ,SAASd,EAAM,QACvBc,EAAQ,KAAKd,EAAM,KAGZS,EAAI,OAAO;AAAA,QAClB,KAAK;AACJ,UAAAK,EAAQ,WAAWd,EAAM,UACzBc,EAAQ,OAAOd,EAAM;AACrB;AAAA,QACD,KAAK;AAGJ,UAAIA,EAAM,YACTc,EAAQ,eAAe,IAAI,IAC3BA,EAAQ,OAAO,UAIfA,EAAQ,OAAOd,EAAM;AAEtB;AAAA,QACD,KAAK;AACJ,UAAAc,EAAQ,KAAKd,EAAM;AACnB;AAAA,MAGF;AACO,aAAAc;AAAA,IAAA,CACP;;;;;;;;;;;"}
1
+ {"version":3,"file":"index10.js","sources":["../src/components/BaseButton/BaseButton.vue"],"sourcesContent":["<template>\n\t<component :is=\"tag\" :class=\"classes\" v-bind=\"attributes\">\n\t\t<slot>{{ text }}</slot>\n\t</component>\n</template>\n\n<script setup lang=\"ts\">\nimport { computed, getCurrentInstance, resolveComponent } from 'vue';\nimport type { RouteLocationRaw } from 'vue-router';\nimport { _config } from '@/composables/useBbConfig';\nimport { useLogger } from '@/composables/useLogger';\n\nexport type BaseButtonProps = {\n\t/**\n\t * Class to apply when the link is active\n\t */\n\tactiveClass?: string;\n\n\t/**\n\t * Value passed to the attribute `aria-current` when the link is exact active.\n\t *\n\t * @defaultValue `'page'`\n\t */\n\tariaCurrentValue?:\n\t\t| 'page'\n\t\t| 'step'\n\t\t| 'location'\n\t\t| 'date'\n\t\t| 'time'\n\t\t| 'true'\n\t\t| 'false';\n\n\t/**\n\t * Displays the component as full width.\n\t */\n\tblock?: boolean;\n\n\tdata?: object;\n\n\t/**\n\t * Disables the component\n\t */\n\tdisabled?: boolean;\n\n\t/**\n\t * Class to apply when the link is exact active\n\t */\n\texactActiveClass?: string;\n\n\theaders?: object;\n\n\t/**\n\t * Returns the hyperlink's URL.\n\t *\n\t * Can be set, to change the URL.\n\t */\n\thref?: HTMLAnchorElement['href'];\n\n\tmethod?: 'get' | 'post' | 'put' | 'patch' | 'delete';\n\n\tonBefore?: () => void;\n\n\tonCancel?: () => void;\n\n\tonCancelToken?: (cancelToken: import('axios').CancelTokenSource) => void;\n\n\tonFinish?: () => void;\n\n\tonly?: string[];\n\n\tonProgress?: (progress: { percentage: number | undefined }) => void;\n\n\tonStart?: () => void;\n\n\tonSuccess?: () => void;\n\n\tpreserveScroll?: boolean | ((props: { [key: string]: unknown }) => boolean);\n\n\tpreserveState?:\n\t\t| boolean\n\t\t| ((props: { [key: string]: unknown }) => boolean)\n\t\t| null;\n\n\tqueryStringArrayFormat?: 'brackets' | 'indices';\n\n\t/**\n\t * Calls `router.replace` instead of `router.push`.\n\t */\n\treplace?: boolean;\n\n\t/**\n\t * Any HTML tag corresponding to a non-void HTMl element.\n\t */\n\ttag?: string;\n\n\t/**\n\t * Sets or retrieves the window or frame at which to target content.\n\t */\n\ttarget?: HTMLAnchorElement['target'];\n\n\t/**\n\t * Text content of the component.\n\t */\n\ttext?: string;\n\n\t/**\n\t * Route Location the link should navigate to when clicked on.\n\t */\n\tto?: RouteLocationRaw;\n\n\t/**\n\t * Gets the classification and default behavior of the button.\n\t */\n\ttype?: HTMLButtonElement['type'];\n};\n\nconst props = withDefaults(defineProps<BaseButtonProps>(), {\n\ttag: 'button',\n\ttype: 'button',\n});\n\ndefineSlots<{\n\tdefault?: (props: object) => any;\n}>();\n\n/* Ignore because possibly undefined */\n// @ts-expect-error possibly undef\nconst isInertia = !!getCurrentInstance()?.proxy?.$inertia;\n\n// @ts-expect-error possibly undef\nconst isNuxt = !!getCurrentInstance()?.proxy?.$nuxt;\n\nconst tag = computed(() => {\n\t// For disabled links always render a\n\tif (props.href || (props.to && props.disabled)) {\n\t\t// Prevent rendering inertia links if target is passed (inertia doesn't support external links)\n\t\tif (isInertia && !props.disabled && !props.target) {\n\t\t\tconst resolved = resolveComponent(_config.inertiaLinkName);\n\t\t\tif (typeof resolved === 'string') {\n\t\t\t\tconst { warn } = useLogger();\n\t\t\t\twarn(\n\t\t\t\t\t`Inertia link component \"${_config.inertiaLinkName}\" could not be resolved. Ensure you app registers a link component with the name \"${_config.inertiaLinkName}\" or set bitboss-ui config key \"inertiaLinkName\" to the correct value globally. Please visit ${_config.documentationURL}/getting-started to resolve setup issues in bitboss-ui.`\n\t\t\t\t);\n\t\t\t}\n\t\t\treturn resolved;\n\t\t}\n\n\t\treturn 'a';\n\t}\n\tif (props.to) {\n\t\tif (isNuxt) {\n\t\t\tconst resolved = resolveComponent(_config.nuxtLinkName);\n\t\t\tif (typeof resolved === 'string') {\n\t\t\t\tconst { warn } = useLogger();\n\t\t\t\twarn(\n\t\t\t\t\t`Nuxt link component \"${_config.nuxtLinkName}\" could not be resolved. Ensure you app registers a link component with the name \"${_config.nuxtLinkName}\" or set bitboss-ui config key \"nuxtLInkName\" to the correct value globally. Please visit ${_config.documentationURL}/getting-started to resolve setup issues in bitboss-ui.`\n\t\t\t\t);\n\t\t\t}\n\t\t\treturn resolved;\n\t\t}\n\t\treturn 'router-link';\n\t}\n\treturn props.tag;\n});\n\nconst classes = computed(() => ({\n\t'base-btn': true,\n\t'base-btn--block': props.block,\n\t'base-btn--disabled': props.disabled,\n}));\n\nconst attributes = computed(() => {\n\ttype PossibleAttributes = {\n\t\tactiveClass: BaseButtonProps['activeClass'];\n\n\t\t'aria-disabled': boolean;\n\n\t\tariaCurrentValue: BaseButtonProps['ariaCurrentValue'];\n\n\t\tdata: BaseButtonProps['data'];\n\n\t\tdisabled: boolean;\n\n\t\texactActiveClass: BaseButtonProps['exactActiveClass'];\n\n\t\theaders: BaseButtonProps['headers'];\n\n\t\thref: string;\n\n\t\tmethod: BaseButtonProps['method'];\n\n\t\tonBefore: BaseButtonProps['onBefore'];\n\n\t\tonCancel: BaseButtonProps['onCancel'];\n\n\t\tonCancelToken: BaseButtonProps['onCancelToken'];\n\n\t\tonFinish: BaseButtonProps['onFinish'];\n\n\t\tonly: BaseButtonProps['only'];\n\n\t\tonProgress: BaseButtonProps['onProgress'];\n\n\t\tonStart: BaseButtonProps['onStart'];\n\n\t\tonSuccess: BaseButtonProps['onSuccess'];\n\n\t\tpreserveScroll: BaseButtonProps['preserveScroll'];\n\n\t\tpreserveState: BaseButtonProps['preserveState'];\n\n\t\tqueryStringArrayFormat: BaseButtonProps['queryStringArrayFormat'];\n\n\t\treplace: BaseButtonProps['replace'];\n\n\t\trole: string;\n\n\t\tstyle: { [rule: string]: string };\n\n\t\ttarget: string;\n\n\t\tto: BaseButtonProps['to'];\n\n\t\ttype: string;\n\t};\n\tconst initial: Partial<PossibleAttributes> = {};\n\n\tif (tag.value === 'button') {\n\t\tinitial.disabled = props.disabled;\n\t\tinitial.type = props.type;\n\t} else if (\n\t\ttag.value === 'a' ||\n\t\t(isInertia && typeof tag.value !== 'string' && tag.value.name === 'Link')\n\t) {\n\t\t// When rendering as anchor prevent navigation if disabled\n\t\t// https://getbootstrap.com/docs/4.0/components/buttons/#disabled-state\n\t\tif (props.disabled) {\n\t\t\tinitial['aria-disabled'] = true;\n\t\t\tinitial.role = 'link';\n\t\t} else {\n\t\t\t// Only attach the href to active links\n\t\t\t// https://www.scottohara.me/blog/2021/05/28/disabled-links.html\n\t\t\tinitial.href = props.href;\n\t\t\tinitial.target = props.target;\n\n\t\t\tif (isInertia) {\n\t\t\t\tinitial.data = props.data;\n\t\t\t\tinitial.headers = props.headers;\n\t\t\t\tinitial.method = props.method;\n\t\t\t\tinitial.onBefore = props.onBefore;\n\t\t\t\tinitial.onCancel = props.onCancel;\n\t\t\t\tinitial.onCancelToken = props.onCancelToken;\n\t\t\t\tinitial.onFinish = props.onFinish;\n\t\t\t\tinitial.only = props.only;\n\t\t\t\tinitial.onProgress = props.onProgress;\n\t\t\t\tinitial.onStart = props.onStart;\n\t\t\t\tinitial.onSuccess = props.onSuccess;\n\t\t\t\tinitial.preserveScroll = props.preserveScroll;\n\t\t\t\tinitial.preserveState = props.preserveState;\n\t\t\t\tinitial.queryStringArrayFormat = props.queryStringArrayFormat;\n\t\t\t\tinitial.replace = props.replace;\n\t\t\t}\n\t\t}\n\t} else if (\n\t\ttag.value === 'router-link' ||\n\t\t(typeof tag.value !== 'string' && tag.value.name === 'NuxtLink')\n\t) {\n\t\tinitial.activeClass = props.activeClass;\n\t\tinitial.ariaCurrentValue = props.ariaCurrentValue;\n\t\tinitial.exactActiveClass = props.exactActiveClass;\n\t\tinitial.replace = props.replace;\n\t\tinitial.target = props.target;\n\t\tinitial.to = props.to;\n\t}\n\n\tswitch (tag.value) {\n\t\tcase 'button':\n\t\t\tinitial.disabled = props.disabled;\n\t\t\tinitial.type = props.type;\n\t\t\tbreak;\n\t\tcase 'a':\n\t\t\t// When rendering as anchor prevent navigation if disabled\n\t\t\t// https://getbootstrap.com/docs/4.0/components/buttons/#disabled-state\n\t\t\tif (props.disabled) {\n\t\t\t\tinitial['aria-disabled'] = true;\n\t\t\t\tinitial.role = 'link';\n\t\t\t} else {\n\t\t\t\t// Only attach the href to active links\n\t\t\t\t// https://www.scottohara.me/blog/2021/05/28/disabled-links.html\n\t\t\t\tinitial.href = props.href;\n\t\t\t}\n\t\t\tbreak;\n\t\tcase 'router-link':\n\t\t\tinitial.to = props.to;\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t}\n\treturn initial;\n});\n</script>\n<style lang=\"postcss\">\n@import '@/assets/css/BaseButton';\n</style>\n"],"names":["props","__props","isInertia","_b","_a","getCurrentInstance","isNuxt","_d","_c","tag","computed","resolved","resolveComponent","_config","warn","useLogger","classes","attributes","initial"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoHA,UAAMA,IAAQC,GAWRC,IAAY,CAAC,GAACC,KAAAC,IAAAC,EAAA,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12 +1,12 @@
1
1
  import { defineComponent as ie, ref as q, computed as p, onMounted as de, watch as J, openBlock as n, createBlock as be, resolveDynamicComponent as re, normalizeClass as f, withCtx as ue, createElementBlock as d, toDisplayString as m, createCommentVNode as v, createElementVNode as o, renderSlot as y, unref as C, createVNode as j, Fragment as N, renderList as S, createTextVNode as pe, mergeProps as fe } from "vue";
2
- import { add as me } from "./index249.js";
3
- import { clamp as ye } from "./index198.js";
2
+ import { add as me } from "./index246.js";
3
+ import { clamp as ye } from "./index208.js";
4
4
  import { deepEqual as K } from "./index125.js";
5
5
  import { isNil as x } from "./index122.js";
6
6
  import { isNotNil as he } from "./index126.js";
7
7
  import { useId as _e } from "./index8.js";
8
8
  import { useItemValue as ke } from "./index128.js";
9
- import { when as ge } from "./index220.js";
9
+ import { when as ge } from "./index210.js";
10
10
  import Q from "./index12.js";
11
11
  import "./index13.js";
12
12
  import ve from "./index26.js";
package/dist/index111.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as s, openBlock as e, createBlock as o, Teleport as l, createElementVNode as c, normalizeClass as m, createVNode as i, TransitionGroup as p, withCtx as u, createElementBlock as d, Fragment as f, renderList as _, unref as r, mergeProps as b } from "vue";
2
2
  import { state as k, useToast as C } from "./index6.js";
3
- import B from "./index250.js";
3
+ import B from "./index247.js";
4
4
  const N = /* @__PURE__ */ s({
5
5
  __name: "BbToast",
6
6
  props: {
package/dist/index113.js CHANGED
@@ -1,12 +1,12 @@
1
1
  import { defineComponent as A, ref as o, computed as E, openBlock as b, createElementBlock as $, mergeProps as D, createElementVNode as i, renderSlot as L, normalizeProps as H, guardReactiveProps as I, unref as s, createBlock as M, Teleport as R, normalizeClass as U, normalizeStyle as j, withCtx as q, createCommentVNode as O } from "vue";
2
- import { useFloating as G, arrow as J } from "./index201.js";
2
+ import { useFloating as G, arrow as J } from "./index217.js";
3
3
  import { useId as K } from "./index8.js";
4
4
  import { wait as P } from "./index124.js";
5
5
  import Q from "./index10.js";
6
6
  import "./index11.js";
7
- import { throttle as v } from "./index222.js";
8
- import { waitFor as W } from "./index209.js";
9
- import { autoUpdate as X, flip as Y, shift as Z } from "./index211.js";
7
+ import { throttle as v } from "./index212.js";
8
+ import { waitFor as W } from "./index214.js";
9
+ import { autoUpdate as X, flip as Y, shift as Z } from "./index220.js";
10
10
  const ee = { class: "bb-tooltip__bubble" }, te = /* @__PURE__ */ i("svg", {
11
11
  fill: "none",
12
12
  viewBox: "0 0 24 24",
package/dist/index115.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as $, computed as g, resolveComponent as y, openBlock as f, createElementBlock as i, Fragment as v, renderList as h, normalizeClass as b, createElementVNode as s, renderSlot as p, createVNode as k, createSlots as B, withCtx as C, normalizeProps as T, guardReactiveProps as _ } from "vue";
2
- import { flattenTree as P } from "./index251.js";
2
+ import { flattenTree as P } from "./index248.js";
3
3
  const w = { class: "bb-tree-row" }, z = { class: "bb-tree-main-content" }, I = /* @__PURE__ */ $({
4
4
  __name: "BbTree",
5
5
  props: {
package/dist/index119.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as m, getCurrentInstance as d, inject as x, computed as l, ref as y, watchEffect as _, openBlock as b, createElementBlock as h, mergeProps as w } from "vue";
2
- import { isCssColor as z } from "./index219.js";
2
+ import { isCssColor as z } from "./index209.js";
3
3
  const g = ["innerHTML"], $ = /* @__PURE__ */ m({
4
4
  __name: "BbIcon",
5
5
  props: {
package/dist/index12.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as C, ref as b, computed as n, watch as E, openBlock as m, createElementBlock as p, normalizeProps as c, guardReactiveProps as h, mergeProps as f, createCommentVNode as I, createElementVNode as r, renderSlot as F } from "vue";
2
- import { isCssColor as k } from "./index219.js";
3
- import { when as N } from "./index220.js";
4
- import { booleanishToBoolean as S } from "./index221.js";
2
+ import { isCssColor as k } from "./index209.js";
3
+ import { when as N } from "./index210.js";
4
+ import { booleanishToBoolean as S } from "./index211.js";
5
5
  const A = {
6
6
  "aria-hidden": "true",
7
7
  class: "bb-base-checkbox-container"
package/dist/index120.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 "./index222.js";
2
+ import { throttle as g } from "./index212.js";
3
3
  const O = /* @__PURE__ */ v({
4
4
  __name: "BbSmoothHeight",
5
5
  props: {
package/dist/index121.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as m, computed as r, openBlock as a, createElementBlock as d, normalizeProps as u, guardReactiveProps as z, createElementVNode as c } from "vue";
2
- import { isCssColor as f } from "./index219.js";
2
+ import { isCssColor as f } from "./index209.js";
3
3
  const _ = /* @__PURE__ */ c("svg", {
4
4
  viewBox: "0 0 512 512",
5
5
  xmlns: "http://www.w3.org/2000/svg"
package/dist/index123.js CHANGED
@@ -1,4 +1,4 @@
1
- import { clamp as o } from "./index198.js";
1
+ import { clamp as o } from "./index208.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/index127.js CHANGED
@@ -1,4 +1,4 @@
1
- import t from "./index218.js";
1
+ import t from "./index227.js";
2
2
  const o = () => ({
3
3
  getItemText(r, n) {
4
4
  if (typeof r == "string" && !n)
package/dist/index128.js CHANGED
@@ -1,4 +1,4 @@
1
- import o from "./index218.js";
1
+ import o from "./index227.js";
2
2
  const e = () => ({
3
3
  getItemValue(n, f) {
4
4
  if (typeof f > "u")
package/dist/index129.js CHANGED
@@ -1,4 +1,4 @@
1
- import { isArray as b, isPlainObject as m } from "./index257.js";
1
+ import { isArray as b, isPlainObject as m } from "./index253.js";
2
2
  function i(e, n, l, o, r) {
3
3
  const u = {}.propertyIsEnumerable.call(o, n) ? "enumerable" : "nonenumerable";
4
4
  u === "enumerable" && (e[n] = l), r && u === "nonenumerable" && Object.defineProperty(e, n, {
package/dist/index133.js CHANGED
@@ -1,5 +1,5 @@
1
- import { toValue as E, useDebounceFn as z, useThrottleFn as Q, tryOnMounted as Y, noop as F, isObject as X, tryOnScopeDispose as j, isClient as $ } from "./index224.js";
2
- import { createFilterWrapper as se, debounceFilter as ae, getLifeCycleTarget as ce, throttleFilter as fe } from "./index224.js";
1
+ import { toValue as E, useDebounceFn as z, useThrottleFn as Q, tryOnMounted as Y, noop as F, isObject as X, tryOnScopeDispose as j, isClient as $ } from "./index216.js";
2
+ import { createFilterWrapper as se, debounceFilter as ae, getLifeCycleTarget as ce, throttleFilter as fe } from "./index216.js";
3
3
  import { ref as T, computed as S, reactive as V, watch as k, watchEffect as q, getCurrentInstance as G, onMounted as J } from "vue";
4
4
  function K(l) {
5
5
  var u;
package/dist/index16.js CHANGED
@@ -1,13 +1,13 @@
1
1
  import { defineComponent as Ve, ref as k, computed as p, watch as F, nextTick as U, openBlock as d, createElementBlock as u, mergeProps as Se, createElementVNode as r, createTextVNode as De, toDisplayString as f, unref as y, withDirectives as q, createVNode as V, Transition as S, withCtx as D, vShow as j, createCommentVNode as Y, normalizeClass as g, Fragment as w, renderList as O, renderSlot as G } from "vue";
2
- import i from "./index203.js";
3
- import Me from "./index213.js";
4
- import Ae from "./index214.js";
5
- import xe from "./index204.js";
6
- import Ce from "./index215.js";
7
- import Ye from "./index216.js";
8
- import { groupBy as J } from "./index217.js";
2
+ import i from "./index198.js";
3
+ import Me from "./index199.js";
4
+ import Ae from "./index200.js";
5
+ import xe from "./index201.js";
6
+ import Ce from "./index202.js";
7
+ import Ye from "./index203.js";
8
+ import { groupBy as J } from "./index204.js";
9
9
  import { isNil as Be } from "./index122.js";
10
- import { last as Q } from "./index206.js";
10
+ import { last as Q } from "./index205.js";
11
11
  const Ie = { class: "bb-base-date-picker__header" }, Ee = ["disabled"], Ne = /* @__PURE__ */ r("span", null, null, -1), Te = {
12
12
  "aria-live": "polite",
13
13
  class: "bb-base-date-picker__selected-day-label"
package/dist/index18.js CHANGED
@@ -1,20 +1,20 @@
1
1
  import { defineComponent as ae, ref as n, computed as c, watch as te, openBlock as B, createElementBlock as ne, normalizeClass as O, renderSlot as p, createElementVNode as r, withDirectives as oe, mergeProps as z, unref as m, toDisplayString as L, createBlock as re, Teleport as le, normalizeStyle as ie, createVNode as se, createSlots as ue, renderList as de, withCtx as ce, normalizeProps as pe, guardReactiveProps as me, createCommentVNode as fe } from "vue";
2
- import { useFloating as be } from "./index201.js";
3
- import ve from "./index202.js";
4
- import o from "./index203.js";
5
- import ge from "./index204.js";
6
- import { identity as ye } from "./index205.js";
7
- import { last as he } from "./index206.js";
8
- import { useFocusTrap as ke } from "./index207.js";
2
+ import { useFloating as be } from "./index217.js";
3
+ import ve from "./index224.js";
4
+ import o from "./index198.js";
5
+ import ge from "./index201.js";
6
+ import { identity as ye } from "./index225.js";
7
+ import { last as he } from "./index205.js";
8
+ import { useFocusTrap as ke } from "./index213.js";
9
9
  import { useId as Me } from "./index8.js";
10
- import { vMaska as we } from "./index208.js";
10
+ import { vMaska as we } from "./index226.js";
11
11
  import { wait as Y } from "./index124.js";
12
- import { waitFor as Ve } from "./index209.js";
12
+ import { waitFor as Ve } from "./index214.js";
13
13
  import _e from "./index16.js";
14
14
  import "./index17.js";
15
- import { useMobile as Ye } from "./index210.js";
16
- import { autoUpdate as De, flip as Ae, shift as Se } from "./index211.js";
17
- import { offset as Ce } from "./index212.js";
15
+ import { useMobile as Ye } from "./index219.js";
16
+ import { autoUpdate as De, flip as Ae, shift as Se } from "./index220.js";
17
+ import { offset as Ce } from "./index221.js";
18
18
  const $e = ["id", "aria-describedby", "autocomplete", "autofocus", "data-maska", "disabled", "inputmode", "name", "placeholder", "readonly", "value"], Ee = ["disabled"], Be = /* @__PURE__ */ r("svg", {
19
19
  viewBox: "-2 -3 24 24",
20
20
  xmlns: "http://www.w3.org/2000/svg"
package/dist/index198.js CHANGED
@@ -1,5 +1,8 @@
1
- const n = (t, a, m) => Math.min(Math.max(t, a), m);
1
+ import { getDefaultExportFromCjs as r } from "./index233.js";
2
+ import { __require as o } from "./index232.js";
3
+ var t = o();
4
+ const s = /* @__PURE__ */ r(t);
2
5
  export {
3
- n as clamp
6
+ s as default
4
7
  };
5
8
  //# sourceMappingURL=index198.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index198.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\treturn Math.min(Math.max(value, min), max);\n};\n"],"names":["clamp","value","min","max"],"mappings":"AASO,MAAMA,IAAQ,CAACC,GAAeC,GAAaC,MAC1C,KAAK,IAAI,KAAK,IAAIF,GAAOC,CAAG,GAAGC,CAAG;"}
1
+ {"version":3,"file":"index198.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
package/dist/index199.js CHANGED
@@ -1,6 +1,19 @@
1
- import r from "./index233.js";
2
- const t = r;
1
+ import { getDefaultExportFromCjs as f, commonjsGlobal as n } from "./index233.js";
2
+ import { __module as e } from "./index235.js";
3
+ (function(s, a) {
4
+ (function(i, t) {
5
+ s.exports = t();
6
+ })(n, function() {
7
+ return function(i, t) {
8
+ t.prototype.isSameOrAfter = function(r, o) {
9
+ return this.isSame(r, o) || this.isAfter(r, o);
10
+ };
11
+ };
12
+ });
13
+ })(e);
14
+ var m = e.exports;
15
+ const c = /* @__PURE__ */ f(m);
3
16
  export {
4
- t as deburr
17
+ c as default
5
18
  };
6
19
  //# sourceMappingURL=index199.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index199.js","sources":["../src/utilities/functions/deburr.ts"],"sourcesContent":["import d from 'lodash.deburr';\n\nexport const deburr = d;\n"],"names":["deburr","d"],"mappings":";AAEO,MAAMA,IAASC;"}
1
+ {"version":3,"file":"index199.js","sources":["../node_modules/dayjs/plugin/isSameOrAfter.js"],"sourcesContent":["!function(e,t){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=t():\"function\"==typeof define&&define.amd?define(t):(e=\"undefined\"!=typeof globalThis?globalThis:e||self).dayjs_plugin_isSameOrAfter=t()}(this,(function(){\"use strict\";return function(e,t){t.prototype.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)}}}));"],"names":["e","module","this","t"],"mappings":";;;AAAA,GAAC,SAASA,GAAE,GAAE;AAAsD,IAAAC,EAAe,UAAA,EAAwI;AAAA,EAAA,GAAEC,GAAM,WAAU;AAAc,WAAO,SAASF,GAAE,GAAE;AAAC,QAAE,UAAU,gBAAc,SAASA,GAAEG,GAAE;AAAC,eAAO,KAAK,OAAOH,GAAEG,CAAC,KAAG,KAAK,QAAQH,GAAEG,CAAC;AAAA,MAAC;AAAA,IAAC;AAAA,EAAC,CAAC;;;;","x_google_ignoreList":[0]}
package/dist/index20.js CHANGED
@@ -1,10 +1,10 @@
1
1
  import { defineComponent as oe, ref as o, getCurrentInstance as ae, computed as m, nextTick as R, useAttrs as se, onMounted as ne, onBeforeUnmount as G, watch as ie, openBlock as w, createBlock as re, Teleport as ue, createElementVNode as a, mergeProps as K, createElementBlock as H, renderSlot as r, createTextVNode as de, toDisplayString as T, createCommentVNode as $ } from "vue";
2
- import { throttle as ce } from "./index222.js";
3
- import { useFocusTrap as ve } from "./index207.js";
2
+ import { throttle as ce } from "./index212.js";
3
+ import { useFocusTrap as ve } from "./index213.js";
4
4
  import { useId as P } from "./index8.js";
5
5
  import { wait as L } from "./index124.js";
6
- import { waitFor as be } from "./index209.js";
7
- import { useModalsState as k } from "./index223.js";
6
+ import { waitFor as be } from "./index214.js";
7
+ import { useModalsState as k } from "./index215.js";
8
8
  const fe = { class: "bb-base-dialog-close" }, pe = { class: "bb-base-dialog-close__content" }, me = { class: "bb-base-dialog-close__label" }, ge = /* @__PURE__ */ a("span", { class: "bb-base-dialog-close__icon" }, [
9
9
  /* @__PURE__ */ a("svg", {
10
10
  "aria-hidden": "true",
package/dist/index200.js CHANGED
@@ -1,6 +1,19 @@
1
- import o from "./index234.js";
2
- const e = o;
1
+ import { getDefaultExportFromCjs as i, commonjsGlobal as n } from "./index233.js";
2
+ import { __module as t } from "./index236.js";
3
+ (function(s, a) {
4
+ (function(f, o) {
5
+ s.exports = o();
6
+ })(n, function() {
7
+ return function(f, o) {
8
+ o.prototype.isSameOrBefore = function(e, r) {
9
+ return this.isSame(e, r) || this.isBefore(e, r);
10
+ };
11
+ };
12
+ });
13
+ })(t);
14
+ var m = t.exports;
15
+ const c = /* @__PURE__ */ i(m);
3
16
  export {
4
- e as snakeCase
17
+ c as default
5
18
  };
6
19
  //# sourceMappingURL=index200.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index200.js","sources":["../src/utilities/functions/snakeCase.ts"],"sourcesContent":["import s from 'lodash.snakecase';\n\nexport const snakeCase = s;\n"],"names":["snakeCase","s"],"mappings":";AAEO,MAAMA,IAAYC;"}
1
+ {"version":3,"file":"index200.js","sources":["../node_modules/dayjs/plugin/isSameOrBefore.js"],"sourcesContent":["!function(e,i){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=i():\"function\"==typeof define&&define.amd?define(i):(e=\"undefined\"!=typeof globalThis?globalThis:e||self).dayjs_plugin_isSameOrBefore=i()}(this,(function(){\"use strict\";return function(e,i){i.prototype.isSameOrBefore=function(e,i){return this.isSame(e,i)||this.isBefore(e,i)}}}));"],"names":["e","i","module","this"],"mappings":";;;AAAA,GAAC,SAASA,GAAEC,GAAE;AAAsD,IAAAC,EAAe,UAAAD,EAAyI;AAAA,EAAA,GAAEE,GAAM,WAAU;AAAc,WAAO,SAASH,GAAEC,GAAE;AAAC,MAAAA,EAAE,UAAU,iBAAe,SAAS,GAAEA,GAAE;AAAC,eAAO,KAAK,OAAO,GAAEA,CAAC,KAAG,KAAK,SAAS,GAAEA,CAAC;AAAA,MAAC;AAAA,IAAC;AAAA,EAAC,CAAC;;;;","x_google_ignoreList":[0]}
package/dist/index201.js CHANGED
@@ -1,124 +1,22 @@
1
- import { arrow as j, computePosition as A } from "./index211.js";
2
- import { autoUpdate as T, flip as W, platform as X, shift as Y } from "./index211.js";
3
- import { unref as o, computed as r, ref as f, shallowRef as B, watch as h, getCurrentScope as F, onScopeDispose as I, shallowReadonly as a } from "vue";
4
- import { isNode as U, getNodeName as k } from "./index240.js";
5
- import { getOverflowAncestors as ee } from "./index240.js";
6
- function q(n) {
7
- return n != null && typeof n == "object" && "$el" in n;
8
- }
9
- function g(n) {
10
- if (q(n)) {
11
- const l = n.$el;
12
- return U(l) && k(l) === "#comment" ? null : l;
13
- }
14
- return n;
15
- }
16
- function J(n) {
17
- return {
18
- name: "arrow",
19
- options: n,
20
- fn(l) {
21
- const t = g(o(n.element));
22
- return t == null ? {} : j({
23
- element: t,
24
- padding: n.padding
25
- }).fn(l);
1
+ import { getDefaultExportFromCjs as i, commonjsGlobal as m } from "./index233.js";
2
+ import { __module as _ } from "./index237.js";
3
+ import { __require as s } from "./index232.js";
4
+ (function(n, d) {
5
+ (function(t, o) {
6
+ n.exports = o(s());
7
+ })(m, function(t) {
8
+ function o(e) {
9
+ return e && typeof e == "object" && "default" in e ? e : { default: e };
26
10
  }
27
- };
28
- }
29
- function S(n) {
30
- return typeof window > "u" ? 1 : (n.ownerDocument.defaultView || window).devicePixelRatio || 1;
31
- }
32
- function M(n, l) {
33
- const t = S(n);
34
- return Math.round(l * t) / t;
35
- }
36
- function K(n, l, t) {
37
- t === void 0 && (t = {});
38
- const x = t.whileElementsMounted, D = r(() => {
39
- var e;
40
- return (e = o(t.open)) != null ? e : !0;
41
- }), O = r(() => o(t.middleware)), d = r(() => {
42
- var e;
43
- return (e = o(t.placement)) != null ? e : "bottom";
44
- }), v = r(() => {
45
- var e;
46
- return (e = o(t.strategy)) != null ? e : "absolute";
47
- }), _ = r(() => {
48
- var e;
49
- return (e = o(t.transform)) != null ? e : !0;
50
- }), i = r(() => g(n.value)), u = r(() => g(l.value)), p = f(0), w = f(0), c = f(v.value), P = f(d.value), E = B({}), y = f(!1), N = r(() => {
51
- const e = {
52
- position: c.value,
53
- left: "0",
54
- top: "0"
55
- };
56
- if (!u.value)
57
- return e;
58
- const b = M(u.value, p.value), C = M(u.value, w.value);
59
- return _.value ? {
60
- ...e,
61
- transform: "translate(" + b + "px, " + C + "px)",
62
- ...S(u.value) >= 1.5 && {
63
- willChange: "transform"
64
- }
65
- } : {
66
- position: c.value,
67
- left: b + "px",
68
- top: C + "px"
69
- };
11
+ var a = o(t), r = { name: "it", weekdays: "domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"), weekdaysShort: "dom_lun_mar_mer_gio_ven_sab".split("_"), weekdaysMin: "do_lu_ma_me_gi_ve_sa".split("_"), months: "gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"), weekStart: 1, monthsShort: "gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"), formats: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD/MM/YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY HH:mm", LLLL: "dddd D MMMM YYYY HH:mm" }, relativeTime: { future: "tra %s", past: "%s fa", s: "qualche secondo", m: "un minuto", mm: "%d minuti", h: "un' ora", hh: "%d ore", d: "un giorno", dd: "%d giorni", M: "un mese", MM: "%d mesi", y: "un anno", yy: "%d anni" }, ordinal: function(e) {
12
+ return e + "º";
13
+ } };
14
+ return a.default.locale(r, null, !0), r;
70
15
  });
71
- let s;
72
- function m() {
73
- i.value == null || u.value == null || A(i.value, u.value, {
74
- middleware: O.value,
75
- placement: d.value,
76
- strategy: v.value
77
- }).then((e) => {
78
- p.value = e.x, w.value = e.y, c.value = e.strategy, P.value = e.placement, E.value = e.middlewareData, y.value = !0;
79
- });
80
- }
81
- function R() {
82
- typeof s == "function" && (s(), s = void 0);
83
- }
84
- function V() {
85
- if (R(), x === void 0) {
86
- m();
87
- return;
88
- }
89
- if (i.value != null && u.value != null) {
90
- s = x(i.value, u.value, m);
91
- return;
92
- }
93
- }
94
- function $() {
95
- D.value || (y.value = !1);
96
- }
97
- return h([O, d, v], m, {
98
- flush: "sync"
99
- }), h([i, u], V, {
100
- flush: "sync"
101
- }), h(D, $, {
102
- flush: "sync"
103
- }), F() && I(R), {
104
- x: a(p),
105
- y: a(w),
106
- strategy: a(c),
107
- placement: a(P),
108
- middlewareData: a(E),
109
- isPositioned: a(y),
110
- floatingStyles: N,
111
- update: m
112
- };
113
- }
16
+ })(_);
17
+ var u = _.exports;
18
+ const p = /* @__PURE__ */ i(u);
114
19
  export {
115
- J as arrow,
116
- T as autoUpdate,
117
- A as computePosition,
118
- W as flip,
119
- ee as getOverflowAncestors,
120
- X as platform,
121
- Y as shift,
122
- K as useFloating
20
+ p as default
123
21
  };
124
22
  //# sourceMappingURL=index201.js.map