@masterteam/components 0.0.199 → 0.0.201
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/assets/common.css +1 -1
- package/fesm2022/masterteam-components-business-fields.mjs +7 -5
- package/fesm2022/masterteam-components-business-fields.mjs.map +1 -1
- package/fesm2022/masterteam-components-card.mjs +2 -2
- package/fesm2022/masterteam-components-card.mjs.map +1 -1
- package/fesm2022/masterteam-components-date-field.mjs +7 -4
- package/fesm2022/masterteam-components-date-field.mjs.map +1 -1
- package/fesm2022/masterteam-components-location-field.mjs +76 -34
- package/fesm2022/masterteam-components-location-field.mjs.map +1 -1
- package/fesm2022/masterteam-components-property-filter-builder.mjs +1 -1
- package/fesm2022/masterteam-components-property-filter-builder.mjs.map +1 -1
- package/fesm2022/masterteam-components-table.mjs +1 -1
- package/fesm2022/masterteam-components-table.mjs.map +1 -1
- package/package.json +1 -1
- package/types/masterteam-components-business-fields.d.ts +6 -1
- package/types/masterteam-components-date-field.d.ts +3 -1
- package/types/masterteam-components-entities.d.ts +1 -1
- package/types/masterteam-components-location-field.d.ts +28 -4
package/package.json
CHANGED
|
@@ -487,7 +487,12 @@ declare class LookupModuleCheckListField implements ControlValueAccessor, OnInit
|
|
|
487
487
|
protected readonly formComponent: _angular_core.Type<unknown> | null;
|
|
488
488
|
protected readonly isReadonly: _angular_core.Signal<boolean>;
|
|
489
489
|
protected readonly sections: _angular_core.Signal<CheckListSection[]>;
|
|
490
|
-
/**
|
|
490
|
+
/**
|
|
491
|
+
* Use the rich form whenever it's registered and a scope module is set. The
|
|
492
|
+
* scope form only needs `scopeId` to load its field definitions; `levelId` /
|
|
493
|
+
* `levelDataId` are passed when available but are not required (e.g. they are
|
|
494
|
+
* null while creating a brand-new Level instance).
|
|
495
|
+
*/
|
|
491
496
|
protected readonly useRichForm: _angular_core.Signal<boolean>;
|
|
492
497
|
/**
|
|
493
498
|
* The last externally-written value (via `writeValue`). Passed to the rich
|
|
@@ -15,6 +15,8 @@ declare class DateField implements ControlValueAccessor, OnInit, OnChanges {
|
|
|
15
15
|
readonly showIcon: _angular_core.InputSignal<boolean>;
|
|
16
16
|
readonly showClear: _angular_core.InputSignal<boolean>;
|
|
17
17
|
readonly showTime: _angular_core.InputSignal<boolean>;
|
|
18
|
+
readonly minDate: _angular_core.InputSignal<Date | null | undefined>;
|
|
19
|
+
readonly maxDate: _angular_core.InputSignal<Date | null | undefined>;
|
|
18
20
|
readonly pInputs: _angular_core.InputSignal<Partial<DatePicker> | undefined>;
|
|
19
21
|
readonly required: _angular_core.InputSignal<boolean>;
|
|
20
22
|
rtl: _angular_core.WritableSignal<boolean>;
|
|
@@ -36,7 +38,7 @@ declare class DateField implements ControlValueAccessor, OnInit, OnChanges {
|
|
|
36
38
|
registerOnTouched(fn: any): void;
|
|
37
39
|
setDisabledState(disabled: boolean): void;
|
|
38
40
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DateField, never>;
|
|
39
|
-
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; }; "showClear": { "alias": "showClear"; "required": false; "isSignal": true; }; "showTime": { "alias": "showTime"; "required": false; "isSignal": true; }; "pInputs": { "alias": "pInputs"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
41
|
+
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; }; "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>;
|
|
40
42
|
}
|
|
41
43
|
|
|
42
44
|
export { DateField };
|
|
@@ -412,7 +412,7 @@ declare class EntityAttachment {
|
|
|
412
412
|
readonly data: _angular_core.InputSignal<EntityData | undefined>;
|
|
413
413
|
readonly name: _angular_core.InputSignal<string | undefined>;
|
|
414
414
|
readonly shape: _angular_core.InputSignal<"compact" | "default">;
|
|
415
|
-
readonly value: _angular_core.InputSignal<string |
|
|
415
|
+
readonly value: _angular_core.InputSignal<string | EntityAttachmentItemValue | EntityAttachmentValue | null | undefined>;
|
|
416
416
|
readonly endPoint: _angular_core.InputSignal<string>;
|
|
417
417
|
readonly context: _angular_core.InputSignal<HttpContext | undefined>;
|
|
418
418
|
private readonly httpClient;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
2
|
import { OnDestroy } from '@angular/core';
|
|
3
|
+
import { HttpContext } from '@angular/common/http';
|
|
3
4
|
import { ControlValueAccessor, Validators, NgControl, FormGroup, FormControl } from '@angular/forms';
|
|
4
5
|
import { AutoComplete } from 'primeng/autocomplete';
|
|
5
6
|
import { isInvalid } from '@masterteam/components';
|
|
@@ -21,9 +22,10 @@ interface LocationFieldConfiguration {
|
|
|
21
22
|
country?: string | {
|
|
22
23
|
name?: string;
|
|
23
24
|
code?: string;
|
|
24
|
-
viewBox?: string;
|
|
25
25
|
};
|
|
26
|
-
|
|
26
|
+
/** Gateway places-search path, overrides the default `searchUrl`. */
|
|
27
|
+
searchUrl?: string;
|
|
28
|
+
/** @deprecated kept for back-compat; use `searchUrl`. */
|
|
27
29
|
nominatimBaseUrl?: string;
|
|
28
30
|
[key: string]: unknown;
|
|
29
31
|
}
|
|
@@ -35,9 +37,21 @@ declare class LocationField implements ControlValueAccessor, OnDestroy {
|
|
|
35
37
|
readonly required: _angular_core.InputSignal<boolean>;
|
|
36
38
|
readonly minLength: _angular_core.InputSignal<number>;
|
|
37
39
|
readonly configuration: _angular_core.InputSignal<LocationFieldConfiguration | null>;
|
|
40
|
+
/** Gateway places-search endpoint. Resolved through the app's HTTP
|
|
41
|
+
* interceptor, which attaches the gateway base URL and session token. */
|
|
38
42
|
readonly searchUrl: _angular_core.InputSignal<string | undefined>;
|
|
43
|
+
/** HTTP context the consuming app uses to route this call to gateway scope
|
|
44
|
+
* (so the GatewaySession bearer token is attached). */
|
|
45
|
+
readonly context: _angular_core.InputSignal<HttpContext | undefined>;
|
|
46
|
+
/** Default routing context when the consumer doesn't pass one: route the
|
|
47
|
+
* places search to the gateway API base (not the per-application base) so it
|
|
48
|
+
* resolves to `{gatewayApiBaseUrl}/places/search` with the GatewaySession
|
|
49
|
+
* bearer token. The app's gateway-auth interceptor reads
|
|
50
|
+
* `REQUEST_CONTEXT.useBaseUrl` to pick the gateway base + token. */
|
|
51
|
+
private readonly gatewayRequestContext;
|
|
39
52
|
protected readonly value: _angular_core.WritableSignal<LocationValue | null>;
|
|
40
53
|
protected readonly suggestions: _angular_core.WritableSignal<LocationValue[]>;
|
|
54
|
+
protected readonly attribution: _angular_core.WritableSignal<string>;
|
|
41
55
|
protected readonly disabled: _angular_core.WritableSignal<boolean>;
|
|
42
56
|
protected readonly loading: _angular_core.WritableSignal<boolean>;
|
|
43
57
|
protected readonly requiredValidator: typeof Validators.required;
|
|
@@ -46,7 +60,6 @@ declare class LocationField implements ControlValueAccessor, OnDestroy {
|
|
|
46
60
|
protected readonly resolvedSearchUrl: _angular_core.Signal<string>;
|
|
47
61
|
protected readonly countryName: _angular_core.Signal<string>;
|
|
48
62
|
protected readonly countryCode: _angular_core.Signal<string>;
|
|
49
|
-
protected readonly viewBox: _angular_core.Signal<string>;
|
|
50
63
|
ngControl: NgControl | null;
|
|
51
64
|
protected readonly isInvalid: typeof isInvalid;
|
|
52
65
|
private readonly modal;
|
|
@@ -70,9 +83,17 @@ declare class LocationField implements ControlValueAccessor, OnDestroy {
|
|
|
70
83
|
private onModelChange;
|
|
71
84
|
constructor();
|
|
72
85
|
ngOnDestroy(): void;
|
|
86
|
+
/**
|
|
87
|
+
* Fired by PrimeNG on every keystroke. The Gateway places provider forbids
|
|
88
|
+
* autocomplete/typeahead, so typing only tracks the pending text — it does
|
|
89
|
+
* NOT hit the network. The request is sent on explicit submit
|
|
90
|
+
* (`submitSearch` via the search button / Enter).
|
|
91
|
+
*/
|
|
73
92
|
protected search(event: {
|
|
74
93
|
query: string;
|
|
75
94
|
}): void;
|
|
95
|
+
/** Run the search on explicit user submit (search button or Enter). */
|
|
96
|
+
protected submitSearch(): void;
|
|
76
97
|
protected onFocus(): void;
|
|
77
98
|
protected onBlur(): void;
|
|
78
99
|
protected onSelect(event: {
|
|
@@ -101,8 +122,11 @@ declare class LocationField implements ControlValueAccessor, OnDestroy {
|
|
|
101
122
|
private writeInput;
|
|
102
123
|
private clearSearchState;
|
|
103
124
|
private searchLocations;
|
|
125
|
+
/** Map a Gateway places item onto the shape `normalizeLocationValue` reads
|
|
126
|
+
* (it expects `lat`/`lon`, the gateway returns `latitude`/`longitude`). */
|
|
127
|
+
private toLocationValue;
|
|
104
128
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<LocationField, never>;
|
|
105
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<LocationField, "mt-location-field", never, { "hint": { "alias": "hint"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "minLength": { "alias": "minLength"; "required": false; "isSignal": true; }; "configuration": { "alias": "configuration"; "required": false; "isSignal": true; }; "searchUrl": { "alias": "searchUrl"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
129
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<LocationField, "mt-location-field", never, { "hint": { "alias": "hint"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "minLength": { "alias": "minLength"; "required": false; "isSignal": true; }; "configuration": { "alias": "configuration"; "required": false; "isSignal": true; }; "searchUrl": { "alias": "searchUrl"; "required": false; "isSignal": true; }; "context": { "alias": "context"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
106
130
|
}
|
|
107
131
|
|
|
108
132
|
declare class LocationManualDialog {
|