@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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { QBadgeProps, DEFAULT_ICONS } from './types';
|
|
1
|
+
import { QBadgeProps, DEFAULT_ICONS, DEFAULT_TEXTS } from './types';
|
|
2
2
|
declare function __VLS_template(): {
|
|
3
3
|
attrs: Partial<{}>;
|
|
4
4
|
slots: {
|
|
@@ -16,6 +16,7 @@ declare const __VLS_component: import('vue').DefineComponent<QBadgeProps, {}, {}
|
|
|
16
16
|
variant: "tonal" | "bold" | "outlined";
|
|
17
17
|
color: string;
|
|
18
18
|
icons: typeof DEFAULT_ICONS;
|
|
19
|
+
texts: typeof DEFAULT_TEXTS;
|
|
19
20
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLSpanElement>;
|
|
20
21
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
21
22
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QBadge.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QBadge/QBadge.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"QBadge.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QBadge/QBadge.vue"],"names":[],"mappings":"AAsBA;AAiHC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAG1C,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAoFvD,iBAAS,cAAc;WAqET,OAAO,IAA6B;;yBAVrB,GAAG;;;;EAe/B;AAiBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;yFASnB,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,84 +1,93 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { QButton as
|
|
3
|
-
import { QIcon as
|
|
4
|
-
import { DEFAULT_ICONS as
|
|
5
|
-
import { parseColor as
|
|
6
|
-
const
|
|
1
|
+
import { defineComponent as q, useAttrs as h, computed as r, createElementBlock as B, openBlock as d, withKeys as T, normalizeStyle as w, normalizeClass as E, withModifiers as N, createElementVNode as u, renderSlot as S, createBlock as z, createCommentVNode as A, unref as m, withCtx as H, createVNode as I, normalizeProps as K, guardReactiveProps as P } from "vue";
|
|
2
|
+
import { QButton as Q } from "../QButton/index.js";
|
|
3
|
+
import { QIcon as U } from "../QIcon/index.js";
|
|
4
|
+
import { DEFAULT_TEXTS as V, DEFAULT_ICONS as $ } from "./types.js";
|
|
5
|
+
import { parseColor as D, rgbToHsl as F, colorToHex as L, darken as R, getContrastingColor as M } from "../../utils/color.js";
|
|
6
|
+
const O = ["role", "tabindex", "onKeydown"], X = { class: "q-badge__content" }, Z = /* @__PURE__ */ q({
|
|
7
7
|
__name: "QBadge",
|
|
8
8
|
props: {
|
|
9
9
|
color: { default: "primary" },
|
|
10
10
|
variant: { default: "tonal" },
|
|
11
11
|
removable: { type: Boolean },
|
|
12
12
|
pill: { type: Boolean },
|
|
13
|
-
icons: { default: () =>
|
|
13
|
+
icons: { default: () => $ },
|
|
14
|
+
texts: { default: () => V }
|
|
14
15
|
},
|
|
15
16
|
emits: ["click:remove"],
|
|
16
|
-
setup(
|
|
17
|
-
const e =
|
|
18
|
-
() => ["primary", "info", "success", "warning", "danger"].includes(e.color)
|
|
19
|
-
),
|
|
20
|
-
const o =
|
|
21
|
-
return [
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
const f = V(o), v = $(f);
|
|
29
|
-
t = h(v.l);
|
|
17
|
+
setup(f, { emit: p }) {
|
|
18
|
+
const e = f, v = p, b = h(), l = r(() => !!b.onClick), n = r(
|
|
19
|
+
() => ["primary", "info", "success", "warning", "danger", "highlight"].includes(e.color)
|
|
20
|
+
), g = r(() => {
|
|
21
|
+
const o = n.value ? `q-badge--${e.color}` : void 0;
|
|
22
|
+
return [
|
|
23
|
+
"q-badge",
|
|
24
|
+
`q-badge--${e.variant}`,
|
|
25
|
+
o,
|
|
26
|
+
{
|
|
27
|
+
"q-badge--pill": e.pill,
|
|
28
|
+
"q-badge--clickable": l.value
|
|
30
29
|
}
|
|
30
|
+
];
|
|
31
|
+
}), C = r(() => {
|
|
32
|
+
let o, t, a, i;
|
|
33
|
+
if (!n.value) {
|
|
34
|
+
o = e.color;
|
|
35
|
+
const s = D(o), x = F(s), c = M(x.l), y = L(R(s, 25));
|
|
36
|
+
e.variant === "tonal" || e.variant === "outlined" ? (t = o, l.value && (i = c)) : (t = c, l.value && (a = y));
|
|
37
|
+
}
|
|
31
38
|
return {
|
|
32
39
|
"--q-badge-color": o,
|
|
33
|
-
"--q-badge-text-color": t
|
|
40
|
+
"--q-badge-text-color": t,
|
|
41
|
+
"--q-badge-text-hover-color": i,
|
|
42
|
+
"--q-badge-hover-color": a
|
|
34
43
|
};
|
|
35
44
|
});
|
|
36
|
-
function
|
|
37
|
-
|
|
45
|
+
function _() {
|
|
46
|
+
v("click:remove");
|
|
38
47
|
}
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
));
|
|
48
|
+
function k(o) {
|
|
49
|
+
o.stopImmediatePropagation();
|
|
50
|
+
}
|
|
51
|
+
return (o, t) => (d(), B("span", {
|
|
52
|
+
class: E(g.value),
|
|
53
|
+
role: l.value ? "button" : "presentation",
|
|
54
|
+
style: w(C.value),
|
|
55
|
+
tabindex: l.value ? 0 : void 0,
|
|
56
|
+
onKeydown: T(N(k, ["stop", "prevent"]), ["enter"])
|
|
57
|
+
}, [
|
|
58
|
+
t[0] || (t[0] = u(
|
|
59
|
+
"div",
|
|
60
|
+
{ class: "q-badge__underlay" },
|
|
61
|
+
null,
|
|
62
|
+
-1
|
|
63
|
+
/* HOISTED */
|
|
64
|
+
)),
|
|
65
|
+
u("div", X, [
|
|
66
|
+
S(o.$slots, "default"),
|
|
67
|
+
e.removable ? (d(), z(m(Q), {
|
|
68
|
+
key: 0,
|
|
69
|
+
class: "q-badge__remove",
|
|
70
|
+
borderless: "",
|
|
71
|
+
tabindex: "0",
|
|
72
|
+
onClick: _,
|
|
73
|
+
"aria-label": e.texts.removeText
|
|
74
|
+
}, {
|
|
75
|
+
default: H(() => [
|
|
76
|
+
I(
|
|
77
|
+
m(U),
|
|
78
|
+
K(P(e.icons.remove)),
|
|
79
|
+
null,
|
|
80
|
+
16
|
|
81
|
+
/* FULL_PROPS */
|
|
82
|
+
)
|
|
83
|
+
]),
|
|
84
|
+
_: 1
|
|
85
|
+
/* STABLE */
|
|
86
|
+
}, 8, ["aria-label"])) : A("v-if", !0)
|
|
87
|
+
])
|
|
88
|
+
], 46, O));
|
|
80
89
|
}
|
|
81
90
|
});
|
|
82
91
|
export {
|
|
83
|
-
|
|
92
|
+
Z as default
|
|
84
93
|
};
|
|
@@ -7,6 +7,7 @@ declare const QBadge: {
|
|
|
7
7
|
variant: "tonal" | "bold" | "outlined";
|
|
8
8
|
color: string;
|
|
9
9
|
icons: typeof import('./types').DEFAULT_ICONS;
|
|
10
|
+
texts: typeof import('./types').DEFAULT_TEXTS;
|
|
10
11
|
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLSpanElement, import('vue').ComponentProvideOptions, {
|
|
11
12
|
P: {};
|
|
12
13
|
B: {};
|
|
@@ -20,6 +21,7 @@ declare const QBadge: {
|
|
|
20
21
|
variant: "tonal" | "bold" | "outlined";
|
|
21
22
|
color: string;
|
|
22
23
|
icons: typeof import('./types').DEFAULT_ICONS;
|
|
24
|
+
texts: typeof import('./types').DEFAULT_TEXTS;
|
|
23
25
|
}>;
|
|
24
26
|
__isFragment?: never;
|
|
25
27
|
__isTeleport?: never;
|
|
@@ -32,6 +34,7 @@ declare const QBadge: {
|
|
|
32
34
|
variant: "tonal" | "bold" | "outlined";
|
|
33
35
|
color: string;
|
|
34
36
|
icons: typeof import('./types').DEFAULT_ICONS;
|
|
37
|
+
texts: typeof import('./types').DEFAULT_TEXTS;
|
|
35
38
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
36
39
|
$slots: {
|
|
37
40
|
default?(_: {}): any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QBadge/index.ts"],"names":[],"mappings":"AAMA,QAAA,MAAM,MAAM
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QBadge/index.ts"],"names":[],"mappings":"AAMA,QAAA,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA2B,CAAA;AAGvC,OAAO,EAAE,MAAM,EAAE,CAAA"}
|
|
@@ -20,10 +20,17 @@ export type QBadgeProps = {
|
|
|
20
20
|
* Custom icon configurations.
|
|
21
21
|
*/
|
|
22
22
|
icons?: typeof DEFAULT_ICONS;
|
|
23
|
+
/**
|
|
24
|
+
* Custom texts.
|
|
25
|
+
*/
|
|
26
|
+
texts?: typeof DEFAULT_TEXTS;
|
|
23
27
|
};
|
|
24
28
|
export declare const DEFAULT_ICONS: {
|
|
25
29
|
remove: {
|
|
26
30
|
icon: string;
|
|
27
31
|
};
|
|
28
32
|
};
|
|
33
|
+
export declare const DEFAULT_TEXTS: {
|
|
34
|
+
removeText: string;
|
|
35
|
+
};
|
|
29
36
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QBadge/types.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,WAAW,GAAG;IACzB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,UAAU,CAAA;IAEvC;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAA;IAEnB;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAA;IAEd;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,aAAa,CAAA;CAC5B,CAAA;AAGD,eAAO,MAAM,aAAa;;;;CAIM,CAAA"}
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QBadge/types.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,WAAW,GAAG;IACzB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,UAAU,CAAA;IAEvC;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAA;IAEnB;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAA;IAEd;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,aAAa,CAAA;IAE5B;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,aAAa,CAAA;CAC5B,CAAA;AAGD,eAAO,MAAM,aAAa;;;;CAIM,CAAA;AAEhC,eAAO,MAAM,aAAa;;CAEQ,CAAA"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { QBadgeIndicatorProps } from './types';
|
|
2
|
+
declare function __VLS_template(): {
|
|
3
|
+
attrs: Partial<{}>;
|
|
4
|
+
slots: {
|
|
5
|
+
default?(_: {}): any;
|
|
6
|
+
content?(_: {}): any;
|
|
7
|
+
};
|
|
8
|
+
refs: {};
|
|
9
|
+
rootEl: HTMLDivElement;
|
|
10
|
+
};
|
|
11
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
12
|
+
declare const __VLS_component: import('vue').DefineComponent<QBadgeIndicatorProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<QBadgeIndicatorProps> & Readonly<{}>, {
|
|
13
|
+
position: import('./types').QBadgeIndicatorPosition;
|
|
14
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
15
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
16
|
+
export default _default;
|
|
17
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
18
|
+
new (): {
|
|
19
|
+
$slots: S;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=QBadgeIndicator.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"QBadgeIndicator.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QBadgeIndicator/QBadgeIndicator.vue"],"names":[],"mappings":"AAcA;AAgDC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAA;AA4BpD,iBAAS,cAAc;WA8CT,OAAO,IAA6B;;yBAXrB,GAAG;yBACH,GAAG;;;;EAe/B;AAWD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;wFAQnB,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,43 @@
|
|
|
1
|
+
import { defineComponent as l, useSlots as i, computed as e, createElementBlock as d, openBlock as p, renderSlot as n, createVNode as u, unref as m, normalizeClass as f, withCtx as _, createTextVNode as g, toDisplayString as b } from "vue";
|
|
2
|
+
import { QBadge as h } from "../QBadge/index.js";
|
|
3
|
+
const q = { class: "q-badge-indicator__wrapper" }, S = /* @__PURE__ */ l({
|
|
4
|
+
__name: "QBadgeIndicator",
|
|
5
|
+
props: {
|
|
6
|
+
content: {},
|
|
7
|
+
position: { default: "top-right" },
|
|
8
|
+
color: {}
|
|
9
|
+
},
|
|
10
|
+
setup(s) {
|
|
11
|
+
const o = s, a = i(), c = e(() => !o.content && !a.content), r = e(() => [
|
|
12
|
+
"q-badge-indicator",
|
|
13
|
+
`q-badge-indicator--${o.position}`,
|
|
14
|
+
{
|
|
15
|
+
"q-badge-indicator--dot": c.value
|
|
16
|
+
}
|
|
17
|
+
]);
|
|
18
|
+
return (t, v) => (p(), d("div", q, [
|
|
19
|
+
n(t.$slots, "default"),
|
|
20
|
+
u(m(h), {
|
|
21
|
+
pill: "",
|
|
22
|
+
variant: "bold",
|
|
23
|
+
class: f(r.value),
|
|
24
|
+
color: o.color
|
|
25
|
+
}, {
|
|
26
|
+
default: _(() => [
|
|
27
|
+
n(t.$slots, "content", {}, () => [
|
|
28
|
+
g(
|
|
29
|
+
b(o.content),
|
|
30
|
+
1
|
|
31
|
+
/* TEXT */
|
|
32
|
+
)
|
|
33
|
+
])
|
|
34
|
+
]),
|
|
35
|
+
_: 3
|
|
36
|
+
/* FORWARDED */
|
|
37
|
+
}, 8, ["class", "color"])
|
|
38
|
+
]));
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
export {
|
|
42
|
+
S as default
|
|
43
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { QBadgeIndicatorProps } from './types';
|
|
2
|
+
declare const QBadgeIndicator: {
|
|
3
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<QBadgeIndicatorProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
|
4
|
+
position: import('./types').QBadgeIndicatorPosition;
|
|
5
|
+
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
6
|
+
P: {};
|
|
7
|
+
B: {};
|
|
8
|
+
D: {};
|
|
9
|
+
C: {};
|
|
10
|
+
M: {};
|
|
11
|
+
Defaults: {};
|
|
12
|
+
}, Readonly<QBadgeIndicatorProps> & Readonly<{}>, {}, {}, {}, {}, {
|
|
13
|
+
position: import('./types').QBadgeIndicatorPosition;
|
|
14
|
+
}>;
|
|
15
|
+
__isFragment?: never;
|
|
16
|
+
__isTeleport?: never;
|
|
17
|
+
__isSuspense?: never;
|
|
18
|
+
} & import('vue').ComponentOptionsBase<Readonly<QBadgeIndicatorProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
19
|
+
position: import('./types').QBadgeIndicatorPosition;
|
|
20
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
21
|
+
$slots: {
|
|
22
|
+
default?(_: {}): any;
|
|
23
|
+
content?(_: {}): any;
|
|
24
|
+
};
|
|
25
|
+
});
|
|
26
|
+
export { QBadgeIndicator };
|
|
27
|
+
export type { QBadgeIndicatorProps };
|
|
28
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QBadgeIndicator/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,19 @@
|
|
|
1
|
+
export type QBadgeIndicatorPosition = 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left';
|
|
2
|
+
export type QBadgeIndicatorProps = {
|
|
3
|
+
/**
|
|
4
|
+
* The content to display inside the badge.
|
|
5
|
+
* If omitted, the badge appears as a small dot.
|
|
6
|
+
*/
|
|
7
|
+
content?: string;
|
|
8
|
+
/**
|
|
9
|
+
* The position of the badge relative to the wrapped element.
|
|
10
|
+
* Defaults to `top-right`.
|
|
11
|
+
*/
|
|
12
|
+
position?: QBadgeIndicatorPosition;
|
|
13
|
+
/**
|
|
14
|
+
* The color of the badge.
|
|
15
|
+
* Can be chosen from utility colors like 'success' or 'danger', or specified using CSS color codes.
|
|
16
|
+
*/
|
|
17
|
+
color?: string;
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QBadgeIndicator/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,uBAAuB,GAAG,WAAW,GAAG,UAAU,GAAG,cAAc,GAAG,aAAa,CAAA;AAE/F,MAAM,MAAM,oBAAoB,GAAG;IAClC;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAA;IAEhB;;;OAGG;IACH,QAAQ,CAAC,EAAE,uBAAuB,CAAA;IAElC;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;CACd,CAAA"}
|
|
@@ -30,6 +30,7 @@ declare function __VLS_template(): {
|
|
|
30
30
|
readonly id?: string | undefined;
|
|
31
31
|
readonly placeholder?: string | undefined;
|
|
32
32
|
readonly label?: string | undefined;
|
|
33
|
+
readonly clearable?: boolean | undefined;
|
|
33
34
|
readonly size?: import('..').QFieldSize | undefined;
|
|
34
35
|
readonly maxLength?: number | undefined;
|
|
35
36
|
readonly readonly?: boolean | undefined;
|
|
@@ -38,7 +39,9 @@ declare function __VLS_template(): {
|
|
|
38
39
|
readonly role?: string | undefined;
|
|
39
40
|
readonly type?: string | undefined;
|
|
40
41
|
readonly class?: string | unknown[] | undefined;
|
|
42
|
+
readonly texts?: typeof import('../QTextField/types').DEFAULT_TEXTS | undefined;
|
|
41
43
|
readonly "onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
44
|
+
readonly "onClick:clear"?: ((event: Event) => any) | undefined;
|
|
42
45
|
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
43
46
|
$attrs: {
|
|
44
47
|
[x: string]: unknown;
|
|
@@ -122,17 +125,20 @@ declare function __VLS_template(): {
|
|
|
122
125
|
$root: import('vue').ComponentPublicInstance | null;
|
|
123
126
|
$parent: import('vue').ComponentPublicInstance | null;
|
|
124
127
|
$host: Element | null;
|
|
125
|
-
$emit: (event: "update:modelValue", value: string) => void;
|
|
128
|
+
$emit: ((event: "update:modelValue", value: string) => void) & ((event: "click:clear", event: Event) => void);
|
|
126
129
|
$el: any;
|
|
127
130
|
$options: import('vue').ComponentOptionsBase<Readonly<{
|
|
128
131
|
modelValue?: string;
|
|
129
132
|
} & import('../QTextField/types').QTextFieldProps> & Readonly<{
|
|
130
133
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
134
|
+
"onClick:clear"?: ((event: Event) => any) | undefined;
|
|
131
135
|
}>, {
|
|
132
136
|
fieldRef: import('vue').ComputedRef<HTMLElement | null | undefined>;
|
|
133
137
|
inputRef: import('vue').Ref<HTMLElement | null, HTMLElement | null>;
|
|
134
138
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
135
139
|
"update:modelValue": (value: string) => any;
|
|
140
|
+
} & {
|
|
141
|
+
"click:clear": (event: Event) => any;
|
|
136
142
|
}, string, {
|
|
137
143
|
type: string;
|
|
138
144
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
@@ -161,6 +167,7 @@ declare function __VLS_template(): {
|
|
|
161
167
|
modelValue?: string;
|
|
162
168
|
} & import('../QTextField/types').QTextFieldProps> & Readonly<{
|
|
163
169
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
170
|
+
"onClick:clear"?: ((event: Event) => any) | undefined;
|
|
164
171
|
}>, "type" | "fieldRef" | "inputRef"> & import('vue').ShallowUnwrapRef<{
|
|
165
172
|
fieldRef: import('vue').ComputedRef<HTMLElement | null | undefined>;
|
|
166
173
|
inputRef: import('vue').Ref<HTMLElement | null, HTMLElement | null>;
|
|
@@ -413,6 +420,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
413
420
|
readonly id?: string | undefined;
|
|
414
421
|
readonly placeholder?: string | undefined;
|
|
415
422
|
readonly label?: string | undefined;
|
|
423
|
+
readonly clearable?: boolean | undefined;
|
|
416
424
|
readonly size?: import('..').QFieldSize | undefined;
|
|
417
425
|
readonly maxLength?: number | undefined;
|
|
418
426
|
readonly readonly?: boolean | undefined;
|
|
@@ -421,7 +429,9 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
421
429
|
readonly role?: string | undefined;
|
|
422
430
|
readonly type?: string | undefined;
|
|
423
431
|
readonly class?: string | unknown[] | undefined;
|
|
432
|
+
readonly texts?: typeof import('../QTextField/types').DEFAULT_TEXTS | undefined;
|
|
424
433
|
readonly "onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
434
|
+
readonly "onClick:clear"?: ((event: Event) => any) | undefined;
|
|
425
435
|
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
426
436
|
$attrs: {
|
|
427
437
|
[x: string]: unknown;
|
|
@@ -505,17 +515,20 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
505
515
|
$root: import('vue').ComponentPublicInstance | null;
|
|
506
516
|
$parent: import('vue').ComponentPublicInstance | null;
|
|
507
517
|
$host: Element | null;
|
|
508
|
-
$emit: (event: "update:modelValue", value: string) => void;
|
|
518
|
+
$emit: ((event: "update:modelValue", value: string) => void) & ((event: "click:clear", event: Event) => void);
|
|
509
519
|
$el: any;
|
|
510
520
|
$options: import('vue').ComponentOptionsBase<Readonly<{
|
|
511
521
|
modelValue?: string;
|
|
512
522
|
} & import('../QTextField/types').QTextFieldProps> & Readonly<{
|
|
513
523
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
524
|
+
"onClick:clear"?: ((event: Event) => any) | undefined;
|
|
514
525
|
}>, {
|
|
515
526
|
fieldRef: import('vue').ComputedRef<HTMLElement | null | undefined>;
|
|
516
527
|
inputRef: import('vue').Ref<HTMLElement | null, HTMLElement | null>;
|
|
517
528
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
518
529
|
"update:modelValue": (value: string) => any;
|
|
530
|
+
} & {
|
|
531
|
+
"click:clear": (event: Event) => any;
|
|
519
532
|
}, string, {
|
|
520
533
|
type: string;
|
|
521
534
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
@@ -544,6 +557,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
544
557
|
modelValue?: string;
|
|
545
558
|
} & import('../QTextField/types').QTextFieldProps> & Readonly<{
|
|
546
559
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
560
|
+
"onClick:clear"?: ((event: Event) => any) | undefined;
|
|
547
561
|
}>, "type" | "fieldRef" | "inputRef"> & import('vue').ShallowUnwrapRef<{
|
|
548
562
|
fieldRef: import('vue').ComputedRef<HTMLElement | null | undefined>;
|
|
549
563
|
inputRef: import('vue').Ref<HTMLElement | null, HTMLElement | null>;
|
|
@@ -563,6 +577,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
563
577
|
readonly id?: string | undefined;
|
|
564
578
|
readonly placeholder?: string | undefined;
|
|
565
579
|
readonly label?: string | undefined;
|
|
580
|
+
readonly clearable?: boolean | undefined;
|
|
566
581
|
readonly size?: import('..').QFieldSize | undefined;
|
|
567
582
|
readonly maxLength?: number | undefined;
|
|
568
583
|
readonly readonly?: boolean | undefined;
|
|
@@ -571,7 +586,9 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
571
586
|
readonly role?: string | undefined;
|
|
572
587
|
readonly type?: string | undefined;
|
|
573
588
|
readonly class?: string | unknown[] | undefined;
|
|
589
|
+
readonly texts?: typeof import('../QTextField/types').DEFAULT_TEXTS | undefined;
|
|
574
590
|
readonly "onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
591
|
+
readonly "onClick:clear"?: ((event: Event) => any) | undefined;
|
|
575
592
|
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
576
593
|
$attrs: {
|
|
577
594
|
[x: string]: unknown;
|
|
@@ -655,17 +672,20 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
655
672
|
$root: import('vue').ComponentPublicInstance | null;
|
|
656
673
|
$parent: import('vue').ComponentPublicInstance | null;
|
|
657
674
|
$host: Element | null;
|
|
658
|
-
$emit: (event: "update:modelValue", value: string) => void;
|
|
675
|
+
$emit: ((event: "update:modelValue", value: string) => void) & ((event: "click:clear", event: Event) => void);
|
|
659
676
|
$el: any;
|
|
660
677
|
$options: import('vue').ComponentOptionsBase<Readonly<{
|
|
661
678
|
modelValue?: string;
|
|
662
679
|
} & import('../QTextField/types').QTextFieldProps> & Readonly<{
|
|
663
680
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
681
|
+
"onClick:clear"?: ((event: Event) => any) | undefined;
|
|
664
682
|
}>, {
|
|
665
683
|
fieldRef: import('vue').ComputedRef<HTMLElement | null | undefined>;
|
|
666
684
|
inputRef: import('vue').Ref<HTMLElement | null, HTMLElement | null>;
|
|
667
685
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
668
686
|
"update:modelValue": (value: string) => any;
|
|
687
|
+
} & {
|
|
688
|
+
"click:clear": (event: Event) => any;
|
|
669
689
|
}, string, {
|
|
670
690
|
type: string;
|
|
671
691
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
@@ -694,6 +714,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
694
714
|
modelValue?: string;
|
|
695
715
|
} & import('../QTextField/types').QTextFieldProps> & Readonly<{
|
|
696
716
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
717
|
+
"onClick:clear"?: ((event: Event) => any) | undefined;
|
|
697
718
|
}>, "type" | "fieldRef" | "inputRef"> & import('vue').ShallowUnwrapRef<{
|
|
698
719
|
fieldRef: import('vue').ComputedRef<HTMLElement | null | undefined>;
|
|
699
720
|
inputRef: import('vue').Ref<HTMLElement | null, HTMLElement | null>;
|
|
@@ -742,6 +763,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
742
763
|
readonly id?: string | undefined;
|
|
743
764
|
readonly placeholder?: string | undefined;
|
|
744
765
|
readonly label?: string | undefined;
|
|
766
|
+
readonly clearable?: boolean | undefined;
|
|
745
767
|
readonly size?: import('..').QFieldSize | undefined;
|
|
746
768
|
readonly maxLength?: number | undefined;
|
|
747
769
|
readonly readonly?: boolean | undefined;
|
|
@@ -750,7 +772,9 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
750
772
|
readonly role?: string | undefined;
|
|
751
773
|
readonly type?: string | undefined;
|
|
752
774
|
readonly class?: string | unknown[] | undefined;
|
|
775
|
+
readonly texts?: typeof import('../QTextField/types').DEFAULT_TEXTS | undefined;
|
|
753
776
|
readonly "onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
777
|
+
readonly "onClick:clear"?: ((event: Event) => any) | undefined;
|
|
754
778
|
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
755
779
|
$attrs: {
|
|
756
780
|
[x: string]: unknown;
|
|
@@ -834,17 +858,20 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
834
858
|
$root: import('vue').ComponentPublicInstance | null;
|
|
835
859
|
$parent: import('vue').ComponentPublicInstance | null;
|
|
836
860
|
$host: Element | null;
|
|
837
|
-
$emit: (event: "update:modelValue", value: string) => void;
|
|
861
|
+
$emit: ((event: "update:modelValue", value: string) => void) & ((event: "click:clear", event: Event) => void);
|
|
838
862
|
$el: any;
|
|
839
863
|
$options: import('vue').ComponentOptionsBase<Readonly<{
|
|
840
864
|
modelValue?: string;
|
|
841
865
|
} & import('../QTextField/types').QTextFieldProps> & Readonly<{
|
|
842
866
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
867
|
+
"onClick:clear"?: ((event: Event) => any) | undefined;
|
|
843
868
|
}>, {
|
|
844
869
|
fieldRef: import('vue').ComputedRef<HTMLElement | null | undefined>;
|
|
845
870
|
inputRef: import('vue').Ref<HTMLElement | null, HTMLElement | null>;
|
|
846
871
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
847
872
|
"update:modelValue": (value: string) => any;
|
|
873
|
+
} & {
|
|
874
|
+
"click:clear": (event: Event) => any;
|
|
848
875
|
}, string, {
|
|
849
876
|
type: string;
|
|
850
877
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
@@ -873,6 +900,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
873
900
|
modelValue?: string;
|
|
874
901
|
} & import('../QTextField/types').QTextFieldProps> & Readonly<{
|
|
875
902
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
903
|
+
"onClick:clear"?: ((event: Event) => any) | undefined;
|
|
876
904
|
}>, "type" | "fieldRef" | "inputRef"> & import('vue').ShallowUnwrapRef<{
|
|
877
905
|
fieldRef: import('vue').ComputedRef<HTMLElement | null | undefined>;
|
|
878
906
|
inputRef: import('vue').Ref<HTMLElement | null, HTMLElement | null>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QCombobox.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QCombobox/QCombobox.vue"],"names":[],"mappings":"AAyHA;AAykBC,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,MAA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