@vality/matez 22.0.1-c4eda29.0 → 22.0.1-e480856.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vality/matez",
3
- "version": "22.0.1-c4eda29.0",
3
+ "version": "22.0.1-e480856.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/valitydev/control-center.git"
@@ -20,24 +20,24 @@
20
20
  "access": "public"
21
21
  },
22
22
  "peerDependencies": {
23
- "@angular/cdk": "^22.0.1",
24
- "@angular/common": "^22.0.1",
25
- "@angular/core": "^22.0.1",
26
- "@angular/forms": "^22.0.1",
27
- "@angular/material": "^22.0.1",
28
- "@angular/material-date-fns-adapter": "^22.0.1",
29
- "@angular/router": "^22.0.1",
23
+ "@angular/cdk": "^22.0.5",
24
+ "@angular/common": "^22.0.7",
25
+ "@angular/core": "^22.0.7",
26
+ "@angular/forms": "^22.0.7",
27
+ "@angular/material": "^22.0.5",
28
+ "@angular/material-date-fns-adapter": "^22.0.5",
29
+ "@angular/router": "^22.0.7",
30
30
  "date-fns": "^4.4.0",
31
31
  "lodash-es": "^4.18.1",
32
32
  "rxjs": "^7.8.2",
33
33
  "utility-types": "^3.11.0"
34
34
  },
35
35
  "dependencies": {
36
- "@ng-matero/extensions": "^21.3.1",
37
- "@s-libs/js-core": "^21.0.0",
38
- "@s-libs/micro-dash": "^21.0.0",
39
- "@s-libs/ng-core": "^21.0.0",
40
- "@s-libs/rxjs-core": "^21.0.0",
36
+ "@ng-matero/extensions": "^22.0.0",
37
+ "@s-libs/js-core": "^22.0.0-next.2",
38
+ "@s-libs/micro-dash": "^22.0.0-next.2",
39
+ "@s-libs/ng-core": "^22.0.0-next.2",
40
+ "@s-libs/rxjs-core": "^22.0.0-next.2",
41
41
  "auto-bind": "^5.0.1",
42
42
  "dinero.js": "^2.0.2",
43
43
  "papaparse": "^5.5.3",
@@ -39,6 +39,7 @@ import * as i10 from '@angular/cdk/layout';
39
39
  import * as i3$3 from '@angular/material/datepicker';
40
40
  import { MatDatepickerInputEvent } from '@angular/material/datepicker';
41
41
  import * as i4$1 from '@ng-matero/extensions/select';
42
+ import { MtxSelect } from '@ng-matero/extensions/select';
42
43
  import * as i6 from '@angular/material/checkbox';
43
44
  import * as i5$1 from '@angular/material/autocomplete';
44
45
  export { MtxTooltip as Tooltip } from '@ng-matero/extensions/tooltip';
@@ -228,7 +229,7 @@ declare function handleError<T>(handler: (err: unknown) => void, result?: Possib
228
229
 
229
230
  declare function asyncStartWith<V = never>(value?: V, timerMs?: number): <T>(src$: Observable<T>) => Observable<T | V>;
230
231
 
231
- declare function tapLog<T>(message?: string): MonoTypeOperatorFunction<T>;
232
+ declare function tapLog<T>(message?: string | number): MonoTypeOperatorFunction<T>;
232
233
 
233
234
  declare function filterOperator<T>(...operators: [T | undefined]): [T];
234
235
 
@@ -242,6 +243,9 @@ type ComponentChanges<T> = {
242
243
 
243
244
  declare function getValueChanges<T>(form: AbstractControl<FormControlState<T> | T>): Observable<T>;
244
245
 
246
+ /**
247
+ * @deprecated Use FormControlValue
248
+ */
245
249
  declare abstract class AbstractControlSuperclass<OuterType, InnerType = OuterType> extends WrappedControlSuperclass<OuterType, InnerType> implements Validator, OnInit {
246
250
  private _cdr;
247
251
  private _destroyRef;
@@ -255,6 +259,9 @@ declare abstract class AbstractControlSuperclass<OuterType, InnerType = OuterTyp
255
259
  static ɵdir: i0.ɵɵDirectiveDeclaration<AbstractControlSuperclass<any, any>, never, never, {}, {}, never, never, true, never>;
256
260
  }
257
261
 
262
+ /**
263
+ * @deprecated Use FormControlValue
264
+ */
258
265
  declare abstract class FormGroupSuperclass<OuterType, InnerType = OuterType> extends AbstractControlSuperclass<OuterType, InnerType> implements OnInit {
259
266
  protected emptyValue: InnerType;
260
267
  setDisabledState(_isDisabled: boolean): void;
@@ -272,12 +279,18 @@ declare const createControlProviders: (component: () => Type<unknown>) => Provid
272
279
  */
273
280
  declare function getErrorsTree(control: AbstractControl): ValidationErrors | null;
274
281
 
282
+ /**
283
+ * @deprecated Use FormControlValue
284
+ */
275
285
  declare class FormControlSuperclass<OuterType, InnerType = OuterType> extends AbstractControlSuperclass<OuterType, InnerType> {
276
286
  control: FormControl<InnerType>;
277
287
  static ɵfac: i0.ɵɵFactoryDeclaration<FormControlSuperclass<any, any>, never>;
278
288
  static ɵdir: i0.ɵɵDirectiveDeclaration<FormControlSuperclass<any, any>, never, never, {}, {}, never, never, true, never>;
279
289
  }
280
290
 
291
+ /**
292
+ * @deprecated Use FormControlValue
293
+ */
281
294
  declare abstract class FormComponentSuperclass<OuterType> extends FormComponentSuperclass$1<OuterType> implements Validator, OnInit {
282
295
  private _cdr;
283
296
  private _destroyRef;
@@ -289,6 +302,9 @@ declare abstract class FormComponentSuperclass<OuterType> extends FormComponentS
289
302
  static ɵdir: i0.ɵɵDirectiveDeclaration<FormComponentSuperclass<any>, never, never, {}, {}, never, never, true, never>;
290
303
  }
291
304
 
305
+ /**
306
+ * @deprecated Use FormControlValue
307
+ */
292
308
  declare abstract class FormArraySuperclass<OuterType extends unknown[], InnerType = OuterType> extends FormGroupSuperclass<OuterType, InnerType> {
293
309
  protected outerToInnerValue(outer: OuterType): InnerType;
294
310
  static ɵfac: i0.ɵɵFactoryDeclaration<FormArraySuperclass<any, any>, never>;
@@ -1093,16 +1109,18 @@ declare class ErrorPageModule {
1093
1109
  static ɵinj: i0.ɵɵInjectorDeclaration<ErrorPageModule>;
1094
1110
  }
1095
1111
 
1096
- interface Option<T> {
1112
+ interface Option<T = unknown> {
1097
1113
  value: T;
1098
- label: string;
1114
+ label?: string;
1099
1115
  description?: string;
1100
1116
  type?: unknown;
1117
+ details?: PossiblyAsync<unknown>;
1118
+ color?: ThemePalette;
1101
1119
  }
1102
1120
 
1103
1121
  declare class SelectFieldComponent<T = unknown> extends FormControlSuperclass<T[]> implements OnInit {
1104
1122
  options: Option<T>[];
1105
- searchChange: EventEmitter<string>;
1123
+ search: i0.ModelSignal<string>;
1106
1124
  appearance: MatFormFieldAppearance;
1107
1125
  label?: string;
1108
1126
  hint?: string;
@@ -1112,12 +1130,12 @@ declare class SelectFieldComponent<T = unknown> extends FormControlSuperclass<T[
1112
1130
  multiple: boolean;
1113
1131
  required: boolean;
1114
1132
  size?: 'small' | '';
1115
- searchStr: string;
1116
1133
  ngOnInit(): void;
1117
1134
  get hintText(): string;
1118
- search: (term: string, item: Option<T>) => boolean;
1135
+ searchFn: (term: string, item: Option<T>) => boolean;
1136
+ close(select: MtxSelect): void;
1119
1137
  static ɵfac: i0.ɵɵFactoryDeclaration<SelectFieldComponent<any>, never>;
1120
- static ɵcmp: i0.ɵɵComponentDeclaration<SelectFieldComponent<any>, "v-select-field", never, { "options": { "alias": "options"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; "label": { "alias": "label"; "required": false; }; "hint": { "alias": "hint"; "required": false; }; "error": { "alias": "error"; "required": false; }; "progress": { "alias": "progress"; "required": false; }; "externalSearch": { "alias": "externalSearch"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "required": { "alias": "required"; "required": false; }; "size": { "alias": "size"; "required": false; }; }, { "searchChange": "searchChange"; }, never, never, false, never>;
1138
+ static ɵcmp: i0.ɵɵComponentDeclaration<SelectFieldComponent<any>, "v-select-field", never, { "options": { "alias": "options"; "required": false; }; "search": { "alias": "search"; "required": false; "isSignal": true; }; "appearance": { "alias": "appearance"; "required": false; }; "label": { "alias": "label"; "required": false; }; "hint": { "alias": "hint"; "required": false; }; "error": { "alias": "error"; "required": false; }; "progress": { "alias": "progress"; "required": false; }; "externalSearch": { "alias": "externalSearch"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "required": { "alias": "required"; "required": false; }; "size": { "alias": "size"; "required": false; }; }, { "search": "searchChange"; }, never, never, false, never>;
1121
1139
  static ngAcceptInputType_externalSearch: unknown;
1122
1140
  static ngAcceptInputType_multiple: unknown;
1123
1141
  static ngAcceptInputType_required: unknown;
@@ -1129,21 +1147,27 @@ declare class SelectFieldModule {
1129
1147
  static ɵinj: i0.ɵɵInjectorDeclaration<SelectFieldModule>;
1130
1148
  }
1131
1149
 
1132
- declare class AutocompleteFieldComponent<T> extends FormControlSuperclass<T> implements OnChanges {
1133
- options: Option<T>[];
1150
+ declare class AutocompleteFieldComponent<T> extends FormControlSuperclass<T> {
1151
+ private dr;
1152
+ options: i0.InputSignal<Option<T>[]>;
1153
+ hint: i0.InputSignal<string>;
1154
+ externalSearch: i0.InputSignalWithTransform<boolean, unknown>;
1155
+ searchChange: i0.OutputEmitterRef<string>;
1156
+ requireSelection: i0.InputSignalWithTransform<boolean, unknown>;
1134
1157
  label?: string;
1135
- hint?: string;
1136
1158
  error?: string;
1137
- type: string;
1159
+ type: 'text' | 'number';
1138
1160
  mono: boolean;
1139
1161
  required: boolean;
1140
- get hintText(): string;
1141
- options$: BehaviorSubject<Option<T>[]>;
1162
+ hintText$: rxjs.Observable<string>;
1142
1163
  selected$: rxjs.Observable<Option<T>>;
1143
1164
  filteredOptions$: rxjs.Observable<Option<T>[]>;
1144
- ngOnChanges(changes: ComponentChanges<AutocompleteFieldComponent<T>>): void;
1165
+ ngOnInit(): void;
1166
+ onBlur(): void;
1167
+ protected innerToOuterValue(inner: T): T;
1168
+ private getValidValue;
1145
1169
  static ɵfac: i0.ɵɵFactoryDeclaration<AutocompleteFieldComponent<any>, never>;
1146
- static ɵcmp: i0.ɵɵComponentDeclaration<AutocompleteFieldComponent<any>, "v-autocomplete-field", never, { "options": { "alias": "options"; "required": false; }; "label": { "alias": "label"; "required": false; }; "hint": { "alias": "hint"; "required": false; }; "error": { "alias": "error"; "required": false; }; "type": { "alias": "type"; "required": false; }; "mono": { "alias": "mono"; "required": false; }; "required": { "alias": "required"; "required": false; }; }, {}, never, never, false, never>;
1170
+ static ɵcmp: i0.ɵɵComponentDeclaration<AutocompleteFieldComponent<any>, "v-autocomplete-field", never, { "options": { "alias": "options"; "required": false; "isSignal": true; }; "hint": { "alias": "hint"; "required": false; "isSignal": true; }; "externalSearch": { "alias": "externalSearch"; "required": false; "isSignal": true; }; "requireSelection": { "alias": "requireSelection"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; }; "error": { "alias": "error"; "required": false; }; "type": { "alias": "type"; "required": false; }; "mono": { "alias": "mono"; "required": false; }; "required": { "alias": "required"; "required": false; }; }, { "searchChange": "searchChange"; }, never, never, false, never>;
1147
1171
  static ngAcceptInputType_mono: unknown;
1148
1172
  static ngAcceptInputType_required: unknown;
1149
1173
  }
@@ -1230,6 +1254,7 @@ interface BaseLink {
1230
1254
  icon?: string;
1231
1255
  children?: BaseLink[];
1232
1256
  isHidden?: boolean;
1257
+ divider?: boolean;
1233
1258
  }
1234
1259
  type Link = PossiblyAsyncValue<Overwrite<BaseLink, {
1235
1260
  children?: Link[];