@bagelink/vue 0.0.865 → 0.0.871
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/Carousel.vue.d.ts.map +1 -1
- package/dist/components/MapEmbed.vue.d.ts +4 -3
- package/dist/components/MapEmbed.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/RichText2/Toolbar.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/RichText2/formatting.d.ts +6 -0
- package/dist/components/form/inputs/RichText2/formatting.d.ts.map +1 -1
- package/dist/components/form/inputs/RichText2/index.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/RichText2/richtext-types.d.ts +1 -1
- package/dist/components/form/inputs/RichText2/richtext-types.d.ts.map +1 -1
- package/dist/components/form/inputs/SelectInput.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/index.d.ts +2 -2
- package/dist/components/form/inputs/index.d.ts.map +1 -1
- package/dist/components/layout/BottomMenu.vue.d.ts +1 -0
- package/dist/components/layout/BottomMenu.vue.d.ts.map +1 -1
- package/dist/index.cjs +159 -86
- package/dist/index.mjs +159 -86
- package/dist/style.css +32 -28
- package/package.json +1 -1
- package/src/components/Carousel.vue +5 -3
- package/src/components/MapEmbed.vue +41 -14
- package/src/components/form/inputs/RichText.zip +0 -0
- package/src/components/form/inputs/RichText2/Toolbar.vue +10 -15
- package/src/components/form/inputs/RichText2/formatting.ts +69 -25
- package/src/components/form/inputs/RichText2/index.vue +40 -33
- package/src/components/form/inputs/RichText2/richtext-types.ts +1 -0
- package/src/components/form/inputs/index.ts +2 -2
- package/src/components/layout/BottomMenu.vue +1 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Carousel.vue.d.ts","sourceRoot":"","sources":["../../src/components/Carousel.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Carousel.vue.d.ts","sourceRoot":"","sources":["../../src/components/Carousel.vue"],"names":[],"mappings":"AAyYA,iBAAS,IAAI,SAIZ;AAED,iBAAS,IAAI,SAIZ;AAwCD,iBAAS,cAAc;;yBAsEM,GAAG;;;;YACN,GAAG;;;;YACH,GAAG;;;;;WAUf,OAAO,IAA6B;EAEjD;AA6BD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4EAgBnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAKpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { LatLngExpression } from 'leaflet';
|
|
2
2
|
type MapMarker = {
|
|
3
|
-
lat: number;
|
|
4
|
-
lon: number;
|
|
5
|
-
|
|
3
|
+
lat: number | string;
|
|
4
|
+
lon: number | string;
|
|
5
|
+
label?: string;
|
|
6
|
+
} | [(number | string), (number | string), string?];
|
|
6
7
|
declare const _default: import('vue').DefineComponent<{
|
|
7
8
|
center?: LatLngExpression;
|
|
8
9
|
zoom?: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MapEmbed.vue.d.ts","sourceRoot":"","sources":["../../src/components/MapEmbed.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"MapEmbed.vue.d.ts","sourceRoot":"","sources":["../../src/components/MapEmbed.vue"],"names":[],"mappings":"AAAA,OAgMO,KAAK,EAAE,gBAAgB,EAAsB,MAAM,SAAS,CAAA;AAGnE,OAAO,uBAAuB,CAAA;AAI9B,KAAK,SAAS,GAAG;IAChB,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;IACpB,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;IACpB,KAAK,CAAC,EAAE,MAAM,CAAA;CACd,GAAG,CAAC,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,MAAM,CAAC,CAAC,CAAA;;aAGxC,gBAAgB;WAClB,MAAM;aACJ,MAAM;kBACD,OAAO;cACX,SAAS,EAAE;iBACR,MAAM;;aALV,gBAAgB;WAClB,MAAM;aACJ,MAAM;kBACD,OAAO;cACX,SAAS,EAAE;iBACR,MAAM;;YAHV,MAAM;YAFN,gBAAgB;UAClB,MAAM;iBAEC,OAAO;gBAER,MAAM;;AAyJrB,wBAOG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Toolbar.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/inputs/RichText2/Toolbar.vue"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"Toolbar.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/inputs/RichText2/Toolbar.vue"],"names":[],"mappings":"AAAA,OAmFO,KAAK,EAAE,aAAa,EAAuB,MAAM,kBAAkB,CAAA;;YAM1C,aAAa;;;;YAAb,aAAa;;;;AAiJ7C,wBAOG"}
|
|
@@ -2,4 +2,10 @@ export declare function applyFormatting(command: string, value?: string): void;
|
|
|
2
2
|
export declare function insertLink(): void;
|
|
3
3
|
export declare function insertImage(): void;
|
|
4
4
|
export declare function createTable(): void;
|
|
5
|
+
declare function clearFormatting(): void;
|
|
6
|
+
export declare function useFormatting(modalInstance?: any): {
|
|
7
|
+
applyFormatting: typeof applyFormatting;
|
|
8
|
+
clearFormatting: typeof clearFormatting;
|
|
9
|
+
};
|
|
10
|
+
export {};
|
|
5
11
|
//# sourceMappingURL=formatting.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"formatting.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/inputs/RichText2/formatting.ts"],"names":[],"mappings":"AAEA,wBAAgB,eAAe,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,GAAE,MAAW,
|
|
1
|
+
{"version":3,"file":"formatting.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/inputs/RichText2/formatting.ts"],"names":[],"mappings":"AAEA,wBAAgB,eAAe,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,GAAE,MAAW,QA4FlE;AAsED,wBAAgB,UAAU,SAgBzB;AAED,wBAAgB,WAAW,SAiB1B;AAED,wBAAgB,WAAW,SAyB1B;AAED,iBAAS,eAAe,SAYvB;AAED,wBAAgB,aAAa,CAAC,aAAa,CAAC,EAAE,GAAG;;;EAGhD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/inputs/RichText2/index.vue"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/inputs/RichText2/index.vue"],"names":[],"mappings":"AAAA,OA8SO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;;gBAQjB,MAAM;oBAAkB,aAAa;;;;gBAArC,MAAM;oBAAkB,aAAa;;;;AA0QzE,wBAOG"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export type ToolbarConfigOption = 'bold' | 'italic' | 'underline' | 'strikethrough' | 'fontSize' | 'fontFamily' | 'textColor' | 'backgroundColor' | 'alignLeft' | 'alignCenter' | 'alignRight' | 'alignJustify' | 'orderedList' | 'unorderedList' | 'indent' | 'outdent' | 'link' | 'image' | 'table' | 'blockquote' | 'codeBlock' | 'splitView' | 'codeView' | 'youtube' | 'clear' | 'fullScreen';
|
|
1
|
+
export type ToolbarConfigOption = 'bold' | 'italic' | 'underline' | 'strikethrough' | 'fontSize' | 'fontFamily' | 'textColor' | 'backgroundColor' | 'alignLeft' | 'alignCenter' | 'alignRight' | 'alignJustify' | 'orderedList' | 'unorderedList' | 'indent' | 'outdent' | 'link' | 'image' | 'table' | 'blockquote' | 'codeBlock' | 'splitView' | 'codeView' | 'youtube' | 'clear' | 'fullScreen' | 'formatBlock';
|
|
2
2
|
export type ToolbarConfig = ToolbarConfigOption[];
|
|
3
3
|
//# sourceMappingURL=richtext-types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"richtext-types.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/inputs/RichText2/richtext-types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,mBAAmB,GAAG,MAAM,GACrC,QAAQ,GACR,WAAW,GACX,eAAe,GACf,UAAU,GACV,YAAY,GACZ,WAAW,GACX,iBAAiB,GACjB,WAAW,GACX,aAAa,GACb,YAAY,GACZ,cAAc,GACd,aAAa,GACb,eAAe,GACf,QAAQ,GACR,SAAS,GACT,MAAM,GACN,OAAO,GACP,OAAO,GACP,YAAY,GACZ,WAAW,GACX,WAAW,GACX,UAAU,GACV,SAAS,GACT,OAAO,GACP,YAAY,CAAA;
|
|
1
|
+
{"version":3,"file":"richtext-types.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/inputs/RichText2/richtext-types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,mBAAmB,GAAG,MAAM,GACrC,QAAQ,GACR,WAAW,GACX,eAAe,GACf,UAAU,GACV,YAAY,GACZ,WAAW,GACX,iBAAiB,GACjB,WAAW,GACX,aAAa,GACb,YAAY,GACZ,cAAc,GACd,aAAa,GACb,eAAe,GACf,QAAQ,GACR,SAAS,GACT,MAAM,GACN,OAAO,GACP,OAAO,GACP,YAAY,GACZ,WAAW,GACX,WAAW,GACX,UAAU,GACV,SAAS,GACT,OAAO,GACP,YAAY,GACZ,aAAa,CAAA;AAEhB,MAAM,MAAM,aAAa,GAAG,mBAAmB,EAAE,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SelectInput.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/form/inputs/SelectInput.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SelectInput.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/form/inputs/SelectInput.vue"],"names":[],"mappings":"AAmZA,OAAO,EAMN,KAAK,aAAa,EAClB,KAAK,MAAM,EAEX,MAAM,eAAe,CAAA;AAEtB,OAAO,wBAAwB,CAAA;AA6M/B,iBAAS,cAAc;;sBA2OI,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAjCzB,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAC/E,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WA2CK,OAAO,IAA6B;EAEjD;AAiCD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;aAleX,MAAM,EAAE;kBACH,MAAM;eACT,OAAO;iBACL,MAAM;iBACN,OAAO;eACT,OAAO;YACV,MAAM;gBACF,OAAO;kBACL,OAAO;WACd,aAAa;gBACR,OAAO;mBACJ,MAAM;gBACT,OAAO;wBACC,MAAM;eACf,CAAC,MAAM,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,EAAE,CAAC;;;;aAdvC,MAAM,EAAE;kBACH,MAAM;eACT,OAAO;iBACL,MAAM;iBACN,OAAO;eACT,OAAO;YACV,MAAM;gBACF,OAAO;kBACL,OAAO;WACd,aAAa;gBACR,OAAO;mBACJ,MAAM;gBACT,OAAO;wBACC,MAAM;eACf,CAAC,MAAM,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,EAAE,CAAC;;;kFA2d/C,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -10,8 +10,8 @@ export { default as PasswordInput } from './PasswordInput.vue';
|
|
|
10
10
|
export { default as RadioGroup } from './RadioGroup.vue';
|
|
11
11
|
export { default as RadioPillsInput } from './RadioPillsInput.vue';
|
|
12
12
|
export { default as RangeInput } from './RangeInput.vue';
|
|
13
|
-
export { default as
|
|
14
|
-
export { default as
|
|
13
|
+
export { default as RichText2 } from './RichText.vue';
|
|
14
|
+
export { default as RichText } from './RichText2/index.vue';
|
|
15
15
|
export { default as SelectInput } from './SelectInput.vue';
|
|
16
16
|
export { default as SignaturePad } from './SignaturePad.vue';
|
|
17
17
|
export { default as TableField } from './TableField.vue';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/form/inputs/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AACpD,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,kBAAkB,CAAA;AACxD,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAC1D,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,iBAAiB,CAAA;AACtD,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,kBAAkB,CAAA;AACxD,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,kBAAkB,CAAA;AACxD,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,iBAAiB,CAAA;AACtD,OAAO,EAAE,OAAO,IAAI,GAAG,EAAE,MAAM,WAAW,CAAA;AAC1C,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,qBAAqB,CAAA;AAC9D,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,kBAAkB,CAAA;AACxD,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAClE,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,kBAAkB,CAAA;AACxD,OAAO,EAAE,OAAO,IAAI,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/form/inputs/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AACpD,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,kBAAkB,CAAA;AACxD,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAC1D,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,iBAAiB,CAAA;AACtD,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,kBAAkB,CAAA;AACxD,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,kBAAkB,CAAA;AACxD,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,iBAAiB,CAAA;AACtD,OAAO,EAAE,OAAO,IAAI,GAAG,EAAE,MAAM,WAAW,CAAA;AAC1C,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,qBAAqB,CAAA;AAC9D,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,kBAAkB,CAAA;AACxD,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAClE,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,kBAAkB,CAAA;AACxD,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,gBAAgB,CAAA;AACrD,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AAC3D,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAC1D,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAC5D,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,kBAAkB,CAAA;AACxD,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AACpD,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,iBAAiB,CAAA;AACtD,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,mBAAmB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BottomMenu.vue.d.ts","sourceRoot":"","sources":["../../../src/components/layout/BottomMenu.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"BottomMenu.vue.d.ts","sourceRoot":"","sources":["../../../src/components/layout/BottomMenu.vue"],"names":[],"mappings":"AAuEA,OAAO,EAIN,KAAK,OAAO,EACZ,MAAM,eAAe,CAAA;AAatB,iBAAS,cAAc;;uBA4FI,GAAG;qBACJ,GAAG;;;WASf,OAAO,IAA6B;EAEjD;AAWD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;cA5HV,OAAO,EAAE;;cAAT,OAAO,EAAE;iGAkIlB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
package/dist/index.cjs
CHANGED
|
@@ -601,9 +601,11 @@ const _sfc_main$Q = /* @__PURE__ */ vue.defineComponent({
|
|
|
601
601
|
}
|
|
602
602
|
function updateHeight() {
|
|
603
603
|
if (!props2.autoHeight || !bglSlider.value) return;
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
604
|
+
setTimeout(() => {
|
|
605
|
+
const children2 = Array.from(bglSlider.value.children[activeSlideIndex.value].children);
|
|
606
|
+
const totalHeight = children2.reduce((sum, el) => sum + el.clientHeight, 0);
|
|
607
|
+
yHeight.value = `${totalHeight}px`;
|
|
608
|
+
}, 200);
|
|
607
609
|
}
|
|
608
610
|
function easeScroll(target, duration = 500) {
|
|
609
611
|
if (!bglSlider.value || isPressed.value) return;
|
|
@@ -739,7 +741,7 @@ const _sfc_main$Q = /* @__PURE__ */ vue.defineComponent({
|
|
|
739
741
|
};
|
|
740
742
|
}
|
|
741
743
|
});
|
|
742
|
-
const Carousel = /* @__PURE__ */ _export_sfc(_sfc_main$Q, [["__scopeId", "data-v-
|
|
744
|
+
const Carousel = /* @__PURE__ */ _export_sfc(_sfc_main$Q, [["__scopeId", "data-v-ca63f224"]]);
|
|
743
745
|
function _isPlaceholder(a2) {
|
|
744
746
|
return a2 != null && typeof a2 === "object" && a2["@@functional/placeholder"] === true;
|
|
745
747
|
}
|
|
@@ -9587,7 +9589,7 @@ const _sfc_main$L = /* @__PURE__ */ vue.defineComponent({
|
|
|
9587
9589
|
if (props2.field.$el === "select") return SelectInput;
|
|
9588
9590
|
if (props2.field.$el === "toggle") return ToggleInput;
|
|
9589
9591
|
if (props2.field.$el === "check") return CheckInput;
|
|
9590
|
-
if (props2.field.$el === "richtext") return
|
|
9592
|
+
if (props2.field.$el === "richtext") return RichText;
|
|
9591
9593
|
if (props2.field.$el === "file") return $el;
|
|
9592
9594
|
if (props2.field.$el === "date") return _sfc_main$F;
|
|
9593
9595
|
return props2.field.$el ?? "div";
|
|
@@ -43398,12 +43400,16 @@ const _sfc_main$w = /* @__PURE__ */ vue.defineComponent({
|
|
|
43398
43400
|
};
|
|
43399
43401
|
}
|
|
43400
43402
|
});
|
|
43403
|
+
let modal;
|
|
43401
43404
|
function applyFormatting(command2, value = "") {
|
|
43402
43405
|
const selection = window.getSelection();
|
|
43403
43406
|
if (selection && selection.rangeCount > 0) {
|
|
43404
43407
|
const range2 = selection.getRangeAt(0);
|
|
43405
43408
|
const span = document.createElement("span");
|
|
43406
43409
|
switch (command2) {
|
|
43410
|
+
case "formatBlock":
|
|
43411
|
+
formatBlock(value);
|
|
43412
|
+
break;
|
|
43407
43413
|
case "bold":
|
|
43408
43414
|
span.style.fontWeight = "bold";
|
|
43409
43415
|
break;
|
|
@@ -43468,8 +43474,9 @@ function applyFormatting(command2, value = "") {
|
|
|
43468
43474
|
increaseFontSize();
|
|
43469
43475
|
break;
|
|
43470
43476
|
case "decreaseFontSize":
|
|
43477
|
+
decreaseFontSize();
|
|
43471
43478
|
break;
|
|
43472
|
-
case "
|
|
43479
|
+
case "link":
|
|
43473
43480
|
insertLink();
|
|
43474
43481
|
break;
|
|
43475
43482
|
case "image":
|
|
@@ -43485,6 +43492,15 @@ function applyFormatting(command2, value = "") {
|
|
|
43485
43492
|
range2.surroundContents(span);
|
|
43486
43493
|
}
|
|
43487
43494
|
}
|
|
43495
|
+
function formatBlock(value) {
|
|
43496
|
+
if (!value) return;
|
|
43497
|
+
const selection = window.getSelection();
|
|
43498
|
+
const range2 = selection == null ? void 0 : selection.getRangeAt(0);
|
|
43499
|
+
if (!range2) return;
|
|
43500
|
+
range2.selectNodeContents(range2.startContainer);
|
|
43501
|
+
const el = document.createElement(value);
|
|
43502
|
+
range2.surroundContents(el);
|
|
43503
|
+
}
|
|
43488
43504
|
function increaseFontSize() {
|
|
43489
43505
|
const selection = window.getSelection();
|
|
43490
43506
|
if (selection && selection.rangeCount > 0) {
|
|
@@ -43496,6 +43512,17 @@ function increaseFontSize() {
|
|
|
43496
43512
|
range2.surroundContents(span);
|
|
43497
43513
|
}
|
|
43498
43514
|
}
|
|
43515
|
+
function decreaseFontSize() {
|
|
43516
|
+
const selection = window.getSelection();
|
|
43517
|
+
if (selection && selection.rangeCount > 0) {
|
|
43518
|
+
const range2 = selection.getRangeAt(0);
|
|
43519
|
+
const span = document.createElement("span");
|
|
43520
|
+
const currentFontSize = Number.parseInt(range2.startContainer.parentNode.style.fontSize || "16", 10);
|
|
43521
|
+
const newFontSize = currentFontSize - 2;
|
|
43522
|
+
span.style.fontSize = `${newFontSize}px`;
|
|
43523
|
+
range2.surroundContents(span);
|
|
43524
|
+
}
|
|
43525
|
+
}
|
|
43499
43526
|
function removeFormatting() {
|
|
43500
43527
|
const selection = window.getSelection();
|
|
43501
43528
|
if (selection && selection.rangeCount > 0) {
|
|
@@ -43528,22 +43555,38 @@ function insertList(type3) {
|
|
|
43528
43555
|
}
|
|
43529
43556
|
}
|
|
43530
43557
|
function insertLink() {
|
|
43531
|
-
const
|
|
43532
|
-
if (
|
|
43533
|
-
|
|
43534
|
-
|
|
43535
|
-
|
|
43558
|
+
const selection = window.getSelection();
|
|
43559
|
+
if (!selection || selection.rangeCount < 1) return;
|
|
43560
|
+
const range2 = selection.getRangeAt(0);
|
|
43561
|
+
modal.showModalForm({ title: "Insert Link", schema: [
|
|
43562
|
+
{ id: "url", $el: "text", label: "URL" },
|
|
43563
|
+
{ id: "openInNewTab", $el: "check", label: "Open in new tab" }
|
|
43564
|
+
], onSubmit: (data2) => {
|
|
43565
|
+
const { url, openInNewTab } = data2;
|
|
43566
|
+
if (url) {
|
|
43536
43567
|
const anchor = document.createElement("a");
|
|
43537
43568
|
anchor.href = url;
|
|
43538
43569
|
range2.surroundContents(anchor);
|
|
43570
|
+
if (openInNewTab) anchor.target = "_blank";
|
|
43539
43571
|
}
|
|
43540
|
-
}
|
|
43572
|
+
} });
|
|
43541
43573
|
}
|
|
43542
43574
|
function insertImage() {
|
|
43543
|
-
|
|
43544
|
-
|
|
43545
|
-
|
|
43546
|
-
showModalForm({ title: "Upload Image", schema: [
|
|
43575
|
+
const selection = window.getSelection();
|
|
43576
|
+
if (!selection || selection.rangeCount < 1) return;
|
|
43577
|
+
const range2 = selection.getRangeAt(0);
|
|
43578
|
+
modal.showModalForm({ title: "Upload Image", schema: [
|
|
43579
|
+
{ id: "src", $el: "file", attrs: { bindkey: "url" } },
|
|
43580
|
+
{ id: "alt", $el: "text", label: "Alt Text" }
|
|
43581
|
+
], onSubmit: (_data) => {
|
|
43582
|
+
const { src } = _data;
|
|
43583
|
+
if (src) {
|
|
43584
|
+
const img = document.createElement("img");
|
|
43585
|
+
img.src = src;
|
|
43586
|
+
img.alt = _data.alt;
|
|
43587
|
+
range2.deleteContents();
|
|
43588
|
+
range2.insertNode(img);
|
|
43589
|
+
}
|
|
43547
43590
|
} });
|
|
43548
43591
|
}
|
|
43549
43592
|
function createTable() {
|
|
@@ -43570,6 +43613,25 @@ function createTable() {
|
|
|
43570
43613
|
}
|
|
43571
43614
|
}
|
|
43572
43615
|
}
|
|
43616
|
+
function clearFormatting() {
|
|
43617
|
+
const selection = window.getSelection();
|
|
43618
|
+
const range2 = selection == null ? void 0 : selection.getRangeAt(0);
|
|
43619
|
+
if (!range2) return;
|
|
43620
|
+
range2.selectNodeContents(range2.startContainer);
|
|
43621
|
+
const contents = range2.extractContents();
|
|
43622
|
+
const text = contents.textContent;
|
|
43623
|
+
if (text !== null && text !== "") {
|
|
43624
|
+
range2.deleteContents();
|
|
43625
|
+
const textNode = document.createTextNode(`${text}`);
|
|
43626
|
+
setTimeout(() => {
|
|
43627
|
+
range2.insertNode(textNode);
|
|
43628
|
+
}, 1);
|
|
43629
|
+
}
|
|
43630
|
+
}
|
|
43631
|
+
function useFormatting(modalInstance) {
|
|
43632
|
+
modal = modalInstance;
|
|
43633
|
+
return { applyFormatting, clearFormatting };
|
|
43634
|
+
}
|
|
43573
43635
|
const _hoisted_1$o = { class: "flex gap-05" };
|
|
43574
43636
|
const _hoisted_2$f = ["disabled"];
|
|
43575
43637
|
const _hoisted_3$c = { key: 1 };
|
|
@@ -43877,6 +43939,11 @@ const _sfc_main$u = /* @__PURE__ */ vue.defineComponent({
|
|
|
43877
43939
|
setup(__props, { emit: __emit }) {
|
|
43878
43940
|
const emit2 = __emit;
|
|
43879
43941
|
const toolbarOptions = [
|
|
43942
|
+
{ name: "formatBlock", label: "h2", icon: "format_h2" },
|
|
43943
|
+
{ name: "formatBlock", label: "h3", icon: "format_h3" },
|
|
43944
|
+
{ name: "formatBlock", label: "h4", icon: "format_h4" },
|
|
43945
|
+
{ name: "formatBlock", label: "h5", icon: "format_h5" },
|
|
43946
|
+
{ name: "formatBlock", label: "h6", icon: "format_h6" },
|
|
43880
43947
|
{ name: "separator" },
|
|
43881
43948
|
{ name: "bold", label: "Bold", icon: "format_bold" },
|
|
43882
43949
|
{ name: "italic", label: "Italic", icon: "format_italic" },
|
|
@@ -43893,31 +43960,22 @@ const _sfc_main$u = /* @__PURE__ */ vue.defineComponent({
|
|
|
43893
43960
|
{ name: "clear", label: "Clear Formatting", icon: "format_clear" },
|
|
43894
43961
|
{ name: "fullScreen", label: "Full Screen", icon: "fullscreen", class: "ms-auto" }
|
|
43895
43962
|
];
|
|
43896
|
-
function handleSelectChange(selectedOption) {
|
|
43897
|
-
emit2("action", "formatBlock", selectedOption);
|
|
43898
|
-
}
|
|
43899
43963
|
return (_ctx, _cache) => {
|
|
43900
43964
|
const _directive_tooltip = vue.resolveDirective("tooltip");
|
|
43901
43965
|
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$n, [
|
|
43902
|
-
vue.createVNode(SelectInput, {
|
|
43903
|
-
class: "m-0 w150",
|
|
43904
|
-
options: ["Text", "Heading 1", "Heading 2", "Heading 3", "Heading 4", "Heading 5", "Heading 6", "Blockquote", "Code"],
|
|
43905
|
-
onChange: handleSelectChange
|
|
43906
|
-
}),
|
|
43907
43966
|
(vue.openBlock(), vue.createElementBlock(vue.Fragment, null, vue.renderList(toolbarOptions, (action, index2) => {
|
|
43908
|
-
return vue.openBlock(), vue.createElementBlock(vue.Fragment,
|
|
43967
|
+
return vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: index2 }, [
|
|
43909
43968
|
action.name !== "separator" && _ctx.config.includes(action.name) ? vue.withDirectives((vue.openBlock(), vue.createBlock(vue.unref(Btn), {
|
|
43910
|
-
key:
|
|
43969
|
+
key: 0,
|
|
43970
|
+
icon: action.icon,
|
|
43911
43971
|
thin: "",
|
|
43912
43972
|
flat: "",
|
|
43913
|
-
class: vue.normalizeClass([action.class, "radius-05"]),
|
|
43914
43973
|
"aria-label": action.name,
|
|
43915
|
-
|
|
43916
|
-
onClick: ($event) => emit2("action", action.name)
|
|
43917
|
-
}, null, 8, ["
|
|
43974
|
+
class: vue.normalizeClass([action.class, "radius-05"]),
|
|
43975
|
+
onClick: ($event) => emit2("action", action.name, action.label)
|
|
43976
|
+
}, null, 8, ["icon", "aria-label", "class", "onClick"])), [
|
|
43918
43977
|
[_directive_tooltip, action.label]
|
|
43919
|
-
]) : vue.
|
|
43920
|
-
action.name === "separator" ? (vue.openBlock(), vue.createElementBlock("span", {
|
|
43978
|
+
]) : action.name === "separator" ? (vue.openBlock(), vue.createElementBlock("span", {
|
|
43921
43979
|
key: `separator-${index2}`,
|
|
43922
43980
|
class: "opacity-2 mb-025"
|
|
43923
43981
|
}, "|")) : vue.createCommentVNode("", true)
|
|
@@ -43927,9 +43985,9 @@ const _sfc_main$u = /* @__PURE__ */ vue.defineComponent({
|
|
|
43927
43985
|
};
|
|
43928
43986
|
}
|
|
43929
43987
|
});
|
|
43930
|
-
const _hoisted_1$m = { class: "rich-text-editor rounded pt-05 px-
|
|
43988
|
+
const _hoisted_1$m = { class: "rich-text-editor rounded pt-05 px-05 pb-1" };
|
|
43931
43989
|
const _hoisted_2$e = { class: "editor-container flex flex-stretch gap-1 m_column" };
|
|
43932
|
-
const _hoisted_3$b = { class: "content-area radius-05 p-1
|
|
43990
|
+
const _hoisted_3$b = { class: "content-area radius-05 p-1 w-100 grid" };
|
|
43933
43991
|
const _hoisted_4$7 = ["textContent"];
|
|
43934
43992
|
const _sfc_main$t = /* @__PURE__ */ vue.defineComponent({
|
|
43935
43993
|
__name: "index",
|
|
@@ -43941,8 +43999,11 @@ const _sfc_main$t = /* @__PURE__ */ vue.defineComponent({
|
|
|
43941
43999
|
setup(__props, { emit: __emit }) {
|
|
43942
44000
|
const props2 = __props;
|
|
43943
44001
|
const emit2 = __emit;
|
|
44002
|
+
const modal2 = useModal();
|
|
44003
|
+
const { applyFormatting: applyFormatting2, clearFormatting: clearFormatting2 } = useFormatting(modal2);
|
|
43944
44004
|
const editableContent = vue.ref();
|
|
43945
44005
|
const defaultConfig2 = [
|
|
44006
|
+
"formatBlock",
|
|
43946
44007
|
"bold",
|
|
43947
44008
|
"italic",
|
|
43948
44009
|
"underline",
|
|
@@ -43980,39 +44041,32 @@ const _sfc_main$t = /* @__PURE__ */ vue.defineComponent({
|
|
|
43980
44041
|
}
|
|
43981
44042
|
emit2("update:modelValue", contentHtml.value);
|
|
43982
44043
|
}
|
|
44044
|
+
function updateToolbarHighlight() {
|
|
44045
|
+
if (document.getSelection()) {
|
|
44046
|
+
const selection = document.getSelection();
|
|
44047
|
+
const range2 = (selection == null ? void 0 : selection.rangeCount) ? selection.getRangeAt(0) : null;
|
|
44048
|
+
const container = range2 == null ? void 0 : range2.commonAncestorContainer;
|
|
44049
|
+
if (container) {
|
|
44050
|
+
let currentElement = container.nodeType === 3 ? container.parentElement : container;
|
|
44051
|
+
while (currentElement && currentElement !== editableContent.value) {
|
|
44052
|
+
if (["H1", "H2", "H3"].includes(currentElement.tagName)) {
|
|
44053
|
+
break;
|
|
44054
|
+
}
|
|
44055
|
+
currentElement = currentElement.parentElement;
|
|
44056
|
+
}
|
|
44057
|
+
}
|
|
44058
|
+
}
|
|
44059
|
+
}
|
|
44060
|
+
document.addEventListener("selectionchange", updateToolbarHighlight);
|
|
43983
44061
|
function handleToolbarAction(action, value) {
|
|
43984
44062
|
if (!editableContent.value) return;
|
|
43985
44063
|
if (["alignLeft", "alignCenter", "alignRight", "alignJustify"].includes(action))
|
|
43986
44064
|
value = action.replace("align", "").toLowerCase();
|
|
43987
|
-
|
|
43988
|
-
|
|
43989
|
-
|
|
43990
|
-
|
|
43991
|
-
|
|
43992
|
-
applyFormatting("insertOrderedList");
|
|
43993
|
-
break;
|
|
43994
|
-
case "unorderedList":
|
|
43995
|
-
applyFormatting("insertUnorderedList");
|
|
43996
|
-
break;
|
|
43997
|
-
case "blockquote":
|
|
43998
|
-
applyFormatting("formatBlock", "<blockquote>");
|
|
43999
|
-
break;
|
|
44000
|
-
case "codeBlock":
|
|
44001
|
-
applyFormatting("formatBlock", "<pre>");
|
|
44002
|
-
break;
|
|
44003
|
-
case "splitView":
|
|
44004
|
-
isSplitView.value = !isSplitView.value;
|
|
44005
|
-
break;
|
|
44006
|
-
case "codeView":
|
|
44007
|
-
isCodeView.value = !isCodeView.value;
|
|
44008
|
-
break;
|
|
44009
|
-
case "fullScreen":
|
|
44010
|
-
toggleFullScreen();
|
|
44011
|
-
break;
|
|
44012
|
-
default:
|
|
44013
|
-
applyFormatting(action, value);
|
|
44014
|
-
break;
|
|
44015
|
-
}
|
|
44065
|
+
if (action === "splitView") isSplitView.value = !isSplitView.value;
|
|
44066
|
+
else if (action === "codeView") isCodeView.value = !isCodeView.value;
|
|
44067
|
+
else if (action === "fullScreen") toggleFullScreen();
|
|
44068
|
+
else if (action === "clear") clearFormatting2();
|
|
44069
|
+
else applyFormatting2(action, value);
|
|
44016
44070
|
updateContent();
|
|
44017
44071
|
}
|
|
44018
44072
|
function toggleFullScreen() {
|
|
@@ -44095,7 +44149,7 @@ const _sfc_main$t = /* @__PURE__ */ vue.defineComponent({
|
|
|
44095
44149
|
key: 0,
|
|
44096
44150
|
contenteditable: "true",
|
|
44097
44151
|
class: "preview-area w-100 radius-05 p-1",
|
|
44098
|
-
onInput: logInput,
|
|
44152
|
+
onInput: _cache[1] || (_cache[1] = (e) => logInput(e)),
|
|
44099
44153
|
textContent: vue.toDisplayString(vue.unref(contentHtml))
|
|
44100
44154
|
}, null, 40, _hoisted_4$7)) : vue.createCommentVNode("", true)
|
|
44101
44155
|
])
|
|
@@ -44103,7 +44157,7 @@ const _sfc_main$t = /* @__PURE__ */ vue.defineComponent({
|
|
|
44103
44157
|
};
|
|
44104
44158
|
}
|
|
44105
44159
|
});
|
|
44106
|
-
const
|
|
44160
|
+
const RichText = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-492bb647"]]);
|
|
44107
44161
|
/*!
|
|
44108
44162
|
* Signature Pad v5.0.4 | https://github.com/szimek/signature_pad
|
|
44109
44163
|
* (c) 2024 Szymon Nowak | Released under the MIT license
|
|
@@ -52534,14 +52588,15 @@ const _sfc_main$n = /* @__PURE__ */ vue.defineComponent({
|
|
|
52534
52588
|
]),
|
|
52535
52589
|
_: 2
|
|
52536
52590
|
}, 1032, ["to", "onClick"]);
|
|
52537
|
-
}), 128))
|
|
52591
|
+
}), 128)),
|
|
52592
|
+
vue.renderSlot(_ctx.$slots, "end", {}, void 0, true)
|
|
52538
52593
|
]),
|
|
52539
52594
|
_: 3
|
|
52540
52595
|
});
|
|
52541
52596
|
};
|
|
52542
52597
|
}
|
|
52543
52598
|
});
|
|
52544
|
-
const BottomMenu = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-
|
|
52599
|
+
const BottomMenu = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-ee7b8f1a"]]);
|
|
52545
52600
|
const _sfc_main$m = /* @__PURE__ */ vue.defineComponent({
|
|
52546
52601
|
__name: "Layout",
|
|
52547
52602
|
props: {
|
|
@@ -52990,13 +53045,13 @@ function _sfc_render$2(_ctx, _cache) {
|
|
|
52990
53045
|
}
|
|
52991
53046
|
const ListView = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["render", _sfc_render$2]]);
|
|
52992
53047
|
const _hoisted_1$8 = ["id"];
|
|
52993
|
-
const defaultMarkerSVG = '<svg
|
|
53048
|
+
const defaultMarkerSVG = '<svg width="28" height="38" viewBox="0 0 28 38" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M14.2263 37.7955C17.0897 37.7955 19.4109 37.0138 19.4109 36.0496C19.4109 35.0854 17.0897 34.3037 14.2263 34.3037C11.363 34.3037 9.04175 35.0854 9.04175 36.0496C9.04175 37.0138 11.363 37.7955 14.2263 37.7955Z" fill="black" fill-opacity="0.1"/><path d="M14.2265 0.549591C21.2842 0.549591 27.0131 6.23786 27.0787 13.28V13.4024C27.0787 19.3328 24.4759 24.4306 21.5627 28.2764C18.6511 32.12 15.4577 34.6754 14.3457 35.5097C14.2748 35.5629 14.1778 35.5629 14.1068 35.5097C12.9947 34.675 9.80135 32.1197 6.88984 28.2762C3.97665 24.4304 1.37378 19.3328 1.37378 13.4024C1.37378 6.30387 7.12806 0.549591 14.2265 0.549591Z" fill="#ED1b3E" stroke="#ED6C6F"/><path d="M14.2263 21.6185C18.7639 21.6185 22.4424 17.94 22.4424 13.4024C22.4424 8.86477 18.7639 5.18631 14.2263 5.18631C9.68872 5.18631 6.01025 8.86477 6.01025 13.4024C6.01025 17.94 9.68872 21.6185 14.2263 21.6185Z" fill="white"/></svg>';
|
|
52994
53049
|
const leafletScriptUrl = "https://unpkg.com/leaflet@1.9.4/dist/leaflet.js";
|
|
52995
53050
|
const _sfc_main$d = /* @__PURE__ */ vue.defineComponent({
|
|
52996
53051
|
__name: "MapEmbed",
|
|
52997
53052
|
props: {
|
|
52998
53053
|
center: { default: () => [31.7683, 35.2137] },
|
|
52999
|
-
zoom: { default:
|
|
53054
|
+
zoom: { default: 15 },
|
|
53000
53055
|
height: { default: 400 },
|
|
53001
53056
|
zoomControl: { type: Boolean, default: true },
|
|
53002
53057
|
markers: {},
|
|
@@ -53024,19 +53079,36 @@ const _sfc_main$d = /* @__PURE__ */ vue.defineComponent({
|
|
|
53024
53079
|
L2.value.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png", { maxZoom: 18 }).addTo(map4.value);
|
|
53025
53080
|
}
|
|
53026
53081
|
}
|
|
53027
|
-
function addMarker(L22, latlng) {
|
|
53082
|
+
function addMarker(L22, latlng, label) {
|
|
53028
53083
|
const iconSVG = props2.markerIcon || defaultMarkerSVG;
|
|
53029
53084
|
const customIcon = L22 == null ? void 0 : L22.icon({
|
|
53030
53085
|
iconUrl: `data:image/svg+xml;utf8,${encodeURIComponent(iconSVG)}`,
|
|
53031
53086
|
iconSize: [32, 32]
|
|
53032
53087
|
});
|
|
53033
53088
|
const marker = L22 == null ? void 0 : L22.marker(latlng, { icon: customIcon }).addTo(map4.value);
|
|
53089
|
+
if (label) {
|
|
53090
|
+
marker.bindTooltip(label, { direction: "top" });
|
|
53091
|
+
}
|
|
53092
|
+
marker.on("click", () => {
|
|
53093
|
+
console.log("Marker clicked:", latlng);
|
|
53094
|
+
marker.openPopup();
|
|
53095
|
+
});
|
|
53034
53096
|
_markers.value.push(marker);
|
|
53035
53097
|
}
|
|
53036
53098
|
function fitMarkers(L22) {
|
|
53037
|
-
var _a2;
|
|
53099
|
+
var _a2, _b;
|
|
53038
53100
|
if (_markers.value.length > 0) {
|
|
53039
|
-
|
|
53101
|
+
const latLngs = _markers.value.map((marker) => marker.getLatLng());
|
|
53102
|
+
const bounds = L22.latLngBounds(latLngs);
|
|
53103
|
+
console.log(props2.zoom, bounds.getCenter());
|
|
53104
|
+
(_a2 = map4.value) == null ? void 0 : _a2.setView(bounds.getCenter(), props2.zoom);
|
|
53105
|
+
(_b = map4.value) == null ? void 0 : _b.fitBounds(bounds, {
|
|
53106
|
+
animate: true,
|
|
53107
|
+
maxZoom: props2.zoom,
|
|
53108
|
+
// B
|
|
53109
|
+
padding: [20, 20]
|
|
53110
|
+
// Adjust padding as needed
|
|
53111
|
+
});
|
|
53040
53112
|
}
|
|
53041
53113
|
}
|
|
53042
53114
|
async function watchMarkers(markers) {
|
|
@@ -53044,11 +53116,11 @@ const _sfc_main$d = /* @__PURE__ */ vue.defineComponent({
|
|
|
53044
53116
|
_markers.value.forEach((marker) => marker.remove());
|
|
53045
53117
|
if (!markers) return;
|
|
53046
53118
|
for (const marker of markers) {
|
|
53047
|
-
const [lat, lon] = Array.isArray(marker) ? marker : [marker.lat, marker.lon];
|
|
53119
|
+
const [lat, lon, label] = Array.isArray(marker) ? [marker[0], marker[1], marker[2]] : [marker.lat, marker.lon, marker.label];
|
|
53048
53120
|
if (!map4.value) initializeMap();
|
|
53049
|
-
addMarker(L2.value, [lat, lon]);
|
|
53050
|
-
fitMarkers(L2.value);
|
|
53121
|
+
addMarker(L2.value, [+lat, +lon], label);
|
|
53051
53122
|
}
|
|
53123
|
+
fitMarkers(L2.value);
|
|
53052
53124
|
}
|
|
53053
53125
|
vue.watch(() => props2.markers, watchMarkers, { immediate: true });
|
|
53054
53126
|
vue.watch(() => props2.center, (center2) => {
|
|
@@ -53060,7 +53132,8 @@ const _sfc_main$d = /* @__PURE__ */ vue.defineComponent({
|
|
|
53060
53132
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
53061
53133
|
id: id.value,
|
|
53062
53134
|
class: "leaflet-map",
|
|
53063
|
-
style: vue.normalizeStyle({ height: `${props2.height || 400}px` })
|
|
53135
|
+
style: vue.normalizeStyle({ height: `${props2.height || 400}px` }),
|
|
53136
|
+
dir: "ltr"
|
|
53064
53137
|
}, null, 12, _hoisted_1$8);
|
|
53065
53138
|
};
|
|
53066
53139
|
}
|
|
@@ -53281,7 +53354,7 @@ const _sfc_main$9 = /* @__PURE__ */ vue.defineComponent({
|
|
|
53281
53354
|
const props2 = __props;
|
|
53282
53355
|
const emit2 = __emit;
|
|
53283
53356
|
const bagel = useBagel();
|
|
53284
|
-
const
|
|
53357
|
+
const modal2 = vue.ref();
|
|
53285
53358
|
const computedFormSchema = vue.computed(() => {
|
|
53286
53359
|
if (typeof props2.schema === "function") return props2.schema();
|
|
53287
53360
|
return props2.schema;
|
|
@@ -53290,7 +53363,7 @@ const _sfc_main$9 = /* @__PURE__ */ vue.defineComponent({
|
|
|
53290
53363
|
const form = vue.ref();
|
|
53291
53364
|
const closeModal = () => {
|
|
53292
53365
|
var _a2;
|
|
53293
|
-
return (_a2 =
|
|
53366
|
+
return (_a2 = modal2.value) == null ? void 0 : _a2.closeModal();
|
|
53294
53367
|
};
|
|
53295
53368
|
let submitting = vue.ref(false);
|
|
53296
53369
|
async function runSubmit() {
|
|
@@ -53319,7 +53392,7 @@ const _sfc_main$9 = /* @__PURE__ */ vue.defineComponent({
|
|
|
53319
53392
|
return (_ctx, _cache) => {
|
|
53320
53393
|
return vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$b), {
|
|
53321
53394
|
ref_key: "modal",
|
|
53322
|
-
ref:
|
|
53395
|
+
ref: modal2,
|
|
53323
53396
|
side: _ctx.side,
|
|
53324
53397
|
width: _ctx.width,
|
|
53325
53398
|
visible: _ctx.visible,
|
|
@@ -55613,21 +55686,21 @@ const ModalPlugin = {
|
|
|
55613
55686
|
const ModalComponent = vue.defineComponent({
|
|
55614
55687
|
data: () => ({ modalStack: modalStack.value }),
|
|
55615
55688
|
render() {
|
|
55616
|
-
return this.modalStack.map((
|
|
55689
|
+
return this.modalStack.map((modal2, index2) => {
|
|
55617
55690
|
const props2 = {
|
|
55618
|
-
...
|
|
55691
|
+
...modal2.modalOptions,
|
|
55619
55692
|
"visible": true,
|
|
55620
55693
|
"onUpdate:visible": () => {
|
|
55621
55694
|
hideModal(index2);
|
|
55622
55695
|
}
|
|
55623
55696
|
};
|
|
55624
|
-
switch (
|
|
55697
|
+
switch (modal2.modalType) {
|
|
55625
55698
|
case "modalForm":
|
|
55626
|
-
return vue.h(ModalForm, props2,
|
|
55699
|
+
return vue.h(ModalForm, props2, modal2.componentSlots);
|
|
55627
55700
|
case "confirmModal":
|
|
55628
55701
|
return vue.h(_sfc_main$a, props2, {});
|
|
55629
55702
|
default:
|
|
55630
|
-
return vue.h(_sfc_main$b, props2,
|
|
55703
|
+
return vue.h(_sfc_main$b, props2, modal2.componentSlots);
|
|
55631
55704
|
}
|
|
55632
55705
|
});
|
|
55633
55706
|
}
|
|
@@ -56008,8 +56081,8 @@ exports.Pill = Pill;
|
|
|
56008
56081
|
exports.RadioGroup = RadioGroup;
|
|
56009
56082
|
exports.RadioPillsInput = RadioPillsInput;
|
|
56010
56083
|
exports.RangeInput = RangeInput;
|
|
56011
|
-
exports.RichText =
|
|
56012
|
-
exports.RichText2 =
|
|
56084
|
+
exports.RichText = RichText;
|
|
56085
|
+
exports.RichText2 = _sfc_main$w;
|
|
56013
56086
|
exports.RouterWrapper = RouterWrapper;
|
|
56014
56087
|
exports.SelectInput = SelectInput;
|
|
56015
56088
|
exports.SidebarMenu = SidebarMenu;
|