@flux-ui/application 3.2.0-beta.7 → 3.2.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 CHANGED
@@ -2,7 +2,7 @@ import { Fragment, TransitionGroup, computed, createBlock, createCommentVNode, c
2
2
  import { FluxFadeTransition, FluxFlyout, FluxIcon, FluxMenu, FluxMenuGroup, FluxMenuItem, FluxPane, FluxRouteTransition, FluxSecondaryButton, FluxSpacer, FluxTabBar, useBreakpoints } from "@flux-ui/components";
3
3
  import { DateTime } from "luxon";
4
4
  import { RouterView, matchedRouteKey, useRoute, viewDepthKey } from "vue-router";
5
- //#region ../../node_modules/.bun/@basmilius+utils@3.45.0+f2ed1ec6a4c7f7fd/node_modules/@basmilius/utils/dist/index.mjs
5
+ //#region ../../node_modules/.bun/@basmilius+utils@3.50.0+f2ed1ec6a4c7f7fd/node_modules/@basmilius/utils/dist/index.mjs
6
6
  function x(e) {
7
7
  let t = {};
8
8
  do {
@@ -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) => {
@@ -983,7 +983,7 @@ var convertLchToLab = ({ l, c, h, alpha }, mode = "lab") => {
983
983
  };
984
984
  //#endregion
985
985
  //#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/xyz65/constants.js
986
- var k$2 = Math.pow(29, 3) / Math.pow(3, 3);
986
+ var k$3 = Math.pow(29, 3) / Math.pow(3, 3);
987
987
  var e$2 = Math.pow(6, 3) / Math.pow(29, 3);
988
988
  //#endregion
989
989
  //#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/constants.js
@@ -1001,7 +1001,7 @@ Math.pow(29, 3) / Math.pow(3, 3);
1001
1001
  Math.pow(6, 3) / Math.pow(29, 3);
1002
1002
  //#endregion
1003
1003
  //#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/lab65/convertLab65ToXyz65.js
1004
- var fn$1 = (v) => Math.pow(v, 3) > e$2 ? Math.pow(v, 3) : (116 * v - 16) / k$2;
1004
+ var fn$1 = (v) => Math.pow(v, 3) > e$2 ? Math.pow(v, 3) : (116 * v - 16) / k$3;
1005
1005
  var convertLab65ToXyz65 = ({ l, a, b, alpha }) => {
1006
1006
  if (l === void 0) l = 0;
1007
1007
  if (a === void 0) a = 0;
@@ -1023,7 +1023,7 @@ var convertLab65ToXyz65 = ({ l, a, b, alpha }) => {
1023
1023
  var convertLab65ToRgb = (lab) => convertXyz65ToRgb(convertLab65ToXyz65(lab));
1024
1024
  //#endregion
1025
1025
  //#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/lab65/convertXyz65ToLab65.js
1026
- var f$1 = (value) => value > e$2 ? Math.cbrt(value) : (k$2 * value + 16) / 116;
1026
+ var f$1 = (value) => value > e$2 ? Math.cbrt(value) : (k$3 * value + 16) / 116;
1027
1027
  var convertXyz65ToLab65 = ({ x, y, z, alpha }) => {
1028
1028
  if (x === void 0) x = 0;
1029
1029
  if (y === void 0) y = 0;
@@ -1885,11 +1885,11 @@ var definition$16 = {
1885
1885
  };
1886
1886
  //#endregion
1887
1887
  //#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/xyz50/constants.js
1888
- var k = Math.pow(29, 3) / Math.pow(3, 3);
1888
+ var k$1 = Math.pow(29, 3) / Math.pow(3, 3);
1889
1889
  var e = Math.pow(6, 3) / Math.pow(29, 3);
1890
1890
  //#endregion
1891
1891
  //#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/lab/convertLabToXyz50.js
1892
- var fn = (v) => Math.pow(v, 3) > e ? Math.pow(v, 3) : (116 * v - 16) / k;
1892
+ var fn = (v) => Math.pow(v, 3) > e ? Math.pow(v, 3) : (116 * v - 16) / k$1;
1893
1893
  var convertLabToXyz50 = ({ l, a, b, alpha }) => {
1894
1894
  if (l === void 0) l = 0;
1895
1895
  if (a === void 0) a = 0;
@@ -1938,7 +1938,7 @@ var convertRgbToXyz50 = (rgb) => {
1938
1938
  };
1939
1939
  //#endregion
1940
1940
  //#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/lab/convertXyz50ToLab.js
1941
- var f = (value) => value > e ? Math.cbrt(value) : (k * value + 16) / 116;
1941
+ var f = (value) => value > e ? Math.cbrt(value) : (k$1 * value + 16) / 116;
1942
1942
  var convertXyz50ToLab = ({ x, y, z, alpha }) => {
1943
1943
  if (x === void 0) x = 0;
1944
1944
  if (y === void 0) y = 0;
@@ -2144,7 +2144,7 @@ var u_fn$1 = (x, y, z) => 4 * x / (x + 15 * y + 3 * z);
2144
2144
  var v_fn$1 = (x, y, z) => 9 * y / (x + 15 * y + 3 * z);
2145
2145
  var un$1 = u_fn$1(D50.X, D50.Y, D50.Z);
2146
2146
  var vn$1 = v_fn$1(D50.X, D50.Y, D50.Z);
2147
- var l_fn = (value) => value <= e ? k * value : 116 * Math.cbrt(value) - 16;
2147
+ var l_fn = (value) => value <= e ? k$1 * value : 116 * Math.cbrt(value) - 16;
2148
2148
  var convertXyz50ToLuv = ({ x, y, z, alpha }) => {
2149
2149
  if (x === void 0) x = 0;
2150
2150
  if (y === void 0) y = 0;
@@ -2184,7 +2184,7 @@ var convertLuvToXyz50 = ({ l, u, v, alpha }) => {
2184
2184
  if (v === void 0) v = 0;
2185
2185
  let up = u / (13 * l) + un;
2186
2186
  let vp = v / (13 * l) + vn;
2187
- let y = D50.Y * (l <= 8 ? l / k : Math.pow((l + 16) / 116, 3));
2187
+ let y = D50.Y * (l <= 8 ? l / k$1 : Math.pow((l + 16) / 116, 3));
2188
2188
  let res = {
2189
2189
  mode: "xyz50",
2190
2190
  x: y * (9 * up) / (4 * vp),
@@ -3150,7 +3150,7 @@ useMode(definition$2);
3150
3150
  useMode(definition$1);
3151
3151
  useMode(definition);
3152
3152
  //#endregion
3153
- //#region ../../node_modules/.bun/@basmilius+http-client@3.45.0+66382d5e2ea3742d/node_modules/@basmilius/http-client/dist/index.mjs
3153
+ //#region ../../node_modules/.bun/@basmilius+http-client@3.50.0+2111c3e180df0f85/node_modules/@basmilius/http-client/dist/index.mjs
3154
3154
  function adapter_default(Parent) {
3155
3155
  return class extends Parent {
3156
3156
  constructor(...args) {
@@ -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
  });