mn-angular-lib 1.0.52 → 1.0.54
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
|
@@ -13,3 +13,11 @@
|
|
|
13
13
|
--color-brand-800: #5B21B6;
|
|
14
14
|
--color-brand-900: #4C1D95;
|
|
15
15
|
}
|
|
16
|
+
|
|
17
|
+
@utility scrollbar-hide {
|
|
18
|
+
-ms-overflow-style: none; /* IE and Edge */
|
|
19
|
+
scrollbar-width: none; /* Firefox */
|
|
20
|
+
&::-webkit-scrollbar {
|
|
21
|
+
display: none; /* Safari and Chrome */
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -2142,6 +2142,11 @@ interface ColumnDefinition<T> {
|
|
|
2142
2142
|
/** Translation key for the column header. When set, mn-table resolves it via MnLanguageService and keeps it updated on locale change. */
|
|
2143
2143
|
headerKey?: string;
|
|
2144
2144
|
cell: ((row: T) => string) | TemplateRef<any>;
|
|
2145
|
+
/** Alternative cell renderer shown below the given breakpoint. When set, `cell` is hidden below this breakpoint and `cellSm` is shown instead. */
|
|
2146
|
+
cellSm?: {
|
|
2147
|
+
below: 'sm' | 'md' | 'lg';
|
|
2148
|
+
cell: ((row: T) => string) | TemplateRef<any>;
|
|
2149
|
+
};
|
|
2145
2150
|
sortType?: ColumnSortType;
|
|
2146
2151
|
getRawValueToSort?: (row: T) => any;
|
|
2147
2152
|
width?: string;
|
|
@@ -3632,6 +3637,8 @@ declare class MnTable<T = any> implements OnInit, OnDestroy, DoCheck {
|
|
|
3632
3637
|
private applyPagination;
|
|
3633
3638
|
isTemplateRef(value: any): value is TemplateRef<any>;
|
|
3634
3639
|
getCellValue(column: ColumnDefinition<T>, row: T): string;
|
|
3640
|
+
/** Returns the small-screen cell value for a column with cellSm defined. */
|
|
3641
|
+
getCellSmValue(column: ColumnDefinition<T>, row: T): string;
|
|
3635
3642
|
trackByID: (_index: number, row: T) => string;
|
|
3636
3643
|
trackByKey: (_index: number, column: ColumnDefinition<T>) => string;
|
|
3637
3644
|
get tableClasses(): string;
|
|
@@ -3667,6 +3674,44 @@ declare class MnHiddenBelowDirective implements OnChanges {
|
|
|
3667
3674
|
static ɵdir: i0.ɵɵDirectiveDeclaration<MnHiddenBelowDirective, "[mnHiddenBelow]", never, { "mnHiddenBelow": { "alias": "mnHiddenBelow"; "required": false; }; }, {}, never, never, true, never>;
|
|
3668
3675
|
}
|
|
3669
3676
|
|
|
3677
|
+
/**
|
|
3678
|
+
* Attribute directive that hides an element below the given breakpoint and shows it at/above.
|
|
3679
|
+
* Uses `hidden` + `{bp}:inline` so the element is invisible on small screens.
|
|
3680
|
+
*
|
|
3681
|
+
* Usage: `<span [mnShowAbove]="'sm'">`
|
|
3682
|
+
*/
|
|
3683
|
+
declare class MnShowAboveDirective implements OnChanges {
|
|
3684
|
+
/** The breakpoint at/above which the element becomes visible. */
|
|
3685
|
+
mnShowAbove: 'sm' | 'md' | 'lg' | undefined;
|
|
3686
|
+
private readonly el;
|
|
3687
|
+
private readonly renderer;
|
|
3688
|
+
private appliedClasses;
|
|
3689
|
+
/** Static mapping of breakpoints to their full Tailwind class names. */
|
|
3690
|
+
private readonly classMap;
|
|
3691
|
+
ngOnChanges(): void;
|
|
3692
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MnShowAboveDirective, never>;
|
|
3693
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MnShowAboveDirective, "[mnShowAbove]", never, { "mnShowAbove": { "alias": "mnShowAbove"; "required": false; }; }, {}, never, never, true, never>;
|
|
3694
|
+
}
|
|
3695
|
+
|
|
3696
|
+
/**
|
|
3697
|
+
* Attribute directive that shows an element below the given breakpoint and hides it at/above.
|
|
3698
|
+
* Uses `inline` by default + `{bp}:hidden` so the element is only visible on small screens.
|
|
3699
|
+
*
|
|
3700
|
+
* Usage: `<span [mnShowBelow]="'sm'">`
|
|
3701
|
+
*/
|
|
3702
|
+
declare class MnShowBelowDirective implements OnChanges {
|
|
3703
|
+
/** The breakpoint below which the element is visible. */
|
|
3704
|
+
mnShowBelow: 'sm' | 'md' | 'lg' | undefined;
|
|
3705
|
+
private readonly el;
|
|
3706
|
+
private readonly renderer;
|
|
3707
|
+
private appliedClasses;
|
|
3708
|
+
/** Static mapping of breakpoints to their full Tailwind class names. */
|
|
3709
|
+
private readonly classMap;
|
|
3710
|
+
ngOnChanges(): void;
|
|
3711
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MnShowBelowDirective, never>;
|
|
3712
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MnShowBelowDirective, "[mnShowBelow]", never, { "mnShowBelow": { "alias": "mnShowBelow"; "required": false; }; }, {}, never, never, true, never>;
|
|
3713
|
+
}
|
|
3714
|
+
|
|
3670
3715
|
interface ListAppearance {
|
|
3671
3716
|
/** Show a divider between items. Defaults to true. */
|
|
3672
3717
|
dividers?: boolean;
|
|
@@ -4528,6 +4573,16 @@ interface MnTabDataSource {
|
|
|
4528
4573
|
declare class MnTabComponent implements OnInit {
|
|
4529
4574
|
/** Data source containing tab items and default active index. */
|
|
4530
4575
|
dataSource: MnTabDataSource;
|
|
4576
|
+
/**
|
|
4577
|
+
* Whether to enable horizontal scrolling when items overflow.
|
|
4578
|
+
* If true, tabs will scroll horizontally instead of shrinking too much.
|
|
4579
|
+
*/
|
|
4580
|
+
scrollable: boolean;
|
|
4581
|
+
/**
|
|
4582
|
+
* Whether tabs should stretch to fill the available width.
|
|
4583
|
+
* Defaults to false, so tabs only take as much space as their content.
|
|
4584
|
+
*/
|
|
4585
|
+
justified: boolean;
|
|
4531
4586
|
/** Emits the newly activated tab item whenever the active tab changes. */
|
|
4532
4587
|
activeChange: EventEmitter<MnTabItem>;
|
|
4533
4588
|
/** The currently active tab item. */
|
|
@@ -4540,7 +4595,7 @@ declare class MnTabComponent implements OnInit {
|
|
|
4540
4595
|
*/
|
|
4541
4596
|
setActive(item: MnTabItem): void;
|
|
4542
4597
|
static ɵfac: i0.ɵɵFactoryDeclaration<MnTabComponent, never>;
|
|
4543
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MnTabComponent, "mn-tab", never, { "dataSource": { "alias": "dataSource"; "required": false; }; }, { "activeChange": "activeChange"; }, never, never, true, never>;
|
|
4598
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MnTabComponent, "mn-tab", never, { "dataSource": { "alias": "dataSource"; "required": false; }; "scrollable": { "alias": "scrollable"; "required": false; }; "justified": { "alias": "justified"; "required": false; }; }, { "activeChange": "activeChange"; }, never, never, true, never>;
|
|
4544
4599
|
}
|
|
4545
4600
|
|
|
4546
4601
|
declare const mnIconVariants: tailwind_variants.TVReturnType<{
|
|
@@ -5234,5 +5289,5 @@ interface MnPreviewMessage {
|
|
|
5234
5289
|
*/
|
|
5235
5290
|
declare function enableMnPreviewMode(configService: MnConfigService, langService: MnLanguageService, allowedOrigins?: string[]): void;
|
|
5236
5291
|
|
|
5237
|
-
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_ICON_MAP, MN_INPUT_FIELD_CONFIG, MN_INSTANCE_ID, MN_LIB_DUAL_HORIZONTAL_IMAGE, MN_MULTI_SELECT_CONFIG, MN_SECTION_PATH, MN_SELECT_CONFIG, MN_TEXTAREA_CONFIG, MnAlertOutletComponent, MnAlertService, MnAlertStore, MnBadge, MnButton, MnCheckbox, MnConfigService, MnConfirmationBodyComponent, MnCustomBodyHostComponent, MnDatetime, MnDualHorizontalImage, MnFormBodyComponent, MnHiddenBelowDirective, MnHttpService, MnIcon, MnIconAttributes, MnInformationCard, MnInputField, MnInstanceDirective, MnLanguageService, MnList, MnModalRef, MnModalService, MnModalShellComponent, MnMultiSelect, MnSectionDirective, MnSelect, 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, mnBadgeVariants, mnButtonVariants, mnCheckboxVariants, mnCheckboxWrapperVariants, mnDatetimeVariants, mnIconVariants, mnInformationCardVariants, mnInputFieldVariants, mnMultiSelectVariants, mnSelectVariants, mnTextareaVariants, numberAdapter, pickAdapter, provideMnAlerts, provideMnCalendarConfig, provideMnComponentConfig, provideMnConfig, provideMnLanguage, resolveCalendarConfig };
|
|
5292
|
+
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_ICON_MAP, MN_INPUT_FIELD_CONFIG, MN_INSTANCE_ID, MN_LIB_DUAL_HORIZONTAL_IMAGE, MN_MULTI_SELECT_CONFIG, MN_SECTION_PATH, MN_SELECT_CONFIG, MN_TEXTAREA_CONFIG, MnAlertOutletComponent, MnAlertService, MnAlertStore, MnBadge, MnButton, MnCheckbox, MnConfigService, MnConfirmationBodyComponent, MnCustomBodyHostComponent, MnDatetime, MnDualHorizontalImage, MnFormBodyComponent, MnHiddenBelowDirective, MnHttpService, MnIcon, MnIconAttributes, MnInformationCard, MnInputField, MnInstanceDirective, MnLanguageService, MnList, MnModalRef, MnModalService, MnModalShellComponent, MnMultiSelect, MnSectionDirective, MnSelect, MnShowAboveDirective, MnShowBelowDirective, 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, mnBadgeVariants, mnButtonVariants, mnCheckboxVariants, mnCheckboxWrapperVariants, mnDatetimeVariants, mnIconVariants, mnInformationCardVariants, mnInputFieldVariants, mnMultiSelectVariants, mnSelectVariants, mnTextareaVariants, numberAdapter, pickAdapter, provideMnAlerts, provideMnCalendarConfig, provideMnComponentConfig, provideMnConfig, provideMnLanguage, resolveCalendarConfig };
|
|
5238
5293
|
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, FieldRequiredCondition, FieldValidator, FieldVisibilityCondition, FileFieldConfig, FormFieldConfig, FormFieldGroup, FormModalConfig, FormRow, FormRowField, FormValidator, HourRow, ListAppearance, ListDataSource, ListLabels, MnAlert, MnAlertConfig, MnAlertId, MnAlertKind, MnAlertTemplateContext, MnAlertVariants, MnBadgeTypes, MnBadgeVariants, MnButtonTypes, MnButtonVariants, MnCheckboxErrorMessageData, MnCheckboxErrorMessagesData, MnCheckboxProps, MnCheckboxUIConfig, MnCheckboxVariants, MnCheckboxWrapperVariants, MnConfigFile, MnConfigSettings, MnConfigValue, MnDatetimeErrorMessageData, MnDatetimeErrorMessagesData, MnDatetimeMode, MnDatetimeProps, MnDatetimeUIConfig, MnDatetimeVariants, MnDomAttrs, MnDualHorizontalImageConfig, MnDualHorizontalImageTypes, MnErrorMessageData, MnErrorMessagesData, MnIconTypes, MnIconVariants, MnImageType, MnInformationCardBaseData, MnInformationCardData, MnInformationCardVariants, MnInputAdapter, MnInputBaseProps, MnInputDateTimeProps, MnInputFieldProps, MnInputFieldUIConfig, MnInputProps, MnInputType, MnInputVariants, MnLanguageConfig, MnMultiSelectErrorMessageData, MnMultiSelectErrorMessagesData, MnMultiSelectOption, MnMultiSelectProps, MnMultiSelectUIConfig, MnMultiSelectVariants, MnPreviewMessage, MnQueryParams, MnSelectErrorMessageData, MnSelectErrorMessagesData, MnSelectOption, MnSelectProps, MnSelectUIConfig, MnSelectVariants, 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 };
|