@quidgest/ui 0.16.20 → 0.16.22
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 +1 -0
- package/dist/ui.css +249 -1
- package/dist/ui.esm.js +5242 -4967
- package/dist/ui.js +19 -19
- package/dist/ui.min.css +1 -1
- package/dist/ui.min.js +789 -765
- package/dist/ui.scss +221 -2
- package/esm/components/QCarousel/QCarousel.d.ts +44 -0
- package/esm/components/QCarousel/QCarousel.d.ts.map +1 -0
- package/esm/components/QCarousel/QCarousel.vue.js +355 -0
- package/esm/components/QCarousel/QCarousel.vue2.js +4 -0
- package/esm/components/QCarousel/constants.d.ts +14 -0
- package/esm/components/QCarousel/constants.d.ts.map +1 -0
- package/esm/components/QCarousel/constants.js +16 -0
- package/esm/components/QCarousel/index.d.ts +119 -0
- package/esm/components/QCarousel/index.d.ts.map +1 -0
- package/esm/components/QCarousel/index.js +6 -0
- package/esm/components/QCarousel/types.d.ts +79 -0
- package/esm/components/QCarousel/types.d.ts.map +1 -0
- package/esm/components/QCombobox/QCombobox.d.ts +22 -72
- package/esm/components/QCombobox/QCombobox.d.ts.map +1 -1
- package/esm/components/QCombobox/index.d.ts +19 -44
- package/esm/components/QCombobox/index.d.ts.map +1 -1
- package/esm/components/QDropdownMenu/QDropdownMenuContent.d.ts +18 -68
- package/esm/components/QDropdownMenu/QDropdownMenuContent.d.ts.map +1 -1
- package/esm/components/QGrid/QRow.d.ts +1 -1
- package/esm/components/QGrid/index.d.ts +3 -3
- package/esm/components/QList/QList.d.ts +5 -10
- package/esm/components/QList/QList.d.ts.map +1 -1
- package/esm/components/QList/QList.vue.js +94 -96
- package/esm/components/QList/index.d.ts +10 -48
- package/esm/components/QList/index.d.ts.map +1 -1
- package/esm/components/QList/types.d.ts +5 -1
- package/esm/components/QList/types.d.ts.map +1 -1
- package/esm/components/QSelect/QSelect.d.ts +22 -72
- package/esm/components/QSelect/QSelect.d.ts.map +1 -1
- package/esm/components/QSelect/QSelect.vue.js +18 -18
- package/esm/components/QSelect/index.d.ts +19 -44
- package/esm/components/QSelect/index.d.ts.map +1 -1
- package/esm/components/QTextArea/QTextArea.d.ts +1 -1
- package/esm/components/QTextArea/index.d.ts +3 -3
- package/esm/components/QToggleGroup/types.d.ts +1 -1
- package/esm/components/index.d.ts +1 -0
- package/esm/components/index.d.ts.map +1 -1
- package/esm/components/index.js +90 -88
- package/esm/composables/useGroup/index.d.ts +4 -2
- package/esm/composables/useGroup/index.d.ts.map +1 -1
- package/esm/composables/useGroup/index.js +26 -24
- package/esm/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,WAAW,CAAA;AACzB,cAAc,UAAU,CAAA;AACxB,cAAc,mBAAmB,CAAA;AACjC,cAAc,WAAW,CAAA;AACzB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,SAAS,CAAA;AACvB,cAAc,aAAa,CAAA;AAC3B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,aAAa,CAAA;AAC3B,cAAc,mBAAmB,CAAA;AACjC,cAAc,WAAW,CAAA;AACzB,cAAc,qBAAqB,CAAA;AACnC,cAAc,YAAY,CAAA;AAC1B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,UAAU,CAAA;AACxB,cAAc,eAAe,CAAA;AAC7B,cAAc,cAAc,CAAA;AAC5B,cAAc,SAAS,CAAA;AACvB,cAAc,SAAS,CAAA;AACvB,cAAc,eAAe,CAAA;AAC7B,cAAc,UAAU,CAAA;AACxB,cAAc,eAAe,CAAA;AAC7B,cAAc,SAAS,CAAA;AACvB,cAAc,UAAU,CAAA;AACxB,cAAc,YAAY,CAAA;AAC1B,cAAc,kBAAkB,CAAA;AAChC,cAAc,YAAY,CAAA;AAC1B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e,CAAA;AAC7B,cAAc,WAAW,CAAA;AACzB,cAAc,YAAY,CAAA;AAC1B,cAAc,mBAAmB,CAAA;AACjC,cAAc,kBAAkB,CAAA;AAChC,cAAc,WAAW,CAAA;AACzB,cAAc,aAAa,CAAA;AAC3B,cAAc,cAAc,CAAA;AAC5B,cAAc,kBAAkB,CAAA;AAChC,cAAc,UAAU,CAAA;AACxB,cAAc,WAAW,CAAA;AACzB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,YAAY,CAAA"}
|
package/esm/components/index.js
CHANGED
|
@@ -5,42 +5,43 @@ import { QBadgeIndicator as i } from "./QBadgeIndicator/index.js";
|
|
|
5
5
|
import { QButton as l } from "./QButton/index.js";
|
|
6
6
|
import { QButtonGroup as n } from "./QButtonGroup/index.js";
|
|
7
7
|
import { QCard as s } from "./QCard/index.js";
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
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 {
|
|
8
|
+
import { QCarousel as L } from "./QCarousel/index.js";
|
|
9
|
+
import { QCheckbox as I, QCheckboxLabel as P } from "./QCheckbox/index.js";
|
|
10
|
+
import { QCollapsible as b } from "./QCollapsible/index.js";
|
|
11
|
+
import { QColorPicker as v } from "./QColorPicker/index.js";
|
|
12
|
+
import { QCombobox as S } from "./QCombobox/index.js";
|
|
13
|
+
import { QDateTimePicker as D } from "./QDateTimePicker/index.js";
|
|
14
|
+
import { QDialog as k, QDialogProvider as w } from "./QDialog/index.js";
|
|
15
|
+
import { QDismissibleLayer as h } from "./QDismissibleLayer/index.js";
|
|
16
|
+
import { QDivider as R } from "./QDivider/index.js";
|
|
17
|
+
import { QDropdownMenu as O } from "./QDropdownMenu/index.js";
|
|
18
|
+
import { QField as j } from "./QField/index.js";
|
|
19
|
+
import { QFileUpload as z } from "./QFileUpload/index.js";
|
|
20
|
+
import { QFocusTrap as H } from "./QFocusTrap/index.js";
|
|
21
|
+
import { QCol as K, QContainer as N, QRow as V, QSpacer as W } from "./QGrid/index.js";
|
|
22
|
+
import { QIcon as Y, QIconFont as Z, QIconImg as _, QIconSvg as $ } from "./QIcon/index.js";
|
|
23
|
+
import { QInputGroup as ro } from "./QInputGroup/index.js";
|
|
24
|
+
import { QLabel as to } from "./QLabel/index.js";
|
|
25
|
+
import { QLineLoader as Qo } from "./QLineLoader/index.js";
|
|
26
|
+
import { QList as xo, QListItem as fo, QListItemGroup as io } from "./QList/index.js";
|
|
27
|
+
import { QMeter as lo } from "./QMeter/index.js";
|
|
28
|
+
import { QOverlay as co } from "./QOverlay/index.js";
|
|
29
|
+
import { QPasswordField as uo } from "./QPasswordField/index.js";
|
|
30
|
+
import { QPopover as go } from "./QPopover/index.js";
|
|
31
|
+
import { QPropertyList as Po, QPropertyListGroup as To, QPropertyListPanel as bo, QPropertyListRow as Co } from "./QPropertyList/index.js";
|
|
32
|
+
import { QRadioButton as Go, QRadioGroup as So } from "./QRadioGroup/index.js";
|
|
33
|
+
import { QSelect as Do } from "./QSelect/index.js";
|
|
34
|
+
import { QSidebar as ko } from "./QSidebar/index.js";
|
|
35
|
+
import { QSkeletonLoader as Bo } from "./QSkeletonLoader/index.js";
|
|
36
|
+
import { QSpinnerLoader as Ao } from "./QSpinnerLoader/index.js";
|
|
37
|
+
import { QSwitch as Mo } from "./QSwitch/index.js";
|
|
38
|
+
import { QTextArea as Uo } from "./QTextArea/index.js";
|
|
39
|
+
import { QTextField as qo } from "./QTextField/index.js";
|
|
40
|
+
import { QThemeProvider as Eo } from "./QThemeProvider/index.js";
|
|
41
|
+
import { QToast as Jo, QToaster as Ko } from "./QToast/index.js";
|
|
42
|
+
import { QToggle as Vo } from "./QToggle/index.js";
|
|
43
|
+
import { QToggleGroup as Xo, QToggleGroupItem as Yo } from "./QToggleGroup/index.js";
|
|
44
|
+
import { QTooltip as _o } from "./QTooltip/index.js";
|
|
44
45
|
export {
|
|
45
46
|
e as QAccordion,
|
|
46
47
|
t as QAccordionItem,
|
|
@@ -50,56 +51,57 @@ export {
|
|
|
50
51
|
l as QButton,
|
|
51
52
|
n as QButtonGroup,
|
|
52
53
|
s as QCard,
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
b as
|
|
58
|
-
v as
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
D as
|
|
62
|
-
|
|
63
|
-
w as
|
|
64
|
-
h as
|
|
65
|
-
R as
|
|
66
|
-
O as
|
|
67
|
-
j as
|
|
68
|
-
z as
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
$ as
|
|
74
|
-
ro as
|
|
75
|
-
to as
|
|
76
|
-
Qo as
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
io as
|
|
80
|
-
lo as
|
|
81
|
-
co as
|
|
82
|
-
|
|
83
|
-
go as
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
Co as
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
Do as
|
|
92
|
-
ko as
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
Ao as
|
|
96
|
-
Mo as
|
|
97
|
-
Uo as
|
|
98
|
-
qo as
|
|
99
|
-
Eo as
|
|
100
|
-
|
|
101
|
-
Ko as
|
|
102
|
-
Vo as
|
|
103
|
-
|
|
104
|
-
Yo as
|
|
54
|
+
L as QCarousel,
|
|
55
|
+
I as QCheckbox,
|
|
56
|
+
P as QCheckboxLabel,
|
|
57
|
+
K as QCol,
|
|
58
|
+
b as QCollapsible,
|
|
59
|
+
v as QColorPicker,
|
|
60
|
+
S as QCombobox,
|
|
61
|
+
N as QContainer,
|
|
62
|
+
D as QDateTimePicker,
|
|
63
|
+
k as QDialog,
|
|
64
|
+
w as QDialogProvider,
|
|
65
|
+
h as QDismissibleLayer,
|
|
66
|
+
R as QDivider,
|
|
67
|
+
O as QDropdownMenu,
|
|
68
|
+
j as QField,
|
|
69
|
+
z as QFileUpload,
|
|
70
|
+
H as QFocusTrap,
|
|
71
|
+
Y as QIcon,
|
|
72
|
+
Z as QIconFont,
|
|
73
|
+
_ as QIconImg,
|
|
74
|
+
$ as QIconSvg,
|
|
75
|
+
ro as QInputGroup,
|
|
76
|
+
to as QLabel,
|
|
77
|
+
Qo as QLineLoader,
|
|
78
|
+
xo as QList,
|
|
79
|
+
fo as QListItem,
|
|
80
|
+
io as QListItemGroup,
|
|
81
|
+
lo as QMeter,
|
|
82
|
+
co as QOverlay,
|
|
83
|
+
uo as QPasswordField,
|
|
84
|
+
go as QPopover,
|
|
85
|
+
Po as QPropertyList,
|
|
86
|
+
To as QPropertyListGroup,
|
|
87
|
+
bo as QPropertyListPanel,
|
|
88
|
+
Co as QPropertyListRow,
|
|
89
|
+
Go as QRadioButton,
|
|
90
|
+
So as QRadioGroup,
|
|
91
|
+
V as QRow,
|
|
92
|
+
Do as QSelect,
|
|
93
|
+
ko as QSidebar,
|
|
94
|
+
Bo as QSkeletonLoader,
|
|
95
|
+
W as QSpacer,
|
|
96
|
+
Ao as QSpinnerLoader,
|
|
97
|
+
Mo as QSwitch,
|
|
98
|
+
Uo as QTextArea,
|
|
99
|
+
qo as QTextField,
|
|
100
|
+
Eo as QThemeProvider,
|
|
101
|
+
Jo as QToast,
|
|
102
|
+
Ko as QToaster,
|
|
103
|
+
Vo as QToggle,
|
|
104
|
+
Xo as QToggleGroup,
|
|
105
|
+
Yo as QToggleGroupItem,
|
|
106
|
+
_o as QTooltip
|
|
105
107
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ComputedRef, InjectionKey, MaybeRef, Ref } from 'vue';
|
|
2
2
|
/** Symbol used for dependency injection of Group. */
|
|
3
3
|
export declare const GroupSymbol: InjectionKey<Group<unknown>>;
|
|
4
|
+
type Active<T> = T | T[] | undefined;
|
|
4
5
|
/**
|
|
5
6
|
* Props interface for creating a group component
|
|
6
7
|
* @template T The type of the active item(s)
|
|
@@ -11,7 +12,7 @@ export interface GroupProps<T> {
|
|
|
11
12
|
* - When multiple is false: A single active item of type T
|
|
12
13
|
* - When multiple is true: An array of active items of type T[]
|
|
13
14
|
*/
|
|
14
|
-
active
|
|
15
|
+
active?: MaybeRef<Active<T>>;
|
|
15
16
|
/**
|
|
16
17
|
* Whether multiple items can be active simultaneously
|
|
17
18
|
* - When true: active will be treated as T[]
|
|
@@ -34,7 +35,7 @@ export interface Group<T> {
|
|
|
34
35
|
* - When multiple is false: A single active item of type T or undefined
|
|
35
36
|
* - When multiple is true: An array of active items of type T[] or undefined
|
|
36
37
|
*/
|
|
37
|
-
active: Ref<T
|
|
38
|
+
active: Ref<Active<T>>;
|
|
38
39
|
/**
|
|
39
40
|
* Computed boolean indicating if multiple selection is enabled
|
|
40
41
|
*/
|
|
@@ -101,4 +102,5 @@ export declare function useGroup<T>(options: GroupProps<T>): Group<T>;
|
|
|
101
102
|
* - In multiple selection mode, multiple items can be active simultaneously
|
|
102
103
|
*/
|
|
103
104
|
export declare function useGroupItem(itemId: MaybeRef<string>): GroupProvide | undefined;
|
|
105
|
+
export {};
|
|
104
106
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/compos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AEG;AACH,MAAM,WAAW,YAAY;IAC5B;;OAEG;IACH,MAAM,EAAE,MAAM,IAAI,CAAA;IAElB;;OAEG;IACH,QAAQ,EAAE,WAAW,CAAC,OAAO,CAAC,CAAA;CAC9B;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,QAAQ,CAAC,CAAC,EAAE,OAAO,EAAE,UAAU,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,CA2C5D;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,YAAY,CAAC,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,GAAG,YAAY,GAAG,SAAS,CAyC/E"}
|
|
@@ -1,40 +1,42 @@
|
|
|
1
|
-
import { inject as
|
|
2
|
-
const
|
|
1
|
+
import { inject as o, computed as l, unref as u, ref as d, isRef as m, watch as n, provide as p } from "vue";
|
|
2
|
+
const f = Symbol.for("q-group");
|
|
3
3
|
function q(a) {
|
|
4
4
|
const e = {
|
|
5
|
-
active:
|
|
6
|
-
|
|
7
|
-
)
|
|
8
|
-
multiple: r(() => v(a.multiple) || !1),
|
|
9
|
-
required: r(() => v(a.required) || !1)
|
|
5
|
+
active: d(y(a)),
|
|
6
|
+
multiple: l(() => u(a.multiple) || !1),
|
|
7
|
+
required: l(() => u(a.required) || !1)
|
|
10
8
|
};
|
|
11
|
-
return m(a.active) &&
|
|
9
|
+
return m(a.active) && n(a.active, (i) => {
|
|
12
10
|
e.active.value = i;
|
|
13
|
-
}),
|
|
11
|
+
}), n(
|
|
14
12
|
() => e.multiple.value,
|
|
15
13
|
(i) => {
|
|
16
|
-
i
|
|
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;
|
|
17
15
|
}
|
|
18
|
-
),
|
|
16
|
+
), p(f, e), e;
|
|
19
17
|
}
|
|
20
|
-
function
|
|
21
|
-
const e =
|
|
18
|
+
function G(a) {
|
|
19
|
+
const e = o(f, void 0);
|
|
22
20
|
if (!e) return;
|
|
23
|
-
const i =
|
|
24
|
-
var
|
|
25
|
-
const
|
|
26
|
-
return Array.isArray(e.active.value) ? (
|
|
21
|
+
const i = l(() => {
|
|
22
|
+
var t;
|
|
23
|
+
const r = u(a);
|
|
24
|
+
return Array.isArray(e.active.value) ? (t = e.active.value) == null ? void 0 : t.includes(r) : e.active.value === r;
|
|
27
25
|
});
|
|
28
26
|
return { isActive: i, toggle: () => {
|
|
29
|
-
var
|
|
30
|
-
const
|
|
31
|
-
Array.isArray(e.active.value) ? i.value ? (!((
|
|
32
|
-
(
|
|
33
|
-
)) : e.active.value.push(
|
|
27
|
+
var t, v, c;
|
|
28
|
+
const r = u(a);
|
|
29
|
+
Array.isArray(e.active.value) ? i.value ? (!((t = e.required) != null && t.value) || e.active.value.length > 1) && (e.active.value = (v = e.active.value) == null ? void 0 : v.filter(
|
|
30
|
+
(s) => s !== r
|
|
31
|
+
)) : e.active.value.push(r) : e.active.value !== r ? e.active.value = r : (c = e.required) != null && c.value || (e.active.value = void 0);
|
|
34
32
|
} };
|
|
35
33
|
}
|
|
34
|
+
function y(a) {
|
|
35
|
+
const e = u(a.multiple), i = u(a.active);
|
|
36
|
+
return e ? Array.isArray(i) ? i : i !== void 0 ? [i] : [] : Array.isArray(i) ? i.length === 1 ? i[0] : void 0 : i;
|
|
37
|
+
}
|
|
36
38
|
export {
|
|
37
|
-
|
|
39
|
+
f as GroupSymbol,
|
|
38
40
|
q as useGroup,
|
|
39
|
-
|
|
41
|
+
G as useGroupItem
|
|
40
42
|
};
|
package/esm/index.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ declare module '@vue/runtime-core' {
|
|
|
15
15
|
QButton: typeof import('@quidgest/ui/components')['QButton']
|
|
16
16
|
QButtonGroup: typeof import('@quidgest/ui/components')['QButtonGroup']
|
|
17
17
|
QCard: typeof import('@quidgest/ui/components')['QCard']
|
|
18
|
+
QCarousel: typeof import('@quidgest/ui/components')['QCarousel']
|
|
18
19
|
QCheckbox: typeof import('@quidgest/ui/components')['QCheckbox']
|
|
19
20
|
QCheckboxLabel: typeof import('@quidgest/ui/components')['QCheckboxLabel']
|
|
20
21
|
QCollapsible: typeof import('@quidgest/ui/components')['QCollapsible']
|