@bagelink/vue 1.15.13 → 1.15.15
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/Alert.vue.d.ts +8 -4
- package/dist/components/Badge.vue.d.ts +46 -6
- package/dist/components/Btn.vue.d.ts +11 -3
- package/dist/components/ListItem.vue.d.ts +0 -1
- package/dist/components/Pagination.vue.d.ts +1 -1
- package/dist/components/Spreadsheet/SpreadsheetTable.vue.d.ts +8 -8
- package/dist/components/Toast.vue.d.ts +7 -2
- package/dist/components/dataTable/DataTable.vue.d.ts +11 -2
- package/dist/components/form/index.d.ts +0 -4
- package/dist/components/form/inputs/RichText/utils/media.d.ts +1 -10
- package/dist/components/form/inputs/SelectBtn.vue.d.ts +4 -3
- package/dist/components/form/inputs/SelectInput.vue.d.ts +1 -1
- package/dist/components/index.d.ts +2 -9
- package/dist/components/layout/AppLayout.vue.d.ts +33 -4
- package/dist/components/layout/AppSidebar.vue.d.ts +6 -3
- package/dist/components/layout/Panel.vue.d.ts +1 -1
- package/dist/components/layout/Resizable.vue.d.ts +1 -1
- package/dist/components/layout/TabsNav.vue.d.ts +1 -1
- package/dist/components/layout/index.d.ts +2 -0
- package/dist/composables/index.d.ts +1 -0
- package/dist/composables/useTheme.d.ts +0 -15
- package/dist/dialog/Dialog.vue.d.ts +4 -2
- package/dist/dialog/DialogConfirm.vue.d.ts +2 -2
- package/dist/form-flow/MultiStepForm.vue.d.ts +16 -2
- package/dist/form-flow/form-flow.d.ts +11 -0
- package/dist/index.cjs +160 -133
- package/dist/index.d.ts +0 -3
- package/dist/index.mjs +41473 -47385
- package/dist/style.css +2 -2
- package/dist/types/BagelForm.d.ts +23 -61
- package/dist/types/BtnOptions.d.ts +5 -3
- package/dist/types/TableSchema.d.ts +3 -0
- package/dist/types/index.d.ts +1 -2
- package/dist/utils/calendar/dateUtils.d.ts +2 -3
- package/dist/utils/constants.d.ts +6 -0
- package/dist/utils/index.d.ts +24 -3
- package/dist/utils/options.d.ts +2 -2
- package/dist/utils/showdown.d.ts +6 -0
- package/package.json +1 -1
- package/vite.config.ts +32 -1
- package/dist/components/Carousel.vue.d.ts +0 -140
- package/dist/components/Carousel.vue.d.ts.map +0 -1
- package/dist/components/ImportData.vue.d.ts +0 -21
- package/dist/components/ImportData.vue.d.ts.map +0 -1
- package/dist/components/Modal.vue.d.ts +0 -48
- package/dist/components/Modal.vue.d.ts.map +0 -1
- package/dist/components/ModalConfirm.vue.d.ts +0 -17
- package/dist/components/ModalConfirm.vue.d.ts.map +0 -1
- package/dist/components/ModalForm.vue.d.ts +0 -29
- package/dist/components/ModalForm.vue.d.ts.map +0 -1
- package/dist/components/Pill.vue.d.ts +0 -47
- package/dist/components/Pill.vue.d.ts.map +0 -1
- package/dist/components/Slider.vue.d.ts +0 -96
- package/dist/components/Slider.vue.d.ts.map +0 -1
- package/dist/components/Title.vue.d.ts +0 -48
- package/dist/components/Title.vue.d.ts.map +0 -1
- package/dist/components/ToolBar.vue.d.ts +0 -3
- package/dist/components/ToolBar.vue.d.ts.map +0 -1
- package/dist/components/form/BagelForm.vue.d.ts +0 -43
- package/dist/components/form/BagelForm.vue.d.ts.map +0 -1
- package/dist/components/form/BglMultiStepForm.vue.d.ts +0 -68
- package/dist/components/form/BglMultiStepForm.vue.d.ts.map +0 -1
- package/dist/components/form/FieldArray.vue.d.ts +0 -48
- package/dist/components/form/FieldArray.vue.d.ts.map +0 -1
- package/dist/components/form/useBagelFormState.d.ts +0 -11
- package/dist/components/form/useBagelFormState.d.ts.map +0 -1
- package/dist/composables/useFormField.d.ts +0 -11
- package/dist/composables/useFormField.d.ts.map +0 -1
- package/dist/plugins/modalTypes.d.ts +0 -62
- package/dist/plugins/modalTypes.d.ts.map +0 -1
- package/dist/plugins/useModal.d.ts +0 -21
- package/dist/plugins/useModal.d.ts.map +0 -1
- package/dist/utils/BagelFormUtils.d.ts +0 -183
- package/dist/utils/BagelFormUtils.d.ts.map +0 -1
|
@@ -1,14 +1,24 @@
|
|
|
1
|
-
import { Paths, Get,
|
|
1
|
+
import { Paths, Get, OmitIndexSignature } from 'type-fest';
|
|
2
2
|
import { ToString } from 'type-fest/source/internal';
|
|
3
3
|
import { LiteralStringUnion } from 'type-fest/source/literal-union';
|
|
4
4
|
import { PathsOptions, DefaultPathsOptions } from 'type-fest/source/paths';
|
|
5
5
|
import { VNode } from 'vue';
|
|
6
6
|
import { BagelInputShellProps } from '../components/form/inputs/bagelInputShell';
|
|
7
|
-
type ArrayAttrs = any;
|
|
8
7
|
interface Option {
|
|
9
8
|
label: string;
|
|
10
9
|
value: any;
|
|
11
10
|
}
|
|
11
|
+
export type _Path<T, PO extends PathsOptions = DefaultPathsOptions> = ToString<Paths<OmitIndexSignature<T>, PO>>;
|
|
12
|
+
type IndexSignaturePaths<T> = {
|
|
13
|
+
[K in keyof T]: T[K] extends {
|
|
14
|
+
[key: string]: any;
|
|
15
|
+
} ? `${K & string}.${string}` : never;
|
|
16
|
+
}[keyof T];
|
|
17
|
+
export type Path<T, PO extends PathsOptions = DefaultPathsOptions> = FieldVal<T, _Path<T, PO>> extends Array<any> ? LiteralStringUnion<_Path<T, PO>> : _Path<T, PO> | IndexSignaturePaths<T> | `${keyof T & string}.more_info.${string}`;
|
|
18
|
+
/** The value type at path P in object T. Falls back to unknown if resolution fails. */
|
|
19
|
+
export type FieldVal<T, P extends Path<T>> = unknown extends Get<T, P> ? unknown : Get<T, P>;
|
|
20
|
+
/** Field value type that preserves type information when possible. */
|
|
21
|
+
export type SmartFieldVal<T, P extends Path<T>> = P extends string ? P extends keyof T ? T[P] : any : FieldVal<T, P>;
|
|
12
22
|
export type AttributeValue = string | number | boolean | undefined | {
|
|
13
23
|
[key: string]: any;
|
|
14
24
|
};
|
|
@@ -16,7 +26,7 @@ export type AttributeFn<T, P extends Path<T>> = (field: SmartFieldVal<T, P>, row
|
|
|
16
26
|
export interface Attributes<T, P extends Path<T>> {
|
|
17
27
|
[key: string]: AttributeValue | AttributeFn<T, P>;
|
|
18
28
|
}
|
|
19
|
-
export type
|
|
29
|
+
export type FieldOptions<T, P extends Path<T>> = string | ({
|
|
20
30
|
label?: string;
|
|
21
31
|
value: string | number;
|
|
22
32
|
} | string | number | boolean | {
|
|
@@ -24,37 +34,8 @@ export type BagelFieldOptions<T, P extends Path<T>> = string | ({
|
|
|
24
34
|
})[] | ((val?: SmartFieldVal<T, P>, rowData?: T) => Option[] | ((query: string) => Promise<Option[]>)) | ((query: string, val?: SmartFieldVal<T, P>, rowData?: T) => Promise<Option[]>);
|
|
25
35
|
export type VIfType<T, P extends Path<T>> = string | boolean | ((val?: SmartFieldVal<T, P>, rowData?: T) => boolean);
|
|
26
36
|
export type ValidationFn<T, P extends Path<T>> = (val?: SmartFieldVal<T, P>, rowData?: T) => string | undefined;
|
|
27
|
-
export
|
|
28
|
-
|
|
29
|
-
}
|
|
30
|
-
export type _Path<T, PO extends PathsOptions = DefaultPathsOptions> = ToString<Paths<OmitIndexSignature<T>, PO>>;
|
|
31
|
-
export type OpenEndedPath<T> = keyof T extends infer K ? K extends keyof T ? T[K] extends {
|
|
32
|
-
[key: string]: any;
|
|
33
|
-
} ? `${K & string}.${string}` : never : never : never;
|
|
34
|
-
type IndexSignaturePaths<T> = {
|
|
35
|
-
[K in keyof T]: T[K] extends {
|
|
36
|
-
[key: string]: any;
|
|
37
|
-
} ? T[K] extends {
|
|
38
|
-
[key: string]: infer V;
|
|
39
|
-
} ? `${K & string}.${string}` : never : never;
|
|
40
|
-
}[keyof T];
|
|
41
|
-
export type Path<T, PO extends PathsOptions = DefaultPathsOptions> = FieldVal<T, _Path<T, PO>> extends Array<any> ? LiteralStringUnion<_Path<T, PO>> : _Path<T, PO> | IndexSignaturePaths<T> | `${keyof T & string}.more_info.${string}`;
|
|
42
|
-
export type SmartFieldVal<T, P extends Path<T>> = P extends string ? P extends keyof T ? T[P] : any : FieldVal<T, P>;
|
|
43
|
-
export type SmartBagelFieldOptions<T, P extends Path<T>> = string | ({
|
|
44
|
-
label?: string;
|
|
45
|
-
value: string | number;
|
|
46
|
-
} | string | number | boolean | {
|
|
47
|
-
[key: string]: any;
|
|
48
|
-
})[] | ((val?: SmartFieldVal<T, P>, rowData?: T) => Option[] | ((query: string) => Promise<Option[]>)) | ((query: string, val?: SmartFieldVal<T, P>, rowData?: T) => Promise<Option[]>);
|
|
49
|
-
export type SmartVIfType<T, P extends Path<T>> = string | boolean | ((val?: SmartFieldVal<T, P>, rowData?: T) => boolean);
|
|
50
|
-
export type SmartValidationFn<T, P extends Path<T>> = (val?: SmartFieldVal<T, P>, rowData?: T) => string | undefined;
|
|
51
|
-
export type SmartAttributeFn<T, P extends Path<T>> = (field: SmartFieldVal<T, P>, row?: T) => AttributeValue;
|
|
52
|
-
export type SmartTransformFn<T, P extends Path<T>> = (val?: SmartFieldVal<T, P>, rowData?: T) => any;
|
|
53
|
-
export type SmartUpdateFn<T, P extends Path<T>> = (val?: SmartFieldVal<T, P>, rowData?: T) => unknown;
|
|
54
|
-
/** The value type at path P in object T. */
|
|
55
|
-
export type FieldVal<T, P extends Path<T>> = unknown extends Get<T, P> ? unknown : Get<T, P>;
|
|
56
|
-
/** If path P in T is an array, this gives the array's element type. */
|
|
57
|
-
export type ArrayFieldVal<T, P extends Path<T>> = IterableElement<Get<T, P>>;
|
|
37
|
+
export type TransformFn<T, P extends Path<T>> = (val?: SmartFieldVal<T, P>, rowData?: T) => any;
|
|
38
|
+
export type UpdateFn<T, P extends Path<T>> = (val?: SmartFieldVal<T, P>, rowData?: T) => unknown;
|
|
58
39
|
export type VNodeFn<T, P extends Path<T>> = (props: {
|
|
59
40
|
row?: T;
|
|
60
41
|
field: BaseBagelField<T, P>;
|
|
@@ -79,45 +60,26 @@ export interface BaseBagelField<T, P extends Path<T, PO>, PO extends PathsOption
|
|
|
79
60
|
'id'?: P;
|
|
80
61
|
'label'?: string;
|
|
81
62
|
'placeholder'?: string;
|
|
82
|
-
'class'?: AttributeValue |
|
|
63
|
+
'class'?: AttributeValue | AttributeFn<T, P>;
|
|
83
64
|
'attrs'?: Attributes<T, P>;
|
|
84
65
|
'required'?: boolean;
|
|
85
66
|
'disabled'?: boolean;
|
|
86
67
|
'helptext'?: string;
|
|
87
|
-
'options'?:
|
|
68
|
+
'options'?: FieldOptions<T, P>;
|
|
88
69
|
'children'?: SchemaChild<T, Path<T, PO>, PO>[];
|
|
89
70
|
'slots'?: {
|
|
90
71
|
[key: string]: SchemaChild<T, Path<T, PO>, PO>[];
|
|
91
72
|
};
|
|
92
73
|
'defaultValue'?: any;
|
|
93
|
-
'vIf'?:
|
|
94
|
-
'v-if'?:
|
|
95
|
-
'transform'?:
|
|
96
|
-
'onUpdate'?:
|
|
97
|
-
'validate'?:
|
|
74
|
+
'vIf'?: VIfType<T, P>;
|
|
75
|
+
'v-if'?: VIfType<T, P>;
|
|
76
|
+
'transform'?: TransformFn<T, P>;
|
|
77
|
+
'onUpdate'?: UpdateFn<T, P>;
|
|
78
|
+
'validate'?: ValidationFn<T, P>;
|
|
98
79
|
}
|
|
99
|
-
export type
|
|
100
|
-
[P in Path<T, PO>]: BaseBagelField<T, P, PO>;
|
|
101
|
-
};
|
|
102
|
-
export type MappedBaseBagelFieldP<T, P extends Path<T, PO>, PO extends PathsOptions = DefaultPathsOptions> = _MappedBaseBagelField<T, PO>[P];
|
|
103
|
-
export type FieldByP<T, P extends Path<T, PO>, PO extends PathsOptions = DefaultPathsOptions> = MappedBaseBagelFieldP<T, P, PO>;
|
|
104
|
-
export type Field<T, PO extends PathsOptions = DefaultPathsOptions> = MappedBaseBagelFieldP<T, Path<T, PO>, PO>;
|
|
105
|
-
export type BglFieldT<T, PO extends PathsOptions = DefaultPathsOptions> = Field<T, PO>;
|
|
80
|
+
export type Field<T, PO extends PathsOptions = DefaultPathsOptions> = ValidBaseBagelField<T, PO>;
|
|
106
81
|
export type SchemaField<T, PO extends PathsOptions = DefaultPathsOptions> = Field<T, PO> | ElementField<T, PO>;
|
|
107
82
|
export type BglFormSchemaT<T, PO extends PathsOptions = DefaultPathsOptions> = (SchemaField<T, PO> | BaseBagelField<T, Path<T, PO>, PO>)[];
|
|
108
|
-
export type ShallowBglFormSchemaT<T, PO extends PathsOptions = ShallowPathsOptions> = (SchemaField<T, PO> | BaseBagelField<T, Path<T, PO>, PO>)[];
|
|
109
|
-
export interface InputBagelField<T, P extends Path<T, PO>, PO extends PathsOptions = DefaultPathsOptions> extends BaseBagelField<T, P, PO> {
|
|
110
|
-
$el: 'text' | any;
|
|
111
|
-
type?: string;
|
|
112
|
-
}
|
|
113
|
-
export interface SelectBagelField<T, P extends Path<T, PO>, PO extends PathsOptions = DefaultPathsOptions> extends BaseBagelField<T, P, PO> {
|
|
114
|
-
$el: 'select' | any;
|
|
115
|
-
type?: string;
|
|
116
|
-
}
|
|
117
|
-
export interface ArrayBagelField<T, P extends Path<T, PO>, PO extends PathsOptions = DefaultPathsOptions> extends BaseBagelField<T, P, PO> {
|
|
118
|
-
$el: 'array' | any;
|
|
119
|
-
attrs?: ArrayAttrs;
|
|
120
|
-
}
|
|
121
83
|
export interface ValidateInputBaseT {
|
|
122
84
|
validate?: ValidationFn<{
|
|
123
85
|
[key: string]: unknown;
|
|
@@ -2,18 +2,20 @@ import { IconType, ThemeType } from '.';
|
|
|
2
2
|
export interface BtnOptions {
|
|
3
3
|
onClick?: () => void;
|
|
4
4
|
color?: ThemeType;
|
|
5
|
-
theme?: ThemeType;
|
|
6
5
|
disabled?: boolean;
|
|
7
6
|
icon?: IconType;
|
|
7
|
+
variant?: 'solid' | 'flat' | 'outline';
|
|
8
8
|
flat?: boolean;
|
|
9
|
+
outline?: boolean;
|
|
10
|
+
/** @deprecated Use `outline` */
|
|
11
|
+
border?: boolean;
|
|
9
12
|
thin?: boolean;
|
|
10
13
|
type?: 'button' | 'submit' | 'reset';
|
|
11
14
|
loading?: boolean;
|
|
12
15
|
role?: string;
|
|
13
16
|
value?: string;
|
|
14
|
-
border?: boolean;
|
|
15
17
|
}
|
|
16
18
|
export type UnitSize = 'px' | 'rem' | 'vh' | 'vw';
|
|
17
|
-
export type SizeType = '
|
|
19
|
+
export type SizeType = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
18
20
|
export type SizeUnit = `${number}` | number | `${number}${UnitSize}`;
|
|
19
21
|
//# sourceMappingURL=BtnOptions.d.ts.map
|
|
@@ -12,6 +12,9 @@ export interface TableSchemaProps<T extends {
|
|
|
12
12
|
columns?: MaybeRefOrGetter<string[]>;
|
|
13
13
|
useServerSort?: boolean;
|
|
14
14
|
selectable?: boolean;
|
|
15
|
+
sortable?: boolean | {
|
|
16
|
+
handle?: string;
|
|
17
|
+
};
|
|
15
18
|
onLastItemVisible?: () => void;
|
|
16
19
|
}
|
|
17
20
|
export interface SortingOptions {
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { IconType, MaterialIcons } from '../components/Icon/types';
|
|
2
2
|
export type { AvailabilitySlot, CalendarEvent, CalendarProps, CalendarView, CalendarViewState } from '../components/calendar/CalendarTypes';
|
|
3
3
|
export type { IconType, MaterialIcons };
|
|
4
|
-
export type { ModalComponentProps, ModalComponentProps as ModalFormComponentProps, ModalOptions, } from '../plugins/modalTypes';
|
|
5
4
|
export type { AddToCalendarEvent } from '../utils/calendar/types';
|
|
6
5
|
export * from './BagelForm';
|
|
7
6
|
export * from './BtnOptions';
|
|
@@ -16,7 +15,7 @@ export type ThemeType = 'blue' | 'green' | 'red' | 'yellow' | 'purple' | 'brown'
|
|
|
16
15
|
export type ExtendedThemeType = 'blue' | 'green' | 'red' | 'yellow' | 'purple' | 'brown' | 'orange' | 'turquoise' | 'gray' | 'black' | 'pink' | 'primary' | 'white' | 'blue-light' | 'green-light' | 'red-light' | 'yellow-light' | 'purple-light' | 'brown-light' | 'orange-light' | 'turquoise-light' | 'pink-light' | 'gray-light' | 'primary-light' | 'blue-tint' | 'red-tint' | 'primary-tint' | 'black-tint' | 'blue-dark' | 'light' | 'blue-10' | 'green-10' | 'red-10' | 'yellow-10' | 'purple-10' | 'brown-10' | 'orange-10' | 'turquoise-10' | 'gray-10' | 'black-10' | 'pink-10' | 'blue-20' | 'green-20' | 'red-20' | 'yellow-20' | 'purple-20' | 'brown-20' | 'orange-20' | 'turquoise-20' | 'gray-20' | 'black-20' | 'pink-20' | 'blue-30' | 'green-30' | 'red-30' | 'yellow-30' | 'purple-30' | 'brown-30' | 'orange-30' | 'turquoise-30' | 'gray-30' | 'black-30' | 'pink-30' | 'blue-40' | 'green-40' | 'red-40' | 'yellow-40' | 'purple-40' | 'brown-40' | 'orange-40' | 'turquoise-40' | 'gray-40' | 'black-40' | 'pink-40' | 'blue-50' | 'green-50' | 'red-50' | 'yellow-50' | 'purple-50' | 'brown-50' | 'orange-50' | 'turquoise-50' | 'gray-50' | 'black-50' | 'pink-50' | 'blue-60' | 'green-60' | 'red-60' | 'yellow-60' | 'purple-60' | 'brown-60' | 'orange-60' | 'turquoise-60' | 'gray-60' | 'black-60' | 'pink-60' | 'blue-70' | 'green-70' | 'red-70' | 'yellow-70' | 'purple-70' | 'brown-70' | 'orange-70' | 'turquoise-70' | 'gray-70' | 'black-70' | 'pink-70' | 'blue-80' | 'green-80' | 'red-80' | 'yellow-80' | 'purple-80' | 'brown-80' | 'orange-80' | 'turquoise-80' | 'gray-80' | 'black-80' | 'pink-80' | 'blue-90' | 'green-90' | 'red-90' | 'yellow-90' | 'purple-90' | 'brown-90' | 'orange-90' | 'turquoise-90' | 'gray-90' | 'black-90' | 'pink-90' | 'blue-100' | 'green-100' | 'red-100' | 'yellow-100' | 'purple-100' | 'brown-100' | 'orange-100' | 'turquoise-100' | 'gray-100' | 'black-100' | 'pink-100' | 'blue-110' | 'green-110' | 'red-110' | 'yellow-110' | 'purple-110' | 'brown-110' | 'orange-110' | 'turquoise-110' | 'gray-110' | 'black-110' | 'pink-110' | 'blue-120' | 'green-120' | 'red-120' | 'yellow-120' | 'purple-120' | 'brown-120' | 'orange-120' | 'turquoise-120' | 'gray-120' | 'black-120' | 'pink-120' | 'blue-130' | 'green-130' | 'red-130' | 'yellow-130' | 'purple-130' | 'brown-130' | 'orange-130' | 'turquoise-130' | 'gray-130' | 'black-130' | 'pink-130' | 'Error' | 'Paid' | 'Active';
|
|
17
16
|
export interface OptionObject {
|
|
18
17
|
label: string;
|
|
19
|
-
value: string | number;
|
|
18
|
+
value: string | number | boolean;
|
|
20
19
|
icon?: IconType;
|
|
21
20
|
[key: string]: any;
|
|
22
21
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
export {
|
|
3
|
-
export type { DateTimeAcceptedFormats, FormatDateOptions } from '@bagelink/utils';
|
|
1
|
+
export { fmtDate, formatDate, getDatePartsMap, handleTimezone, timeDelta, utc, local } from '../date';
|
|
2
|
+
export type { DateTimeAcceptedFormats, FormatDateOptions } from '../date';
|
|
4
3
|
type TimeAgoLang = 'en' | 'es' | 'fr' | 'he' | 'it' | 'ru';
|
|
5
4
|
export declare function timeAgo(date: string | Date, langOrConfig?: TimeAgoLang | {
|
|
6
5
|
lang?: TimeAgoLang;
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The single mobile breakpoint, matching the CSS media query
|
|
3
|
+
* `@media (max-width: 910px)` used by all `m_*` utilities.
|
|
4
|
+
* A viewport is "mobile" when `window.innerWidth <= MOBILE_BREAKPOINT`.
|
|
5
|
+
*/
|
|
6
|
+
export declare const MOBILE_BREAKPOINT = 910;
|
|
1
7
|
export declare const IMAGE_FORMATS: string[];
|
|
2
8
|
export declare const IMAGE_FORMATS_REGEXP: RegExp;
|
|
3
9
|
export declare const VIDEO_FORMATS: string[];
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -4,6 +4,13 @@ export declare function slugify(str: string): string;
|
|
|
4
4
|
export declare function keyToLabel(key?: string): string | undefined;
|
|
5
5
|
export declare function copyText(text: string, cb?: (msg: string) => void): Promise<void>;
|
|
6
6
|
export declare function initials(...strArr: string[]): string;
|
|
7
|
+
/**
|
|
8
|
+
* Strip script-capable content from an HTML string so it is safe for v-html.
|
|
9
|
+
* Removes <script>/<style>/<iframe>/<object>/<embed> elements, on* event
|
|
10
|
+
* handler attributes, and javascript: / data: URLs in href/src.
|
|
11
|
+
* Allowlist-free by design — formatting tags (b, i, a, span…) pass through.
|
|
12
|
+
*/
|
|
13
|
+
export declare function sanitizeHtml(html: string): string;
|
|
7
14
|
export declare function useEscape(event: KeyboardEvent, closeModel: () => void): void;
|
|
8
15
|
export declare function classify(fieldVal?: any, row?: any, ...classes: any[]): string;
|
|
9
16
|
export declare function bindAttrs<T, P extends Path<T>>(attrs?: Attributes<T, P>, fieldVal?: any, row?: T): {
|
|
@@ -19,21 +26,35 @@ export declare function sleep(ms?: number): Promise<unknown>;
|
|
|
19
26
|
export declare function appendScript(src: string, options?: {
|
|
20
27
|
id?: string;
|
|
21
28
|
}): Promise<void>;
|
|
29
|
+
/**
|
|
30
|
+
* Wait for a global (e.g. a CDN script's `window.X`) to become available.
|
|
31
|
+
* Resolves with the global value, or rejects after `timeout` ms (default 10s).
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* await appendScript('https://unpkg.com/leaflet/dist/leaflet.js')
|
|
35
|
+
* const L = await awaitGlobal('L')
|
|
36
|
+
*/
|
|
37
|
+
export declare function awaitGlobal<T = any>(name: string, { timeout, interval }?: {
|
|
38
|
+
timeout?: number;
|
|
39
|
+
interval?: number;
|
|
40
|
+
}): Promise<T>;
|
|
22
41
|
export declare function appendStyle(src: string): Promise<void>;
|
|
23
42
|
export declare function normalizeURL(url: string): string;
|
|
24
43
|
export declare function normalizeDimension(value: string | number | undefined, defaultMetric?: string): string | undefined;
|
|
25
|
-
export * as bagelFormUtils from './BagelFormUtils';
|
|
26
|
-
export { useForm } from './BagelFormUtils';
|
|
27
44
|
export type { NormalizedOption } from './options';
|
|
28
45
|
export { getOptionIcon, getOptionLabel, getOptionValue, normalizeOption } from './options';
|
|
29
46
|
export type { ComparisonOperator, FilterCondition, LogicalOperator, QueryConditions, QueryFilter } from './queryFilter';
|
|
30
47
|
export { anyOf, parseQuery, queryFilter, range, search } from './queryFilter';
|
|
31
48
|
export type { ShowdownConverter, ShowdownOptions } from './showdown';
|
|
32
|
-
export declare function pathKeyToURL(pathKey?: string | null): string |
|
|
49
|
+
export declare function pathKeyToURL(pathKey?: string | null): string | undefined;
|
|
33
50
|
export declare function getNestedValue(obj: any, path?: string, defaultValue?: any): any;
|
|
34
51
|
export declare function tryRun<T>(func: () => T, callback?: (error: Error) => void): T | undefined;
|
|
35
52
|
export declare function downloadFile(source: string | Blob, fileName?: string): void;
|
|
36
53
|
export { defaultOptions, showdown } from './showdown';
|
|
54
|
+
export type { CommonDateFormats, CommonDateTimeFormats, CommonTimeFormats, DateDiffUnit, DateTimeAcceptedFormats, FormatDateOptions, NamedFormats, TimeDeltaOptions, TimeDeltaUnit, } from './date';
|
|
55
|
+
export { d, DateChain, dateDiff, DAY, fmtDate, formatDate, getDatePartsMap, handleTimezone, HOUR, local, MINUTE, MS, SECOND, timeDelta, utc, WEEK, } from './date';
|
|
56
|
+
export * from './fetch';
|
|
57
|
+
export * from './string';
|
|
37
58
|
export { formatString } from './strings';
|
|
38
59
|
export { useDebounceFn } from '@vueuse/core';
|
|
39
60
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/utils/options.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { IconType, Option, OptionObject } from '../types';
|
|
|
2
2
|
export type { OptionObject };
|
|
3
3
|
export type NormalizedOption<T extends Record<string, any> = Record<string, never>> = T & {
|
|
4
4
|
label: string;
|
|
5
|
-
value: string | number;
|
|
5
|
+
value: string | number | boolean;
|
|
6
6
|
icon?: IconType;
|
|
7
7
|
};
|
|
8
8
|
/**
|
|
@@ -10,7 +10,7 @@ export type NormalizedOption<T extends Record<string, any> = Record<string, neve
|
|
|
10
10
|
*/
|
|
11
11
|
export declare function getOptionLabel(option: Option): string;
|
|
12
12
|
/** Extract the primitive value from an option. */
|
|
13
|
-
export declare function getOptionValue(option?: Option): string | number | undefined;
|
|
13
|
+
export declare function getOptionValue(option?: Option): string | number | boolean | undefined;
|
|
14
14
|
/** Extract the icon from an option, if present. */
|
|
15
15
|
export declare function getOptionIcon(option?: Option): IconType | undefined;
|
|
16
16
|
/** Normalize any option shape to a {label, value, icon?, ...} object, preserving any extra fields. */
|
package/dist/utils/showdown.d.ts
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ⚠️ Security note: `makeHtml()` output is NOT sanitized — raw HTML in the
|
|
3
|
+
* markdown source passes through. If the markdown can contain user-generated
|
|
4
|
+
* content, run the result through `sanitizeHtml()` (from utils) before
|
|
5
|
+
* binding it with v-html.
|
|
6
|
+
*/
|
|
1
7
|
/**
|
|
2
8
|
* Showdown configuration options
|
|
3
9
|
*/
|
package/package.json
CHANGED
package/vite.config.ts
CHANGED
|
@@ -1,12 +1,42 @@
|
|
|
1
1
|
import { resolve } from 'node:path'
|
|
2
2
|
// import { fileURLToPath, URL } from 'node:url'
|
|
3
3
|
import vue from '@vitejs/plugin-vue'
|
|
4
|
+
import type { Plugin } from 'vite'
|
|
4
5
|
import { defineConfig } from 'vite'
|
|
5
6
|
import dts from 'vite-plugin-dts'
|
|
6
7
|
import tsconfigPaths from 'vite-tsconfig-paths'
|
|
7
8
|
|
|
8
9
|
const indexDir = resolve(import.meta.dirname, 'src')
|
|
9
10
|
|
|
11
|
+
/**
|
|
12
|
+
* Wrap the extracted style.css in `@layer bagelink { … }` so that ALL library
|
|
13
|
+
* CSS (incl. component scoped styles) loses to unlayered consumer CSS.
|
|
14
|
+
* Apps can override any bagelink style from a plain <style scoped> block —
|
|
15
|
+
* no specificity hacks needed. Internal bgl-* layers nest inside and keep
|
|
16
|
+
* their relative order. Leading @charset/@import statements must stay at the
|
|
17
|
+
* top of the file per spec, so they are kept outside the wrapper.
|
|
18
|
+
*/
|
|
19
|
+
function wrapCssInLayer(layerName = 'bagelink'): Plugin {
|
|
20
|
+
return {
|
|
21
|
+
name: 'bagelink:wrap-css-layer',
|
|
22
|
+
apply: 'build',
|
|
23
|
+
enforce: 'post',
|
|
24
|
+
generateBundle(_options, bundle) {
|
|
25
|
+
for (const asset of Object.values(bundle)) {
|
|
26
|
+
if (asset.type !== 'asset' || !asset.fileName.endsWith('.css')) { continue }
|
|
27
|
+
const css = String(asset.source)
|
|
28
|
+
// split leading @charset/@import statements from the rest
|
|
29
|
+
// (@import URLs may contain ';' inside quotes, so match quoted strings/url() explicitly)
|
|
30
|
+
const headMatch = css.match(/^(?:\s*@charset\s+"[^"]*"\s*;|\s*@import\s*(?:url\([^)]*\)|"[^"]*"|'[^']*')[^;{]*;)*/)
|
|
31
|
+
const head = headMatch?.[0] ?? ''
|
|
32
|
+
const body = css.slice(head.length)
|
|
33
|
+
asset.source = `${head}@layer ${layerName}{${body}}`
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
// @ts-expect-error - rolldown-vite in root workspace causes plugin type mismatch; build is unaffected
|
|
10
40
|
export default defineConfig(() => ({
|
|
11
41
|
plugins: [
|
|
12
42
|
tsconfigPaths({ root: indexDir, }),
|
|
@@ -15,6 +45,7 @@ export default defineConfig(() => ({
|
|
|
15
45
|
entryRoot: indexDir,
|
|
16
46
|
copyDtsFiles: true,
|
|
17
47
|
}),
|
|
48
|
+
wrapCssInLayer(),
|
|
18
49
|
],
|
|
19
50
|
resolve: {
|
|
20
51
|
alias: {
|
|
@@ -47,6 +78,6 @@ export default defineConfig(() => ({
|
|
|
47
78
|
},
|
|
48
79
|
},
|
|
49
80
|
},
|
|
50
|
-
emptyOutDir:
|
|
81
|
+
emptyOutDir: true, // types are emitted by vite-plugin-dts in this same build; stale files must not survive
|
|
51
82
|
},
|
|
52
83
|
}))
|
|
@@ -1,140 +0,0 @@
|
|
|
1
|
-
declare function jumpToSlide(index: number): void;
|
|
2
|
-
declare function goToSlide(index: number, isTouchNav?: boolean): void;
|
|
3
|
-
declare function next(): void;
|
|
4
|
-
declare function prev(): void;
|
|
5
|
-
declare function countSlides(): void;
|
|
6
|
-
declare function clearAutoplay(): void;
|
|
7
|
-
declare function __VLS_template(): {
|
|
8
|
-
attrs: Partial<{}>;
|
|
9
|
-
slots: {
|
|
10
|
-
default?(_: {}): any;
|
|
11
|
-
prev?(_: {
|
|
12
|
-
index: number;
|
|
13
|
-
prev: typeof prev;
|
|
14
|
-
}): any;
|
|
15
|
-
next?(_: {
|
|
16
|
-
index: number;
|
|
17
|
-
next: typeof next;
|
|
18
|
-
}): any;
|
|
19
|
-
};
|
|
20
|
-
refs: {
|
|
21
|
-
bglSlider: HTMLDivElement;
|
|
22
|
-
};
|
|
23
|
-
rootEl: HTMLDivElement;
|
|
24
|
-
};
|
|
25
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
26
|
-
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
27
|
-
autoHeight: {
|
|
28
|
-
type: BooleanConstructor;
|
|
29
|
-
default: boolean;
|
|
30
|
-
};
|
|
31
|
-
allowScroll: {
|
|
32
|
-
type: BooleanConstructor;
|
|
33
|
-
default: boolean;
|
|
34
|
-
};
|
|
35
|
-
freeDrag: {
|
|
36
|
-
type: BooleanConstructor;
|
|
37
|
-
default: boolean;
|
|
38
|
-
};
|
|
39
|
-
items: {
|
|
40
|
-
type: NumberConstructor;
|
|
41
|
-
default: number;
|
|
42
|
-
};
|
|
43
|
-
index: {
|
|
44
|
-
type: NumberConstructor;
|
|
45
|
-
default: number;
|
|
46
|
-
};
|
|
47
|
-
rtl: {
|
|
48
|
-
type: BooleanConstructor;
|
|
49
|
-
default: boolean;
|
|
50
|
-
};
|
|
51
|
-
autoplay: {
|
|
52
|
-
type: BooleanConstructor;
|
|
53
|
-
default: boolean;
|
|
54
|
-
};
|
|
55
|
-
autoPlaySpeed: {
|
|
56
|
-
type: NumberConstructor;
|
|
57
|
-
default: number;
|
|
58
|
-
};
|
|
59
|
-
dots: {
|
|
60
|
-
type: BooleanConstructor;
|
|
61
|
-
default: boolean;
|
|
62
|
-
};
|
|
63
|
-
loop: {
|
|
64
|
-
type: BooleanConstructor;
|
|
65
|
-
default: boolean;
|
|
66
|
-
};
|
|
67
|
-
}>, {
|
|
68
|
-
goToSlide: typeof goToSlide;
|
|
69
|
-
jumpToSlide: typeof jumpToSlide;
|
|
70
|
-
next: typeof next;
|
|
71
|
-
prev: typeof prev;
|
|
72
|
-
countSlides: typeof countSlides;
|
|
73
|
-
clearAutoplay: typeof clearAutoplay;
|
|
74
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
75
|
-
"update:index": (...args: any[]) => void;
|
|
76
|
-
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
77
|
-
autoHeight: {
|
|
78
|
-
type: BooleanConstructor;
|
|
79
|
-
default: boolean;
|
|
80
|
-
};
|
|
81
|
-
allowScroll: {
|
|
82
|
-
type: BooleanConstructor;
|
|
83
|
-
default: boolean;
|
|
84
|
-
};
|
|
85
|
-
freeDrag: {
|
|
86
|
-
type: BooleanConstructor;
|
|
87
|
-
default: boolean;
|
|
88
|
-
};
|
|
89
|
-
items: {
|
|
90
|
-
type: NumberConstructor;
|
|
91
|
-
default: number;
|
|
92
|
-
};
|
|
93
|
-
index: {
|
|
94
|
-
type: NumberConstructor;
|
|
95
|
-
default: number;
|
|
96
|
-
};
|
|
97
|
-
rtl: {
|
|
98
|
-
type: BooleanConstructor;
|
|
99
|
-
default: boolean;
|
|
100
|
-
};
|
|
101
|
-
autoplay: {
|
|
102
|
-
type: BooleanConstructor;
|
|
103
|
-
default: boolean;
|
|
104
|
-
};
|
|
105
|
-
autoPlaySpeed: {
|
|
106
|
-
type: NumberConstructor;
|
|
107
|
-
default: number;
|
|
108
|
-
};
|
|
109
|
-
dots: {
|
|
110
|
-
type: BooleanConstructor;
|
|
111
|
-
default: boolean;
|
|
112
|
-
};
|
|
113
|
-
loop: {
|
|
114
|
-
type: BooleanConstructor;
|
|
115
|
-
default: boolean;
|
|
116
|
-
};
|
|
117
|
-
}>> & Readonly<{
|
|
118
|
-
"onUpdate:index"?: ((...args: any[]) => any) | undefined;
|
|
119
|
-
}>, {
|
|
120
|
-
autoplay: boolean;
|
|
121
|
-
loop: boolean;
|
|
122
|
-
index: number;
|
|
123
|
-
rtl: boolean;
|
|
124
|
-
autoHeight: boolean;
|
|
125
|
-
allowScroll: boolean;
|
|
126
|
-
freeDrag: boolean;
|
|
127
|
-
items: number;
|
|
128
|
-
autoPlaySpeed: number;
|
|
129
|
-
dots: boolean;
|
|
130
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
131
|
-
bglSlider: HTMLDivElement;
|
|
132
|
-
}, HTMLDivElement>;
|
|
133
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
134
|
-
export default _default;
|
|
135
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
136
|
-
new (): {
|
|
137
|
-
$slots: S;
|
|
138
|
-
};
|
|
139
|
-
};
|
|
140
|
-
//# sourceMappingURL=Carousel.vue.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Carousel.vue.d.ts","sourceRoot":"","sources":["../../src/components/Carousel.vue"],"names":[],"mappings":"AAk1BA,iBAAS,WAAW,CAAC,KAAK,EAAE,MAAM,QAajC;AAGD,iBAAS,SAAS,CAAC,KAAK,EAAE,MAAM,EAAE,UAAU,UAAQ,QAuBnD;AAED,iBAAS,IAAI,SAQZ;AAED,iBAAS,IAAI,SAQZ;AAsBD,iBAAS,WAAW,SAGnB;AA4BD,iBAAS,aAAa,SAErB;AA6XD,iBAAS,cAAc;WA4FT,OAAO,IAA6B;;yBAbrB,GAAG;;;;YACN,GAAG;;;;YACH,GAAG;;;;;;EAgB5B;AAoCD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAqBnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAEpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { BglFormSchemaT } from '..';
|
|
2
|
-
import { MaybeRefOrGetter } from 'vue';
|
|
3
|
-
declare const _default: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
4
|
-
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
5
|
-
readonly onProcessedData?: ((data: T[]) => any) | undefined;
|
|
6
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onProcessedData"> & {
|
|
7
|
-
schema?: MaybeRefOrGetter<BglFormSchemaT<T>>;
|
|
8
|
-
title?: string;
|
|
9
|
-
} & Partial<{}>> & import('vue').PublicProps;
|
|
10
|
-
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
11
|
-
attrs: any;
|
|
12
|
-
slots: {};
|
|
13
|
-
emit: (e: "processedData", data: T[]) => void;
|
|
14
|
-
}>) => import('vue').VNode & {
|
|
15
|
-
__ctx?: Awaited<typeof __VLS_setup>;
|
|
16
|
-
};
|
|
17
|
-
export default _default;
|
|
18
|
-
type __VLS_PrettifyLocal<T> = {
|
|
19
|
-
[K in keyof T]: T[K];
|
|
20
|
-
} & {};
|
|
21
|
-
//# sourceMappingURL=ImportData.vue.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ImportData.vue.d.ts","sourceRoot":"","sources":["../../src/components/ImportData.vue"],"names":[],"mappings":"AAutDA,OAAO,KAAK,EAAE,cAAc,EAAU,MAAM,eAAe,CAAA;AAC3D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,KAAK,CAAA;yBAoB1B,CAAC,EACjB,aAAa,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,EAC9D,YAAY,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,EAC3G,eAAe,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,EACjE;WAuiFO,mBAAmB,CAAC;;;iBAriFlB,gBAAgB,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC;gBACpC,MAAM;mBAoiF+E,CAAC,4BAA2B;oBACzG,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;cAjiFN,eAAe,QAAQ,CAAC,EAAE,KAAG,IAAI;EAqiFlC,KACQ,OAAO,KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,CAAC,OAAO,WAAW,CAAC,CAAA;CAAE;AAljFzE,wBAkjF4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { BtnOptions } from '..';
|
|
2
|
-
interface ModalProps {
|
|
3
|
-
thin?: boolean;
|
|
4
|
-
mobileThin?: boolean;
|
|
5
|
-
side?: boolean;
|
|
6
|
-
title?: string;
|
|
7
|
-
width?: string;
|
|
8
|
-
dismissable?: boolean;
|
|
9
|
-
actions?: BtnOptions[];
|
|
10
|
-
visible?: boolean;
|
|
11
|
-
zIndex?: number;
|
|
12
|
-
closePlacement?: 'header' | 'header-end' | 'overlay' | 'overlay-end' | 'none' | 'footer';
|
|
13
|
-
}
|
|
14
|
-
declare function closeModal(): void;
|
|
15
|
-
declare function __VLS_template(): {
|
|
16
|
-
attrs: Partial<{}>;
|
|
17
|
-
slots: {
|
|
18
|
-
toolbar?(_: {}): any;
|
|
19
|
-
toolbar?(_: {}): any;
|
|
20
|
-
default?(_: {}): any;
|
|
21
|
-
footer?(_: {}): any;
|
|
22
|
-
};
|
|
23
|
-
refs: {};
|
|
24
|
-
rootEl: HTMLDivElement;
|
|
25
|
-
};
|
|
26
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
27
|
-
declare const __VLS_component: import('vue').DefineComponent<ModalProps, {
|
|
28
|
-
closeModal: typeof closeModal;
|
|
29
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
30
|
-
"update:visible": (...args: any[]) => void;
|
|
31
|
-
}, string, import('vue').PublicProps, Readonly<ModalProps> & Readonly<{
|
|
32
|
-
"onUpdate:visible"?: ((...args: any[]) => any) | undefined;
|
|
33
|
-
}>, {
|
|
34
|
-
thin: boolean;
|
|
35
|
-
dismissable: boolean;
|
|
36
|
-
visible: boolean;
|
|
37
|
-
zIndex: number;
|
|
38
|
-
side: boolean;
|
|
39
|
-
closePlacement: "header" | "header-end" | "overlay" | "overlay-end" | "none" | "footer";
|
|
40
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
41
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
42
|
-
export default _default;
|
|
43
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
44
|
-
new (): {
|
|
45
|
-
$slots: S;
|
|
46
|
-
};
|
|
47
|
-
};
|
|
48
|
-
//# sourceMappingURL=Modal.vue.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Modal.vue.d.ts","sourceRoot":"","sources":["../../src/components/Modal.vue"],"names":[],"mappings":"AACA;AA0LA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAa/C,OAAO,qBAAqB,CAAA;AAE5B,UAAU,UAAU;IACnB,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,OAAO,CAAC,EAAE,UAAU,EAAE,CAAA;IACtB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,cAAc,CAAC,EAAE,QAAQ,GAAG,YAAY,GAAG,SAAS,GAAG,aAAa,GAAG,MAAM,GAAG,QAAQ,CAAA;CACxF;AA4CD,iBAAS,UAAU,SAGlB;AAqBD,iBAAS,cAAc;WAsRT,OAAO,IAA6B;;yBAbpB,GAAG;yBACH,GAAG;yBACH,GAAG;wBACJ,GAAG;;;;EAe/B;AAqBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;UA/Xb,OAAO;iBAKA,OAAO;aAEX,OAAO;YACR,MAAM;UANR,OAAO;oBAOG,QAAQ,GAAG,YAAY,GAAG,SAAS,GAAG,aAAa,GAAG,MAAM,GAAG,QAAQ;wFAgYvF,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { ThemeType } from '..';
|
|
2
|
-
type __VLS_Props = {
|
|
3
|
-
title?: string;
|
|
4
|
-
message?: string;
|
|
5
|
-
confirmText?: string;
|
|
6
|
-
confirmBtnColor?: ThemeType;
|
|
7
|
-
cancelBtnColor?: ThemeType;
|
|
8
|
-
cancelText?: string;
|
|
9
|
-
resolve: (value: boolean) => void;
|
|
10
|
-
};
|
|
11
|
-
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
12
|
-
"update:visible": (...args: any[]) => void;
|
|
13
|
-
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
14
|
-
"onUpdate:visible"?: ((...args: any[]) => any) | undefined;
|
|
15
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
16
|
-
export default _default;
|
|
17
|
-
//# sourceMappingURL=ModalConfirm.vue.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ModalConfirm.vue.d.ts","sourceRoot":"","sources":["../../src/components/ModalConfirm.vue"],"names":[],"mappings":"AA4CA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAI9C,KAAK,WAAW,GAAG;IAClB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,eAAe,CAAC,EAAE,SAAS,CAAA;IAC3B,cAAc,CAAC,EAAE,SAAS,CAAA;IAC1B,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,OAAO,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAA;CACjC,CAAC;;;;;;AAoIF,wBAQG"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { Path } from '..';
|
|
2
|
-
import { ModalFormOptions } from '../plugins/modalTypes';
|
|
3
|
-
declare const _default: <T extends {
|
|
4
|
-
[key: string]: any;
|
|
5
|
-
}, P extends Path<T>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
6
|
-
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
7
|
-
readonly "onUpdate:modelValue"?: ((...args: unknown[]) => any) | undefined;
|
|
8
|
-
readonly "onUpdate:visible"?: ((value: boolean) => any) | undefined;
|
|
9
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:modelValue" | "onUpdate:visible"> & ({
|
|
10
|
-
modelValue?: T;
|
|
11
|
-
} & ModalFormOptions<T>) & Partial<{}>> & import('vue').PublicProps;
|
|
12
|
-
expose(exposed: import('vue').ShallowUnwrapRef<{
|
|
13
|
-
setFormValues: (values: {
|
|
14
|
-
[key: string]: any;
|
|
15
|
-
}) => void;
|
|
16
|
-
}>): void;
|
|
17
|
-
attrs: any;
|
|
18
|
-
slots: {
|
|
19
|
-
toolbar?(_: {}): any;
|
|
20
|
-
};
|
|
21
|
-
emit: (((evt: "update:modelValue", value: T) => void) & ((evt: "update:visible", value: boolean) => void)) & ((evt: "update:modelValue", value: T) => void);
|
|
22
|
-
}>) => import('vue').VNode & {
|
|
23
|
-
__ctx?: Awaited<typeof __VLS_setup>;
|
|
24
|
-
};
|
|
25
|
-
export default _default;
|
|
26
|
-
type __VLS_PrettifyLocal<T> = {
|
|
27
|
-
[K in keyof T]: T[K];
|
|
28
|
-
} & {};
|
|
29
|
-
//# sourceMappingURL=ModalForm.vue.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ModalForm.vue.d.ts","sourceRoot":"","sources":["../../src/components/ModalForm.vue"],"names":[],"mappings":"AAwGA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAA;AAEzC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;yBAI5C,CAAC,SAAS;IAAC,CAAC,GAAG,EAAC,MAAM,GAAE,GAAG,CAAA;CAAC,EAAE,CAAC,SAAS,IAAI,CAAC,CAAC,CAAC,EAC/D,aAAa,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,EAC9D,YAAY,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,EAC3G,eAAe,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,EACjE;WAqTO,mBAAmB,CAAC;;;;qBA/Ob,CAAC;0CA+O8E,CAAC,4BAA2B;oBACzG,OAAO,KAAK,EAAE,gBAAgB;gCArQhB;YAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;SAAE;MAqQgB,GAAG,IAAI;WACpE,GAAG;;yBAzCkB,GAAG;;UA2CzB,qJAAoC;EAEvC,KACQ,OAAO,KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,CAAC,OAAO,WAAW,CAAC,CAAA;CAAE;AAhUzE,wBAgU4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|