@citruslime/ui 4.1.0-beta.2 → 4.1.0-beta.3
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.
|
@@ -5340,11 +5340,11 @@ const defaultEmptyListValue = {
|
|
|
5340
5340
|
name: "",
|
|
5341
5341
|
value: ""
|
|
5342
5342
|
};
|
|
5343
|
-
const defaultSelectAllListValue = {
|
|
5343
|
+
const defaultSelectAllListValue = computed(() => ({
|
|
5344
5344
|
id: -2,
|
|
5345
5345
|
name: i18n.global.t("grid.selectAll"),
|
|
5346
5346
|
value: ""
|
|
5347
|
-
};
|
|
5347
|
+
}));
|
|
5348
5348
|
const booleanListEntries = computed(() => [
|
|
5349
5349
|
defaultEmptyListValue,
|
|
5350
5350
|
{
|
|
@@ -5405,7 +5405,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
5405
5405
|
const listEntriesAsSelectItems = computed(() => {
|
|
5406
5406
|
var _a;
|
|
5407
5407
|
return [
|
|
5408
|
-
props.column.listMode === "multi" ? defaultSelectAllListValue : defaultEmptyListValue,
|
|
5408
|
+
props.column.listMode === "multi" ? defaultSelectAllListValue.value : defaultEmptyListValue,
|
|
5409
5409
|
...((_a = props.column.listEntries) == null ? void 0 : _a.map((x, i) => ({
|
|
5410
5410
|
id: i,
|
|
5411
5411
|
name: t2(x.translationKey),
|
|
@@ -5422,12 +5422,12 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
5422
5422
|
const filters = (_a = props.filter) == null ? void 0 : _a.filter((f) => f.filterOperation === FilterOperation.OR_EQUAL).map((f) => f.filterValue);
|
|
5423
5423
|
const filteredListEntries = listEntriesAsSelectItems.value.filter((x) => filters == null ? void 0 : filters.includes(x.value));
|
|
5424
5424
|
if (filteredListEntries.length === ((_b = props.column.listEntries) == null ? void 0 : _b.length)) {
|
|
5425
|
-
filteredListEntries.push(defaultSelectAllListValue);
|
|
5425
|
+
filteredListEntries.push(defaultSelectAllListValue.value);
|
|
5426
5426
|
}
|
|
5427
5427
|
return filteredListEntries;
|
|
5428
5428
|
}
|
|
5429
5429
|
});
|
|
5430
|
-
const selectAllCurrentlyHighlighted = computed(() => Array.isArray(currentFilterValueAsSelectItems.value) && currentFilterValueAsSelectItems.value.some((x) => x.id === defaultSelectAllListValue.id));
|
|
5430
|
+
const selectAllCurrentlyHighlighted = computed(() => Array.isArray(currentFilterValueAsSelectItems.value) && currentFilterValueAsSelectItems.value.some((x) => x.id === defaultSelectAllListValue.value.id));
|
|
5431
5431
|
const selectedListEntryId = ref(defaultEmptyListValue.id);
|
|
5432
5432
|
function updateListColumnSelectItems(value) {
|
|
5433
5433
|
if (value && !Array.isArray(value)) {
|
|
@@ -5620,9 +5620,9 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
5620
5620
|
const currentDateRangeFilterValue = computed(() => currentFilterValue.value === "" ? null : currentFilterValue.value);
|
|
5621
5621
|
const filterable = computed(() => isFilterable(props.column));
|
|
5622
5622
|
function setOrEqualFilters(value) {
|
|
5623
|
-
const selectAllCurrentlySelected = value.some((x) => x.id === defaultSelectAllListValue.id);
|
|
5623
|
+
const selectAllCurrentlySelected = value.some((x) => x.id === defaultSelectAllListValue.value.id);
|
|
5624
5624
|
if (value.length === 0 || selectAllCurrentlySelected === false && selectAllCurrentlyHighlighted.value) {
|
|
5625
|
-
setOrEqualFiltersImpl([defaultSelectAllListValue.value]);
|
|
5625
|
+
setOrEqualFiltersImpl([defaultSelectAllListValue.value.value]);
|
|
5626
5626
|
} else if (selectAllCurrentlySelected && selectAllCurrentlyHighlighted.value === false) {
|
|
5627
5627
|
setOrEqualFiltersImpl(listEntriesAsSelectItems.value.map((x) => x.value));
|
|
5628
5628
|
} else {
|
|
@@ -5868,7 +5868,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
5868
5868
|
};
|
|
5869
5869
|
}
|
|
5870
5870
|
});
|
|
5871
|
-
const clUiGridFilterInput = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["__scopeId", "data-v-
|
|
5871
|
+
const clUiGridFilterInput = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["__scopeId", "data-v-0de2fa0d"]]);
|
|
5872
5872
|
const _hoisted_1$y = { key: 1 };
|
|
5873
5873
|
const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
5874
5874
|
__name: "cl-ui-grid-filter",
|