@openmfp/ngx 0.12.11 → 0.12.13

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": "@openmfp/ngx",
3
- "version": "0.12.11",
3
+ "version": "0.12.13",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/openmfp/webcomponents.git"
@@ -3,8 +3,8 @@ import { OnInit, OnDestroy, Type } from '@angular/core';
3
3
  import { FormGroup, FormControl } from '@angular/forms';
4
4
  import * as _openmfp_ngx from '@openmfp/ngx';
5
5
  import { Input } from '@fundamental-ngx/ui5-webcomponents/input';
6
+ import { Breakpoint, GridStackOptions } from 'gridstack';
6
7
  import { SafeHtml } from '@angular/platform-browser';
7
- import { GridStackOptions } from 'gridstack';
8
8
  import { nodesCB } from 'gridstack/dist/angular';
9
9
 
10
10
  /** Subset of fields of a generic resource that the table/form components rely on. */
@@ -426,6 +426,16 @@ interface DashboardConfig {
426
426
  editButtonFirst?: boolean;
427
427
  }
428
428
 
429
+ /**
430
+ * Layout strategy applied at each breakpoint when Gridstack changes column
431
+ * count. See ColumnOptions in gridstack/dist/types.d.ts:27 for the full set.
432
+ */
433
+ type LayoutStrategy = 'compact' | 'list' | 'none';
434
+ /** Single source of truth for grid + section breakpoints (TypeScript half). */
435
+ declare const DASHBOARD_BREAKPOINTS: ReadonlyArray<Readonly<Required<Pick<Breakpoint, 'w' | 'c'>> & {
436
+ layout: LayoutStrategy;
437
+ }>>;
438
+
429
439
  declare class Dashboard implements OnInit, OnDestroy {
430
440
  static registerAngularComponents(componentTypes: Type<unknown>[]): void;
431
441
  config: _angular_core.InputSignal<DashboardConfig>;
@@ -640,7 +650,15 @@ declare class DashboardCard {
640
650
  declare class DashboardSection {
641
651
  section: _angular_core.InputSignal<SectionConfig>;
642
652
  cards: _angular_core.InputSignal<CardConfig[]>;
643
- columns: _angular_core.InputSignal<number>;
653
+ /**
654
+ * Optional override for the section's inner grid column count. Leave unset
655
+ * (the default) to inherit the responsive defaults from CSS — the section
656
+ * grid then mirrors the dashboard breakpoints (4/8/12/14 columns) via the
657
+ * `mfp-dashboard` container query in dashboard-section.component.scss.
658
+ * Pass an explicit number only when a section needs a fixed column count
659
+ * regardless of width.
660
+ */
661
+ columns: _angular_core.InputSignal<number | undefined>;
644
662
  editMode: _angular_core.InputSignal<boolean>;
645
663
  readonly removeSection: _angular_core.OutputEmitterRef<void>;
646
664
  readonly removeCard: _angular_core.OutputEmitterRef<string>;
@@ -1287,5 +1305,5 @@ declare class WhatsNew {
1287
1305
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<WhatsNew, "mfp-whats-new", never, {}, {}, never, never, true, never>;
1288
1306
  }
1289
1307
 
1290
- export { BooleanValue, CARD_TYPES, Dashboard, DashboardCard, DashboardSection, DeclarativeForm, DeclarativeTable, DeclarativeTableCard, DiscardChangesDialog, EditCardsDialog, Favorites, LinkValue, ResourceField, SecretValue, ServiceStatusCard, TagListValue, UnsavedChangesDialog, VisitedServiceCard, WhatsNew };
1308
+ export { BooleanValue, CARD_TYPES, DASHBOARD_BREAKPOINTS, Dashboard, DashboardCard, DashboardSection, DeclarativeForm, DeclarativeTable, DeclarativeTableCard, DiscardChangesDialog, EditCardsDialog, Favorites, LinkValue, ResourceField, SecretValue, ServiceStatusCard, TagListValue, UnsavedChangesDialog, VisitedServiceCard, WhatsNew };
1291
1309
  export type { ButtonSettings, CardConfig, CardsType, CssRule, CssRuleCondition, DashboardButtonsSettings, DashboardConfig, DeleteResourceConfirmationConfig, FieldDefinition, FormFieldChangeEvent, FormFieldDefinition, FormFieldErrors, GenericResource, IconDesignType, ModalSettings, PropertyField, ResourceFieldButtonClickEvent, ResourceFormConfig, SectionConfig, ServiceStatusItem, ServiceStatusValue, TableCardButtonSettings, TableCardConfig, TableCardFormState, TableConfig, TableFieldDefinition, TransformType, UiSettings };