@masterteam/components 0.0.189 → 0.0.191

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.
@@ -1079,6 +1079,25 @@ class EntityListFieldConfig extends BaseFieldConfig {
1079
1079
  this.context = config.context;
1080
1080
  }
1081
1081
  }
1082
+ class ScheduleItemSelectorFieldConfig extends BaseFieldConfig {
1083
+ /** Property key — used in the options endpoint route `forms/options/{propertyKey}`. */
1084
+ propertyKey;
1085
+ /** `Single` renders a single-select picker, `Multi` a multi-select picker. */
1086
+ selectionMode;
1087
+ /** Raw property configuration (selectionMode, scheduleModuleKey, etc.). */
1088
+ configuration;
1089
+ /** Runtime ids needed to call the options endpoint. */
1090
+ runtimeContext;
1091
+ context;
1092
+ constructor(config) {
1093
+ super({ ...config, type: 'schedule-item-selector' });
1094
+ this.propertyKey = config.propertyKey || config.key || '';
1095
+ this.selectionMode = config.selectionMode || 'Multi';
1096
+ this.configuration = config.configuration ?? null;
1097
+ this.runtimeContext = config.runtimeContext ?? null;
1098
+ this.context = config.context;
1099
+ }
1100
+ }
1082
1101
  function createCustomValidator(customValidator, message) {
1083
1102
  return (control) => {
1084
1103
  const result = customValidator(control.value, control);
@@ -1536,5 +1555,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImpor
1536
1555
  * Generated bundle index. Do not edit.
1537
1556
  */
1538
1557
 
1539
- export { BaseFacade, BaseFieldConfig, CheckboxFieldConfig, ColorPickerFieldConfig, CrudStateBase, DEFAULT_MT_DATE_FORMATS, DateFieldConfig, EditorFieldConfig, EntityListFieldConfig, IconFieldConfig, LocationFieldConfig, LookupMatrixFieldConfig, MTDateFormatPipe, MT_DATE_FORMATS, MultiSelectFieldConfig, NumberFieldConfig, PickListFieldConfig, REQUEST_CONTEXT, RadioButtonFieldConfig, RadioCardsFieldConfig, SchedulePredecessorFieldConfig, SchemaConnectionFieldConfig, SelectFieldConfig, SliderFieldConfig, SpacerFieldConfig, TextFieldConfig, TextareaFieldConfig, ToggleFieldConfig, UploadFileFieldConfig, UserSearchFieldConfig, ValidatorConfig, changeBackgroundColor, changePrimaryColor, changeTextColor, createCustomValidator, createEntityAdapter, endLoading, generateTailwindPalette, getContrastColor, getLightColor, handleApiRequest, isInvalid, provideMTComponents, provideMTConfirmation, provideMTDateFormats, provideMTMessages, setLoadingError, startLoading, toAngularDateFormat, wrapValidatorWithMessage };
1558
+ export { BaseFacade, BaseFieldConfig, CheckboxFieldConfig, ColorPickerFieldConfig, CrudStateBase, DEFAULT_MT_DATE_FORMATS, DateFieldConfig, EditorFieldConfig, EntityListFieldConfig, IconFieldConfig, LocationFieldConfig, LookupMatrixFieldConfig, MTDateFormatPipe, MT_DATE_FORMATS, MultiSelectFieldConfig, NumberFieldConfig, PickListFieldConfig, REQUEST_CONTEXT, RadioButtonFieldConfig, RadioCardsFieldConfig, ScheduleItemSelectorFieldConfig, SchedulePredecessorFieldConfig, SchemaConnectionFieldConfig, SelectFieldConfig, SliderFieldConfig, SpacerFieldConfig, TextFieldConfig, TextareaFieldConfig, ToggleFieldConfig, UploadFileFieldConfig, UserSearchFieldConfig, ValidatorConfig, changeBackgroundColor, changePrimaryColor, changeTextColor, createCustomValidator, createEntityAdapter, endLoading, generateTailwindPalette, getContrastColor, getLightColor, handleApiRequest, isInvalid, provideMTComponents, provideMTConfirmation, provideMTDateFormats, provideMTMessages, setLoadingError, startLoading, toAngularDateFormat, wrapValidatorWithMessage };
1540
1559
  //# sourceMappingURL=masterteam-components.mjs.map