@memberjunction/ng-base-forms 3.4.0 → 4.1.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/dist/lib/base-form-component.d.ts +103 -215
- package/dist/lib/base-form-component.d.ts.map +1 -1
- package/dist/lib/base-form-component.js +384 -544
- package/dist/lib/base-form-component.js.map +1 -1
- package/dist/lib/container/record-form-container.component.d.ts +165 -0
- package/dist/lib/container/record-form-container.component.d.ts.map +1 -0
- package/dist/lib/container/record-form-container.component.js +534 -0
- package/dist/lib/container/record-form-container.component.js.map +1 -0
- package/dist/lib/explorer-entity-data-grid.component.d.ts +7 -9
- package/dist/lib/explorer-entity-data-grid.component.d.ts.map +1 -1
- package/dist/lib/explorer-entity-data-grid.component.js +15 -16
- package/dist/lib/explorer-entity-data-grid.component.js.map +1 -1
- package/dist/lib/field/form-field.component.d.ts +268 -0
- package/dist/lib/field/form-field.component.d.ts.map +1 -0
- package/dist/lib/field/form-field.component.js +1194 -0
- package/dist/lib/field/form-field.component.js.map +1 -0
- package/dist/lib/form-state.interface.d.ts +2 -0
- package/dist/lib/form-state.interface.d.ts.map +1 -1
- package/dist/lib/form-state.interface.js.map +1 -1
- package/dist/lib/form-state.service.d.ts +14 -0
- package/dist/lib/form-state.service.d.ts.map +1 -1
- package/dist/lib/form-state.service.js +19 -0
- package/dist/lib/form-state.service.js.map +1 -1
- package/dist/lib/panel/collapsible-panel.component.d.ts +139 -0
- package/dist/lib/panel/collapsible-panel.component.d.ts.map +1 -0
- package/dist/lib/panel/collapsible-panel.component.js +468 -0
- package/dist/lib/panel/collapsible-panel.component.js.map +1 -0
- package/dist/lib/section-loader-component.d.ts.map +1 -1
- package/dist/lib/section-loader-component.js +3 -2
- package/dist/lib/section-loader-component.js.map +1 -1
- package/dist/lib/toolbar/form-toolbar.component.d.ts +170 -0
- package/dist/lib/toolbar/form-toolbar.component.d.ts.map +1 -0
- package/dist/lib/toolbar/form-toolbar.component.js +830 -0
- package/dist/lib/toolbar/form-toolbar.component.js.map +1 -0
- package/dist/lib/types/form-events.d.ts +90 -0
- package/dist/lib/types/form-events.d.ts.map +1 -0
- package/dist/lib/types/form-events.js +45 -0
- package/dist/lib/types/form-events.js.map +1 -0
- package/dist/lib/types/form-types.d.ts +150 -0
- package/dist/lib/types/form-types.d.ts.map +1 -0
- package/dist/lib/types/form-types.js +12 -0
- package/dist/lib/types/form-types.js.map +1 -0
- package/dist/lib/types/navigation-events.d.ts +88 -0
- package/dist/lib/types/navigation-events.d.ts.map +1 -0
- package/dist/lib/types/navigation-events.js +2 -0
- package/dist/lib/types/navigation-events.js.map +1 -0
- package/dist/lib/types/toolbar-config.d.ts +66 -0
- package/dist/lib/types/toolbar-config.d.ts.map +1 -0
- package/dist/lib/types/toolbar-config.js +38 -0
- package/dist/lib/types/toolbar-config.js.map +1 -0
- package/dist/module.d.ts +28 -20
- package/dist/module.d.ts.map +1 -1
- package/dist/module.js +47 -74
- package/dist/module.js.map +1 -1
- package/dist/public-api.d.ts +20 -8
- package/dist/public-api.d.ts.map +1 -1
- package/dist/public-api.js +24 -9
- package/dist/public-api.js.map +1 -1
- package/package.json +27 -30
- package/README.md +0 -449
- package/dist/lib/base-field-component.d.ts +0 -152
- package/dist/lib/base-field-component.d.ts.map +0 -1
- package/dist/lib/base-field-component.js +0 -667
- package/dist/lib/base-field-component.js.map +0 -1
- package/dist/lib/base-form-context.d.ts +0 -23
- package/dist/lib/base-form-context.d.ts.map +0 -1
- package/dist/lib/base-form-context.js +0 -10
- package/dist/lib/base-form-context.js.map +0 -1
- package/dist/lib/collapsible-panel.component.d.ts +0 -68
- package/dist/lib/collapsible-panel.component.d.ts.map +0 -1
- package/dist/lib/collapsible-panel.component.js +0 -330
- package/dist/lib/collapsible-panel.component.js.map +0 -1
- package/dist/lib/form-section-controls.component.d.ts +0 -35
- package/dist/lib/form-section-controls.component.d.ts.map +0 -1
- package/dist/lib/form-section-controls.component.js +0 -272
- package/dist/lib/form-section-controls.component.js.map +0 -1
- package/dist/lib/link-field.component.d.ts +0 -62
- package/dist/lib/link-field.component.d.ts.map +0 -1
- package/dist/lib/link-field.component.js +0 -391
- package/dist/lib/link-field.component.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"form-toolbar.component.js","sourceRoot":"","sources":["../../../src/lib/toolbar/form-toolbar.component.ts","../../../src/lib/toolbar/form-toolbar.component.html"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE,YAAY,EAAE,uBAAuB,EAAe,iBAAiB,EAAE,MAAM,EAAW,MAAM,eAAe,CAAC;AAEjJ,OAAO,EAAqB,sBAAsB,EAAE,MAAM,yBAAyB,CAAC;AAGpF,OAAO,EACL,mBAAmB,EACnB,qBAAqB,EACrB,qBAAqB,EACrB,0BAA0B,EAC1B,6BAA6B,EAG9B,MAAM,sBAAsB,CAAC;;;;;;;;ICPxB,wBAA+E;IAE7E,AADF,gCAAyC,aAC/B;IAAA,YAAmC;IAAA,iBAAS;IACpD,YAEF;IAAA,iBAAO;;;IAHG,eAAmC;IAAnC,0DAAmC;IAC3C,cAEF;IAFE,0JAEF;;;IAEA,wBAAyC;IACzC,gCAAwC;IAAA,YAAgC;IAAA,iBAAO;;;IAAvC,eAAgC;IAAhC,4DAAgC;;;;IAV5E,8BAAkC;IAQ9B,AAPF,4FAAyC,sEAOhC;IAIT,yBAA2C;IAEzC,AADF,8BAA0C,gBACyE;IAA9D,0LAAS,eAAQ,KAAC;IACnE,uBAAuC;IACvC,+BAAgC;IAAA,4BAAY;IAC9C,AAD8C,iBAAO,EAC5C;IACT,iCAAgG;IAAnE,0LAAS,iBAAU,KAAC;IAC/C,wBAAuC;IACvC,gCAAgC;IAAA,wBAAO;IAG7C,AADE,AADE,AADyC,iBAAO,EACvC,EACL,EACF;;;IAtBJ,cAUC;IAVD,kEAUC;IAGuE,eAAqB;IAArB,0CAAqB;IAIzC,eAAqB;IAArB,0CAA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,CAAC,UAAU,CAAC;QACzF,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACrC,CAAC;IAED,mBAAmB;QACjB,IAAI,CAAC,0BAA0B,CAAC,IAAI,EAAE,CAAC;IACzC,CAAC;gHAraU,sBAAsB;6DAAtB,sBAAsB;;YCzCnC,yFAAyC;YA8BzC,0FAAiB;YA2HjB,yFAAyB;YA4BzB,yFAAwB;;YArLxB,oEAyBC;YAKD,cAsHC;YAtHD,wCAsHC;YAKD,cAuBC;YAvBD,gDAuBC;YAKD,cAuBC;YAvBD,+CAuBC;;;iFDnKY,sBAAsB;cAPlC,SAAS;6BACI,KAAK,YACP,iBAAiB,mBACV,uBAAuB,CAAC,MAAM;;kBAgB9C,KAAK;;kBAIL,KAAK;mBAAC,MAAM;;kBAKZ,KAAK;;kBAGL,KAAK;;kBAGL,KAAK;;kBAGL,KAAK;;kBAGL,KAAK;;kBAGL,KAAK;;kBAGL,KAAK;;kBAGL,KAAK;;kBAGL,KAAK;;kBAGL,KAAK;;kBAGL,KAAK;;kBAGL,KAAK;;kBAGL,KAAK;;kBACL,KAAK;;kBACL,KAAK;;kBACL,KAAK;;kBACL,KAAK;;kBACL,KAAK;;kBACL,KAAK;;kBAGL,KAAK;;kBAKL,MAAM;;kBAGN,MAAM;;kBAGN,MAAM;;kBAGN,MAAM;;kBAGN,MAAM;;kBAGN,MAAM;;kBAGN,MAAM;;kBAGN,MAAM;;kBAGN,MAAM;;kBAGN,MAAM;;kBAGN,MAAM;;kBAGN,MAAM;;kBAGN,MAAM;;kBAGN,MAAM;;kBAGN,MAAM;;kBAGN,MAAM;;kBACN,MAAM;;kBACN,MAAM;;kBACN,MAAM;;kBACN,MAAM;;kBACN,MAAM;;kFAzHI,sBAAsB"}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Cancellable event base class for form actions.
|
|
3
|
+
* Allows event handlers to cancel default behavior by setting Cancel = true.
|
|
4
|
+
*/
|
|
5
|
+
export declare class CancellableFormEvent {
|
|
6
|
+
/**
|
|
7
|
+
* Set to true to cancel the default behavior of this event.
|
|
8
|
+
* Default: false
|
|
9
|
+
*/
|
|
10
|
+
Cancel: boolean;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Event args for BeforeSave event
|
|
14
|
+
*/
|
|
15
|
+
export declare class BeforeSaveEventArgs extends CancellableFormEvent {
|
|
16
|
+
/**
|
|
17
|
+
* Whether validation should be performed before save
|
|
18
|
+
*/
|
|
19
|
+
ValidateBeforeSave: boolean;
|
|
20
|
+
constructor(validateBeforeSave: boolean);
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Event args for BeforeDelete event
|
|
24
|
+
*/
|
|
25
|
+
export declare class BeforeDeleteEventArgs extends CancellableFormEvent {
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Event args for BeforeCancel event
|
|
29
|
+
*/
|
|
30
|
+
export declare class BeforeCancelEventArgs extends CancellableFormEvent {
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Event args for BeforeHistoryView event
|
|
34
|
+
*/
|
|
35
|
+
export declare class BeforeHistoryViewEventArgs extends CancellableFormEvent {
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Event args for BeforeListManagement event
|
|
39
|
+
*/
|
|
40
|
+
export declare class BeforeListManagementEventArgs extends CancellableFormEvent {
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Event args for custom toolbar button clicks
|
|
44
|
+
*/
|
|
45
|
+
export interface CustomToolbarButtonClickEventArgs {
|
|
46
|
+
/**
|
|
47
|
+
* The key/identifier of the button that was clicked
|
|
48
|
+
*/
|
|
49
|
+
ButtonKey: string;
|
|
50
|
+
/**
|
|
51
|
+
* The button configuration that was clicked
|
|
52
|
+
*/
|
|
53
|
+
Button: CustomToolbarButton;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Configuration for a custom toolbar button
|
|
57
|
+
*/
|
|
58
|
+
export interface CustomToolbarButton {
|
|
59
|
+
/**
|
|
60
|
+
* Unique identifier for this button
|
|
61
|
+
*/
|
|
62
|
+
Key: string;
|
|
63
|
+
/**
|
|
64
|
+
* Display name/label for the button (used for accessibility)
|
|
65
|
+
*/
|
|
66
|
+
Name: string;
|
|
67
|
+
/**
|
|
68
|
+
* Tooltip text shown on hover
|
|
69
|
+
*/
|
|
70
|
+
Description: string;
|
|
71
|
+
/**
|
|
72
|
+
* Font Awesome icon class (e.g., "fa-solid fa-star")
|
|
73
|
+
*/
|
|
74
|
+
Icon: string;
|
|
75
|
+
/**
|
|
76
|
+
* Whether the button should be visible
|
|
77
|
+
* Default: true
|
|
78
|
+
*/
|
|
79
|
+
Visible?: boolean;
|
|
80
|
+
/**
|
|
81
|
+
* Whether the button should be disabled
|
|
82
|
+
* Default: false
|
|
83
|
+
*/
|
|
84
|
+
Disabled?: boolean;
|
|
85
|
+
/**
|
|
86
|
+
* Optional CSS class to apply to the button
|
|
87
|
+
*/
|
|
88
|
+
CssClass?: string;
|
|
89
|
+
}
|
|
90
|
+
//# sourceMappingURL=form-events.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"form-events.d.ts","sourceRoot":"","sources":["../../../src/lib/types/form-events.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,qBAAa,oBAAoB;IAC/B;;;OAGG;IACH,MAAM,UAAS;CAChB;AAED;;GAEG;AACH,qBAAa,mBAAoB,SAAQ,oBAAoB;IAC3D;;OAEG;IACH,kBAAkB,EAAE,OAAO,CAAC;gBAEhB,kBAAkB,EAAE,OAAO;CAIxC;AAED;;GAEG;AACH,qBAAa,qBAAsB,SAAQ,oBAAoB;CAAG;AAElE;;GAEG;AACH,qBAAa,qBAAsB,SAAQ,oBAAoB;CAAG;AAElE;;GAEG;AACH,qBAAa,0BAA2B,SAAQ,oBAAoB;CAAG;AAEvE;;GAEG;AACH,qBAAa,6BAA8B,SAAQ,oBAAoB;CAAG;AAE1E;;GAEG;AACH,MAAM,WAAW,iCAAiC;IAChD;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,MAAM,EAAE,mBAAmB,CAAC;CAC7B;AAED;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IAEZ;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Cancellable event base class for form actions.
|
|
3
|
+
* Allows event handlers to cancel default behavior by setting Cancel = true.
|
|
4
|
+
*/
|
|
5
|
+
export class CancellableFormEvent {
|
|
6
|
+
/**
|
|
7
|
+
* Set to true to cancel the default behavior of this event.
|
|
8
|
+
* Default: false
|
|
9
|
+
*/
|
|
10
|
+
Cancel = false;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Event args for BeforeSave event
|
|
14
|
+
*/
|
|
15
|
+
export class BeforeSaveEventArgs extends CancellableFormEvent {
|
|
16
|
+
/**
|
|
17
|
+
* Whether validation should be performed before save
|
|
18
|
+
*/
|
|
19
|
+
ValidateBeforeSave;
|
|
20
|
+
constructor(validateBeforeSave) {
|
|
21
|
+
super();
|
|
22
|
+
this.ValidateBeforeSave = validateBeforeSave;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Event args for BeforeDelete event
|
|
27
|
+
*/
|
|
28
|
+
export class BeforeDeleteEventArgs extends CancellableFormEvent {
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Event args for BeforeCancel event
|
|
32
|
+
*/
|
|
33
|
+
export class BeforeCancelEventArgs extends CancellableFormEvent {
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Event args for BeforeHistoryView event
|
|
37
|
+
*/
|
|
38
|
+
export class BeforeHistoryViewEventArgs extends CancellableFormEvent {
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Event args for BeforeListManagement event
|
|
42
|
+
*/
|
|
43
|
+
export class BeforeListManagementEventArgs extends CancellableFormEvent {
|
|
44
|
+
}
|
|
45
|
+
//# sourceMappingURL=form-events.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"form-events.js","sourceRoot":"","sources":["../../../src/lib/types/form-events.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,OAAO,oBAAoB;IAC/B;;;OAGG;IACH,MAAM,GAAG,KAAK,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,OAAO,mBAAoB,SAAQ,oBAAoB;IAC3D;;OAEG;IACH,kBAAkB,CAAU;IAE5B,YAAY,kBAA2B;QACrC,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,kBAAkB,GAAG,kBAAkB,CAAC;IAC/C,CAAC;CACF;AAED;;GAEG;AACH,MAAM,OAAO,qBAAsB,SAAQ,oBAAoB;CAAG;AAElE;;GAEG;AACH,MAAM,OAAO,qBAAsB,SAAQ,oBAAoB;CAAG;AAElE;;GAEG;AACH,MAAM,OAAO,0BAA2B,SAAQ,oBAAoB;CAAG;AAEvE;;GAEG;AACH,MAAM,OAAO,6BAA8B,SAAQ,oBAAoB;CAAG"}
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
import { ValidationErrorInfo } from '@memberjunction/global';
|
|
2
|
+
/**
|
|
3
|
+
* Width mode for the form panels container.
|
|
4
|
+
* - 'centered': Max-width constrained and centered (default, good for readability)
|
|
5
|
+
* - 'full-width': No max-width constraint, uses full available width
|
|
6
|
+
*/
|
|
7
|
+
export type FormWidthMode = 'centered' | 'full-width';
|
|
8
|
+
/**
|
|
9
|
+
* Variant for collapsible panel styling.
|
|
10
|
+
* - 'default': Standard white card with accent border
|
|
11
|
+
* - 'related-entity': Blue-accented card for related entity grid sections
|
|
12
|
+
* - 'inherited': Purple-accented card for IS-A inherited field sections
|
|
13
|
+
*/
|
|
14
|
+
export type PanelVariant = 'default' | 'related-entity' | 'inherited';
|
|
15
|
+
/**
|
|
16
|
+
* Information about a section within the form.
|
|
17
|
+
* Used to initialize and track section state.
|
|
18
|
+
*
|
|
19
|
+
* @template M Optional metadata type for custom per-section data
|
|
20
|
+
*/
|
|
21
|
+
export interface FormSectionInfo<M = unknown> {
|
|
22
|
+
/** Unique key for this section (used in state persistence) */
|
|
23
|
+
SectionKey: string;
|
|
24
|
+
/** Display name shown in the panel header */
|
|
25
|
+
SectionName: string;
|
|
26
|
+
/** Whether the section starts expanded. Default: true for field sections, false for related entities */
|
|
27
|
+
IsExpanded: boolean;
|
|
28
|
+
/** Row count for related entity sections (shown as badge) */
|
|
29
|
+
RowCount?: number;
|
|
30
|
+
/** Custom metadata attached to this section */
|
|
31
|
+
Metadata?: M;
|
|
32
|
+
/** Panel variant for styling */
|
|
33
|
+
Variant?: PanelVariant;
|
|
34
|
+
/** Font Awesome icon class for the section header */
|
|
35
|
+
Icon?: string;
|
|
36
|
+
/**
|
|
37
|
+
* If set, indicates this section contains fields inherited from a parent entity.
|
|
38
|
+
* The value is the parent entity name (e.g., "Products" for a Meeting IS-A Product).
|
|
39
|
+
*/
|
|
40
|
+
InheritedFromEntity?: string;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Event emitted when a panel drag-to-reorder operation starts.
|
|
44
|
+
*/
|
|
45
|
+
export interface PanelDragStartEvent {
|
|
46
|
+
SectionKey: string;
|
|
47
|
+
Event: DragEvent;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Event emitted when a panel is dropped onto another panel for reordering.
|
|
51
|
+
*/
|
|
52
|
+
export interface PanelDropEvent {
|
|
53
|
+
SourceSectionKey: string;
|
|
54
|
+
TargetSectionKey: string;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Context object passed from the form to all child components (panels, fields).
|
|
58
|
+
* Eliminates the need for many individual @Input properties.
|
|
59
|
+
*
|
|
60
|
+
* Property names use camelCase to maintain structural compatibility with
|
|
61
|
+
* {@link BaseFormContext} from `@memberjunction/ng-base-forms`. This allows
|
|
62
|
+
* BaseFormComponent.formContext to be passed directly to ng-forms components.
|
|
63
|
+
*/
|
|
64
|
+
export interface FormContext {
|
|
65
|
+
/** Current search filter string for highlighting/filtering sections and fields */
|
|
66
|
+
sectionFilter?: string;
|
|
67
|
+
/** Whether to show fields that have empty values in read-only mode */
|
|
68
|
+
showEmptyFields?: boolean;
|
|
69
|
+
/**
|
|
70
|
+
* When true, all fields show their validation errors regardless of touched state.
|
|
71
|
+
* Set to true after a failed save attempt; reset on successful save or cancel.
|
|
72
|
+
*/
|
|
73
|
+
showValidation?: boolean;
|
|
74
|
+
/**
|
|
75
|
+
* Validation errors from the most recent full-record Validate() call.
|
|
76
|
+
* Fields filter by `ValidationErrorInfo.Source === FieldName` to find their errors.
|
|
77
|
+
*/
|
|
78
|
+
validationErrors?: ValidationErrorInfo[];
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* Result of a form save operation.
|
|
82
|
+
*/
|
|
83
|
+
export interface FormSaveResult {
|
|
84
|
+
/** Whether the save was successful */
|
|
85
|
+
Success: boolean;
|
|
86
|
+
/** Error message if save failed */
|
|
87
|
+
ErrorMessage?: string;
|
|
88
|
+
/** Number of milliseconds the save took */
|
|
89
|
+
DurationMs?: number;
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* Event emitted after a record is saved.
|
|
93
|
+
*/
|
|
94
|
+
export interface RecordSavedEvent {
|
|
95
|
+
EntityName: string;
|
|
96
|
+
RecordId: string;
|
|
97
|
+
/** The display name of the saved record (for tab title updates, etc.) */
|
|
98
|
+
RecordDisplayName?: string;
|
|
99
|
+
Result: FormSaveResult;
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* Event emitted after a record is deleted.
|
|
103
|
+
*/
|
|
104
|
+
export interface RecordDeletedEvent {
|
|
105
|
+
EntityName: string;
|
|
106
|
+
RecordId: string;
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* Event emitted when a record save fails.
|
|
110
|
+
*/
|
|
111
|
+
export interface RecordSaveFailedEvent {
|
|
112
|
+
EntityName: string;
|
|
113
|
+
ErrorMessage: string;
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* Event emitted when a record delete fails.
|
|
117
|
+
*/
|
|
118
|
+
export interface RecordDeleteFailedEvent {
|
|
119
|
+
EntityName: string;
|
|
120
|
+
ErrorMessage: string;
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
123
|
+
* Event emitted when validation fails before save.
|
|
124
|
+
*/
|
|
125
|
+
export interface ValidationFailedEvent {
|
|
126
|
+
EntityName: string;
|
|
127
|
+
Errors: string[];
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* Notification event emitted by BaseFormComponent.
|
|
131
|
+
* The host application subscribes and maps to its own notification system (toasts, snackbars, etc.).
|
|
132
|
+
*/
|
|
133
|
+
export interface FormNotificationEvent {
|
|
134
|
+
/** The notification message text */
|
|
135
|
+
Message: string;
|
|
136
|
+
/** Notification severity */
|
|
137
|
+
Type: 'success' | 'error' | 'warning' | 'info';
|
|
138
|
+
/** Duration in milliseconds the notification should display */
|
|
139
|
+
Duration: number;
|
|
140
|
+
}
|
|
141
|
+
/**
|
|
142
|
+
* Backward-compatible alias for FormContext.
|
|
143
|
+
* Explorer's BaseFormComponent used this name; new code should use FormContext.
|
|
144
|
+
*/
|
|
145
|
+
export type BaseFormContext = FormContext;
|
|
146
|
+
/**
|
|
147
|
+
* Creates a default FormContext with sensible defaults.
|
|
148
|
+
*/
|
|
149
|
+
export declare function createDefaultFormContext(): FormContext;
|
|
150
|
+
//# sourceMappingURL=form-types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"form-types.d.ts","sourceRoot":"","sources":["../../../src/lib/types/form-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAE7D;;;;GAIG;AACH,MAAM,MAAM,aAAa,GAAG,UAAU,GAAG,YAAY,CAAC;AAEtD;;;;;GAKG;AACH,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG,gBAAgB,GAAG,WAAW,CAAC;AAEtE;;;;;GAKG;AACH,MAAM,WAAW,eAAe,CAAC,CAAC,GAAG,OAAO;IAC1C,8DAA8D;IAC9D,UAAU,EAAE,MAAM,CAAC;IACnB,6CAA6C;IAC7C,WAAW,EAAE,MAAM,CAAC;IACpB,wGAAwG;IACxG,UAAU,EAAE,OAAO,CAAC;IACpB,6DAA6D;IAC7D,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,+CAA+C;IAC/C,QAAQ,CAAC,EAAE,CAAC,CAAC;IACb,gCAAgC;IAChC,OAAO,CAAC,EAAE,YAAY,CAAC;IACvB,qDAAqD;IACrD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B;AAED;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,SAAS,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,gBAAgB,EAAE,MAAM,CAAC;IACzB,gBAAgB,EAAE,MAAM,CAAC;CAC1B;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,WAAW;IAC1B,kFAAkF;IAClF,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,sEAAsE;IACtE,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B;;;OAGG;IACH,cA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@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Creates a default FormContext with sensible defaults.
|
|
3
|
+
*/
|
|
4
|
+
export function createDefaultFormContext() {
|
|
5
|
+
return {
|
|
6
|
+
sectionFilter: '',
|
|
7
|
+
showEmptyFields: false,
|
|
8
|
+
showValidation: false,
|
|
9
|
+
validationErrors: []
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=form-types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"form-types.js","sourceRoot":"","sources":["../../../src/lib/types/form-types.ts"],"names":[],"mappings":"AAgKA;;GAEG;AACH,MAAM,UAAU,wBAAwB;IACtC,OAAO;QACL,aAAa,EAAE,EAAE;QACjB,eAAe,EAAE,KAAK;QACtB,cAAc,EAAE,KAAK;QACrB,gBAAgB,EAAE,EAAE;KACrB,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { CompositeKey } from '@memberjunction/core';
|
|
2
|
+
/**
|
|
3
|
+
* Union type for all navigation event kinds emitted by the forms package.
|
|
4
|
+
* The host application subscribes to these and maps them to its own routing system.
|
|
5
|
+
*
|
|
6
|
+
* @example Explorer integration:
|
|
7
|
+
* ```typescript
|
|
8
|
+
* HandleNavigation(event: FormNavigationEvent): void {
|
|
9
|
+
* switch (event.Kind) {
|
|
10
|
+
* case 'record':
|
|
11
|
+
* this.navigationService.NavigateToRecord(event.EntityName, event.PrimaryKey);
|
|
12
|
+
* break;
|
|
13
|
+
* case 'external-link':
|
|
14
|
+
* window.open(event.Url, '_blank');
|
|
15
|
+
* break;
|
|
16
|
+
* }
|
|
17
|
+
* }
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
export type FormNavigationEvent = RecordNavigationEvent | ExternalLinkNavigationEvent | EmailLinkNavigationEvent | EntityHierarchyNavigationEvent | ChildEntityTypeNavigationEvent | NewRecordNavigationEvent;
|
|
21
|
+
/**
|
|
22
|
+
* User clicked a foreign key link to view a related record.
|
|
23
|
+
* Emitted by mj-form-field when a record link is clicked.
|
|
24
|
+
*/
|
|
25
|
+
export interface RecordNavigationEvent {
|
|
26
|
+
Kind: 'record';
|
|
27
|
+
/** The entity name of the target record */
|
|
28
|
+
EntityName: string;
|
|
29
|
+
/** The primary key of the target record */
|
|
30
|
+
PrimaryKey: CompositeKey;
|
|
31
|
+
/** Whether to force opening in a new tab. When omitted, NavigationService uses its default behavior (shift-key detection). */
|
|
32
|
+
OpenInNewTab?: boolean;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* User clicked an external URL (web link field value).
|
|
36
|
+
*/
|
|
37
|
+
export interface ExternalLinkNavigationEvent {
|
|
38
|
+
Kind: 'external-link';
|
|
39
|
+
/** The URL to navigate to */
|
|
40
|
+
Url: string;
|
|
41
|
+
/** Whether to open in a new tab (default: true for external links) */
|
|
42
|
+
OpenInNewTab?: boolean;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* User clicked an email link.
|
|
46
|
+
*/
|
|
47
|
+
export interface EmailLinkNavigationEvent {
|
|
48
|
+
Kind: 'email';
|
|
49
|
+
/** The email address to compose a message to */
|
|
50
|
+
EmailAddress: string;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* User clicked an IS-A parent entity badge in the hierarchy breadcrumb
|
|
54
|
+
* or an "Inherited from X" badge in a section header.
|
|
55
|
+
*/
|
|
56
|
+
export interface EntityHierarchyNavigationEvent {
|
|
57
|
+
Kind: 'entity-hierarchy';
|
|
58
|
+
/** The parent entity name to navigate to */
|
|
59
|
+
EntityName: string;
|
|
60
|
+
/** The parent record's primary key (shared PK in IS-A) */
|
|
61
|
+
PrimaryKey: CompositeKey;
|
|
62
|
+
/** 'parent' = navigating up the chain, 'self' = current entity clicked */
|
|
63
|
+
Direction: 'parent' | 'self';
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* User selected a child entity type from the subtypes dropdown.
|
|
67
|
+
* The host app should navigate to a filtered list of those child records.
|
|
68
|
+
*/
|
|
69
|
+
export interface ChildEntityTypeNavigationEvent {
|
|
70
|
+
Kind: 'child-entity-type';
|
|
71
|
+
/** The child entity name selected */
|
|
72
|
+
ChildEntityName: string;
|
|
73
|
+
/** The current (parent) entity name */
|
|
74
|
+
ParentEntityName: string;
|
|
75
|
+
/** The current (parent) record ID for filtering */
|
|
76
|
+
ParentRecordId: string;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* User wants to create a new related record (from a related entity section).
|
|
80
|
+
*/
|
|
81
|
+
export interface NewRecordNavigationEvent {
|
|
82
|
+
Kind: 'new-record';
|
|
83
|
+
/** The entity name to create a new record for */
|
|
84
|
+
EntityName: string;
|
|
85
|
+
/** Default field values (e.g., foreign key pointing back to current record) */
|
|
86
|
+
DefaultValues: Record<string, unknown>;
|
|
87
|
+
}
|
|
88
|
+
//# sourceMappingURL=navigation-events.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"navigation-events.d.ts","sourceRoot":"","sources":["../../../src/lib/types/navigation-events.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAEpD;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,MAAM,mBAAmB,GAC3B,qBAAqB,GACrB,2BAA2B,GAC3B,wBAAwB,GACxB,8BAA8B,GAC9B,8BAA8B,GAC9B,wBAAwB,CAAC;AAE7B;;;GAGG;AACH,MAAM,WAAW,qBAAqB;IACpC,IAAI,EAAE,QAAQ,CAAC;IACf,2CAA2C;IAC3C,UAAU,EAAE,MAAM,CAAC;IACnB,2CAA2C;IAC3C,UAAU,EAAE,YAAY,CAAC;IACzB,8HAA8H;IAC9H,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAED;;GAEG;AACH,MAAM,WAAW,2BAA2B;IAC1C,IAAI,EAAE,eAAe,CAAC;IACtB,6BAA6B;IAC7B,GAAG,EAAE,MAAM,CAAC;IACZ,sEAAsE;IACtE,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAED;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACvC,IAAI,EAAE,OAAO,CAAC;IACd,gDAAgD;IAChD,YAAY,EAAE,MAAM,CAAC;CACtB;AAED;;;GAGG;AACH,MAAM,WAAW,8BAA8B;IAC7C,IAAI,EAAE,kBAAkB,CAAC;IACzB,4CAA4C;IAC5C,UAAU,EAAE,MAAM,CAAC;IACnB,0DAA0D;IAC1D,UAAU,EAAE,YAAY,CAAC;IACzB,0EAA0E;IAC1E,SAAS,EAAE,QAAQ,GAAG,MAAM,CAAC;CAC9B;AAED;;;GAGG;AACH,MAAM,WAAW,8BAA8B;IAC7C,IAAI,EAAE,mBAAmB,CAAC;IAC1B,qCAAqC;IACrC,eAAe,EAAE,MAAM,CAAC;IACxB,uCAAuC;IACvC,gBAAgB,EAAE,MAAM,CAAC;IACzB,mDAAmD;IACnD,cAAc,EAAE,MAAM,CAAC;CACxB;AAED;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACvC,IAAI,EAAE,YAAY,CAAC;IACnB,iDAAiD;IACjD,UAAU,EAAE,MAAM,CAAC;IACnB,+EAA+E;IAC/E,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACxC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"navigation-events.js","sourceRoot":"","sources":["../../../src/lib/types/navigation-events.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { TemplateRef } from '@angular/core';
|
|
2
|
+
import { CustomToolbarButton } from './form-events';
|
|
3
|
+
/**
|
|
4
|
+
* Configuration object for the form toolbar.
|
|
5
|
+
* Controls which buttons/sections are visible and behavioral options.
|
|
6
|
+
*
|
|
7
|
+
* Pass to `<mj-form-toolbar [config]="toolbarConfig">` to customize the toolbar.
|
|
8
|
+
* Use `DEFAULT_TOOLBAR_CONFIG` as a starting point and override specific properties.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```typescript
|
|
12
|
+
* const myConfig: FormToolbarConfig = {
|
|
13
|
+
* ...DEFAULT_TOOLBAR_CONFIG,
|
|
14
|
+
* ShowDeleteButton: false, // Hide delete for this form
|
|
15
|
+
* ShowEntityHierarchy: true, // Show IS-A breadcrumb
|
|
16
|
+
* ShowFavoriteButton: false, // No favorites in this app
|
|
17
|
+
* };
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
export interface FormToolbarConfig {
|
|
21
|
+
/** Show the Edit button in read mode. Default: true */
|
|
22
|
+
ShowEditButton: boolean;
|
|
23
|
+
/** Show the Delete button in read mode. Default: true */
|
|
24
|
+
ShowDeleteButton: boolean;
|
|
25
|
+
/** Show the Favorite/Unfavorite button. Default: true */
|
|
26
|
+
ShowFavoriteButton: boolean;
|
|
27
|
+
/** Show the Record History button (only if entity tracks changes). Default: true */
|
|
28
|
+
ShowHistoryButton: boolean;
|
|
29
|
+
/** Show the Lists button for managing list membership. Default: true */
|
|
30
|
+
ShowListButton: boolean;
|
|
31
|
+
/** Show the IS-A entity hierarchy breadcrumb. Default: true */
|
|
32
|
+
ShowEntityHierarchy: boolean;
|
|
33
|
+
/** Show section controls (search, expand/collapse, count). Default: true */
|
|
34
|
+
ShowSectionControls: boolean;
|
|
35
|
+
/** Show the edit banner when entering edit mode. Default: true */
|
|
36
|
+
ShowEditBanner: boolean;
|
|
37
|
+
/** Show the "Changes" button when record is dirty in edit mode. Default: true */
|
|
38
|
+
ShowChangesButton: boolean;
|
|
39
|
+
/**
|
|
40
|
+
* Whether the toolbar should be sticky at the top when scrolling.
|
|
41
|
+
* Default: true
|
|
42
|
+
*/
|
|
43
|
+
StickyToolbar: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* Optional template reference for additional toolbar actions.
|
|
46
|
+
* Rendered after the standard buttons via ng-content or TemplateRef.
|
|
47
|
+
*/
|
|
48
|
+
AdditionalActions: TemplateRef<unknown> | null;
|
|
49
|
+
/**
|
|
50
|
+
* Custom toolbar buttons to display in the read-mode toolbar.
|
|
51
|
+
* Shown after the standard buttons (edit, delete, favorite, history, lists).
|
|
52
|
+
*/
|
|
53
|
+
CustomButtons: CustomToolbarButton[];
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Default toolbar configuration - everything visible and sticky.
|
|
57
|
+
* Use as a base and override individual properties.
|
|
58
|
+
*/
|
|
59
|
+
export declare const DEFAULT_TOOLBAR_CONFIG: FormToolbarConfig;
|
|
60
|
+
/**
|
|
61
|
+
* Toolbar config for use inside MJ Explorer where favorites, history, and
|
|
62
|
+
* list management are handled by the host app.
|
|
63
|
+
* Pass as `[ToolbarConfig]="EXPLORER_TOOLBAR_CONFIG"` on the container.
|
|
64
|
+
*/
|
|
65
|
+
export declare const EXPLORER_TOOLBAR_CONFIG: FormToolbarConfig;
|
|
66
|
+
//# sourceMappingURL=toolbar-config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toolbar-config.d.ts","sourceRoot":"","sources":["../../../src/lib/types/toolbar-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAEpD;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,WAAW,iBAAiB;IAGhC,uDAAuD;IACvD,cAAc,EAAE,OAAO,CAAC;IAExB,yDAAyD;IACzD,gBAAgB,EAAE,OAAO,CAAC;IAE1B,yDAAyD;IACzD,kBAAkB,EAAE,OAAO,CAAC;IAE5B,oFAAoF;IACpF,iBAAiB,EAAE,OAAO,CAAC;IAE3B,wEAAwE;IACxE,cAAc,EAAE,OAAO,CAAC;IAExB,+DAA+D;IAC/D,mBAAmB,EAAE,OAAO,CAAC;IAE7B,4EAA4E;IAC5E,mBAAmB,EAAE,OAAO,CAAC;IAE7B,kEAAkE;IAClE,cAAc,EAAE,OAAO,CAAC;IAExB,iFAAiF;IACjF,iBAAiB,EAAE,OAAO,CAAC;IAI3B;;;OAGG;IACH,aAAa,EAAE,OAAO,CAAC;IAIvB;;;OAGG;IACH,iBAAiB,EAAE,WAAW,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC;IAE/C;;;OAGG;IACH,aAAa,EAAE,mBAAmB,EAAE,CAAC;CACtC;AAED;;;GAGG;AACH,eAAO,MAAM,sBAAsB,EAAE,iBAapC,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,uBAAuB,EAAE,iBAarC,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Default toolbar configuration - everything visible and sticky.
|
|
3
|
+
* Use as a base and override individual properties.
|
|
4
|
+
*/
|
|
5
|
+
export const DEFAULT_TOOLBAR_CONFIG = {
|
|
6
|
+
ShowEditButton: true,
|
|
7
|
+
ShowDeleteButton: true,
|
|
8
|
+
ShowFavoriteButton: true,
|
|
9
|
+
ShowHistoryButton: true,
|
|
10
|
+
ShowListButton: true,
|
|
11
|
+
ShowEntityHierarchy: true,
|
|
12
|
+
ShowSectionControls: true,
|
|
13
|
+
ShowEditBanner: true,
|
|
14
|
+
ShowChangesButton: true,
|
|
15
|
+
StickyToolbar: true,
|
|
16
|
+
AdditionalActions: null,
|
|
17
|
+
CustomButtons: []
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* Toolbar config for use inside MJ Explorer where favorites, history, and
|
|
21
|
+
* list management are handled by the host app.
|
|
22
|
+
* Pass as `[ToolbarConfig]="EXPLORER_TOOLBAR_CONFIG"` on the container.
|
|
23
|
+
*/
|
|
24
|
+
export const EXPLORER_TOOLBAR_CONFIG = {
|
|
25
|
+
ShowEditButton: true,
|
|
26
|
+
ShowDeleteButton: true,
|
|
27
|
+
ShowFavoriteButton: true,
|
|
28
|
+
ShowHistoryButton: true,
|
|
29
|
+
ShowListButton: true,
|
|
30
|
+
ShowEntityHierarchy: true,
|
|
31
|
+
ShowSectionControls: true,
|
|
32
|
+
ShowEditBanner: true,
|
|
33
|
+
ShowChangesButton: true,
|
|
34
|
+
StickyToolbar: true,
|
|
35
|
+
AdditionalActions: null,
|
|
36
|
+
CustomButtons: []
|
|
37
|
+
};
|
|
38
|
+
//# sourceMappingURL=toolbar-config.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toolbar-config.js","sourceRoot":"","sources":["../../../src/lib/types/toolbar-config.ts"],"names":[],"mappings":"AAyEA;;;GAGG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAsB;IACvD,cAAc,EAAE,IAAI;IACpB,gBAAgB,EAAE,IAAI;IACtB,kBAAkB,EAAE,IAAI;IACxB,iBAAiB,EAAE,IAAI;IACvB,cAAc,EAAE,IAAI;IACpB,mBAAmB,EAAE,IAAI;IACzB,mBAAmB,EAAE,IAAI;IACzB,cAAc,EAAE,IAAI;IACpB,iBAAiB,EAAE,IAAI;IACvB,aAAa,EAAE,IAAI;IACnB,iBAAiB,EAAE,IAAI;IACvB,aAAa,EAAE,EAAE;CAClB,CAAC;AAEF;;;;GAIG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAsB;IACxD,cAAc,EAAE,IAAI;IACpB,gBAAgB,EAAE,IAAI;IACtB,kBAAkB,EAAE,IAAI;IACxB,iBAAiB,EAAE,IAAI;IACvB,cAAc,EAAE,IAAI;IACpB,mBAAmB,EAAE,IAAI;IACzB,mBAAmB,EAAE,IAAI;IACzB,cAAc,EAAE,IAAI;IACpB,iBAAiB,EAAE,IAAI;IACvB,aAAa,EAAE,IAAI;IACnB,iBAAiB,EAAE,IAAI;IACvB,aAAa,EAAE,EAAE;CAClB,CAAC"}
|
package/dist/module.d.ts
CHANGED
|
@@ -1,29 +1,37 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./lib/
|
|
3
|
-
import * as i2 from "./lib/
|
|
4
|
-
import * as i3 from "./lib/
|
|
5
|
-
import * as i4 from "./lib/form-
|
|
6
|
-
import * as i5 from "./lib/
|
|
2
|
+
import * as i1 from "./lib/toolbar/form-toolbar.component";
|
|
3
|
+
import * as i2 from "./lib/field/form-field.component";
|
|
4
|
+
import * as i3 from "./lib/panel/collapsible-panel.component";
|
|
5
|
+
import * as i4 from "./lib/container/record-form-container.component";
|
|
6
|
+
import * as i5 from "./lib/section-loader-component";
|
|
7
7
|
import * as i6 from "./lib/explorer-entity-data-grid.component";
|
|
8
8
|
import * as i7 from "@angular/common";
|
|
9
9
|
import * as i8 from "@angular/forms";
|
|
10
|
-
import * as i9 from "@memberjunction/ng-
|
|
11
|
-
import * as i10 from "@memberjunction/ng-
|
|
12
|
-
import * as i11 from "@
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
10
|
+
import * as i9 from "@memberjunction/ng-record-changes";
|
|
11
|
+
import * as i10 from "@memberjunction/ng-list-management";
|
|
12
|
+
import * as i11 from "@memberjunction/ng-entity-viewer";
|
|
13
|
+
/**
|
|
14
|
+
* BaseFormsModule - Form components and base classes for rendering and editing MemberJunction entity records.
|
|
15
|
+
*
|
|
16
|
+
* Provides:
|
|
17
|
+
* - **MjRecordFormContainerComponent** (`<mj-record-form-container>`): Top-level container
|
|
18
|
+
* with sticky toolbar, section state management, and content slots.
|
|
19
|
+
* - **MjFormToolbarComponent** (`<mj-form-toolbar>`): Configurable toolbar with read/edit mode
|
|
20
|
+
* actions, IS-A hierarchy breadcrumb, section controls, and inline delete dialog.
|
|
21
|
+
* - **MjCollapsiblePanelComponent** (`<mj-collapsible-panel>`): Collapsible section with
|
|
22
|
+
* drag-to-reorder, search filtering, and inherited/related variants.
|
|
23
|
+
* - **MjFormFieldComponent** (`<mj-form-field>`): Entity field renderer with clean read-only
|
|
24
|
+
* display and modern edit-mode inputs (native HTML with custom select and autocomplete).
|
|
25
|
+
* - **SectionLoaderComponent** (`<mj-form-section>`): Dynamic section loader via ClassFactory.
|
|
26
|
+
* - **ExplorerEntityDataGridComponent** (`<mj-explorer-entity-data-grid>`): Data grid wrapper
|
|
27
|
+
* for related entity sections with Navigate event support.
|
|
28
|
+
*
|
|
29
|
+
* All navigation actions are emitted as events via {@link FormNavigationEvent}.
|
|
30
|
+
* The host application subscribes and maps to its own routing system.
|
|
31
|
+
*/
|
|
24
32
|
export declare class BaseFormsModule {
|
|
25
33
|
static ɵfac: i0.ɵɵFactoryDeclaration<BaseFormsModule, never>;
|
|
26
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<BaseFormsModule, [typeof i1.
|
|
34
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<BaseFormsModule, [typeof i1.MjFormToolbarComponent, typeof i2.MjFormFieldComponent, typeof i3.MjCollapsiblePanelComponent, typeof i4.MjRecordFormContainerComponent, typeof i5.SectionLoaderComponent, typeof i6.ExplorerEntityDataGridComponent], [typeof i7.CommonModule, typeof i8.FormsModule, typeof i9.RecordChangesModule, typeof i10.ListManagementModule, typeof i11.EntityViewerModule], [typeof i1.MjFormToolbarComponent, typeof i2.MjFormFieldComponent, typeof i3.MjCollapsiblePanelComponent, typeof i4.MjRecordFormContainerComponent, typeof i5.SectionLoaderComponent, typeof i6.ExplorerEntityDataGridComponent]>;
|
|
27
35
|
static ɵinj: i0.ɵɵInjectorDeclaration<BaseFormsModule>;
|
|
28
36
|
}
|
|
29
37
|
//# sourceMappingURL=module.d.ts.map
|
package/dist/module.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../src/module.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../src/module.ts"],"names":[],"mappings":";;;;;;;;;;;;AAcA;;;;;;;;;;;;;;;;;;GAkBG;AACH,qBAyBa,eAAe;yCAAf,eAAe;0CAAf,eAAe;0CAAf,eAAe;CAAI"}
|