mn-angular-lib 0.0.85 → 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
|
@@ -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>;
|
|
@@ -1833,9 +1821,16 @@ interface TableDataSource<T> {
|
|
|
1833
1821
|
defaultSort?: SortState;
|
|
1834
1822
|
selectionMode?: 'none' | 'single' | 'multi';
|
|
1835
1823
|
selectedRows?: BehaviorSubject<T[]>;
|
|
1824
|
+
/** IDs to pre-select when the table initializes. */
|
|
1825
|
+
initialSelectedIds?: string[];
|
|
1836
1826
|
onRowClick?: (row: T) => void;
|
|
1837
1827
|
appearance?: TableAppearance;
|
|
1838
1828
|
toolbarTemplate?: TemplateRef<any>;
|
|
1829
|
+
labels?: TableLabels;
|
|
1830
|
+
}
|
|
1831
|
+
interface TableLabels {
|
|
1832
|
+
loadMore?: string;
|
|
1833
|
+
rowsPerPage?: string;
|
|
1839
1834
|
}
|
|
1840
1835
|
|
|
1841
1836
|
declare enum ModalKind {
|
|
@@ -2937,6 +2932,10 @@ declare class MnFormBodyComponent<TModel = any, TResult = TModel> implements OnI
|
|
|
2937
2932
|
selectPlaceholder: string;
|
|
2938
2933
|
loading: string;
|
|
2939
2934
|
fileUploadPrompt: string;
|
|
2935
|
+
fieldRequired: string;
|
|
2936
|
+
loadingOptions: string;
|
|
2937
|
+
accepted: string;
|
|
2938
|
+
maxSize: string;
|
|
2940
2939
|
};
|
|
2941
2940
|
ngOnInit(): void;
|
|
2942
2941
|
ngAfterViewInit(): void;
|
|
@@ -3165,6 +3164,22 @@ declare class MnTable<T = any> implements OnInit, OnDestroy, DoCheck {
|
|
|
3165
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>;
|
|
3166
3165
|
}
|
|
3167
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
|
+
|
|
3168
3183
|
/**
|
|
3169
3184
|
* Colour scheme applied to calendar events.
|
|
3170
3185
|
*
|
|
@@ -3215,6 +3230,17 @@ interface CalendarEvent {
|
|
|
3215
3230
|
/** `true` when this segment continues into the next day (multi-day events). */
|
|
3216
3231
|
continuedEnd?: boolean;
|
|
3217
3232
|
}
|
|
3233
|
+
/**
|
|
3234
|
+
* Represents a button displayed in the calendar toolbar's top-right area.
|
|
3235
|
+
*/
|
|
3236
|
+
interface CalendarButton {
|
|
3237
|
+
/** Display label for the button. */
|
|
3238
|
+
label: string;
|
|
3239
|
+
/** Button styling configuration passed to the mnButton directive. */
|
|
3240
|
+
buttonData?: Partial<MnButtonTypes>;
|
|
3241
|
+
/** Callback invoked when the button is clicked. */
|
|
3242
|
+
onClick: () => void;
|
|
3243
|
+
}
|
|
3218
3244
|
/**
|
|
3219
3245
|
* Represents the "current time" indicator rendered as a line in week/day views.
|
|
3220
3246
|
*/
|
|
@@ -3267,6 +3293,8 @@ interface CalendarConfig {
|
|
|
3267
3293
|
todayLabel: string;
|
|
3268
3294
|
/** Title shown above the upcoming-events sidebar. Default: `'Upcoming events'`. */
|
|
3269
3295
|
upcomingEventsTitle: string;
|
|
3296
|
+
/** Message shown when there are no upcoming events. Default: `'No upcoming events'`. */
|
|
3297
|
+
noUpcomingEvents: string;
|
|
3270
3298
|
/** Display labels for each calendar view mode. */
|
|
3271
3299
|
viewLabels: Record<string, string>;
|
|
3272
3300
|
/** Abbreviated day names starting from Monday (length 7). Derived from `locale` when not set. */
|
|
@@ -3441,6 +3469,8 @@ declare class CalendarViewComponent implements OnInit, OnDestroy {
|
|
|
3441
3469
|
showButton: boolean;
|
|
3442
3470
|
/** Label text for the action button. */
|
|
3443
3471
|
buttonTitle: string;
|
|
3472
|
+
/** Array of buttons to display in the toolbar's top-right area. */
|
|
3473
|
+
buttons: CalendarButton[];
|
|
3444
3474
|
/** Custom event renderer component type. */
|
|
3445
3475
|
CalendarEventComponent?: Type<CalendarEventData>;
|
|
3446
3476
|
/** Observable or EventEmitter that pushes new event arrays into the calendar. */
|
|
@@ -3497,7 +3527,7 @@ declare class CalendarViewComponent implements OnInit, OnDestroy {
|
|
|
3497
3527
|
private setFocusDay;
|
|
3498
3528
|
private updateDateInput;
|
|
3499
3529
|
static ɵfac: i0.ɵɵFactoryDeclaration<CalendarViewComponent, [{ optional: true; }, { optional: true; }, { optional: true; }]>;
|
|
3500
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CalendarViewComponent, "app-calendar-view", never, { "showButton": { "alias": "showButton"; "required": false; }; "buttonTitle": { "alias": "buttonTitle"; "required": false; }; "CalendarEventComponent": { "alias": "CalendarEventComponent"; "required": false; }; "NewCalendarItemsEvent": { "alias": "NewCalendarItemsEvent"; "required": false; }; }, { "RequestNewCalendarItemsEvent": "RequestNewCalendarItemsEvent"; "CalendarItemClickedEvent": "CalendarItemClickedEvent"; "ButtonClickedEvent": "ButtonClickedEvent"; }, never, never, true, never>;
|
|
3530
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CalendarViewComponent, "app-calendar-view", never, { "showButton": { "alias": "showButton"; "required": false; }; "buttonTitle": { "alias": "buttonTitle"; "required": false; }; "buttons": { "alias": "buttons"; "required": false; }; "CalendarEventComponent": { "alias": "CalendarEventComponent"; "required": false; }; "NewCalendarItemsEvent": { "alias": "NewCalendarItemsEvent"; "required": false; }; }, { "RequestNewCalendarItemsEvent": "RequestNewCalendarItemsEvent"; "CalendarItemClickedEvent": "CalendarItemClickedEvent"; "ButtonClickedEvent": "ButtonClickedEvent"; }, never, never, true, never>;
|
|
3501
3531
|
}
|
|
3502
3532
|
|
|
3503
3533
|
/**
|
|
@@ -3778,6 +3808,7 @@ declare class UpcomingEventsComponent implements OnInit, OnDestroy {
|
|
|
3778
3808
|
eventClicked: EventEmitter<CalendarEvent>;
|
|
3779
3809
|
upcomingEvents: CalendarEvent[];
|
|
3780
3810
|
title: string;
|
|
3811
|
+
noEventsMessage: string;
|
|
3781
3812
|
private destroy$;
|
|
3782
3813
|
constructor();
|
|
3783
3814
|
ngOnInit(): void;
|
|
@@ -4463,5 +4494,5 @@ interface MnPreviewMessage {
|
|
|
4463
4494
|
*/
|
|
4464
4495
|
declare function enableMnPreviewMode(configService: MnConfigService, langService: MnLanguageService, allowedOrigins?: string[]): void;
|
|
4465
4496
|
|
|
4466
|
-
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,
|
|
4467
|
-
export type { AnimationOptions, ApiError, BaseModalConfig, 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 };
|