@masterteam/components 0.0.180 → 0.0.181

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 (32) hide show
  1. package/fesm2022/masterteam-components-drawer.mjs +2 -2
  2. package/fesm2022/masterteam-components-drawer.mjs.map +1 -1
  3. package/fesm2022/masterteam-components-dynamic-drawer.mjs.map +1 -1
  4. package/fesm2022/masterteam-components-entities.mjs +16 -16
  5. package/fesm2022/masterteam-components-entities.mjs.map +1 -1
  6. package/fesm2022/masterteam-components-field-validation.mjs +24 -4
  7. package/fesm2022/masterteam-components-field-validation.mjs.map +1 -1
  8. package/fesm2022/masterteam-components-location-field.mjs +4 -4
  9. package/fesm2022/masterteam-components-location-field.mjs.map +1 -1
  10. package/fesm2022/masterteam-components-number-field.mjs +2 -2
  11. package/fesm2022/masterteam-components-number-field.mjs.map +1 -1
  12. package/fesm2022/masterteam-components-radio-cards-field.mjs +2 -2
  13. package/fesm2022/masterteam-components-radio-cards-field.mjs.map +1 -1
  14. package/fesm2022/masterteam-components-runtime-action.mjs.map +1 -1
  15. package/fesm2022/masterteam-components-select-field.mjs +2 -2
  16. package/fesm2022/masterteam-components-select-field.mjs.map +1 -1
  17. package/fesm2022/masterteam-components-table.mjs +25 -11
  18. package/fesm2022/masterteam-components-table.mjs.map +1 -1
  19. package/fesm2022/masterteam-components-text-field.mjs +2 -2
  20. package/fesm2022/masterteam-components-text-field.mjs.map +1 -1
  21. package/fesm2022/masterteam-components-textarea-field.mjs +2 -2
  22. package/fesm2022/masterteam-components-textarea-field.mjs.map +1 -1
  23. package/fesm2022/masterteam-components-toggle-field.mjs +2 -2
  24. package/fesm2022/masterteam-components-toggle-field.mjs.map +1 -1
  25. package/fesm2022/masterteam-components-user-search-field.mjs +34 -4
  26. package/fesm2022/masterteam-components-user-search-field.mjs.map +1 -1
  27. package/fesm2022/masterteam-components.mjs +3 -3
  28. package/fesm2022/masterteam-components.mjs.map +1 -1
  29. package/package.json +16 -16
  30. package/types/masterteam-components-field-validation.d.ts +8 -0
  31. package/types/masterteam-components-table.d.ts +2 -0
  32. package/types/masterteam-components-user-search-field.d.ts +2 -0
package/package.json CHANGED
@@ -1,27 +1,27 @@
1
1
  {
2
2
  "name": "@masterteam/components",
3
- "version": "0.0.180",
3
+ "version": "0.0.181",
4
4
  "publishConfig": {
5
5
  "directory": "../../../dist/masterteam/components",
6
6
  "linkDirectory": true,
7
7
  "access": "public"
8
8
  },
9
9
  "peerDependencies": {
10
- "@angular/cdk": "^21.2.6",
11
- "@angular/common": "^21.2.8",
12
- "@angular/core": "^21.2.8",
13
- "@angular/forms": "^21.2.8",
14
- "@jsverse/transloco": "^8.3.0",
15
- "@primeuix/themes": "^2.0.3",
16
- "@tailwindcss/postcss": "^4.2.2",
10
+ "@angular/cdk": "catalog:angular21",
11
+ "@angular/common": "catalog:angular21",
12
+ "@angular/core": "catalog:angular21",
13
+ "@angular/forms": "catalog:angular21",
14
+ "@jsverse/transloco": "catalog:i18n",
15
+ "@masterteam/icons": "workspace:^",
16
+ "@primeuix/themes": "catalog:",
17
+ "@tailwindcss/postcss": "catalog:",
17
18
  "monaco-editor": "^0.52.0",
18
- "ngx-quill": "^30.0.1",
19
- "postcss": "^8.5.9",
20
- "primeng": "21.1.5",
21
- "quill": "^2.0.3",
22
- "tailwindcss": "^4.2.2",
23
- "tailwindcss-primeui": "^0.6.1",
24
- "@masterteam/icons": "^0.0.15"
19
+ "ngx-quill": "catalog:",
20
+ "postcss": "catalog:",
21
+ "primeng": "catalog:",
22
+ "quill": "catalog:",
23
+ "tailwindcss": "catalog:",
24
+ "tailwindcss-primeui": "catalog:"
25
25
  },
26
26
  "repository": {
27
27
  "type": "git",
@@ -262,7 +262,7 @@
262
262
  },
263
263
  "dependencies": {
264
264
  "xlsx": "^0.18.5",
265
- "tslib": "^2.8.1"
265
+ "tslib": "catalog:angular21"
266
266
  },
267
267
  "module": "fesm2022/masterteam-components.mjs",
268
268
  "typings": "types/masterteam-components.d.ts",
@@ -6,6 +6,14 @@ declare class FieldValidation {
6
6
  readonly control: _angular_core.InputSignal<AbstractControl<any, any, any> | null>;
7
7
  readonly touched: _angular_core.InputSignalWithTransform<boolean, unknown>;
8
8
  isInvalid: typeof isInvalid;
9
+ /**
10
+ * Reserve the error-message line whenever the control can surface an error —
11
+ * i.e. it has sync/async validators, or is already showing one. This keeps the
12
+ * field's height constant so showing the error never pushes sibling fields or
13
+ * the content below the row. Re-evaluated each change-detection cycle, so it
14
+ * picks up validators that fields add asynchronously after init.
15
+ */
16
+ shouldReserveSpace(): boolean;
9
17
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<FieldValidation, never>;
10
18
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<FieldValidation, "mt-field-validation", never, { "control": { "alias": "control"; "required": false; "isSignal": true; }; "touched": { "alias": "touched"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
11
19
  }
@@ -304,6 +304,8 @@ declare class Table {
304
304
  onRowClick(event: MouseEvent, row: any): void;
305
305
  protected updatePagingFromEvent(event: any): void;
306
306
  protected emitLazyLoad(event: any): void;
307
+ private lazyLoadFilters;
308
+ private withoutGeneralSearch;
307
309
  exportExcel(): void;
308
310
  printPdf(): void;
309
311
  onCellFilterClick(event: Event, row: any, column: ColumnDef): void;
@@ -45,6 +45,7 @@ declare class UserSearchField implements ControlValueAccessor, OnInit {
45
45
  query: string;
46
46
  }): void;
47
47
  onFocus(): void;
48
+ onBlur(): void;
48
49
  onSelect(event: {
49
50
  originalEvent: Event;
50
51
  value: User;
@@ -59,6 +60,7 @@ declare class UserSearchField implements ControlValueAccessor, OnInit {
59
60
  registerOnTouched(fn: any): void;
60
61
  setDisabledState(disabled: boolean): void;
61
62
  getUsers(): void;
63
+ private getInputElement;
62
64
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<UserSearchField, never>;
63
65
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<UserSearchField, "mt-user-search-field", never, { "hint": { "alias": "hint"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "class": { "alias": "class"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "isMultiple": { "alias": "isMultiple"; "required": false; "isSignal": true; }; "apiUrl": { "alias": "apiUrl"; "required": true; "isSignal": true; }; "dataKey": { "alias": "dataKey"; "required": false; "isSignal": true; }; "paramName": { "alias": "paramName"; "required": false; "isSignal": true; }; "context": { "alias": "context"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
64
66
  }