@bagelink/vue 0.0.1224 → 0.0.1232
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.
- package/dist/components/BglComponent.vue.d.ts.map +1 -1
- package/dist/components/Btn.vue.d.ts.map +1 -1
- package/dist/components/Calendar/components/week/DayEvent.vue.d.ts.map +1 -1
- package/dist/components/Spreadsheet/Index.vue.d.ts +1 -0
- package/dist/components/Spreadsheet/Index.vue.d.ts.map +1 -1
- package/dist/components/form/BagelForm.vue.d.ts +1 -0
- package/dist/components/form/BagelForm.vue.d.ts.map +1 -1
- package/dist/components/lightbox/Lightbox.vue.d.ts.map +1 -1
- package/dist/components/lightbox/lightbox.types.d.ts +8 -2
- package/dist/components/lightbox/lightbox.types.d.ts.map +1 -1
- package/dist/composables/useSchemaField.d.ts +9 -5
- package/dist/composables/useSchemaField.d.ts.map +1 -1
- package/dist/index.cjs +70 -38
- package/dist/index.mjs +71 -39
- package/dist/style.css +84 -81
- package/dist/types/BagelForm.d.ts +2 -1
- package/dist/types/BagelForm.d.ts.map +1 -1
- package/dist/utils/BagelFormUtils.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/Btn.vue +3 -0
- package/src/components/Calendar/components/week/DayEvent.vue +0 -1
- package/src/components/Spreadsheet/Index.vue +41 -20
- package/src/components/form/BagelForm.vue +6 -2
- package/src/components/lightbox/Lightbox.vue +5 -5
- package/src/components/lightbox/lightbox.types.ts +3 -2
- package/src/composables/useSchemaField.ts +32 -12
- package/src/types/BagelForm.ts +2 -1
- package/src/utils/BagelFormUtils.ts +2 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BglComponent.vue.d.ts","sourceRoot":"","sources":["../../src/components/BglComponent.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"BglComponent.vue.d.ts","sourceRoot":"","sources":["../../src/components/BglComponent.vue"],"names":[],"mappings":"AAAA,OA6LO,KAAK,EAAE,KAAK,EAAE,MAAM,eAAe,CAAA;yBAmBzB,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;WAqP1D,mBAAmB,CAAC;;;eAlPpB,KAAK,CAAC,CAAC,CAAC;aACV,MAAM;qBACE,GAAG;qBACH,MAAM;mBA+O0E,CAAC,4BAA2B;oBACzG,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;yBAnCkB,GAAG;;;OAwCpB,OAAO,KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,CAAC,OAAO,WAAW,CAAC,CAAA;CAAE;AA/PzE,wBA+P4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Btn.vue.d.ts","sourceRoot":"","sources":["../../src/components/Btn.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Btn.vue.d.ts","sourceRoot":"","sources":["../../src/components/Btn.vue"],"names":[],"mappings":"AA2QA,OAAO,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAMxD,KAAK,WAAW,GAAG;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,IAAI,CAAC,EAAE,QAAQ,CAAA;IACf,OAAO,CAAC,EAAE,QAAQ,CAAA;IAClB,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,IAAI,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAA;IACpC,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,UAAU,KAAK,IAAI,CAAA;CACjC,CAAC;AAiDH,iBAAS,cAAc;WA4IT,OAAO,IAA6B;;yBAVpB,GAAG;;;;EAehC;AAcD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;aAlNT,CAAC,CAAC,EAAE,UAAU,KAAK,IAAI;UAT1B,QAAQ,GAAG,QAAQ,GAAG,OAAO;cATzB,OAAO;YAMT,OAAO;aACN,OAAO;WAQT,OAAO;aALL,OAAO;UACV,MAAM;QAKR,MAAM;YACF,OAAO;6EA2NhB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DayEvent.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/Calendar/components/week/DayEvent.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DayEvent.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/Calendar/components/week/DayEvent.vue"],"names":[],"mappings":"AA0kBA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AACnC,OAAO,KAAK,IAAI,MAAM,oBAAoB,CAAA;AAC1C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAA;AACrE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0CAA0C,CAAA;AAC9E,OAAO,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAA;AA4Y5D,iBAAS,cAAc;WA+LT,OAAO,IAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAVf,GAAG;;;;EAerC;AAgDD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;cAQH,QAAQ,CAAC,cAAc,CAAC;;;;cAIxB,QAAQ,CAAC,IAAI,CAAC;;;;cAId,QAAQ,CAAC,eAAe,CAAC;;;;cAIzB,QAAQ,CAAC,OAAO,CAAC;;;;cAIjB,QAAQ,CAAC,QAAQ,CAAC;;;;;sBAxnBU,cAAc;sBAAgB,WAAW;;;;;;;;cAwmBrE,QAAQ,CAAC,cAAc,CAAC;;;;cAIxB,QAAQ,CAAC,IAAI,CAAC;;;;cAId,QAAQ,CAAC,eAAe,CAAC;;;;cAIzB,QAAQ,CAAC,OAAO,CAAC;;;;cAIjB,QAAQ,CAAC,QAAQ,CAAC;;;;;sBAxnBU,cAAc;sBAAgB,WAAW;;;;;;4FA6nBrF,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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Index.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Spreadsheet/Index.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Index.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Spreadsheet/Index.vue"],"names":[],"mappings":"AAs2BA,KAAK,YAAY,GAAG,MAAM,GAAG,QAAQ,GAAG,UAAU,GAAG,MAAM,GAAG,YAAY,GAAG,OAAO,GAAG,SAAS,CAAA;AAEhG,UAAU,YAAY;IACrB,GAAG,EAAE,MAAM,CAAA;IACX,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,MAAM,CAAC,EAAE,YAAY,CAAA;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,YAAY,CAAC,EAAE,GAAG,CAAA;CAClB;AAGD,UAAU,KAAK;IACd,UAAU,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,CAAA;IACtC,YAAY,CAAC,EAAE,YAAY,EAAE,CAAA;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,WAAW,CAAC,EAAE,OAAO,CAAA;CACrB;;;;;;AA6mCD,wBAQG"}
|
|
@@ -23,6 +23,7 @@ declare const _default: <T extends {
|
|
|
23
23
|
submit: () => Promise<void>;
|
|
24
24
|
isDirty: import('@vue-macros/reactivity-transform/macros.js').ComputedVariable<false> | import('@vue-macros/reactivity-transform/macros.js').ComputedVariable<true>;
|
|
25
25
|
validateForm: () => boolean;
|
|
26
|
+
formState: "error" | "success" | "idle" | "submitting";
|
|
26
27
|
}): any;
|
|
27
28
|
success?(_: {}): any;
|
|
28
29
|
error?(_: {}): any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BagelForm.vue.d.ts","sourceRoot":"","sources":["../../../src/components/form/BagelForm.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"BagelForm.vue.d.ts","sourceRoot":"","sources":["../../../src/components/form/BagelForm.vue"],"names":[],"mappings":"AAoHA,OAAO,KAAK,EAAE,gBAAgB,EAAS,MAAM,eAAe,CAAA;AAK5D,MAAM,WAAW,cAAc,CAAC,EAAE;IACjC,UAAU,CAAC,EAAE,EAAE,CAAA;IACf,MAAM,CAAC,EAAE,gBAAgB,CAAC,EAAE,CAAC,CAAA;IAC7B,GAAG,CAAC,EAAE,MAAM,GAAG,UAAU,CAAA;IACzB,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,EAAE,KAAK,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAA;CAC7C;yBAEgB,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;WA+L1D,mBAAmB,CAAC;;6KAAkE,CAAC,4BAA2B;oBACzG,OAAO,KAAK,EAAE,gBAAgB;;;;MAAsB,GAAG,IAAI;WACpE,GAAG;;yBAxCkB,GAAG;;;;;;YACJ,GAAG;yBACF,GAAG;uBACL,GAAG;;cAlJzB,mBAAmB,SAAS,CAAC,KAAG,IAAI;OA4L7B,OAAO,KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,CAAC,OAAO,WAAW,CAAC,CAAA;CAAE;AAzMzE,wBAyM4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Lightbox.vue.d.ts","sourceRoot":"","sources":["../../../src/components/lightbox/Lightbox.vue"],"names":[],"mappings":"AAgRA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA;AAUpD,iBAAS,IAAI,CAAC,IAAI,EAAE,YAAY,EAAE,UAAU,CAAC,EAAE,YAAY,EAAE,QAK5D;AAED,iBAAS,KAAK,SAGb;;;;;
|
|
1
|
+
{"version":3,"file":"Lightbox.vue.d.ts","sourceRoot":"","sources":["../../../src/components/lightbox/Lightbox.vue"],"names":[],"mappings":"AAgRA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA;AAUpD,iBAAS,IAAI,CAAC,IAAI,EAAE,YAAY,EAAE,UAAU,CAAC,EAAE,YAAY,EAAE,QAK5D;AAED,iBAAS,KAAK,SAGb;;;;;AAsjBD,wBAOG"}
|
|
@@ -1,5 +1,11 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type XORSrcPath = {
|
|
2
2
|
src: string;
|
|
3
|
+
pathKey?: never;
|
|
4
|
+
} | {
|
|
5
|
+
src?: never;
|
|
6
|
+
pathKey: string;
|
|
7
|
+
};
|
|
8
|
+
export type LightboxItem = XORSrcPath & {
|
|
3
9
|
type: string;
|
|
4
10
|
name: string;
|
|
5
11
|
thumbnail?: string;
|
|
@@ -7,5 +13,5 @@ export interface LightboxItem {
|
|
|
7
13
|
enableZoom?: boolean;
|
|
8
14
|
openFile?: boolean;
|
|
9
15
|
download?: boolean;
|
|
10
|
-
}
|
|
16
|
+
};
|
|
11
17
|
//# sourceMappingURL=lightbox.types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lightbox.types.d.ts","sourceRoot":"","sources":["../../../src/components/lightbox/lightbox.types.ts"],"names":[],"mappings":"AAAA,MAAM,
|
|
1
|
+
{"version":3,"file":"lightbox.types.d.ts","sourceRoot":"","sources":["../../../src/components/lightbox/lightbox.types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,UAAU,GAAG;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,KAAK,CAAA;CAAE,GAAG;IAAE,GAAG,CAAC,EAAE,KAAK,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAAA;AAE5F,MAAM,MAAM,YAAY,GAAG,UAAU,GAAG;IACvC,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAA;CAClB,CAAA"}
|
|
@@ -1,18 +1,22 @@
|
|
|
1
1
|
import { VNode } from 'vue';
|
|
2
|
-
import { BaseBagelField } from '../types/BagelForm';
|
|
2
|
+
import { BaseBagelField, BglFormSchemaT } from '../types/BagelForm';
|
|
3
3
|
export interface UseSchemaFieldOptions<T> {
|
|
4
4
|
mode?: 'form' | 'preview' | 'table';
|
|
5
5
|
getRowData?: () => T;
|
|
6
6
|
onUpdate?: (field: BaseBagelField<T>, value: any) => void;
|
|
7
7
|
includeUnset?: boolean;
|
|
8
8
|
}
|
|
9
|
+
interface SlotProps<T> {
|
|
10
|
+
row: T;
|
|
11
|
+
field: BaseBagelField<T>;
|
|
12
|
+
}
|
|
13
|
+
type SlotFunction<T> = (props: SlotProps<T>) => any;
|
|
14
|
+
type SupportedSlot<T> = BglFormSchemaT<T> | VNode | SlotFunction<T>;
|
|
9
15
|
export declare function useSchemaField<T extends {
|
|
10
16
|
[key: string]: any;
|
|
11
17
|
}>(options: UseSchemaFieldOptions<T>): {
|
|
12
|
-
renderField: (field: BaseBagelField<T>, slots?: Record<string,
|
|
13
|
-
row: T;
|
|
14
|
-
field: BaseBagelField<T>;
|
|
15
|
-
}) => any>) => VNode | null;
|
|
18
|
+
renderField: (field: BaseBagelField<T>, slots?: Record<string, SupportedSlot<T>>) => VNode | null;
|
|
16
19
|
getComponent: (field: BaseBagelField<T>) => any;
|
|
17
20
|
};
|
|
21
|
+
export {};
|
|
18
22
|
//# sourceMappingURL=useSchemaField.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useSchemaField.d.ts","sourceRoot":"","sources":["../../src/composables/useSchemaField.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,KAAK,CAAA;AAChC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA;
|
|
1
|
+
{"version":3,"file":"useSchemaField.d.ts","sourceRoot":"","sources":["../../src/composables/useSchemaField.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,KAAK,CAAA;AAChC,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA;AAwBxE,MAAM,WAAW,qBAAqB,CAAC,CAAC;IACvC,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,CAAA;IACnC,UAAU,CAAC,EAAE,MAAM,CAAC,CAAA;IACpB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,cAAc,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,GAAG,KAAK,IAAI,CAAA;IACzD,YAAY,CAAC,EAAE,OAAO,CAAA;CACtB;AAID,UAAU,SAAS,CAAC,CAAC;IAAI,GAAG,EAAE,CAAC,CAAC;IAAC,KAAK,EAAE,cAAc,CAAC,CAAC,CAAC,CAAA;CAAE;AAC3D,KAAK,YAAY,CAAC,CAAC,IAAI,CAAC,KAAK,EAAE,SAAS,CAAC,CAAC,CAAC,KAAK,GAAG,CAAA;AACnD,KAAK,aAAa,CAAC,CAAC,IAAI,cAAc,CAAC,CAAC,CAAC,GAAG,KAAK,GAAG,YAAY,CAAC,CAAC,CAAC,CAAA;AAEnE,wBAAgB,cAAc,CAAC,CAAC,SAAS;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,EAAE,OAAO,EAAE,qBAAqB,CAAC,CAAC,CAAC;yBAkCzF,cAAc,CAAC,CAAC,CAAC,UAChB,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC,KACtC,KAAK,GAAG,IAAI;0BAjCc,cAAc,CAAC,CAAC,CAAC;EAuM9C"}
|
package/dist/index.cjs
CHANGED
|
@@ -317,7 +317,7 @@ const _sfc_main$1k = /* @__PURE__ */ vue.defineComponent({
|
|
|
317
317
|
};
|
|
318
318
|
}
|
|
319
319
|
});
|
|
320
|
-
const Btn = /* @__PURE__ */ _export_sfc(_sfc_main$1k, [["__scopeId", "data-v-
|
|
320
|
+
const Btn = /* @__PURE__ */ _export_sfc(_sfc_main$1k, [["__scopeId", "data-v-bfc435b3"]]);
|
|
321
321
|
const _hoisted_1$17 = ["dismissable"];
|
|
322
322
|
const _hoisted_2$Q = { class: "m-0" };
|
|
323
323
|
const _sfc_main$1j = /* @__PURE__ */ vue.defineComponent({
|
|
@@ -2814,7 +2814,6 @@ const _sfc_main$16 = /* @__PURE__ */ vue.defineComponent({
|
|
|
2814
2814
|
const clientXDragStart = vue.ref(null);
|
|
2815
2815
|
const changeInQuartersOnDrag = vue.ref(0);
|
|
2816
2816
|
const changeInDaysOnDrag = vue.ref(0);
|
|
2817
|
-
vue.ref(false);
|
|
2818
2817
|
const timeStartDragStart = vue.ref(props2.eventProp.time.start);
|
|
2819
2818
|
const timeEndDragStart = vue.ref(props2.eventProp.time.end);
|
|
2820
2819
|
const dragMoveListenerNameAndCallbacks = [
|
|
@@ -3164,7 +3163,7 @@ const _sfc_main$16 = /* @__PURE__ */ vue.defineComponent({
|
|
|
3164
3163
|
};
|
|
3165
3164
|
}
|
|
3166
3165
|
});
|
|
3167
|
-
const DayEvent = /* @__PURE__ */ _export_sfc(_sfc_main$16, [["__scopeId", "data-v-
|
|
3166
|
+
const DayEvent = /* @__PURE__ */ _export_sfc(_sfc_main$16, [["__scopeId", "data-v-6b5ab9be"]]);
|
|
3168
3167
|
const _hoisted_1$W = ["id", "onClick"];
|
|
3169
3168
|
const _sfc_main$15 = /* @__PURE__ */ vue.defineComponent({
|
|
3170
3169
|
__name: "Day",
|
|
@@ -10763,6 +10762,11 @@ function useSchemaField(options) {
|
|
|
10763
10762
|
}
|
|
10764
10763
|
return typeof field.$el === "object" ? field.$el : componentMap[field.$el] ?? field.$el ?? "div";
|
|
10765
10764
|
}
|
|
10765
|
+
function renderChild(child, slots) {
|
|
10766
|
+
if (typeof child === "string") return child;
|
|
10767
|
+
if (vue.isVNode(child)) return child;
|
|
10768
|
+
return renderField(child, slots);
|
|
10769
|
+
}
|
|
10766
10770
|
function renderField(field, slots) {
|
|
10767
10771
|
const Component = getComponent(field);
|
|
10768
10772
|
if (!Component) return null;
|
|
@@ -10842,17 +10846,24 @@ function useSchemaField(options) {
|
|
|
10842
10846
|
props2.class = classify(currentValue, rowData, fieldClass, props2.class);
|
|
10843
10847
|
const componentSlots = {};
|
|
10844
10848
|
if (children2 == null ? void 0 : children2.length) {
|
|
10845
|
-
componentSlots.default = () => children2.map((child) =>
|
|
10846
|
-
if (typeof child === "string") return child;
|
|
10847
|
-
return renderField(child, slots);
|
|
10848
|
-
}).filter(Boolean);
|
|
10849
|
+
componentSlots.default = () => children2.map((child) => renderChild(child, slots)).filter(Boolean);
|
|
10849
10850
|
}
|
|
10850
10851
|
if (isSlotValueComponent && transformedValue !== void 0) {
|
|
10851
10852
|
componentSlots.default = () => (transformedValue == null ? void 0 : transformedValue.toString()) || "";
|
|
10852
10853
|
}
|
|
10853
10854
|
if (fieldSlots) {
|
|
10854
10855
|
Object.entries(fieldSlots).forEach(([name, slot]) => {
|
|
10855
|
-
componentSlots[name] =
|
|
10856
|
+
componentSlots[name] = () => {
|
|
10857
|
+
if (Array.isArray(slot)) {
|
|
10858
|
+
return slot.map((schemaField) => renderField(schemaField, slots));
|
|
10859
|
+
} else if (vue.isVNode(slot)) {
|
|
10860
|
+
return slot;
|
|
10861
|
+
} else if (typeof slot === "function") {
|
|
10862
|
+
const slotFn = slot;
|
|
10863
|
+
return slotFn({ row: rowData, field });
|
|
10864
|
+
}
|
|
10865
|
+
return slot;
|
|
10866
|
+
};
|
|
10856
10867
|
});
|
|
10857
10868
|
}
|
|
10858
10869
|
const slotContent = field.id && (slots == null ? void 0 : slots[field.id]) ? slots[field.id]({ row: rowData, field }) : void 0;
|
|
@@ -15107,9 +15118,12 @@ const _sfc_main$S = /* @__PURE__ */ vue.defineComponent({
|
|
|
15107
15118
|
async function handleSubmit() {
|
|
15108
15119
|
var _a2;
|
|
15109
15120
|
try {
|
|
15121
|
+
if (formState.value === "submitting") return;
|
|
15122
|
+
formState.value = "submitting";
|
|
15110
15123
|
await ((_a2 = props2.onSubmit) == null ? void 0 : _a2.call(props2, formData.value));
|
|
15111
15124
|
initialFormData.value = structuredClone(formData.value);
|
|
15112
15125
|
formState.value = "success";
|
|
15126
|
+
window.parent.postMessage({ type: "BAGEL_FORM_SUCCESS", data: formData.value }, "*");
|
|
15113
15127
|
} catch (error) {
|
|
15114
15128
|
formState.value = "error";
|
|
15115
15129
|
}
|
|
@@ -15147,7 +15161,8 @@ const _sfc_main$S = /* @__PURE__ */ vue.defineComponent({
|
|
|
15147
15161
|
vue.renderSlot(_ctx.$slots, "submit", {
|
|
15148
15162
|
submit: handleSubmit,
|
|
15149
15163
|
isDirty: isDirty.value,
|
|
15150
|
-
validateForm
|
|
15164
|
+
validateForm,
|
|
15165
|
+
formState: formState.value
|
|
15151
15166
|
}),
|
|
15152
15167
|
formState.value === "success" ? vue.renderSlot(_ctx.$slots, "success", { key: 2 }) : vue.createCommentVNode("", true),
|
|
15153
15168
|
formState.value === "error" ? vue.renderSlot(_ctx.$slots, "error", { key: 3 }) : vue.createCommentVNode("", true)
|
|
@@ -42146,7 +42161,7 @@ const _hoisted_5$1 = {
|
|
|
42146
42161
|
};
|
|
42147
42162
|
const _hoisted_6$1 = ["onClick"];
|
|
42148
42163
|
const _hoisted_7$1 = ["onClick"];
|
|
42149
|
-
const _hoisted_8$1 = ["onMousedown", "onMouseover", "onFocusin", "onDblclick", "onKeydown"];
|
|
42164
|
+
const _hoisted_8$1 = ["tabindex", "onMousedown", "onMouseover", "onFocusin", "onDblclick", "onKeydown"];
|
|
42150
42165
|
const _hoisted_9$1 = ["value", "onInput"];
|
|
42151
42166
|
const _hoisted_10$1 = { class: "spreadsheet-cell spreadsheetCellPlaceHolder" };
|
|
42152
42167
|
const _hoisted_11$1 = {
|
|
@@ -42166,7 +42181,7 @@ const _hoisted_16 = {
|
|
|
42166
42181
|
};
|
|
42167
42182
|
const _hoisted_17 = ["onClick"];
|
|
42168
42183
|
const _hoisted_18 = ["onClick"];
|
|
42169
|
-
const _hoisted_19 = ["onMousedown", "onMouseover", "onFocusin", "onDblclick", "onKeydown"];
|
|
42184
|
+
const _hoisted_19 = ["tabindex", "onMousedown", "onMouseover", "onFocusin", "onDblclick", "onKeydown"];
|
|
42170
42185
|
const _hoisted_20 = ["value", "onInput"];
|
|
42171
42186
|
const _hoisted_21 = { class: "spreadsheet-cell spreadsheetCellPlaceHolder" };
|
|
42172
42187
|
const _hoisted_22 = {
|
|
@@ -42250,7 +42265,8 @@ const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
|
|
|
42250
42265
|
format: (configuredColumn == null ? void 0 : configuredColumn.format) ?? "text",
|
|
42251
42266
|
width: configuredColumn == null ? void 0 : configuredColumn.width,
|
|
42252
42267
|
fixed: (configuredColumn == null ? void 0 : configuredColumn.fixed) ?? false,
|
|
42253
|
-
hidden: (configuredColumn == null ? void 0 : configuredColumn.hidden) ?? false
|
|
42268
|
+
hidden: (configuredColumn == null ? void 0 : configuredColumn.hidden) ?? false,
|
|
42269
|
+
defaultValue: configuredColumn == null ? void 0 : configuredColumn.defaultValue
|
|
42254
42270
|
};
|
|
42255
42271
|
});
|
|
42256
42272
|
});
|
|
@@ -42325,7 +42341,6 @@ const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
|
|
|
42325
42341
|
const isSelecting = vue.ref(false);
|
|
42326
42342
|
const selectionStart = vue.ref(null);
|
|
42327
42343
|
const selectionEnd = vue.ref(null);
|
|
42328
|
-
vue.ref([]);
|
|
42329
42344
|
const editingCell = vue.ref(null);
|
|
42330
42345
|
const editInputRef = vue.ref(/* @__PURE__ */ new Map());
|
|
42331
42346
|
function setInputRef(el, key) {
|
|
@@ -42420,7 +42435,7 @@ const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
|
|
|
42420
42435
|
if (column == null ? void 0 : column.locked) return;
|
|
42421
42436
|
saveState("cell");
|
|
42422
42437
|
const parsedValue = parseValueForFormat(newValue, column == null ? void 0 : column.format);
|
|
42423
|
-
localRows.value[rowIndex][key] = parsedValue;
|
|
42438
|
+
localRows.value[rowIndex][key] = parsedValue ?? (column == null ? void 0 : column.defaultValue) ?? ((column == null ? void 0 : column.format) === "boolean" ? false : "");
|
|
42424
42439
|
emitUpdate();
|
|
42425
42440
|
}
|
|
42426
42441
|
const fixedColumns = vue.computed(() => {
|
|
@@ -42432,7 +42447,11 @@ const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
|
|
|
42432
42447
|
function createEmptyRow() {
|
|
42433
42448
|
const newRow = {};
|
|
42434
42449
|
columns.value.forEach((col) => {
|
|
42435
|
-
|
|
42450
|
+
if (col.defaultValue !== void 0) {
|
|
42451
|
+
newRow[col.key] = col.defaultValue;
|
|
42452
|
+
} else {
|
|
42453
|
+
newRow[col.key] = col.format === "boolean" ? false : "";
|
|
42454
|
+
}
|
|
42436
42455
|
});
|
|
42437
42456
|
return newRow;
|
|
42438
42457
|
}
|
|
@@ -42512,6 +42531,9 @@ const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
|
|
|
42512
42531
|
const input = editInputRef.value.get(inputKey);
|
|
42513
42532
|
if (input) {
|
|
42514
42533
|
input.focus();
|
|
42534
|
+
if (initialKey !== void 0) {
|
|
42535
|
+
input.value = initialKey;
|
|
42536
|
+
}
|
|
42515
42537
|
}
|
|
42516
42538
|
});
|
|
42517
42539
|
}
|
|
@@ -42526,7 +42548,17 @@ const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
|
|
|
42526
42548
|
}
|
|
42527
42549
|
editingCell.value = null;
|
|
42528
42550
|
editingOriginalValue.value = null;
|
|
42529
|
-
|
|
42551
|
+
}
|
|
42552
|
+
function handleStopEditingAndBlur(cancelled = false) {
|
|
42553
|
+
vue.nextTick(() => {
|
|
42554
|
+
stopEditing(cancelled);
|
|
42555
|
+
vue.nextTick(() => {
|
|
42556
|
+
const spreadsheet = document.querySelector(".spreadsheet");
|
|
42557
|
+
if (spreadsheet) {
|
|
42558
|
+
spreadsheet.focus();
|
|
42559
|
+
}
|
|
42560
|
+
});
|
|
42561
|
+
});
|
|
42530
42562
|
}
|
|
42531
42563
|
window.addEventListener("mouseup", handleMouseUp);
|
|
42532
42564
|
function selectEntireRow(rowIndex) {
|
|
@@ -42679,7 +42711,7 @@ const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
|
|
|
42679
42711
|
locked: !isCellEditable(col.key)
|
|
42680
42712
|
}),
|
|
42681
42713
|
style: vue.normalizeStyle({ width: col.width }),
|
|
42682
|
-
tabindex:
|
|
42714
|
+
tabindex: col.hidden ? void 0 : 0,
|
|
42683
42715
|
onMousedown: ($event) => handleMouseDown(rowIndex, fixedColumns.value.indexOf(col)),
|
|
42684
42716
|
onMouseover: ($event) => handleMouseOver(rowIndex, fixedColumns.value.indexOf(col)),
|
|
42685
42717
|
onFocusin: ($event) => handleMouseOver(rowIndex, fixedColumns.value.indexOf(col)),
|
|
@@ -42693,12 +42725,11 @@ const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
|
|
|
42693
42725
|
value: row[col.key],
|
|
42694
42726
|
type: "text",
|
|
42695
42727
|
class: "spreadsheet-input",
|
|
42696
|
-
autofocus: "",
|
|
42697
42728
|
onInput: (e) => updateCell(rowIndex, col.key, e.target.value),
|
|
42698
|
-
onBlur: _cache[1] || (_cache[1] = ($event) =>
|
|
42729
|
+
onBlur: _cache[1] || (_cache[1] = ($event) => handleStopEditingAndBlur(false)),
|
|
42699
42730
|
onKeydown: [
|
|
42700
|
-
_cache[2] || (_cache[2] = vue.withKeys(vue.withModifiers(($event) =>
|
|
42701
|
-
_cache[3] || (_cache[3] = vue.withKeys(vue.withModifiers(($event) =>
|
|
42731
|
+
_cache[2] || (_cache[2] = vue.withKeys(vue.withModifiers(($event) => handleStopEditingAndBlur(false), ["prevent"]), ["enter"])),
|
|
42732
|
+
_cache[3] || (_cache[3] = vue.withKeys(vue.withModifiers(($event) => handleStopEditingAndBlur(true), ["prevent"]), ["esc"]))
|
|
42702
42733
|
],
|
|
42703
42734
|
onMousedown: _cache[4] || (_cache[4] = vue.withModifiers(() => {
|
|
42704
42735
|
}, ["stop"]))
|
|
@@ -42763,7 +42794,7 @@ const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
|
|
|
42763
42794
|
locked: !isCellEditable(col.key)
|
|
42764
42795
|
}),
|
|
42765
42796
|
style: vue.normalizeStyle({ width: col.width }),
|
|
42766
|
-
tabindex:
|
|
42797
|
+
tabindex: col.hidden ? void 0 : 0,
|
|
42767
42798
|
onMousedown: ($event) => handleMouseDown(rowIndex, fixedColumns.value.length + colIndex),
|
|
42768
42799
|
onMouseover: ($event) => handleMouseOver(rowIndex, fixedColumns.value.length + colIndex),
|
|
42769
42800
|
onFocusin: ($event) => handleMouseOver(rowIndex, fixedColumns.value.length + colIndex),
|
|
@@ -42777,12 +42808,11 @@ const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
|
|
|
42777
42808
|
value: row[col.key],
|
|
42778
42809
|
type: "text",
|
|
42779
42810
|
class: "spreadsheet-input",
|
|
42780
|
-
autofocus: "",
|
|
42781
42811
|
onInput: (e) => updateCell(rowIndex, col.key, e.target.value),
|
|
42782
|
-
onBlur: _cache[6] || (_cache[6] = ($event) =>
|
|
42812
|
+
onBlur: _cache[6] || (_cache[6] = ($event) => handleStopEditingAndBlur(false)),
|
|
42783
42813
|
onKeydown: [
|
|
42784
|
-
_cache[7] || (_cache[7] = vue.withKeys(vue.withModifiers(($event) =>
|
|
42785
|
-
_cache[8] || (_cache[8] = vue.withKeys(vue.withModifiers(($event) =>
|
|
42814
|
+
_cache[7] || (_cache[7] = vue.withKeys(vue.withModifiers(($event) => handleStopEditingAndBlur(false), ["prevent"]), ["enter"])),
|
|
42815
|
+
_cache[8] || (_cache[8] = vue.withKeys(vue.withModifiers(($event) => handleStopEditingAndBlur(true), ["prevent"]), ["esc"]))
|
|
42786
42816
|
],
|
|
42787
42817
|
onMousedown: _cache[9] || (_cache[9] = vue.withModifiers(() => {
|
|
42788
42818
|
}, ["stop"]))
|
|
@@ -42829,7 +42859,7 @@ const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
|
|
|
42829
42859
|
};
|
|
42830
42860
|
}
|
|
42831
42861
|
});
|
|
42832
|
-
const Index = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-
|
|
42862
|
+
const Index = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-ea9bc123"]]);
|
|
42833
42863
|
const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
|
|
42834
42864
|
__name: "Title",
|
|
42835
42865
|
props: {
|
|
@@ -43697,7 +43727,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
43697
43727
|
return (_ctx, _cache) => {
|
|
43698
43728
|
return vue.openBlock(), vue.createBlock(vue.Transition, { name: "fade" }, {
|
|
43699
43729
|
default: vue.withCtx(() => {
|
|
43700
|
-
var _a2, _b, _c, _d, _e2, _f, _g, _h;
|
|
43730
|
+
var _a2, _b, _c, _d, _e2, _f, _g, _h, _i, _j;
|
|
43701
43731
|
return [
|
|
43702
43732
|
vue.unref(isOpen) ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
43703
43733
|
key: 0,
|
|
@@ -43758,7 +43788,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
43758
43788
|
onClick: _cache[2] || (_cache[2] = ($event) => zoom.value++)
|
|
43759
43789
|
}, null, 8, ["disabled"])
|
|
43760
43790
|
])) : vue.createCommentVNode("", true),
|
|
43761
|
-
((_c = vue.unref(currentItem)) == null ? void 0 : _c.openFile) ? (vue.openBlock(), vue.createBlock(vue.unref(Btn), {
|
|
43791
|
+
((_c = vue.unref(currentItem)) == null ? void 0 : _c.openFile) && ((_d = vue.unref(currentItem)) == null ? void 0 : _d.src) ? (vue.openBlock(), vue.createBlock(vue.unref(Btn), {
|
|
43762
43792
|
key: 1,
|
|
43763
43793
|
class: "color-white",
|
|
43764
43794
|
round: "",
|
|
@@ -43766,10 +43796,10 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
43766
43796
|
flat: "",
|
|
43767
43797
|
iconEnd: "arrow_outward",
|
|
43768
43798
|
value: "Open File",
|
|
43769
|
-
href: (
|
|
43799
|
+
href: (_e2 = vue.unref(currentItem)) == null ? void 0 : _e2.src,
|
|
43770
43800
|
target: "_blank"
|
|
43771
43801
|
}, null, 8, ["href"])) : vue.createCommentVNode("", true),
|
|
43772
|
-
((
|
|
43802
|
+
((_f = vue.unref(currentItem)) == null ? void 0 : _f.download) && ((_g = vue.unref(currentItem)) == null ? void 0 : _g.src) ? (vue.openBlock(), vue.createBlock(vue.unref(Btn), {
|
|
43773
43803
|
key: 2,
|
|
43774
43804
|
class: "color-white",
|
|
43775
43805
|
round: "",
|
|
@@ -43777,10 +43807,10 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
43777
43807
|
flat: "",
|
|
43778
43808
|
icon: "download",
|
|
43779
43809
|
value: "Download File",
|
|
43780
|
-
href: upgradeHeaders((
|
|
43810
|
+
href: upgradeHeaders((_h = vue.unref(currentItem)) == null ? void 0 : _h.src),
|
|
43781
43811
|
download: ""
|
|
43782
43812
|
}, null, 8, ["href"])) : vue.createCommentVNode("", true),
|
|
43783
|
-
!((
|
|
43813
|
+
!((_i = vue.unref(currentItem)) == null ? void 0 : _i.openFile) && !((_j = vue.unref(currentItem)) == null ? void 0 : _j.download) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4)) : vue.createCommentVNode("", true)
|
|
43784
43814
|
]),
|
|
43785
43815
|
vue.createVNode(vue.unref(Carousel), {
|
|
43786
43816
|
index: vue.unref(currentIndex),
|
|
@@ -43805,18 +43835,19 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
43805
43835
|
vue.createVNode(vue.unref(Image$1), {
|
|
43806
43836
|
draggable: false,
|
|
43807
43837
|
src: item == null ? void 0 : item.src,
|
|
43838
|
+
pathKey: item == null ? void 0 : item.pathKey,
|
|
43808
43839
|
alt: "Preview",
|
|
43809
43840
|
class: "vw90 lightbox-image"
|
|
43810
|
-
}, null, 8, ["src"])
|
|
43841
|
+
}, null, 8, ["src", "pathKey"])
|
|
43811
43842
|
]),
|
|
43812
43843
|
_: 2
|
|
43813
|
-
}, 1032, ["zoom", "disabled"])) : (item == null ? void 0 : item.type) === "video" ? (vue.openBlock(), vue.createBlock(vue.unref(BglVideo), {
|
|
43844
|
+
}, 1032, ["zoom", "disabled"])) : (item == null ? void 0 : item.type) === "video" && (item == null ? void 0 : item.src) ? (vue.openBlock(), vue.createBlock(vue.unref(BglVideo), {
|
|
43814
43845
|
key: 1,
|
|
43815
43846
|
src: item == null ? void 0 : item.src,
|
|
43816
43847
|
autoplay: "",
|
|
43817
43848
|
controls: "",
|
|
43818
43849
|
class: "vw90"
|
|
43819
|
-
}, null, 8, ["src"])) : (item == null ? void 0 : item.type) === "pdf" ? (vue.openBlock(), vue.createElementBlock("embed", {
|
|
43850
|
+
}, null, 8, ["src"])) : (item == null ? void 0 : item.type) === "pdf" && (item == null ? void 0 : item.src) ? (vue.openBlock(), vue.createElementBlock("embed", {
|
|
43820
43851
|
key: 2,
|
|
43821
43852
|
src: vue.unref(normalizeURL)(item == null ? void 0 : item.src),
|
|
43822
43853
|
type: "application/pdf",
|
|
@@ -43888,7 +43919,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
43888
43919
|
};
|
|
43889
43920
|
}
|
|
43890
43921
|
});
|
|
43891
|
-
const Lightbox$1 = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
43922
|
+
const Lightbox$1 = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-194584ac"]]);
|
|
43892
43923
|
const groups = {};
|
|
43893
43924
|
let clickHandler = (_e2) => void 0;
|
|
43894
43925
|
const lightboxDirective = {
|
|
@@ -44287,7 +44318,8 @@ function findBglFieldById(id, _schema) {
|
|
|
44287
44318
|
for (const field of _schema) {
|
|
44288
44319
|
if (field.id === id) return field;
|
|
44289
44320
|
if (field.children && Number(field.children.length) > 0) {
|
|
44290
|
-
const
|
|
44321
|
+
const fieldChildren = field.children.filter((c2) => typeof c2 === "object" && "$el" in c2);
|
|
44322
|
+
const child = findBglFieldById(id, fieldChildren);
|
|
44291
44323
|
if (child) return child;
|
|
44292
44324
|
}
|
|
44293
44325
|
}
|