mn-angular-lib 1.0.27 → 1.0.29

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mn-angular-lib",
3
- "version": "1.0.27",
3
+ "version": "1.0.29",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^21.1.3",
6
6
  "@angular/core": "^21.1.3"
@@ -8,6 +8,7 @@ import { Observable, BehaviorSubject, Subject } from 'rxjs';
8
8
  import * as mn_angular_lib from 'mn-angular-lib';
9
9
  import * as _angular_forms from '@angular/forms';
10
10
  import { ValidationErrors, NgControl, AbstractControl, FormGroup, FormBuilder } from '@angular/forms';
11
+ import { SafeHtml } from '@angular/platform-browser';
11
12
  import { HttpClient, HttpStatusCode, HttpHeaders, HttpErrorResponse, HttpResponse, HttpParams } from '@angular/common/http';
12
13
 
13
14
  declare const mnAlertVariants: tailwind_variants.TVReturnType<{
@@ -148,6 +149,10 @@ declare const mnBadgeVariants: tailwind_variants.TVReturnType<{
148
149
  lg: string;
149
150
  xl: string;
150
151
  };
152
+ variant: {
153
+ default: string;
154
+ fill: string;
155
+ };
151
156
  wrap: {
152
157
  true: string;
153
158
  false: string;
@@ -168,6 +173,10 @@ declare const mnBadgeVariants: tailwind_variants.TVReturnType<{
168
173
  lg: string;
169
174
  xl: string;
170
175
  };
176
+ variant: {
177
+ default: string;
178
+ fill: string;
179
+ };
171
180
  wrap: {
172
181
  true: string;
173
182
  false: string;
@@ -188,6 +197,10 @@ declare const mnBadgeVariants: tailwind_variants.TVReturnType<{
188
197
  lg: string;
189
198
  xl: string;
190
199
  };
200
+ variant: {
201
+ default: string;
202
+ fill: string;
203
+ };
191
204
  wrap: {
192
205
  true: string;
193
206
  false: string;
@@ -206,6 +219,7 @@ type MnBadgeVariants = VariantProps<typeof mnBadgeVariants>;
206
219
 
207
220
  interface MnBadgeTypes {
208
221
  size: MnBadgeVariants['size'];
222
+ variant: MnBadgeVariants['variant'];
209
223
  color: MnBadgeVariants['color'];
210
224
  wrap: MnBadgeVariants['wrap'];
211
225
  }
@@ -236,6 +250,7 @@ declare const mnButtonVariants: tailwind_variants.TVReturnType<{
236
250
  warning: string;
237
251
  success: string;
238
252
  accent: string;
253
+ gray: string;
239
254
  };
240
255
  borderRadius: {
241
256
  none: string;
@@ -274,6 +289,7 @@ declare const mnButtonVariants: tailwind_variants.TVReturnType<{
274
289
  warning: string;
275
290
  success: string;
276
291
  accent: string;
292
+ gray: string;
277
293
  };
278
294
  borderRadius: {
279
295
  none: string;
@@ -312,6 +328,7 @@ declare const mnButtonVariants: tailwind_variants.TVReturnType<{
312
328
  warning: string;
313
329
  success: string;
314
330
  accent: string;
331
+ gray: string;
315
332
  };
316
333
  borderRadius: {
317
334
  none: string;
@@ -4100,6 +4117,8 @@ declare class CalendarViewComponent implements OnInit, OnDestroy {
4100
4117
  goToToday(): void;
4101
4118
  /** Handles the date-picker input change. */
4102
4119
  onDateInputChange(event: Event): void;
4120
+ /** Handles the mn-lib-datetime ngModel change. */
4121
+ onDateStringChange(value: string): void;
4103
4122
  /** Handles a day click from the month view — switches to day view. */
4104
4123
  onMonthDayClick(date: Date): void;
4105
4124
  /** Forwards a child event click to the parent output. */
@@ -4521,6 +4540,78 @@ declare class MnTabComponent implements OnInit {
4521
4540
  static ɵcmp: i0.ɵɵComponentDeclaration<MnTabComponent, "mn-tab", never, { "dataSource": { "alias": "dataSource"; "required": false; }; }, { "activeChange": "activeChange"; }, never, never, true, never>;
4522
4541
  }
4523
4542
 
4543
+ declare const mnIconVariants: tailwind_variants.TVReturnType<{
4544
+ color: {
4545
+ current: string;
4546
+ primary: string;
4547
+ secondary: string;
4548
+ danger: string;
4549
+ warning: string;
4550
+ success: string;
4551
+ accent: string;
4552
+ };
4553
+ }, undefined, "inline-flex shrink-0", {
4554
+ color: {
4555
+ current: string;
4556
+ primary: string;
4557
+ secondary: string;
4558
+ danger: string;
4559
+ warning: string;
4560
+ success: string;
4561
+ accent: string;
4562
+ };
4563
+ }, undefined, tailwind_variants.TVReturnType<{
4564
+ color: {
4565
+ current: string;
4566
+ primary: string;
4567
+ secondary: string;
4568
+ danger: string;
4569
+ warning: string;
4570
+ success: string;
4571
+ accent: string;
4572
+ };
4573
+ }, undefined, "inline-flex shrink-0", unknown, unknown, undefined>>;
4574
+ type MnIconVariants = VariantProps<typeof mnIconVariants>;
4575
+
4576
+ interface MnIconTypes {
4577
+ name: string;
4578
+ size: number;
4579
+ color: MnIconVariants['color'];
4580
+ }
4581
+
4582
+ declare class MnIcon implements OnChanges, OnInit {
4583
+ data: Partial<MnIconTypes>;
4584
+ mnIconPistol: any;
4585
+ private sanitizer;
4586
+ private registry;
4587
+ private el;
4588
+ svgContent: SafeHtml;
4589
+ get iconSize(): number;
4590
+ get hostClasses(): string;
4591
+ private resolvedName;
4592
+ ngOnInit(): void;
4593
+ ngOnChanges(): void;
4594
+ private updateContent;
4595
+ static ɵfac: i0.ɵɵFactoryDeclaration<MnIcon, never>;
4596
+ static ɵcmp: i0.ɵɵComponentDeclaration<MnIcon, "mn-icon", never, { "data": { "alias": "data"; "required": false; }; "mnIconPistol": { "alias": "mnIconPistol"; "required": false; }; }, {}, never, never, true, never>;
4597
+ }
4598
+
4599
+ interface MnIconDefinition {
4600
+ name: string;
4601
+ svg: string;
4602
+ }
4603
+ declare class MnIconRegistry {
4604
+ private icons;
4605
+ register(...icons: MnIconDefinition[]): void;
4606
+ get(name: string): string | undefined;
4607
+ has(name: string): boolean;
4608
+ static ɵfac: i0.ɵɵFactoryDeclaration<MnIconRegistry, never>;
4609
+ static ɵprov: i0.ɵɵInjectableDeclaration<MnIconRegistry>;
4610
+ }
4611
+ declare function mnIconDef(name: string, svg: string): MnIconDefinition;
4612
+
4613
+ declare const MN_ICON_MAP: Record<string, string>;
4614
+
4524
4615
  /**
4525
4616
  * Types for mn-lib configuration.
4526
4617
  */
@@ -5083,5 +5174,5 @@ interface MnPreviewMessage {
5083
5174
  */
5084
5175
  declare function enableMnPreviewMode(configService: MnConfigService, langService: MnLanguageService, allowedOrigins?: string[]): void;
5085
5176
 
5086
- 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_SELECT_CONFIG, MN_TEXTAREA_CONFIG, MnAlertOutletComponent, MnAlertService, MnAlertStore, MnBadge, MnButton, MnCheckbox, MnConfigService, MnConfirmationBodyComponent, MnCustomBodyHostComponent, MnDatetime, MnDualHorizontalImage, MnFormBodyComponent, MnHiddenBelowDirective, 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, mnInformationCardVariants, mnInputFieldVariants, mnMultiSelectVariants, mnSelectVariants, mnTextareaVariants, numberAdapter, pickAdapter, provideMnAlerts, provideMnCalendarConfig, provideMnComponentConfig, provideMnConfig, provideMnLanguage, resolveCalendarConfig };
5087
- 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, 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 };
5177
+ 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, MnIconRegistry, 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, mnIconDef, mnIconVariants, mnInformationCardVariants, mnInputFieldVariants, mnMultiSelectVariants, mnSelectVariants, mnTextareaVariants, numberAdapter, pickAdapter, provideMnAlerts, provideMnCalendarConfig, provideMnComponentConfig, provideMnConfig, provideMnLanguage, resolveCalendarConfig };
5178
+ 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, MnIconDefinition, 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 };