@quidgest/ui 0.14.12 → 0.14.14
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/manifest/components.json +3 -0
- package/dist/ui.css +1726 -211
- package/dist/ui.esm.js +11110 -1888
- package/dist/ui.js +21 -21
- package/dist/ui.min.css +1 -1
- package/dist/ui.min.js +1212 -255
- package/dist/ui.scss +278 -85
- package/esm/components/QBadge/QBadge.d.ts +2 -1
- package/esm/components/QBadge/QBadge.d.ts.map +1 -1
- package/esm/components/QBadge/QBadge.vue.js +75 -66
- package/esm/components/QBadge/index.d.ts +3 -0
- package/esm/components/QBadge/index.d.ts.map +1 -1
- package/esm/components/QBadge/types.d.ts +7 -0
- package/esm/components/QBadge/types.d.ts.map +1 -1
- package/esm/components/QBadge/types.js +5 -2
- package/esm/components/QBadgeIndicator/QBadgeIndicator.d.ts +22 -0
- package/esm/components/QBadgeIndicator/QBadgeIndicator.d.ts.map +1 -0
- package/esm/components/QBadgeIndicator/QBadgeIndicator.vue.js +43 -0
- package/esm/components/QBadgeIndicator/QBadgeIndicator.vue2.js +4 -0
- package/esm/components/QBadgeIndicator/index.d.ts +28 -0
- package/esm/components/QBadgeIndicator/index.d.ts.map +1 -0
- package/esm/components/QBadgeIndicator/index.js +6 -0
- package/esm/components/QBadgeIndicator/types.d.ts +19 -0
- package/esm/components/QBadgeIndicator/types.d.ts.map +1 -0
- package/esm/components/QCombobox/QCombobox.d.ts +32 -4
- package/esm/components/QCombobox/QCombobox.d.ts.map +1 -1
- package/esm/components/QCombobox/index.d.ts +56 -7
- package/esm/components/QCombobox/index.d.ts.map +1 -1
- package/esm/components/QDateTimePicker/QDateTimePicker.d.ts +36 -0
- package/esm/components/QDateTimePicker/QDateTimePicker.d.ts.map +1 -0
- package/esm/components/QDateTimePicker/QDateTimePicker.vue.js +168 -0
- package/esm/components/QDateTimePicker/QDateTimePicker.vue2.js +4 -0
- package/esm/components/QDateTimePicker/index.d.ts +54 -0
- package/esm/components/QDateTimePicker/index.d.ts.map +1 -0
- package/esm/components/QDateTimePicker/index.js +6 -0
- package/esm/components/QDateTimePicker/types.d.ts +93 -0
- package/esm/components/QDateTimePicker/types.d.ts.map +1 -0
- package/esm/components/QDateTimePicker/types.js +15 -0
- package/esm/components/QFileUpload/QFileUpload.d.ts +37 -0
- package/esm/components/QFileUpload/QFileUpload.d.ts.map +1 -0
- package/esm/components/QFileUpload/QFileUpload.vue.js +238 -0
- package/esm/components/QFileUpload/QFileUpload.vue2.js +4 -0
- package/esm/components/QFileUpload/index.d.ts +52 -0
- package/esm/components/QFileUpload/index.d.ts.map +1 -0
- package/esm/components/QFileUpload/index.js +6 -0
- package/esm/components/QFileUpload/types.d.ts +69 -0
- package/esm/components/QFileUpload/types.d.ts.map +1 -0
- package/esm/components/QFileUpload/types.js +28 -0
- package/esm/components/QOverlay/QOverlay.d.ts.map +1 -1
- package/esm/components/QOverlay/QOverlay.vue.js +64 -64
- package/esm/components/QTextField/QTextField.d.ts +3 -0
- package/esm/components/QTextField/QTextField.d.ts.map +1 -1
- package/esm/components/QTextField/QTextField.vue.js +51 -39
- package/esm/components/QTextField/index.d.ts +7 -0
- package/esm/components/QTextField/index.d.ts.map +1 -1
- package/esm/components/QTextField/types.d.ts +11 -0
- package/esm/components/QTextField/types.d.ts.map +1 -1
- package/esm/components/QTooltip/QTooltip.d.ts.map +1 -1
- package/esm/components/QTooltip/QTooltip.vue.js +50 -29
- package/esm/components/index.d.ts +3 -0
- package/esm/components/index.d.ts.map +1 -1
- package/esm/components/index.js +62 -56
- package/esm/composables/maska.d.ts +28 -0
- package/esm/composables/maska.d.ts.map +1 -0
- package/esm/composables/maska.js +26 -0
- package/esm/composables/useDropZone/index.d.ts +38 -0
- package/esm/composables/useDropZone/index.d.ts.map +1 -0
- package/esm/composables/useDropZone/index.js +62 -0
- package/esm/index.d.ts +3 -0
- package/esm/utils/color.js +57 -27
- package/esm/utils/date/date.d.ts +9 -0
- package/esm/utils/date/date.d.ts.map +1 -0
- package/esm/utils/date/date.js +91 -0
- package/esm/utils/date/index.d.ts +4 -0
- package/esm/utils/date/index.d.ts.map +1 -0
- package/esm/utils/date/tokens.d.ts +49 -0
- package/esm/utils/date/tokens.d.ts.map +1 -0
- package/esm/utils/date/tokens.js +243 -0
- package/esm/utils/download.d.ts +7 -0
- package/esm/utils/download.d.ts.map +1 -0
- package/esm/utils/download.js +16 -0
- package/esm/utils/string.d.ts.map +1 -1
- package/esm/utils/string.js +5 -2
- package/esm/utils/time.d.ts +36 -0
- package/esm/utils/time.d.ts.map +1 -0
- package/esm/utils/time.js +14 -0
- package/esm/vendors/@vuepic/vue-datepicker/dist/vue-datepicker.js +5148 -0
- package/esm/vendors/date-fns/_lib/addLeadingZeros.js +7 -0
- package/esm/vendors/date-fns/_lib/defaultOptions.js +7 -0
- package/esm/vendors/date-fns/_lib/format/formatters.js +583 -0
- package/esm/vendors/date-fns/_lib/format/lightFormatters.js +59 -0
- package/esm/vendors/date-fns/_lib/format/longFormatters.js +52 -0
- package/esm/vendors/date-fns/_lib/getTimezoneOffsetInMilliseconds.js +18 -0
- package/esm/vendors/date-fns/_lib/normalizeDates.js +11 -0
- package/esm/vendors/date-fns/_lib/normalizeInterval.js +8 -0
- package/esm/vendors/date-fns/_lib/protectedTokens.js +20 -0
- package/esm/vendors/date-fns/add.js +20 -0
- package/esm/vendors/date-fns/addDays.js +10 -0
- package/esm/vendors/date-fns/addHours.js +9 -0
- package/esm/vendors/date-fns/addMilliseconds.js +9 -0
- package/esm/vendors/date-fns/addMonths.js +20 -0
- package/esm/vendors/date-fns/addQuarters.js +8 -0
- package/esm/vendors/date-fns/addYears.js +8 -0
- package/esm/vendors/date-fns/compareAsc.js +9 -0
- package/esm/vendors/date-fns/constants.js +9 -0
- package/esm/vendors/date-fns/constructFrom.js +8 -0
- package/esm/vendors/date-fns/differenceInCalendarDays.js +16 -0
- package/esm/vendors/date-fns/differenceInCalendarYears.js +13 -0
- package/esm/vendors/date-fns/differenceInYears.js +17 -0
- package/esm/vendors/date-fns/eachDayOfInterval.js +17 -0
- package/esm/vendors/date-fns/eachQuarterOfInterval.js +18 -0
- package/esm/vendors/date-fns/endOfQuarter.js +9 -0
- package/esm/vendors/date-fns/endOfWeek.js +11 -0
- package/esm/vendors/date-fns/endOfYear.js +9 -0
- package/esm/vendors/date-fns/format.js +59 -0
- package/esm/vendors/date-fns/getDay.js +8 -0
- package/esm/vendors/date-fns/getDayOfYear.js +11 -0
- package/esm/vendors/date-fns/getDaysInMonth.js +10 -0
- package/esm/vendors/date-fns/getDefaultOptions.js +8 -0
- package/esm/vendors/date-fns/getHours.js +8 -0
- package/esm/vendors/date-fns/getISODay.js +9 -0
- package/esm/vendors/date-fns/getISOWeek.js +12 -0
- package/esm/vendors/date-fns/getISOWeekYear.js +15 -0
- package/esm/vendors/date-fns/getMinutes.js +8 -0
- package/esm/vendors/date-fns/getMonth.js +8 -0
- package/esm/vendors/date-fns/getQuarter.js +9 -0
- package/esm/vendors/date-fns/getSeconds.js +8 -0
- package/esm/vendors/date-fns/getWeek.js +12 -0
- package/esm/vendors/date-fns/getWeekYear.js +17 -0
- package/esm/vendors/date-fns/getYear.js +8 -0
- package/esm/vendors/date-fns/isAfter.js +8 -0
- package/esm/vendors/date-fns/isBefore.js +8 -0
- package/esm/vendors/date-fns/isDate.js +7 -0
- package/esm/vendors/date-fns/isEqual.js +8 -0
- package/esm/vendors/date-fns/isSameQuarter.js +14 -0
- package/esm/vendors/date-fns/isValid.js +9 -0
- package/esm/vendors/date-fns/locale/_lib/buildFormatLongFn.js +9 -0
- package/esm/vendors/date-fns/locale/_lib/buildLocalizeFn.js +18 -0
- package/esm/vendors/date-fns/locale/_lib/buildMatchFn.js +31 -0
- package/esm/vendors/date-fns/locale/_lib/buildMatchPatternFn.js +15 -0
- package/esm/vendors/date-fns/locale/en-US/_lib/formatDistance.js +70 -0
- package/esm/vendors/date-fns/locale/en-US/_lib/formatLong.js +33 -0
- package/esm/vendors/date-fns/locale/en-US/_lib/formatRelative.js +11 -0
- package/esm/vendors/date-fns/locale/en-US/_lib/localize.js +155 -0
- package/esm/vendors/date-fns/locale/en-US/_lib/match.js +110 -0
- package/esm/vendors/date-fns/locale/en-US.js +21 -0
- package/esm/vendors/date-fns/parse/_lib/Parser.js +22 -0
- package/esm/vendors/date-fns/parse/_lib/Setter.js +41 -0
- package/esm/vendors/date-fns/parse/_lib/constants.js +49 -0
- package/esm/vendors/date-fns/parse/_lib/parsers/AMPMMidnightParser.js +49 -0
- package/esm/vendors/date-fns/parse/_lib/parsers/AMPMParser.js +49 -0
- package/esm/vendors/date-fns/parse/_lib/parsers/DateParser.js +61 -0
- package/esm/vendors/date-fns/parse/_lib/parsers/DayOfYearParser.js +51 -0
- package/esm/vendors/date-fns/parse/_lib/parsers/DayParser.js +49 -0
- package/esm/vendors/date-fns/parse/_lib/parsers/DayPeriodParser.js +49 -0
- package/esm/vendors/date-fns/parse/_lib/parsers/EraParser.js +33 -0
- package/esm/vendors/date-fns/parse/_lib/parsers/ExtendedYearParser.js +21 -0
- package/esm/vendors/date-fns/parse/_lib/parsers/FractionOfSecondParser.js +22 -0
- package/esm/vendors/date-fns/parse/_lib/parsers/Hour0To11Parser.js +32 -0
- package/esm/vendors/date-fns/parse/_lib/parsers/Hour0to23Parser.js +32 -0
- package/esm/vendors/date-fns/parse/_lib/parsers/Hour1To24Parser.js +33 -0
- package/esm/vendors/date-fns/parse/_lib/parsers/Hour1to12Parser.js +33 -0
- package/esm/vendors/date-fns/parse/_lib/parsers/ISODayParser.js +105 -0
- package/esm/vendors/date-fns/parse/_lib/parsers/ISOTimezoneParser.js +48 -0
- package/esm/vendors/date-fns/parse/_lib/parsers/ISOTimezoneWithZParser.js +48 -0
- package/esm/vendors/date-fns/parse/_lib/parsers/ISOWeekParser.js +49 -0
- package/esm/vendors/date-fns/parse/_lib/parsers/ISOWeekYearParser.js +40 -0
- package/esm/vendors/date-fns/parse/_lib/parsers/LocalDayParser.js +80 -0
- package/esm/vendors/date-fns/parse/_lib/parsers/LocalWeekParser.js +48 -0
- package/esm/vendors/date-fns/parse/_lib/parsers/LocalWeekYearParser.js +69 -0
- package/esm/vendors/date-fns/parse/_lib/parsers/MinuteParser.js +32 -0
- package/esm/vendors/date-fns/parse/_lib/parsers/MonthParser.js +77 -0
- package/esm/vendors/date-fns/parse/_lib/parsers/QuarterParser.js +75 -0
- package/esm/vendors/date-fns/parse/_lib/parsers/SecondParser.js +32 -0
- package/esm/vendors/date-fns/parse/_lib/parsers/StandAloneLocalDayParser.js +80 -0
- package/esm/vendors/date-fns/parse/_lib/parsers/StandAloneMonthParser.js +77 -0
- package/esm/vendors/date-fns/parse/_lib/parsers/StandAloneQuarterParser.js +75 -0
- package/esm/vendors/date-fns/parse/_lib/parsers/TimestampMillisecondsParser.js +22 -0
- package/esm/vendors/date-fns/parse/_lib/parsers/TimestampSecondsParser.js +22 -0
- package/esm/vendors/date-fns/parse/_lib/parsers/YearParser.js +49 -0
- package/esm/vendors/date-fns/parse/_lib/parsers.js +67 -0
- package/esm/vendors/date-fns/parse/_lib/utils.js +103 -0
- package/esm/vendors/date-fns/parse.js +89 -0
- package/esm/vendors/date-fns/set.js +11 -0
- package/esm/vendors/date-fns/setDay.js +12 -0
- package/esm/vendors/date-fns/setHours.js +9 -0
- package/esm/vendors/date-fns/setISODay.js +11 -0
- package/esm/vendors/date-fns/setISOWeek.js +10 -0
- package/esm/vendors/date-fns/setMilliseconds.js +9 -0
- package/esm/vendors/date-fns/setMinutes.js +9 -0
- package/esm/vendors/date-fns/setMonth.js +13 -0
- package/esm/vendors/date-fns/setSeconds.js +9 -0
- package/esm/vendors/date-fns/setWeek.js +10 -0
- package/esm/vendors/date-fns/setYear.js +10 -0
- package/esm/vendors/date-fns/startOfDay.js +9 -0
- package/esm/vendors/date-fns/startOfISOWeek.js +8 -0
- package/esm/vendors/date-fns/startOfISOWeekYear.js +11 -0
- package/esm/vendors/date-fns/startOfMonth.js +9 -0
- package/esm/vendors/date-fns/startOfQuarter.js +9 -0
- package/esm/vendors/date-fns/startOfWeek.js +11 -0
- package/esm/vendors/date-fns/startOfWeekYear.js +13 -0
- package/esm/vendors/date-fns/startOfYear.js +9 -0
- package/esm/vendors/date-fns/sub.js +19 -0
- package/esm/vendors/date-fns/subDays.js +8 -0
- package/esm/vendors/date-fns/subMonths.js +8 -0
- package/esm/vendors/date-fns/subYears.js +8 -0
- package/esm/vendors/date-fns/toDate.js +8 -0
- package/esm/vendors/date-fns/transpose.js +18 -0
- package/esm/vendors/maska/dist/maska.js +179 -0
- package/package.json +5 -1
|
@@ -20,6 +20,7 @@ declare const QCombobox: {
|
|
|
20
20
|
readonly id?: string | undefined;
|
|
21
21
|
readonly placeholder?: string | undefined;
|
|
22
22
|
readonly label?: string | undefined;
|
|
23
|
+
readonly clearable?: boolean | undefined;
|
|
23
24
|
readonly size?: import('..').QFieldSize | undefined;
|
|
24
25
|
readonly maxLength?: number | undefined;
|
|
25
26
|
readonly readonly?: boolean | undefined;
|
|
@@ -28,7 +29,9 @@ declare const QCombobox: {
|
|
|
28
29
|
readonly role?: string | undefined;
|
|
29
30
|
readonly type?: string | undefined;
|
|
30
31
|
readonly class?: string | unknown[] | undefined;
|
|
32
|
+
readonly texts?: typeof import('../QTextField/types').DEFAULT_TEXTS | undefined;
|
|
31
33
|
readonly "onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
34
|
+
readonly "onClick:clear"?: ((event: Event) => any) | undefined;
|
|
32
35
|
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
33
36
|
$attrs: {
|
|
34
37
|
[x: string]: unknown;
|
|
@@ -112,17 +115,20 @@ declare const QCombobox: {
|
|
|
112
115
|
$root: import('vue').ComponentPublicInstance | null;
|
|
113
116
|
$parent: import('vue').ComponentPublicInstance | null;
|
|
114
117
|
$host: Element | null;
|
|
115
|
-
$emit: (event: "update:modelValue", value: string) => void;
|
|
118
|
+
$emit: ((event: "update:modelValue", value: string) => void) & ((event: "click:clear", event: Event) => void);
|
|
116
119
|
$el: any;
|
|
117
120
|
$options: import('vue').ComponentOptionsBase<Readonly<{
|
|
118
121
|
modelValue?: string;
|
|
119
122
|
} & import('../QTextField/types').QTextFieldProps> & Readonly<{
|
|
120
123
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
124
|
+
"onClick:clear"?: ((event: Event) => any) | undefined;
|
|
121
125
|
}>, {
|
|
122
126
|
fieldRef: import('vue').ComputedRef<HTMLElement | null | undefined>;
|
|
123
127
|
inputRef: import('vue').Ref<HTMLElement | null, HTMLElement | null>;
|
|
124
128
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
125
129
|
"update:modelValue": (value: string) => any;
|
|
130
|
+
} & {
|
|
131
|
+
"click:clear": (event: Event) => any;
|
|
126
132
|
}, string, {
|
|
127
133
|
type: string;
|
|
128
134
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
@@ -151,6 +157,7 @@ declare const QCombobox: {
|
|
|
151
157
|
modelValue?: string;
|
|
152
158
|
} & import('../QTextField/types').QTextFieldProps> & Readonly<{
|
|
153
159
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
160
|
+
"onClick:clear"?: ((event: Event) => any) | undefined;
|
|
154
161
|
}>, "type" | "fieldRef" | "inputRef"> & import('vue').ShallowUnwrapRef<{
|
|
155
162
|
fieldRef: import('vue').ComputedRef<HTMLElement | null | undefined>;
|
|
156
163
|
inputRef: import('vue').Ref<HTMLElement | null, HTMLElement | null>;
|
|
@@ -170,6 +177,7 @@ declare const QCombobox: {
|
|
|
170
177
|
readonly id?: string | undefined;
|
|
171
178
|
readonly placeholder?: string | undefined;
|
|
172
179
|
readonly label?: string | undefined;
|
|
180
|
+
readonly clearable?: boolean | undefined;
|
|
173
181
|
readonly size?: import('..').QFieldSize | undefined;
|
|
174
182
|
readonly maxLength?: number | undefined;
|
|
175
183
|
readonly readonly?: boolean | undefined;
|
|
@@ -178,7 +186,9 @@ declare const QCombobox: {
|
|
|
178
186
|
readonly role?: string | undefined;
|
|
179
187
|
readonly type?: string | undefined;
|
|
180
188
|
readonly class?: string | unknown[] | undefined;
|
|
189
|
+
readonly texts?: typeof import('../QTextField/types').DEFAULT_TEXTS | undefined;
|
|
181
190
|
readonly "onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
191
|
+
readonly "onClick:clear"?: ((event: Event) => any) | undefined;
|
|
182
192
|
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
183
193
|
$attrs: {
|
|
184
194
|
[x: string]: unknown;
|
|
@@ -262,17 +272,20 @@ declare const QCombobox: {
|
|
|
262
272
|
$root: import('vue').ComponentPublicInstance | null;
|
|
263
273
|
$parent: import('vue').ComponentPublicInstance | null;
|
|
264
274
|
$host: Element | null;
|
|
265
|
-
$emit: (event: "update:modelValue", value: string) => void;
|
|
275
|
+
$emit: ((event: "update:modelValue", value: string) => void) & ((event: "click:clear", event: Event) => void);
|
|
266
276
|
$el: any;
|
|
267
277
|
$options: import('vue').ComponentOptionsBase<Readonly<{
|
|
268
278
|
modelValue?: string;
|
|
269
279
|
} & import('../QTextField/types').QTextFieldProps> & Readonly<{
|
|
270
280
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
281
|
+
"onClick:clear"?: ((event: Event) => any) | undefined;
|
|
271
282
|
}>, {
|
|
272
283
|
fieldRef: import('vue').ComputedRef<HTMLElement | null | undefined>;
|
|
273
284
|
inputRef: import('vue').Ref<HTMLElement | null, HTMLElement | null>;
|
|
274
285
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
275
286
|
"update:modelValue": (value: string) => any;
|
|
287
|
+
} & {
|
|
288
|
+
"click:clear": (event: Event) => any;
|
|
276
289
|
}, string, {
|
|
277
290
|
type: string;
|
|
278
291
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
@@ -301,6 +314,7 @@ declare const QCombobox: {
|
|
|
301
314
|
modelValue?: string;
|
|
302
315
|
} & import('../QTextField/types').QTextFieldProps> & Readonly<{
|
|
303
316
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
317
|
+
"onClick:clear"?: ((event: Event) => any) | undefined;
|
|
304
318
|
}>, "type" | "fieldRef" | "inputRef"> & import('vue').ShallowUnwrapRef<{
|
|
305
319
|
fieldRef: import('vue').ComputedRef<HTMLElement | null | undefined>;
|
|
306
320
|
inputRef: import('vue').Ref<HTMLElement | null, HTMLElement | null>;
|
|
@@ -341,6 +355,7 @@ declare const QCombobox: {
|
|
|
341
355
|
readonly id?: string | undefined;
|
|
342
356
|
readonly placeholder?: string | undefined;
|
|
343
357
|
readonly label?: string | undefined;
|
|
358
|
+
readonly clearable?: boolean | undefined;
|
|
344
359
|
readonly size?: import('..').QFieldSize | undefined;
|
|
345
360
|
readonly maxLength?: number | undefined;
|
|
346
361
|
readonly readonly?: boolean | undefined;
|
|
@@ -349,7 +364,9 @@ declare const QCombobox: {
|
|
|
349
364
|
readonly role?: string | undefined;
|
|
350
365
|
readonly type?: string | undefined;
|
|
351
366
|
readonly class?: string | unknown[] | undefined;
|
|
367
|
+
readonly texts?: typeof import('../QTextField/types').DEFAULT_TEXTS | undefined;
|
|
352
368
|
readonly "onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
369
|
+
readonly "onClick:clear"?: ((event: Event) => any) | undefined;
|
|
353
370
|
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
354
371
|
$attrs: {
|
|
355
372
|
[x: string]: unknown;
|
|
@@ -433,17 +450,20 @@ declare const QCombobox: {
|
|
|
433
450
|
$root: import('vue').ComponentPublicInstance | null;
|
|
434
451
|
$parent: import('vue').ComponentPublicInstance | null;
|
|
435
452
|
$host: Element | null;
|
|
436
|
-
$emit: (event: "update:modelValue", value: string) => void;
|
|
453
|
+
$emit: ((event: "update:modelValue", value: string) => void) & ((event: "click:clear", event: Event) => void);
|
|
437
454
|
$el: any;
|
|
438
455
|
$options: import('vue').ComponentOptionsBase<Readonly<{
|
|
439
456
|
modelValue?: string;
|
|
440
457
|
} & import('../QTextField/types').QTextFieldProps> & Readonly<{
|
|
441
458
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
459
|
+
"onClick:clear"?: ((event: Event) => any) | undefined;
|
|
442
460
|
}>, {
|
|
443
461
|
fieldRef: import('vue').ComputedRef<HTMLElement | null | undefined>;
|
|
444
462
|
inputRef: import('vue').Ref<HTMLElement | null, HTMLElement | null>;
|
|
445
463
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
446
464
|
"update:modelValue": (value: string) => any;
|
|
465
|
+
} & {
|
|
466
|
+
"click:clear": (event: Event) => any;
|
|
447
467
|
}, string, {
|
|
448
468
|
type: string;
|
|
449
469
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
@@ -472,6 +492,7 @@ declare const QCombobox: {
|
|
|
472
492
|
modelValue?: string;
|
|
473
493
|
} & import('../QTextField/types').QTextFieldProps> & Readonly<{
|
|
474
494
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
495
|
+
"onClick:clear"?: ((event: Event) => any) | undefined;
|
|
475
496
|
}>, "type" | "fieldRef" | "inputRef"> & import('vue').ShallowUnwrapRef<{
|
|
476
497
|
fieldRef: import('vue').ComputedRef<HTMLElement | null | undefined>;
|
|
477
498
|
inputRef: import('vue').Ref<HTMLElement | null, HTMLElement | null>;
|
|
@@ -739,6 +760,7 @@ declare const QCombobox: {
|
|
|
739
760
|
readonly id?: string | undefined;
|
|
740
761
|
readonly placeholder?: string | undefined;
|
|
741
762
|
readonly label?: string | undefined;
|
|
763
|
+
readonly clearable?: boolean | undefined;
|
|
742
764
|
readonly size?: import('..').QFieldSize | undefined;
|
|
743
765
|
readonly maxLength?: number | undefined;
|
|
744
766
|
readonly readonly?: boolean | undefined;
|
|
@@ -747,7 +769,9 @@ declare const QCombobox: {
|
|
|
747
769
|
readonly role?: string | undefined;
|
|
748
770
|
readonly type?: string | undefined;
|
|
749
771
|
readonly class?: string | unknown[] | undefined;
|
|
772
|
+
readonly texts?: typeof import('../QTextField/types').DEFAULT_TEXTS | undefined;
|
|
750
773
|
readonly "onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
774
|
+
readonly "onClick:clear"?: ((event: Event) => any) | undefined;
|
|
751
775
|
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
752
776
|
$attrs: {
|
|
753
777
|
[x: string]: unknown;
|
|
@@ -831,17 +855,20 @@ declare const QCombobox: {
|
|
|
831
855
|
$root: import('vue').ComponentPublicInstance | null;
|
|
832
856
|
$parent: import('vue').ComponentPublicInstance | null;
|
|
833
857
|
$host: Element | null;
|
|
834
|
-
$emit: (event: "update:modelValue", value: string) => void;
|
|
858
|
+
$emit: ((event: "update:modelValue", value: string) => void) & ((event: "click:clear", event: Event) => void);
|
|
835
859
|
$el: any;
|
|
836
860
|
$options: import('vue').ComponentOptionsBase<Readonly<{
|
|
837
861
|
modelValue?: string;
|
|
838
862
|
} & import('../QTextField/types').QTextFieldProps> & Readonly<{
|
|
839
863
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
864
|
+
"onClick:clear"?: ((event: Event) => any) | undefined;
|
|
840
865
|
}>, {
|
|
841
866
|
fieldRef: import('vue').ComputedRef<HTMLElement | null | undefined>;
|
|
842
867
|
inputRef: import('vue').Ref<HTMLElement | null, HTMLElement | null>;
|
|
843
868
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
844
869
|
"update:modelValue": (value: string) => any;
|
|
870
|
+
} & {
|
|
871
|
+
"click:clear": (event: Event) => any;
|
|
845
872
|
}, string, {
|
|
846
873
|
type: string;
|
|
847
874
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
@@ -870,6 +897,7 @@ declare const QCombobox: {
|
|
|
870
897
|
modelValue?: string;
|
|
871
898
|
} & import('../QTextField/types').QTextFieldProps> & Readonly<{
|
|
872
899
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
900
|
+
"onClick:clear"?: ((event: Event) => any) | undefined;
|
|
873
901
|
}>, "type" | "fieldRef" | "inputRef"> & import('vue').ShallowUnwrapRef<{
|
|
874
902
|
fieldRef: import('vue').ComputedRef<HTMLElement | null | undefined>;
|
|
875
903
|
inputRef: import('vue').Ref<HTMLElement | null, HTMLElement | null>;
|
|
@@ -889,6 +917,7 @@ declare const QCombobox: {
|
|
|
889
917
|
readonly id?: string | undefined;
|
|
890
918
|
readonly placeholder?: string | undefined;
|
|
891
919
|
readonly label?: string | undefined;
|
|
920
|
+
readonly clearable?: boolean | undefined;
|
|
892
921
|
readonly size?: import('..').QFieldSize | undefined;
|
|
893
922
|
readonly maxLength?: number | undefined;
|
|
894
923
|
readonly readonly?: boolean | undefined;
|
|
@@ -897,7 +926,9 @@ declare const QCombobox: {
|
|
|
897
926
|
readonly role?: string | undefined;
|
|
898
927
|
readonly type?: string | undefined;
|
|
899
928
|
readonly class?: string | unknown[] | undefined;
|
|
929
|
+
readonly texts?: typeof import('../QTextField/types').DEFAULT_TEXTS | undefined;
|
|
900
930
|
readonly "onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
931
|
+
readonly "onClick:clear"?: ((event: Event) => any) | undefined;
|
|
901
932
|
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
902
933
|
$attrs: {
|
|
903
934
|
[x: string]: unknown;
|
|
@@ -981,17 +1012,20 @@ declare const QCombobox: {
|
|
|
981
1012
|
$root: import('vue').ComponentPublicInstance | null;
|
|
982
1013
|
$parent: import('vue').ComponentPublicInstance | null;
|
|
983
1014
|
$host: Element | null;
|
|
984
|
-
$emit: (event: "update:modelValue", value: string) => void;
|
|
1015
|
+
$emit: ((event: "update:modelValue", value: string) => void) & ((event: "click:clear", event: Event) => void);
|
|
985
1016
|
$el: any;
|
|
986
1017
|
$options: import('vue').ComponentOptionsBase<Readonly<{
|
|
987
1018
|
modelValue?: string;
|
|
988
1019
|
} & import('../QTextField/types').QTextFieldProps> & Readonly<{
|
|
989
1020
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
1021
|
+
"onClick:clear"?: ((event: Event) => any) | undefined;
|
|
990
1022
|
}>, {
|
|
991
1023
|
fieldRef: import('vue').ComputedRef<HTMLElement | null | undefined>;
|
|
992
1024
|
inputRef: import('vue').Ref<HTMLElement | null, HTMLElement | null>;
|
|
993
1025
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
994
1026
|
"update:modelValue": (value: string) => any;
|
|
1027
|
+
} & {
|
|
1028
|
+
"click:clear": (event: Event) => any;
|
|
995
1029
|
}, string, {
|
|
996
1030
|
type: string;
|
|
997
1031
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
@@ -1020,6 +1054,7 @@ declare const QCombobox: {
|
|
|
1020
1054
|
modelValue?: string;
|
|
1021
1055
|
} & import('../QTextField/types').QTextFieldProps> & Readonly<{
|
|
1022
1056
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
1057
|
+
"onClick:clear"?: ((event: Event) => any) | undefined;
|
|
1023
1058
|
}>, "type" | "fieldRef" | "inputRef"> & import('vue').ShallowUnwrapRef<{
|
|
1024
1059
|
fieldRef: import('vue').ComputedRef<HTMLElement | null | undefined>;
|
|
1025
1060
|
inputRef: import('vue').Ref<HTMLElement | null, HTMLElement | null>;
|
|
@@ -1067,6 +1102,7 @@ declare const QCombobox: {
|
|
|
1067
1102
|
readonly id?: string | undefined;
|
|
1068
1103
|
readonly placeholder?: string | undefined;
|
|
1069
1104
|
readonly label?: string | undefined;
|
|
1105
|
+
readonly clearable?: boolean | undefined;
|
|
1070
1106
|
readonly size?: import('..').QFieldSize | undefined;
|
|
1071
1107
|
readonly maxLength?: number | undefined;
|
|
1072
1108
|
readonly readonly?: boolean | undefined;
|
|
@@ -1075,7 +1111,9 @@ declare const QCombobox: {
|
|
|
1075
1111
|
readonly role?: string | undefined;
|
|
1076
1112
|
readonly type?: string | undefined;
|
|
1077
1113
|
readonly class?: string | unknown[] | undefined;
|
|
1114
|
+
readonly texts?: typeof import('../QTextField/types').DEFAULT_TEXTS | undefined;
|
|
1078
1115
|
readonly "onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
1116
|
+
readonly "onClick:clear"?: ((event: Event) => any) | undefined;
|
|
1079
1117
|
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
1080
1118
|
$attrs: {
|
|
1081
1119
|
[x: string]: unknown;
|
|
@@ -1159,17 +1197,20 @@ declare const QCombobox: {
|
|
|
1159
1197
|
$root: import('vue').ComponentPublicInstance | null;
|
|
1160
1198
|
$parent: import('vue').ComponentPublicInstance | null;
|
|
1161
1199
|
$host: Element | null;
|
|
1162
|
-
$emit: (event: "update:modelValue", value: string) => void;
|
|
1200
|
+
$emit: ((event: "update:modelValue", value: string) => void) & ((event: "click:clear", event: Event) => void);
|
|
1163
1201
|
$el: any;
|
|
1164
1202
|
$options: import('vue').ComponentOptionsBase<Readonly<{
|
|
1165
1203
|
modelValue?: string;
|
|
1166
1204
|
} & import('../QTextField/types').QTextFieldProps> & Readonly<{
|
|
1167
1205
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
1206
|
+
"onClick:clear"?: ((event: Event) => any) | undefined;
|
|
1168
1207
|
}>, {
|
|
1169
1208
|
fieldRef: import('vue').ComputedRef<HTMLElement | null | undefined>;
|
|
1170
1209
|
inputRef: import('vue').Ref<HTMLElement | null, HTMLElement | null>;
|
|
1171
1210
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
1172
1211
|
"update:modelValue": (value: string) => any;
|
|
1212
|
+
} & {
|
|
1213
|
+
"click:clear": (event: Event) => any;
|
|
1173
1214
|
}, string, {
|
|
1174
1215
|
type: string;
|
|
1175
1216
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
@@ -1198,6 +1239,7 @@ declare const QCombobox: {
|
|
|
1198
1239
|
modelValue?: string;
|
|
1199
1240
|
} & import('../QTextField/types').QTextFieldProps> & Readonly<{
|
|
1200
1241
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
1242
|
+
"onClick:clear"?: ((event: Event) => any) | undefined;
|
|
1201
1243
|
}>, "type" | "fieldRef" | "inputRef"> & import('vue').ShallowUnwrapRef<{
|
|
1202
1244
|
fieldRef: import('vue').ComputedRef<HTMLElement | null | undefined>;
|
|
1203
1245
|
inputRef: import('vue').Ref<HTMLElement | null, HTMLElement | null>;
|
|
@@ -1217,6 +1259,7 @@ declare const QCombobox: {
|
|
|
1217
1259
|
readonly id?: string | undefined;
|
|
1218
1260
|
readonly placeholder?: string | undefined;
|
|
1219
1261
|
readonly label?: string | undefined;
|
|
1262
|
+
readonly clearable?: boolean | undefined;
|
|
1220
1263
|
readonly size?: import('..').QFieldSize | undefined;
|
|
1221
1264
|
readonly maxLength?: number | undefined;
|
|
1222
1265
|
readonly readonly?: boolean | undefined;
|
|
@@ -1225,7 +1268,9 @@ declare const QCombobox: {
|
|
|
1225
1268
|
readonly role?: string | undefined;
|
|
1226
1269
|
readonly type?: string | undefined;
|
|
1227
1270
|
readonly class?: string | unknown[] | undefined;
|
|
1271
|
+
readonly texts?: typeof import('../QTextField/types').DEFAULT_TEXTS | undefined;
|
|
1228
1272
|
readonly "onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
1273
|
+
readonly "onClick:clear"?: ((event: Event) => any) | undefined;
|
|
1229
1274
|
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
1230
1275
|
$attrs: {
|
|
1231
1276
|
[x: string]: unknown;
|
|
@@ -1309,17 +1354,20 @@ declare const QCombobox: {
|
|
|
1309
1354
|
$root: import('vue').ComponentPublicInstance | null;
|
|
1310
1355
|
$parent: import('vue').ComponentPublicInstance | null;
|
|
1311
1356
|
$host: Element | null;
|
|
1312
|
-
$emit: (event: "update:modelValue", value: string) => void;
|
|
1357
|
+
$emit: ((event: "update:modelValue", value: string) => void) & ((event: "click:clear", event: Event) => void);
|
|
1313
1358
|
$el: any;
|
|
1314
1359
|
$options: import('vue').ComponentOptionsBase<Readonly<{
|
|
1315
1360
|
modelValue?: string;
|
|
1316
1361
|
} & import('../QTextField/types').QTextFieldProps> & Readonly<{
|
|
1317
1362
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
1363
|
+
"onClick:clear"?: ((event: Event) => any) | undefined;
|
|
1318
1364
|
}>, {
|
|
1319
1365
|
fieldRef: import('vue').ComputedRef<HTMLElement | null | undefined>;
|
|
1320
1366
|
inputRef: import('vue').Ref<HTMLElement | null, HTMLElement | null>;
|
|
1321
1367
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
1322
1368
|
"update:modelValue": (value: string) => any;
|
|
1369
|
+
} & {
|
|
1370
|
+
"click:clear": (event: Event) => any;
|
|
1323
1371
|
}, string, {
|
|
1324
1372
|
type: string;
|
|
1325
1373
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
@@ -1348,6 +1396,7 @@ declare const QCombobox: {
|
|
|
1348
1396
|
modelValue?: string;
|
|
1349
1397
|
} & import('../QTextField/types').QTextFieldProps> & Readonly<{
|
|
1350
1398
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
1399
|
+
"onClick:clear"?: ((event: Event) => any) | undefined;
|
|
1351
1400
|
}>, "type" | "fieldRef" | "inputRef"> & import('vue').ShallowUnwrapRef<{
|
|
1352
1401
|
fieldRef: import('vue').ComputedRef<HTMLElement | null | undefined>;
|
|
1353
1402
|
inputRef: import('vue').Ref<HTMLElement | null, HTMLElement | null>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QCombobox/index.ts"],"names":[],"mappings":"AAMA,QAAA,MAAM,SAAS
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QCombobox/index.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { DEFAULT_ICONS, DEFAULT_TEXTS, QDateTimePickerProps } from './types';
|
|
2
|
+
type __VLS_Props = QDateTimePickerProps;
|
|
3
|
+
type __VLS_PublicProps = {
|
|
4
|
+
modelValue?: Date | string;
|
|
5
|
+
} & __VLS_Props;
|
|
6
|
+
declare function __VLS_template(): {
|
|
7
|
+
attrs: Partial<{}>;
|
|
8
|
+
slots: {
|
|
9
|
+
extras?(_: {}): any;
|
|
10
|
+
};
|
|
11
|
+
refs: {
|
|
12
|
+
inputRef: HTMLInputElement;
|
|
13
|
+
};
|
|
14
|
+
rootEl: any;
|
|
15
|
+
};
|
|
16
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
17
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
18
|
+
"update:modelValue": (value: string | Date) => any;
|
|
19
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
20
|
+
"onUpdate:modelValue"?: ((value: string | Date) => any) | undefined;
|
|
21
|
+
}>, {
|
|
22
|
+
icons: typeof DEFAULT_ICONS;
|
|
23
|
+
texts: typeof DEFAULT_TEXTS;
|
|
24
|
+
locale: string;
|
|
25
|
+
format: string;
|
|
26
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
27
|
+
inputRef: HTMLInputElement;
|
|
28
|
+
}, any>;
|
|
29
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
30
|
+
export default _default;
|
|
31
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
32
|
+
new (): {
|
|
33
|
+
$slots: S;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
//# sourceMappingURL=QDateTimePicker.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"QDateTimePicker.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QDateTimePicker/QDateTimePicker.vue"],"names":[],"mappings":"AAmEA;AA2MC,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AActD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAA;AAQnD,KAAK,WAAW,GAAG,oBAAoB,CAAC;AAsHzC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,IAAI,GAAG,MAAM,CAAC;CAC1B,GAAG,WAAW,CAAC;AAKhB,iBAAS,cAAc;WAoKT,OAAO,IAA6B;;wBAZrB,GAAG;;;;;;EAiB/B;AA0BD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;OASnB,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"}
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
import { defineComponent as F, mergeModels as U, useModel as g, computed as t, ref as w, createBlock as D, openBlock as O, unref as r, normalizeClass as P, createSlots as E, withCtx as n, createVNode as s, createElementVNode as N, mergeProps as y, renderSlot as Q } from "vue";
|
|
2
|
+
import { DEFAULT_TEXTS as H, DEFAULT_ICONS as I } from "./types.js";
|
|
3
|
+
import { QClearButton as Z } from "../__internal__/QClearButton/index.js";
|
|
4
|
+
import { QField as $ } from "../QField/index.js";
|
|
5
|
+
import { QIcon as K } from "../QIcon/index.js";
|
|
6
|
+
import L from "../../vendors/@vuepic/vue-datepicker/dist/vue-datepicker.js";
|
|
7
|
+
import { useMaska as R } from "../../composables/maska.js";
|
|
8
|
+
import { convertDatePatternToMask as X } from "../../utils/date/date.js";
|
|
9
|
+
import { isTimeOnlyFormat as j } from "../../utils/date/tokens.js";
|
|
10
|
+
import { formatUsesTime as G, formatUsesSeconds as W, uses12HourFormat as J } from "../../utils/time.js";
|
|
11
|
+
import { useTheme as Y } from "../../composables/theme.js";
|
|
12
|
+
const ee = ["value", "placeholder", "disabled", "readonly", "required", "onInput", "onBlur", "onFocus", "onKeypress", "onKeydown", "onPaste"], pe = /* @__PURE__ */ F({
|
|
13
|
+
inheritAttrs: !1,
|
|
14
|
+
__name: "QDateTimePicker",
|
|
15
|
+
props: /* @__PURE__ */ U({
|
|
16
|
+
id: {},
|
|
17
|
+
label: {},
|
|
18
|
+
size: {},
|
|
19
|
+
readonly: { type: Boolean },
|
|
20
|
+
disabled: { type: Boolean },
|
|
21
|
+
required: { type: Boolean },
|
|
22
|
+
format: { default: "dd/MM/yyyy HH:mm" },
|
|
23
|
+
minTime: {},
|
|
24
|
+
maxTime: {},
|
|
25
|
+
locale: { default: "en-US" },
|
|
26
|
+
placeholder: {},
|
|
27
|
+
inline: { type: Boolean },
|
|
28
|
+
class: {},
|
|
29
|
+
icons: { default: () => I },
|
|
30
|
+
texts: { default: () => H }
|
|
31
|
+
}, {
|
|
32
|
+
modelValue: {},
|
|
33
|
+
modelModifiers: {}
|
|
34
|
+
}),
|
|
35
|
+
emits: ["update:modelValue"],
|
|
36
|
+
setup(d) {
|
|
37
|
+
const e = d, m = g(d, "modelValue"), u = t({
|
|
38
|
+
get: () => m.value,
|
|
39
|
+
set: (o) => m.value = o || void 0
|
|
40
|
+
}), k = t(() => i.value ? "format" : void 0), b = {
|
|
41
|
+
closeOnAutoApply: !1
|
|
42
|
+
}, T = Y(), v = t(() => T.current.value.mode === "dark"), x = t(() => G(e.format)), h = t(() => W(e.format)), i = t(() => j(e.format)), z = t(() => J(e.format)), _ = t(() => c(e.minTime)), A = t(() => c(e.maxTime)), M = t(() => i.value ? e.icons.clock : e.icons.calendar), q = t(() => ({
|
|
43
|
+
mask: X(e.format),
|
|
44
|
+
tokens: {
|
|
45
|
+
// Default tokens
|
|
46
|
+
"#": { pattern: /\d/ },
|
|
47
|
+
// Any digit (0-9)
|
|
48
|
+
X: { pattern: /\d/ },
|
|
49
|
+
// Any alphanumeric character (A-Z, a-z, 0-9)
|
|
50
|
+
A: { pattern: /[A-Z]/ },
|
|
51
|
+
// Any uppercase letter (A-Z)
|
|
52
|
+
a: { pattern: /[a-z]/ },
|
|
53
|
+
// Any uppercase letter (A-Z)
|
|
54
|
+
"!": { pattern: /[a-z]/ },
|
|
55
|
+
// Any letter (A-Z, a-z)
|
|
56
|
+
"*": { pattern: /[a-z]/ },
|
|
57
|
+
// Any character (including symbols)
|
|
58
|
+
// Custom tokens
|
|
59
|
+
N: { pattern: /\d/, multiple: !0 },
|
|
60
|
+
// One or more digits (variable length)
|
|
61
|
+
W: { pattern: /[A-Za-z]/, multiple: !0 },
|
|
62
|
+
// Letters only (word; no spaces)
|
|
63
|
+
S: { pattern: /[A-Za-z\s]/, multiple: !0 },
|
|
64
|
+
// Letters and spaces (sentence)
|
|
65
|
+
n: { pattern: /\d/, optional: !0 }
|
|
66
|
+
// Zero or more digits
|
|
67
|
+
},
|
|
68
|
+
eager: !0
|
|
69
|
+
// Show static characters before the user types them
|
|
70
|
+
})), p = w();
|
|
71
|
+
R(p, q);
|
|
72
|
+
function c(o) {
|
|
73
|
+
if (!o) return;
|
|
74
|
+
const a = o.split(":");
|
|
75
|
+
return {
|
|
76
|
+
hours: a[0],
|
|
77
|
+
minutes: a[1],
|
|
78
|
+
seconds: a[2]
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
return (o, a) => (O(), D(r($), {
|
|
82
|
+
id: e.id,
|
|
83
|
+
class: P(e.class),
|
|
84
|
+
label: e.label,
|
|
85
|
+
readonly: e.readonly,
|
|
86
|
+
disabled: e.disabled,
|
|
87
|
+
required: e.required,
|
|
88
|
+
size: e.size
|
|
89
|
+
}, E({
|
|
90
|
+
prepend: n(() => [
|
|
91
|
+
s(
|
|
92
|
+
r(K),
|
|
93
|
+
y({ class: "q-date-time-picker__input-icon" }, M.value),
|
|
94
|
+
null,
|
|
95
|
+
16
|
|
96
|
+
/* FULL_PROPS */
|
|
97
|
+
)
|
|
98
|
+
]),
|
|
99
|
+
default: n(() => [
|
|
100
|
+
s(r(L), {
|
|
101
|
+
modelValue: u.value,
|
|
102
|
+
"onUpdate:modelValue": a[0] || (a[0] = (l) => u.value = l),
|
|
103
|
+
"model-type": k.value,
|
|
104
|
+
"min-time": _.value,
|
|
105
|
+
"max-time": A.value,
|
|
106
|
+
disabled: e.disabled,
|
|
107
|
+
readonly: e.readonly,
|
|
108
|
+
format: e.format,
|
|
109
|
+
is24: !z.value,
|
|
110
|
+
locale: e.locale,
|
|
111
|
+
"enable-time-picker": x.value,
|
|
112
|
+
"enable-seconds": h.value,
|
|
113
|
+
"time-picker": i.value,
|
|
114
|
+
config: b,
|
|
115
|
+
teleport: !e.inline,
|
|
116
|
+
offset: 16,
|
|
117
|
+
dark: v.value,
|
|
118
|
+
"text-input": "",
|
|
119
|
+
"hide-input-icon": "",
|
|
120
|
+
clearable: "",
|
|
121
|
+
"auto-apply": ""
|
|
122
|
+
}, {
|
|
123
|
+
"dp-input": n(({ value: l, onInput: B, onBlur: V, onFocus: C, onKeypress: f, onPaste: S }) => [
|
|
124
|
+
N("input", y({
|
|
125
|
+
ref_key: "inputRef",
|
|
126
|
+
ref: p,
|
|
127
|
+
"data-test-id": "dp-input",
|
|
128
|
+
class: "dp__input",
|
|
129
|
+
type: "text",
|
|
130
|
+
value: l,
|
|
131
|
+
placeholder: e.placeholder,
|
|
132
|
+
disabled: e.disabled,
|
|
133
|
+
readonly: e.readonly,
|
|
134
|
+
required: e.required,
|
|
135
|
+
onInput: B,
|
|
136
|
+
onBlur: V,
|
|
137
|
+
onFocus: C,
|
|
138
|
+
onKeypress: f,
|
|
139
|
+
onKeydown: f,
|
|
140
|
+
onPaste: S
|
|
141
|
+
}, o.$attrs), null, 16, ee)
|
|
142
|
+
]),
|
|
143
|
+
"clear-icon": n(({ clear: l }) => [
|
|
144
|
+
s(r(Z), {
|
|
145
|
+
texts: e.texts,
|
|
146
|
+
onClick: l
|
|
147
|
+
}, null, 8, ["texts", "onClick"])
|
|
148
|
+
]),
|
|
149
|
+
_: 1
|
|
150
|
+
/* STABLE */
|
|
151
|
+
}, 8, ["modelValue", "model-type", "min-time", "max-time", "disabled", "readonly", "format", "is24", "locale", "enable-time-picker", "enable-seconds", "time-picker", "teleport", "dark"])
|
|
152
|
+
]),
|
|
153
|
+
_: 2
|
|
154
|
+
/* DYNAMIC */
|
|
155
|
+
}, [
|
|
156
|
+
o.$slots.extras ? {
|
|
157
|
+
name: "extras",
|
|
158
|
+
fn: n(() => [
|
|
159
|
+
Q(o.$slots, "extras")
|
|
160
|
+
]),
|
|
161
|
+
key: "0"
|
|
162
|
+
} : void 0
|
|
163
|
+
]), 1032, ["id", "class", "label", "readonly", "disabled", "required", "size"]));
|
|
164
|
+
}
|
|
165
|
+
});
|
|
166
|
+
export {
|
|
167
|
+
pe as default
|
|
168
|
+
};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { QDateTimePickerProps } from './types';
|
|
2
|
+
declare const QDateTimePicker: {
|
|
3
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
4
|
+
modelValue?: Date | string;
|
|
5
|
+
} & QDateTimePickerProps> & Readonly<{
|
|
6
|
+
"onUpdate:modelValue"?: ((value: string | Date) => any) | undefined;
|
|
7
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
8
|
+
"update:modelValue": (value: string | Date) => any;
|
|
9
|
+
}, import('vue').PublicProps, {
|
|
10
|
+
icons: typeof import('./types').DEFAULT_ICONS;
|
|
11
|
+
texts: typeof import('./types').DEFAULT_TEXTS;
|
|
12
|
+
locale: string;
|
|
13
|
+
format: string;
|
|
14
|
+
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
15
|
+
inputRef: HTMLInputElement;
|
|
16
|
+
}, any, import('vue').ComponentProvideOptions, {
|
|
17
|
+
P: {};
|
|
18
|
+
B: {};
|
|
19
|
+
D: {};
|
|
20
|
+
C: {};
|
|
21
|
+
M: {};
|
|
22
|
+
Defaults: {};
|
|
23
|
+
}, Readonly<{
|
|
24
|
+
modelValue?: Date | string;
|
|
25
|
+
} & QDateTimePickerProps> & Readonly<{
|
|
26
|
+
"onUpdate:modelValue"?: ((value: string | Date) => any) | undefined;
|
|
27
|
+
}>, {}, {}, {}, {}, {
|
|
28
|
+
icons: typeof import('./types').DEFAULT_ICONS;
|
|
29
|
+
texts: typeof import('./types').DEFAULT_TEXTS;
|
|
30
|
+
locale: string;
|
|
31
|
+
format: string;
|
|
32
|
+
}>;
|
|
33
|
+
__isFragment?: never;
|
|
34
|
+
__isTeleport?: never;
|
|
35
|
+
__isSuspense?: never;
|
|
36
|
+
} & import('vue').ComponentOptionsBase<Readonly<{
|
|
37
|
+
modelValue?: Date | string;
|
|
38
|
+
} & QDateTimePickerProps> & Readonly<{
|
|
39
|
+
"onUpdate:modelValue"?: ((value: string | Date) => any) | undefined;
|
|
40
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
41
|
+
"update:modelValue": (value: string | Date) => any;
|
|
42
|
+
}, string, {
|
|
43
|
+
icons: typeof import('./types').DEFAULT_ICONS;
|
|
44
|
+
texts: typeof import('./types').DEFAULT_TEXTS;
|
|
45
|
+
locale: string;
|
|
46
|
+
format: string;
|
|
47
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
48
|
+
$slots: {
|
|
49
|
+
extras?(_: {}): any;
|
|
50
|
+
};
|
|
51
|
+
});
|
|
52
|
+
export { QDateTimePicker };
|
|
53
|
+
export type { QDateTimePickerProps };
|
|
54
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QDateTimePicker/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAA;AAKnD,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAoC,CAAA;AAGzD,OAAO,EAAE,eAAe,EAAE,CAAA;AAG1B,YAAY,EAAE,oBAAoB,EAAE,CAAA"}
|