@flux-ui/application 3.2.0-beta.7 → 3.2.0-beta.9

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
@@ -33,7 +33,7 @@ function K(e, t, n) {
33
33
  `[contenteditable]:not([contenteditable=false])`,
34
34
  `[tabindex]:not([disabled]):not([tabindex="-1"])`
35
35
  ].join(`,`);
36
- function v(e) {
36
+ function y(e) {
37
37
  let r = unref(e);
38
38
  return R(r) ? r : r?.$el;
39
39
  }
@@ -70,7 +70,7 @@ new class {
70
70
  e.setEnabled(t), e.isEnabled = t;
71
71
  }
72
72
  }();
73
- var C = !globalThis.document;
73
+ var w = !globalThis.document;
74
74
  //#endregion
75
75
  //#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/rgb/parseNumber.js
76
76
  var parseNumber = (color, len) => {
@@ -3660,15 +3660,15 @@ var HttpAdapter = _HttpAdapter = class HttpAdapter {
3660
3660
  HttpAdapter = _HttpAdapter = __decorate([adapter_default], HttpAdapter);
3661
3661
  RegExp(`[a-z]`), RegExp(`[A-Z]`), RegExp(`[0-9]`), RegExp(`[!"#$%&'()*+,-./:;<=>?@[\\\\\\]^_\`{|}~]`);
3662
3662
  //#endregion
3663
- //#region ../internals/dist/composable-6jMsSnBV.js
3663
+ //#region ../internals/dist/composable-Cr4VA1Rs.js
3664
3664
  function O(t, n, r, i = { passive: !0 }) {
3665
3665
  watch(t, (a, o, s) => {
3666
- let c = v(t) ?? (a instanceof EventTarget ? a : null);
3666
+ let c = y(t) ?? (a instanceof EventTarget ? a : null);
3667
3667
  c && (c.addEventListener(n, r, i), s(() => c.removeEventListener(n, r, i)));
3668
3668
  }, { immediate: !0 });
3669
3669
  }
3670
3670
  function A(e, t) {
3671
- if (C) return ref(t);
3671
+ if (w) return ref(t);
3672
3672
  let n = `flux/${e}`, r = ref(i() ?? t);
3673
3673
  function i() {
3674
3674
  let e = localStorage.getItem(n);
@@ -3693,7 +3693,7 @@ function A(e, t) {
3693
3693
  }
3694
3694
  function j(e) {
3695
3695
  let t = ref(0), n = ref(0);
3696
- if (C) return {
3696
+ if (w) return {
3697
3697
  x: t,
3698
3698
  y: n
3699
3699
  };
@@ -3707,7 +3707,7 @@ function j(e) {
3707
3707
  };
3708
3708
  }
3709
3709
  //#endregion
3710
- //#region ../internals/dist/directive-wk7DX8wQ.js
3710
+ //#region ../internals/dist/directive-B9jeVN1O.js
3711
3711
  var i = class {
3712
3712
  #e;
3713
3713
  #t;
@@ -4283,7 +4283,7 @@ var FluxApplicationMenuContextStack_default = /* @__PURE__ */ defineComponent({
4283
4283
  }
4284
4284
  },
4285
4285
  setup(props) {
4286
- provide(viewDepthKey, ref(props.depth));
4286
+ provide(viewDepthKey, computed(() => props.depth));
4287
4287
  return () => h(RouterView, { name: props.viewName });
4288
4288
  }
4289
4289
  });
@@ -4374,6 +4374,8 @@ var FluxApplicationMenuToggle_default = /* @__PURE__ */ defineComponent({
4374
4374
  return (_ctx, _cache) => {
4375
4375
  return openBlock(), createBlock(unref(FluxMenuItem), {
4376
4376
  class: normalizeClass(unref(ApplicationMenu_module_default).applicationMenuToggle),
4377
+ "aria-label": "Toggle menu",
4378
+ "aria-expanded": !unref(isMenuCollapsed),
4377
4379
  onClick: _cache[0] || (_cache[0] = ($event) => isMenuCollapsed.value = !unref(isMenuCollapsed))
4378
4380
  }, {
4379
4381
  before: withCtx(() => [(openBlock(), createElementBlock("svg", {
@@ -4387,7 +4389,7 @@ var FluxApplicationMenuToggle_default = /* @__PURE__ */ defineComponent({
4387
4389
  "clip-rule": "evenodd"
4388
4390
  }, null, -1), createElementVNode("path", { d: "M16 15V3a1 1 0 0 0-1-1h-5a1 1 0 0 1 0-2h5c1.63.04 3 1.33 3 3v12a3.07 3.07 0 0 1-3 3h-5a1 1 0 1 1 0-2h5a1 1 0 0 0 1-1" }, null, -1)])], 2))]),
4389
4391
  _: 1
4390
- }, 8, ["class"]);
4392
+ }, 8, ["class", "aria-expanded"]);
4391
4393
  };
4392
4394
  }
4393
4395
  });