@wawjs/ngx-bos 22.0.3 → 22.0.5

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 (29) hide show
  1. package/AGENTS.md +4 -0
  2. package/README.md +10 -3
  3. package/RELEASES.md +46 -19
  4. package/ai/decisions/2026-06-02-version-start.md +1 -1
  5. package/fesm2022/wawjs-ngx-bos-ngx-bos.config-B6tWU_X3.mjs +29 -0
  6. package/fesm2022/wawjs-ngx-bos-ngx-bos.config-B6tWU_X3.mjs.map +1 -0
  7. package/fesm2022/wawjs-ngx-bos-user.service-BL0vq7J4.mjs +181 -0
  8. package/fesm2022/wawjs-ngx-bos-user.service-BL0vq7J4.mjs.map +1 -0
  9. package/fesm2022/wawjs-ngx-bos.mjs +3063 -2293
  10. package/fesm2022/wawjs-ngx-bos.mjs.map +1 -1
  11. package/package.json +10 -10
  12. package/src/feature/file/file.component.ts +239 -236
  13. package/src/feature/file/file.service.ts +36 -35
  14. package/src/feature/file/pages/files/files.component.html +12 -12
  15. package/src/feature/file/pages/files/files.component.ts +116 -117
  16. package/src/feature/user/guards/admins.guard.ts +21 -28
  17. package/src/feature/user/guards/authenticated.guard.ts +15 -22
  18. package/src/feature/user/guards/guest.guard.ts +15 -15
  19. package/src/feature/user/pages/users/users.component.html +3 -3
  20. package/src/feature/user/pages/users/users.component.scss +12 -12
  21. package/src/feature/user/pages/users/users.component.ts +43 -47
  22. package/src/feature/user/user.service.ts +7 -22
  23. package/src/feature/user/user.storage.ts +31 -0
  24. package/src/icons/spider/spider.component.ts +4 -4
  25. package/src/ngx-bos.config.ts +1 -1
  26. package/src/pages/form/form.component.ts +100 -86
  27. package/src/pages/forms/forms.component.ts +9 -22
  28. package/src/public-api.ts +1 -1
  29. package/types/wawjs-ngx-bos.d.ts +402 -305
@@ -1,338 +1,435 @@
1
- import * as _wawjs_ngx_crud from '@wawjs/ngx-crud';
2
- import { CrudDocument, CrudService, CrudComponent } from '@wawjs/ngx-crud';
3
- import { FormComponentInterface, FormInterface, FormcomponentService, Formcomponent, Form } from '@wawjs/ngx-form';
4
- import * as rxjs from 'rxjs';
5
- import * as _angular_core from '@angular/core';
6
- import { InjectionToken, EnvironmentProviders, TemplateRef, Type, Provider, PipeTransform } from '@angular/core';
7
- import * as _wawjs_ngx_bos from '@wawjs/ngx-bos';
8
- import { SelectValue } from '@wawjs/ngx-ui';
9
- import { CountryCode } from 'libphonenumber-js';
10
- import { Routes, CanActivateFn } from '@angular/router';
11
-
12
- interface NgxBosConfig {
13
- appId?: string;
14
- url?: string;
15
- cdnUrl?: string;
16
- roles?: string[];
17
- userFields?: string[];
18
- userForm?: FormComponentInterface[];
19
- signPath?: string;
20
- profilePath?: string;
21
- defaultUserThumb?: string;
1
+ import * as i0 from "@angular/core";
2
+ import { EnvironmentProviders, InjectionToken, PipeTransform, Provider, TemplateRef, Type } from "@angular/core";
3
+ import { Form, FormComponentInterface, FormInterface, Formcomponent, FormcomponentService } from "@wawjs/ngx-form";
4
+ import { CrudComponent, CrudDocument, CrudService } from "@wawjs/ngx-crud";
5
+ import { SelectValue } from "@wawjs/ngx-ui";
6
+ import { CanActivateFn, Routes } from "@angular/router";
7
+ import { CountryCode } from "libphonenumber-js";
8
+ export interface NgxBosConfig {
9
+ appId?: string;
10
+ url?: string;
11
+ cdnUrl?: string;
12
+ roles?: string[];
13
+ userFields?: string[];
14
+ userForm?: FormComponentInterface[];
15
+ signPath?: string;
16
+ profilePath?: string;
17
+ defaultUserThumb?: string;
22
18
  }
23
- declare const DEFAULT_NGX_BOS_CONFIG: Required<NgxBosConfig>;
24
- declare const NGX_BOS_CONFIG: InjectionToken<Required<NgxBosConfig>>;
25
- declare function ngxBosProvide(config?: NgxBosConfig): EnvironmentProviders;
26
- declare const provideNgxBos: typeof ngxBosProvide;
27
-
28
- type FileMode = 'single-image' | 'single-file' | 'multi-image' | 'multi-file';
29
- type FileView = 'dropzone' | 'list' | 'thumb-only';
30
- declare class FileComponent {
31
- /** UI props */
32
- readonly label: _angular_core.InputSignal<string>;
33
- readonly placeholder: _angular_core.InputSignal<string>;
34
- readonly disabled: _angular_core.InputSignal<boolean>;
35
- readonly clearable: _angular_core.InputSignal<boolean>;
36
- readonly accept: _angular_core.InputSignal<string>;
37
- readonly preview: _angular_core.InputSignal<boolean>;
38
- /** Behaviour */
39
- readonly mode: _angular_core.InputSignal<FileMode>;
40
- readonly view: _angular_core.InputSignal<FileView>;
41
- /** Optional crop box (for image modes) */
42
- readonly cropWidth: _angular_core.InputSignal<number | null>;
43
- readonly cropHeight: _angular_core.InputSignal<number | null>;
44
- /** Custom templates */
45
- readonly t_item: _angular_core.InputSignal<TemplateRef<unknown> | undefined>;
46
- readonly t_empty: _angular_core.InputSignal<TemplateRef<unknown> | undefined>;
47
- /** Back-end routing */
48
- readonly container: _angular_core.InputSignal<string>;
49
- readonly name: _angular_core.InputSignal<string>;
50
- /** Separate models for each mode */
51
- readonly wImage: _angular_core.ModelSignal<string | null>;
52
- readonly wFile: _angular_core.ModelSignal<string | null>;
53
- readonly wImages: _angular_core.ModelSignal<string[]>;
54
- readonly wFiles: _angular_core.ModelSignal<string[]>;
55
- private readonly _modal;
56
- private readonly _fs;
57
- readonly isMultiple: _angular_core.Signal<boolean>;
58
- readonly isImageMode: _angular_core.Signal<boolean>;
59
- /** Normalized list of URLs for rendering */
60
- readonly files: _angular_core.Signal<string[]>;
61
- triggerPick(input: HTMLInputElement): void;
62
- isImage(src: string): boolean;
63
- onPicked(input: HTMLInputElement): Promise<void>;
64
- removeAt(index: number): void;
65
- clear(): void;
66
- private _cropStageWidth;
67
- private _cropStageHeight;
68
- private _applyNewUrls;
69
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<FileComponent, never>;
70
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<FileComponent, "ngx-file", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "clearable": { "alias": "clearable"; "required": false; "isSignal": true; }; "accept": { "alias": "accept"; "required": false; "isSignal": true; }; "preview": { "alias": "preview"; "required": false; "isSignal": true; }; "mode": { "alias": "mode"; "required": false; "isSignal": true; }; "view": { "alias": "view"; "required": false; "isSignal": true; }; "cropWidth": { "alias": "cropWidth"; "required": false; "isSignal": true; }; "cropHeight": { "alias": "cropHeight"; "required": false; "isSignal": true; }; "t_item": { "alias": "t_item"; "required": false; "isSignal": true; }; "t_empty": { "alias": "t_empty"; "required": false; "isSignal": true; }; "container": { "alias": "container"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "wImage": { "alias": "wImage"; "required": false; "isSignal": true; }; "wFile": { "alias": "wFile"; "required": false; "isSignal": true; }; "wImages": { "alias": "wImages"; "required": false; "isSignal": true; }; "wFiles": { "alias": "wFiles"; "required": false; "isSignal": true; }; }, { "wImage": "wImageChange"; "wFile": "wFileChange"; "wImages": "wImagesChange"; "wFiles": "wFilesChange"; }, never, never, true, never>;
19
+ export declare const DEFAULT_NGX_BOS_CONFIG: Required<NgxBosConfig>;
20
+ export declare const NGX_BOS_CONFIG: InjectionToken<Required<NgxBosConfig>>;
21
+ export declare function ngxBosProvide(config?: NgxBosConfig): EnvironmentProviders;
22
+ export declare const provideNgxBos: typeof ngxBosProvide;
23
+ export type FileMode = 'single-image' | 'single-file' | 'multi-image' | 'multi-file';
24
+ export type FileView = 'dropzone' | 'list' | 'thumb-only';
25
+ export declare class FileComponent {
26
+ /** UI props */
27
+ readonly label: import("@angular/core").InputSignal<string>;
28
+ readonly placeholder: import("@angular/core").InputSignal<string>;
29
+ readonly disabled: import("@angular/core").InputSignal<boolean>;
30
+ readonly clearable: import("@angular/core").InputSignal<boolean>;
31
+ readonly accept: import("@angular/core").InputSignal<string>;
32
+ readonly preview: import("@angular/core").InputSignal<boolean>;
33
+ /** Behaviour */
34
+ readonly mode: import("@angular/core").InputSignal<FileMode>;
35
+ readonly view: import("@angular/core").InputSignal<FileView>;
36
+ /** Optional crop box (for image modes) */
37
+ readonly cropWidth: import("@angular/core").InputSignal<number | null>;
38
+ readonly cropHeight: import("@angular/core").InputSignal<number | null>;
39
+ /** Custom templates */
40
+ readonly t_item: import("@angular/core").InputSignal<TemplateRef<unknown> | undefined>;
41
+ readonly t_empty: import("@angular/core").InputSignal<TemplateRef<unknown> | undefined>;
42
+ /** Back-end routing */
43
+ readonly container: import("@angular/core").InputSignal<string>;
44
+ readonly name: import("@angular/core").InputSignal<string>;
45
+ /** Separate models for each mode */
46
+ readonly wImage: import("@angular/core").ModelSignal<string | null>;
47
+ readonly wFile: import("@angular/core").ModelSignal<string | null>;
48
+ readonly wImages: import("@angular/core").ModelSignal<string[]>;
49
+ readonly wFiles: import("@angular/core").ModelSignal<string[]>;
50
+ private readonly _modal;
51
+ private readonly _fs;
52
+ readonly isMultiple: import("@angular/core").Signal<boolean>;
53
+ readonly isImageMode: import("@angular/core").Signal<boolean>;
54
+ /** Normalized list of URLs for rendering */
55
+ readonly files: import("@angular/core").Signal<string[]>;
56
+ triggerPick(input: HTMLInputElement): void;
57
+ isImage(src: string): boolean;
58
+ onPicked(input: HTMLInputElement): Promise<void>;
59
+ removeAt(index: number): void;
60
+ clear(): void;
61
+ private _cropStageWidth;
62
+ private _cropStageHeight;
63
+ private _applyNewUrls;
64
+ static ɵfac: i0.ɵɵFactoryDeclaration<FileComponent, never>;
65
+ static ɵcmp: i0.ɵɵComponentDeclaration<FileComponent, "ngx-file", never, {
66
+ "label": {
67
+ "alias": "label";
68
+ "required": false;
69
+ "isSignal": true;
70
+ };
71
+ "placeholder": {
72
+ "alias": "placeholder";
73
+ "required": false;
74
+ "isSignal": true;
75
+ };
76
+ "disabled": {
77
+ "alias": "disabled";
78
+ "required": false;
79
+ "isSignal": true;
80
+ };
81
+ "clearable": {
82
+ "alias": "clearable";
83
+ "required": false;
84
+ "isSignal": true;
85
+ };
86
+ "accept": {
87
+ "alias": "accept";
88
+ "required": false;
89
+ "isSignal": true;
90
+ };
91
+ "preview": {
92
+ "alias": "preview";
93
+ "required": false;
94
+ "isSignal": true;
95
+ };
96
+ "mode": {
97
+ "alias": "mode";
98
+ "required": false;
99
+ "isSignal": true;
100
+ };
101
+ "view": {
102
+ "alias": "view";
103
+ "required": false;
104
+ "isSignal": true;
105
+ };
106
+ "cropWidth": {
107
+ "alias": "cropWidth";
108
+ "required": false;
109
+ "isSignal": true;
110
+ };
111
+ "cropHeight": {
112
+ "alias": "cropHeight";
113
+ "required": false;
114
+ "isSignal": true;
115
+ };
116
+ "t_item": {
117
+ "alias": "t_item";
118
+ "required": false;
119
+ "isSignal": true;
120
+ };
121
+ "t_empty": {
122
+ "alias": "t_empty";
123
+ "required": false;
124
+ "isSignal": true;
125
+ };
126
+ "container": {
127
+ "alias": "container";
128
+ "required": false;
129
+ "isSignal": true;
130
+ };
131
+ "name": {
132
+ "alias": "name";
133
+ "required": false;
134
+ "isSignal": true;
135
+ };
136
+ "wImage": {
137
+ "alias": "wImage";
138
+ "required": false;
139
+ "isSignal": true;
140
+ };
141
+ "wFile": {
142
+ "alias": "wFile";
143
+ "required": false;
144
+ "isSignal": true;
145
+ };
146
+ "wImages": {
147
+ "alias": "wImages";
148
+ "required": false;
149
+ "isSignal": true;
150
+ };
151
+ "wFiles": {
152
+ "alias": "wFiles";
153
+ "required": false;
154
+ "isSignal": true;
155
+ };
156
+ }, {
157
+ "wImage": "wImageChange";
158
+ "wFile": "wFileChange";
159
+ "wImages": "wImagesChange";
160
+ "wFiles": "wFilesChange";
161
+ }, never, never, true, never>;
71
162
  }
72
-
73
163
  interface File$1 extends CrudDocument<File$1> {
74
- name: string;
75
- description: string;
76
- url?: string;
164
+ name: string;
165
+ description: string;
166
+ url?: string;
77
167
  }
78
- interface ImageResizeBounds {
79
- width: number;
80
- height: number;
168
+ export interface ImageResizeBounds {
169
+ width: number;
170
+ height: number;
81
171
  }
82
-
83
- declare class FileService extends CrudService<File$1> {
84
- private readonly _http;
85
- constructor();
86
- /**
87
- * Upload base64 (data URL) to backend with optional container/name.
88
- * Returns a URL string from the API.
89
- */
90
- uploadBase64(dataUrl: string, container?: string, name?: string): Promise<string>;
91
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<FileService, never>;
92
- static ɵprov: _angular_core.ɵɵInjectableDeclaration<FileService>;
172
+ export declare class FileService extends CrudService<File$1> {
173
+ private readonly _http;
174
+ constructor();
175
+ /**
176
+ * Upload base64 (data URL) to backend with optional container/name.
177
+ * Returns a URL string from the API; rejects when the request fails.
178
+ */
179
+ uploadBase64(dataUrl: string, container?: string, name?: string): Promise<string>;
180
+ static ɵfac: i0.ɵɵFactoryDeclaration<FileService, never>;
181
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
93
182
  }
94
-
95
183
  /**
96
184
  * Read a File as base64 data URL.
97
185
  */
98
- declare function fileToDataUrl(file: File): Promise<string>;
186
+ export declare function fileToDataUrl(file: File): Promise<string>;
99
187
  /**
100
188
  * Resize an image file so it fits within given bounds, preserving aspect ratio.
101
189
  * Returns a base64 data URL (or the original if no resize is needed / not image).
102
190
  */
103
- declare function resizeImageToBounds(file: File, bounds: ImageResizeBounds): Promise<string>;
104
-
105
- declare const fileDefaults: {
106
- label: string;
107
- placeholder: string;
108
- disabled: boolean;
109
- clearable: boolean;
110
- accept: string;
111
- preview: boolean;
112
- mode: string;
113
- view: string;
114
- cropWidth: number | null;
115
- cropHeight: number | null;
116
- container: string;
117
- name: string;
191
+ export declare function resizeImageToBounds(file: File, bounds: ImageResizeBounds): Promise<string>;
192
+ export declare const fileDefaults: {
193
+ label: string;
194
+ placeholder: string;
195
+ disabled: boolean;
196
+ clearable: boolean;
197
+ accept: string;
198
+ preview: boolean;
199
+ mode: string;
200
+ view: string;
201
+ cropWidth: number | null;
202
+ cropHeight: number | null;
203
+ container: string;
204
+ name: string;
118
205
  };
119
-
120
- declare class FileSelectorComponent {
121
- private _files;
122
- private _translate;
123
- readonly wModel: _angular_core.InputSignal<string | null>;
124
- readonly wChange: _angular_core.OutputEmitterRef<string | null>;
125
- readonly items: _angular_core.Signal<_wawjs_ngx_bos.File[]>;
126
- readonly placeholder: _angular_core.WritableSignal<string>;
127
- onSelect(value: SelectValue): void;
128
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<FileSelectorComponent, never>;
129
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<FileSelectorComponent, "file-selector", never, { "wModel": { "alias": "wModel"; "required": false; "isSignal": true; }; }, { "wChange": "wChange"; }, never, never, true, never>;
130
- }
131
-
132
- declare class FilesComponent {
133
- private _fileService;
134
- private _clipboard;
135
- private _alert;
136
- private _form;
137
- private _core;
138
- columns: string[];
139
- form: FormInterface;
140
- config: {
141
- paginate: (page?: number) => void;
142
- perPage: number;
143
- setPerPage: (perPage: number) => void;
144
- allDocs: boolean;
145
- create: () => void;
146
- delete: (doc: File$1) => void;
206
+ export declare class FileSelectorComponent {
207
+ private _files;
208
+ private _translate;
209
+ readonly wModel: import("@angular/core").InputSignal<string | null>;
210
+ readonly wChange: import("@angular/core").OutputEmitterRef<string | null>;
211
+ readonly items: import("@angular/core").Signal<import("@wawjs/ngx-bos").File[]>;
212
+ readonly placeholder: import("@angular/core").WritableSignal<string>;
213
+ onSelect(value: SelectValue): void;
214
+ static ɵfac: i0.ɵɵFactoryDeclaration<FileSelectorComponent, never>;
215
+ static ɵcmp: i0.ɵɵComponentDeclaration<FileSelectorComponent, "file-selector", never, {
216
+ "wModel": {
217
+ "alias": "wModel";
218
+ "required": false;
219
+ "isSignal": true;
147
220
  };
148
- rows: File$1[];
149
- constructor();
150
- copy(text: string): void;
151
- setRows(page?: number): void;
152
- private _page;
153
- private _preCreate;
154
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<FilesComponent, never>;
155
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<FilesComponent, "ng-component", never, {}, {}, never, never, true, never>;
221
+ }, {
222
+ "wChange": "wChange";
223
+ }, never, never, true, never>;
224
+ }
225
+ export declare class FilesComponent {
226
+ private _fileService;
227
+ private _clipboard;
228
+ private _alert;
229
+ private _form;
230
+ private _core;
231
+ columns: string[];
232
+ form: FormInterface;
233
+ config: {
234
+ paginate: (page?: number) => void;
235
+ perPage: number;
236
+ setPerPage: (perPage: number) => void;
237
+ allDocs: boolean;
238
+ create: () => void;
239
+ delete: (doc: File$1) => void;
240
+ };
241
+ readonly rows: import("@angular/core").WritableSignal<File$1[]>;
242
+ constructor();
243
+ copy(text: string): void;
244
+ setRows(page?: number): void;
245
+ private _page;
246
+ private _preCreate;
247
+ static ɵfac: i0.ɵɵFactoryDeclaration<FilesComponent, never>;
248
+ static ɵcmp: i0.ɵɵComponentDeclaration<FilesComponent, "ng-component", never, {}, {}, never, never, true, never>;
156
249
  }
157
-
158
- declare const filesRoutes: Routes;
159
-
160
- declare const FORM_COMPONENTS: string[];
161
- declare const FORM_COMPONENT_FORM: (key: string) => FormInterface;
250
+ export declare const filesRoutes: Routes;
251
+ export declare const FORM_COMPONENTS: string[];
252
+ export declare const FORM_COMPONENT_FORM: (key: string) => FormInterface;
162
253
  /**
163
254
  * Central registry: template name → component class.
164
255
  * Names must match `component.name` in form schema (e.g. `{ name: 'Input', ... }`)
165
256
  * and what the template component passes into FormService.addTemplateComponent().
166
257
  */
167
- declare const FORM_TEMPLATE_COMPONENTS: Record<string, Type<unknown>>;
168
- declare const provideFormComponents: () => Provider;
169
-
170
- interface User extends CrudDocument<User> {
171
- data: Record<string, unknown>;
172
- is: Record<string, boolean>;
173
- roles: string[];
174
- name: string;
175
- phone: string;
176
- bio: string;
177
- email: string;
178
- thumb: string;
258
+ export declare const FORM_TEMPLATE_COMPONENTS: Record<string, Type<unknown>>;
259
+ export declare const provideFormComponents: () => Provider;
260
+ export interface User extends CrudDocument<User> {
261
+ data: Record<string, unknown>;
262
+ is: Record<string, boolean>;
263
+ roles: string[];
264
+ name: string;
265
+ phone: string;
266
+ bio: string;
267
+ email: string;
268
+ thumb: string;
179
269
  }
180
-
181
- declare const NEW_USER: User;
182
-
183
- declare const createUserFormComponents: (userForm?: FormComponentInterface[]) => {
184
- formId: string;
185
- title: string;
186
- components: FormComponentInterface[];
270
+ export declare const NEW_USER: User;
271
+ export declare const createUserFormComponents: (userForm?: FormComponentInterface[]) => {
272
+ formId: string;
273
+ title: string;
274
+ components: FormComponentInterface[];
187
275
  };
188
- declare const userFormComponentsFactory: () => {
189
- formId: string;
190
- title: string;
191
- components: FormComponentInterface[];
276
+ export declare const userFormComponentsFactory: () => {
277
+ formId: string;
278
+ title: string;
279
+ components: FormComponentInterface[];
192
280
  };
193
-
194
- declare class UserService extends CrudService<User> {
195
- private readonly _userHttpService;
196
- private readonly _alertService;
197
- private readonly _router;
198
- private readonly _emitterService;
199
- private readonly _bosConfig;
200
- private readonly _isBrowserPlatform;
201
- readonly url: string;
202
- roles: string[];
203
- employees: string[];
204
- readonly users: _angular_core.Signal<User[]>;
205
- private readonly _storedUser;
206
- user: _angular_core.WritableSignal<User>;
207
- thumb: _angular_core.Signal<string>;
208
- role(role: string): boolean;
209
- readonly usersByRole: _angular_core.Signal<Record<string, User[]>>;
210
- constructor();
211
- setUser(user: User): void;
212
- updateMe(): rxjs.Subscription;
213
- updateMeAfterWhile(): void;
214
- changePassword(oldPass: string, newPass: string): rxjs.Observable<any>;
215
- logout(): void;
216
- updateAdmin(user: User): rxjs.Observable<User>;
217
- deleteAdmin(user: User): rxjs.Observable<User>;
218
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<UserService, never>;
219
- static ɵprov: _angular_core.ɵɵInjectableDeclaration<UserService>;
281
+ export declare class UserService extends CrudService<User> {
282
+ private readonly _userHttpService;
283
+ private readonly _alertService;
284
+ private readonly _router;
285
+ private readonly _emitterService;
286
+ private readonly _bosConfig;
287
+ readonly url: string;
288
+ roles: string[];
289
+ employees: string[];
290
+ readonly users: import("@angular/core").Signal<User[]>;
291
+ user: import("@angular/core").WritableSignal<User>;
292
+ thumb: import("@angular/core").Signal<string>;
293
+ role(role: string): boolean;
294
+ readonly usersByRole: import("@angular/core").Signal<Record<string, User[]>>;
295
+ constructor();
296
+ setUser(user: User): void;
297
+ updateMe(): import("rxjs").Subscription;
298
+ updateMeAfterWhile(): void;
299
+ changePassword(oldPass: string, newPass: string): import("rxjs").Observable<any>;
300
+ logout(): void;
301
+ updateAdmin(user: User): import("rxjs").Observable<User>;
302
+ deleteAdmin(user: User): import("rxjs").Observable<User>;
303
+ static ɵfac: i0.ɵɵFactoryDeclaration<UserService, never>;
304
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
220
305
  }
221
-
222
- declare const adminsGuard: CanActivateFn;
223
-
224
- declare const authenticatedGuard: CanActivateFn;
225
-
226
- declare const guestGuard: CanActivateFn;
227
-
228
- declare class UserSelectorComponent {
229
- userService: UserService;
230
- value: _angular_core.InputSignal<string>;
231
- onChange: _angular_core.OutputEmitterRef<SelectValue>;
232
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<UserSelectorComponent, never>;
233
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<UserSelectorComponent, "user-selector", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; }, { "onChange": "onChange"; }, never, never, true, never>;
306
+ export declare const adminsGuard: CanActivateFn;
307
+ export declare const authenticatedGuard: CanActivateFn;
308
+ export declare const guestGuard: CanActivateFn;
309
+ export declare class UserSelectorComponent {
310
+ userService: UserService;
311
+ value: import("@angular/core").InputSignal<string>;
312
+ onChange: import("@angular/core").OutputEmitterRef<SelectValue>;
313
+ static ɵfac: i0.ɵɵFactoryDeclaration<UserSelectorComponent, never>;
314
+ static ɵcmp: i0.ɵɵComponentDeclaration<UserSelectorComponent, "user-selector", never, {
315
+ "value": {
316
+ "alias": "value";
317
+ "required": false;
318
+ "isSignal": true;
319
+ };
320
+ }, {
321
+ "onChange": "onChange";
322
+ }, never, never, true, never>;
234
323
  }
235
-
236
- declare class UserPreviewComponent {
237
- userService: UserService;
238
- protected readonly bosConfig: Required<_wawjs_ngx_bos.NgxBosConfig>;
239
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<UserPreviewComponent, never>;
240
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<UserPreviewComponent, "user-preview", never, {}, {}, never, never, true, never>;
324
+ export declare class UserPreviewComponent {
325
+ userService: UserService;
326
+ protected readonly bosConfig: Required<import("@wawjs/ngx-bos").NgxBosConfig>;
327
+ static ɵfac: i0.ɵɵFactoryDeclaration<UserPreviewComponent, never>;
328
+ static ɵcmp: i0.ɵɵComponentDeclaration<UserPreviewComponent, "user-preview", never, {}, {}, never, never, true, never>;
241
329
  }
242
-
243
- declare class UsersComponent extends CrudComponent<UserService, User, FormInterface> {
244
- protected configType: 'server' | 'local';
245
- private readonly _formService;
246
- protected allowUrl(): boolean;
247
- protected delete(doc: User): Promise<void>;
248
- protected update(doc: User): void;
249
- private _router;
250
- userService: UserService;
251
- readonly roles: string[];
252
- columns: string[];
253
- config: _wawjs_ngx_crud.TableConfig<User>;
254
- constructor();
255
- updateRole(user: User, role: string, value: boolean): void;
256
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<UsersComponent, never>;
257
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<UsersComponent, "ng-component", never, {}, {}, never, never, true, never>;
330
+ export declare class UsersComponent extends CrudComponent<UserService, User, FormInterface> {
331
+ protected configType: 'server' | 'local';
332
+ private readonly _formService;
333
+ protected allowUrl(): boolean;
334
+ protected delete(doc: User): Promise<void>;
335
+ protected update(doc: User): void;
336
+ userService: UserService;
337
+ /** Every role gets a checkbox column; matches the columns added in the constructor. */
338
+ readonly roles: string[];
339
+ columns: string[];
340
+ config: import("@wawjs/ngx-crud").TableConfig<User>;
341
+ constructor();
342
+ updateRole(user: User, role: string, value: boolean): void;
343
+ static ɵfac: i0.ɵɵFactoryDeclaration<UsersComponent, never>;
344
+ static ɵcmp: i0.ɵɵComponentDeclaration<UsersComponent, "ng-component", never, {}, {}, never, never, true, never>;
258
345
  }
259
-
260
- declare const usersRoutes: Routes;
261
-
262
- declare class ClientsComponent extends CrudComponent<UserService, User, FormInterface> {
263
- /** Use server-side pagination for clients */
264
- protected configType: 'server' | 'local';
265
- /** Basic columns for clients table */
266
- columns: string[];
267
- /** wtable config built by CrudComponent, aware of server mode */
268
- config: _wawjs_ngx_crud.TableConfig<User>;
269
- protected allowUrl(): boolean;
270
- constructor();
271
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<ClientsComponent, never>;
272
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<ClientsComponent, "ng-component", never, {}, {}, never, never, true, never>;
346
+ export declare const usersRoutes: Routes;
347
+ export declare class ClientsComponent extends CrudComponent<UserService, User, FormInterface> {
348
+ /** Use server-side pagination for clients */
349
+ protected configType: 'server' | 'local';
350
+ /** Basic columns for clients table */
351
+ columns: string[];
352
+ /** wtable config built by CrudComponent, aware of server mode */
353
+ config: import("@wawjs/ngx-crud").TableConfig<User>;
354
+ protected allowUrl(): boolean;
355
+ constructor();
356
+ static ɵfac: i0.ɵɵFactoryDeclaration<ClientsComponent, never>;
357
+ static ɵcmp: i0.ɵɵComponentDeclaration<ClientsComponent, "ng-component", never, {}, {}, never, never, true, never>;
273
358
  }
274
-
275
- declare const clientsRoutes: Routes;
276
-
277
- declare class FormComponent extends CrudComponent<FormcomponentService, Formcomponent, FormInterface> {
278
- private _router;
279
- private _bosConfig;
280
- readonly formId: string;
281
- protected configType: 'server' | 'local';
282
- protected preCreate(doc: Formcomponent): void;
283
- protected localDocumentsFilter: (doc: Formcomponent) => boolean;
284
- protected allowUrl(): boolean;
285
- /** Basic columns for clients table */
286
- columns: string[];
287
- /** wtable config built by CrudComponent, aware of server mode */
288
- config: _wawjs_ngx_crud.TableConfig<Formcomponent>;
289
- constructor();
290
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<FormComponent, never>;
291
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<FormComponent, "ng-component", never, {}, {}, never, never, true, never>;
359
+ export declare const clientsRoutes: Routes;
360
+ export declare class FormComponent extends CrudComponent<FormcomponentService, Formcomponent, FormInterface> {
361
+ private _route;
362
+ private _bosConfig;
363
+ private readonly _params;
364
+ /** Current `:formId` route param; updates when navigating between forms. */
365
+ readonly formId: import("@angular/core").Signal<string>;
366
+ protected configType: 'server' | 'local';
367
+ protected preCreate(doc: Formcomponent): void;
368
+ protected localDocumentsFilter: (doc: Formcomponent) => boolean;
369
+ protected allowUrl(): boolean;
370
+ /** Basic columns for clients table */
371
+ columns: string[];
372
+ /** wtable config built by CrudComponent, aware of server mode */
373
+ config: import("@wawjs/ngx-crud").TableConfig<Formcomponent>;
374
+ constructor();
375
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormComponent, never>;
376
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormComponent, "ng-component", never, {}, {}, never, never, true, never>;
292
377
  }
293
-
294
- declare const formRoutes: Routes;
295
-
296
- declare class FormsComponent {
297
- private _formService;
298
- private _bosConfig;
299
- columns: string[];
300
- config: {
301
- buttons: ({
302
- icon: string;
303
- click: (form: Form) => void;
304
- hrefFunc?: undefined;
305
- } | {
306
- icon: string;
307
- hrefFunc: (form: Form) => string;
308
- click?: undefined;
309
- })[];
310
- };
311
- documents: _angular_core.WritableSignal<Form[]>;
312
- constructor();
313
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<FormsComponent, never>;
314
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<FormsComponent, "ng-component", never, {}, {}, never, never, true, never>;
378
+ export declare const formRoutes: Routes;
379
+ export declare class FormsComponent {
380
+ private _formService;
381
+ private _bosConfig;
382
+ columns: string[];
383
+ config: {
384
+ buttons: ({
385
+ icon: string;
386
+ click: (form: Form) => void;
387
+ hrefFunc?: undefined;
388
+ } | {
389
+ icon: string;
390
+ hrefFunc: (form: Form) => string;
391
+ click?: undefined;
392
+ })[];
393
+ };
394
+ readonly documents: import("@angular/core").Signal<Form[]>;
395
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormsComponent, never>;
396
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormsComponent, "ng-component", never, {}, {}, never, never, true, never>;
315
397
  }
316
-
317
- declare const formsRoutes: Routes;
318
-
319
- declare class SpiderComponent {
320
- width: _angular_core.InputSignal<string>;
321
- height: _angular_core.InputSignal<string>;
322
- start: _angular_core.InputSignal<string>;
323
- end: _angular_core.InputSignal<string>;
324
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<SpiderComponent, never>;
325
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<SpiderComponent, "icon-spider", never, { "width": { "alias": "width"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; "start": { "alias": "start"; "required": false; "isSignal": true; }; "end": { "alias": "end"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
398
+ export declare const formsRoutes: Routes;
399
+ export declare class SpiderComponent {
400
+ width: import("@angular/core").InputSignal<string>;
401
+ height: import("@angular/core").InputSignal<string>;
402
+ start: import("@angular/core").InputSignal<string>;
403
+ end: import("@angular/core").InputSignal<string>;
404
+ static ɵfac: i0.ɵɵFactoryDeclaration<SpiderComponent, never>;
405
+ static ɵcmp: i0.ɵɵComponentDeclaration<SpiderComponent, "icon-spider", never, {
406
+ "width": {
407
+ "alias": "width";
408
+ "required": false;
409
+ "isSignal": true;
410
+ };
411
+ "height": {
412
+ "alias": "height";
413
+ "required": false;
414
+ "isSignal": true;
415
+ };
416
+ "start": {
417
+ "alias": "start";
418
+ "required": false;
419
+ "isSignal": true;
420
+ };
421
+ "end": {
422
+ "alias": "end";
423
+ "required": false;
424
+ "isSignal": true;
425
+ };
426
+ }, {}, never, never, true, never>;
326
427
  }
327
-
328
- declare class PhonePipe implements PipeTransform {
329
- transform(value: string | null | undefined, country?: CountryCode): string;
330
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<PhonePipe, never>;
331
- static ɵpipe: _angular_core.ɵɵPipeDeclaration<PhonePipe, "phone", true>;
428
+ export declare class PhonePipe implements PipeTransform {
429
+ transform(value: string | null | undefined, country?: CountryCode): string;
430
+ static ɵfac: i0.ɵɵFactoryDeclaration<PhonePipe, never>;
431
+ static ɵpipe: i0.ɵɵPipeDeclaration<PhonePipe, "phone", true>;
332
432
  }
333
-
334
- declare const NGX_BOS_VERSION: "22.0.2";
335
- type NgxBosVersion = typeof NGX_BOS_VERSION;
336
-
337
- export { ClientsComponent, DEFAULT_NGX_BOS_CONFIG, FORM_COMPONENTS, FORM_COMPONENT_FORM, FORM_TEMPLATE_COMPONENTS, FileComponent, FileSelectorComponent, FileService, FilesComponent, FormComponent, FormsComponent, NEW_USER, NGX_BOS_CONFIG, NGX_BOS_VERSION, PhonePipe, SpiderComponent, UserPreviewComponent, UserSelectorComponent, UserService, UsersComponent, adminsGuard, authenticatedGuard, clientsRoutes, createUserFormComponents, fileDefaults, fileToDataUrl, filesRoutes, formRoutes, formsRoutes, guestGuard, ngxBosProvide, provideFormComponents, provideNgxBos, resizeImageToBounds, userFormComponentsFactory, usersRoutes };
338
- export type { File$1 as File, FileMode, FileView, ImageResizeBounds, NgxBosConfig, NgxBosVersion, User };
433
+ export declare const NGX_BOS_VERSION: "22.0.4";
434
+ export type NgxBosVersion = typeof NGX_BOS_VERSION;
435
+ export { File$1 as File };