@moubing/bing-ui 0.2.0 → 0.3.0
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/bing-ui.css +1 -1
- package/dist/bing-ui.es.js +9768 -8653
- package/dist/bing-ui.umd.js +27 -27
- package/dist/components/BingColorPicker/BingColorPicker.types.d.ts +70 -0
- package/dist/components/BingColorPicker/BingColorPicker.vue.d.ts +38 -0
- package/dist/components/BingColorPicker/index.d.ts +2 -0
- package/dist/components/BingDatePicker/BingDatePicker.vue.d.ts +2 -2
- package/dist/components/BingDropDown/BingDropDown.types.d.ts +1 -0
- package/dist/components/BingDropDown/BingDropDown.vue.d.ts +1 -0
- package/dist/components/BingDropDown/BingDropDownItem.vue.d.ts +1 -1
- package/dist/components/BingForm/BingForm.vue.d.ts +1 -1
- package/dist/components/BingFormItem/BingFormItem.vue.d.ts +1 -1
- package/dist/components/BingSelect/BingSelect.types.d.ts +5 -0
- package/dist/components/BingSelect/BingSelect.vue.d.ts +5 -2
- package/dist/components/BingToast/BingToast.service.d.ts +0 -8
- package/dist/components/BingToast/BingToast.types.d.ts +3 -4
- package/dist/components/BingToast/BingToast.vue.d.ts +0 -4
- package/dist/components/BingTreeSelect/BingTreeSelect.types.d.ts +5 -0
- package/dist/components/BingTreeSelect/BingTreeSelect.vue.d.ts +5 -2
- package/dist/components/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { BingGlassEffectProps } from '../../utils/glass';
|
|
2
|
+
export type BingColorPickerSize = 'sm' | 'md' | 'lg';
|
|
3
|
+
export type BingColorPickerFormat = 'hex' | 'rgba' | 'hsl';
|
|
4
|
+
export type BingColorPickerChangeSource = 'field' | 'slider' | 'alpha' | 'preset' | 'input';
|
|
5
|
+
export type BingColorPickerModelValue = string;
|
|
6
|
+
export interface BingColorPickerPreset {
|
|
7
|
+
label?: string;
|
|
8
|
+
value: string;
|
|
9
|
+
}
|
|
10
|
+
export type BingColorPickerPresetInput = string | BingColorPickerPreset;
|
|
11
|
+
export interface BingColorPickerRgbValue {
|
|
12
|
+
r: number;
|
|
13
|
+
g: number;
|
|
14
|
+
b: number;
|
|
15
|
+
a: number;
|
|
16
|
+
}
|
|
17
|
+
export interface BingColorPickerHslValue {
|
|
18
|
+
h: number;
|
|
19
|
+
s: number;
|
|
20
|
+
l: number;
|
|
21
|
+
a: number;
|
|
22
|
+
}
|
|
23
|
+
export interface BingColorPickerColorValue {
|
|
24
|
+
hex: string;
|
|
25
|
+
hexAlpha: string;
|
|
26
|
+
rgba: string;
|
|
27
|
+
hsl: string;
|
|
28
|
+
rgb: BingColorPickerRgbValue;
|
|
29
|
+
hslParts: BingColorPickerHslValue;
|
|
30
|
+
}
|
|
31
|
+
export interface BingColorPickerChangePayload extends BingColorPickerColorValue {
|
|
32
|
+
value: string;
|
|
33
|
+
source: BingColorPickerChangeSource;
|
|
34
|
+
}
|
|
35
|
+
export interface BingColorPickerCopyPayload {
|
|
36
|
+
format: BingColorPickerFormat;
|
|
37
|
+
value: string;
|
|
38
|
+
color: BingColorPickerColorValue;
|
|
39
|
+
}
|
|
40
|
+
export interface BingColorPickerProps extends BingGlassEffectProps {
|
|
41
|
+
id?: string;
|
|
42
|
+
modelValue?: BingColorPickerModelValue;
|
|
43
|
+
presets?: BingColorPickerPresetInput[];
|
|
44
|
+
disabled?: boolean;
|
|
45
|
+
size?: BingColorPickerSize;
|
|
46
|
+
block?: boolean;
|
|
47
|
+
width?: string | number;
|
|
48
|
+
minWidth?: string | number;
|
|
49
|
+
panelWidth?: string | number;
|
|
50
|
+
copyLabel?: string;
|
|
51
|
+
copiedLabel?: string;
|
|
52
|
+
copyResetDelay?: number;
|
|
53
|
+
ariaLabel?: string;
|
|
54
|
+
ariaDescribedby?: string;
|
|
55
|
+
status?: 'default' | 'error' | 'success' | 'warning';
|
|
56
|
+
}
|
|
57
|
+
export interface BingColorPickerEmits {
|
|
58
|
+
'update:modelValue': [value: BingColorPickerModelValue];
|
|
59
|
+
change: [payload: BingColorPickerChangePayload];
|
|
60
|
+
copy: [payload: BingColorPickerCopyPayload];
|
|
61
|
+
copyError: [error: Error];
|
|
62
|
+
open: [];
|
|
63
|
+
close: [];
|
|
64
|
+
}
|
|
65
|
+
export interface BingColorPickerExpose {
|
|
66
|
+
focus: () => void;
|
|
67
|
+
blur: () => void;
|
|
68
|
+
openPanel: () => void;
|
|
69
|
+
closePanel: () => void;
|
|
70
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { BingColorPickerChangePayload, BingColorPickerExpose, BingColorPickerPresetInput, BingColorPickerProps } from './BingColorPicker.types';
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
4
|
+
declare const __VLS_export: import('vue').DefineComponent<BingColorPickerProps, BingColorPickerExpose, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
5
|
+
"update:modelValue": (value: string) => any;
|
|
6
|
+
change: (payload: BingColorPickerChangePayload) => any;
|
|
7
|
+
close: () => any;
|
|
8
|
+
copy: (payload: import('./BingColorPicker.types').BingColorPickerCopyPayload) => any;
|
|
9
|
+
copyError: (error: Error) => any;
|
|
10
|
+
open: () => any;
|
|
11
|
+
}, string, import('vue').PublicProps, Readonly<BingColorPickerProps> & Readonly<{
|
|
12
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
13
|
+
onChange?: ((payload: BingColorPickerChangePayload) => any) | undefined;
|
|
14
|
+
onClose?: (() => any) | undefined;
|
|
15
|
+
onCopy?: ((payload: import('./BingColorPicker.types').BingColorPickerCopyPayload) => any) | undefined;
|
|
16
|
+
onCopyError?: ((error: Error) => any) | undefined;
|
|
17
|
+
onOpen?: (() => any) | undefined;
|
|
18
|
+
}>, {
|
|
19
|
+
disabled: boolean;
|
|
20
|
+
minWidth: string | number;
|
|
21
|
+
width: string | number;
|
|
22
|
+
glass: boolean;
|
|
23
|
+
ariaLabel: string;
|
|
24
|
+
modelValue: import('./BingColorPicker.types').BingColorPickerModelValue;
|
|
25
|
+
size: import('./BingColorPicker.types').BingColorPickerSize;
|
|
26
|
+
block: boolean;
|
|
27
|
+
glassBlur: string | number;
|
|
28
|
+
glassOpacity: number;
|
|
29
|
+
glassSaturation: number;
|
|
30
|
+
id: string;
|
|
31
|
+
ariaDescribedby: string;
|
|
32
|
+
status: "default" | "error" | "success" | "warning";
|
|
33
|
+
copyLabel: string;
|
|
34
|
+
copiedLabel: string;
|
|
35
|
+
copyResetDelay: number;
|
|
36
|
+
presets: BingColorPickerPresetInput[];
|
|
37
|
+
panelWidth: string | number;
|
|
38
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { default as BingColorPicker } from './BingColorPicker.vue';
|
|
2
|
+
export type { BingColorPickerChangePayload, BingColorPickerChangeSource, BingColorPickerColorValue, BingColorPickerCopyPayload, BingColorPickerEmits, BingColorPickerExpose, BingColorPickerFormat, BingColorPickerHslValue, BingColorPickerModelValue, BingColorPickerPreset, BingColorPickerPresetInput, BingColorPickerProps, BingColorPickerRgbValue, BingColorPickerSize, } from './BingColorPicker.types';
|
|
@@ -36,9 +36,10 @@ declare const __VLS_export: import('vue').DefineComponent<BingDatePickerProps, B
|
|
|
36
36
|
min: string;
|
|
37
37
|
format: string;
|
|
38
38
|
placeholder: string;
|
|
39
|
+
clearable: boolean;
|
|
40
|
+
panelMaxHeight: string | number;
|
|
39
41
|
startPlaceholder: string;
|
|
40
42
|
endPlaceholder: string;
|
|
41
|
-
clearable: boolean;
|
|
42
43
|
valueFormat: string;
|
|
43
44
|
locale: string;
|
|
44
45
|
firstDayOfWeek: number;
|
|
@@ -48,7 +49,6 @@ declare const __VLS_export: import('vue').DefineComponent<BingDatePickerProps, B
|
|
|
48
49
|
minuteStep: number;
|
|
49
50
|
secondStep: number;
|
|
50
51
|
showShortcuts: boolean;
|
|
51
|
-
panelMaxHeight: string | number;
|
|
52
52
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
53
53
|
declare const _default: typeof __VLS_export;
|
|
54
54
|
export default _default;
|
|
@@ -30,6 +30,7 @@ declare const __VLS_export: __VLS_WithSlots<import('vue').DefineComponent<BingDr
|
|
|
30
30
|
placement: BingDropDownPlacement;
|
|
31
31
|
closeOnOutside: boolean;
|
|
32
32
|
open: boolean | null;
|
|
33
|
+
panelClass: string;
|
|
33
34
|
closeOnEscape: boolean;
|
|
34
35
|
autoFocus: boolean;
|
|
35
36
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, {
|
|
@@ -14,9 +14,9 @@ declare const __VLS_export: __VLS_WithSlots<import('vue').DefineComponent<BingDr
|
|
|
14
14
|
tone: import('./BingDropDown.types').BingDropDownItemTone;
|
|
15
15
|
target: string;
|
|
16
16
|
href: string;
|
|
17
|
+
active: boolean;
|
|
17
18
|
shortcut: string | string[];
|
|
18
19
|
rel: string;
|
|
19
|
-
active: boolean;
|
|
20
20
|
closeOnClick: boolean;
|
|
21
21
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, {
|
|
22
22
|
prefix?: (props: {}) => any;
|
|
@@ -14,9 +14,9 @@ declare const __VLS_base: import('vue').DefineComponent<BingFormProps, BingFormE
|
|
|
14
14
|
columns: BingFormResponsiveNumber;
|
|
15
15
|
gap: BingFormGap;
|
|
16
16
|
size: import('./BingForm.types').BingFormSize;
|
|
17
|
+
layout: import('./BingForm.types').BingFormLayout;
|
|
17
18
|
model: BingFormModel;
|
|
18
19
|
schema: import('./BingForm.types').BingFormSchema;
|
|
19
|
-
layout: import('./BingForm.types').BingFormLayout;
|
|
20
20
|
labelPosition: import('./BingForm.types').BingFormLabelPosition;
|
|
21
21
|
labelWidth: string | number;
|
|
22
22
|
validateTrigger: BingFormValidateTrigger | BingFormValidateTrigger[];
|
|
@@ -16,8 +16,8 @@ declare const __VLS_base: import('vue').DefineComponent<BingFormItemProps, {}, {
|
|
|
16
16
|
span: BingFormResponsiveNumber;
|
|
17
17
|
required: boolean;
|
|
18
18
|
prop: string;
|
|
19
|
-
labelPosition: import('..').BingFormLabelPosition;
|
|
20
19
|
help: string;
|
|
20
|
+
labelPosition: import('..').BingFormLabelPosition;
|
|
21
21
|
showMessage: boolean;
|
|
22
22
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
23
23
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -4,6 +4,8 @@ export type BingSelectModelValue = BingSelectValue | BingSelectValue[] | null;
|
|
|
4
4
|
export type BingSelectSize = 'sm' | 'md' | 'lg';
|
|
5
5
|
export type BingSelectVirtualMode = boolean | 'auto';
|
|
6
6
|
export type BingSelectSearchable = boolean | 'auto';
|
|
7
|
+
export type BingSelectPanelPlacement = 'auto' | 'top' | 'bottom' | 'left' | 'right';
|
|
8
|
+
export type BingSelectPanelAlign = 'start' | 'middle' | 'end';
|
|
7
9
|
export type BingSelectOptionMetaValue = string | number | boolean | null | undefined;
|
|
8
10
|
export interface BingSelectOption {
|
|
9
11
|
label: string;
|
|
@@ -35,6 +37,9 @@ export interface BingSelectProps extends BingGlassEffectProps {
|
|
|
35
37
|
minWidth?: string | number;
|
|
36
38
|
panelMinHeight?: string | number;
|
|
37
39
|
panelMaxHeight?: string | number;
|
|
40
|
+
panelPlacement?: BingSelectPanelPlacement;
|
|
41
|
+
panelAlign?: BingSelectPanelAlign;
|
|
42
|
+
panelGap?: number;
|
|
38
43
|
virtual?: BingSelectVirtualMode;
|
|
39
44
|
virtualThreshold?: number;
|
|
40
45
|
virtualItemHeight?: number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BingSelectChangePayload, BingSelectModelValue, BingSelectOption, BingSelectProps } from './BingSelect.types';
|
|
1
|
+
import { BingSelectChangePayload, BingSelectModelValue, BingSelectOption, BingSelectPanelAlign, BingSelectPanelPlacement, BingSelectProps } from './BingSelect.types';
|
|
2
2
|
declare var __VLS_1: {
|
|
3
3
|
selectedOptions: BingSelectOption[];
|
|
4
4
|
placeholder: string;
|
|
@@ -46,7 +46,6 @@ declare const __VLS_base: import('vue').DefineComponent<BingSelectProps, {}, {},
|
|
|
46
46
|
status: "default" | "error" | "success" | "warning";
|
|
47
47
|
placeholder: string;
|
|
48
48
|
clearable: boolean;
|
|
49
|
-
panelMaxHeight: string | number;
|
|
50
49
|
options: BingSelectOption[];
|
|
51
50
|
multiple: boolean;
|
|
52
51
|
showSelectAll: boolean;
|
|
@@ -57,6 +56,10 @@ declare const __VLS_base: import('vue').DefineComponent<BingSelectProps, {}, {},
|
|
|
57
56
|
searchPlaceholder: string;
|
|
58
57
|
noSearchResultsText: string;
|
|
59
58
|
panelMinHeight: string | number;
|
|
59
|
+
panelMaxHeight: string | number;
|
|
60
|
+
panelPlacement: BingSelectPanelPlacement;
|
|
61
|
+
panelAlign: BingSelectPanelAlign;
|
|
62
|
+
panelGap: number;
|
|
60
63
|
virtual: import('./BingSelect.types').BingSelectVirtualMode;
|
|
61
64
|
virtualThreshold: number;
|
|
62
65
|
virtualItemHeight: number;
|
|
@@ -11,10 +11,6 @@ export declare const bingToastItems: import('vue').Ref<{
|
|
|
11
11
|
order: number;
|
|
12
12
|
ariaLabel?: string | undefined;
|
|
13
13
|
closeAriaLabel: string;
|
|
14
|
-
glass?: boolean | undefined;
|
|
15
|
-
glassBlur?: string | number | undefined;
|
|
16
|
-
glassOpacity?: number | undefined;
|
|
17
|
-
glassSaturation?: number | undefined;
|
|
18
14
|
}[], BingToastItem[] | {
|
|
19
15
|
id: string;
|
|
20
16
|
type: BingToastType;
|
|
@@ -27,10 +23,6 @@ export declare const bingToastItems: import('vue').Ref<{
|
|
|
27
23
|
order: number;
|
|
28
24
|
ariaLabel?: string | undefined;
|
|
29
25
|
closeAriaLabel: string;
|
|
30
|
-
glass?: boolean | undefined;
|
|
31
|
-
glassBlur?: string | number | undefined;
|
|
32
|
-
glassOpacity?: number | undefined;
|
|
33
|
-
glassSaturation?: number | undefined;
|
|
34
26
|
}[]>;
|
|
35
27
|
export declare const activeBingToastViewportId: import('vue').Ref<string | undefined, string | undefined>;
|
|
36
28
|
export declare function pauseBingToastTimer(id: string | number): void;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { BingGlassEffectProps } from '../../utils/glass';
|
|
2
1
|
export declare const BING_TOAST_POSITIONS: readonly ["top", "bottom", "left", "right", "top-left", "top-right", "bottom-left", "bottom-right"];
|
|
3
2
|
export declare const BING_TOAST_POSITION_ALIASES: readonly ["top-center", "bottom-center"];
|
|
4
3
|
export declare const BING_TOAST_POSITION_OPTIONS: readonly ["top", "bottom", "left", "right", "top-left", "top-right", "bottom-left", "bottom-right", "top-center", "bottom-center"];
|
|
@@ -7,7 +6,7 @@ export type BingToastPosition = (typeof BING_TOAST_POSITION_OPTIONS)[number];
|
|
|
7
6
|
export type BingToastViewportPosition = BingToastPosition | 'all';
|
|
8
7
|
export type BingToastType = 'default' | 'success' | 'error' | 'loading' | 'warning' | 'info';
|
|
9
8
|
export type BingToastInput = string | BingToastOptions;
|
|
10
|
-
export interface BingToastOptions
|
|
9
|
+
export interface BingToastOptions {
|
|
11
10
|
id?: string | number;
|
|
12
11
|
title?: string;
|
|
13
12
|
message?: string;
|
|
@@ -18,7 +17,7 @@ export interface BingToastOptions extends BingGlassEffectProps {
|
|
|
18
17
|
ariaLabel?: string;
|
|
19
18
|
closeAriaLabel?: string;
|
|
20
19
|
}
|
|
21
|
-
export interface BingToastItem
|
|
20
|
+
export interface BingToastItem {
|
|
22
21
|
id: string;
|
|
23
22
|
type: BingToastType;
|
|
24
23
|
title?: string;
|
|
@@ -31,7 +30,7 @@ export interface BingToastItem extends BingGlassEffectProps {
|
|
|
31
30
|
ariaLabel?: string;
|
|
32
31
|
closeAriaLabel: string;
|
|
33
32
|
}
|
|
34
|
-
export interface BingToastProps
|
|
33
|
+
export interface BingToastProps {
|
|
35
34
|
viewportPosition?: BingToastViewportPosition;
|
|
36
35
|
zIndex?: number;
|
|
37
36
|
offset?: string | number;
|
|
@@ -7,10 +7,6 @@ declare const __VLS_export: import('vue').DefineComponent<BingToastProps, {}, {}
|
|
|
7
7
|
gap: string | number;
|
|
8
8
|
width: string | number;
|
|
9
9
|
zIndex: number;
|
|
10
|
-
glass: boolean;
|
|
11
|
-
glassBlur: string | number;
|
|
12
|
-
glassOpacity: number;
|
|
13
|
-
glassSaturation: number;
|
|
14
10
|
max: number;
|
|
15
11
|
offset: string | number;
|
|
16
12
|
viewportPosition: import('./BingToast.types').BingToastViewportPosition;
|
|
@@ -4,6 +4,8 @@ export type BingTreeSelectModelValue = BingTreeSelectValue | BingTreeSelectValue
|
|
|
4
4
|
export type BingTreeSelectSize = 'sm' | 'md' | 'lg';
|
|
5
5
|
export type BingTreeSelectVirtualMode = boolean | 'auto';
|
|
6
6
|
export type BingTreeSelectSearchable = boolean | 'auto';
|
|
7
|
+
export type BingTreeSelectPanelPlacement = 'auto' | 'top' | 'bottom' | 'left' | 'right';
|
|
8
|
+
export type BingTreeSelectPanelAlign = 'start' | 'middle' | 'end';
|
|
7
9
|
export type BingTreeSelectNodeMetaValue = string | number | boolean | null | undefined;
|
|
8
10
|
export interface BingTreeSelectNode {
|
|
9
11
|
label: string;
|
|
@@ -40,6 +42,9 @@ export interface BingTreeSelectProps extends BingGlassEffectProps {
|
|
|
40
42
|
block?: boolean;
|
|
41
43
|
panelMinHeight?: string | number;
|
|
42
44
|
panelMaxHeight?: string | number;
|
|
45
|
+
panelPlacement?: BingTreeSelectPanelPlacement;
|
|
46
|
+
panelAlign?: BingTreeSelectPanelAlign;
|
|
47
|
+
panelGap?: number;
|
|
43
48
|
virtual?: BingTreeSelectVirtualMode;
|
|
44
49
|
virtualThreshold?: number;
|
|
45
50
|
virtualItemHeight?: number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BingTreeSelectChangePayload, BingTreeSelectModelValue, BingTreeSelectNode, BingTreeSelectProps, BingTreeSelectValue } from './BingTreeSelect.types';
|
|
1
|
+
import { BingTreeSelectChangePayload, BingTreeSelectModelValue, BingTreeSelectNode, BingTreeSelectPanelAlign, BingTreeSelectPanelPlacement, BingTreeSelectProps, BingTreeSelectValue } from './BingTreeSelect.types';
|
|
2
2
|
declare var __VLS_1: {
|
|
3
3
|
selectedNodes: BingTreeSelectNode[];
|
|
4
4
|
placeholder: string;
|
|
@@ -53,7 +53,6 @@ declare const __VLS_base: import('vue').DefineComponent<BingTreeSelectProps, {},
|
|
|
53
53
|
status: "default" | "error" | "success" | "warning";
|
|
54
54
|
placeholder: string;
|
|
55
55
|
clearable: boolean;
|
|
56
|
-
panelMaxHeight: string | number;
|
|
57
56
|
options: BingTreeSelectNode[];
|
|
58
57
|
multiple: boolean;
|
|
59
58
|
showSelectAll: boolean;
|
|
@@ -64,6 +63,10 @@ declare const __VLS_base: import('vue').DefineComponent<BingTreeSelectProps, {},
|
|
|
64
63
|
searchPlaceholder: string;
|
|
65
64
|
noSearchResultsText: string;
|
|
66
65
|
panelMinHeight: string | number;
|
|
66
|
+
panelMaxHeight: string | number;
|
|
67
|
+
panelPlacement: BingTreeSelectPanelPlacement;
|
|
68
|
+
panelAlign: BingTreeSelectPanelAlign;
|
|
69
|
+
panelGap: number;
|
|
67
70
|
virtual: import('./BingTreeSelect.types').BingTreeSelectVirtualMode;
|
|
68
71
|
virtualThreshold: number;
|
|
69
72
|
virtualItemHeight: number;
|
|
@@ -4,6 +4,7 @@ export * from './BingButton';
|
|
|
4
4
|
export * from './BingCard';
|
|
5
5
|
export * from './BingCheckbox';
|
|
6
6
|
export * from './BingCodeBlock';
|
|
7
|
+
export * from './BingColorPicker';
|
|
7
8
|
export * from './BingDatePicker';
|
|
8
9
|
export * from './BingCarouselTransition';
|
|
9
10
|
export * from './BingDeckTransition';
|