bitboss-ui 2.1.73 → 2.1.75

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 (178) hide show
  1. package/dist/components/BbRows/BbRows.vue.d.ts +3 -3
  2. package/dist/components/BbTable/BbTable.vue.d.ts +30 -6
  3. package/dist/components/BbTable/types.d.ts +46 -28
  4. package/dist/components/BbTable/utils.d.ts +23 -0
  5. package/dist/composables/useBbConfig.d.ts +5 -1
  6. package/dist/index.css +1 -1
  7. package/dist/index107.js +9 -9
  8. package/dist/index112.js +1 -1
  9. package/dist/index114.js +1 -1
  10. package/dist/index120.js +1 -1
  11. package/dist/index122.js +326 -304
  12. package/dist/index13.js +64 -33
  13. package/dist/index130.js +1 -1
  14. package/dist/index132.js +4 -4
  15. package/dist/index134.js +1 -1
  16. package/dist/index136.js +2 -2
  17. package/dist/index15.js +5 -5
  18. package/dist/index17.js +3 -3
  19. package/dist/index19.js +8 -8
  20. package/dist/index21.js +14 -14
  21. package/dist/index217.js +1 -1
  22. package/dist/index218.js +1 -1
  23. package/dist/index219.js +4 -34
  24. package/dist/index220.js +13 -9
  25. package/dist/index221.js +20 -2
  26. package/dist/index222.js +201 -4
  27. package/dist/index224.js +127 -3
  28. package/dist/{index225.js → index226.js} +1 -1
  29. package/dist/index228.js +27 -15
  30. package/dist/index229.js +15 -49
  31. package/dist/index23.js +11 -11
  32. package/dist/index230.js +48 -12
  33. package/dist/index231.js +15 -3
  34. package/dist/index232.js +3 -12
  35. package/dist/index233.js +11 -15
  36. package/dist/index234.js +15 -12
  37. package/dist/index235.js +13 -13
  38. package/dist/index237.js +32 -3
  39. package/dist/index238.js +27 -19
  40. package/dist/index240.js +4 -0
  41. package/dist/index241.js +11 -127
  42. package/dist/index242.js +10 -0
  43. package/dist/index243.js +9 -10
  44. package/dist/index244.js +3 -3
  45. package/dist/index245.js +2 -4
  46. package/dist/index246.js +2 -5
  47. package/dist/index247.js +9 -5
  48. package/dist/index248.js +34 -5
  49. package/dist/index249.js +2 -5
  50. package/dist/index25.js +2 -2
  51. package/dist/index250.js +3 -2
  52. package/dist/index251.js +187 -5
  53. package/dist/index252.js +4 -8
  54. package/dist/index253.js +7 -266
  55. package/dist/index254.js +40 -51
  56. package/dist/index255.js +5 -52
  57. package/dist/index256.js +5 -32
  58. package/dist/index257.js +5 -60
  59. package/dist/index258.js +5 -3
  60. package/dist/index259.js +2 -188
  61. package/dist/index260.js +6 -3
  62. package/dist/index261.js +266 -16
  63. package/dist/index262.js +52 -12
  64. package/dist/index263.js +47 -101
  65. package/dist/index264.js +34 -0
  66. package/dist/index265.js +55 -95
  67. package/dist/index266.js +6 -0
  68. package/dist/index267.js +22 -228
  69. package/dist/index268.js +106 -3
  70. package/dist/index27.js +1 -1
  71. package/dist/index270.js +99 -15
  72. package/dist/index272.js +3 -5
  73. package/dist/index273.js +3 -5
  74. package/dist/index274.js +9 -2
  75. package/dist/index275.js +23 -33
  76. package/dist/index276.js +5 -28
  77. package/dist/index277.js +7 -0
  78. package/dist/index278.js +5 -2
  79. package/dist/index279.js +5 -2
  80. package/dist/index280.js +18 -2
  81. package/dist/index281.js +11 -6
  82. package/dist/index282.js +229 -7
  83. package/dist/index283.js +8 -9
  84. package/dist/index284.js +2 -23
  85. package/dist/index285.js +6 -22
  86. package/dist/index286.js +7 -7
  87. package/dist/index287.js +10 -9
  88. package/dist/index288.js +3 -67
  89. package/dist/index289.js +67 -2
  90. package/dist/index29.js +2 -2
  91. package/dist/index290.js +7 -9
  92. package/dist/index291.js +6 -5
  93. package/dist/index292.js +16 -8
  94. package/dist/index294.js +3 -4
  95. package/dist/index295.js +5 -0
  96. package/dist/index296.js +1 -1
  97. package/dist/index297.js +2 -2
  98. package/dist/index298.js +1 -1
  99. package/dist/index299.js +1 -1
  100. package/dist/index301.js +4 -4
  101. package/dist/index302.js +2 -280
  102. package/dist/index303.js +4 -2
  103. package/dist/index304.js +277 -13
  104. package/dist/index305.js +2 -2
  105. package/dist/index306.js +9 -9
  106. package/dist/index308.js +12 -23
  107. package/dist/index31.js +2 -2
  108. package/dist/index310.js +27 -2
  109. package/dist/index311.js +2 -2
  110. package/dist/index312.js +1 -1
  111. package/dist/index313.js +1 -1
  112. package/dist/index314.js +1 -1
  113. package/dist/index315.js +2 -3
  114. package/dist/index316.js +2 -3
  115. package/dist/index317.js +5 -4
  116. package/dist/index318.js +3 -719
  117. package/dist/index319.js +3 -366
  118. package/dist/index320.js +123 -55
  119. package/dist/index321.js +2 -5
  120. package/dist/index322.js +15 -3
  121. package/dist/index323.js +2 -3
  122. package/dist/index324.js +19 -2
  123. package/dist/index325.js +2 -125
  124. package/dist/index326.js +4 -2
  125. package/dist/index327.js +2 -15
  126. package/dist/index328.js +2 -2
  127. package/dist/index329.js +5 -18
  128. package/dist/index33.js +8 -8
  129. package/dist/index330.js +8 -2
  130. package/dist/index331.js +6 -2
  131. package/dist/index332.js +8 -6
  132. package/dist/index333.js +34 -6
  133. package/dist/index334.js +6 -5
  134. package/dist/index335.js +128 -6
  135. package/dist/index336.js +395 -16
  136. package/dist/index337.js +58 -9
  137. package/dist/index338.js +57 -14
  138. package/dist/index339.js +227 -7
  139. package/dist/index340.js +6 -5
  140. package/dist/index341.js +19 -8
  141. package/dist/index342.js +8 -34
  142. package/dist/index343.js +15 -6
  143. package/dist/index344.js +5 -129
  144. package/dist/index345.js +6 -397
  145. package/dist/index346.js +92 -46
  146. package/dist/index347.js +719 -93
  147. package/dist/index348.js +365 -57
  148. package/dist/index349.js +56 -57
  149. package/dist/index35.js +4 -4
  150. package/dist/index350.js +131 -225
  151. package/dist/index353.js +44 -131
  152. package/dist/index37.js +17 -17
  153. package/dist/index39.js +6 -6
  154. package/dist/index4.js +12 -10
  155. package/dist/index41.js +2 -2
  156. package/dist/index43.js +8 -8
  157. package/dist/index45.js +6 -6
  158. package/dist/index49.js +1 -1
  159. package/dist/index53.js +1 -1
  160. package/dist/index55.js +1 -1
  161. package/dist/index57.js +2 -2
  162. package/dist/index61.js +4 -4
  163. package/dist/index67.js +1 -1
  164. package/dist/index80.js +5 -5
  165. package/dist/index82.js +1 -1
  166. package/dist/index84.js +2 -2
  167. package/dist/index86.js +3 -3
  168. package/dist/index88.js +1 -1
  169. package/dist/index91.js +2 -2
  170. package/dist/index93.js +2 -2
  171. package/dist/index95.js +4 -4
  172. package/package.json +1 -1
  173. package/dist/index223.js +0 -4
  174. package/dist/index227.js +0 -31
  175. package/dist/index239.js +0 -203
  176. package/dist/index269.js +0 -8
  177. package/dist/index271.js +0 -7
  178. package/dist/index293.js +0 -13
package/dist/index43.js CHANGED
@@ -1,15 +1,15 @@
1
1
  import { defineComponent as j, ref as k, toRef as d, createBlock as z, openBlock as G, unref as B, withCtx as n, renderSlot as s, normalizeProps as v, guardReactiveProps as b, createVNode as R, mergeProps as w, createSlots as W } from "vue";
2
2
  import K from "./index41.js";
3
3
  /* empty css */
4
- import N from "./index225.js";
4
+ import N from "./index226.js";
5
5
  /* empty css */
6
- import { useItemsGetter as U } from "./index227.js";
7
- import { useIndexById as T } from "./index228.js";
8
- import { useBaseOptions as q } from "./index229.js";
9
- import { useCoherence as J } from "./index230.js";
10
- import { hash as Q } from "./index231.js";
11
- import { useHashedWatcher as $ } from "./index232.js";
12
- import { usePrefill as X } from "./index233.js";
6
+ import { useItemsGetter as U } from "./index228.js";
7
+ import { useIndexById as T } from "./index229.js";
8
+ import { useBaseOptions as q } from "./index230.js";
9
+ import { useCoherence as J } from "./index231.js";
10
+ import { hash as Q } from "./index232.js";
11
+ import { useHashedWatcher as $ } from "./index233.js";
12
+ import { usePrefill as X } from "./index234.js";
13
13
  const ue = /* @__PURE__ */ j({
14
14
  __name: "BaseSwitchGroup",
15
15
  props: {
package/dist/index45.js CHANGED
@@ -1,17 +1,17 @@
1
1
  import { defineComponent as j, ref as u, computed as m, toRef as C, watch as Q, createBlock as h, openBlock as f, normalizeClass as Z, withCtx as l, createVNode as E, unref as G, createElementVNode as I, createElementBlock as J, createCommentVNode as W, withDirectives as X, Fragment as Y, mergeProps as ee, withModifiers as s, withKeys as v, vModelText as te, renderSlot as d, nextTick as oe } from "vue";
2
2
  import ae from "./index112.js";
3
3
  /* empty css */
4
- import { last as le } from "./index250.js";
5
- import { useBaseOptions as ne } from "./index229.js";
6
- import { useIndexById as re } from "./index228.js";
7
- import ie from "./index263.js";
4
+ import { last as le } from "./index259.js";
5
+ import { useBaseOptions as ne } from "./index230.js";
6
+ import { useIndexById as re } from "./index229.js";
7
+ import ie from "./index268.js";
8
8
  /* empty css */
9
- import ue from "./index265.js";
9
+ import ue from "./index270.js";
10
10
  /* empty css */
11
11
  import se from "./index136.js";
12
12
  /* empty css */
13
13
  import de from "./index138.js";
14
- import { isEmpty as pe } from "./index260.js";
14
+ import { isEmpty as pe } from "./index272.js";
15
15
  const ce = { class: "bb-base-tag__input-container" }, me = ["id", "aria-describedby", "autocomplete", "autofocus", "disabled", "placeholder", "readonly", "required", "onKeydown"], Oe = /* @__PURE__ */ j({
16
16
  __name: "BaseTag",
17
17
  props: {
package/dist/index49.js CHANGED
@@ -3,7 +3,7 @@ import E from "./index136.js";
3
3
  /* empty css */
4
4
  import I from "./index138.js";
5
5
  import { isNotNil as N } from "./index144.js";
6
- import { MaskInput as z } from "./index259.js";
6
+ import { MaskInput as z } from "./index251.js";
7
7
  const D = ["id", "aria-describedby", "aria-invalid", "autocomplete", "autofocus", "disabled", "inputmode", "name", "placeholder", "readonly", "required", "type"], F = ["id", "aria-describedby", "aria-invalid", "autocomplete", "autofocus", "disabled", "inputmode", "name", "placeholder", "readonly", "required", "type", "value"], U = /* @__PURE__ */ V({
8
8
  __name: "BaseTextInput",
9
9
  props: {
package/dist/index53.js CHANGED
@@ -3,7 +3,7 @@ import B from "./index69.js";
3
3
  /* empty css */
4
4
  import L from "./index86.js";
5
5
  /* empty css */
6
- import { useLocale as g } from "./index235.js";
6
+ import { useLocale as g } from "./index220.js";
7
7
  const $ = {
8
8
  class: "bb-alert__inner-container",
9
9
  role: "alert"
package/dist/index55.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as b, computed as z, ref as o, onMounted as g, createElementBlock as l, openBlock as i, normalizeProps as _, guardReactiveProps as h, renderSlot as k } from "vue";
2
- import { isCssColor as y } from "./index221.js";
2
+ import { isCssColor as y } from "./index240.js";
3
3
  import { wait as C } from "./index140.js";
4
4
  const w = ["alt", "sizes", "src", "srcset"], B = {
5
5
  key: 1,
package/dist/index57.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as p, useSlots as d, computed as s, createElementBlock as m, openBlock as u, normalizeClass as g, createElementVNode as n, renderSlot as r, mergeProps as f, createTextVNode as _, toDisplayString as y } from "vue";
2
- import { isCssColor as l } from "./index221.js";
3
- import { isNil as B } from "./index280.js";
2
+ import { isCssColor as l } from "./index240.js";
3
+ import { isNil as B } from "./index249.js";
4
4
  const C = { class: "bb-badge__wrapper" }, h = { class: "bb-badge__content-inner" }, N = /* @__PURE__ */ p({
5
5
  __name: "BbBadge",
6
6
  props: {
package/dist/index61.js CHANGED
@@ -7,10 +7,10 @@ import d from "./index86.js";
7
7
  /* empty css */
8
8
  import x from "./index114.js";
9
9
  /* empty css */
10
- import { pickBy as O } from "./index243.js";
11
- import { noop as G } from "./index244.js";
12
- import { useLocale as H } from "./index235.js";
13
- import { extractDomContainer as I } from "./index245.js";
10
+ import { pickBy as O } from "./index287.js";
11
+ import { noop as G } from "./index288.js";
12
+ import { useLocale as H } from "./index220.js";
13
+ import { extractDomContainer as I } from "./index266.js";
14
14
  const J = {
15
15
  key: 2,
16
16
  class: "bb-button__loading-label sr-only"
package/dist/index67.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as i, createElementBlock as o, openBlock as a, createElementVNode as t, createCommentVNode as p, renderSlot as b, createTextVNode as m, toDisplayString as u, withModifiers as d, unref as _ } from "vue";
2
- import { useLocale as f } from "./index235.js";
2
+ import { useLocale as f } from "./index220.js";
3
3
  const h = { class: "bb-chip" }, L = { class: "bb-chip__content" }, k = ["aria-label"], B = /* @__PURE__ */ i({
4
4
  __name: "BbChip",
5
5
  props: {
package/dist/index80.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as oe, ref as K, computed as b, useTemplateRef as ne, watch as h, onBeforeUnmount as ae, createElementBlock as I, openBlock as y, Fragment as S, renderSlot as c, createCommentVNode as _, createVNode as H, normalizeProps as re, mergeProps as C, withCtx as M, createElementVNode as U, normalizeStyle as ie, unref as R, renderList as se, createBlock as W, toDisplayString as le } from "vue";
2
- import { findRightIndex as T } from "./index283.js";
2
+ import { findRightIndex as T } from "./index274.js";
3
3
  import { useId as de } from "./index8.js";
4
4
  import { useUntil as ue } from "./index236.js";
5
5
  import { wait as pe } from "./index140.js";
@@ -7,12 +7,12 @@ import ce from "./index13.js";
7
7
  /* empty css */
8
8
  import j from "./index86.js";
9
9
  /* empty css */
10
- import me from "./index241.js";
10
+ import me from "./index224.js";
11
11
  /* empty css */
12
- import z from "./index284.js";
13
- import { extractDomContainer as B } from "./index245.js";
12
+ import z from "./index275.js";
13
+ import { extractDomContainer as B } from "./index266.js";
14
14
  import { useIntersectionObserver as fe, useElementSize as ve } from "./index141.js";
15
- import { parseWidthString as be } from "./index285.js";
15
+ import { parseWidthString as be } from "./index267.js";
16
16
  const ye = ["id", "aria-labelledby", "inert"], we = { class: "item__content" }, Pe = /* @__PURE__ */ oe({
17
17
  inheritAttrs: !1,
18
18
  __name: "BbDropdown",
package/dist/index82.js CHANGED
@@ -9,7 +9,7 @@ import z from "./index86.js";
9
9
  /* empty css */
10
10
  import I from "./index114.js";
11
11
  /* empty css */
12
- import { useLocale as M } from "./index235.js";
12
+ import { useLocale as M } from "./index220.js";
13
13
  const O = { class: "bb-dropdown-button__content" }, R = {
14
14
  key: 1,
15
15
  class: "bb-dropdown-button__loading-label sr-only"
package/dist/index84.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as j, ref as g, watch as x, computed as m, createBlock as G, openBlock as V, resolveDynamicComponent as K, normalizeClass as O, withCtx as M, createElementVNode as c, withModifiers as y, renderSlot as U, normalizeProps as Y, guardReactiveProps as Z, createTextVNode as J, unref as Q, createVNode as W, createElementBlock as F, Fragment as X, renderList as ee, toDisplayString as te } from "vue";
2
- import { findInTree as ae } from "./index270.js";
2
+ import { findInTree as ae } from "./index292.js";
3
3
  import { useId as re } from "./index8.js";
4
4
  import oe from "./index112.js";
5
5
  /* empty css */
@@ -53,7 +53,7 @@ const le = ["accept", "autofocus", "disabled", "multiple"], se = { class: "bb-dr
53
53
  const r = a.accept[t];
54
54
  if (r.includes("/")) e.push(r);
55
55
  else {
56
- b || (b = (await import("./index269.js")).default);
56
+ b || (b = (await import("./index291.js")).default);
57
57
  const o = b.getType(r);
58
58
  if (!o)
59
59
  throw new Error(
package/dist/index86.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as $, ref as f, computed as a, getCurrentInstance as d, onServerPrefetch as I, onBeforeMount as _, watch as L, createElementBlock as M, openBlock as B, mergeProps as k, inject as A } from "vue";
2
- import { isCssColor as C } from "./index221.js";
3
- import { get as m } from "./index293.js";
4
- import { useLogger as N } from "./index252.js";
2
+ import { isCssColor as C } from "./index240.js";
3
+ import { get as m } from "./index241.js";
4
+ import { useLogger as N } from "./index242.js";
5
5
  const S = ["innerHTML"], E = /* @__PURE__ */ $({
6
6
  __name: "BbIcon",
7
7
  props: {
package/dist/index88.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as h, ref as t, onMounted as m, onBeforeUnmount as p, createBlock as g, openBlock as b, resolveDynamicComponent as w, withCtx as _, renderSlot as I } from "vue";
2
- import { throttle as c } from "./index258.js";
2
+ import { throttle as c } from "./index244.js";
3
3
  const M = /* @__PURE__ */ h({
4
4
  __name: "BbIntersection",
5
5
  props: {
package/dist/index91.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as I, mergeModels as B, useModel as N, computed as m, ref as L, watch as P, onMounted as W, createElementBlock as r, openBlock as d, withModifiers as F, normalizeStyle as O, normalizeClass as q, unref as p, createCommentVNode as v, Fragment as A, createElementVNode as o, renderSlot as l, createTextVNode as H, toDisplayString as M, nextTick as K } from "vue";
2
- import { parseSize as R } from "./index234.js";
2
+ import { parseSize as R } from "./index235.js";
3
3
  import { useId as $ } from "./index8.js";
4
- import { useLocale as U } from "./index235.js";
4
+ import { useLocale as U } from "./index220.js";
5
5
  import { useMobile as j } from "./index9.js";
6
6
  import { useUntil as G } from "./index236.js";
7
7
  import { wait as y } from "./index140.js";
package/dist/index93.js CHANGED
@@ -3,8 +3,8 @@ import { defineComponent as V, mergeModels as W, useModel as U, computed as b, r
3
3
  /* empty css */
4
4
  import P from "./index13.js";
5
5
  /* empty css */
6
- import { debounce as X } from "./index287.js";
7
- import { useLocale as H } from "./index235.js";
6
+ import { debounce as X } from "./index243.js";
7
+ import { useLocale as H } from "./index220.js";
8
8
  import { useRoute as J } from "./index146.js";
9
9
  const K = ["aria-label"], Q = { class: "bb-pagination__page-label sr-only" }, Y = { class: "bb-pagination__page-label" }, Z = { class: "bb-pagination__page-label" }, ee = { class: "bb-pagination__page-label sr-only" }, ue = /* @__PURE__ */ V({
10
10
  __name: "BbPagination",
package/dist/index95.js CHANGED
@@ -1,14 +1,14 @@
1
1
  import { defineComponent as G, mergeModels as E, ref as U, useTemplateRef as q, computed as s, useModel as H, watch as m, nextTick as K, createElementBlock as j, openBlock as A, Fragment as J, renderSlot as B, createCommentVNode as C, createVNode as Q, normalizeProps as X, mergeProps as V, unref as v, withCtx as $, createElementVNode as f, createBlock as Y } from "vue";
2
2
  import { useId as Z } from "./index8.js";
3
3
  import { useIntersectionObserver as _, useElementSize as ee } from "./index141.js";
4
- import { useLocale as te } from "./index235.js";
4
+ import { useLocale as te } from "./index220.js";
5
5
  import { useUntil as oe } from "./index236.js";
6
6
  import ae from "./index13.js";
7
7
  /* empty css */
8
- import re from "./index241.js";
8
+ import re from "./index224.js";
9
9
  /* empty css */
10
- import { extractDomContainer as P } from "./index245.js";
11
- import { parseWidthString as I } from "./index285.js";
10
+ import { extractDomContainer as P } from "./index266.js";
11
+ import { parseWidthString as I } from "./index267.js";
12
12
  const ne = ["inert"], he = /* @__PURE__ */ G({
13
13
  inheritAttrs: !1,
14
14
  __name: "BbPopover",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bitboss-ui",
3
- "version": "2.1.73",
3
+ "version": "2.1.75",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
6
  "scripts": {
package/dist/index223.js DELETED
@@ -1,4 +0,0 @@
1
- const o = (e) => typeof e == "boolean" ? e : e === "true";
2
- export {
3
- o as booleanishToBoolean
4
- };
package/dist/index227.js DELETED
@@ -1,31 +0,0 @@
1
- import { ref as a, computed as s, unref as v } from "vue";
2
- import { useDebounceFn as f } from "./index214.js";
3
- const p = (u) => {
4
- const e = a(0), r = s(() => v(u.items)), t = a([]), n = async (...l) => {
5
- if (Array.isArray(r.value))
6
- t.value = r.value;
7
- else if (typeof r.value == "function") {
8
- const i = ++e.value;
9
- try {
10
- const o = await r.value(...l);
11
- if (i < e.value) {
12
- e.value--;
13
- return;
14
- } else
15
- t.value = o;
16
- } catch (o) {
17
- console.error(o);
18
- }
19
- e.value--;
20
- }
21
- }, c = f(n, u.debounce || 0);
22
- return {
23
- getter: n,
24
- debouncedGetter: c,
25
- items: t,
26
- loading: s(() => !!e.value)
27
- };
28
- };
29
- export {
30
- p as useItemsGetter
31
- };
package/dist/index239.js DELETED
@@ -1,203 +0,0 @@
1
- import { defineComponent as j, ref as s, onMounted as J, watch as Q, createElementBlock as M, openBlock as S, createElementVNode as x, createTextVNode as L, createCommentVNode as B, toDisplayString as y, unref as w } from "vue";
2
- import { hexToRgb as K } from "./index339.js";
3
- import { getHueFromRGB as F } from "./index340.js";
4
- import { hslToHex as b } from "./index341.js";
5
- import { useLocale as Z } from "./index235.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 }, ue = /* @__PURE__ */ j({
15
- __name: "ColorPallette",
16
- props: {
17
- modelValue: {}
18
- },
19
- emits: ["update:modelValue"],
20
- setup(N, { emit: O }) {
21
- const _ = N, f = O, { t: h } = Z(), o = s(_.modelValue), d = s(
22
- b(F(...K(o.value ?? "#ff0000")), 100, 50)
23
- ), T = s(null), i = s(null), r = s(null), l = s({ x: 0, y: 0 }), u = s({ x: 0 }), p = s(!1), P = s(!1), q = () => {
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(), g());
26
- }, R = () => {
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 = R();
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
- }, m = () => {
40
- const e = R();
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
- }, D = () => {
55
- const e = r.value;
56
- return e ? e.getContext("2d", { willReadFrequently: !0 }) : null;
57
- }, g = () => {
58
- const e = r.value;
59
- if (!e) return;
60
- const t = D();
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 = D();
70
- if (!t) return;
71
- const a = 10, n = 16, c = u.value.x - a / 2, k = e.height / 2 - n / 2;
72
- t.beginPath(), t.roundRect(c, k, a, n, 2), t.strokeStyle = "lightgray", t.stroke(), t.fillStyle = "#ffffff", t.fill();
73
- }, E = (e) => {
74
- const t = i.value;
75
- t && (t.setPointerCapture(e.pointerId), p.value = !0, I(e));
76
- }, U = (e) => {
77
- const t = r.value;
78
- t && (t.setPointerCapture(e.pointerId), P.value = !0, V(e));
79
- }, I = (e) => {
80
- const t = i.value;
81
- if (!t) return;
82
- const a = t.getBoundingClientRect(), n = Math.max(0, Math.min(t.width - 1, e.clientX - a.left)), c = Math.max(0, Math.min(t.height - 1, e.clientY - a.top));
83
- l.value = { x: n, y: c }, v(), m(), o.value = C(), f("update:modelValue", o.value);
84
- }, V = (e) => {
85
- const t = r.value;
86
- if (!t) return;
87
- const a = t.getBoundingClientRect(), n = Math.max(0, Math.min(t.width - 1, e.clientX - a.left));
88
- u.value = { x: n };
89
- const c = n / t.width * 360;
90
- d.value = b(c, 100, 50), g(), v(), m(), o.value = C(), f("update:modelValue", o.value);
91
- }, G = (e) => {
92
- p.value ? I(e) : P.value && V(e);
93
- }, W = (e) => {
94
- const t = p.value ? i.value : r.value;
95
- t && t.releasePointerCapture(e.pointerId), p.value = !1, P.value = !1;
96
- }, X = (e) => {
97
- switch (e.key) {
98
- case "ArrowUp":
99
- l.value.y = Math.max(0, l.value.y - 5);
100
- break;
101
- case "ArrowDown":
102
- l.value.y = Math.min(
103
- i.value?.height ?? 0,
104
- l.value.y + 5
105
- );
106
- break;
107
- case "ArrowLeft":
108
- l.value.x = Math.max(0, l.value.x - 5);
109
- break;
110
- case "ArrowRight":
111
- l.value.x = Math.min(
112
- i.value?.width ?? 0,
113
- l.value.x + 5
114
- );
115
- break;
116
- default:
117
- return;
118
- }
119
- v(), m(), o.value = C(), f("update:modelValue", o.value), e.preventDefault();
120
- }, $ = (e) => {
121
- switch (e.key) {
122
- case "ArrowLeft":
123
- u.value.x = Math.max(0, u.value.x - 5);
124
- break;
125
- case "ArrowRight":
126
- u.value.x = Math.min(
127
- r.value?.width ?? 0,
128
- u.value.x + 5
129
- );
130
- break;
131
- default:
132
- return;
133
- }
134
- const a = u.value.x / (r.value?.width ?? 1) * 360;
135
- d.value = b(a, 100, 50), g(), H(), v(), m(), o.value = C(), f("update:modelValue", o.value), e.preventDefault();
136
- };
137
- J(() => {
138
- q(), A(o.value ?? "#ff0000");
139
- }), Q(
140
- () => _.modelValue,
141
- (e) => {
142
- !e || e === o.value || (o.value = e, A(e), g(), v());
143
- }
144
- );
145
- const C = () => {
146
- const e = i.value;
147
- if (!e) return "#ffffff";
148
- const t = e.getContext("2d");
149
- if (!t) return "#ffffff";
150
- const { x: a, y: n } = l.value, c = t.getImageData(a, n, 1, 1).data, [k, z, Y] = c;
151
- return `#${((1 << 24) + (k << 16) + (z << 8) + Y).toString(16).slice(1)}`;
152
- };
153
- function A(e) {
154
- const t = F(...K(e));
155
- d.value = b(t, 100, 50), u.value.x = t / 360 * (r.value?.width ?? 0);
156
- }
157
- return (e, t) => (S(), M("span", {
158
- ref_key: "paletteRef",
159
- ref: T,
160
- "aria-label": "Color Picker",
161
- class: "bb-color-palette",
162
- role: "application"
163
- }, [
164
- x("canvas", {
165
- ref_key: "mainCanvasRef",
166
- ref: i,
167
- "aria-describedby": "mainCanvasDesc",
168
- "aria-label": "Main Color Selection",
169
- class: "bb-color-palette__canvas",
170
- role: "application",
171
- tabindex: "0",
172
- onKeydown: X,
173
- onPointerdown: E,
174
- onPointermove: G,
175
- onPointerup: W
176
- }, null, 544),
177
- x("span", ee, [
178
- L(y(w(h)("colorInput.mainCanvasDesc")) + " ", 1),
179
- o.value ? (S(), M("span", te, y(w(h)("colorInput.mainCanvasSelectedColor", o.value)), 1)) : B("", !0)
180
- ]),
181
- x("canvas", {
182
- ref_key: "hueCanvasRef",
183
- ref: r,
184
- "aria-describedby": "hueCanvasDesc",
185
- "aria-label": "Hue Selection",
186
- class: "bb-color-palette__hue-canvas",
187
- role: "application",
188
- tabindex: "0",
189
- onKeydown: $,
190
- onPointerdown: U,
191
- onPointermove: G,
192
- onPointerup: W
193
- }, null, 544),
194
- x("span", ae, [
195
- L(y(w(h)("colorInput.hueCanvasDesc")) + " ", 1),
196
- d.value ? (S(), M("span", ne, y(w(h)("colorInput.hueCanvasSelectedHue", d.value)), 1)) : B("", !0)
197
- ])
198
- ], 512));
199
- }
200
- });
201
- export {
202
- ue as default
203
- };
package/dist/index269.js DELETED
@@ -1,8 +0,0 @@
1
- import e from "./index318.js";
2
- import o from "./index319.js";
3
- import r from "./index320.js";
4
- const f = new r(o, e)._freeze();
5
- export {
6
- r as Mime,
7
- f as default
8
- };
package/dist/index271.js DELETED
@@ -1,7 +0,0 @@
1
- import { getDefaultExportFromCjs as r } from "./index332.js";
2
- import { __require as o } from "./index325.js";
3
- var t = o();
4
- const m = /* @__PURE__ */ r(t);
5
- export {
6
- m as default
7
- };
package/dist/index293.js DELETED
@@ -1,13 +0,0 @@
1
- function c(n, r, e) {
2
- const i = typeof r == "string" ? r.split(".") : r;
3
- let t = n;
4
- for (const o of i)
5
- if (t && typeof t == "object" && o in t)
6
- t = t[o];
7
- else
8
- return e;
9
- return t === void 0 ? e : t;
10
- }
11
- export {
12
- c as get
13
- };