@mobileaction/action-kit 1.38.2-beta.2 → 1.39.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/action-kit.mjs +7561 -8042
- package/dist/close-CFWde4ah.js +17 -0
- package/dist/src/components/drawer/index.vue.d.ts +135 -16
- package/dist/src/components/drawer/stories/drawer.stories.d.ts +19 -0
- package/dist/src/index.d.ts +0 -1
- package/dist/style.css +1 -1
- package/package.json +1 -2
- package/.vscode/extensions.json +0 -3
- package/CHANGELOG.md +0 -837
- package/dist/close-CI7bEVx4.js +0 -29
- package/dist/src/components/date-picker-2/components/calendarSelect.vue.d.ts +0 -13
- package/dist/src/components/date-picker-2/composables/useDatePickerFormat.d.ts +0 -8
- package/dist/src/components/date-picker-2/composables/utils.d.ts +0 -16
- package/dist/src/components/date-picker-2/index.vue.d.ts +0 -137
- package/dist/src/components/date-picker-2/stories/constants.d.ts +0 -6
- package/dist/src/components/date-picker-2/stories/default.stories.d.ts +0 -26
- package/dist/src/components/date-picker-2/stories/range.stories.d.ts +0 -27
- package/dist/src/components/date-picker-2/types.d.ts +0 -179
- package/dist/src/components/drawer/composables/index.d.ts +0 -2
- package/dist/src/components/drawer/stories/constants.d.ts +0 -91
- package/dist/src/components/drawer/stories/default.stories.d.ts +0 -8
- package/dist/src/components/drawer/types.d.ts +0 -1
- /package/dist/src/components/{date-picker-2/date-picker.test.d.ts → drawer/drawer.test.d.ts} +0 -0
package/dist/close-CI7bEVx4.js
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { openBlock as r, createElementBlock as t, createElementVNode as o } from "vue";
|
|
2
|
-
const n = {
|
|
3
|
-
viewBox: "0 0 16 16",
|
|
4
|
-
fill: "none",
|
|
5
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
6
|
-
};
|
|
7
|
-
function l(s, e) {
|
|
8
|
-
return r(), t("svg", n, e[0] || (e[0] = [
|
|
9
|
-
o("path", {
|
|
10
|
-
d: "M3.33398 3.3335L12.6667 12.6662",
|
|
11
|
-
stroke: "currentColor",
|
|
12
|
-
"stroke-width": "1.63636",
|
|
13
|
-
"stroke-linecap": "round",
|
|
14
|
-
"stroke-linejoin": "round"
|
|
15
|
-
}, null, -1),
|
|
16
|
-
o("path", {
|
|
17
|
-
d: "M3.33282 12.6662L12.6655 3.3335",
|
|
18
|
-
stroke: "currentColor",
|
|
19
|
-
"stroke-width": "1.63636",
|
|
20
|
-
"stroke-linecap": "round",
|
|
21
|
-
"stroke-linejoin": "round"
|
|
22
|
-
}, null, -1)
|
|
23
|
-
]));
|
|
24
|
-
}
|
|
25
|
-
const i = { render: l };
|
|
26
|
-
export {
|
|
27
|
-
i as default,
|
|
28
|
-
l as render
|
|
29
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
declare const DateTypes: string[];
|
|
2
|
-
interface MonthSelectProps {
|
|
3
|
-
updateMonthYear: (month: number, year: number, fromNav?: boolean) => void;
|
|
4
|
-
month: number;
|
|
5
|
-
year: number;
|
|
6
|
-
options: Array<{
|
|
7
|
-
text: string;
|
|
8
|
-
value: number;
|
|
9
|
-
}>;
|
|
10
|
-
dateType: (typeof DateTypes)[number];
|
|
11
|
-
}
|
|
12
|
-
declare const _default: import("vue").DefineComponent<MonthSelectProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<MonthSelectProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
13
|
-
export default _default;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { WritableComputedRef } from 'vue';
|
|
2
|
-
import { MaDatePickerProps } from '../types';
|
|
3
|
-
import { ModelValue } from '@vuepic/vue-datepicker';
|
|
4
|
-
export declare function useDatePickerFormat(props: MaDatePickerProps, emit: any): {
|
|
5
|
-
modelValue: WritableComputedRef<ModelValue, ModelValue>;
|
|
6
|
-
visibleFormat: import("vue").ComputedRef<string | ((date: Date) => string) | ((dates: Date[]) => string)>;
|
|
7
|
-
formatQuarter: (quarterDate: Date) => string;
|
|
8
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Converts a date format string from Day.js format to date-fns format.
|
|
3
|
-
*
|
|
4
|
-
* @param dayjsFormat - The date format string in Day.js format.
|
|
5
|
-
* @returns The date format string converted to date-fns format.
|
|
6
|
-
*
|
|
7
|
-
* @throws Will throw an error if a token in the Day.js format string is not found in the format map.
|
|
8
|
-
*
|
|
9
|
-
* @example
|
|
10
|
-
* ```typescript
|
|
11
|
-
* const dayjsFormat = 'YYYY-MM-DD';
|
|
12
|
-
* const dateFnsFormat = convertDayjsToDateFnsFormat(dayjsFormat);
|
|
13
|
-
* console.log(dateFnsFormat); // Output: 'yyyy-MM-dd'
|
|
14
|
-
* ```
|
|
15
|
-
*/
|
|
16
|
-
export declare const convertDayjsToDateFnsFormat: (dayjsFormat: string) => string;
|
|
@@ -1,137 +0,0 @@
|
|
|
1
|
-
import { MaDatePickerProps } from './types';
|
|
2
|
-
declare function __VLS_template(): {
|
|
3
|
-
attrs: Partial<{}>;
|
|
4
|
-
slots: {
|
|
5
|
-
"ma-calendar-preset"?(_: {
|
|
6
|
-
label: any;
|
|
7
|
-
value: any;
|
|
8
|
-
presetDate: any;
|
|
9
|
-
}): any;
|
|
10
|
-
description?(_: {}): any;
|
|
11
|
-
"action-buttons"?(_: {
|
|
12
|
-
value: Date | Date[];
|
|
13
|
-
}): any;
|
|
14
|
-
"menu-header"?(_: {}): any;
|
|
15
|
-
};
|
|
16
|
-
refs: {
|
|
17
|
-
datepickerInput: import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<string[]> | import("vue").ExtractPropTypes<import("vue").ComponentObjectPropsOptions<import("@vuepic/vue-datepicker").VueDatePickerProps>>> & {
|
|
18
|
-
onFocus?: (...args: any[]) => any;
|
|
19
|
-
onBlur?: (...args: any[]) => any;
|
|
20
|
-
onOpen?: (...args: any[]) => any;
|
|
21
|
-
onClosed?: (...args: any[]) => any;
|
|
22
|
-
onCleared?: (...args: any[]) => any;
|
|
23
|
-
"onUpdate:model-value"?: (...args: any[]) => any;
|
|
24
|
-
"onUpdate:model-timezone-value"?: (...args: any[]) => any;
|
|
25
|
-
"onText-submit"?: (...args: any[]) => any;
|
|
26
|
-
"onInternal-model-change"?: (...args: any[]) => any;
|
|
27
|
-
"onRecalculate-position"?: (...args: any[]) => any;
|
|
28
|
-
"onFlow-step"?: (...args: any[]) => any;
|
|
29
|
-
"onUpdate-month-year"?: (...args: any[]) => any;
|
|
30
|
-
"onInvalid-select"?: (...args: any[]) => any;
|
|
31
|
-
"onTooltip-open"?: (...args: any[]) => any;
|
|
32
|
-
"onTooltip-close"?: (...args: any[]) => any;
|
|
33
|
-
"onInvalid-fixed-range"?: (...args: any[]) => any;
|
|
34
|
-
"onTime-picker-open"?: (...args: any[]) => any;
|
|
35
|
-
"onTime-picker-close"?: (...args: any[]) => any;
|
|
36
|
-
"onAm-pm-change"?: (...args: any[]) => any;
|
|
37
|
-
"onRange-start"?: (...args: any[]) => any;
|
|
38
|
-
"onRange-end"?: (...args: any[]) => any;
|
|
39
|
-
"onDate-update"?: (...args: any[]) => any;
|
|
40
|
-
"onInvalid-date"?: (...args: any[]) => any;
|
|
41
|
-
"onOverlay-toggle"?: (...args: any[]) => any;
|
|
42
|
-
"onText-input"?: (...args: any[]) => any;
|
|
43
|
-
}, {}, {}, import("vue").ComputedOptions, import("@vuepic/vue-datepicker").PublicMethods, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("@vuepic/vue-datepicker").EmitEvents[], import("@vuepic/vue-datepicker").VueDatePickerProps, {
|
|
44
|
-
[x: number]: string;
|
|
45
|
-
} | {}, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
46
|
-
P: {};
|
|
47
|
-
B: {};
|
|
48
|
-
D: {};
|
|
49
|
-
C: {};
|
|
50
|
-
M: {};
|
|
51
|
-
Defaults: {};
|
|
52
|
-
}, {} & (Readonly<import("vue").ExtractPropTypes<string[]> | import("vue").ExtractPropTypes<import("vue").ComponentObjectPropsOptions<import("@vuepic/vue-datepicker").VueDatePickerProps>>> & {
|
|
53
|
-
onFocus?: (...args: any[]) => any;
|
|
54
|
-
onBlur?: (...args: any[]) => any;
|
|
55
|
-
onOpen?: (...args: any[]) => any;
|
|
56
|
-
onClosed?: (...args: any[]) => any;
|
|
57
|
-
onCleared?: (...args: any[]) => any;
|
|
58
|
-
"onUpdate:model-value"?: (...args: any[]) => any;
|
|
59
|
-
"onUpdate:model-timezone-value"?: (...args: any[]) => any;
|
|
60
|
-
"onText-submit"?: (...args: any[]) => any;
|
|
61
|
-
"onInternal-model-change"?: (...args: any[]) => any;
|
|
62
|
-
"onRecalculate-position"?: (...args: any[]) => any;
|
|
63
|
-
"onFlow-step"?: (...args: any[]) => any;
|
|
64
|
-
"onUpdate-month-year"?: (...args: any[]) => any;
|
|
65
|
-
"onInvalid-select"?: (...args: any[]) => any;
|
|
66
|
-
"onTooltip-open"?: (...args: any[]) => any;
|
|
67
|
-
"onTooltip-close"?: (...args: any[]) => any;
|
|
68
|
-
"onInvalid-fixed-range"?: (...args: any[]) => any;
|
|
69
|
-
"onTime-picker-open"?: (...args: any[]) => any;
|
|
70
|
-
"onTime-picker-close"?: (...args: any[]) => any;
|
|
71
|
-
"onAm-pm-change"?: (...args: any[]) => any;
|
|
72
|
-
"onRange-start"?: (...args: any[]) => any;
|
|
73
|
-
"onRange-end"?: (...args: any[]) => any;
|
|
74
|
-
"onDate-update"?: (...args: any[]) => any;
|
|
75
|
-
"onInvalid-date"?: (...args: any[]) => any;
|
|
76
|
-
"onOverlay-toggle"?: (...args: any[]) => any;
|
|
77
|
-
"onText-input"?: (...args: any[]) => any;
|
|
78
|
-
}), {}, {}, import("vue").ComputedOptions, import("@vuepic/vue-datepicker").PublicMethods, {
|
|
79
|
-
[x: number]: string;
|
|
80
|
-
} | {}> & {
|
|
81
|
-
$slots: Readonly<import("@vuepic/vue-datepicker").Slots> & import("@vuepic/vue-datepicker").Slots;
|
|
82
|
-
};
|
|
83
|
-
};
|
|
84
|
-
rootEl: any;
|
|
85
|
-
};
|
|
86
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
87
|
-
declare const __VLS_component: import("vue").DefineComponent<MaDatePickerProps, {
|
|
88
|
-
open: () => any;
|
|
89
|
-
close: () => any;
|
|
90
|
-
toggle: () => any;
|
|
91
|
-
clear: () => any;
|
|
92
|
-
selectDate: () => any;
|
|
93
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
94
|
-
blur: (...args: any[]) => void;
|
|
95
|
-
change: (...args: any[]) => void;
|
|
96
|
-
focus: (...args: any[]) => void;
|
|
97
|
-
open: (...args: any[]) => void;
|
|
98
|
-
"update:value": (...args: any[]) => void;
|
|
99
|
-
openChange: (...args: any[]) => void;
|
|
100
|
-
closed: (...args: any[]) => void;
|
|
101
|
-
cleared: (...args: any[]) => void;
|
|
102
|
-
rangeStart: (...args: any[]) => void;
|
|
103
|
-
rangeEnd: (...args: any[]) => void;
|
|
104
|
-
}, string, import("vue").PublicProps, Readonly<MaDatePickerProps> & Readonly<{
|
|
105
|
-
onBlur?: (...args: any[]) => any;
|
|
106
|
-
onChange?: (...args: any[]) => any;
|
|
107
|
-
onFocus?: (...args: any[]) => any;
|
|
108
|
-
onOpen?: (...args: any[]) => any;
|
|
109
|
-
"onUpdate:value"?: (...args: any[]) => any;
|
|
110
|
-
onOpenChange?: (...args: any[]) => any;
|
|
111
|
-
onClosed?: (...args: any[]) => any;
|
|
112
|
-
onCleared?: (...args: any[]) => any;
|
|
113
|
-
onRangeStart?: (...args: any[]) => any;
|
|
114
|
-
onRangeEnd?: (...args: any[]) => any;
|
|
115
|
-
}>, {
|
|
116
|
-
size: typeof import("./types").MaDatePickerSizes[number];
|
|
117
|
-
disabled: boolean;
|
|
118
|
-
value: import("@vuepic/vue-datepicker").ModelValue;
|
|
119
|
-
position: typeof import("./types").MaDatePickerPositions[number];
|
|
120
|
-
format: string | ((date: Date) => string) | ((dates: Date[]) => string);
|
|
121
|
-
valueFormat: string;
|
|
122
|
-
presetDates: import("./types").MaPresetDate[];
|
|
123
|
-
teleport: boolean | string | HTMLElement;
|
|
124
|
-
presetLocation: typeof import("./types").MaDatePickerPresetLocations[number];
|
|
125
|
-
autoPosition: typeof import("./types").MaDatePickerVerticalPositions[number];
|
|
126
|
-
preventMinMaxNavigation: boolean;
|
|
127
|
-
clearable: boolean;
|
|
128
|
-
applyButtonText: string;
|
|
129
|
-
multiCalendars: boolean;
|
|
130
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
131
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
132
|
-
export default _default;
|
|
133
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
134
|
-
new (): {
|
|
135
|
-
$slots: S;
|
|
136
|
-
};
|
|
137
|
-
};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { Meta, StoryFn } from '@storybook/vue3';
|
|
2
|
-
import { MaDatePicker2 } from '@/index';
|
|
3
|
-
export declare const baseConfig: Meta<typeof MaDatePicker2>;
|
|
4
|
-
export declare const Template: StoryFn;
|
|
5
|
-
export declare const TemplateCustomPresetSlot: StoryFn;
|
|
6
|
-
export declare const TemplateCustomSlots: StoryFn;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from '@storybook/vue3';
|
|
2
|
-
import { MaDatePicker2 } from '@/index';
|
|
3
|
-
declare const meta: Meta<typeof MaDatePicker2>;
|
|
4
|
-
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof MaDatePicker2>;
|
|
6
|
-
export declare const Default: Story;
|
|
7
|
-
export declare const Disabled: Story;
|
|
8
|
-
export declare const ReadOnly: Story;
|
|
9
|
-
export declare const DisabledDates: Story;
|
|
10
|
-
export declare const WithoutTeleport: Story;
|
|
11
|
-
export declare const DateFormat: Story;
|
|
12
|
-
export declare const ValueFormat: Story;
|
|
13
|
-
export declare const WithoutValueFormat: Story;
|
|
14
|
-
export declare const WeekPicker: Story;
|
|
15
|
-
export declare const MonthPicker: Story;
|
|
16
|
-
export declare const QuarterPicker: Story;
|
|
17
|
-
export declare const YearPicker: Story;
|
|
18
|
-
export declare const AutoApply: Story;
|
|
19
|
-
export declare const Borderless: Story;
|
|
20
|
-
export declare const PresetDates: Story;
|
|
21
|
-
export declare const PresetBottom: Story;
|
|
22
|
-
export declare const MinMaxDates: Story;
|
|
23
|
-
export declare const CustomPresetSlot: Story;
|
|
24
|
-
export declare const MultiCalendars: Story;
|
|
25
|
-
export declare const FocusStartDate: Story;
|
|
26
|
-
export declare const CustomSlots: Story;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from '@storybook/vue3';
|
|
2
|
-
import { MaDatePicker2 } from '@/index';
|
|
3
|
-
declare const meta: Meta<typeof MaDatePicker2>;
|
|
4
|
-
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof MaDatePicker2>;
|
|
6
|
-
export declare const Default: Story;
|
|
7
|
-
export declare const Disabled: Story;
|
|
8
|
-
export declare const ReadOnly: Story;
|
|
9
|
-
export declare const DisabledDates: Story;
|
|
10
|
-
export declare const WithoutTeleport: Story;
|
|
11
|
-
export declare const DateFormat: Story;
|
|
12
|
-
export declare const ValueFormat: Story;
|
|
13
|
-
export declare const WithoutValueFormat: Story;
|
|
14
|
-
export declare const WeekPicker: Story;
|
|
15
|
-
export declare const MonthPicker: Story;
|
|
16
|
-
export declare const QuarterPicker: Story;
|
|
17
|
-
export declare const YearPicker: Story;
|
|
18
|
-
export declare const AutoApply: Story;
|
|
19
|
-
export declare const Borderless: Story;
|
|
20
|
-
export declare const PresetDates: Story;
|
|
21
|
-
export declare const PresetBottom: Story;
|
|
22
|
-
export declare const MinMaxDates: Story;
|
|
23
|
-
export declare const AutoRange: Story;
|
|
24
|
-
export declare const CustomPresetSlot: Story;
|
|
25
|
-
export declare const MultiCalendars: Story;
|
|
26
|
-
export declare const FocusStartDate: Story;
|
|
27
|
-
export declare const CustomSlots: Story;
|
|
@@ -1,179 +0,0 @@
|
|
|
1
|
-
import { GeneralConfig, ModelValue, UIOptions } from '@vuepic/vue-datepicker';
|
|
2
|
-
export interface MaPresetDate {
|
|
3
|
-
label: string;
|
|
4
|
-
value: Date[] | string[] | Date | string;
|
|
5
|
-
slot?: string;
|
|
6
|
-
}
|
|
7
|
-
export declare const MaDatePickerSizes: readonly ["small", "medium"];
|
|
8
|
-
export declare const MaDatePickerPresetLocations: readonly ["left", "bottom"];
|
|
9
|
-
export declare const MaDatePickerPositions: readonly ["left", "center", "right"];
|
|
10
|
-
export declare const MaDatePickerVerticalPositions: readonly ["top", "bottom", true, false];
|
|
11
|
-
export interface RangeConfig {
|
|
12
|
-
noDisabledRange?: boolean;
|
|
13
|
-
showLastInRange?: boolean;
|
|
14
|
-
minMaxRawRange?: boolean;
|
|
15
|
-
partialRange?: boolean;
|
|
16
|
-
disableTimeRangeValidation?: boolean;
|
|
17
|
-
fixedStart?: boolean;
|
|
18
|
-
fixedEnd?: boolean;
|
|
19
|
-
maxRange?: string | number;
|
|
20
|
-
minRange?: string | number;
|
|
21
|
-
autoRange?: string | number;
|
|
22
|
-
}
|
|
23
|
-
export interface MaDatePickerProps {
|
|
24
|
-
/**
|
|
25
|
-
* Use teleport to position the datepicker menu. This is useful if you have hidden overflow on the parent HTML element where the menu is not showing in full.
|
|
26
|
-
* @default true
|
|
27
|
-
*/
|
|
28
|
-
teleport?: boolean | string | HTMLElement;
|
|
29
|
-
/**
|
|
30
|
-
* Disables the input
|
|
31
|
-
* @default false
|
|
32
|
-
*/
|
|
33
|
-
disabled?: boolean;
|
|
34
|
-
/**
|
|
35
|
-
* Sets the input in readonly state
|
|
36
|
-
* @default false
|
|
37
|
-
*/
|
|
38
|
-
readonly?: boolean;
|
|
39
|
-
/**
|
|
40
|
-
* Disable specific dates
|
|
41
|
-
* Date[] | string[] | (date: Date) => boolean
|
|
42
|
-
*/
|
|
43
|
-
disabledDates?: Date[] | string[] | ((date: Date) => boolean);
|
|
44
|
-
/**
|
|
45
|
-
* Allow only specific dates
|
|
46
|
-
* string[] | Date[]
|
|
47
|
-
*/
|
|
48
|
-
allowedDates?: string[] | Date[];
|
|
49
|
-
/**
|
|
50
|
-
* Format the display date(s) in the input field.
|
|
51
|
-
* All date formats should follow the day.js format
|
|
52
|
-
* @default MMM D, YYYY
|
|
53
|
-
*/
|
|
54
|
-
format?: string | ((date: Date) => string) | ((dates: Date[]) => string);
|
|
55
|
-
/**
|
|
56
|
-
* Format the value of the date(s).
|
|
57
|
-
* All date formats should follow the day.js format
|
|
58
|
-
* @default YYYY-MM-DD
|
|
59
|
-
*/
|
|
60
|
-
valueFormat?: string;
|
|
61
|
-
/**
|
|
62
|
-
* The modelValue of the date picker
|
|
63
|
-
* @default null
|
|
64
|
-
*/
|
|
65
|
-
value?: ModelValue;
|
|
66
|
-
/**
|
|
67
|
-
* Select a specific week range
|
|
68
|
-
* @default false
|
|
69
|
-
*/
|
|
70
|
-
weekPicker?: boolean;
|
|
71
|
-
/**
|
|
72
|
-
* Select a specific month range
|
|
73
|
-
* @default false
|
|
74
|
-
*/
|
|
75
|
-
monthPicker?: boolean;
|
|
76
|
-
/**
|
|
77
|
-
* Select a specific year range
|
|
78
|
-
* @default false
|
|
79
|
-
*/
|
|
80
|
-
yearPicker?: boolean;
|
|
81
|
-
/**
|
|
82
|
-
* Select a specific quarter range
|
|
83
|
-
* @default false
|
|
84
|
-
*/
|
|
85
|
-
quarterPicker?: boolean;
|
|
86
|
-
/**
|
|
87
|
-
* If set to true, clicking on a date value will automatically select the value
|
|
88
|
-
* @default false
|
|
89
|
-
*/
|
|
90
|
-
autoApply?: boolean;
|
|
91
|
-
/**
|
|
92
|
-
* borderless variant of the input
|
|
93
|
-
* @default false
|
|
94
|
-
*/
|
|
95
|
-
borderless?: boolean;
|
|
96
|
-
/**
|
|
97
|
-
* Input placeholder
|
|
98
|
-
*/
|
|
99
|
-
placeholder?: string;
|
|
100
|
-
/**
|
|
101
|
-
* Set datepicker locale. Datepicker will use built in javascript locale formatter to extract month and weekday names
|
|
102
|
-
* @default en-US
|
|
103
|
-
*/
|
|
104
|
-
locale?: string;
|
|
105
|
-
/**
|
|
106
|
-
* Range picker mode
|
|
107
|
-
* details: https://vue3datepicker.com/props/modes-configuration/#range-configuration
|
|
108
|
-
* @default false
|
|
109
|
-
*/
|
|
110
|
-
range?: boolean | RangeConfig;
|
|
111
|
-
/**
|
|
112
|
-
* When configured, it will provide a sidebar with configured range/date that user can select
|
|
113
|
-
* interface PresetDate {
|
|
114
|
-
label: string;
|
|
115
|
-
value: Date[] | string[] | Date | string;
|
|
116
|
-
slot?: string;
|
|
117
|
-
}
|
|
118
|
-
* @default false
|
|
119
|
-
*/
|
|
120
|
-
presetDates?: MaPresetDate[];
|
|
121
|
-
/**
|
|
122
|
-
* The size of datepicker input
|
|
123
|
-
* @default small
|
|
124
|
-
*/
|
|
125
|
-
size?: (typeof MaDatePickerSizes)[number];
|
|
126
|
-
/**
|
|
127
|
-
* The location of the preset dates
|
|
128
|
-
* @default left
|
|
129
|
-
*/
|
|
130
|
-
presetLocation?: (typeof MaDatePickerPresetLocations)[number];
|
|
131
|
-
/**
|
|
132
|
-
* The position of the calendar overlay
|
|
133
|
-
* @default center
|
|
134
|
-
*/
|
|
135
|
-
position?: (typeof MaDatePickerPositions)[number];
|
|
136
|
-
/**
|
|
137
|
-
* When enabled, based on viewport space available it will automatically position the menu above or bellow input field
|
|
138
|
-
* @default bottom
|
|
139
|
-
*/
|
|
140
|
-
autoPosition?: (typeof MaDatePickerVerticalPositions)[number];
|
|
141
|
-
/**
|
|
142
|
-
* All dates before the given date will be disabled
|
|
143
|
-
*/
|
|
144
|
-
minDate?: Date | string;
|
|
145
|
-
/**
|
|
146
|
-
* All dates after the given date will be disabled
|
|
147
|
-
*/
|
|
148
|
-
maxDate?: Date | string;
|
|
149
|
-
/**
|
|
150
|
-
* Prevent navigation after or before the min-date or max-date
|
|
151
|
-
*/
|
|
152
|
-
preventMinMaxNavigation?: boolean;
|
|
153
|
-
/**
|
|
154
|
-
* Open the datepicker to some preselected month and year
|
|
155
|
-
*/
|
|
156
|
-
startDate?: Date | string;
|
|
157
|
-
/**
|
|
158
|
-
* Open the datepicker to provided start-date ignoring the v-model value
|
|
159
|
-
*/
|
|
160
|
-
focusStartDate?: boolean;
|
|
161
|
-
/**
|
|
162
|
-
* Add a clear icon to the input field where you can set the value to null
|
|
163
|
-
*/
|
|
164
|
-
clearable?: boolean;
|
|
165
|
-
/**
|
|
166
|
-
* The text of the apply button
|
|
167
|
-
* @default Apply
|
|
168
|
-
*/
|
|
169
|
-
applyButtonText?: string;
|
|
170
|
-
/**
|
|
171
|
-
* Enabling this prop will show multiple calendars side by side for range picker.
|
|
172
|
-
* @default false
|
|
173
|
-
*/
|
|
174
|
-
multiCalendars?: boolean;
|
|
175
|
-
}
|
|
176
|
-
export declare const MaDefaultVisibleDateFormat = "MMM D, YYYY";
|
|
177
|
-
export declare const MaDefaultDateFormat = "YYYY-MM-DD";
|
|
178
|
-
export declare const UI: UIOptions;
|
|
179
|
-
export declare const DatePickerConfig: GeneralConfig;
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryFn } from '@storybook/vue3';
|
|
2
|
-
import MaDrawer from '@/components/drawer/index.vue';
|
|
3
|
-
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {
|
|
4
|
-
MaButton: {
|
|
5
|
-
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("@/components/button/index.vue").MaButtonProps> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
|
|
6
|
-
size: import("../../..").ButtonSize;
|
|
7
|
-
variant: import("../../..").ButtonVariant;
|
|
8
|
-
shape: import("../../..").ButtonShape;
|
|
9
|
-
disabled: boolean;
|
|
10
|
-
loading: boolean;
|
|
11
|
-
htmlType: import("../../..").ButtonHtmlType;
|
|
12
|
-
color: import("../../..").ButtonColor;
|
|
13
|
-
}, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
14
|
-
P: {};
|
|
15
|
-
B: {};
|
|
16
|
-
D: {};
|
|
17
|
-
C: {};
|
|
18
|
-
M: {};
|
|
19
|
-
Defaults: {};
|
|
20
|
-
}, Readonly<import("@/components/button/index.vue").MaButtonProps> & Readonly<{}>, {}, {}, {}, {}, {
|
|
21
|
-
size: import("../../..").ButtonSize;
|
|
22
|
-
variant: import("../../..").ButtonVariant;
|
|
23
|
-
shape: import("../../..").ButtonShape;
|
|
24
|
-
disabled: boolean;
|
|
25
|
-
loading: boolean;
|
|
26
|
-
htmlType: import("../../..").ButtonHtmlType;
|
|
27
|
-
color: import("../../..").ButtonColor;
|
|
28
|
-
}>;
|
|
29
|
-
__isFragment?: never;
|
|
30
|
-
__isTeleport?: never;
|
|
31
|
-
__isSuspense?: never;
|
|
32
|
-
} & import("vue").ComponentOptionsBase<Readonly<import("@/components/button/index.vue").MaButtonProps> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
33
|
-
size: import("../../..").ButtonSize;
|
|
34
|
-
variant: import("../../..").ButtonVariant;
|
|
35
|
-
shape: import("../../..").ButtonShape;
|
|
36
|
-
disabled: boolean;
|
|
37
|
-
loading: boolean;
|
|
38
|
-
htmlType: import("../../..").ButtonHtmlType;
|
|
39
|
-
color: import("../../..").ButtonColor;
|
|
40
|
-
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
41
|
-
$slots: {
|
|
42
|
-
default?(_: {}): any;
|
|
43
|
-
};
|
|
44
|
-
});
|
|
45
|
-
MaDrawer: {
|
|
46
|
-
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("@/components/drawer/index.vue").MaDrawerProps> & Readonly<{
|
|
47
|
-
"onUpdate:visible"?: (...args: any[]) => any;
|
|
48
|
-
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
49
|
-
"update:visible": (...args: any[]) => void;
|
|
50
|
-
}, import("vue").PublicProps, {
|
|
51
|
-
placement: string;
|
|
52
|
-
closable: boolean;
|
|
53
|
-
visible: boolean;
|
|
54
|
-
}, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, HTMLDivElement, import("vue").ComponentProvideOptions, {
|
|
55
|
-
P: {};
|
|
56
|
-
B: {};
|
|
57
|
-
D: {};
|
|
58
|
-
C: {};
|
|
59
|
-
M: {};
|
|
60
|
-
Defaults: {};
|
|
61
|
-
}, Readonly<import("@/components/drawer/index.vue").MaDrawerProps> & Readonly<{
|
|
62
|
-
"onUpdate:visible"?: (...args: any[]) => any;
|
|
63
|
-
}>, {}, {}, {}, {}, {
|
|
64
|
-
placement: string;
|
|
65
|
-
closable: boolean;
|
|
66
|
-
visible: boolean;
|
|
67
|
-
}>;
|
|
68
|
-
__isFragment?: never;
|
|
69
|
-
__isTeleport?: never;
|
|
70
|
-
__isSuspense?: never;
|
|
71
|
-
} & import("vue").ComponentOptionsBase<Readonly<import("@/components/drawer/index.vue").MaDrawerProps> & Readonly<{
|
|
72
|
-
"onUpdate:visible"?: (...args: any[]) => any;
|
|
73
|
-
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
74
|
-
"update:visible": (...args: any[]) => void;
|
|
75
|
-
}, string, {
|
|
76
|
-
placement: string;
|
|
77
|
-
closable: boolean;
|
|
78
|
-
visible: boolean;
|
|
79
|
-
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
80
|
-
$slots: {
|
|
81
|
-
header?(_: {}): any;
|
|
82
|
-
content?(_: {}): any;
|
|
83
|
-
footer?(_: {}): any;
|
|
84
|
-
};
|
|
85
|
-
});
|
|
86
|
-
}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
87
|
-
export default _default;
|
|
88
|
-
export declare const baseConfig: Meta<typeof MaDrawer>;
|
|
89
|
-
export declare const Template: StoryFn;
|
|
90
|
-
export declare const TemplateSlot: StoryFn;
|
|
91
|
-
export declare const TemplateWithScroll: StoryFn;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from '@storybook/vue3';
|
|
2
|
-
import type MaDrawer from '../index.vue';
|
|
3
|
-
declare const meta: Meta<typeof MaDrawer>;
|
|
4
|
-
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof MaDrawer>;
|
|
6
|
-
export declare const Default: Story;
|
|
7
|
-
export declare const WithScroll: Story;
|
|
8
|
-
export declare const TemplateWithSlot: Story;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const MaDrawerPlacements: readonly ["left", "right"];
|
/package/dist/src/components/{date-picker-2/date-picker.test.d.ts → drawer/drawer.test.d.ts}
RENAMED
|
File without changes
|