bitboss-ui 2.1.44 → 2.1.45

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 (161) hide show
  1. package/dist/components/BaseDatePicker/BaseDatePicker.vue.d.ts +7 -3
  2. package/dist/components/BaseDatePicker/BaseDatePickerInputDaySelector.vue.d.ts +4 -3
  3. package/dist/components/BaseDatePickerInput/BaseDatePickerInput.vue.d.ts +15 -9
  4. package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +8 -4
  5. package/dist/index106.js +8 -8
  6. package/dist/index113.js +1 -1
  7. package/dist/index121.js +10 -10
  8. package/dist/index13.js +1 -1
  9. package/dist/index131.js +5 -5
  10. package/dist/index139.js +1 -1
  11. package/dist/index141.js +1 -1
  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 +88 -83
  16. package/dist/index212.js +2 -2
  17. package/dist/index214.js +2 -2
  18. package/dist/index215.js +2 -2
  19. package/dist/index216.js +51 -4
  20. package/dist/index217.js +17 -2
  21. package/dist/index218.js +105 -12
  22. package/dist/index220.js +99 -19
  23. package/dist/index222.js +5 -0
  24. package/dist/index223.js +4 -121
  25. package/dist/index224.js +15 -0
  26. package/dist/index225.js +19 -33
  27. package/dist/index226.js +197 -11
  28. package/dist/index228.js +117 -82
  29. package/dist/index23.js +143 -125
  30. package/dist/index230.js +3 -29
  31. package/dist/index231.js +17 -16
  32. package/dist/index232.js +11 -50
  33. package/dist/index233.js +1 -1
  34. package/dist/index234.js +12 -3
  35. package/dist/index235.js +28 -11
  36. package/dist/index237.js +4 -2
  37. package/dist/index238.js +212 -89
  38. package/dist/index239.js +15 -0
  39. package/dist/index240.js +7 -100
  40. package/dist/index242.js +86 -2
  41. package/dist/index244.js +3 -5
  42. package/dist/index245.js +9 -5
  43. package/dist/index246.js +8 -5
  44. package/dist/index247.js +9 -5
  45. package/dist/index248.js +5 -5
  46. package/dist/index249.js +5 -5
  47. package/dist/index25.js +3 -3
  48. package/dist/index250.js +5 -2
  49. package/dist/index251.js +5 -2
  50. package/dist/index252.js +5 -7
  51. package/dist/index253.js +5 -7
  52. package/dist/index254.js +2 -13
  53. package/dist/index255.js +12 -12
  54. package/dist/index256.js +2 -183
  55. package/dist/index257.js +2 -18
  56. package/dist/index258.js +34 -12
  57. package/dist/index259.js +180 -226
  58. package/dist/index260.js +9 -3
  59. package/dist/index261.js +23 -9
  60. package/dist/index262.js +4 -5
  61. package/dist/index263.js +23 -5
  62. package/dist/index264.js +11 -250
  63. package/dist/index265.js +6 -50
  64. package/dist/index266.js +10 -44
  65. package/dist/index267.js +3 -5
  66. package/dist/index268.js +5 -60
  67. package/dist/index269.js +5 -9
  68. package/dist/index27.js +1 -1
  69. package/dist/index270.js +270 -7
  70. package/dist/index271.js +52 -4
  71. package/dist/index272.js +43 -22
  72. package/dist/index273.js +5 -10
  73. package/dist/index274.js +60 -3
  74. package/dist/index276.js +6 -9
  75. package/dist/index277.js +16 -23
  76. package/dist/index278.js +2 -6
  77. package/dist/index279.js +7 -16
  78. package/dist/index280.js +7 -7
  79. package/dist/index282.js +1 -1
  80. package/dist/index285.js +1 -1
  81. package/dist/index288.js +5 -0
  82. package/dist/index289.js +1 -1
  83. package/dist/index29.js +3 -3
  84. package/dist/index290.js +17 -7
  85. package/dist/index291.js +27 -279
  86. package/dist/index292.js +3 -2
  87. package/dist/index293.js +3 -125
  88. package/dist/index294.js +7 -2
  89. package/dist/index295.js +5 -15
  90. package/dist/index296.js +3 -2
  91. package/dist/index297.js +3 -16
  92. package/dist/index298.js +280 -2
  93. package/dist/index299.js +2 -16
  94. package/dist/index300.js +125 -2
  95. package/dist/index301.js +2 -19
  96. package/dist/index302.js +15 -2
  97. package/dist/index303.js +2 -3
  98. package/dist/index304.js +16 -3
  99. package/dist/index305.js +2 -17
  100. package/dist/index306.js +15 -27
  101. package/dist/index307.js +2 -2
  102. package/dist/index308.js +19 -3
  103. package/dist/index309.js +2 -3
  104. package/dist/index31.js +2 -2
  105. package/dist/index310.js +4 -3
  106. package/dist/index311.js +2 -5
  107. package/dist/index312.js +1 -1
  108. package/dist/index317.js +1 -1
  109. package/dist/index318.js +1 -1
  110. package/dist/index319.js +1 -1
  111. package/dist/index320.js +1 -1
  112. package/dist/index323.js +2 -2
  113. package/dist/index329.js +35 -2
  114. package/dist/index33.js +6 -6
  115. package/dist/index330.js +6 -6
  116. package/dist/index331.js +125 -31
  117. package/dist/index332.js +369 -6
  118. package/dist/index333.js +7 -128
  119. package/dist/index334.js +5 -368
  120. package/dist/index335.js +7 -57
  121. package/dist/index336.js +33 -33
  122. package/dist/index337.js +58 -8
  123. package/dist/index338.js +2 -6
  124. package/dist/index339.js +228 -8
  125. package/dist/index340.js +5 -46
  126. package/dist/index341.js +46 -227
  127. package/dist/index342.js +128 -6
  128. package/dist/index343.js +6 -18
  129. package/dist/index344.js +17 -5
  130. package/dist/index345.js +6 -128
  131. package/dist/index346.js +85 -480
  132. package/dist/index347.js +480 -85
  133. package/dist/index35.js +4 -4
  134. package/dist/index37.js +16 -16
  135. package/dist/index39.js +7 -7
  136. package/dist/index41.js +2 -2
  137. package/dist/index43.js +6 -6
  138. package/dist/index45.js +6 -6
  139. package/dist/index49.js +1 -1
  140. package/dist/index53.js +1 -1
  141. package/dist/index55.js +1 -1
  142. package/dist/index57.js +2 -2
  143. package/dist/index61.js +3 -3
  144. package/dist/index67.js +1 -1
  145. package/dist/index75.js +7 -5
  146. package/dist/index79.js +6 -6
  147. package/dist/index81.js +1 -1
  148. package/dist/index83.js +2 -2
  149. package/dist/index85.js +3 -3
  150. package/dist/index90.js +3 -3
  151. package/dist/index92.js +2 -2
  152. package/dist/index94.js +5 -5
  153. package/dist/index96.js +1 -1
  154. package/dist/utilities/functions/empty.d.ts +1 -5
  155. package/dist/utilities/functions/max.d.ts +2 -0
  156. package/package.json +2 -2
  157. package/dist/index219.js +0 -6
  158. package/dist/index221.js +0 -199
  159. package/dist/index227.js +0 -10
  160. package/dist/index287.js +0 -6
  161. /package/dist/{index243.js → index241.js} +0 -0
@@ -9,6 +9,10 @@ export type BaseDatePickerProps = {
9
9
  * Defines the first day of the week with `0` meaning Sunday and `6` meaning Saturday
10
10
  */
11
11
  firstDayOfWeek?: (typeof it)['weekStart'];
12
+ /**
13
+ * If true the date will have a format YYYY-MM-DD instead of the default ISO string.
14
+ */
15
+ floating?: boolean;
12
16
  /**
13
17
  * The identifier of the component.
14
18
  */
@@ -20,11 +24,11 @@ export type BaseDatePickerProps = {
20
24
  /**
21
25
  * Maximum selectable date
22
26
  */
23
- max?: Date | string | number;
27
+ max?: string;
24
28
  /**
25
29
  * Minimum selectable date
26
30
  */
27
- min?: Date | string | number;
31
+ min?: string;
28
32
  /**
29
33
  * Used by v-model. Can be null, a single string, or an array of strings based on whether a range or single date is needed
30
34
  */
@@ -45,7 +49,7 @@ export type BaseDatePickerProps = {
45
49
  * Function that accepts a `Date` object and returns a boolean. `false` meaning the date cannot be selected
46
50
  * @param date
47
51
  */
48
- selectable?: (date: Date) => boolean;
52
+ selectable?: (date: string) => boolean;
49
53
  };
50
54
  declare function __VLS_template(): {
51
55
  attrs: Partial<{}>;
@@ -6,13 +6,14 @@ type Props = {
6
6
  disabled: boolean;
7
7
  firstDayOfWeek: number;
8
8
  id?: HTMLAttributes['id'];
9
+ floating?: boolean;
9
10
  /**
10
11
  * Used by v-model. Can be null, a single string, or an array of strings based on whether a range or single date is needed
11
12
  */
12
13
  modelValue: string | string[] | null;
13
- max?: Date | string | number;
14
- min?: Date | string | number;
15
- selectable?: (date: Date) => boolean;
14
+ max?: string;
15
+ min?: string;
16
+ selectable?: (date: string) => boolean;
16
17
  range?: boolean;
17
18
  multiple?: boolean;
18
19
  readonly?: boolean;
@@ -34,6 +34,10 @@ export type BaseDatePickerInputProps = {
34
34
  * Defines the first day of the week with `0` meaning Sunday and `6` meaning Saturday
35
35
  */
36
36
  firstDayOfWeek?: (typeof it)['weekStart'];
37
+ /**
38
+ * If true the date will have a format YYYY-MM-DD instead of the default ISO string.
39
+ */
40
+ floating?: boolean;
37
41
  /**
38
42
  * Define if the component should be in an error state.
39
43
  * It usually attaches a CSS class for styling purposes.
@@ -50,11 +54,11 @@ export type BaseDatePickerInputProps = {
50
54
  /**
51
55
  * Maximum selectable date
52
56
  */
53
- max?: Date | string | number;
57
+ max?: string;
54
58
  /**
55
59
  * Minimum selectable date
56
60
  */
57
- min?: Date | string | number;
61
+ min?: string;
58
62
  /**
59
63
  * Used by v-model. Can be null, a single string, or an array of strings based on whether a range or single date is needed
60
64
  */
@@ -87,7 +91,7 @@ export type BaseDatePickerInputProps = {
87
91
  * Function that accepts a `Date` object and returns a boolean. `false` meaning the date cannot be selected
88
92
  * @param date
89
93
  */
90
- selectable?: (date: Date) => boolean;
94
+ selectable?: (date: string) => boolean;
91
95
  /**
92
96
  * The transition duration of the floating component.
93
97
  */
@@ -232,15 +236,16 @@ declare function __VLS_template(): {
232
236
  $props: {
233
237
  readonly disabled?: boolean | undefined;
234
238
  readonly firstDayOfWeek?: number | undefined;
239
+ readonly floating?: boolean | undefined;
235
240
  readonly id?: string | undefined;
236
241
  readonly header?: boolean | undefined;
237
- readonly max?: (Date | string | number) | undefined;
238
- readonly min?: (Date | string | number) | undefined;
242
+ readonly max?: string | undefined;
243
+ readonly min?: string | undefined;
239
244
  readonly modelValue: string | string[] | null;
240
245
  readonly multiple?: boolean | undefined;
241
246
  readonly range?: boolean | undefined;
242
247
  readonly readonly?: boolean | undefined;
243
- readonly selectable?: ((date: Date) => boolean) | undefined;
248
+ readonly selectable?: ((date: string) => boolean) | undefined;
244
249
  readonly "onUpdate:modelValue"?: ((value: any) => any) | undefined;
245
250
  } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
246
251
  $attrs: {
@@ -428,15 +433,16 @@ declare const __VLS_component: import('vue').DefineComponent<BaseDatePickerInput
428
433
  $props: {
429
434
  readonly disabled?: boolean | undefined;
430
435
  readonly firstDayOfWeek?: number | undefined;
436
+ readonly floating?: boolean | undefined;
431
437
  readonly id?: string | undefined;
432
438
  readonly header?: boolean | undefined;
433
- readonly max?: (Date | string | number) | undefined;
434
- readonly min?: (Date | string | number) | undefined;
439
+ readonly max?: string | undefined;
440
+ readonly min?: string | undefined;
435
441
  readonly modelValue: string | string[] | null;
436
442
  readonly multiple?: boolean | undefined;
437
443
  readonly range?: boolean | undefined;
438
444
  readonly readonly?: boolean | undefined;
439
- readonly selectable?: ((date: Date) => boolean) | undefined;
445
+ readonly selectable?: ((date: string) => boolean) | undefined;
440
446
  readonly "onUpdate:modelValue"?: ((value: any) => any) | undefined;
441
447
  } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
442
448
  $attrs: {
@@ -43,6 +43,10 @@ export type BbDatePickerInputProps = {
43
43
  * Defines the first day of the week with `0` meaning Sunday and `6` meaning Saturday
44
44
  */
45
45
  firstDayOfWeek?: Locale['weekStart'];
46
+ /**
47
+ * If true the date will have a format YYYY-MM-DD instead of the default ISO string.
48
+ */
49
+ floating?: boolean;
46
50
  /**
47
51
  * Define if the component should be in an error state.
48
52
  * It usually attaches a CSS class for styling purposes.
@@ -75,11 +79,11 @@ export type BbDatePickerInputProps = {
75
79
  /**
76
80
  * Maximum selectable date
77
81
  */
78
- max?: Date | string | number;
82
+ max?: string;
79
83
  /**
80
84
  * Minimum selectable date
81
85
  */
82
- min?: Date | string | number;
86
+ min?: string;
83
87
  /**
84
88
  * Used by v-model. Can be null, a single string, or an array of strings based on whether a range or single date is needed
85
89
  */
@@ -117,10 +121,10 @@ export type BbDatePickerInputProps = {
117
121
  */
118
122
  reverse?: boolean;
119
123
  /**
120
- * Function that accepts a `Date` object and returns a boolean. `false` meaning the date cannot be selected
124
+ * Function that accepts a `string` object and returns a boolean. `false` meaning the date cannot be selected
121
125
  * @param date
122
126
  */
123
- selectable?: (date: Date) => boolean;
127
+ selectable?: (date: string) => boolean;
124
128
  /**
125
129
  * Width of the calendar
126
130
  */
package/dist/index106.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 "./index269.js";
3
- import { isNil as k } from "./index243.js";
4
- import { indexBy as U } from "./index270.js";
5
- import { hash as p } from "./index234.js";
6
- import { useItemsGetter as W } from "./index230.js";
2
+ import { useItemValue as G } from "./index245.js";
3
+ import { isNil as k } from "./index241.js";
4
+ import { indexBy as U } from "./index246.js";
5
+ import { hash as p } from "./index230.js";
6
+ import { useItemsGetter as W } from "./index235.js";
7
7
  import { usePrefill as q } from "./index236.js";
8
- import { useIndexById as z } from "./index231.js";
9
- import { useBaseOptions as J } from "./index232.js";
10
- import { useHashedWatcher as K } from "./index235.js";
8
+ import { useIndexById as z } from "./index217.js";
9
+ import { useBaseOptions as J } from "./index216.js";
10
+ import { useHashedWatcher as K } from "./index234.js";
11
11
  const oe = /* @__PURE__ */ D({
12
12
  __name: "BbRows",
13
13
  props: {
package/dist/index113.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as p, computed as s, createElementBlock as b, openBlock as a, normalizeProps as _, guardReactiveProps as x, createStaticVNode as m } from "vue";
2
- import { isCssColor as u } from "./index215.js";
2
+ import { isCssColor as u } from "./index256.js";
3
3
  const f = /* @__PURE__ */ p({
4
4
  __name: "BbSpinner",
5
5
  props: {
package/dist/index121.js CHANGED
@@ -1,21 +1,21 @@
1
1
  import { defineComponent as ue, ref as K, computed as h, toRef as O, watch as D, reactive as pe, createBlock as Q, openBlock as n, resolveDynamicComponent as me, normalizeClass as p, unref as v, withCtx as fe, createElementBlock as d, createCommentVNode as g, 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
2
  import { add as ve } from "./index284.js";
3
- import { clamp as ke } from "./index214.js";
4
- import { isNil as T } from "./index243.js";
3
+ import { clamp as ke } from "./index212.js";
4
+ import { isNil as T } from "./index241.js";
5
5
  import { useId as _e } from "./index8.js";
6
- import { useItemValue as ge } from "./index269.js";
7
- import { when as Ce } from "./index216.js";
6
+ import { useItemValue as ge } from "./index245.js";
7
+ import { when as Ce } from "./index237.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 "./index234.js";
13
- import { useItemsGetter as Ie } from "./index230.js";
12
+ import { hash as E } from "./index230.js";
13
+ import { useItemsGetter as Ie } from "./index235.js";
14
14
  import { usePrefill as Ve } from "./index236.js";
15
- import { useIndexById as Ae } from "./index231.js";
16
- import { useBaseOptions as Be } from "./index232.js";
17
- import { useHashedWatcher as Te } from "./index235.js";
18
- import { useLocale as $e } from "./index218.js";
15
+ import { useIndexById as Ae } from "./index217.js";
16
+ import { useBaseOptions as Be } from "./index216.js";
17
+ import { useHashedWatcher as Te } from "./index234.js";
18
+ import { useLocale as $e } from "./index224.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 m, getCurrentInstance as h, 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 C } from "vue";
2
- import S from "./index225.js";
2
+ import S from "./index258.js";
3
3
  const A = /* @__PURE__ */ m({
4
4
  __name: "BaseButton",
5
5
  props: {
package/dist/index131.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
2
  import { throttle as p } from "./index275.js";
3
3
  import { useId as J } from "./index8.js";
4
- import { useLocale as K } from "./index218.js";
5
- import { useUntil as Q } from "./index255.js";
4
+ import { useLocale as K } from "./index224.js";
5
+ import { useUntil as Q } from "./index239.js";
6
6
  import X from "./index13.js";
7
7
  /* empty css */
8
- import Y from "./index223.js";
8
+ import Y from "./index228.js";
9
9
  /* empty css */
10
10
  import { useElementSize as Z } from "./index140.js";
11
- import { extractDomContainer as c } from "./index271.js";
12
- import { parseWidthString as _ } from "./index272.js";
11
+ import { extractDomContainer as c } from "./index262.js";
12
+ import { parseWidthString as _ } from "./index263.js";
13
13
  const pe = /* @__PURE__ */ S({
14
14
  inheritAttrs: !1,
15
15
  __name: "BbTooltip",
package/dist/index139.js CHANGED
@@ -1,4 +1,4 @@
1
- import { clamp as s } from "./index214.js";
1
+ import { clamp as s } from "./index212.js";
2
2
  const o = (n, e, r = !1) => {
3
3
  const t = n * 100 / e;
4
4
  return r ? s(t, 0, 100) : t;
package/dist/index141.js CHANGED
@@ -1,4 +1,4 @@
1
- import { urlAlphabet as l } from "./index212.js";
1
+ import { urlAlphabet as l } from "./index214.js";
2
2
  let o = (t = 21) => {
3
3
  let e = "", r = crypto.getRandomValues(new Uint8Array(t |= 0));
4
4
  for (; t--; )
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 "./index223.js";
3
3
  import { isNotNil as F } from "./index143.js";
4
4
  import { useId as S } from "./index8.js";
5
- import { useLocale as U } from "./index218.js";
6
- import { vMaska as A } from "./index220.js";
7
- import K from "./index221.js";
5
+ import { useLocale as U } from "./index224.js";
6
+ import { vMaska as A } from "./index225.js";
7
+ import K from "./index226.js";
8
8
  /* empty css */
9
9
  import O from "./index135.js";
10
10
  /* empty css */
11
11
  import P from "./index137.js";
12
- import T from "./index223.js";
12
+ import T from "./index228.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 "./index215.js";
3
- import { when as N } from "./index216.js";
4
- import { booleanishToBoolean as S } from "./index217.js";
2
+ import { isCssColor as y } from "./index256.js";
3
+ import { when as N } from "./index237.js";
4
+ import { booleanishToBoolean as S } from "./index257.js";
5
5
  const A = {
6
6
  "aria-hidden": "true",
7
7
  class: "bb-base-checkbox-container"
package/dist/index19.js CHANGED
@@ -1,14 +1,14 @@
1
1
  import { defineComponent as j, ref as k, toRef as d, createBlock as z, openBlock as G, unref as B, withCtx as s, renderSlot as l, normalizeProps as b, guardReactiveProps as v, createVNode as R, mergeProps as T } from "vue";
2
2
  import W from "./index17.js";
3
3
  /* empty css */
4
- import K from "./index228.js";
4
+ import K from "./index242.js";
5
5
  /* empty css */
6
- import { useItemsGetter as N } from "./index230.js";
7
- import { useIndexById as w } from "./index231.js";
8
- import { useBaseOptions as U } from "./index232.js";
6
+ import { useItemsGetter as N } from "./index235.js";
7
+ import { useIndexById as w } from "./index217.js";
8
+ import { useBaseOptions as U } from "./index216.js";
9
9
  import { useCoherence as q } from "./index233.js";
10
- import { hash as J } from "./index234.js";
11
- import { useHashedWatcher as C } from "./index235.js";
10
+ import { hash as J } from "./index230.js";
11
+ import { useHashedWatcher as C } from "./index234.js";
12
12
  import { usePrefill as Q } from "./index236.js";
13
13
  const de = /* @__PURE__ */ j({
14
14
  __name: "BaseCheckboxGroup",
package/dist/index21.js CHANGED
@@ -1,36 +1,37 @@
1
- import { defineComponent as E, watchPostEffect as W, ref as v, watch as I, createElementBlock as w, openBlock as c, createVNode as n, createElementVNode as r, unref as i, withCtx as u, createTextVNode as T, toDisplayString as m, createSlots as j, renderList as H, renderSlot as R, normalizeProps as Z, guardReactiveProps as q, createBlock as _, createCommentVNode as V } from "vue";
1
+ import { defineComponent as z, watchPostEffect as W, ref as v, watch as I, createElementBlock as w, openBlock as f, createVNode as n, createElementVNode as r, unref as i, withCtx as m, createTextVNode as T, toDisplayString as u, createSlots as j, renderList as H, renderSlot as R, normalizeProps as Z, guardReactiveProps as q, createBlock as _, createCommentVNode as M } from "vue";
2
2
  /* empty css */
3
3
  /* empty css */
4
- import { _config as C } from "./index4.js";
4
+ import { _config as V } from "./index4.js";
5
5
  import { useId as F } from "./index8.js";
6
- import f from "./index13.js";
6
+ import c from "./index13.js";
7
7
  /* empty css */
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 "./index262.js";
14
- import ee from "./index263.js";
15
- import { hash as M } from "./index234.js";
16
- import { last as ae } from "./index237.js";
17
- import { useLogger as te } from "./index227.js";
18
- import oe from "./index264.js";
19
- import le from "./index265.js";
20
- import re from "./index266.js";
21
- import B from "./index267.js";
22
- import se from "./index268.js";
23
- import { useLocale as de } from "./index218.js";
24
- const ie = { class: "bb-base-date-picker" }, ne = { class: "bb-base-date-picker__body" }, ue = { class: "bb-base-date-picker__controls" }, me = { class: "sr-only" }, pe = { class: "sr-only" }, ce = { class: "sr-only" }, fe = {
8
+ import s from "./index248.js";
9
+ import G from "./index251.js";
10
+ import J from "./index252.js";
11
+ import K from "./index253.js";
12
+ import Q from "./index250.js";
13
+ import X from "./index268.js";
14
+ import ee from "./index269.js";
15
+ import { hash as B } from "./index230.js";
16
+ import { last as ae } from "./index215.js";
17
+ import { useLogger as te } from "./index265.js";
18
+ import oe from "./index270.js";
19
+ import le from "./index271.js";
20
+ import re from "./index272.js";
21
+ import C from "./index273.js";
22
+ import se from "./index274.js";
23
+ import { useLocale as de } from "./index224.js";
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",
27
27
  width: "24px",
28
28
  xmlns: "http://www.w3.org/2000/svg"
29
- }, be = { class: "sr-only" }, ve = { class: "bb-base-date-picker__content" }, Ie = /* @__PURE__ */ E({
29
+ }, be = { class: "sr-only" }, ve = { class: "bb-base-date-picker__content" }, Ie = /* @__PURE__ */ z({
30
30
  __name: "BaseDatePicker",
31
31
  props: {
32
32
  disabled: { type: Boolean },
33
33
  firstDayOfWeek: { default: 1 },
34
+ floating: { type: Boolean },
34
35
  id: {},
35
36
  header: { type: Boolean },
36
37
  max: {},
@@ -42,21 +43,24 @@ const ie = { class: "bb-base-date-picker" }, ne = { class: "bb-base-date-picker_
42
43
  selectable: {}
43
44
  },
44
45
  emits: ["update:modelValue"],
45
- setup(L, { expose: O, emit: S }) {
46
+ setup(Y, { expose: L, emit: D }) {
46
47
  s.extend(ee), s.extend(X), s.extend(G), s.extend(J);
47
- const $ = { it: K, en: Q };
48
+ const O = { it: K, en: Q };
48
49
  W(() => {
49
- s.locale($[C.locale]);
50
+ s.locale(O[V.locale]);
50
51
  });
51
- const P = S, o = L, { t: p } = de();
52
+ const S = D, t = Y, { t: p } = de();
52
53
  s.updateLocale("it", {
53
- weekStart: o.firstDayOfWeek
54
+ weekStart: t.firstDayOfWeek
54
55
  });
55
- const A = o.id || F().id, y = te();
56
- o.multiple && o.range && y.throw("Date picker cannot be both multiple and range."), (o.multiple || o.range) && (Array.isArray(o.modelValue) || y.throw(
56
+ const $ = t.id || F().id, y = te();
57
+ if (t.multiple && t.range && y.throw("Date picker cannot be both multiple and range."), (t.multiple || t.range) && (Array.isArray(t.modelValue) || y.throw(
57
58
  "Date picker is set to select multiple dates but modelValue is not an array."
58
- ));
59
- const a = v(s()), k = (e) => {
59
+ )), t.min && !/\d{4}-\d{2}-\d{2}/.test(t.min))
60
+ throw new Error("Min must be in the format YYYY-MM-DD");
61
+ if (t.max && !/\d{4}-\d{2}-\d{2}/.test(t.max))
62
+ throw new Error("Max must be in the format YYYY-MM-DD");
63
+ const a = v(s()), h = (e) => {
60
64
  if (e)
61
65
  if (Array.isArray(e)) {
62
66
  if (e.length) {
@@ -70,55 +74,55 @@ const ie = { class: "bb-base-date-picker" }, ne = { class: "bb-base-date-picker_
70
74
  else
71
75
  a.value = s().startOf("day");
72
76
  };
73
- k(o.modelValue);
74
- const l = v("day"), h = (e) => {
77
+ h(t.modelValue);
78
+ const l = v("day"), g = (e) => {
75
79
  l.value === e ? l.value = "day" : l.value = e;
76
- }, D = (e) => {
80
+ }, P = (e) => {
77
81
  a.value = a.value.set("month", e);
78
- }, N = () => {
82
+ }, A = () => {
79
83
  a.value = a.value.add(1, "month");
80
- }, Y = () => {
84
+ }, N = () => {
81
85
  a.value = a.value.subtract(1, "month");
82
- }, U = (e) => {
86
+ }, x = (e) => {
83
87
  a.value = a.value.set("year", e);
84
- }, b = v(o.modelValue), x = (e) => {
85
- b.value = e, P("update:modelValue", e);
88
+ }, b = v(t.modelValue), E = (e) => {
89
+ b.value = e, S("update:modelValue", e);
86
90
  };
87
91
  return I(
88
- () => o.modelValue,
92
+ () => t.modelValue,
89
93
  () => {
90
- M(o.modelValue) !== M(b.value) && (b.value = o.modelValue, k(o.modelValue));
94
+ B(t.modelValue) !== B(b.value) && (b.value = t.modelValue, h(t.modelValue));
91
95
  }
92
- ), O({
96
+ ), L({
93
97
  resetStatus: () => {
94
98
  l.value = "day";
95
99
  }
96
- }), (e, t) => (c(), w("div", ie, [
100
+ }), (e, o) => (f(), w("div", ie, [
97
101
  n(le, {
98
102
  cursor: a.value,
99
103
  disabled: !!e.disabled,
100
104
  hidden: !e.header
101
105
  }, null, 8, ["cursor", "disabled", "hidden"]),
102
106
  r("div", ne, [
103
- r("div", ue, [
104
- n(i(f), {
107
+ r("div", me, [
108
+ n(i(c), {
105
109
  class: "bb-base-date-picker__control bb-base-date-picker__month-control",
106
110
  disabled: e.disabled,
107
- onClick: t[0] || (t[0] = (d) => h("month"))
111
+ onClick: o[0] || (o[0] = (d) => g("month"))
108
112
  }, {
109
- default: u(() => [
110
- T(m(a.value.locale(i(C).locale).format("MMMM YYYY")) + " ", 1),
111
- r("span", me, m(i(p)("datePicker.monthLabel")), 1)
113
+ default: m(() => [
114
+ T(u(a.value.locale(i(V).locale).format("MMMM YYYY")) + " ", 1),
115
+ r("span", ue, u(i(p)("datePicker.monthLabel")), 1)
112
116
  ]),
113
117
  _: 1
114
118
  }, 8, ["disabled"]),
115
- n(i(f), {
119
+ n(i(c), {
116
120
  class: "bb-base-date-picker__control bb-base-date-picker__year-control",
117
121
  disabled: e.disabled,
118
- onClick: t[1] || (t[1] = (d) => h("year"))
122
+ onClick: o[1] || (o[1] = (d) => g("year"))
119
123
  }, {
120
- default: u(() => [
121
- t[5] || (t[5] = r("svg", {
124
+ default: m(() => [
125
+ o[5] || (o[5] = r("svg", {
122
126
  fill: "none",
123
127
  height: "6",
124
128
  viewBox: "0 0 10 6",
@@ -130,17 +134,17 @@ const ie = { class: "bb-base-date-picker" }, ne = { class: "bb-base-date-picker_
130
134
  fill: "currentColor"
131
135
  })
132
136
  ], -1)),
133
- r("span", pe, m(i(p)("datePicker.yearLabel")), 1)
137
+ r("span", pe, u(i(p)("datePicker.yearLabel")), 1)
134
138
  ]),
135
139
  _: 1
136
140
  }, 8, ["disabled"]),
137
- n(i(f), {
141
+ n(i(c), {
138
142
  class: "bb-base-date-picker__control",
139
143
  disabled: e.disabled || l.value !== "day",
140
- onClick: Y
144
+ onClick: N
141
145
  }, {
142
- default: u(() => [
143
- t[6] || (t[6] = r("svg", {
146
+ default: m(() => [
147
+ o[6] || (o[6] = r("svg", {
144
148
  viewBox: "0 0 24 24",
145
149
  width: "24px",
146
150
  xmlns: "http://www.w3.org/2000/svg"
@@ -150,34 +154,35 @@ const ie = { class: "bb-base-date-picker" }, ne = { class: "bb-base-date-picker_
150
154
  fill: "currentColor"
151
155
  })
152
156
  ], -1)),
153
- r("span", ce, m(i(p)("datePicker.previousMonthLabel")), 1)
157
+ r("span", fe, u(i(p)("datePicker.previousMonthLabel")), 1)
154
158
  ]),
155
159
  _: 1
156
160
  }, 8, ["disabled"]),
157
- n(i(f), {
161
+ n(i(c), {
158
162
  class: "bb-base-date-picker__control",
159
163
  disabled: e.disabled || l.value !== "day",
160
- onClick: N
164
+ onClick: A
161
165
  }, {
162
- default: u(() => [
163
- (c(), w("svg", fe, t[7] || (t[7] = [
166
+ default: m(() => [
167
+ (f(), w("svg", ce, o[7] || (o[7] = [
164
168
  r("path", {
165
169
  d: "M13.939 4.939 6.879 12l7.06 7.061 2.122-2.122L11.121 12l4.94-4.939z",
166
170
  fill: "currentColor"
167
171
  }, null, -1)
168
172
  ]))),
169
- r("span", be, m(i(p)("datePicker.nextMonthLabel")), 1)
173
+ r("span", be, u(i(p)("datePicker.nextMonthLabel")), 1)
170
174
  ]),
171
175
  _: 1
172
176
  }, 8, ["disabled"])
173
177
  ]),
174
178
  r("div", ve, [
175
179
  n(oe, {
176
- id: i(A),
180
+ id: i($),
177
181
  current: l.value === "day",
178
182
  cursor: a.value,
179
183
  disabled: !!e.disabled,
180
184
  "first-day-of-week": e.firstDayOfWeek,
185
+ floating: e.floating,
181
186
  inert: l.value !== "day",
182
187
  max: e.max,
183
188
  min: e.min,
@@ -186,47 +191,47 @@ const ie = { class: "bb-base-date-picker" }, ne = { class: "bb-base-date-picker_
186
191
  range: e.range,
187
192
  readonly: e.readonly,
188
193
  selectable: e.selectable,
189
- "onUpdate:cursor": t[2] || (t[2] = (d) => a.value = d),
190
- "onUpdate:modelValue": x
194
+ "onUpdate:cursor": o[2] || (o[2] = (d) => a.value = d),
195
+ "onUpdate:modelValue": E
191
196
  }, j({ _: 2 }, [
192
- H(e.$slots, (d, g) => ({
193
- name: g,
194
- fn: u((z) => [
195
- R(e.$slots, g, Z(q(z)))
197
+ H(e.$slots, (d, k) => ({
198
+ name: k,
199
+ fn: m((U) => [
200
+ R(e.$slots, k, Z(q(U)))
196
201
  ])
197
202
  }))
198
- ]), 1032, ["id", "current", "cursor", "disabled", "first-day-of-week", "inert", "max", "min", "model-value", "multiple", "range", "readonly", "selectable"]),
199
- n(B, {
203
+ ]), 1032, ["id", "current", "cursor", "disabled", "first-day-of-week", "floating", "inert", "max", "min", "model-value", "multiple", "range", "readonly", "selectable"]),
204
+ n(C, {
200
205
  direction: "right",
201
206
  duration: 500,
202
207
  gap: 30
203
208
  }, {
204
- default: u(() => [
205
- l.value === "month" ? (c(), _(re, {
209
+ default: m(() => [
210
+ l.value === "month" ? (f(), _(re, {
206
211
  key: 0,
207
212
  cursor: a.value,
208
213
  disabled: !!e.disabled,
209
- "onUpdate:month": t[3] || (t[3] = (d) => {
210
- D(d), l.value = "day";
214
+ "onUpdate:month": o[3] || (o[3] = (d) => {
215
+ P(d), l.value = "day";
211
216
  })
212
- }, null, 8, ["cursor", "disabled"])) : V("", !0)
217
+ }, null, 8, ["cursor", "disabled"])) : M("", !0)
213
218
  ]),
214
219
  _: 1
215
220
  }),
216
- n(B, {
221
+ n(C, {
217
222
  direction: "top",
218
223
  duration: 500,
219
224
  gap: 30
220
225
  }, {
221
- default: u(() => [
222
- l.value === "year" ? (c(), _(se, {
226
+ default: m(() => [
227
+ l.value === "year" ? (f(), _(se, {
223
228
  key: 0,
224
229
  cursor: a.value,
225
230
  disabled: !!e.disabled,
226
- "onUpdate:year": t[4] || (t[4] = (d) => {
227
- U(d), l.value = "day";
231
+ "onUpdate:year": o[4] || (o[4] = (d) => {
232
+ x(d), l.value = "day";
228
233
  })
229
- }, null, 8, ["cursor", "disabled"])) : V("", !0)
234
+ }, null, 8, ["cursor", "disabled"])) : M("", !0)
230
235
  ]),
231
236
  _: 1
232
237
  })
package/dist/index212.js CHANGED
@@ -1,4 +1,4 @@
1
- const t = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
1
+ const n = (t, a, m) => Math.min(Math.max(t, a), m);
2
2
  export {
3
- t as urlAlphabet
3
+ n as clamp
4
4
  };