@smartsoft001-mobilems/angular 2.27.0 → 2.29.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.
|
@@ -1160,6 +1160,32 @@ class CrudBaseService extends CrudService {
|
|
|
1160
1160
|
}
|
|
1161
1161
|
}
|
|
1162
1162
|
|
|
1163
|
+
class QueryFilterService {
|
|
1164
|
+
static map(filter, queryParams, data) {
|
|
1165
|
+
if (!queryParams[data.id])
|
|
1166
|
+
return filter;
|
|
1167
|
+
const ids = queryParams[data.id].split(',');
|
|
1168
|
+
const texts = queryParams[data.text].split(',');
|
|
1169
|
+
filter.offset = 0;
|
|
1170
|
+
filter.query = [
|
|
1171
|
+
...(filter?.query ? filter.query : []).filter((q) => q.key !== data.key),
|
|
1172
|
+
{
|
|
1173
|
+
key: data.key,
|
|
1174
|
+
type: '=',
|
|
1175
|
+
value: ids.map((id, i) => {
|
|
1176
|
+
return {
|
|
1177
|
+
id: id,
|
|
1178
|
+
text: texts[i],
|
|
1179
|
+
selected: true,
|
|
1180
|
+
};
|
|
1181
|
+
}),
|
|
1182
|
+
hidden: true,
|
|
1183
|
+
},
|
|
1184
|
+
];
|
|
1185
|
+
return filter;
|
|
1186
|
+
}
|
|
1187
|
+
}
|
|
1188
|
+
|
|
1163
1189
|
const SERVICES = [
|
|
1164
1190
|
DictionaryService,
|
|
1165
1191
|
ConfigsService,
|
|
@@ -2053,5 +2079,5 @@ const unauthorizedGuard = () => {
|
|
|
2053
2079
|
* Generated bundle index. Do not edit.
|
|
2054
2080
|
*/
|
|
2055
2081
|
|
|
2056
|
-
export { AppComponent, AuthStorageService, COMPONENTS, ConfigsFacade, ConfigsService, ContrastService, CrudBaseService, DIRECTIVES, DictionaryService, FileUrlService, FiltersBaseComponent, FiltersContext, FooterComponent, GameType, GlobalService, HeaderComponent, HoverDirective, ImageBox, ListMode, MenuComponent, MetaService, ModalContainerComponent, ModalRef, ModalService, PageComponent, SERVICES, ScrollTopComponent, ScrollableDirective, SearchService, SeoService, SettingsService, SharedConfig, SharedModule, StyleService, TRANSLATE_DATA_PL, TranslationService, WcagService, authenticationGuard, environment, setTranslationsAndLang, unauthorizedGuard };
|
|
2082
|
+
export { AppComponent, AuthStorageService, COMPONENTS, ConfigsFacade, ConfigsService, ContrastService, CrudBaseService, DIRECTIVES, DictionaryService, FileUrlService, FiltersBaseComponent, FiltersContext, FooterComponent, GameType, GlobalService, HeaderComponent, HoverDirective, ImageBox, ListMode, MenuComponent, MetaService, ModalContainerComponent, ModalRef, ModalService, PageComponent, QueryFilterService, SERVICES, ScrollTopComponent, ScrollableDirective, SearchService, SeoService, SettingsService, SharedConfig, SharedModule, StyleService, TRANSLATE_DATA_PL, TranslationService, WcagService, authenticationGuard, environment, setTranslationsAndLang, unauthorizedGuard };
|
|
2057
2083
|
//# sourceMappingURL=smartsoft001-mobilems-angular.mjs.map
|