@bagelink/vue 0.0.1031 → 0.0.1035

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.
@@ -4,7 +4,8 @@ declare global {
4
4
  }
5
5
  }
6
6
  type __VLS_Props = {
7
- src: string;
7
+ src?: string;
8
+ pathKey?: string;
8
9
  alt?: string;
9
10
  width?: string | number;
10
11
  height?: string | number;
@@ -1 +1 @@
1
- {"version":3,"file":"Image.vue.d.ts","sourceRoot":"","sources":["../../src/components/Image.vue"],"names":[],"mappings":"AAqGA,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,MAAM;QACf,QAAQ,EAAE,GAAG,CAAA;KACb;CACD;AAED,KAAK,WAAW,GAAG;IAClB,GAAG,EAAE,MAAM,CAAA;IACX,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACvB,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACxB,OAAO,CAAC,EAAE,MAAM,CAAA;CAChB,CAAC;;AAqIF,wBAMG"}
1
+ {"version":3,"file":"Image.vue.d.ts","sourceRoot":"","sources":["../../src/components/Image.vue"],"names":[],"mappings":"AA4GA,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,MAAM;QACf,QAAQ,EAAE,GAAG,CAAA;KACb;CACD;AAED,KAAK,WAAW,GAAG;IAClB,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACvB,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACxB,OAAO,CAAC,EAAE,MAAM,CAAA;CAChB,CAAC;;AA2IF,wBAMG"}
@@ -1 +1 @@
1
- {"version":3,"file":"BglField.vue.d.ts","sourceRoot":"","sources":["../../../src/components/form/BglField.vue"],"names":[],"mappings":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,CAAC,CAAC,iBAC5F,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC;WAuNxD,mBAAmB,CAAC;;;eAnNrB,KAAK,CAAC,CAAC,CAAC;oBACH;YAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;SAAE;KAkNmF,CAAC,4BAA2B;oBAChI,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;;OAKD,OAAO,KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,CAAC,OAAO,WAAW,CAAC,CAAA;CAAE;AAjOzE,wBAiO4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import { MaterialIcons } from '../../..';
2
2
  type NumberLayout = 'default' | 'vertical' | 'horizontal';
3
3
  interface NumberInputProps {
4
- modelValue: number;
4
+ modelValue?: number;
5
5
  min?: number;
6
6
  max?: number;
7
7
  step?: number;
@@ -10,7 +10,7 @@ interface NumberInputProps {
10
10
  icon?: MaterialIcons;
11
11
  label?: string;
12
12
  placeholder?: string;
13
- disabled: boolean;
13
+ disabled?: boolean;
14
14
  required?: boolean;
15
15
  id?: string;
16
16
  helptext?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"NumberInput.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/form/inputs/NumberInput.vue"],"names":[],"mappings":"AA4KA,OAAO,EAAQ,KAAK,aAAa,EAAO,MAAM,eAAe,CAAA;AAK7D,KAAK,YAAY,GAAG,SAAS,GAAG,UAAU,GAAG,YAAY,CAAA;AAEzD,UAAU,gBAAgB;IACzB,UAAU,EAAE,MAAM,CAAA;IAClB,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,GAAG,CAAC,EAAE,MAAM,CAA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1
+ {"version":3,"file":"UploadFile.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/inputs/Upload/UploadFile.vue"],"names":[],"mappings":"AAqXA,KAAK,WAAW,GAAG;IAClB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IAC9B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACxB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,KAAK,CAAC,EAAE,UAAU,GAAG,OAAO,CAAA;IAC5B,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,OAAO,CAAC,EAAE,MAAM,CAAA;CAChB,CAAC;AAmEF,iBAAS,MAAM,SAYd;AA8CD,iBAAS,cAAc;WAyYT,OAAO,IAA6B;;;;;;;;;;;;;;;;;;;;;;YATtB,GAAG;;;;;;;;;;;;;;;;;;;;;;YACI,GAAG;;;;EAarC;AAwBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;YA7iBX,MAAM,GAAG,MAAM;WAIhB,UAAU,GAAG,OAAO;YACnB,MAAM;wFAijBd,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAgBpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -0,0 +1,86 @@
1
+ type __VLS_Props = {
2
+ label?: string;
3
+ multiple?: boolean;
4
+ modelValue?: string | string[];
5
+ width?: string;
6
+ height?: string | 'auto';
7
+ dirPath?: string;
8
+ fill?: boolean;
9
+ oval?: boolean;
10
+ theme?: 'dropzone' | 'basic';
11
+ accept?: string;
12
+ required?: boolean;
13
+ disabled?: boolean;
14
+ baseURL?: string;
15
+ };
16
+ declare function browse(): void;
17
+ declare function __VLS_template(): {
18
+ attrs: Partial<{}>;
19
+ slots: {
20
+ files?(_: {
21
+ files: import('@vue-macros/reactivity-transform/macros.js').ComputedVariable<string[]>;
22
+ fileQueue: import('@vue-macros/reactivity-transform/macros.js').ReactiveVariable<{
23
+ file: {
24
+ readonly lastModified: number;
25
+ readonly name: string;
26
+ readonly webkitRelativePath: string;
27
+ readonly size: number;
28
+ readonly type: string;
29
+ arrayBuffer: () => Promise<ArrayBuffer>;
30
+ bytes: () => Promise<Uint8Array>;
31
+ slice: (start?: number, end?: number, contentType?: string) => Blob;
32
+ stream: () => ReadableStream<Uint8Array>;
33
+ text: () => Promise<string>;
34
+ };
35
+ progress: number;
36
+ uploading?: boolean | undefined;
37
+ name?: string | undefined;
38
+ uploaded?: boolean | undefined;
39
+ }[]>;
40
+ }): any;
41
+ placeholder?(_: {
42
+ files: import('@vue-macros/reactivity-transform/macros.js').ComputedVariable<string[]>;
43
+ fileQueue: import('@vue-macros/reactivity-transform/macros.js').ReactiveVariable<{
44
+ file: {
45
+ readonly lastModified: number;
46
+ readonly name: string;
47
+ readonly webkitRelativePath: string;
48
+ readonly size: number;
49
+ readonly type: string;
50
+ arrayBuffer: () => Promise<ArrayBuffer>;
51
+ bytes: () => Promise<Uint8Array>;
52
+ slice: (start?: number, end?: number, contentType?: string) => Blob;
53
+ stream: () => ReadableStream<Uint8Array>;
54
+ text: () => Promise<string>;
55
+ };
56
+ progress: number;
57
+ uploading?: boolean | undefined;
58
+ name?: string | undefined;
59
+ uploaded?: boolean | undefined;
60
+ }[]>;
61
+ browse: typeof browse;
62
+ }): any;
63
+ };
64
+ refs: {};
65
+ rootEl: HTMLDivElement;
66
+ };
67
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
68
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
69
+ "update:modelValue": (...args: any[]) => void;
70
+ addFileStart: (...args: any[]) => void;
71
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
72
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
73
+ onAddFileStart?: ((...args: any[]) => any) | undefined;
74
+ }>, {
75
+ height: string | "auto";
76
+ theme: "dropzone" | "basic";
77
+ accept: string;
78
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
79
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
80
+ export default _default;
81
+ type __VLS_WithTemplateSlots<T, S> = T & {
82
+ new (): {
83
+ $slots: S;
84
+ };
85
+ };
86
+ //# sourceMappingURL=UploadInput.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UploadInput.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/inputs/Upload/UploadInput.vue"],"names":[],"mappings":"AAyXA,KAAK,WAAW,GAAG;IAClB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IAC9B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACxB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,KAAK,CAAC,EAAE,UAAU,GAAG,OAAO,CAAA;IAC5B,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,OAAO,CAAC,EAAE,MAAM,CAAA;CAChB,CAAC;AAmEF,iBAAS,MAAM,SAYd;AA8CD,iBAAS,cAAc;WAoaT,OAAO,IAA6B;;;;;;;;;;;;;;;;;;;;;;YATtB,GAAG;;;;;;;;;;;;;;;;;;;;;;YACI,GAAG;;;;EAarC;AAwBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;YAxkBX,MAAM,GAAG,MAAM;WAIhB,UAAU,GAAG,OAAO;YACnB,MAAM;wFA4kBd,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAgBpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -19,5 +19,5 @@ export { default as TableField } from './TableField.vue';
19
19
  export { default as TelInput } from './TelInput.vue';
20
20
  export { default as TextInput } from './TextInput.vue';
21
21
  export { default as ToggleInput } from './ToggleInput.vue';
22
- export { default as Upload } from './Upload/UploadFile.vue';
22
+ export { default as UploadInput } from './Upload/UploadInput.vue';
23
23
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/form/inputs/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AACpD,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,kBAAkB,CAAA;AACxD,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,wBAAwB,CAAA;AAC9D,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,mBAAmB,CAAA;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iBAAiB,CAAA;AACtD,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAC1D,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,0BAA0B,CAAA"}
package/dist/index.cjs CHANGED
@@ -42,6 +42,9 @@ const bagelFormUtils = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defi
42
42
  },
43
43
  get txtField() {
44
44
  return txtField;
45
+ },
46
+ get uploadField() {
47
+ return uploadField;
45
48
  }
46
49
  }, Symbol.toStringTag, { value: "Module" }));
47
50
  const _sfc_main$15 = /* @__PURE__ */ vue.defineComponent({
@@ -10385,11 +10388,13 @@ const _sfc_main$S = /* @__PURE__ */ vue.defineComponent({
10385
10388
  customAttrs.value.multiline = true;
10386
10389
  return TextInput;
10387
10390
  }
10391
+ if (props2.field.$el === "number") return NumberInput;
10388
10392
  if (props2.field.$el === "array") return FieldArray;
10389
10393
  if (props2.field.$el === "select") return SelectInput;
10390
10394
  if (props2.field.$el === "toggle") return ToggleInput;
10391
10395
  if (props2.field.$el === "check") return CheckInput;
10392
10396
  if (props2.field.$el === "richtext") return RichText;
10397
+ if (props2.field.$el === "upload") return UploadInput;
10393
10398
  if (props2.field.$el === "file") return FileUpload;
10394
10399
  if (props2.field.$el === "date") return DateInput;
10395
10400
  if (props2.field.$el === "tabs") return TabsNav;
@@ -19987,7 +19992,8 @@ const DatePicker = /* @__PURE__ */ _export_sfc(_sfc_main$J, [["render", _sfc_ren
19987
19992
  const _sfc_main$I = /* @__PURE__ */ vue.defineComponent({
19988
19993
  __name: "Image",
19989
19994
  props: {
19990
- src: { type: String, required: true },
19995
+ src: { type: String, required: false },
19996
+ pathKey: { type: String, required: false },
19991
19997
  alt: { type: String, required: false, default: "" },
19992
19998
  width: { type: [String, Number], required: false },
19993
19999
  height: { type: [String, Number], required: false },
@@ -19996,20 +20002,25 @@ const _sfc_main$I = /* @__PURE__ */ vue.defineComponent({
19996
20002
  setup(__props, { expose: __expose }) {
19997
20003
  __expose();
19998
20004
  let imageSrc = vue.ref(null);
19999
- async function loadImage(src) {
20005
+ const bagel = useBagel();
20006
+ const fileBaseUrl = vue.computed(() => (bagel.fileBaseUrl || "https://files.bagel.design").replace(/\/$/, ""));
20007
+ const pathToUrl = () => `${fileBaseUrl.value}/${__props.pathKey}`;
20008
+ async function loadImage() {
20000
20009
  var _a2;
20001
- if (!src) {
20010
+ const url = __props.src || pathToUrl();
20011
+ console.log(url);
20012
+ if (!url) {
20002
20013
  imageSrc.value = null;
20003
20014
  return;
20004
20015
  }
20005
- const ext = (_a2 = src.split(".").pop()) == null ? void 0 : _a2.toLowerCase().split("?").shift();
20016
+ const ext = (_a2 = url.split(".").pop()) == null ? void 0 : _a2.toLowerCase().split("?").shift();
20006
20017
  if (ext === "heic") {
20007
20018
  if (!("caches" in window)) {
20008
20019
  console.warn("Caching is not available. Proceeding without cache.");
20009
20020
  } else {
20010
20021
  try {
20011
20022
  const imgCache = await window.caches.open("img-cache");
20012
- const cachedResponse = await imgCache.match(src);
20023
+ const cachedResponse = await imgCache.match(url);
20013
20024
  if (cachedResponse) {
20014
20025
  imageSrc.value = URL.createObjectURL(await cachedResponse.blob());
20015
20026
  return;
@@ -20020,14 +20031,14 @@ const _sfc_main$I = /* @__PURE__ */ vue.defineComponent({
20020
20031
  }
20021
20032
  try {
20022
20033
  await appendScript("https://cdnjs.cloudflare.com/ajax/libs/heic2any/0.0.1/index.min.js");
20023
- const response = await fetch(src);
20034
+ const response = await fetch(url);
20024
20035
  const blob = await response.blob();
20025
20036
  const convertedBlob = await window.heic2any({ blob });
20026
20037
  imageSrc.value = URL.createObjectURL(convertedBlob);
20027
20038
  if ("caches" in window) {
20028
20039
  try {
20029
20040
  const imgCache = await window.caches.open("img-cache");
20030
- imgCache.put(src, new Response(convertedBlob));
20041
+ imgCache.put(url, new Response(convertedBlob));
20031
20042
  } catch (cacheError) {
20032
20043
  console.warn("Failed to cache the image:", cacheError);
20033
20044
  }
@@ -20036,15 +20047,15 @@ const _sfc_main$I = /* @__PURE__ */ vue.defineComponent({
20036
20047
  console.error("Error converting HEIC file:", error);
20037
20048
  }
20038
20049
  } else {
20039
- imageSrc.value = src;
20050
+ imageSrc.value = url;
20040
20051
  }
20041
20052
  }
20042
- vue.watch(() => __props.src, loadImage, { immediate: true });
20053
+ vue.watch(() => [__props.src, __props.pathKey], loadImage, { immediate: true });
20043
20054
  const __returned__ = { get imageSrc() {
20044
20055
  return imageSrc;
20045
20056
  }, set imageSrc(v) {
20046
20057
  imageSrc = v;
20047
- }, loadImage, get Skeleton() {
20058
+ }, bagel, fileBaseUrl, pathToUrl, loadImage, get Skeleton() {
20048
20059
  return Skeleton;
20049
20060
  }, get normalizeDimension() {
20050
20061
  return normalizeDimension;
@@ -20729,7 +20740,7 @@ const JSONInput = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["render", _sfc_rend
20729
20740
  const _sfc_main$F = /* @__PURE__ */ vue.defineComponent({
20730
20741
  __name: "NumberInput",
20731
20742
  props: {
20732
- modelValue: { type: Number, required: true },
20743
+ modelValue: { type: Number, required: false },
20733
20744
  min: { type: Number, required: false },
20734
20745
  max: { type: Number, required: false },
20735
20746
  step: { type: Number, required: false, default: 1 },
@@ -20738,7 +20749,7 @@ const _sfc_main$F = /* @__PURE__ */ vue.defineComponent({
20738
20749
  icon: { type: null, required: false },
20739
20750
  label: { type: String, required: false },
20740
20751
  placeholder: { type: String, required: false },
20741
- disabled: { type: Boolean, required: true },
20752
+ disabled: { type: Boolean, required: false },
20742
20753
  required: { type: Boolean, required: false },
20743
20754
  id: { type: String, required: false },
20744
20755
  helptext: { type: String, required: false },
@@ -20749,7 +20760,7 @@ const _sfc_main$F = /* @__PURE__ */ vue.defineComponent({
20749
20760
  setup(__props, { expose: __expose, emit: __emit }) {
20750
20761
  __expose();
20751
20762
  const emit2 = __emit;
20752
- let numberValue = vue.ref(0);
20763
+ let numberValue = vue.ref(__props.modelValue || 0);
20753
20764
  const btnLayouts = ["horizontal", "vertical"];
20754
20765
  function increment() {
20755
20766
  if (!__props.max || numberValue.value + __props.step <= __props.max) {
@@ -20779,7 +20790,7 @@ const _sfc_main$F = /* @__PURE__ */ vue.defineComponent({
20779
20790
  }, { immediate: true });
20780
20791
  vue.watch(() => __props.modelValue, (newVal) => {
20781
20792
  if (newVal !== numberValue.value) {
20782
- numberValue.value = newVal;
20793
+ numberValue.value = newVal || 0;
20783
20794
  }
20784
20795
  }, { immediate: true });
20785
20796
  const __returned__ = { emit: emit2, get numberValue() {
@@ -20831,6 +20842,7 @@ function _sfc_render$F(_ctx, _cache, $props, $setup, $data, $options) {
20831
20842
  [
20832
20843
  $props.layout && $setup.btnLayouts.includes($props.layout) ? (vue.openBlock(), vue.createBlock($setup["Btn"], {
20833
20844
  key: 0,
20845
+ flat: "",
20834
20846
  icon: "add",
20835
20847
  class: vue.normalizeClass(["radius", [{ "bgl-big-ctrl-num-btn": $props.layout === "vertical" }]]),
20836
20848
  onClick: $setup.increment
@@ -20889,6 +20901,7 @@ function _sfc_render$F(_ctx, _cache, $props, $setup, $data, $options) {
20889
20901
  }, null, 8, ["icon"])) : vue.createCommentVNode("v-if", true),
20890
20902
  $props.layout && $setup.btnLayouts.includes($props.layout) ? (vue.openBlock(), vue.createBlock($setup["Btn"], {
20891
20903
  key: 4,
20904
+ flat: "",
20892
20905
  icon: "remove",
20893
20906
  class: vue.normalizeClass(["radius", [{ "bgl-big-ctrl-num-btn": $props.layout === "vertical" }]]),
20894
20907
  onClick: $setup.decrement
@@ -31838,7 +31851,7 @@ const files = {
31838
31851
  }
31839
31852
  };
31840
31853
  const _sfc_main$q = /* @__PURE__ */ vue.defineComponent({
31841
- __name: "UploadFile",
31854
+ __name: "UploadInput",
31842
31855
  props: {
31843
31856
  label: { type: String, required: false },
31844
31857
  multiple: { type: Boolean, required: false },
@@ -31860,8 +31873,9 @@ const _sfc_main$q = /* @__PURE__ */ vue.defineComponent({
31860
31873
  const props2 = __props;
31861
31874
  const emit2 = __emit;
31862
31875
  const bagel = useBagel();
31863
- const fileBaseUrl = vue.computed(() => (props2.baseURL || bagel.fileBaseUrl || "https://files.bagel.design/").replace(/\/$/, ""));
31864
31876
  files.setBaseUrl(bagel.host);
31877
+ const fileBaseUrl = vue.computed(() => (props2.baseURL || bagel.fileBaseUrl || "https://files.bagel.design").replace(/\/$/, ""));
31878
+ const pathToUrl = (path_key) => `${fileBaseUrl.value}/${path_key}`;
31865
31879
  const fileQueue = vue.ref([]);
31866
31880
  let storageFiles = vue.ref([]);
31867
31881
  const pk = vue.ref([props2.modelValue].flat().filter(Boolean));
@@ -31874,7 +31888,6 @@ const _sfc_main$q = /* @__PURE__ */ vue.defineComponent({
31874
31888
  else emit2("update:modelValue", value[0] || void 0);
31875
31889
  }, { deep: true });
31876
31890
  const isImage = (str) => IMAGE_FORMATS_REGEXP.test(str);
31877
- const pathToUrl = (path_key) => `${fileBaseUrl.value}/${path_key}`;
31878
31891
  const fileToUrl = (file) => URL.createObjectURL(file);
31879
31892
  let isDragOver = vue.ref(false);
31880
31893
  async function removeFile(path_key) {
@@ -31901,7 +31914,7 @@ const _sfc_main$q = /* @__PURE__ */ vue.defineComponent({
31901
31914
  });
31902
31915
  pk.value.push(data2.path_key);
31903
31916
  } catch (error) {
31904
- console.error(error);
31917
+ console.error("error flushing queue", error);
31905
31918
  }
31906
31919
  }
31907
31920
  fileQueue.value.splice(0, fileQueue.value.length);
@@ -31943,11 +31956,11 @@ const _sfc_main$q = /* @__PURE__ */ vue.defineComponent({
31943
31956
  files.get(props2.dirPath).then((response) => storageFiles.value.push(...[response.data].flat())).catch(console.error);
31944
31957
  }
31945
31958
  });
31946
- const __returned__ = { props: props2, emit: emit2, bagel, fileBaseUrl, fileQueue, get storageFiles() {
31959
+ const __returned__ = { props: props2, emit: emit2, bagel, fileBaseUrl, pathToUrl, fileQueue, get storageFiles() {
31947
31960
  return storageFiles;
31948
31961
  }, set storageFiles(v) {
31949
31962
  storageFiles = v;
31950
- }, pk, pathKeys, isImage, pathToUrl, fileToUrl, get isDragOver() {
31963
+ }, pk, pathKeys, isImage, fileToUrl, get isDragOver() {
31951
31964
  return isDragOver;
31952
31965
  }, set isDragOver(v) {
31953
31966
  isDragOver = v;
@@ -32045,29 +32058,35 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
32045
32058
  class: "txt-gray txt-12 flex"
32046
32059
  }, [
32047
32060
  vue.createElementVNode("div", _hoisted_4$4, [
32048
- (vue.openBlock(true), vue.createElementBlock(
32049
- vue.Fragment,
32061
+ vue.withDirectives(vue.createVNode($setup["Btn"], {
32062
+ color: "gray",
32063
+ thin: "",
32064
+ icon: "delete",
32065
+ onClick: ($event) => $setup.removeFile(path_key)
32066
+ }, null, 8, ["onClick"]), [
32067
+ [_directive_tooltip, "Delete"]
32068
+ ]),
32069
+ vue.withDirectives(vue.createVNode(
32070
+ $setup["Btn"],
32071
+ {
32072
+ color: "gray",
32073
+ thin: "",
32074
+ icon: "autorenew",
32075
+ onClick: $setup.browse
32076
+ },
32050
32077
  null,
32051
- vue.renderList([
32052
- { tooltip: "Delete", icon: "delete", onClick: () => $setup.removeFile(path_key) },
32053
- { tooltip: "Replace", icon: "autorenew", onClick: $setup.browse },
32054
- { tooltip: "Download", icon: "download", href: $setup.pathToUrl(path_key), download: path_key.split("/").pop() }
32055
- ], (action) => {
32056
- return vue.withDirectives((vue.openBlock(), vue.createBlock($setup["Btn"], vue.mergeProps({
32057
- key: action.tooltip,
32058
- color: "gray",
32059
- thin: "",
32060
- icon: action.icon,
32061
- ref_for: true
32062
- }, action.href ? { href: action.href, download: action.download, target: "_blank" } : {}, {
32063
- onClick: vue.withModifiers(action.onClick, ["stop"])
32064
- }), null, 16, ["icon", "onClick"])), [
32065
- [_directive_tooltip, action.tooltip]
32066
- ]);
32067
- }),
32068
- 128
32069
- /* KEYED_FRAGMENT */
32070
- )),
32078
+ 512
32079
+ /* NEED_PATCH */
32080
+ ), [
32081
+ [_directive_tooltip, "Replace"]
32082
+ ]),
32083
+ vue.createVNode($setup["Btn"], {
32084
+ icon: "download",
32085
+ flat: "",
32086
+ thin: "",
32087
+ href: $setup.pathToUrl(path_key),
32088
+ download: path_key.split("/").pop()
32089
+ }, null, 8, ["href", "download"]),
32071
32090
  vue.withDirectives((vue.openBlock(), vue.createElementBlock("p", _hoisted_5$4, [
32072
32091
  vue.createTextVNode(
32073
32092
  vue.toDisplayString(path_key.split("/").pop()),
@@ -32121,10 +32140,9 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
32121
32140
  [
32122
32141
  $setup.isImage(path_key) ? (vue.openBlock(), vue.createBlock($setup["Image"], {
32123
32142
  key: 0,
32124
- class: "multi-preview",
32125
- src: $setup.pathToUrl(path_key),
32126
- alt: ""
32127
- }, null, 8, ["src"])) : (vue.openBlock(), vue.createBlock($setup["Icon"], {
32143
+ pathKey: path_key,
32144
+ class: "multi-preview"
32145
+ }, null, 8, ["pathKey"])) : (vue.openBlock(), vue.createBlock($setup["Icon"], {
32128
32146
  key: 1,
32129
32147
  icon: "description",
32130
32148
  class: "multi-preview"
@@ -32141,7 +32159,7 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
32141
32159
  flat: "",
32142
32160
  icon: "delete",
32143
32161
  color: "red",
32144
- onClick: vue.withModifiers(($event) => $setup.removeFile(path_key), ["stop"])
32162
+ onClick: ($event) => $setup.removeFile(path_key)
32145
32163
  }, null, 8, ["onClick"])
32146
32164
  ],
32147
32165
  2
@@ -32224,38 +32242,44 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
32224
32242
  },
32225
32243
  [
32226
32244
  vue.createElementVNode("div", _hoisted_12$1, [
32227
- (vue.openBlock(true), vue.createElementBlock(
32228
- vue.Fragment,
32245
+ vue.withDirectives(vue.createVNode($setup["Btn"], {
32246
+ color: "gray",
32247
+ thin: "",
32248
+ icon: "delete",
32249
+ onClick: ($event) => $setup.removeFile(path_key)
32250
+ }, null, 8, ["onClick"]), [
32251
+ [_directive_tooltip, "Delete"]
32252
+ ]),
32253
+ vue.withDirectives(vue.createVNode(
32254
+ $setup["Btn"],
32255
+ {
32256
+ color: "gray",
32257
+ thin: "",
32258
+ icon: "autorenew",
32259
+ onClick: $setup.browse
32260
+ },
32229
32261
  null,
32230
- vue.renderList([
32231
- { tooltip: "Delete", icon: "delete", onClick: () => $setup.removeFile(path_key) },
32232
- { tooltip: "Replace", icon: "autorenew", onClick: $setup.browse },
32233
- { tooltip: "Download", icon: "download", href: $setup.pathToUrl(path_key), download: path_key.split("/").pop() }
32234
- ], (action) => {
32235
- return vue.withDirectives((vue.openBlock(), vue.createBlock($setup["Btn"], vue.mergeProps({
32236
- key: action.tooltip,
32237
- color: "gray",
32238
- thin: "",
32239
- icon: action.icon,
32240
- ref_for: true
32241
- }, action.href ? { href: action.href, download: action.download, target: "_blank" } : {}, {
32242
- onClick: vue.withModifiers(action.onClick, ["stop"])
32243
- }), null, 16, ["icon", "onClick"])), [
32244
- [_directive_tooltip, action.tooltip]
32245
- ]);
32246
- }),
32247
- 128
32248
- /* KEYED_FRAGMENT */
32249
- ))
32262
+ 512
32263
+ /* NEED_PATCH */
32264
+ ), [
32265
+ [_directive_tooltip, "Replace"]
32266
+ ]),
32267
+ vue.withDirectives(vue.createVNode($setup["Btn"], {
32268
+ color: "gray",
32269
+ thin: "",
32270
+ icon: "download",
32271
+ href: $setup.pathToUrl(path_key),
32272
+ download: path_key.split("/").pop()
32273
+ }, null, 8, ["href", "download"]), [
32274
+ [_directive_tooltip, "Download"]
32275
+ ])
32250
32276
  ]),
32251
32277
  $setup.isImage(path_key) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_13$1, [
32252
- vue.withDirectives(vue.createVNode($setup["Image"], {
32278
+ vue.createVNode($setup["Image"], {
32253
32279
  class: "single-preview",
32254
- src: $setup.pathToUrl(path_key),
32280
+ pathKey: path_key,
32255
32281
  alt: ""
32256
- }, null, 8, ["src"]), [
32257
- [_directive_lightbox, { src: $setup.pathToUrl(path_key), download: true }]
32258
- ])
32282
+ }, null, 8, ["pathKey"])
32259
32283
  ])) : vue.withDirectives((vue.openBlock(), vue.createBlock(
32260
32284
  $setup["Icon"],
32261
32285
  {
@@ -32345,7 +32369,7 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
32345
32369
  ))
32346
32370
  ]);
32347
32371
  }
32348
- const UploadFile = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["render", _sfc_render$q], ["__scopeId", "data-v-9254a525"], ["__file", "/Users/natanelyoung/Projects/bagelink/packages/vue/src/components/form/inputs/Upload/UploadFile.vue"]]);
32372
+ const UploadInput = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["render", _sfc_render$q], ["__scopeId", "data-v-bec8d254"], ["__file", "/Users/natanelyoung/Projects/bagelink/packages/vue/src/components/form/inputs/Upload/UploadInput.vue"]]);
32349
32373
  const _sfc_main$p = /* @__PURE__ */ vue.defineComponent({
32350
32374
  __name: "IframeVue",
32351
32375
  props: {
@@ -36320,7 +36344,7 @@ function dateField(id, label, options) {
36320
36344
  }
36321
36345
  function numField(id, label, options) {
36322
36346
  return {
36323
- $el: "text",
36347
+ $el: "number",
36324
36348
  class: options == null ? void 0 : options.class,
36325
36349
  required: options == null ? void 0 : options.required,
36326
36350
  defaultValue: options == null ? void 0 : options.defaultValue,
@@ -36330,12 +36354,9 @@ function numField(id, label, options) {
36330
36354
  placeholder: options == null ? void 0 : options.placeholder,
36331
36355
  helptext: options == null ? void 0 : options.helptext,
36332
36356
  attrs: {
36333
- type: "number",
36334
- nativeInputAttrs: {
36335
- step: options == null ? void 0 : options.step,
36336
- min: options == null ? void 0 : options.min,
36337
- max: options == null ? void 0 : options.max
36338
- }
36357
+ step: options == null ? void 0 : options.step,
36358
+ min: options == null ? void 0 : options.min,
36359
+ max: options == null ? void 0 : options.max
36339
36360
  }
36340
36361
  };
36341
36362
  }
@@ -36346,6 +36367,14 @@ function frmRow(...children2) {
36346
36367
  children: children2
36347
36368
  };
36348
36369
  }
36370
+ function uploadField(id, label, options) {
36371
+ return {
36372
+ $el: "upload",
36373
+ id,
36374
+ label,
36375
+ attrs: options
36376
+ };
36377
+ }
36349
36378
  function bglForm(idOrField, ...schema) {
36350
36379
  if (typeof idOrField === "string") {
36351
36380
  return {
@@ -37157,7 +37186,7 @@ exports.Title = Title;
37157
37186
  exports.ToggleInput = ToggleInput;
37158
37187
  exports.ToolBar = ToolBar;
37159
37188
  exports.TopBar = TopBar;
37160
- exports.Upload = UploadFile;
37189
+ exports.UploadInput = UploadInput;
37161
37190
  exports.VIDEO_FORMATS = VIDEO_FORMATS;
37162
37191
  exports.VIDEO_FORMATS_REGEXP = VIDEO_FORMATS_REGEXP;
37163
37192
  exports.Zoomer = Zoomer;