@pequity/squirrel 10.1.0 → 11.0.1
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/cjs/chunks/index.js +199 -143
- package/dist/cjs/chunks/p-inline-date-picker.js +51 -84
- package/dist/cjs/dateLocale.js +886 -0
- package/dist/cjs/index.js +2 -2
- package/dist/cjs/p-date-picker.js +146 -2
- package/dist/cjs/p-select-pill.js +1 -1
- package/dist/es/chunks/index.js +199 -143
- package/dist/es/chunks/p-inline-date-picker.js +50 -83
- package/dist/es/dateLocale.js +886 -0
- package/dist/es/index.js +50 -50
- package/dist/es/p-date-picker.js +146 -2
- package/dist/es/p-select-pill.js +1 -1
- package/dist/squirrel/components/p-date-picker/p-date-picker.vue.d.ts +19 -23
- package/dist/squirrel/components/p-drawer/p-drawer.vue.d.ts +2 -2
- package/dist/squirrel/components/p-inline-date-picker/p-inline-date-picker.vue.d.ts +12 -13
- package/dist/squirrel/components/p-modal/p-modal.vue.d.ts +2 -2
- package/dist/squirrel/components/p-steps/p-steps.vue.d.ts +1 -1
- package/dist/squirrel/utils/dateLocale.d.ts +2 -0
- package/dist/squirrel.css +35 -2
- package/package.json +28 -27
- package/squirrel/components/p-date-picker/p-date-picker.spec.js +49 -4
- package/squirrel/components/p-date-picker/p-date-picker.vue +84 -12
- package/squirrel/components/p-inline-date-picker/p-inline-date-picker.spec.js +33 -18
- package/squirrel/components/p-inline-date-picker/p-inline-date-picker.vue +21 -10
- package/squirrel/components/p-select-pill/p-select-pill.vue +1 -1
- package/squirrel/utils/dateLocale.spec.ts +20 -0
- package/squirrel/utils/dateLocale.ts +19 -0
- package/dist/cjs/chunks/p-date-picker.js +0 -171
- package/dist/es/chunks/p-date-picker.js +0 -172
package/dist/es/index.js
CHANGED
|
@@ -6,9 +6,9 @@ import { _ as _5 } from "./chunks/p-card.js";
|
|
|
6
6
|
import { default as default2 } from "./p-checkbox.js";
|
|
7
7
|
import { default as default3 } from "./p-chips.js";
|
|
8
8
|
import { default as default4 } from "./p-close-btn.js";
|
|
9
|
-
import {
|
|
10
|
-
import { default as
|
|
11
|
-
import { default as
|
|
9
|
+
import { default as default5 } from "./p-date-picker.js";
|
|
10
|
+
import { default as default6 } from "./p-drawer.js";
|
|
11
|
+
import { default as default7 } from "./p-dropdown.js";
|
|
12
12
|
import { _ as _imports_0$1 } from "./chunks/p-dropdown-select.js";
|
|
13
13
|
import { a } from "./chunks/p-dropdown-select.js";
|
|
14
14
|
import { defineComponent, shallowRef, ref, computed, onMounted, resolveComponent, createElementBlock, openBlock, normalizeClass, createCommentVNode, createElementVNode, withDirectives, unref, toDisplayString, withModifiers, createVNode, withCtx, Fragment, renderList, vShow, useAttrs, resolveDirective, normalizeStyle, isRef, renderSlot, provide, useTemplateRef, onBeforeUnmount, watch, mergeProps, toHandlers, createBlock, watchEffect, nextTick } from "vue";
|
|
@@ -19,30 +19,30 @@ import { uniq, kebabCase } from "lodash-es";
|
|
|
19
19
|
import { useI18n } from "vue-i18n";
|
|
20
20
|
import { useToast } from "vue-toastification";
|
|
21
21
|
import { P_ICON_ALIASES } from "./p-icon.js";
|
|
22
|
-
import { _ as
|
|
23
|
-
import { _ as
|
|
24
|
-
import { _ as
|
|
25
|
-
import { _ as
|
|
26
|
-
import { _ as
|
|
22
|
+
import { _ as _6 } from "./chunks/p-info-icon.js";
|
|
23
|
+
import { _ as _7 } from "./chunks/p-inline-date-picker.js";
|
|
24
|
+
import { _ as _8 } from "./chunks/p-input.js";
|
|
25
|
+
import { _ as _9 } from "./chunks/p-input-number.js";
|
|
26
|
+
import { _ as _10 } from "./chunks/p-input-percent.js";
|
|
27
27
|
import PInputSearch from "./p-input-search.js";
|
|
28
|
-
import { _ as
|
|
29
|
-
import { default as
|
|
28
|
+
import { _ as _11 } from "./chunks/p-link.js";
|
|
29
|
+
import { default as default8 } from "./p-loading.js";
|
|
30
30
|
import { usePLoading } from "./usePLoading.js";
|
|
31
|
-
import { default as
|
|
31
|
+
import { default as default9 } from "./p-modal.js";
|
|
32
32
|
import { usePModal } from "./usePModal.js";
|
|
33
|
-
import { _ as
|
|
34
|
-
import { _ as
|
|
35
|
-
import { _ as
|
|
36
|
-
import { _ as
|
|
37
|
-
import { _ as
|
|
38
|
-
import { _ as
|
|
33
|
+
import { _ as _12 } from "./chunks/p-pagination.js";
|
|
34
|
+
import { _ as _13 } from "./chunks/p-pagination-info.js";
|
|
35
|
+
import { _ as _14 } from "./chunks/p-progress-bar.js";
|
|
36
|
+
import { _ as _15 } from "./chunks/p-ring-loader.js";
|
|
37
|
+
import { _ as _16 } from "./chunks/p-select.js";
|
|
38
|
+
import { _ as _17 } from "./chunks/p-select-btn.js";
|
|
39
39
|
import { SIZES } from "./p-select-list.js";
|
|
40
40
|
import { useSelectList } from "./useSelectList.js";
|
|
41
41
|
import { toString } from "./string.js";
|
|
42
42
|
import { splitStringForHighlight } from "./text.js";
|
|
43
|
-
import { default as
|
|
44
|
-
import { default as
|
|
45
|
-
import { _ as
|
|
43
|
+
import { default as default10 } from "./p-select-pill.js";
|
|
44
|
+
import { default as default11 } from "./p-skeleton-loader.js";
|
|
45
|
+
import { _ as _18 } from "./chunks/p-steps.js";
|
|
46
46
|
import { colsInjectionKey, isFirstColFixedInjectionKey, isLastColFixedInjectionKey, isColsResizableInjectionKey } from "./p-table.js";
|
|
47
47
|
import { MIN_WIDTH_COL_RESIZE } from "./p-table.js";
|
|
48
48
|
import { usePTableColResize } from "./usePTableColResize.js";
|
|
@@ -51,12 +51,12 @@ import { _ as _sfc_main$5 } from "./chunks/p-table-header-cell.js";
|
|
|
51
51
|
import PTableTd from "./p-table-td.js";
|
|
52
52
|
import { _ as _export_sfc } from "./chunks/_plugin-vue_export-helper.js";
|
|
53
53
|
import { usePTableRowVirtualizer } from "./usePTableRowVirtualizer.js";
|
|
54
|
-
import { _ as
|
|
54
|
+
import { _ as _19 } from "./chunks/p-table-loader.js";
|
|
55
55
|
import { SORTING_TYPES } from "./p-table-sort.js";
|
|
56
|
-
import { _ as
|
|
57
|
-
import { _ as
|
|
58
|
-
import { _ as
|
|
59
|
-
import { default as
|
|
56
|
+
import { _ as _20 } from "./chunks/p-tabs.js";
|
|
57
|
+
import { _ as _21 } from "./chunks/p-tabs-pills.js";
|
|
58
|
+
import { _ as _22 } from "./chunks/p-textarea.js";
|
|
59
|
+
import { default as default12 } from "./p-toggle.js";
|
|
60
60
|
import { squirrelTailwindConfig } from "./config.js";
|
|
61
61
|
import { S } from "./chunks/p-btn.types.js";
|
|
62
62
|
import { CURRENCY_INPUT_DEFAULTS } from "./currency.js";
|
|
@@ -1099,40 +1099,40 @@ export {
|
|
|
1099
1099
|
default2 as PCheckbox,
|
|
1100
1100
|
default3 as PChips,
|
|
1101
1101
|
default4 as PCloseBtn,
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1102
|
+
default5 as PDatePicker,
|
|
1103
|
+
default6 as PDrawer,
|
|
1104
|
+
default7 as PDropdown,
|
|
1105
1105
|
a as PDropdownSelect,
|
|
1106
1106
|
_sfc_main$3 as PFileUpload,
|
|
1107
1107
|
_sfc_main$4 as PIcon,
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1108
|
+
_6 as PInfoIcon,
|
|
1109
|
+
_7 as PInlineDatePicker,
|
|
1110
|
+
_8 as PInput,
|
|
1111
|
+
_9 as PInputNumber,
|
|
1112
|
+
_10 as PInputPercent,
|
|
1113
1113
|
PInputSearch,
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1114
|
+
_11 as PLink,
|
|
1115
|
+
default8 as PLoading,
|
|
1116
|
+
default9 as PModal,
|
|
1117
|
+
_12 as PPagination,
|
|
1118
|
+
_13 as PPaginationInfo,
|
|
1119
|
+
_14 as PProgressBar,
|
|
1120
|
+
_15 as PRingLoader,
|
|
1121
|
+
_16 as PSelect,
|
|
1122
|
+
_17 as PSelectBtn,
|
|
1123
1123
|
_sfc_main$2 as PSelectList,
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1124
|
+
default10 as PSelectPill,
|
|
1125
|
+
default11 as PSkeletonLoader,
|
|
1126
|
+
_18 as PSteps,
|
|
1127
1127
|
pTable as PTable,
|
|
1128
1128
|
_sfc_main$5 as PTableHeaderCell,
|
|
1129
|
-
|
|
1129
|
+
_19 as PTableLoader,
|
|
1130
1130
|
_sfc_main as PTableSort,
|
|
1131
1131
|
PTableTd,
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1132
|
+
_20 as PTabs,
|
|
1133
|
+
_21 as PTabsPills,
|
|
1134
|
+
_22 as PTextarea,
|
|
1135
|
+
default12 as PToggle,
|
|
1136
1136
|
P_ICON_ALIASES,
|
|
1137
1137
|
S as SIZES,
|
|
1138
1138
|
SORTING_TYPES,
|
package/dist/es/p-date-picker.js
CHANGED
|
@@ -1,4 +1,148 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { defineComponent, mergeModels, useModel, useAttrs, computed, createBlock, openBlock, unref, mergeProps, withCtx, createVNode, withKeys } from "vue";
|
|
2
|
+
import { _ as _sfc_main$1 } from "./chunks/p-input.js";
|
|
3
|
+
import { getDateFnsLocale } from "./dateLocale.js";
|
|
4
|
+
import { VueDatePicker } from "@vuepic/vue-datepicker";
|
|
5
|
+
import { useI18n } from "vue-i18n";
|
|
6
|
+
import { _ as _export_sfc } from "./chunks/_plugin-vue_export-helper.js";
|
|
7
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
8
|
+
...{
|
|
9
|
+
name: "PDatePicker",
|
|
10
|
+
inheritAttrs: false
|
|
11
|
+
},
|
|
12
|
+
__name: "p-date-picker",
|
|
13
|
+
props: /* @__PURE__ */ mergeModels({
|
|
14
|
+
multiCalendars: { type: [Boolean, Number, String, Object] },
|
|
15
|
+
modelType: { default: "yyyy-MM-dd" },
|
|
16
|
+
dark: { type: Boolean },
|
|
17
|
+
transitions: { type: [Boolean, Object] },
|
|
18
|
+
ariaLabels: {},
|
|
19
|
+
hideNavigation: {},
|
|
20
|
+
timezone: {},
|
|
21
|
+
vertical: { type: Boolean },
|
|
22
|
+
hideMonthYearSelect: { type: Boolean },
|
|
23
|
+
disableYearSelect: { type: Boolean },
|
|
24
|
+
yearRange: {},
|
|
25
|
+
autoApply: { type: Boolean, default: true },
|
|
26
|
+
disabledDates: {},
|
|
27
|
+
startDate: {},
|
|
28
|
+
hideOffsetDates: { type: Boolean, default: true },
|
|
29
|
+
noToday: { type: Boolean },
|
|
30
|
+
allowedDates: {},
|
|
31
|
+
markers: {},
|
|
32
|
+
presetDates: {},
|
|
33
|
+
flow: {},
|
|
34
|
+
preventMinMaxNavigation: { type: Boolean },
|
|
35
|
+
reverseYears: { type: Boolean },
|
|
36
|
+
weekPicker: { type: Boolean },
|
|
37
|
+
filters: {},
|
|
38
|
+
arrowNavigation: { type: Boolean },
|
|
39
|
+
highlight: {},
|
|
40
|
+
teleport: { type: [String, Boolean] },
|
|
41
|
+
centered: { type: Boolean },
|
|
42
|
+
locale: {},
|
|
43
|
+
weekStart: { default: 0 },
|
|
44
|
+
weekNumbers: { type: [Boolean, Object] },
|
|
45
|
+
dayNames: {},
|
|
46
|
+
monthPicker: { type: Boolean },
|
|
47
|
+
yearPicker: { type: Boolean },
|
|
48
|
+
modelAuto: { type: Boolean },
|
|
49
|
+
formats: { default: () => ({ input: "dd-MMM-yyyy" }) },
|
|
50
|
+
multiDates: { type: [Boolean, Object] },
|
|
51
|
+
minDate: {},
|
|
52
|
+
maxDate: {},
|
|
53
|
+
minTime: {},
|
|
54
|
+
maxTime: {},
|
|
55
|
+
inputAttrs: {},
|
|
56
|
+
timeConfig: { default: () => ({ enableTimePicker: false }) },
|
|
57
|
+
placeholder: { default: "" },
|
|
58
|
+
timePicker: { type: Boolean },
|
|
59
|
+
range: { type: [Boolean, Object] },
|
|
60
|
+
menuId: {},
|
|
61
|
+
disabled: { type: Boolean },
|
|
62
|
+
readonly: { type: Boolean },
|
|
63
|
+
inline: { type: [Boolean, Object] },
|
|
64
|
+
textInput: { type: [Boolean, Object], default: true },
|
|
65
|
+
sixWeeks: { type: [Boolean, String] },
|
|
66
|
+
actionRow: {},
|
|
67
|
+
focusStartDate: { type: Boolean },
|
|
68
|
+
disabledTimes: {},
|
|
69
|
+
calendar: {},
|
|
70
|
+
config: {},
|
|
71
|
+
quarterPicker: { type: Boolean },
|
|
72
|
+
yearFirst: { type: Boolean },
|
|
73
|
+
loading: { type: Boolean },
|
|
74
|
+
ui: {},
|
|
75
|
+
floating: {},
|
|
76
|
+
name: { default: "" },
|
|
77
|
+
label: { default: "" },
|
|
78
|
+
errorMsg: { default: "" },
|
|
79
|
+
required: { type: Boolean, default: false }
|
|
80
|
+
}, {
|
|
81
|
+
"modelValue": {},
|
|
82
|
+
"modelModifiers": {}
|
|
83
|
+
}),
|
|
84
|
+
emits: ["update:modelValue"],
|
|
85
|
+
setup(__props) {
|
|
86
|
+
const props = __props;
|
|
87
|
+
const model = useModel(__props, "modelValue");
|
|
88
|
+
const { locale } = useI18n();
|
|
89
|
+
const attrs = useAttrs();
|
|
90
|
+
const datePickerProps = computed(() => {
|
|
91
|
+
const { name, label, errorMsg, required, ...vueDatePickerProps } = props;
|
|
92
|
+
const { class: classes, style, ...attrsWithoutClassAndStyle } = attrs;
|
|
93
|
+
return {
|
|
94
|
+
...vueDatePickerProps,
|
|
95
|
+
...attrsWithoutClassAndStyle,
|
|
96
|
+
locale: getDateFnsLocale(locale.value)
|
|
97
|
+
};
|
|
98
|
+
});
|
|
99
|
+
const inputPropsAndAttrs = computed(() => {
|
|
100
|
+
const { class: classes, style, ...res } = attrs;
|
|
101
|
+
res.label = props.label;
|
|
102
|
+
res.errorMsg = props.errorMsg;
|
|
103
|
+
res.required = props.required;
|
|
104
|
+
res.disabled = props.disabled;
|
|
105
|
+
res.placeholder = props.placeholder ? props.placeholder : typeof props.formats?.input === "string" ? props.formats.input : "dd-MMM-yyyy";
|
|
106
|
+
res.name = props.name;
|
|
107
|
+
res.readonly = props.readonly;
|
|
108
|
+
return res;
|
|
109
|
+
});
|
|
110
|
+
const handleInput = (e, onInputFn, onClearFn) => {
|
|
111
|
+
if (e.target instanceof HTMLInputElement && e.target.value === "") {
|
|
112
|
+
onClearFn(e);
|
|
113
|
+
return;
|
|
114
|
+
}
|
|
115
|
+
return onInputFn(e);
|
|
116
|
+
};
|
|
117
|
+
return (_ctx, _cache) => {
|
|
118
|
+
return openBlock(), createBlock(unref(VueDatePicker), mergeProps({
|
|
119
|
+
modelValue: model.value,
|
|
120
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => model.value = $event),
|
|
121
|
+
class: [
|
|
122
|
+
{ hidden: _ctx.$attrs.hidden },
|
|
123
|
+
_ctx.$attrs.class,
|
|
124
|
+
{ "has-label": !!__props.label },
|
|
125
|
+
{ "has-error": !!__props.errorMsg },
|
|
126
|
+
`size-${_ctx.$attrs.size || "md"}`
|
|
127
|
+
]
|
|
128
|
+
}, datePickerProps.value), {
|
|
129
|
+
"dp-input": withCtx(({ value, onInput, onEnter, onTab, onFocus, onBlur, onClear }) => [
|
|
130
|
+
createVNode(_sfc_main$1, mergeProps({ "model-value": value }, inputPropsAndAttrs.value, {
|
|
131
|
+
onInput: ($event) => handleInput($event, onInput, onClear),
|
|
132
|
+
onKeydown: [
|
|
133
|
+
withKeys(($event) => onEnter($event), ["enter"]),
|
|
134
|
+
withKeys(($event) => onTab($event), ["tab"])
|
|
135
|
+
],
|
|
136
|
+
onFocus,
|
|
137
|
+
onBlur
|
|
138
|
+
}), null, 16, ["model-value", "onInput", "onKeydown", "onFocus", "onBlur"])
|
|
139
|
+
]),
|
|
140
|
+
_: 1
|
|
141
|
+
}, 16, ["modelValue", "class"]);
|
|
142
|
+
};
|
|
143
|
+
}
|
|
144
|
+
});
|
|
145
|
+
const pDatePicker = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-5f4efd82"]]);
|
|
2
146
|
export {
|
|
3
|
-
|
|
147
|
+
pDatePicker as default
|
|
4
148
|
};
|
package/dist/es/p-select-pill.js
CHANGED
|
@@ -135,7 +135,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
135
135
|
createElementVNode("div", _hoisted_2, null, 512),
|
|
136
136
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.items, (o) => {
|
|
137
137
|
return openBlock(), createElementBlock("button", {
|
|
138
|
-
key: o[_ctx.itemValue],
|
|
138
|
+
key: String(o[_ctx.itemValue]),
|
|
139
139
|
disabled: o.disabled,
|
|
140
140
|
class: normalizeClass(["z-10 duration-700", [
|
|
141
141
|
_ctx.SIZES[_ctx.size],
|
|
@@ -1,5 +1,10 @@
|
|
|
1
|
-
import { type
|
|
2
|
-
type Props = {
|
|
1
|
+
import { type RootProps } from '@vuepic/vue-datepicker';
|
|
2
|
+
type Props = Omit<RootProps, 'modelValue'> & {
|
|
3
|
+
/**
|
|
4
|
+
* The name of the date picker field.
|
|
5
|
+
* Passed to the underlying PInput component.
|
|
6
|
+
*/
|
|
7
|
+
name?: string;
|
|
3
8
|
/**
|
|
4
9
|
* Text label for the date picker field.
|
|
5
10
|
* Passed to the underlying PInput component.
|
|
@@ -15,42 +20,33 @@ type Props = {
|
|
|
15
20
|
* Passed to the underlying PInput component and adds visual indicator.
|
|
16
21
|
*/
|
|
17
22
|
required?: boolean;
|
|
18
|
-
}
|
|
23
|
+
};
|
|
19
24
|
type __VLS_Props = Props;
|
|
20
25
|
type __VLS_ModelProps = {
|
|
21
26
|
/**
|
|
22
27
|
* The selected date value (v-model).
|
|
23
|
-
* Supports
|
|
28
|
+
* Supports all VueDatePicker model types: Date, Date[], string, TimeModel, etc.
|
|
24
29
|
*/
|
|
25
|
-
modelValue?:
|
|
30
|
+
modelValue?: RootProps['modelValue'];
|
|
26
31
|
};
|
|
27
32
|
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
28
33
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
29
|
-
"update:modelValue": (value:
|
|
34
|
+
"update:modelValue": (value: import("@vuepic/vue-datepicker").ModelValue) => any;
|
|
30
35
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
31
|
-
"onUpdate:modelValue"?: ((value:
|
|
36
|
+
"onUpdate:modelValue"?: ((value: import("@vuepic/vue-datepicker").ModelValue) => any) | undefined;
|
|
32
37
|
}>, {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
};
|
|
38
|
+
name: string;
|
|
39
|
+
placeholder: string;
|
|
36
40
|
label: string;
|
|
37
41
|
required: boolean;
|
|
38
42
|
errorMsg: string;
|
|
39
|
-
|
|
40
|
-
weekStart: "0" | "1" | "2" | "3" | "4" | "5" | "6" | 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
|
41
|
-
format: string | ((date: Date) => string) | ((dates: Date[]) => string);
|
|
43
|
+
modelType: string;
|
|
42
44
|
autoApply: boolean;
|
|
43
|
-
textInput: boolean | {
|
|
44
|
-
enterSubmit?: boolean;
|
|
45
|
-
tabSubmit?: boolean;
|
|
46
|
-
openMenu?: "open" | "toggle" | boolean;
|
|
47
|
-
rangeSeparator?: string;
|
|
48
|
-
selectOnFocus?: boolean;
|
|
49
|
-
format?: string | string[] | ((value: string) => Date | null);
|
|
50
|
-
escClose?: boolean;
|
|
51
|
-
};
|
|
52
45
|
hideOffsetDates: boolean;
|
|
53
|
-
|
|
46
|
+
weekStart: string | number;
|
|
47
|
+
formats: Partial<import("@vuepic/vue-datepicker").FormatsConfig> | null;
|
|
48
|
+
timeConfig: Partial<import("@vuepic/vue-datepicker").TimeConfig>;
|
|
49
|
+
textInput: boolean | Partial<import("@vuepic/vue-datepicker").TextInputConfig>;
|
|
54
50
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
55
51
|
declare const _default: typeof __VLS_export;
|
|
56
52
|
export default _default;
|
|
@@ -145,7 +145,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
145
145
|
beforeClose(): void;
|
|
146
146
|
closing(): void;
|
|
147
147
|
closed(): void;
|
|
148
|
-
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "
|
|
148
|
+
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "before-open" | "opening" | "opened" | "before-close" | "closing" | "closed")[], "update:modelValue" | "before-open" | "opening" | "opened" | "before-close" | "closing" | "closed", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
149
149
|
/**
|
|
150
150
|
* Target element to append the drawer to.
|
|
151
151
|
* Usually 'body' for proper z-index stacking.
|
|
@@ -291,8 +291,8 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
291
291
|
disabled: boolean;
|
|
292
292
|
modelValue: boolean;
|
|
293
293
|
errorMsg: string;
|
|
294
|
-
position: string;
|
|
295
294
|
appendTo: string;
|
|
295
|
+
position: string;
|
|
296
296
|
zIndex: number;
|
|
297
297
|
drawerStyle: Record<string, any>;
|
|
298
298
|
drawerClass: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type RootProps } from '@vuepic/vue-datepicker';
|
|
2
2
|
type __VLS_Slots = {
|
|
3
3
|
/**
|
|
4
4
|
* Custom label content - overrides the label prop.
|
|
@@ -10,7 +10,7 @@ type __VLS_Slots = {
|
|
|
10
10
|
labelClasses: string;
|
|
11
11
|
}) => unknown;
|
|
12
12
|
};
|
|
13
|
-
type Props = {
|
|
13
|
+
type Props = Omit<RootProps, 'modelValue'> & {
|
|
14
14
|
/**
|
|
15
15
|
* Text label for the date picker field.
|
|
16
16
|
* If not provided, you can use the label slot instead.
|
|
@@ -26,32 +26,31 @@ type Props = {
|
|
|
26
26
|
* Adds required attribute and visual indicator.
|
|
27
27
|
*/
|
|
28
28
|
required?: boolean;
|
|
29
|
-
}
|
|
29
|
+
};
|
|
30
30
|
type __VLS_Props = Props;
|
|
31
31
|
type __VLS_ModelProps = {
|
|
32
32
|
/**
|
|
33
33
|
* The selected date value (v-model).
|
|
34
|
-
* Supports
|
|
34
|
+
* Supports all VueDatePicker model types: Date, Date[], string, TimeModel, etc.
|
|
35
35
|
*/
|
|
36
|
-
modelValue?:
|
|
36
|
+
modelValue?: RootProps['modelValue'];
|
|
37
37
|
};
|
|
38
38
|
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
39
39
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
40
|
-
"update:modelValue": (value:
|
|
40
|
+
"update:modelValue": (value: import("@vuepic/vue-datepicker").ModelValue) => any;
|
|
41
41
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
42
|
-
"onUpdate:modelValue"?: ((value:
|
|
42
|
+
"onUpdate:modelValue"?: ((value: import("@vuepic/vue-datepicker").ModelValue) => any) | undefined;
|
|
43
43
|
}>, {
|
|
44
|
-
|
|
45
|
-
input?: boolean;
|
|
46
|
-
};
|
|
44
|
+
placeholder: string;
|
|
47
45
|
label: string;
|
|
48
46
|
required: boolean;
|
|
49
47
|
errorMsg: string;
|
|
50
|
-
|
|
51
|
-
weekStart: "0" | "1" | "2" | "3" | "4" | "5" | "6" | 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
|
48
|
+
modelType: string;
|
|
52
49
|
autoApply: boolean;
|
|
53
50
|
hideOffsetDates: boolean;
|
|
54
|
-
|
|
51
|
+
weekStart: string | number;
|
|
52
|
+
timeConfig: Partial<import("@vuepic/vue-datepicker").TimeConfig>;
|
|
53
|
+
textInput: boolean | Partial<import("@vuepic/vue-datepicker").TextInputConfig>;
|
|
55
54
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
56
55
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
57
56
|
declare const _default: typeof __VLS_export;
|
|
@@ -188,12 +188,12 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
188
188
|
};
|
|
189
189
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
190
190
|
"update:modelValue": (value: boolean) => any;
|
|
191
|
-
closed: () => any;
|
|
192
191
|
"before-open": () => any;
|
|
193
192
|
opening: () => any;
|
|
194
193
|
opened: () => any;
|
|
195
194
|
"before-close": () => any;
|
|
196
195
|
closing: () => any;
|
|
196
|
+
closed: () => any;
|
|
197
197
|
"click:overlay": (event: MouseEvent) => any;
|
|
198
198
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
199
199
|
/**
|
|
@@ -358,12 +358,12 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
358
358
|
};
|
|
359
359
|
}>> & Readonly<{
|
|
360
360
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
361
|
-
onClosed?: (() => any) | undefined;
|
|
362
361
|
"onBefore-open"?: (() => any) | undefined;
|
|
363
362
|
onOpening?: (() => any) | undefined;
|
|
364
363
|
onOpened?: (() => any) | undefined;
|
|
365
364
|
"onBefore-close"?: (() => any) | undefined;
|
|
366
365
|
onClosing?: (() => any) | undefined;
|
|
366
|
+
onClosed?: (() => any) | undefined;
|
|
367
367
|
"onClick:overlay"?: ((event: MouseEvent) => any) | undefined;
|
|
368
368
|
}>, {
|
|
369
369
|
name: string;
|
|
@@ -21,8 +21,8 @@ declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {},
|
|
|
21
21
|
}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
|
|
22
22
|
"onClick:step"?: ((step: StepItem, index: number) => any) | undefined;
|
|
23
23
|
}>, {
|
|
24
|
-
activeStep: StepItem["value"];
|
|
25
24
|
steps: readonly StepItem[];
|
|
25
|
+
activeStep: StepItem["value"];
|
|
26
26
|
clickable: boolean;
|
|
27
27
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
28
28
|
declare const _default: typeof __VLS_export;
|