@g1cloud/bluesea 5.0.0-alpha.123 → 5.0.0-alpha.124

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 (31) hide show
  1. package/dist/{BSAlertModal-BIjg1E1h.js → BSAlertModal-S3mxyBhv.js} +1 -1
  2. package/dist/{BSGridColumnSettingModal-xhdzxRSx.js → BSGridColumnSettingModal-D9FtIMRD.js} +1 -1
  3. package/dist/{BSRichTextMaximizedModal-DZb0xXDx.js → BSRichTextMaximizedModal-6M-Z2wTe.js} +1 -1
  4. package/dist/{BSYesNoModal-BXzMEOwD.js → BSYesNoModal-DVRpOOHi.js} +1 -1
  5. package/dist/{BSYoutubeInputModal-y2uCRt3J.js → BSYoutubeInputModal-D6if-kXn.js} +1 -1
  6. package/dist/{ImageInsertModal-B1iK6KPB.js → ImageInsertModal-B6l7J-h9.js} +2 -2
  7. package/dist/{ImageProperties.vue_vue_type_script_setup_true_lang-C81QPSm9.js → ImageProperties.vue_vue_type_script_setup_true_lang-BnSkHCfQ.js} +1 -1
  8. package/dist/{ImagePropertiesModal-FJhmdVtw.js → ImagePropertiesModal-CWbdqphq.js} +2 -2
  9. package/dist/{LinkPropertiesModal-CaBekXfZ.js → LinkPropertiesModal-B3TA2r3j.js} +1 -1
  10. package/dist/{TableInsertModal-B9yzl4k5.js → TableInsertModal-CEGRAuUK.js} +1 -1
  11. package/dist/{VideoInsertModal-qTxk80mK.js → VideoInsertModal-DZ75X4uF.js} +2 -2
  12. package/dist/{VideoProperties.vue_vue_type_script_setup_true_lang-P5oGPx5H.js → VideoProperties.vue_vue_type_script_setup_true_lang-ooKd80_A.js} +1 -1
  13. package/dist/{VideoPropertiesModal-CM_Jol3T.js → VideoPropertiesModal-DGCqGp-o.js} +2 -2
  14. package/dist/{YoutubeInsertModal-CHA8gTFb.js → YoutubeInsertModal-DjreHcYq.js} +2 -2
  15. package/dist/{YoutubeProperties.vue_vue_type_script_setup_true_lang-XU8rbiru.js → YoutubeProperties.vue_vue_type_script_setup_true_lang-CTvjEjRj.js} +1 -1
  16. package/dist/{YoutubePropertiesModal-BcM_Gl-N.js → YoutubePropertiesModal-iqIhvxS1.js} +2 -2
  17. package/dist/bluesea.js +1 -1
  18. package/dist/bluesea.umd.cjs +127 -28
  19. package/dist/component/basic/BSCalendar.vue.d.ts +10 -0
  20. package/dist/component/basic/BSCalendarRange.vue.d.ts +4 -0
  21. package/dist/component/grid/BSDateRangeFilter.vue.d.ts +4 -0
  22. package/dist/component/grid/BSDateRangeFilters.vue.d.ts +4 -0
  23. package/dist/component/grid/BSGridLookup.vue.d.ts +4 -0
  24. package/dist/component/input/BSDateInput.vue.d.ts +4 -0
  25. package/dist/component/input/BSDateInputPopup.vue.d.ts +4 -0
  26. package/dist/component/input/BSDateRange.vue.d.ts +4 -0
  27. package/dist/component/input/BSDateRangeInputPopup.vue.d.ts +4 -0
  28. package/dist/component/input/DateInputLib.d.ts +2 -0
  29. package/dist/config/config.d.ts +5 -0
  30. package/dist/{index-fHqW8zSb.js → index-BDvUPaDb.js} +142 -43
  31. 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-fHqW8zSb.js";
2
+ import { u as useModalHandle, _ as _sfc_main$1, v as vT, B as BSButton, j as vFocusOnLoad } from "./index-BDvUPaDb.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-fHqW8zSb.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-BDvUPaDb.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-fHqW8zSb.js";
2
+ import { u as useModalHandle, d as _sfc_main$1 } from "./index-BDvUPaDb.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-fHqW8zSb.js";
2
+ import { u as useModalHandle, _ as _sfc_main$1, v as vT, B as BSButton } from "./index-BDvUPaDb.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-fHqW8zSb.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-BDvUPaDb.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-fHqW8zSb.js";
3
- import { _ as _sfc_main$5 } from "./ImageProperties.vue_vue_type_script_setup_true_lang-C81QPSm9.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-BDvUPaDb.js";
3
+ import { _ as _sfc_main$5 } from "./ImageProperties.vue_vue_type_script_setup_true_lang-BnSkHCfQ.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-fHqW8zSb.js";
2
+ import { b as _sfc_main$1, c as _sfc_main$2, v as vT } from "./index-BDvUPaDb.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 { k as findImageNode, u as useModalHandle, _ as _sfc_main$1, B as BSButton, b as _sfc_main$2, c as _sfc_main$3, l as formValidator, m as imageInfoNumberToPixel } from "./index-fHqW8zSb.js";
3
- import { _ as _sfc_main$4 } from "./ImageProperties.vue_vue_type_script_setup_true_lang-C81QPSm9.js";
2
+ import { k as findImageNode, u as useModalHandle, _ as _sfc_main$1, B as BSButton, b as _sfc_main$2, c as _sfc_main$3, l as formValidator, m as imageInfoNumberToPixel } from "./index-BDvUPaDb.js";
3
+ import { _ as _sfc_main$4 } from "./ImageProperties.vue_vue_type_script_setup_true_lang-BnSkHCfQ.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-fHqW8zSb.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-BDvUPaDb.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-fHqW8zSb.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-BDvUPaDb.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,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-fHqW8zSb.js";
3
- import { _ as _sfc_main$5 } from "./VideoProperties.vue_vue_type_script_setup_true_lang-P5oGPx5H.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-BDvUPaDb.js";
3
+ import { _ as _sfc_main$5 } from "./VideoProperties.vue_vue_type_script_setup_true_lang-ooKd80_A.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-fHqW8zSb.js";
2
+ import { i as _sfc_main$1, b as _sfc_main$2, c as _sfc_main$3, v as vT } from "./index-BDvUPaDb.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 { q as findVideoNode, u as useModalHandle, _ as _sfc_main$1, B as BSButton, b as _sfc_main$2, c as _sfc_main$3, l as formValidator, r as videoInfoNumberToPixel } from "./index-fHqW8zSb.js";
3
- import { _ as _sfc_main$4 } from "./VideoProperties.vue_vue_type_script_setup_true_lang-P5oGPx5H.js";
2
+ import { q as findVideoNode, u as useModalHandle, _ as _sfc_main$1, B as BSButton, b as _sfc_main$2, c as _sfc_main$3, l as formValidator, r as videoInfoNumberToPixel } from "./index-BDvUPaDb.js";
3
+ import { _ as _sfc_main$4 } from "./VideoProperties.vue_vue_type_script_setup_true_lang-ooKd80_A.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-fHqW8zSb.js";
3
- import { _ as _sfc_main$4 } from "./YoutubeProperties.vue_vue_type_script_setup_true_lang-XU8rbiru.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-BDvUPaDb.js";
3
+ import { _ as _sfc_main$4 } from "./YoutubeProperties.vue_vue_type_script_setup_true_lang-CTvjEjRj.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-fHqW8zSb.js";
2
+ import { b as _sfc_main$1, c as _sfc_main$2, v as vT } from "./index-BDvUPaDb.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 { o as findYoutubeNode, p 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-fHqW8zSb.js";
3
- import { _ as _sfc_main$4 } from "./YoutubeProperties.vue_vue_type_script_setup_true_lang-XU8rbiru.js";
2
+ import { o as findYoutubeNode, p 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-BDvUPaDb.js";
3
+ import { _ as _sfc_main$4 } from "./YoutubeProperties.vue_vue_type_script_setup_true_lang-CTvjEjRj.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 { aH, aI, bC, bD, s, ak, au, B, F, G, a4, i, M, am, I, A, av, cj, D, J, aq, K, a2, a3, ar, L, b, g, a0, $, a7, an, al, X, x, a6, a5, C, ah, c1, as, _, Y, ae, ag, af, ad, ac, ab, R, ai, at, h, E, ao, w, U, Z, H, z, N, O, d, Q, ap, a, aj, V, a1, c, a9, aa, T, S, a8, P, t, bK, bJ, aR, ax, co, aw, aY, aW, aT, W, bI, a_, aZ, ct, bA, bG, aX, bM, bL, bH, cn, a$, aQ, aE, aF, aD, aG, bF, bE, aV, bB, br, bY, cs, b6, bd, bX, cC, c7, bN, bU, bT, aN, bu, c9, aO, ci, cm, cp, f, c4, aU, b9, cG, aJ, ba, aK, aM, aL, b2, bS, bo, bp, bq, bl, bn, bm, e, bk, bh, l, cv, aP, b1, cg, cc, cu, bQ, az, cD, cA, cE, bv, cB, bw, bW, bV, cd, be, bR, bg, bc, cF, b0, c0, b$, aS, bP, n, c5, bO, cz, cq, bZ, c3, bs, b3, b7, bz, bx, by, c8, cf, ce, c6, cb, bf, bb, ca, cy, ck, cl, cr, b_, c2, u, bt, b4, b5, b8, ay, aB, aC, j, v, aA, bi, bj, cx, cw, ch } from "./index-fHqW8zSb.js";
1
+ import { aH, aI, bC, bD, s, ak, au, B, F, G, a4, i, M, am, I, A, av, cj, D, J, aq, K, a2, a3, ar, L, b, g, a0, $, a7, an, al, X, x, a6, a5, C, ah, c1, as, _, Y, ae, ag, af, ad, ac, ab, R, ai, at, h, E, ao, w, U, Z, H, z, N, O, d, Q, ap, a, aj, V, a1, c, a9, aa, T, S, a8, P, t, bK, bJ, aR, ax, co, aw, aY, aW, aT, W, bI, a_, aZ, ct, bA, bG, aX, bM, bL, bH, cn, a$, aQ, aE, aF, aD, aG, bF, bE, aV, bB, br, bY, cs, b6, bd, bX, cC, c7, bN, bU, bT, aN, bu, c9, aO, ci, cm, cp, f, c4, aU, b9, cG, aJ, ba, aK, aM, aL, b2, bS, bo, bp, bq, bl, bn, bm, e, bk, bh, l, cv, aP, b1, cg, cc, cu, bQ, az, cD, cA, cE, bv, cB, bw, bW, bV, cd, be, bR, bg, bc, cF, b0, c0, b$, aS, bP, n, c5, bO, cz, cq, bZ, c3, bs, b3, b7, bz, bx, by, c8, cf, ce, c6, cb, bf, bb, ca, cy, ck, cl, cr, b_, c2, u, bt, b4, b5, b8, ay, aB, aC, j, v, aA, bi, bj, cx, cw, ch } from "./index-BDvUPaDb.js";
2
2
  export {
3
3
  aH as ADDRESS_COUNTRY_CONFIGS,
4
4
  aI as ADDRESS_COUNTRY_CONFIG_DEFAULT,
@@ -152,7 +152,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
152
152
  this.configure({});
153
153
  }
154
154
  configure(options) {
155
- var _a2, _b, _c, _d, _e, _f, _g;
155
+ var _a2, _b, _c, _d, _e, _f, _g, _h;
156
156
  if (options.locales && options.locales.length > 0) {
157
157
  this.setLocales(
158
158
  options.locales,
@@ -193,7 +193,8 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
193
193
  gridLookup: { ...(_d = options.componentConfig) == null ? void 0 : _d.gridLookup },
194
194
  richText: { ...defaultRichTextComponentConfig, ...(_e = options.componentConfig) == null ? void 0 : _e.richText },
195
195
  upload: { ...defaultUploadComponentConfig, ...(_f = options.componentConfig) == null ? void 0 : _f.upload },
196
- tabSheet: { ...defaultTabSheetComponentConfig, ...(_g = options.componentConfig) == null ? void 0 : _g.tabSheet }
196
+ tabSheet: { ...defaultTabSheetComponentConfig, ...(_g = options.componentConfig) == null ? void 0 : _g.tabSheet },
197
+ calendar: { ...(_h = options.componentConfig) == null ? void 0 : _h.calendar }
197
198
  };
198
199
  if (options.telSerializer) {
199
200
  this.telSerializer = options.telSerializer;
@@ -2773,7 +2774,15 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
2773
2774
  displayFormat: {},
2774
2775
  rangeType: {},
2775
2776
  rangeValue: {},
2776
- disabled: { type: Boolean }
2777
+ disabled: { type: Boolean },
2778
+ startYear: { default: () => {
2779
+ var _a2;
2780
+ return ((_a2 = blueseaConfig.componentConfig.calendar) == null ? void 0 : _a2.startYear) || "-20";
2781
+ } },
2782
+ endYear: { default: () => {
2783
+ var _a2;
2784
+ return ((_a2 = blueseaConfig.componentConfig.calendar) == null ? void 0 : _a2.endYear) || "+20";
2785
+ } }
2777
2786
  },
2778
2787
  emits: ["update:modelValue"],
2779
2788
  setup(__props, { emit: __emit }) {
@@ -2821,7 +2830,20 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
2821
2830
  });
2822
2831
  return days;
2823
2832
  });
2824
- const years = [...Array(40).keys()].map((value) => value + (today.value.year() - 20));
2833
+ const calculateYear = (now, value) => {
2834
+ if (value.startsWith("+") || value.startsWith("-")) return now + parseInt(value);
2835
+ else return parseInt(value);
2836
+ };
2837
+ const years = vue.computed(() => {
2838
+ const now = dayjs().year();
2839
+ const start2 = calculateYear(now, props.startYear);
2840
+ const end2 = calculateYear(now, props.endYear);
2841
+ if (end2 >= start2) {
2842
+ const length = end2 - start2 + 1;
2843
+ return Array.from({ length }, (_, i2) => start2 + i2);
2844
+ }
2845
+ return [];
2846
+ });
2825
2847
  const months = [...Array(12).keys()].map((value) => value + 1);
2826
2848
  const hours = [...Array(24).keys()];
2827
2849
  const minutes = vue.computed(() => {
@@ -2926,7 +2948,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
2926
2948
  modelValue: year.value,
2927
2949
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => year.value = $event),
2928
2950
  disabled: _ctx.disabled,
2929
- items: vue.unref(years)
2951
+ items: years.value
2930
2952
  }, null, 8, ["modelValue", "disabled", "items"]),
2931
2953
  vue.createVNode(_sfc_main$1V, {
2932
2954
  modelValue: month.value,
@@ -3026,7 +3048,9 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
3026
3048
  hideExtraDate: { type: Boolean },
3027
3049
  firstDay: { default: 1 },
3028
3050
  displayFormat: {},
3029
- resolution: {}
3051
+ resolution: {},
3052
+ startYear: {},
3053
+ endYear: {}
3030
3054
  },
3031
3055
  emits: ["update:from", "update:to"],
3032
3056
  setup(__props, { emit: __emit }) {
@@ -3063,13 +3087,15 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
3063
3087
  ],
3064
3088
  disabled: _ctx.disabledFrom,
3065
3089
  "display-format": _ctx.displayFormat,
3090
+ "end-year": _ctx.endYear,
3066
3091
  "first-day": _ctx.firstDay,
3067
3092
  "range-value": toValue.value,
3068
3093
  resolution: _ctx.resolution,
3094
+ "start-year": _ctx.startYear,
3069
3095
  "time-zone": actualTimeZone.value,
3070
3096
  "hide-extra-date": "",
3071
3097
  "range-type": "from"
3072
- }, null, 8, ["modelValue", "disabled", "display-format", "first-day", "range-value", "resolution", "time-zone"]),
3098
+ }, null, 8, ["modelValue", "disabled", "display-format", "end-year", "first-day", "range-value", "resolution", "start-year", "time-zone"]),
3073
3099
  _cache[2] || (_cache[2] = vue.createElementVNode("span", { class: "tilde" }, "~", -1)),
3074
3100
  vue.createVNode(_sfc_main$1K, {
3075
3101
  modelValue: toValue.value,
@@ -3079,15 +3105,17 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
3079
3105
  ],
3080
3106
  disabled: _ctx.disabledTo,
3081
3107
  "display-format": _ctx.displayFormat,
3108
+ "end-year": _ctx.endYear,
3082
3109
  "first-day": _ctx.firstDay,
3083
3110
  "initial-month": _ctx.to ? void 0 : nextMonth.value.month() + 1,
3084
3111
  "initial-year": _ctx.to ? void 0 : nextMonth.value.year(),
3085
3112
  "range-value": fromValue.value,
3086
3113
  resolution: _ctx.resolution,
3114
+ "start-year": _ctx.startYear,
3087
3115
  "time-zone": actualTimeZone.value,
3088
3116
  "hide-extra-date": "",
3089
3117
  "range-type": "to"
3090
- }, null, 8, ["modelValue", "disabled", "display-format", "first-day", "initial-month", "initial-year", "range-value", "resolution", "time-zone"])
3118
+ }, null, 8, ["modelValue", "disabled", "display-format", "end-year", "first-day", "initial-month", "initial-year", "range-value", "resolution", "start-year", "time-zone"])
3091
3119
  ]),
3092
3120
  !_ctx.hideExtraDate ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$r, [
3093
3121
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(displayTimeZones.value, (tz, index) => {
@@ -3838,6 +3866,15 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
3838
3866
  }
3839
3867
  return "";
3840
3868
  };
3869
+ const convertDateToInputString = (date, inputFormat, inputTimeZone) => {
3870
+ return dayjs(date).tz(inputTimeZone).format(inputFormat);
3871
+ };
3872
+ const checkDateMinMaxValue = (value, inputFormat, endTime, resolution, inputTimeZone, minDateValue, maxDateValue) => {
3873
+ if (value) {
3874
+ const input = convertDateToInputString(value, inputFormat, inputTimeZone);
3875
+ return convertInputToDateString(input, inputFormat, endTime, resolution, inputTimeZone, minDateValue, maxDateValue);
3876
+ }
3877
+ };
3841
3878
  const normalizeDateInput = (value) => {
3842
3879
  return value.replace(/[^\d-]/g, "");
3843
3880
  };
@@ -3853,7 +3890,9 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
3853
3890
  hideExtraDate: { type: Boolean },
3854
3891
  baseElement: {},
3855
3892
  popupAlign: {},
3856
- popupDirection: {}
3893
+ popupDirection: {},
3894
+ selectStartYear: {},
3895
+ selectEndYear: {}
3857
3896
  },
3858
3897
  emits: ["update:modelValue", "close"],
3859
3898
  setup(__props, { emit: __emit }) {
@@ -3883,10 +3922,12 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
3883
3922
  modelValue: date.value,
3884
3923
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => date.value = $event),
3885
3924
  "display-format": _ctx.displayFormat,
3925
+ "end-year": _ctx.selectEndYear,
3886
3926
  "hide-extra-date": _ctx.hideExtraDate,
3887
3927
  resolution: _ctx.resolution,
3928
+ "start-year": _ctx.selectStartYear,
3888
3929
  "time-zone": _ctx.timeZone
3889
- }, null, 8, ["modelValue", "display-format", "hide-extra-date", "resolution", "time-zone"]),
3930
+ }, null, 8, ["modelValue", "display-format", "end-year", "hide-extra-date", "resolution", "start-year", "time-zone"]),
3890
3931
  vue.createElementVNode("div", _hoisted_2$13, [
3891
3932
  vue.createVNode(BSButton, {
3892
3933
  caption: { key: "bs.ok" },
@@ -3939,6 +3980,8 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
3939
3980
  ignoreSavePoint: { type: Boolean },
3940
3981
  popupAlign: {},
3941
3982
  popupDirection: {},
3983
+ popupStartYear: {},
3984
+ popupEndYear: {},
3942
3985
  hideErrorMessage: { type: Boolean },
3943
3986
  minDateValue: {},
3944
3987
  maxDateValue: {}
@@ -4028,6 +4071,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
4028
4071
  props.maxDateValue
4029
4072
  );
4030
4073
  emit("update:modelValue", date);
4074
+ stringValue.value = convertDateToInputString(date, inputFormat.value, actualTimeZone.value);
4031
4075
  }
4032
4076
  };
4033
4077
  const savePoint = props.ignoreSavePoint ? void 0 : useSavePoint();
@@ -4044,8 +4088,19 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
4044
4088
  showPopup.value = show === void 0 ? !showPopup.value : show;
4045
4089
  }
4046
4090
  };
4047
- const setValueFromPopup = (value) => {
4048
- emit("update:modelValue", value);
4091
+ const setValueFromPopup = async (value) => {
4092
+ const checkedValue = checkDateMinMaxValue(
4093
+ value,
4094
+ inputFormat.value,
4095
+ props.endTime,
4096
+ props.resolution,
4097
+ actualTimeZone.value,
4098
+ props.minDateValue,
4099
+ props.maxDateValue
4100
+ );
4101
+ emit("update:modelValue", checkedValue);
4102
+ await vue.nextTick();
4103
+ await validateValue(value || "", "change");
4049
4104
  };
4050
4105
  return (_ctx, _cache) => {
4051
4106
  return vue.withDirectives((vue.openBlock(), vue.createElementBlock("div", {
@@ -4107,10 +4162,12 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
4107
4162
  "popup-align": _ctx.popupAlign,
4108
4163
  "popup-direction": _ctx.popupDirection,
4109
4164
  resolution: _ctx.resolution,
4165
+ "select-end-year": _ctx.popupEndYear,
4166
+ "select-start-year": _ctx.popupStartYear,
4110
4167
  "time-zone": _ctx.timeZone,
4111
4168
  onClose: _cache[1] || (_cache[1] = () => togglePopup(false)),
4112
4169
  "onUpdate:modelValue": setValueFromPopup
4113
- }, null, 8, ["base-element", "display-format", "hide-extra-date", "model-value", "popup-align", "popup-direction", "resolution", "time-zone"])) : vue.createCommentVNode("", true)
4170
+ }, null, 8, ["base-element", "display-format", "hide-extra-date", "model-value", "popup-align", "popup-direction", "resolution", "select-end-year", "select-start-year", "time-zone"])) : vue.createCommentVNode("", true)
4114
4171
  ], 38)), [
4115
4172
  [vue.unref(vClickOutside), () => togglePopup(false)]
4116
4173
  ]);
@@ -4130,7 +4187,9 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
4130
4187
  displayFormat: {},
4131
4188
  timeZone: {},
4132
4189
  hideExtraDate: { type: Boolean },
4133
- baseElement: {}
4190
+ baseElement: {},
4191
+ selectStartYear: {},
4192
+ selectEndYear: {}
4134
4193
  },
4135
4194
  emits: ["update:from", "update:to", "close"],
4136
4195
  setup(__props, { emit: __emit }) {
@@ -4164,10 +4223,12 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
4164
4223
  "disabled-from": _ctx.disabledFrom,
4165
4224
  "disabled-to": _ctx.disabledTo,
4166
4225
  "display-format": _ctx.displayFormat,
4226
+ "end-year": _ctx.selectEndYear,
4167
4227
  "hide-extra-date": _ctx.hideExtraDate,
4168
4228
  resolution: _ctx.resolution,
4229
+ "start-year": _ctx.selectStartYear,
4169
4230
  "time-zone": _ctx.timeZone
4170
- }, null, 8, ["from", "to", "disabled-from", "disabled-to", "display-format", "hide-extra-date", "resolution", "time-zone"]),
4231
+ }, null, 8, ["from", "to", "disabled-from", "disabled-to", "display-format", "end-year", "hide-extra-date", "resolution", "start-year", "time-zone"]),
4171
4232
  vue.createElementVNode("div", _hoisted_2$11, [
4172
4233
  vue.createVNode(BSButton, {
4173
4234
  caption: { key: "bs.ok" },
@@ -4230,6 +4291,8 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
4230
4291
  popupDisplayFormat: {},
4231
4292
  popupAlign: {},
4232
4293
  popupDirection: {},
4294
+ popupStartYear: {},
4295
+ popupEndYear: {},
4233
4296
  hideErrorMessage: { type: Boolean },
4234
4297
  minDateValue: {},
4235
4298
  maxDateValue: {}
@@ -4258,9 +4321,9 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
4258
4321
  validateValueTo(props.toValue || "", "change");
4259
4322
  }
4260
4323
  );
4261
- const validateValueAll = (phase) => {
4262
- validateValueFrom(props.fromValue || "", phase);
4263
- validateValueTo(props.toValue || "", phase);
4324
+ const validateValueAll = async (phase) => {
4325
+ await validateValueFrom(props.fromValue || "", phase);
4326
+ await validateValueTo(props.toValue || "", phase);
4264
4327
  };
4265
4328
  const focusedFrom = vue.ref(false);
4266
4329
  const focusedTo = vue.ref(false);
@@ -4359,6 +4422,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
4359
4422
  props.maxDateValue
4360
4423
  );
4361
4424
  emit("update:fromValue", date);
4425
+ stringValueFrom.value = convertDateToInputString(date, inputFormat.value, actualTimeZone.value);
4362
4426
  }
4363
4427
  };
4364
4428
  const isValidTo = async (value, phase) => {
@@ -4418,6 +4482,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
4418
4482
  props.maxDateValue
4419
4483
  );
4420
4484
  emit("update:toValue", date);
4485
+ stringValueTo.value = convertDateToInputString(date, inputFormat.value, actualTimeZone.value);
4421
4486
  }
4422
4487
  };
4423
4488
  const savePoint = props.ignoreSavePoint ? void 0 : useSavePoint();
@@ -4442,13 +4507,33 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
4442
4507
  showPopup.value = show === void 0 ? !showPopup.value : show;
4443
4508
  }
4444
4509
  };
4445
- const setFromValueFromPopup = (value) => {
4446
- emit("update:fromValue", value);
4447
- validateValueAll("change");
4510
+ const setFromValueFromPopup = async (value) => {
4511
+ const checkedValue = checkDateMinMaxValue(
4512
+ value,
4513
+ inputFormat.value,
4514
+ false,
4515
+ props.resolution,
4516
+ actualTimeZone.value,
4517
+ props.minDateValue,
4518
+ props.maxDateValue
4519
+ );
4520
+ emit("update:fromValue", checkedValue);
4521
+ await vue.nextTick();
4522
+ await validateValueAll("change");
4448
4523
  };
4449
- const setToValueFromPopup = (value) => {
4450
- emit("update:toValue", value);
4451
- validateValueAll("change");
4524
+ const setToValueFromPopup = async (value) => {
4525
+ const checkedValue = checkDateMinMaxValue(
4526
+ value,
4527
+ inputFormat.value,
4528
+ true,
4529
+ props.resolution,
4530
+ actualTimeZone.value,
4531
+ props.minDateValue,
4532
+ props.maxDateValue
4533
+ );
4534
+ emit("update:toValue", checkedValue);
4535
+ await vue.nextTick();
4536
+ await validateValueAll("change");
4452
4537
  };
4453
4538
  return (_ctx, _cache) => {
4454
4539
  return vue.withDirectives((vue.openBlock(), vue.createElementBlock("div", {
@@ -4531,12 +4616,14 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
4531
4616
  "popup-align": _ctx.popupAlign,
4532
4617
  "popup-direction": _ctx.popupDirection,
4533
4618
  resolution: _ctx.resolution,
4619
+ "select-end-year": _ctx.popupEndYear,
4620
+ "select-start-year": _ctx.popupStartYear,
4534
4621
  "time-zone": _ctx.timeZone,
4535
4622
  to: _ctx.toValue,
4536
4623
  onClose: _cache[1] || (_cache[1] = () => togglePopup(false)),
4537
4624
  "onUpdate:from": setFromValueFromPopup,
4538
4625
  "onUpdate:to": setToValueFromPopup
4539
- }, null, 8, ["base-element", "disabled-from", "disabled-to", "display-format", "from", "hide-extra-date", "popup-align", "popup-direction", "resolution", "time-zone", "to"])) : vue.createCommentVNode("", true)
4626
+ }, null, 8, ["base-element", "disabled-from", "disabled-to", "display-format", "from", "hide-extra-date", "popup-align", "popup-direction", "resolution", "select-end-year", "select-start-year", "time-zone", "to"])) : vue.createCommentVNode("", true)
4540
4627
  ], 38)), [
4541
4628
  [vue.unref(vClickOutside), () => togglePopup(false)]
4542
4629
  ]);
@@ -37527,6 +37614,8 @@ img.ProseMirror-separator {
37527
37614
  resolution: { default: "DAY" },
37528
37615
  displayFormat: {},
37529
37616
  popupDisplayFormat: {},
37617
+ popupStartYear: {},
37618
+ popupEndYear: {},
37530
37619
  timeZone: {}
37531
37620
  },
37532
37621
  emits: ["update:modelValue"],
@@ -37571,12 +37660,14 @@ img.ProseMirror-separator {
37571
37660
  "name-from": _ctx.nameFrom,
37572
37661
  "name-to": _ctx.nameTo,
37573
37662
  "popup-display-format": _ctx.popupDisplayFormat,
37663
+ "popup-end-year": _ctx.popupEndYear,
37664
+ "popup-start-year": _ctx.popupStartYear,
37574
37665
  resolution: _ctx.resolution,
37575
37666
  "time-zone": _ctx.timeZone,
37576
37667
  "validate-date-order": false,
37577
37668
  width: _ctx.width,
37578
37669
  "hide-extra-date": ""
37579
- }, null, 8, ["from-value", "to-value", "disabled-from", "disabled-to", "display-format", "id-from", "id-to", "name-from", "name-to", "popup-display-format", "resolution", "time-zone", "width"]);
37670
+ }, null, 8, ["from-value", "to-value", "disabled-from", "disabled-to", "display-format", "id-from", "id-to", "name-from", "name-to", "popup-display-format", "popup-end-year", "popup-start-year", "resolution", "time-zone", "width"]);
37580
37671
  };
37581
37672
  }
37582
37673
  });
@@ -37593,6 +37684,8 @@ img.ProseMirror-separator {
37593
37684
  captionMinWidth: { default: "140px" },
37594
37685
  dateFormat: {},
37595
37686
  popupDateFormat: {},
37687
+ popupStartYear: {},
37688
+ popupEndYear: {},
37596
37689
  filterWidth: {},
37597
37690
  presets: {},
37598
37691
  resolution: {}
@@ -37720,12 +37813,14 @@ img.ProseMirror-separator {
37720
37813
  "name-from": `${item.propertyId}From`,
37721
37814
  "name-to": `${item.propertyId}To`,
37722
37815
  "popup-display-format": popupDateFormatOfFilterItem(item.propertyId),
37816
+ "popup-end-year": _ctx.popupEndYear,
37817
+ "popup-start-year": _ctx.popupStartYear,
37723
37818
  resolution: _ctx.resolution,
37724
37819
  "time-zone": timeZoneOfFilterItem(item.propertyId),
37725
37820
  "to-id": `${item.propertyId}To`,
37726
37821
  width: filterWidthOfFilterItem(item.propertyId),
37727
37822
  "onUpdate:modelValue": ($event) => setDateFilterValue(index, $event)
37728
- }, null, 8, ["display-format", "from-id", "model-value", "name-from", "name-to", "popup-display-format", "resolution", "time-zone", "to-id", "width", "onUpdate:modelValue"]),
37823
+ }, null, 8, ["display-format", "from-id", "model-value", "name-from", "name-to", "popup-display-format", "popup-end-year", "popup-start-year", "resolution", "time-zone", "to-id", "width", "onUpdate:modelValue"]),
37729
37824
  vue.createVNode(_sfc_main$1z, {
37730
37825
  modelValue: item.value,
37731
37826
  "onUpdate:modelValue": [($event) => item.value = $event, ($event) => setDateFilterValue(index, $event)],
@@ -37758,6 +37853,8 @@ img.ProseMirror-separator {
37758
37853
  } },
37759
37854
  dateFilterPopupDateFormat: {},
37760
37855
  dateFilterWidth: {},
37856
+ dateFilterPopupStartYear: {},
37857
+ dateFilterPopupEndYear: {},
37761
37858
  keyword: {}
37762
37859
  },
37763
37860
  emits: ["update:modelValue", "search"],
@@ -37844,9 +37941,11 @@ img.ProseMirror-separator {
37844
37941
  "date-format": _ctx.dateFilterDateFormat,
37845
37942
  "filter-width": _ctx.dateFilterWidth,
37846
37943
  "popup-date-format": _ctx.dateFilterPopupDateFormat,
37944
+ "popup-end-year": _ctx.dateFilterPopupEndYear,
37945
+ "popup-start-year": _ctx.dateFilterPopupStartYear,
37847
37946
  presets: _ctx.dateRangePresets,
37848
37947
  resolution: _ctx.dateFilterResolution
37849
- }, null, 8, ["modelValue", "caption-min-width", "date-filter", "date-format", "filter-width", "popup-date-format", "presets", "resolution"])) : vue.createCommentVNode("", true),
37948
+ }, null, 8, ["modelValue", "caption-min-width", "date-filter", "date-format", "filter-width", "popup-date-format", "popup-end-year", "popup-start-year", "presets", "resolution"])) : vue.createCommentVNode("", true),
37850
37949
  vue.createElementVNode("div", _hoisted_2$A, [
37851
37950
  vue.createVNode(BSButton, {
37852
37951
  caption: { key: "bs.search" },
@@ -12,9 +12,13 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
12
12
  rangeType?: "to" | "from" | undefined;
13
13
  rangeValue?: string | undefined;
14
14
  disabled?: boolean | undefined;
15
+ startYear?: string | undefined;
16
+ endYear?: string | undefined;
15
17
  }>, {
16
18
  firstDay: number;
17
19
  resolution: string;
20
+ startYear: () => string;
21
+ endYear: () => string;
18
22
  }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
19
23
  "update:modelValue": (value?: string | undefined) => void;
20
24
  }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
@@ -29,12 +33,18 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
29
33
  rangeType?: "to" | "from" | undefined;
30
34
  rangeValue?: string | undefined;
31
35
  disabled?: boolean | undefined;
36
+ startYear?: string | undefined;
37
+ endYear?: string | undefined;
32
38
  }>, {
33
39
  firstDay: number;
34
40
  resolution: string;
41
+ startYear: () => string;
42
+ endYear: () => string;
35
43
  }>>> & Readonly<{
36
44
  "onUpdate:modelValue"?: ((value?: string | undefined) => any) | undefined;
37
45
  }>, {
46
+ startYear: string;
47
+ endYear: string;
38
48
  resolution: DateResolution;
39
49
  firstDay: 0 | 1;
40
50
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
@@ -10,6 +10,8 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
10
10
  firstDay?: 0 | 1 | undefined;
11
11
  displayFormat?: string | undefined;
12
12
  resolution?: DateResolution | undefined;
13
+ startYear?: string | undefined;
14
+ endYear?: string | undefined;
13
15
  }>, {
14
16
  firstDay: number;
15
17
  }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
@@ -25,6 +27,8 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
25
27
  firstDay?: 0 | 1 | undefined;
26
28
  displayFormat?: string | undefined;
27
29
  resolution?: DateResolution | undefined;
30
+ startYear?: string | undefined;
31
+ endYear?: string | undefined;
28
32
  }>, {
29
33
  firstDay: number;
30
34
  }>>> & Readonly<{
@@ -12,6 +12,8 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
12
12
  resolution?: DateResolution | undefined;
13
13
  displayFormat?: string | undefined;
14
14
  popupDisplayFormat?: string | undefined;
15
+ popupStartYear?: string | undefined;
16
+ popupEndYear?: string | undefined;
15
17
  timeZone?: string | undefined;
16
18
  }>, {
17
19
  width: string;
@@ -29,6 +31,8 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
29
31
  resolution?: DateResolution | undefined;
30
32
  displayFormat?: string | undefined;
31
33
  popupDisplayFormat?: string | undefined;
34
+ popupStartYear?: string | undefined;
35
+ popupEndYear?: string | undefined;
32
36
  timeZone?: string | undefined;
33
37
  }>, {
34
38
  width: string;