@openmfp/ngx 0.18.9 → 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/fesm2022/openmfp-ngx.mjs +91 -13
- package/fesm2022/openmfp-ngx.mjs.map +1 -1
- package/package.json +1 -1
- package/types/openmfp-ngx.d.ts +20 -3
package/package.json
CHANGED
package/types/openmfp-ngx.d.ts
CHANGED
|
@@ -180,6 +180,7 @@ declare class DeclarativeTable<T extends GenericResource> {
|
|
|
180
180
|
columnTrackBy: (column: TableFieldDefinition, index: number) => string | number | string[];
|
|
181
181
|
rowTrackBy: (_index: number, item: T) => unknown;
|
|
182
182
|
viewColumns: _angular_core.Signal<ProcessedTableFieldDefinition[]>;
|
|
183
|
+
onRowClick(item: T): void;
|
|
183
184
|
isPagerMode: _angular_core.Signal<boolean>;
|
|
184
185
|
knowsTotal: _angular_core.Signal<boolean>;
|
|
185
186
|
hasResults: _angular_core.Signal<boolean>;
|
|
@@ -549,7 +550,7 @@ interface CardConfig {
|
|
|
549
550
|
type?: CardsType;
|
|
550
551
|
/** Key/value pairs passed to the rendered card. Behaviour depends on `type`. */
|
|
551
552
|
componentInputs?: Record<string, unknown>;
|
|
552
|
-
/** Human-readable label shown in the "
|
|
553
|
+
/** Human-readable label shown in the "Edit Cards" dialog. */
|
|
553
554
|
label?: string;
|
|
554
555
|
}
|
|
555
556
|
type MountCfg = Pick<CardConfig, 'type' | 'component' | 'componentInputs'>;
|
|
@@ -579,7 +580,7 @@ interface DashboardConfig {
|
|
|
579
580
|
description?: string;
|
|
580
581
|
/** URL of the background image applied to the dashboard host element. */
|
|
581
582
|
backgroundImageUrl?: string;
|
|
582
|
-
/** Overrides for the built-in Edit View and
|
|
583
|
+
/** Overrides for the built-in Edit View and Edit Cards toolbar buttons. */
|
|
583
584
|
buttonsSettings?: DashboardButtonsSettings;
|
|
584
585
|
/** Extra action buttons rendered in the toolbar alongside the built-in ones. */
|
|
585
586
|
customActions?: ButtonSettings[];
|
|
@@ -783,6 +784,20 @@ declare class Dashboard implements OnInit, OnDestroy {
|
|
|
783
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>;
|
|
784
785
|
}
|
|
785
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
|
+
|
|
786
801
|
declare class ResourceField<T extends GenericResource, F extends FieldDefinition> {
|
|
787
802
|
fieldDefinition: _angular_core.InputSignal<F>;
|
|
788
803
|
resource: _angular_core.InputSignal<T | undefined>;
|
|
@@ -1316,6 +1331,8 @@ declare class ResourceField<T extends GenericResource, F extends FieldDefinition
|
|
|
1316
1331
|
isBoolLike: _angular_core.Signal<boolean>;
|
|
1317
1332
|
isUrlValue: _angular_core.Signal<boolean>;
|
|
1318
1333
|
testId: _angular_core.Signal<string>;
|
|
1334
|
+
buttonDisabled: _angular_core.Signal<boolean>;
|
|
1335
|
+
buttonAccessibleName: _angular_core.Signal<string>;
|
|
1319
1336
|
boolValue: _angular_core.Signal<boolean | undefined>;
|
|
1320
1337
|
stringValue: _angular_core.Signal<string | undefined>;
|
|
1321
1338
|
tags: _angular_core.Signal<string[]>;
|
|
@@ -1430,5 +1447,5 @@ declare class MockCard {
|
|
|
1430
1447
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<MockCard, "mfp-mock-card", never, { "title": { "alias": "title"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
1431
1448
|
}
|
|
1432
1449
|
|
|
1433
|
-
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 };
|
|
1434
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 };
|