@bagelink/vue 0.0.1014 → 0.0.1016
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/layout/BottomMenu.vue.d.ts.map +1 -1
- package/dist/composables/index.d.ts +2 -1
- package/dist/composables/index.d.ts.map +1 -1
- package/dist/editor-BPwswoA2.cjs +4 -0
- package/dist/editor-ChLRSWzW.js +4 -0
- package/dist/index.cjs +6 -4
- package/dist/index.mjs +6 -4
- package/dist/style.css +5 -5
- package/package.json +1 -1
- package/src/components/form/inputs/RichText/editor.css +15 -14
- package/src/components/layout/BottomMenu.vue +1 -1
- package/src/composables/index.ts +3 -1
|
@@ -1 +1 @@
|
|
|
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;;
|
|
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;;uBA8FI,GAAG;qBACJ,GAAG;;;WASf,OAAO,IAA6B;EAEjD;AAWD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;cA9HV,OAAO,EAAE;;cAAT,OAAO,EAAE;iGAoIlB,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"}
|
|
@@ -8,6 +8,7 @@ interface useBglSchemaParamsT<T> {
|
|
|
8
8
|
export declare function useBglSchema<T = {
|
|
9
9
|
[key: string]: unknown;
|
|
10
10
|
}>({ schema, showFields, data }?: useBglSchemaParamsT<T>): BglFormSchemaT<T>;
|
|
11
|
-
export declare function
|
|
11
|
+
export declare function localRef<T>(key: string, initialValue: T): [T] extends [Ref<any, any>] ? IfAny<T, Ref<T, T>, T> : Ref<UnwrapRef<T>, T | UnwrapRef<T>>;
|
|
12
|
+
export declare const useLocalStorage: typeof localRef;
|
|
12
13
|
export {};
|
|
13
14
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/composables/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,KAAK,CAAA;AAEzC,OAAO,EAAE,KAAK,gBAAgB,EAAE,KAAK,cAAc,EAAE,KAAK,KAAK,EAAqB,MAAM,eAAe,CAAA;AAGzG,UAAU,mBAAmB,CAAC,CAAC;IAC9B,MAAM,CAAC,EAAE,gBAAgB,CAAC,CAAC,CAAC,CAAA;IAC5B,UAAU,CAAC,EAAE,MAAM,EAAE,CAAA;IACrB,IAAI,CAAC,EAAE,GAAG,EAAE,CAAA;CACZ;AAED,wBAAgB,YAAY,CAAC,CAAC,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;CAAE,EAC1D,EAAE,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE,GAAE,mBAAmB,CAAC,CAAC,CAAM,GACvD,cAAc,CAAC,CAAC,CAAC,CAanB;AAED,wBAAgB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/composables/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,KAAK,CAAA;AAEzC,OAAO,EAAE,KAAK,gBAAgB,EAAE,KAAK,cAAc,EAAE,KAAK,KAAK,EAAqB,MAAM,eAAe,CAAA;AAGzG,UAAU,mBAAmB,CAAC,CAAC;IAC9B,MAAM,CAAC,EAAE,gBAAgB,CAAC,CAAC,CAAC,CAAA;IAC5B,UAAU,CAAC,EAAE,MAAM,EAAE,CAAA;IACrB,IAAI,CAAC,EAAE,GAAG,EAAE,CAAA;CACZ;AAED,wBAAgB,YAAY,CAAC,CAAC,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;CAAE,EAC1D,EAAE,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE,GAAE,mBAAmB,CAAC,CAAC,CAAM,GACvD,cAAc,CAAC,CAAC,CAAC,CAanB;AAED,wBAAgB,QAAQ,CAAC,CAAC,EACzB,GAAG,EAAE,MAAM,EACX,YAAY,EAAE,CAAC,GACb,CAAC,CAAC,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,GAC5B,KAAK,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,GACtB,GAAG,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC,CAUpC;AAED,eAAO,MAAM,eAAe,iBAAW,CAAA"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const editor = "body {\n margin: 0;\n padding: 8px;\n min-height: 200px;\n font-family: sans-serif;\n line-height: 1.5;\n color: inherit;\n background: transparent;\n}\n\ntable {\n border-collapse: collapse;\n margin-bottom: 1rem;\n}\n\nth,\ntd {\n padding: 1rem;\n text-align: left;\n border: 1px solid #2a2a2a;\n line-height: 1.5;\n}\n\nth {\n background-color: #f4f4f4;\n}";
|
|
4
|
+
exports.default = editor;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
const editor = "body {\n margin: 0;\n padding: 8px;\n min-height: 200px;\n font-family: sans-serif;\n line-height: 1.5;\n color: inherit;\n background: transparent;\n}\n\ntable {\n border-collapse: collapse;\n margin-bottom: 1rem;\n}\n\nth,\ntd {\n padding: 1rem;\n text-align: left;\n border: 1px solid #2a2a2a;\n line-height: 1.5;\n}\n\nth {\n background-color: #f4f4f4;\n}";
|
|
2
|
+
export {
|
|
3
|
+
editor as default
|
|
4
|
+
};
|
package/dist/index.cjs
CHANGED
|
@@ -20924,7 +20924,7 @@ const _sfc_main$v = /* @__PURE__ */ vue.defineComponent({
|
|
|
20924
20924
|
doc.designMode = "on";
|
|
20925
20925
|
doc.body.contentEditable = "true";
|
|
20926
20926
|
const style = doc.createElement("style");
|
|
20927
|
-
style.textContent = (await Promise.resolve().then(() => require("./editor-
|
|
20927
|
+
style.textContent = (await Promise.resolve().then(() => require("./editor-BPwswoA2.cjs"))).default;
|
|
20928
20928
|
doc.head.appendChild(style);
|
|
20929
20929
|
editor.init(doc, modal);
|
|
20930
20930
|
useEditorKeyboard(doc, (action, value) => {
|
|
@@ -29758,7 +29758,7 @@ const _sfc_main$o = /* @__PURE__ */ vue.defineComponent({
|
|
|
29758
29758
|
};
|
|
29759
29759
|
}
|
|
29760
29760
|
});
|
|
29761
|
-
const _hoisted_1$g = { class: "m-0 pb-025 txt14 line-height-1" };
|
|
29761
|
+
const _hoisted_1$g = { class: "m-0 pb-025 txt14 line-height-1 w60 menu-text" };
|
|
29762
29762
|
const _sfc_main$n = /* @__PURE__ */ vue.defineComponent({
|
|
29763
29763
|
__name: "BottomMenu",
|
|
29764
29764
|
props: {
|
|
@@ -29794,7 +29794,7 @@ const _sfc_main$n = /* @__PURE__ */ vue.defineComponent({
|
|
|
29794
29794
|
};
|
|
29795
29795
|
}
|
|
29796
29796
|
});
|
|
29797
|
-
const BottomMenu = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-
|
|
29797
|
+
const BottomMenu = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-4faeb847"]]);
|
|
29798
29798
|
const _sfc_main$m = /* @__PURE__ */ vue.defineComponent({
|
|
29799
29799
|
__name: "Layout",
|
|
29800
29800
|
props: {
|
|
@@ -32164,7 +32164,7 @@ function useBglSchema({ schema, showFields, data: data2 } = {}) {
|
|
|
32164
32164
|
}
|
|
32165
32165
|
return getFallbackSchema(data2, showFields);
|
|
32166
32166
|
}
|
|
32167
|
-
function
|
|
32167
|
+
function localRef(key, initialValue) {
|
|
32168
32168
|
const storedValue = localStorage.getItem(key);
|
|
32169
32169
|
const initial = storedValue !== null ? JSON.parse(storedValue) : initialValue;
|
|
32170
32170
|
const value = vue.ref(initial);
|
|
@@ -32173,6 +32173,7 @@ function useLocalStorage(key, initialValue) {
|
|
|
32173
32173
|
}, { immediate: true, deep: true });
|
|
32174
32174
|
return value;
|
|
32175
32175
|
}
|
|
32176
|
+
const useLocalStorage = localRef;
|
|
32176
32177
|
var __defProp = Object.defineProperty;
|
|
32177
32178
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
32178
32179
|
var __publicField = (obj, key, value) => {
|
|
@@ -33736,6 +33737,7 @@ exports.iffer = iffer;
|
|
|
33736
33737
|
exports.initials = initials;
|
|
33737
33738
|
exports.isDate = isDate;
|
|
33738
33739
|
exports.keyToLabel = keyToLabel;
|
|
33740
|
+
exports.localRef = localRef;
|
|
33739
33741
|
exports.normalizeDimension = normalizeDimension;
|
|
33740
33742
|
exports.normalizeURL = normalizeURL;
|
|
33741
33743
|
exports.sleep = sleep;
|
package/dist/index.mjs
CHANGED
|
@@ -20922,7 +20922,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
20922
20922
|
doc.designMode = "on";
|
|
20923
20923
|
doc.body.contentEditable = "true";
|
|
20924
20924
|
const style = doc.createElement("style");
|
|
20925
|
-
style.textContent = (await import("./editor-
|
|
20925
|
+
style.textContent = (await import("./editor-ChLRSWzW.js")).default;
|
|
20926
20926
|
doc.head.appendChild(style);
|
|
20927
20927
|
editor.init(doc, modal);
|
|
20928
20928
|
useEditorKeyboard(doc, (action, value) => {
|
|
@@ -29756,7 +29756,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
29756
29756
|
};
|
|
29757
29757
|
}
|
|
29758
29758
|
});
|
|
29759
|
-
const _hoisted_1$g = { class: "m-0 pb-025 txt14 line-height-1" };
|
|
29759
|
+
const _hoisted_1$g = { class: "m-0 pb-025 txt14 line-height-1 w60 menu-text" };
|
|
29760
29760
|
const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
29761
29761
|
__name: "BottomMenu",
|
|
29762
29762
|
props: {
|
|
@@ -29792,7 +29792,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
29792
29792
|
};
|
|
29793
29793
|
}
|
|
29794
29794
|
});
|
|
29795
|
-
const BottomMenu = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-
|
|
29795
|
+
const BottomMenu = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-4faeb847"]]);
|
|
29796
29796
|
const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
29797
29797
|
__name: "Layout",
|
|
29798
29798
|
props: {
|
|
@@ -32162,7 +32162,7 @@ function useBglSchema({ schema, showFields, data: data2 } = {}) {
|
|
|
32162
32162
|
}
|
|
32163
32163
|
return getFallbackSchema(data2, showFields);
|
|
32164
32164
|
}
|
|
32165
|
-
function
|
|
32165
|
+
function localRef(key, initialValue) {
|
|
32166
32166
|
const storedValue = localStorage.getItem(key);
|
|
32167
32167
|
const initial = storedValue !== null ? JSON.parse(storedValue) : initialValue;
|
|
32168
32168
|
const value = ref(initial);
|
|
@@ -32171,6 +32171,7 @@ function useLocalStorage(key, initialValue) {
|
|
|
32171
32171
|
}, { immediate: true, deep: true });
|
|
32172
32172
|
return value;
|
|
32173
32173
|
}
|
|
32174
|
+
const useLocalStorage = localRef;
|
|
32174
32175
|
var __defProp = Object.defineProperty;
|
|
32175
32176
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
32176
32177
|
var __publicField = (obj, key, value) => {
|
|
@@ -33735,6 +33736,7 @@ export {
|
|
|
33735
33736
|
initials,
|
|
33736
33737
|
isDate,
|
|
33737
33738
|
keyToLabel,
|
|
33739
|
+
localRef,
|
|
33738
33740
|
normalizeDimension,
|
|
33739
33741
|
normalizeURL,
|
|
33740
33742
|
sleep,
|
package/dist/style.css
CHANGED
|
@@ -1670,7 +1670,7 @@ line-height: 1.65;
|
|
|
1670
1670
|
gap: 0;
|
|
1671
1671
|
}
|
|
1672
1672
|
|
|
1673
|
-
.bgl_bottombar[data-v-
|
|
1673
|
+
.bgl_bottombar[data-v-4faeb847] {
|
|
1674
1674
|
background-color: var(--bgl-primary);
|
|
1675
1675
|
color: var(--bgl-light-text);
|
|
1676
1676
|
grid-template-columns: repeat(auto-fill, var(--bgl_bottombar-btn-width));
|
|
@@ -1679,16 +1679,16 @@ line-height: 1.65;
|
|
|
1679
1679
|
padding: 0;
|
|
1680
1680
|
--bgl_bottombar-btn-width: 62px;
|
|
1681
1681
|
}
|
|
1682
|
-
.bgl_bottombar[data-v-
|
|
1682
|
+
.bgl_bottombar[data-v-4faeb847]>* {
|
|
1683
1683
|
width: var(--bgl_bottombar-btn-width);
|
|
1684
1684
|
}
|
|
1685
|
-
.bgl_bottombar[data-v-
|
|
1685
|
+
.bgl_bottombar[data-v-4faeb847]::-webkit-scrollbar {
|
|
1686
1686
|
display: none;
|
|
1687
1687
|
}
|
|
1688
|
-
.bgl_bottombar .nav-button[data-v-
|
|
1688
|
+
.bgl_bottombar .nav-button[data-v-4faeb847] {
|
|
1689
1689
|
border-radius: var(--card-border-radius);
|
|
1690
1690
|
}
|
|
1691
|
-
.bgl_bottombar .router-link-active[data-v-
|
|
1691
|
+
.bgl_bottombar .router-link-active[data-v-4faeb847] {
|
|
1692
1692
|
background: var(--bgl-popup-bg);
|
|
1693
1693
|
color: var(--bgl-primary) !important;
|
|
1694
1694
|
}
|
package/package.json
CHANGED
|
@@ -1,25 +1,26 @@
|
|
|
1
1
|
body {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
margin: 0;
|
|
3
|
+
padding: 8px;
|
|
4
|
+
min-height: 200px;
|
|
5
|
+
font-family: sans-serif;
|
|
6
|
+
line-height: 1.5;
|
|
7
|
+
color: inherit;
|
|
8
|
+
background: transparent;
|
|
8
9
|
}
|
|
9
10
|
|
|
10
11
|
table {
|
|
11
|
-
|
|
12
|
-
|
|
12
|
+
border-collapse: collapse;
|
|
13
|
+
margin-bottom: 1rem;
|
|
13
14
|
}
|
|
14
15
|
|
|
15
16
|
th,
|
|
16
17
|
td {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
padding: 1rem;
|
|
19
|
+
text-align: left;
|
|
20
|
+
border: 1px solid #2a2a2a;
|
|
21
|
+
line-height: 1.5;
|
|
21
22
|
}
|
|
22
23
|
|
|
23
24
|
th {
|
|
24
|
-
|
|
25
|
-
}
|
|
25
|
+
background-color: #f4f4f4;
|
|
26
|
+
}
|
package/src/composables/index.ts
CHANGED
|
@@ -26,7 +26,7 @@ export function useBglSchema<T = { [key: string]: unknown }>(
|
|
|
26
26
|
return getFallbackSchema(data, showFields)
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
-
export function
|
|
29
|
+
export function localRef<T>(
|
|
30
30
|
key: string,
|
|
31
31
|
initialValue: T
|
|
32
32
|
): [T] extends [Ref<any, any>] ?
|
|
@@ -42,3 +42,5 @@ export function useLocalStorage<T>(
|
|
|
42
42
|
|
|
43
43
|
return value
|
|
44
44
|
}
|
|
45
|
+
|
|
46
|
+
export const useLocalStorage = localRef
|