mn-angular-lib 0.0.62 → 0.0.64
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
|
@@ -17,6 +17,7 @@ declare const mnAlertVariants: tailwind_variants.TVReturnType<{
|
|
|
17
17
|
warning: string;
|
|
18
18
|
error: string;
|
|
19
19
|
default: string;
|
|
20
|
+
accent: string;
|
|
20
21
|
};
|
|
21
22
|
variant: {
|
|
22
23
|
fill: string;
|
|
@@ -30,6 +31,7 @@ declare const mnAlertVariants: tailwind_variants.TVReturnType<{
|
|
|
30
31
|
warning: string;
|
|
31
32
|
error: string;
|
|
32
33
|
default: string;
|
|
34
|
+
accent: string;
|
|
33
35
|
};
|
|
34
36
|
variant: {
|
|
35
37
|
fill: string;
|
|
@@ -43,6 +45,7 @@ declare const mnAlertVariants: tailwind_variants.TVReturnType<{
|
|
|
43
45
|
warning: string;
|
|
44
46
|
error: string;
|
|
45
47
|
default: string;
|
|
48
|
+
accent: string;
|
|
46
49
|
};
|
|
47
50
|
variant: {
|
|
48
51
|
fill: string;
|
|
@@ -160,6 +163,7 @@ declare const mnButtonVariants: tailwind_variants.TVReturnType<{
|
|
|
160
163
|
danger: string;
|
|
161
164
|
warning: string;
|
|
162
165
|
success: string;
|
|
166
|
+
accent: string;
|
|
163
167
|
};
|
|
164
168
|
borderRadius: {
|
|
165
169
|
none: string;
|
|
@@ -192,6 +196,7 @@ declare const mnButtonVariants: tailwind_variants.TVReturnType<{
|
|
|
192
196
|
danger: string;
|
|
193
197
|
warning: string;
|
|
194
198
|
success: string;
|
|
199
|
+
accent: string;
|
|
195
200
|
};
|
|
196
201
|
borderRadius: {
|
|
197
202
|
none: string;
|
|
@@ -224,6 +229,7 @@ declare const mnButtonVariants: tailwind_variants.TVReturnType<{
|
|
|
224
229
|
danger: string;
|
|
225
230
|
warning: string;
|
|
226
231
|
success: string;
|
|
232
|
+
accent: string;
|
|
227
233
|
};
|
|
228
234
|
borderRadius: {
|
|
229
235
|
none: string;
|
|
@@ -1781,6 +1787,11 @@ interface TableAppearance {
|
|
|
1781
1787
|
compact?: boolean;
|
|
1782
1788
|
bordered?: boolean;
|
|
1783
1789
|
}
|
|
1790
|
+
type ColumnFilterType = 'text' | 'select';
|
|
1791
|
+
interface ColumnFilterOption {
|
|
1792
|
+
label: string;
|
|
1793
|
+
value: string;
|
|
1794
|
+
}
|
|
1784
1795
|
interface ColumnDefinition<T> {
|
|
1785
1796
|
key: string;
|
|
1786
1797
|
header: string | TemplateRef<any>;
|
|
@@ -1790,6 +1801,16 @@ interface ColumnDefinition<T> {
|
|
|
1790
1801
|
width?: string;
|
|
1791
1802
|
align?: 'left' | 'center' | 'right';
|
|
1792
1803
|
hiddenBelow?: 'sm' | 'md' | 'lg';
|
|
1804
|
+
/** Whether this column supports per-column filtering. */
|
|
1805
|
+
filterable?: boolean;
|
|
1806
|
+
/** Type of filter input: 'text' for free-text, 'select' for dropdown. Defaults to 'text'. */
|
|
1807
|
+
filterType?: ColumnFilterType;
|
|
1808
|
+
/** Options for 'select' filter type. */
|
|
1809
|
+
filterOptions?: ColumnFilterOption[];
|
|
1810
|
+
/** Placeholder text for the filter input. */
|
|
1811
|
+
filterPlaceholder?: string;
|
|
1812
|
+
/** Custom filter function. Receives the row and the current filter value. */
|
|
1813
|
+
filterFn?: (row: T, filterValue: string) => boolean;
|
|
1793
1814
|
}
|
|
1794
1815
|
interface TableDataSource<T> {
|
|
1795
1816
|
dataRows: BehaviorSubject<T[]>;
|
|
@@ -3046,6 +3067,8 @@ declare class MnCustomBodyHostComponent implements OnInit {
|
|
|
3046
3067
|
static ɵcmp: i0.ɵɵComponentDeclaration<MnCustomBodyHostComponent, "mn-custom-body-host", never, { "config": { "alias": "config"; "required": false; }; "modalRef": { "alias": "modalRef"; "required": false; }; }, {}, never, never, true, never>;
|
|
3047
3068
|
}
|
|
3048
3069
|
|
|
3070
|
+
/** Map of column key to its current filter value. */
|
|
3071
|
+
type ColumnFilterState = Record<string, string>;
|
|
3049
3072
|
declare class MnTable<T = any> implements OnInit, OnDestroy, DoCheck {
|
|
3050
3073
|
dataSource: TableDataSource<T>;
|
|
3051
3074
|
sortChange: EventEmitter<SortState | null>;
|
|
@@ -3056,6 +3079,8 @@ declare class MnTable<T = any> implements OnInit, OnDestroy, DoCheck {
|
|
|
3056
3079
|
loadingMoreRows: boolean;
|
|
3057
3080
|
currentSort: SortState | null;
|
|
3058
3081
|
selectedIds: Set<string>;
|
|
3082
|
+
/** Per-column filter values keyed by column key. */
|
|
3083
|
+
columnFilters: ColumnFilterState;
|
|
3059
3084
|
private cdr;
|
|
3060
3085
|
private dataSubscription?;
|
|
3061
3086
|
private searchSubject;
|
|
@@ -3070,6 +3095,10 @@ declare class MnTable<T = any> implements OnInit, OnDestroy, DoCheck {
|
|
|
3070
3095
|
ngOnInit(): void;
|
|
3071
3096
|
ngOnDestroy(): void;
|
|
3072
3097
|
onSearch(searchString: string): void;
|
|
3098
|
+
/** Whether any column has filtering enabled. */
|
|
3099
|
+
get hasColumnFilters(): boolean;
|
|
3100
|
+
/** Updates a column filter value and re-applies filtering. */
|
|
3101
|
+
onColumnFilter(columnKey: string, value: string): void;
|
|
3073
3102
|
sort(column: ColumnDefinition<T>): void;
|
|
3074
3103
|
getSortIcon(column: ColumnDefinition<T>): string;
|
|
3075
3104
|
isSortable(column: ColumnDefinition<T>): boolean;
|
|
@@ -4352,4 +4381,4 @@ interface MnPreviewMessage {
|
|
|
4352
4381
|
declare function enableMnPreviewMode(configService: MnConfigService, langService: MnLanguageService, allowedOrigins?: string[]): void;
|
|
4353
4382
|
|
|
4354
4383
|
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, 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 };
|
|
4355
|
-
export type { AnimationOptions, ApiError, BaseModalConfig, CalendarConfig, CalendarDateFormatter, CalendarEvent, CalendarEventData, CancellationActionConfig, CheckboxFieldConfig, ColorFieldConfig, ColorPreset, ColumnDay, ColumnDefinition, 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, 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, TableRowAction, TextFieldConfig, TextareaFieldConfig, ValidationResult, WizardBeforeCompleteValidator, WizardModalConfig, WizardResult, WizardStepChangeEvent, WizardStepChangeHandler, WizardStepConfig };
|
|
4384
|
+
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, 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, TableRowAction, TextFieldConfig, TextareaFieldConfig, ValidationResult, WizardBeforeCompleteValidator, WizardModalConfig, WizardResult, WizardStepChangeEvent, WizardStepChangeHandler, WizardStepConfig };
|