@openmfp/ngx 0.14.2 → 0.14.3

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.14.2",
3
+ "version": "0.14.3",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/openmfp/webcomponents.git"
@@ -5,7 +5,6 @@ import * as _openmfp_ngx from '@openmfp/ngx';
5
5
  import { Input } from '@fundamental-ngx/ui5-webcomponents/input';
6
6
  import { SafeHtml } from '@angular/platform-browser';
7
7
  import { GridStackOptions } from 'gridstack';
8
- import { nodesCB } from 'gridstack/dist/angular';
9
8
 
10
9
  /** Subset of fields of a generic resource that the table/form components rely on. */
11
10
  interface GenericResource extends Record<string, unknown> {
@@ -468,6 +467,7 @@ interface CardConfig {
468
467
  /** Human-readable label shown in the "Add Card" dialog. */
469
468
  label?: string;
470
469
  }
470
+ type MountCfg = Pick<CardConfig, 'type' | 'component' | 'componentInputs'>;
471
471
  /** Configuration for a named horizontal section that groups cards. */
472
472
  interface SectionConfig {
473
473
  /** Unique identifier for this section. */
@@ -525,6 +525,7 @@ declare class Dashboard implements OnInit, OnDestroy {
525
525
  toolbarMenuOpen: _angular_core.WritableSignal<boolean>;
526
526
  /** True once the user has dragged/resized any grid item while in edit mode. */
527
527
  private gridDirty;
528
+ protected backgroundImageHeight: _angular_core.WritableSignal<number | null>;
528
529
  /** JSON snapshots of sections/cards taken on entering edit mode, used to detect changes. */
529
530
  private sectionsSnapshotJson;
530
531
  private cardsSnapshotJson;
@@ -605,15 +606,7 @@ declare class Dashboard implements OnInit, OnDestroy {
605
606
  enterEditMode(): void;
606
607
  saveEdit(): void;
607
608
  cancelEdit(): void;
608
- /**
609
- * Confirms abandoning unsaved edit-mode changes: closes the discard popup
610
- * and reverts sections/cards to the snapshot taken on entering edit mode.
611
- */
612
609
  confirmDiscard(): void;
613
- /**
614
- * Cancels the discard popup and keeps the user in edit mode with their
615
- * pending changes intact.
616
- */
617
610
  cancelDiscard(): void;
618
611
  /**
619
612
  * Public framework-agnostic navigation guard. Consumer apps (Angular Router
@@ -655,8 +648,9 @@ declare class Dashboard implements OnInit, OnDestroy {
655
648
  added: CardConfig[];
656
649
  removed: string[];
657
650
  }): void;
658
- onGridChange(event: nodesCB): void;
651
+ onGridChange(): void;
659
652
  private saveCardsPosition;
653
+ private updateCardsPositions;
660
654
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<Dashboard, never>;
661
655
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<Dashboard, "mfp-dashboard", never, { "config": { "alias": "config"; "required": true; "isSignal": true; }; "sections": { "alias": "sections"; "required": false; "isSignal": true; }; "cards": { "alias": "cards"; "required": false; "isSignal": true; }; "availableCards": { "alias": "availableCards"; "required": false; "isSignal": true; }; "language": { "alias": "language"; "required": false; "isSignal": true; }; }, { "sections": "sectionsChange"; "cards": "cardsChange"; "saved": "saved"; "actionButtonClick": "actionButtonClick"; "unsavedChangesChange": "unsavedChangesChange"; }, never, ["[slot=dashboard-subheader]"], true, never>;
662
656
  }
@@ -1302,4 +1296,4 @@ declare class WhatsNew {
1302
1296
  }
1303
1297
 
1304
1298
  export { BooleanValue, CARD_TYPES, Dashboard, DeclarativeForm, DeclarativeTable, DeclarativeTableCard, Favorites, LinkValue, ResourceField, SecretValue, ServiceStatusCard, TagListValue, VisitedServiceCard, WhatsNew };
1305
- export type { ButtonSettings, CardConfig, CardsType, CssRule, DashboardButtonsSettings, DashboardConfig, DeleteResourceConfirmationConfig, FieldDefinition, FieldFilterDefinition, FormFieldChangeEvent, FormFieldDefinition, FormFieldErrors, GenericResource, IconDesignType, ModalSettings, PropertyField, ResourceFieldButtonClickEvent, ResourceFormConfig, RuleCondition, SectionConfig, ServiceStatusItem, ServiceStatusValue, TableCardButtonSettings, TableCardConfig, TableCardFormState, TableConfig, TableFieldDefinition, TransformType, UiSettings, ValueRule };
1299
+ export type { ButtonSettings, CardConfig, CardsType, CssRule, DashboardButtonsSettings, DashboardConfig, DeleteResourceConfirmationConfig, FieldDefinition, FieldFilterDefinition, FormFieldChangeEvent, FormFieldDefinition, FormFieldErrors, GenericResource, IconDesignType, ModalSettings, MountCfg, PropertyField, ResourceFieldButtonClickEvent, ResourceFormConfig, RuleCondition, SectionConfig, ServiceStatusItem, ServiceStatusValue, TableCardButtonSettings, TableCardConfig, TableCardFormState, TableConfig, TableFieldDefinition, TransformType, UiSettings, ValueRule };