@openmfp/ngx 0.10.5 → 0.11.0
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 +71 -69
- package/fesm2022/openmfp-ngx.mjs.map +1 -1
- package/package.json +1 -1
- package/types/openmfp-ngx.d.ts +30 -24
package/package.json
CHANGED
package/types/openmfp-ngx.d.ts
CHANGED
|
@@ -30,7 +30,7 @@ interface TagSettings {
|
|
|
30
30
|
design?: 'Neutral' | 'Positive' | 'Critical' | 'Negative' | 'Information' | 'Set1' | 'Set2';
|
|
31
31
|
colorScheme?: '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' | '10';
|
|
32
32
|
/** Delimiter used to split a plain-string value into individual tags. Default: `','`. */
|
|
33
|
-
|
|
33
|
+
valueSeparator?: string;
|
|
34
34
|
}
|
|
35
35
|
/** Display and interaction settings for a table cell. */
|
|
36
36
|
interface UiSettings {
|
|
@@ -95,7 +95,7 @@ interface CssRule {
|
|
|
95
95
|
styles: Partial<CSSStyleDeclaration>;
|
|
96
96
|
}
|
|
97
97
|
/** Event payload emitted when a button inside a table cell is clicked. */
|
|
98
|
-
interface
|
|
98
|
+
interface ResourceFieldButtonClickEvent<T extends GenericResource> {
|
|
99
99
|
/** Original DOM click event. */
|
|
100
100
|
event: MouseEvent;
|
|
101
101
|
/** The field definition of the button cell that was clicked. */
|
|
@@ -151,7 +151,7 @@ declare class DeclarativeTable<T extends GenericResource> {
|
|
|
151
151
|
growMode: _angular_core.InputSignal<"Scroll" | "Button" | undefined>;
|
|
152
152
|
loadMoreButtonText: _angular_core.InputSignal<string | undefined>;
|
|
153
153
|
height: _angular_core.InputSignal<number | undefined>;
|
|
154
|
-
readonly buttonClick: _angular_core.OutputEmitterRef<
|
|
154
|
+
readonly buttonClick: _angular_core.OutputEmitterRef<ResourceFieldButtonClickEvent<T>>;
|
|
155
155
|
readonly tableRowClicked: _angular_core.OutputEmitterRef<T>;
|
|
156
156
|
readonly loadMoreResources: _angular_core.OutputEmitterRef<void>;
|
|
157
157
|
readonly paginationLimitChanged: _angular_core.OutputEmitterRef<number>;
|
|
@@ -187,12 +187,12 @@ interface FormFieldChangeEvent {
|
|
|
187
187
|
/** Map of field names to their current validation error messages (`null` = no error). */
|
|
188
188
|
type FormFieldErrors = Record<string, string | null>;
|
|
189
189
|
|
|
190
|
-
declare class DeclarativeForm {
|
|
190
|
+
declare class DeclarativeForm<T extends GenericResource> {
|
|
191
191
|
readonly fields: _angular_core.InputSignal<FormFieldDefinition[]>;
|
|
192
|
-
readonly initialValues: _angular_core.InputSignal<
|
|
192
|
+
readonly initialValues: _angular_core.InputSignal<T>;
|
|
193
193
|
readonly fieldErrors: _angular_core.InputSignal<FormFieldErrors>;
|
|
194
194
|
readonly fieldChange: _angular_core.OutputEmitterRef<FormFieldChangeEvent>;
|
|
195
|
-
readonly formSubmit: _angular_core.OutputEmitterRef<
|
|
195
|
+
readonly formSubmit: _angular_core.OutputEmitterRef<T>;
|
|
196
196
|
readonly form: FormGroup;
|
|
197
197
|
private readonly fb;
|
|
198
198
|
constructor();
|
|
@@ -205,8 +205,8 @@ declare class DeclarativeForm {
|
|
|
205
205
|
private rebuildControls;
|
|
206
206
|
private setInitialValues;
|
|
207
207
|
private buildOutputValue;
|
|
208
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DeclarativeForm
|
|
209
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DeclarativeForm
|
|
208
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DeclarativeForm<any>, never>;
|
|
209
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DeclarativeForm<any>, "mfp-declarative-form", never, { "fields": { "alias": "fields"; "required": true; "isSignal": true; }; "initialValues": { "alias": "initialValues"; "required": false; "isSignal": true; }; "fieldErrors": { "alias": "fieldErrors"; "required": false; "isSignal": true; }; }, { "fieldChange": "fieldChange"; "formSubmit": "formSubmit"; }, never, never, true, never>;
|
|
210
210
|
}
|
|
211
211
|
|
|
212
212
|
/** Configuration for the create/edit resource form rendered inside the table card dialogs. */
|
|
@@ -287,7 +287,7 @@ declare class DeclarativeTableCard<T extends GenericResource> {
|
|
|
287
287
|
config: _angular_core.InputSignal<TableCardConfig>;
|
|
288
288
|
createFormState: _angular_core.InputSignal<TableCardFormState>;
|
|
289
289
|
editFormState: _angular_core.InputSignal<TableCardFormState>;
|
|
290
|
-
readonly actionButtonClick: _angular_core.OutputEmitterRef<
|
|
290
|
+
readonly actionButtonClick: _angular_core.OutputEmitterRef<ResourceFieldButtonClickEvent<T>>;
|
|
291
291
|
readonly tableRowClicked: _angular_core.OutputEmitterRef<T>;
|
|
292
292
|
readonly loadMoreResources: _angular_core.OutputEmitterRef<void>;
|
|
293
293
|
readonly paginationLimitChanged: _angular_core.OutputEmitterRef<number>;
|
|
@@ -297,7 +297,7 @@ declare class DeclarativeTableCard<T extends GenericResource> {
|
|
|
297
297
|
resource: T;
|
|
298
298
|
formChangeEvent: FormFieldChangeEvent;
|
|
299
299
|
}>;
|
|
300
|
-
readonly createSubmit: _angular_core.OutputEmitterRef<
|
|
300
|
+
readonly createSubmit: _angular_core.OutputEmitterRef<T>;
|
|
301
301
|
readonly editSubmit: _angular_core.OutputEmitterRef<{
|
|
302
302
|
resource: T;
|
|
303
303
|
value: Record<string, unknown>;
|
|
@@ -328,13 +328,13 @@ declare class DeclarativeTableCard<T extends GenericResource> {
|
|
|
328
328
|
onSearchBlur(): void;
|
|
329
329
|
onSearchAnimationEnd(): void;
|
|
330
330
|
private collapseSearch;
|
|
331
|
-
onButtonClick(event:
|
|
331
|
+
onButtonClick(event: ResourceFieldButtonClickEvent<T>): void;
|
|
332
332
|
closeCreateDialog(): void;
|
|
333
333
|
closeEditDialog(): void;
|
|
334
334
|
closeDeleteDialog(): void;
|
|
335
335
|
onCreateFieldChange(event: FormFieldChangeEvent): void;
|
|
336
336
|
onEditFieldChange(event: FormFieldChangeEvent): void;
|
|
337
|
-
onCreateSubmit(value:
|
|
337
|
+
onCreateSubmit(value: T): void;
|
|
338
338
|
onEditSubmit(value: Record<string, unknown>): void;
|
|
339
339
|
onDeleteSubmit(): void;
|
|
340
340
|
protected hasErrors(state: TableCardFormState): boolean;
|
|
@@ -486,25 +486,31 @@ declare class Dashboard implements OnInit, OnDestroy {
|
|
|
486
486
|
removeCard(id: string): void;
|
|
487
487
|
openCardPanel(): void;
|
|
488
488
|
closeCardPanel(): void;
|
|
489
|
-
|
|
489
|
+
onCardsEdited(event: {
|
|
490
|
+
added: CardConfig[];
|
|
491
|
+
removed: string[];
|
|
492
|
+
}): void;
|
|
490
493
|
onOrderChange(event: nodesCB): void;
|
|
491
494
|
private saveCardsPosition;
|
|
492
495
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<Dashboard, never>;
|
|
493
496
|
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; }; }, { "sections": "sectionsChange"; "cards": "cardsChange"; "saved": "saved"; "actionButtonClick": "actionButtonClick"; }, never, ["[slot=dashboard-subheader]"], true, never>;
|
|
494
497
|
}
|
|
495
498
|
|
|
496
|
-
declare class
|
|
499
|
+
declare class EditCardsDialog {
|
|
497
500
|
availableCards: _angular_core.InputSignal<CardConfig[]>;
|
|
498
501
|
addedCardsIds: _angular_core.InputSignal<Set<string>>;
|
|
499
502
|
open: _angular_core.InputSignal<boolean>;
|
|
500
|
-
readonly confirm: _angular_core.OutputEmitterRef<
|
|
503
|
+
readonly confirm: _angular_core.OutputEmitterRef<{
|
|
504
|
+
added: CardConfig[];
|
|
505
|
+
removed: string[];
|
|
506
|
+
}>;
|
|
501
507
|
readonly cancelled: _angular_core.OutputEmitterRef<void>;
|
|
502
508
|
selectedIds: _angular_core.WritableSignal<Set<string>>;
|
|
503
509
|
constructor();
|
|
504
510
|
toggle(id: string): void;
|
|
505
|
-
|
|
506
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<
|
|
507
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<
|
|
511
|
+
confirmSave(): void;
|
|
512
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<EditCardsDialog, never>;
|
|
513
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<EditCardsDialog, "mfp-edit-cards-dialog", never, { "availableCards": { "alias": "availableCards"; "required": false; "isSignal": true; }; "addedCardsIds": { "alias": "addedCardsIds"; "required": false; "isSignal": true; }; "open": { "alias": "open"; "required": false; "isSignal": true; }; }, { "confirm": "confirm"; "cancelled": "cancelled"; }, never, never, true, never>;
|
|
508
514
|
}
|
|
509
515
|
|
|
510
516
|
declare class DashboardCard {
|
|
@@ -532,10 +538,10 @@ declare class DashboardSection {
|
|
|
532
538
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DashboardSection, "mfp-dashboard-section", never, { "section": { "alias": "section"; "required": true; "isSignal": true; }; "cards": { "alias": "cards"; "required": false; "isSignal": true; }; "columns": { "alias": "columns"; "required": false; "isSignal": true; }; "editMode": { "alias": "editMode"; "required": false; "isSignal": true; }; }, { "removeSection": "removeSection"; "removeCard": "removeCard"; }, never, never, true, never>;
|
|
533
539
|
}
|
|
534
540
|
|
|
535
|
-
declare class
|
|
541
|
+
declare class ResourceField<T extends GenericResource, F extends FieldDefinition> {
|
|
536
542
|
fieldDefinition: _angular_core.InputSignal<F>;
|
|
537
543
|
resource: _angular_core.InputSignal<T | undefined>;
|
|
538
|
-
readonly buttonClick: _angular_core.OutputEmitterRef<
|
|
544
|
+
readonly buttonClick: _angular_core.OutputEmitterRef<ResourceFieldButtonClickEvent<T>>;
|
|
539
545
|
value: _angular_core.Signal<any>;
|
|
540
546
|
uiSettings: _angular_core.Signal<_openmfp_ngx.UiSettings | undefined>;
|
|
541
547
|
displayAs: _angular_core.Signal<"secret" | "boolIcon" | "link" | "tooltip" | "alert" | "img" | "button" | "tag" | undefined>;
|
|
@@ -1076,8 +1082,8 @@ declare class ValueCell<T extends GenericResource, F extends FieldDefinition> {
|
|
|
1076
1082
|
private checkValidUrl;
|
|
1077
1083
|
copyValue(event: Event): void;
|
|
1078
1084
|
protected buttonClicked(event: MouseEvent): void;
|
|
1079
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<
|
|
1080
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<
|
|
1085
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ResourceField<any, any>, never>;
|
|
1086
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ResourceField<any, any>, "mfp-resource-field", never, { "fieldDefinition": { "alias": "fieldDefinition"; "required": true; "isSignal": true; }; "resource": { "alias": "resource"; "required": false; "isSignal": true; }; }, { "buttonClick": "buttonClick"; }, never, never, true, never>;
|
|
1081
1087
|
}
|
|
1082
1088
|
|
|
1083
1089
|
declare const ICON_DESIGN_POSITIVE = "Positive";
|
|
@@ -1171,5 +1177,5 @@ declare class WhatsNew {
|
|
|
1171
1177
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<WhatsNew, "mfp-whats-new", never, {}, {}, never, never, true, never>;
|
|
1172
1178
|
}
|
|
1173
1179
|
|
|
1174
|
-
export {
|
|
1175
|
-
export type { ButtonSettings, CardConfig, CardsType, CssRule, CssRuleCondition, DashboardButtonsSettings, DashboardConfig, DeleteResourceConfirmationConfig, FieldDefinition, FormFieldChangeEvent, FormFieldDefinition, FormFieldErrors, GenericResource, IconDesignType, ModalSettings, PropertyField, ResourceFormConfig, SectionConfig, ServiceStatusItem, ServiceStatusValue, TableCardButtonSettings, TableCardConfig, TableCardFormState, TableConfig, TableFieldDefinition, TransformType, UiSettings
|
|
1180
|
+
export { BooleanValue, CARD_TYPES, Dashboard, DashboardCard, DashboardSection, DeclarativeForm, DeclarativeTable, DeclarativeTableCard, EditCardsDialog, Favorites, LinkValue, ResourceField, SecretValue, ServiceStatusCard, TagListValue, VisitedServiceCard, WhatsNew };
|
|
1181
|
+
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 };
|