@quidgest/ui 0.16.38 → 0.16.40
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/json/api.json +2459 -516
- package/dist/manifest/components.json +1 -0
- package/dist/ui.css +121 -2
- package/dist/ui.esm.js +3673 -3643
- package/dist/ui.js +7 -7
- package/dist/ui.min.css +1 -1
- package/dist/ui.min.js +138 -135
- package/dist/ui.scss +127 -3
- package/esm/components/QBadge/QBadge.d.ts.map +1 -1
- package/esm/components/QBadge/QBadge.vue.js +22 -19
- package/esm/components/QBadge/types.d.ts +6 -0
- package/esm/components/QBadge/types.d.ts.map +1 -1
- package/esm/components/QGrid/QCol.d.ts.map +1 -1
- package/esm/components/QGrid/QCol.vue.js +12 -9
- package/esm/components/QGroupBox/QGroupBox.d.ts +21 -0
- package/esm/components/QGroupBox/QGroupBox.d.ts.map +1 -0
- package/esm/components/QGroupBox/QGroupBox.vue.js +44 -0
- package/esm/components/QGroupBox/QGroupBox.vue2.js +4 -0
- package/esm/components/QGroupBox/index.d.ts +26 -0
- package/esm/components/QGroupBox/index.d.ts.map +1 -0
- package/esm/components/QGroupBox/index.js +6 -0
- package/esm/components/QGroupBox/types.d.ts +32 -0
- package/esm/components/QGroupBox/types.d.ts.map +1 -0
- package/esm/components/QList/QList.d.ts.map +1 -1
- package/esm/components/QList/QList.vue.js +3 -7
- package/esm/components/QSelect/QSelect.d.ts +2 -0
- package/esm/components/QSelect/QSelect.d.ts.map +1 -1
- package/esm/components/QSelect/QSelect.vue.js +163 -169
- package/esm/components/QSelect/index.d.ts +1 -0
- package/esm/components/QSelect/index.d.ts.map +1 -1
- package/esm/components/index.d.ts +1 -0
- package/esm/components/index.d.ts.map +1 -1
- package/esm/components/index.js +70 -68
- package/esm/composables/useGroup/index.js +17 -17
- package/esm/index.d.ts +1 -0
- package/package.json +1 -1
package/esm/components/index.js
CHANGED
|
@@ -9,10 +9,10 @@ import { QCarousel as L } from "./QCarousel/index.js";
|
|
|
9
9
|
import { QCheckbox as g, QCheckboxLabel as P } from "./QCheckbox/index.js";
|
|
10
10
|
import { QCollapsible as b } from "./QCollapsible/index.js";
|
|
11
11
|
import { QColorPicker as v } from "./QColorPicker/index.js";
|
|
12
|
-
import { QCombobox as
|
|
13
|
-
import { QDateTimePicker as
|
|
14
|
-
import { QDefaultsProvider as
|
|
15
|
-
import { QDialog as
|
|
12
|
+
import { QCombobox as G } from "./QCombobox/index.js";
|
|
13
|
+
import { QDateTimePicker as F } from "./QDateTimePicker/index.js";
|
|
14
|
+
import { QDefaultsProvider as B } from "./QDefaultsProvider/index.js";
|
|
15
|
+
import { QDialog as w, QDialogProvider as A } from "./QDialog/index.js";
|
|
16
16
|
import { QDismissibleLayer as R } from "./QDismissibleLayer/index.js";
|
|
17
17
|
import { QDivider as M } from "./QDivider/index.js";
|
|
18
18
|
import { QDropdownMenu as O } from "./QDropdownMenu/index.js";
|
|
@@ -20,32 +20,33 @@ import { QField as _ } from "./QField/index.js";
|
|
|
20
20
|
import { QFileUpload as q } from "./QFileUpload/index.js";
|
|
21
21
|
import { QFocusTrap as H } from "./QFocusTrap/index.js";
|
|
22
22
|
import { QCol as K, QContainer as N, QRow as V, QSpacer as W } from "./QGrid/index.js";
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
23
|
+
import { QGroupBox as Z } from "./QGroupBox/index.js";
|
|
24
|
+
import { QIcon as oo, QIconFont as ro, QIconImg as eo, QIconSvg as to } from "./QIcon/index.js";
|
|
25
|
+
import { QInputGroup as Qo } from "./QInputGroup/index.js";
|
|
26
|
+
import { QLabel as xo } from "./QLabel/index.js";
|
|
27
|
+
import { QLineLoader as io } from "./QLineLoader/index.js";
|
|
28
|
+
import { QList as lo, QListItem as no, QListItemGroup as so } from "./QList/index.js";
|
|
29
|
+
import { QMeter as uo } from "./QMeter/index.js";
|
|
30
|
+
import { QOverlay as To } from "./QOverlay/index.js";
|
|
31
|
+
import { QPasswordField as Po } from "./QPasswordField/index.js";
|
|
32
|
+
import { QPopover as bo } from "./QPopover/index.js";
|
|
33
|
+
import { QPropertyList as vo, QPropertyListGroup as Do, QPropertyListPanel as Go, QPropertyListRow as So } from "./QPropertyList/index.js";
|
|
34
|
+
import { QRadioButton as yo, QRadioGroup as Bo } from "./QRadioGroup/index.js";
|
|
35
|
+
import { QSelect as wo } from "./QSelect/index.js";
|
|
36
|
+
import { QSidebar as ho } from "./QSidebar/index.js";
|
|
37
|
+
import { QSkeletonLoader as Eo } from "./QSkeletonLoader/index.js";
|
|
38
|
+
import { QSpinnerLoader as Uo } from "./QSpinnerLoader/index.js";
|
|
39
|
+
import { QSwitch as Xo } from "./QSwitch/index.js";
|
|
40
|
+
import { QTextArea as jo } from "./QTextArea/index.js";
|
|
41
|
+
import { QTextField as zo } from "./QTextField/index.js";
|
|
42
|
+
import { QThemeProvider as Jo } from "./QThemeProvider/index.js";
|
|
43
|
+
import { QToast as No, QToaster as Vo } from "./QToast/index.js";
|
|
44
|
+
import { QToggle as Yo } from "./QToggle/index.js";
|
|
45
|
+
import { QToggleGroup as $o, QToggleGroupItem as or } from "./QToggleGroup/index.js";
|
|
46
|
+
import { QTooltip as er } from "./QTooltip/index.js";
|
|
47
|
+
import { DEFAULT_TEXTS as pr } from "./QTextField/types.js";
|
|
47
48
|
export {
|
|
48
|
-
|
|
49
|
+
pr as DEFAULT_TEXTS,
|
|
49
50
|
e as QAccordion,
|
|
50
51
|
t as QAccordionItem,
|
|
51
52
|
Q as QAvatar,
|
|
@@ -60,52 +61,53 @@ export {
|
|
|
60
61
|
K as QCol,
|
|
61
62
|
b as QCollapsible,
|
|
62
63
|
v as QColorPicker,
|
|
63
|
-
|
|
64
|
+
G as QCombobox,
|
|
64
65
|
N as QContainer,
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
66
|
+
F as QDateTimePicker,
|
|
67
|
+
B as QDefaultsProvider,
|
|
68
|
+
w as QDialog,
|
|
69
|
+
A as QDialogProvider,
|
|
69
70
|
R as QDismissibleLayer,
|
|
70
71
|
M as QDivider,
|
|
71
72
|
O as QDropdownMenu,
|
|
72
73
|
_ as QField,
|
|
73
74
|
q as QFileUpload,
|
|
74
75
|
H as QFocusTrap,
|
|
75
|
-
Z as
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
to as
|
|
80
|
-
Qo as
|
|
81
|
-
xo as
|
|
82
|
-
io as
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
so as
|
|
86
|
-
uo as
|
|
87
|
-
To as
|
|
88
|
-
Po as
|
|
89
|
-
bo as
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
76
|
+
Z as QGroupBox,
|
|
77
|
+
oo as QIcon,
|
|
78
|
+
ro as QIconFont,
|
|
79
|
+
eo as QIconImg,
|
|
80
|
+
to as QIconSvg,
|
|
81
|
+
Qo as QInputGroup,
|
|
82
|
+
xo as QLabel,
|
|
83
|
+
io as QLineLoader,
|
|
84
|
+
lo as QList,
|
|
85
|
+
no as QListItem,
|
|
86
|
+
so as QListItemGroup,
|
|
87
|
+
uo as QMeter,
|
|
88
|
+
To as QOverlay,
|
|
89
|
+
Po as QPasswordField,
|
|
90
|
+
bo as QPopover,
|
|
91
|
+
vo as QPropertyList,
|
|
92
|
+
Do as QPropertyListGroup,
|
|
93
|
+
Go as QPropertyListPanel,
|
|
94
|
+
So as QPropertyListRow,
|
|
95
|
+
yo as QRadioButton,
|
|
96
|
+
Bo as QRadioGroup,
|
|
95
97
|
V as QRow,
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
98
|
+
wo as QSelect,
|
|
99
|
+
ho as QSidebar,
|
|
100
|
+
Eo as QSkeletonLoader,
|
|
99
101
|
W as QSpacer,
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
102
|
+
Uo as QSpinnerLoader,
|
|
103
|
+
Xo as QSwitch,
|
|
104
|
+
jo as QTextArea,
|
|
105
|
+
zo as QTextField,
|
|
106
|
+
Jo as QThemeProvider,
|
|
107
|
+
No as QToast,
|
|
108
|
+
Vo as QToaster,
|
|
109
|
+
Yo as QToggle,
|
|
110
|
+
$o as QToggleGroup,
|
|
111
|
+
or as QToggleGroupItem,
|
|
112
|
+
er as QTooltip
|
|
111
113
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { inject as o, computed as
|
|
1
|
+
import { inject as o, computed as v, unref as t, ref as d, isRef as m, watch as n, provide as y } from "vue";
|
|
2
2
|
const f = Symbol.for("q-group");
|
|
3
|
-
function
|
|
3
|
+
function h(a) {
|
|
4
4
|
const e = {
|
|
5
|
-
active: d(
|
|
6
|
-
multiple:
|
|
7
|
-
required:
|
|
5
|
+
active: d(A(a)),
|
|
6
|
+
multiple: v(() => t(a.multiple) || !1),
|
|
7
|
+
required: v(() => t(a.required) || !1)
|
|
8
8
|
};
|
|
9
9
|
return m(a.active) && n(a.active, (i) => {
|
|
10
10
|
e.active.value = i;
|
|
@@ -13,30 +13,30 @@ function q(a) {
|
|
|
13
13
|
(i) => {
|
|
14
14
|
i ? e.active.value ? e.active.value = [e.active.value] : e.active.value = [] : Array.isArray(e.active.value) && e.active.value.length === 1 ? e.active.value = e.active.value[0] : e.active.value = void 0;
|
|
15
15
|
}
|
|
16
|
-
),
|
|
16
|
+
), y(f, e), e;
|
|
17
17
|
}
|
|
18
18
|
function G(a) {
|
|
19
19
|
const e = o(f, void 0);
|
|
20
20
|
if (!e) return;
|
|
21
|
-
const i =
|
|
22
|
-
var
|
|
23
|
-
const r =
|
|
24
|
-
return Array.isArray(e.active.value) ? (
|
|
21
|
+
const i = v(() => {
|
|
22
|
+
var u;
|
|
23
|
+
const r = t(a);
|
|
24
|
+
return Array.isArray(e.active.value) ? (u = e.active.value) == null ? void 0 : u.includes(r) : e.active.value === r;
|
|
25
25
|
});
|
|
26
26
|
return { isActive: i, toggle: () => {
|
|
27
|
-
var
|
|
28
|
-
const r =
|
|
29
|
-
Array.isArray(e.active.value) ? i.value ? (!((
|
|
27
|
+
var u, l, c;
|
|
28
|
+
const r = t(a);
|
|
29
|
+
Array.isArray(e.active.value) ? i.value ? (!((u = e.required) != null && u.value) || e.active.value.length > 1) && (e.active.value = (l = e.active.value) == null ? void 0 : l.filter(
|
|
30
30
|
(s) => s !== r
|
|
31
|
-
)) : e.active.value.
|
|
31
|
+
)) : e.active.value = [...e.active.value, r] : e.active.value !== r ? e.active.value = r : (c = e.required) != null && c.value || (e.active.value = void 0);
|
|
32
32
|
} };
|
|
33
33
|
}
|
|
34
|
-
function
|
|
35
|
-
const e =
|
|
34
|
+
function A(a) {
|
|
35
|
+
const e = t(a.multiple), i = t(a.active);
|
|
36
36
|
return e ? Array.isArray(i) ? i : i !== void 0 ? [i] : [] : Array.isArray(i) ? i.length === 1 ? i[0] : void 0 : i;
|
|
37
37
|
}
|
|
38
38
|
export {
|
|
39
39
|
f as GroupSymbol,
|
|
40
|
-
|
|
40
|
+
h as useGroup,
|
|
41
41
|
G as useGroupItem
|
|
42
42
|
};
|
package/esm/index.d.ts
CHANGED
|
@@ -36,6 +36,7 @@ declare module '@vue/runtime-core' {
|
|
|
36
36
|
QContainer: typeof import('@quidgest/ui/components')['QContainer']
|
|
37
37
|
QRow: typeof import('@quidgest/ui/components')['QRow']
|
|
38
38
|
QSpacer: typeof import('@quidgest/ui/components')['QSpacer']
|
|
39
|
+
QGroupBox: typeof import('@quidgest/ui/components')['QGroupBox']
|
|
39
40
|
QIcon: typeof import('@quidgest/ui/components')['QIcon']
|
|
40
41
|
QIconFont: typeof import('@quidgest/ui/components')['QIconFont']
|
|
41
42
|
QIconImg: typeof import('@quidgest/ui/components')['QIconImg']
|