@ptlm-azulejo/sidebar 0.1.1-alpha.250 → 0.1.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/dist/index.js CHANGED
@@ -8,21 +8,15 @@ 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
- 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);
11
+ if (typeof e == "string" || typeof e == "number") o += e;
12
+ else if (typeof e == "object") if (Array.isArray(e)) {
13
+ var a = e.length;
14
+ for (r = 0; r < a; r++) e[r] && (t = et(e[r])) && (o && (o += " "), o += t);
15
+ } else for (t in e) e[t] && (o && (o += " "), o += t);
21
16
  return o;
22
17
  }
23
18
  function yt() {
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);
19
+ for (var e, r, t = 0, o = "", a = arguments.length; t < a; t++) (e = arguments[t]) && (r = et(e)) && (o && (o += " "), o += r);
26
20
  return o;
27
21
  }
28
22
  function ae(e) {
@@ -34,13 +28,11 @@ function ae(e) {
34
28
  }, ae(e);
35
29
  }
36
30
  function kt(e, r) {
37
- if (ae(e) != "object" || !e)
38
- return e;
31
+ if (ae(e) != "object" || !e) return e;
39
32
  var t = e[Symbol.toPrimitive];
40
33
  if (t !== void 0) {
41
34
  var o = t.call(e, r || "default");
42
- if (ae(o) != "object")
43
- return o;
35
+ if (ae(o) != "object") return o;
44
36
  throw new TypeError("@@toPrimitive must return a primitive value.");
45
37
  }
46
38
  return (r === "string" ? String : Number)(e);
@@ -80,10 +72,8 @@ function St(e) {
80
72
  }
81
73
  var zt = (e, r) => {
82
74
  const t = new Array(e.length + r.length);
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];
75
+ for (let o = 0; o < e.length; o++) t[o] = e[o];
76
+ for (let o = 0; o < r.length; o++) t[e.length + o] = r[o];
87
77
  return t;
88
78
  }, Ot = (e, r) => ({
89
79
  classGroupId: e,
@@ -96,8 +86,7 @@ var zt = (e, r) => {
96
86
  const r = It(e), { conflictingClassGroups: t, conflictingClassGroupModifiers: o } = e;
97
87
  return {
98
88
  getClassGroupId: (c) => {
99
- if (c.startsWith("[") && c.endsWith("]"))
100
- return At(c);
89
+ if (c.startsWith("[") && c.endsWith("]")) return At(c);
101
90
  const x = c.split(ge), p = x[0] === "" && x.length > 1 ? 1 : 0;
102
91
  return rt(x, p, r);
103
92
  },
@@ -110,22 +99,18 @@ var zt = (e, r) => {
110
99
  }
111
100
  };
112
101
  }, rt = (e, r, t) => {
113
- if (e.length - r === 0)
114
- return t.classGroupId;
102
+ if (e.length - r === 0) return t.classGroupId;
115
103
  const o = e[r], a = t.nextPart.get(o);
116
104
  if (a) {
117
105
  const p = rt(e, r + 1, a);
118
- if (p)
119
- return p;
106
+ if (p) return p;
120
107
  }
121
108
  const l = t.validators;
122
- if (l === null)
123
- return;
109
+ if (l === null) return;
124
110
  const c = r === 0 ? e.join(ge) : e.slice(r).join(ge), x = l.length;
125
111
  for (let p = 0; p < x; p++) {
126
112
  const g = l[p];
127
- if (g.validator(c))
128
- return g.classGroupId;
113
+ if (g.validator(c)) return g.classGroupId;
129
114
  }
130
115
  }, At = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
131
116
  const r = e.slice(1, -1), t = r.indexOf(":"), o = r.slice(0, t);
@@ -181,13 +166,12 @@ var zt = (e, r) => {
181
166
  }
182
167
  return t;
183
168
  }, Bt = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, Et = (e) => {
184
- if (e < 1)
185
- return {
186
- get: () => {
187
- },
188
- set: () => {
189
- }
190
- };
169
+ if (e < 1) return {
170
+ get: () => {
171
+ },
172
+ set: () => {
173
+ }
174
+ };
191
175
  let r = 0, t = /* @__PURE__ */ Object.create(null), o = /* @__PURE__ */ Object.create(null);
192
176
  const a = (l, c) => {
193
177
  t[l] = c, r++, r > e && (r = 0, o = t, t = /* @__PURE__ */ Object.create(null));
@@ -195,8 +179,7 @@ var zt = (e, r) => {
195
179
  return {
196
180
  get(l) {
197
181
  let c = t[l];
198
- if (c !== void 0)
199
- return c;
182
+ if (c !== void 0) return c;
200
183
  if ((c = o[l]) !== void 0)
201
184
  return a(l, c), c;
202
185
  },
@@ -268,9 +251,7 @@ var zt = (e, r) => {
268
251
  postfixLookupClassGroupIds: Vt(e)
269
252
  }, _t(e)), Vt = (e) => {
270
253
  const r = /* @__PURE__ */ Object.create(null), t = e.postfixLookupClassGroups;
271
- if (t)
272
- for (let o = 0; o < t.length; o++)
273
- r[t[o]] = !0;
254
+ if (t) for (let o = 0; o < t.length; o++) r[t[o]] = !0;
274
255
  return r;
275
256
  }, Dt = /\s+/, Ut = (e, r) => {
276
257
  const { parseClassName: t, getClassGroupId: o, getConflictingClassGroupIds: a, sortModifiers: l, postfixLookupClassGroupIds: c } = r, x = [], p = e.trim().split(Dt);
@@ -286,8 +267,7 @@ var zt = (e, r) => {
286
267
  i = o(A.substring(0, C));
287
268
  const N = i && c[i] ? o(A) : void 0;
288
269
  N && N !== i && (i = N, z = !1);
289
- } else
290
- i = o(A);
270
+ } else i = o(A);
291
271
  if (!i) {
292
272
  if (!z) {
293
273
  g = h + (g.length > 0 ? " " + g : g);
@@ -300,8 +280,7 @@ var zt = (e, r) => {
300
280
  z = !1;
301
281
  }
302
282
  const M = $.length === 0 ? "" : $.length === 1 ? $[0] : l($).join(":"), R = j ? M + _e : M, _ = R + i;
303
- if (x.indexOf(_) > -1)
304
- continue;
283
+ if (x.indexOf(_) > -1) continue;
305
284
  x.push(_);
306
285
  const K = a(i, z);
307
286
  for (let N = 0; N < K.length; ++N) {
@@ -313,15 +292,12 @@ var zt = (e, r) => {
313
292
  return g;
314
293
  }, Wt = (...e) => {
315
294
  let r = 0, t, o, a = "";
316
- for (; r < e.length; )
317
- (t = e[r++]) && (o = at(t)) && (a && (a += " "), a += o);
295
+ for (; r < e.length; ) (t = e[r++]) && (o = at(t)) && (a && (a += " "), a += o);
318
296
  return a;
319
297
  }, at = (e) => {
320
- if (typeof e == "string")
321
- return e;
298
+ if (typeof e == "string") return e;
322
299
  let r, t = "";
323
- for (let o = 0; o < e.length; o++)
324
- e[o] && (r = at(e[o])) && (t && (t += " "), t += r);
300
+ for (let o = 0; o < e.length; o++) e[o] && (r = at(e[o])) && (t && (t += " "), t += r);
325
301
  return t;
326
302
  }, He = (e, ...r) => {
327
303
  let t, o, a, l;
@@ -330,8 +306,7 @@ var zt = (e, r) => {
330
306
  return t = Ft(g), o = t.cache.get, a = t.cache.set, l = x, x(p);
331
307
  }, x = (p) => {
332
308
  const g = o(p);
333
- if (g)
334
- return g;
309
+ if (g) return g;
335
310
  const b = Ut(p, t);
336
311
  return a(p, b), b;
337
312
  };
@@ -1823,13 +1798,9 @@ var zt = (e, r) => {
1823
1798
  }, 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) => {
1824
1799
  t !== void 0 && (e[r] = t);
1825
1800
  }, be = (e, r) => {
1826
- if (r)
1827
- for (const t in r)
1828
- ee(e, t, r[t]);
1801
+ if (r) for (const t in r) ee(e, t, r[t]);
1829
1802
  }, me = (e, r) => {
1830
- if (r)
1831
- for (const t in r)
1832
- Ae(e, r, t);
1803
+ if (r) for (const t in r) Ae(e, r, t);
1833
1804
  }, Ae = (e, r, t) => {
1834
1805
  const o = r[t];
1835
1806
  o !== void 0 && (e[t] = e[t] ? e[t].concat(o) : o);
@@ -2087,8 +2058,7 @@ var vr = ["src", "alt"], gr = /* @__PURE__ */ re({
2087
2058
  }
2088
2059
  function c() {
2089
2060
  for (const C of r.navigationOptions.items) {
2090
- if (!o(C))
2091
- continue;
2061
+ if (!o(C)) continue;
2092
2062
  const z = C.subItems.some((i) => i.current);
2093
2063
  (C.current || z) && t.add(C.id);
2094
2064
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ptlm-azulejo/sidebar",
3
- "version": "0.1.1-alpha.250",
3
+ "version": "0.1.1",
4
4
  "type": "module",
5
5
  "main": "./dist/index.umd.cjs",
6
6
  "module": "./dist/index.js",
package/CHANGELOG.md DELETED
@@ -1,35 +0,0 @@
1
- # Change Log
2
-
3
- ## 0.1.1
4
-
5
- ### Patch Changes
6
-
7
- - 6206efd: Resolve internal `@ptlm-azulejo/*` dependencies from the workspace. `@ptlm-azulejo/sidebar` no longer pins `@ptlm-azulejo/icon-button@1.0.0-alpha.16`, so it installs the current release instead of a second, outdated copy. `@ptlm-azulejo/field` and `@ptlm-azulejo/icon-button` accept any `@ptlm-azulejo/loader` release.
8
- - Updated dependencies [6206efd]
9
- - @ptlm-azulejo/icon-button@1.1.1
10
-
11
- ## 0.1.0
12
-
13
- ### Minor Changes
14
-
15
- - 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`.
16
-
17
- ### Patch Changes
18
-
19
- - 44d7a3b: Show a divider between favorites and the nav menu when both sections are present.
20
- - 44d7a3b: Collapsed multi-action nav items set `aria-haspopup="menu"` on the ActionListBox activator, matching the panel's `role="menu"`.
21
- - 44d7a3b: AzSidebar now depends on the workspace `@ptlm-azulejo/tooltip` instead of the published `0.0.1-alpha.95` alpha.
22
- - 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.
23
- - 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.
24
- - Updated dependencies [cf7489e]
25
- - Updated dependencies [030c9c8]
26
- - Updated dependencies [238cf6d]
27
- - Updated dependencies [307e60c]
28
- - Updated dependencies [2c46e8c]
29
- - Updated dependencies [06a62d2]
30
- - Updated dependencies [19ed560]
31
- - @ptlm-azulejo/action-list-box@0.1.0
32
- - @ptlm-azulejo/tooltip@1.1.0
33
-
34
- All notable changes to this project will be documented in this file.
35
- See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.