@masterteam/components 0.0.210 → 0.0.212
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/README.md +70 -70
- package/fesm2022/masterteam-components-business-fields.mjs +7 -6
- package/fesm2022/masterteam-components-business-fields.mjs.map +1 -1
- package/fesm2022/masterteam-components-drawer.mjs +2 -2
- package/fesm2022/masterteam-components-drawer.mjs.map +1 -1
- package/fesm2022/masterteam-components-dynamic-drawer.mjs.map +1 -1
- package/fesm2022/masterteam-components-entities.mjs +14 -14
- package/fesm2022/masterteam-components-entities.mjs.map +1 -1
- package/fesm2022/masterteam-components-field-validation.mjs.map +1 -1
- package/fesm2022/masterteam-components-formula.mjs +2 -2
- package/fesm2022/masterteam-components-formula.mjs.map +1 -1
- package/fesm2022/masterteam-components-icon-field.mjs.map +1 -1
- package/fesm2022/masterteam-components-location-field.mjs +2 -2
- package/fesm2022/masterteam-components-location-field.mjs.map +1 -1
- package/fesm2022/masterteam-components-multi-select-field.mjs +16 -5
- package/fesm2022/masterteam-components-multi-select-field.mjs.map +1 -1
- package/fesm2022/masterteam-components-number-field.mjs +2 -2
- package/fesm2022/masterteam-components-number-field.mjs.map +1 -1
- package/fesm2022/masterteam-components-radio-cards-field.mjs +2 -2
- package/fesm2022/masterteam-components-radio-cards-field.mjs.map +1 -1
- package/fesm2022/masterteam-components-runtime-action.mjs.map +1 -1
- package/fesm2022/masterteam-components-select-field.mjs +16 -5
- package/fesm2022/masterteam-components-select-field.mjs.map +1 -1
- package/fesm2022/masterteam-components-slider-field.mjs +17 -4
- package/fesm2022/masterteam-components-slider-field.mjs.map +1 -1
- package/fesm2022/masterteam-components-table.mjs +5 -5
- package/fesm2022/masterteam-components-table.mjs.map +1 -1
- package/fesm2022/masterteam-components-text-field.mjs +2 -2
- package/fesm2022/masterteam-components-text-field.mjs.map +1 -1
- package/fesm2022/masterteam-components-textarea-field.mjs +2 -2
- package/fesm2022/masterteam-components-textarea-field.mjs.map +1 -1
- package/fesm2022/masterteam-components-toggle-field.mjs +2 -2
- package/fesm2022/masterteam-components-toggle-field.mjs.map +1 -1
- package/fesm2022/masterteam-components-treeselect-field.mjs +2 -2
- package/fesm2022/masterteam-components-treeselect-field.mjs.map +1 -1
- package/fesm2022/masterteam-components-user-search-field.mjs +9 -3
- package/fesm2022/masterteam-components-user-search-field.mjs.map +1 -1
- package/fesm2022/masterteam-components.mjs +5 -3
- package/fesm2022/masterteam-components.mjs.map +1 -1
- package/package.json +1 -1
- package/types/masterteam-components-business-fields.d.ts +4 -2
- package/types/masterteam-components-multi-select-field.d.ts +5 -3
- package/types/masterteam-components-select-field.d.ts +5 -3
- package/types/masterteam-components-slider-field.d.ts +3 -0
- package/types/masterteam-components-user-search-field.d.ts +7 -1
- package/types/masterteam-components.d.ts +2 -0
package/package.json
CHANGED
|
@@ -86,8 +86,10 @@ interface SchemaConnectionConfig {
|
|
|
86
86
|
}
|
|
87
87
|
/** One selected source in the connection payload */
|
|
88
88
|
interface ConnectionSource {
|
|
89
|
-
sourceLevelId
|
|
90
|
-
sourceLevelDataId
|
|
89
|
+
sourceLevelId?: number;
|
|
90
|
+
sourceLevelDataId?: number;
|
|
91
|
+
sourceModuleId?: number;
|
|
92
|
+
sourceModuleDataId?: number;
|
|
91
93
|
}
|
|
92
94
|
/** The value shape for a connection field */
|
|
93
95
|
interface ConnectionPayload {
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
|
-
import { OnInit, OnChanges, EventEmitter, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { OnInit, OnChanges, AfterViewInit, EventEmitter, SimpleChanges } from '@angular/core';
|
|
3
3
|
import { ControlValueAccessor, Validators, NgControl } from '@angular/forms';
|
|
4
4
|
import { MultiSelect } from 'primeng/multiselect';
|
|
5
5
|
import { isInvalid } from '@masterteam/components';
|
|
6
6
|
|
|
7
|
-
declare class MultiSelectField implements ControlValueAccessor, OnInit, OnChanges {
|
|
7
|
+
declare class MultiSelectField implements ControlValueAccessor, OnInit, OnChanges, AfterViewInit {
|
|
8
8
|
private el;
|
|
9
|
+
private zone;
|
|
10
|
+
private destroyRef;
|
|
9
11
|
multiSelect: MultiSelect;
|
|
10
12
|
protected readonly panelStyle: _angular_core.WritableSignal<Record<string, string>>;
|
|
11
|
-
|
|
13
|
+
ngAfterViewInit(): void;
|
|
12
14
|
readonly field: _angular_core.InputSignal<boolean>;
|
|
13
15
|
readonly label: _angular_core.InputSignal<string | undefined>;
|
|
14
16
|
readonly placeholder: _angular_core.InputSignal<string | undefined>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
|
-
import { OnInit, OnChanges, ChangeDetectorRef, EventEmitter, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { OnInit, OnChanges, AfterViewInit, ChangeDetectorRef, EventEmitter, SimpleChanges } from '@angular/core';
|
|
3
3
|
import { ControlValueAccessor, Validators, NgControl } from '@angular/forms';
|
|
4
4
|
import { Select } from 'primeng/select';
|
|
5
5
|
import { isInvalid } from '@masterteam/components';
|
|
@@ -18,12 +18,14 @@ interface CurrentUserInfo {
|
|
|
18
18
|
displayName?: string | null;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
declare class SelectField implements ControlValueAccessor, OnInit, OnChanges {
|
|
21
|
+
declare class SelectField implements ControlValueAccessor, OnInit, OnChanges, AfterViewInit {
|
|
22
22
|
cdr: ChangeDetectorRef;
|
|
23
23
|
private el;
|
|
24
|
+
private zone;
|
|
25
|
+
private destroyRef;
|
|
24
26
|
dropdown: Select;
|
|
25
27
|
protected readonly panelStyle: _angular_core.WritableSignal<Record<string, string>>;
|
|
26
|
-
|
|
28
|
+
ngAfterViewInit(): void;
|
|
27
29
|
readonly field: _angular_core.InputSignal<boolean>;
|
|
28
30
|
readonly hint: _angular_core.InputSignal<string | undefined>;
|
|
29
31
|
readonly label: _angular_core.InputSignal<string>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { ElementRef } from '@angular/core';
|
|
2
3
|
import { ControlValueAccessor, NgControl, Validators } from '@angular/forms';
|
|
3
4
|
import { isInvalid } from '@masterteam/components';
|
|
4
5
|
|
|
@@ -17,6 +18,7 @@ declare class SliderField implements ControlValueAccessor {
|
|
|
17
18
|
readonly hostClass: _angular_core.Signal<string>;
|
|
18
19
|
readonly fieldId: _angular_core.Signal<string>;
|
|
19
20
|
readonly progressBgStyle: _angular_core.Signal<string>;
|
|
21
|
+
readonly numberInput: _angular_core.Signal<ElementRef<HTMLInputElement> | undefined>;
|
|
20
22
|
readonly requiredValidator: typeof Validators.required;
|
|
21
23
|
readonly value: _angular_core.WritableSignal<number | null>;
|
|
22
24
|
readonly disabled: _angular_core.WritableSignal<boolean>;
|
|
@@ -26,6 +28,7 @@ declare class SliderField implements ControlValueAccessor {
|
|
|
26
28
|
private readonly defaultId;
|
|
27
29
|
constructor();
|
|
28
30
|
onValueChange(value: number | null): void;
|
|
31
|
+
private syncInputDisplay;
|
|
29
32
|
writeValue(value: number | null): void;
|
|
30
33
|
registerOnChange(fn: (value: number | null) => void): void;
|
|
31
34
|
registerOnTouched(fn: () => void): void;
|
|
@@ -19,6 +19,12 @@ interface User {
|
|
|
19
19
|
}
|
|
20
20
|
declare class UserSearchField implements ControlValueAccessor, OnInit, OnDestroy {
|
|
21
21
|
readonly hint: _angular_core.InputSignal<string | undefined>;
|
|
22
|
+
/**
|
|
23
|
+
* Hides the "not linked to current application" indicator (the amber
|
|
24
|
+
* info badge in single-select mode and the per-chip badge in multiple
|
|
25
|
+
* mode). The control still functions; only the visual hint is suppressed.
|
|
26
|
+
*/
|
|
27
|
+
readonly hideUnlinkedHint: _angular_core.InputSignal<boolean>;
|
|
22
28
|
readonly label: _angular_core.InputSignal<string | undefined>;
|
|
23
29
|
readonly placeholder: _angular_core.InputSignal<string | undefined>;
|
|
24
30
|
readonly class: _angular_core.InputSignal<string>;
|
|
@@ -89,7 +95,7 @@ declare class UserSearchField implements ControlValueAccessor, OnInit, OnDestroy
|
|
|
89
95
|
private writeInput;
|
|
90
96
|
private clearSearchState;
|
|
91
97
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<UserSearchField, never>;
|
|
92
|
-
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>;
|
|
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>;
|
|
93
99
|
}
|
|
94
100
|
|
|
95
101
|
export { UserSearchField };
|
|
@@ -212,6 +212,7 @@ declare class UserSearchFieldConfig extends BaseFieldConfig {
|
|
|
212
212
|
apiUrl: string;
|
|
213
213
|
context: HttpContext | undefined;
|
|
214
214
|
isMultiple: boolean;
|
|
215
|
+
hideUnlinkedHint: boolean;
|
|
215
216
|
constructor(config: Omit<BaseFieldConstructorConfig, 'type'> & {
|
|
216
217
|
optionLabel?: string;
|
|
217
218
|
optionValue?: string;
|
|
@@ -221,6 +222,7 @@ declare class UserSearchFieldConfig extends BaseFieldConfig {
|
|
|
221
222
|
context?: HttpContext | undefined;
|
|
222
223
|
placeholder?: string;
|
|
223
224
|
isMultiple?: boolean;
|
|
225
|
+
hideUnlinkedHint?: boolean;
|
|
224
226
|
});
|
|
225
227
|
}
|
|
226
228
|
declare class LocationFieldConfig extends BaseFieldConfig {
|