@quidgest/ui 0.14.12 → 0.14.13
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 +1647 -124
- package/dist/ui.esm.js +11101 -1899
- package/dist/ui.js +29 -29
- package/dist/ui.min.css +1 -1
- package/dist/ui.min.js +1210 -255
- package/dist/ui.scss +208 -7
- 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/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/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
|
@@ -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"}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { QFieldSize } from '../QField';
|
|
2
|
+
export type QDateTimePickerProps = {
|
|
3
|
+
/**
|
|
4
|
+
* The field unique identifier.
|
|
5
|
+
*/
|
|
6
|
+
id?: string;
|
|
7
|
+
/**
|
|
8
|
+
* The label of the input.
|
|
9
|
+
*/
|
|
10
|
+
label?: string;
|
|
11
|
+
/**
|
|
12
|
+
* The size category of the field.
|
|
13
|
+
*/
|
|
14
|
+
size?: QFieldSize;
|
|
15
|
+
/**
|
|
16
|
+
* If set to true, the control is read-only.
|
|
17
|
+
*/
|
|
18
|
+
readonly?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* If set to true, the control is disabled.
|
|
21
|
+
*/
|
|
22
|
+
disabled?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* If set to true, an asterisk (*) is displayed
|
|
25
|
+
* to indicate that the field is required.
|
|
26
|
+
*/
|
|
27
|
+
required?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* The format prop determines the display format of the date and time in the picker.
|
|
30
|
+
* It defines how the selected date and time will be shown to the user.
|
|
31
|
+
*
|
|
32
|
+
* The format follows a pattern similar to the Intl.DateTimeFormat or date-fns formatting conventions.
|
|
33
|
+
* Common examples include:
|
|
34
|
+
*
|
|
35
|
+
* - dd/MM/yyyy: Day, Month, Year (e.g., "06/02/2025")
|
|
36
|
+
* - MM/dd/yyyy: Month, Day, Year (e.g., "02/06/2025")
|
|
37
|
+
* - yyyy-MM-dd: ISO 8601 format (e.g., "2025-02-06")
|
|
38
|
+
* - hh:mm a: 12-hour format with AM/PM (e.g., "08:45 PM")
|
|
39
|
+
* - HH:mm:ss: 24-hour format with seconds (e.g., "20:45:30")
|
|
40
|
+
*
|
|
41
|
+
* @type {string}
|
|
42
|
+
* @default 'yyyy-MM-dd' (ISO format)
|
|
43
|
+
* @example 'dd/MM/yyyy'
|
|
44
|
+
* @example 'hh:mm a'
|
|
45
|
+
*/
|
|
46
|
+
format?: string;
|
|
47
|
+
/**
|
|
48
|
+
* The minimum time allowed in HH:mm format.
|
|
49
|
+
*/
|
|
50
|
+
minTime?: string;
|
|
51
|
+
/**
|
|
52
|
+
* The maximum time allowed in HH:mm format.
|
|
53
|
+
*/
|
|
54
|
+
maxTime?: string;
|
|
55
|
+
/**
|
|
56
|
+
* The datepicker locale.
|
|
57
|
+
* Datepicker will use built in javascript locale formatter to extract month and weekday names.
|
|
58
|
+
* https://vue3datepicker.com/props/localization/#locale
|
|
59
|
+
*/
|
|
60
|
+
locale?: string;
|
|
61
|
+
/**
|
|
62
|
+
* The placeholder text for the control.
|
|
63
|
+
*/
|
|
64
|
+
placeholder?: string;
|
|
65
|
+
/**
|
|
66
|
+
* Whether to disable teleport.
|
|
67
|
+
*/
|
|
68
|
+
inline?: boolean;
|
|
69
|
+
/**
|
|
70
|
+
* Custom set of classes to apply to the component.
|
|
71
|
+
*/
|
|
72
|
+
class?: string | unknown[];
|
|
73
|
+
/**
|
|
74
|
+
* Custom icon configurations.
|
|
75
|
+
*/
|
|
76
|
+
icons?: typeof DEFAULT_ICONS;
|
|
77
|
+
/**
|
|
78
|
+
* Custom text configurations.
|
|
79
|
+
*/
|
|
80
|
+
texts?: typeof DEFAULT_TEXTS;
|
|
81
|
+
};
|
|
82
|
+
export declare const DEFAULT_ICONS: {
|
|
83
|
+
calendar: {
|
|
84
|
+
icon: string;
|
|
85
|
+
};
|
|
86
|
+
clock: {
|
|
87
|
+
icon: string;
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
export declare const DEFAULT_TEXTS: {
|
|
91
|
+
clearValue: string;
|
|
92
|
+
};
|
|
93
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QDateTimePicker/types.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AAGrD,MAAM,MAAM,oBAAoB,GAAG;IAClC;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAA;IAEX;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;OAEG;IACH,IAAI,CAAC,EAAE,UAAU,CAAA;IAEjB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;;;;;;;;;;;;;;;;OAiBG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;IAEf;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAA;IAEhB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAA;IAEhB;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;IAEf;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;IAEpB;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAA;IAEhB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,EAAE,CAAA;IAE1B;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,aAAa,CAAA;IAE5B;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,aAAa,CAAA;CAC5B,CAAA;AAGD,eAAO,MAAM,aAAa;;;;;;;CAOM,CAAA;AAGhC,eAAO,MAAM,aAAa;;CAEQ,CAAA"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { DEFAULT_ICONS, DEFAULT_TEXTS, QFileUploadProps } from './types';
|
|
2
|
+
type __VLS_Props = QFileUploadProps;
|
|
3
|
+
type __VLS_PublicProps = {
|
|
4
|
+
modelValue?: File;
|
|
5
|
+
} & __VLS_Props;
|
|
6
|
+
declare function __VLS_template(): {
|
|
7
|
+
attrs: Partial<{}>;
|
|
8
|
+
slots: {
|
|
9
|
+
extras?(_: {}): any;
|
|
10
|
+
};
|
|
11
|
+
refs: {
|
|
12
|
+
dropZoneRef: HTMLDivElement;
|
|
13
|
+
fileInput: HTMLInputElement;
|
|
14
|
+
};
|
|
15
|
+
rootEl: any;
|
|
16
|
+
};
|
|
17
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
18
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
19
|
+
"update:modelValue": (value: File) => any;
|
|
20
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
21
|
+
"onUpdate:modelValue"?: ((value: File) => any) | undefined;
|
|
22
|
+
}>, {
|
|
23
|
+
size: "large" | "xlarge" | "xxlarge" | "block";
|
|
24
|
+
icons: typeof DEFAULT_ICONS;
|
|
25
|
+
texts: typeof DEFAULT_TEXTS;
|
|
26
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
27
|
+
dropZoneRef: HTMLDivElement;
|
|
28
|
+
fileInput: HTMLInputElement;
|
|
29
|
+
}, any>;
|
|
30
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
31
|
+
export default _default;
|
|
32
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
33
|
+
new (): {
|
|
34
|
+
$slots: S;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
//# sourceMappingURL=QFileUpload.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"QFileUpload.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QFileUpload/QFileUpload.vue"],"names":[],"mappings":"AAwFA;AAkOC,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAYtD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAM/C,KAAK,WAAW,GAAG,gBAAgB,CAAC;AA2HrC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,IAAI,CAAC;CACjB,GAAG,WAAW,CAAC;AAKhB,iBAAS,cAAc;WAoOT,OAAO,IAA6B;;wBAbrB,GAAG;;;;;;;EAkB/B;AAyBD,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,238 @@
|
|
|
1
|
+
import { defineComponent as L, mergeModels as N, useModel as O, computed as d, ref as h, watch as T, createBlock as w, openBlock as n, unref as i, createSlots as Z, withCtx as _, createElementVNode as a, normalizeClass as Q, createElementBlock as c, mergeProps as F, createVNode as s, normalizeProps as m, guardReactiveProps as v, toDisplayString as y, createCommentVNode as j, createTextVNode as M, renderSlot as P } from "vue";
|
|
2
|
+
import { DEFAULT_TEXTS as $, DEFAULT_ICONS as H } from "./types.js";
|
|
3
|
+
import { QButton as b } from "../QButton/index.js";
|
|
4
|
+
import { QField as W } from "../QField/index.js";
|
|
5
|
+
import { QIcon as u } from "../QIcon/index.js";
|
|
6
|
+
import { useId as X } from "../../composables/uid.js";
|
|
7
|
+
import { useDropZone as G } from "../../composables/useDropZone/index.js";
|
|
8
|
+
import { downloadFile as J } from "../../utils/download.js";
|
|
9
|
+
const K = ["id", "accept", "required", "readonly", "disabled"], Y = {
|
|
10
|
+
key: 0,
|
|
11
|
+
class: "q-file-input__drop-area"
|
|
12
|
+
}, ee = {
|
|
13
|
+
key: 1,
|
|
14
|
+
class: "q-file-input__file-details"
|
|
15
|
+
}, le = { class: "q-file-input__attached-file" }, te = {
|
|
16
|
+
key: 0,
|
|
17
|
+
class: "q-file-input__preview q-file-input__image-preview"
|
|
18
|
+
}, ie = ["src", "alt"], oe = { class: "q-file-input__file-meta" }, ae = { class: "q-file-input__file-name" }, ne = { class: "q-file-input__file-type" }, se = {
|
|
19
|
+
key: 0,
|
|
20
|
+
class: "q-file-input__action-buttons"
|
|
21
|
+
}, re = {
|
|
22
|
+
key: 2,
|
|
23
|
+
class: "q-file-input__empty-container"
|
|
24
|
+
}, ye = /* @__PURE__ */ L({
|
|
25
|
+
inheritAttrs: !1,
|
|
26
|
+
__name: "QFileUpload",
|
|
27
|
+
props: /* @__PURE__ */ N({
|
|
28
|
+
id: {},
|
|
29
|
+
label: {},
|
|
30
|
+
size: { default: "large" },
|
|
31
|
+
readonly: { type: Boolean },
|
|
32
|
+
disabled: { type: Boolean },
|
|
33
|
+
required: { type: Boolean },
|
|
34
|
+
accept: {},
|
|
35
|
+
class: {},
|
|
36
|
+
icons: { default: () => H },
|
|
37
|
+
texts: { default: () => $ }
|
|
38
|
+
}, {
|
|
39
|
+
modelValue: {},
|
|
40
|
+
modelModifiers: {}
|
|
41
|
+
}),
|
|
42
|
+
emits: ["update:modelValue"],
|
|
43
|
+
setup(q) {
|
|
44
|
+
const e = q, t = O(q, "modelValue"), k = X(e.id), p = d(() => !e.readonly && !e.disabled), r = h(null);
|
|
45
|
+
T(t, (l) => {
|
|
46
|
+
r.value && URL.revokeObjectURL(r.value);
|
|
47
|
+
const o = l && l.type.startsWith("image/");
|
|
48
|
+
r.value = o ? URL.createObjectURL(l) : null;
|
|
49
|
+
});
|
|
50
|
+
const f = h(null);
|
|
51
|
+
function U() {
|
|
52
|
+
var l;
|
|
53
|
+
(l = f.value) == null || l.click();
|
|
54
|
+
}
|
|
55
|
+
function V(l) {
|
|
56
|
+
var C;
|
|
57
|
+
const o = l.target;
|
|
58
|
+
(C = o == null ? void 0 : o.files) != null && C[0] && (t.value = o.files[0]);
|
|
59
|
+
}
|
|
60
|
+
function B() {
|
|
61
|
+
t.value && J(t.value);
|
|
62
|
+
}
|
|
63
|
+
function D() {
|
|
64
|
+
t.value = void 0, f.value && (f.value.value = "");
|
|
65
|
+
}
|
|
66
|
+
function I(l) {
|
|
67
|
+
if (!p.value) return;
|
|
68
|
+
const o = l == null ? void 0 : l[0];
|
|
69
|
+
o && (t.value = o);
|
|
70
|
+
}
|
|
71
|
+
const g = h(null), x = d(() => Array.isArray(e.accept) ? e.accept : e.accept ? e.accept.split(",").map((l) => l.trim()) : []), R = d(() => {
|
|
72
|
+
var l;
|
|
73
|
+
return (l = x.value) == null ? void 0 : l.join(",");
|
|
74
|
+
}), S = d(() => p.value && !t.value), { isOverDropZone: z, isValid: A } = G(g, {
|
|
75
|
+
onDrop: I,
|
|
76
|
+
accept: x,
|
|
77
|
+
enabled: S
|
|
78
|
+
}), E = d(() => [
|
|
79
|
+
"q-field__control",
|
|
80
|
+
"q-file-input",
|
|
81
|
+
{
|
|
82
|
+
"q-file-input--highlighted": z.value && A.value
|
|
83
|
+
},
|
|
84
|
+
e.class
|
|
85
|
+
]);
|
|
86
|
+
return (l, o) => (n(), w(i(W), {
|
|
87
|
+
for: i(k),
|
|
88
|
+
label: e.label,
|
|
89
|
+
size: e.size,
|
|
90
|
+
readonly: e.readonly,
|
|
91
|
+
disabled: e.disabled,
|
|
92
|
+
required: e.required
|
|
93
|
+
}, Z({
|
|
94
|
+
control: _(() => [
|
|
95
|
+
a(
|
|
96
|
+
"div",
|
|
97
|
+
{
|
|
98
|
+
ref_key: "dropZoneRef",
|
|
99
|
+
ref: g,
|
|
100
|
+
class: Q(E.value)
|
|
101
|
+
},
|
|
102
|
+
[
|
|
103
|
+
a("input", F({
|
|
104
|
+
ref_key: "fileInput",
|
|
105
|
+
ref: f,
|
|
106
|
+
id: i(k),
|
|
107
|
+
type: "file",
|
|
108
|
+
class: "q-file-input__file-input",
|
|
109
|
+
accept: R.value,
|
|
110
|
+
required: e.required,
|
|
111
|
+
readonly: e.readonly,
|
|
112
|
+
disabled: e.disabled,
|
|
113
|
+
onChange: V
|
|
114
|
+
}, l.$attrs), null, 16, K),
|
|
115
|
+
!t.value && p.value ? (n(), c("div", Y, [
|
|
116
|
+
s(
|
|
117
|
+
i(u),
|
|
118
|
+
m(v(e.icons.upload)),
|
|
119
|
+
null,
|
|
120
|
+
16
|
|
121
|
+
/* FULL_PROPS */
|
|
122
|
+
),
|
|
123
|
+
a(
|
|
124
|
+
"span",
|
|
125
|
+
null,
|
|
126
|
+
y(e.texts.dropHereOr),
|
|
127
|
+
1
|
|
128
|
+
/* TEXT */
|
|
129
|
+
),
|
|
130
|
+
s(i(b), {
|
|
131
|
+
label: e.texts.chooseFile,
|
|
132
|
+
onClick: U
|
|
133
|
+
}, null, 8, ["label"])
|
|
134
|
+
])) : t.value ? (n(), c("div", ee, [
|
|
135
|
+
a("div", le, [
|
|
136
|
+
r.value ? (n(), c("div", te, [
|
|
137
|
+
a("img", {
|
|
138
|
+
src: r.value,
|
|
139
|
+
alt: e.texts.preview
|
|
140
|
+
}, null, 8, ie)
|
|
141
|
+
])) : (n(), w(
|
|
142
|
+
i(u),
|
|
143
|
+
F({
|
|
144
|
+
key: 1,
|
|
145
|
+
class: "q-file-input__preview"
|
|
146
|
+
}, e.icons.file),
|
|
147
|
+
null,
|
|
148
|
+
16
|
|
149
|
+
/* FULL_PROPS */
|
|
150
|
+
)),
|
|
151
|
+
a("div", oe, [
|
|
152
|
+
a(
|
|
153
|
+
"span",
|
|
154
|
+
ae,
|
|
155
|
+
y(t.value.name),
|
|
156
|
+
1
|
|
157
|
+
/* TEXT */
|
|
158
|
+
),
|
|
159
|
+
a(
|
|
160
|
+
"span",
|
|
161
|
+
ne,
|
|
162
|
+
y(t.value.type),
|
|
163
|
+
1
|
|
164
|
+
/* TEXT */
|
|
165
|
+
)
|
|
166
|
+
])
|
|
167
|
+
]),
|
|
168
|
+
p.value ? (n(), c("div", se, [
|
|
169
|
+
s(i(b), {
|
|
170
|
+
onClick: B,
|
|
171
|
+
title: e.texts.download,
|
|
172
|
+
borderless: ""
|
|
173
|
+
}, {
|
|
174
|
+
default: _(() => [
|
|
175
|
+
s(
|
|
176
|
+
i(u),
|
|
177
|
+
m(v(e.icons.download)),
|
|
178
|
+
null,
|
|
179
|
+
16
|
|
180
|
+
/* FULL_PROPS */
|
|
181
|
+
)
|
|
182
|
+
]),
|
|
183
|
+
_: 1
|
|
184
|
+
/* STABLE */
|
|
185
|
+
}, 8, ["title"]),
|
|
186
|
+
s(i(b), {
|
|
187
|
+
onClick: D,
|
|
188
|
+
title: e.texts.remove,
|
|
189
|
+
borderless: ""
|
|
190
|
+
}, {
|
|
191
|
+
default: _(() => [
|
|
192
|
+
s(
|
|
193
|
+
i(u),
|
|
194
|
+
m(v(e.icons.remove)),
|
|
195
|
+
null,
|
|
196
|
+
16
|
|
197
|
+
/* FULL_PROPS */
|
|
198
|
+
)
|
|
199
|
+
]),
|
|
200
|
+
_: 1
|
|
201
|
+
/* STABLE */
|
|
202
|
+
}, 8, ["title"])
|
|
203
|
+
])) : j("v-if", !0)
|
|
204
|
+
])) : (n(), c("div", re, [
|
|
205
|
+
s(
|
|
206
|
+
i(u),
|
|
207
|
+
m(v(e.icons.empty)),
|
|
208
|
+
null,
|
|
209
|
+
16
|
|
210
|
+
/* FULL_PROPS */
|
|
211
|
+
),
|
|
212
|
+
M(
|
|
213
|
+
" " + y(e.texts.empty),
|
|
214
|
+
1
|
|
215
|
+
/* TEXT */
|
|
216
|
+
)
|
|
217
|
+
]))
|
|
218
|
+
],
|
|
219
|
+
2
|
|
220
|
+
/* CLASS */
|
|
221
|
+
)
|
|
222
|
+
]),
|
|
223
|
+
_: 2
|
|
224
|
+
/* DYNAMIC */
|
|
225
|
+
}, [
|
|
226
|
+
l.$slots.extras ? {
|
|
227
|
+
name: "extras",
|
|
228
|
+
fn: _(() => [
|
|
229
|
+
P(l.$slots, "extras")
|
|
230
|
+
]),
|
|
231
|
+
key: "0"
|
|
232
|
+
} : void 0
|
|
233
|
+
]), 1032, ["for", "label", "size", "readonly", "disabled", "required"]));
|
|
234
|
+
}
|
|
235
|
+
});
|
|
236
|
+
export {
|
|
237
|
+
ye as default
|
|
238
|
+
};
|