@uxland/primary-shell 5.6.2 → 5.6.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.
- package/dist/index.js +81 -99
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +10 -14
- package/dist/index.umd.cjs.map +1 -1
- 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 +2 -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/template.ts +8 -8
- package/src/internal-plugins/activity-history/activity-history-item/filter/bootstrapper.ts +3 -6
- 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 +2 -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,15 @@ 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
|
+
}
|
|
11074
11071
|
const activityHistoryFiltersSlice = createSlice({
|
|
11075
11072
|
name: "activity-history-filters",
|
|
11076
11073
|
initialState: {
|
|
@@ -11080,15 +11077,14 @@ const activityHistoryFiltersSlice = createSlice({
|
|
|
11080
11077
|
reducers: {
|
|
11081
11078
|
setSearchString: setSearchStringReducer,
|
|
11082
11079
|
setCommonFilterValue: setCommonFilterValueReducer,
|
|
11083
|
-
resetCommonFilterValues: resetCommonFilterValuesReducer,
|
|
11084
11080
|
addCustomFilters: addCustomFiltersReducer,
|
|
11085
11081
|
setCustomFilterGroupValue: setCustomFilterGroupValueReducer,
|
|
11086
11082
|
setCustomFilterValue: setCustomFilterValueReducer,
|
|
11087
|
-
resetCustomFilterValues: resetCustomFilterValuesReducer,
|
|
11088
11083
|
addDiagnosticFilters: addDiagnosticFiltersReducer,
|
|
11089
11084
|
setDiagnosticFilterValues: setDiagnosticFilterValuesReducer,
|
|
11090
11085
|
addUpFilters: addUpFiltersReducer,
|
|
11091
|
-
setUpFilterValues: setUpFilterValuesReducer
|
|
11086
|
+
setUpFilterValues: setUpFilterValuesReducer,
|
|
11087
|
+
resetFilters: resetFiltersReducer
|
|
11092
11088
|
}
|
|
11093
11089
|
}), store = configureStore({
|
|
11094
11090
|
reducer: {
|
|
@@ -11181,11 +11177,11 @@ class InjectAsyncHistoryItemsHandler extends BaseHandler {
|
|
|
11181
11177
|
}
|
|
11182
11178
|
}
|
|
11183
11179
|
}
|
|
11184
|
-
let request$
|
|
11180
|
+
let request$j;
|
|
11185
11181
|
const bootstrapInjectAsyncHistoryItems = (te) => {
|
|
11186
|
-
request$
|
|
11182
|
+
request$j = te.registerRequest(addAsyncHistoryItemsCommand, InjectAsyncHistoryItemsHandler);
|
|
11187
11183
|
}, teardownInjectAsyncHistoryItems = () => {
|
|
11188
|
-
request$
|
|
11184
|
+
request$j == null || request$j.dispose();
|
|
11189
11185
|
}, isString = (te) => typeof te == "string" && te.trim() !== "", isValidDateString = (te) => {
|
|
11190
11186
|
if (typeof te != "string" || te.trim() === "") return !1;
|
|
11191
11187
|
const J = new Date(te);
|
|
@@ -11240,11 +11236,11 @@ class AddHistoryItemHandler extends StoreBaseHandler {
|
|
|
11240
11236
|
}
|
|
11241
11237
|
}
|
|
11242
11238
|
const addHistoryItemCommand = "add_history_item_request";
|
|
11243
|
-
let request$
|
|
11239
|
+
let request$i;
|
|
11244
11240
|
const bootstrapAddHistoryItem = (te) => {
|
|
11245
|
-
request$
|
|
11241
|
+
request$i = te.registerRequest(addHistoryItemCommand, AddHistoryItemHandler);
|
|
11246
11242
|
}, teardownAddHistoryItem = () => {
|
|
11247
|
-
request$
|
|
11243
|
+
request$i == null || request$i.dispose();
|
|
11248
11244
|
};
|
|
11249
11245
|
let pluginLocaleManager;
|
|
11250
11246
|
const initializeLocalization = async (te) => {
|
|
@@ -11437,11 +11433,11 @@ class ExportToPdfHandler extends ApiBaseHandler {
|
|
|
11437
11433
|
}
|
|
11438
11434
|
class ExportPdf {
|
|
11439
11435
|
}
|
|
11440
|
-
let request$
|
|
11436
|
+
let request$h;
|
|
11441
11437
|
const bootstrapExportPdf = (te) => {
|
|
11442
|
-
request$
|
|
11438
|
+
request$h = te.registerRequest(ExportPdf, ExportToPdfHandler);
|
|
11443
11439
|
}, teardownExportPdf = () => {
|
|
11444
|
-
request$
|
|
11440
|
+
request$h == null || request$h.dispose();
|
|
11445
11441
|
}, { addActivityHistoryItems } = activityHistoryCollectionsSlice.actions;
|
|
11446
11442
|
class AddHistoryItemsHandler extends StoreBaseHandler {
|
|
11447
11443
|
async handle(J) {
|
|
@@ -11460,11 +11456,11 @@ class AddHistoryItemsHandler extends StoreBaseHandler {
|
|
|
11460
11456
|
}
|
|
11461
11457
|
}
|
|
11462
11458
|
}
|
|
11463
|
-
let request$
|
|
11459
|
+
let request$g;
|
|
11464
11460
|
const bootstrapAddHistoryItems = (te) => {
|
|
11465
|
-
request$
|
|
11461
|
+
request$g = te.registerRequest(addHistoryItemsCommand, AddHistoryItemsHandler);
|
|
11466
11462
|
}, teardownAddHistoryItems = () => {
|
|
11467
|
-
request$
|
|
11463
|
+
request$g == null || request$g.dispose();
|
|
11468
11464
|
}, { updateActivityHistoryItem } = activityHistoryCollectionsSlice.actions;
|
|
11469
11465
|
class UpdateHistoryItemHandler extends StoreBaseHandler {
|
|
11470
11466
|
async handle(J) {
|
|
@@ -11481,11 +11477,11 @@ class UpdateHistoryItemHandler extends StoreBaseHandler {
|
|
|
11481
11477
|
}
|
|
11482
11478
|
}
|
|
11483
11479
|
const updateHistoryItemCommand = "update_history_item_request";
|
|
11484
|
-
let request$
|
|
11480
|
+
let request$f;
|
|
11485
11481
|
const bootstrapUpdateHistoryItem = (te) => {
|
|
11486
|
-
request$
|
|
11482
|
+
request$f = te.registerRequest(updateHistoryItemCommand, UpdateHistoryItemHandler);
|
|
11487
11483
|
}, teardownUpdateHistoryItem = () => {
|
|
11488
|
-
request$
|
|
11484
|
+
request$f == null || request$f.dispose();
|
|
11489
11485
|
};
|
|
11490
11486
|
function connectedProperty(te, J = {}) {
|
|
11491
11487
|
return createConnectedProperty(store)(te, J);
|
|
@@ -15541,20 +15537,20 @@ ActivityHistoryPartialDataError = __decorateClass$o([
|
|
|
15541
15537
|
], ActivityHistoryPartialDataError);
|
|
15542
15538
|
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
15539
|
[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"
|
|
15540
|
+
<dss-input-switch size="sm" @onChangeValue=${X} .checked=${re}>
|
|
15541
|
+
<input slot="input" id="switch-${te}" aria-label=${J} type="checkbox" ?disabled=${!ne}>
|
|
15546
15542
|
<label slot="label" for="switch-${te}">${J || te}</label>
|
|
15547
15543
|
</dss-input-switch>`,
|
|
15548
15544
|
[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}>
|
|
15545
|
+
<dss-checkbox variant="default" @onChange=${(oe) => X(oe)}>
|
|
15546
|
+
<input slot="input" id="checkboxStory-${te}" type="checkbox" .checked=${re} ?disabled=${!ne}>
|
|
15551
15547
|
<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
|
|
15548
|
+
</dss-checkbox>`
|
|
15549
|
+
/* [ActivityHistoryFilterType.Dropdown]: (id, title, handleChange, isSelected, isEnabled) => html`
|
|
15550
|
+
<dss-input-dropdown type="default" @onChange=${(e) => handleChange(e)}>
|
|
15551
|
+
<input slot="input" id="dropdownStory-${id}" type="text" .checked=${isSelected} ?disabled=${!isEnabled}>
|
|
15552
|
+
<label slot="label" for="dropdownStory-${id}">${title || id}</label>
|
|
15553
|
+
</dss-input-dropdown>`, */
|
|
15558
15554
|
}, getFilterTemplate = (te, J, X, re) => {
|
|
15559
15555
|
var pe, fe;
|
|
15560
15556
|
const ne = !!(X != null && X.id) && !!re, oe = crypto.randomUUID(), de = ne ? re.title || re.id : te.title, ce = (ge) => {
|
|
@@ -15736,11 +15732,11 @@ class SetCommonFilterHandler extends StoreBaseHandler {
|
|
|
15736
15732
|
}
|
|
15737
15733
|
}
|
|
15738
15734
|
}
|
|
15739
|
-
let request$
|
|
15735
|
+
let request$e;
|
|
15740
15736
|
const bootstrapSetCommonFilter = (te) => {
|
|
15741
|
-
request$
|
|
15737
|
+
request$e = te.registerRequest(SetCommonFilter, SetCommonFilterHandler);
|
|
15742
15738
|
}, teardownSetCommonFilter = () => {
|
|
15743
|
-
request$
|
|
15739
|
+
request$e == null || request$e.dispose();
|
|
15744
15740
|
}, { addCustomFilters } = activityHistoryFiltersSlice.actions;
|
|
15745
15741
|
class AddCustomFiltersHandler extends StoreBaseHandler {
|
|
15746
15742
|
async handle(J) {
|
|
@@ -15751,11 +15747,11 @@ class AddCustomFiltersHandler extends StoreBaseHandler {
|
|
|
15751
15747
|
}
|
|
15752
15748
|
}
|
|
15753
15749
|
}
|
|
15754
|
-
let request$
|
|
15750
|
+
let request$d;
|
|
15755
15751
|
const bootstrapAddCustomFilter = (te) => {
|
|
15756
|
-
request$
|
|
15752
|
+
request$d = te.registerRequest(AddCustomFiltersCommand, AddCustomFiltersHandler);
|
|
15757
15753
|
}, teardownAddCustomFilter = () => {
|
|
15758
|
-
request$
|
|
15754
|
+
request$d == null || request$d.dispose();
|
|
15759
15755
|
}, { setCustomFilterGroupValue } = activityHistoryFiltersSlice.actions;
|
|
15760
15756
|
class SetCustomFilterGroupHandler extends StoreBaseHandler {
|
|
15761
15757
|
async handle(J) {
|
|
@@ -15766,11 +15762,11 @@ class SetCustomFilterGroupHandler extends StoreBaseHandler {
|
|
|
15766
15762
|
}
|
|
15767
15763
|
}
|
|
15768
15764
|
}
|
|
15769
|
-
let request$
|
|
15765
|
+
let request$c;
|
|
15770
15766
|
const bootstrapSetCustomFilterGroup = (te) => {
|
|
15771
|
-
request$
|
|
15767
|
+
request$c = te.registerRequest(SetCustomFilterGroup, SetCustomFilterGroupHandler);
|
|
15772
15768
|
}, teardownSetCustomFilterGroup = () => {
|
|
15773
|
-
request$
|
|
15769
|
+
request$c == null || request$c.dispose();
|
|
15774
15770
|
}, { setCustomFilterValue } = activityHistoryFiltersSlice.actions;
|
|
15775
15771
|
class SetCustomFilterValueHandler extends StoreBaseHandler {
|
|
15776
15772
|
async handle(J) {
|
|
@@ -15781,11 +15777,11 @@ class SetCustomFilterValueHandler extends StoreBaseHandler {
|
|
|
15781
15777
|
}
|
|
15782
15778
|
}
|
|
15783
15779
|
}
|
|
15784
|
-
let request$
|
|
15780
|
+
let request$b;
|
|
15785
15781
|
const bootstrapSetCustomFilterValue = (te) => {
|
|
15786
|
-
request$
|
|
15782
|
+
request$b = te.registerRequest(SetCustomFilterValue, SetCustomFilterValueHandler);
|
|
15787
15783
|
}, teardownSetCustomFilterValue = () => {
|
|
15788
|
-
request$
|
|
15784
|
+
request$b == null || request$b.dispose();
|
|
15789
15785
|
};
|
|
15790
15786
|
class AddDiagnosticFiltersHandler extends StoreBaseHandler {
|
|
15791
15787
|
async handle(J) {
|
|
@@ -15801,11 +15797,11 @@ class AddDiagnosticFiltersCommand {
|
|
|
15801
15797
|
this.payload = J;
|
|
15802
15798
|
}
|
|
15803
15799
|
}
|
|
15804
|
-
let request$
|
|
15800
|
+
let request$a;
|
|
15805
15801
|
const bootstrapAddDiagnosticFilter = (te) => {
|
|
15806
|
-
request$
|
|
15802
|
+
request$a = te.registerRequest(AddDiagnosticFiltersCommand, AddDiagnosticFiltersHandler);
|
|
15807
15803
|
}, teardownAddDiagnosticFilter = () => {
|
|
15808
|
-
request$
|
|
15804
|
+
request$a == null || request$a.dispose();
|
|
15809
15805
|
}, { setDiagnosticFilterValues } = activityHistoryFiltersSlice.actions;
|
|
15810
15806
|
class SetDiagnosticFiltersHandler extends StoreBaseHandler {
|
|
15811
15807
|
async handle(J) {
|
|
@@ -15816,44 +15812,12 @@ class SetDiagnosticFiltersHandler extends StoreBaseHandler {
|
|
|
15816
15812
|
}
|
|
15817
15813
|
}
|
|
15818
15814
|
}
|
|
15819
|
-
let request$
|
|
15815
|
+
let request$9;
|
|
15820
15816
|
const bootstrapSetDiagnosticFilter = (te) => {
|
|
15821
|
-
request$
|
|
15817
|
+
request$9 = te.registerRequest(SetDiagnosticFiltersCommand, SetDiagnosticFiltersHandler);
|
|
15822
15818
|
}, teardownSetDiagnosticFilter = () => {
|
|
15823
|
-
request$a == null || request$a.dispose();
|
|
15824
|
-
};
|
|
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
15819
|
request$9 == null || request$9.dispose();
|
|
15842
15820
|
};
|
|
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
15821
|
class AddUpFiltersHandler extends StoreBaseHandler {
|
|
15858
15822
|
async handle(J) {
|
|
15859
15823
|
try {
|
|
@@ -15868,11 +15832,11 @@ class AddUpFiltersCommand {
|
|
|
15868
15832
|
this.payload = J;
|
|
15869
15833
|
}
|
|
15870
15834
|
}
|
|
15871
|
-
let request$
|
|
15835
|
+
let request$8;
|
|
15872
15836
|
const bootstrapAddUpFilter = (te) => {
|
|
15873
|
-
request$
|
|
15837
|
+
request$8 = te.registerRequest(AddUpFiltersCommand, AddUpFiltersHandler);
|
|
15874
15838
|
}, teardownAddUpFilter = () => {
|
|
15875
|
-
request$
|
|
15839
|
+
request$8 == null || request$8.dispose();
|
|
15876
15840
|
}, { setUpFilterValues } = activityHistoryFiltersSlice.actions;
|
|
15877
15841
|
class SetUpFiltersHandler extends StoreBaseHandler {
|
|
15878
15842
|
async handle(J) {
|
|
@@ -15883,15 +15847,33 @@ class SetUpFiltersHandler extends StoreBaseHandler {
|
|
|
15883
15847
|
}
|
|
15884
15848
|
}
|
|
15885
15849
|
}
|
|
15886
|
-
let request$
|
|
15850
|
+
let request$7;
|
|
15887
15851
|
const bootstrapSetUpFilter = (te) => {
|
|
15888
|
-
request$
|
|
15852
|
+
request$7 = te.registerRequest(SetUpFiltersCommand, SetUpFiltersHandler);
|
|
15889
15853
|
}, teardownSetUpFilter = () => {
|
|
15854
|
+
request$7 == null || request$7.dispose();
|
|
15855
|
+
};
|
|
15856
|
+
class ResetFiltersCommand {
|
|
15857
|
+
}
|
|
15858
|
+
const { resetFilters } = activityHistoryFiltersSlice.actions;
|
|
15859
|
+
class ResetFiltersHandler extends StoreBaseHandler {
|
|
15860
|
+
async handle(J) {
|
|
15861
|
+
try {
|
|
15862
|
+
this.store.dispatch(resetFilters());
|
|
15863
|
+
} catch (X) {
|
|
15864
|
+
console.log(X.message);
|
|
15865
|
+
}
|
|
15866
|
+
}
|
|
15867
|
+
}
|
|
15868
|
+
let request$6;
|
|
15869
|
+
const bootstrapResetFilters = (te) => {
|
|
15870
|
+
request$6 = te.registerRequest(ResetFiltersCommand, ResetFiltersHandler);
|
|
15871
|
+
}, teardownResetFilters = () => {
|
|
15890
15872
|
request$6 == null || request$6.dispose();
|
|
15891
15873
|
}, bootstrapFilters = (te) => {
|
|
15892
|
-
bootstrapSetCommonFilter(te), bootstrapAddCustomFilter(te), bootstrapSetCustomFilterGroup(te), bootstrapSetCustomFilterValue(te), bootstrapAddDiagnosticFilter(te), bootstrapSetDiagnosticFilter(te),
|
|
15874
|
+
bootstrapSetCommonFilter(te), bootstrapAddCustomFilter(te), bootstrapSetCustomFilterGroup(te), bootstrapSetCustomFilterValue(te), bootstrapAddDiagnosticFilter(te), bootstrapSetDiagnosticFilter(te), bootstrapAddUpFilter(te), bootstrapSetUpFilter(te), bootstrapResetFilters(te);
|
|
15893
15875
|
}, teardownFilters = () => {
|
|
15894
|
-
teardownSetCommonFilter(), teardownAddCustomFilter(), teardownSetCustomFilterGroup(), teardownSetCustomFilterValue(), teardownAddDiagnosticFilter(), teardownSetDiagnosticFilter(),
|
|
15876
|
+
teardownSetCommonFilter(), teardownAddCustomFilter(), teardownSetCustomFilterGroup(), teardownSetCustomFilterValue(), teardownAddDiagnosticFilter(), teardownSetDiagnosticFilter(), teardownAddUpFilter(), teardownSetUpFilter(), teardownResetFilters();
|
|
15895
15877
|
}, events = {
|
|
15896
15878
|
activityHistorySearched: "activity_history_searched"
|
|
15897
15879
|
}, { setSearchString } = activityHistoryFiltersSlice.actions;
|
|
@@ -15968,7 +15950,7 @@ __decorateClass$l([
|
|
|
15968
15950
|
ActivityHistorySearchBar = __decorateClass$l([
|
|
15969
15951
|
t$k("activity-history-search-bar")
|
|
15970
15952
|
], ActivityHistorySearchBar);
|
|
15971
|
-
const formatShowFilterTitle = (te) => {
|
|
15953
|
+
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
15954
|
const J = te.replace(/veure/gi, "").trim();
|
|
15973
15955
|
return J.charAt(0).toUpperCase() + J.slice(1);
|
|
15974
15956
|
}, 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 +16059,7 @@ const formatShowFilterTitle = (te) => {
|
|
|
16077
16059
|
<dss-button variant="secondary" size="sm" label=${translate("chipHeader.cleanFilters")} icon="cleaning_services" @click=${te.resetFilters}></dss-button>
|
|
16078
16060
|
</div>
|
|
16079
16061
|
`;
|
|
16080
|
-
}
|
|
16062
|
+
};
|
|
16081
16063
|
var __defProp$k = Object.defineProperty, __getOwnPropDesc$9 = Object.getOwnPropertyDescriptor, __decorateClass$k = (te, J, X, re) => {
|
|
16082
16064
|
for (var ne = re > 1 ? void 0 : re ? __getOwnPropDesc$9(J, X) : J, oe = te.length - 1, de; oe >= 0; oe--)
|
|
16083
16065
|
(de = te[oe]) && (ne = (re ? de(J, X, ne) : de(ne)) || ne);
|
|
@@ -16109,7 +16091,7 @@ let ActiveFiltersBadges = class extends h$q {
|
|
|
16109
16091
|
this.api.broker.send(new SetUpFiltersCommand([...this.upFilterEnabled.enabledValues.filter((J) => J !== te)]));
|
|
16110
16092
|
}
|
|
16111
16093
|
resetFilters() {
|
|
16112
|
-
this.api.broker.send(new
|
|
16094
|
+
this.api.broker.send(new ResetFiltersCommand());
|
|
16113
16095
|
}
|
|
16114
16096
|
};
|
|
16115
16097
|
ActiveFiltersBadges.styles = i$y`
|