@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,52 @@
|
|
|
1
|
+
import { QFileUploadProps } from './types';
|
|
2
|
+
declare const QFileUpload: {
|
|
3
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
4
|
+
modelValue?: File;
|
|
5
|
+
} & QFileUploadProps> & Readonly<{
|
|
6
|
+
"onUpdate:modelValue"?: ((value: File) => any) | undefined;
|
|
7
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
8
|
+
"update:modelValue": (value: File) => any;
|
|
9
|
+
}, import('vue').PublicProps, {
|
|
10
|
+
size: "large" | "xlarge" | "xxlarge" | "block";
|
|
11
|
+
icons: typeof import('./types').DEFAULT_ICONS;
|
|
12
|
+
texts: typeof import('./types').DEFAULT_TEXTS;
|
|
13
|
+
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
14
|
+
dropZoneRef: HTMLDivElement;
|
|
15
|
+
fileInput: HTMLInputElement;
|
|
16
|
+
}, any, import('vue').ComponentProvideOptions, {
|
|
17
|
+
P: {};
|
|
18
|
+
B: {};
|
|
19
|
+
D: {};
|
|
20
|
+
C: {};
|
|
21
|
+
M: {};
|
|
22
|
+
Defaults: {};
|
|
23
|
+
}, Readonly<{
|
|
24
|
+
modelValue?: File;
|
|
25
|
+
} & QFileUploadProps> & Readonly<{
|
|
26
|
+
"onUpdate:modelValue"?: ((value: File) => any) | undefined;
|
|
27
|
+
}>, {}, {}, {}, {}, {
|
|
28
|
+
size: "large" | "xlarge" | "xxlarge" | "block";
|
|
29
|
+
icons: typeof import('./types').DEFAULT_ICONS;
|
|
30
|
+
texts: typeof import('./types').DEFAULT_TEXTS;
|
|
31
|
+
}>;
|
|
32
|
+
__isFragment?: never;
|
|
33
|
+
__isTeleport?: never;
|
|
34
|
+
__isSuspense?: never;
|
|
35
|
+
} & import('vue').ComponentOptionsBase<Readonly<{
|
|
36
|
+
modelValue?: File;
|
|
37
|
+
} & QFileUploadProps> & Readonly<{
|
|
38
|
+
"onUpdate:modelValue"?: ((value: File) => any) | undefined;
|
|
39
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
40
|
+
"update:modelValue": (value: File) => any;
|
|
41
|
+
}, string, {
|
|
42
|
+
size: "large" | "xlarge" | "xxlarge" | "block";
|
|
43
|
+
icons: typeof import('./types').DEFAULT_ICONS;
|
|
44
|
+
texts: typeof import('./types').DEFAULT_TEXTS;
|
|
45
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
46
|
+
$slots: {
|
|
47
|
+
extras?(_: {}): any;
|
|
48
|
+
};
|
|
49
|
+
});
|
|
50
|
+
export { QFileUpload };
|
|
51
|
+
export type { QFileUploadProps };
|
|
52
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QFileUpload/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAK/C,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAgC,CAAA;AAGjD,OAAO,EAAE,WAAW,EAAE,CAAA;AAGtB,YAAY,EAAE,gBAAgB,EAAE,CAAA"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
export type QFileUploadProps = {
|
|
2
|
+
/**
|
|
3
|
+
* The field unique identifier.
|
|
4
|
+
*/
|
|
5
|
+
id?: string;
|
|
6
|
+
/**
|
|
7
|
+
* The label of the input.
|
|
8
|
+
*/
|
|
9
|
+
label?: string;
|
|
10
|
+
/**
|
|
11
|
+
* The size category of the field.
|
|
12
|
+
*/
|
|
13
|
+
size?: 'large' | 'xlarge' | 'xxlarge' | 'block';
|
|
14
|
+
/**
|
|
15
|
+
* If set to true, the control is read-only.
|
|
16
|
+
*/
|
|
17
|
+
readonly?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* If set to true, the control is disabled.
|
|
20
|
+
*/
|
|
21
|
+
disabled?: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* If set to true, an asterisk (*) is displayed
|
|
24
|
+
* to indicate that the field is required.
|
|
25
|
+
*/
|
|
26
|
+
required?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Specifies the accepted file types.
|
|
29
|
+
*/
|
|
30
|
+
accept?: string | string[];
|
|
31
|
+
/**
|
|
32
|
+
* Custom set of classes to apply to the component.
|
|
33
|
+
*/
|
|
34
|
+
class?: string | unknown[];
|
|
35
|
+
/**
|
|
36
|
+
* Custom icon configurations.
|
|
37
|
+
*/
|
|
38
|
+
icons?: typeof DEFAULT_ICONS;
|
|
39
|
+
/**
|
|
40
|
+
* Custom text configurations.
|
|
41
|
+
*/
|
|
42
|
+
texts?: typeof DEFAULT_TEXTS;
|
|
43
|
+
};
|
|
44
|
+
export declare const DEFAULT_ICONS: {
|
|
45
|
+
remove: {
|
|
46
|
+
icon: string;
|
|
47
|
+
};
|
|
48
|
+
download: {
|
|
49
|
+
icon: string;
|
|
50
|
+
};
|
|
51
|
+
upload: {
|
|
52
|
+
icon: string;
|
|
53
|
+
};
|
|
54
|
+
file: {
|
|
55
|
+
icon: string;
|
|
56
|
+
};
|
|
57
|
+
empty: {
|
|
58
|
+
icon: string;
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
export declare const DEFAULT_TEXTS: {
|
|
62
|
+
dropHereOr: string;
|
|
63
|
+
chooseFile: string;
|
|
64
|
+
preview: string;
|
|
65
|
+
download: string;
|
|
66
|
+
remove: string;
|
|
67
|
+
empty: string;
|
|
68
|
+
};
|
|
69
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QFileUpload/types.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,gBAAgB,GAAG;IAC9B;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAA;IAEX;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,SAAS,GAAG,OAAO,CAAA;IAE/C;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IAE1B;;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;;;;;;;;;;;;;;;;CAgBM,CAAA;AAGhC,eAAO,MAAM,aAAa;;;;;;;CAOQ,CAAA"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
const e = {
|
|
2
|
+
remove: {
|
|
3
|
+
icon: "close"
|
|
4
|
+
},
|
|
5
|
+
download: {
|
|
6
|
+
icon: "download"
|
|
7
|
+
},
|
|
8
|
+
upload: {
|
|
9
|
+
icon: "upload"
|
|
10
|
+
},
|
|
11
|
+
file: {
|
|
12
|
+
icon: "file"
|
|
13
|
+
},
|
|
14
|
+
empty: {
|
|
15
|
+
icon: "diameter-variant"
|
|
16
|
+
}
|
|
17
|
+
}, o = {
|
|
18
|
+
dropHereOr: "Drop here or",
|
|
19
|
+
chooseFile: "Choose file",
|
|
20
|
+
preview: "Preview",
|
|
21
|
+
download: "Download attached file",
|
|
22
|
+
remove: "Remove attached file",
|
|
23
|
+
empty: "No document attached"
|
|
24
|
+
};
|
|
25
|
+
export {
|
|
26
|
+
e as DEFAULT_ICONS,
|
|
27
|
+
o as DEFAULT_TEXTS
|
|
28
|
+
};
|
|
@@ -91,8 +91,11 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
91
91
|
inputRef: import('vue').Ref<HTMLElement | null, HTMLElement | null>;
|
|
92
92
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
93
93
|
"update:modelValue": (value: string) => any;
|
|
94
|
+
} & {
|
|
95
|
+
"click:clear": (event: Event) => any;
|
|
94
96
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
95
97
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
98
|
+
"onClick:clear"?: ((event: Event) => any) | undefined;
|
|
96
99
|
}>, {
|
|
97
100
|
type: string;
|
|
98
101
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QTextField.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QTextField/QTextField.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"QTextField.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QTextField/QTextField.vue"],"names":[],"mappings":"AAoDA;AAoHC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAM9C,KAAK,WAAW,GAAG,eAAe,CAAC;AAwDpC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;CACnB,GAAG,WAAW,CAAC;AAKhB,iBAAS,cAAc;WAkIT,OAAO,IAA6B;;iCAjBb,GAAG;gCACJ,GAAG;yBACV,GAAG;wBACH,GAAG;wBACH,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAqE2je,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;EAnDhte;AAmBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCA+Bske,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;OArB/se,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,13 +1,15 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { QField as
|
|
3
|
-
import {
|
|
4
|
-
|
|
1
|
+
import { defineComponent as C, mergeModels as c, useModel as g, ref as y, computed as o, createBlock as b, openBlock as h, unref as r, normalizeClass as R, createSlots as V, withCtx as a, withDirectives as z, createElementVNode as M, mergeProps as w, vModelDynamic as Q, renderSlot as d, createCommentVNode as D } from "vue";
|
|
2
|
+
import { QField as F } from "../QField/index.js";
|
|
3
|
+
import { QClearButton as L } from "../__internal__/QClearButton/index.js";
|
|
4
|
+
import { useId as N } from "../../composables/uid.js";
|
|
5
|
+
const S = ["id", "type", "role", "required", "placeholder", "readonly", "disabled", "maxlength"], P = /* @__PURE__ */ C({
|
|
5
6
|
inheritAttrs: !1,
|
|
6
7
|
__name: "QTextField",
|
|
7
|
-
props: /* @__PURE__ */
|
|
8
|
+
props: /* @__PURE__ */ c({
|
|
8
9
|
id: {},
|
|
9
10
|
placeholder: {},
|
|
10
11
|
label: {},
|
|
12
|
+
clearable: { type: Boolean },
|
|
11
13
|
size: {},
|
|
12
14
|
maxLength: {},
|
|
13
15
|
readonly: { type: Boolean },
|
|
@@ -15,55 +17,59 @@ const C = ["id", "type", "role", "required", "placeholder", "readonly", "disable
|
|
|
15
17
|
required: { type: Boolean },
|
|
16
18
|
role: {},
|
|
17
19
|
type: { default: "text" },
|
|
18
|
-
class: {}
|
|
20
|
+
class: {},
|
|
21
|
+
texts: {}
|
|
19
22
|
}, {
|
|
20
23
|
modelValue: {},
|
|
21
24
|
modelModifiers: {}
|
|
22
25
|
}),
|
|
23
|
-
emits: ["update:modelValue"],
|
|
24
|
-
setup(
|
|
25
|
-
const e =
|
|
26
|
+
emits: /* @__PURE__ */ c(["click:clear"], ["update:modelValue"]),
|
|
27
|
+
setup(n, { expose: v, emit: k }) {
|
|
28
|
+
const e = n, x = k, t = g(n, "modelValue"), s = N(e.id), i = y(null), p = y(null), q = o(
|
|
26
29
|
() => e.readonly || e.disabled ? void 0 : e.placeholder
|
|
27
|
-
);
|
|
28
|
-
|
|
29
|
-
|
|
30
|
+
), u = o(() => e.clearable && !e.readonly && !e.disabled), f = o(() => u.value && t.value);
|
|
31
|
+
function $(l) {
|
|
32
|
+
u.value && (t.value = "", x("click:clear", l));
|
|
33
|
+
}
|
|
34
|
+
return v({
|
|
35
|
+
fieldRef: o(() => {
|
|
30
36
|
var l;
|
|
31
|
-
return (l =
|
|
37
|
+
return (l = i.value) == null ? void 0 : l.fieldRef;
|
|
32
38
|
}),
|
|
33
|
-
inputRef:
|
|
34
|
-
}), (l,
|
|
39
|
+
inputRef: p
|
|
40
|
+
}), (l, m) => (h(), b(r(F), {
|
|
35
41
|
ref_key: "fieldRef",
|
|
36
|
-
ref:
|
|
37
|
-
class:
|
|
38
|
-
for:
|
|
42
|
+
ref: i,
|
|
43
|
+
class: R(["q-text-field", e.class]),
|
|
44
|
+
for: r(s),
|
|
39
45
|
label: e.label,
|
|
40
46
|
size: e.size,
|
|
41
47
|
readonly: e.readonly,
|
|
42
48
|
disabled: e.disabled,
|
|
43
49
|
required: e.required
|
|
44
|
-
},
|
|
45
|
-
"label.prepend":
|
|
46
|
-
|
|
50
|
+
}, V({
|
|
51
|
+
"label.prepend": a(() => [
|
|
52
|
+
d(l.$slots, "label.prepend")
|
|
47
53
|
]),
|
|
48
|
-
"label.append":
|
|
49
|
-
|
|
54
|
+
"label.append": a(() => [
|
|
55
|
+
d(l.$slots, "label.append")
|
|
50
56
|
]),
|
|
51
|
-
default:
|
|
52
|
-
|
|
53
|
-
id:
|
|
57
|
+
default: a(() => [
|
|
58
|
+
z(M("input", w({
|
|
59
|
+
id: r(s),
|
|
54
60
|
ref_key: "inputRef",
|
|
55
|
-
ref:
|
|
56
|
-
"onUpdate:modelValue":
|
|
61
|
+
ref: p,
|
|
62
|
+
"onUpdate:modelValue": m[0] || (m[0] = (B) => t.value = B),
|
|
57
63
|
class: "q-text-field__input",
|
|
58
64
|
type: e.type,
|
|
59
65
|
role: e.role,
|
|
60
66
|
required: e.required,
|
|
61
|
-
placeholder:
|
|
67
|
+
placeholder: q.value,
|
|
62
68
|
readonly: e.readonly,
|
|
63
69
|
disabled: e.disabled,
|
|
64
70
|
maxlength: e.maxLength
|
|
65
|
-
}, l.$attrs), null, 16,
|
|
66
|
-
[
|
|
71
|
+
}, l.$attrs), null, 16, S), [
|
|
72
|
+
[Q, t.value]
|
|
67
73
|
])
|
|
68
74
|
]),
|
|
69
75
|
_: 2
|
|
@@ -71,22 +77,28 @@ const C = ["id", "type", "role", "required", "placeholder", "readonly", "disable
|
|
|
71
77
|
}, [
|
|
72
78
|
l.$slots.prepend ? {
|
|
73
79
|
name: "prepend",
|
|
74
|
-
fn:
|
|
75
|
-
|
|
80
|
+
fn: a(() => [
|
|
81
|
+
d(l.$slots, "prepend")
|
|
76
82
|
]),
|
|
77
83
|
key: "0"
|
|
78
84
|
} : void 0,
|
|
79
|
-
l.$slots.append ? {
|
|
85
|
+
l.$slots.append || f.value ? {
|
|
80
86
|
name: "append",
|
|
81
|
-
fn:
|
|
82
|
-
|
|
87
|
+
fn: a(() => [
|
|
88
|
+
d(l.$slots, "append"),
|
|
89
|
+
f.value ? (h(), b(r(L), {
|
|
90
|
+
key: 0,
|
|
91
|
+
"data-testid": "q-text-field__clear-button",
|
|
92
|
+
texts: e.texts,
|
|
93
|
+
onClick: $
|
|
94
|
+
}, null, 8, ["texts"])) : D("v-if", !0)
|
|
83
95
|
]),
|
|
84
96
|
key: "1"
|
|
85
97
|
} : void 0,
|
|
86
98
|
l.$slots.extras ? {
|
|
87
99
|
name: "extras",
|
|
88
|
-
fn:
|
|
89
|
-
|
|
100
|
+
fn: a(() => [
|
|
101
|
+
d(l.$slots, "extras")
|
|
90
102
|
]),
|
|
91
103
|
key: "2"
|
|
92
104
|
} : void 0
|
|
@@ -94,5 +106,5 @@ const C = ["id", "type", "role", "required", "placeholder", "readonly", "disable
|
|
|
94
106
|
}
|
|
95
107
|
});
|
|
96
108
|
export {
|
|
97
|
-
|
|
109
|
+
P as default
|
|
98
110
|
};
|
|
@@ -3,11 +3,14 @@ declare const QTextField: {
|
|
|
3
3
|
modelValue?: string;
|
|
4
4
|
} & import('./types').QTextFieldProps> & Readonly<{
|
|
5
5
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
6
|
+
"onClick:clear"?: ((event: Event) => any) | undefined;
|
|
6
7
|
}>, {
|
|
7
8
|
fieldRef: import('vue').ComputedRef<HTMLElement | null | undefined>;
|
|
8
9
|
inputRef: import('vue').Ref<HTMLElement | null, HTMLElement | null>;
|
|
9
10
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
10
11
|
"update:modelValue": (value: string) => any;
|
|
12
|
+
} & {
|
|
13
|
+
"click:clear": (event: Event) => any;
|
|
11
14
|
}, import('vue').PublicProps, {
|
|
12
15
|
type: string;
|
|
13
16
|
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
@@ -91,6 +94,7 @@ declare const QTextField: {
|
|
|
91
94
|
modelValue?: string;
|
|
92
95
|
} & import('./types').QTextFieldProps> & Readonly<{
|
|
93
96
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
97
|
+
"onClick:clear"?: ((event: Event) => any) | undefined;
|
|
94
98
|
}>, {
|
|
95
99
|
fieldRef: import('vue').ComputedRef<HTMLElement | null | undefined>;
|
|
96
100
|
inputRef: import('vue').Ref<HTMLElement | null, HTMLElement | null>;
|
|
@@ -104,11 +108,14 @@ declare const QTextField: {
|
|
|
104
108
|
modelValue?: string;
|
|
105
109
|
} & import('./types').QTextFieldProps> & Readonly<{
|
|
106
110
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
111
|
+
"onClick:clear"?: ((event: Event) => any) | undefined;
|
|
107
112
|
}>, {
|
|
108
113
|
fieldRef: import('vue').ComputedRef<HTMLElement | null | undefined>;
|
|
109
114
|
inputRef: import('vue').Ref<HTMLElement | null, HTMLElement | null>;
|
|
110
115
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
111
116
|
"update:modelValue": (value: string) => any;
|
|
117
|
+
} & {
|
|
118
|
+
"click:clear": (event: Event) => any;
|
|
112
119
|
}, string, {
|
|
113
120
|
type: string;
|
|
114
121
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QTextField/index.ts"],"names":[],"mappings":"AAMA,QAAA,MAAM,UAAU
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QTextField/index.ts"],"names":[],"mappings":"AAMA,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAIyvzB,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAJh1zB,CAAA;AAG/C,OAAO,EAAE,UAAU,EAAE,CAAA"}
|
|
@@ -12,6 +12,10 @@ export type QTextFieldProps = {
|
|
|
12
12
|
* The label of the input.
|
|
13
13
|
*/
|
|
14
14
|
label?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Whether the value of the field can be cleared.
|
|
17
|
+
*/
|
|
18
|
+
clearable?: boolean;
|
|
15
19
|
/**
|
|
16
20
|
* The size of the text field.
|
|
17
21
|
*/
|
|
@@ -46,5 +50,12 @@ export type QTextFieldProps = {
|
|
|
46
50
|
* Custom set of classes to apply to the component.
|
|
47
51
|
*/
|
|
48
52
|
class?: string | unknown[];
|
|
53
|
+
/**
|
|
54
|
+
* Custom text configurations.
|
|
55
|
+
*/
|
|
56
|
+
texts?: typeof DEFAULT_TEXTS;
|
|
57
|
+
};
|
|
58
|
+
export declare const DEFAULT_TEXTS: {
|
|
59
|
+
clearValue: string;
|
|
49
60
|
};
|
|
50
61
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QTextField/types.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QTextField/types.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AAErD,MAAM,MAAM,eAAe,GAAG;IAC7B;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAA;IAEX;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;IAEpB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAA;IAEnB;;OAEG;IACH,IAAI,CAAC,EAAE,UAAU,CAAA;IAEjB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IAEb;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IAEb;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,EAAE,CAAA;IAE1B;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,aAAa,CAAA;CAC5B,CAAA;AAGD,eAAO,MAAM,aAAa;;CAEQ,CAAA"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export * from './QAccordion';
|
|
2
2
|
export * from './QBadge';
|
|
3
|
+
export * from './QBadgeIndicator';
|
|
3
4
|
export * from './QButton';
|
|
4
5
|
export * from './QButtonGroup';
|
|
5
6
|
export * from './QButtonToggle';
|
|
@@ -8,9 +9,11 @@ export * from './QCheckbox';
|
|
|
8
9
|
export * from './QCollapsible';
|
|
9
10
|
export * from './QColorPicker';
|
|
10
11
|
export * from './QCombobox';
|
|
12
|
+
export * from './QDateTimePicker';
|
|
11
13
|
export * from './QDialog';
|
|
12
14
|
export * from './QDropdownMenu';
|
|
13
15
|
export * from './QField';
|
|
16
|
+
export * from './QFileUpload';
|
|
14
17
|
export * from './QIcon';
|
|
15
18
|
export * from './QInputGroup';
|
|
16
19
|
export * from './QLineLoader';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,UAAU,CAAA;AACxB,cAAc,WAAW,CAAA;AACzB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,SAAS,CAAA;AACvB,cAAc,aAAa,CAAA;AAC3B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,aAAa,CAAA;AAC3B,cAAc,WAAW,CAAA;AACzB,cAAc,iBAAiB,CAAA;AAC/B,cAAc,UAAU,CAAA;AACxB,cAAc,SAAS,CAAA;AACvB,cAAc,eAAe,CAAA;AAC7B,cAAc,eAAe,CAAA;AAC7B,cAAc,SAAS,CAAA;AACvB,cAAc,YAAY,CAAA;AAC1B,cAAc,YAAY,CAAA;AAC1B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,WAAW,CAAA;AACzB,cAAc,mBAAmB,CAAA;AACjC,cAAc,kBAAkB,CAAA;AAChC,cAAc,cAAc,CAAA;AAC5B,cAAc,kBAAkB,CAAA;AAChC,cAAc,YAAY,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,UAAU,CAAA;AACxB,cAAc,mBAAmB,CAAA;AACjC,cAAc,WAAW,CAAA;AACzB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,SAAS,CAAA;AACvB,cAAc,aAAa,CAAA;AAC3B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,aAAa,CAAA;AAC3B,cAAc,mBAAmB,CAAA;AACjC,cAAc,WAAW,CAAA;AACzB,cAAc,iBAAiB,CAAA;AAC/B,cAAc,UAAU,CAAA;AACxB,cAAc,eAAe,CAAA;AAC7B,cAAc,SAAS,CAAA;AACvB,cAAc,eAAe,CAAA;AAC7B,cAAc,eAAe,CAAA;AAC7B,cAAc,SAAS,CAAA;AACvB,cAAc,YAAY,CAAA;AAC1B,cAAc,YAAY,CAAA;AAC1B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,WAAW,CAAA;AACzB,cAAc,mBAAmB,CAAA;AACjC,cAAc,kBAAkB,CAAA;AAChC,cAAc,cAAc,CAAA;AAC5B,cAAc,kBAAkB,CAAA;AAChC,cAAc,YAAY,CAAA"}
|
package/esm/components/index.js
CHANGED
|
@@ -1,62 +1,68 @@
|
|
|
1
1
|
import { QAccordion as e } from "./QAccordion/index.js";
|
|
2
2
|
import { QBadge as p } from "./QBadge/index.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
3
|
+
import { QBadgeIndicator as m } from "./QBadgeIndicator/index.js";
|
|
4
|
+
import { QButton as f } from "./QButton/index.js";
|
|
5
|
+
import { QButtonGroup as n } from "./QButtonGroup/index.js";
|
|
6
|
+
import { QButtonToggle as a } from "./QButtonToggle/index.js";
|
|
7
|
+
import { QCard as c } from "./QCard/index.js";
|
|
8
|
+
import { QCheckbox as u } from "./QCheckbox/index.js";
|
|
9
|
+
import { QCollapsible as P } from "./QCollapsible/index.js";
|
|
10
|
+
import { QColorPicker as g } from "./QColorPicker/index.js";
|
|
11
|
+
import { QCombobox as B } from "./QCombobox/index.js";
|
|
12
|
+
import { QDateTimePicker as T } from "./QDateTimePicker/index.js";
|
|
13
|
+
import { QDialog as k } from "./QDialog/index.js";
|
|
14
|
+
import { QDropdownMenu as F } from "./QDropdownMenu/index.js";
|
|
15
|
+
import { QField as S } from "./QField/index.js";
|
|
16
|
+
import { QFileUpload as h } from "./QFileUpload/index.js";
|
|
17
|
+
import { QIcon as A, QIconFont as M, QIconImg as O, QIconSvg as R } from "./QIcon/index.js";
|
|
18
|
+
import { QInputGroup as j } from "./QInputGroup/index.js";
|
|
19
|
+
import { QLineLoader as z } from "./QLineLoader/index.js";
|
|
20
|
+
import { QList as H, QListItem as J, QListItemGroup as K } from "./QList/index.js";
|
|
21
|
+
import { QOverlay as V } from "./QOverlay/index.js";
|
|
22
|
+
import { QPopover as X } from "./QPopover/index.js";
|
|
23
|
+
import { QPropertyList as Z, QPropertyListGroup as _, QPropertyListPanel as $, QPropertyListRow as oo } from "./QPropertyList/index.js";
|
|
24
|
+
import { QSelect as eo } from "./QSelect/index.js";
|
|
25
|
+
import { QSkeletonLoader as po } from "./QSkeletonLoader/index.js";
|
|
26
|
+
import { QSpinnerLoader as mo } from "./QSpinnerLoader/index.js";
|
|
27
|
+
import { QTextField as fo } from "./QTextField/index.js";
|
|
28
|
+
import { QThemeProvider as no } from "./QThemeProvider/index.js";
|
|
29
|
+
import { QTooltip as ao } from "./QTooltip/index.js";
|
|
27
30
|
export {
|
|
28
31
|
e as QAccordion,
|
|
29
32
|
p as QBadge,
|
|
30
|
-
m as
|
|
31
|
-
f as
|
|
32
|
-
n as
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
u as
|
|
36
|
-
|
|
37
|
-
g as
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
R as
|
|
48
|
-
j as
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
J as
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
oo as
|
|
59
|
-
eo as
|
|
60
|
-
po as
|
|
61
|
-
mo as
|
|
33
|
+
m as QBadgeIndicator,
|
|
34
|
+
f as QButton,
|
|
35
|
+
n as QButtonGroup,
|
|
36
|
+
a as QButtonToggle,
|
|
37
|
+
c as QCard,
|
|
38
|
+
u as QCheckbox,
|
|
39
|
+
P as QCollapsible,
|
|
40
|
+
g as QColorPicker,
|
|
41
|
+
B as QCombobox,
|
|
42
|
+
T as QDateTimePicker,
|
|
43
|
+
k as QDialog,
|
|
44
|
+
F as QDropdownMenu,
|
|
45
|
+
S as QField,
|
|
46
|
+
h as QFileUpload,
|
|
47
|
+
A as QIcon,
|
|
48
|
+
M as QIconFont,
|
|
49
|
+
O as QIconImg,
|
|
50
|
+
R as QIconSvg,
|
|
51
|
+
j as QInputGroup,
|
|
52
|
+
z as QLineLoader,
|
|
53
|
+
H as QList,
|
|
54
|
+
J as QListItem,
|
|
55
|
+
K as QListItemGroup,
|
|
56
|
+
V as QOverlay,
|
|
57
|
+
X as QPopover,
|
|
58
|
+
Z as QPropertyList,
|
|
59
|
+
_ as QPropertyListGroup,
|
|
60
|
+
$ as QPropertyListPanel,
|
|
61
|
+
oo as QPropertyListRow,
|
|
62
|
+
eo as QSelect,
|
|
63
|
+
po as QSkeletonLoader,
|
|
64
|
+
mo as QSpinnerLoader,
|
|
65
|
+
fo as QTextField,
|
|
66
|
+
no as QThemeProvider,
|
|
67
|
+
ao as QTooltip
|
|
62
68
|
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { MaskOptions, MaskInput } from 'maska';
|
|
2
|
+
import { Ref } from 'vue';
|
|
3
|
+
/**
|
|
4
|
+
* Creates and manages a masked input instance on a given HTML input element.
|
|
5
|
+
*
|
|
6
|
+
* This function initializes a MaskInput instance using the provided HTML input element or a ref to the element.
|
|
7
|
+
* It applies mask options if provided, and listens for changes in the options to update the mask instance dynamically.
|
|
8
|
+
* The mask is automatically destroyed when the component is unmounted.
|
|
9
|
+
*
|
|
10
|
+
* @param target - The HTML input element or a ref to the HTML input element where the mask should be applied.
|
|
11
|
+
* @param options - (Optional) A ref to a set of mask options to configure the input mask. The mask instance will be updated
|
|
12
|
+
* when these options change.
|
|
13
|
+
*
|
|
14
|
+
* @returns An object containing a "maska" ref to the MaskInput instance.
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* ```ts
|
|
18
|
+
* const inputRef = ref<HTMLInputElement | null>(null);
|
|
19
|
+
* const maskOptions = ref<MaskOptions>({ mask: '###-##-####', tokens: { '#': { pattern: /\d/ } } });
|
|
20
|
+
* const { maska } = useMaska(inputRef, maskOptions);
|
|
21
|
+
* ```
|
|
22
|
+
*
|
|
23
|
+
* @see MaskInput for more details on how the mask is implemented.
|
|
24
|
+
*/
|
|
25
|
+
export declare function useMaska(target: HTMLInputElement | Ref<HTMLInputElement | null | undefined>, options?: Ref<MaskOptions>): {
|
|
26
|
+
maska: Ref<MaskInput, MaskInput>;
|
|
27
|
+
};
|
|
28
|
+
//# sourceMappingURL=maska.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"maska.d.ts","sourceRoot":"","sources":["../../src/composables/maska.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,OAAO,CAAA;AACxC,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;AAG9B,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAGjC;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,QAAQ,CACvB,MAAM,EAAE,gBAAgB,GAAG,GAAG,CAAC,gBAAgB,GAAG,IAAI,GAAG,SAAS,CAAC,EACnE,OAAO,CAAC,EAAE,GAAG,CAAC,WAAW,CAAC;;EAmC1B"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { MaskInput as m } from "../vendors/maska/dist/maska.js";
|
|
2
|
+
import { ref as c, onMounted as d, onUnmounted as f, watch as o } from "vue";
|
|
3
|
+
function M(u, e) {
|
|
4
|
+
const n = c(null), r = () => {
|
|
5
|
+
const a = u instanceof HTMLInputElement ? u : u.value;
|
|
6
|
+
if (!a)
|
|
7
|
+
throw new Error("Input element is required");
|
|
8
|
+
n.value = new m(a, e == null ? void 0 : e.value), e && o(
|
|
9
|
+
e,
|
|
10
|
+
(s) => {
|
|
11
|
+
var t;
|
|
12
|
+
(t = n.value) == null || t.update(s);
|
|
13
|
+
},
|
|
14
|
+
{ deep: !0 }
|
|
15
|
+
);
|
|
16
|
+
}, l = () => {
|
|
17
|
+
var a;
|
|
18
|
+
(a = n.value) == null || a.destroy(), n.value = null;
|
|
19
|
+
};
|
|
20
|
+
return d(r), f(l), {
|
|
21
|
+
maska: n
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
export {
|
|
25
|
+
M as useMaska
|
|
26
|
+
};
|