@quidgest/ui 0.16.17 → 0.16.18
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 +35 -9
- package/dist/ui.esm.js +124 -120
- package/dist/ui.js +4 -4
- package/dist/ui.min.css +1 -1
- package/dist/ui.min.js +15 -15
- package/dist/ui.scss +38 -10
- package/esm/components/QSwitch/QSwitch.d.ts.map +1 -1
- package/esm/components/QSwitch/QSwitch.vue.js +28 -24
- package/esm/templates/theme.js +35 -35
- package/package.json +1 -1
package/dist/ui.scss
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Quidgest UI v0.16.
|
|
2
|
+
* Quidgest UI v0.16.18
|
|
3
3
|
* (c) 2025 Quidgest - Consultores de Gestão, S.A.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -266,6 +266,7 @@ $input-padding-x: 0.25rem !default;
|
|
|
266
266
|
outline-offset: 1px;
|
|
267
267
|
}
|
|
268
268
|
body {
|
|
269
|
+
background-color: var(--q-theme-background);
|
|
269
270
|
font-size: $font-size-base;
|
|
270
271
|
color: var(--q-theme-on-background);
|
|
271
272
|
caret-color: var(--q-theme-on-background);
|
|
@@ -289,6 +290,31 @@ body {
|
|
|
289
290
|
}
|
|
290
291
|
}
|
|
291
292
|
}
|
|
293
|
+
a {
|
|
294
|
+
text-decoration: underline;
|
|
295
|
+
text-decoration-color: transparent;
|
|
296
|
+
transition:
|
|
297
|
+
color 0.15s,
|
|
298
|
+
text-decoration-color 0.15s;
|
|
299
|
+
&:not(:visited) {
|
|
300
|
+
color: var(--q-theme-primary);
|
|
301
|
+
}
|
|
302
|
+
&:visited {
|
|
303
|
+
color: #6a0dad;
|
|
304
|
+
}
|
|
305
|
+
&:hover,
|
|
306
|
+
&:focus {
|
|
307
|
+
color: var(--q-theme-primary-dark);
|
|
308
|
+
text-decoration-color: currentcolor;
|
|
309
|
+
}
|
|
310
|
+
&:active {
|
|
311
|
+
color: var(--q-theme-primary-dark);
|
|
312
|
+
text-decoration: none;
|
|
313
|
+
}
|
|
314
|
+
&:focus {
|
|
315
|
+
outline: $outline;
|
|
316
|
+
}
|
|
317
|
+
}
|
|
292
318
|
$transition-duration: 0.2s !default;
|
|
293
319
|
.fade-enter-from,
|
|
294
320
|
.fade-leave-to {
|
|
@@ -835,7 +861,7 @@ $transition-duration: 0.2s !default;
|
|
|
835
861
|
margin: 0;
|
|
836
862
|
font-size: 0.75rem;
|
|
837
863
|
color: var(--q-theme-neutral);
|
|
838
|
-
padding-top: 0.
|
|
864
|
+
padding-top: 0.5rem;
|
|
839
865
|
}
|
|
840
866
|
&__content {
|
|
841
867
|
display: flex;
|
|
@@ -1300,7 +1326,7 @@ $transition-duration: 0.2s !default;
|
|
|
1300
1326
|
align-items: center;
|
|
1301
1327
|
justify-content: center;
|
|
1302
1328
|
position: relative;
|
|
1303
|
-
color:
|
|
1329
|
+
color: var(--q-theme-neutral);
|
|
1304
1330
|
font-size: 0.875rem;
|
|
1305
1331
|
}
|
|
1306
1332
|
.q-divider--horizontal {
|
|
@@ -1311,15 +1337,14 @@ $transition-duration: 0.2s !default;
|
|
|
1311
1337
|
.q-divider--horizontal:not(.q-divider--labeled)::before {
|
|
1312
1338
|
content: '';
|
|
1313
1339
|
flex: 1;
|
|
1314
|
-
border-top: 1px
|
|
1340
|
+
border-top-width: 1px;
|
|
1315
1341
|
}
|
|
1316
1342
|
.q-divider--horizontal.q-divider--labeled .q-divider__line {
|
|
1317
1343
|
flex: 1;
|
|
1318
|
-
border-top: 1px
|
|
1344
|
+
border-top-width: 1px;
|
|
1319
1345
|
}
|
|
1320
1346
|
.q-divider--horizontal.q-divider--labeled .q-divider__label {
|
|
1321
1347
|
padding: 0 12px;
|
|
1322
|
-
background: white;
|
|
1323
1348
|
white-space: nowrap;
|
|
1324
1349
|
}
|
|
1325
1350
|
.q-divider--horizontal.q-divider--inset {
|
|
@@ -1337,17 +1362,16 @@ $transition-duration: 0.2s !default;
|
|
|
1337
1362
|
.q-divider--vertical:not(.q-divider--labeled)::before {
|
|
1338
1363
|
content: '';
|
|
1339
1364
|
flex: 1;
|
|
1340
|
-
border-left: 1px
|
|
1365
|
+
border-left-width: 1px;
|
|
1341
1366
|
}
|
|
1342
1367
|
.q-divider--vertical.q-divider--labeled .q-divider__line {
|
|
1343
|
-
border-left: 1px
|
|
1368
|
+
border-left-width: 1px;
|
|
1344
1369
|
height: 100%;
|
|
1345
1370
|
}
|
|
1346
1371
|
.q-divider--vertical.q-divider--labeled .q-divider__label {
|
|
1347
1372
|
writing-mode: vertical-rl;
|
|
1348
1373
|
text-orientation: mixed;
|
|
1349
1374
|
padding: 12px 0;
|
|
1350
|
-
background: white;
|
|
1351
1375
|
white-space: nowrap;
|
|
1352
1376
|
}
|
|
1353
1377
|
.q-divider--vertical.q-divider--inset {
|
|
@@ -2136,7 +2160,7 @@ $base-border: 1px solid rgb(0 0 0 / 10%);
|
|
|
2136
2160
|
}
|
|
2137
2161
|
}
|
|
2138
2162
|
&__cell {
|
|
2139
|
-
padding: 0.
|
|
2163
|
+
padding: 0.25rem 0.5rem;
|
|
2140
2164
|
&--label {
|
|
2141
2165
|
width: 20%;
|
|
2142
2166
|
font-size: 0.85rem;
|
|
@@ -2144,6 +2168,10 @@ $base-border: 1px solid rgb(0 0 0 / 10%);
|
|
|
2144
2168
|
opacity: 0.8;
|
|
2145
2169
|
}
|
|
2146
2170
|
}
|
|
2171
|
+
&-field__container {
|
|
2172
|
+
display: flex;
|
|
2173
|
+
align-items: center;
|
|
2174
|
+
}
|
|
2147
2175
|
&-group {
|
|
2148
2176
|
cursor: pointer;
|
|
2149
2177
|
td {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QSwitch.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QSwitch/QSwitch.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"QSwitch.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QSwitch/QSwitch.vue"],"names":[],"mappings":"AA4CA;AAiIC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAK3C,KAAK,WAAW,GAAG,YAAY,CAAC;AAqEjC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;CACpB,GAAG,WAAW,CAAC;;;;;;;;;;AAiGhB,wBAQG"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as L, mergeModels as g, useModel as S, toRef as c, computed as w, createElementBlock as
|
|
2
|
-
import { QLabel as
|
|
3
|
-
import { useId as
|
|
1
|
+
import { defineComponent as L, mergeModels as g, useModel as S, toRef as c, computed as w, createElementBlock as r, openBlock as i, withModifiers as B, createBlock as V, createCommentVNode as d, createElementVNode as a, unref as n, withCtx as z, createTextVNode as u, toDisplayString as h, normalizeStyle as M, normalizeClass as x, withDirectives as D, mergeProps as I, vModelCheckbox as N, Fragment as _ } from "vue";
|
|
2
|
+
import { QLabel as E } from "../QLabel/index.js";
|
|
3
|
+
import { useId as O } from "../../composables/uid.js";
|
|
4
4
|
import { useColor as q } from "../../composables/useColor/index.js";
|
|
5
|
-
const
|
|
5
|
+
const P = ["id", "aria-checked", "disabled"], Q = { class: "q-switch__labels" }, $ = {
|
|
6
6
|
class: "q-switch__label q-switch__label--off",
|
|
7
7
|
"aria-hidden": "true"
|
|
8
8
|
}, A = {
|
|
@@ -30,34 +30,38 @@ const O = { class: "q-switch__container" }, P = ["id", "aria-checked", "disabled
|
|
|
30
30
|
}),
|
|
31
31
|
emits: ["update:modelValue"],
|
|
32
32
|
setup(m) {
|
|
33
|
-
const e = m,
|
|
34
|
-
e.readonly && (t.preventDefault(), t.stopImmediatePropagation(), t.target.checked = !!
|
|
35
|
-
}, b =
|
|
33
|
+
const e = m, o = S(m, "modelValue"), v = (t) => {
|
|
34
|
+
e.readonly && (t.preventDefault(), t.stopImmediatePropagation(), t.target.checked = !!o.value);
|
|
35
|
+
}, b = O(c(e, "id")), { style: f } = q(c(e, "checkedColor")), { style: p } = q(c(e, "uncheckedColor")), y = w(() => [
|
|
36
36
|
"q-switch",
|
|
37
37
|
e.size !== "medium" ? `q-switch--${e.size}` : void 0,
|
|
38
38
|
{
|
|
39
|
-
"q-switch--checked":
|
|
39
|
+
"q-switch--checked": o.value,
|
|
40
40
|
"q-switch--disabled": e.disabled,
|
|
41
41
|
"q-switch--readonly": e.readonly,
|
|
42
42
|
"q-switch--with-labels": e.showStateLabels && (e.trueLabel || e.falseLabel)
|
|
43
43
|
},
|
|
44
44
|
e.class
|
|
45
45
|
]), C = w(() => {
|
|
46
|
-
var t,
|
|
46
|
+
var t, l, s, k;
|
|
47
47
|
return {
|
|
48
48
|
"--q-switch-checked-background": (t = f.value) == null ? void 0 : t.mainColor,
|
|
49
|
-
"--q-switch-on-checked-background": (
|
|
49
|
+
"--q-switch-on-checked-background": (l = f.value) == null ? void 0 : l.onMainColor,
|
|
50
50
|
"--q-switch-unchecked-background": (s = p.value) == null ? void 0 : s.mainColor,
|
|
51
51
|
"--q-switch-on-unchecked-background": (k = p.value) == null ? void 0 : k.onMainColor
|
|
52
52
|
};
|
|
53
53
|
});
|
|
54
|
-
return (t,
|
|
55
|
-
|
|
54
|
+
return (t, l) => (i(), r("div", {
|
|
55
|
+
class: "q-switch__container",
|
|
56
|
+
onClick: l[1] || (l[1] = B(() => {
|
|
57
|
+
}, ["stop"]))
|
|
58
|
+
}, [
|
|
59
|
+
e.label ? (i(), V(n(E), {
|
|
56
60
|
key: 0,
|
|
57
61
|
for: n(b),
|
|
58
62
|
required: e.required
|
|
59
63
|
}, {
|
|
60
|
-
default:
|
|
64
|
+
default: z(() => [
|
|
61
65
|
u(
|
|
62
66
|
h(e.label),
|
|
63
67
|
1
|
|
@@ -66,28 +70,28 @@ const O = { class: "q-switch__container" }, P = ["id", "aria-checked", "disabled
|
|
|
66
70
|
]),
|
|
67
71
|
_: 1
|
|
68
72
|
/* STABLE */
|
|
69
|
-
}, 8, ["for", "required"])) :
|
|
73
|
+
}, 8, ["for", "required"])) : d("v-if", !0),
|
|
70
74
|
a(
|
|
71
75
|
"div",
|
|
72
76
|
{
|
|
73
|
-
class:
|
|
74
|
-
style:
|
|
77
|
+
class: x(y.value),
|
|
78
|
+
style: M(C.value)
|
|
75
79
|
},
|
|
76
80
|
[
|
|
77
|
-
|
|
81
|
+
D(a("input", I({
|
|
78
82
|
id: n(b),
|
|
79
|
-
"onUpdate:modelValue":
|
|
83
|
+
"onUpdate:modelValue": l[0] || (l[0] = (s) => o.value = s),
|
|
80
84
|
class: "q-switch__input",
|
|
81
85
|
type: "checkbox",
|
|
82
86
|
role: "switch",
|
|
83
|
-
"aria-checked":
|
|
87
|
+
"aria-checked": o.value,
|
|
84
88
|
disabled: e.disabled
|
|
85
89
|
}, t.$attrs, { onInput: v }), null, 16, P), [
|
|
86
|
-
[
|
|
90
|
+
[N, o.value]
|
|
87
91
|
]),
|
|
88
92
|
a("div", Q, [
|
|
89
93
|
a("span", $, [
|
|
90
|
-
e.showStateLabels ? (i(),
|
|
94
|
+
e.showStateLabels ? (i(), r(
|
|
91
95
|
_,
|
|
92
96
|
{ key: 0 },
|
|
93
97
|
[
|
|
@@ -99,10 +103,10 @@ const O = { class: "q-switch__container" }, P = ["id", "aria-checked", "disabled
|
|
|
99
103
|
],
|
|
100
104
|
64
|
|
101
105
|
/* STABLE_FRAGMENT */
|
|
102
|
-
)) :
|
|
106
|
+
)) : d("v-if", !0)
|
|
103
107
|
]),
|
|
104
108
|
a("span", A, [
|
|
105
|
-
e.showStateLabels ? (i(),
|
|
109
|
+
e.showStateLabels ? (i(), r(
|
|
106
110
|
_,
|
|
107
111
|
{ key: 0 },
|
|
108
112
|
[
|
|
@@ -114,7 +118,7 @@ const O = { class: "q-switch__container" }, P = ["id", "aria-checked", "disabled
|
|
|
114
118
|
],
|
|
115
119
|
64
|
|
116
120
|
/* STABLE_FRAGMENT */
|
|
117
|
-
)) :
|
|
121
|
+
)) : d("v-if", !0)
|
|
118
122
|
])
|
|
119
123
|
])
|
|
120
124
|
],
|
package/esm/templates/theme.js
CHANGED
|
@@ -35,41 +35,41 @@ const f = {
|
|
|
35
35
|
onInfo: "#fff",
|
|
36
36
|
onNeutral: "#fff"
|
|
37
37
|
}, a = {
|
|
38
|
-
primary: "#
|
|
39
|
-
primaryLight: "#
|
|
40
|
-
primaryDark: "#
|
|
41
|
-
secondary: "#
|
|
42
|
-
secondaryLight: "#
|
|
43
|
-
secondaryDark: "#
|
|
44
|
-
highlight: "#
|
|
45
|
-
highlightLight: "#
|
|
46
|
-
highlightDark: "#
|
|
47
|
-
info: "#
|
|
48
|
-
infoLight: "#
|
|
49
|
-
infoDark: "#
|
|
50
|
-
success: "#
|
|
51
|
-
successLight: "#
|
|
52
|
-
successDark: "#
|
|
53
|
-
warning: "#
|
|
54
|
-
warningLight: "#
|
|
55
|
-
warningDark: "#
|
|
56
|
-
danger: "#
|
|
57
|
-
dangerLight: "#
|
|
58
|
-
dangerDark: "#
|
|
59
|
-
background: "#
|
|
60
|
-
container: "#
|
|
61
|
-
neutral: "#
|
|
62
|
-
neutralLight: "#
|
|
63
|
-
neutralDark: "#
|
|
64
|
-
onBackground: "#
|
|
65
|
-
onPrimary: "#
|
|
66
|
-
onSecondary: "#
|
|
67
|
-
onHighlight: "#
|
|
68
|
-
onSuccess: "#
|
|
69
|
-
onWarning: "#
|
|
70
|
-
onDanger: "#
|
|
71
|
-
onInfo: "#
|
|
72
|
-
onNeutral: "#
|
|
38
|
+
primary: "#4da6e0",
|
|
39
|
+
primaryLight: "#2d8bc7",
|
|
40
|
+
primaryDark: "#87c4e8",
|
|
41
|
+
secondary: "#4a6b82",
|
|
42
|
+
secondaryLight: "#2c4a5e",
|
|
43
|
+
secondaryDark: "#6b8ca3",
|
|
44
|
+
highlight: "#ff9966",
|
|
45
|
+
highlightLight: "#e67344",
|
|
46
|
+
highlightDark: "#ffb088",
|
|
47
|
+
info: "#3bb5d1",
|
|
48
|
+
infoLight: "#2a9bb8",
|
|
49
|
+
infoDark: "#66c7dd",
|
|
50
|
+
success: "#4caf50",
|
|
51
|
+
successLight: "#388e3c",
|
|
52
|
+
successDark: "#81c784",
|
|
53
|
+
warning: "#ffb74d",
|
|
54
|
+
warningLight: "#e67e22",
|
|
55
|
+
warningDark: "#ffcc80",
|
|
56
|
+
danger: "#e57373",
|
|
57
|
+
dangerLight: "#c62828",
|
|
58
|
+
dangerDark: "#ef9a9a",
|
|
59
|
+
background: "#121212",
|
|
60
|
+
container: "#1e1e1e",
|
|
61
|
+
neutral: "#9e9e9e",
|
|
62
|
+
neutralLight: "#666666",
|
|
63
|
+
neutralDark: "#d0d0d0",
|
|
64
|
+
onBackground: "#ffffff",
|
|
65
|
+
onPrimary: "#ffffff",
|
|
66
|
+
onSecondary: "#ffffff",
|
|
67
|
+
onHighlight: "#ffffff",
|
|
68
|
+
onSuccess: "#ffffff",
|
|
69
|
+
onWarning: "#000000",
|
|
70
|
+
onDanger: "#ffffff",
|
|
71
|
+
onInfo: "#ffffff",
|
|
72
|
+
onNeutral: "#000000"
|
|
73
73
|
};
|
|
74
74
|
export {
|
|
75
75
|
a as defaultDarkColorScheme,
|