@memberjunction/ng-artifacts 5.47.0 → 5.49.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/components/plugins/component-artifact-viewer.component.d.ts +23 -2
- package/dist/lib/components/plugins/component-artifact-viewer.component.d.ts.map +1 -1
- package/dist/lib/components/plugins/component-artifact-viewer.component.js +140 -65
- package/dist/lib/components/plugins/component-artifact-viewer.component.js.map +1 -1
- package/dist/lib/components/plugins/data-artifact-viewer.component.d.ts.map +1 -1
- package/dist/lib/components/plugins/data-artifact-viewer.component.js +16 -7
- package/dist/lib/components/plugins/data-artifact-viewer.component.js.map +1 -1
- package/dist/lib/services/interactive-form-apply.service.d.ts.map +1 -1
- package/dist/lib/services/interactive-form-apply.service.js +17 -9
- package/dist/lib/services/interactive-form-apply.service.js.map +1 -1
- package/package.json +21 -21
|
@@ -3,6 +3,7 @@ import { BaseArtifactViewerPluginComponent, ArtifactViewerTab } from '../base-ar
|
|
|
3
3
|
import { MJReactComponent, AngularAdapterService } from '@memberjunction/ng-react';
|
|
4
4
|
import { ComponentSpec } from '@memberjunction/interactive-component-types';
|
|
5
5
|
import { BaseEntity, CompositeKey, DataSnapshot, EntityInfo } from '@memberjunction/core';
|
|
6
|
+
import { InteractiveFormComponent } from '@memberjunction/ng-base-forms';
|
|
6
7
|
import { PermissionEvaluationResult } from './component-permission-evaluation';
|
|
7
8
|
import * as i0 from "@angular/core";
|
|
8
9
|
/**
|
|
@@ -17,6 +18,7 @@ export declare class ComponentArtifactViewerComponent extends BaseArtifactViewer
|
|
|
17
18
|
private adapter;
|
|
18
19
|
private cdr;
|
|
19
20
|
reactComponent?: MJReactComponent;
|
|
21
|
+
interactiveForm?: InteractiveFormComponent;
|
|
20
22
|
tabsChanged: EventEmitter<void>;
|
|
21
23
|
openEntityRecord: EventEmitter<{
|
|
22
24
|
entityName: string;
|
|
@@ -168,8 +170,27 @@ export declare class ComponentArtifactViewerComponent extends BaseArtifactViewer
|
|
|
168
170
|
ID: string;
|
|
169
171
|
Label: string;
|
|
170
172
|
}): Promise<void>;
|
|
171
|
-
/**
|
|
172
|
-
|
|
173
|
+
/**
|
|
174
|
+
* Bubble Apply intent up to the host (Form Builder dashboard / Sage chat).
|
|
175
|
+
*
|
|
176
|
+
* Resolves the full ComponentSpec (with code) from multiple sources:
|
|
177
|
+
* 1. resolvedComponentSpec — live React bridge or cached copy (best for non-form artifacts)
|
|
178
|
+
* 2. Re-parse artifact version Content — the agent stores the full spec including code
|
|
179
|
+
* 3. DB fallback — fetch from MJ: Components by name
|
|
180
|
+
*
|
|
181
|
+
* Source #2 covers the common form-artifact case where the React component lives inside
|
|
182
|
+
* <mj-interactive-form> and resolvedComponentSpec falls back to the stripped local spec.
|
|
183
|
+
*/
|
|
184
|
+
onApplyClicked(): Promise<void>;
|
|
185
|
+
/**
|
|
186
|
+
* Resolve a ComponentSpec that includes code, trying multiple sources in order.
|
|
187
|
+
*/
|
|
188
|
+
private resolveSpecWithCode;
|
|
189
|
+
/**
|
|
190
|
+
* Fetch the full ComponentSpec (including code) from the MJ: Components table
|
|
191
|
+
* by component name. Returns null if not found or on error.
|
|
192
|
+
*/
|
|
193
|
+
private fetchFullSpecByName;
|
|
173
194
|
static ɵfac: i0.ɵɵFactoryDeclaration<ComponentArtifactViewerComponent, never>;
|
|
174
195
|
static ɵcmp: i0.ɵɵComponentDeclaration<ComponentArtifactViewerComponent, "mj-component-artifact-viewer", never, {}, { "tabsChanged": "tabsChanged"; "openEntityRecord": "openEntityRecord"; "applyFormRequested": "applyFormRequested"; }, never, never, false, never>;
|
|
175
196
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"component-artifact-viewer.component.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/plugins/component-artifact-viewer.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAwB,aAAa,EAAE,MAAM,EAAE,SAAS,EAAE,aAAa,EAAU,YAAY,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAE/I,OAAO,EAAE,iCAAiC,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AACzG,OAAO,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AACnF,OAAO,EAA8B,aAAa,EAAE,MAAM,6CAA6C,CAAC;AAExG,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,YAAY,EAAE,UAAU,EAAqB,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"component-artifact-viewer.component.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/plugins/component-artifact-viewer.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAwB,aAAa,EAAE,MAAM,EAAE,SAAS,EAAE,aAAa,EAAU,YAAY,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAE/I,OAAO,EAAE,iCAAiC,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AACzG,OAAO,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AACnF,OAAO,EAA8B,aAAa,EAAE,MAAM,6CAA6C,CAAC;AAExG,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,YAAY,EAAE,UAAU,EAAqB,MAAM,sBAAsB,CAAC;AAC7G,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AAEzE,OAAO,EAAgC,0BAA0B,EAAE,MAAM,mCAAmC,CAAC;;AAE7G;;;;;;;GAOG;AACH,qBAOa,gCAAiC,SAAQ,iCAAkC,YAAW,MAAM,EAAE,aAAa,EAAE,SAAS;IAgFrH,OAAO,CAAC,OAAO;IAAyB,OAAO,CAAC,GAAG;IA/ElC,cAAc,CAAC,EAAE,gBAAgB,CAAC;IACjC,eAAe,CAAC,EAAE,wBAAwB,CAAC;IAC/D,WAAW,qBAA4B;IACvC,gBAAgB;oBAAiC,MAAM;sBAAgB,YAAY;OAAK;IAElG;;;;;OAKG;IACO,kBA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