@openmfp/ngx 0.18.10 → 0.18.11

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.18.10",
3
+ "version": "0.18.11",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/openmfp/webcomponents.git"
@@ -550,7 +550,7 @@ interface CardConfig {
550
550
  type?: CardsType;
551
551
  /** Key/value pairs passed to the rendered card. Behaviour depends on `type`. */
552
552
  componentInputs?: Record<string, unknown>;
553
- /** Human-readable label shown in the "Add Card" dialog. */
553
+ /** Human-readable label shown in the "Edit Cards" dialog. */
554
554
  label?: string;
555
555
  }
556
556
  type MountCfg = Pick<CardConfig, 'type' | 'component' | 'componentInputs'>;
@@ -580,7 +580,7 @@ interface DashboardConfig {
580
580
  description?: string;
581
581
  /** URL of the background image applied to the dashboard host element. */
582
582
  backgroundImageUrl?: string;
583
- /** Overrides for the built-in Edit View and Add Card toolbar buttons. */
583
+ /** Overrides for the built-in Edit View and Edit Cards toolbar buttons. */
584
584
  buttonsSettings?: DashboardButtonsSettings;
585
585
  /** Extra action buttons rendered in the toolbar alongside the built-in ones. */
586
586
  customActions?: ButtonSettings[];
@@ -784,6 +784,20 @@ declare class Dashboard implements OnInit, OnDestroy {
784
784
  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>;
785
785
  }
786
786
 
787
+ /**
788
+ * `createCustomElement` only proxies `@Input()`/`output()` — public methods on
789
+ * the component class are NOT reachable from the DOM. This forwards the
790
+ * dashboard's public methods onto the custom-element prototype so that
791
+ * non-Angular consumers (UI5, plain JS, Luigi, etc.) can call them directly on
792
+ * the `<mfp-wc-dashboard>` DOM node.
793
+ *
794
+ * `requestNavigation` needs a synchronous fallback when the Angular component
795
+ * isn't created yet: run the navigation immediately (returning `true`) rather
796
+ * than silently blocking the user — this preserves the original, pre-guard
797
+ * behaviour. The remaining handlers no-op until the component exists.
798
+ */
799
+ declare function defineDashboardElementMethods(elementCtor: CustomElementConstructor): void;
800
+
787
801
  declare class ResourceField<T extends GenericResource, F extends FieldDefinition> {
788
802
  fieldDefinition: _angular_core.InputSignal<F>;
789
803
  resource: _angular_core.InputSignal<T | undefined>;
@@ -1433,5 +1447,5 @@ declare class MockCard {
1433
1447
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<MockCard, "mfp-mock-card", never, { "title": { "alias": "title"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
1434
1448
  }
1435
1449
 
1436
- export { BooleanValue, CARD_TYPES, Dashboard, DeclarativeForm, DeclarativeTable, DeclarativeTableCard, Favorites, LinkValue, MockCard, ResourceField, SecretValue, ServiceStatusCard, TagListValue, VisitedServiceCard, WhatsNew };
1450
+ export { BooleanValue, CARD_TYPES, Dashboard, DeclarativeForm, DeclarativeTable, DeclarativeTableCard, Favorites, LinkValue, MockCard, ResourceField, SecretValue, ServiceStatusCard, TagListValue, VisitedServiceCard, WhatsNew, defineDashboardElementMethods };
1437
1451
  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, TableCardSearchConfig, TableConfig, TableFieldDefinition, TagSettings, TransformType, UiSettings, ValueRule };