@quidgest/ui 0.20.0 → 0.20.1
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/CHANGELOG.md +11 -1
- package/dist/json/api.json +277 -14
- package/dist/manifest/components.json +1 -0
- package/dist/ui.css +193 -0
- package/dist/ui.esm.js +667 -650
- package/dist/ui.js +977 -960
- package/dist/ui.min.css +1 -1
- package/dist/ui.min.js +977 -960
- package/dist/ui.scss +462 -266
- package/esm/components/QGauge/QGauge.d.ts +56 -0
- package/esm/components/QGauge/QGauge.d.ts.map +1 -0
- package/esm/components/QGauge/QGauge.vue.js +305 -0
- package/esm/components/QGauge/QGauge2.vue.js +5 -0
- package/esm/components/QGauge/constants.d.ts +6 -0
- package/esm/components/QGauge/constants.d.ts.map +1 -0
- package/esm/components/QGauge/constants.js +8 -0
- package/esm/components/QGauge/index.d.ts +124 -0
- package/esm/components/QGauge/index.d.ts.map +1 -0
- package/esm/components/QGauge/index.js +6 -0
- package/esm/components/QGauge/types.d.ts +146 -0
- package/esm/components/QGauge/types.d.ts.map +1 -0
- package/esm/components/index.d.ts +1 -0
- package/esm/components/index.d.ts.map +1 -1
- package/esm/components/index.js +64 -62
- package/esm/composables/useColor/index.d.ts +8 -0
- package/esm/composables/useColor/index.d.ts.map +1 -1
- package/esm/composables/useColor/index.js +16 -18
- 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,aAAa,CAAA;AAC3B,cAAc,gBAAgB,CAAA;AAC9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S,CAAA;AACvB,cAAc,aAAa,CAAA;AAC3B,cAAc,aAAa,CAAA;AAC3B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,aAAa,CAAA;AAC3B,cAAc,mBAAmB,CAAA;AACjC,cAAc,qBAAqB,CAAA;AACnC,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,UAAU,CAAA;AACxB,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,gBAAgB,CAAA;AAC9B,cAAc,YAAY,CAAA;AAC1B,cAAc,kBAAkB,CAAA;AAChC,cAAc,eAAe,CAAA;AAC7B,cAAc,YAAY,CAAA;AAC1B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,eAAe,CAAA;AAC7B,cAAc,YAAY,CAAA;AAC1B,cAAc,WAAW,CAAA;AACzB,cAAc,YAAY,CAAA;AAC1B,cAAc,mBAAmB,CAAA;AACjC,cAAc,kBAAkB,CAAA;AAChC,cAAc,WAAW,CAAA;AACzB,cAAc,SAAS,CAAA;AACvB,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
|
@@ -24,33 +24,34 @@ import { QOverlay as O } from "./QOverlay/index.js";
|
|
|
24
24
|
import { QCombobox as k } from "./QCombobox/index.js";
|
|
25
25
|
import { QSwitch as A } from "./QSwitch/index.js";
|
|
26
26
|
import { QDateTimePicker as j } from "./QDateTimePicker/index.js";
|
|
27
|
-
import { QDefaultsProvider as
|
|
28
|
-
import { QDialog as
|
|
29
|
-
import { QDivider as
|
|
30
|
-
import { QDropdownMenu as
|
|
27
|
+
import { QDefaultsProvider as te } from "./QDefaultsProvider/index.js";
|
|
28
|
+
import { QDialog as M, QDialogProvider as N } from "./QDialog/index.js";
|
|
29
|
+
import { QDivider as P } from "./QDivider/index.js";
|
|
30
|
+
import { QDropdownMenu as F } from "./QDropdownMenu/index.js";
|
|
31
31
|
import { QFileUpload as I } from "./QFileUpload/index.js";
|
|
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 {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
32
|
+
import { QGauge as L } from "./QGauge/index.js";
|
|
33
|
+
import { QCol as R, QContainer as z, QRow as B, QSpacer as V } from "./QGrid/index.js";
|
|
34
|
+
import { QInputGroup as H } from "./QInputGroup/index.js";
|
|
35
|
+
import { QLineLoader as U } from "./QLineLoader/index.js";
|
|
36
|
+
import { QMeter as W } from "./QMeter/index.js";
|
|
37
|
+
import { QObfuscation as G } from "./QObfuscation/index.js";
|
|
38
|
+
import { QPasswordField as K } from "./QPasswordField/index.js";
|
|
39
|
+
import { QPopover as q } from "./QPopover/index.js";
|
|
40
|
+
import { QSelect as J } from "./QSelect/index.js";
|
|
41
|
+
import { QPhoneField as Y } from "./QPhoneField/index.js";
|
|
42
|
+
import { QPropertyList as X, QPropertyListGroup as Z, QPropertyListPanel as Q, QPropertyListRow as $ } from "./QPropertyList/index.js";
|
|
43
|
+
import { QRadioButton as ne, QRadioGroup as re } from "./QRadioGroup/index.js";
|
|
44
|
+
import { QSection as ie } from "./QSection/index.js";
|
|
45
|
+
import { QToggle as ae } from "./QToggle/index.js";
|
|
46
|
+
import { QSidebar as oe, QSidebarItem as se } from "./QSidebar/index.js";
|
|
47
|
+
import { QTab as ce, QTabs as le } from "./QTabs/index.js";
|
|
48
|
+
import { QTextArea as ue } from "./QTextArea/index.js";
|
|
49
|
+
import { QThemeProvider as de } from "./QThemeProvider/index.js";
|
|
50
|
+
import { QToast as fe, QToaster as pe } from "./QToast/index.js";
|
|
51
|
+
import { QToggleGroup as me, QToggleGroupItem as he } from "./QToggleGroup/index.js";
|
|
52
|
+
import { QTooltip as ge } from "./QTooltip/index.js";
|
|
52
53
|
//#region src/components/index.ts
|
|
53
|
-
var
|
|
54
|
+
var _e = /* @__PURE__ */ ee({
|
|
54
55
|
DEFAULT_TEXTS: () => b,
|
|
55
56
|
QAccordion: () => c,
|
|
56
57
|
QAccordionItem: () => l,
|
|
@@ -63,63 +64,64 @@ var ge = /* @__PURE__ */ ee({
|
|
|
63
64
|
QCarousel: () => h,
|
|
64
65
|
QCheckbox: () => _,
|
|
65
66
|
QCheckboxLabel: () => v,
|
|
66
|
-
QCol: () =>
|
|
67
|
+
QCol: () => R,
|
|
67
68
|
QCollapsible: () => s,
|
|
68
69
|
QColorPicker: () => S,
|
|
69
70
|
QCombobox: () => k,
|
|
70
|
-
QContainer: () =>
|
|
71
|
+
QContainer: () => z,
|
|
71
72
|
QDateTimePicker: () => j,
|
|
72
|
-
QDefaultsProvider: () =>
|
|
73
|
-
QDialog: () =>
|
|
74
|
-
QDialogProvider: () =>
|
|
73
|
+
QDefaultsProvider: () => te,
|
|
74
|
+
QDialog: () => M,
|
|
75
|
+
QDialogProvider: () => N,
|
|
75
76
|
QDismissibleLayer: () => E,
|
|
76
|
-
QDivider: () =>
|
|
77
|
-
QDropdownMenu: () =>
|
|
77
|
+
QDivider: () => P,
|
|
78
|
+
QDropdownMenu: () => F,
|
|
78
79
|
QField: () => y,
|
|
79
80
|
QFileUpload: () => I,
|
|
80
81
|
QFocusWrap: () => D,
|
|
82
|
+
QGauge: () => L,
|
|
81
83
|
QIcon: () => r,
|
|
82
84
|
QIconFont: () => i,
|
|
83
85
|
QIconImg: () => a,
|
|
84
86
|
QIconSvg: () => o,
|
|
85
|
-
QInputGroup: () =>
|
|
87
|
+
QInputGroup: () => H,
|
|
86
88
|
QLabel: () => g,
|
|
87
|
-
QLineLoader: () =>
|
|
89
|
+
QLineLoader: () => U,
|
|
88
90
|
QList: () => C,
|
|
89
91
|
QListItem: () => w,
|
|
90
92
|
QListItemGroup: () => T,
|
|
91
|
-
QMeter: () =>
|
|
92
|
-
QObfuscation: () =>
|
|
93
|
+
QMeter: () => W,
|
|
94
|
+
QObfuscation: () => G,
|
|
93
95
|
QOverlay: () => O,
|
|
94
|
-
QPasswordField: () =>
|
|
95
|
-
QPhoneField: () =>
|
|
96
|
-
QPopover: () =>
|
|
97
|
-
QPropertyList: () =>
|
|
98
|
-
QPropertyListGroup: () =>
|
|
99
|
-
QPropertyListPanel: () =>
|
|
100
|
-
QPropertyListRow: () =>
|
|
101
|
-
QRadioButton: () =>
|
|
102
|
-
QRadioGroup: () =>
|
|
103
|
-
QRow: () =>
|
|
104
|
-
QSection: () =>
|
|
105
|
-
QSelect: () =>
|
|
106
|
-
QSidebar: () =>
|
|
107
|
-
QSidebarItem: () =>
|
|
96
|
+
QPasswordField: () => K,
|
|
97
|
+
QPhoneField: () => Y,
|
|
98
|
+
QPopover: () => q,
|
|
99
|
+
QPropertyList: () => X,
|
|
100
|
+
QPropertyListGroup: () => Z,
|
|
101
|
+
QPropertyListPanel: () => Q,
|
|
102
|
+
QPropertyListRow: () => $,
|
|
103
|
+
QRadioButton: () => ne,
|
|
104
|
+
QRadioGroup: () => re,
|
|
105
|
+
QRow: () => B,
|
|
106
|
+
QSection: () => ie,
|
|
107
|
+
QSelect: () => J,
|
|
108
|
+
QSidebar: () => oe,
|
|
109
|
+
QSidebarItem: () => se,
|
|
108
110
|
QSkeletonLoader: () => m,
|
|
109
|
-
QSpacer: () =>
|
|
111
|
+
QSpacer: () => V,
|
|
110
112
|
QSpinnerLoader: () => e,
|
|
111
113
|
QSwitch: () => A,
|
|
112
|
-
QTab: () =>
|
|
113
|
-
QTabs: () =>
|
|
114
|
-
QTextArea: () =>
|
|
114
|
+
QTab: () => ce,
|
|
115
|
+
QTabs: () => le,
|
|
116
|
+
QTextArea: () => ue,
|
|
115
117
|
QTextField: () => x,
|
|
116
|
-
QThemeProvider: () =>
|
|
117
|
-
QToast: () =>
|
|
118
|
-
QToaster: () =>
|
|
119
|
-
QToggle: () =>
|
|
120
|
-
QToggleGroup: () =>
|
|
121
|
-
QToggleGroupItem: () =>
|
|
122
|
-
QTooltip: () =>
|
|
118
|
+
QThemeProvider: () => de,
|
|
119
|
+
QToast: () => fe,
|
|
120
|
+
QToaster: () => pe,
|
|
121
|
+
QToggle: () => ae,
|
|
122
|
+
QToggleGroup: () => me,
|
|
123
|
+
QToggleGroupItem: () => he,
|
|
124
|
+
QTooltip: () => ge
|
|
123
125
|
});
|
|
124
126
|
//#endregion
|
|
125
|
-
export { b as DEFAULT_TEXTS, c as QAccordion, l as QAccordionItem, u as QAvatar, f as QBadge, p as QBadgeIndicator, t as QButton, d as QButtonGroup, n as QCard, h as QCarousel, _ as QCheckbox, v as QCheckboxLabel,
|
|
127
|
+
export { b as DEFAULT_TEXTS, c as QAccordion, l as QAccordionItem, u as QAvatar, f as QBadge, p as QBadgeIndicator, t as QButton, d as QButtonGroup, n as QCard, h as QCarousel, _ as QCheckbox, v as QCheckboxLabel, R as QCol, s as QCollapsible, S as QColorPicker, k as QCombobox, z as QContainer, j as QDateTimePicker, te as QDefaultsProvider, M as QDialog, N as QDialogProvider, E as QDismissibleLayer, P as QDivider, F as QDropdownMenu, y as QField, I as QFileUpload, D as QFocusWrap, L as QGauge, r as QIcon, i as QIconFont, a as QIconImg, o as QIconSvg, H as QInputGroup, g as QLabel, U as QLineLoader, C as QList, w as QListItem, T as QListItemGroup, W as QMeter, G as QObfuscation, O as QOverlay, K as QPasswordField, Y as QPhoneField, q as QPopover, X as QPropertyList, Z as QPropertyListGroup, Q as QPropertyListPanel, $ as QPropertyListRow, ne as QRadioButton, re as QRadioGroup, B as QRow, ie as QSection, J as QSelect, oe as QSidebar, se as QSidebarItem, m as QSkeletonLoader, V as QSpacer, e as QSpinnerLoader, A as QSwitch, ce as QTab, le as QTabs, ue as QTextArea, x as QTextField, de as QThemeProvider, fe as QToast, pe as QToaster, ae as QToggle, me as QToggleGroup, he as QToggleGroupItem, ge as QTooltip, _e as components_exports };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { MaybeRef } from 'vue';
|
|
2
2
|
import { UseColorReturn } from './types';
|
|
3
|
+
import { ColorScheme } from '../../utils/color';
|
|
3
4
|
/**
|
|
4
5
|
* A composable function that processes and returns color-related information and styles.
|
|
5
6
|
*
|
|
@@ -23,6 +24,13 @@ import { UseColorReturn } from './types';
|
|
|
23
24
|
* @throws Will log an error to console if color parsing fails
|
|
24
25
|
*/
|
|
25
26
|
export declare function useColor(color: MaybeRef<string | undefined>): UseColorReturn;
|
|
27
|
+
/**
|
|
28
|
+
* Resolves a utility color against a color scheme while preserving CSS and custom colors.
|
|
29
|
+
*
|
|
30
|
+
* This pure variant is useful when a component needs to resolve a dynamic collection of
|
|
31
|
+
* colors and therefore cannot create one `useColor` instance per collection entry.
|
|
32
|
+
*/
|
|
33
|
+
export declare function resolveColor(color: string, scheme: Readonly<ColorScheme>): string;
|
|
26
34
|
/**
|
|
27
35
|
* Checks if a given string represents a valid CSS color format.
|
|
28
36
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/composables/useColor/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AACnC,OAAO,KAAK,EAAc,cAAc,EAAE,MAAM,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/composables/useColor/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AACnC,OAAO,KAAK,EAAc,cAAc,EAAE,MAAM,SAAS,CAAA;AACzD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAcpD;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,wBAAgB,QAAQ,CAAC,KAAK,EAAE,QAAQ,CAAC,MAAM,GAAG,SAAS,CAAC,GAAG,cAAc,CAwC5E;AAED;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,CAAC,WAAW,CAAC,GAAG,MAAM,CAGjF;AAED;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAEjD"}
|
|
@@ -6,38 +6,36 @@ import { useTheme as o } from "../theme.js";
|
|
|
6
6
|
import { computed as s, unref as c } from "vue";
|
|
7
7
|
//#region src/composables/useColor/index.ts
|
|
8
8
|
function l(l) {
|
|
9
|
-
let
|
|
9
|
+
let f = s(() => c(l));
|
|
10
10
|
return {
|
|
11
|
-
isUtilityColor: f,
|
|
11
|
+
isUtilityColor: s(() => f.value ? !d(f.value) : !1),
|
|
12
12
|
style: s(() => {
|
|
13
|
-
let s =
|
|
13
|
+
let s = f.value;
|
|
14
14
|
if (!s) return;
|
|
15
|
-
let c = s,
|
|
16
|
-
if (f.value) {
|
|
17
|
-
let e = s;
|
|
18
|
-
c = l.current.value.scheme[e] ?? s;
|
|
19
|
-
}
|
|
20
|
-
let u;
|
|
15
|
+
let c = u(s, o().current.value.scheme), l;
|
|
21
16
|
try {
|
|
22
|
-
if (
|
|
17
|
+
if (l = r(c), !l) return;
|
|
23
18
|
} catch (e) {
|
|
24
19
|
console.error("Failed to parse color:", e);
|
|
25
20
|
return;
|
|
26
21
|
}
|
|
27
|
-
let
|
|
22
|
+
let d = i(t(l).l), p = a(l, 25), m = e(p);
|
|
28
23
|
return {
|
|
29
24
|
mainColor: c,
|
|
30
|
-
mainColorRgb: n(
|
|
31
|
-
onMainColor:
|
|
32
|
-
hoverColor:
|
|
33
|
-
hoverColorRgb: n(
|
|
34
|
-
onHoverColor:
|
|
25
|
+
mainColorRgb: n(l),
|
|
26
|
+
onMainColor: d,
|
|
27
|
+
hoverColor: m,
|
|
28
|
+
hoverColorRgb: n(p),
|
|
29
|
+
onHoverColor: d
|
|
35
30
|
};
|
|
36
31
|
})
|
|
37
32
|
};
|
|
38
33
|
}
|
|
39
|
-
function u(e) {
|
|
34
|
+
function u(e, t) {
|
|
35
|
+
return d(e) ? e : t[e] ?? e;
|
|
36
|
+
}
|
|
37
|
+
function d(e) {
|
|
40
38
|
return e.startsWith("#") || e.startsWith("rgb") || e.startsWith("hsl");
|
|
41
39
|
}
|
|
42
40
|
//#endregion
|
|
43
|
-
export {
|
|
41
|
+
export { d as isCssColor, u as resolveColor, l as useColor };
|
package/esm/index.d.ts
CHANGED
|
@@ -32,6 +32,7 @@ declare module '@vue/runtime-core' {
|
|
|
32
32
|
QField: typeof import('@quidgest/ui/components')['QField']
|
|
33
33
|
QFileUpload: typeof import('@quidgest/ui/components')['QFileUpload']
|
|
34
34
|
QFocusWrap: typeof import('@quidgest/ui/components')['QFocusWrap']
|
|
35
|
+
QGauge: typeof import('@quidgest/ui/components')['QGauge']
|
|
35
36
|
QCol: typeof import('@quidgest/ui/components')['QCol']
|
|
36
37
|
QContainer: typeof import('@quidgest/ui/components')['QContainer']
|
|
37
38
|
QRow: typeof import('@quidgest/ui/components')['QRow']
|