@uxland/primary-shell 4.1.0 → 4.2.0

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.
Files changed (26) hide show
  1. package/dist/index.js +5193 -4896
  2. package/dist/index.js.map +1 -1
  3. package/dist/index.umd.cjs +457 -390
  4. package/dist/index.umd.cjs.map +1 -1
  5. package/dist/primary/shell/src/internal-plugins/activity-history/activity-history-item/add/add-async-history-items/request.d.ts +1 -1
  6. package/dist/primary/shell/src/internal-plugins/activity-history/activity-history-item/filter/UI/active-filters-badges/active-filters-badges.d.ts +11 -0
  7. package/dist/primary/shell/src/internal-plugins/activity-history/activity-history-item/filter/UI/active-filters-badges/template.d.ts +4 -0
  8. package/dist/primary/shell/src/internal-plugins/activity-history/activity-history-item/filter/UI/active-filters-header/active-filters-header.d.ts +10 -0
  9. package/dist/primary/shell/src/internal-plugins/activity-history/activity-history-item/filter/UI/active-filters-header/template.d.ts +4 -0
  10. package/dist/primary/shell/src/internal-plugins/activity-history/activity-history-item/filter/custom-filters/selectors.d.ts +147 -1
  11. package/dist/primary/shell/src/internal-plugins/activity-history/localization.d.ts +3 -0
  12. package/dist/style.css +1 -1
  13. package/package.json +6 -5
  14. package/src/internal-plugins/activity-history/activity-history-item/add/add-async-history-items/request.ts +1 -1
  15. package/src/internal-plugins/activity-history/activity-history-item/filter/UI/active-filters-badges/active-filters-badges.ts +43 -0
  16. package/src/internal-plugins/activity-history/activity-history-item/filter/UI/active-filters-badges/styles.css +31 -0
  17. package/src/internal-plugins/activity-history/activity-history-item/filter/UI/active-filters-badges/template.ts +79 -0
  18. package/src/internal-plugins/activity-history/activity-history-item/filter/UI/active-filters-header/active-filters-header.ts +32 -0
  19. package/src/internal-plugins/activity-history/activity-history-item/filter/UI/active-filters-header/styles.css +12 -0
  20. package/src/internal-plugins/activity-history/activity-history-item/filter/UI/active-filters-header/template.ts +14 -0
  21. package/src/internal-plugins/activity-history/activity-history-item/filter/custom-filters/selectors.ts +26 -0
  22. package/src/internal-plugins/activity-history/activity-history-item/list/UI/main-view/template.ts +1 -1
  23. package/src/internal-plugins/activity-history/activity-history-item/list/bootstrapper.ts +1 -0
  24. package/src/internal-plugins/activity-history/activity-history-item/search/activity-history-search-results/styles.css +1 -10
  25. package/src/internal-plugins/activity-history/activity-history-item/search/bootstrapper.ts +1 -0
  26. package/src/internal-plugins/activity-history/localization.ts +6 -2
@@ -7,6 +7,6 @@ export interface InjectAsyncHistoryItemsPayload {
7
7
  componentFactory: (item: IActivityHistoryItem) => HTMLElement;
8
8
  searchPredicate?: (searchString: string, item: IActivityHistoryItem) => boolean;
9
9
  errorMessage: string;
10
- filters?: IActivityHistoryCommonFilterGroup;
10
+ filters: IActivityHistoryCommonFilterGroup;
11
11
  }
12
12
  export declare const addAsyncHistoryItemsCommand = "inject_async_history_items_request";
@@ -0,0 +1,11 @@
1
+ import { LitElement } from 'lit';
2
+ import { PrimariaApi } from '../../../../../../api/api';
3
+ import { IActivityHistoryCustomFilterGroup } from '../../model';
4
+
5
+ export declare class ActiveFiltersBadges extends LitElement {
6
+ render(): import('lit').TemplateResult<1>;
7
+ static styles: import('lit').CSSResult;
8
+ api: PrimariaApi;
9
+ enabledFilters: IActivityHistoryCustomFilterGroup[];
10
+ _onDeleteFilterValue(filterGroupId: string, filterId: string, optionId: string, value: boolean): void;
11
+ }
@@ -0,0 +1,4 @@
1
+ import { nothing } from 'lit';
2
+ import { ActiveFiltersBadges } from './active-filters-badges';
3
+
4
+ export declare const template: (props: ActiveFiltersBadges) => import('lit').TemplateResult<1> | typeof nothing;
@@ -0,0 +1,10 @@
1
+ import { LitElement } from 'lit';
2
+ import { IActivityHistoryCustomFilterGroup } from '../../model';
3
+
4
+ export declare class ActiveFiltersHeader extends LitElement {
5
+ render(): import('lit').TemplateResult<1>;
6
+ static styles: import('lit').CSSResult;
7
+ searchString: string;
8
+ filters: IActivityHistoryCustomFilterGroup[];
9
+ areCustomFiltersActive: boolean;
10
+ }
@@ -0,0 +1,4 @@
1
+ import { nothing } from 'lit';
2
+ import { ActiveFiltersHeader } from './active-filters-header';
3
+
4
+ export declare const template: (props: ActiveFiltersHeader) => import('lit').TemplateResult<1> | typeof nothing;
@@ -1,4 +1,4 @@
1
- import { IActivityHistoryFilterGroup } from '../model';
1
+ import { IActivityHistoryCustomFilter, IActivityHistoryFilterGroup } from '../model';
2
2
 
3
3
  export declare const activityHistoryCustomFilterGroupsSelector: ((state: {
4
4
  activityHistoryCollections: {
@@ -31,3 +31,149 @@ export declare const activityHistoryCustomFilterGroupsSelector: ((state: {
31
31
  argsMemoize: typeof import('@reduxjs/toolkit').weakMapMemoize;
32
32
  memoize: typeof import('@reduxjs/toolkit').weakMapMemoize;
33
33
  };
34
+ export declare const areCustomFiltersActive: ((state: {
35
+ activityHistoryCollections: {
36
+ busy: import('../../..').IBusyHistoryItem[];
37
+ error: import('../../..').IErrorHistoryItem[];
38
+ collections: Record<string, import('../../..').IActivityHistoryItemCollection>;
39
+ };
40
+ activityHistoryFilters: {
41
+ searchString: string;
42
+ filters: IActivityHistoryFilterGroup[];
43
+ };
44
+ }) => boolean) & {
45
+ clearCache: () => void;
46
+ resultsCount: () => number;
47
+ resetResultsCount: () => void;
48
+ } & {
49
+ resultFunc: (resultFuncArgs_0: IActivityHistoryFilterGroup[]) => boolean;
50
+ memoizedResultFunc: ((resultFuncArgs_0: IActivityHistoryFilterGroup[]) => boolean) & {
51
+ clearCache: () => void;
52
+ resultsCount: () => number;
53
+ resetResultsCount: () => void;
54
+ };
55
+ lastResult: () => boolean;
56
+ dependencies: [((state: {
57
+ activityHistoryCollections: {
58
+ busy: import('../../..').IBusyHistoryItem[];
59
+ error: import('../../..').IErrorHistoryItem[];
60
+ collections: Record<string, import('../../..').IActivityHistoryItemCollection>;
61
+ };
62
+ activityHistoryFilters: {
63
+ searchString: string;
64
+ filters: IActivityHistoryFilterGroup[];
65
+ };
66
+ }) => IActivityHistoryFilterGroup[]) & {
67
+ clearCache: () => void;
68
+ resultsCount: () => number;
69
+ resetResultsCount: () => void;
70
+ } & {
71
+ resultFunc: (resultFuncArgs_0: IActivityHistoryFilterGroup[]) => IActivityHistoryFilterGroup[];
72
+ memoizedResultFunc: ((resultFuncArgs_0: IActivityHistoryFilterGroup[]) => IActivityHistoryFilterGroup[]) & {
73
+ clearCache: () => void;
74
+ resultsCount: () => number;
75
+ resetResultsCount: () => void;
76
+ };
77
+ lastResult: () => IActivityHistoryFilterGroup[];
78
+ dependencies: [(state: import('../../../infrastructure/state/store').RootState) => IActivityHistoryFilterGroup[]];
79
+ recomputations: () => number;
80
+ resetRecomputations: () => void;
81
+ dependencyRecomputations: () => number;
82
+ resetDependencyRecomputations: () => void;
83
+ } & {
84
+ argsMemoize: typeof import('@reduxjs/toolkit').weakMapMemoize;
85
+ memoize: typeof import('@reduxjs/toolkit').weakMapMemoize;
86
+ }];
87
+ recomputations: () => number;
88
+ resetRecomputations: () => void;
89
+ dependencyRecomputations: () => number;
90
+ resetDependencyRecomputations: () => void;
91
+ } & {
92
+ argsMemoize: typeof import('@reduxjs/toolkit').weakMapMemoize;
93
+ memoize: typeof import('@reduxjs/toolkit').weakMapMemoize;
94
+ };
95
+ export declare const activeGroupsWithEnabledFilters: ((state: {
96
+ activityHistoryCollections: {
97
+ busy: import('../../..').IBusyHistoryItem[];
98
+ error: import('../../..').IErrorHistoryItem[];
99
+ collections: Record<string, import('../../..').IActivityHistoryItemCollection>;
100
+ };
101
+ activityHistoryFilters: {
102
+ searchString: string;
103
+ filters: IActivityHistoryFilterGroup[];
104
+ };
105
+ }) => {
106
+ id: string;
107
+ title: string;
108
+ enabled: boolean;
109
+ sort: string;
110
+ filters: IActivityHistoryCustomFilter[];
111
+ }[]) & {
112
+ clearCache: () => void;
113
+ resultsCount: () => number;
114
+ resetResultsCount: () => void;
115
+ } & {
116
+ resultFunc: (resultFuncArgs_0: IActivityHistoryFilterGroup[]) => {
117
+ id: string;
118
+ title: string;
119
+ enabled: boolean;
120
+ sort: string;
121
+ filters: IActivityHistoryCustomFilter[];
122
+ }[];
123
+ memoizedResultFunc: ((resultFuncArgs_0: IActivityHistoryFilterGroup[]) => {
124
+ id: string;
125
+ title: string;
126
+ enabled: boolean;
127
+ sort: string;
128
+ filters: IActivityHistoryCustomFilter[];
129
+ }[]) & {
130
+ clearCache: () => void;
131
+ resultsCount: () => number;
132
+ resetResultsCount: () => void;
133
+ };
134
+ lastResult: () => {
135
+ id: string;
136
+ title: string;
137
+ enabled: boolean;
138
+ sort: string;
139
+ filters: IActivityHistoryCustomFilter[];
140
+ }[];
141
+ dependencies: [((state: {
142
+ activityHistoryCollections: {
143
+ busy: import('../../..').IBusyHistoryItem[];
144
+ error: import('../../..').IErrorHistoryItem[];
145
+ collections: Record<string, import('../../..').IActivityHistoryItemCollection>;
146
+ };
147
+ activityHistoryFilters: {
148
+ searchString: string;
149
+ filters: IActivityHistoryFilterGroup[];
150
+ };
151
+ }) => IActivityHistoryFilterGroup[]) & {
152
+ clearCache: () => void;
153
+ resultsCount: () => number;
154
+ resetResultsCount: () => void;
155
+ } & {
156
+ resultFunc: (resultFuncArgs_0: IActivityHistoryFilterGroup[]) => IActivityHistoryFilterGroup[];
157
+ memoizedResultFunc: ((resultFuncArgs_0: IActivityHistoryFilterGroup[]) => IActivityHistoryFilterGroup[]) & {
158
+ clearCache: () => void;
159
+ resultsCount: () => number;
160
+ resetResultsCount: () => void;
161
+ };
162
+ lastResult: () => IActivityHistoryFilterGroup[];
163
+ dependencies: [(state: import('../../../infrastructure/state/store').RootState) => IActivityHistoryFilterGroup[]];
164
+ recomputations: () => number;
165
+ resetRecomputations: () => void;
166
+ dependencyRecomputations: () => number;
167
+ resetDependencyRecomputations: () => void;
168
+ } & {
169
+ argsMemoize: typeof import('@reduxjs/toolkit').weakMapMemoize;
170
+ memoize: typeof import('@reduxjs/toolkit').weakMapMemoize;
171
+ }];
172
+ recomputations: () => number;
173
+ resetRecomputations: () => void;
174
+ dependencyRecomputations: () => number;
175
+ resetDependencyRecomputations: () => void;
176
+ } & {
177
+ argsMemoize: typeof import('@reduxjs/toolkit').weakMapMemoize;
178
+ memoize: typeof import('@reduxjs/toolkit').weakMapMemoize;
179
+ };
@@ -61,6 +61,9 @@ export declare const locales: {
61
61
  variablees: string;
62
62
  prescriptions: string;
63
63
  };
64
+ chipHeader: {
65
+ selection: string;
66
+ };
64
67
  };
65
68
  };
66
69
  };