amelia-booking-ui 0.0.431 → 0.0.433
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/amelia-booking-ui.css +1 -1
- package/dist/amelia-booking-ui.es.js +14665 -14588
- package/dist/types/App.vue.d.ts +3 -1
- package/dist/types/components/cascader/AmCascader.vue.d.ts +0 -2
- package/dist/types/components/color/AmColorPicker.vue.d.ts +0 -2
- package/dist/types/components/datepicker/AmDatePicker.vue.d.ts +0 -2
- package/dist/types/components/editor/AmEditor.vue.d.ts +3 -2
- package/dist/types/components/filter/AmFilter.vue.d.ts +1 -2
- package/dist/types/components/phone/AmPhoneInput.vue.d.ts +2 -4
- package/dist/types/components/popover/AmPopover.vue.d.ts +15 -2
- package/dist/types/components/select/AmSelect.vue.d.ts +0 -2
- package/dist/types/index.d.ts +1 -0
- package/dist/types/utils/utilPopper.d.ts +11 -0
- package/package.json +1 -1
package/dist/types/App.vue.d.ts
CHANGED
|
@@ -1,2 +1,4 @@
|
|
|
1
|
-
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
2
|
+
buttonRef: unknown;
|
|
3
|
+
}, HTMLDivElement>;
|
|
2
4
|
export default _default;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
interface Props {
|
|
2
|
-
popperBackground?: 'level-2-foreground' | 'level-1-foreground';
|
|
3
2
|
dynamicWidth?: boolean;
|
|
4
3
|
minWidth?: number;
|
|
5
4
|
maxWidth?: number;
|
|
@@ -12,7 +11,6 @@ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, imp
|
|
|
12
11
|
onChange?: (...args: any[]) => any;
|
|
13
12
|
"onUpdate:modelValue"?: (...args: any[]) => any;
|
|
14
13
|
}>, {
|
|
15
|
-
popperBackground: "level-2-foreground" | "level-1-foreground";
|
|
16
14
|
dynamicWidth: boolean;
|
|
17
15
|
minWidth: number;
|
|
18
16
|
maxWidth: number;
|
|
@@ -2,14 +2,12 @@ type __VLS_Props = {
|
|
|
2
2
|
modelValue: string;
|
|
3
3
|
mode?: 'popover' | 'picker';
|
|
4
4
|
valueOnClear?: string;
|
|
5
|
-
popperBackground?: 'level-2-foreground' | 'level-1-foreground';
|
|
6
5
|
};
|
|
7
6
|
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
8
7
|
"update:modelValue": (...args: any[]) => void;
|
|
9
8
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
10
9
|
"onUpdate:modelValue"?: (...args: any[]) => any;
|
|
11
10
|
}>, {
|
|
12
|
-
popperBackground: "level-2-foreground" | "level-1-foreground";
|
|
13
11
|
mode: "popover" | "picker";
|
|
14
12
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
15
13
|
inputRef: unknown;
|
|
@@ -8,7 +8,6 @@ interface Props {
|
|
|
8
8
|
prefixIconColorWhenActive?: string;
|
|
9
9
|
clearIconType?: 'fill' | 'outline';
|
|
10
10
|
type?: 'year' | 'years' | 'month' | 'months' | 'date' | 'dates' | 'datetime' | 'week' | 'datetimerange' | 'daterange' | 'monthrange' | 'yearrange';
|
|
11
|
-
popperBackground?: 'level-2-foreground' | 'level-1-foreground';
|
|
12
11
|
rangeSeparator?: string;
|
|
13
12
|
loading?: boolean;
|
|
14
13
|
cellClassName?: (date: Date) => string;
|
|
@@ -22,7 +21,6 @@ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, imp
|
|
|
22
21
|
"onUpdate:modelValue"?: (...args: any[]) => any;
|
|
23
22
|
}>, {
|
|
24
23
|
type: "year" | "years" | "month" | "months" | "date" | "dates" | "datetime" | "week" | "datetimerange" | "daterange" | "monthrange" | "yearrange";
|
|
25
|
-
popperBackground: "level-2-foreground" | "level-1-foreground";
|
|
26
24
|
prefixIcon: string;
|
|
27
25
|
prefixIconColor: string;
|
|
28
26
|
clearIconType: "fill" | "outline";
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
type __VLS_Props = {
|
|
2
2
|
modelValue?: string;
|
|
3
|
-
popperBackground?: 'level-2-foreground' | 'level-1-foreground';
|
|
4
3
|
};
|
|
5
4
|
declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
6
5
|
editor: import('vue').ShallowRef<import('@tiptap/vue-3').Editor, import('@tiptap/vue-3').Editor>;
|
|
@@ -12,5 +11,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
12
11
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
13
12
|
onInput?: (...args: any[]) => any;
|
|
14
13
|
"onUpdate:modelValue"?: (...args: any[]) => any;
|
|
15
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
14
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
15
|
+
editorRef: HTMLDivElement;
|
|
16
|
+
}, HTMLDivElement>;
|
|
16
17
|
export default _default;
|
|
@@ -30,7 +30,6 @@ interface Props {
|
|
|
30
30
|
popoverWidth?: string;
|
|
31
31
|
showOnlyIconOnMobile?: boolean;
|
|
32
32
|
type?: 'fill' | 'border';
|
|
33
|
-
popperBackground?: 'level-2-foreground' | 'level-1-foreground';
|
|
34
33
|
isFullWidth?: boolean;
|
|
35
34
|
remoteMethod?: (search: string) => Promise<void>;
|
|
36
35
|
}
|
|
@@ -45,12 +44,12 @@ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, imp
|
|
|
45
44
|
}>, {
|
|
46
45
|
type: "fill" | "border";
|
|
47
46
|
size: "l" | "m" | "d" | "s" | "xs";
|
|
48
|
-
popperBackground: "level-2-foreground" | "level-1-foreground";
|
|
49
47
|
placeholder: string;
|
|
50
48
|
searchable: boolean;
|
|
51
49
|
popoverWidth: string;
|
|
52
50
|
isFullWidth: boolean;
|
|
53
51
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
52
|
+
filterContainerRef: HTMLDivElement;
|
|
54
53
|
filterButtonRef: HTMLDivElement;
|
|
55
54
|
filterPopoverRef: unknown;
|
|
56
55
|
}, HTMLDivElement>;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
interface Props {
|
|
2
2
|
modelValue?: string | undefined;
|
|
3
|
-
popperBackground?: 'level-2-foreground' | 'level-1-foreground';
|
|
4
3
|
}
|
|
5
4
|
declare const _default: import('vue').DefineComponent<Props, {
|
|
6
5
|
focus: () => void;
|
|
@@ -10,9 +9,8 @@ declare const _default: import('vue').DefineComponent<Props, {
|
|
|
10
9
|
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
11
10
|
"onUpdate:modelValue"?: (...args: any[]) => any;
|
|
12
11
|
onUpdate?: (...args: any[]) => any;
|
|
13
|
-
}>, {
|
|
14
|
-
|
|
15
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
12
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
13
|
+
phoneInputRef: HTMLDivElement;
|
|
16
14
|
vueTelRef: any;
|
|
17
15
|
}, HTMLDivElement>;
|
|
18
16
|
export default _default;
|
|
@@ -1,7 +1,12 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
1
2
|
interface Props {
|
|
2
3
|
popperClass?: string;
|
|
3
|
-
popperBackground?: 'level-2-foreground' | 'level-1-foreground';
|
|
4
|
+
popperBackground?: 'level-2-foreground' | 'level-1-foreground' | null;
|
|
4
5
|
isWithScrollbar?: boolean;
|
|
6
|
+
virtualRef?: Ref<globalThis.HTMLElement | null> | globalThis.HTMLElement | {
|
|
7
|
+
$el: globalThis.HTMLElement;
|
|
8
|
+
} | null;
|
|
9
|
+
virtualTriggering?: boolean;
|
|
5
10
|
}
|
|
6
11
|
declare function __VLS_template(): {
|
|
7
12
|
attrs: Partial<{}>;
|
|
@@ -11,6 +16,7 @@ declare function __VLS_template(): {
|
|
|
11
16
|
default?(_: {}): any;
|
|
12
17
|
};
|
|
13
18
|
refs: {
|
|
19
|
+
popoverContainerRef: HTMLDivElement;
|
|
14
20
|
elPopoverRef: {
|
|
15
21
|
$: import('vue').ComponentInternalInstance;
|
|
16
22
|
$data: {};
|
|
@@ -555,6 +561,7 @@ declare function __VLS_template(): {
|
|
|
555
561
|
default?(_: {}): any;
|
|
556
562
|
};
|
|
557
563
|
};
|
|
564
|
+
referenceSlotRef: HTMLDivElement;
|
|
558
565
|
};
|
|
559
566
|
rootEl: HTMLDivElement;
|
|
560
567
|
};
|
|
@@ -562,10 +569,15 @@ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
|
562
569
|
declare const __VLS_component: import('vue').DefineComponent<Props, {
|
|
563
570
|
hide: () => void;
|
|
564
571
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
565
|
-
popperBackground: "level-2-foreground" | "level-1-foreground";
|
|
566
572
|
popperClass: string;
|
|
573
|
+
virtualRef: Ref<globalThis.HTMLElement | null> | globalThis.HTMLElement | {
|
|
574
|
+
$el: globalThis.HTMLElement;
|
|
575
|
+
} | null;
|
|
576
|
+
virtualTriggering: boolean;
|
|
577
|
+
popperBackground: "level-2-foreground" | "level-1-foreground" | null;
|
|
567
578
|
isWithScrollbar: boolean;
|
|
568
579
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
580
|
+
popoverContainerRef: HTMLDivElement;
|
|
569
581
|
elPopoverRef: {
|
|
570
582
|
$: import('vue').ComponentInternalInstance;
|
|
571
583
|
$data: {};
|
|
@@ -1110,6 +1122,7 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {
|
|
|
1110
1122
|
default?(_: {}): any;
|
|
1111
1123
|
};
|
|
1112
1124
|
};
|
|
1125
|
+
referenceSlotRef: HTMLDivElement;
|
|
1113
1126
|
}, HTMLDivElement>;
|
|
1114
1127
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
1115
1128
|
export default _default;
|
|
@@ -9,7 +9,6 @@ interface Props {
|
|
|
9
9
|
clearable?: boolean;
|
|
10
10
|
multiple?: boolean;
|
|
11
11
|
fullWidth?: boolean;
|
|
12
|
-
popperBackground?: 'level-2-foreground' | 'level-1-foreground';
|
|
13
12
|
fitInputWidth?: boolean;
|
|
14
13
|
automaticDropdown?: boolean;
|
|
15
14
|
}
|
|
@@ -38,7 +37,6 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {
|
|
|
38
37
|
}>, {
|
|
39
38
|
iconStartCategory: IconCategory;
|
|
40
39
|
iconStartType: "fill" | "line" | "outline";
|
|
41
|
-
popperBackground: "level-2-foreground" | "level-1-foreground";
|
|
42
40
|
automaticDropdown: boolean;
|
|
43
41
|
fitInputWidth: boolean;
|
|
44
42
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
package/dist/types/index.d.ts
CHANGED
|
@@ -65,3 +65,4 @@ export type { IconCategory } from './types/icon-types';
|
|
|
65
65
|
export type { FormInstance, FormValidateCallback } from 'element-plus';
|
|
66
66
|
export type { RuleItem, ValidateError, ValidateFieldsError } from 'async-validator';
|
|
67
67
|
export { default as utilCountries } from './utils/utilCountries.ts';
|
|
68
|
+
export { usePopperBackground, type PopperBackgroundLevel } from './utils/utilPopper.ts';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
export type PopperBackgroundLevel = 'level-1-foreground' | 'level-2-foreground';
|
|
3
|
+
/**
|
|
4
|
+
* Vue composable for reactive popper background detection
|
|
5
|
+
* @param elementRef - Vue ref to the component element
|
|
6
|
+
* @returns Reactive computed property with the appropriate popper background
|
|
7
|
+
*/
|
|
8
|
+
declare const usePopperBackground: (elementRef: Ref<{
|
|
9
|
+
$el?: globalThis.Element;
|
|
10
|
+
} | globalThis.Element | null>) => import('vue').ComputedRef<PopperBackgroundLevel>;
|
|
11
|
+
export { usePopperBackground };
|