@bagelink/vue 0.0.612 → 0.0.614

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.
@@ -0,0 +1,34 @@
1
+ type Option = {
2
+ label: string;
3
+ value: string;
4
+ } | string | number;
5
+ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
6
+ modelValue: string | number;
7
+ options: Option[];
8
+ placeholder?: string | undefined;
9
+ label?: string | undefined;
10
+ id: string;
11
+ required: boolean;
12
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
13
+ "update:modelValue": (...args: any[]) => void;
14
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
15
+ modelValue: string | number;
16
+ options: Option[];
17
+ placeholder?: string | undefined;
18
+ label?: string | undefined;
19
+ id: string;
20
+ required: boolean;
21
+ }>>> & {
22
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
23
+ }, {}, {}>;
24
+ export default _default;
25
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
26
+ type __VLS_TypePropsToRuntimeProps<T> = {
27
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
28
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
29
+ } : {
30
+ type: import('vue').PropType<T[K]>;
31
+ required: true;
32
+ };
33
+ };
34
+ //# sourceMappingURL=Drop.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Drop.vue.d.ts","sourceRoot":"","sources":["../../src/components/Drop.vue"],"names":[],"mappings":"AAcA;AAMA,KAAK,MAAM,GAAG;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf,GAAG,MAAM,GAAG,MAAM,CAAC;;gBA8KN,MAAM,GAAG,MAAM;aAClB,MAAM,EAAE;;;QAGb,MAAM;cACA,OAAO;;;;gBALL,MAAM,GAAG,MAAM;aAClB,MAAM,EAAE;;;QAGb,MAAM;cACA,OAAO;;;;AAXnB,wBAcG;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"}
@@ -0,0 +1,60 @@
1
+ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
2
+ id?: string | undefined;
3
+ private?: 0 | 1 | undefined;
4
+ singleFile?: boolean | undefined;
5
+ beforeUpload?: (() => Promise<any>) | undefined;
6
+ dragDropLabel?: string | undefined;
7
+ browseLabel?: string | undefined;
8
+ }>, {
9
+ private: number;
10
+ entity: string;
11
+ id: string;
12
+ beforeUpload: () => Promise<void>;
13
+ dragDropLabel: string;
14
+ browseLabel: string;
15
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
16
+ done: (...args: any[]) => void;
17
+ complete: (...args: any[]) => void;
18
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
19
+ id?: string | undefined;
20
+ private?: 0 | 1 | undefined;
21
+ singleFile?: boolean | undefined;
22
+ beforeUpload?: (() => Promise<any>) | undefined;
23
+ dragDropLabel?: string | undefined;
24
+ browseLabel?: string | undefined;
25
+ }>, {
26
+ private: number;
27
+ entity: string;
28
+ id: string;
29
+ beforeUpload: () => Promise<void>;
30
+ dragDropLabel: string;
31
+ browseLabel: string;
32
+ }>>> & {
33
+ onDone?: ((...args: any[]) => any) | undefined;
34
+ onComplete?: ((...args: any[]) => any) | undefined;
35
+ }, {
36
+ id: string;
37
+ private: 1 | 0;
38
+ beforeUpload: () => Promise<any>;
39
+ dragDropLabel: string;
40
+ browseLabel: string;
41
+ }, {}>;
42
+ export default _default;
43
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
44
+ type __VLS_TypePropsToRuntimeProps<T> = {
45
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
46
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
47
+ } : {
48
+ type: import('vue').PropType<T[K]>;
49
+ required: true;
50
+ };
51
+ };
52
+ type __VLS_WithDefaults<P, D> = {
53
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
54
+ default: D[K];
55
+ }> : P[K];
56
+ };
57
+ type __VLS_Prettify<T> = {
58
+ [K in keyof T]: T[K];
59
+ } & {};
60
+ //# sourceMappingURL=FileUploader.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FileUploader.vue.d.ts","sourceRoot":"","sources":["../../src/components/FileUploader.vue"],"names":[],"mappings":"AAiDA;;;;;0BA6YuB,QAAQ,GAAG,CAAC;;;;;;;;;;;;;;;;;0BAAZ,QAAQ,GAAG,CAAC;;;;;;;;;;;;;;QAJ5B,MAAM;aAED,CAAC,GAAG,CAAC;kBAEA,MAAM,QAAQ,GAAG,CAAC;mBACjB,MAAM;iBACR,MAAM;;AARtB,wBAeG;AAGH,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,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"}
@@ -1,4 +1,5 @@
1
1
  import type { Router } from 'vue-router';
2
+ import { BagelField } from '../..';
2
3
  declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
3
4
  modelValue: Record<string, any>;
4
5
  field: BagelField;
@@ -1 +1 @@
1
- {"version":3,"file":"ItemRef.vue.d.ts","sourceRoot":"","sources":["../../../src/components/form/ItemRef.vue"],"names":[],"mappings":"AAoBA;AAIA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;;gBAqI5B,OAAO,MAAM,EAAE,GAAG,CAAC;;YAEvB,MAAM;;gBAFF,OAAO,MAAM,EAAE,GAAG,CAAC;;YAEvB,MAAM;;AARf,wBAUG;AACH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,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;CAAE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Checkbox.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/form/inputs/Checkbox.vue"],"names":[],"mappings":";gBAWc,OAAO,KAAK,EAAE,QAAQ,CAAC,GAAG,CAAC;;gBAA3B,OAAO,KAAK,EAAE,QAAQ,CAAC,GAAG,CAAC;;AAwFzC,wBAMG"}
1
+ {"version":3,"file":"Checkbox.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/form/inputs/Checkbox.vue"],"names":[],"mappings":";gBASc,OAAO,KAAK,EAAE,QAAQ,CAAC,GAAG,CAAC;;gBAA3B,OAAO,KAAK,EAAE,QAAQ,CAAC,GAAG,CAAC;;AA+DzC,wBAMG"}
@@ -6,16 +6,16 @@ declare function browse(): void;
6
6
  declare function __VLS_template(): {
7
7
  files?(_: {
8
8
  files: import('@vue-macros/reactivity-transform/macros.js').ReactiveVariable<{
9
- organization?: string[];
9
+ organization?: string[] | undefined;
10
10
  name: string;
11
11
  url: string;
12
- mimetype?: string;
13
- size?: number;
14
- extension?: string;
15
- path?: string;
16
- id?: string;
17
- created_at?: Date | string;
18
- updated_at?: Date | string;
12
+ mimetype?: string | undefined;
13
+ size?: number | undefined;
14
+ extension?: string | undefined;
15
+ path?: string | undefined;
16
+ id?: string | undefined;
17
+ created_at?: (Date | string) | undefined;
18
+ updated_at?: (Date | string) | undefined;
19
19
  }[]>;
20
20
  fileQueue: import('@vue-macros/reactivity-transform/macros.js').ReactiveVariable<{
21
21
  file: {
@@ -30,9 +30,9 @@ declare function __VLS_template(): {
30
30
  text: () => Promise<string>;
31
31
  };
32
32
  progress: number;
33
- uploading?: boolean;
34
- name?: string;
35
- uploaded?: boolean;
33
+ uploading?: boolean | undefined;
34
+ name?: string | undefined;
35
+ uploaded?: boolean | undefined;
36
36
  }[]>;
37
37
  }): any;
38
38
  placeholder?(_: {
@@ -4,8 +4,6 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
4
4
  field: SelectBagelField;
5
5
  modelValue: any;
6
6
  small?: boolean | undefined;
7
- label?: string | undefined;
8
- description?: string | undefined;
9
7
  }>, {
10
8
  description: string;
11
9
  editMode: boolean;
@@ -19,8 +17,6 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
19
17
  field: SelectBagelField;
20
18
  modelValue: any;
21
19
  small?: boolean | undefined;
22
- label?: string | undefined;
23
- description?: string | undefined;
24
20
  }>, {
25
21
  description: string;
26
22
  editMode: boolean;
@@ -32,6 +28,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
32
28
  }, {
33
29
  description: string;
34
30
  label: string;
31
+ placeholder: string;
35
32
  editMode: boolean;
36
33
  }, {}>;
37
34
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"SelectField.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/form/inputs/SelectField.vue"],"names":[],"mappings":"AA6CA;AAOA,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,eAAe,CAAC;;;WAiV5C,gBAAgB;gBACX,GAAG;;;;;;;;;;;;;;WADR,gBAAgB;gBACX,GAAG;;;;;;;;;;;;;iBAGD,MAAM;WADZ,MAAM;cAJH,OAAO;;AANrB,wBAcG;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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C,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"}
@@ -1 +1 @@
1
- {"version":3,"file":"ToggleInput.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/form/inputs/ToggleInput.vue"],"names":[],"mappings":"AA8BA,iBAAS,cAAc;mBA6GK,GAAG;EAK9B;AAoBD,QAAA,MAAM,eAAe;gBA5IP,OAAO,KAAK,EAAE,QAAQ,CAAC,OAAO,GAAG,SAAS,CAAC;;;kBA+J4I,IAAI;;;;;;;;;;;;;;;;;;;gBA/J3L,OAAO,KAAK,EAAE,QAAQ,CAAC,OAAO,GAAG,SAAS,CAAC;;;kBA+J4I,IAAI;;;;;;;;;;;;;;;;;;;kBAPzL,OAAO;MAIrB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AAUxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
1
+ {"version":3,"file":"ToggleInput.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/form/inputs/ToggleInput.vue"],"names":[],"mappings":"AA8BA,iBAAS,cAAc;mBAsGK,GAAG;EAK9B;AAoBD,QAAA,MAAM,eAAe;gBArIP,OAAO,KAAK,EAAE,QAAQ,CAAC,OAAO,GAAG,SAAS,CAAC;;;kBAwJ4I,IAAI;;;;;;;;;;;;;;;;;;;gBAxJ3L,OAAO,KAAK,EAAE,QAAQ,CAAC,OAAO,GAAG,SAAS,CAAC;;;kBAwJ4I,IAAI;;;;;;;;;;;;;;;;;;;kBAPzL,OAAO;MAIrB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AAUxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
package/dist/index.cjs CHANGED
@@ -6729,7 +6729,7 @@ const _sfc_main$C = /* @__PURE__ */ vue.defineComponent({
6729
6729
  };
6730
6730
  }
6731
6731
  });
6732
- const DataPreview = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["__scopeId", "data-v-0ffde6c7"]]);
6732
+ const DataPreview = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["__scopeId", "data-v-d3655508"]]);
6733
6733
  const _hoisted_1$z = {
6734
6734
  key: 0,
6735
6735
  class: "card_label"
@@ -17122,7 +17122,7 @@ const _sfc_main$o = /* @__PURE__ */ vue.defineComponent({
17122
17122
  };
17123
17123
  }
17124
17124
  });
17125
- const CheckInput = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-e8fcfd5e"]]);
17125
+ const CheckInput = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-6bc5ed15"]]);
17126
17126
  function toDate(argument) {
17127
17127
  const argStr = Object.prototype.toString.call(argument);
17128
17128
  if (argument instanceof Date || typeof argument === "object" && argStr === "[object Date]") {
@@ -28636,10 +28636,12 @@ const _sfc_main$j = /* @__PURE__ */ vue.defineComponent({
28636
28636
  placeholder: _ctx.placeholder || _ctx.label,
28637
28637
  disabled: _ctx.disabled,
28638
28638
  required: _ctx.required,
28639
- pattern: _ctx.pattern,
28639
+ pattern: _ctx.pattern
28640
+ }, _ctx.nativeInputAttrs, {
28640
28641
  onFocusout: _cache[1] || (_cache[1] = //@ts-ignore
28641
- (...args) => _ctx.onFocusout && _ctx.onFocusout(...args))
28642
- }, _ctx.nativeInputAttrs, { onInput: updateInputVal }), null, 16, _hoisted_3$d)), [
28642
+ (...args) => _ctx.onFocusout && _ctx.onFocusout(...args)),
28643
+ onInput: updateInputVal
28644
+ }), null, 16, _hoisted_3$d)), [
28643
28645
  [vue.vModelDynamic, vue.unref(inputVal)]
28644
28646
  ]) : vue.withDirectives((vue.openBlock(), vue.createElementBlock("textarea", vue.mergeProps({
28645
28647
  key: 1,
@@ -28672,7 +28674,7 @@ const _sfc_main$j = /* @__PURE__ */ vue.defineComponent({
28672
28674
  };
28673
28675
  }
28674
28676
  });
28675
- const TextInput = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-8e712ba3"]]);
28677
+ const TextInput = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-5e9a753f"]]);
28676
28678
  const _hoisted_1$n = { class: "primary-checkbox" };
28677
28679
  const _sfc_main$i = /* @__PURE__ */ vue.defineComponent({
28678
28680
  __name: "Checkbox",
@@ -28693,15 +28695,12 @@ const _sfc_main$i = /* @__PURE__ */ vue.defineComponent({
28693
28695
  type: "checkbox"
28694
28696
  }, null, 512), [
28695
28697
  [vue.vModelCheckbox, val.value]
28696
- ]),
28697
- vue.createElementVNode("span", null, [
28698
- vue.createVNode(vue.unref(_sfc_main$O), { icon: "check" })
28699
28698
  ])
28700
28699
  ]);
28701
28700
  };
28702
28701
  }
28703
28702
  });
28704
- const Checkbox = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-2f03e6ec"]]);
28703
+ const Checkbox = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-0878583e"]]);
28705
28704
  const _hoisted_1$m = ["title"];
28706
28705
  const _hoisted_2$h = ["id", "placeholder", "required"];
28707
28706
  const _sfc_main$h = /* @__PURE__ */ vue.defineComponent({
@@ -29146,7 +29145,7 @@ const _sfc_main$e = /* @__PURE__ */ vue.defineComponent({
29146
29145
  }
29147
29146
  });
29148
29147
  const $el = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-6716fd45"]]);
29149
- const _withScopeId$1 = (n2) => (vue.pushScopeId("data-v-dbc06a4f"), n2 = n2(), vue.popScopeId(), n2);
29148
+ const _withScopeId$1 = (n2) => (vue.pushScopeId("data-v-06b95183"), n2 = n2(), vue.popScopeId(), n2);
29150
29149
  const _hoisted_1$i = ["title"];
29151
29150
  const _hoisted_2$d = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ vue.createElementVNode("span", { class: "slider round" }, null, -1));
29152
29151
  const _hoisted_3$9 = [
@@ -29177,9 +29176,8 @@ const _sfc_main$d = /* @__PURE__ */ vue.defineComponent({
29177
29176
  });
29178
29177
  return (_ctx, _cache) => {
29179
29178
  return vue.openBlock(), vue.createElementBlock("div", {
29180
- class: vue.normalizeClass(["bagel-input bgl-checkbox gap-1 align-items-center", { small: _ctx.small }]),
29181
- title: _ctx.title,
29182
- onClick: _cache[1] || (_cache[1] = vue.withModifiers(($event) => checked.value = !checked.value, ["prevent"]))
29179
+ class: vue.normalizeClass(["bagel-input bgl-toggle", { small: _ctx.small }]),
29180
+ title: _ctx.title
29183
29181
  }, [
29184
29182
  vue.createElementVNode("div", {
29185
29183
  class: vue.normalizeClass(["switch", { checked: checked.value }])
@@ -29201,7 +29199,7 @@ const _sfc_main$d = /* @__PURE__ */ vue.defineComponent({
29201
29199
  };
29202
29200
  }
29203
29201
  });
29204
- const ToggleInput = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-dbc06a4f"]]);
29202
+ const ToggleInput = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-06b95183"]]);
29205
29203
  function OrderedMap(content) {
29206
29204
  this.content = content;
29207
29205
  }
@@ -41490,7 +41488,7 @@ const getTextContentFromNodes = ($from, maxMatch = 500) => {
41490
41488
  parent,
41491
41489
  index: index2
41492
41490
  })) || node.textContent || "%leaf%";
41493
- textBefore += chunk.slice(0, Math.max(0, sliceEndPos - pos));
41491
+ textBefore += node.isAtom ? chunk : chunk.slice(0, Math.max(0, sliceEndPos - pos));
41494
41492
  });
41495
41493
  return textBefore;
41496
41494
  };
@@ -44398,6 +44396,11 @@ let Editor$1 = class Editor2 extends EventEmitter {
44398
44396
  }
44399
44397
  const state2 = this.state.apply(transaction);
44400
44398
  const selectionHasChanged = !this.state.selection.eq(state2.selection);
44399
+ this.emit("beforeTransaction", {
44400
+ editor: this,
44401
+ transaction,
44402
+ nextState: state2
44403
+ });
44401
44404
  this.view.updateState(state2);
44402
44405
  this.emit("transaction", {
44403
44406
  editor: this,
@@ -49859,12 +49862,12 @@ function useDebouncedRef(value) {
49859
49862
  class Editor extends Editor$1 {
49860
49863
  constructor(options = {}) {
49861
49864
  super(options);
49862
- this.vueRenderers = vue.reactive(/* @__PURE__ */ new Map());
49863
49865
  this.contentComponent = null;
49866
+ this.appContext = null;
49864
49867
  this.reactiveState = useDebouncedRef(this.view.state);
49865
49868
  this.reactiveExtensionStorage = useDebouncedRef(this.extensionStorage);
49866
- this.on("transaction", () => {
49867
- this.reactiveState.value = this.view.state;
49869
+ this.on("beforeTransaction", ({ nextState }) => {
49870
+ this.reactiveState.value = nextState;
49868
49871
  this.reactiveExtensionStorage.value = this.extensionStorage;
49869
49872
  });
49870
49873
  return vue.markRaw(this);
@@ -49911,6 +49914,16 @@ const EditorContent = vue.defineComponent({
49911
49914
  const element = vue.unref(rootEl2.value);
49912
49915
  rootEl2.value.append(...editor.options.element.childNodes);
49913
49916
  editor.contentComponent = instance.ctx._;
49917
+ if (instance) {
49918
+ editor.appContext = {
49919
+ ...instance.appContext,
49920
+ provides: {
49921
+ // @ts-ignore
49922
+ ...instance.provides,
49923
+ ...instance.appContext.provides
49924
+ }
49925
+ };
49926
+ }
49914
49927
  editor.setOptions({
49915
49928
  element
49916
49929
  });
@@ -49929,6 +49942,7 @@ const EditorContent = vue.defineComponent({
49929
49942
  });
49930
49943
  }
49931
49944
  editor.contentComponent = null;
49945
+ editor.appContext = null;
49932
49946
  if (!editor.options.element.firstChild) {
49933
49947
  return;
49934
49948
  }
@@ -49941,24 +49955,11 @@ const EditorContent = vue.defineComponent({
49941
49955
  return { rootEl: rootEl2 };
49942
49956
  },
49943
49957
  render() {
49944
- const vueRenderers = [];
49945
- if (this.editor) {
49946
- this.editor.vueRenderers.forEach((vueRenderer) => {
49947
- const node = vue.h(vue.Teleport, {
49948
- to: vueRenderer.teleportElement,
49949
- key: vueRenderer.id
49950
- }, vue.h(vueRenderer.component, {
49951
- ref: vueRenderer.id,
49952
- ...vueRenderer.props
49953
- }));
49954
- vueRenderers.push(node);
49955
- });
49956
- }
49957
49958
  return vue.h("div", {
49958
49959
  ref: (el) => {
49959
49960
  this.rootEl = el;
49960
49961
  }
49961
- }, ...vueRenderers);
49962
+ });
49962
49963
  }
49963
49964
  });
49964
49965
  vue.defineComponent({
package/dist/index.mjs CHANGED
@@ -6727,7 +6727,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
6727
6727
  };
6728
6728
  }
6729
6729
  });
6730
- const DataPreview = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["__scopeId", "data-v-0ffde6c7"]]);
6730
+ const DataPreview = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["__scopeId", "data-v-d3655508"]]);
6731
6731
  const _hoisted_1$z = {
6732
6732
  key: 0,
6733
6733
  class: "card_label"
@@ -17120,7 +17120,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
17120
17120
  };
17121
17121
  }
17122
17122
  });
17123
- const CheckInput = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-e8fcfd5e"]]);
17123
+ const CheckInput = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-6bc5ed15"]]);
17124
17124
  function toDate(argument) {
17125
17125
  const argStr = Object.prototype.toString.call(argument);
17126
17126
  if (argument instanceof Date || typeof argument === "object" && argStr === "[object Date]") {
@@ -28634,10 +28634,12 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
28634
28634
  placeholder: _ctx.placeholder || _ctx.label,
28635
28635
  disabled: _ctx.disabled,
28636
28636
  required: _ctx.required,
28637
- pattern: _ctx.pattern,
28637
+ pattern: _ctx.pattern
28638
+ }, _ctx.nativeInputAttrs, {
28638
28639
  onFocusout: _cache[1] || (_cache[1] = //@ts-ignore
28639
- (...args) => _ctx.onFocusout && _ctx.onFocusout(...args))
28640
- }, _ctx.nativeInputAttrs, { onInput: updateInputVal }), null, 16, _hoisted_3$d)), [
28640
+ (...args) => _ctx.onFocusout && _ctx.onFocusout(...args)),
28641
+ onInput: updateInputVal
28642
+ }), null, 16, _hoisted_3$d)), [
28641
28643
  [vModelDynamic, unref(inputVal)]
28642
28644
  ]) : withDirectives((openBlock(), createElementBlock("textarea", mergeProps({
28643
28645
  key: 1,
@@ -28670,7 +28672,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
28670
28672
  };
28671
28673
  }
28672
28674
  });
28673
- const TextInput = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-8e712ba3"]]);
28675
+ const TextInput = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-5e9a753f"]]);
28674
28676
  const _hoisted_1$n = { class: "primary-checkbox" };
28675
28677
  const _sfc_main$i = /* @__PURE__ */ defineComponent({
28676
28678
  __name: "Checkbox",
@@ -28691,15 +28693,12 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
28691
28693
  type: "checkbox"
28692
28694
  }, null, 512), [
28693
28695
  [vModelCheckbox, val.value]
28694
- ]),
28695
- createElementVNode("span", null, [
28696
- createVNode(unref(_sfc_main$O), { icon: "check" })
28697
28696
  ])
28698
28697
  ]);
28699
28698
  };
28700
28699
  }
28701
28700
  });
28702
- const Checkbox = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-2f03e6ec"]]);
28701
+ const Checkbox = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-0878583e"]]);
28703
28702
  const _hoisted_1$m = ["title"];
28704
28703
  const _hoisted_2$h = ["id", "placeholder", "required"];
28705
28704
  const _sfc_main$h = /* @__PURE__ */ defineComponent({
@@ -29144,7 +29143,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
29144
29143
  }
29145
29144
  });
29146
29145
  const $el = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-6716fd45"]]);
29147
- const _withScopeId$1 = (n2) => (pushScopeId("data-v-dbc06a4f"), n2 = n2(), popScopeId(), n2);
29146
+ const _withScopeId$1 = (n2) => (pushScopeId("data-v-06b95183"), n2 = n2(), popScopeId(), n2);
29148
29147
  const _hoisted_1$i = ["title"];
29149
29148
  const _hoisted_2$d = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("span", { class: "slider round" }, null, -1));
29150
29149
  const _hoisted_3$9 = [
@@ -29175,9 +29174,8 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
29175
29174
  });
29176
29175
  return (_ctx, _cache) => {
29177
29176
  return openBlock(), createElementBlock("div", {
29178
- class: normalizeClass(["bagel-input bgl-checkbox gap-1 align-items-center", { small: _ctx.small }]),
29179
- title: _ctx.title,
29180
- onClick: _cache[1] || (_cache[1] = withModifiers(($event) => checked.value = !checked.value, ["prevent"]))
29177
+ class: normalizeClass(["bagel-input bgl-toggle", { small: _ctx.small }]),
29178
+ title: _ctx.title
29181
29179
  }, [
29182
29180
  createElementVNode("div", {
29183
29181
  class: normalizeClass(["switch", { checked: checked.value }])
@@ -29199,7 +29197,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
29199
29197
  };
29200
29198
  }
29201
29199
  });
29202
- const ToggleInput = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-dbc06a4f"]]);
29200
+ const ToggleInput = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-06b95183"]]);
29203
29201
  function OrderedMap(content) {
29204
29202
  this.content = content;
29205
29203
  }
@@ -41488,7 +41486,7 @@ const getTextContentFromNodes = ($from, maxMatch = 500) => {
41488
41486
  parent,
41489
41487
  index: index2
41490
41488
  })) || node.textContent || "%leaf%";
41491
- textBefore += chunk.slice(0, Math.max(0, sliceEndPos - pos));
41489
+ textBefore += node.isAtom ? chunk : chunk.slice(0, Math.max(0, sliceEndPos - pos));
41492
41490
  });
41493
41491
  return textBefore;
41494
41492
  };
@@ -44396,6 +44394,11 @@ let Editor$1 = class Editor2 extends EventEmitter {
44396
44394
  }
44397
44395
  const state2 = this.state.apply(transaction);
44398
44396
  const selectionHasChanged = !this.state.selection.eq(state2.selection);
44397
+ this.emit("beforeTransaction", {
44398
+ editor: this,
44399
+ transaction,
44400
+ nextState: state2
44401
+ });
44399
44402
  this.view.updateState(state2);
44400
44403
  this.emit("transaction", {
44401
44404
  editor: this,
@@ -49857,12 +49860,12 @@ function useDebouncedRef(value) {
49857
49860
  class Editor extends Editor$1 {
49858
49861
  constructor(options = {}) {
49859
49862
  super(options);
49860
- this.vueRenderers = reactive(/* @__PURE__ */ new Map());
49861
49863
  this.contentComponent = null;
49864
+ this.appContext = null;
49862
49865
  this.reactiveState = useDebouncedRef(this.view.state);
49863
49866
  this.reactiveExtensionStorage = useDebouncedRef(this.extensionStorage);
49864
- this.on("transaction", () => {
49865
- this.reactiveState.value = this.view.state;
49867
+ this.on("beforeTransaction", ({ nextState }) => {
49868
+ this.reactiveState.value = nextState;
49866
49869
  this.reactiveExtensionStorage.value = this.extensionStorage;
49867
49870
  });
49868
49871
  return markRaw(this);
@@ -49909,6 +49912,16 @@ const EditorContent = defineComponent({
49909
49912
  const element = unref(rootEl2.value);
49910
49913
  rootEl2.value.append(...editor.options.element.childNodes);
49911
49914
  editor.contentComponent = instance.ctx._;
49915
+ if (instance) {
49916
+ editor.appContext = {
49917
+ ...instance.appContext,
49918
+ provides: {
49919
+ // @ts-ignore
49920
+ ...instance.provides,
49921
+ ...instance.appContext.provides
49922
+ }
49923
+ };
49924
+ }
49912
49925
  editor.setOptions({
49913
49926
  element
49914
49927
  });
@@ -49927,6 +49940,7 @@ const EditorContent = defineComponent({
49927
49940
  });
49928
49941
  }
49929
49942
  editor.contentComponent = null;
49943
+ editor.appContext = null;
49930
49944
  if (!editor.options.element.firstChild) {
49931
49945
  return;
49932
49946
  }
@@ -49939,24 +49953,11 @@ const EditorContent = defineComponent({
49939
49953
  return { rootEl: rootEl2 };
49940
49954
  },
49941
49955
  render() {
49942
- const vueRenderers = [];
49943
- if (this.editor) {
49944
- this.editor.vueRenderers.forEach((vueRenderer) => {
49945
- const node = h$2(Teleport, {
49946
- to: vueRenderer.teleportElement,
49947
- key: vueRenderer.id
49948
- }, h$2(vueRenderer.component, {
49949
- ref: vueRenderer.id,
49950
- ...vueRenderer.props
49951
- }));
49952
- vueRenderers.push(node);
49953
- });
49954
- }
49955
49956
  return h$2("div", {
49956
49957
  ref: (el) => {
49957
49958
  this.rootEl = el;
49958
49959
  }
49959
- }, ...vueRenderers);
49960
+ });
49960
49961
  }
49961
49962
  });
49962
49963
  defineComponent({