@flusys/ng-shared 5.0.1 → 5.0.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.
|
@@ -209,6 +209,7 @@ const SHARED_MESSAGES = {
|
|
|
209
209
|
'shared.upload': 'Upload',
|
|
210
210
|
'shared.validation.required': '{{field}} is required',
|
|
211
211
|
'shared.verified': 'Verified',
|
|
212
|
+
'shared.unverified': 'Un-Verified',
|
|
212
213
|
'shared.view': 'View',
|
|
213
214
|
'shared.view.details': 'View Details',
|
|
214
215
|
'shared.yes': 'Yes',
|
|
@@ -3294,7 +3295,9 @@ class BaseUserSelectComponent {
|
|
|
3294
3295
|
destroyRef = inject(DestroyRef);
|
|
3295
3296
|
injector = inject(Injector);
|
|
3296
3297
|
userProvider = inject(USER_PROVIDER);
|
|
3297
|
-
translateAdapter = inject(TRANSLATE_ADAPTER, {
|
|
3298
|
+
translateAdapter = inject(TRANSLATE_ADAPTER, {
|
|
3299
|
+
optional: true,
|
|
3300
|
+
});
|
|
3298
3301
|
abortController = null;
|
|
3299
3302
|
// Inputs
|
|
3300
3303
|
loadUsers = input(...(ngDevMode ? [undefined, { debugName: "loadUsers" }] : []));
|
|
@@ -3309,7 +3312,10 @@ class BaseUserSelectComponent {
|
|
|
3309
3312
|
isLoading = signal(false, ...(ngDevMode ? [{ debugName: "isLoading" }] : []));
|
|
3310
3313
|
users = signal([], ...(ngDevMode ? [{ debugName: "users" }] : []));
|
|
3311
3314
|
total = signal(undefined, ...(ngDevMode ? [{ debugName: "total" }] : []));
|
|
3312
|
-
pagination = signal({
|
|
3315
|
+
pagination = signal({
|
|
3316
|
+
pageSize: DEFAULT_PAGE_SIZE,
|
|
3317
|
+
currentPage: 0,
|
|
3318
|
+
}, ...(ngDevMode ? [{ debugName: "pagination" }] : []));
|
|
3313
3319
|
searchTerm = signal('', ...(ngDevMode ? [{ debugName: "searchTerm" }] : []));
|
|
3314
3320
|
// Computed dropdown data
|
|
3315
3321
|
dropdownUsers = computed(() => this.users().map((user) => ({
|
|
@@ -3399,12 +3405,16 @@ class BaseUserSelectComponent {
|
|
|
3399
3405
|
}
|
|
3400
3406
|
/** Load users from USER_PROVIDER with active filter */
|
|
3401
3407
|
loadUsersFromProvider(filter) {
|
|
3408
|
+
const extraFilters = {
|
|
3409
|
+
isActive: this.filterActive() ? true : undefined,
|
|
3410
|
+
...this.additionalFilters(),
|
|
3411
|
+
};
|
|
3402
3412
|
return this.userProvider
|
|
3403
3413
|
.getUsers({
|
|
3404
3414
|
page: filter.page,
|
|
3405
3415
|
pageSize: filter.pageSize,
|
|
3406
3416
|
search: filter.search,
|
|
3407
|
-
|
|
3417
|
+
...extraFilters,
|
|
3408
3418
|
})
|
|
3409
3419
|
.pipe(map$1((res) => ({
|
|
3410
3420
|
...res,
|