@uxland/primary-shell 5.6.3 → 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 +82 -44
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +5 -5
- 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/slice.d.ts +2 -0
- package/package.json +1 -1
- 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 +1 -1
- package/src/internal-plugins/activity-history/activity-history-item/filter/bootstrapper.ts +3 -0
- 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/slice.ts +2 -0
package/dist/index.js
CHANGED
|
@@ -11068,6 +11068,14 @@ function resetFiltersReducer(te, J) {
|
|
|
11068
11068
|
enabledValues: []
|
|
11069
11069
|
} : X.id === "common" ? commonFilters[0] : X);
|
|
11070
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
|
+
}
|
|
11071
11079
|
const activityHistoryFiltersSlice = createSlice({
|
|
11072
11080
|
name: "activity-history-filters",
|
|
11073
11081
|
initialState: {
|
|
@@ -11080,6 +11088,7 @@ const activityHistoryFiltersSlice = createSlice({
|
|
|
11080
11088
|
addCustomFilters: addCustomFiltersReducer,
|
|
11081
11089
|
setCustomFilterGroupValue: setCustomFilterGroupValueReducer,
|
|
11082
11090
|
setCustomFilterValue: setCustomFilterValueReducer,
|
|
11091
|
+
setCustomFilterAllValues: setCustomFilterAllValuesReducer,
|
|
11083
11092
|
addDiagnosticFilters: addDiagnosticFiltersReducer,
|
|
11084
11093
|
setDiagnosticFilterValues: setDiagnosticFilterValuesReducer,
|
|
11085
11094
|
addUpFilters: addUpFiltersReducer,
|
|
@@ -11177,11 +11186,11 @@ class InjectAsyncHistoryItemsHandler extends BaseHandler {
|
|
|
11177
11186
|
}
|
|
11178
11187
|
}
|
|
11179
11188
|
}
|
|
11180
|
-
let request$
|
|
11189
|
+
let request$k;
|
|
11181
11190
|
const bootstrapInjectAsyncHistoryItems = (te) => {
|
|
11182
|
-
request$
|
|
11191
|
+
request$k = te.registerRequest(addAsyncHistoryItemsCommand, InjectAsyncHistoryItemsHandler);
|
|
11183
11192
|
}, teardownInjectAsyncHistoryItems = () => {
|
|
11184
|
-
request$
|
|
11193
|
+
request$k == null || request$k.dispose();
|
|
11185
11194
|
}, isString = (te) => typeof te == "string" && te.trim() !== "", isValidDateString = (te) => {
|
|
11186
11195
|
if (typeof te != "string" || te.trim() === "") return !1;
|
|
11187
11196
|
const J = new Date(te);
|
|
@@ -11236,11 +11245,11 @@ class AddHistoryItemHandler extends StoreBaseHandler {
|
|
|
11236
11245
|
}
|
|
11237
11246
|
}
|
|
11238
11247
|
const addHistoryItemCommand = "add_history_item_request";
|
|
11239
|
-
let request$
|
|
11248
|
+
let request$j;
|
|
11240
11249
|
const bootstrapAddHistoryItem = (te) => {
|
|
11241
|
-
request$
|
|
11250
|
+
request$j = te.registerRequest(addHistoryItemCommand, AddHistoryItemHandler);
|
|
11242
11251
|
}, teardownAddHistoryItem = () => {
|
|
11243
|
-
request$
|
|
11252
|
+
request$j == null || request$j.dispose();
|
|
11244
11253
|
};
|
|
11245
11254
|
let pluginLocaleManager;
|
|
11246
11255
|
const initializeLocalization = async (te) => {
|
|
@@ -11433,11 +11442,11 @@ class ExportToPdfHandler extends ApiBaseHandler {
|
|
|
11433
11442
|
}
|
|
11434
11443
|
class ExportPdf {
|
|
11435
11444
|
}
|
|
11436
|
-
let request$
|
|
11445
|
+
let request$i;
|
|
11437
11446
|
const bootstrapExportPdf = (te) => {
|
|
11438
|
-
request$
|
|
11447
|
+
request$i = te.registerRequest(ExportPdf, ExportToPdfHandler);
|
|
11439
11448
|
}, teardownExportPdf = () => {
|
|
11440
|
-
request$
|
|
11449
|
+
request$i == null || request$i.dispose();
|
|
11441
11450
|
}, { addActivityHistoryItems } = activityHistoryCollectionsSlice.actions;
|
|
11442
11451
|
class AddHistoryItemsHandler extends StoreBaseHandler {
|
|
11443
11452
|
async handle(J) {
|
|
@@ -11456,11 +11465,11 @@ class AddHistoryItemsHandler extends StoreBaseHandler {
|
|
|
11456
11465
|
}
|
|
11457
11466
|
}
|
|
11458
11467
|
}
|
|
11459
|
-
let request$
|
|
11468
|
+
let request$h;
|
|
11460
11469
|
const bootstrapAddHistoryItems = (te) => {
|
|
11461
|
-
request$
|
|
11470
|
+
request$h = te.registerRequest(addHistoryItemsCommand, AddHistoryItemsHandler);
|
|
11462
11471
|
}, teardownAddHistoryItems = () => {
|
|
11463
|
-
request$
|
|
11472
|
+
request$h == null || request$h.dispose();
|
|
11464
11473
|
}, { updateActivityHistoryItem } = activityHistoryCollectionsSlice.actions;
|
|
11465
11474
|
class UpdateHistoryItemHandler extends StoreBaseHandler {
|
|
11466
11475
|
async handle(J) {
|
|
@@ -11477,11 +11486,11 @@ class UpdateHistoryItemHandler extends StoreBaseHandler {
|
|
|
11477
11486
|
}
|
|
11478
11487
|
}
|
|
11479
11488
|
const updateHistoryItemCommand = "update_history_item_request";
|
|
11480
|
-
let request$
|
|
11489
|
+
let request$g;
|
|
11481
11490
|
const bootstrapUpdateHistoryItem = (te) => {
|
|
11482
|
-
request$
|
|
11491
|
+
request$g = te.registerRequest(updateHistoryItemCommand, UpdateHistoryItemHandler);
|
|
11483
11492
|
}, teardownUpdateHistoryItem = () => {
|
|
11484
|
-
request$
|
|
11493
|
+
request$g == null || request$g.dispose();
|
|
11485
11494
|
};
|
|
11486
11495
|
function connectedProperty(te, J = {}) {
|
|
11487
11496
|
return createConnectedProperty(store)(te, J);
|
|
@@ -15601,7 +15610,7 @@ const styles$e = ".filters-sidebar{padding:8px 4px;border-right:1px solid rgb(18
|
|
|
15601
15610
|
dropdownFixed
|
|
15602
15611
|
type="default"
|
|
15603
15612
|
.elements=${re}
|
|
15604
|
-
@onInputDropdownChange=${(ne) => J.
|
|
15613
|
+
@onInputDropdownChange=${(ne) => J._onChangeCustomFilterAllValues(X.id, te.id, ne.detail.selectedValue)}
|
|
15605
15614
|
.selectedValue=${te.enabledValues}
|
|
15606
15615
|
selectorStyle="max-height: 450px"
|
|
15607
15616
|
>
|
|
@@ -15646,6 +15655,11 @@ class SetUpFiltersCommand {
|
|
|
15646
15655
|
this.payload = J;
|
|
15647
15656
|
}
|
|
15648
15657
|
}
|
|
15658
|
+
class SetCustomFilterAllValues {
|
|
15659
|
+
constructor(J) {
|
|
15660
|
+
this.payload = J;
|
|
15661
|
+
}
|
|
15662
|
+
}
|
|
15649
15663
|
var __defProp$n = Object.defineProperty, __getOwnPropDesc$c = Object.getOwnPropertyDescriptor, __decorateClass$n = (te, J, X, re) => {
|
|
15650
15664
|
for (var ne = re > 1 ? void 0 : re ? __getOwnPropDesc$c(J, X) : J, oe = te.length - 1, de; oe >= 0; oe--)
|
|
15651
15665
|
(de = te[oe]) && (ne = (re ? de(J, X, ne) : de(ne)) || ne);
|
|
@@ -15680,6 +15694,15 @@ let ActivityHistoryFilters = class extends h$q {
|
|
|
15680
15694
|
})
|
|
15681
15695
|
);
|
|
15682
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
|
+
}
|
|
15683
15706
|
_handleDiagnosticFilterChange(te) {
|
|
15684
15707
|
const J = te.detail.selectedValue;
|
|
15685
15708
|
this.api.broker.send(new SetDiagnosticFiltersCommand(J));
|
|
@@ -15732,11 +15755,11 @@ class SetCommonFilterHandler extends StoreBaseHandler {
|
|
|
15732
15755
|
}
|
|
15733
15756
|
}
|
|
15734
15757
|
}
|
|
15735
|
-
let request$
|
|
15758
|
+
let request$f;
|
|
15736
15759
|
const bootstrapSetCommonFilter = (te) => {
|
|
15737
|
-
request$
|
|
15760
|
+
request$f = te.registerRequest(SetCommonFilter, SetCommonFilterHandler);
|
|
15738
15761
|
}, teardownSetCommonFilter = () => {
|
|
15739
|
-
request$
|
|
15762
|
+
request$f == null || request$f.dispose();
|
|
15740
15763
|
}, { addCustomFilters } = activityHistoryFiltersSlice.actions;
|
|
15741
15764
|
class AddCustomFiltersHandler extends StoreBaseHandler {
|
|
15742
15765
|
async handle(J) {
|
|
@@ -15747,11 +15770,11 @@ class AddCustomFiltersHandler extends StoreBaseHandler {
|
|
|
15747
15770
|
}
|
|
15748
15771
|
}
|
|
15749
15772
|
}
|
|
15750
|
-
let request$
|
|
15773
|
+
let request$e;
|
|
15751
15774
|
const bootstrapAddCustomFilter = (te) => {
|
|
15752
|
-
request$
|
|
15775
|
+
request$e = te.registerRequest(AddCustomFiltersCommand, AddCustomFiltersHandler);
|
|
15753
15776
|
}, teardownAddCustomFilter = () => {
|
|
15754
|
-
request$
|
|
15777
|
+
request$e == null || request$e.dispose();
|
|
15755
15778
|
}, { setCustomFilterGroupValue } = activityHistoryFiltersSlice.actions;
|
|
15756
15779
|
class SetCustomFilterGroupHandler extends StoreBaseHandler {
|
|
15757
15780
|
async handle(J) {
|
|
@@ -15762,11 +15785,11 @@ class SetCustomFilterGroupHandler extends StoreBaseHandler {
|
|
|
15762
15785
|
}
|
|
15763
15786
|
}
|
|
15764
15787
|
}
|
|
15765
|
-
let request$
|
|
15788
|
+
let request$d;
|
|
15766
15789
|
const bootstrapSetCustomFilterGroup = (te) => {
|
|
15767
|
-
request$
|
|
15790
|
+
request$d = te.registerRequest(SetCustomFilterGroup, SetCustomFilterGroupHandler);
|
|
15768
15791
|
}, teardownSetCustomFilterGroup = () => {
|
|
15769
|
-
request$
|
|
15792
|
+
request$d == null || request$d.dispose();
|
|
15770
15793
|
}, { setCustomFilterValue } = activityHistoryFiltersSlice.actions;
|
|
15771
15794
|
class SetCustomFilterValueHandler extends StoreBaseHandler {
|
|
15772
15795
|
async handle(J) {
|
|
@@ -15777,11 +15800,11 @@ class SetCustomFilterValueHandler extends StoreBaseHandler {
|
|
|
15777
15800
|
}
|
|
15778
15801
|
}
|
|
15779
15802
|
}
|
|
15780
|
-
let request$
|
|
15803
|
+
let request$c;
|
|
15781
15804
|
const bootstrapSetCustomFilterValue = (te) => {
|
|
15782
|
-
request$
|
|
15805
|
+
request$c = te.registerRequest(SetCustomFilterValue, SetCustomFilterValueHandler);
|
|
15783
15806
|
}, teardownSetCustomFilterValue = () => {
|
|
15784
|
-
request$
|
|
15807
|
+
request$c == null || request$c.dispose();
|
|
15785
15808
|
};
|
|
15786
15809
|
class AddDiagnosticFiltersHandler extends StoreBaseHandler {
|
|
15787
15810
|
async handle(J) {
|
|
@@ -15797,11 +15820,11 @@ class AddDiagnosticFiltersCommand {
|
|
|
15797
15820
|
this.payload = J;
|
|
15798
15821
|
}
|
|
15799
15822
|
}
|
|
15800
|
-
let request$
|
|
15823
|
+
let request$b;
|
|
15801
15824
|
const bootstrapAddDiagnosticFilter = (te) => {
|
|
15802
|
-
request$
|
|
15825
|
+
request$b = te.registerRequest(AddDiagnosticFiltersCommand, AddDiagnosticFiltersHandler);
|
|
15803
15826
|
}, teardownAddDiagnosticFilter = () => {
|
|
15804
|
-
request$
|
|
15827
|
+
request$b == null || request$b.dispose();
|
|
15805
15828
|
}, { setDiagnosticFilterValues } = activityHistoryFiltersSlice.actions;
|
|
15806
15829
|
class SetDiagnosticFiltersHandler extends StoreBaseHandler {
|
|
15807
15830
|
async handle(J) {
|
|
@@ -15812,11 +15835,11 @@ class SetDiagnosticFiltersHandler extends StoreBaseHandler {
|
|
|
15812
15835
|
}
|
|
15813
15836
|
}
|
|
15814
15837
|
}
|
|
15815
|
-
let request$
|
|
15838
|
+
let request$a;
|
|
15816
15839
|
const bootstrapSetDiagnosticFilter = (te) => {
|
|
15817
|
-
request$
|
|
15840
|
+
request$a = te.registerRequest(SetDiagnosticFiltersCommand, SetDiagnosticFiltersHandler);
|
|
15818
15841
|
}, teardownSetDiagnosticFilter = () => {
|
|
15819
|
-
request$
|
|
15842
|
+
request$a == null || request$a.dispose();
|
|
15820
15843
|
};
|
|
15821
15844
|
class AddUpFiltersHandler extends StoreBaseHandler {
|
|
15822
15845
|
async handle(J) {
|
|
@@ -15832,11 +15855,11 @@ class AddUpFiltersCommand {
|
|
|
15832
15855
|
this.payload = J;
|
|
15833
15856
|
}
|
|
15834
15857
|
}
|
|
15835
|
-
let request$
|
|
15858
|
+
let request$9;
|
|
15836
15859
|
const bootstrapAddUpFilter = (te) => {
|
|
15837
|
-
request$
|
|
15860
|
+
request$9 = te.registerRequest(AddUpFiltersCommand, AddUpFiltersHandler);
|
|
15838
15861
|
}, teardownAddUpFilter = () => {
|
|
15839
|
-
request$
|
|
15862
|
+
request$9 == null || request$9.dispose();
|
|
15840
15863
|
}, { setUpFilterValues } = activityHistoryFiltersSlice.actions;
|
|
15841
15864
|
class SetUpFiltersHandler extends StoreBaseHandler {
|
|
15842
15865
|
async handle(J) {
|
|
@@ -15847,11 +15870,11 @@ class SetUpFiltersHandler extends StoreBaseHandler {
|
|
|
15847
15870
|
}
|
|
15848
15871
|
}
|
|
15849
15872
|
}
|
|
15850
|
-
let request$
|
|
15873
|
+
let request$8;
|
|
15851
15874
|
const bootstrapSetUpFilter = (te) => {
|
|
15852
|
-
request$
|
|
15875
|
+
request$8 = te.registerRequest(SetUpFiltersCommand, SetUpFiltersHandler);
|
|
15853
15876
|
}, teardownSetUpFilter = () => {
|
|
15854
|
-
request$
|
|
15877
|
+
request$8 == null || request$8.dispose();
|
|
15855
15878
|
};
|
|
15856
15879
|
class ResetFiltersCommand {
|
|
15857
15880
|
}
|
|
@@ -15865,15 +15888,30 @@ class ResetFiltersHandler extends StoreBaseHandler {
|
|
|
15865
15888
|
}
|
|
15866
15889
|
}
|
|
15867
15890
|
}
|
|
15868
|
-
let request$
|
|
15891
|
+
let request$7;
|
|
15869
15892
|
const bootstrapResetFilters = (te) => {
|
|
15870
|
-
request$
|
|
15893
|
+
request$7 = te.registerRequest(ResetFiltersCommand, ResetFiltersHandler);
|
|
15871
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 = () => {
|
|
15872
15910
|
request$6 == null || request$6.dispose();
|
|
15873
15911
|
}, bootstrapFilters = (te) => {
|
|
15874
|
-
bootstrapSetCommonFilter(te), bootstrapAddCustomFilter(te), bootstrapSetCustomFilterGroup(te), bootstrapSetCustomFilterValue(te), bootstrapAddDiagnosticFilter(te), bootstrapSetDiagnosticFilter(te), bootstrapAddUpFilter(te), bootstrapSetUpFilter(te), bootstrapResetFilters(te);
|
|
15912
|
+
bootstrapSetCommonFilter(te), bootstrapAddCustomFilter(te), bootstrapSetCustomFilterGroup(te), bootstrapSetCustomFilterValue(te), bootstrapSetCustomFilterAllValues(te), bootstrapAddDiagnosticFilter(te), bootstrapSetDiagnosticFilter(te), bootstrapAddUpFilter(te), bootstrapSetUpFilter(te), bootstrapResetFilters(te);
|
|
15875
15913
|
}, teardownFilters = () => {
|
|
15876
|
-
teardownSetCommonFilter(), teardownAddCustomFilter(), teardownSetCustomFilterGroup(), teardownSetCustomFilterValue(), teardownAddDiagnosticFilter(), teardownSetDiagnosticFilter(), teardownAddUpFilter(), teardownSetUpFilter(), teardownResetFilters();
|
|
15914
|
+
teardownSetCommonFilter(), teardownAddCustomFilter(), teardownSetCustomFilterGroup(), teardownSetCustomFilterValue(), teardownSetCustomFilterAllValues(), teardownAddDiagnosticFilter(), teardownSetDiagnosticFilter(), teardownAddUpFilter(), teardownSetUpFilter(), teardownResetFilters();
|
|
15877
15915
|
}, events = {
|
|
15878
15916
|
activityHistorySearched: "activity_history_searched"
|
|
15879
15917
|
}, { setSearchString } = activityHistoryFiltersSlice.actions;
|