@fkui/vue-labs 6.32.0 → 6.32.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.
@@ -1942,7 +1942,13 @@ function getVerticalNavIndex(table, from, to) {
1942
1942
  return target;
1943
1943
  }
1944
1944
  function navigate(e, table, from, last) {
1945
- if (from.row === void 0 || from.cell === void 0 || last.row === void 0 || last.cell === void 0) {
1945
+ if (
1946
+ /* eslint-disable-next-line @typescript-eslint/no-unnecessary-condition -- technical debt */
1947
+ from.row === void 0 || /* eslint-disable-next-line @typescript-eslint/no-unnecessary-condition -- technical debt */
1948
+ from.cell === void 0 || /* eslint-disable-next-line @typescript-eslint/no-unnecessary-condition -- technical debt */
1949
+ last.row === void 0 || /* eslint-disable-next-line @typescript-eslint/no-unnecessary-condition -- technical debt */
1950
+ last.cell === void 0
1951
+ ) {
1946
1952
  return;
1947
1953
  }
1948
1954
  if (!navKeys.includes(e.code)) {
@@ -2159,7 +2165,7 @@ const _hoisted_1$c = {
2159
2165
  key: 0,
2160
2166
  class: "table-ng__cell table-ng__cell--expand"
2161
2167
  };
2162
- const _hoisted_2$8 = ["aria-label", "aria-expanded"];
2168
+ const _hoisted_2$9 = ["aria-label", "aria-expanded"];
2163
2169
  const _hoisted_3$6 = {
2164
2170
  key: 1,
2165
2171
  ref: "expandable",
@@ -2206,7 +2212,7 @@ const _sfc_main$e = /* @__PURE__ */ vue$1.defineComponent({
2206
2212
  }, [vue$1.createVNode(vue$1.unref(vue.FIcon), {
2207
2213
  class: "button__icon",
2208
2214
  name: toggleIcon.value
2209
- }, null, 8, ["name"])], 8, _hoisted_2$8)])) : (vue$1.openBlock(), vue$1.createElementBlock("td", _hoisted_3$6, null, 512));
2215
+ }, null, 8, ["name"])], 8, _hoisted_2$9)])) : (vue$1.openBlock(), vue$1.createElementBlock("td", _hoisted_3$6, null, 512));
2210
2216
  };
2211
2217
  }
2212
2218
  });
@@ -2512,7 +2518,8 @@ const inputFieldConfig = {
2512
2518
  attributes: () => []
2513
2519
  }
2514
2520
  };
2515
- const _hoisted_1$a = {
2521
+ const _hoisted_1$a = ["aria-sort"];
2522
+ const _hoisted_2$8 = {
2516
2523
  key: 0,
2517
2524
  class: "table-ng__column__description"
2518
2525
  };
@@ -2553,6 +2560,15 @@ const _sfc_main$c = /* @__PURE__ */ vue$1.defineComponent({
2553
2560
  return "";
2554
2561
  }
2555
2562
  });
2563
+ const sortValue = vue$1.computed(() => {
2564
+ switch (__props.sortOrder) {
2565
+ case "ascending":
2566
+ case "descending":
2567
+ return __props.sortOrder;
2568
+ default:
2569
+ return void 0;
2570
+ }
2571
+ });
2556
2572
  function isAlignableColumn(column) {
2557
2573
  if (column.type === void 0) {
2558
2574
  return false;
@@ -2579,6 +2595,7 @@ const _sfc_main$c = /* @__PURE__ */ vue$1.defineComponent({
2579
2595
  return (_ctx, _cache) => {
2580
2596
  return vue$1.openBlock(), vue$1.createElementBlock("th", {
2581
2597
  ref: "th",
2598
+ "aria-sort": sortValue.value,
2582
2599
  class: vue$1.normalizeClass(columnClasses.value),
2583
2600
  tabindex: "-1",
2584
2601
  onKeydown: onKeydownCell,
@@ -2605,7 +2622,7 @@ const _sfc_main$c = /* @__PURE__ */ vue$1.defineComponent({
2605
2622
  _: 1
2606
2623
  })) : vue$1.createCommentVNode("", true)]),
2607
2624
  _: 1
2608
- }, 8, ["float"]), _cache[1] || (_cache[1] = vue$1.createTextVNode()), __props.column.description.value ? (vue$1.openBlock(), vue$1.createElementBlock("div", _hoisted_1$a, vue$1.toDisplayString(__props.column.description), 1)) : vue$1.createCommentVNode("", true)], 34);
2625
+ }, 8, ["float"]), _cache[1] || (_cache[1] = vue$1.createTextVNode()), __props.column.description.value ? (vue$1.openBlock(), vue$1.createElementBlock("div", _hoisted_2$8, vue$1.toDisplayString(__props.column.description), 1)) : vue$1.createCommentVNode("", true)], 42, _hoisted_1$a);
2609
2626
  };
2610
2627
  }
2611
2628
  });
@@ -6055,7 +6072,9 @@ const _sfc_main$1 = /* @__PURE__ */ vue$1.defineComponent({
6055
6072
  const reduced = new Uint8Array(buffer).reduce((data, byte) => data + String.fromCharCode(byte), "");
6056
6073
  uppladdatDokument.value = {
6057
6074
  dokument: {
6075
+ /* eslint-disable-next-line @typescript-eslint/no-unsafe-assignment -- technical debt */
6058
6076
  filnamn: value.name,
6077
+ /* eslint-disable-next-line @typescript-eslint/no-unsafe-assignment -- technical debt */
6059
6078
  mime: value.type,
6060
6079
  data: btoa(reduced),
6061
6080
  fel: ""
@@ -6349,7 +6368,8 @@ class HoursMinutesValidatorUtils {
6349
6368
  return compare(valueAsNumber, limitAsNumber);
6350
6369
  }
6351
6370
  static getParserFromConfig(config) {
6352
- if (!logic.isSet(config) || !Array.isArray(config.parser) || !logic.isSet(config.parser?.[0]) || typeof config.parser[0] !== "function") {
6371
+ if (!logic.isSet(config) || !Array.isArray(config.parser) || /* eslint-disable-next-line @typescript-eslint/no-unnecessary-condition -- technical debt */
6372
+ !logic.isSet(config.parser?.[0]) || typeof config.parser[0] !== "function") {
6353
6373
  return parseTimeToNumber;
6354
6374
  }
6355
6375
  return config.parser[0];