mn-angular-lib 0.0.88 → 0.0.90
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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/* All styling uses Tailwind utility classes in the template */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { InjectionToken, Provider, TemplateRef, OnInit, Type, ComponentRef, AfterViewInit, OnDestroy,
|
|
2
|
+
import { InjectionToken, Provider, TemplateRef, OnInit, ElementRef, Type, ComponentRef, AfterViewInit, OnDestroy, ChangeDetectorRef, EventEmitter, QueryList, ViewContainerRef, DoCheck, OnChanges, SimpleChanges, PipeTransform } from '@angular/core';
|
|
3
3
|
export { TemplateRef, Type } from '@angular/core';
|
|
4
4
|
import * as tailwind_variants from 'tailwind-variants';
|
|
5
5
|
import { VariantProps } from 'tailwind-variants';
|
|
@@ -1701,11 +1701,19 @@ declare class MnMultiSelect implements OnInit {
|
|
|
1701
1701
|
private readonly elRef;
|
|
1702
1702
|
private readonly lang;
|
|
1703
1703
|
private readonly destroyRef;
|
|
1704
|
+
/** Reference to the trigger element for positioning the dropdown */
|
|
1705
|
+
triggerRef: ElementRef<HTMLElement>;
|
|
1704
1706
|
/** Currently selected values */
|
|
1705
1707
|
selectedValues: unknown[];
|
|
1706
1708
|
isOpen: boolean;
|
|
1707
1709
|
isDisabled: boolean;
|
|
1708
1710
|
searchTerm: string;
|
|
1711
|
+
/** Dropdown position calculated from trigger bounding rect */
|
|
1712
|
+
dropdownStyle: {
|
|
1713
|
+
top: string;
|
|
1714
|
+
left: string;
|
|
1715
|
+
width: string;
|
|
1716
|
+
};
|
|
1709
1717
|
private onChange;
|
|
1710
1718
|
private onTouched;
|
|
1711
1719
|
private readonly builtInErrorMessages;
|
|
@@ -1717,7 +1725,11 @@ declare class MnMultiSelect implements OnInit {
|
|
|
1717
1725
|
registerOnTouched(fn: any): void;
|
|
1718
1726
|
setDisabledState(isDisabled: boolean): void;
|
|
1719
1727
|
toggle(): void;
|
|
1728
|
+
/** Calculates the fixed position for the dropdown based on the trigger element */
|
|
1729
|
+
private updateDropdownPosition;
|
|
1720
1730
|
onDocumentClick(event: Event): void;
|
|
1731
|
+
/** Closes the dropdown when the page or a scrollable parent is scrolled */
|
|
1732
|
+
onWindowScrollOrResize(): void;
|
|
1721
1733
|
toggleOption(option: MnMultiSelectOption): void;
|
|
1722
1734
|
removeOption(option: MnMultiSelectOption, event: Event): void;
|
|
1723
1735
|
isSelected(option: MnMultiSelectOption): boolean;
|
|
@@ -2867,6 +2879,7 @@ declare class MnModalShellComponent<TResult = any> implements OnInit, AfterViewI
|
|
|
2867
2879
|
asCustom(config: any): any;
|
|
2868
2880
|
asAny(val: any): any;
|
|
2869
2881
|
get hostClasses(): string;
|
|
2882
|
+
/** Triggers the closing animation. Deferred to avoid NG0100 when called during a CD cycle. */
|
|
2870
2883
|
startClosing(): Promise<void>;
|
|
2871
2884
|
onEscapeKey(event: any): void;
|
|
2872
2885
|
onBackdropClick(): void;
|
|
@@ -3185,6 +3198,95 @@ declare class MnHiddenBelowDirective implements OnChanges {
|
|
|
3185
3198
|
static ɵdir: i0.ɵɵDirectiveDeclaration<MnHiddenBelowDirective, "[mnHiddenBelow]", never, { "mnHiddenBelow": { "alias": "mnHiddenBelow"; "required": false; }; }, {}, never, never, true, never>;
|
|
3186
3199
|
}
|
|
3187
3200
|
|
|
3201
|
+
interface ListAppearance {
|
|
3202
|
+
/** Show a divider between items. Defaults to true. */
|
|
3203
|
+
dividers?: boolean;
|
|
3204
|
+
/** Highlight item on hover. Defaults to true. */
|
|
3205
|
+
hover?: boolean;
|
|
3206
|
+
/** Use compact (smaller) padding. */
|
|
3207
|
+
compact?: boolean;
|
|
3208
|
+
/** Show a border around the list. */
|
|
3209
|
+
bordered?: boolean;
|
|
3210
|
+
}
|
|
3211
|
+
interface ListDataSource<T> {
|
|
3212
|
+
dataRows: BehaviorSubject<T[]>;
|
|
3213
|
+
getID: (row: T) => string;
|
|
3214
|
+
/** Template used to render each list item. Receives the item as `$implicit` and `data`. */
|
|
3215
|
+
itemTemplate: TemplateRef<any>;
|
|
3216
|
+
emptyMessage: string;
|
|
3217
|
+
emptyTemplate?: TemplateRef<any>;
|
|
3218
|
+
isDataLoading: boolean;
|
|
3219
|
+
canSearch: boolean;
|
|
3220
|
+
searchPlaceholder?: string;
|
|
3221
|
+
isInSearch?: (row: T, searchValue: string) => boolean;
|
|
3222
|
+
searchForAdditionalItems?: (searchValue: string) => Promise<T[]>;
|
|
3223
|
+
paginationMode?: 'none' | 'load-more' | 'paginated' | 'infinite-scroll';
|
|
3224
|
+
paginationStrategy?: PaginationStrategy;
|
|
3225
|
+
loadAdditionalRows?: () => Promise<T[]>;
|
|
3226
|
+
/** Number of items per page when paginationMode is 'paginated'. Defaults to 10. */
|
|
3227
|
+
pageSize?: number;
|
|
3228
|
+
/** Options for the page-size selector dropdown. Defaults to [5, 10, 25, 50]. */
|
|
3229
|
+
pageSizeOptions?: number[];
|
|
3230
|
+
selectionMode?: 'none' | 'single' | 'multi';
|
|
3231
|
+
selectedRows?: BehaviorSubject<T[]>;
|
|
3232
|
+
/** IDs to pre-select when the list initializes. */
|
|
3233
|
+
initialSelectedIds?: string[];
|
|
3234
|
+
onItemClick?: (item: T) => void;
|
|
3235
|
+
appearance?: ListAppearance;
|
|
3236
|
+
toolbarTemplate?: TemplateRef<any>;
|
|
3237
|
+
labels?: ListLabels;
|
|
3238
|
+
}
|
|
3239
|
+
interface ListLabels {
|
|
3240
|
+
loadMore?: string;
|
|
3241
|
+
rowsPerPage?: string;
|
|
3242
|
+
}
|
|
3243
|
+
|
|
3244
|
+
declare class MnList<T = any> implements OnInit, OnDestroy, DoCheck {
|
|
3245
|
+
dataSource: ListDataSource<T>;
|
|
3246
|
+
selectionChange: EventEmitter<T[]>;
|
|
3247
|
+
itemClick: EventEmitter<T>;
|
|
3248
|
+
filteredItems: T[];
|
|
3249
|
+
paginatedItems: T[];
|
|
3250
|
+
searchValue: string;
|
|
3251
|
+
loadingMoreRows: boolean;
|
|
3252
|
+
selectedIds: Set<string>;
|
|
3253
|
+
currentPage: number;
|
|
3254
|
+
pageSize: number;
|
|
3255
|
+
private cdr;
|
|
3256
|
+
private dataSubscription?;
|
|
3257
|
+
private searchSubject;
|
|
3258
|
+
private searchSubscription?;
|
|
3259
|
+
/** Tracks the previous toolbar template reference for change detection. */
|
|
3260
|
+
private previousToolbarTemplate?;
|
|
3261
|
+
ngDoCheck(): void;
|
|
3262
|
+
ngOnInit(): void;
|
|
3263
|
+
ngOnDestroy(): void;
|
|
3264
|
+
onSearch(searchString: string): void;
|
|
3265
|
+
isSelected(item: T): boolean;
|
|
3266
|
+
toggleItem(item: T): void;
|
|
3267
|
+
toggleAll(): void;
|
|
3268
|
+
get allSelected(): boolean;
|
|
3269
|
+
get hasSelection(): boolean;
|
|
3270
|
+
get isMultiSelect(): boolean;
|
|
3271
|
+
onItemClick(item: T): void;
|
|
3272
|
+
loadMoreRows(): void;
|
|
3273
|
+
get showLoadMore(): boolean;
|
|
3274
|
+
get isPaginated(): boolean;
|
|
3275
|
+
get totalPages(): number;
|
|
3276
|
+
get resolvedPageSizeOptions(): number[];
|
|
3277
|
+
goToPage(page: number): void;
|
|
3278
|
+
onPageSizeChange(newSize: number): void;
|
|
3279
|
+
get visiblePages(): number[];
|
|
3280
|
+
trackByID: (_index: number, item: T) => string;
|
|
3281
|
+
get skeletonRows(): number[];
|
|
3282
|
+
private applyPagination;
|
|
3283
|
+
private applyFilter;
|
|
3284
|
+
private processLoadedRows;
|
|
3285
|
+
private emitSelection;
|
|
3286
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MnList<any>, never>;
|
|
3287
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MnList<any>, "mn-list", never, { "dataSource": { "alias": "dataSource"; "required": false; }; }, { "selectionChange": "selectionChange"; "itemClick": "itemClick"; }, never, never, true, never>;
|
|
3288
|
+
}
|
|
3289
|
+
|
|
3188
3290
|
/**
|
|
3189
3291
|
* Colour scheme applied to calendar events.
|
|
3190
3292
|
*
|
|
@@ -4499,5 +4601,5 @@ interface MnPreviewMessage {
|
|
|
4499
4601
|
*/
|
|
4500
4602
|
declare function enableMnPreviewMode(configService: MnConfigService, langService: MnLanguageService, allowedOrigins?: string[]): void;
|
|
4501
4603
|
|
|
4502
|
-
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 };
|
|
4503
|
-
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 };
|
|
4604
|
+
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, MnList, 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 };
|
|
4605
|
+
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, ListAppearance, ListDataSource, ListLabels, 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 };
|