@bagelink/vue 0.0.1167 → 0.0.1174

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":"Carousel.vue.d.ts","sourceRoot":"","sources":["../../src/components/Carousel.vue"],"names":[],"mappings":"AA8yBA,iBAAS,IAAI,SAIZ;AAED,iBAAS,IAAI,SAIZ;AAmZD,iBAAS,cAAc;WAyFT,OAAO,IAA6B;;yBAbrB,GAAG;;;;YACN,GAAG;;;;YACH,GAAG;;;;;;EAgB5B;AAmCD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAmBnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAEpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"Carousel.vue.d.ts","sourceRoot":"","sources":["../../src/components/Carousel.vue"],"names":[],"mappings":"AAuyBA,iBAAS,IAAI,SAIZ;AAED,iBAAS,IAAI,SAIZ;AA8YD,iBAAS,cAAc;WAyFT,OAAO,IAA6B;;yBAbrB,GAAG;;;;YACN,GAAG;;;;YACH,GAAG;;;;;;EAgB5B;AAmCD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAmBnB,CAA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,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
1
+ {"version":3,"file":"DataTable.vue.d.ts","sourceRoot":"","sources":["../../../src/components/DataTable/DataTable.vue"],"names":[],"mappings":"AAydA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAA;AAW/D,MAAM,MAAM,eAAe,GAAG,KAAK,GAAG,MAAM,CAAA;AAC5C,MAAM,MAAM,UAAU,GAAG,GAAG,MAAM,IAAI,eAAe,EAAE,CAAA;yBAEtC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,eAChC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,cAClD,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,iBAC5F,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC;WA2U1D,mBAAmB,CAAC;;;;;;;;;;wBArNV,MAAM,EAAE;0CAqNoE,CAAC,4BAA2B;oBACzG,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;;;UAnD0E,GAAG;UAqDjF,uXAAoC;OAG/B,OAAO,KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,CAAC,OAAO,WAAW,CAAC,CAAA;CAAE;AArVzE,wBAqV4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
@@ -1,117 +1,26 @@
1
- import { BglFormSchemaFnT, BtnOptions } from '..';
2
- type __VLS_Props = {
3
- side?: boolean;
4
- title?: string;
5
- width?: string;
6
- dismissable?: boolean;
7
- actions?: BtnOptions[];
8
- schema: BglFormSchemaFnT<any>;
9
- onSubmit?: (formData: any) => Promise<void>;
10
- onDelete?: (id: string) => void;
11
- visible?: boolean;
12
- onError?: (err: any) => void;
13
- modelValue?: {
14
- [key: string]: any;
15
- };
16
- };
17
- declare function setFormValues(values: {
1
+ import { ModalFormOptions } from '../plugins/modalTypes';
2
+ declare const _default: <T extends {
18
3
  [key: string]: any;
19
- }): void;
20
- type __VLS_PublicProps = {
21
- 'modelValue'?: {
22
- [key: string]: any;
23
- };
24
- } & __VLS_Props;
25
- declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {
26
- setFormValues: typeof setFormValues;
27
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
28
- "update:visible": (...args: any[]) => void;
29
- "update:modelValue": (value: {
30
- [key: string]: any;
31
- }) => void;
32
- }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
33
- "onUpdate:modelValue"?: ((value: {
34
- [key: string]: any;
35
- }) => any) | undefined;
36
- "onUpdate:visible"?: ((...args: any[]) => any) | undefined;
37
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
38
- modal: ({
39
- $: import('vue').ComponentInternalInstance;
40
- $data: {};
41
- $props: {
42
- readonly side?: boolean | undefined;
43
- readonly title?: string | undefined;
44
- readonly width?: string | undefined;
45
- readonly dismissable?: boolean | undefined;
46
- readonly actions?: BtnOptions[] | undefined;
47
- readonly visible?: boolean | undefined;
48
- readonly "onUpdate:visible"?: ((...args: any[]) => any) | undefined;
49
- } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
50
- $attrs: {
51
- [x: string]: unknown;
52
- };
53
- $refs: {
54
- [x: string]: unknown;
55
- };
56
- $slots: Readonly<{
57
- [name: string]: import('vue').Slot<any> | undefined;
58
- }>;
59
- $root: import('vue').ComponentPublicInstance | null;
60
- $parent: import('vue').ComponentPublicInstance | null;
61
- $host: Element | null;
62
- $emit: (event: "update:visible", ...args: any[]) => void;
63
- $el: HTMLDivElement;
64
- $options: import('vue').ComponentOptionsBase<Readonly<{
65
- side?: boolean;
66
- title?: string;
67
- width?: string;
68
- dismissable?: boolean;
69
- actions?: BtnOptions[];
70
- visible?: boolean;
71
- }> & Readonly<{
72
- "onUpdate:visible"?: ((...args: any[]) => any) | undefined;
73
- }>, {
74
- closeModal: () => void;
75
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
76
- "update:visible": (...args: any[]) => void;
77
- }, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
78
- beforeCreate?: (() => void) | (() => void)[];
79
- created?: (() => void) | (() => void)[];
80
- beforeMount?: (() => void) | (() => void)[];
81
- mounted?: (() => void) | (() => void)[];
82
- beforeUpdate?: (() => void) | (() => void)[];
83
- updated?: (() => void) | (() => void)[];
84
- activated?: (() => void) | (() => void)[];
85
- deactivated?: (() => void) | (() => void)[];
86
- beforeDestroy?: (() => void) | (() => void)[];
87
- beforeUnmount?: (() => void) | (() => void)[];
88
- destroyed?: (() => void) | (() => void)[];
89
- unmounted?: (() => void) | (() => void)[];
90
- renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
91
- renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
92
- errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
93
- };
94
- $forceUpdate: () => void;
95
- $nextTick: typeof import('vue').nextTick;
96
- $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
97
- } & Readonly<{}> & Omit<Readonly<{
98
- side?: boolean;
99
- title?: string;
100
- width?: string;
101
- dismissable?: boolean;
102
- actions?: BtnOptions[];
103
- visible?: boolean;
104
- }> & Readonly<{
105
- "onUpdate:visible"?: ((...args: any[]) => any) | undefined;
106
- }>, "closeModal"> & import('vue').ShallowUnwrapRef<{
107
- closeModal: () => void;
108
- }> & {} & import('vue').ComponentCustomProperties & {} & {
109
- $slots: {
110
- toolbar?(_: {}): any;
111
- default?(_: {}): any;
112
- footer?(_: {}): any;
113
- };
114
- }) | null;
115
- }, HTMLDivElement>;
4
+ }>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
5
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
6
+ readonly "onUpdate:modelValue"?: ((...args: unknown[]) => any) | undefined;
7
+ readonly "onUpdate:visible"?: ((value: boolean) => any) | undefined;
8
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:modelValue" | "onUpdate:visible"> & ({
9
+ modelValue?: T;
10
+ } & ModalFormOptions<T>) & Partial<{}>> & import('vue').PublicProps;
11
+ expose(exposed: import('vue').ShallowUnwrapRef<{
12
+ setFormValues: (values: {
13
+ [key: string]: any;
14
+ }) => void;
15
+ }>): void;
16
+ attrs: any;
17
+ slots: {};
18
+ emit: (((evt: "update:modelValue", value: T) => void) & ((evt: "update:visible", value: boolean) => void)) & ((evt: "update:modelValue", value: T) => void);
19
+ }>) => import('vue').VNode & {
20
+ __ctx?: Awaited<typeof __VLS_setup>;
21
+ };
116
22
  export default _default;
23
+ type __VLS_PrettifyLocal<T> = {
24
+ [K in keyof T]: T[K];
25
+ } & {};
117
26
  //# sourceMappingURL=ModalForm.vue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ModalForm.vue.d.ts","sourceRoot":"","sources":["../../src/components/ModalForm.vue"],"names":[],"mappings":"AAqHA,OAAO,KAAK,EAAE,gBAAgB,EAAE,UAAU,EAAa,MAAM,eAAe,CAAA;AAG5E,KAAK,WAAW,GAAG;IAClB,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,OAAO,CAAC,EAAE,UAAU,EAAE,CAAA;IACtB,MAAM,EAAE,gBAAgB,CAAC,GAAG,CAAC,CAAA;IAE7B,QAAQ,CAAC,EAAE,CAAC,QAAQ,EAAE,GAAG,KAAK,OAAO,CAAC,IAAI,CAAC,CAAA;IAE3C,QAAQ,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAA;IAE/B,OAAO,CAAC,EAAE,OAAO,CAAA;IAEjB,OAAO,CAAC,EAAE,CAAC,GAAG,EAAE,GAAG,KAAK,IAAI,CAAA;IAE5B,UAAU,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAA;CACnC,CAAC;AAyCF,iBAAS,aAAa,CAAC,MAAM,EAAE;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,QAEpD;AASD,KAAK,iBAAiB,GAAG;IACzB,YAAY,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;CACrC,GAAG,WAAW,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCAuMkpc,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;AArBxxc,wBAaG"}
1
+ {"version":3,"file":"ModalForm.vue.d.ts","sourceRoot":"","sources":["../../src/components/ModalForm.vue"],"names":[],"mappings":"AAsHA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;yBAG5C,CAAC,SAAS;IAAC,CAAC,GAAG,EAAC,MAAM,GAAE,GAAG,CAAA;CAAC,eAC/B,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,cAClD,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,iBAC5F,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC;WA0S1D,mBAAmB,CAAC;;;;qBAtOb,CAAC;0CAsO8E,CAAC,4BAA2B;oBACzG,OAAO,KAAK,EAAE,gBAAgB;gCAxPhB;YAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;SAAE;MAwPgB,GAAG,IAAI;WACpE,GAAG;;UAEJ,qJAAoC;OAG/B,OAAO,KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,CAAC,OAAO,WAAW,CAAC,CAAA;CAAE;AApTzE,wBAoT4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
@@ -1,47 +1,40 @@
1
1
  import { BglFormSchemaFnT } from '../..';
2
- interface Props {
3
- modelValue?: Record<string, any>;
4
- schema?: BglFormSchemaFnT;
2
+ export interface BagelFormProps<T extends {
3
+ [key: string]: any;
4
+ }> {
5
+ modelValue?: T;
6
+ schema?: BglFormSchemaFnT<T>;
5
7
  }
6
- declare function handleSubmit(): void;
7
- declare function validateForm(): boolean;
8
- declare function __VLS_template(): {
9
- attrs: Partial<{}>;
8
+ declare const _default: <T extends {
9
+ [key: string]: any;
10
+ }>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
11
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
12
+ readonly onSubmit?: ((value: T) => any) | undefined;
13
+ readonly "onUpdate:modelValue"?: ((value: T) => any) | undefined;
14
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onSubmit" | "onUpdate:modelValue"> & BagelFormProps<T> & Partial<{}>> & import('vue').PublicProps;
15
+ expose(exposed: import('vue').ShallowUnwrapRef<{
16
+ form: import('vue').Ref<HTMLFormElement | undefined, HTMLFormElement | undefined>;
17
+ isDirty: import('@vue-macros/reactivity-transform/macros.js').ComputedVariable<false> | import('@vue-macros/reactivity-transform/macros.js').ComputedVariable<true>;
18
+ validateForm: () => boolean;
19
+ }>): void;
20
+ attrs: any;
10
21
  slots: {
11
22
  default?(_: {}): any;
12
23
  submit?(_: {
13
- submit: typeof handleSubmit;
24
+ submit: () => void;
14
25
  isDirty: import('@vue-macros/reactivity-transform/macros.js').ComputedVariable<false> | import('@vue-macros/reactivity-transform/macros.js').ComputedVariable<true>;
15
- validateForm: typeof validateForm;
26
+ validateForm: () => boolean;
16
27
  }): any;
17
28
  };
18
- refs: {
19
- form: HTMLFormElement;
29
+ emit: {
30
+ (e: "update:modelValue", value: T): void;
31
+ (e: "submit", value: T): void;
20
32
  };
21
- rootEl: HTMLFormElement;
33
+ }>) => import('vue').VNode & {
34
+ __ctx?: Awaited<typeof __VLS_setup>;
22
35
  };
23
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
24
- declare const __VLS_component: import('vue').DefineComponent<Props, {
25
- form: import('@vue-macros/reactivity-transform/macros.js').ReactiveVariable<HTMLFormElement> | undefined;
26
- isDirty: import('@vue-macros/reactivity-transform/macros.js').ComputedVariable<false> | import('@vue-macros/reactivity-transform/macros.js').ComputedVariable<true>;
27
- validateForm: typeof validateForm;
28
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
29
- submit: (value: Record<string, any>) => any;
30
- "update:modelValue": (value: Record<string, any>) => any;
31
- }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
32
- onSubmit?: ((value: Record<string, any>) => any) | undefined;
33
- "onUpdate:modelValue"?: ((value: Record<string, any>) => any) | undefined;
34
- }>, {
35
- schema: BglFormSchemaFnT;
36
- modelValue: Record<string, any>;
37
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
38
- form: HTMLFormElement;
39
- }, HTMLFormElement>;
40
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
41
36
  export default _default;
42
- type __VLS_WithTemplateSlots<T, S> = T & {
43
- new (): {
44
- $slots: S;
45
- };
46
- };
37
+ type __VLS_PrettifyLocal<T> = {
38
+ [K in keyof T]: T[K];
39
+ } & {};
47
40
  //# sourceMappingURL=BagelForm.vue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"BagelForm.vue.d.ts","sourceRoot":"","sources":["../../../src/components/form/BagelForm.vue"],"names":[],"mappings":"AAoGA,OAAO,KAAK,EAAkB,gBAAgB,EAAS,MAAM,eAAe,CAAA;AAK5E,UAAU,KAAK;IACd,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAChC,MAAM,CAAC,EAAE,gBAAgB,CAAA;CACzB;AA4CD,iBAAS,YAAY,SAGpB;AAUD,iBAAS,YAAY,YAGpB;AA0BD,iBAAS,cAAc;WA6CT,OAAO,IAA6B;;yBAZrB,GAAG;;;;;YACJ,GAAG;;;;;;EAgB9B;AAgBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;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,KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,CAAC,OAAO,WAAW,CAAC,CAAA;CAAE;AA/KzE,wBA+K4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
@@ -76,18 +76,13 @@ export declare function useEditor(): {
76
76
  showModal: (options: import('../../../../..').ModalOptions, slots?: {
77
77
  [key: string]: any;
78
78
  }) => import('../../../../..').ModalComponentProps | undefined;
79
- showModalForm: (options: import('../../../../..').ModalFormOptions, slots?: {
79
+ showModalForm: <T extends {
80
80
  [key: string]: any;
81
- }) => import('../../../../../plugins/modal').ModalFormComponentProps | undefined;
81
+ }>(options: import('../../../../../plugins/modalTypes').ModalFormOptions<T>, slots?: {
82
+ [key: string]: any;
83
+ }) => import('../../../../../plugins/modalTypes').ModalFormComponentProps<T> | undefined;
82
84
  hideModal: (index?: number) => void;
83
- confirmModal: (options: string | {
84
- title: string;
85
- message: string;
86
- confirmText?: string;
87
- cancelText?: string;
88
- confirmBtnColor?: string;
89
- cancelBtnColor?: string;
90
- }) => Promise<boolean>;
85
+ confirmModal: (options: import('../../../../../plugins/modalTypes').ConfirmModalUserOptions) => Promise<boolean>;
91
86
  };
92
87
  };
93
88
  init: (doc: Document) => void;
@@ -1 +1 @@
1
- {"version":3,"file":"useEditor.d.ts","sourceRoot":"","sources":["../../../../../../src/components/form/inputs/RichText/composables/useEditor.ts"],"names":[],"mappings":"AAuBA,wBAAgB,SAAS;;iBAff,MAAM;aACV,QAAQ,GAAG,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAGX,OAAO;qBACR,OAAO;oBACR,OAAO;iBACV,OAAO;mBACL,MAAM,EAAE;mBACR,MAAM,EAAE;oBACP,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4EA6DX,CAAC;;;oFAG4B,CAAC;;;6BAMxB,CAAC;;;;;;;;;;;gBA4GK,QAAQ;kCAmCU,MAAM,UAAU,MAAM;4BAhK5B,MAAM,GAAG,MAAM;;;;;;;8BAwQjB,MAAM,UAAU,MAAM;0CACV,MAAM;;EAkB/C"}
1
+ {"version":3,"file":"useEditor.d.ts","sourceRoot":"","sources":["../../../../../../src/components/form/inputs/RichText/composables/useEditor.ts"],"names":[],"mappings":"AAuBA,wBAAgB,SAAS;;iBAff,MAAM;aACV,QAAQ,GAAG,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAGX,OAAO;qBACR,OAAO;oBACR,OAAO;iBACV,OAAO;mBACL,MAAM,EAAE;mBACR,MAAM,EAAE;oBACP,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4EAVf,CAAC;;;;;8FAMA,CAAC;;;6BAIK,CAAC;;;;gBAkLQ,QAAQ;kCAmCU,MAAM,UAAU,MAAM;4BAhK5B,MAAM,GAAG,MAAM;;;;;;;8BAwQjB,MAAM,UAAU,MAAM;0CACV,MAAM;;EAkB/C"}
package/dist/index.cjs CHANGED
@@ -774,7 +774,6 @@ const _sfc_main$Z = /* @__PURE__ */ vue.defineComponent({
774
774
  let translateX2 = vue.ref(0);
775
775
  let lastX = vue.ref(0);
776
776
  let lastTime = vue.ref(0);
777
- let swipeVelocity = vue.ref(0);
778
777
  let accumulatedDeltaX = vue.ref(0);
779
778
  let wheelTimeout;
780
779
  let autoPlayInterval;
@@ -962,7 +961,6 @@ const _sfc_main$Z = /* @__PURE__ */ vue.defineComponent({
962
961
  lastTime.value = Date.now();
963
962
  translateX2.value = getCurrentTransform();
964
963
  velocityTracker.value = [{ time: lastTime.value, position: lastX.value }];
965
- swipeVelocity.value = 0;
966
964
  isPressed.value = true;
967
965
  hasScrollDirectionLock.value = false;
968
966
  if (bglSlider.value) {
@@ -994,7 +992,6 @@ const _sfc_main$Z = /* @__PURE__ */ vue.defineComponent({
994
992
  lastX.value = x2;
995
993
  const cutoffTime = now - VELOCITY_SAMPLE_DURATION;
996
994
  velocityTracker.value = velocityTracker.value.filter((sample) => sample.time >= cutoffTime);
997
- swipeVelocity.value = getAverageVelocity();
998
995
  if (Math.abs(deltaX) > THRESHOLDS.TOUCH) {
999
996
  isDragging.value = true;
1000
997
  e.preventDefault();
@@ -1073,7 +1070,6 @@ const _sfc_main$Z = /* @__PURE__ */ vue.defineComponent({
1073
1070
  if (bglSlider.value) bglSlider.value.style.transition = "none";
1074
1071
  }, duration);
1075
1072
  velocityTracker.value = [];
1076
- swipeVelocity.value = 0;
1077
1073
  isDragging.value = false;
1078
1074
  hasScrollDirectionLock.value = false;
1079
1075
  }
@@ -1176,7 +1172,7 @@ const _sfc_main$Z = /* @__PURE__ */ vue.defineComponent({
1176
1172
  };
1177
1173
  }
1178
1174
  });
1179
- const Carousel = /* @__PURE__ */ _export_sfc(_sfc_main$Z, [["__scopeId", "data-v-b4d71e9e"]]);
1175
+ const Carousel = /* @__PURE__ */ _export_sfc(_sfc_main$Z, [["__scopeId", "data-v-519e4d32"]]);
1180
1176
  function _isPlaceholder(a2) {
1181
1177
  return a2 != null && typeof a2 === "object" && a2["@@functional/placeholder"] === true;
1182
1178
  }
@@ -8183,7 +8179,7 @@ const _sfc_main$W = /* @__PURE__ */ vue.defineComponent({
8183
8179
  emits: /* @__PURE__ */ vue.mergeModels(["update:selectedItems", "orderBy", "select", "lastItemVisible"], ["update:loading", "update:itemHeight", "update:selectedItems"]),
8184
8180
  setup(__props, { emit: __emit }) {
8185
8181
  vue.useCssVars((_ctx) => ({
8186
- "0984904d": vue.unref(computedItemHeight)
8182
+ "0c6a620a": vue.unref(computedItemHeight)
8187
8183
  }));
8188
8184
  const props2 = __props;
8189
8185
  const emit2 = __emit;
@@ -8198,7 +8194,6 @@ const _sfc_main$W = /* @__PURE__ */ vue.defineComponent({
8198
8194
  }
8199
8195
  );
8200
8196
  const data2 = vue.computed(() => props2.data);
8201
- vue.ref("");
8202
8197
  const {
8203
8198
  computedSchema,
8204
8199
  computedData,
@@ -8249,7 +8244,7 @@ const _sfc_main$W = /* @__PURE__ */ vue.defineComponent({
8249
8244
  mode: "table",
8250
8245
  getRowData: () => row
8251
8246
  });
8252
- return renderField(field, slots);
8247
+ return renderField({ ...field, label: "" }, slots);
8253
8248
  }
8254
8249
  const computedItemHeight = vue.computed(() => `${itemHeight.value}px`);
8255
8250
  vue.watch(
@@ -8363,7 +8358,7 @@ const _sfc_main$W = /* @__PURE__ */ vue.defineComponent({
8363
8358
  };
8364
8359
  }
8365
8360
  });
8366
- const DataTable = /* @__PURE__ */ _export_sfc(_sfc_main$W, [["__scopeId", "data-v-18572328"]]);
8361
+ const DataTable = /* @__PURE__ */ _export_sfc(_sfc_main$W, [["__scopeId", "data-v-a1cf8002"]]);
8367
8362
  function useDraggable(options = {}) {
8368
8363
  const isDragging = vue.ref(false);
8369
8364
  const dragElement = vue.ref(null);
@@ -11580,11 +11575,16 @@ const _sfc_main$R = /* @__PURE__ */ vue.defineComponent({
11580
11575
  const props2 = __props;
11581
11576
  const emit2 = __emit;
11582
11577
  const form = vue.ref();
11583
- let formData = vue.ref(props2.modelValue ? { ...props2.modelValue } : {});
11584
- let initialFormData = vue.ref(props2.modelValue ? { ...props2.modelValue } : {});
11578
+ const formData = vue.ref(structuredClone(props2.modelValue ?? {}));
11579
+ const initialFormData = vue.ref(structuredClone(props2.modelValue ?? {}));
11580
+ vue.onMounted(() => {
11581
+ if (props2.modelValue) {
11582
+ initialFormData.value = structuredClone(props2.modelValue);
11583
+ }
11584
+ });
11585
11585
  vue.watch(() => props2.modelValue, (newValue) => {
11586
11586
  if (newValue !== void 0) {
11587
- formData.value = { ...newValue };
11587
+ formData.value = structuredClone(newValue);
11588
11588
  }
11589
11589
  }, { immediate: true, deep: true });
11590
11590
  const resolvedSchema = vue.computed(() => {
@@ -11605,7 +11605,7 @@ const _sfc_main$R = /* @__PURE__ */ vue.defineComponent({
11605
11605
  }
11606
11606
  function handleSubmit() {
11607
11607
  emit2("submit", formData.value);
11608
- initialFormData.value = { ...formData.value };
11608
+ initialFormData.value = structuredClone(formData.value);
11609
11609
  }
11610
11610
  function shouldRenderField(field) {
11611
11611
  const condition = field.vIf ?? field["v-if"];
@@ -11630,7 +11630,7 @@ const _sfc_main$R = /* @__PURE__ */ vue.defineComponent({
11630
11630
  if (!shouldRenderField(field)) return null;
11631
11631
  return renderField(field);
11632
11632
  }
11633
- __expose({ form: form.value, isDirty: isDirty.value, validateForm });
11633
+ __expose({ form, isDirty: isDirty.value, validateForm });
11634
11634
  return (_ctx, _cache) => {
11635
11635
  return vue.openBlock(), vue.createElementBlock("form", {
11636
11636
  ref_key: "form",
@@ -38190,38 +38190,36 @@ const _hoisted_2$4 = { class: "flex gap-05" };
38190
38190
  const _sfc_main$9 = /* @__PURE__ */ vue.defineComponent({
38191
38191
  __name: "ModalForm",
38192
38192
  props: /* @__PURE__ */ vue.mergeModels({
38193
- side: { type: Boolean },
38194
- title: {},
38195
- width: {},
38196
- dismissable: { type: Boolean },
38197
- actions: {},
38198
38193
  schema: {},
38194
+ modelValue: {},
38195
+ "onUpdate:modelValue": { type: Function },
38199
38196
  onSubmit: { type: Function },
38197
+ onDelete: { type: Function },
38200
38198
  onDuplicate: { type: Function },
38201
38199
  submitText: {},
38202
38200
  cancelText: {},
38203
38201
  deleteText: {},
38204
38202
  duplicateText: {},
38205
- onDelete: { type: Function },
38206
- visible: { type: Boolean },
38207
38203
  onError: { type: Function },
38208
- modelValue: {}
38204
+ side: { type: Boolean },
38205
+ title: {},
38206
+ width: {},
38207
+ dismissable: { type: Boolean },
38208
+ visible: { type: Boolean },
38209
+ actions: {},
38210
+ class: {}
38209
38211
  }, {
38210
38212
  "modelValue": {
38211
38213
  default: {}
38212
38214
  },
38213
38215
  "modelModifiers": {}
38214
38216
  }),
38215
- emits: /* @__PURE__ */ vue.mergeModels(["update:visible"], ["update:modelValue"]),
38217
+ emits: /* @__PURE__ */ vue.mergeModels(["update:modelValue", "update:visible"], ["update:modelValue"]),
38216
38218
  setup(__props, { expose: __expose, emit: __emit }) {
38217
38219
  const props2 = __props;
38218
38220
  const emit2 = __emit;
38219
38221
  const bagel = useBagel();
38220
38222
  const modal = vue.ref();
38221
- const computedFormSchema = vue.computed(() => {
38222
- if (typeof props2.schema === "function") return props2.schema();
38223
- return props2.schema;
38224
- });
38225
38223
  const formData = vue.useModel(__props, "modelValue");
38226
38224
  const form = vue.ref();
38227
38225
  const closeModal = () => {
@@ -38261,7 +38259,7 @@ const _sfc_main$9 = /* @__PURE__ */ vue.defineComponent({
38261
38259
  visible: _ctx.visible,
38262
38260
  dismissable: _ctx.dismissable,
38263
38261
  title: _ctx.title,
38264
- "onUpdate:visible": _cache[1] || (_cache[1] = ($event) => emit2("update:visible", $event))
38262
+ "onUpdate:visible": _cache[3] || (_cache[3] = ($event) => emit2("update:visible", $event))
38265
38263
  }, vue.createSlots({
38266
38264
  default: vue.withCtx(() => [
38267
38265
  _ctx.visible ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$R), {
@@ -38269,8 +38267,11 @@ const _sfc_main$9 = /* @__PURE__ */ vue.defineComponent({
38269
38267
  ref_key: "form",
38270
38268
  ref: form,
38271
38269
  modelValue: formData.value,
38272
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => formData.value = $event),
38273
- schema: computedFormSchema.value,
38270
+ "onUpdate:modelValue": [
38271
+ _cache[0] || (_cache[0] = ($event) => formData.value = $event),
38272
+ _cache[1] || (_cache[1] = ($event) => emit2("update:modelValue", $event))
38273
+ ],
38274
+ schema: _ctx.schema,
38274
38275
  onSubmit: runSubmit
38275
38276
  }, null, 8, ["modelValue", "schema"])) : vue.createCommentVNode("", true)
38276
38277
  ]),
@@ -38304,8 +38305,11 @@ const _sfc_main$9 = /* @__PURE__ */ vue.defineComponent({
38304
38305
  icon: "copy_all",
38305
38306
  flat: "",
38306
38307
  value: _ctx.duplicateText || "Duplicate",
38307
- onClick: _ctx.onDuplicate
38308
- }, null, 8, ["value", "onClick"])) : vue.createCommentVNode("", true),
38308
+ onClick: _cache[2] || (_cache[2] = ($event) => {
38309
+ var _a2;
38310
+ return (_a2 = _ctx.onDuplicate) == null ? void 0 : _a2.call(_ctx, formData.value);
38311
+ })
38312
+ }, null, 8, ["value"])) : vue.createCommentVNode("", true),
38309
38313
  _ctx.onSubmit ? (vue.openBlock(), vue.createBlock(vue.unref(Btn), {
38310
38314
  key: 1,
38311
38315
  value: _ctx.submitText || "Submit",
@@ -38319,7 +38323,7 @@ const _sfc_main$9 = /* @__PURE__ */ vue.defineComponent({
38319
38323
  };
38320
38324
  }
38321
38325
  });
38322
- const ModalForm = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-7a736620"]]);
38326
+ const ModalForm = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-1c0f6894"]]);
38323
38327
  const _hoisted_1$5 = { class: "full-nav" };
38324
38328
  const _hoisted_2$3 = { class: "nav-scroll" };
38325
38329
  const _hoisted_3$2 = { class: "nav-links-wrapper" };