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.
- package/dist/components/BaseDatePicker/BaseDatePicker.vue.d.ts +7 -3
- package/dist/components/BaseDatePicker/BaseDatePickerInputDaySelector.vue.d.ts +4 -3
- package/dist/components/BaseDatePickerInput/BaseDatePickerInput.vue.d.ts +15 -9
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +8 -4
- package/dist/index106.js +8 -8
- package/dist/index113.js +1 -1
- package/dist/index121.js +10 -10
- package/dist/index13.js +1 -1
- package/dist/index131.js +5 -5
- package/dist/index139.js +1 -1
- package/dist/index141.js +1 -1
- package/dist/index15.js +5 -5
- package/dist/index17.js +3 -3
- package/dist/index19.js +6 -6
- package/dist/index21.js +88 -83
- package/dist/index212.js +2 -2
- package/dist/index214.js +2 -2
- package/dist/index215.js +2 -2
- package/dist/index216.js +51 -4
- package/dist/index217.js +17 -2
- package/dist/index218.js +105 -12
- package/dist/index220.js +99 -19
- package/dist/index222.js +5 -0
- package/dist/index223.js +4 -121
- package/dist/index224.js +15 -0
- package/dist/index225.js +19 -33
- package/dist/index226.js +197 -11
- package/dist/index228.js +117 -82
- package/dist/index23.js +143 -125
- package/dist/index230.js +3 -29
- package/dist/index231.js +17 -16
- package/dist/index232.js +11 -50
- package/dist/index233.js +1 -1
- package/dist/index234.js +12 -3
- package/dist/index235.js +28 -11
- package/dist/index237.js +4 -2
- package/dist/index238.js +212 -89
- package/dist/index239.js +15 -0
- package/dist/index240.js +7 -100
- package/dist/index242.js +86 -2
- package/dist/index244.js +3 -5
- package/dist/index245.js +9 -5
- package/dist/index246.js +8 -5
- package/dist/index247.js +9 -5
- package/dist/index248.js +5 -5
- package/dist/index249.js +5 -5
- package/dist/index25.js +3 -3
- package/dist/index250.js +5 -2
- package/dist/index251.js +5 -2
- package/dist/index252.js +5 -7
- package/dist/index253.js +5 -7
- package/dist/index254.js +2 -13
- package/dist/index255.js +12 -12
- package/dist/index256.js +2 -183
- package/dist/index257.js +2 -18
- package/dist/index258.js +34 -12
- package/dist/index259.js +180 -226
- package/dist/index260.js +9 -3
- package/dist/index261.js +23 -9
- package/dist/index262.js +4 -5
- package/dist/index263.js +23 -5
- package/dist/index264.js +11 -250
- package/dist/index265.js +6 -50
- package/dist/index266.js +10 -44
- package/dist/index267.js +3 -5
- package/dist/index268.js +5 -60
- package/dist/index269.js +5 -9
- package/dist/index27.js +1 -1
- package/dist/index270.js +270 -7
- package/dist/index271.js +52 -4
- package/dist/index272.js +43 -22
- package/dist/index273.js +5 -10
- package/dist/index274.js +60 -3
- package/dist/index276.js +6 -9
- package/dist/index277.js +16 -23
- package/dist/index278.js +2 -6
- package/dist/index279.js +7 -16
- package/dist/index280.js +7 -7
- package/dist/index282.js +1 -1
- package/dist/index285.js +1 -1
- package/dist/index288.js +5 -0
- package/dist/index289.js +1 -1
- package/dist/index29.js +3 -3
- package/dist/index290.js +17 -7
- package/dist/index291.js +27 -279
- package/dist/index292.js +3 -2
- package/dist/index293.js +3 -125
- package/dist/index294.js +7 -2
- package/dist/index295.js +5 -15
- package/dist/index296.js +3 -2
- package/dist/index297.js +3 -16
- package/dist/index298.js +280 -2
- package/dist/index299.js +2 -16
- package/dist/index300.js +125 -2
- package/dist/index301.js +2 -19
- package/dist/index302.js +15 -2
- package/dist/index303.js +2 -3
- package/dist/index304.js +16 -3
- package/dist/index305.js +2 -17
- package/dist/index306.js +15 -27
- package/dist/index307.js +2 -2
- package/dist/index308.js +19 -3
- package/dist/index309.js +2 -3
- package/dist/index31.js +2 -2
- package/dist/index310.js +4 -3
- package/dist/index311.js +2 -5
- package/dist/index312.js +1 -1
- package/dist/index317.js +1 -1
- package/dist/index318.js +1 -1
- package/dist/index319.js +1 -1
- package/dist/index320.js +1 -1
- package/dist/index323.js +2 -2
- package/dist/index329.js +35 -2
- package/dist/index33.js +6 -6
- package/dist/index330.js +6 -6
- package/dist/index331.js +125 -31
- package/dist/index332.js +369 -6
- package/dist/index333.js +7 -128
- package/dist/index334.js +5 -368
- package/dist/index335.js +7 -57
- package/dist/index336.js +33 -33
- package/dist/index337.js +58 -8
- package/dist/index338.js +2 -6
- package/dist/index339.js +228 -8
- package/dist/index340.js +5 -46
- package/dist/index341.js +46 -227
- package/dist/index342.js +128 -6
- package/dist/index343.js +6 -18
- package/dist/index344.js +17 -5
- package/dist/index345.js +6 -128
- package/dist/index346.js +85 -480
- package/dist/index347.js +480 -85
- package/dist/index35.js +4 -4
- package/dist/index37.js +16 -16
- package/dist/index39.js +7 -7
- package/dist/index41.js +2 -2
- package/dist/index43.js +6 -6
- package/dist/index45.js +6 -6
- package/dist/index49.js +1 -1
- package/dist/index53.js +1 -1
- package/dist/index55.js +1 -1
- package/dist/index57.js +2 -2
- package/dist/index61.js +3 -3
- package/dist/index67.js +1 -1
- package/dist/index75.js +7 -5
- package/dist/index79.js +6 -6
- package/dist/index81.js +1 -1
- package/dist/index83.js +2 -2
- package/dist/index85.js +3 -3
- package/dist/index90.js +3 -3
- package/dist/index92.js +2 -2
- package/dist/index94.js +5 -5
- package/dist/index96.js +1 -1
- package/dist/utilities/functions/empty.d.ts +1 -5
- package/dist/utilities/functions/max.d.ts +2 -0
- package/package.json +2 -2
- package/dist/index219.js +0 -6
- package/dist/index221.js +0 -199
- package/dist/index227.js +0 -10
- package/dist/index287.js +0 -6
- /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?:
|
|
27
|
+
max?: string;
|
|
24
28
|
/**
|
|
25
29
|
* Minimum selectable date
|
|
26
30
|
*/
|
|
27
|
-
min?:
|
|
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:
|
|
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?:
|
|
14
|
-
min?:
|
|
15
|
-
selectable?: (date:
|
|
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?:
|
|
57
|
+
max?: string;
|
|
54
58
|
/**
|
|
55
59
|
* Minimum selectable date
|
|
56
60
|
*/
|
|
57
|
-
min?:
|
|
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:
|
|
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?:
|
|
238
|
-
readonly min?:
|
|
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:
|
|
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?:
|
|
434
|
-
readonly min?:
|
|
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:
|
|
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?:
|
|
82
|
+
max?: string;
|
|
79
83
|
/**
|
|
80
84
|
* Minimum selectable date
|
|
81
85
|
*/
|
|
82
|
-
min?:
|
|
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 `
|
|
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:
|
|
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 "./
|
|
3
|
-
import { isNil as k } from "./
|
|
4
|
-
import { indexBy as U } from "./
|
|
5
|
-
import { hash as p } from "./
|
|
6
|
-
import { useItemsGetter as W } from "./
|
|
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 "./
|
|
9
|
-
import { useBaseOptions as J } from "./
|
|
10
|
-
import { useHashedWatcher as K } from "./
|
|
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 "./
|
|
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 "./
|
|
4
|
-
import { isNil as T } from "./
|
|
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 "./
|
|
7
|
-
import { when as Ce } from "./
|
|
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 "./
|
|
13
|
-
import { useItemsGetter as Ie } from "./
|
|
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 "./
|
|
16
|
-
import { useBaseOptions as Be } from "./
|
|
17
|
-
import { useHashedWatcher as Te } from "./
|
|
18
|
-
import { useLocale as $e } from "./
|
|
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 "./
|
|
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 "./
|
|
5
|
-
import { useUntil as Q } from "./
|
|
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 "./
|
|
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 "./
|
|
12
|
-
import { parseWidthString as _ } from "./
|
|
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
package/dist/index141.js
CHANGED
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 "./
|
|
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 "./
|
|
6
|
-
import { vMaska as A } from "./
|
|
7
|
-
import K from "./
|
|
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 "./
|
|
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 "./
|
|
3
|
-
import { when as N } from "./
|
|
4
|
-
import { booleanishToBoolean as S } from "./
|
|
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 "./
|
|
4
|
+
import K from "./index242.js";
|
|
5
5
|
/* empty css */
|
|
6
|
-
import { useItemsGetter as N } from "./
|
|
7
|
-
import { useIndexById as w } from "./
|
|
8
|
-
import { useBaseOptions as U } from "./
|
|
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 "./
|
|
11
|
-
import { useHashedWatcher as C } from "./
|
|
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
|
|
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
|
|
4
|
+
import { _config as V } from "./index4.js";
|
|
5
5
|
import { useId as F } from "./index8.js";
|
|
6
|
-
import
|
|
6
|
+
import c from "./index13.js";
|
|
7
7
|
/* empty css */
|
|
8
|
-
import s from "./
|
|
9
|
-
import G from "./
|
|
10
|
-
import J from "./
|
|
11
|
-
import K from "./
|
|
12
|
-
import Q from "./
|
|
13
|
-
import X from "./
|
|
14
|
-
import ee from "./
|
|
15
|
-
import { hash as
|
|
16
|
-
import { last as ae } from "./
|
|
17
|
-
import { useLogger as te } from "./
|
|
18
|
-
import oe from "./
|
|
19
|
-
import le from "./
|
|
20
|
-
import re from "./
|
|
21
|
-
import
|
|
22
|
-
import se from "./
|
|
23
|
-
import { useLocale as de } from "./
|
|
24
|
-
const ie = { class: "bb-base-date-picker" }, ne = { class: "bb-base-date-picker__body" },
|
|
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__ */
|
|
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(
|
|
46
|
+
setup(Y, { expose: L, emit: D }) {
|
|
46
47
|
s.extend(ee), s.extend(X), s.extend(G), s.extend(J);
|
|
47
|
-
const
|
|
48
|
+
const O = { it: K, en: Q };
|
|
48
49
|
W(() => {
|
|
49
|
-
s.locale(
|
|
50
|
+
s.locale(O[V.locale]);
|
|
50
51
|
});
|
|
51
|
-
const
|
|
52
|
+
const S = D, t = Y, { t: p } = de();
|
|
52
53
|
s.updateLocale("it", {
|
|
53
|
-
weekStart:
|
|
54
|
+
weekStart: t.firstDayOfWeek
|
|
54
55
|
});
|
|
55
|
-
const
|
|
56
|
-
|
|
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
|
-
|
|
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
|
-
|
|
74
|
-
const l = v("day"),
|
|
77
|
+
h(t.modelValue);
|
|
78
|
+
const l = v("day"), g = (e) => {
|
|
75
79
|
l.value === e ? l.value = "day" : l.value = e;
|
|
76
|
-
},
|
|
80
|
+
}, P = (e) => {
|
|
77
81
|
a.value = a.value.set("month", e);
|
|
78
|
-
},
|
|
82
|
+
}, A = () => {
|
|
79
83
|
a.value = a.value.add(1, "month");
|
|
80
|
-
},
|
|
84
|
+
}, N = () => {
|
|
81
85
|
a.value = a.value.subtract(1, "month");
|
|
82
|
-
},
|
|
86
|
+
}, x = (e) => {
|
|
83
87
|
a.value = a.value.set("year", e);
|
|
84
|
-
}, b = v(
|
|
85
|
-
b.value = e,
|
|
88
|
+
}, b = v(t.modelValue), E = (e) => {
|
|
89
|
+
b.value = e, S("update:modelValue", e);
|
|
86
90
|
};
|
|
87
91
|
return I(
|
|
88
|
-
() =>
|
|
92
|
+
() => t.modelValue,
|
|
89
93
|
() => {
|
|
90
|
-
|
|
94
|
+
B(t.modelValue) !== B(b.value) && (b.value = t.modelValue, h(t.modelValue));
|
|
91
95
|
}
|
|
92
|
-
),
|
|
96
|
+
), L({
|
|
93
97
|
resetStatus: () => {
|
|
94
98
|
l.value = "day";
|
|
95
99
|
}
|
|
96
|
-
}), (e,
|
|
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",
|
|
104
|
-
n(i(
|
|
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:
|
|
111
|
+
onClick: o[0] || (o[0] = (d) => g("month"))
|
|
108
112
|
}, {
|
|
109
|
-
default:
|
|
110
|
-
T(
|
|
111
|
-
r("span",
|
|
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(
|
|
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:
|
|
122
|
+
onClick: o[1] || (o[1] = (d) => g("year"))
|
|
119
123
|
}, {
|
|
120
|
-
default:
|
|
121
|
-
|
|
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,
|
|
137
|
+
r("span", pe, u(i(p)("datePicker.yearLabel")), 1)
|
|
134
138
|
]),
|
|
135
139
|
_: 1
|
|
136
140
|
}, 8, ["disabled"]),
|
|
137
|
-
n(i(
|
|
141
|
+
n(i(c), {
|
|
138
142
|
class: "bb-base-date-picker__control",
|
|
139
143
|
disabled: e.disabled || l.value !== "day",
|
|
140
|
-
onClick:
|
|
144
|
+
onClick: N
|
|
141
145
|
}, {
|
|
142
|
-
default:
|
|
143
|
-
|
|
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",
|
|
157
|
+
r("span", fe, u(i(p)("datePicker.previousMonthLabel")), 1)
|
|
154
158
|
]),
|
|
155
159
|
_: 1
|
|
156
160
|
}, 8, ["disabled"]),
|
|
157
|
-
n(i(
|
|
161
|
+
n(i(c), {
|
|
158
162
|
class: "bb-base-date-picker__control",
|
|
159
163
|
disabled: e.disabled || l.value !== "day",
|
|
160
|
-
onClick:
|
|
164
|
+
onClick: A
|
|
161
165
|
}, {
|
|
162
|
-
default:
|
|
163
|
-
(
|
|
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,
|
|
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(
|
|
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":
|
|
190
|
-
"onUpdate:modelValue":
|
|
194
|
+
"onUpdate:cursor": o[2] || (o[2] = (d) => a.value = d),
|
|
195
|
+
"onUpdate:modelValue": E
|
|
191
196
|
}, j({ _: 2 }, [
|
|
192
|
-
H(e.$slots, (d,
|
|
193
|
-
name:
|
|
194
|
-
fn:
|
|
195
|
-
R(e.$slots,
|
|
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(
|
|
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:
|
|
205
|
-
l.value === "month" ? (
|
|
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":
|
|
210
|
-
|
|
214
|
+
"onUpdate:month": o[3] || (o[3] = (d) => {
|
|
215
|
+
P(d), l.value = "day";
|
|
211
216
|
})
|
|
212
|
-
}, null, 8, ["cursor", "disabled"])) :
|
|
217
|
+
}, null, 8, ["cursor", "disabled"])) : M("", !0)
|
|
213
218
|
]),
|
|
214
219
|
_: 1
|
|
215
220
|
}),
|
|
216
|
-
n(
|
|
221
|
+
n(C, {
|
|
217
222
|
direction: "top",
|
|
218
223
|
duration: 500,
|
|
219
224
|
gap: 30
|
|
220
225
|
}, {
|
|
221
|
-
default:
|
|
222
|
-
l.value === "year" ? (
|
|
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":
|
|
227
|
-
|
|
231
|
+
"onUpdate:year": o[4] || (o[4] = (d) => {
|
|
232
|
+
x(d), l.value = "day";
|
|
228
233
|
})
|
|
229
|
-
}, null, 8, ["cursor", "disabled"])) :
|
|
234
|
+
}, null, 8, ["cursor", "disabled"])) : M("", !0)
|
|
230
235
|
]),
|
|
231
236
|
_: 1
|
|
232
237
|
})
|
package/dist/index212.js
CHANGED