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

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 (23) hide show
  1. package/dist/{BSAlertModal-BsYimMJ_.js → BSAlertModal-B6XlvWm2.js} +1 -1
  2. package/dist/{BSGridColumnSettingModal-BEB2-Ux4.js → BSGridColumnSettingModal-DgqYUHUF.js} +1 -1
  3. package/dist/{BSRichTextMaximizedModal-LB8VUZme.js → BSRichTextMaximizedModal-DhmCYN9S.js} +1 -1
  4. package/dist/{BSYesNoModal-Cc1Nki9Z.js → BSYesNoModal-CcElFZw-.js} +1 -1
  5. package/dist/{BSYoutubeInputModal-BJ1snN1M.js → BSYoutubeInputModal-DLXCEq2-.js} +1 -1
  6. package/dist/{ImageInsertModal-CO6NeKVX.js → ImageInsertModal-B5WoMehM.js} +2 -2
  7. package/dist/{ImageProperties.vue_vue_type_script_setup_true_lang-DUkL-qju.js → ImageProperties.vue_vue_type_script_setup_true_lang-BIoCOwlw.js} +1 -1
  8. package/dist/{ImagePropertiesModal-NMjlJ5hA.js → ImagePropertiesModal-AuLfc63Y.js} +2 -2
  9. package/dist/{LinkPropertiesModal-CFQucomV.js → LinkPropertiesModal-CzM1G8qN.js} +1 -1
  10. package/dist/{TableInsertModal-D0cHwmgl.js → TableInsertModal-ChcQJBQV.js} +1 -1
  11. package/dist/{TablePropertiesModal-H8Ohz-Xv.js → TablePropertiesModal-C1FzxMmL.js} +1 -1
  12. package/dist/{VideoInsertModal-DR06SKIA.js → VideoInsertModal-Blyjl-az.js} +2 -2
  13. package/dist/{VideoProperties.vue_vue_type_script_setup_true_lang-BOCeOQVe.js → VideoProperties.vue_vue_type_script_setup_true_lang-C7l371rG.js} +1 -1
  14. package/dist/{VideoPropertiesModal-BvwmSEP-.js → VideoPropertiesModal-CcgFfcXd.js} +2 -2
  15. package/dist/{YoutubeInsertModal-CL4QiU4m.js → YoutubeInsertModal-B81eZZ3b.js} +2 -2
  16. package/dist/{YoutubeProperties.vue_vue_type_script_setup_true_lang-BpRF2WTd.js → YoutubeProperties.vue_vue_type_script_setup_true_lang-DKGiIhRX.js} +1 -1
  17. package/dist/{YoutubePropertiesModal-DaHvv9Df.js → YoutubePropertiesModal-BI7rBusJ.js} +2 -2
  18. package/dist/bluesea.js +1 -1
  19. package/dist/bluesea.umd.cjs +22 -21
  20. package/dist/component/grid/BSGridLookup.vue.d.ts +3 -1
  21. package/dist/component/grid/GridModel.d.ts +1 -0
  22. package/dist/{index-Bx4oDJu3.js → index-DzQ05auj.js} +38 -37
  23. 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-Bx4oDJu3.js";
2
+ import { u as useModalHandle, _ as _sfc_main$1, v as vT, B as BSButton, j as vFocusOnLoad } from "./index-DzQ05auj.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-Bx4oDJu3.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-DzQ05auj.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-Bx4oDJu3.js";
2
+ import { u as useModalHandle, d as _sfc_main$1 } from "./index-DzQ05auj.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-Bx4oDJu3.js";
2
+ import { u as useModalHandle, _ as _sfc_main$1, v as vT, B as BSButton } from "./index-DzQ05auj.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-Bx4oDJu3.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-DzQ05auj.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-Bx4oDJu3.js";
3
- import { _ as _sfc_main$5 } from "./ImageProperties.vue_vue_type_script_setup_true_lang-DUkL-qju.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-DzQ05auj.js";
3
+ import { _ as _sfc_main$5 } from "./ImageProperties.vue_vue_type_script_setup_true_lang-BIoCOwlw.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-Bx4oDJu3.js";
2
+ import { b as _sfc_main$1, c as _sfc_main$2, v as vT } from "./index-DzQ05auj.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-Bx4oDJu3.js";
3
- import { _ as _sfc_main$4 } from "./ImageProperties.vue_vue_type_script_setup_true_lang-DUkL-qju.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-DzQ05auj.js";
3
+ import { _ as _sfc_main$4 } from "./ImageProperties.vue_vue_type_script_setup_true_lang-BIoCOwlw.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-Bx4oDJu3.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-DzQ05auj.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-Bx4oDJu3.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-DzQ05auj.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-Bx4oDJu3.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-DzQ05auj.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-Bx4oDJu3.js";
3
- import { _ as _sfc_main$5 } from "./VideoProperties.vue_vue_type_script_setup_true_lang-BOCeOQVe.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-DzQ05auj.js";
3
+ import { _ as _sfc_main$5 } from "./VideoProperties.vue_vue_type_script_setup_true_lang-C7l371rG.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-Bx4oDJu3.js";
2
+ import { i as _sfc_main$1, b as _sfc_main$2, c as _sfc_main$3, v as vT } from "./index-DzQ05auj.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-Bx4oDJu3.js";
3
- import { _ as _sfc_main$4 } from "./VideoProperties.vue_vue_type_script_setup_true_lang-BOCeOQVe.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-DzQ05auj.js";
3
+ import { _ as _sfc_main$4 } from "./VideoProperties.vue_vue_type_script_setup_true_lang-C7l371rG.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-Bx4oDJu3.js";
3
- import { _ as _sfc_main$4 } from "./YoutubeProperties.vue_vue_type_script_setup_true_lang-BpRF2WTd.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-DzQ05auj.js";
3
+ import { _ as _sfc_main$4 } from "./YoutubeProperties.vue_vue_type_script_setup_true_lang-DKGiIhRX.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-Bx4oDJu3.js";
2
+ import { b as _sfc_main$1, c as _sfc_main$2, v as vT } from "./index-DzQ05auj.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-Bx4oDJu3.js";
3
- import { _ as _sfc_main$4 } from "./YoutubeProperties.vue_vue_type_script_setup_true_lang-BpRF2WTd.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-DzQ05auj.js";
3
+ import { _ as _sfc_main$4 } from "./YoutubeProperties.vue_vue_type_script_setup_true_lang-DKGiIhRX.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-Bx4oDJu3.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-DzQ05auj.js";
2
2
  export {
3
3
  aI as ADDRESS_COUNTRY_CONFIGS,
4
4
  aJ as ADDRESS_COUNTRY_CONFIG_DEFAULT,
@@ -4037,8 +4037,9 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
4037
4037
  };
4038
4038
  const viewModeValue = vue.computed(() => viewModeTimeZoneValue(actualTimeZone.value));
4039
4039
  const viewModeTimeZoneValue = (displayTimeZone) => {
4040
+ const stringDate = formatUtil.formatDateString(props.modelValue, dateInputFormatByResolution("SECOND"), actualTimeZone.value);
4040
4041
  const date = convertInputToDateString(
4041
- props.modelValue,
4042
+ stringDate,
4042
4043
  "SECOND",
4043
4044
  props.endTime,
4044
4045
  "SECOND",
@@ -4392,8 +4393,9 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
4392
4393
  const viewModeFrom = vue.computed(() => viewModeTimeZoneValue(props.fromValue, false, actualTimeZone.value));
4393
4394
  const viewModeTo = vue.computed(() => viewModeTimeZoneValue(props.toValue, true, actualTimeZone.value));
4394
4395
  const viewModeTimeZoneValue = (value, endTime, displayTimeZone) => {
4396
+ const stringDate = formatUtil.formatDateString(value, dateInputFormatByResolution("SECOND"), actualTimeZone.value);
4395
4397
  const date = convertInputToDateString(
4396
- value,
4398
+ stringDate,
4397
4399
  "SECOND",
4398
4400
  endTime,
4399
4401
  "SECOND",
@@ -36004,6 +36006,8 @@ img.ProseMirror-separator {
36004
36006
  * @param offset
36005
36007
  */
36006
36008
  async loadGridData(offset2) {
36009
+ var _a2;
36010
+ await ((_a2 = this.preferenceLoader) == null ? void 0 : _a2.waitForLoaded());
36007
36011
  this.grid.loading = true;
36008
36012
  if (offset2 !== void 0) this.searchParam.offset = offset2;
36009
36013
  const result = await this.option.getGridData(this.searchParam);
@@ -36370,6 +36374,9 @@ img.ProseMirror-separator {
36370
36374
  this.handler.control.columnSettings = pref.columnSettings;
36371
36375
  this.handler.control.fixedColumnCount = pref.fixedColumnCount;
36372
36376
  }
36377
+ if ("lookup" in this.handler && this.handler.lookup) {
36378
+ this.handler.lookup.gridPreferenceDateFilterValues = pref.dateFilterValues;
36379
+ }
36373
36380
  }
36374
36381
  } finally {
36375
36382
  this.preferenceLoaded.value = true;
@@ -37978,7 +37985,8 @@ img.ProseMirror-separator {
37978
37985
  dateFilterWidth: {},
37979
37986
  dateFilterPopupStartYear: {},
37980
37987
  dateFilterPopupEndYear: {},
37981
- keyword: {}
37988
+ keyword: {},
37989
+ gridPreferenceDateFilterValues: {}
37982
37990
  },
37983
37991
  emits: ["update:modelValue", "search"],
37984
37992
  setup(__props, { emit: __emit }) {
@@ -38004,26 +38012,19 @@ img.ProseMirror-separator {
38004
38012
  emitUpdateModelValue();
38005
38013
  emitSearch();
38006
38014
  };
38007
- const loadStoredDateFilter = async () => {
38008
- if (props.gridId && blueseaConfig.gridPreferenceStore) {
38009
- const pref = await blueseaConfig.gridPreferenceStore.loadPreference(props.gridId);
38010
- const dateFilterValues = pref == null ? void 0 : pref.dateFilterValues;
38011
- if (dateFilterValues && dateFilterValues.filters && dateFilterValues.filters.length > 0) {
38012
- const filters = dateFilterValues.filters.map((filter) => {
38013
- const dateFilter = filter;
38014
- if (dateFilter.name && (dateFilter.fromValue || dateFilter.toValue)) {
38015
- return betweenDateFilter(dateFilter.name, dateFilter.fromValue, dateFilter.toValue);
38016
- }
38017
- }).filter(notNull);
38018
- if (filters.length > 0) return andFilter(filters);
38015
+ vue.watch(() => props.gridPreferenceDateFilterValues, () => {
38016
+ if (props.gridPreferenceDateFilterValues && props.gridPreferenceDateFilterValues.filters && props.gridPreferenceDateFilterValues.filters.length > 0) {
38017
+ const filters = props.gridPreferenceDateFilterValues.filters.map((filter) => {
38018
+ const dateFilter = filter;
38019
+ if (dateFilter.name && (dateFilter.fromValue || dateFilter.toValue)) {
38020
+ return betweenDateFilter(dateFilter.name, dateFilter.fromValue, dateFilter.toValue);
38021
+ }
38022
+ }).filter(notNull);
38023
+ if (filters.length > 0) {
38024
+ dateFilterValue.value = andFilter(filters);
38025
+ emitUpdateModelValue();
38019
38026
  }
38020
38027
  }
38021
- };
38022
- vue.onMounted(async () => {
38023
- dateFilterValue.value = await loadStoredDateFilter();
38024
- if (dateFilterValue.value) {
38025
- emitUpdateModelValueAndSearch();
38026
- }
38027
38028
  });
38028
38029
  const saveSearchCondition = async () => {
38029
38030
  var _a2;
@@ -1,5 +1,5 @@
1
1
  import { GridLookupConfig } from './GridModel';
2
- import { Filter } from '../../model/FilterModel';
2
+ import { AndFilter, Filter } from '../../model/FilterModel';
3
3
  import { DateRangePreset } from '../input/DateRangePresetModel.ts';
4
4
  import { DateResolution } from '../../model/CommonTypes.ts';
5
5
 
@@ -16,6 +16,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
16
16
  dateFilterPopupStartYear?: string | undefined;
17
17
  dateFilterPopupEndYear?: string | undefined;
18
18
  keyword?: string | undefined;
19
+ gridPreferenceDateFilterValues?: Partial<import('../../util/typeUtil.ts').NonFunctionProperties<AndFilter>> | undefined;
19
20
  }>, {
20
21
  dateFilterDateFormat: () => string;
21
22
  dateFilterResolution: () => DateResolution;
@@ -35,6 +36,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
35
36
  dateFilterPopupStartYear?: string | undefined;
36
37
  dateFilterPopupEndYear?: string | undefined;
37
38
  keyword?: string | undefined;
39
+ gridPreferenceDateFilterValues?: Partial<import('../../util/typeUtil.ts').NonFunctionProperties<AndFilter>> | undefined;
38
40
  }>, {
39
41
  dateFilterDateFormat: () => string;
40
42
  dateFilterResolution: () => DateResolution;
@@ -160,6 +160,7 @@ export type GridControlEventListener = {
160
160
  export type GridLookupBinding = {
161
161
  gridId?: string;
162
162
  modelValue: Filter[];
163
+ gridPreferenceDateFilterValues?: RawData<AndFilter>;
163
164
  };
164
165
  export type GridLookupEventListener = {
165
166
  'update:modelValue': (value: Filter[]) => void;
@@ -87,8 +87,8 @@ const defaultAddressInputComponentConfig = {
87
87
  countryConfigs: ADDRESS_COUNTRY_CONFIGS
88
88
  };
89
89
  const defaultRichTextComponentConfig = {
90
- imageInsertModal: defineAsyncComponent(() => import("./ImageInsertModal-CO6NeKVX.js")),
91
- videoInsertModal: defineAsyncComponent(() => import("./VideoInsertModal-DR06SKIA.js")),
90
+ imageInsertModal: defineAsyncComponent(() => import("./ImageInsertModal-B5WoMehM.js")),
91
+ videoInsertModal: defineAsyncComponent(() => import("./VideoInsertModal-Blyjl-az.js")),
92
92
  toolButtons: [
93
93
  "Heading",
94
94
  "FontSize",
@@ -4037,8 +4037,9 @@ const _sfc_main$1o = /* @__PURE__ */ defineComponent({
4037
4037
  };
4038
4038
  const viewModeValue = computed(() => viewModeTimeZoneValue(actualTimeZone.value));
4039
4039
  const viewModeTimeZoneValue = (displayTimeZone) => {
4040
+ const stringDate = formatUtil.formatDateString(props.modelValue, dateInputFormatByResolution("SECOND"), actualTimeZone.value);
4040
4041
  const date = convertInputToDateString(
4041
- props.modelValue,
4042
+ stringDate,
4042
4043
  "SECOND",
4043
4044
  props.endTime,
4044
4045
  "SECOND",
@@ -4392,8 +4393,9 @@ const _sfc_main$1m = /* @__PURE__ */ defineComponent({
4392
4393
  const viewModeFrom = computed(() => viewModeTimeZoneValue(props.fromValue, false, actualTimeZone.value));
4393
4394
  const viewModeTo = computed(() => viewModeTimeZoneValue(props.toValue, true, actualTimeZone.value));
4394
4395
  const viewModeTimeZoneValue = (value, endTime, displayTimeZone) => {
4396
+ const stringDate = formatUtil.formatDateString(value, dateInputFormatByResolution("SECOND"), actualTimeZone.value);
4395
4397
  const date = convertInputToDateString(
4396
- value,
4398
+ stringDate,
4397
4399
  "SECOND",
4398
4400
  endTime,
4399
4401
  "SECOND",
@@ -6000,7 +6002,7 @@ class BSModal {
6000
6002
  }
6001
6003
  openAlert(title, message, clickHandler2) {
6002
6004
  const option = {
6003
- component: defineAsyncComponent(() => import("./BSAlertModal-BsYimMJ_.js")),
6005
+ component: defineAsyncComponent(() => import("./BSAlertModal-B6XlvWm2.js")),
6004
6006
  bind: {
6005
6007
  title,
6006
6008
  message
@@ -6013,7 +6015,7 @@ class BSModal {
6013
6015
  }
6014
6016
  openYesNo(title, message, yesHandler, noHandler) {
6015
6017
  const option = {
6016
- component: defineAsyncComponent(() => import("./BSYesNoModal-Cc1Nki9Z.js")),
6018
+ component: defineAsyncComponent(() => import("./BSYesNoModal-CcElFZw-.js")),
6017
6019
  bind: {
6018
6020
  title,
6019
6021
  message
@@ -31126,13 +31128,13 @@ const tableContextMenus = (modal, editor) => {
31126
31128
  };
31127
31129
  const showTableProperties = (modal, editor) => {
31128
31130
  modal.openModal({
31129
- component: defineAsyncComponent(() => import("./TablePropertiesModal-H8Ohz-Xv.js")),
31131
+ component: defineAsyncComponent(() => import("./TablePropertiesModal-C1FzxMmL.js")),
31130
31132
  bind: { editor }
31131
31133
  });
31132
31134
  };
31133
31135
  const insertTable = (modal, editor) => {
31134
31136
  modal.openModal({
31135
- component: defineAsyncComponent(() => import("./TableInsertModal-D0cHwmgl.js")),
31137
+ component: defineAsyncComponent(() => import("./TableInsertModal-ChcQJBQV.js")),
31136
31138
  bind: { editor }
31137
31139
  });
31138
31140
  };
@@ -31297,7 +31299,7 @@ const insertImage = (modal, editor) => {
31297
31299
  const component = (_a2 = blueseaConfig.componentConfig.richText) == null ? void 0 : _a2.imageInsertModal;
31298
31300
  if (component) {
31299
31301
  modal.openModal({
31300
- component: defineAsyncComponent(() => import("./ImageInsertModal-CO6NeKVX.js")),
31302
+ component: defineAsyncComponent(() => import("./ImageInsertModal-B5WoMehM.js")),
31301
31303
  bind: { editor },
31302
31304
  on: {
31303
31305
  insertImage: (image) => {
@@ -31315,7 +31317,7 @@ const insertImage = (modal, editor) => {
31315
31317
  };
31316
31318
  const showImageProperties = (modal, editor) => {
31317
31319
  modal.openModal({
31318
- component: defineAsyncComponent(() => import("./ImagePropertiesModal-NMjlJ5hA.js")),
31320
+ component: defineAsyncComponent(() => import("./ImagePropertiesModal-AuLfc63Y.js")),
31319
31321
  bind: { editor }
31320
31322
  });
31321
31323
  };
@@ -31676,13 +31678,13 @@ const youtubeContextMenu = (modal, editor) => {
31676
31678
  };
31677
31679
  const insertYoutube = (modal, editor) => {
31678
31680
  modal.openModal({
31679
- component: defineAsyncComponent(() => import("./YoutubeInsertModal-CL4QiU4m.js")),
31681
+ component: defineAsyncComponent(() => import("./YoutubeInsertModal-B81eZZ3b.js")),
31680
31682
  bind: { editor }
31681
31683
  });
31682
31684
  };
31683
31685
  const showYoutubeProperties = (modal, editor) => {
31684
31686
  modal.openModal({
31685
- component: defineAsyncComponent(() => import("./YoutubePropertiesModal-DaHvv9Df.js")),
31687
+ component: defineAsyncComponent(() => import("./YoutubePropertiesModal-BI7rBusJ.js")),
31686
31688
  bind: { editor }
31687
31689
  });
31688
31690
  };
@@ -31726,7 +31728,7 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
31726
31728
  const showLinkProperties = () => {
31727
31729
  if (!props.disabled) {
31728
31730
  modal.openModal({
31729
- component: defineAsyncComponent(() => import("./LinkPropertiesModal-CFQucomV.js")),
31731
+ component: defineAsyncComponent(() => import("./LinkPropertiesModal-CzM1G8qN.js")),
31730
31732
  bind: {
31731
31733
  editor: props.editor
31732
31734
  }
@@ -32091,7 +32093,7 @@ const insertVideo = (modal, editor) => {
32091
32093
  const component = (_a2 = blueseaConfig.componentConfig.richText) == null ? void 0 : _a2.videoInsertModal;
32092
32094
  if (component) {
32093
32095
  modal.openModal({
32094
- component: defineAsyncComponent(() => import("./VideoInsertModal-DR06SKIA.js")),
32096
+ component: defineAsyncComponent(() => import("./VideoInsertModal-Blyjl-az.js")),
32095
32097
  bind: { editor },
32096
32098
  on: {
32097
32099
  insertVideo: (video) => {
@@ -32109,7 +32111,7 @@ const insertVideo = (modal, editor) => {
32109
32111
  };
32110
32112
  const showVideoProperties = (modal, editor) => {
32111
32113
  modal.openModal({
32112
- component: defineAsyncComponent(() => import("./VideoPropertiesModal-BvwmSEP-.js")),
32114
+ component: defineAsyncComponent(() => import("./VideoPropertiesModal-CcgFfcXd.js")),
32113
32115
  bind: { editor }
32114
32116
  });
32115
32117
  };
@@ -34287,7 +34289,7 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
34287
34289
  emit("maximized");
34288
34290
  if (!props.internalMaximized) {
34289
34291
  modal.openModal({
34290
- component: defineAsyncComponent(() => import("./BSRichTextMaximizedModal-LB8VUZme.js")),
34292
+ component: defineAsyncComponent(() => import("./BSRichTextMaximizedModal-DhmCYN9S.js")),
34291
34293
  bind: {
34292
34294
  modelValue: getEditorValue(),
34293
34295
  contentMaxWidth: props.contentMaxWidth,
@@ -34824,7 +34826,7 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
34824
34826
  const modal = useModal();
34825
34827
  const enterYoutubeUrl = () => {
34826
34828
  modal.openModal({
34827
- component: defineAsyncComponent(() => import("./BSYoutubeInputModal-BJ1snN1M.js")),
34829
+ component: defineAsyncComponent(() => import("./BSYoutubeInputModal-DLXCEq2-.js")),
34828
34830
  on: {
34829
34831
  "update:modelValue": (url) => {
34830
34832
  emit("update:modelValue", {
@@ -36004,6 +36006,8 @@ class PageGridHandlerImpl {
36004
36006
  * @param offset
36005
36007
  */
36006
36008
  async loadGridData(offset2) {
36009
+ var _a2;
36010
+ await ((_a2 = this.preferenceLoader) == null ? void 0 : _a2.waitForLoaded());
36007
36011
  this.grid.loading = true;
36008
36012
  if (offset2 !== void 0) this.searchParam.offset = offset2;
36009
36013
  const result = await this.option.getGridData(this.searchParam);
@@ -36370,6 +36374,9 @@ class GridPreferenceLoader {
36370
36374
  this.handler.control.columnSettings = pref.columnSettings;
36371
36375
  this.handler.control.fixedColumnCount = pref.fixedColumnCount;
36372
36376
  }
36377
+ if ("lookup" in this.handler && this.handler.lookup) {
36378
+ this.handler.lookup.gridPreferenceDateFilterValues = pref.dateFilterValues;
36379
+ }
36373
36380
  }
36374
36381
  } finally {
36375
36382
  this.preferenceLoaded.value = true;
@@ -37978,7 +37985,8 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
37978
37985
  dateFilterWidth: {},
37979
37986
  dateFilterPopupStartYear: {},
37980
37987
  dateFilterPopupEndYear: {},
37981
- keyword: {}
37988
+ keyword: {},
37989
+ gridPreferenceDateFilterValues: {}
37982
37990
  },
37983
37991
  emits: ["update:modelValue", "search"],
37984
37992
  setup(__props, { emit: __emit }) {
@@ -38004,26 +38012,19 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
38004
38012
  emitUpdateModelValue();
38005
38013
  emitSearch();
38006
38014
  };
38007
- const loadStoredDateFilter = async () => {
38008
- if (props.gridId && blueseaConfig.gridPreferenceStore) {
38009
- const pref = await blueseaConfig.gridPreferenceStore.loadPreference(props.gridId);
38010
- const dateFilterValues = pref == null ? void 0 : pref.dateFilterValues;
38011
- if (dateFilterValues && dateFilterValues.filters && dateFilterValues.filters.length > 0) {
38012
- const filters = dateFilterValues.filters.map((filter) => {
38013
- const dateFilter = filter;
38014
- if (dateFilter.name && (dateFilter.fromValue || dateFilter.toValue)) {
38015
- return betweenDateFilter(dateFilter.name, dateFilter.fromValue, dateFilter.toValue);
38016
- }
38017
- }).filter(notNull);
38018
- if (filters.length > 0) return andFilter(filters);
38015
+ watch(() => props.gridPreferenceDateFilterValues, () => {
38016
+ if (props.gridPreferenceDateFilterValues && props.gridPreferenceDateFilterValues.filters && props.gridPreferenceDateFilterValues.filters.length > 0) {
38017
+ const filters = props.gridPreferenceDateFilterValues.filters.map((filter) => {
38018
+ const dateFilter = filter;
38019
+ if (dateFilter.name && (dateFilter.fromValue || dateFilter.toValue)) {
38020
+ return betweenDateFilter(dateFilter.name, dateFilter.fromValue, dateFilter.toValue);
38021
+ }
38022
+ }).filter(notNull);
38023
+ if (filters.length > 0) {
38024
+ dateFilterValue.value = andFilter(filters);
38025
+ emitUpdateModelValue();
38019
38026
  }
38020
38027
  }
38021
- };
38022
- onMounted(async () => {
38023
- dateFilterValue.value = await loadStoredDateFilter();
38024
- if (dateFilterValue.value) {
38025
- emitUpdateModelValueAndSearch();
38026
- }
38027
38028
  });
38028
38029
  const saveSearchCondition = async () => {
38029
38030
  var _a2;
@@ -38146,7 +38147,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
38146
38147
  const modal = useModal();
38147
38148
  const openSettingModal = () => {
38148
38149
  modal.openModal({
38149
- component: defineAsyncComponent(() => import("./BSGridColumnSettingModal-BEB2-Ux4.js")),
38150
+ component: defineAsyncComponent(() => import("./BSGridColumnSettingModal-DgqYUHUF.js")),
38150
38151
  bind: {
38151
38152
  columns: props.columns,
38152
38153
  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.4",
4
+ "version": "5.0.0-beta.6",
5
5
  "description": "Ui Library for g1cloud BackOffice.",
6
6
  "type": "module",
7
7
  "engines": {