@ptlm-azulejo/sidebar 0.1.0-alpha.248 → 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 +62 -32
- package/package.json +2 -2
- package/CHANGELOG.md +0 -27
package/dist/index.js
CHANGED
|
@@ -8,15 +8,21 @@ import { AzIconButton as xt } from "@ptlm-azulejo/icon-button";
|
|
|
8
8
|
import "@ptlm-azulejo/icon-button/style.css";
|
|
9
9
|
function et(e) {
|
|
10
10
|
var r, t, o = "";
|
|
11
|
-
if (typeof e == "string" || typeof e == "number")
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
11
|
+
if (typeof e == "string" || typeof e == "number")
|
|
12
|
+
o += e;
|
|
13
|
+
else if (typeof e == "object")
|
|
14
|
+
if (Array.isArray(e)) {
|
|
15
|
+
var a = e.length;
|
|
16
|
+
for (r = 0; r < a; r++)
|
|
17
|
+
e[r] && (t = et(e[r])) && (o && (o += " "), o += t);
|
|
18
|
+
} else
|
|
19
|
+
for (t in e)
|
|
20
|
+
e[t] && (o && (o += " "), o += t);
|
|
16
21
|
return o;
|
|
17
22
|
}
|
|
18
23
|
function yt() {
|
|
19
|
-
for (var e, r, t = 0, o = "", a = arguments.length; t < a; t++)
|
|
24
|
+
for (var e, r, t = 0, o = "", a = arguments.length; t < a; t++)
|
|
25
|
+
(e = arguments[t]) && (r = et(e)) && (o && (o += " "), o += r);
|
|
20
26
|
return o;
|
|
21
27
|
}
|
|
22
28
|
function ae(e) {
|
|
@@ -28,11 +34,13 @@ function ae(e) {
|
|
|
28
34
|
}, ae(e);
|
|
29
35
|
}
|
|
30
36
|
function kt(e, r) {
|
|
31
|
-
if (ae(e) != "object" || !e)
|
|
37
|
+
if (ae(e) != "object" || !e)
|
|
38
|
+
return e;
|
|
32
39
|
var t = e[Symbol.toPrimitive];
|
|
33
40
|
if (t !== void 0) {
|
|
34
41
|
var o = t.call(e, r || "default");
|
|
35
|
-
if (ae(o) != "object")
|
|
42
|
+
if (ae(o) != "object")
|
|
43
|
+
return o;
|
|
36
44
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
37
45
|
}
|
|
38
46
|
return (r === "string" ? String : Number)(e);
|
|
@@ -72,8 +80,10 @@ function St(e) {
|
|
|
72
80
|
}
|
|
73
81
|
var zt = (e, r) => {
|
|
74
82
|
const t = new Array(e.length + r.length);
|
|
75
|
-
for (let o = 0; o < e.length; o++)
|
|
76
|
-
|
|
83
|
+
for (let o = 0; o < e.length; o++)
|
|
84
|
+
t[o] = e[o];
|
|
85
|
+
for (let o = 0; o < r.length; o++)
|
|
86
|
+
t[e.length + o] = r[o];
|
|
77
87
|
return t;
|
|
78
88
|
}, Ot = (e, r) => ({
|
|
79
89
|
classGroupId: e,
|
|
@@ -86,7 +96,8 @@ var zt = (e, r) => {
|
|
|
86
96
|
const r = It(e), { conflictingClassGroups: t, conflictingClassGroupModifiers: o } = e;
|
|
87
97
|
return {
|
|
88
98
|
getClassGroupId: (c) => {
|
|
89
|
-
if (c.startsWith("[") && c.endsWith("]"))
|
|
99
|
+
if (c.startsWith("[") && c.endsWith("]"))
|
|
100
|
+
return At(c);
|
|
90
101
|
const x = c.split(ge), p = x[0] === "" && x.length > 1 ? 1 : 0;
|
|
91
102
|
return rt(x, p, r);
|
|
92
103
|
},
|
|
@@ -99,18 +110,22 @@ var zt = (e, r) => {
|
|
|
99
110
|
}
|
|
100
111
|
};
|
|
101
112
|
}, rt = (e, r, t) => {
|
|
102
|
-
if (e.length - r === 0)
|
|
113
|
+
if (e.length - r === 0)
|
|
114
|
+
return t.classGroupId;
|
|
103
115
|
const o = e[r], a = t.nextPart.get(o);
|
|
104
116
|
if (a) {
|
|
105
117
|
const p = rt(e, r + 1, a);
|
|
106
|
-
if (p)
|
|
118
|
+
if (p)
|
|
119
|
+
return p;
|
|
107
120
|
}
|
|
108
121
|
const l = t.validators;
|
|
109
|
-
if (l === null)
|
|
122
|
+
if (l === null)
|
|
123
|
+
return;
|
|
110
124
|
const c = r === 0 ? e.join(ge) : e.slice(r).join(ge), x = l.length;
|
|
111
125
|
for (let p = 0; p < x; p++) {
|
|
112
126
|
const g = l[p];
|
|
113
|
-
if (g.validator(c))
|
|
127
|
+
if (g.validator(c))
|
|
128
|
+
return g.classGroupId;
|
|
114
129
|
}
|
|
115
130
|
}, At = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
|
|
116
131
|
const r = e.slice(1, -1), t = r.indexOf(":"), o = r.slice(0, t);
|
|
@@ -166,12 +181,13 @@ var zt = (e, r) => {
|
|
|
166
181
|
}
|
|
167
182
|
return t;
|
|
168
183
|
}, Bt = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, Et = (e) => {
|
|
169
|
-
if (e < 1)
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
184
|
+
if (e < 1)
|
|
185
|
+
return {
|
|
186
|
+
get: () => {
|
|
187
|
+
},
|
|
188
|
+
set: () => {
|
|
189
|
+
}
|
|
190
|
+
};
|
|
175
191
|
let r = 0, t = /* @__PURE__ */ Object.create(null), o = /* @__PURE__ */ Object.create(null);
|
|
176
192
|
const a = (l, c) => {
|
|
177
193
|
t[l] = c, r++, r > e && (r = 0, o = t, t = /* @__PURE__ */ Object.create(null));
|
|
@@ -179,7 +195,8 @@ var zt = (e, r) => {
|
|
|
179
195
|
return {
|
|
180
196
|
get(l) {
|
|
181
197
|
let c = t[l];
|
|
182
|
-
if (c !== void 0)
|
|
198
|
+
if (c !== void 0)
|
|
199
|
+
return c;
|
|
183
200
|
if ((c = o[l]) !== void 0)
|
|
184
201
|
return a(l, c), c;
|
|
185
202
|
},
|
|
@@ -251,7 +268,9 @@ var zt = (e, r) => {
|
|
|
251
268
|
postfixLookupClassGroupIds: Vt(e)
|
|
252
269
|
}, _t(e)), Vt = (e) => {
|
|
253
270
|
const r = /* @__PURE__ */ Object.create(null), t = e.postfixLookupClassGroups;
|
|
254
|
-
if (t)
|
|
271
|
+
if (t)
|
|
272
|
+
for (let o = 0; o < t.length; o++)
|
|
273
|
+
r[t[o]] = !0;
|
|
255
274
|
return r;
|
|
256
275
|
}, Dt = /\s+/, Ut = (e, r) => {
|
|
257
276
|
const { parseClassName: t, getClassGroupId: o, getConflictingClassGroupIds: a, sortModifiers: l, postfixLookupClassGroupIds: c } = r, x = [], p = e.trim().split(Dt);
|
|
@@ -267,7 +286,8 @@ var zt = (e, r) => {
|
|
|
267
286
|
i = o(A.substring(0, C));
|
|
268
287
|
const N = i && c[i] ? o(A) : void 0;
|
|
269
288
|
N && N !== i && (i = N, z = !1);
|
|
270
|
-
} else
|
|
289
|
+
} else
|
|
290
|
+
i = o(A);
|
|
271
291
|
if (!i) {
|
|
272
292
|
if (!z) {
|
|
273
293
|
g = h + (g.length > 0 ? " " + g : g);
|
|
@@ -280,7 +300,8 @@ var zt = (e, r) => {
|
|
|
280
300
|
z = !1;
|
|
281
301
|
}
|
|
282
302
|
const M = $.length === 0 ? "" : $.length === 1 ? $[0] : l($).join(":"), R = j ? M + _e : M, _ = R + i;
|
|
283
|
-
if (x.indexOf(_) > -1)
|
|
303
|
+
if (x.indexOf(_) > -1)
|
|
304
|
+
continue;
|
|
284
305
|
x.push(_);
|
|
285
306
|
const K = a(i, z);
|
|
286
307
|
for (let N = 0; N < K.length; ++N) {
|
|
@@ -292,12 +313,15 @@ var zt = (e, r) => {
|
|
|
292
313
|
return g;
|
|
293
314
|
}, Wt = (...e) => {
|
|
294
315
|
let r = 0, t, o, a = "";
|
|
295
|
-
for (; r < e.length; )
|
|
316
|
+
for (; r < e.length; )
|
|
317
|
+
(t = e[r++]) && (o = at(t)) && (a && (a += " "), a += o);
|
|
296
318
|
return a;
|
|
297
319
|
}, at = (e) => {
|
|
298
|
-
if (typeof e == "string")
|
|
320
|
+
if (typeof e == "string")
|
|
321
|
+
return e;
|
|
299
322
|
let r, t = "";
|
|
300
|
-
for (let o = 0; o < e.length; o++)
|
|
323
|
+
for (let o = 0; o < e.length; o++)
|
|
324
|
+
e[o] && (r = at(e[o])) && (t && (t += " "), t += r);
|
|
301
325
|
return t;
|
|
302
326
|
}, He = (e, ...r) => {
|
|
303
327
|
let t, o, a, l;
|
|
@@ -306,7 +330,8 @@ var zt = (e, r) => {
|
|
|
306
330
|
return t = Ft(g), o = t.cache.get, a = t.cache.set, l = x, x(p);
|
|
307
331
|
}, x = (p) => {
|
|
308
332
|
const g = o(p);
|
|
309
|
-
if (g)
|
|
333
|
+
if (g)
|
|
334
|
+
return g;
|
|
310
335
|
const b = Ut(p, t);
|
|
311
336
|
return a(p, b), b;
|
|
312
337
|
};
|
|
@@ -1798,9 +1823,13 @@ var zt = (e, r) => {
|
|
|
1798
1823
|
}, br = (e, { cacheSize: r, prefix: t, experimentalParseClassName: o, extend: a = {}, override: l = {} }) => (ee(e, "cacheSize", r), ee(e, "prefix", t), ee(e, "experimentalParseClassName", o), be(e.theme, l.theme), be(e.classGroups, l.classGroups), be(e.conflictingClassGroups, l.conflictingClassGroups), be(e.conflictingClassGroupModifiers, l.conflictingClassGroupModifiers), ee(e, "postfixLookupClassGroups", l.postfixLookupClassGroups), ee(e, "orderSensitiveModifiers", l.orderSensitiveModifiers), me(e.theme, a.theme), me(e.classGroups, a.classGroups), me(e.conflictingClassGroups, a.conflictingClassGroups), me(e.conflictingClassGroupModifiers, a.conflictingClassGroupModifiers), Ae(e, a, "postfixLookupClassGroups"), Ae(e, a, "orderSensitiveModifiers"), e), ee = (e, r, t) => {
|
|
1799
1824
|
t !== void 0 && (e[r] = t);
|
|
1800
1825
|
}, be = (e, r) => {
|
|
1801
|
-
if (r)
|
|
1826
|
+
if (r)
|
|
1827
|
+
for (const t in r)
|
|
1828
|
+
ee(e, t, r[t]);
|
|
1802
1829
|
}, me = (e, r) => {
|
|
1803
|
-
if (r)
|
|
1830
|
+
if (r)
|
|
1831
|
+
for (const t in r)
|
|
1832
|
+
Ae(e, r, t);
|
|
1804
1833
|
}, Ae = (e, r, t) => {
|
|
1805
1834
|
const o = r[t];
|
|
1806
1835
|
o !== void 0 && (e[t] = e[t] ? e[t].concat(o) : o);
|
|
@@ -2058,7 +2087,8 @@ var vr = ["src", "alt"], gr = /* @__PURE__ */ re({
|
|
|
2058
2087
|
}
|
|
2059
2088
|
function c() {
|
|
2060
2089
|
for (const C of r.navigationOptions.items) {
|
|
2061
|
-
if (!o(C))
|
|
2090
|
+
if (!o(C))
|
|
2091
|
+
continue;
|
|
2062
2092
|
const z = C.subItems.some((i) => i.current);
|
|
2063
2093
|
(C.current || z) && t.add(C.id);
|
|
2064
2094
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ptlm-azulejo/sidebar",
|
|
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",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"@ptlm-azulejo/action-list-box": "*",
|
|
44
|
-
"@ptlm-azulejo/icon-button": "
|
|
44
|
+
"@ptlm-azulejo/icon-button": "1.0.0-alpha.16",
|
|
45
45
|
"@ptlm-azulejo/icons": "^1.0.0-alpha.6",
|
|
46
46
|
"@ptlm-azulejo/tooltip": "*"
|
|
47
47
|
}
|
package/CHANGELOG.md
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
# Change Log
|
|
2
|
-
|
|
3
|
-
## 0.1.0
|
|
4
|
-
|
|
5
|
-
### Minor Changes
|
|
6
|
-
|
|
7
|
-
- 307e60c: ActionListBox teleports its panel to `document.body` with fixed positioning so ancestor overflow cannot clip it. Sidebar relies on that overlay and keeps the aside overflow-visible (only the nav scroller clips); profile menu placement stays configurable via `footerOptions.profileMenuPosition` (default `bottom-up`). Collapsed items still use tooltip / action-list-box overlays. Favorites/shortcuts rearrange into a vertical icon stack when the rail is collapsed and show `AzTooltip` (per-item `tooltip` text + `shortcutOptions.tooltipPosition`). The footer avatar and header logo stay centered in the collapsed rail; the avatar photo is cropped with `object-center`.
|
|
8
|
-
|
|
9
|
-
### Patch Changes
|
|
10
|
-
|
|
11
|
-
- 44d7a3b: Show a divider between favorites and the nav menu when both sections are present.
|
|
12
|
-
- 44d7a3b: Collapsed multi-action nav items set `aria-haspopup="menu"` on the ActionListBox activator, matching the panel's `role="menu"`.
|
|
13
|
-
- 44d7a3b: AzSidebar now depends on the workspace `@ptlm-azulejo/tooltip` instead of the published `0.0.1-alpha.95` alpha.
|
|
14
|
-
- 06a62d2: Keep publishing the stylesheet as `./style.css`. Vite 6 stopped hardcoding that name in library mode and started deriving it from the entry name, which would have moved the file to `index.css` and broken the documented import path. The entry points and type definitions are unchanged.
|
|
15
|
-
- 19ed560: Rebuild on Vite 8, which bundles with Rolldown and minifies CSS with Lightning CSS. The ESM, CJS and type entry points are unchanged, and `vue` stays external in both the ESM build and the UMD global. The published CSS is equivalent but slightly larger, because Lightning CSS expands shorthands to match the configured build target.
|
|
16
|
-
- Updated dependencies [cf7489e]
|
|
17
|
-
- Updated dependencies [030c9c8]
|
|
18
|
-
- Updated dependencies [238cf6d]
|
|
19
|
-
- Updated dependencies [307e60c]
|
|
20
|
-
- Updated dependencies [2c46e8c]
|
|
21
|
-
- Updated dependencies [06a62d2]
|
|
22
|
-
- Updated dependencies [19ed560]
|
|
23
|
-
- @ptlm-azulejo/action-list-box@0.1.0
|
|
24
|
-
- @ptlm-azulejo/tooltip@1.1.0
|
|
25
|
-
|
|
26
|
-
All notable changes to this project will be documented in this file.
|
|
27
|
-
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|