@quidgest/ui 0.14.14 → 0.14.16
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/ui.css +86 -45
- package/dist/ui.esm.js +3310 -3202
- package/dist/ui.js +16 -16
- package/dist/ui.min.css +1 -1
- package/dist/ui.min.js +661 -652
- package/dist/ui.scss +97 -55
- package/esm/components/QAccordion/QAccordion.d.ts.map +1 -1
- package/esm/components/QAccordion/QAccordion.vue.js +26 -13
- package/esm/components/QAccordion/index.d.ts +15 -3
- package/esm/components/QAccordion/index.d.ts.map +1 -1
- package/esm/components/QAccordion/types.d.ts +13 -3
- package/esm/components/QAccordion/types.d.ts.map +1 -1
- 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 +35 -29
- package/esm/components/QBadge/index.d.ts +6 -3
- package/esm/components/QBadge/index.d.ts.map +1 -1
- package/esm/components/QBadge/types.d.ts +13 -5
- package/esm/components/QBadge/types.d.ts.map +1 -1
- package/esm/components/QBadgeIndicator/QBadgeIndicator.d.ts +1 -1
- package/esm/components/QBadgeIndicator/QBadgeIndicator.d.ts.map +1 -1
- package/esm/components/QBadgeIndicator/QBadgeIndicator.vue.js +19 -14
- package/esm/components/QBadgeIndicator/index.d.ts +3 -3
- package/esm/components/QBadgeIndicator/types.d.ts +6 -4
- package/esm/components/QBadgeIndicator/types.d.ts.map +1 -1
- package/esm/components/QButton/QButton.d.ts +2 -2
- package/esm/components/QButton/QButton.d.ts.map +1 -1
- package/esm/components/QButton/QButton.vue.js +17 -15
- package/esm/components/QButton/index.d.ts +6 -6
- package/esm/components/QButton/types.d.ts +6 -7
- package/esm/components/QButton/types.d.ts.map +1 -1
- package/esm/components/QButtonGroup/QButtonGroup.d.ts.map +1 -1
- package/esm/components/QButtonGroup/QButtonGroup.vue.js +19 -24
- package/esm/components/QButtonGroup/types.d.ts +2 -5
- package/esm/components/QButtonGroup/types.d.ts.map +1 -1
- package/esm/components/QButtonToggle/QButtonToggle.d.ts.map +1 -1
- package/esm/components/QButtonToggle/QButtonToggle.vue.js +24 -22
- package/esm/components/QButtonToggle/index.d.ts +21 -3
- package/esm/components/QButtonToggle/index.d.ts.map +1 -1
- package/esm/components/QButtonToggle/types.d.ts +4 -7
- package/esm/components/QButtonToggle/types.d.ts.map +1 -1
- package/esm/components/QCard/QCard.d.ts +2 -2
- package/esm/components/QCard/QCard.d.ts.map +1 -1
- package/esm/components/QCard/QCard.vue.js +48 -46
- package/esm/components/QCard/index.d.ts +6 -6
- package/esm/components/QCard/types.d.ts +6 -7
- package/esm/components/QCard/types.d.ts.map +1 -1
- package/esm/components/QCheckbox/QCheckbox.d.ts +2 -2
- package/esm/components/QCheckbox/QCheckbox.d.ts.map +1 -1
- package/esm/components/QCheckbox/QCheckbox.vue.js +73 -78
- package/esm/components/QCheckbox/QCheckboxLabel.vue.js +9 -7
- package/esm/components/QCheckbox/index.d.ts +21 -21
- package/esm/components/QCheckbox/types.d.ts +10 -15
- package/esm/components/QCheckbox/types.d.ts.map +1 -1
- package/esm/components/QCollapsible/QCollapsible.d.ts +2 -2
- package/esm/components/QCollapsible/QCollapsible.d.ts.map +1 -1
- package/esm/components/QCollapsible/QCollapsible.vue.js +12 -9
- package/esm/components/QCollapsible/index.d.ts +33 -6
- package/esm/components/QCollapsible/index.d.ts.map +1 -1
- package/esm/components/QCollapsible/types.d.ts +15 -15
- package/esm/components/QCollapsible/types.d.ts.map +1 -1
- package/esm/components/QColorPicker/QColorPicker.d.ts.map +1 -1
- package/esm/components/QColorPicker/QColorPicker.vue.js +19 -19
- package/esm/components/QColorPicker/index.d.ts +27 -3
- package/esm/components/QColorPicker/index.d.ts.map +1 -1
- package/esm/components/QColorPicker/types.d.ts +2 -9
- package/esm/components/QColorPicker/types.d.ts.map +1 -1
- package/esm/components/QCombobox/QCombobox.d.ts +209 -75
- package/esm/components/QCombobox/QCombobox.d.ts.map +1 -1
- package/esm/components/QCombobox/QCombobox.vue.js +64 -68
- package/esm/components/QCombobox/index.d.ts +331 -89
- package/esm/components/QCombobox/index.d.ts.map +1 -1
- package/esm/components/QCombobox/types.d.ts +14 -51
- package/esm/components/QCombobox/types.d.ts.map +1 -1
- package/esm/components/QCombobox/types.js +3 -3
- package/esm/components/QDateTimePicker/QDateTimePicker.vue.js +5 -3
- package/esm/components/QDateTimePicker/index.d.ts +51 -3
- package/esm/components/QDateTimePicker/index.d.ts.map +1 -1
- package/esm/components/QDateTimePicker/types.d.ts +2 -31
- package/esm/components/QDateTimePicker/types.d.ts.map +1 -1
- package/esm/components/QDialog/QDialog.d.ts +1 -1
- package/esm/components/QDialog/QDialog.d.ts.map +1 -1
- package/esm/components/QDialog/QDialog.vue.js +36 -37
- package/esm/components/QDialog/index.d.ts +39 -6
- package/esm/components/QDialog/index.d.ts.map +1 -1
- package/esm/components/QDialog/types.d.ts +14 -21
- package/esm/components/QDialog/types.d.ts.map +1 -1
- package/esm/components/QDropdownMenu/QDropdownMenu.d.ts +1 -1
- package/esm/components/QDropdownMenu/QDropdownMenu.vue.js +4 -3
- package/esm/components/QDropdownMenu/QDropdownMenuContent.d.ts +60 -26
- package/esm/components/QDropdownMenu/QDropdownMenuContent.d.ts.map +1 -1
- package/esm/components/QDropdownMenu/QDropdownMenuContent.vue.js +68 -63
- package/esm/components/QDropdownMenu/index.d.ts +27 -3
- package/esm/components/QDropdownMenu/index.d.ts.map +1 -1
- package/esm/components/QDropdownMenu/types.d.ts +3 -6
- package/esm/components/QDropdownMenu/types.d.ts.map +1 -1
- package/esm/components/QField/QField.d.ts.map +1 -1
- package/esm/components/QField/QField.vue.js +34 -35
- package/esm/components/QField/types.d.ts +2 -9
- package/esm/components/QField/types.d.ts.map +1 -1
- package/esm/components/QFileUpload/QFileUpload.d.ts +1 -1
- package/esm/components/QFileUpload/QFileUpload.vue.js +9 -9
- package/esm/components/QFileUpload/index.d.ts +39 -6
- package/esm/components/QFileUpload/index.d.ts.map +1 -1
- package/esm/components/QFileUpload/types.d.ts +3 -30
- package/esm/components/QFileUpload/types.d.ts.map +1 -1
- package/esm/components/QIcon/InlineSvg.d.ts.map +1 -1
- package/esm/components/QIcon/InlineSvg.js +16 -16
- package/esm/components/QIcon/QIcon.d.ts +2 -2
- package/esm/components/QIcon/QIcon.d.ts.map +1 -1
- package/esm/components/QIcon/QIcon.vue.js +7 -5
- package/esm/components/QIcon/QIconFont.d.ts.map +1 -1
- package/esm/components/QIcon/QIconFont.vue.js +12 -16
- package/esm/components/QIcon/QIconImg.d.ts +2 -2
- package/esm/components/QIcon/QIconImg.d.ts.map +1 -1
- package/esm/components/QIcon/QIconImg.vue.js +8 -6
- package/esm/components/QIcon/QIconSvg.d.ts.map +1 -1
- package/esm/components/QIcon/QIconSvg.vue.js +12 -10
- package/esm/components/QIcon/index.d.ts +4 -4
- package/esm/components/QIcon/index.d.ts.map +1 -1
- package/esm/components/QIcon/types.d.ts +6 -8
- package/esm/components/QIcon/types.d.ts.map +1 -1
- package/esm/components/QInputGroup/QInputGroup.vue.js +21 -18
- package/esm/components/QInputGroup/types.d.ts +2 -23
- package/esm/components/QInputGroup/types.d.ts.map +1 -1
- package/esm/components/QLineLoader/QLineLoader.d.ts +1 -2
- package/esm/components/QLineLoader/QLineLoader.d.ts.map +1 -1
- package/esm/components/QLineLoader/QLineLoader.vue.js +10 -14
- package/esm/components/QLineLoader/index.d.ts +1 -1
- package/esm/components/QLineLoader/index.d.ts.map +1 -1
- package/esm/components/QLineLoader/types.d.ts +2 -6
- package/esm/components/QLineLoader/types.d.ts.map +1 -1
- package/esm/components/QList/QList.d.ts +3 -3
- package/esm/components/QList/QList.d.ts.map +1 -1
- package/esm/components/QList/QList.vue.js +30 -26
- package/esm/components/QList/index.d.ts +35 -11
- package/esm/components/QList/index.d.ts.map +1 -1
- package/esm/components/QList/types.d.ts +3 -6
- package/esm/components/QList/types.d.ts.map +1 -1
- package/esm/components/QOverlay/QOverlay.d.ts +1 -1
- package/esm/components/QOverlay/QOverlay.d.ts.map +1 -1
- package/esm/components/QOverlay/QOverlay.vue.js +51 -55
- package/esm/components/QOverlay/index.d.ts +63 -6
- package/esm/components/QOverlay/index.d.ts.map +1 -1
- package/esm/components/QOverlay/types.d.ts +2 -5
- package/esm/components/QOverlay/types.d.ts.map +1 -1
- package/esm/components/QPopover/QPopover.d.ts +1 -1
- package/esm/components/QPopover/QPopover.d.ts.map +1 -1
- package/esm/components/QPopover/QPopover.vue.js +23 -20
- package/esm/components/QPopover/index.d.ts +36 -6
- package/esm/components/QPopover/index.d.ts.map +1 -1
- package/esm/components/QPopover/types.d.ts +2 -1
- package/esm/components/QPopover/types.d.ts.map +1 -1
- package/esm/components/QPropertyList/QPropertyList.d.ts +2 -2
- package/esm/components/QPropertyList/QPropertyList.d.ts.map +1 -1
- package/esm/components/QPropertyList/QPropertyList.vue.js +126 -115
- package/esm/components/QPropertyList/QPropertyListGroup.d.ts +2 -2
- package/esm/components/QPropertyList/QPropertyListGroup.d.ts.map +1 -1
- package/esm/components/QPropertyList/QPropertyListGroup.vue.js +19 -17
- package/esm/components/QPropertyList/QPropertyListPanel.d.ts.map +1 -1
- package/esm/components/QPropertyList/QPropertyListPanel.vue.js +19 -14
- package/esm/components/QPropertyList/QPropertyListRow.d.ts +6 -3
- package/esm/components/QPropertyList/QPropertyListRow.d.ts.map +1 -1
- package/esm/components/QPropertyList/QPropertyListRow.vue.js +33 -23
- package/esm/components/QPropertyList/index.d.ts +8 -7
- package/esm/components/QPropertyList/index.d.ts.map +1 -1
- package/esm/components/QPropertyList/types.d.ts +35 -21
- package/esm/components/QPropertyList/types.d.ts.map +1 -1
- package/esm/components/QSelect/QSelect.d.ts +63 -29
- package/esm/components/QSelect/QSelect.d.ts.map +1 -1
- package/esm/components/QSelect/QSelect.vue.js +49 -48
- package/esm/components/QSelect/index.d.ts +104 -24
- package/esm/components/QSelect/index.d.ts.map +1 -1
- package/esm/components/QSelect/types.d.ts +10 -39
- package/esm/components/QSelect/types.d.ts.map +1 -1
- package/esm/components/QSkeletonLoader/QSkeletonLoader.d.ts.map +1 -1
- package/esm/components/QSkeletonLoader/QSkeletonLoader.vue.js +20 -23
- package/esm/components/QSkeletonLoader/types.d.ts +2 -1
- package/esm/components/QSkeletonLoader/types.d.ts.map +1 -1
- package/esm/components/QSpinnerLoader/QSpinnerLoader.d.ts.map +1 -1
- package/esm/components/QSpinnerLoader/QSpinnerLoader.vue.js +13 -17
- package/esm/components/QSpinnerLoader/types.d.ts +2 -5
- package/esm/components/QSpinnerLoader/types.d.ts.map +1 -1
- package/esm/components/QTextField/QTextField.d.ts +2 -2
- package/esm/components/QTextField/QTextField.d.ts.map +1 -1
- package/esm/components/QTextField/QTextField.vue.js +27 -30
- package/esm/components/QTextField/index.d.ts +40 -4
- package/esm/components/QTextField/index.d.ts.map +1 -1
- package/esm/components/QTextField/types.d.ts +2 -40
- package/esm/components/QTextField/types.d.ts.map +1 -1
- package/esm/components/QThemeProvider/QThemeProvider.d.ts.map +1 -1
- package/esm/components/QThemeProvider/QThemeProvider.vue.js +13 -16
- package/esm/components/QThemeProvider/types.d.ts +2 -1
- package/esm/components/QThemeProvider/types.d.ts.map +1 -1
- package/esm/components/QTooltip/QTooltip.d.ts +1 -1
- package/esm/components/QTooltip/QTooltip.vue.js +4 -4
- package/esm/components/QTooltip/index.d.ts +45 -6
- package/esm/components/QTooltip/index.d.ts.map +1 -1
- package/esm/components/QTooltip/types.d.ts +2 -9
- package/esm/components/QTooltip/types.d.ts.map +1 -1
- package/esm/components/__internal__/QChevron/QChevron.d.ts.map +1 -1
- package/esm/components/__internal__/QChevron/QChevron.vue.js +19 -11
- package/esm/components/__internal__/QChevron/index.d.ts +6 -2
- package/esm/components/__internal__/QChevron/index.d.ts.map +1 -1
- package/esm/components/__internal__/QChevron/types.d.ts +2 -5
- package/esm/components/__internal__/QChevron/types.d.ts.map +1 -1
- package/esm/components/__internal__/QClearButton/QClearButton.d.ts.map +1 -1
- package/esm/components/__internal__/QClearButton/QClearButton.vue.js +23 -18
- package/esm/components/__internal__/QClearButton/types.d.ts +2 -5
- package/esm/components/__internal__/QClearButton/types.d.ts.map +1 -1
- package/esm/composables/group.d.ts +88 -8
- package/esm/composables/group.d.ts.map +1 -1
- package/esm/composables/group.js +19 -22
- package/esm/composables/uid.d.ts +3 -2
- package/esm/composables/uid.d.ts.map +1 -1
- package/esm/composables/uid.js +5 -4
- package/esm/types/component.d.ts +18 -0
- package/esm/types/component.d.ts.map +1 -0
- package/package.json +11 -11
|
@@ -1,9 +1,6 @@
|
|
|
1
|
+
import { QBaseComponentProps } from '../../types/component';
|
|
1
2
|
export type QFieldSize = 'mini' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge' | 'block';
|
|
2
|
-
export type QFieldProps = {
|
|
3
|
-
/**
|
|
4
|
-
* The field unique identifier.
|
|
5
|
-
*/
|
|
6
|
-
id?: string;
|
|
3
|
+
export type QFieldProps = QBaseComponentProps & {
|
|
7
4
|
/**
|
|
8
5
|
* The label of the input.
|
|
9
6
|
*/
|
|
@@ -29,9 +26,5 @@ export type QFieldProps = {
|
|
|
29
26
|
* to indicate that the field is required.
|
|
30
27
|
*/
|
|
31
28
|
required?: boolean;
|
|
32
|
-
/**
|
|
33
|
-
* Custom set of classes to apply to the component.
|
|
34
|
-
*/
|
|
35
|
-
class?: string | unknown[];
|
|
36
29
|
};
|
|
37
30
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QField/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,GAAG,QAAQ,GAAG,SAAS,GAAG,OAAO,CAAA;AAE/F,MAAM,MAAM,WAAW,GAAG
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QField/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAA;AAE5D,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,GAAG,QAAQ,GAAG,SAAS,GAAG,OAAO,CAAA;AAE/F,MAAM,MAAM,WAAW,GAAG,mBAAmB,GAAG;IAC/C;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAA;IAEZ;;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;CAClB,CAAA"}
|
|
@@ -20,7 +20,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
20
20
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
21
21
|
"onUpdate:modelValue"?: ((value: File) => any) | undefined;
|
|
22
22
|
}>, {
|
|
23
|
-
size:
|
|
23
|
+
size: import('../QField').QFieldSize;
|
|
24
24
|
icons: typeof DEFAULT_ICONS;
|
|
25
25
|
texts: typeof DEFAULT_TEXTS;
|
|
26
26
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
@@ -26,13 +26,14 @@ const K = ["id", "accept", "required", "readonly", "disabled"], Y = {
|
|
|
26
26
|
__name: "QFileUpload",
|
|
27
27
|
props: /* @__PURE__ */ N({
|
|
28
28
|
id: {},
|
|
29
|
+
class: {},
|
|
29
30
|
label: {},
|
|
31
|
+
for: {},
|
|
30
32
|
size: { default: "large" },
|
|
31
33
|
readonly: { type: Boolean },
|
|
32
34
|
disabled: { type: Boolean },
|
|
33
35
|
required: { type: Boolean },
|
|
34
36
|
accept: {},
|
|
35
|
-
class: {},
|
|
36
37
|
icons: { default: () => H },
|
|
37
38
|
texts: { default: () => $ }
|
|
38
39
|
}, {
|
|
@@ -101,17 +102,16 @@ const K = ["id", "accept", "required", "readonly", "disabled"], Y = {
|
|
|
101
102
|
},
|
|
102
103
|
[
|
|
103
104
|
a("input", F({
|
|
105
|
+
id: i(k),
|
|
104
106
|
ref_key: "fileInput",
|
|
105
107
|
ref: f,
|
|
106
|
-
id: i(k),
|
|
107
108
|
type: "file",
|
|
108
109
|
class: "q-file-input__file-input",
|
|
109
110
|
accept: R.value,
|
|
110
111
|
required: e.required,
|
|
111
112
|
readonly: e.readonly,
|
|
112
|
-
disabled: e.disabled
|
|
113
|
-
|
|
114
|
-
}, l.$attrs), null, 16, K),
|
|
113
|
+
disabled: e.disabled
|
|
114
|
+
}, l.$attrs, { onChange: V }), null, 16, K),
|
|
115
115
|
!t.value && p.value ? (n(), c("div", Y, [
|
|
116
116
|
s(
|
|
117
117
|
i(u),
|
|
@@ -167,9 +167,9 @@ const K = ["id", "accept", "required", "readonly", "disabled"], Y = {
|
|
|
167
167
|
]),
|
|
168
168
|
p.value ? (n(), c("div", se, [
|
|
169
169
|
s(i(b), {
|
|
170
|
-
onClick: B,
|
|
171
170
|
title: e.texts.download,
|
|
172
|
-
borderless: ""
|
|
171
|
+
borderless: "",
|
|
172
|
+
onClick: B
|
|
173
173
|
}, {
|
|
174
174
|
default: _(() => [
|
|
175
175
|
s(
|
|
@@ -184,9 +184,9 @@ const K = ["id", "accept", "required", "readonly", "disabled"], Y = {
|
|
|
184
184
|
/* STABLE */
|
|
185
185
|
}, 8, ["title"]),
|
|
186
186
|
s(i(b), {
|
|
187
|
-
onClick: D,
|
|
188
187
|
title: e.texts.remove,
|
|
189
|
-
borderless: ""
|
|
188
|
+
borderless: "",
|
|
189
|
+
onClick: D
|
|
190
190
|
}, {
|
|
191
191
|
default: _(() => [
|
|
192
192
|
s(
|
|
@@ -2,12 +2,23 @@ import { QFileUploadProps } from './types';
|
|
|
2
2
|
declare const QFileUpload: {
|
|
3
3
|
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
4
4
|
modelValue?: File;
|
|
5
|
-
} &
|
|
5
|
+
} & import('../../types/component').QBaseComponentProps & {
|
|
6
|
+
label?: string;
|
|
7
|
+
for?: string;
|
|
8
|
+
size?: import('..').QFieldSize;
|
|
9
|
+
readonly?: boolean;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
required?: boolean;
|
|
12
|
+
} & {
|
|
13
|
+
accept?: string | string[];
|
|
14
|
+
icons?: typeof import('./types').DEFAULT_ICONS;
|
|
15
|
+
texts?: typeof import('./types').DEFAULT_TEXTS;
|
|
16
|
+
}> & Readonly<{
|
|
6
17
|
"onUpdate:modelValue"?: ((value: File) => any) | undefined;
|
|
7
18
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
8
19
|
"update:modelValue": (value: File) => any;
|
|
9
20
|
}, import('vue').PublicProps, {
|
|
10
|
-
size:
|
|
21
|
+
size: import('..').QFieldSize;
|
|
11
22
|
icons: typeof import('./types').DEFAULT_ICONS;
|
|
12
23
|
texts: typeof import('./types').DEFAULT_TEXTS;
|
|
13
24
|
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
@@ -22,10 +33,21 @@ declare const QFileUpload: {
|
|
|
22
33
|
Defaults: {};
|
|
23
34
|
}, Readonly<{
|
|
24
35
|
modelValue?: File;
|
|
25
|
-
} &
|
|
36
|
+
} & import('../../types/component').QBaseComponentProps & {
|
|
37
|
+
label?: string;
|
|
38
|
+
for?: string;
|
|
39
|
+
size?: import('..').QFieldSize;
|
|
40
|
+
readonly?: boolean;
|
|
41
|
+
disabled?: boolean;
|
|
42
|
+
required?: boolean;
|
|
43
|
+
} & {
|
|
44
|
+
accept?: string | string[];
|
|
45
|
+
icons?: typeof import('./types').DEFAULT_ICONS;
|
|
46
|
+
texts?: typeof import('./types').DEFAULT_TEXTS;
|
|
47
|
+
}> & Readonly<{
|
|
26
48
|
"onUpdate:modelValue"?: ((value: File) => any) | undefined;
|
|
27
49
|
}>, {}, {}, {}, {}, {
|
|
28
|
-
size:
|
|
50
|
+
size: import('..').QFieldSize;
|
|
29
51
|
icons: typeof import('./types').DEFAULT_ICONS;
|
|
30
52
|
texts: typeof import('./types').DEFAULT_TEXTS;
|
|
31
53
|
}>;
|
|
@@ -34,12 +56,23 @@ declare const QFileUpload: {
|
|
|
34
56
|
__isSuspense?: never;
|
|
35
57
|
} & import('vue').ComponentOptionsBase<Readonly<{
|
|
36
58
|
modelValue?: File;
|
|
37
|
-
} &
|
|
59
|
+
} & import('../../types/component').QBaseComponentProps & {
|
|
60
|
+
label?: string;
|
|
61
|
+
for?: string;
|
|
62
|
+
size?: import('..').QFieldSize;
|
|
63
|
+
readonly?: boolean;
|
|
64
|
+
disabled?: boolean;
|
|
65
|
+
required?: boolean;
|
|
66
|
+
} & {
|
|
67
|
+
accept?: string | string[];
|
|
68
|
+
icons?: typeof import('./types').DEFAULT_ICONS;
|
|
69
|
+
texts?: typeof import('./types').DEFAULT_TEXTS;
|
|
70
|
+
}> & Readonly<{
|
|
38
71
|
"onUpdate:modelValue"?: ((value: File) => any) | undefined;
|
|
39
72
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
40
73
|
"update:modelValue": (value: File) => any;
|
|
41
74
|
}, string, {
|
|
42
|
-
size:
|
|
75
|
+
size: import('..').QFieldSize;
|
|
43
76
|
icons: typeof import('./types').DEFAULT_ICONS;
|
|
44
77
|
texts: typeof import('./types').DEFAULT_TEXTS;
|
|
45
78
|
}, {}, 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/QFileUpload/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAK/C,QAAA,MAAM,WAAW
|
|
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"}
|
|
@@ -1,37 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
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;
|
|
1
|
+
import { QFieldProps } from '../QField';
|
|
2
|
+
export type QFileUploadSize = 'large' | 'xlarge' | 'xxlarge' | 'block';
|
|
3
|
+
export type QFileUploadProps = QFieldProps & {
|
|
27
4
|
/**
|
|
28
5
|
* Specifies the accepted file types.
|
|
29
6
|
*/
|
|
30
7
|
accept?: string | string[];
|
|
31
|
-
/**
|
|
32
|
-
* Custom set of classes to apply to the component.
|
|
33
|
-
*/
|
|
34
|
-
class?: string | unknown[];
|
|
35
8
|
/**
|
|
36
9
|
* Custom icon configurations.
|
|
37
10
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QFileUpload/types.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QFileUpload/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AAGtD,MAAM,MAAM,eAAe,GAAG,OAAO,GAAG,QAAQ,GAAG,SAAS,GAAG,OAAO,CAAA;AAEtE,MAAM,MAAM,gBAAgB,GAAG,WAAW,GAAG;IAC5C;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InlineSvg.d.ts","sourceRoot":"","sources":["../../../src/components/QIcon/InlineSvg.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"InlineSvg.d.ts","sourceRoot":"","sources":["../../../src/components/QIcon/InlineSvg.js"],"names":[],"mappings":";IAWE;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;;OAGG;;;;;IAMH;;;OAGG;;;;;;IAeF,uBAAuB;iBAAb,UAAU;;;;;IA+CrB;;;OAGG;mBADQ,MAAM;IAoCjB;;;;OAIG;kBAFQ,MAAM,GACJ,gBAAgB,CAAC,OAAO,CAAC;;;;;;IA3ItC;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;;OAGG;;;;;IAMH;;;OAGG"}
|
|
@@ -1,19 +1,7 @@
|
|
|
1
1
|
import { defineComponent as a, h as s } from "vue";
|
|
2
2
|
const o = {}, h = a({
|
|
3
3
|
name: "InlineSvg",
|
|
4
|
-
emits: {
|
|
5
|
-
loaded: (t) => typeof t == "object",
|
|
6
|
-
unloaded: () => !0,
|
|
7
|
-
error: (t) => typeof t == "object"
|
|
8
|
-
},
|
|
9
4
|
inheritAttrs: !1,
|
|
10
|
-
render() {
|
|
11
|
-
if (!this.svgElSource) return null;
|
|
12
|
-
const t = this.getSvgContent(this.svgElSource);
|
|
13
|
-
if (!t) return s("div", this.$attrs);
|
|
14
|
-
const e = {};
|
|
15
|
-
return this.copySvgAttrs(e, this.svgElSource), this.copySvgAttrs(e, t), this.copyComponentAttrs(e, this.$attrs), e.innerHTML = t.innerHTML, s("svg", e);
|
|
16
|
-
},
|
|
17
5
|
props: {
|
|
18
6
|
/**
|
|
19
7
|
* The source URL of the SVG bundle.
|
|
@@ -53,12 +41,22 @@ const o = {}, h = a({
|
|
|
53
41
|
default: !0
|
|
54
42
|
}
|
|
55
43
|
},
|
|
44
|
+
emits: {
|
|
45
|
+
loaded: (t) => typeof t == "object",
|
|
46
|
+
unloaded: () => !0,
|
|
47
|
+
error: (t) => typeof t == "object"
|
|
48
|
+
},
|
|
56
49
|
data() {
|
|
57
50
|
return {
|
|
58
51
|
/** @type SVGElement */
|
|
59
52
|
svgElSource: null
|
|
60
53
|
};
|
|
61
54
|
},
|
|
55
|
+
watch: {
|
|
56
|
+
src(t) {
|
|
57
|
+
this.getSource(t);
|
|
58
|
+
}
|
|
59
|
+
},
|
|
62
60
|
async mounted() {
|
|
63
61
|
await this.getSource(this.src);
|
|
64
62
|
},
|
|
@@ -100,10 +98,12 @@ const o = {}, h = a({
|
|
|
100
98
|
return i;
|
|
101
99
|
}
|
|
102
100
|
},
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
101
|
+
render() {
|
|
102
|
+
if (!this.svgElSource) return null;
|
|
103
|
+
const t = this.getSvgContent(this.svgElSource);
|
|
104
|
+
if (!t) return s("div", this.$attrs);
|
|
105
|
+
const e = {};
|
|
106
|
+
return this.copySvgAttrs(e, this.svgElSource), this.copySvgAttrs(e, t), this.copyComponentAttrs(e, this.$attrs), e.innerHTML = t.innerHTML, s("svg", e);
|
|
107
107
|
},
|
|
108
108
|
expose: []
|
|
109
109
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const _default: import('vue').DefineComponent<
|
|
1
|
+
import { QIconProps } from './types';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<QIconProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<QIconProps> & Readonly<{}>, {
|
|
3
3
|
type: "svg" | "font" | "img";
|
|
4
4
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
5
5
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QIcon.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QIcon/QIcon.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"QIcon.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QIcon/QIcon.vue"],"names":[],"mappings":"AAQA;AA0CC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;;;;AA6E1C,wBAQG"}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { defineComponent as c, computed as s, createBlock as t, openBlock as r, resolveDynamicComponent as
|
|
1
|
+
import { defineComponent as c, computed as s, createBlock as t, openBlock as r, resolveDynamicComponent as i, normalizeClass as a } from "vue";
|
|
2
2
|
import { QIconImg as l, QIconFont as p, QIconSvg as m } from "./index.js";
|
|
3
3
|
const g = /* @__PURE__ */ c({
|
|
4
4
|
__name: "QIcon",
|
|
5
5
|
props: {
|
|
6
|
+
id: {},
|
|
7
|
+
class: {},
|
|
6
8
|
icon: {},
|
|
7
9
|
size: {},
|
|
8
|
-
class: {},
|
|
9
10
|
type: { default: "svg" }
|
|
10
11
|
},
|
|
11
12
|
setup(n) {
|
|
@@ -21,11 +22,12 @@ const g = /* @__PURE__ */ c({
|
|
|
21
22
|
return;
|
|
22
23
|
}
|
|
23
24
|
});
|
|
24
|
-
return (u,
|
|
25
|
-
|
|
25
|
+
return (u, d) => (r(), t(i(o.value), {
|
|
26
|
+
id: e.id,
|
|
27
|
+
class: a(e.class),
|
|
26
28
|
icon: e.icon,
|
|
27
29
|
size: e.size
|
|
28
|
-
}, null, 8, ["class", "icon", "size"]));
|
|
30
|
+
}, null, 8, ["id", "class", "icon", "size"]));
|
|
29
31
|
}
|
|
30
32
|
});
|
|
31
33
|
export {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QIconFont.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QIcon/QIconFont.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"QIconFont.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QIcon/QIconFont.vue"],"names":[],"mappings":"AAOA;AAoCC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;;;;AAsE9C,wBAQG"}
|
|
@@ -1,29 +1,25 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
const
|
|
1
|
+
import { defineComponent as a, computed as e, createElementBlock as s, openBlock as c, normalizeStyle as l, normalizeClass as u } from "vue";
|
|
2
|
+
const d = ["id"], m = /* @__PURE__ */ a({
|
|
3
3
|
__name: "QIconFont",
|
|
4
4
|
props: {
|
|
5
|
+
id: {},
|
|
6
|
+
class: {},
|
|
5
7
|
icon: {},
|
|
6
8
|
size: {},
|
|
7
|
-
class: {},
|
|
8
9
|
library: { default: "" },
|
|
9
10
|
variant: {}
|
|
10
11
|
},
|
|
11
|
-
setup(
|
|
12
|
-
const n =
|
|
12
|
+
setup(i) {
|
|
13
|
+
const n = i, r = e(() => n.variant ? `${n.library}-${n.variant}` : n.library), t = e(() => n.library && n.icon ? `${n.library}-${n.icon}` : n.icon), o = e(() => ({
|
|
13
14
|
"font-size": n.size !== void 0 ? `${n.size}px` : void 0
|
|
14
15
|
}));
|
|
15
|
-
return (f, p) => (c(),
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
},
|
|
21
|
-
null,
|
|
22
|
-
6
|
|
23
|
-
/* CLASS, STYLE */
|
|
24
|
-
));
|
|
16
|
+
return (f, p) => (c(), s("i", {
|
|
17
|
+
id: n.id,
|
|
18
|
+
class: u(["q-icon", "q-icon__font", r.value, t.value, n.class]),
|
|
19
|
+
style: l(o.value)
|
|
20
|
+
}, null, 14, d));
|
|
25
21
|
}
|
|
26
22
|
});
|
|
27
23
|
export {
|
|
28
|
-
|
|
24
|
+
m as default
|
|
29
25
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const _default: import('vue').DefineComponent<
|
|
1
|
+
import { QIconBaseProps } from './types';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<QIconBaseProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<QIconBaseProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLImageElement>;
|
|
3
3
|
export default _default;
|
|
4
4
|
//# sourceMappingURL=QIconImg.vue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QIconImg.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QIcon/QIconImg.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"QIconImg.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QIcon/QIconImg.vue"],"names":[],"mappings":"AAOA;AAwBC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;;AAqD9C,wBAOG"}
|
|
@@ -1,16 +1,18 @@
|
|
|
1
|
-
import { defineComponent as s, computed as c, createElementBlock as
|
|
2
|
-
const a = ["src"],
|
|
1
|
+
import { defineComponent as s, computed as c, createElementBlock as i, openBlock as t, normalizeStyle as l, normalizeClass as r } from "vue";
|
|
2
|
+
const a = ["id", "src"], _ = /* @__PURE__ */ s({
|
|
3
3
|
__name: "QIconImg",
|
|
4
4
|
props: {
|
|
5
|
+
id: {},
|
|
6
|
+
class: {},
|
|
5
7
|
icon: {},
|
|
6
|
-
size: {}
|
|
7
|
-
class: {}
|
|
8
|
+
size: {}
|
|
8
9
|
},
|
|
9
10
|
setup(n) {
|
|
10
11
|
const e = n, o = c(() => ({
|
|
11
12
|
"font-size": e.size !== void 0 ? `${e.size}px` : void 0
|
|
12
13
|
}));
|
|
13
|
-
return (
|
|
14
|
+
return (d, m) => (t(), i("img", {
|
|
15
|
+
id: e.id,
|
|
14
16
|
src: e.icon,
|
|
15
17
|
class: r(["q-icon", "q-icon__img", e.class]),
|
|
16
18
|
style: l(o.value)
|
|
@@ -18,5 +20,5 @@ const a = ["src"], u = /* @__PURE__ */ s({
|
|
|
18
20
|
}
|
|
19
21
|
});
|
|
20
22
|
export {
|
|
21
|
-
|
|
23
|
+
_ as default
|
|
22
24
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QIconSvg.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QIcon/QIconSvg.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"QIconSvg.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QIcon/QIconSvg.vue"],"names":[],"mappings":"AAUA;AAgDC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;;;;;;;;;;AAqG7C,wBASG"}
|
|
@@ -1,32 +1,34 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as t, computed as a, createBlock as r, openBlock as u, unref as m, normalizeStyle as f, normalizeClass as p } from "vue";
|
|
2
2
|
import _ from "./InlineSvg.js";
|
|
3
|
-
const v = /* @__PURE__ */
|
|
3
|
+
const v = /* @__PURE__ */ t({
|
|
4
4
|
__name: "QIconSvg",
|
|
5
5
|
props: {
|
|
6
|
+
id: {},
|
|
7
|
+
class: {},
|
|
6
8
|
icon: {},
|
|
7
9
|
size: {},
|
|
8
|
-
class: {},
|
|
9
10
|
bundle: { default: "" }
|
|
10
11
|
},
|
|
11
12
|
emits: ["loaded", "unloaded"],
|
|
12
13
|
setup(s, { emit: l }) {
|
|
13
|
-
const e = s, n = l,
|
|
14
|
+
const e = s, n = l, i = a(() => ({
|
|
14
15
|
"font-size": e.size !== void 0 ? `${e.size}px` : void 0
|
|
15
16
|
}));
|
|
16
|
-
function
|
|
17
|
+
function c(o) {
|
|
17
18
|
n("loaded", o);
|
|
18
19
|
}
|
|
19
|
-
function
|
|
20
|
+
function d() {
|
|
20
21
|
n("unloaded");
|
|
21
22
|
}
|
|
22
23
|
return (o, y) => (u(), r(m(_), {
|
|
24
|
+
id: e.id,
|
|
23
25
|
class: p(["q-icon", "q-icon__svg", e.class]),
|
|
24
26
|
src: e.bundle,
|
|
25
27
|
symbol: e.icon,
|
|
26
|
-
style: f(
|
|
27
|
-
onLoaded:
|
|
28
|
-
onUnloaded:
|
|
29
|
-
}, null, 8, ["class", "src", "symbol", "style"]));
|
|
28
|
+
style: f(i.value),
|
|
29
|
+
onLoaded: c,
|
|
30
|
+
onUnloaded: d
|
|
31
|
+
}, null, 8, ["id", "class", "src", "symbol", "style"]));
|
|
30
32
|
}
|
|
31
33
|
});
|
|
32
34
|
export {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const QIcon: import('vue').DefineComponent<
|
|
1
|
+
import { QIconProps } from './types';
|
|
2
|
+
declare const QIcon: import('vue').DefineComponent<QIconProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<QIconProps> & Readonly<{}>, {
|
|
3
3
|
type: "svg" | "font" | "img";
|
|
4
4
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
5
5
|
declare const QIconFont: import('vue').DefineComponent<import('./types').QIconFontProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('./types').QIconFontProps> & Readonly<{}>, {
|
|
6
6
|
library: string;
|
|
7
7
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLElement>;
|
|
8
|
-
declare const QIconImg: import('vue').DefineComponent<import('./types').
|
|
8
|
+
declare const QIconImg: import('vue').DefineComponent<import('./types').QIconBaseProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('./types').QIconBaseProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLImageElement>;
|
|
9
9
|
declare const QIconSvg: import('vue').DefineComponent<import('./types').QIconSvgProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
10
10
|
unloaded: () => any;
|
|
11
11
|
loaded: (value: Element) => any;
|
|
@@ -16,5 +16,5 @@ declare const QIconSvg: import('vue').DefineComponent<import('./types').QIconSvg
|
|
|
16
16
|
bundle: string;
|
|
17
17
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
18
18
|
export { QIcon, QIconFont, QIconImg, QIconSvg };
|
|
19
|
-
export type { Icon };
|
|
19
|
+
export type { QIconProps as Icon };
|
|
20
20
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QIcon/index.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QIcon/index.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AAKzC,QAAA,MAAM,KAAK;;6EAA0B,CAAA;AACrC,QAAA,MAAM,SAAS;;qFAA8B,CAAA;AAC7C,QAAA,MAAM,QAAQ,yVAA6B,CAAA;AAC3C,QAAA,MAAM,QAAQ;;;;;;;;6EAA6B,CAAA;AAG3C,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,CAAA;AAG/C,YAAY,EAAE,UAAU,IAAI,IAAI,EAAE,CAAA"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import { QBaseComponentProps } from '../../types/component';
|
|
2
|
+
export type QIconBaseProps = QBaseComponentProps & {
|
|
2
3
|
/**
|
|
3
4
|
* Can be:
|
|
4
5
|
* - The classname containing the content of the font icon.
|
|
@@ -10,18 +11,14 @@ export type QIconGenericProps = {
|
|
|
10
11
|
* The size of the icon, in pixels.
|
|
11
12
|
*/
|
|
12
13
|
size?: number;
|
|
13
|
-
/**
|
|
14
|
-
* Custom set of classes to apply to the component.
|
|
15
|
-
*/
|
|
16
|
-
class?: string | unknown[];
|
|
17
14
|
};
|
|
18
|
-
export type
|
|
15
|
+
export type QIconProps = QIconBaseProps & {
|
|
19
16
|
/**
|
|
20
17
|
* The type of resource.
|
|
21
18
|
*/
|
|
22
19
|
type?: 'svg' | 'font' | 'img';
|
|
23
20
|
};
|
|
24
|
-
export type QIconFontProps =
|
|
21
|
+
export type QIconFontProps = QIconBaseProps & {
|
|
25
22
|
/**
|
|
26
23
|
* The name of the icon library.
|
|
27
24
|
*/
|
|
@@ -31,7 +28,8 @@ export type QIconFontProps = QIconGenericProps & {
|
|
|
31
28
|
*/
|
|
32
29
|
variant?: string;
|
|
33
30
|
};
|
|
34
|
-
export type
|
|
31
|
+
export type QIconImgProps = QIconBaseProps;
|
|
32
|
+
export type QIconSvgProps = QIconBaseProps & {
|
|
35
33
|
/**
|
|
36
34
|
* The name of the SVG bundle.
|
|
37
35
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QIcon/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QIcon/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAA;AAE5D,MAAM,MAAM,cAAc,GAAG,mBAAmB,GAAG;IAClD;;;;;OAKG;IACH,IAAI,EAAE,MAAM,CAAA;IAEZ;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;CACb,CAAA;AAED,MAAM,MAAM,UAAU,GAAG,cAAc,GAAG;IACzC;;OAEG;IACH,IAAI,CAAC,EAAE,KAAK,GAAG,MAAM,GAAG,KAAK,CAAA;CAC7B,CAAA;AAED,MAAM,MAAM,cAAc,GAAG,cAAc,GAAG;IAC7C;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAA;IAEhB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAA;CAChB,CAAA;AAED,MAAM,MAAM,aAAa,GAAG,cAAc,CAAA;AAE1C,MAAM,MAAM,aAAa,GAAG,cAAc,GAAG;IAC5C;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;CACf,CAAA"}
|
|
@@ -1,31 +1,34 @@
|
|
|
1
|
-
import { defineComponent as f, createBlock as m, openBlock as
|
|
1
|
+
import { defineComponent as f, createBlock as m, openBlock as n, unref as t, normalizeClass as _, createSlots as I, withCtx as a, createElementBlock as r, createCommentVNode as s, renderSlot as p, createVNode as l, normalizeProps as d, guardReactiveProps as i } from "vue";
|
|
2
2
|
import { QField as k } from "../QField/index.js";
|
|
3
3
|
import { QIcon as u } from "../QIcon/index.js";
|
|
4
|
-
import { provideDefaults as
|
|
5
|
-
const
|
|
4
|
+
import { provideDefaults as y } from "../../composables/defaults.js";
|
|
5
|
+
const v = {
|
|
6
6
|
key: 0,
|
|
7
7
|
class: "q-input-group__prepend"
|
|
8
|
-
},
|
|
8
|
+
}, q = { key: 0 }, z = {
|
|
9
9
|
key: 1,
|
|
10
10
|
class: "q-input-group__append"
|
|
11
|
-
},
|
|
11
|
+
}, $ = { key: 0 }, Q = /* @__PURE__ */ f({
|
|
12
12
|
__name: "QInputGroup",
|
|
13
13
|
props: {
|
|
14
14
|
id: {},
|
|
15
|
+
class: {},
|
|
15
16
|
label: {},
|
|
17
|
+
for: {},
|
|
18
|
+
size: { default: "large" },
|
|
19
|
+
readonly: { type: Boolean },
|
|
20
|
+
disabled: { type: Boolean },
|
|
16
21
|
required: { type: Boolean },
|
|
17
22
|
prependIcon: {},
|
|
18
|
-
appendIcon: {}
|
|
19
|
-
size: { default: "large" },
|
|
20
|
-
class: {}
|
|
23
|
+
appendIcon: {}
|
|
21
24
|
},
|
|
22
25
|
setup(c) {
|
|
23
26
|
const e = c;
|
|
24
|
-
return
|
|
27
|
+
return y({
|
|
25
28
|
QField: {
|
|
26
29
|
size: "block"
|
|
27
30
|
}
|
|
28
|
-
}), (o,
|
|
31
|
+
}), (o, b) => (n(), m(t(k), {
|
|
29
32
|
id: e.id,
|
|
30
33
|
class: _(["q-input-group", e.class]),
|
|
31
34
|
label: e.label,
|
|
@@ -33,8 +36,8 @@ const q = {
|
|
|
33
36
|
size: e.size
|
|
34
37
|
}, I({
|
|
35
38
|
default: a(() => [
|
|
36
|
-
o.$slots.prepend || e.prependIcon ? (
|
|
37
|
-
e.prependIcon ? (
|
|
39
|
+
o.$slots.prepend || e.prependIcon ? (n(), r("div", v, [
|
|
40
|
+
e.prependIcon ? (n(), r("span", q, [
|
|
38
41
|
l(
|
|
39
42
|
t(u),
|
|
40
43
|
d(i(e.prependIcon)),
|
|
@@ -42,12 +45,12 @@ const q = {
|
|
|
42
45
|
16
|
|
43
46
|
/* FULL_PROPS */
|
|
44
47
|
)
|
|
45
|
-
])) :
|
|
48
|
+
])) : s("v-if", !0),
|
|
46
49
|
p(o.$slots, "prepend")
|
|
47
|
-
])) :
|
|
50
|
+
])) : s("v-if", !0),
|
|
48
51
|
p(o.$slots, "default"),
|
|
49
|
-
o.$slots.append || e.appendIcon ? (
|
|
50
|
-
e.appendIcon ? (
|
|
52
|
+
o.$slots.append || e.appendIcon ? (n(), r("div", z, [
|
|
53
|
+
e.appendIcon ? (n(), r("span", $, [
|
|
51
54
|
l(
|
|
52
55
|
t(u),
|
|
53
56
|
d(i(e.appendIcon)),
|
|
@@ -55,9 +58,9 @@ const q = {
|
|
|
55
58
|
16
|
|
56
59
|
/* FULL_PROPS */
|
|
57
60
|
)
|
|
58
|
-
])) :
|
|
61
|
+
])) : s("v-if", !0),
|
|
59
62
|
p(o.$slots, "append")
|
|
60
|
-
])) :
|
|
63
|
+
])) : s("v-if", !0)
|
|
61
64
|
]),
|
|
62
65
|
_: 2
|
|
63
66
|
/* DYNAMIC */
|