@fkui/vue-labs 6.44.0 → 6.46.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.
@@ -1,6 +1,6 @@
1
1
  import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, guardReactiveProps, normalizeClass, normalizeProps, openBlock, ref, renderSlot, resolveDirective, toDisplayString, unref, withCtx, withDirectives } from "vue";
2
2
  import { TranslationService, ValidationService, alertScreenReader, debounce, isEmpty, isSet, stripWhitespace } from "@fkui/logic";
3
- import { EventBus, FFileItem, FFileSelector, FIcon, FTextField, TranslationMixin, useTextFieldSetup, useTranslate } from "@fkui/vue";
3
+ import { EventBus, FButton, FFileItem, FFileSelector, FIcon, FTextField, TranslationMixin, useTextFieldSetup, useTranslate } from "@fkui/vue";
4
4
  //#region \0rolldown/runtime.js
5
5
  var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
6
6
  //#endregion
@@ -2641,7 +2641,6 @@ var _hoisted_5 = {
2641
2641
  class: "sr-only"
2642
2642
  };
2643
2643
  var _hoisted_6 = { class: "filstorlek" };
2644
- var _hoisted_7 = ["aria-label"];
2645
2644
  var STATUS_HAR_INTE_VALT_FIL = 0, STATUS_HAR_VALT_FIL = 1, STATUS_MISSLYCKATS = 2;
2646
2645
  //#endregion
2647
2646
  //#region src/components/XFileDragdrop/XFileDragdrop.vue
@@ -2840,15 +2839,16 @@ var XFileDragdrop_default = /* @__PURE__ */ defineComponent({
2840
2839
  _cache[2] || (_cache[2] = createTextVNode()),
2841
2840
  createElementVNode("span", _hoisted_6, toDisplayString(filstorlek.value) + " KB", 1),
2842
2841
  _cache[3] || (_cache[3] = createTextVNode()),
2843
- createElementVNode("button", {
2844
- type: "button",
2845
- class: "button button--discrete file-item__file-remove",
2842
+ createVNode(unref(FButton), {
2843
+ "data-test": "file-item__file-remove",
2844
+ "icon-left": "trashcan",
2845
+ variant: "tertiary",
2846
2846
  "aria-label": `Ta bort ${fileName.value}`,
2847
2847
  onClick: taBortFil
2848
- }, [createVNode(unref(FIcon), {
2849
- name: "trashcan",
2850
- class: "button__icon"
2851
- }), _cache[1] || (_cache[1] = createTextVNode("\n Ta bort\n ", -1))], 8, _hoisted_7)
2848
+ }, {
2849
+ default: withCtx(() => [..._cache[1] || (_cache[1] = [createTextVNode("\n Ta bort\n ", -1)])]),
2850
+ _: 1
2851
+ }, 8, ["aria-label"])
2852
2852
  ])]),
2853
2853
  _: 1
2854
2854
  }, 8, [