@citruslime/ui 4.1.0-beta.24 → 4.1.0-beta.25
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/citrus-lime-ui.es.js +6 -3
- package/dist/citrus-lime-ui.umd.js +1 -1
- package/dist/ui.css +1 -1
- package/package.json +1 -1
|
@@ -5418,6 +5418,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
5418
5418
|
setup(__props, { emit: __emit }) {
|
|
5419
5419
|
const props = __props;
|
|
5420
5420
|
const emit = __emit;
|
|
5421
|
+
const dateFormatLocale = inject(gridDateFormatLocaleOverride);
|
|
5421
5422
|
const { t: t2, locale: locale2 } = useI18n();
|
|
5422
5423
|
function getDefaultFilterOperation() {
|
|
5423
5424
|
return isListColumn.value && props.column.listMode === "multi" ? FilterOperation.OR_EQUAL : props.column.type === "string" || props.column.slotType === "string" ? FilterOperation.CONTAINS : props.column.type === "datetime" || props.column.slotType === "datetime" || props.column.type === "date" || props.column.slotType === "date" ? FilterOperation.LESS_THAN : FilterOperation.EQUAL;
|
|
@@ -5810,13 +5811,14 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
5810
5811
|
id: `${unref(gridId)}-${_ctx.column.name}`,
|
|
5811
5812
|
"model-value": currentDateFilterValue.value,
|
|
5812
5813
|
"time-zone": _ctx.timeZone,
|
|
5814
|
+
"date-format-locale": unref(dateFormatLocale),
|
|
5813
5815
|
type: _ctx.column.type === "slot" ? _ctx.column.slotType : _ctx.column.type,
|
|
5814
5816
|
class: "cl:border-none cl:h-[2rem]! cl:lg:text-base! cl:mb-0 cl:pb-1 cl:text-xs cl:w-full readonly-filter",
|
|
5815
5817
|
readonly: _ctx.loading,
|
|
5816
5818
|
"popover-placement": "bottom-start",
|
|
5817
5819
|
placeholder: "",
|
|
5818
5820
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => setFilter(null, $event ?? ""))
|
|
5819
|
-
}, null, 8, ["id", "model-value", "time-zone", "type", "readonly"])
|
|
5821
|
+
}, null, 8, ["id", "model-value", "time-zone", "date-format-locale", "type", "readonly"])
|
|
5820
5822
|
])) : isDateRangeColumn.value ? (openBlock(), createElementBlock("div", {
|
|
5821
5823
|
key: 2,
|
|
5822
5824
|
class: "cl:w-full",
|
|
@@ -5829,9 +5831,10 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
5829
5831
|
"time-zone": _ctx.headerDisplayTimezone,
|
|
5830
5832
|
"quick-date-scope": _ctx.quickDateScope,
|
|
5831
5833
|
"manual-date-selection": true,
|
|
5834
|
+
"date-format-locale": unref(dateFormatLocale),
|
|
5832
5835
|
"popover-placement": "bottom-start",
|
|
5833
5836
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => setDateRangeFilter($event))
|
|
5834
|
-
}, null, 8, ["id", "model-value", "time-zone", "quick-date-scope"])
|
|
5837
|
+
}, null, 8, ["id", "model-value", "time-zone", "quick-date-scope", "date-format-locale"])
|
|
5835
5838
|
], 8, _hoisted_2$o)) : _ctx.column.type === "number" || _ctx.column.type === "slot" && _ctx.column.slotType === "number" ? (openBlock(), createElementBlock("div", _hoisted_3$g, [
|
|
5836
5839
|
createVNode(_sfc_main$U, {
|
|
5837
5840
|
id: `${unref(gridId)}-${_ctx.column.name}`,
|
|
@@ -5913,7 +5916,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
5913
5916
|
};
|
|
5914
5917
|
}
|
|
5915
5918
|
});
|
|
5916
|
-
const clUiGridFilterInput = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["__scopeId", "data-v-
|
|
5919
|
+
const clUiGridFilterInput = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["__scopeId", "data-v-90f47059"]]);
|
|
5917
5920
|
const _hoisted_1$y = { key: 1 };
|
|
5918
5921
|
const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
5919
5922
|
__name: "cl-ui-grid-filter",
|