@ptlm-azulejo/linear-progress-bar 0.1.0-alpha.251 → 0.1.0
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/index.js +60 -31
- package/package.json +2 -2
- package/CHANGELOG.md +0 -11
package/dist/index.js
CHANGED
|
@@ -1,15 +1,21 @@
|
|
|
1
1
|
import { computed as Q, createElementBlock as qe, createElementVNode as Ke, defineComponent as Xe, normalizeClass as ke, normalizeStyle as Je, openBlock as Qe } from "vue";
|
|
2
2
|
function Oe(e) {
|
|
3
3
|
var r, o, t = "";
|
|
4
|
-
if (typeof e == "string" || typeof e == "number")
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
if (typeof e == "string" || typeof e == "number")
|
|
5
|
+
t += e;
|
|
6
|
+
else if (typeof e == "object")
|
|
7
|
+
if (Array.isArray(e)) {
|
|
8
|
+
var a = e.length;
|
|
9
|
+
for (r = 0; r < a; r++)
|
|
10
|
+
e[r] && (o = Oe(e[r])) && (t && (t += " "), t += o);
|
|
11
|
+
} else
|
|
12
|
+
for (o in e)
|
|
13
|
+
e[o] && (t && (t += " "), t += o);
|
|
9
14
|
return t;
|
|
10
15
|
}
|
|
11
16
|
function He() {
|
|
12
|
-
for (var e, r, o = 0, t = "", a = arguments.length; o < a; o++)
|
|
17
|
+
for (var e, r, o = 0, t = "", a = arguments.length; o < a; o++)
|
|
18
|
+
(e = arguments[o]) && (r = Oe(e)) && (t && (t += " "), t += r);
|
|
13
19
|
return t;
|
|
14
20
|
}
|
|
15
21
|
function U(e) {
|
|
@@ -21,11 +27,13 @@ function U(e) {
|
|
|
21
27
|
}, U(e);
|
|
22
28
|
}
|
|
23
29
|
function Ze(e, r) {
|
|
24
|
-
if (U(e) != "object" || !e)
|
|
30
|
+
if (U(e) != "object" || !e)
|
|
31
|
+
return e;
|
|
25
32
|
var o = e[Symbol.toPrimitive];
|
|
26
33
|
if (o !== void 0) {
|
|
27
34
|
var t = o.call(e, r || "default");
|
|
28
|
-
if (U(t) != "object")
|
|
35
|
+
if (U(t) != "object")
|
|
36
|
+
return t;
|
|
29
37
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
30
38
|
}
|
|
31
39
|
return (r === "string" ? String : Number)(e);
|
|
@@ -65,8 +73,10 @@ function or(e) {
|
|
|
65
73
|
}
|
|
66
74
|
var tr = (e, r) => {
|
|
67
75
|
const o = new Array(e.length + r.length);
|
|
68
|
-
for (let t = 0; t < e.length; t++)
|
|
69
|
-
|
|
76
|
+
for (let t = 0; t < e.length; t++)
|
|
77
|
+
o[t] = e[t];
|
|
78
|
+
for (let t = 0; t < r.length; t++)
|
|
79
|
+
o[e.length + t] = r[t];
|
|
70
80
|
return o;
|
|
71
81
|
}, sr = (e, r) => ({
|
|
72
82
|
classGroupId: e,
|
|
@@ -79,7 +89,8 @@ var tr = (e, r) => {
|
|
|
79
89
|
const r = lr(e), { conflictingClassGroups: o, conflictingClassGroupModifiers: t } = e;
|
|
80
90
|
return {
|
|
81
91
|
getClassGroupId: (c) => {
|
|
82
|
-
if (c.startsWith("[") && c.endsWith("]"))
|
|
92
|
+
if (c.startsWith("[") && c.endsWith("]"))
|
|
93
|
+
return ir(c);
|
|
83
94
|
const b = c.split(oe), u = b[0] === "" && b.length > 1 ? 1 : 0;
|
|
84
95
|
return Le(b, u, r);
|
|
85
96
|
},
|
|
@@ -92,18 +103,22 @@ var tr = (e, r) => {
|
|
|
92
103
|
}
|
|
93
104
|
};
|
|
94
105
|
}, Le = (e, r, o) => {
|
|
95
|
-
if (e.length - r === 0)
|
|
106
|
+
if (e.length - r === 0)
|
|
107
|
+
return o.classGroupId;
|
|
96
108
|
const t = e[r], a = o.nextPart.get(t);
|
|
97
109
|
if (a) {
|
|
98
110
|
const u = Le(e, r + 1, a);
|
|
99
|
-
if (u)
|
|
111
|
+
if (u)
|
|
112
|
+
return u;
|
|
100
113
|
}
|
|
101
114
|
const i = o.validators;
|
|
102
|
-
if (i === null)
|
|
115
|
+
if (i === null)
|
|
116
|
+
return;
|
|
103
117
|
const c = r === 0 ? e.join(oe) : e.slice(r).join(oe), b = i.length;
|
|
104
118
|
for (let u = 0; u < b; u++) {
|
|
105
119
|
const p = i[u];
|
|
106
|
-
if (p.validator(c))
|
|
120
|
+
if (p.validator(c))
|
|
121
|
+
return p.classGroupId;
|
|
107
122
|
}
|
|
108
123
|
}, ir = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
|
|
109
124
|
const r = e.slice(1, -1), o = r.indexOf(":"), t = r.slice(0, o);
|
|
@@ -159,12 +174,13 @@ var tr = (e, r) => {
|
|
|
159
174
|
}
|
|
160
175
|
return o;
|
|
161
176
|
}, br = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, fr = (e) => {
|
|
162
|
-
if (e < 1)
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
177
|
+
if (e < 1)
|
|
178
|
+
return {
|
|
179
|
+
get: () => {
|
|
180
|
+
},
|
|
181
|
+
set: () => {
|
|
182
|
+
}
|
|
183
|
+
};
|
|
168
184
|
let r = 0, o = /* @__PURE__ */ Object.create(null), t = /* @__PURE__ */ Object.create(null);
|
|
169
185
|
const a = (i, c) => {
|
|
170
186
|
o[i] = c, r++, r > e && (r = 0, t = o, o = /* @__PURE__ */ Object.create(null));
|
|
@@ -172,7 +188,8 @@ var tr = (e, r) => {
|
|
|
172
188
|
return {
|
|
173
189
|
get(i) {
|
|
174
190
|
let c = o[i];
|
|
175
|
-
if (c !== void 0)
|
|
191
|
+
if (c !== void 0)
|
|
192
|
+
return c;
|
|
176
193
|
if ((c = t[i]) !== void 0)
|
|
177
194
|
return a(i, c), c;
|
|
178
195
|
},
|
|
@@ -244,7 +261,9 @@ var tr = (e, r) => {
|
|
|
244
261
|
postfixLookupClassGroupIds: wr(e)
|
|
245
262
|
}, nr(e)), wr = (e) => {
|
|
246
263
|
const r = /* @__PURE__ */ Object.create(null), o = e.postfixLookupClassGroups;
|
|
247
|
-
if (o)
|
|
264
|
+
if (o)
|
|
265
|
+
for (let t = 0; t < o.length; t++)
|
|
266
|
+
r[o[t]] = !0;
|
|
248
267
|
return r;
|
|
249
268
|
}, kr = /\s+/, xr = (e, r) => {
|
|
250
269
|
const { parseClassName: o, getClassGroupId: t, getConflictingClassGroupIds: a, sortModifiers: i, postfixLookupClassGroupIds: c } = r, b = [], u = e.trim().split(kr);
|
|
@@ -260,7 +279,8 @@ var tr = (e, r) => {
|
|
|
260
279
|
k = t(w.substring(0, C));
|
|
261
280
|
const S = k && c[k] ? t(w) : void 0;
|
|
262
281
|
S && S !== k && (k = S, j = !1);
|
|
263
|
-
} else
|
|
282
|
+
} else
|
|
283
|
+
k = t(w);
|
|
264
284
|
if (!k) {
|
|
265
285
|
if (!j) {
|
|
266
286
|
p = h + (p.length > 0 ? " " + p : p);
|
|
@@ -273,7 +293,8 @@ var tr = (e, r) => {
|
|
|
273
293
|
j = !1;
|
|
274
294
|
}
|
|
275
295
|
const D = A.length === 0 ? "" : A.length === 1 ? A[0] : i(A).join(":"), N = F ? D + ce : D, E = N + k;
|
|
276
|
-
if (b.indexOf(E) > -1)
|
|
296
|
+
if (b.indexOf(E) > -1)
|
|
297
|
+
continue;
|
|
277
298
|
b.push(E);
|
|
278
299
|
const V = a(k, j);
|
|
279
300
|
for (let S = 0; S < V.length; ++S) {
|
|
@@ -285,12 +306,15 @@ var tr = (e, r) => {
|
|
|
285
306
|
return p;
|
|
286
307
|
}, zr = (...e) => {
|
|
287
308
|
let r = 0, o, t, a = "";
|
|
288
|
-
for (; r < e.length; )
|
|
309
|
+
for (; r < e.length; )
|
|
310
|
+
(o = e[r++]) && (t = _e(o)) && (a && (a += " "), a += t);
|
|
289
311
|
return a;
|
|
290
312
|
}, _e = (e) => {
|
|
291
|
-
if (typeof e == "string")
|
|
313
|
+
if (typeof e == "string")
|
|
314
|
+
return e;
|
|
292
315
|
let r, o = "";
|
|
293
|
-
for (let t = 0; t < e.length; t++)
|
|
316
|
+
for (let t = 0; t < e.length; t++)
|
|
317
|
+
e[t] && (r = _e(e[t])) && (o && (o += " "), o += r);
|
|
294
318
|
return o;
|
|
295
319
|
}, Pe = (e, ...r) => {
|
|
296
320
|
let o, t, a, i;
|
|
@@ -299,7 +323,8 @@ var tr = (e, r) => {
|
|
|
299
323
|
return o = yr(p), t = o.cache.get, a = o.cache.set, i = b, b(u);
|
|
300
324
|
}, b = (u) => {
|
|
301
325
|
const p = t(u);
|
|
302
|
-
if (p)
|
|
326
|
+
if (p)
|
|
327
|
+
return p;
|
|
303
328
|
const z = xr(u, o);
|
|
304
329
|
return a(u, z), z;
|
|
305
330
|
};
|
|
@@ -1791,9 +1816,13 @@ var tr = (e, r) => {
|
|
|
1791
1816
|
}, Ur = (e, { cacheSize: r, prefix: o, experimentalParseClassName: t, extend: a = {}, override: i = {} }) => (B(e, "cacheSize", r), B(e, "prefix", o), B(e, "experimentalParseClassName", t), ee(e.theme, i.theme), ee(e.classGroups, i.classGroups), ee(e.conflictingClassGroups, i.conflictingClassGroups), ee(e.conflictingClassGroupModifiers, i.conflictingClassGroupModifiers), B(e, "postfixLookupClassGroups", i.postfixLookupClassGroups), B(e, "orderSensitiveModifiers", i.orderSensitiveModifiers), re(e.theme, a.theme), re(e.classGroups, a.classGroups), re(e.conflictingClassGroups, a.conflictingClassGroups), re(e.conflictingClassGroupModifiers, a.conflictingClassGroupModifiers), de(e, a, "postfixLookupClassGroups"), de(e, a, "orderSensitiveModifiers"), e), B = (e, r, o) => {
|
|
1792
1817
|
o !== void 0 && (e[r] = o);
|
|
1793
1818
|
}, ee = (e, r) => {
|
|
1794
|
-
if (r)
|
|
1819
|
+
if (r)
|
|
1820
|
+
for (const o in r)
|
|
1821
|
+
B(e, o, r[o]);
|
|
1795
1822
|
}, re = (e, r) => {
|
|
1796
|
-
if (r)
|
|
1823
|
+
if (r)
|
|
1824
|
+
for (const o in r)
|
|
1825
|
+
de(e, r, o);
|
|
1797
1826
|
}, de = (e, r, o) => {
|
|
1798
1827
|
const t = r[o];
|
|
1799
1828
|
t !== void 0 && (e[o] = e[o] ? e[o].concat(t) : t);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ptlm-azulejo/linear-progress-bar",
|
|
3
|
-
"version": "0.1.0
|
|
3
|
+
"version": "0.1.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.umd.cjs",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -27,10 +27,10 @@
|
|
|
27
27
|
"dist/*"
|
|
28
28
|
],
|
|
29
29
|
"devDependencies": {
|
|
30
|
+
"@storybook/vue3-vite": "^10.5.8",
|
|
30
31
|
"@ptlm-azulejo/fonts-adeo": "*",
|
|
31
32
|
"@ptlm-azulejo/fonts-leroy-merlin": "*",
|
|
32
33
|
"@ptlm-azulejo/themes": "*",
|
|
33
|
-
"@storybook/vue3-vite": "^10.5.8",
|
|
34
34
|
"@tailwindcss/vite": "^4.3.3",
|
|
35
35
|
"storybook": "^10.5.8",
|
|
36
36
|
"tailwindcss": "^4.3.3",
|
package/CHANGELOG.md
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
# Change Log
|
|
2
|
-
|
|
3
|
-
## 0.1.0
|
|
4
|
-
|
|
5
|
-
### Minor Changes
|
|
6
|
-
|
|
7
|
-
- 48f413c: Add `AzLinearProgressBar` — Mozaic-aligned buffer linear progress bar with `value` (0–100, clamped), `size` (`s` / `m` / `l`), `ariaLabel`, `:ui` overrides on `root` and `indicator`, and `role="progressbar"` with `aria-valuenow` / min / max.
|
|
8
|
-
- 48f413c: Add `AzLinearProgressBar` (`@ptlm-azulejo/linear-progress-bar`) aligned with Mozaic `MLinearProgressbarBuffer`: a horizontal progress track with `value` (0–100), `size` (`s` / `m` / `l`), required `ariaLabel`, and a typed `:ui` escape hatch for the track and indicator.
|
|
9
|
-
|
|
10
|
-
All notable changes to this project will be documented in this file.
|
|
11
|
-
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|