@masterteam/components 0.0.244 → 0.0.246

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/assets/common.css +1 -1
  2. package/assets/ds-components/button.css +24 -6
  3. package/assets/ds-components/content-switcher.css +8 -8
  4. package/assets/ds-components/tabs.css +147 -16
  5. package/assets/i18n/ar.json +3 -0
  6. package/assets/i18n/en.json +3 -0
  7. package/fesm2022/masterteam-components-business-fields.mjs +29 -8
  8. package/fesm2022/masterteam-components-business-fields.mjs.map +1 -1
  9. package/fesm2022/masterteam-components-date-field.mjs +9 -3
  10. package/fesm2022/masterteam-components-date-field.mjs.map +1 -1
  11. package/fesm2022/masterteam-components-entities.mjs +89 -13
  12. package/fesm2022/masterteam-components-entities.mjs.map +1 -1
  13. package/fesm2022/masterteam-components-field-validation.mjs.map +1 -1
  14. package/fesm2022/masterteam-components-location-field.mjs.map +1 -1
  15. package/fesm2022/masterteam-components-property-filter-builder.mjs +1 -1
  16. package/fesm2022/masterteam-components-property-filter-builder.mjs.map +1 -1
  17. package/fesm2022/masterteam-components-table.mjs +20 -3
  18. package/fesm2022/masterteam-components-table.mjs.map +1 -1
  19. package/fesm2022/masterteam-components-textarea-field.mjs.map +1 -1
  20. package/fesm2022/masterteam-components-treeselect-field.mjs +2 -2
  21. package/fesm2022/masterteam-components-treeselect-field.mjs.map +1 -1
  22. package/fesm2022/masterteam-components-user-search-field.mjs +20 -4
  23. package/fesm2022/masterteam-components-user-search-field.mjs.map +1 -1
  24. package/fesm2022/masterteam-components.mjs +11 -1
  25. package/fesm2022/masterteam-components.mjs.map +1 -1
  26. package/package.json +17 -17
  27. package/types/masterteam-components-business-fields.d.ts +13 -0
  28. package/types/masterteam-components-date-field.d.ts +7 -1
  29. package/types/masterteam-components-entities.d.ts +68 -5
  30. package/types/masterteam-components-table.d.ts +8 -3
  31. package/types/masterteam-components-user-search-field.d.ts +5 -1
  32. package/types/masterteam-components.d.ts +12 -1
package/package.json CHANGED
@@ -1,27 +1,27 @@
1
1
  {
2
2
  "name": "@masterteam/components",
3
- "version": "0.0.244",
3
+ "version": "0.0.246",
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": "^0.0.17",
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.17"
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",
@@ -266,9 +266,9 @@
266
266
  },
267
267
  "dependencies": {
268
268
  "xlsx": "^0.18.5",
269
- "tslib": "^2.8.1"
269
+ "tslib": "catalog:angular21"
270
270
  },
271
271
  "module": "fesm2022/masterteam-components.mjs",
272
272
  "typings": "types/masterteam-components.d.ts",
273
273
  "type": "module"
274
- }
274
+ }
@@ -152,6 +152,19 @@ declare class SchemaConnectionField implements ControlValueAccessor {
152
152
  * Source levels from configuration.
153
153
  */
154
154
  readonly sourceLevels: _angular_core.Signal<ConnectionSourceLevel[]>;
155
+ /**
156
+ * Tooltip for the marker rendered next to every source label — it is what
157
+ * tells the user these dropdowns belong to a connection, now that the
158
+ * connection's own label no longer occupies a row above them. Reads
159
+ * {@link activeLang} so the text re-translates on language switch.
160
+ */
161
+ readonly connectionHint: _angular_core.Signal<string>;
162
+ /**
163
+ * Placeholder for a source dropdown: its own source name, matching the label
164
+ * above it. Falls back to the field-level placeholder only when the source
165
+ * has no resolvable name.
166
+ */
167
+ protected sourcePlaceholder(source: ConnectionSourceLevel): string;
155
168
  /**
156
169
  * Percentage width for each dropdown, evenly divided.
157
170
  */
@@ -16,6 +16,12 @@ declare class DateField implements ControlValueAccessor, OnInit, OnChanges {
16
16
  readonly showOnFocus: _angular_core.InputSignal<boolean>;
17
17
  readonly showClear: _angular_core.InputSignal<boolean>;
18
18
  readonly showTime: _angular_core.InputSignal<boolean>;
19
+ /**
20
+ * Hides the calendar and edits only the clock time. The bound value stays a
21
+ * full `Date` — PrimeNG keeps the existing date part (or today's, when the
22
+ * control is empty) — so the wire format is unchanged.
23
+ */
24
+ readonly timeOnly: _angular_core.InputSignal<boolean>;
19
25
  readonly minDate: _angular_core.InputSignal<Date | null | undefined>;
20
26
  readonly maxDate: _angular_core.InputSignal<Date | null | undefined>;
21
27
  readonly pInputs: _angular_core.InputSignal<Partial<DatePicker> | undefined>;
@@ -39,7 +45,7 @@ declare class DateField implements ControlValueAccessor, OnInit, OnChanges {
39
45
  registerOnTouched(fn: any): void;
40
46
  setDisabledState(disabled: boolean): void;
41
47
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<DateField, never>;
42
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<DateField, "mt-date-field", never, { "field": { "alias": "field"; "required": false; "isSignal": true; }; "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; }; "showIcon": { "alias": "showIcon"; "required": false; "isSignal": true; }; "showOnFocus": { "alias": "showOnFocus"; "required": false; "isSignal": true; }; "showClear": { "alias": "showClear"; "required": false; "isSignal": true; }; "showTime": { "alias": "showTime"; "required": false; "isSignal": true; }; "minDate": { "alias": "minDate"; "required": false; "isSignal": true; }; "maxDate": { "alias": "maxDate"; "required": false; "isSignal": true; }; "pInputs": { "alias": "pInputs"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
48
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<DateField, "mt-date-field", never, { "field": { "alias": "field"; "required": false; "isSignal": true; }; "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; }; "showIcon": { "alias": "showIcon"; "required": false; "isSignal": true; }; "showOnFocus": { "alias": "showOnFocus"; "required": false; "isSignal": true; }; "showClear": { "alias": "showClear"; "required": false; "isSignal": true; }; "showTime": { "alias": "showTime"; "required": false; "isSignal": true; }; "timeOnly": { "alias": "timeOnly"; "required": false; "isSignal": true; }; "minDate": { "alias": "minDate"; "required": false; "isSignal": true; }; "maxDate": { "alias": "maxDate"; "required": false; "isSignal": true; }; "pInputs": { "alias": "pInputs"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
43
49
  }
44
50
 
45
51
  export { DateField };
@@ -1,6 +1,7 @@
1
1
  import * as _masterteam_components_entities from '@masterteam/components/entities';
2
2
  import * as _angular_core from '@angular/core';
3
3
  import { ElementRef, NgZone } from '@angular/core';
4
+ import { MTDateFormatType } from '@masterteam/components';
4
5
  import { HttpContext } from '@angular/common/http';
5
6
  import { MTIcon } from '@masterteam/icons';
6
7
  import { CdkDragDrop } from '@angular/cdk/drag-drop';
@@ -36,7 +37,13 @@ interface EntityListComparison {
36
37
  }
37
38
  type PropertyValueComparison = ValueComparison | EntityListComparison;
38
39
 
39
- type EntityViewType = 'Text' | 'LongText' | 'Date' | 'DateTime' | 'Number' | 'Percentage' | 'Status' | 'Currency' | 'Checkbox' | 'User' | 'Lookup'
40
+ type EntityViewType = 'Text' | 'LongText' | 'Date' | 'DateTime'
41
+ /**
42
+ * Time-of-day. The value on the wire is still a full ISO instant (the
43
+ * backend stores and returns the same shape as `DateTime`); only the
44
+ * rendering and the picker are narrowed to the clock time.
45
+ */
46
+ | 'Time' | 'Number' | 'Percentage' | 'Status' | 'Currency' | 'Checkbox' | 'User' | 'Lookup'
40
47
  /**
41
48
  * Calculated, read-only lookup resolved by the backend to the schema phase
42
49
  * gate the record currently sits on. Never editable at runtime.
@@ -77,8 +84,26 @@ interface EntityUserConfig extends EntityBaseConfig {
77
84
  showPhoneNumber?: boolean;
78
85
  showEmail?: boolean;
79
86
  }
87
+ /**
88
+ * One Progress/Percentage color rule. Bounds are inclusive and at least one of
89
+ * `minValue`/`maxValue` must be present — a rule with neither matches nothing.
90
+ */
91
+ interface PercentageColorRule {
92
+ minValue?: number | null;
93
+ maxValue?: number | null;
94
+ color: string;
95
+ }
80
96
  interface EntityPercentageConfig extends EntityBaseConfig {
97
+ /**
98
+ * The colour to paint the bar with. The backend resolves the rules and ships
99
+ * the winner here on render/value/fetch responses, so this always wins over
100
+ * a client-side evaluation of `colorRules`.
101
+ */
81
102
  color?: string;
103
+ /** Ordered rules — evaluated in order, first match wins. */
104
+ colorRules?: PercentageColorRule[] | null;
105
+ /** Fallback colour applied when no rule matches. */
106
+ defaultColor?: string | null;
82
107
  }
83
108
  interface LeafLevelSavedConfig {
84
109
  /** Position order for this level entity in the preview grid */
@@ -335,9 +360,14 @@ declare class EntityDate {
335
360
  /** Individual inputs (used when data is not provided) */
336
361
  readonly name: _angular_core.InputSignal<string | undefined>;
337
362
  readonly value: _angular_core.InputSignal<unknown>;
338
- readonly viewType: _angular_core.InputSignal<"Date" | "DateTime">;
363
+ readonly viewType: _angular_core.InputSignal<"Date" | "DateTime" | "Time">;
339
364
  readonly displayName: _angular_core.Signal<string>;
340
- readonly resolvedViewType: _angular_core.Signal<"date" | "dateTime">;
365
+ /**
366
+ * `Time` carries the same full ISO instant as `DateTime` — only the rendered
367
+ * format is narrowed to the clock time, so the value still lands in the
368
+ * viewer's timezone exactly like its `DateTime` sibling.
369
+ */
370
+ readonly resolvedViewType: _angular_core.Signal<MTDateFormatType>;
341
371
  readonly displayValue: _angular_core.Signal<unknown>;
342
372
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<EntityDate, never>;
343
373
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<EntityDate, "mt-entity-date", never, { "data": { "alias": "data"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "viewType": { "alias": "viewType"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
@@ -406,6 +436,13 @@ declare class EntityPercentage {
406
436
  readonly numericValue: _angular_core.Signal<number>;
407
437
  readonly maxValue: _angular_core.Signal<number>;
408
438
  readonly hideName: _angular_core.Signal<boolean>;
439
+ /**
440
+ * The bar colour. The backend evaluates the property's colour rules and
441
+ * returns the winner as `color` on render/value/fetch responses, so a
442
+ * resolved colour always wins — the rules are only evaluated here for
443
+ * configurations that arrive without one (a catalog read, or the
444
+ * property-form preview).
445
+ */
409
446
  readonly progressColor: _angular_core.Signal<string>;
410
447
  /** Rounds a numeric percentage to one decimal place, preserving a `%` suffix. */
411
448
  private formatPercentageDisplay;
@@ -671,6 +708,32 @@ declare function isLeafDetailsSyntheticKey(key?: string | null): boolean;
671
708
  declare function expandLeafDetailsEntity(entity: EntityData): EntityData[];
672
709
  declare function buildDisplayEntities(entities: EntityData[]): EntityData[];
673
710
 
711
+ /**
712
+ * Anything that can supply a percentage colour: an ordered rule set plus the
713
+ * fallback used when no rule matches.
714
+ */
715
+ interface PercentageColorSource {
716
+ colorRules?: PercentageColorRule[] | null;
717
+ defaultColor?: string | null;
718
+ }
719
+ /**
720
+ * Whether `value` falls inside a rule's band. Both bounds are inclusive, an
721
+ * absent bound is open-ended, and a rule carrying neither bound is malformed —
722
+ * it never matches rather than swallowing every value.
723
+ */
724
+ declare function matchesPercentageColorRule(value: number, rule?: PercentageColorRule | null): boolean;
725
+ /**
726
+ * The colour for a percentage value: rules in their configured order, first
727
+ * match wins, `defaultColor` when nothing matches.
728
+ *
729
+ * The backend owns this evaluation and ships the winner as `color` on
730
+ * render/value/fetch responses, so callers must prefer that resolved colour.
731
+ * This exists for the surfaces that hold a raw rule set and no resolved colour
732
+ * — the property-form preview, and catalog reads that never went through a
733
+ * value response.
734
+ */
735
+ declare function resolvePercentageColor(value: unknown, source?: PercentageColorSource | null): string | null;
736
+
674
737
  /**
675
738
  * A section is persisted/transported as an ordinary display item whose
676
739
  * `propertyKey` carries this sentinel prefix instead of a real property key
@@ -904,5 +967,5 @@ declare class EntitiesManage extends EntitiesResizeBase {
904
967
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<EntitiesManage, "mt-entities-manage", never, { "entities": { "alias": "entities"; "required": true; "isSignal": true; }; }, { "entities": "entitiesChange"; "entitiesReordered": "entitiesReordered"; "entityClicked": "entityClicked"; "externalItemDropped": "externalItemDropped"; }, never, never, true, never>;
905
968
  }
906
969
 
907
- export { ComparisonEntityList, ComparisonValue, DEFAULT_PHASE_GATE_COLOR, EntitiesManage, EntitiesPreview, EntitiesResizeBase, EntityAttachment, EntityCheckbox, EntityConnection, EntityCurrency, EntityDate, EntityField, EntityLeafDetails, EntityLocation, EntityLongText, EntityLookup, EntityLookupModuleCheckList, EntityPercentage, EntityPhaseGate, EntityPreview, EntityPreviewBody, EntityScheduleItem, EntityStatus, EntityText, EntityUser, LEAF_DETAILS_KEY_SEPARATOR, SECTION_KEY_PREFIX, buildDisplayEntities, buildSectionKey, expandLeafDetailsEntity, getEntitySectionTitle, groupEntitiesIntoSections, isEntitySection, isLeafDetailsCatalogConfiguration, isLeafDetailsCollectionValue, isLeafDetailsRuntimeValue, isLeafDetailsSyntheticKey, isLeafDetailsValue, isSectionKey, resolveLocalizedLabel };
908
- export type { ComparisonValueSide, EntityAttachmentItemValue, EntityAttachmentValue, EntityBaseConfig, EntityClickEvent, EntityComparisonField, EntityComparisonOperation, EntityConfiguration, EntityConnectionValue, EntityData, EntityLabelPosition, EntityLeafDetailsConfig, EntityListComparison, EntityListComparisonRow, EntityLocationValue, EntityLookupCheckListItem, EntityLookupCheckListPropValue, EntityLookupCheckListValue, EntityLookupValue, EntityNestedPropertyMeta, EntityPercentageConfig, EntityPhaseGateValue, EntityPropertyConfiguration, EntityResizeEvent, EntityScheduleItemValue, EntitySectionConfig, EntitySectionGroup, EntitySectionLabel, EntitySize, EntityStatusValue, EntityUserConfig, EntityUserValue, EntityViewType, LeafDetailsCatalogConfiguration, LeafDetailsCatalogLevelValue, LeafDetailsCatalogStatusValue, LeafDetailsEntityCollectionValue, LeafDetailsEntityValue, LeafDetailsRuntimeChildSchema, LeafDetailsRuntimeStatusCount, LeafDetailsRuntimeStatusDetails, LeafDetailsRuntimeValue, LeafDetailsStatusSummary, LeafLevelSavedConfig, PropertyValueComparison, ValueComparison };
970
+ export { ComparisonEntityList, ComparisonValue, DEFAULT_PHASE_GATE_COLOR, EntitiesManage, EntitiesPreview, EntitiesResizeBase, EntityAttachment, EntityCheckbox, EntityConnection, EntityCurrency, EntityDate, EntityField, EntityLeafDetails, EntityLocation, EntityLongText, EntityLookup, EntityLookupModuleCheckList, EntityPercentage, EntityPhaseGate, EntityPreview, EntityPreviewBody, EntityScheduleItem, EntityStatus, EntityText, EntityUser, LEAF_DETAILS_KEY_SEPARATOR, SECTION_KEY_PREFIX, buildDisplayEntities, buildSectionKey, expandLeafDetailsEntity, getEntitySectionTitle, groupEntitiesIntoSections, isEntitySection, isLeafDetailsCatalogConfiguration, isLeafDetailsCollectionValue, isLeafDetailsRuntimeValue, isLeafDetailsSyntheticKey, isLeafDetailsValue, isSectionKey, matchesPercentageColorRule, resolveLocalizedLabel, resolvePercentageColor };
971
+ export type { ComparisonValueSide, EntityAttachmentItemValue, EntityAttachmentValue, EntityBaseConfig, EntityClickEvent, EntityComparisonField, EntityComparisonOperation, EntityConfiguration, EntityConnectionValue, EntityData, EntityLabelPosition, EntityLeafDetailsConfig, EntityListComparison, EntityListComparisonRow, EntityLocationValue, EntityLookupCheckListItem, EntityLookupCheckListPropValue, EntityLookupCheckListValue, EntityLookupValue, EntityNestedPropertyMeta, EntityPercentageConfig, EntityPhaseGateValue, EntityPropertyConfiguration, EntityResizeEvent, EntityScheduleItemValue, EntitySectionConfig, EntitySectionGroup, EntitySectionLabel, EntitySize, EntityStatusValue, EntityUserConfig, EntityUserValue, EntityViewType, LeafDetailsCatalogConfiguration, LeafDetailsCatalogLevelValue, LeafDetailsCatalogStatusValue, LeafDetailsEntityCollectionValue, LeafDetailsEntityValue, LeafDetailsRuntimeChildSchema, LeafDetailsRuntimeStatusCount, LeafDetailsRuntimeStatusDetails, LeafDetailsRuntimeValue, LeafDetailsStatusSummary, LeafLevelSavedConfig, PercentageColorRule, PercentageColorSource, PropertyValueComparison, ValueComparison };
@@ -320,7 +320,7 @@ declare class Table {
320
320
  captionStartContent: _angular_core.Signal<TemplateRef<any> | undefined>;
321
321
  captionEndContent: _angular_core.Signal<TemplateRef<any> | undefined>;
322
322
  emptyContent: _angular_core.Signal<TemplateRef<any> | undefined>;
323
- paginatorPosition: _angular_core.InputSignal<"center" | "end" | "start">;
323
+ paginatorPosition: _angular_core.InputSignal<"end" | "start" | "center">;
324
324
  alwaysShowPaginator: _angular_core.InputSignalWithTransform<boolean, unknown>;
325
325
  rowsPerPageOptions: _angular_core.InputSignal<number[]>;
326
326
  pageSize: _angular_core.ModelSignal<number>;
@@ -334,7 +334,7 @@ declare class Table {
334
334
  * the query it actually sent.
335
335
  */
336
336
  sortField: _angular_core.ModelSignal<string | null>;
337
- sortDirection: _angular_core.ModelSignal<"desc" | "asc" | null>;
337
+ sortDirection: _angular_core.ModelSignal<"asc" | "desc" | null>;
338
338
  confirmationService: ConfirmationService;
339
339
  private readonly exportService;
340
340
  private readonly transloco;
@@ -461,7 +461,7 @@ declare class Table {
461
461
  /**
462
462
  * Detects whether a column should be treated as a date for export purposes:
463
463
  * native `date` / `dateTime` types, or entity columns whose viewType is
464
- * `Date` / `DateTime`.
464
+ * `Date` / `DateTime` / `Time`.
465
465
  */
466
466
  private resolveDateColumnType;
467
467
  private getColumnResolvedValue;
@@ -499,6 +499,11 @@ declare class TableValueResolver {
499
499
  private static readonly ALL_ENTITY_VIEW_TYPES;
500
500
  private static readonly UNSORTABLE_ENTITY_VIEW_TYPES;
501
501
  private static readonly EXPORTABLE_ENTITY_VIEW_TYPES;
502
+ /**
503
+ * `Time` is sortable and exportable but not filterable: a time-of-day has no
504
+ * meaningful date-range filter, and the stored value is a full instant, so a
505
+ * date picker would silently filter by day instead of by clock time.
506
+ */
502
507
  private static readonly FILTERABLE_ENTITY_VIEW_TYPES;
503
508
  /**
504
509
  * Sentinel `key` value that resolves to the whole row instead of a property
@@ -8,8 +8,10 @@ import { HttpContext } from '@angular/common/http';
8
8
  interface User {
9
9
  isExternal: boolean;
10
10
  id: string;
11
+ userId?: string;
11
12
  displayName: string;
12
13
  userName: string;
14
+ email?: string | null;
13
15
  photo: string;
14
16
  /**
15
17
  * `false` when the user is no longer linked to the current application
@@ -34,6 +36,7 @@ declare class UserSearchField implements ControlValueAccessor, OnInit, OnDestroy
34
36
  readonly apiUrl: _angular_core.InputSignal<string>;
35
37
  readonly dataKey: _angular_core.InputSignal<string>;
36
38
  readonly paramName: _angular_core.InputSignal<string>;
39
+ readonly minLength: _angular_core.InputSignal<number>;
37
40
  readonly context: _angular_core.InputSignal<HttpContext | undefined>;
38
41
  styleClass: string;
39
42
  requiredValidator: typeof Validators.required;
@@ -88,6 +91,7 @@ declare class UserSearchField implements ControlValueAccessor, OnInit, OnDestroy
88
91
  onSuggestionPointerDown(): void;
89
92
  private isOwnAutocompleteOption;
90
93
  getUsers(): void;
94
+ private readUsers;
91
95
  private getInputElement;
92
96
  private cancelPendingBlurCleanup;
93
97
  private resetUncommittedSearch;
@@ -95,7 +99,7 @@ declare class UserSearchField implements ControlValueAccessor, OnInit, OnDestroy
95
99
  private writeInput;
96
100
  private clearSearchState;
97
101
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<UserSearchField, never>;
98
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<UserSearchField, "mt-user-search-field", never, { "hint": { "alias": "hint"; "required": false; "isSignal": true; }; "hideUnlinkedHint": { "alias": "hideUnlinkedHint"; "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>;
102
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<UserSearchField, "mt-user-search-field", never, { "hint": { "alias": "hint"; "required": false; "isSignal": true; }; "hideUnlinkedHint": { "alias": "hideUnlinkedHint"; "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; }; "minLength": { "alias": "minLength"; "required": false; "isSignal": true; }; "context": { "alias": "context"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
99
103
  }
100
104
 
101
105
  export { UserSearchField };
@@ -196,6 +196,8 @@ declare function provideMTConfirmation(): typeof ConfirmationService;
196
196
  interface MTDateFormats {
197
197
  date: string;
198
198
  dateTime: string;
199
+ /** Clock-time only, used by `Time` properties. */
200
+ time: string;
199
201
  timezone?: string;
200
202
  }
201
203
  declare const DEFAULT_MT_DATE_FORMATS: MTDateFormats;
@@ -385,6 +387,9 @@ declare class UserSearchFieldConfig extends BaseFieldConfig {
385
387
  context: HttpContext | undefined;
386
388
  isMultiple: boolean;
387
389
  hideUnlinkedHint: boolean;
390
+ dataKey: string;
391
+ paramName: string;
392
+ minLength: number;
388
393
  constructor(config: Omit<BaseFieldConstructorConfig, 'type'> & {
389
394
  optionLabel?: string;
390
395
  optionValue?: string;
@@ -395,6 +400,9 @@ declare class UserSearchFieldConfig extends BaseFieldConfig {
395
400
  placeholder?: string;
396
401
  isMultiple?: boolean;
397
402
  hideUnlinkedHint?: boolean;
403
+ dataKey?: string;
404
+ paramName?: string;
405
+ minLength?: number;
398
406
  });
399
407
  }
400
408
  declare class LocationFieldConfig extends BaseFieldConfig {
@@ -434,6 +442,8 @@ declare class UploadFileFieldConfig extends BaseFieldConfig {
434
442
  declare class DateFieldConfig extends BaseFieldConfig {
435
443
  dateFormat: string;
436
444
  showTime: boolean;
445
+ /** Edits the clock time only — no calendar. The value stays a full `Date`. */
446
+ timeOnly: boolean;
437
447
  showSeconds: boolean;
438
448
  hourFormat: '12' | '24';
439
449
  minDate?: Date;
@@ -449,6 +459,7 @@ declare class DateFieldConfig extends BaseFieldConfig {
449
459
  constructor(config: Omit<BaseFieldConstructorConfig, 'type'> & {
450
460
  dateFormat?: string;
451
461
  showTime?: boolean;
462
+ timeOnly?: boolean;
452
463
  showSeconds?: boolean;
453
464
  hourFormat?: '12' | '24';
454
465
  minDate?: Date;
@@ -1132,7 +1143,7 @@ declare const REQUEST_CONTEXT: HttpContextToken<RequestContextConfig>;
1132
1143
  declare function getLightColor(hexColor: string): string;
1133
1144
  declare function getContrastColor(bgColor: string): string;
1134
1145
 
1135
- type MTDateFormatType = 'date' | 'dateTime';
1146
+ type MTDateFormatType = 'date' | 'dateTime' | 'time';
1136
1147
  declare class MTDateFormatPipe implements PipeTransform {
1137
1148
  private readonly locale;
1138
1149
  private readonly formats;