@masterteam/components 0.0.278 → 0.0.279
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/fesm2022/masterteam-components-business-fields.mjs +22 -2
- package/fesm2022/masterteam-components-business-fields.mjs.map +1 -1
- package/fesm2022/masterteam-components.mjs +2 -0
- package/fesm2022/masterteam-components.mjs.map +1 -1
- package/package.json +1 -1
- package/types/masterteam-components-business-fields.d.ts +10 -2
- package/types/masterteam-components.d.ts +13 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
2
|
import { AfterViewInit, InjectionToken, Type, OnInit } from '@angular/core';
|
|
3
|
-
import { LookupMatrixFieldConfig, LookupOptionItemConfig, LookupMatrixCellConfig, SchedulePredecessorFieldRuntimeContext, EntityListFieldRuntimeContext, ScheduleItemSelectorFieldRuntimeContext, LookupCheckListPropertyConfig, LookupModuleCheckListFieldRuntimeContext } from '@masterteam/components';
|
|
3
|
+
import { LookupMatrixFieldConfig, LookupOptionItemConfig, LookupMatrixCellConfig, SchemaConnectionFieldRuntimeContext, SchedulePredecessorFieldRuntimeContext, EntityListFieldRuntimeContext, ScheduleItemSelectorFieldRuntimeContext, LookupCheckListPropertyConfig, LookupModuleCheckListFieldRuntimeContext } from '@masterteam/components';
|
|
4
4
|
import { ControlValueAccessor, NgControl, Validators } from '@angular/forms';
|
|
5
5
|
import { HttpContext } from '@angular/common/http';
|
|
6
6
|
import { ColumnDef, TableAction } from '@masterteam/components/table';
|
|
@@ -115,6 +115,14 @@ declare class SchemaConnectionField implements ControlValueAccessor {
|
|
|
115
115
|
* Includes `targetLevelId`, `sourceLevels[]`, `payloadTemplate`, etc.
|
|
116
116
|
*/
|
|
117
117
|
readonly configuration: _angular_core.InputSignal<SchemaConnectionConfig>;
|
|
118
|
+
/**
|
|
119
|
+
* Runtime scope for this field's options queries. When `templateId` is
|
|
120
|
+
* present, it is sent as a `templateId` structural filter on every source
|
|
121
|
+
* level's `fetch/query` request, scoping the dropdown to the active plan
|
|
122
|
+
* instance. Absent means options load unscoped, same as before this input
|
|
123
|
+
* existed.
|
|
124
|
+
*/
|
|
125
|
+
readonly runtimeContext: _angular_core.InputSignal<SchemaConnectionFieldRuntimeContext | null>;
|
|
118
126
|
/**
|
|
119
127
|
* Optional HttpContext for API requests (e.g. to set base URL behavior).
|
|
120
128
|
*/
|
|
@@ -192,7 +200,7 @@ declare class SchemaConnectionField implements ControlValueAccessor {
|
|
|
192
200
|
registerOnTouched(fn: any): void;
|
|
193
201
|
setDisabledState(disabled: boolean): void;
|
|
194
202
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SchemaConnectionField, never>;
|
|
195
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SchemaConnectionField, "mt-schema-connection-field", never, { "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; }; "filter": { "alias": "filter"; "required": false; "isSignal": true; }; "configuration": { "alias": "configuration"; "required": true; "isSignal": true; }; "context": { "alias": "context"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
203
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SchemaConnectionField, "mt-schema-connection-field", never, { "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; }; "filter": { "alias": "filter"; "required": false; "isSignal": true; }; "configuration": { "alias": "configuration"; "required": true; "isSignal": true; }; "runtimeContext": { "alias": "runtimeContext"; "required": false; "isSignal": true; }; "context": { "alias": "context"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
196
204
|
}
|
|
197
205
|
|
|
198
206
|
type PredecessorType = 0 | 1 | 2 | 3;
|
|
@@ -683,14 +683,26 @@ declare class LookupMatrixFieldConfig extends BaseFieldConfig {
|
|
|
683
683
|
emptyMessage?: string;
|
|
684
684
|
});
|
|
685
685
|
}
|
|
686
|
+
interface SchemaConnectionFieldRuntimeContext {
|
|
687
|
+
/**
|
|
688
|
+
* The active plan/template instance id. When present, it is sent as a
|
|
689
|
+
* `templateId` structural filter on every source level's `fetch/query`
|
|
690
|
+
* options request, scoping the dropdown to records owned by this plan.
|
|
691
|
+
* When absent, options load unscoped (back-compat with hosts that don't
|
|
692
|
+
* pass `templateId` to `mt-client-form`).
|
|
693
|
+
*/
|
|
694
|
+
templateId?: number | string | null;
|
|
695
|
+
}
|
|
686
696
|
declare class SchemaConnectionFieldConfig extends BaseFieldConfig {
|
|
687
697
|
configuration: any;
|
|
688
698
|
context: HttpContext | undefined;
|
|
689
699
|
filter: boolean;
|
|
700
|
+
runtimeContext: SchemaConnectionFieldRuntimeContext | null;
|
|
690
701
|
constructor(config: Omit<BaseFieldConstructorConfig, 'type'> & {
|
|
691
702
|
configuration: any;
|
|
692
703
|
context?: HttpContext | undefined;
|
|
693
704
|
filter?: boolean;
|
|
705
|
+
runtimeContext?: SchemaConnectionFieldRuntimeContext | null;
|
|
694
706
|
});
|
|
695
707
|
}
|
|
696
708
|
interface SchedulePredecessorFieldRuntimeContext {
|
|
@@ -1257,4 +1269,4 @@ declare class MTDateFormatPipe implements PipeTransform {
|
|
|
1257
1269
|
}
|
|
1258
1270
|
|
|
1259
1271
|
export { BaseFacade, BaseFieldConfig, CheckboxFieldConfig, ColorPickerFieldConfig, CrudStateBase, DEFAULT_MT_DATE_FORMATS, DS_BLUE, DS_CHART_SERIES, DS_CONTROL_HEIGHT, DS_DEFAULT_PRIMARY_COLOR, DS_ERROR, DS_FONT_FAMILY, DS_GRAY, DS_INDIGO, DS_RADIUS, DS_SEMANTIC, DS_SHADOW, DS_SUCCESS, DS_WARNING, DateFieldConfig, EditorFieldConfig, EntityListFieldConfig, IconFieldConfig, LocationFieldConfig, LookupMatrixFieldConfig, LookupModuleCheckListFieldConfig, MTDateFormatPipe, MT_DATE_FORMATS, MT_DESIGN_IDENTITY_CLASS, MultiSelectFieldConfig, NumberFieldConfig, PickListFieldConfig, READABLE_DARK_INK, REQUEST_CONTEXT, RadioButtonFieldConfig, RadioCardsFieldConfig, ScheduleItemSelectorFieldConfig, SchedulePredecessorFieldConfig, SchemaConnectionFieldConfig, SelectFieldConfig, SliderFieldConfig, SpacerFieldConfig, TextFieldConfig, TextareaFieldConfig, ToggleFieldConfig, UploadFileFieldConfig, UserSearchFieldConfig, ValidatorConfig, WCAG_AA_NORMAL_TEXT, applyDesignIdentityClass, changeBackgroundColor, changePrimaryColor, changeTextColor, clockTimeToSeconds, contrastRatio, createCustomValidator, createEntityAdapter, dsChartSeries, dsIdentityConfigs, endLoading, formatClockTime, generateTailwindPalette, getContrastColor, getLightColor, getMTDesignIdentity, handleApiRequest, isInvalid, newFieldId, parseClockTime, provideMTComponents, provideMTConfirmation, provideMTDateFormats, provideMTMessages, readableTextOn, relativeLuminance, setLoadingError, setMTDesignIdentity, startLoading, toAngularDateFormat, toClockTimeParts, wrapValidatorWithMessage };
|
|
1260
|
-
export type { ApiRequestConfig, BaseFieldConstructorConfig, ClockTimeParts, CrudCreateConfig, CrudDeleteConfig, CrudLoadConfig, CrudUpdateConfig, DSColorScale, DynamicFieldConfig, DynamicFormConfig, EntityAdapter, EntityListFieldRuntimeContext, FieldRelationAction, FieldRelationConfig, FieldState, FieldType, FormulaConditionConfig, FormulaConditionMode, FormulaRuntimeMessage, FormulaRuntimeMessageCode, FormulaValidationRuleConfig, FormulaValidationSeverity, LayoutConfig, LoadingStateShape, LookupCheckListPropertyConfig, LookupMatrixCellConfig, LookupModuleCheckListFieldRuntimeContext, LookupOptionItemConfig, MTDateFormatType, MTDateFormats, MTDesignIdentity, MTThemeOptions, PaletteShade, QueryResult, RequestContextConfig, Response, ResponsiveColSpan, ScheduleItemSelectorFieldRuntimeContext, SchedulePredecessorFieldRuntimeContext, SectionConfig, ValidatorType };
|
|
1272
|
+
export type { ApiRequestConfig, BaseFieldConstructorConfig, ClockTimeParts, CrudCreateConfig, CrudDeleteConfig, CrudLoadConfig, CrudUpdateConfig, DSColorScale, DynamicFieldConfig, DynamicFormConfig, EntityAdapter, EntityListFieldRuntimeContext, FieldRelationAction, FieldRelationConfig, FieldState, FieldType, FormulaConditionConfig, FormulaConditionMode, FormulaRuntimeMessage, FormulaRuntimeMessageCode, FormulaValidationRuleConfig, FormulaValidationSeverity, LayoutConfig, LoadingStateShape, LookupCheckListPropertyConfig, LookupMatrixCellConfig, LookupModuleCheckListFieldRuntimeContext, LookupOptionItemConfig, MTDateFormatType, MTDateFormats, MTDesignIdentity, MTThemeOptions, PaletteShade, QueryResult, RequestContextConfig, Response, ResponsiveColSpan, ScheduleItemSelectorFieldRuntimeContext, SchedulePredecessorFieldRuntimeContext, SchemaConnectionFieldRuntimeContext, SectionConfig, ValidatorType };
|