@bagelink/vue 0.0.258 → 0.0.262

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 +1 @@
1
- {"version":3,"file":"Modal.vue.d.ts","sourceRoot":"","sources":["../../src/components/Modal.vue"],"names":[],"mappings":"AAiBA;AAGA,OAAO,EACN,KAAK,UAAU,EACf,MAAM,eAAe,CAAC;AACvB,OAAO,qBAAqB,CAAC;;;;;;;;;;;;;;;;;;;;;;AAuN7B,wBAAwG;AACxG,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,KAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC;AAC9M,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
1
+ {"version":3,"file":"Modal.vue.d.ts","sourceRoot":"","sources":["../../src/components/Modal.vue"],"names":[],"mappings":"AAwCA;AAGA,OAAO,EACN,KAAK,UAAU,EACf,MAAM,eAAe,CAAC;AACvB,OAAO,qBAAqB,CAAC;;;;;;;;;;;;;;;;;;;;;;AAuN7B,wBAAwG;AACxG,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,KAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC;AAC9M,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
@@ -26,6 +26,9 @@ declare const _default: import("vue").DefineComponent<{
26
26
  'onUpdate:isModalVisible': {
27
27
  type: import("vue").PropType<(visible: boolean) => void>;
28
28
  };
29
+ onError: {
30
+ type: import("vue").PropType<(err: any) => void>;
31
+ };
29
32
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
30
33
  modelValue: import("vue").PropType<Record<string, any>>;
31
34
  side: {
@@ -53,6 +56,9 @@ declare const _default: import("vue").DefineComponent<{
53
56
  'onUpdate:isModalVisible': {
54
57
  type: import("vue").PropType<(visible: boolean) => void>;
55
58
  };
59
+ onError: {
60
+ type: import("vue").PropType<(err: any) => void>;
61
+ };
56
62
  }>>, {}, {}>;
57
63
  export default _default;
58
64
  //# sourceMappingURL=ModalForm.vue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ModalForm.vue.d.ts","sourceRoot":"","sources":["../../src/components/ModalForm.vue"],"names":[],"mappings":"AAaA;AAEA,OAAO,EAGK,KAAK,cAAc,EAAE,KAAK,UAAU,EAC/C,MAAM,eAAe,CAAC;;;;;;;;;;;;;;;;;;;;gDA4OC,GAAG,KAAK,QAAQ,IAAI,CAAC;;;0CAE3B,MAAM,KAAK,IAAI;;;+CAEO,OAAO,KAAK,IAAI;;;;;;;;;;;;;;;;;;;;;gDAJhC,GAAG,KAAK,QAAQ,IAAI,CAAC;;;0CAE3B,MAAM,KAAK,IAAI;;;+CAEO,OAAO,KAAK,IAAI;;;AAjBxD,wBAqBG"}
1
+ {"version":3,"file":"ModalForm.vue.d.ts","sourceRoot":"","sources":["../../src/components/ModalForm.vue"],"names":[],"mappings":"AAyCA;AAEA,OAAO,EACiB,KAAK,cAAc,EAAE,KAAK,UAAU,EAC3D,MAAM,eAAe,CAAC;;;;;;;;;;;;;;;;;;;;gDAmPC,GAAG,KAAK,QAAQ,IAAI,CAAC;;;0CAE3B,MAAM,KAAK,IAAI;;;+CAEO,OAAO,KAAK,IAAI;;;2CAEtC,GAAG,KAAK,IAAI;;;;;;;;;;;;;;;;;;;;;gDANN,GAAG,KAAK,QAAQ,IAAI,CAAC;;;0CAE3B,MAAM,KAAK,IAAI;;;+CAEO,OAAO,KAAK,IAAI;;;2CAEtC,GAAG,KAAK,IAAI;;;AAnB9B,wBAuBG"}
@@ -1 +1 @@
1
- {"version":3,"file":"TableSchema.vue.d.ts","sourceRoot":"","sources":["../../src/components/TableSchema.vue"],"names":[],"mappings":"AA2BA;AAGA,OAAO,EACN,KAAK,cAAc,EAGnB,MAAM,eAAe,CAAC;;;;;;;;;;;;;;;;;AAmTvB,wBAAwG;AACxG,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,KAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC;AAC9M,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
1
+ {"version":3,"file":"TableSchema.vue.d.ts","sourceRoot":"","sources":["../../src/components/TableSchema.vue"],"names":[],"mappings":"AAmCA;AAGA,OAAO,EACN,KAAK,cAAc,EAGnB,MAAM,eAAe,CAAC;;;;;;;;;;;;;;;;;AAmTvB,wBAAwG;AACxG,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,KAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC;AAC9M,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
@@ -11,6 +11,9 @@ declare const _default: import("vue").DefineComponent<{
11
11
  files: {
12
12
  type: import("vue").PropType<StorageFile | StorageFile[]>;
13
13
  };
14
+ deleteEndpoint: {
15
+ type: import("vue").PropType<string>;
16
+ };
14
17
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
15
18
  modelValue: import("vue").PropType<string | string[]>;
16
19
  label: {
@@ -23,6 +26,9 @@ declare const _default: import("vue").DefineComponent<{
23
26
  files: {
24
27
  type: import("vue").PropType<StorageFile | StorageFile[]>;
25
28
  };
29
+ deleteEndpoint: {
30
+ type: import("vue").PropType<string>;
31
+ };
26
32
  }>>, {}, {}>;
27
33
  export default _default;
28
34
  //# sourceMappingURL=FileUpload.vue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"FileUpload.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/form/inputs/FileUpload.vue"],"names":[],"mappings":"AA8FA;AAGA,OAAO,EACD,KAAK,WAAW,EACrB,MAAM,eAAe,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;AAuYvB,wBASG"}
1
+ {"version":3,"file":"FileUpload.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/form/inputs/FileUpload.vue"],"names":[],"mappings":"AA8FA;AAGA,OAAO,EACD,KAAK,WAAW,EACrB,MAAM,eAAe,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4ZvB,wBAcG"}
@@ -11,6 +11,7 @@ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimePr
11
11
  placeholder?: string | undefined;
12
12
  defaultValue?: string | number | undefined;
13
13
  options: RawOption[] | string;
14
+ extraProps?: Record<string, any> | undefined;
14
15
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
15
16
  "update:modelValue": (...args: any[]) => void;
16
17
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
@@ -21,6 +22,7 @@ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimePr
21
22
  placeholder?: string | undefined;
22
23
  defaultValue?: string | number | undefined;
23
24
  options: RawOption[] | string;
25
+ extraProps?: Record<string, any> | undefined;
24
26
  }>>> & {
25
27
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
26
28
  }, {}, {}>;
@@ -1 +1 @@
1
- {"version":3,"file":"SelectInput.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/form/inputs/SelectInput.vue"],"names":[],"mappings":"AAWA;AAOA,KAAK,MAAM,GAAG;IACb,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;CACvB,CAAC;AACF,KAAK,SAAS,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;;;;;;;;aAuIhC,SAAS,EAAE,GAAG,MAAM;;;;;;;;;;aAApB,SAAS,EAAE,GAAG,MAAM;;;;AAZ9B,wBAeG;AACH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,KAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC"}
1
+ {"version":3,"file":"SelectInput.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/form/inputs/SelectInput.vue"],"names":[],"mappings":"AA4BA;AAOA,KAAK,MAAM,GAAG;IACb,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;CACvB,CAAC;AACF,KAAK,SAAS,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;;;;;;;;aAmJhC,SAAS,EAAE,GAAG,MAAM;;;;;;;;;;;aAApB,SAAS,EAAE,GAAG,MAAM;;;;;AAZ9B,wBAgBG;AACH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,KAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC"}
@@ -7,6 +7,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
7
7
  small?: boolean | undefined;
8
8
  nativeInputAttrs?: Record<string, any> | undefined;
9
9
  showCharacterLimit?: boolean | undefined;
10
+ required?: boolean | undefined;
10
11
  }>, {
11
12
  description: string;
12
13
  editMode: boolean;
@@ -23,6 +24,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
23
24
  small?: boolean | undefined;
24
25
  nativeInputAttrs?: Record<string, any> | undefined;
25
26
  showCharacterLimit?: boolean | undefined;
27
+ required?: boolean | undefined;
26
28
  }>, {
27
29
  description: string;
28
30
  editMode: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"TextArea.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/form/inputs/TextArea.vue"],"names":[],"mappings":"AAwBA;;;;gBAoKc,GAAG;;;;;;;;;;;;;;;;gBAAH,GAAG;;;;;;;;;;;;;;iBAF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AAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC;AAC9M,KAAK,kBAAkB,CAAC,CAAC,EAAE,CAAC,IAAI;KAE1B,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;QACxE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;KACb,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CACT,CAAC;AACN,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
package/dist/index.cjs CHANGED
@@ -2185,6 +2185,7 @@ class BagelAuth {
2185
2185
  class Bagel {
2186
2186
  constructor({ host, onError }) {
2187
2187
  __publicField(this, "host");
2188
+ __publicField(this, "axiosInstance", axios);
2188
2189
  __publicField(this, "onError");
2189
2190
  __publicField(this, "read_table", null);
2190
2191
  __publicField(this, "auth", new BagelAuth(this));
@@ -14620,7 +14621,7 @@ const _sfc_main$B = /* @__PURE__ */ vue.defineComponent({
14620
14621
  });
14621
14622
  const _hoisted_1$F = { class: "full-nav" };
14622
14623
  const _hoisted_2$z = { class: "nav-scroll" };
14623
- const _hoisted_3$p = { class: "nav-links-wrapper" };
14624
+ const _hoisted_3$q = { class: "nav-links-wrapper" };
14624
14625
  const _hoisted_4$j = { class: "tooltip" };
14625
14626
  const _hoisted_5$g = { class: "bot-buttons-wrapper" };
14626
14627
  const _hoisted_6$b = { class: "tooltip" };
@@ -14655,7 +14656,7 @@ const _sfc_main$A = /* @__PURE__ */ vue.defineComponent({
14655
14656
  ], 32),
14656
14657
  vue.createElementVNode("div", _hoisted_1$F, [
14657
14658
  vue.createElementVNode("div", _hoisted_2$z, [
14658
- vue.createElementVNode("div", _hoisted_3$p, [
14659
+ vue.createElementVNode("div", _hoisted_3$q, [
14659
14660
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.links, (link) => {
14660
14661
  return vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(link.to ? "router-link" : "div"), {
14661
14662
  class: "nav-button",
@@ -14910,13 +14911,15 @@ const _sfc_main$x = /* @__PURE__ */ vue.defineComponent({
14910
14911
  schema: { type: Function },
14911
14912
  onSubmit: { type: Function },
14912
14913
  onDelete: { type: Function },
14913
- "onUpdate:isModalVisible": { type: Function }
14914
+ "onUpdate:isModalVisible": { type: Function },
14915
+ onError: { type: Function }
14914
14916
  }, {
14915
14917
  "modelValue": { default: {} },
14916
14918
  "modelModifiers": {}
14917
14919
  }),
14918
14920
  emits: ["update:modelValue"],
14919
14921
  setup(__props) {
14922
+ const bagel = useBagel();
14920
14923
  const props2 = __props;
14921
14924
  const modal = vue.ref();
14922
14925
  const computedFormSchema = vue.computed(() => {
@@ -14931,14 +14934,17 @@ const _sfc_main$x = /* @__PURE__ */ vue.defineComponent({
14931
14934
  return (_a2 = modal.value) == null ? void 0 : _a2.closeModal();
14932
14935
  };
14933
14936
  const runSubmit = async () => {
14934
- var _a2, _b, _c;
14937
+ var _a2, _b, _c, _d;
14935
14938
  if (((_b = (_a2 = form.value) == null ? void 0 : _a2.validateForm) == null ? void 0 : _b.call(_a2)) === false)
14936
14939
  return;
14937
14940
  try {
14938
14941
  await ((_c = props2.onSubmit) == null ? void 0 : _c.call(props2, formData.value));
14939
14942
  closeModal();
14940
14943
  } catch (err) {
14941
- console.error(err);
14944
+ if (props2.onError)
14945
+ props2.onError(err);
14946
+ else
14947
+ (_d = bagel == null ? void 0 : bagel.onError) == null ? void 0 : _d.call(bagel, err);
14942
14948
  }
14943
14949
  };
14944
14950
  const runDelete = () => {
@@ -14997,7 +15003,7 @@ const _sfc_main$x = /* @__PURE__ */ vue.defineComponent({
14997
15003
  };
14998
15004
  }
14999
15005
  });
15000
- const ModalForm = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["__scopeId", "data-v-753a1016"]]);
15006
+ const ModalForm = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["__scopeId", "data-v-82698669"]]);
15001
15007
  const _hoisted_1$C = { class: "accordion-item" };
15002
15008
  const _hoisted_2$w = {
15003
15009
  key: 0,
@@ -15042,7 +15048,7 @@ const _sfc_main$w = /* @__PURE__ */ vue.defineComponent({
15042
15048
  const AccordionItem = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["__scopeId", "data-v-172f43f1"]]);
15043
15049
  const _hoisted_1$B = { class: "card list-view grid thin" };
15044
15050
  const _hoisted_2$v = { class: "list-header flex gap-3 align-items-top" };
15045
- const _hoisted_3$o = {
15051
+ const _hoisted_3$p = {
15046
15052
  key: 0,
15047
15053
  class: "bagel-input search-wrap"
15048
15054
  };
@@ -15066,7 +15072,7 @@ const _sfc_main$v = /* @__PURE__ */ vue.defineComponent({
15066
15072
  return (_ctx, _cache) => {
15067
15073
  return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$B, [
15068
15074
  vue.createElementVNode("div", _hoisted_2$v, [
15069
- _ctx.enableSearch ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$o, [
15075
+ _ctx.enableSearch ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$p, [
15070
15076
  vue.withDirectives(vue.createElementVNode("input", {
15071
15077
  placeholder: _ctx.searchPlaceholder,
15072
15078
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => searchTerm.value = $event),
@@ -15135,7 +15141,7 @@ const _sfc_main$u = /* @__PURE__ */ vue.defineComponent({
15135
15141
  });
15136
15142
  const _hoisted_1$z = { class: "card tabs-top" };
15137
15143
  const _hoisted_2$t = { class: "tabs grid auto-flow-columns fit-content" };
15138
- const _hoisted_3$n = ["onClick"];
15144
+ const _hoisted_3$o = ["onClick"];
15139
15145
  const _sfc_main$t = /* @__PURE__ */ vue.defineComponent({
15140
15146
  __name: "TabbedLayout",
15141
15147
  props: {
@@ -15182,7 +15188,7 @@ const _sfc_main$t = /* @__PURE__ */ vue.defineComponent({
15182
15188
  }, "tab"]),
15183
15189
  key: tab,
15184
15190
  onClick: ($event) => changeTab(tab)
15185
- }, vue.toDisplayString(tab), 11, _hoisted_3$n);
15191
+ }, vue.toDisplayString(tab), 11, _hoisted_3$o);
15186
15192
  }), 128))
15187
15193
  ])
15188
15194
  ]),
@@ -15201,7 +15207,7 @@ const _sfc_main$t = /* @__PURE__ */ vue.defineComponent({
15201
15207
  const TabbedLayout = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-09fce741"]]);
15202
15208
  const _hoisted_1$y = { class: "comments-wrap" };
15203
15209
  const _hoisted_2$s = { class: "comment-list" };
15204
- const _hoisted_3$m = { class: "comment-top" };
15210
+ const _hoisted_3$n = { class: "comment-top" };
15205
15211
  const _hoisted_4$h = { class: "comment-owner" };
15206
15212
  const _hoisted_5$e = { class: "comment-time" };
15207
15213
  const _hoisted_6$a = { class: "comment-actions" };
@@ -15261,7 +15267,7 @@ const _sfc_main$s = /* @__PURE__ */ vue.defineComponent({
15261
15267
  }, "comment"]),
15262
15268
  key: comment.id
15263
15269
  }, [
15264
- vue.createElementVNode("div", _hoisted_3$m, [
15270
+ vue.createElementVNode("div", _hoisted_3$n, [
15265
15271
  vue.createElementVNode("div", _hoisted_4$h, vue.toDisplayString(comment.sender.first_name) + " " + vue.toDisplayString(comment.sender.last_name), 1),
15266
15272
  vue.createElementVNode("div", _hoisted_5$e, vue.toDisplayString(comment.updated_at.split("T")[0]), 1),
15267
15273
  vue.createElementVNode("div", _hoisted_6$a, [
@@ -15343,7 +15349,7 @@ const _sfc_main$r = /* @__PURE__ */ vue.defineComponent({
15343
15349
  });
15344
15350
  const _hoisted_1$w = { class: "table-list-wrap h-100" };
15345
15351
  const _hoisted_2$q = { class: "infinite-wrapper" };
15346
- const _hoisted_3$l = { class: "row first-row" };
15352
+ const _hoisted_3$m = { class: "row first-row" };
15347
15353
  const _hoisted_4$g = ["onClick"];
15348
15354
  const _hoisted_5$d = { class: "flex" };
15349
15355
  const _hoisted_6$9 = ["onClick"];
@@ -15384,7 +15390,7 @@ const _sfc_main$q = /* @__PURE__ */ vue.defineComponent({
15384
15390
  return (_ctx, _cache) => {
15385
15391
  return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$w, [
15386
15392
  vue.createElementVNode("table", _hoisted_2$q, [
15387
- vue.createElementVNode("thead", _hoisted_3$l, [
15393
+ vue.createElementVNode("thead", _hoisted_3$m, [
15388
15394
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(computedSchema.value, (field) => {
15389
15395
  return vue.openBlock(), vue.createElementBlock("th", {
15390
15396
  class: "col",
@@ -15440,7 +15446,7 @@ const _sfc_main$q = /* @__PURE__ */ vue.defineComponent({
15440
15446
  };
15441
15447
  }
15442
15448
  });
15443
- const TableSchema = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__scopeId", "data-v-555ad739"]]);
15449
+ const TableSchema = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__scopeId", "data-v-2137a7a8"]]);
15444
15450
  const _sfc_main$p = {};
15445
15451
  const _hoisted_1$v = { class: "flex space-between" };
15446
15452
  function _sfc_render$1(_ctx, _cache) {
@@ -15480,7 +15486,7 @@ const _hoisted_2$p = {
15480
15486
  key: 0,
15481
15487
  class: "data-row"
15482
15488
  };
15483
- const _hoisted_3$k = { class: "key" };
15489
+ const _hoisted_3$l = { class: "key" };
15484
15490
  const _hoisted_4$f = { key: 1 };
15485
15491
  const _hoisted_5$c = { class: "key" };
15486
15492
  const _hoisted_6$8 = { class: "vlue" };
@@ -15508,7 +15514,7 @@ const _sfc_main$n = /* @__PURE__ */ vue.defineComponent({
15508
15514
  key: field.id
15509
15515
  }, [
15510
15516
  vue.unref(iffer)(field, itemData.value) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$p, [
15511
- vue.createElementVNode("div", _hoisted_3$k, vue.toDisplayString((field == null ? void 0 : field.label) || vue.unref(keyToLabel)(field.id)), 1),
15517
+ vue.createElementVNode("div", _hoisted_3$l, vue.toDisplayString((field == null ? void 0 : field.label) || vue.unref(keyToLabel)(field.id)), 1),
15512
15518
  vue.createVNode(vue.unref(_sfc_main$h), {
15513
15519
  field,
15514
15520
  modelValue: itemData.value,
@@ -15614,7 +15620,7 @@ const _hoisted_2$o = {
15614
15620
  key: 0,
15615
15621
  class: "group-wrap"
15616
15622
  };
15617
- const _hoisted_3$j = { class: "group-title" };
15623
+ const _hoisted_3$k = { class: "group-title" };
15618
15624
  const _hoisted_4$e = {
15619
15625
  key: 1,
15620
15626
  class: "bar-wrap"
@@ -15682,7 +15688,7 @@ const _sfc_main$j = /* @__PURE__ */ vue.defineComponent({
15682
15688
  key: i2
15683
15689
  }, [
15684
15690
  item.group ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$o, [
15685
- vue.createElementVNode("p", _hoisted_3$j, vue.toDisplayString(item.group), 1),
15691
+ vue.createElementVNode("p", _hoisted_3$k, vue.toDisplayString(item.group), 1),
15686
15692
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList((item == null ? void 0 : item.data) || [], (nested, i22) => {
15687
15693
  return vue.openBlock(), vue.createElementBlock("div", {
15688
15694
  key: i22,
@@ -15920,7 +15926,7 @@ const _hoisted_2$n = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ vue.cr
15920
15926
  }, [
15921
15927
  /* @__PURE__ */ vue.createElementVNode("path", { d: "M382-240 154-468l57-57 171 171 367-367 57 57-424 424Z" })
15922
15928
  ], -1));
15923
- const _hoisted_3$i = [
15929
+ const _hoisted_3$j = [
15924
15930
  _hoisted_2$n
15925
15931
  ];
15926
15932
  const _hoisted_4$d = ["id"];
@@ -15946,7 +15952,7 @@ const _sfc_main$g = /* @__PURE__ */ vue.defineComponent({
15946
15952
  vue.createElementVNode("div", {
15947
15953
  class: vue.normalizeClass(["check-square", { checked: checked.value }]),
15948
15954
  onClick: _cache[0] || (_cache[0] = ($event) => checked.value = !checked.value)
15949
- }, _hoisted_3$i, 2),
15955
+ }, _hoisted_3$j, 2),
15950
15956
  vue.createElementVNode("label", null, [
15951
15957
  vue.withDirectives(vue.createElementVNode("input", {
15952
15958
  id: _ctx.id,
@@ -24623,7 +24629,7 @@ const _sfc_main$f = /* @__PURE__ */ vue.defineComponent({
24623
24629
  });
24624
24630
  const _hoisted_1$p = ["title"];
24625
24631
  const _hoisted_2$l = { key: 0 };
24626
- const _hoisted_3$h = ["value", "placeholder"];
24632
+ const _hoisted_3$i = ["value", "placeholder"];
24627
24633
  const _sfc_main$e = /* @__PURE__ */ vue.defineComponent({
24628
24634
  __name: "JSONInput",
24629
24635
  props: {
@@ -24655,7 +24661,7 @@ const _sfc_main$e = /* @__PURE__ */ vue.defineComponent({
24655
24661
  onInput: handleInput,
24656
24662
  class: vue.normalizeClass({ "no-edit": !_ctx.editMode }),
24657
24663
  placeholder: _ctx.placeholder
24658
- }, null, 42, _hoisted_3$h)
24664
+ }, null, 42, _hoisted_3$i)
24659
24665
  ], 10, _hoisted_1$p);
24660
24666
  };
24661
24667
  }
@@ -25653,7 +25659,7 @@ const _hoisted_1$o = {
25653
25659
  class: "multiselect__tags"
25654
25660
  };
25655
25661
  const _hoisted_2$k = { class: "multiselect__tags-wrap" };
25656
- const _hoisted_3$g = { class: "multiselect__spinner" };
25662
+ const _hoisted_3$h = { class: "multiselect__spinner" };
25657
25663
  const _hoisted_4$c = { key: 0 };
25658
25664
  const _hoisted_5$a = { class: "multiselect__option" };
25659
25665
  const _hoisted_6$6 = { class: "multiselect__option" };
@@ -25748,7 +25754,7 @@ function render$e(_ctx, _cache, $props, $setup, $data, $options) {
25748
25754
  vue.renderSlot(_ctx.$slots, "loading", {}, () => [
25749
25755
  vue.withDirectives(vue.createVNode(
25750
25756
  "div",
25751
- _hoisted_3$g,
25757
+ _hoisted_3$h,
25752
25758
  null,
25753
25759
  512
25754
25760
  /* NEED_PATCH */
@@ -25968,6 +25974,7 @@ script$e.render = render$e;
25968
25974
  const Multiselect = script$e;
25969
25975
  const _hoisted_1$n = { class: "pb-1" };
25970
25976
  const _hoisted_2$j = ["for"];
25977
+ const _hoisted_3$g = ["name", "required"];
25971
25978
  const _sfc_main$d = /* @__PURE__ */ vue.defineComponent({
25972
25979
  __name: "SelectInput",
25973
25980
  props: {
@@ -25977,7 +25984,8 @@ const _sfc_main$d = /* @__PURE__ */ vue.defineComponent({
25977
25984
  modelValue: {},
25978
25985
  placeholder: {},
25979
25986
  defaultValue: {},
25980
- options: {}
25987
+ options: {},
25988
+ extraProps: {}
25981
25989
  },
25982
25990
  emits: ["update:modelValue"],
25983
25991
  setup(__props, { emit: __emit }) {
@@ -26016,7 +26024,7 @@ const _sfc_main$d = /* @__PURE__ */ vue.defineComponent({
26016
26024
  for: _ctx.id
26017
26025
  }, [
26018
26026
  vue.createTextVNode(vue.toDisplayString(_ctx.label) + " ", 1),
26019
- vue.createVNode(vue.unref(Multiselect), {
26027
+ vue.createVNode(vue.unref(Multiselect), vue.mergeProps({
26020
26028
  ref_key: "multiselect",
26021
26029
  ref: multiselect,
26022
26030
  id: _ctx.id,
@@ -26027,7 +26035,15 @@ const _sfc_main$d = /* @__PURE__ */ vue.defineComponent({
26027
26035
  placeholder: _ctx.placeholder,
26028
26036
  modelValue: seletValue.value,
26029
26037
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => seletValue.value = $event)
26030
- }, null, 8, ["id", "options", "required", "placeholder", "modelValue"])
26038
+ }, _ctx.extraProps), null, 16, ["id", "options", "required", "placeholder", "modelValue"]),
26039
+ vue.withDirectives(vue.createElementVNode("input", vue.mergeProps({
26040
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => seletValue.value = $event),
26041
+ type: "hidden",
26042
+ name: _ctx.id,
26043
+ required: _ctx.required
26044
+ }, _ctx.extraProps), null, 16, _hoisted_3$g), [
26045
+ [vue.vModelText, seletValue.value]
26046
+ ])
26031
26047
  ], 8, _hoisted_2$j)
26032
26048
  ]);
26033
26049
  };
@@ -28829,7 +28845,16 @@ const _sfc_main$a = /* @__PURE__ */ vue.defineComponent({
28829
28845
  );
28830
28846
  return (_ctx, _cache) => {
28831
28847
  return vue.openBlock(), vue.createElementBlock("div", {
28832
- class: vue.normalizeClass(["bagel-input text-input", { dense: _ctx.dense, small: _ctx.small, shrink: _ctx.shrink, toggleEdit: _ctx.toggleEdit, editMode: vue.unref(editMode), textInputIconWrap: _ctx.icon, txtInputIconStart: _ctx.iconStart, code: _ctx.code }]),
28848
+ class: vue.normalizeClass(["bagel-input text-input", {
28849
+ dense: _ctx.dense,
28850
+ small: _ctx.small,
28851
+ shrink: _ctx.shrink,
28852
+ toggleEdit: _ctx.toggleEdit,
28853
+ editMode: vue.unref(editMode),
28854
+ code: _ctx.code,
28855
+ textInputIconWrap: _ctx.icon,
28856
+ txtInputIconStart: _ctx.iconStart
28857
+ }]),
28833
28858
  title: _ctx.title
28834
28859
  }, [
28835
28860
  vue.createElementVNode("label", { for: _ctx.id }, [
@@ -28889,14 +28914,14 @@ const _sfc_main$a = /* @__PURE__ */ vue.defineComponent({
28889
28914
  };
28890
28915
  }
28891
28916
  });
28892
- const TextInput = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-8c868409"]]);
28917
+ const TextInput = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-e116816b"]]);
28893
28918
  const _hoisted_1$j = ["title"];
28894
28919
  const _hoisted_2$f = { key: 0 };
28895
28920
  const _hoisted_3$c = {
28896
28921
  key: 1,
28897
28922
  class: "character-limit"
28898
28923
  };
28899
- const _hoisted_4$9 = ["value"];
28924
+ const _hoisted_4$9 = ["value", "required"];
28900
28925
  const _sfc_main$9 = /* @__PURE__ */ vue.defineComponent({
28901
28926
  __name: "TextArea",
28902
28927
  props: {
@@ -28907,7 +28932,8 @@ const _sfc_main$9 = /* @__PURE__ */ vue.defineComponent({
28907
28932
  editMode: { type: Boolean, default: true },
28908
28933
  small: { type: Boolean },
28909
28934
  nativeInputAttrs: {},
28910
- showCharacterLimit: { type: Boolean }
28935
+ showCharacterLimit: { type: Boolean },
28936
+ required: { type: Boolean }
28911
28937
  },
28912
28938
  emits: ["update:modelValue"],
28913
28939
  setup(__props, { emit: __emit }) {
@@ -28930,12 +28956,12 @@ const _sfc_main$9 = /* @__PURE__ */ vue.defineComponent({
28930
28956
  value: _ctx.modelValue,
28931
28957
  onInput: handleInput,
28932
28958
  class: { "no-edit": !_ctx.editMode }
28933
- }, _ctx.nativeInputAttrs), null, 16, _hoisted_4$9)
28959
+ }, _ctx.nativeInputAttrs, { required: _ctx.required }), null, 16, _hoisted_4$9)
28934
28960
  ], 10, _hoisted_1$j);
28935
28961
  };
28936
28962
  }
28937
28963
  });
28938
- const TextArea = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-a5b28c58"]]);
28964
+ const TextArea = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-64dc9f53"]]);
28939
28965
  const _hoisted_1$i = { class: "primary-checkbox" };
28940
28966
  const _sfc_main$8 = /* @__PURE__ */ vue.defineComponent({
28941
28967
  __name: "Checkbox",
@@ -29168,7 +29194,8 @@ const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
29168
29194
  props: /* @__PURE__ */ vue.mergeModels({
29169
29195
  label: {},
29170
29196
  multiple: { type: Boolean },
29171
- files: {}
29197
+ files: {},
29198
+ deleteEndpoint: {}
29172
29199
  }, {
29173
29200
  "modelValue": {},
29174
29201
  "modelModifiers": {}
@@ -29204,17 +29231,21 @@ const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
29204
29231
  const removeFile = (file) => {
29205
29232
  const index2 = storageFiles.value.indexOf(file);
29206
29233
  storageFiles.value.splice(index2, 1);
29234
+ if (props2.deleteEndpoint)
29235
+ void bagel.delete(`${props2.deleteEndpoint}/${file.id}`);
29207
29236
  };
29208
29237
  const flushQueue = () => {
29209
- fileQueue.value.forEach(async (file, i2) => {
29210
- if (!props2.multiple)
29211
- storageFiles.value.splice(0, 1);
29212
- const serverFile = await bagel.uploadFile(file.file, {
29213
- onUploadProgress: (e) => file.progress = e.progress * 100 - 1
29214
- });
29215
- storageFiles.value.push(serverFile);
29216
- fileQueue.value.splice(i2, 1);
29217
- });
29238
+ fileQueue.value.forEach(
29239
+ async (file, i2) => {
29240
+ if (!props2.multiple)
29241
+ storageFiles.value.splice(0, 1);
29242
+ const serverFile = await bagel.uploadFile(file.file, {
29243
+ onUploadProgress: (e) => file.progress = e.progress * 100 - 1
29244
+ });
29245
+ storageFiles.value.push(serverFile);
29246
+ fileQueue.value.splice(i2, 1);
29247
+ }
29248
+ );
29218
29249
  };
29219
29250
  const browse = () => {
29220
29251
  const input = document.createElement("input");
@@ -29246,7 +29277,9 @@ const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
29246
29277
  const drop3 = (e) => {
29247
29278
  preventDefault(e);
29248
29279
  if (e.dataTransfer) {
29249
- Array.from(e.dataTransfer.files).forEach((file) => fileQueue.value.push({ name: file.name, file, progress: 0 }));
29280
+ Array.from(e.dataTransfer.files).forEach(
29281
+ (file) => fileQueue.value.push({ name: file.name, file, progress: 0 })
29282
+ );
29250
29283
  }
29251
29284
  isDragOver.value = false;
29252
29285
  flushQueue();
@@ -29329,7 +29362,7 @@ const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
29329
29362
  };
29330
29363
  }
29331
29364
  });
29332
- const FileUpload = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-7deb423e"]]);
29365
+ const FileUpload = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-1be8d7b1"]]);
29333
29366
  const _withScopeId = (n) => (vue.pushScopeId("data-v-13b65ea3"), n = n(), vue.popScopeId(), n);
29334
29367
  const _hoisted_1$d = ["title"];
29335
29368
  const _hoisted_2$a = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ vue.createElementVNode("span", { class: "slider round" }, null, -1));