@openmfp/ngx 0.10.4 → 0.10.6
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 +36 -23
- package/fesm2022/openmfp-ngx.mjs.map +1 -1
- package/package.json +1 -1
- package/types/openmfp-ngx.d.ts +21 -18
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;
|
|
@@ -443,8 +443,10 @@ declare class Dashboard implements OnInit, OnDestroy {
|
|
|
443
443
|
private sectionsSnapshot;
|
|
444
444
|
private cardsSnapshot;
|
|
445
445
|
private gridStackItems;
|
|
446
|
+
private addCardBtn;
|
|
446
447
|
private resizeObserver?;
|
|
447
448
|
private readonly hostEl;
|
|
449
|
+
private readonly injector;
|
|
448
450
|
protected gridOptions: _angular_core.Signal<GridStackOptions>;
|
|
449
451
|
cardDialogOpen: _angular_core.WritableSignal<boolean>;
|
|
450
452
|
customActions: _angular_core.Signal<ButtonSettings[]>;
|
|
@@ -530,10 +532,10 @@ declare class DashboardSection {
|
|
|
530
532
|
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>;
|
|
531
533
|
}
|
|
532
534
|
|
|
533
|
-
declare class
|
|
535
|
+
declare class ResourceField<T extends GenericResource, F extends FieldDefinition> {
|
|
534
536
|
fieldDefinition: _angular_core.InputSignal<F>;
|
|
535
537
|
resource: _angular_core.InputSignal<T | undefined>;
|
|
536
|
-
readonly buttonClick: _angular_core.OutputEmitterRef<
|
|
538
|
+
readonly buttonClick: _angular_core.OutputEmitterRef<ResourceFieldButtonClickEvent<T>>;
|
|
537
539
|
value: _angular_core.Signal<any>;
|
|
538
540
|
uiSettings: _angular_core.Signal<_openmfp_ngx.UiSettings | undefined>;
|
|
539
541
|
displayAs: _angular_core.Signal<"secret" | "boolIcon" | "link" | "tooltip" | "alert" | "img" | "button" | "tag" | undefined>;
|
|
@@ -1066,6 +1068,7 @@ declare class ValueCell<T extends GenericResource, F extends FieldDefinition> {
|
|
|
1066
1068
|
stringValue: _angular_core.Signal<string | undefined>;
|
|
1067
1069
|
tags: _angular_core.Signal<string[]>;
|
|
1068
1070
|
isVisible: _angular_core.WritableSignal<boolean>;
|
|
1071
|
+
copySuccess: _angular_core.WritableSignal<boolean>;
|
|
1069
1072
|
toggleVisibility(e: Event): void;
|
|
1070
1073
|
private normalizeBoolean;
|
|
1071
1074
|
private normalizeString;
|
|
@@ -1073,8 +1076,8 @@ declare class ValueCell<T extends GenericResource, F extends FieldDefinition> {
|
|
|
1073
1076
|
private checkValidUrl;
|
|
1074
1077
|
copyValue(event: Event): void;
|
|
1075
1078
|
protected buttonClicked(event: MouseEvent): void;
|
|
1076
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<
|
|
1077
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<
|
|
1079
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ResourceField<any, any>, never>;
|
|
1080
|
+
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>;
|
|
1078
1081
|
}
|
|
1079
1082
|
|
|
1080
1083
|
declare const ICON_DESIGN_POSITIVE = "Positive";
|
|
@@ -1168,5 +1171,5 @@ declare class WhatsNew {
|
|
|
1168
1171
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<WhatsNew, "mfp-whats-new", never, {}, {}, never, never, true, never>;
|
|
1169
1172
|
}
|
|
1170
1173
|
|
|
1171
|
-
export { AddCardDialog, BooleanValue, CARD_TYPES, Dashboard, DashboardCard, DashboardSection, DeclarativeForm, DeclarativeTable, DeclarativeTableCard, Favorites, LinkValue, SecretValue, ServiceStatusCard, TagListValue,
|
|
1172
|
-
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
|
|
1174
|
+
export { AddCardDialog, BooleanValue, CARD_TYPES, Dashboard, DashboardCard, DashboardSection, DeclarativeForm, DeclarativeTable, DeclarativeTableCard, Favorites, LinkValue, ResourceField, SecretValue, ServiceStatusCard, TagListValue, VisitedServiceCard, WhatsNew };
|
|
1175
|
+
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 };
|