@g1cloud/bluesea 5.0.0-beta.7 → 5.0.0-beta.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{BSAlertModal-B3zqxyBI.js → BSAlertModal-C8PIj5h_.js} +1 -1
- package/dist/{BSGridColumnSettingModal-CD9mFu9P.js → BSGridColumnSettingModal-D9CI-F_e.js} +1 -1
- package/dist/{BSRichTextMaximizedModal-BP6jz2N7.js → BSRichTextMaximizedModal-DsSYqgSR.js} +1 -1
- package/dist/{BSYesNoModal-82FcvYh-.js → BSYesNoModal-CB_RIKt0.js} +1 -1
- package/dist/{BSYoutubeInputModal-CrtOzrD-.js → BSYoutubeInputModal-CwLcWtEI.js} +1 -1
- package/dist/{ImageInsertModal-DdYqZWc5.js → ImageInsertModal-lWQeIMu7.js} +2 -2
- package/dist/{ImageProperties.vue_vue_type_script_setup_true_lang-2wZT4GKQ.js → ImageProperties.vue_vue_type_script_setup_true_lang-DDj0Odaa.js} +1 -1
- package/dist/{ImagePropertiesModal-CQnEtdug.js → ImagePropertiesModal-C6RyT5B5.js} +2 -2
- package/dist/{LinkPropertiesModal-DiqsnQW6.js → LinkPropertiesModal-D5A3Gq2i.js} +1 -1
- package/dist/{TableInsertModal-CQP0Lv5V.js → TableInsertModal-B1F5T8qs.js} +1 -1
- package/dist/{TablePropertiesModal-BlPP_yM-.js → TablePropertiesModal-DUiHSjcT.js} +1 -1
- package/dist/{VideoInsertModal-kNMv3Gr0.js → VideoInsertModal-R0Bs5E2T.js} +2 -2
- package/dist/{VideoProperties.vue_vue_type_script_setup_true_lang-BIg6hg9n.js → VideoProperties.vue_vue_type_script_setup_true_lang-BCTNqg94.js} +1 -1
- package/dist/{VideoPropertiesModal-DTnfD1tS.js → VideoPropertiesModal-DQADTS-J.js} +2 -2
- package/dist/{YoutubeInsertModal-Br27gi-y.js → YoutubeInsertModal-R97l6ge3.js} +2 -2
- package/dist/{YoutubeProperties.vue_vue_type_script_setup_true_lang-BpbU20_i.js → YoutubeProperties.vue_vue_type_script_setup_true_lang-Ce9a5UDA.js} +1 -1
- package/dist/{YoutubePropertiesModal-BXCSIlF9.js → YoutubePropertiesModal-BbrU7l5m.js} +2 -2
- package/dist/bluesea.js +107 -105
- package/dist/bluesea.umd.cjs +91 -29
- package/dist/component/grid/DateFilterModel.d.ts +15 -0
- package/dist/component/grid/GridModel.d.ts +1 -0
- package/dist/component/input/BSDateRangePresets.vue.d.ts +2 -2
- package/dist/component/input/DateRangePresetModel.d.ts +2 -0
- package/dist/component/tree/TreeModel.d.ts +28 -0
- package/dist/{index-CpfyaKHy.js → index-DRs7QwNQ.js} +211 -149
- package/package.json +1 -1
|
@@ -87,8 +87,8 @@ const defaultAddressInputComponentConfig = {
|
|
|
87
87
|
countryConfigs: ADDRESS_COUNTRY_CONFIGS
|
|
88
88
|
};
|
|
89
89
|
const defaultRichTextComponentConfig = {
|
|
90
|
-
imageInsertModal: defineAsyncComponent(() => import("./ImageInsertModal-
|
|
91
|
-
videoInsertModal: defineAsyncComponent(() => import("./VideoInsertModal-
|
|
90
|
+
imageInsertModal: defineAsyncComponent(() => import("./ImageInsertModal-lWQeIMu7.js")),
|
|
91
|
+
videoInsertModal: defineAsyncComponent(() => import("./VideoInsertModal-R0Bs5E2T.js")),
|
|
92
92
|
toolButtons: [
|
|
93
93
|
"Heading",
|
|
94
94
|
"FontSize",
|
|
@@ -4688,6 +4688,11 @@ const _sfc_main$1m = /* @__PURE__ */ defineComponent({
|
|
|
4688
4688
|
});
|
|
4689
4689
|
dayjs.extend(utc);
|
|
4690
4690
|
dayjs.extend(timezone);
|
|
4691
|
+
const createDateRangeFromPreset = (value, timeZone) => {
|
|
4692
|
+
const from2 = value.from ? resolveMoment(value.from, true, timeZone) : void 0;
|
|
4693
|
+
const to = value.to ? resolveMoment(value.to, false, timeZone) : void 0;
|
|
4694
|
+
return { from: from2 == null ? void 0 : from2.toISOString(), to: to == null ? void 0 : to.toISOString() };
|
|
4695
|
+
};
|
|
4691
4696
|
const resolveMoment = (setting, from2, timeZone, baseDate) => {
|
|
4692
4697
|
switch (setting.type) {
|
|
4693
4698
|
case "TODAY":
|
|
@@ -4954,25 +4959,20 @@ const _sfc_main$1j = /* @__PURE__ */ defineComponent({
|
|
|
4954
4959
|
const emit = __emit;
|
|
4955
4960
|
const actualTimeZone = computed(() => props.timeZone || blueseaConfig.timeZone);
|
|
4956
4961
|
const currentPreset = ref();
|
|
4957
|
-
const createDateRange = (value) => {
|
|
4958
|
-
const from2 = value.from ? resolveMoment(value.from, true, actualTimeZone.value) : void 0;
|
|
4959
|
-
const to = value.to ? resolveMoment(value.to, false, actualTimeZone.value) : void 0;
|
|
4960
|
-
return { from: from2 == null ? void 0 : from2.toISOString(), to: to == null ? void 0 : to.toISOString() };
|
|
4961
|
-
};
|
|
4962
4962
|
const presetSelected = (value) => {
|
|
4963
|
-
const range = value ?
|
|
4964
|
-
emit("update:modelValue", range);
|
|
4963
|
+
const range = value ? createDateRangeFromPreset(value, actualTimeZone.value) : void 0;
|
|
4964
|
+
emit("update:modelValue", range, value);
|
|
4965
4965
|
};
|
|
4966
|
-
const
|
|
4966
|
+
const findPreset2 = (range) => {
|
|
4967
4967
|
return props.presets.find((preset) => {
|
|
4968
|
-
const presetValue =
|
|
4968
|
+
const presetValue = createDateRangeFromPreset(preset, actualTimeZone.value);
|
|
4969
4969
|
return (range == null ? void 0 : range.from) === presetValue.from && (range == null ? void 0 : range.to) === presetValue.to;
|
|
4970
4970
|
});
|
|
4971
4971
|
};
|
|
4972
4972
|
watch(
|
|
4973
4973
|
() => props.modelValue,
|
|
4974
4974
|
() => {
|
|
4975
|
-
currentPreset.value =
|
|
4975
|
+
currentPreset.value = findPreset2(props.modelValue);
|
|
4976
4976
|
},
|
|
4977
4977
|
{ immediate: true }
|
|
4978
4978
|
);
|
|
@@ -6006,7 +6006,7 @@ class BSModal {
|
|
|
6006
6006
|
}
|
|
6007
6007
|
openAlert(title, message, clickHandler2) {
|
|
6008
6008
|
const option = {
|
|
6009
|
-
component: defineAsyncComponent(() => import("./BSAlertModal-
|
|
6009
|
+
component: defineAsyncComponent(() => import("./BSAlertModal-C8PIj5h_.js")),
|
|
6010
6010
|
bind: {
|
|
6011
6011
|
title,
|
|
6012
6012
|
message
|
|
@@ -6019,7 +6019,7 @@ class BSModal {
|
|
|
6019
6019
|
}
|
|
6020
6020
|
openYesNo(title, message, yesHandler, noHandler) {
|
|
6021
6021
|
const option = {
|
|
6022
|
-
component: defineAsyncComponent(() => import("./BSYesNoModal-
|
|
6022
|
+
component: defineAsyncComponent(() => import("./BSYesNoModal-CB_RIKt0.js")),
|
|
6023
6023
|
bind: {
|
|
6024
6024
|
title,
|
|
6025
6025
|
message
|
|
@@ -6153,16 +6153,7 @@ class TreeHandlerImpl {
|
|
|
6153
6153
|
},
|
|
6154
6154
|
clickRemoveButton: () => this.removeSelectedItem(),
|
|
6155
6155
|
expandAll: () => {
|
|
6156
|
-
|
|
6157
|
-
if (this.expandedRows.size === allParents.size) {
|
|
6158
|
-
this.expandedRows.clear();
|
|
6159
|
-
} else {
|
|
6160
|
-
allParents.forEach((item) => {
|
|
6161
|
-
const key = option.getItemKey(item);
|
|
6162
|
-
if (key) this.expandedRows.add(key);
|
|
6163
|
-
});
|
|
6164
|
-
}
|
|
6165
|
-
this.updateAllExpanded();
|
|
6156
|
+
this.expandAll(this.expandedRows.size !== this.getAllParents().size);
|
|
6166
6157
|
}
|
|
6167
6158
|
};
|
|
6168
6159
|
}
|
|
@@ -6298,6 +6289,25 @@ class TreeHandlerImpl {
|
|
|
6298
6289
|
}
|
|
6299
6290
|
this.cleanUpExpandedRows(this.expandedRows, this.tree.data);
|
|
6300
6291
|
}
|
|
6292
|
+
expandAll(expandOrDepth) {
|
|
6293
|
+
if (expandOrDepth === true) {
|
|
6294
|
+
const allParents = this.getAllParents();
|
|
6295
|
+
allParents.forEach((item) => {
|
|
6296
|
+
const key = this.option.getItemKey(item);
|
|
6297
|
+
if (key) this.expandedRows.add(key);
|
|
6298
|
+
});
|
|
6299
|
+
} else if (expandOrDepth === false) {
|
|
6300
|
+
this.expandedRows.clear();
|
|
6301
|
+
} else if (expandOrDepth > 1) {
|
|
6302
|
+
const parents = /* @__PURE__ */ new Set();
|
|
6303
|
+
this.collectParents(parents, this.tree.data, this.option.getChildren, expandOrDepth - 1);
|
|
6304
|
+
parents.forEach((item) => {
|
|
6305
|
+
const key = this.option.getItemKey(item);
|
|
6306
|
+
if (key) this.expandedRows.add(key);
|
|
6307
|
+
});
|
|
6308
|
+
}
|
|
6309
|
+
this.updateAllExpanded();
|
|
6310
|
+
}
|
|
6301
6311
|
forceRemoveItems(items) {
|
|
6302
6312
|
items.forEach((item) => {
|
|
6303
6313
|
var _a2, _b;
|
|
@@ -6334,12 +6344,14 @@ class TreeHandlerImpl {
|
|
|
6334
6344
|
}
|
|
6335
6345
|
}
|
|
6336
6346
|
}
|
|
6337
|
-
collectParents(parents, list, childrenProvider) {
|
|
6347
|
+
collectParents(parents, list, childrenProvider, maxDepth) {
|
|
6338
6348
|
for (const item of list) {
|
|
6339
6349
|
const children = childrenProvider(item);
|
|
6340
6350
|
if (children && children.length > 0) {
|
|
6341
6351
|
parents.add(item);
|
|
6342
|
-
|
|
6352
|
+
if (maxDepth === void 0 || maxDepth > 1) {
|
|
6353
|
+
this.collectParents(parents, children, childrenProvider, maxDepth ? maxDepth - 1 : void 0);
|
|
6354
|
+
}
|
|
6343
6355
|
}
|
|
6344
6356
|
}
|
|
6345
6357
|
}
|
|
@@ -31132,13 +31144,13 @@ const tableContextMenus = (modal, editor) => {
|
|
|
31132
31144
|
};
|
|
31133
31145
|
const showTableProperties = (modal, editor) => {
|
|
31134
31146
|
modal.openModal({
|
|
31135
|
-
component: defineAsyncComponent(() => import("./TablePropertiesModal-
|
|
31147
|
+
component: defineAsyncComponent(() => import("./TablePropertiesModal-DUiHSjcT.js")),
|
|
31136
31148
|
bind: { editor }
|
|
31137
31149
|
});
|
|
31138
31150
|
};
|
|
31139
31151
|
const insertTable = (modal, editor) => {
|
|
31140
31152
|
modal.openModal({
|
|
31141
|
-
component: defineAsyncComponent(() => import("./TableInsertModal-
|
|
31153
|
+
component: defineAsyncComponent(() => import("./TableInsertModal-B1F5T8qs.js")),
|
|
31142
31154
|
bind: { editor }
|
|
31143
31155
|
});
|
|
31144
31156
|
};
|
|
@@ -31303,7 +31315,7 @@ const insertImage = (modal, editor) => {
|
|
|
31303
31315
|
const component = (_a2 = blueseaConfig.componentConfig.richText) == null ? void 0 : _a2.imageInsertModal;
|
|
31304
31316
|
if (component) {
|
|
31305
31317
|
modal.openModal({
|
|
31306
|
-
component: defineAsyncComponent(() => import("./ImageInsertModal-
|
|
31318
|
+
component: defineAsyncComponent(() => import("./ImageInsertModal-lWQeIMu7.js")),
|
|
31307
31319
|
bind: { editor },
|
|
31308
31320
|
on: {
|
|
31309
31321
|
insertImage: (image) => {
|
|
@@ -31321,7 +31333,7 @@ const insertImage = (modal, editor) => {
|
|
|
31321
31333
|
};
|
|
31322
31334
|
const showImageProperties = (modal, editor) => {
|
|
31323
31335
|
modal.openModal({
|
|
31324
|
-
component: defineAsyncComponent(() => import("./ImagePropertiesModal-
|
|
31336
|
+
component: defineAsyncComponent(() => import("./ImagePropertiesModal-C6RyT5B5.js")),
|
|
31325
31337
|
bind: { editor }
|
|
31326
31338
|
});
|
|
31327
31339
|
};
|
|
@@ -31682,13 +31694,13 @@ const youtubeContextMenu = (modal, editor) => {
|
|
|
31682
31694
|
};
|
|
31683
31695
|
const insertYoutube = (modal, editor) => {
|
|
31684
31696
|
modal.openModal({
|
|
31685
|
-
component: defineAsyncComponent(() => import("./YoutubeInsertModal-
|
|
31697
|
+
component: defineAsyncComponent(() => import("./YoutubeInsertModal-R97l6ge3.js")),
|
|
31686
31698
|
bind: { editor }
|
|
31687
31699
|
});
|
|
31688
31700
|
};
|
|
31689
31701
|
const showYoutubeProperties = (modal, editor) => {
|
|
31690
31702
|
modal.openModal({
|
|
31691
|
-
component: defineAsyncComponent(() => import("./YoutubePropertiesModal-
|
|
31703
|
+
component: defineAsyncComponent(() => import("./YoutubePropertiesModal-BbrU7l5m.js")),
|
|
31692
31704
|
bind: { editor }
|
|
31693
31705
|
});
|
|
31694
31706
|
};
|
|
@@ -31732,7 +31744,7 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
|
31732
31744
|
const showLinkProperties = () => {
|
|
31733
31745
|
if (!props.disabled) {
|
|
31734
31746
|
modal.openModal({
|
|
31735
|
-
component: defineAsyncComponent(() => import("./LinkPropertiesModal-
|
|
31747
|
+
component: defineAsyncComponent(() => import("./LinkPropertiesModal-D5A3Gq2i.js")),
|
|
31736
31748
|
bind: {
|
|
31737
31749
|
editor: props.editor
|
|
31738
31750
|
}
|
|
@@ -32097,7 +32109,7 @@ const insertVideo = (modal, editor) => {
|
|
|
32097
32109
|
const component = (_a2 = blueseaConfig.componentConfig.richText) == null ? void 0 : _a2.videoInsertModal;
|
|
32098
32110
|
if (component) {
|
|
32099
32111
|
modal.openModal({
|
|
32100
|
-
component: defineAsyncComponent(() => import("./VideoInsertModal-
|
|
32112
|
+
component: defineAsyncComponent(() => import("./VideoInsertModal-R0Bs5E2T.js")),
|
|
32101
32113
|
bind: { editor },
|
|
32102
32114
|
on: {
|
|
32103
32115
|
insertVideo: (video) => {
|
|
@@ -32115,7 +32127,7 @@ const insertVideo = (modal, editor) => {
|
|
|
32115
32127
|
};
|
|
32116
32128
|
const showVideoProperties = (modal, editor) => {
|
|
32117
32129
|
modal.openModal({
|
|
32118
|
-
component: defineAsyncComponent(() => import("./VideoPropertiesModal-
|
|
32130
|
+
component: defineAsyncComponent(() => import("./VideoPropertiesModal-DQADTS-J.js")),
|
|
32119
32131
|
bind: { editor }
|
|
32120
32132
|
});
|
|
32121
32133
|
};
|
|
@@ -34293,7 +34305,7 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
|
34293
34305
|
emit("maximized");
|
|
34294
34306
|
if (!props.internalMaximized) {
|
|
34295
34307
|
modal.openModal({
|
|
34296
|
-
component: defineAsyncComponent(() => import("./BSRichTextMaximizedModal-
|
|
34308
|
+
component: defineAsyncComponent(() => import("./BSRichTextMaximizedModal-DsSYqgSR.js")),
|
|
34297
34309
|
bind: {
|
|
34298
34310
|
modelValue: getEditorValue(),
|
|
34299
34311
|
contentMaxWidth: props.contentMaxWidth,
|
|
@@ -34830,7 +34842,7 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
|
34830
34842
|
const modal = useModal();
|
|
34831
34843
|
const enterYoutubeUrl = () => {
|
|
34832
34844
|
modal.openModal({
|
|
34833
|
-
component: defineAsyncComponent(() => import("./BSYoutubeInputModal-
|
|
34845
|
+
component: defineAsyncComponent(() => import("./BSYoutubeInputModal-CwLcWtEI.js")),
|
|
34834
34846
|
on: {
|
|
34835
34847
|
"update:modelValue": (url) => {
|
|
34836
34848
|
emit("update:modelValue", {
|
|
@@ -36198,6 +36210,7 @@ class EditableInputGridHandlerImpl extends InputGridHandlerImpl {
|
|
|
36198
36210
|
this.selectDeleteSupport.removeIfAddedRow = (row) => this.editableSupport.removeIfAddedRow(row);
|
|
36199
36211
|
}
|
|
36200
36212
|
setGridData(data) {
|
|
36213
|
+
GridHandlerEditableSupport.cleanUpData(data);
|
|
36201
36214
|
super.setGridData(data);
|
|
36202
36215
|
this.editableSupport.clearAddedRows();
|
|
36203
36216
|
}
|
|
@@ -36284,6 +36297,11 @@ class GridHandlerEditableSupport {
|
|
|
36284
36297
|
};
|
|
36285
36298
|
controlEventListener.clickAdd = () => this.createAndAddNewRow();
|
|
36286
36299
|
}
|
|
36300
|
+
static cleanUpData(data) {
|
|
36301
|
+
data == null ? void 0 : data.forEach((row) => {
|
|
36302
|
+
if (row && row[GRID_NEW_ROW_KEY]) delete row[GRID_NEW_ROW_KEY];
|
|
36303
|
+
});
|
|
36304
|
+
}
|
|
36287
36305
|
getModifiedRows() {
|
|
36288
36306
|
var _a2;
|
|
36289
36307
|
const addedKeys = this.addedRows.map((row) => row[GRID_NEW_ROW_KEY]);
|
|
@@ -37805,6 +37823,35 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
37805
37823
|
};
|
|
37806
37824
|
}
|
|
37807
37825
|
});
|
|
37826
|
+
const serializeMomentSetting = (setting) => {
|
|
37827
|
+
if (!setting) return "";
|
|
37828
|
+
const value = setting.value === void 0 ? "" : `:${setting.value}`;
|
|
37829
|
+
return `${setting.type}${value}`;
|
|
37830
|
+
};
|
|
37831
|
+
const convertDateRangePresetKey = (preset) => {
|
|
37832
|
+
return `${serializeMomentSetting(preset.from)}~${serializeMomentSetting(preset.to)}`;
|
|
37833
|
+
};
|
|
37834
|
+
const findPreset = (presetKey, candidatePresets) => {
|
|
37835
|
+
if (!presetKey) return void 0;
|
|
37836
|
+
return candidatePresets == null ? void 0 : candidatePresets.find((preset) => convertDateRangePresetKey(preset) === presetKey);
|
|
37837
|
+
};
|
|
37838
|
+
class BetweenDateFilterWithPreset extends BetweenDateFilter {
|
|
37839
|
+
constructor(name2, fromValue, toValue, preset) {
|
|
37840
|
+
super(name2, fromValue, toValue);
|
|
37841
|
+
__publicField(this, "presetKey");
|
|
37842
|
+
this.name = name2;
|
|
37843
|
+
this.fromValue = fromValue;
|
|
37844
|
+
this.toValue = toValue;
|
|
37845
|
+
this.presetKey = preset ? convertDateRangePresetKey(preset) : void 0;
|
|
37846
|
+
}
|
|
37847
|
+
// candidatePresets 중 presetKey 에 해당하는 preset 을 찾아, fromValue, toValue 를 설정한다.
|
|
37848
|
+
// preset 을 찾을 수 없으면 undefined 를 리턴한다.
|
|
37849
|
+
static createFromPresetKey(name2, presetKey, candidatePresets, timeZone) {
|
|
37850
|
+
const preset = findPreset(presetKey, candidatePresets);
|
|
37851
|
+
const range = preset ? createDateRangeFromPreset(preset, timeZone) : void 0;
|
|
37852
|
+
return range ? new BetweenDateFilterWithPreset(name2, range.from, range.to, preset) : void 0;
|
|
37853
|
+
}
|
|
37854
|
+
}
|
|
37808
37855
|
const _hoisted_1$x = {
|
|
37809
37856
|
key: 0,
|
|
37810
37857
|
class: "date-filters .bs-layout-vertical mr-16"
|
|
@@ -37863,9 +37910,10 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
37863
37910
|
if (propertyId) item.propertyId = propertyId;
|
|
37864
37911
|
emitValue();
|
|
37865
37912
|
};
|
|
37866
|
-
const setDateFilterValue = (index, value) => {
|
|
37913
|
+
const setDateFilterValue = (index, value, preset) => {
|
|
37867
37914
|
const item = dateFilterValues.value[index];
|
|
37868
37915
|
item.value = value || {};
|
|
37916
|
+
item.preset = preset;
|
|
37869
37917
|
emitValue();
|
|
37870
37918
|
};
|
|
37871
37919
|
const addDateFilter = () => {
|
|
@@ -37890,7 +37938,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
37890
37938
|
};
|
|
37891
37939
|
const emitValue = () => {
|
|
37892
37940
|
var _a2;
|
|
37893
|
-
const filters = dateFilterValues.value.map((item) =>
|
|
37941
|
+
const filters = dateFilterValues.value.map((item) => new BetweenDateFilterWithPreset(item.propertyId, item.value.from, item.value.to, item.preset));
|
|
37894
37942
|
const and = filters.length > 0 ? andFilter(filters) : void 0;
|
|
37895
37943
|
if (((_a2 = props.modelValue) == null ? void 0 : _a2.toString()) !== (and == null ? void 0 : and.toString())) {
|
|
37896
37944
|
emit("update:modelValue", and);
|
|
@@ -37957,10 +38005,11 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
37957
38005
|
}, 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"]),
|
|
37958
38006
|
createVNode(_sfc_main$1j, {
|
|
37959
38007
|
modelValue: item.value,
|
|
37960
|
-
"onUpdate:modelValue": [($event) => item.value = $event, (
|
|
38008
|
+
"onUpdate:modelValue": [($event) => item.value = $event, (value, preset) => setDateFilterValue(index, value, preset)],
|
|
37961
38009
|
presets: _ctx.presets,
|
|
38010
|
+
"time-zone": timeZoneOfFilterItem(item.propertyId),
|
|
37962
38011
|
class: "ml-4"
|
|
37963
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "presets"])
|
|
38012
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "presets", "time-zone"])
|
|
37964
38013
|
]);
|
|
37965
38014
|
}), 128))
|
|
37966
38015
|
])) : createCommentVNode("", true);
|
|
@@ -38016,12 +38065,23 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
38016
38065
|
emitUpdateModelValue();
|
|
38017
38066
|
emitSearch();
|
|
38018
38067
|
};
|
|
38068
|
+
const findDateFilterTimeZone = (name2, dateFilter) => {
|
|
38069
|
+
var _a2;
|
|
38070
|
+
return ((_a2 = dateFilter == null ? void 0 : dateFilter.filterItems.find((f) => f.propertyId === name2)) == null ? void 0 : _a2.timeZone) || blueseaConfig.timeZone;
|
|
38071
|
+
};
|
|
38019
38072
|
watch(() => props.gridPreferenceDateFilterValues, () => {
|
|
38020
38073
|
if (props.gridPreferenceDateFilterValues && props.gridPreferenceDateFilterValues.filters && props.gridPreferenceDateFilterValues.filters.length > 0) {
|
|
38021
38074
|
const filters = props.gridPreferenceDateFilterValues.filters.map((filter) => {
|
|
38022
|
-
|
|
38023
|
-
|
|
38024
|
-
|
|
38075
|
+
var _a2, _b;
|
|
38076
|
+
const f = filter;
|
|
38077
|
+
if (f.name && (f.fromValue || f.toValue)) {
|
|
38078
|
+
if (f.presetKey) {
|
|
38079
|
+
const presets = props.dateRangePresets || ((_a2 = blueseaConfig.componentConfig.gridLookup) == null ? void 0 : _a2.dateRangePresets) || [];
|
|
38080
|
+
const timeZone = findDateFilterTimeZone(f.name, (_b = props.config) == null ? void 0 : _b.dateFilter);
|
|
38081
|
+
return BetweenDateFilterWithPreset.createFromPresetKey(f.name, f.presetKey, presets, timeZone);
|
|
38082
|
+
} else {
|
|
38083
|
+
return new BetweenDateFilterWithPreset(f.name, f.fromValue, f.toValue);
|
|
38084
|
+
}
|
|
38025
38085
|
}
|
|
38026
38086
|
}).filter(notNull);
|
|
38027
38087
|
if (filters.length > 0) {
|
|
@@ -38151,7 +38211,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
38151
38211
|
const modal = useModal();
|
|
38152
38212
|
const openSettingModal = () => {
|
|
38153
38213
|
modal.openModal({
|
|
38154
|
-
component: defineAsyncComponent(() => import("./BSGridColumnSettingModal-
|
|
38214
|
+
component: defineAsyncComponent(() => import("./BSGridColumnSettingModal-D9CI-F_e.js")),
|
|
38155
38215
|
bind: {
|
|
38156
38216
|
columns: props.columns,
|
|
38157
38217
|
columnSettings: props.columnSettings,
|
|
@@ -69977,115 +70037,117 @@ export {
|
|
|
69977
70037
|
_sfc_main as ay,
|
|
69978
70038
|
vClickOutside as az,
|
|
69979
70039
|
_sfc_main$1J as b,
|
|
69980
|
-
|
|
70040
|
+
SearchParam as b$,
|
|
69981
70041
|
LocalStorageGridPreferenceStore as b0,
|
|
69982
70042
|
mergeSameValueVertical as b1,
|
|
69983
70043
|
gridExcelDownloadExtension as b2,
|
|
69984
70044
|
downloadGridDataAsExcel as b3,
|
|
69985
|
-
|
|
69986
|
-
|
|
69987
|
-
|
|
69988
|
-
|
|
69989
|
-
|
|
69990
|
-
|
|
69991
|
-
|
|
69992
|
-
|
|
69993
|
-
|
|
69994
|
-
|
|
69995
|
-
|
|
69996
|
-
|
|
69997
|
-
|
|
69998
|
-
|
|
69999
|
-
|
|
70000
|
-
|
|
70001
|
-
|
|
70002
|
-
|
|
70003
|
-
|
|
70004
|
-
|
|
70005
|
-
|
|
70006
|
-
|
|
70007
|
-
|
|
70008
|
-
|
|
70009
|
-
|
|
70010
|
-
|
|
70011
|
-
|
|
70012
|
-
|
|
70013
|
-
|
|
70014
|
-
|
|
70015
|
-
|
|
70016
|
-
|
|
70017
|
-
|
|
70018
|
-
|
|
70019
|
-
|
|
70020
|
-
|
|
70021
|
-
|
|
70022
|
-
|
|
70023
|
-
|
|
70024
|
-
|
|
70025
|
-
|
|
70026
|
-
|
|
70027
|
-
|
|
70028
|
-
|
|
70029
|
-
|
|
70030
|
-
|
|
70031
|
-
|
|
70032
|
-
|
|
70033
|
-
|
|
70034
|
-
|
|
70035
|
-
|
|
70036
|
-
|
|
70037
|
-
|
|
70038
|
-
|
|
70039
|
-
|
|
70040
|
-
|
|
70041
|
-
|
|
70042
|
-
|
|
70043
|
-
|
|
70045
|
+
convertDateRangePresetKey as b4,
|
|
70046
|
+
BetweenDateFilterWithPreset as b5,
|
|
70047
|
+
provideTabManager as b6,
|
|
70048
|
+
useTabManager as b7,
|
|
70049
|
+
useTabManagerSilently as b8,
|
|
70050
|
+
TabStatusManagerImpl as b9,
|
|
70051
|
+
serializeName as bA,
|
|
70052
|
+
serializeTel as bB,
|
|
70053
|
+
serializeAddress as bC,
|
|
70054
|
+
IllegalAccessError as bD,
|
|
70055
|
+
PaginatedList as bE,
|
|
70056
|
+
AbstractFilter as bF,
|
|
70057
|
+
AndFilter as bG,
|
|
70058
|
+
OrFilter as bH,
|
|
70059
|
+
NotFilter as bI,
|
|
70060
|
+
InFilter as bJ,
|
|
70061
|
+
LikeFilter as bK,
|
|
70062
|
+
EqualFilter as bL,
|
|
70063
|
+
BetweenFilter as bM,
|
|
70064
|
+
BetweenDateFilter as bN,
|
|
70065
|
+
IsNullFilter as bO,
|
|
70066
|
+
IsNotNullFilter as bP,
|
|
70067
|
+
andFilter as bQ,
|
|
70068
|
+
orFilter as bR,
|
|
70069
|
+
notFilter as bS,
|
|
70070
|
+
inFilter as bT,
|
|
70071
|
+
likeFilter as bU,
|
|
70072
|
+
equalFilter as bV,
|
|
70073
|
+
betweenFilter as bW,
|
|
70074
|
+
betweenDateFilter as bX,
|
|
70075
|
+
isNullFilter as bY,
|
|
70076
|
+
isNotNullFilter as bZ,
|
|
70077
|
+
acceptFilter as b_,
|
|
70078
|
+
provideTabStatusManager as ba,
|
|
70079
|
+
useTabStatusManager as bb,
|
|
70080
|
+
createTreeHandler as bc,
|
|
70081
|
+
defaultExpandMultiLang as bd,
|
|
70082
|
+
toggleDefaultExpandMultiLang as be,
|
|
70083
|
+
localeBasedExtraItemValidationRules as bf,
|
|
70084
|
+
ValidationFailedError as bg,
|
|
70085
|
+
isValidationFailedError as bh,
|
|
70086
|
+
storeFieldValidator as bi,
|
|
70087
|
+
loadFieldValidator as bj,
|
|
70088
|
+
findFieldValidatorElements as bk,
|
|
70089
|
+
validateField as bl,
|
|
70090
|
+
validateFields as bm,
|
|
70091
|
+
fieldValidator as bn,
|
|
70092
|
+
executeFieldValidationRule as bo,
|
|
70093
|
+
executeRequiredValidation as bp,
|
|
70094
|
+
executeRegExpValidation as bq,
|
|
70095
|
+
executeBetweenLengthValidation as br,
|
|
70096
|
+
executeBetweenValueValidation as bs,
|
|
70097
|
+
executeDateRangeValidation as bt,
|
|
70098
|
+
SavePointImpl as bu,
|
|
70099
|
+
provideSavePoint as bv,
|
|
70100
|
+
useSavePoint as bw,
|
|
70101
|
+
cancelProvidedSavePoint as bx,
|
|
70102
|
+
isMultiLangMessage as by,
|
|
70103
|
+
isNameEmpty as bz,
|
|
70044
70104
|
_sfc_main$1B as c,
|
|
70045
|
-
|
|
70046
|
-
|
|
70047
|
-
|
|
70048
|
-
|
|
70049
|
-
|
|
70050
|
-
|
|
70051
|
-
|
|
70052
|
-
|
|
70053
|
-
|
|
70054
|
-
|
|
70055
|
-
|
|
70056
|
-
|
|
70057
|
-
|
|
70058
|
-
|
|
70059
|
-
|
|
70060
|
-
|
|
70061
|
-
|
|
70062
|
-
|
|
70063
|
-
|
|
70064
|
-
|
|
70065
|
-
|
|
70066
|
-
|
|
70067
|
-
|
|
70068
|
-
|
|
70069
|
-
|
|
70070
|
-
|
|
70071
|
-
|
|
70072
|
-
|
|
70073
|
-
|
|
70074
|
-
|
|
70075
|
-
|
|
70076
|
-
|
|
70077
|
-
|
|
70078
|
-
|
|
70079
|
-
|
|
70080
|
-
|
|
70081
|
-
|
|
70082
|
-
|
|
70083
|
-
|
|
70084
|
-
|
|
70085
|
-
|
|
70086
|
-
|
|
70087
|
-
|
|
70088
|
-
|
|
70105
|
+
provideFieldContext as c0,
|
|
70106
|
+
useFieldContext as c1,
|
|
70107
|
+
modalPluginKey as c2,
|
|
70108
|
+
modalHandleKey as c3,
|
|
70109
|
+
BSModal as c4,
|
|
70110
|
+
useModal as c5,
|
|
70111
|
+
provideModalHandle as c6,
|
|
70112
|
+
createModalPlugin as c7,
|
|
70113
|
+
notificationEntries as c8,
|
|
70114
|
+
showNotification as c9,
|
|
70115
|
+
waitDuring as cA,
|
|
70116
|
+
tryUntil as cB,
|
|
70117
|
+
parsePathParam as cC,
|
|
70118
|
+
isBlankMultiLangString as cD,
|
|
70119
|
+
isMultiLangStringValidRequired as cE,
|
|
70120
|
+
addPrefixToMultiLangString as cF,
|
|
70121
|
+
isBlankMultiLangImageFile as cG,
|
|
70122
|
+
isMultiLangImageFileValidRequired as cH,
|
|
70123
|
+
localeNameProvider as cI,
|
|
70124
|
+
debounce$2 as cJ,
|
|
70125
|
+
alarmEntries as ca,
|
|
70126
|
+
showAlarm as cb,
|
|
70127
|
+
closeAlarm as cc,
|
|
70128
|
+
tooltipEntry as cd,
|
|
70129
|
+
showTooltip$1 as ce,
|
|
70130
|
+
hideTooltip$1 as cf,
|
|
70131
|
+
isTooltipDisplayed as cg,
|
|
70132
|
+
showLoadingIcon as ch,
|
|
70133
|
+
showLoading as ci,
|
|
70134
|
+
hideLoading as cj,
|
|
70135
|
+
withLoading as ck,
|
|
70136
|
+
contextMenuPluginKey as cl,
|
|
70137
|
+
BSContextMenuPlugin as cm,
|
|
70138
|
+
useContextMenu as cn,
|
|
70139
|
+
useContextMenuOptional as co,
|
|
70140
|
+
createContextMenuPlugin as cp,
|
|
70141
|
+
LocalStorageFavoriteMenuHandler as cq,
|
|
70142
|
+
DefaultFrameContext as cr,
|
|
70143
|
+
createDefaultFrameContext as cs,
|
|
70144
|
+
provideDefaultFrameContext as ct,
|
|
70145
|
+
useDefaultFrame as cu,
|
|
70146
|
+
ShortcutKeyHandler as cv,
|
|
70147
|
+
I18NTexts as cw,
|
|
70148
|
+
i18n as cx,
|
|
70149
|
+
formatUtil as cy,
|
|
70150
|
+
waitUntil as cz,
|
|
70089
70151
|
_sfc_main$X as d,
|
|
70090
70152
|
extractYoutubeVideoId as e,
|
|
70091
70153
|
createInputGridHandler as f,
|