bitboss-ui 2.1.53 → 2.1.56

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 (170) hide show
  1. package/dist/composables/useBbConfig.d.ts +18 -1
  2. package/dist/composables/useIndexById.d.ts +5 -5
  3. package/dist/index107.js +8 -8
  4. package/dist/index112.js +1 -1
  5. package/dist/index114.js +1 -1
  6. package/dist/index122.js +10 -10
  7. package/dist/index13.js +1 -1
  8. package/dist/index130.js +1 -1
  9. package/dist/index132.js +6 -6
  10. package/dist/index134.js +1 -1
  11. package/dist/index136.js +2 -2
  12. package/dist/index15.js +5 -5
  13. package/dist/index17.js +3 -3
  14. package/dist/index19.js +6 -6
  15. package/dist/index21.js +16 -16
  16. package/dist/index217.js +1 -1
  17. package/dist/index218.js +1 -1
  18. package/dist/index219.js +33 -4
  19. package/dist/index220.js +2 -13
  20. package/dist/index221.js +2 -20
  21. package/dist/index222.js +3 -194
  22. package/dist/index223.js +8 -0
  23. package/dist/index224.js +15 -119
  24. package/dist/index225.js +15 -0
  25. package/dist/index226.js +12 -32
  26. package/dist/index227.js +13 -28
  27. package/dist/index228.js +6 -0
  28. package/dist/index229.js +1 -1
  29. package/dist/index23.js +11 -11
  30. package/dist/index232.js +14 -15
  31. package/dist/index233.js +15 -49
  32. package/dist/index234.js +48 -12
  33. package/dist/index235.js +15 -3
  34. package/dist/index236.js +3 -12
  35. package/dist/index237.js +11 -15
  36. package/dist/index238.js +188 -2
  37. package/dist/index239.js +3 -4
  38. package/dist/index240.js +120 -2
  39. package/dist/index242.js +4 -2
  40. package/dist/index243.js +23 -2
  41. package/dist/index244.js +5 -9
  42. package/dist/index245.js +4 -4
  43. package/dist/index246.js +4 -4
  44. package/dist/index247.js +4 -4
  45. package/dist/index248.js +5 -5
  46. package/dist/index249.js +5 -5
  47. package/dist/index25.js +38 -41
  48. package/dist/index250.js +2 -5
  49. package/dist/index251.js +3 -5
  50. package/dist/index252.js +20 -2
  51. package/dist/index253.js +33 -8
  52. package/dist/index254.js +26 -269
  53. package/dist/index256.js +10 -44
  54. package/dist/index257.js +3 -5
  55. package/dist/index258.js +4 -60
  56. package/dist/index259.js +194 -5
  57. package/dist/index261.js +6 -12
  58. package/dist/index262.js +2 -10
  59. package/dist/index263.js +2 -3
  60. package/dist/index264.js +18 -2
  61. package/dist/index265.js +12 -3
  62. package/dist/index266.js +105 -17
  63. package/dist/index268.js +47 -53
  64. package/dist/index27.js +1 -1
  65. package/dist/index270.js +212 -83
  66. package/dist/index271.js +13 -0
  67. package/dist/index272.js +6 -227
  68. package/dist/index273.js +9 -8
  69. package/dist/index274.js +23 -9
  70. package/dist/index275.js +2 -3
  71. package/dist/index276.js +7 -2
  72. package/dist/index277.js +7 -7
  73. package/dist/index278.js +67 -7
  74. package/dist/index279.js +2 -11
  75. package/dist/index280.js +9 -4
  76. package/dist/index281.js +8 -22
  77. package/dist/index282.js +5 -6
  78. package/dist/index283.js +5 -16
  79. package/dist/index284.js +5 -5
  80. package/dist/index285.js +270 -8
  81. package/dist/index286.js +52 -23
  82. package/dist/index287.js +42 -31
  83. package/dist/index288.js +5 -7
  84. package/dist/index289.js +60 -3
  85. package/dist/index29.js +2 -2
  86. package/dist/index290.js +8 -188
  87. package/dist/index291.js +4 -0
  88. package/dist/index293.js +1 -1
  89. package/dist/index294.js +7 -3
  90. package/dist/index295.js +3 -7
  91. package/dist/index296.js +5 -4
  92. package/dist/index297.js +5 -3
  93. package/dist/index298.js +280 -17
  94. package/dist/index299.js +2 -28
  95. package/dist/index300.js +125 -2
  96. package/dist/index301.js +2 -4
  97. package/dist/index302.js +13 -278
  98. package/dist/index303.js +2 -2
  99. package/dist/index308.js +1 -1
  100. package/dist/index31.js +2 -2
  101. package/dist/index310.js +3 -15
  102. package/dist/index311.js +17 -2
  103. package/dist/index312.js +27 -18
  104. package/dist/index313.js +4 -2
  105. package/dist/index314.js +719 -27
  106. package/dist/index315.js +366 -2
  107. package/dist/index316.js +57 -2
  108. package/dist/index317.js +3 -2
  109. package/dist/index318.js +3 -2
  110. package/dist/index319.js +3 -2
  111. package/dist/index320.js +1 -21
  112. package/dist/index321.js +6 -0
  113. package/dist/index322.js +2 -5
  114. package/dist/index323.js +19 -3
  115. package/dist/index324.js +2 -3
  116. package/dist/index325.js +27 -2
  117. package/dist/index326.js +2 -719
  118. package/dist/index327.js +2 -366
  119. package/dist/index328.js +2 -57
  120. package/dist/index329.js +2 -125
  121. package/dist/index33.js +6 -6
  122. package/dist/index330.js +2 -2
  123. package/dist/index331.js +21 -1
  124. package/dist/index333.js +5 -5
  125. package/dist/index334.js +34 -7
  126. package/dist/index335.js +6 -58
  127. package/dist/index336.js +128 -57
  128. package/dist/index337.js +393 -30
  129. package/dist/index338.js +8 -6
  130. package/dist/index339.js +5 -128
  131. package/dist/index340.js +6 -396
  132. package/dist/index341.js +58 -5
  133. package/dist/index342.js +58 -6
  134. package/dist/index343.js +92 -6
  135. package/dist/index344.js +226 -17
  136. package/dist/index345.js +133 -6
  137. package/dist/index346.js +44 -131
  138. package/dist/index347.js +6 -46
  139. package/dist/index348.js +17 -91
  140. package/dist/index349.js +6 -519
  141. package/dist/index35.js +4 -4
  142. package/dist/index350.js +514 -222
  143. package/dist/index37.js +17 -17
  144. package/dist/index39.js +6 -6
  145. package/dist/index4.js +26 -10
  146. package/dist/index41.js +2 -2
  147. package/dist/index43.js +6 -6
  148. package/dist/index45.js +6 -6
  149. package/dist/index49.js +1 -1
  150. package/dist/index53.js +1 -1
  151. package/dist/index55.js +1 -1
  152. package/dist/index57.js +2 -2
  153. package/dist/index61.js +3 -3
  154. package/dist/index67.js +1 -1
  155. package/dist/index80.js +6 -6
  156. package/dist/index82.js +1 -1
  157. package/dist/index84.js +2 -2
  158. package/dist/index86.js +3 -3
  159. package/dist/index88.js +1 -1
  160. package/dist/index91.js +42 -45
  161. package/dist/index93.js +2 -2
  162. package/dist/index95.js +5 -5
  163. package/package.json +2 -2
  164. package/dist/index241.js +0 -69
  165. package/dist/index255.js +0 -54
  166. package/dist/index260.js +0 -15
  167. package/dist/index267.js +0 -14
  168. package/dist/index292.js +0 -5
  169. package/dist/index332.js +0 -10
  170. /package/dist/components/{CommonPopover2.vue.d.ts → CommonPopover.vue.d.ts} +0 -0
@@ -1,9 +1,16 @@
1
+ import { Sizes } from '../components/BaseDialog/BaseDialog.vue';
1
2
  import { locales } from '../i18n';
2
3
  type Config = {
3
4
  inertiaLinkName: string;
4
5
  nuxtLinkName: string;
5
6
  mobileMaxWidth: number;
6
7
  locale: keyof typeof locales;
8
+ dialogDefaultSizes: Sizes;
9
+ offCanvasDefaultSizes: Sizes;
10
+ };
11
+ type EditableConfig = Pick<Config, 'inertiaLinkName' | 'nuxtLinkName' | 'locale' | 'mobileMaxWidth'> & {
12
+ dialogDefaultSizes: Partial<Config['dialogDefaultSizes']>;
13
+ offCanvasDefaultSizes: Partial<Config['offCanvasDefaultSizes']>;
7
14
  };
8
15
  export declare const _config: {
9
16
  [x: string]: any;
@@ -11,8 +18,18 @@ export declare const _config: {
11
18
  nuxtLinkName: string;
12
19
  mobileMaxWidth: number;
13
20
  locale: keyof typeof locales;
21
+ dialogDefaultSizes: {
22
+ lg: number;
23
+ md: number;
24
+ sm: number;
25
+ };
26
+ offCanvasDefaultSizes: {
27
+ lg: number;
28
+ md: number;
29
+ sm: number;
30
+ };
14
31
  };
15
32
  export declare const useBbConfig: () => {
16
- setConfig: (config: Partial<Config>) => void;
33
+ setConfig: (config: Partial<EditableConfig>) => void;
17
34
  };
18
35
  export {};
@@ -1,11 +1,11 @@
1
1
  import { MaybeRef } from 'vue';
2
- type Options = {
3
- items: MaybeRef<any[]>;
2
+ type Options<TItem = unknown> = {
3
+ items: MaybeRef<readonly TItem[]>;
4
4
  key?: string;
5
5
  };
6
6
  export type IndexById = ReturnType<typeof useIndexById>;
7
- export declare const useIndexById: ({ items, key }: Options) => {
8
- data: import('vue').ComputedRef<Record<string, any>>;
9
- get: (value: any) => any;
7
+ export declare const useIndexById: <TItem = unknown>({ items, key, }: Options<TItem>) => {
8
+ data: import('vue').ComputedRef<Record<string, TItem>>;
9
+ get: (value: unknown) => TItem | undefined;
10
10
  };
11
11
  export {};
package/dist/index107.js CHANGED
@@ -1,13 +1,13 @@
1
1
  import { defineComponent as D, computed as V, toRef as r, ref as E, reactive as L, watch as m, createElementBlock as b, openBlock as B, Fragment as g, renderSlot as i, createCommentVNode as P, unref as R, renderList as j } from "vue";
2
- import { useItemValue as G } from "./index244.js";
3
- import { isNil as k } from "./index243.js";
4
- import { indexBy as U } from "./index273.js";
5
- import { hash as p } from "./index235.js";
2
+ import { useItemValue as G } from "./index280.js";
3
+ import { isNil as k } from "./index221.js";
4
+ import { indexBy as U } from "./index290.js";
5
+ import { hash as p } from "./index236.js";
6
6
  import { useItemsGetter as W } from "./index231.js";
7
- import { usePrefill as q } from "./index237.js";
8
- import { useIndexById as z } from "./index232.js";
9
- import { useBaseOptions as J } from "./index233.js";
10
- import { useHashedWatcher as K } from "./index236.js";
7
+ import { usePrefill as q } from "./index232.js";
8
+ import { useIndexById as z } from "./index233.js";
9
+ import { useBaseOptions as J } from "./index234.js";
10
+ import { useHashedWatcher as K } from "./index237.js";
11
11
  const oe = /* @__PURE__ */ D({
12
12
  __name: "BbRows",
13
13
  props: {
package/dist/index112.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as v, ref as a, onMounted as m, onBeforeUnmount as p, createBlock as i, openBlock as l, resolveDynamicComponent as u, normalizeStyle as d, withCtx as f, renderSlot as h } from "vue";
2
- import { throttle as g } from "./index275.js";
2
+ import { throttle as g } from "./index239.js";
3
3
  const O = /* @__PURE__ */ v({
4
4
  __name: "BbSmoothHeight",
5
5
  props: {
package/dist/index114.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as p, computed as s, createElementBlock as b, openBlock as _, mergeProps as a, createStaticVNode as x } from "vue";
2
- import { isCssColor as m } from "./index238.js";
2
+ import { isCssColor as m } from "./index220.js";
3
3
  const d = /* @__PURE__ */ p({
4
4
  __name: "BbSpinner",
5
5
  props: {
package/dist/index122.js CHANGED
@@ -1,21 +1,21 @@
1
1
  import { defineComponent as ue, ref as K, computed as y, toRef as O, watch as N, reactive as pe, createBlock as Q, openBlock as n, resolveDynamicComponent as me, normalizeClass as p, unref as h, withCtx as fe, createElementBlock as d, createCommentVNode as C, createElementVNode as o, toDisplayString as m, renderSlot as f, Fragment as A, renderList as B, createVNode as X, createTextVNode as ye, mergeProps as he } from "vue";
2
- import { add as ve } from "./index242.js";
2
+ import { add as ve } from "./index279.js";
3
3
  import { clamp as ke } from "./index215.js";
4
- import { isNil as T } from "./index243.js";
4
+ import { isNil as T } from "./index221.js";
5
5
  import { useId as _e } from "./index8.js";
6
- import { useItemValue as ge } from "./index244.js";
7
- import { when as Ce } from "./index239.js";
6
+ import { useItemValue as ge } from "./index280.js";
7
+ import { when as Ce } from "./index228.js";
8
8
  import Y from "./index17.js";
9
9
  /* empty css */
10
10
  import we from "./index31.js";
11
11
  /* empty css */
12
- import { hash as E } from "./index235.js";
12
+ import { hash as E } from "./index236.js";
13
13
  import { useItemsGetter as Ie } from "./index231.js";
14
- import { usePrefill as Ve } from "./index237.js";
15
- import { useIndexById as Ae } from "./index232.js";
16
- import { useBaseOptions as Be } from "./index233.js";
17
- import { useHashedWatcher as Te } from "./index236.js";
18
- import { useLocale as $e } from "./index220.js";
14
+ import { usePrefill as Ve } from "./index232.js";
15
+ import { useIndexById as Ae } from "./index233.js";
16
+ import { useBaseOptions as Be } from "./index234.js";
17
+ import { useHashedWatcher as Te } from "./index237.js";
18
+ import { useLocale as $e } from "./index225.js";
19
19
  const xe = {
20
20
  key: 0,
21
21
  class: "sr-only"
package/dist/index13.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as C, getCurrentInstance as g, computed as r, createBlock as i, openBlock as u, mergeProps as c, withCtx as d, renderSlot as p, createTextVNode as f, toDisplayString as v, resolveDynamicComponent as y } from "vue";
2
- import m from "./index287.js";
2
+ import m from "./index219.js";
3
3
  const B = /* @__PURE__ */ C({
4
4
  __name: "BaseButton",
5
5
  props: {
package/dist/index130.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as a, createElementBlock as o, openBlock as e, normalizeClass as c, createVNode as l, TransitionGroup as m, withCtx as i, Fragment as p, renderList as u, unref as r, createBlock as f, mergeProps as _ } from "vue";
2
2
  import { useToast as d, state as k } from "./index11.js";
3
- import b from "./index241.js";
3
+ import b from "./index278.js";
4
4
  const $ = /* @__PURE__ */ a({
5
5
  __name: "BbToast",
6
6
  props: {
package/dist/index132.js CHANGED
@@ -1,15 +1,15 @@
1
1
  import { defineComponent as S, mergeModels as z, ref as k, computed as d, useTemplateRef as F, useModel as N, createElementBlock as W, openBlock as B, Fragment as A, renderSlot as C, createVNode as U, normalizeProps as H, guardReactiveProps as I, unref as l, mergeProps as j, withCtx as E, createElementVNode as m, normalizeStyle as q, createBlock as x, createCommentVNode as G } from "vue";
2
- import { throttle as p } from "./index275.js";
2
+ import { throttle as p } from "./index239.js";
3
3
  import { useId as J } from "./index8.js";
4
- import { useLocale as K } from "./index220.js";
5
- import { useUntil as Q } from "./index261.js";
4
+ import { useLocale as K } from "./index225.js";
5
+ import { useUntil as Q } from "./index227.js";
6
6
  import X from "./index13.js";
7
7
  /* empty css */
8
- import Y from "./index224.js";
8
+ import Y from "./index240.js";
9
9
  /* empty css */
10
10
  import { useElementSize as Z } from "./index141.js";
11
- import { extractDomContainer as c } from "./index280.js";
12
- import { parseWidthString as _ } from "./index281.js";
11
+ import { extractDomContainer as c } from "./index242.js";
12
+ import { parseWidthString as _ } from "./index243.js";
13
13
  const pe = /* @__PURE__ */ S({
14
14
  inheritAttrs: !1,
15
15
  __name: "BbTooltip",
package/dist/index134.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as $, computed as g, resolveComponent as y, createElementBlock as f, openBlock as i, Fragment as k, renderList as h, normalizeClass as b, createElementVNode as s, renderSlot as t, createVNode as v, createSlots as B, withCtx as _, mergeProps as C } from "vue";
2
- import { flattenTree as T } from "./index259.js";
2
+ import { flattenTree as T } from "./index282.js";
3
3
  const w = { class: "bb-tree-row" }, E = { class: "bb-tree-main-content" }, N = /* @__PURE__ */ $({
4
4
  __name: "BbTree",
5
5
  props: {
package/dist/index136.js CHANGED
@@ -5,8 +5,8 @@ import m from "./index86.js";
5
5
  /* empty css */
6
6
  import N from "./index114.js";
7
7
  /* empty css */
8
- import h from "./index226.js";
9
- import v from "./index227.js";
8
+ import h from "./index253.js";
9
+ import v from "./index254.js";
10
10
  /* empty css */
11
11
  const B = { class: "bb-common-input-inner-container__prefix" }, E = { class: "bb-common-input-inner-container__suffix" }, P = /* @__PURE__ */ $({
12
12
  __name: "CommonInputInnerContainer",
package/dist/index15.js CHANGED
@@ -1,15 +1,15 @@
1
1
  import { defineComponent as H, ref as s, computed as D, createBlock as E, openBlock as I, normalizeClass as L, withCtx as l, createVNode as d, unref as u, withDirectives as M, createElementVNode as p, mergeProps as _, renderSlot as r, withModifiers as q, normalizeStyle as N } from "vue";
2
- import { isHex as z } from "./index219.js";
2
+ import { isHex as z } from "./index258.js";
3
3
  import { isNotNil as F } from "./index144.js";
4
4
  import { useId as S } from "./index8.js";
5
- import { useLocale as U } from "./index220.js";
6
- import { vMaska as A } from "./index221.js";
7
- import K from "./index222.js";
5
+ import { useLocale as U } from "./index225.js";
6
+ import { vMaska as A } from "./index252.js";
7
+ import K from "./index259.js";
8
8
  /* empty css */
9
9
  import O from "./index136.js";
10
10
  /* empty css */
11
11
  import P from "./index138.js";
12
- import T from "./index224.js";
12
+ import T from "./index240.js";
13
13
  /* empty css */
14
14
  const j = ["id", "aria-describedby", "aria-invalid", "autocomplete", "autofocus", "disabled", "name", "placeholder", "readonly", "required", "value"], G = ["aria-label"], J = { class: "bb-common-input-inner-container__suffix" }, re = /* @__PURE__ */ H({
15
15
  __name: "BaseColorInput",
package/dist/index17.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as E, ref as m, computed as n, watch as _, createElementBlock as p, openBlock as h, normalizeProps as i, guardReactiveProps as f, createCommentVNode as I, createElementVNode as l, mergeProps as k, renderSlot as F } from "vue";
2
- import { isCssColor as y } from "./index238.js";
3
- import { when as N } from "./index239.js";
4
- import { booleanishToBoolean as S } from "./index240.js";
2
+ import { isCssColor as y } from "./index220.js";
3
+ import { when as N } from "./index228.js";
4
+ import { booleanishToBoolean as S } from "./index262.js";
5
5
  const A = {
6
6
  "aria-hidden": "true",
7
7
  class: "bb-base-checkbox-container"
package/dist/index19.js CHANGED
@@ -4,12 +4,12 @@ import W from "./index17.js";
4
4
  import K from "./index229.js";
5
5
  /* empty css */
6
6
  import { useItemsGetter as N } from "./index231.js";
7
- import { useIndexById as w } from "./index232.js";
8
- import { useBaseOptions as U } from "./index233.js";
9
- import { useCoherence as q } from "./index234.js";
10
- import { hash as J } from "./index235.js";
11
- import { useHashedWatcher as C } from "./index236.js";
12
- import { usePrefill as Q } from "./index237.js";
7
+ import { useIndexById as w } from "./index233.js";
8
+ import { useBaseOptions as U } from "./index234.js";
9
+ import { useCoherence as q } from "./index235.js";
10
+ import { hash as J } from "./index236.js";
11
+ import { useHashedWatcher as C } from "./index237.js";
12
+ import { usePrefill as Q } from "./index232.js";
13
13
  const de = /* @__PURE__ */ j({
14
14
  __name: "BaseCheckboxGroup",
15
15
  props: {
package/dist/index21.js CHANGED
@@ -5,22 +5,22 @@ import { _config as V } from "./index4.js";
5
5
  import { useId as F } from "./index8.js";
6
6
  import c from "./index13.js";
7
7
  /* empty css */
8
- import s from "./index245.js";
9
- import G from "./index246.js";
10
- import J from "./index247.js";
11
- import K from "./index248.js";
12
- import Q from "./index249.js";
13
- import X from "./index250.js";
14
- import ee from "./index251.js";
15
- import { hash as B } from "./index235.js";
16
- import { last as ae } from "./index252.js";
17
- import { useLogger as te } from "./index253.js";
18
- import oe from "./index254.js";
19
- import le from "./index255.js";
20
- import re from "./index256.js";
21
- import C from "./index257.js";
22
- import se from "./index258.js";
23
- import { useLocale as de } from "./index220.js";
8
+ import s from "./index244.js";
9
+ import G from "./index247.js";
10
+ import J from "./index248.js";
11
+ import K from "./index249.js";
12
+ import Q from "./index246.js";
13
+ import X from "./index283.js";
14
+ import ee from "./index284.js";
15
+ import { hash as B } from "./index236.js";
16
+ import { last as ae } from "./index263.js";
17
+ import { useLogger as te } from "./index272.js";
18
+ import oe from "./index285.js";
19
+ import le from "./index286.js";
20
+ import re from "./index287.js";
21
+ import C from "./index288.js";
22
+ import se from "./index289.js";
23
+ import { useLocale as de } from "./index225.js";
24
24
  const ie = { class: "bb-base-date-picker" }, ne = { class: "bb-base-date-picker__body" }, me = { class: "bb-base-date-picker__controls" }, ue = { class: "sr-only" }, pe = { class: "sr-only" }, fe = { class: "sr-only" }, ce = {
25
25
  style: { transform: "rotate(180deg)" },
26
26
  viewBox: "0 0 24 24",
package/dist/index217.js CHANGED
@@ -1,4 +1,4 @@
1
- import { getType as t } from "./index301.js";
1
+ import { getType as t } from "./index321.js";
2
2
  function o(r) {
3
3
  return t(r) === "Array";
4
4
  }
package/dist/index218.js CHANGED
@@ -1,4 +1,4 @@
1
- import { getType as o } from "./index301.js";
1
+ import { getType as o } from "./index321.js";
2
2
  function c(e) {
3
3
  if (o(e) !== "Object")
4
4
  return !1;
package/dist/index219.js CHANGED
@@ -1,6 +1,35 @@
1
- function x(e) {
2
- return /^#([A-Fa-f0-9]{6})$/.test(e);
3
- }
1
+ import { defineComponent as u, getCurrentInstance as o, resolveComponent as i, createBlock as l, openBlock as m, resolveDynamicComponent as c, unref as p, withCtx as f, renderSlot as k } from "vue";
2
+ import { _config as e } from "./index4.js";
3
+ import { useLogger as r } from "./index272.js";
4
+ const L = /* @__PURE__ */ u({
5
+ __name: "RouterComponent",
6
+ setup(g) {
7
+ const s = !!o()?.proxy?.$inertia, a = !!o()?.proxy?.$nuxt;
8
+ let t;
9
+ if (s) {
10
+ if (t = i(e.inertiaLinkName), typeof t == "string") {
11
+ const { warn: n } = r();
12
+ n(
13
+ `Inertia link component "${e.inertiaLinkName}" could not be resolved. Ensure you app registers a link component with the name "${e.inertiaLinkName}" or set bitboss-ui config key "inertiaLinkName" to the correct value globally. Please visit ${e.documentationURL}/getting-started to resolve setup issues in bitboss-ui.`
14
+ );
15
+ }
16
+ } else if (a) {
17
+ if (t = i(e.nuxtLinkName), typeof t == "string") {
18
+ const { warn: n } = r();
19
+ n(
20
+ `Nuxt link component "${e.nuxtLinkName}" could not be resolved. Ensure you app registers a link component with the name "${e.nuxtLinkName}" or set bitboss-ui config key "nuxtLinkName" to the correct value globally. Please visit ${e.documentationURL}/getting-started to resolve setup issues in bitboss-ui.`
21
+ );
22
+ }
23
+ } else
24
+ t = "router-link";
25
+ return (n, d) => (m(), l(c(p(t)), null, {
26
+ default: f(() => [
27
+ k(n.$slots, "default")
28
+ ]),
29
+ _: 3
30
+ }));
31
+ }
32
+ });
4
33
  export {
5
- x as isHex
34
+ L as default
6
35
  };
package/dist/index220.js CHANGED
@@ -1,15 +1,4 @@
1
- import { locales as t } from "./index295.js";
2
- import { _config as m } from "./index4.js";
3
- import { get as c } from "./index279.js";
4
- import { readonly as l, computed as n } from "vue";
5
- const p = (o, ...r) => l(
6
- n(() => c(t[m.locale], o).replace(
7
- /\{(\d+)\}/g,
8
- (a, e) => r[e]
9
- ))
10
- ), d = () => ({
11
- t: p
12
- });
1
+ const s = (r) => !!r && !!r.match(/^(#|var\(--|(rgb|hsl)a?\()/);
13
2
  export {
14
- d as useLocale
3
+ s as isCssColor
15
4
  };
package/dist/index221.js CHANGED
@@ -1,22 +1,4 @@
1
- import { MaskInput as r } from "./index290.js";
2
- const u = /* @__PURE__ */ new WeakMap(), p = (a, n) => {
3
- if (a.arg == null || a.instance == null) return;
4
- const s = "setup" in a.instance.$.type;
5
- a.arg in a.instance ? a.instance[a.arg] = n : s && console.warn("Maska: please expose `%s` using defineExpose", a.arg);
6
- }, k = (a, n) => {
7
- var s;
8
- const t = a instanceof HTMLInputElement ? a : a.querySelector("input");
9
- if (t == null || t?.type === "file") return;
10
- let e = {};
11
- if (n.value != null && (e = typeof n.value == "string" ? { mask: n.value } : { ...n.value }), n.arg != null) {
12
- const l = (o) => {
13
- const i = n.modifiers.unmasked ? o.unmasked : n.modifiers.completed ? o.completed : o.masked;
14
- p(n, i);
15
- };
16
- e.onMaska = e.onMaska == null ? l : Array.isArray(e.onMaska) ? [...e.onMaska, l] : [e.onMaska, l];
17
- }
18
- u.has(t) ? (s = u.get(t)) == null || s.update(e) : u.set(t, new r(t, e));
19
- };
1
+ const r = (e) => typeof e > "u" || e === null;
20
2
  export {
21
- k as vMaska
3
+ r as isNil
22
4
  };
package/dist/index222.js CHANGED
@@ -1,196 +1,5 @@
1
- import { defineComponent as j, ref as s, onMounted as J, watch as Q, createElementBlock as S, openBlock as _, createElementVNode as w, createTextVNode as A, createCommentVNode as E, toDisplayString as C, unref as x } from "vue";
2
- import { hexToRgb as B } from "./index332.js";
3
- import { getHueFromRGB as K } from "./index333.js";
4
- import { hslToHex as y } from "./index334.js";
5
- import { useLocale as Z } from "./index220.js";
6
- const ee = {
7
- id: "mainCanvasDesc",
8
- "aria-live": "polite",
9
- class: "sr-only"
10
- }, te = { key: 0 }, ae = {
11
- id: "hueCanvasDesc",
12
- "aria-live": "polite",
13
- class: "sr-only"
14
- }, ne = { key: 0 }, ce = /* @__PURE__ */ j({
15
- __name: "ColorPallette",
16
- props: {
17
- modelValue: {}
18
- },
19
- emits: ["update:modelValue"],
20
- setup(F, { emit: N }) {
21
- const R = F, f = N, { t: h } = Z(), o = s(R.modelValue), d = s(
22
- y(K(...B(o.value ?? "#ff0000")), 100, 50)
23
- ), O = s(null), i = s(null), r = s(null), l = s({ x: 0, y: 0 }), c = s({ x: 0 }), b = s(!1), k = s(!1), T = () => {
24
- const e = i.value, t = r.value;
25
- !e || !t || (e.width = e.offsetWidth, e.height = e.offsetHeight, t.width = t.offsetWidth, t.height = t.offsetHeight, v(), m());
26
- }, D = () => {
27
- const e = i.value;
28
- return e ? e.getContext("2d", { willReadFrequently: !0 }) : null;
29
- }, v = () => {
30
- const e = i.value;
31
- if (!e) return;
32
- const t = D();
33
- if (!t) return;
34
- t.clearRect(0, 0, e.width, e.height);
35
- const a = t.createLinearGradient(0, 0, e.width, 0);
36
- a.addColorStop(0, d.value), a.addColorStop(1, "#ffffff");
37
- const n = t.createLinearGradient(0, 0, 0, e.height);
38
- n.addColorStop(0, "transparent"), n.addColorStop(1, "#000000"), t.fillStyle = a, t.fillRect(0, 0, e.width, e.height), t.fillStyle = n, t.globalCompositeOperation = "multiply", t.fillRect(0, 0, e.width, e.height), t.globalCompositeOperation = "source-over", t.fillStyle = "#000000", t.strokeStyle = "#000000", t.lineWidth = 1;
39
- }, p = () => {
40
- const e = D();
41
- e && (e.beginPath(), e.arc(
42
- l.value.x,
43
- l.value.y,
44
- 8,
45
- 0,
46
- 2 * Math.PI
47
- ), e.strokeStyle = "#ffffff", e.lineWidth = 2, e.stroke(), e.beginPath(), e.arc(
48
- l.value.x,
49
- l.value.y,
50
- 7,
51
- 0,
52
- 2 * Math.PI
53
- ), e.strokeStyle = "#000000", e.lineWidth = 1, e.stroke(), e.globalCompositeOperation = "source-over");
54
- }, P = () => {
55
- const e = r.value;
56
- return e ? e.getContext("2d", { willReadFrequently: !0 }) : null;
57
- }, m = () => {
58
- const e = r.value;
59
- if (!e) return;
60
- const t = P();
61
- if (!t) return;
62
- const a = t.createLinearGradient(0, 0, e.width, 0);
63
- for (let n = 0; n <= 360; n += 60)
64
- a.addColorStop(n / 360, `hsl(${n}, 100%, 50%)`);
65
- a.addColorStop(1, "hsl(360, 100%, 50%)"), t.fillStyle = a, t.fillRect(0, 0, e.width, e.height), H(), t.fillStyle = "#000000", t.strokeStyle = "#000000", t.lineWidth = 1;
66
- }, H = () => {
67
- const e = r.value;
68
- if (!e) return;
69
- const t = P();
70
- if (!t) return;
71
- const a = 10, n = 16, u = c.value.x - a / 2, M = e.height / 2 - n / 2;
72
- t.beginPath(), t.roundRect(u, M, a, n, 2), t.strokeStyle = "lightgray", t.stroke(), t.fillStyle = "#ffffff", t.fill();
73
- }, q = (e) => {
74
- i.value && (window.addEventListener("pointermove", L), window.addEventListener("pointerup", G), b.value = !0, I(e));
75
- }, U = (e) => {
76
- r.value && (window.addEventListener("pointermove", L), window.addEventListener("pointerup", G), k.value = !0, V(e));
77
- }, I = (e) => {
78
- const t = i.value;
79
- if (!t) return;
80
- const a = t.getBoundingClientRect(), n = Math.max(0, Math.min(t.width, e.clientX - a.left)), u = Math.max(0, Math.min(t.height, e.clientY - a.top));
81
- l.value = { x: n, y: u }, v(), p(), o.value = g(), f("update:modelValue", o.value);
82
- }, V = (e) => {
83
- const t = r.value;
84
- if (!t) return;
85
- const a = t.getBoundingClientRect(), n = Math.max(0, Math.min(t.width, e.clientX - a.left));
86
- c.value = { x: n };
87
- const u = n / t.width * 360;
88
- d.value = y(u, 100, 50), m(), v(), p(), o.value = g(), f("update:modelValue", o.value);
89
- }, L = (e) => {
90
- b.value ? I(e) : k.value && V(e);
91
- }, G = () => {
92
- b.value = !1, k.value = !1;
93
- }, X = (e) => {
94
- switch (e.key) {
95
- case "ArrowUp":
96
- l.value.y = Math.max(0, l.value.y - 5);
97
- break;
98
- case "ArrowDown":
99
- l.value.y = Math.min(
100
- i.value?.height ?? 0,
101
- l.value.y + 5
102
- );
103
- break;
104
- case "ArrowLeft":
105
- l.value.x = Math.max(0, l.value.x - 5);
106
- break;
107
- case "ArrowRight":
108
- l.value.x = Math.min(
109
- i.value?.width ?? 0,
110
- l.value.x + 5
111
- );
112
- break;
113
- default:
114
- return;
115
- }
116
- v(), p(), o.value = g(), f("update:modelValue", o.value), e.preventDefault();
117
- }, $ = (e) => {
118
- switch (e.key) {
119
- case "ArrowLeft":
120
- c.value.x = Math.max(0, c.value.x - 5);
121
- break;
122
- case "ArrowRight":
123
- c.value.x = Math.min(
124
- r.value?.width ?? 0,
125
- c.value.x + 5
126
- );
127
- break;
128
- default:
129
- return;
130
- }
131
- const a = c.value.x / (r.value?.width ?? 1) * 360;
132
- d.value = y(a, 100, 50), m(), H(), v(), p(), o.value = g(), f("update:modelValue", o.value), e.preventDefault();
133
- };
134
- J(() => {
135
- T(), W(o.value ?? "#ff0000");
136
- }), Q(
137
- () => R.modelValue,
138
- (e) => {
139
- !e || e === o.value || (o.value = e, W(e), m(), v());
140
- }
141
- );
142
- const g = () => {
143
- const e = i.value;
144
- if (!e) return "#ffffff";
145
- const t = e.getContext("2d");
146
- if (!t) return "#ffffff";
147
- const { x: a, y: n } = l.value, u = t.getImageData(a, n, 1, 1).data, [M, z, Y] = u;
148
- return `#${((1 << 24) + (M << 16) + (z << 8) + Y).toString(16).slice(1)}`;
149
- };
150
- function W(e) {
151
- const t = K(...B(e));
152
- d.value = y(t, 100, 50), c.value.x = t / 360 * (r.value?.width ?? 0);
153
- }
154
- return (e, t) => (_(), S("span", {
155
- ref_key: "paletteRef",
156
- ref: O,
157
- "aria-label": "Color Picker",
158
- class: "bb-color-palette",
159
- role: "application"
160
- }, [
161
- w("canvas", {
162
- ref_key: "mainCanvasRef",
163
- ref: i,
164
- "aria-describedby": "mainCanvasDesc",
165
- "aria-label": "Main Color Selection",
166
- class: "bb-color-palette__canvas",
167
- role: "application",
168
- tabindex: "0",
169
- onKeydown: X,
170
- onPointerdown: q
171
- }, null, 544),
172
- w("span", ee, [
173
- A(C(x(h)("colorInput.mainCanvasDesc")) + " ", 1),
174
- o.value ? (_(), S("span", te, C(x(h)("colorInput.mainCanvasSelectedColor", o.value)), 1)) : E("", !0)
175
- ]),
176
- w("canvas", {
177
- ref_key: "hueCanvasRef",
178
- ref: r,
179
- "aria-describedby": "hueCanvasDesc",
180
- "aria-label": "Hue Selection",
181
- class: "bb-color-palette__hue-canvas",
182
- role: "application",
183
- tabindex: "0",
184
- onKeydown: $,
185
- onPointerdown: U
186
- }, null, 544),
187
- w("span", ae, [
188
- A(C(x(h)("colorInput.hueCanvasDesc")) + " ", 1),
189
- d.value ? (_(), S("span", ne, C(x(h)("colorInput.hueCanvasSelectedHue", d.value)), 1)) : E("", !0)
190
- ])
191
- ], 512));
192
- }
193
- });
1
+ import r from "./index297.js";
2
+ const t = r;
194
3
  export {
195
- ce as default
4
+ t as deburr
196
5
  };
@@ -0,0 +1,8 @@
1
+ import e from "./index314.js";
2
+ import o from "./index315.js";
3
+ import r from "./index316.js";
4
+ const f = new r(o, e)._freeze();
5
+ export {
6
+ r as Mime,
7
+ f as default
8
+ };