mn-angular-lib 1.0.49 → 1.0.51
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
|
@@ -25,7 +25,7 @@ declare const mnAlertVariants: tailwind_variants.TVReturnType<{
|
|
|
25
25
|
outline: string;
|
|
26
26
|
soft: string;
|
|
27
27
|
};
|
|
28
|
-
}, undefined, "flex items-start gap-3 p-4 border rounded-xl shadow-sm transition-all duration-300", {
|
|
28
|
+
}, undefined, "flex items-start gap-3 p-4 border rounded-xl shadow-sm transition-all duration-300 w-full max-sm:rounded-none", {
|
|
29
29
|
kind: {
|
|
30
30
|
success: string;
|
|
31
31
|
info: string;
|
|
@@ -53,7 +53,7 @@ declare const mnAlertVariants: tailwind_variants.TVReturnType<{
|
|
|
53
53
|
outline: string;
|
|
54
54
|
soft: string;
|
|
55
55
|
};
|
|
56
|
-
}, undefined, "flex items-start gap-3 p-4 border rounded-xl shadow-sm transition-all duration-300", unknown, unknown, undefined>>;
|
|
56
|
+
}, undefined, "flex items-start gap-3 p-4 border rounded-xl shadow-sm transition-all duration-300 w-full max-sm:rounded-none", unknown, unknown, undefined>>;
|
|
57
57
|
type MnAlertVariants = VariantProps<typeof mnAlertVariants>;
|
|
58
58
|
|
|
59
59
|
type MnAlertId = string;
|
|
@@ -1076,7 +1076,7 @@ declare const mnTextareaVariants: tailwind_variants.TVReturnType<{
|
|
|
1076
1076
|
horizontal: string;
|
|
1077
1077
|
both: string;
|
|
1078
1078
|
};
|
|
1079
|
-
}, undefined, "bg-base-100 border-1 border-base-300 placeholder-base-content/50 text-base-content text-sm", {
|
|
1079
|
+
}, undefined, "bg-base-100 border-1 border-base-300 placeholder-base-content/50 text-base-content text-sm outline-none focus:ring-1 focus:ring-primary", {
|
|
1080
1080
|
shadow: {
|
|
1081
1081
|
true: string;
|
|
1082
1082
|
};
|
|
@@ -1134,7 +1134,7 @@ declare const mnTextareaVariants: tailwind_variants.TVReturnType<{
|
|
|
1134
1134
|
horizontal: string;
|
|
1135
1135
|
both: string;
|
|
1136
1136
|
};
|
|
1137
|
-
}, undefined, "bg-base-100 border-1 border-base-300 placeholder-base-content/50 text-base-content text-sm", unknown, unknown, undefined>>;
|
|
1137
|
+
}, undefined, "bg-base-100 border-1 border-base-300 placeholder-base-content/50 text-base-content text-sm outline-none focus:ring-1 focus:ring-primary", unknown, unknown, undefined>>;
|
|
1138
1138
|
type MnTextareaVariants = VariantProps<typeof mnTextareaVariants>;
|
|
1139
1139
|
|
|
1140
1140
|
/**
|
|
@@ -5013,6 +5013,74 @@ declare abstract class CrudService<TEntity, TListResponse = TEntity[], TCreatePa
|
|
|
5013
5013
|
*/
|
|
5014
5014
|
declare const API_BASE_URL: InjectionToken<string>;
|
|
5015
5015
|
|
|
5016
|
+
/** A single query parameter value. */
|
|
5017
|
+
type MnQueryValue = string | number | boolean | null | undefined;
|
|
5018
|
+
/** A record of query parameter key-value pairs. Arrays are appended as multiple entries. */
|
|
5019
|
+
type MnQueryParams = Record<string, MnQueryValue | MnQueryValue[]>;
|
|
5020
|
+
/**
|
|
5021
|
+
* Lightweight abstract HTTP base class that removes common boilerplate
|
|
5022
|
+
* from API services.
|
|
5023
|
+
*
|
|
5024
|
+
* Provides typed `get`, `post`, `patch`, `put`, and `delete` methods
|
|
5025
|
+
* that return Promises, automatic query-param building, and base-URL
|
|
5026
|
+
* injection via the `API_BASE_URL` token.
|
|
5027
|
+
*
|
|
5028
|
+
* Subclass this directly for services with static or mixed endpoints.
|
|
5029
|
+
* No CRUD structure is imposed — every method accepts a free-form path.
|
|
5030
|
+
*/
|
|
5031
|
+
declare abstract class MnHttpService {
|
|
5032
|
+
/** Angular HTTP client injected automatically. */
|
|
5033
|
+
protected readonly http: HttpClient;
|
|
5034
|
+
/** Base API URL provided via the `API_BASE_URL` injection token. */
|
|
5035
|
+
protected readonly baseUrl: string;
|
|
5036
|
+
/**
|
|
5037
|
+
* Sends a typed GET request.
|
|
5038
|
+
* @param path The path appended to the base URL.
|
|
5039
|
+
* @param query Optional query parameters.
|
|
5040
|
+
* @returns A promise resolving to the typed response body.
|
|
5041
|
+
*/
|
|
5042
|
+
protected get<T>(path: string, query?: MnQueryParams): Promise<T>;
|
|
5043
|
+
/**
|
|
5044
|
+
* Sends a typed POST request.
|
|
5045
|
+
* @param path The path appended to the base URL.
|
|
5046
|
+
* @param body Optional request body.
|
|
5047
|
+
* @param query Optional query parameters.
|
|
5048
|
+
* @returns A promise resolving to the typed response body.
|
|
5049
|
+
*/
|
|
5050
|
+
protected post<T>(path: string, body?: unknown, query?: MnQueryParams): Promise<T>;
|
|
5051
|
+
/**
|
|
5052
|
+
* Sends a typed PATCH request.
|
|
5053
|
+
* @param path The path appended to the base URL.
|
|
5054
|
+
* @param body Optional request body.
|
|
5055
|
+
* @param query Optional query parameters.
|
|
5056
|
+
* @returns A promise resolving to the typed response body.
|
|
5057
|
+
*/
|
|
5058
|
+
protected patch<T>(path: string, body?: unknown, query?: MnQueryParams): Promise<T>;
|
|
5059
|
+
/**
|
|
5060
|
+
* Sends a typed PUT request.
|
|
5061
|
+
* @param path The path appended to the base URL.
|
|
5062
|
+
* @param body Optional request body.
|
|
5063
|
+
* @param query Optional query parameters.
|
|
5064
|
+
* @returns A promise resolving to the typed response body.
|
|
5065
|
+
*/
|
|
5066
|
+
protected put<T>(path: string, body?: unknown, query?: MnQueryParams): Promise<T>;
|
|
5067
|
+
/**
|
|
5068
|
+
* Sends a typed DELETE request.
|
|
5069
|
+
* @param path The path appended to the base URL.
|
|
5070
|
+
* @param query Optional query parameters.
|
|
5071
|
+
* @returns A promise resolving to the typed response body.
|
|
5072
|
+
*/
|
|
5073
|
+
protected delete<T = void>(path: string, query?: MnQueryParams): Promise<T>;
|
|
5074
|
+
/**
|
|
5075
|
+
* Converts a query-params record to Angular `HttpParams`.
|
|
5076
|
+
* Null and undefined values are silently skipped.
|
|
5077
|
+
* Array values are appended as multiple entries for the same key.
|
|
5078
|
+
* @param query The query parameter record to convert.
|
|
5079
|
+
* @returns An `HttpParams` instance, or `undefined` when no parameters are provided.
|
|
5080
|
+
*/
|
|
5081
|
+
protected toHttpParams(query?: MnQueryParams): HttpParams | undefined;
|
|
5082
|
+
}
|
|
5083
|
+
|
|
5016
5084
|
/**
|
|
5017
5085
|
* A marker object used in config values to indicate that the value
|
|
5018
5086
|
* should be resolved via the MnLanguageService.
|
|
@@ -5166,5 +5234,5 @@ interface MnPreviewMessage {
|
|
|
5166
5234
|
*/
|
|
5167
5235
|
declare function enableMnPreviewMode(configService: MnConfigService, langService: MnLanguageService, allowedOrigins?: string[]): void;
|
|
5168
5236
|
|
|
5169
|
-
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, 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 };
|
|
5170
|
-
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, 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 };
|
|
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 };
|
|
5238
|
+
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 };
|