@uxland/primary-shell 5.6.2 → 5.6.4
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/index.js +88 -68
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +11 -15
- package/dist/index.umd.cjs.map +1 -1
- package/dist/primary/shell/src/internal-plugins/activity-history/activity-history-item/filter/UI/activity-history-filters/activity-history-filters.d.ts +1 -0
- package/dist/primary/shell/src/internal-plugins/activity-history/activity-history-item/filter/custom-filters/set-custom-filter-all-values/actions.d.ts +1 -0
- package/dist/primary/shell/src/internal-plugins/activity-history/activity-history-item/filter/custom-filters/set-custom-filter-all-values/bootstrapper.d.ts +4 -0
- package/dist/primary/shell/src/internal-plugins/activity-history/activity-history-item/filter/custom-filters/set-custom-filter-all-values/handler.d.ts +6 -0
- package/dist/primary/shell/src/internal-plugins/activity-history/activity-history-item/filter/custom-filters/set-custom-filter-all-values/reducer.d.ts +4 -0
- package/dist/primary/shell/src/internal-plugins/activity-history/activity-history-item/filter/custom-filters/set-custom-filter-all-values/request.d.ts +9 -0
- package/dist/primary/shell/src/internal-plugins/activity-history/activity-history-item/filter/reset/actions.d.ts +1 -0
- package/dist/primary/shell/src/internal-plugins/activity-history/activity-history-item/filter/reset/bootstrapper.d.ts +4 -0
- package/dist/primary/shell/src/internal-plugins/activity-history/activity-history-item/filter/reset/handler.d.ts +6 -0
- package/dist/primary/shell/src/internal-plugins/activity-history/activity-history-item/filter/reset/reducer.d.ts +3 -0
- package/dist/primary/shell/src/internal-plugins/activity-history/activity-history-item/filter/reset/request.d.ts +2 -0
- package/dist/primary/shell/src/internal-plugins/activity-history/activity-history-item/filter/slice.d.ts +4 -4
- package/package.json +1 -1
- package/src/internal-plugins/activity-history/activity-history-item/filter/UI/active-filters-badges/active-filters-badges.ts +11 -16
- package/src/internal-plugins/activity-history/activity-history-item/filter/UI/activity-history-filters/activity-history-filters.ts +11 -0
- package/src/internal-plugins/activity-history/activity-history-item/filter/UI/activity-history-filters/template.ts +9 -9
- package/src/internal-plugins/activity-history/activity-history-item/filter/bootstrapper.ts +6 -6
- package/src/internal-plugins/activity-history/activity-history-item/filter/custom-filters/set-custom-filter-all-values/actions.ts +3 -0
- package/src/internal-plugins/activity-history/activity-history-item/filter/custom-filters/set-custom-filter-all-values/bootstrapper.ts +14 -0
- package/src/internal-plugins/activity-history/activity-history-item/filter/custom-filters/set-custom-filter-all-values/handler.ts +13 -0
- package/src/internal-plugins/activity-history/activity-history-item/filter/custom-filters/set-custom-filter-all-values/reducer.ts +21 -0
- package/src/internal-plugins/activity-history/activity-history-item/filter/custom-filters/set-custom-filter-all-values/request.ts +9 -0
- package/src/internal-plugins/activity-history/activity-history-item/filter/custom-filters/set-custom-filter-value/reducer.ts +1 -1
- package/src/internal-plugins/activity-history/activity-history-item/filter/reset/actions.ts +3 -0
- package/src/internal-plugins/activity-history/activity-history-item/filter/reset/bootstrapper.ts +14 -0
- package/src/internal-plugins/activity-history/activity-history-item/filter/reset/handler.ts +14 -0
- package/src/internal-plugins/activity-history/activity-history-item/filter/reset/reducer.ts +28 -0
- package/src/internal-plugins/activity-history/activity-history-item/filter/reset/request.ts +1 -0
- package/src/internal-plugins/activity-history/activity-history-item/filter/slice.ts +4 -4
- package/dist/primary/shell/src/internal-plugins/activity-history/activity-history-item/filter/common-filters/reset-common-filter/actions.d.ts +0 -1
- package/dist/primary/shell/src/internal-plugins/activity-history/activity-history-item/filter/common-filters/reset-common-filter/bootstrapper.d.ts +0 -4
- package/dist/primary/shell/src/internal-plugins/activity-history/activity-history-item/filter/common-filters/reset-common-filter/handler.d.ts +0 -5
- package/dist/primary/shell/src/internal-plugins/activity-history/activity-history-item/filter/common-filters/reset-common-filter/reducer.d.ts +0 -1
- package/dist/primary/shell/src/internal-plugins/activity-history/activity-history-item/filter/common-filters/reset-common-filter/request.d.ts +0 -2
- package/dist/primary/shell/src/internal-plugins/activity-history/activity-history-item/filter/custom-filters/reset-custom-filter/actions.d.ts +0 -1
- package/dist/primary/shell/src/internal-plugins/activity-history/activity-history-item/filter/custom-filters/reset-custom-filter/bootstrapper.d.ts +0 -4
- package/dist/primary/shell/src/internal-plugins/activity-history/activity-history-item/filter/custom-filters/reset-custom-filter/handler.d.ts +0 -5
- package/dist/primary/shell/src/internal-plugins/activity-history/activity-history-item/filter/custom-filters/reset-custom-filter/reducer.d.ts +0 -1
- package/dist/primary/shell/src/internal-plugins/activity-history/activity-history-item/filter/custom-filters/reset-custom-filter/request.d.ts +0 -2
- package/src/internal-plugins/activity-history/activity-history-item/filter/common-filters/reset-common-filter/actions.ts +0 -3
- package/src/internal-plugins/activity-history/activity-history-item/filter/common-filters/reset-common-filter/bootstrapper.ts +0 -14
- package/src/internal-plugins/activity-history/activity-history-item/filter/common-filters/reset-common-filter/handler.ts +0 -12
- package/src/internal-plugins/activity-history/activity-history-item/filter/common-filters/reset-common-filter/reducer.ts +0 -11
- package/src/internal-plugins/activity-history/activity-history-item/filter/common-filters/reset-common-filter/request.ts +0 -1
- package/src/internal-plugins/activity-history/activity-history-item/filter/custom-filters/reset-custom-filter/actions.ts +0 -3
- package/src/internal-plugins/activity-history/activity-history-item/filter/custom-filters/reset-custom-filter/bootstrapper.ts +0 -14
- package/src/internal-plugins/activity-history/activity-history-item/filter/custom-filters/reset-custom-filter/handler.ts +0 -8
- package/src/internal-plugins/activity-history/activity-history-item/filter/custom-filters/reset-custom-filter/reducer.ts +0 -11
- package/src/internal-plugins/activity-history/activity-history-item/filter/custom-filters/reset-custom-filter/request.ts +0 -1
package/dist/index.js
CHANGED
|
@@ -11041,18 +11041,6 @@ function addDiagnosticFiltersReducer(te, J) {
|
|
|
11041
11041
|
function setDiagnosticFilterValuesReducer(te, J) {
|
|
11042
11042
|
te.filters = [...te.filters].map((X) => isDiagnosticFilter(X) ? { ...X, enabledValues: J.payload } : X);
|
|
11043
11043
|
}
|
|
11044
|
-
function resetCommonFilterValuesReducer(te) {
|
|
11045
|
-
te.filters = te.filters.map((J) => J.id === "common" ? {
|
|
11046
|
-
...J,
|
|
11047
|
-
filters: J.filters.map((X) => ({ ...X, enabled: !1 }))
|
|
11048
|
-
} : J);
|
|
11049
|
-
}
|
|
11050
|
-
function resetCustomFilterValuesReducer(te) {
|
|
11051
|
-
te.filters = te.filters.map((J) => J.id !== "common" && J.id !== "history-diagnostics" && J.id !== "history-up" ? {
|
|
11052
|
-
...J,
|
|
11053
|
-
filters: J.filters.map((X) => ({ ...X, enabled: !1, enabledValues: [] }))
|
|
11054
|
-
} : J);
|
|
11055
|
-
}
|
|
11056
11044
|
function addUpFiltersReducer(te, J) {
|
|
11057
11045
|
const X = te.filters.findIndex(isUpFilter);
|
|
11058
11046
|
if (X === -1)
|
|
@@ -11071,6 +11059,23 @@ function addUpFiltersReducer(te, J) {
|
|
|
11071
11059
|
function setUpFilterValuesReducer(te, J) {
|
|
11072
11060
|
te.filters = [...te.filters].map((X) => isUpFilter(X) ? { ...X, enabledValues: J.payload } : X);
|
|
11073
11061
|
}
|
|
11062
|
+
function resetFiltersReducer(te, J) {
|
|
11063
|
+
te.filters = te.filters.map((X) => X.id !== "common" && X.id !== "history-diagnostics" && X.id !== "history-up" ? {
|
|
11064
|
+
...X,
|
|
11065
|
+
filters: X.filters.map((re) => re.singleOption ? { ...re, enabled: !1 } : { ...re, enabled: !0, enabledValues: [] })
|
|
11066
|
+
} : X.id === "history-diagnostics" || X.id === "history-up" ? {
|
|
11067
|
+
...X,
|
|
11068
|
+
enabledValues: []
|
|
11069
|
+
} : X.id === "common" ? commonFilters[0] : X);
|
|
11070
|
+
}
|
|
11071
|
+
function setCustomFilterAllValuesReducer(te, J) {
|
|
11072
|
+
te.filters = te.filters.map((X) => X.id === J.payload.filterGroupId ? {
|
|
11073
|
+
...X,
|
|
11074
|
+
filters: X.filters.map(
|
|
11075
|
+
(re) => re.id === J.payload.filterId ? { ...re, enabledValues: J.payload.values } : re
|
|
11076
|
+
)
|
|
11077
|
+
} : X);
|
|
11078
|
+
}
|
|
11074
11079
|
const activityHistoryFiltersSlice = createSlice({
|
|
11075
11080
|
name: "activity-history-filters",
|
|
11076
11081
|
initialState: {
|
|
@@ -11080,15 +11085,15 @@ const activityHistoryFiltersSlice = createSlice({
|
|
|
11080
11085
|
reducers: {
|
|
11081
11086
|
setSearchString: setSearchStringReducer,
|
|
11082
11087
|
setCommonFilterValue: setCommonFilterValueReducer,
|
|
11083
|
-
resetCommonFilterValues: resetCommonFilterValuesReducer,
|
|
11084
11088
|
addCustomFilters: addCustomFiltersReducer,
|
|
11085
11089
|
setCustomFilterGroupValue: setCustomFilterGroupValueReducer,
|
|
11086
11090
|
setCustomFilterValue: setCustomFilterValueReducer,
|
|
11087
|
-
|
|
11091
|
+
setCustomFilterAllValues: setCustomFilterAllValuesReducer,
|
|
11088
11092
|
addDiagnosticFilters: addDiagnosticFiltersReducer,
|
|
11089
11093
|
setDiagnosticFilterValues: setDiagnosticFilterValuesReducer,
|
|
11090
11094
|
addUpFilters: addUpFiltersReducer,
|
|
11091
|
-
setUpFilterValues: setUpFilterValuesReducer
|
|
11095
|
+
setUpFilterValues: setUpFilterValuesReducer,
|
|
11096
|
+
resetFilters: resetFiltersReducer
|
|
11092
11097
|
}
|
|
11093
11098
|
}), store = configureStore({
|
|
11094
11099
|
reducer: {
|
|
@@ -15541,20 +15546,20 @@ ActivityHistoryPartialDataError = __decorateClass$o([
|
|
|
15541
15546
|
], ActivityHistoryPartialDataError);
|
|
15542
15547
|
const styles$e = ".filters-sidebar{padding:8px 4px;border-right:1px solid rgb(189,189,189);width:56px;height:100%;box-sizing:border-box;display:flex;flex-direction:column}.filters-sidebar dss-icon-button{align-self:center}.filters-sidebar[expanded]{width:296px}.filters-sidebar[expanded] .filters-sidebar-opened{display:flex;align-items:center;justify-content:space-between;padding-inline:8px;color:var(--color-neutral-900);font-weight:700;font-size:16px;line-height:24px}.filter-container{display:flex;flex-direction:column;padding:16px 8px 8px;overflow:auto}.filter-container .filter{padding:8px 0;border-bottom:1px solid var(--color-neutral-200)}.filter-group{display:flex;flex-direction:column;padding-top:12px;gap:var(--dss-spacing-xs)}.filter-group .custom-filter{display:flex;flex-direction:column;padding:6px 8px 6px var(--dss-spacing-xl)}.filter-group .custom-filter .custom-filter-content{display:flex;flex-direction:column;gap:8px}", filterTemplates = {
|
|
15543
15548
|
[ActivityHistoryFilterType.Switch]: (te, J, X, re, ne) => ke$1`
|
|
15544
|
-
<dss-input-switch size="sm"
|
|
15545
|
-
<input slot="input" id="switch-${te}" aria-label=${J} type="checkbox"
|
|
15549
|
+
<dss-input-switch size="sm" @onChangeValue=${X} .checked=${re}>
|
|
15550
|
+
<input slot="input" id="switch-${te}" aria-label=${J} type="checkbox" ?disabled=${!ne}>
|
|
15546
15551
|
<label slot="label" for="switch-${te}">${J || te}</label>
|
|
15547
15552
|
</dss-input-switch>`,
|
|
15548
15553
|
[ActivityHistoryFilterType.Checkbox]: (te, J, X, re, ne) => ke$1`
|
|
15549
|
-
<dss-checkbox variant="default"
|
|
15550
|
-
<input slot="input" id="checkboxStory-${te}" type="checkbox" ?disabled=${!ne}>
|
|
15554
|
+
<dss-checkbox variant="default" @onChange=${(oe) => X(oe)}>
|
|
15555
|
+
<input slot="input" id="checkboxStory-${te}" type="checkbox" .checked=${re} ?disabled=${!ne}>
|
|
15551
15556
|
<label slot="label" for="checkboxStory-${te}">${J || te}</label>
|
|
15552
|
-
</dss-checkbox
|
|
15553
|
-
[ActivityHistoryFilterType.Dropdown]: (
|
|
15554
|
-
<dss-input-dropdown type="default"
|
|
15555
|
-
<input slot="input" id="dropdownStory-${
|
|
15556
|
-
<label slot="label" for="dropdownStory-${
|
|
15557
|
-
</dss-input-dropdown
|
|
15557
|
+
</dss-checkbox>`
|
|
15558
|
+
/* [ActivityHistoryFilterType.Dropdown]: (id, title, handleChange, isSelected, isEnabled) => html`
|
|
15559
|
+
<dss-input-dropdown type="default" @onChange=${(e) => handleChange(e)}>
|
|
15560
|
+
<input slot="input" id="dropdownStory-${id}" type="text" .checked=${isSelected} ?disabled=${!isEnabled}>
|
|
15561
|
+
<label slot="label" for="dropdownStory-${id}">${title || id}</label>
|
|
15562
|
+
</dss-input-dropdown>`, */
|
|
15558
15563
|
}, getFilterTemplate = (te, J, X, re) => {
|
|
15559
15564
|
var pe, fe;
|
|
15560
15565
|
const ne = !!(X != null && X.id) && !!re, oe = crypto.randomUUID(), de = ne ? re.title || re.id : te.title, ce = (ge) => {
|
|
@@ -15605,7 +15610,7 @@ const styles$e = ".filters-sidebar{padding:8px 4px;border-right:1px solid rgb(18
|
|
|
15605
15610
|
dropdownFixed
|
|
15606
15611
|
type="default"
|
|
15607
15612
|
.elements=${re}
|
|
15608
|
-
@onInputDropdownChange=${(ne) => J.
|
|
15613
|
+
@onInputDropdownChange=${(ne) => J._onChangeCustomFilterAllValues(X.id, te.id, ne.detail.selectedValue)}
|
|
15609
15614
|
.selectedValue=${te.enabledValues}
|
|
15610
15615
|
selectorStyle="max-height: 450px"
|
|
15611
15616
|
>
|
|
@@ -15650,6 +15655,11 @@ class SetUpFiltersCommand {
|
|
|
15650
15655
|
this.payload = J;
|
|
15651
15656
|
}
|
|
15652
15657
|
}
|
|
15658
|
+
class SetCustomFilterAllValues {
|
|
15659
|
+
constructor(J) {
|
|
15660
|
+
this.payload = J;
|
|
15661
|
+
}
|
|
15662
|
+
}
|
|
15653
15663
|
var __defProp$n = Object.defineProperty, __getOwnPropDesc$c = Object.getOwnPropertyDescriptor, __decorateClass$n = (te, J, X, re) => {
|
|
15654
15664
|
for (var ne = re > 1 ? void 0 : re ? __getOwnPropDesc$c(J, X) : J, oe = te.length - 1, de; oe >= 0; oe--)
|
|
15655
15665
|
(de = te[oe]) && (ne = (re ? de(J, X, ne) : de(ne)) || ne);
|
|
@@ -15684,6 +15694,15 @@ let ActivityHistoryFilters = class extends h$q {
|
|
|
15684
15694
|
})
|
|
15685
15695
|
);
|
|
15686
15696
|
}
|
|
15697
|
+
_onChangeCustomFilterAllValues(te, J, X) {
|
|
15698
|
+
this.api.broker.send(
|
|
15699
|
+
new SetCustomFilterAllValues({
|
|
15700
|
+
filterGroupId: te,
|
|
15701
|
+
filterId: J,
|
|
15702
|
+
values: X
|
|
15703
|
+
})
|
|
15704
|
+
);
|
|
15705
|
+
}
|
|
15687
15706
|
_handleDiagnosticFilterChange(te) {
|
|
15688
15707
|
const J = te.detail.selectedValue;
|
|
15689
15708
|
this.api.broker.send(new SetDiagnosticFiltersCommand(J));
|
|
@@ -15822,38 +15841,6 @@ const bootstrapSetDiagnosticFilter = (te) => {
|
|
|
15822
15841
|
}, teardownSetDiagnosticFilter = () => {
|
|
15823
15842
|
request$a == null || request$a.dispose();
|
|
15824
15843
|
};
|
|
15825
|
-
class ResetCommonFilter {
|
|
15826
|
-
}
|
|
15827
|
-
const { resetCommonFilterValues } = activityHistoryFiltersSlice.actions;
|
|
15828
|
-
class ResetCommonFilterHandler extends StoreBaseHandler {
|
|
15829
|
-
async handle() {
|
|
15830
|
-
try {
|
|
15831
|
-
this.store.dispatch(resetCommonFilterValues());
|
|
15832
|
-
} catch (J) {
|
|
15833
|
-
console.log(J.message);
|
|
15834
|
-
}
|
|
15835
|
-
}
|
|
15836
|
-
}
|
|
15837
|
-
let request$9;
|
|
15838
|
-
const bootstrapResetCommonFilter = (te) => {
|
|
15839
|
-
request$9 = te.registerRequest(ResetCommonFilter, ResetCommonFilterHandler);
|
|
15840
|
-
}, teardownResetCommonFilter = () => {
|
|
15841
|
-
request$9 == null || request$9.dispose();
|
|
15842
|
-
};
|
|
15843
|
-
class ResetCustomFilter {
|
|
15844
|
-
}
|
|
15845
|
-
const { resetCustomFilterValues } = activityHistoryFiltersSlice.actions;
|
|
15846
|
-
class ResetCustomFilterHandler extends StoreBaseHandler {
|
|
15847
|
-
async handle() {
|
|
15848
|
-
await this.store.dispatch(resetCustomFilterValues());
|
|
15849
|
-
}
|
|
15850
|
-
}
|
|
15851
|
-
let request$8;
|
|
15852
|
-
const bootstrapResetCustomFilter = (te) => {
|
|
15853
|
-
request$8 = te.registerRequest(ResetCustomFilter, ResetCustomFilterHandler);
|
|
15854
|
-
}, teardownResetCustomFilter = () => {
|
|
15855
|
-
request$8 == null || request$8.dispose();
|
|
15856
|
-
};
|
|
15857
15844
|
class AddUpFiltersHandler extends StoreBaseHandler {
|
|
15858
15845
|
async handle(J) {
|
|
15859
15846
|
try {
|
|
@@ -15868,11 +15855,11 @@ class AddUpFiltersCommand {
|
|
|
15868
15855
|
this.payload = J;
|
|
15869
15856
|
}
|
|
15870
15857
|
}
|
|
15871
|
-
let request$
|
|
15858
|
+
let request$9;
|
|
15872
15859
|
const bootstrapAddUpFilter = (te) => {
|
|
15873
|
-
request$
|
|
15860
|
+
request$9 = te.registerRequest(AddUpFiltersCommand, AddUpFiltersHandler);
|
|
15874
15861
|
}, teardownAddUpFilter = () => {
|
|
15875
|
-
request$
|
|
15862
|
+
request$9 == null || request$9.dispose();
|
|
15876
15863
|
}, { setUpFilterValues } = activityHistoryFiltersSlice.actions;
|
|
15877
15864
|
class SetUpFiltersHandler extends StoreBaseHandler {
|
|
15878
15865
|
async handle(J) {
|
|
@@ -15883,15 +15870,48 @@ class SetUpFiltersHandler extends StoreBaseHandler {
|
|
|
15883
15870
|
}
|
|
15884
15871
|
}
|
|
15885
15872
|
}
|
|
15886
|
-
let request$
|
|
15873
|
+
let request$8;
|
|
15887
15874
|
const bootstrapSetUpFilter = (te) => {
|
|
15888
|
-
request$
|
|
15875
|
+
request$8 = te.registerRequest(SetUpFiltersCommand, SetUpFiltersHandler);
|
|
15889
15876
|
}, teardownSetUpFilter = () => {
|
|
15877
|
+
request$8 == null || request$8.dispose();
|
|
15878
|
+
};
|
|
15879
|
+
class ResetFiltersCommand {
|
|
15880
|
+
}
|
|
15881
|
+
const { resetFilters } = activityHistoryFiltersSlice.actions;
|
|
15882
|
+
class ResetFiltersHandler extends StoreBaseHandler {
|
|
15883
|
+
async handle(J) {
|
|
15884
|
+
try {
|
|
15885
|
+
this.store.dispatch(resetFilters());
|
|
15886
|
+
} catch (X) {
|
|
15887
|
+
console.log(X.message);
|
|
15888
|
+
}
|
|
15889
|
+
}
|
|
15890
|
+
}
|
|
15891
|
+
let request$7;
|
|
15892
|
+
const bootstrapResetFilters = (te) => {
|
|
15893
|
+
request$7 = te.registerRequest(ResetFiltersCommand, ResetFiltersHandler);
|
|
15894
|
+
}, teardownResetFilters = () => {
|
|
15895
|
+
request$7 == null || request$7.dispose();
|
|
15896
|
+
}, { setCustomFilterAllValues } = activityHistoryFiltersSlice.actions;
|
|
15897
|
+
class SetCustomFilterAllValuesHandler extends StoreBaseHandler {
|
|
15898
|
+
async handle(J) {
|
|
15899
|
+
try {
|
|
15900
|
+
this.store.dispatch(setCustomFilterAllValues(J.payload));
|
|
15901
|
+
} catch (X) {
|
|
15902
|
+
console.log(X.message);
|
|
15903
|
+
}
|
|
15904
|
+
}
|
|
15905
|
+
}
|
|
15906
|
+
let request$6;
|
|
15907
|
+
const bootstrapSetCustomFilterAllValues = (te) => {
|
|
15908
|
+
request$6 = te.registerRequest(SetCustomFilterAllValues, SetCustomFilterAllValuesHandler);
|
|
15909
|
+
}, teardownSetCustomFilterAllValues = () => {
|
|
15890
15910
|
request$6 == null || request$6.dispose();
|
|
15891
15911
|
}, bootstrapFilters = (te) => {
|
|
15892
|
-
bootstrapSetCommonFilter(te), bootstrapAddCustomFilter(te), bootstrapSetCustomFilterGroup(te), bootstrapSetCustomFilterValue(te),
|
|
15912
|
+
bootstrapSetCommonFilter(te), bootstrapAddCustomFilter(te), bootstrapSetCustomFilterGroup(te), bootstrapSetCustomFilterValue(te), bootstrapSetCustomFilterAllValues(te), bootstrapAddDiagnosticFilter(te), bootstrapSetDiagnosticFilter(te), bootstrapAddUpFilter(te), bootstrapSetUpFilter(te), bootstrapResetFilters(te);
|
|
15893
15913
|
}, teardownFilters = () => {
|
|
15894
|
-
teardownSetCommonFilter(), teardownAddCustomFilter(), teardownSetCustomFilterGroup(), teardownSetCustomFilterValue(),
|
|
15914
|
+
teardownSetCommonFilter(), teardownAddCustomFilter(), teardownSetCustomFilterGroup(), teardownSetCustomFilterValue(), teardownSetCustomFilterAllValues(), teardownAddDiagnosticFilter(), teardownSetDiagnosticFilter(), teardownAddUpFilter(), teardownSetUpFilter(), teardownResetFilters();
|
|
15895
15915
|
}, events = {
|
|
15896
15916
|
activityHistorySearched: "activity_history_searched"
|
|
15897
15917
|
}, { setSearchString } = activityHistoryFiltersSlice.actions;
|
|
@@ -15968,7 +15988,7 @@ __decorateClass$l([
|
|
|
15968
15988
|
ActivityHistorySearchBar = __decorateClass$l([
|
|
15969
15989
|
t$k("activity-history-search-bar")
|
|
15970
15990
|
], ActivityHistorySearchBar);
|
|
15971
|
-
const formatShowFilterTitle = (te) => {
|
|
15991
|
+
const styles$b = ":host{display:flex;justify-content:space-between}.filters-container{display:flex;gap:var(--dss-spacing-md)}.filters-header{font-weight:700}.filter-groups{display:flex;flex-wrap:wrap;gap:var(--dss-spacing-xs)}.filter-group{display:flex;gap:var(--dss-spacing-xs);color:var(--color-neutral-600);font-weight:600}.clean-filters{display:flex}.clean-filters .separator{padding:0 8px}.popover-content{box-sizing:border-box;display:flex;flex-wrap:wrap;gap:var(--dss-spacing-xs);padding:10px;max-width:368px;max-height:336px;overflow:auto}", formatShowFilterTitle = (te) => {
|
|
15972
15992
|
const J = te.replace(/veure/gi, "").trim();
|
|
15973
15993
|
return J.charAt(0).toUpperCase() + J.slice(1);
|
|
15974
15994
|
}, normalizeDeletedFilterBooleanValue = (te) => te === !0 ? translate("filters.deleted") : te, normalizeEmptyFilterValue = (te, J) => te === "" ? formatEmptyFilterValue(J) : te, formatEmptyFilterValue = (te) => `${translate("chipHeader.without")} ${te.toLowerCase()}`, MAX_VISIBLE_CHIPS = 5, renderChip = (te, J, X, re) => ke$1`
|
|
@@ -16077,7 +16097,7 @@ const formatShowFilterTitle = (te) => {
|
|
|
16077
16097
|
<dss-button variant="secondary" size="sm" label=${translate("chipHeader.cleanFilters")} icon="cleaning_services" @click=${te.resetFilters}></dss-button>
|
|
16078
16098
|
</div>
|
|
16079
16099
|
`;
|
|
16080
|
-
}
|
|
16100
|
+
};
|
|
16081
16101
|
var __defProp$k = Object.defineProperty, __getOwnPropDesc$9 = Object.getOwnPropertyDescriptor, __decorateClass$k = (te, J, X, re) => {
|
|
16082
16102
|
for (var ne = re > 1 ? void 0 : re ? __getOwnPropDesc$9(J, X) : J, oe = te.length - 1, de; oe >= 0; oe--)
|
|
16083
16103
|
(de = te[oe]) && (ne = (re ? de(J, X, ne) : de(ne)) || ne);
|
|
@@ -16109,7 +16129,7 @@ let ActiveFiltersBadges = class extends h$q {
|
|
|
16109
16129
|
this.api.broker.send(new SetUpFiltersCommand([...this.upFilterEnabled.enabledValues.filter((J) => J !== te)]));
|
|
16110
16130
|
}
|
|
16111
16131
|
resetFilters() {
|
|
16112
|
-
this.api.broker.send(new
|
|
16132
|
+
this.api.broker.send(new ResetFiltersCommand());
|
|
16113
16133
|
}
|
|
16114
16134
|
};
|
|
16115
16135
|
ActiveFiltersBadges.styles = i$y`
|