mn-angular-lib 0.0.86 → 0.0.87

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mn-angular-lib",
3
- "version": "0.0.86",
3
+ "version": "0.0.87",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^21.1.3",
6
6
  "@angular/core": "^21.1.3"
@@ -141,11 +141,6 @@ declare class MnAlertOutletComponent {
141
141
  static ɵcmp: i0.ɵɵComponentDeclaration<MnAlertOutletComponent, "mn-alert-outlet", never, { "template": { "alias": "template"; "required": false; }; }, {}, never, never, true, never>;
142
142
  }
143
143
 
144
- declare class Test {
145
- static ɵfac: i0.ɵɵFactoryDeclaration<Test, never>;
146
- static ɵcmp: i0.ɵɵComponentDeclaration<Test, "lib-test", never, {}, {}, never, never, true, never>;
147
- }
148
-
149
144
  declare const mnButtonVariants: tailwind_variants.TVReturnType<{
150
145
  size: {
151
146
  sm: string;
@@ -819,17 +814,6 @@ declare const numberAdapter: MnInputAdapter<number | null>;
819
814
  */
820
815
  declare function pickAdapter(type: MnInputType): MnInputAdapter<any>;
821
816
 
822
- interface TestConfig {
823
- text?: string;
824
- color?: string;
825
- }
826
- declare const MN_TEST_COMPONENT_CONFIG: InjectionToken<TestConfig>;
827
- declare class MnTestComponent {
828
- readonly cfg: TestConfig;
829
- static ɵfac: i0.ɵɵFactoryDeclaration<MnTestComponent, never>;
830
- static ɵcmp: i0.ɵɵComponentDeclaration<MnTestComponent, "mn-test-component", never, {}, {}, never, never, true, never>;
831
- }
832
-
833
817
  interface MnDualHorizontalImageTypes {
834
818
  id: string;
835
819
  url: string;
@@ -838,6 +822,7 @@ interface MnDualHorizontalImageTypes {
838
822
 
839
823
  interface MnDualHorizontalImageConfig {
840
824
  images?: MnDualHorizontalImageTypes[];
825
+ noImagesFound?: string;
841
826
  }
842
827
  declare const MN_LIB_DUAL_HORIZONTAL_IMAGE: InjectionToken<MnDualHorizontalImageConfig>;
843
828
  declare class MnDualHorizontalImage {
@@ -923,6 +908,7 @@ interface MnImageType {
923
908
  url: string;
924
909
  alt?: string;
925
910
  }
911
+
926
912
  interface MnInformationCardBaseData {
927
913
  id: number;
928
914
  bottomBorder?: MnInformationCardVariants['bottomBorder'];
@@ -1700,6 +1686,8 @@ interface MnMultiSelectUIConfig {
1700
1686
  * These override built-in error messages but are overridden by props.errorMessages.
1701
1687
  */
1702
1688
  errorMessages?: Record<string, string>;
1689
+ /** Text shown when no options match the search filter */
1690
+ noOptionsFound?: string;
1703
1691
  }
1704
1692
 
1705
1693
  declare const MN_MULTI_SELECT_CONFIG: InjectionToken<MnMultiSelectUIConfig>;
@@ -1838,6 +1826,11 @@ interface TableDataSource<T> {
1838
1826
  onRowClick?: (row: T) => void;
1839
1827
  appearance?: TableAppearance;
1840
1828
  toolbarTemplate?: TemplateRef<any>;
1829
+ labels?: TableLabels;
1830
+ }
1831
+ interface TableLabels {
1832
+ loadMore?: string;
1833
+ rowsPerPage?: string;
1841
1834
  }
1842
1835
 
1843
1836
  declare enum ModalKind {
@@ -2939,6 +2932,10 @@ declare class MnFormBodyComponent<TModel = any, TResult = TModel> implements OnI
2939
2932
  selectPlaceholder: string;
2940
2933
  loading: string;
2941
2934
  fileUploadPrompt: string;
2935
+ fieldRequired: string;
2936
+ loadingOptions: string;
2937
+ accepted: string;
2938
+ maxSize: string;
2942
2939
  };
2943
2940
  ngOnInit(): void;
2944
2941
  ngAfterViewInit(): void;
@@ -3167,6 +3164,22 @@ declare class MnTable<T = any> implements OnInit, OnDestroy, DoCheck {
3167
3164
  static ɵcmp: i0.ɵɵComponentDeclaration<MnTable<any>, "mn-table", never, { "dataSource": { "alias": "dataSource"; "required": false; }; }, { "sortChange": "sortChange"; "selectionChange": "selectionChange"; "rowClick": "rowClick"; }, never, never, true, never>;
3168
3165
  }
3169
3166
 
3167
+ /**
3168
+ * Attribute directive that applies responsive-hiding classes to table cells/headers.
3169
+ * Hides the element by default and shows it as `table-cell` at the specified breakpoint.
3170
+ *
3171
+ * Usage: `<td [mnHiddenBelow]="column.hiddenBelow">`
3172
+ */
3173
+ declare class MnHiddenBelowDirective implements OnChanges {
3174
+ mnHiddenBelow: 'sm' | 'md' | 'lg' | undefined;
3175
+ private readonly el;
3176
+ private readonly renderer;
3177
+ private appliedClasses;
3178
+ ngOnChanges(): void;
3179
+ static ɵfac: i0.ɵɵFactoryDeclaration<MnHiddenBelowDirective, never>;
3180
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MnHiddenBelowDirective, "[mnHiddenBelow]", never, { "mnHiddenBelow": { "alias": "mnHiddenBelow"; "required": false; }; }, {}, never, never, true, never>;
3181
+ }
3182
+
3170
3183
  /**
3171
3184
  * Colour scheme applied to calendar events.
3172
3185
  *
@@ -3223,8 +3236,8 @@ interface CalendarEvent {
3223
3236
  interface CalendarButton {
3224
3237
  /** Display label for the button. */
3225
3238
  label: string;
3226
- /** CSS class(es) applied to the button (e.g. 'btn btn-sm btn-primary'). */
3227
- cssClass?: string;
3239
+ /** Button styling configuration passed to the mnButton directive. */
3240
+ buttonData?: Partial<MnButtonTypes>;
3228
3241
  /** Callback invoked when the button is clicked. */
3229
3242
  onClick: () => void;
3230
3243
  }
@@ -3280,6 +3293,8 @@ interface CalendarConfig {
3280
3293
  todayLabel: string;
3281
3294
  /** Title shown above the upcoming-events sidebar. Default: `'Upcoming events'`. */
3282
3295
  upcomingEventsTitle: string;
3296
+ /** Message shown when there are no upcoming events. Default: `'No upcoming events'`. */
3297
+ noUpcomingEvents: string;
3283
3298
  /** Display labels for each calendar view mode. */
3284
3299
  viewLabels: Record<string, string>;
3285
3300
  /** Abbreviated day names starting from Monday (length 7). Derived from `locale` when not set. */
@@ -3793,6 +3808,7 @@ declare class UpcomingEventsComponent implements OnInit, OnDestroy {
3793
3808
  eventClicked: EventEmitter<CalendarEvent>;
3794
3809
  upcomingEvents: CalendarEvent[];
3795
3810
  title: string;
3811
+ noEventsMessage: string;
3796
3812
  private destroy$;
3797
3813
  constructor();
3798
3814
  ngOnInit(): void;
@@ -4478,5 +4494,5 @@ interface MnPreviewMessage {
4478
4494
  */
4479
4495
  declare function enableMnPreviewMode(configService: MnConfigService, langService: MnLanguageService, allowedOrigins?: string[]): void;
4480
4496
 
4481
- export { API_BASE_URL, ActionStyle, BackdropMode, BaseModalBuilder, CALENDAR_CONFIG, CALENDAR_DATE_FORMATTER, CalendarDayComponent, CalendarEventComponent, CalendarEventDefaultComponent, CalendarEventLayoutService, CalendarMonthComponent, CalendarUtility, CalendarView, CalendarViewComponent, CalendarWeekComponent, CloseMode, ColumnSortType, ConfirmationModalBuilder, ConfirmationTone, CrudService, CustomModalBuilder, DEFAULT_CALENDAR_CONFIG, DEFAULT_MN_ALERT_CONFIG, DefaultCalendarDateFormatter, FieldAppearance, FieldKind, FormLayoutMode, FormModalBuilder, KeyboardMode, MN_ALERT_CONFIG, MN_CALENDAR_COMPONENT_NAME, MN_CALENDAR_CONFIG, MN_CHECKBOX_CONFIG, MN_DATETIME_CONFIG, MN_INPUT_FIELD_CONFIG, MN_INSTANCE_ID, MN_LIB_DUAL_HORIZONTAL_IMAGE, MN_MULTI_SELECT_CONFIG, MN_SECTION_PATH, MN_TEST_COMPONENT_CONFIG, MN_TEXTAREA_CONFIG, MnAlertOutletComponent, MnAlertService, MnAlertStore, MnButton, MnCheckbox, MnConfigService, MnConfirmationBodyComponent, MnCustomBodyHostComponent, MnDatetime, MnDualHorizontalImage, MnFormBodyComponent, MnInformationCard, MnInputField, MnInstanceDirective, MnLanguageService, MnModalRef, MnModalService, MnModalShellComponent, MnMultiSelect, MnSectionDirective, MnTabComponent, MnTable, MnTestComponent, MnTextarea, MnTranslatePipe, MnWizardBodyComponent, ModalBuilder, ModalCloseReason, ModalIntent, ModalKind, ModalSize, NavigationDirection, OptionState, SelectionMode, StepBuilder, StepState, SubmitMode, Test, UpcomingEventRowComponent, UpcomingEventsComponent, ValidationCode, ValidationStatus, WizardFlowMode, WizardModalBuilder, dateTimeAdapter, defaultTextAdapter, enableMnPreviewMode, isTranslatable, mnAlertVariants, mnButtonVariants, mnCheckboxVariants, mnDatetimeVariants, mnInformationCardVariants, mnInputFieldVariants, mnMultiSelectVariants, mnTextareaVariants, numberAdapter, pickAdapter, provideMnAlerts, provideMnCalendarConfig, provideMnComponentConfig, provideMnConfig, provideMnLanguage, resolveCalendarConfig };
4482
- export type { AnimationOptions, ApiError, BaseModalConfig, CalendarButton, CalendarConfig, CalendarDateFormatter, CalendarEvent, CalendarEventData, CancellationActionConfig, CheckboxFieldConfig, ColorFieldConfig, ColorPreset, ColumnDay, ColumnDefinition, ColumnFilterOption, ColumnFilterState, ColumnFilterType, ConfirmationActionConfig, ConfirmationModalConfig, CrudConfig, CurrentTimeCalendarEvent, CursorPaginationStrategy, CustomFieldConfig, CustomModalConfig, DateFieldConfig, DatetimeFieldConfig, FailureResult, FieldDataSource, FieldValidator, FieldVisibilityCondition, FileFieldConfig, FormFieldConfig, FormFieldGroup, FormModalConfig, FormRow, FormRowField, FormValidator, HourRow, MnAlert, MnAlertConfig, MnAlertId, MnAlertKind, MnAlertTemplateContext, MnAlertVariants, MnButtonTypes, MnButtonVariants, MnCheckboxErrorMessageData, MnCheckboxErrorMessagesData, MnCheckboxProps, MnCheckboxUIConfig, MnCheckboxVariants, MnConfigFile, MnConfigSettings, MnConfigValue, MnDatetimeErrorMessageData, MnDatetimeErrorMessagesData, MnDatetimeMode, MnDatetimeProps, MnDatetimeUIConfig, MnDatetimeVariants, MnDomAttrs, MnDualHorizontalImageConfig, MnDualHorizontalImageTypes, MnErrorMessageData, MnErrorMessagesData, MnImageType, MnInformationCardBaseData, MnInformationCardData, MnInformationCardVariants, MnInputAdapter, MnInputBaseProps, MnInputDateTimeProps, MnInputFieldProps, MnInputFieldUIConfig, MnInputProps, MnInputType, MnInputVariants, MnLanguageConfig, MnMultiSelectErrorMessageData, MnMultiSelectErrorMessagesData, MnMultiSelectOption, MnMultiSelectProps, MnMultiSelectUIConfig, MnMultiSelectVariants, MnPreviewMessage, MnShowInput, MnTabDataSource, MnTabItem, MnTextareaErrorMessageData, MnTextareaErrorMessagesData, MnTextareaProps, MnTextareaUIConfig, MnTextareaVariants, MnTranslatable, MnTranslationMap, MnTranslations, ModalCancelHandler, ModalCloseEvent, ModalConfig, ModalFooterAction, ModalI18nLabels, ModalInputMap, ModalPollingConfig, ModalRef, ModalResultHandler, ModalStepId, MonthItem, MultiSelectFieldConfig, MultiSelectTableFieldConfig, NumberFieldConfig, OffsetPaginationStrategy, PaginationStrategy, PasswordFieldConfig, Primitive, QueryParams, QueryValue, RatingFieldConfig, Result, ResultMeta, SelectFieldConfig, SelectOption, SingleSelectTableFieldConfig, SliderFieldConfig, SortState, StepBodyConfig, StepGuard, StepValidator, SuccessResult, TableAppearance, TableDataSource, TextFieldConfig, TextareaFieldConfig, ValidationResult, WizardBeforeCompleteValidator, WizardModalConfig, WizardResult, WizardStepChangeEvent, WizardStepChangeHandler, WizardStepConfig };
4497
+ export { API_BASE_URL, ActionStyle, BackdropMode, BaseModalBuilder, CALENDAR_CONFIG, CALENDAR_DATE_FORMATTER, CalendarDayComponent, CalendarEventComponent, CalendarEventDefaultComponent, CalendarEventLayoutService, CalendarMonthComponent, CalendarUtility, CalendarView, CalendarViewComponent, CalendarWeekComponent, CloseMode, ColumnSortType, ConfirmationModalBuilder, ConfirmationTone, CrudService, CustomModalBuilder, DEFAULT_CALENDAR_CONFIG, DEFAULT_MN_ALERT_CONFIG, DefaultCalendarDateFormatter, FieldAppearance, FieldKind, FormLayoutMode, FormModalBuilder, KeyboardMode, MN_ALERT_CONFIG, MN_CALENDAR_COMPONENT_NAME, MN_CALENDAR_CONFIG, MN_CHECKBOX_CONFIG, MN_DATETIME_CONFIG, MN_INPUT_FIELD_CONFIG, MN_INSTANCE_ID, MN_LIB_DUAL_HORIZONTAL_IMAGE, MN_MULTI_SELECT_CONFIG, MN_SECTION_PATH, MN_TEXTAREA_CONFIG, MnAlertOutletComponent, MnAlertService, MnAlertStore, MnButton, MnCheckbox, MnConfigService, MnConfirmationBodyComponent, MnCustomBodyHostComponent, MnDatetime, MnDualHorizontalImage, MnFormBodyComponent, MnHiddenBelowDirective, MnInformationCard, MnInputField, MnInstanceDirective, MnLanguageService, MnModalRef, MnModalService, MnModalShellComponent, MnMultiSelect, MnSectionDirective, MnTabComponent, MnTable, MnTextarea, MnTranslatePipe, MnWizardBodyComponent, ModalBuilder, ModalCloseReason, ModalIntent, ModalKind, ModalSize, NavigationDirection, OptionState, SelectionMode, StepBuilder, StepState, SubmitMode, UpcomingEventRowComponent, UpcomingEventsComponent, ValidationCode, ValidationStatus, WizardFlowMode, WizardModalBuilder, dateTimeAdapter, defaultTextAdapter, enableMnPreviewMode, isTranslatable, mnAlertVariants, mnButtonVariants, mnCheckboxVariants, mnDatetimeVariants, mnInformationCardVariants, mnInputFieldVariants, mnMultiSelectVariants, mnTextareaVariants, numberAdapter, pickAdapter, provideMnAlerts, provideMnCalendarConfig, provideMnComponentConfig, provideMnConfig, provideMnLanguage, resolveCalendarConfig };
4498
+ export type { AnimationOptions, ApiError, BaseModalConfig, CalendarButton, CalendarConfig, CalendarDateFormatter, CalendarEvent, CalendarEventData, CancellationActionConfig, CheckboxFieldConfig, ColorFieldConfig, ColorPreset, ColumnDay, ColumnDefinition, ColumnFilterOption, ColumnFilterState, ColumnFilterType, ConfirmationActionConfig, ConfirmationModalConfig, CrudConfig, CurrentTimeCalendarEvent, CursorPaginationStrategy, CustomFieldConfig, CustomModalConfig, DateFieldConfig, DatetimeFieldConfig, FailureResult, FieldDataSource, FieldValidator, FieldVisibilityCondition, FileFieldConfig, FormFieldConfig, FormFieldGroup, FormModalConfig, FormRow, FormRowField, FormValidator, HourRow, MnAlert, MnAlertConfig, MnAlertId, MnAlertKind, MnAlertTemplateContext, MnAlertVariants, MnButtonTypes, MnButtonVariants, MnCheckboxErrorMessageData, MnCheckboxErrorMessagesData, MnCheckboxProps, MnCheckboxUIConfig, MnCheckboxVariants, MnConfigFile, MnConfigSettings, MnConfigValue, MnDatetimeErrorMessageData, MnDatetimeErrorMessagesData, MnDatetimeMode, MnDatetimeProps, MnDatetimeUIConfig, MnDatetimeVariants, MnDomAttrs, MnDualHorizontalImageConfig, MnDualHorizontalImageTypes, MnErrorMessageData, MnErrorMessagesData, MnImageType, MnInformationCardBaseData, MnInformationCardData, MnInformationCardVariants, MnInputAdapter, MnInputBaseProps, MnInputDateTimeProps, MnInputFieldProps, MnInputFieldUIConfig, MnInputProps, MnInputType, MnInputVariants, MnLanguageConfig, MnMultiSelectErrorMessageData, MnMultiSelectErrorMessagesData, MnMultiSelectOption, MnMultiSelectProps, MnMultiSelectUIConfig, MnMultiSelectVariants, MnPreviewMessage, MnShowInput, MnTabDataSource, MnTabItem, MnTextareaErrorMessageData, MnTextareaErrorMessagesData, MnTextareaProps, MnTextareaUIConfig, MnTextareaVariants, MnTranslatable, MnTranslationMap, MnTranslations, ModalCancelHandler, ModalCloseEvent, ModalConfig, ModalFooterAction, ModalI18nLabels, ModalInputMap, ModalPollingConfig, ModalRef, ModalResultHandler, ModalStepId, MonthItem, MultiSelectFieldConfig, MultiSelectTableFieldConfig, NumberFieldConfig, OffsetPaginationStrategy, PaginationStrategy, PasswordFieldConfig, Primitive, QueryParams, QueryValue, RatingFieldConfig, Result, ResultMeta, SelectFieldConfig, SelectOption, SingleSelectTableFieldConfig, SliderFieldConfig, SortState, StepBodyConfig, StepGuard, StepValidator, SuccessResult, TableAppearance, TableDataSource, TableLabels, TextFieldConfig, TextareaFieldConfig, ValidationResult, WizardBeforeCompleteValidator, WizardModalConfig, WizardResult, WizardStepChangeEvent, WizardStepChangeHandler, WizardStepConfig };
@@ -1,3 +0,0 @@
1
- p {
2
- color: var(--mn-primary);
3
- }