bitboss-ui 2.1.102 → 2.1.103
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/BaseColorInput/BaseColorInput.vue.d.ts +21 -47
- package/dist/components/BaseColorInput/ColorPalette.vue.d.ts +36 -0
- package/dist/components/BbBreadcrumbs/BbBreadcrumbs.vue.d.ts +1 -1
- package/dist/components/BbColorInput/BbColorInput.vue.d.ts +17 -0
- package/dist/components/BbColorPalette/BbColorPalette.vue.d.ts +207 -0
- package/dist/i18n/en.d.ts +5 -0
- package/dist/i18n/it.d.ts +5 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +79 -77
- package/dist/index109.js +134 -175
- package/dist/index11.js +1 -1
- package/dist/index110.js +185 -0
- package/dist/{index115.js → index116.js} +1 -1
- package/dist/index12.js +2 -2
- package/dist/{index121.js → index122.js} +8 -8
- package/dist/{index123.js → index124.js} +10 -10
- package/dist/index13.js +6 -6
- package/dist/{index131.js → index132.js} +1 -1
- package/dist/{index133.js → index134.js} +6 -6
- package/dist/{index135.js → index136.js} +1 -1
- package/dist/{index137.js → index138.js} +4 -4
- package/dist/index14.js +2 -2
- package/dist/index140.js +13 -11
- package/dist/index141.js +11 -2
- package/dist/index142.js +2 -419
- package/dist/index143.js +417 -7
- package/dist/index144.js +8 -8
- package/dist/index145.js +9 -25
- package/dist/index146.js +25 -2
- package/dist/index147.js +2 -5
- package/dist/index148.js +5 -6
- package/dist/index149.js +5 -4
- package/dist/index150.js +5 -3
- package/dist/index151.js +1 -1
- package/dist/index152.js +1 -1
- package/dist/index153.js +1 -1
- package/dist/index154.js +1 -1
- package/dist/index155.js +1 -1
- package/dist/index156.js +1 -1
- package/dist/index157.js +1 -1
- package/dist/index158.js +1 -1
- package/dist/index159.js +1 -1
- package/dist/index16.js +80 -94
- package/dist/index160.js +1 -1
- package/dist/index161.js +1 -1
- package/dist/index162.js +1 -1
- package/dist/index163.js +1 -1
- package/dist/index164.js +1 -1
- package/dist/index165.js +1 -1
- package/dist/index166.js +1 -1
- package/dist/index167.js +1 -1
- package/dist/index168.js +1 -1
- package/dist/index169.js +1 -1
- package/dist/index170.js +1 -1
- package/dist/index171.js +1 -1
- package/dist/index172.js +1 -1
- package/dist/index173.js +1 -1
- package/dist/index174.js +1 -1
- package/dist/index175.js +1 -1
- package/dist/index176.js +1 -1
- package/dist/index177.js +1 -1
- package/dist/index178.js +1 -1
- package/dist/index179.js +1 -1
- package/dist/index18.js +3 -3
- package/dist/index180.js +1 -1
- package/dist/index181.js +1 -1
- package/dist/index182.js +1 -1
- package/dist/index183.js +2 -3
- package/dist/index184.js +1 -1
- package/dist/index185.js +1 -1
- package/dist/index186.js +1 -1
- package/dist/index187.js +1 -1
- package/dist/index188.js +3 -2
- package/dist/index189.js +1 -1
- package/dist/index190.js +2 -3
- package/dist/index191.js +1 -1
- package/dist/index192.js +1 -1
- package/dist/index193.js +1 -1
- package/dist/index194.js +2 -2
- package/dist/index195.js +1 -1
- package/dist/index196.js +1 -1
- package/dist/index197.js +1 -1
- package/dist/index198.js +3 -2
- package/dist/index199.js +1 -1
- package/dist/index20.js +7 -7
- package/dist/index200.js +2 -3
- package/dist/index201.js +1 -1
- package/dist/index202.js +1 -1
- package/dist/index203.js +1 -1
- package/dist/index204.js +1 -1
- package/dist/index205.js +1 -1
- package/dist/index206.js +1 -1
- package/dist/index207.js +1 -1
- package/dist/index208.js +1 -1
- package/dist/index209.js +1 -1
- package/dist/index210.js +1 -1
- package/dist/index211.js +1 -1
- package/dist/index212.js +1 -1
- package/dist/index213.js +1 -1
- package/dist/{index298.js → index214.js} +1 -1
- package/dist/index215.js +3 -7
- package/dist/index217.js +7 -2
- package/dist/index219.js +137 -4
- package/dist/index22.js +1 -1
- package/dist/index220.js +2 -8
- package/dist/index221.js +4 -32
- package/dist/index222.js +8 -28
- package/dist/index223.js +4 -0
- package/dist/index224.js +2 -34
- package/dist/index225.js +3 -13
- package/dist/index226.js +33 -2
- package/dist/index227.js +28 -2
- package/dist/index229.js +2 -2
- package/dist/index230.js +2 -2
- package/dist/index231.js +2 -2
- package/dist/index232.js +2 -2
- package/dist/index233.js +1 -1
- package/dist/index237.js +7 -7
- package/dist/index238.js +1 -1
- package/dist/index24.js +10 -10
- package/dist/index241.js +1 -1
- package/dist/index242.js +13 -3
- package/dist/index243.js +3 -5
- package/dist/index244.js +86 -5
- package/dist/index246.js +29 -2
- package/dist/index247.js +16 -3
- package/dist/index248.js +16 -19
- package/dist/index249.js +49 -133
- package/dist/index250.js +17 -0
- package/dist/index251.js +12 -4
- package/dist/index252.js +2 -4
- package/dist/index253.js +4 -201
- package/dist/{index268.js → index254.js} +1 -1
- package/dist/index256.js +100 -3
- package/dist/index258.js +3 -2
- package/dist/index259.js +10 -86
- package/dist/index26.js +4 -4
- package/dist/index260.js +5 -0
- package/dist/index261.js +4 -29
- package/dist/index262.js +5 -17
- package/dist/index263.js +5 -51
- package/dist/index264.js +5 -15
- package/dist/index265.js +2 -12
- package/dist/index266.js +19 -15
- package/dist/index267.js +135 -25
- package/dist/index270.js +3 -100
- package/dist/index271.js +15 -0
- package/dist/index272.js +13 -67
- package/dist/index273.js +22 -17
- package/dist/index274.js +8 -11
- package/dist/index275.js +23 -104
- package/dist/index276.js +17 -12
- package/dist/index277.js +12 -11
- package/dist/index278.js +103 -12
- package/dist/index279.js +11 -5
- package/dist/index28.js +2 -2
- package/dist/index280.js +9 -6
- package/dist/index281.js +20 -15
- package/dist/index282.js +25 -33
- package/dist/index283.js +32 -9
- package/dist/index284.js +4 -3
- package/dist/index285.js +67 -4
- package/dist/index286.js +9 -9
- package/dist/index287.js +7 -23
- package/dist/index288.js +2 -23
- package/dist/index289.js +6 -6
- package/dist/index290.js +7 -2
- package/dist/index291.js +3 -7
- package/dist/index292.js +6 -7
- package/dist/index293.js +15 -8
- package/dist/index294.js +5 -21
- package/dist/index296.js +34 -9
- package/dist/index297.js +375 -0
- package/dist/index30.js +6 -6
- package/dist/index300.js +3 -2
- package/dist/index301.js +5 -4
- package/dist/index302.js +280 -5
- package/dist/index303.js +2 -5
- package/dist/index304.js +13 -277
- package/dist/index305.js +2 -2
- package/dist/index306.js +9 -9
- package/dist/index308.js +23 -12
- package/dist/index310.js +2 -27
- package/dist/index311.js +2 -2
- package/dist/index312.js +1 -1
- package/dist/index313.js +1 -1
- package/dist/index314.js +28 -2
- package/dist/index315.js +1 -1
- package/dist/index316.js +7 -28
- package/dist/index317.js +3 -2
- package/dist/index318.js +17 -3
- package/dist/index319.js +4 -3
- package/dist/index32.js +2 -2
- package/dist/index320.js +3 -125
- package/dist/index321.js +3 -2
- package/dist/index322.js +123 -13
- package/dist/index323.js +2 -2
- package/dist/index324.js +12 -16
- package/dist/index326.js +19 -3
- package/dist/index327.js +2 -17
- package/dist/index328.js +3 -2
- package/dist/index329.js +2 -3
- package/dist/index330.js +2 -3
- package/dist/index331.js +6 -719
- package/dist/index332.js +4 -366
- package/dist/index333.js +5 -57
- package/dist/index334.js +719 -2
- package/dist/index335.js +366 -4
- package/dist/index336.js +56 -5
- package/dist/index337.js +2 -7
- package/dist/index338.js +5 -19
- package/dist/index339.js +6 -8
- package/dist/index34.js +7 -7
- package/dist/index340.js +6 -14
- package/dist/index341.js +19 -5
- package/dist/index342.js +8 -7
- package/dist/index343.js +14 -5
- package/dist/index344.js +34 -7
- package/dist/index345.js +6 -7
- package/dist/index346.js +125 -31
- package/dist/index347.js +398 -6
- package/dist/index348.js +66 -128
- package/dist/index349.js +65 -396
- package/dist/index350.js +1 -1
- package/dist/index351.js +3 -62
- package/dist/index352.js +189 -60
- package/dist/index353.js +256 -91
- package/dist/index354.js +18 -187
- package/dist/index356.js +133 -21
- package/dist/index357.js +95 -0
- package/dist/index358.js +2 -134
- package/dist/index359.js +1 -1
- package/dist/index36.js +5 -5
- package/dist/index360.js +441 -2
- package/dist/index361.js +114 -427
- package/dist/index362.js +46 -127
- package/dist/index363.js +67 -44
- package/dist/index364.js +516 -66
- package/dist/index365.js +45 -515
- package/dist/index38.js +24 -24
- package/dist/index40.js +7 -7
- package/dist/index42.js +2 -2
- package/dist/index44.js +7 -7
- package/dist/index46.js +8 -8
- package/dist/index48.js +4 -4
- package/dist/index50.js +4 -4
- package/dist/index54.js +2 -2
- package/dist/index56.js +2 -2
- package/dist/index58.js +2 -2
- package/dist/index60.js +4 -4
- package/dist/index62.js +8 -8
- package/dist/index68.js +1 -1
- package/dist/index7.js +2 -2
- package/dist/index72.js +16 -10
- package/dist/index74.js +119 -79
- package/dist/index75.js +85 -0
- package/dist/index77.js +17 -123
- package/dist/index78.js +127 -0
- package/dist/{index81.js → index82.js} +9 -9
- package/dist/{index83.js → index84.js} +4 -4
- package/dist/{index85.js → index86.js} +3 -3
- package/dist/{index87.js → index88.js} +2 -2
- package/dist/index9.js +1 -1
- package/dist/index90.js +37 -125
- package/dist/index91.js +134 -0
- package/dist/{index92.js → index93.js} +4 -4
- package/dist/{index94.js → index95.js} +3 -3
- package/dist/{index96.js → index97.js} +6 -6
- package/dist/{index98.js → index99.js} +2 -2
- package/package.json +2 -2
- package/dist/components/BaseColorInput/ColorPallette.vue.d.ts +0 -13
- package/dist/index108.js +0 -144
- package/dist/index139.js +0 -15
- package/dist/index216.js +0 -140
- package/dist/index228.js +0 -5
- package/dist/index245.js +0 -7
- package/dist/index257.js +0 -5
- package/dist/index299.js +0 -9
- package/dist/index355.js +0 -260
- package/dist/index366.js +0 -52
- package/dist/index76.js +0 -21
- package/dist/index89.js +0 -46
- /package/dist/{index100.js → index101.js} +0 -0
- /package/dist/{index102.js → index103.js} +0 -0
- /package/dist/{index104.js → index105.js} +0 -0
- /package/dist/{index106.js → index107.js} +0 -0
- /package/dist/{index111.js → index112.js} +0 -0
- /package/dist/{index113.js → index114.js} +0 -0
- /package/dist/{index117.js → index118.js} +0 -0
- /package/dist/{index119.js → index120.js} +0 -0
- /package/dist/{index125.js → index126.js} +0 -0
- /package/dist/{index127.js → index128.js} +0 -0
- /package/dist/{index129.js → index130.js} +0 -0
- /package/dist/{index255.js → index269.js} +0 -0
- /package/dist/{index79.js → index80.js} +0 -0
|
@@ -2,9 +2,15 @@ import { HTMLAttributes, InputHTMLAttributes } from 'vue';
|
|
|
2
2
|
import { IconType } from '../../types/Icon';
|
|
3
3
|
/**
|
|
4
4
|
* Color input with hex value masking and an optional palette popover.
|
|
5
|
-
* Accepts and emits `#RRGGBB`
|
|
5
|
+
* Accepts and emits `#RRGGBB` (or `#RRGGBBAA` when `alpha` is enabled) values via v-model
|
|
6
|
+
* and supports full input chrome slots.
|
|
6
7
|
*/
|
|
7
8
|
export type BaseColorInputProps = {
|
|
9
|
+
/**
|
|
10
|
+
* Enable the alpha channel. When true the picker shows an opacity slider and
|
|
11
|
+
* emits / accepts `#RRGGBBAA` hex8 values.
|
|
12
|
+
*/
|
|
13
|
+
alpha?: boolean;
|
|
8
14
|
/**
|
|
9
15
|
* Name of the icon to render at the right hand side of the input.
|
|
10
16
|
*/
|
|
@@ -72,6 +78,19 @@ export type BaseColorInputProps = {
|
|
|
72
78
|
* Mark the input as required.
|
|
73
79
|
*/
|
|
74
80
|
required?: boolean;
|
|
81
|
+
/**
|
|
82
|
+
* Show an eyedropper button to sample any color on screen.
|
|
83
|
+
* Uses the native EyeDropper API — hidden automatically on unsupported browsers.
|
|
84
|
+
* @default false
|
|
85
|
+
*/
|
|
86
|
+
picker?: boolean;
|
|
87
|
+
/**
|
|
88
|
+
* Controls swatches display in the picker:
|
|
89
|
+
* - `true` — show the built-in Material-palette swatches
|
|
90
|
+
* - `string[][]` — show custom swatches (each inner array = a column of shades)
|
|
91
|
+
* - `false` / omitted — no swatches section
|
|
92
|
+
*/
|
|
93
|
+
swatches?: boolean | string[][];
|
|
75
94
|
/**
|
|
76
95
|
* Transition duration (ms) of the palette popover.
|
|
77
96
|
* @default 250
|
|
@@ -216,29 +235,6 @@ declare function __VLS_template(): {
|
|
|
216
235
|
suffix?(_: {}): any;
|
|
217
236
|
};
|
|
218
237
|
}) | null;
|
|
219
|
-
indicator: HTMLButtonElement;
|
|
220
|
-
pallette: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
221
|
-
modelValue: string | null;
|
|
222
|
-
}> & Readonly<{
|
|
223
|
-
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
224
|
-
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
225
|
-
"update:modelValue": (value: string) => any;
|
|
226
|
-
}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
227
|
-
paletteRef: HTMLSpanElement;
|
|
228
|
-
mainCanvasRef: HTMLCanvasElement;
|
|
229
|
-
hueCanvasRef: HTMLCanvasElement;
|
|
230
|
-
}, HTMLSpanElement, import('vue').ComponentProvideOptions, {
|
|
231
|
-
P: {};
|
|
232
|
-
B: {};
|
|
233
|
-
D: {};
|
|
234
|
-
C: {};
|
|
235
|
-
M: {};
|
|
236
|
-
Defaults: {};
|
|
237
|
-
}, Readonly<{
|
|
238
|
-
modelValue: string | null;
|
|
239
|
-
}> & Readonly<{
|
|
240
|
-
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
241
|
-
}>, {}, {}, {}, {}, {}> | null;
|
|
242
238
|
};
|
|
243
239
|
rootEl: HTMLSpanElement;
|
|
244
240
|
};
|
|
@@ -266,6 +262,7 @@ declare const __VLS_component: import('vue').DefineComponent<BaseColorInputProps
|
|
|
266
262
|
}>, {
|
|
267
263
|
autocomplete: string;
|
|
268
264
|
transitionDuration: number;
|
|
265
|
+
alpha: boolean;
|
|
269
266
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
270
267
|
wrapper: ({
|
|
271
268
|
$: import('vue').ComponentInternalInstance;
|
|
@@ -373,29 +370,6 @@ declare const __VLS_component: import('vue').DefineComponent<BaseColorInputProps
|
|
|
373
370
|
suffix?(_: {}): any;
|
|
374
371
|
};
|
|
375
372
|
}) | null;
|
|
376
|
-
indicator: HTMLButtonElement;
|
|
377
|
-
pallette: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
378
|
-
modelValue: string | null;
|
|
379
|
-
}> & Readonly<{
|
|
380
|
-
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
381
|
-
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
382
|
-
"update:modelValue": (value: string) => any;
|
|
383
|
-
}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
384
|
-
paletteRef: HTMLSpanElement;
|
|
385
|
-
mainCanvasRef: HTMLCanvasElement;
|
|
386
|
-
hueCanvasRef: HTMLCanvasElement;
|
|
387
|
-
}, HTMLSpanElement, import('vue').ComponentProvideOptions, {
|
|
388
|
-
P: {};
|
|
389
|
-
B: {};
|
|
390
|
-
D: {};
|
|
391
|
-
C: {};
|
|
392
|
-
M: {};
|
|
393
|
-
Defaults: {};
|
|
394
|
-
}, Readonly<{
|
|
395
|
-
modelValue: string | null;
|
|
396
|
-
}> & Readonly<{
|
|
397
|
-
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
398
|
-
}>, {}, {}, {}, {}, {}> | null;
|
|
399
373
|
}, HTMLSpanElement>;
|
|
400
374
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
401
375
|
export default _default;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export type ColorPaletteProps = {
|
|
2
|
+
modelValue: string | null;
|
|
3
|
+
alpha?: boolean;
|
|
4
|
+
/**
|
|
5
|
+
* Show an eyedropper button that lets the user sample any color on screen.
|
|
6
|
+
* Uses the native EyeDropper API — hidden automatically on unsupported browsers.
|
|
7
|
+
* @default false
|
|
8
|
+
*/
|
|
9
|
+
picker?: boolean;
|
|
10
|
+
/**
|
|
11
|
+
* Controls swatches display:
|
|
12
|
+
* - `true` — show the built-in Material-palette swatches
|
|
13
|
+
* - `string[][]` — show custom swatches (each inner array = a column of shades)
|
|
14
|
+
* - `false` / omitted — no swatches section
|
|
15
|
+
*/
|
|
16
|
+
swatches?: boolean | string[][];
|
|
17
|
+
};
|
|
18
|
+
declare const _default: import('vue').DefineComponent<ColorPaletteProps, {
|
|
19
|
+
el: import('vue').Ref<HTMLDivElement | null, HTMLDivElement | null>;
|
|
20
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
21
|
+
"update:modelValue": (value: string) => any;
|
|
22
|
+
}, string, import('vue').PublicProps, Readonly<ColorPaletteProps> & Readonly<{
|
|
23
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
24
|
+
}>, {
|
|
25
|
+
alpha: boolean;
|
|
26
|
+
picker: boolean;
|
|
27
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
28
|
+
pickerRef: HTMLDivElement;
|
|
29
|
+
canvasWrapRef: HTMLDivElement;
|
|
30
|
+
mainCanvasRef: HTMLCanvasElement;
|
|
31
|
+
hueWrapRef: HTMLDivElement;
|
|
32
|
+
hueCanvasRef: HTMLCanvasElement;
|
|
33
|
+
alphaWrapRef: HTMLDivElement;
|
|
34
|
+
alphaCanvasRef: HTMLCanvasElement;
|
|
35
|
+
}, HTMLDivElement>;
|
|
36
|
+
export default _default;
|
|
@@ -126,10 +126,10 @@ declare function __VLS_template(): {
|
|
|
126
126
|
};
|
|
127
127
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
128
128
|
declare const __VLS_component: import('vue').DefineComponent<BbBreadcrumbsProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<BbBreadcrumbsProps> & Readonly<{}>, {
|
|
129
|
+
offsetWidth: number;
|
|
129
130
|
divider: string;
|
|
130
131
|
dividerWidth: number;
|
|
131
132
|
gapWidth: number;
|
|
132
|
-
offsetWidth: number;
|
|
133
133
|
estimationBias: number;
|
|
134
134
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
135
135
|
navRef: HTMLElement;
|
|
@@ -2,6 +2,10 @@ import { BaseColorInputEvents, BaseColorInputSlots } from '../BaseColorInput/Bas
|
|
|
2
2
|
import { HTMLAttributes, InputHTMLAttributes } from 'vue';
|
|
3
3
|
import { IconType } from '../../types/Icon';
|
|
4
4
|
export type BbColorInputProps = {
|
|
5
|
+
/**
|
|
6
|
+
* Enable the alpha channel. Shows an opacity slider and uses `#RRGGBBAA` hex8 format.
|
|
7
|
+
*/
|
|
8
|
+
alpha?: boolean;
|
|
5
9
|
/**
|
|
6
10
|
* Name of the icon to be added at the end of the input.
|
|
7
11
|
*/
|
|
@@ -95,6 +99,19 @@ export type BbColorInputProps = {
|
|
|
95
99
|
* Reverses the layout. Applicable in every direction the order of the label and the input is swapped.
|
|
96
100
|
*/
|
|
97
101
|
reverse?: boolean;
|
|
102
|
+
/**
|
|
103
|
+
* Show an eyedropper button to sample any color on screen.
|
|
104
|
+
* Uses the native EyeDropper API — hidden automatically on unsupported browsers.
|
|
105
|
+
* @default false
|
|
106
|
+
*/
|
|
107
|
+
picker?: boolean;
|
|
108
|
+
/**
|
|
109
|
+
* Controls swatches display in the picker:
|
|
110
|
+
* - `true` — show the built-in Material-palette swatches
|
|
111
|
+
* - `string[][]` — show custom swatches (each inner array = a column of shades)
|
|
112
|
+
* - `false` / omitted — no swatches section
|
|
113
|
+
*/
|
|
114
|
+
swatches?: boolean | string[][];
|
|
98
115
|
};
|
|
99
116
|
export type BbColorInputEvents = BaseColorInputEvents;
|
|
100
117
|
export type BbColorInputSlots = BaseColorInputSlots & {
|
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
import { CommonProps } from '../../types/CommonProps';
|
|
2
|
+
export type BbColorPaletteProps = Pick<CommonProps, 'arrowPadding' | 'eager' | 'offset' | 'padding' | 'placement' | 'transitionDuration'> & {
|
|
3
|
+
/**
|
|
4
|
+
* v-model: the current color as a `#RRGGBB` hex string (or `#RRGGBBAA` when
|
|
5
|
+
* `alpha` is enabled), or `null` when empty.
|
|
6
|
+
*/
|
|
7
|
+
modelValue: string | null;
|
|
8
|
+
/**
|
|
9
|
+
* Enable the alpha channel. The picker shows an opacity slider and emits
|
|
10
|
+
* `#RRGGBBAA` hex8 values.
|
|
11
|
+
*/
|
|
12
|
+
alpha?: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Controls swatches display in the picker:
|
|
15
|
+
* - `true` — show the built-in Material-palette swatches
|
|
16
|
+
* - `string[][]` — show custom swatches (each inner array = a column of shades)
|
|
17
|
+
* - `false` / omitted — no swatches section
|
|
18
|
+
*/
|
|
19
|
+
swatches?: boolean | string[][];
|
|
20
|
+
/**
|
|
21
|
+
* External activator element or component ref.
|
|
22
|
+
* When provided, the `activator` slot is not rendered and click listeners are
|
|
23
|
+
* attached programmatically to the referenced element — mirroring the
|
|
24
|
+
* BbDropdown activator API.
|
|
25
|
+
*/
|
|
26
|
+
activator?: HTMLElement | Record<string, any> | null;
|
|
27
|
+
/**
|
|
28
|
+
* Element or component ref the popover positions itself relative to.
|
|
29
|
+
* Defaults to the activator element when omitted, allowing the popover to
|
|
30
|
+
* be anchored to a larger container (e.g. the full input row) while a
|
|
31
|
+
* smaller element (e.g. a color dot) remains the click target.
|
|
32
|
+
*/
|
|
33
|
+
anchor?: HTMLElement | Record<string, any> | null;
|
|
34
|
+
/**
|
|
35
|
+
* Constrains the popover within a bounding element.
|
|
36
|
+
* Accepts an HTMLElement, a Vue component ref, or a CSS selector string.
|
|
37
|
+
*/
|
|
38
|
+
boundary?: HTMLElement | Record<string, any> | string | null;
|
|
39
|
+
/**
|
|
40
|
+
* Whether to flip the popover to the opposite side when there is not enough space.
|
|
41
|
+
* @default true
|
|
42
|
+
*/
|
|
43
|
+
flip?: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* Show the popover arrow. Hidden by default since the palette has its own visual frame.
|
|
46
|
+
* @default false
|
|
47
|
+
*/
|
|
48
|
+
showArrow?: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* Disable all interaction (activator and palette).
|
|
51
|
+
*/
|
|
52
|
+
disabled?: boolean;
|
|
53
|
+
/**
|
|
54
|
+
* Prevent opening the palette while keeping the activator visible.
|
|
55
|
+
*/
|
|
56
|
+
readonly?: boolean;
|
|
57
|
+
/**
|
|
58
|
+
* Accessible label applied to the activator element via `aria-label`.
|
|
59
|
+
* Defaults to the locale string for "Open color picker" when omitted.
|
|
60
|
+
*/
|
|
61
|
+
label?: string;
|
|
62
|
+
/**
|
|
63
|
+
* Show an eyedropper button inside the palette to sample any color on screen.
|
|
64
|
+
* Uses the native EyeDropper API — hidden automatically on unsupported browsers.
|
|
65
|
+
* @default false
|
|
66
|
+
*/
|
|
67
|
+
picker?: boolean;
|
|
68
|
+
};
|
|
69
|
+
export type BbColorPaletteEvents = {
|
|
70
|
+
(e: 'update:modelValue', value: string | null): void;
|
|
71
|
+
/** Fires whenever the popover opens or closes. */
|
|
72
|
+
(e: 'update:open', value: boolean): void;
|
|
73
|
+
};
|
|
74
|
+
export type BbColorPaletteSlots = {
|
|
75
|
+
/**
|
|
76
|
+
* Custom activator element.
|
|
77
|
+
* Apply `v-bind="props"` to the element you want to use as the trigger —
|
|
78
|
+
* this wires up the ref callback that lets BbColorPalette track the element.
|
|
79
|
+
*
|
|
80
|
+
* @example
|
|
81
|
+
* ```vue
|
|
82
|
+
* <BbColorPalette v-model="color">
|
|
83
|
+
* <template #activator="{ props: dotProps, open, color }">
|
|
84
|
+
* <button v-bind="dotProps" :style="{ background: color }">Pick</button>
|
|
85
|
+
* </template>
|
|
86
|
+
* </BbColorPalette>
|
|
87
|
+
* ```
|
|
88
|
+
*/
|
|
89
|
+
activator?: (props: {
|
|
90
|
+
/**
|
|
91
|
+
* Spread onto your activator element to register the ref.
|
|
92
|
+
* ARIA attributes (`aria-haspopup`, `aria-expanded`, `aria-label`) are set
|
|
93
|
+
* programmatically so they stay correct for both the slot and external activator paths.
|
|
94
|
+
*/
|
|
95
|
+
props: {
|
|
96
|
+
ref: (el: unknown) => void;
|
|
97
|
+
};
|
|
98
|
+
/**
|
|
99
|
+
* Spread onto a wrapping element when you want the popover to anchor to
|
|
100
|
+
* something larger than the click target (e.g. the full input row).
|
|
101
|
+
* When unused the activator element is also the anchor.
|
|
102
|
+
*/
|
|
103
|
+
anchorProps: {
|
|
104
|
+
ref: (el: unknown) => void;
|
|
105
|
+
};
|
|
106
|
+
/** Whether the palette popover is currently open. */
|
|
107
|
+
open: boolean;
|
|
108
|
+
/** The current color value (mirrors `modelValue`). */
|
|
109
|
+
color: string | null;
|
|
110
|
+
disabled?: boolean;
|
|
111
|
+
}) => any;
|
|
112
|
+
};
|
|
113
|
+
declare function __VLS_template(): {
|
|
114
|
+
attrs: Partial<{}>;
|
|
115
|
+
slots: Readonly<BbColorPaletteSlots> & BbColorPaletteSlots;
|
|
116
|
+
refs: {
|
|
117
|
+
paletteRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('../BaseColorInput/ColorPalette.vue').ColorPaletteProps> & Readonly<{
|
|
118
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
119
|
+
}>, {
|
|
120
|
+
el: import('vue').Ref<HTMLDivElement | null, HTMLDivElement | null>;
|
|
121
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
122
|
+
"update:modelValue": (value: string) => any;
|
|
123
|
+
}, import('vue').PublicProps, {
|
|
124
|
+
alpha: boolean;
|
|
125
|
+
picker: boolean;
|
|
126
|
+
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
127
|
+
pickerRef: HTMLDivElement;
|
|
128
|
+
canvasWrapRef: HTMLDivElement;
|
|
129
|
+
mainCanvasRef: HTMLCanvasElement;
|
|
130
|
+
hueWrapRef: HTMLDivElement;
|
|
131
|
+
hueCanvasRef: HTMLCanvasElement;
|
|
132
|
+
alphaWrapRef: HTMLDivElement;
|
|
133
|
+
alphaCanvasRef: HTMLCanvasElement;
|
|
134
|
+
}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
135
|
+
P: {};
|
|
136
|
+
B: {};
|
|
137
|
+
D: {};
|
|
138
|
+
C: {};
|
|
139
|
+
M: {};
|
|
140
|
+
Defaults: {};
|
|
141
|
+
}, Readonly<import('../BaseColorInput/ColorPalette.vue').ColorPaletteProps> & Readonly<{
|
|
142
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
143
|
+
}>, {
|
|
144
|
+
el: import('vue').Ref<HTMLDivElement | null, HTMLDivElement | null>;
|
|
145
|
+
}, {}, {}, {}, {
|
|
146
|
+
alpha: boolean;
|
|
147
|
+
picker: boolean;
|
|
148
|
+
}> | null;
|
|
149
|
+
};
|
|
150
|
+
rootEl: any;
|
|
151
|
+
};
|
|
152
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
153
|
+
declare const __VLS_component: import('vue').DefineComponent<BbColorPaletteProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
154
|
+
"update:modelValue": (value: string | null) => any;
|
|
155
|
+
"update:open": (value: boolean) => any;
|
|
156
|
+
}, string, import('vue').PublicProps, Readonly<BbColorPaletteProps> & Readonly<{
|
|
157
|
+
"onUpdate:modelValue"?: ((value: string | null) => any) | undefined;
|
|
158
|
+
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
159
|
+
}>, {
|
|
160
|
+
transitionDuration: number;
|
|
161
|
+
offset: number;
|
|
162
|
+
padding: number;
|
|
163
|
+
alpha: boolean;
|
|
164
|
+
picker: boolean;
|
|
165
|
+
flip: boolean;
|
|
166
|
+
showArrow: boolean;
|
|
167
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
168
|
+
paletteRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('../BaseColorInput/ColorPalette.vue').ColorPaletteProps> & Readonly<{
|
|
169
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
170
|
+
}>, {
|
|
171
|
+
el: import('vue').Ref<HTMLDivElement | null, HTMLDivElement | null>;
|
|
172
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
173
|
+
"update:modelValue": (value: string) => any;
|
|
174
|
+
}, import('vue').PublicProps, {
|
|
175
|
+
alpha: boolean;
|
|
176
|
+
picker: boolean;
|
|
177
|
+
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
178
|
+
pickerRef: HTMLDivElement;
|
|
179
|
+
canvasWrapRef: HTMLDivElement;
|
|
180
|
+
mainCanvasRef: HTMLCanvasElement;
|
|
181
|
+
hueWrapRef: HTMLDivElement;
|
|
182
|
+
hueCanvasRef: HTMLCanvasElement;
|
|
183
|
+
alphaWrapRef: HTMLDivElement;
|
|
184
|
+
alphaCanvasRef: HTMLCanvasElement;
|
|
185
|
+
}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
186
|
+
P: {};
|
|
187
|
+
B: {};
|
|
188
|
+
D: {};
|
|
189
|
+
C: {};
|
|
190
|
+
M: {};
|
|
191
|
+
Defaults: {};
|
|
192
|
+
}, Readonly<import('../BaseColorInput/ColorPalette.vue').ColorPaletteProps> & Readonly<{
|
|
193
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
194
|
+
}>, {
|
|
195
|
+
el: import('vue').Ref<HTMLDivElement | null, HTMLDivElement | null>;
|
|
196
|
+
}, {}, {}, {}, {
|
|
197
|
+
alpha: boolean;
|
|
198
|
+
picker: boolean;
|
|
199
|
+
}> | null;
|
|
200
|
+
}, any>;
|
|
201
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
202
|
+
export default _default;
|
|
203
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
204
|
+
new (): {
|
|
205
|
+
$slots: S;
|
|
206
|
+
};
|
|
207
|
+
};
|
package/dist/i18n/en.d.ts
CHANGED
|
@@ -6,11 +6,16 @@ declare const _default: {
|
|
|
6
6
|
clearLabel: string;
|
|
7
7
|
};
|
|
8
8
|
colorInput: {
|
|
9
|
+
dialogLabel: string;
|
|
10
|
+
openPicker: string;
|
|
11
|
+
openPickerSelected: string;
|
|
9
12
|
paletteLabel: string;
|
|
10
13
|
mainCanvasDesc: string;
|
|
11
14
|
mainCanvasSelectedColor: string;
|
|
12
15
|
hueCanvasDesc: string;
|
|
13
16
|
hueCanvasSelectedHue: string;
|
|
17
|
+
alphaSliderDesc: string;
|
|
18
|
+
eyeDropper: string;
|
|
14
19
|
};
|
|
15
20
|
datePicker: {
|
|
16
21
|
monthLabel: string;
|
package/dist/i18n/it.d.ts
CHANGED
|
@@ -6,11 +6,16 @@ declare const _default: {
|
|
|
6
6
|
clearLabel: string;
|
|
7
7
|
};
|
|
8
8
|
colorInput: {
|
|
9
|
+
dialogLabel: string;
|
|
10
|
+
openPicker: string;
|
|
11
|
+
openPickerSelected: string;
|
|
9
12
|
paletteLabel: string;
|
|
10
13
|
mainCanvasDesc: string;
|
|
11
14
|
mainCanvasSelectedColor: string;
|
|
12
15
|
hueCanvasDesc: string;
|
|
13
16
|
hueCanvasSelectedHue: string;
|
|
17
|
+
alphaSliderDesc: string;
|
|
18
|
+
eyeDropper: string;
|
|
14
19
|
};
|
|
15
20
|
datePicker: {
|
|
16
21
|
monthLabel: string;
|