@g1cloud/bluesea 5.0.0-beta.6 → 5.0.0-beta.7

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.
Files changed (22) hide show
  1. package/dist/{BSAlertModal-B6XlvWm2.js → BSAlertModal-B3zqxyBI.js} +1 -1
  2. package/dist/{BSGridColumnSettingModal-DgqYUHUF.js → BSGridColumnSettingModal-CD9mFu9P.js} +1 -1
  3. package/dist/{BSRichTextMaximizedModal-DhmCYN9S.js → BSRichTextMaximizedModal-BP6jz2N7.js} +1 -1
  4. package/dist/{BSYesNoModal-CcElFZw-.js → BSYesNoModal-82FcvYh-.js} +1 -1
  5. package/dist/{BSYoutubeInputModal-DLXCEq2-.js → BSYoutubeInputModal-CrtOzrD-.js} +1 -1
  6. package/dist/{ImageInsertModal-B5WoMehM.js → ImageInsertModal-DdYqZWc5.js} +2 -2
  7. package/dist/{ImageProperties.vue_vue_type_script_setup_true_lang-BIoCOwlw.js → ImageProperties.vue_vue_type_script_setup_true_lang-2wZT4GKQ.js} +1 -1
  8. package/dist/{ImagePropertiesModal-AuLfc63Y.js → ImagePropertiesModal-CQnEtdug.js} +2 -2
  9. package/dist/{LinkPropertiesModal-CzM1G8qN.js → LinkPropertiesModal-DiqsnQW6.js} +1 -1
  10. package/dist/{TableInsertModal-ChcQJBQV.js → TableInsertModal-CQP0Lv5V.js} +1 -1
  11. package/dist/{TablePropertiesModal-C1FzxMmL.js → TablePropertiesModal-BlPP_yM-.js} +1 -1
  12. package/dist/{VideoInsertModal-Blyjl-az.js → VideoInsertModal-kNMv3Gr0.js} +2 -2
  13. package/dist/{VideoProperties.vue_vue_type_script_setup_true_lang-C7l371rG.js → VideoProperties.vue_vue_type_script_setup_true_lang-BIg6hg9n.js} +1 -1
  14. package/dist/{VideoPropertiesModal-CcgFfcXd.js → VideoPropertiesModal-DTnfD1tS.js} +2 -2
  15. package/dist/{YoutubeInsertModal-B81eZZ3b.js → YoutubeInsertModal-Br27gi-y.js} +2 -2
  16. package/dist/{YoutubeProperties.vue_vue_type_script_setup_true_lang-DKGiIhRX.js → YoutubeProperties.vue_vue_type_script_setup_true_lang-BpbU20_i.js} +1 -1
  17. package/dist/{YoutubePropertiesModal-BI7rBusJ.js → YoutubePropertiesModal-BXCSIlF9.js} +2 -2
  18. package/dist/bluesea.js +1 -1
  19. package/dist/bluesea.umd.cjs +6 -2
  20. package/dist/config/config.d.ts +3 -2
  21. package/dist/{index-DzQ05auj.js → index-CpfyaKHy.js} +22 -18
  22. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, createBlock, openBlock, withCtx, withDirectives, createElementVNode, unref, createVNode } from "vue";
2
- import { u as useModalHandle, _ as _sfc_main$1, v as vT, B as BSButton, j as vFocusOnLoad } from "./index-DzQ05auj.js";
2
+ import { u as useModalHandle, _ as _sfc_main$1, v as vT, B as BSButton, j as vFocusOnLoad } from "./index-CpfyaKHy.js";
3
3
  const _hoisted_1 = { class: "text-right" };
4
4
  const _sfc_main = /* @__PURE__ */ defineComponent({
5
5
  __name: "BSAlertModal",
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, ref, onMounted, createBlock, openBlock, withCtx, createElementVNode, createVNode, mergeProps, unref, toHandlers, nextTick } from "vue";
2
- import { f as createInputGridHandler, u as useModalHandle, _ as _sfc_main$1, B as BSButton, g as _sfc_main$2, h as _sfc_main$3, i as _sfc_main$4, n as notNull } from "./index-DzQ05auj.js";
2
+ import { f as createInputGridHandler, u as useModalHandle, _ as _sfc_main$1, B as BSButton, g as _sfc_main$2, h as _sfc_main$3, i as _sfc_main$4, n as notNull } from "./index-CpfyaKHy.js";
3
3
  const _hoisted_1 = { class: "text-center" };
4
4
  const _hoisted_2 = { class: "text-center" };
5
5
  const _hoisted_3 = { class: "bs-layout-horizontal" };
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, mergeModels, useModel, useTemplateRef, createBlock, openBlock } from "vue";
2
- import { u as useModalHandle, d as _sfc_main$1 } from "./index-DzQ05auj.js";
2
+ import { u as useModalHandle, d as _sfc_main$1 } from "./index-CpfyaKHy.js";
3
3
  const _sfc_main = /* @__PURE__ */ defineComponent({
4
4
  __name: "BSRichTextMaximizedModal",
5
5
  props: /* @__PURE__ */ mergeModels({
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, createBlock, openBlock, withCtx, withDirectives, createElementVNode, unref, createVNode } from "vue";
2
- import { u as useModalHandle, _ as _sfc_main$1, v as vT, B as BSButton } from "./index-DzQ05auj.js";
2
+ import { u as useModalHandle, _ as _sfc_main$1, v as vT, B as BSButton } from "./index-CpfyaKHy.js";
3
3
  const _hoisted_1 = { class: "text-right" };
4
4
  const _sfc_main = /* @__PURE__ */ defineComponent({
5
5
  __name: "BSYesNoModal",
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, useModel, ref, createBlock, openBlock, withCtx, createElementVNode, createVNode, createCommentVNode, unref } from "vue";
2
- import { u as useModalHandle, _ as _sfc_main$1, B as BSButton, b as _sfc_main$2, c as _sfc_main$3, e as extractYoutubeVideoId } from "./index-DzQ05auj.js";
2
+ import { u as useModalHandle, _ as _sfc_main$1, B as BSButton, b as _sfc_main$2, c as _sfc_main$3, e as extractYoutubeVideoId } from "./index-CpfyaKHy.js";
3
3
  import YouTube from "vue3-youtube";
4
4
  const _hoisted_1 = { class: "bs-layout-vertical gap-16" };
5
5
  const _hoisted_2 = { class: "bs-layout-horizontal align-items-center" };
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, computed, ref, createBlock, openBlock, withCtx, createElementVNode, createVNode, withDirectives, vShow } from "vue";
2
- import { u as useModalHandle, _ as _sfc_main$1, B as BSButton, a as _sfc_main$2, b as _sfc_main$3, c as _sfc_main$4 } from "./index-DzQ05auj.js";
3
- import { _ as _sfc_main$5 } from "./ImageProperties.vue_vue_type_script_setup_true_lang-BIoCOwlw.js";
2
+ import { u as useModalHandle, _ as _sfc_main$1, B as BSButton, a as _sfc_main$2, b as _sfc_main$3, c as _sfc_main$4 } from "./index-CpfyaKHy.js";
3
+ import { _ as _sfc_main$5 } from "./ImageProperties.vue_vue_type_script_setup_true_lang-2wZT4GKQ.js";
4
4
  const _hoisted_1 = { class: "bs-layout-form title-w-8" };
5
5
  const _hoisted_2 = { class: "title" };
6
6
  const _hoisted_3 = { class: "bs-layout-horizontal justify-content-end gap-8" };
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, createElementBlock, openBlock, Fragment, createElementVNode, createVNode, withDirectives, createTextVNode, unref } from "vue";
2
- import { b as _sfc_main$1, c as _sfc_main$2, v as vT } from "./index-DzQ05auj.js";
2
+ import { b as _sfc_main$1, c as _sfc_main$2, v as vT } from "./index-CpfyaKHy.js";
3
3
  const _hoisted_1 = { class: "title" };
4
4
  const _hoisted_2 = { class: "title" };
5
5
  const _hoisted_3 = { class: "title" };
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, computed, ref, onMounted, useTemplateRef, createBlock, openBlock, withCtx, createElementVNode, createVNode, createElementBlock, createCommentVNode } from "vue";
2
- import { o as findImageNode, u as useModalHandle, _ as _sfc_main$1, B as BSButton, b as _sfc_main$2, c as _sfc_main$3, m as formValidator, p as imageInfoNumberToPixel } from "./index-DzQ05auj.js";
3
- import { _ as _sfc_main$4 } from "./ImageProperties.vue_vue_type_script_setup_true_lang-BIoCOwlw.js";
2
+ import { o as findImageNode, u as useModalHandle, _ as _sfc_main$1, B as BSButton, b as _sfc_main$2, c as _sfc_main$3, m as formValidator, p as imageInfoNumberToPixel } from "./index-CpfyaKHy.js";
3
+ import { _ as _sfc_main$4 } from "./ImageProperties.vue_vue_type_script_setup_true_lang-2wZT4GKQ.js";
4
4
  const _hoisted_1 = { class: "title" };
5
5
  const _hoisted_2 = { class: "bs-layout-horizontal justify-content-end gap-8" };
6
6
  const _sfc_main = /* @__PURE__ */ defineComponent({
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, ref, onMounted, createBlock, openBlock, withCtx, createElementVNode, createVNode, createTextVNode, withModifiers } from "vue";
2
- import { u as useModalHandle, _ as _sfc_main$1, B as BSButton, b as _sfc_main$2, c as _sfc_main$3 } from "./index-DzQ05auj.js";
2
+ import { u as useModalHandle, _ as _sfc_main$1, B as BSButton, b as _sfc_main$2, c as _sfc_main$3 } from "./index-CpfyaKHy.js";
3
3
  const _hoisted_1 = { class: "bs-layout-form title-w-8" };
4
4
  const _hoisted_2 = { class: "title" };
5
5
  const _hoisted_3 = { class: "title" };
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, ref, createBlock, openBlock, withCtx, createElementVNode, createVNode } from "vue";
2
- import { u as useModalHandle, _ as _sfc_main$1, B as BSButton, b as _sfc_main$2, h as _sfc_main$3 } from "./index-DzQ05auj.js";
2
+ import { u as useModalHandle, _ as _sfc_main$1, B as BSButton, b as _sfc_main$2, h as _sfc_main$3 } from "./index-CpfyaKHy.js";
3
3
  const _hoisted_1 = { class: "bs-layout-form" };
4
4
  const _hoisted_2 = { class: "bs-form-label" };
5
5
  const _hoisted_3 = { class: "bs-form-label" };
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, computed, ref, onMounted, useTemplateRef, createBlock, openBlock, withCtx, createElementVNode, createVNode, createElementBlock, createCommentVNode, withDirectives, createTextVNode, unref, Fragment, renderList, toDisplayString } from "vue";
2
- import { k as componentUtil, u as useModalHandle, _ as _sfc_main$1, B as BSButton, b as _sfc_main$2, c as _sfc_main$3, v as vT, l as _sfc_main$4, m as formValidator } from "./index-DzQ05auj.js";
2
+ import { k as componentUtil, u as useModalHandle, _ as _sfc_main$1, B as BSButton, b as _sfc_main$2, c as _sfc_main$3, v as vT, l as _sfc_main$4, m as formValidator } from "./index-CpfyaKHy.js";
3
3
  const findTableNode = (selection, type) => {
4
4
  const head = selection.$head;
5
5
  let depth = head.depth;
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, computed, ref, createBlock, openBlock, withCtx, createElementVNode, createVNode, withDirectives, vShow } from "vue";
2
- import { u as useModalHandle, _ as _sfc_main$1, B as BSButton, a as _sfc_main$2, b as _sfc_main$3, c as _sfc_main$4 } from "./index-DzQ05auj.js";
3
- import { _ as _sfc_main$5 } from "./VideoProperties.vue_vue_type_script_setup_true_lang-C7l371rG.js";
2
+ import { u as useModalHandle, _ as _sfc_main$1, B as BSButton, a as _sfc_main$2, b as _sfc_main$3, c as _sfc_main$4 } from "./index-CpfyaKHy.js";
3
+ import { _ as _sfc_main$5 } from "./VideoProperties.vue_vue_type_script_setup_true_lang-BIg6hg9n.js";
4
4
  const _hoisted_1 = { class: "bs-layout-form title-w-8" };
5
5
  const _hoisted_2 = { class: "title" };
6
6
  const _hoisted_3 = { class: "bs-layout-horizontal justify-content-end gap-8" };
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, createElementBlock, openBlock, Fragment, createElementVNode, createVNode, withDirectives, createTextVNode, unref } from "vue";
2
- import { i as _sfc_main$1, b as _sfc_main$2, c as _sfc_main$3, v as vT } from "./index-DzQ05auj.js";
2
+ import { i as _sfc_main$1, b as _sfc_main$2, c as _sfc_main$3, v as vT } from "./index-CpfyaKHy.js";
3
3
  const _hoisted_1 = { class: "bs-layout-horizontal gap-8" };
4
4
  const _hoisted_2 = { class: "title" };
5
5
  const _hoisted_3 = { class: "title" };
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, computed, ref, onMounted, useTemplateRef, createBlock, openBlock, withCtx, createElementVNode, createVNode, createElementBlock, createCommentVNode } from "vue";
2
- import { s as findVideoNode, u as useModalHandle, _ as _sfc_main$1, B as BSButton, b as _sfc_main$2, c as _sfc_main$3, m as formValidator, t as videoInfoNumberToPixel } from "./index-DzQ05auj.js";
3
- import { _ as _sfc_main$4 } from "./VideoProperties.vue_vue_type_script_setup_true_lang-C7l371rG.js";
2
+ import { s as findVideoNode, u as useModalHandle, _ as _sfc_main$1, B as BSButton, b as _sfc_main$2, c as _sfc_main$3, m as formValidator, t as videoInfoNumberToPixel } from "./index-CpfyaKHy.js";
3
+ import { _ as _sfc_main$4 } from "./VideoProperties.vue_vue_type_script_setup_true_lang-BIg6hg9n.js";
4
4
  const _hoisted_1 = { class: "title" };
5
5
  const _hoisted_2 = { class: "bs-layout-horizontal justify-content-end gap-8" };
6
6
  const _sfc_main = /* @__PURE__ */ defineComponent({
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, computed, ref, createBlock, openBlock, withCtx, createElementVNode, createVNode } from "vue";
2
- import { u as useModalHandle, _ as _sfc_main$1, B as BSButton, b as _sfc_main$2, c as _sfc_main$3, y as youtubeInfoNumberToPixel } from "./index-DzQ05auj.js";
3
- import { _ as _sfc_main$4 } from "./YoutubeProperties.vue_vue_type_script_setup_true_lang-DKGiIhRX.js";
2
+ import { u as useModalHandle, _ as _sfc_main$1, B as BSButton, b as _sfc_main$2, c as _sfc_main$3, y as youtubeInfoNumberToPixel } from "./index-CpfyaKHy.js";
3
+ import { _ as _sfc_main$4 } from "./YoutubeProperties.vue_vue_type_script_setup_true_lang-BpbU20_i.js";
4
4
  const _hoisted_1 = { class: "bs-layout-form" };
5
5
  const _hoisted_2 = { class: "title" };
6
6
  const _hoisted_3 = { class: "bs-layout-horizontal justify-content-end gap-8" };
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, createElementBlock, openBlock, Fragment, createElementVNode, createVNode, withDirectives, createTextVNode, unref } from "vue";
2
- import { b as _sfc_main$1, c as _sfc_main$2, v as vT } from "./index-DzQ05auj.js";
2
+ import { b as _sfc_main$1, c as _sfc_main$2, v as vT } from "./index-CpfyaKHy.js";
3
3
  const _hoisted_1 = { class: "title" };
4
4
  const _hoisted_2 = { class: "title" };
5
5
  const _hoisted_3 = { class: "title" };
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, computed, ref, onMounted, createBlock, openBlock, withCtx, createElementVNode, createVNode, createElementBlock, createCommentVNode } from "vue";
2
- import { q as findYoutubeNode, r as normalizeYoutubeInfoData, u as useModalHandle, _ as _sfc_main$1, B as BSButton, b as _sfc_main$2, c as _sfc_main$3, y as youtubeInfoNumberToPixel } from "./index-DzQ05auj.js";
3
- import { _ as _sfc_main$4 } from "./YoutubeProperties.vue_vue_type_script_setup_true_lang-DKGiIhRX.js";
2
+ import { q as findYoutubeNode, r as normalizeYoutubeInfoData, u as useModalHandle, _ as _sfc_main$1, B as BSButton, b as _sfc_main$2, c as _sfc_main$3, y as youtubeInfoNumberToPixel } from "./index-CpfyaKHy.js";
3
+ import { _ as _sfc_main$4 } from "./YoutubeProperties.vue_vue_type_script_setup_true_lang-BpbU20_i.js";
4
4
  const _hoisted_1 = {
5
5
  key: 0,
6
6
  class: "bs-layout-form"
package/dist/bluesea.js CHANGED
@@ -1,4 +1,4 @@
1
- import { aI, aJ, bD, bE, w, al, av, B, H, I, a5, i, O, an, K, D, aw, ck, F, L, ar, M, a3, a4, as, N, b, g, a1, a0, a8, ao, am, Y, A, a7, a6, E, ai, c2, at, _, Z, af, ah, ag, ae, ad, ac, S, aj, au, h, G, ap, z, V, $, J, C, P, l, d, R, aq, a, ak, W, a2, c, aa, ab, U, T, a9, Q, x, bL, bK, aS, ay, cp, ax, aZ, aX, aU, X, bJ, a$, a_, cu, bB, bH, aY, bN, bM, bI, co, b0, aR, aF, aG, aE, aH, bG, bF, aW, bC, bs, bZ, ct, b7, be, bY, cD, c8, bO, bV, bU, aO, bv, ca, aP, cj, cn, cq, f, c5, aV, ba, cH, aK, bb, aL, aN, aM, b3, bT, bp, bq, br, bm, bo, bn, e, bl, bi, m, cw, aQ, b2, ch, cd, cv, bR, aA, cE, cB, cF, bw, cC, bx, bX, bW, ce, bf, bS, bh, bd, cG, b1, c1, c0, aT, bQ, n, c6, bP, cA, cr, b_, c4, bt, b4, b8, bA, by, bz, c9, cg, cf, c7, cc, bg, bc, cb, cz, cl, cm, cs, b$, c3, u, bu, b5, b6, b9, az, aC, aD, j, v, aB, bj, bk, cy, cx, ci } from "./index-DzQ05auj.js";
1
+ import { aI, aJ, bD, bE, w, al, av, B, H, I, a5, i, O, an, K, D, aw, ck, F, L, ar, M, a3, a4, as, N, b, g, a1, a0, a8, ao, am, Y, A, a7, a6, E, ai, c2, at, _, Z, af, ah, ag, ae, ad, ac, S, aj, au, h, G, ap, z, V, $, J, C, P, l, d, R, aq, a, ak, W, a2, c, aa, ab, U, T, a9, Q, x, bL, bK, aS, ay, cp, ax, aZ, aX, aU, X, bJ, a$, a_, cu, bB, bH, aY, bN, bM, bI, co, b0, aR, aF, aG, aE, aH, bG, bF, aW, bC, bs, bZ, ct, b7, be, bY, cD, c8, bO, bV, bU, aO, bv, ca, aP, cj, cn, cq, f, c5, aV, ba, cH, aK, bb, aL, aN, aM, b3, bT, bp, bq, br, bm, bo, bn, e, bl, bi, m, cw, aQ, b2, ch, cd, cv, bR, aA, cE, cB, cF, bw, cC, bx, bX, bW, ce, bf, bS, bh, bd, cG, b1, c1, c0, aT, bQ, n, c6, bP, cA, cr, b_, c4, bt, b4, b8, bA, by, bz, c9, cg, cf, c7, cc, bg, bc, cb, cz, cl, cm, cs, b$, c3, u, bu, b5, b6, b9, az, aC, aD, j, v, aB, bj, bk, cy, cx, ci } from "./index-CpfyaKHy.js";
2
2
  export {
3
3
  aI as ADDRESS_COUNTRY_CONFIGS,
4
4
  aJ as ADDRESS_COUNTRY_CONFIG_DEFAULT,
@@ -118,6 +118,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
118
118
  __publicField(this, "currentLocale");
119
119
  __publicField(this, "dataLocales");
120
120
  __publicField(this, "currentDataLocale");
121
+ __publicField(this, "defaultDataLocale");
121
122
  __publicField(this, "timeZone");
122
123
  __publicField(this, "displayTimeZones");
123
124
  __publicField(this, "allTimeZones");
@@ -142,6 +143,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
142
143
  this.currentLocale = this.defaultLocale;
143
144
  this.dataLocales = ["en"];
144
145
  this.currentDataLocale = this.dataLocales[0];
146
+ this.defaultDataLocale = this.dataLocales[0];
145
147
  this.timeZone = Intl.DateTimeFormat().resolvedOptions().timeZone;
146
148
  this.displayTimeZones = [];
147
149
  this.allTimeZones = [this.timeZone];
@@ -163,7 +165,8 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
163
165
  if (options.dataLocales && options.dataLocales.length > 0) {
164
166
  this.setDataLocales(
165
167
  options.dataLocales,
166
- options.currentDataLocale || options.dataLocales[0]
168
+ options.currentDataLocale || options.dataLocales[0],
169
+ options.defaultDataLocale || options.dataLocales[0]
167
170
  );
168
171
  }
169
172
  if (options.timeZone) this.timeZone = options.timeZone;
@@ -212,9 +215,10 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
212
215
  setCurrentLocale(locale) {
213
216
  this.currentLocale = locale || this.defaultLocale;
214
217
  }
215
- setDataLocales(dataLocales, currentDataLocale) {
218
+ setDataLocales(dataLocales, currentDataLocale, defaultDataLocale) {
216
219
  this.dataLocales = dataLocales;
217
220
  this.currentDataLocale = currentDataLocale;
221
+ this.defaultDataLocale = defaultDataLocale || dataLocales[0];
218
222
  }
219
223
  setCurrentDataLocale(locale) {
220
224
  this.currentDataLocale = locale || this.dataLocales[0] || "en";
@@ -94,6 +94,7 @@ declare class BlueseaConfig {
94
94
  currentLocale: LocaleName;
95
95
  dataLocales: LocaleName[];
96
96
  currentDataLocale: LocaleName;
97
+ defaultDataLocale: LocaleName;
97
98
  timeZone: TimeZone;
98
99
  displayTimeZones: TimeZone[];
99
100
  allTimeZones: TimeZone[];
@@ -117,7 +118,7 @@ declare class BlueseaConfig {
117
118
  configure(options: BlueseaConfigRaw): void;
118
119
  setLocales(locales: LocaleName[], defaultLocale: LocaleName, currentLocale: LocaleName): void;
119
120
  setCurrentLocale(locale?: LocaleName): void;
120
- setDataLocales(dataLocales: LocaleName[], currentDataLocale: LocaleName): void;
121
+ setDataLocales(dataLocales: LocaleName[], currentDataLocale: LocaleName, defaultDataLocale?: LocaleName): void;
121
122
  setCurrentDataLocale(locale?: LocaleName): void;
122
123
  getValidDisplayTimeZones(): TimeZone[];
123
124
  resolveDisplayDateFormat(format?: string | DisplayDateResolution): string;
@@ -127,8 +128,8 @@ export type BlueseaConfigRaw = {
127
128
  defaultLocale?: LocaleName;
128
129
  currentLocale?: LocaleName;
129
130
  dataLocales?: LocaleName[];
130
- defaultDataLocale?: LocaleName;
131
131
  currentDataLocale?: LocaleName;
132
+ defaultDataLocale?: LocaleName;
132
133
  timeZone?: TimeZone;
133
134
  displayTimeZones?: TimeZone[];
134
135
  allTimeZones?: TimeZone[];
@@ -87,8 +87,8 @@ const defaultAddressInputComponentConfig = {
87
87
  countryConfigs: ADDRESS_COUNTRY_CONFIGS
88
88
  };
89
89
  const defaultRichTextComponentConfig = {
90
- imageInsertModal: defineAsyncComponent(() => import("./ImageInsertModal-B5WoMehM.js")),
91
- videoInsertModal: defineAsyncComponent(() => import("./VideoInsertModal-Blyjl-az.js")),
90
+ imageInsertModal: defineAsyncComponent(() => import("./ImageInsertModal-DdYqZWc5.js")),
91
+ videoInsertModal: defineAsyncComponent(() => import("./VideoInsertModal-kNMv3Gr0.js")),
92
92
  toolButtons: [
93
93
  "Heading",
94
94
  "FontSize",
@@ -118,6 +118,7 @@ class BlueseaConfig {
118
118
  __publicField(this, "currentLocale");
119
119
  __publicField(this, "dataLocales");
120
120
  __publicField(this, "currentDataLocale");
121
+ __publicField(this, "defaultDataLocale");
121
122
  __publicField(this, "timeZone");
122
123
  __publicField(this, "displayTimeZones");
123
124
  __publicField(this, "allTimeZones");
@@ -142,6 +143,7 @@ class BlueseaConfig {
142
143
  this.currentLocale = this.defaultLocale;
143
144
  this.dataLocales = ["en"];
144
145
  this.currentDataLocale = this.dataLocales[0];
146
+ this.defaultDataLocale = this.dataLocales[0];
145
147
  this.timeZone = Intl.DateTimeFormat().resolvedOptions().timeZone;
146
148
  this.displayTimeZones = [];
147
149
  this.allTimeZones = [this.timeZone];
@@ -163,7 +165,8 @@ class BlueseaConfig {
163
165
  if (options.dataLocales && options.dataLocales.length > 0) {
164
166
  this.setDataLocales(
165
167
  options.dataLocales,
166
- options.currentDataLocale || options.dataLocales[0]
168
+ options.currentDataLocale || options.dataLocales[0],
169
+ options.defaultDataLocale || options.dataLocales[0]
167
170
  );
168
171
  }
169
172
  if (options.timeZone) this.timeZone = options.timeZone;
@@ -212,9 +215,10 @@ class BlueseaConfig {
212
215
  setCurrentLocale(locale) {
213
216
  this.currentLocale = locale || this.defaultLocale;
214
217
  }
215
- setDataLocales(dataLocales, currentDataLocale) {
218
+ setDataLocales(dataLocales, currentDataLocale, defaultDataLocale) {
216
219
  this.dataLocales = dataLocales;
217
220
  this.currentDataLocale = currentDataLocale;
221
+ this.defaultDataLocale = defaultDataLocale || dataLocales[0];
218
222
  }
219
223
  setCurrentDataLocale(locale) {
220
224
  this.currentDataLocale = locale || this.dataLocales[0] || "en";
@@ -6002,7 +6006,7 @@ class BSModal {
6002
6006
  }
6003
6007
  openAlert(title, message, clickHandler2) {
6004
6008
  const option = {
6005
- component: defineAsyncComponent(() => import("./BSAlertModal-B6XlvWm2.js")),
6009
+ component: defineAsyncComponent(() => import("./BSAlertModal-B3zqxyBI.js")),
6006
6010
  bind: {
6007
6011
  title,
6008
6012
  message
@@ -6015,7 +6019,7 @@ class BSModal {
6015
6019
  }
6016
6020
  openYesNo(title, message, yesHandler, noHandler) {
6017
6021
  const option = {
6018
- component: defineAsyncComponent(() => import("./BSYesNoModal-CcElFZw-.js")),
6022
+ component: defineAsyncComponent(() => import("./BSYesNoModal-82FcvYh-.js")),
6019
6023
  bind: {
6020
6024
  title,
6021
6025
  message
@@ -31128,13 +31132,13 @@ const tableContextMenus = (modal, editor) => {
31128
31132
  };
31129
31133
  const showTableProperties = (modal, editor) => {
31130
31134
  modal.openModal({
31131
- component: defineAsyncComponent(() => import("./TablePropertiesModal-C1FzxMmL.js")),
31135
+ component: defineAsyncComponent(() => import("./TablePropertiesModal-BlPP_yM-.js")),
31132
31136
  bind: { editor }
31133
31137
  });
31134
31138
  };
31135
31139
  const insertTable = (modal, editor) => {
31136
31140
  modal.openModal({
31137
- component: defineAsyncComponent(() => import("./TableInsertModal-ChcQJBQV.js")),
31141
+ component: defineAsyncComponent(() => import("./TableInsertModal-CQP0Lv5V.js")),
31138
31142
  bind: { editor }
31139
31143
  });
31140
31144
  };
@@ -31299,7 +31303,7 @@ const insertImage = (modal, editor) => {
31299
31303
  const component = (_a2 = blueseaConfig.componentConfig.richText) == null ? void 0 : _a2.imageInsertModal;
31300
31304
  if (component) {
31301
31305
  modal.openModal({
31302
- component: defineAsyncComponent(() => import("./ImageInsertModal-B5WoMehM.js")),
31306
+ component: defineAsyncComponent(() => import("./ImageInsertModal-DdYqZWc5.js")),
31303
31307
  bind: { editor },
31304
31308
  on: {
31305
31309
  insertImage: (image) => {
@@ -31317,7 +31321,7 @@ const insertImage = (modal, editor) => {
31317
31321
  };
31318
31322
  const showImageProperties = (modal, editor) => {
31319
31323
  modal.openModal({
31320
- component: defineAsyncComponent(() => import("./ImagePropertiesModal-AuLfc63Y.js")),
31324
+ component: defineAsyncComponent(() => import("./ImagePropertiesModal-CQnEtdug.js")),
31321
31325
  bind: { editor }
31322
31326
  });
31323
31327
  };
@@ -31678,13 +31682,13 @@ const youtubeContextMenu = (modal, editor) => {
31678
31682
  };
31679
31683
  const insertYoutube = (modal, editor) => {
31680
31684
  modal.openModal({
31681
- component: defineAsyncComponent(() => import("./YoutubeInsertModal-B81eZZ3b.js")),
31685
+ component: defineAsyncComponent(() => import("./YoutubeInsertModal-Br27gi-y.js")),
31682
31686
  bind: { editor }
31683
31687
  });
31684
31688
  };
31685
31689
  const showYoutubeProperties = (modal, editor) => {
31686
31690
  modal.openModal({
31687
- component: defineAsyncComponent(() => import("./YoutubePropertiesModal-BI7rBusJ.js")),
31691
+ component: defineAsyncComponent(() => import("./YoutubePropertiesModal-BXCSIlF9.js")),
31688
31692
  bind: { editor }
31689
31693
  });
31690
31694
  };
@@ -31728,7 +31732,7 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
31728
31732
  const showLinkProperties = () => {
31729
31733
  if (!props.disabled) {
31730
31734
  modal.openModal({
31731
- component: defineAsyncComponent(() => import("./LinkPropertiesModal-CzM1G8qN.js")),
31735
+ component: defineAsyncComponent(() => import("./LinkPropertiesModal-DiqsnQW6.js")),
31732
31736
  bind: {
31733
31737
  editor: props.editor
31734
31738
  }
@@ -32093,7 +32097,7 @@ const insertVideo = (modal, editor) => {
32093
32097
  const component = (_a2 = blueseaConfig.componentConfig.richText) == null ? void 0 : _a2.videoInsertModal;
32094
32098
  if (component) {
32095
32099
  modal.openModal({
32096
- component: defineAsyncComponent(() => import("./VideoInsertModal-Blyjl-az.js")),
32100
+ component: defineAsyncComponent(() => import("./VideoInsertModal-kNMv3Gr0.js")),
32097
32101
  bind: { editor },
32098
32102
  on: {
32099
32103
  insertVideo: (video) => {
@@ -32111,7 +32115,7 @@ const insertVideo = (modal, editor) => {
32111
32115
  };
32112
32116
  const showVideoProperties = (modal, editor) => {
32113
32117
  modal.openModal({
32114
- component: defineAsyncComponent(() => import("./VideoPropertiesModal-CcgFfcXd.js")),
32118
+ component: defineAsyncComponent(() => import("./VideoPropertiesModal-DTnfD1tS.js")),
32115
32119
  bind: { editor }
32116
32120
  });
32117
32121
  };
@@ -34289,7 +34293,7 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
34289
34293
  emit("maximized");
34290
34294
  if (!props.internalMaximized) {
34291
34295
  modal.openModal({
34292
- component: defineAsyncComponent(() => import("./BSRichTextMaximizedModal-DhmCYN9S.js")),
34296
+ component: defineAsyncComponent(() => import("./BSRichTextMaximizedModal-BP6jz2N7.js")),
34293
34297
  bind: {
34294
34298
  modelValue: getEditorValue(),
34295
34299
  contentMaxWidth: props.contentMaxWidth,
@@ -34826,7 +34830,7 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
34826
34830
  const modal = useModal();
34827
34831
  const enterYoutubeUrl = () => {
34828
34832
  modal.openModal({
34829
- component: defineAsyncComponent(() => import("./BSYoutubeInputModal-DLXCEq2-.js")),
34833
+ component: defineAsyncComponent(() => import("./BSYoutubeInputModal-CrtOzrD-.js")),
34830
34834
  on: {
34831
34835
  "update:modelValue": (url) => {
34832
34836
  emit("update:modelValue", {
@@ -38147,7 +38151,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
38147
38151
  const modal = useModal();
38148
38152
  const openSettingModal = () => {
38149
38153
  modal.openModal({
38150
- component: defineAsyncComponent(() => import("./BSGridColumnSettingModal-DgqYUHUF.js")),
38154
+ component: defineAsyncComponent(() => import("./BSGridColumnSettingModal-CD9mFu9P.js")),
38151
38155
  bind: {
38152
38156
  columns: props.columns,
38153
38157
  columnSettings: props.columnSettings,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@g1cloud/bluesea",
3
3
  "private": false,
4
- "version": "5.0.0-beta.6",
4
+ "version": "5.0.0-beta.7",
5
5
  "description": "Ui Library for g1cloud BackOffice.",
6
6
  "type": "module",
7
7
  "engines": {