mn-angular-lib 1.0.135 → 1.0.136

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.135",
3
+ "version": "1.0.136",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^21.1.3",
6
6
  "@angular/core": "^21.1.3"
@@ -3656,29 +3656,14 @@ type TableAppearance = {
3656
3656
  * - `select` → `string` (single choice; empty string means "no filter")
3657
3657
  * - `multi-select` → `string[]` (OR semantics across the chosen values)
3658
3658
  * - `boolean` → `boolean` (tri-state: any / true / false)
3659
- * - `number-range` → {@link NumberRangeFilterValue}
3660
- * - `date-range` → {@link DateRangeFilterValue}
3661
3659
  */
3662
- type ColumnFilterType = 'text' | 'select' | 'multi-select' | 'boolean' | 'number-range' | 'date-range';
3660
+ type ColumnFilterType = 'text' | 'select' | 'multi-select' | 'boolean';
3663
3661
  type ColumnFilterOption = {
3664
3662
  label: string;
3665
3663
  value: string;
3666
3664
  };
3667
- /** Inclusive numeric bounds; either side may be omitted for an open-ended range. */
3668
- type NumberRangeFilterValue = {
3669
- min?: number;
3670
- max?: number;
3671
- };
3672
- /**
3673
- * Inclusive date bounds as `YYYY-MM-DD` strings (the format the underlying
3674
- * date control emits); either side may be omitted for an open-ended range.
3675
- */
3676
- type DateRangeFilterValue = {
3677
- from?: string;
3678
- to?: string;
3679
- };
3680
3665
  /** Every value shape a column filter can hold, discriminated by {@link ColumnFilterType}. */
3681
- type ColumnFilterValue = string | string[] | boolean | NumberRangeFilterValue | DateRangeFilterValue;
3666
+ type ColumnFilterValue = string | string[] | boolean;
3682
3667
  /** Map of column key to its current filter value. */
3683
3668
  type ColumnFilterState = Record<string, ColumnFilterValue | undefined>;
3684
3669
  /**
@@ -3760,16 +3745,6 @@ type ColumnFilterConfig<T> = (ColumnFilterCommon & {
3760
3745
  filterOptions?: never;
3761
3746
  /** Custom predicate. Receives the row and the chosen true/false state. */
3762
3747
  filterFn?: (row: T, filterValue: boolean) => boolean;
3763
- }) | (ColumnFilterCommon & {
3764
- filterType: 'number-range';
3765
- filterOptions?: never;
3766
- /** Custom predicate. Receives the row and the inclusive numeric bounds. */
3767
- filterFn?: (row: T, filterValue: NumberRangeFilterValue) => boolean;
3768
- }) | (ColumnFilterCommon & {
3769
- filterType: 'date-range';
3770
- filterOptions?: never;
3771
- /** Custom predicate. Receives the row and the inclusive `YYYY-MM-DD` bounds. */
3772
- filterFn?: (row: T, filterValue: DateRangeFilterValue) => boolean;
3773
3748
  }) | {
3774
3749
  filterable?: false;
3775
3750
  filterType?: never;
@@ -3827,18 +3802,6 @@ type TableDataSource<T> = MnSelectableCollectionDataSource<T> & {
3827
3802
  * every locale change.
3828
3803
  */
3829
3804
  type MnTableFilterLabels = {
3830
- /** Lower bound of a number range. Defaults to "Min". */
3831
- min?: string;
3832
- minKey?: string;
3833
- /** Upper bound of a number range. Defaults to "Max". */
3834
- max?: string;
3835
- maxKey?: string;
3836
- /** Start of a date range. Defaults to "From". */
3837
- from?: string;
3838
- fromKey?: string;
3839
- /** End of a date range. Defaults to "To". */
3840
- to?: string;
3841
- toKey?: string;
3842
3805
  /** Unset option of a boolean filter. Defaults to "Any". */
3843
3806
  any?: string;
3844
3807
  anyKey?: string;
@@ -3861,8 +3824,6 @@ type MnTableFilterLabels = {
3861
3824
  /** @deprecated Use {@link MnCollectionLabels}. */
3862
3825
  type TableLabels = MnCollectionLabels;
3863
3826
 
3864
- /** Which bound of a range filter an input edits. */
3865
- type RangeBound = 'min' | 'max' | 'from' | 'to';
3866
3827
  declare class MnTable<T = object> extends MnSelectableCollectionBase<T, TableDataSource<T>> {
3867
3828
  sortChange: EventEmitter<SortState | null>;
3868
3829
  rowClick: EventEmitter<T>;
@@ -3871,8 +3832,6 @@ declare class MnTable<T = object> extends MnSelectableCollectionBase<T, TableDat
3871
3832
  columnFilters: ColumnFilterState;
3872
3833
  /** Viewport width (px) below which the inline filter row collapses into a panel. */
3873
3834
  private static readonly FILTER_COLLAPSE_WIDTH;
3874
- /** Bounds rendered by a number-range filter, in input order. */
3875
- protected readonly numberBounds: RangeBound[];
3876
3835
  /**
3877
3836
  * True when the viewport is narrow enough that the per-column filter inputs no
3878
3837
  * longer fit under their headers; the inline row is then replaced by a toggle
@@ -3884,8 +3843,6 @@ declare class MnTable<T = object> extends MnSelectableCollectionBase<T, TableDat
3884
3843
  protected readonly componentName = "MnTable";
3885
3844
  protected get trackedToolbarTemplate(): TemplateRef<unknown> | undefined;
3886
3845
  protected collectionBody?: ElementRef<HTMLElement>;
3887
- /** Bounds rendered by a date-range filter, in input order. */
3888
- protected readonly dateBounds: RangeBound[];
3889
3846
  /** Debounces server-side text filters so typing doesn't fire a request per keystroke. */
3890
3847
  private readonly filterDebounce;
3891
3848
  /**
@@ -3914,8 +3871,6 @@ declare class MnTable<T = object> extends MnSelectableCollectionBase<T, TableDat
3914
3871
  * every other type commits immediately.
3915
3872
  */
3916
3873
  onColumnFilter(column: ColumnDefinition<T>, value: ColumnFilterValue): void;
3917
- /** Updates one bound of a range filter, leaving the other side untouched. */
3918
- onRangeFilter(column: ColumnDefinition<T>, bound: RangeBound, raw: string): void;
3919
3874
  /** Updates a tri-state boolean filter from its select ('' = any). */
3920
3875
  onBooleanFilter(column: ColumnDefinition<T>, raw: string): void;
3921
3876
  /** The effective filter type of a column, defaulting to text. */
@@ -3934,10 +3889,6 @@ declare class MnTable<T = object> extends MnSelectableCollectionBase<T, TableDat
3934
3889
  multiFilterValue(column: ColumnDefinition<T>): string[];
3935
3890
  /** Current boolean filter value for a column, as the select's string value. */
3936
3891
  booleanFilterValue(column: ColumnDefinition<T>): string;
3937
- /** Current value of one bound of a range filter, as an input-ready string. */
3938
- rangeFilterValue(column: ColumnDefinition<T>, bound: RangeBound): string;
3939
- /** Label for a range filter bound, falling back to the English default. */
3940
- rangeBoundLabel(bound: RangeBound): string;
3941
3892
  /** Resets every column filter and re-applies (or re-requests) filtering. */
3942
3893
  clearAllFilters(): void;
3943
3894
  /** Whether any column has filtering enabled. */
@@ -4146,10 +4097,10 @@ declare class MnTable<T = object> extends MnSelectableCollectionBase<T, TableDat
4146
4097
  /** The reset/unset value for a filter type. */
4147
4098
  declare function emptyFilterValue(type: ColumnFilterType): ColumnFilterValue;
4148
4099
  /**
4149
- * Whether a filter value should actually narrow the rows. Empty strings, empty
4150
- * arrays and ranges with neither bound set are inactive; `false` on a boolean
4151
- * filter is active (it means "show only the false rows"), which is why a plain
4152
- * truthiness check is not enough.
4100
+ * Whether a filter value should actually narrow the rows. Empty strings and
4101
+ * empty arrays are inactive; `false` on a boolean filter is active (it means
4102
+ * "show only the false rows"), which is why a plain truthiness check is not
4103
+ * enough.
4153
4104
  */
4154
4105
  declare function isFilterValueActive(value: ColumnFilterValue | undefined): boolean;
4155
4106
  /**
@@ -4165,11 +4116,6 @@ declare function resolveFilterableValue<T>(column: ColumnDefinition<T>, row: T):
4165
4116
  * - `select` — exact string equality
4166
4117
  * - `multi-select` — equality against any selected value (OR)
4167
4118
  * - `boolean` — truthiness of the raw value equals the chosen state
4168
- * - `number-range` / `date-range` — inclusive bounds, each side optional
4169
- *
4170
- * A row whose raw value cannot be interpreted for the type (a non-numeric value
4171
- * under a number range, an unparsable date) is excluded rather than kept, so an
4172
- * active filter never silently passes rows it cannot evaluate.
4173
4119
  */
4174
4120
  declare function defaultFilterPredicate(type: ColumnFilterType, raw: unknown, value: ColumnFilterValue): boolean;
4175
4121
  /**
@@ -5888,7 +5834,10 @@ declare class MnList<T = unknown> extends MnSelectableCollectionBase<T, ListData
5888
5834
  * Breakpoints match Tailwind defaults: sm 640px, md 768px, lg 1024px, xl 1280px.
5889
5835
  */
5890
5836
  type GridLayout = {
5891
- /** Explicit column count per breakpoint. Each falls back to the next-smaller one. */
5837
+ /**
5838
+ * Explicit column count per breakpoint. Each falls back to the next-smaller one.
5839
+ * Counts are clamped to 1–12, the range Tailwind's `grid-cols-*` utilities cover.
5840
+ */
5892
5841
  cols?: {
5893
5842
  base?: number;
5894
5843
  sm?: number;
@@ -5956,6 +5905,20 @@ declare class MnGrid<T = unknown> extends MnCollectionBase<T, GridDataSource<T>>
5956
5905
  protected readonly componentName = "MnGrid";
5957
5906
  /** Whether the grid uses auto-fit (minCardWidth) instead of explicit columns. */
5958
5907
  get isAutoLayout(): boolean;
5908
+ /**
5909
+ * Classes for the card container: `grid` plus one column utility per
5910
+ * breakpoint the consumer configured. Omitted for the auto-fit layout, whose
5911
+ * columns come from {@link autoTemplateColumns} instead.
5912
+ */
5913
+ get gridClasses(): string;
5914
+ /** Gap between cards. */
5915
+ get gridGap(): string;
5916
+ /**
5917
+ * Inline `grid-template-columns` for the auto-fit layout, or null when explicit
5918
+ * `cols` are used (the utilities in {@link gridClasses} then own the columns).
5919
+ * `minCardWidth` is a free-form CSS length, so it can only be expressed inline.
5920
+ */
5921
+ get autoTemplateColumns(): string | null;
5959
5922
  /** Skeleton lines for the default/lines placeholder; null when a custom template is used. */
5960
5923
  get skeletonLines(): Partial<MnSkeletonProps>[];
5961
5924
  /**
@@ -7395,4 +7358,4 @@ type MnPreviewMessage = {
7395
7358
  declare function enableMnPreviewMode(configService: MnConfigService, langService: MnLanguageService, allowedOrigins?: string[]): void;
7396
7359
 
7397
7360
  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_HAPTICS, MN_ICON_MAP, MN_INPUT_FIELD_CONFIG, MN_INSTANCE_ID, MN_LIB_DUAL_HORIZONTAL_IMAGE, MN_MODAL_ACTION_ICONS, MN_MULTI_SELECT_CONFIG, MN_SECTION_PATH, MN_SELECT_CONFIG, MN_TEXTAREA_CONFIG, MODAL_ACTION_ICON_SIZE, MODAL_ACTION_ICON_SIZE_SM, MnAlertOutletComponent, MnAlertService, MnAlertStore, MnBadge, MnButton, MnCheckbox, MnCollectionBase, MnCollectionPagination, MnCollectionState, MnConfigService, MnConfirmationBodyComponent, MnCustomBodyHostComponent, MnDateSelectorBar, MnDatetime, MnDualHorizontalImage, MnFileInput, MnFormBodyComponent, MnGrid, MnHiddenBelowDirective, MnHttpService, MnIcon, MnIconAttributes, MnInformationCard, MnInputField, MnInstanceDirective, MnLanguageService, MnList, MnModalRef, MnModalService, MnModalShellComponent, MnMultiSelect, MnSectionDirective, MnSelect, MnSelectableCollectionBase, MnShowAboveDirective, MnShowBelowDirective, MnSkeleton, MnTabComponent, MnTable, MnTextarea, MnTranslatePipe, MnWizardBodyComponent, ModalBuilder, ModalCloseReason, ModalIntent, ModalKind, ModalSize, NavigationDirection, OptionState, SelectionMode, StepBuilder, StepState, SubmitMode, UpcomingEventRowComponent, UpcomingEventsComponent, ValidationCode, ValidationStatus, WizardFlowMode, WizardModalBuilder, dateTimeAdapter, defaultFilterPredicate, defaultIconForStyle, defaultTextAdapter, emptyFilterValue, enableMnPreviewMode, isFilterValueActive, isTranslatable, matchesColumnFilter, mnAlertVariants, mnBadgeVariants, mnButtonVariants, mnCheckboxVariants, mnCheckboxWrapperVariants, mnDatetimeVariants, mnFileInputVariants, mnIconVariants, mnInformationCardVariants, mnInputFieldVariants, mnMultiSelectVariants, mnSelectVariants, mnSkeletonVariants, mnTextareaVariants, numberAdapter, pickAdapter, provideMnAlerts, provideMnCalendarConfig, provideMnComponentConfig, provideMnConfig, provideMnLanguage, resolveCalendarConfig, resolveFilterableValue };
7398
- export type { AnimationOptions, ApiError, BaseModalConfig, CalendarButton, CalendarConfig, CalendarDateFormatter, CalendarEvent, CalendarEventData, CancellationActionConfig, CheckboxFieldConfig, ColorFieldConfig, ColorPreset, ColumnBase, ColumnDay, ColumnDefinition, ColumnFilterOption, ColumnFilterState, ColumnFilterType, ColumnFilterValue, ColumnSkeleton, ConfirmationActionConfig, ConfirmationModalConfig, CrudConfig, CurrentTimeCalendarEvent, CursorPaginationStrategy, CustomFieldConfig, CustomModalConfig, DateFieldConfig, DateRangeFilterValue, DateSelectorBarLayout, DatetimeFieldConfig, DayTile, FailureResult, FieldDataSource, FieldRequiredCondition, FieldValidator, FieldVisibilityCondition, FileFieldConfig, FormFieldConfig, FormFieldGroup, FormModalConfig, FormRow, FormRowField, FormValidator, GridDataSource, GridLayout, GridSkeleton, HourRow, ListAppearance, ListDataSource, ListLabels, ListSkeleton, MnAlert, MnAlertConfig, MnAlertId, MnAlertKind, MnAlertTemplateContext, MnAlertVariants, MnBadgeTypes, MnBadgeVariants, MnButtonTypes, MnButtonVariants, MnCheckboxErrorMessageData, MnCheckboxErrorMessagesData, MnCheckboxProps, MnCheckboxUIConfig, MnCheckboxVariants, MnCheckboxWrapperVariants, MnCollectionDataSource, MnCollectionLabels, MnColumnFilter, MnConfigFile, MnConfigSettings, MnConfigValue, MnDatetimeErrorMessageData, MnDatetimeErrorMessagesData, MnDatetimeMode, MnDatetimeProps, MnDatetimeUIConfig, MnDatetimeVariants, MnDomAttrs, MnDualHorizontalImageConfig, MnDualHorizontalImageTypes, MnErrorMessageData, MnErrorMessageFn, MnErrorMessagesData, MnFileDisplayItem, MnFileInputDisplayMode, MnFileInputErrorMessageData, MnFileInputErrorMessagesData, MnFileInputProps, MnFileInputUIConfig, MnFileInputVariants, MnHapticStyle, MnHapticsHandler, MnIconTypes, MnIconVariants, MnImageType, MnInformationCardBaseData, MnInformationCardData, MnInformationCardVariants, MnInputAdapter, MnInputBaseProps, MnInputDateTimeProps, MnInputFieldProps, MnInputFieldUIConfig, MnInputProps, MnInputType, MnInputVariants, MnLanguageConfig, MnMultiSelectErrorMessageData, MnMultiSelectErrorMessagesData, MnMultiSelectOption, MnMultiSelectProps, MnMultiSelectUIConfig, MnMultiSelectVariants, MnPageSlot, MnPreviewMessage, MnQueryParams, MnSelectErrorMessageData, MnSelectErrorMessagesData, MnSelectOption, MnSelectProps, MnSelectUIConfig, MnSelectVariants, MnSelectableCollectionDataSource, MnShowInput, MnSkeletonProps, MnSkeletonShape, MnSkeletonVariantProps, MnTabDataSource, MnTabItem, MnTableFilterLabels, MnTextareaErrorMessageData, MnTextareaErrorMessagesData, MnTextareaProps, MnTextareaUIConfig, MnTextareaVariants, MnTranslatable, MnTranslationMap, MnTranslations, MnValidationErrorArgs, ModalCancelHandler, ModalCloseEvent, ModalConfig, ModalFooterAction, ModalI18nLabels, ModalInputMap, ModalPollingConfig, ModalRef, ModalResultHandler, ModalStepId, MonthItem, MultiSelectFieldConfig, MultiSelectTableFieldConfig, NumberFieldConfig, NumberRangeFilterValue, OffsetPaginationStrategy, PaginationMode, 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 };
7361
+ export type { AnimationOptions, ApiError, BaseModalConfig, CalendarButton, CalendarConfig, CalendarDateFormatter, CalendarEvent, CalendarEventData, CancellationActionConfig, CheckboxFieldConfig, ColorFieldConfig, ColorPreset, ColumnBase, ColumnDay, ColumnDefinition, ColumnFilterOption, ColumnFilterState, ColumnFilterType, ColumnFilterValue, ColumnSkeleton, ConfirmationActionConfig, ConfirmationModalConfig, CrudConfig, CurrentTimeCalendarEvent, CursorPaginationStrategy, CustomFieldConfig, CustomModalConfig, DateFieldConfig, DateSelectorBarLayout, DatetimeFieldConfig, DayTile, FailureResult, FieldDataSource, FieldRequiredCondition, FieldValidator, FieldVisibilityCondition, FileFieldConfig, FormFieldConfig, FormFieldGroup, FormModalConfig, FormRow, FormRowField, FormValidator, GridDataSource, GridLayout, GridSkeleton, HourRow, ListAppearance, ListDataSource, ListLabels, ListSkeleton, MnAlert, MnAlertConfig, MnAlertId, MnAlertKind, MnAlertTemplateContext, MnAlertVariants, MnBadgeTypes, MnBadgeVariants, MnButtonTypes, MnButtonVariants, MnCheckboxErrorMessageData, MnCheckboxErrorMessagesData, MnCheckboxProps, MnCheckboxUIConfig, MnCheckboxVariants, MnCheckboxWrapperVariants, MnCollectionDataSource, MnCollectionLabels, MnColumnFilter, MnConfigFile, MnConfigSettings, MnConfigValue, MnDatetimeErrorMessageData, MnDatetimeErrorMessagesData, MnDatetimeMode, MnDatetimeProps, MnDatetimeUIConfig, MnDatetimeVariants, MnDomAttrs, MnDualHorizontalImageConfig, MnDualHorizontalImageTypes, MnErrorMessageData, MnErrorMessageFn, MnErrorMessagesData, MnFileDisplayItem, MnFileInputDisplayMode, MnFileInputErrorMessageData, MnFileInputErrorMessagesData, MnFileInputProps, MnFileInputUIConfig, MnFileInputVariants, MnHapticStyle, MnHapticsHandler, MnIconTypes, MnIconVariants, MnImageType, MnInformationCardBaseData, MnInformationCardData, MnInformationCardVariants, MnInputAdapter, MnInputBaseProps, MnInputDateTimeProps, MnInputFieldProps, MnInputFieldUIConfig, MnInputProps, MnInputType, MnInputVariants, MnLanguageConfig, MnMultiSelectErrorMessageData, MnMultiSelectErrorMessagesData, MnMultiSelectOption, MnMultiSelectProps, MnMultiSelectUIConfig, MnMultiSelectVariants, MnPageSlot, MnPreviewMessage, MnQueryParams, MnSelectErrorMessageData, MnSelectErrorMessagesData, MnSelectOption, MnSelectProps, MnSelectUIConfig, MnSelectVariants, MnSelectableCollectionDataSource, MnShowInput, MnSkeletonProps, MnSkeletonShape, MnSkeletonVariantProps, MnTabDataSource, MnTabItem, MnTableFilterLabels, MnTextareaErrorMessageData, MnTextareaErrorMessagesData, MnTextareaProps, MnTextareaUIConfig, MnTextareaVariants, MnTranslatable, MnTranslationMap, MnTranslations, MnValidationErrorArgs, ModalCancelHandler, ModalCloseEvent, ModalConfig, ModalFooterAction, ModalI18nLabels, ModalInputMap, ModalPollingConfig, ModalRef, ModalResultHandler, ModalStepId, MonthItem, MultiSelectFieldConfig, MultiSelectTableFieldConfig, NumberFieldConfig, OffsetPaginationStrategy, PaginationMode, 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 };
@@ -1,63 +0,0 @@
1
- /*
2
- * Responsive card grid driven by CSS custom properties set inline by the
3
- * component. Dynamic Tailwind classes (e.g. md:grid-cols-3) can't be used: the
4
- * consuming app's JIT can't see runtime values and would drop them. Breakpoints
5
- * match Tailwind defaults (sm 640, md 768, lg 1024, xl 1280).
6
- *
7
- * Each `--mn-grid-cols-*` falls back to the next-smaller breakpoint so consumers
8
- * only set the breakpoints they care about.
9
- */
10
- :host {
11
- display: block;
12
- }
13
-
14
- .mn-grid {
15
- display: grid;
16
- gap: var(--mn-grid-gap, 1rem);
17
- grid-template-columns: repeat(var(--mn-grid-cols-base, 1), minmax(0, 1fr));
18
- }
19
-
20
- @media (min-width: 640px) {
21
- .mn-grid {
22
- grid-template-columns: repeat(
23
- var(--mn-grid-cols-sm, var(--mn-grid-cols-base, 1)),
24
- minmax(0, 1fr)
25
- );
26
- }
27
- }
28
-
29
- @media (min-width: 768px) {
30
- .mn-grid {
31
- grid-template-columns: repeat(
32
- var(--mn-grid-cols-md, var(--mn-grid-cols-sm, var(--mn-grid-cols-base, 1))),
33
- minmax(0, 1fr)
34
- );
35
- }
36
- }
37
-
38
- @media (min-width: 1024px) {
39
- .mn-grid {
40
- grid-template-columns: repeat(
41
- var(--mn-grid-cols-lg, var(--mn-grid-cols-md, var(--mn-grid-cols-sm, var(--mn-grid-cols-base, 1)))),
42
- minmax(0, 1fr)
43
- );
44
- }
45
- }
46
-
47
- @media (min-width: 1280px) {
48
- .mn-grid {
49
- grid-template-columns: repeat(
50
- var(--mn-grid-cols-xl, var(--mn-grid-cols-lg, var(--mn-grid-cols-md, var(--mn-grid-cols-sm, var(--mn-grid-cols-base, 1))))),
51
- minmax(0, 1fr)
52
- );
53
- }
54
- }
55
-
56
- /*
57
- * auto-fit layout (minCardWidth). Two classes → higher specificity than the
58
- * single-class media-query rules above, so it wins at every width regardless of
59
- * any `cols` vars that may also be set.
60
- */
61
- .mn-grid.mn-grid--auto {
62
- grid-template-columns: repeat(auto-fit, minmax(var(--mn-grid-min, 18rem), 1fr));
63
- }