@rippling/rippling-sdk 0.2.0-alpha.37 → 0.2.0-alpha.39
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/examples/sdui/sdui-crud-todo/sdui-crud-todo.ts +3 -3
- package/examples/sdui/sdui-showcase/sdui-showcase.ts +6 -11
- package/examples/sdui/sdui-tab-multi-view/sdui-tab-multi-view.ts +14 -24
- package/examples/sdui/vote/vote.ts +7 -11
- package/lib/manifest/app.d.mts +11 -1
- package/lib/manifest/app.d.mts.map +1 -1
- package/lib/manifest/app.d.ts +11 -1
- package/lib/manifest/app.d.ts.map +1 -1
- package/lib/manifest/app.js +42 -1
- package/lib/manifest/app.js.map +1 -1
- package/lib/manifest/app.mjs +42 -1
- package/lib/manifest/app.mjs.map +1 -1
- package/lib/manifest/category.d.mts +14 -3
- package/lib/manifest/category.d.mts.map +1 -1
- package/lib/manifest/category.d.ts +14 -3
- package/lib/manifest/category.d.ts.map +1 -1
- package/lib/manifest/category.js +25 -3
- package/lib/manifest/category.js.map +1 -1
- package/lib/manifest/category.mjs +25 -3
- package/lib/manifest/category.mjs.map +1 -1
- package/lib/manifest/custom-object-field-section.d.mts +13 -0
- package/lib/manifest/custom-object-field-section.d.mts.map +1 -1
- package/lib/manifest/custom-object-field-section.d.ts +13 -0
- package/lib/manifest/custom-object-field-section.d.ts.map +1 -1
- package/lib/manifest/custom-object-field-section.js +22 -1
- package/lib/manifest/custom-object-field-section.js.map +1 -1
- package/lib/manifest/custom-object-field-section.mjs +22 -1
- package/lib/manifest/custom-object-field-section.mjs.map +1 -1
- package/lib/manifest/custom-object-page-layout.d.mts +23 -0
- package/lib/manifest/custom-object-page-layout.d.mts.map +1 -1
- package/lib/manifest/custom-object-page-layout.d.ts +23 -0
- package/lib/manifest/custom-object-page-layout.d.ts.map +1 -1
- package/lib/manifest/custom-object-page-layout.js +45 -2
- package/lib/manifest/custom-object-page-layout.js.map +1 -1
- package/lib/manifest/custom-object-page-layout.mjs +45 -2
- package/lib/manifest/custom-object-page-layout.mjs.map +1 -1
- package/lib/manifest/custom-object.d.mts +41 -2
- package/lib/manifest/custom-object.d.mts.map +1 -1
- package/lib/manifest/custom-object.d.ts +41 -2
- package/lib/manifest/custom-object.d.ts.map +1 -1
- package/lib/manifest/custom-object.js +70 -3
- package/lib/manifest/custom-object.js.map +1 -1
- package/lib/manifest/custom-object.mjs +70 -3
- package/lib/manifest/custom-object.mjs.map +1 -1
- package/lib/manifest/existing-manifest-context.d.mts +87 -0
- package/lib/manifest/existing-manifest-context.d.mts.map +1 -0
- package/lib/manifest/existing-manifest-context.d.ts +87 -0
- package/lib/manifest/existing-manifest-context.d.ts.map +1 -0
- package/lib/manifest/existing-manifest-context.js +511 -0
- package/lib/manifest/existing-manifest-context.js.map +1 -0
- package/lib/manifest/existing-manifest-context.mjs +506 -0
- package/lib/manifest/existing-manifest-context.mjs.map +1 -0
- package/lib/manifest/field.d.mts +44 -2
- package/lib/manifest/field.d.mts.map +1 -1
- package/lib/manifest/field.d.ts +44 -2
- package/lib/manifest/field.d.ts.map +1 -1
- package/lib/manifest/field.js +134 -3
- package/lib/manifest/field.js.map +1 -1
- package/lib/manifest/field.mjs +134 -3
- package/lib/manifest/field.mjs.map +1 -1
- package/lib/manifest/index.d.mts +8 -7
- package/lib/manifest/index.d.mts.map +1 -1
- package/lib/manifest/index.d.ts +8 -7
- package/lib/manifest/index.d.ts.map +1 -1
- package/lib/manifest/index.js +3 -1
- package/lib/manifest/index.js.map +1 -1
- package/lib/manifest/index.mjs +5 -4
- package/lib/manifest/index.mjs.map +1 -1
- package/lib/manifest/list-view.d.mts +17 -0
- package/lib/manifest/list-view.d.mts.map +1 -1
- package/lib/manifest/list-view.d.ts +17 -0
- package/lib/manifest/list-view.d.ts.map +1 -1
- package/lib/manifest/list-view.js +38 -1
- package/lib/manifest/list-view.js.map +1 -1
- package/lib/manifest/list-view.mjs +38 -1
- package/lib/manifest/list-view.mjs.map +1 -1
- package/lib/manifest/manifest-builder.d.mts +60 -7
- package/lib/manifest/manifest-builder.d.mts.map +1 -1
- package/lib/manifest/manifest-builder.d.ts +60 -7
- package/lib/manifest/manifest-builder.d.ts.map +1 -1
- package/lib/manifest/manifest-builder.js +62 -4
- package/lib/manifest/manifest-builder.js.map +1 -1
- package/lib/manifest/manifest-builder.mjs +62 -4
- package/lib/manifest/manifest-builder.mjs.map +1 -1
- package/lib/manifest/manifest-function.d.mts +18 -3
- package/lib/manifest/manifest-function.d.mts.map +1 -1
- package/lib/manifest/manifest-function.d.ts +18 -3
- package/lib/manifest/manifest-function.d.ts.map +1 -1
- package/lib/manifest/manifest-function.js +44 -3
- package/lib/manifest/manifest-function.js.map +1 -1
- package/lib/manifest/manifest-function.mjs +44 -3
- package/lib/manifest/manifest-function.mjs.map +1 -1
- package/lib/manifest/rule.d.mts +17 -0
- package/lib/manifest/rule.d.mts.map +1 -1
- package/lib/manifest/rule.d.ts +17 -0
- package/lib/manifest/rule.d.ts.map +1 -1
- package/lib/manifest/rule.js +45 -1
- package/lib/manifest/rule.js.map +1 -1
- package/lib/manifest/rule.mjs +45 -1
- package/lib/manifest/rule.mjs.map +1 -1
- package/lib/manifest/sdui-page.d.mts +10 -1
- package/lib/manifest/sdui-page.d.mts.map +1 -1
- package/lib/manifest/sdui-page.d.ts +10 -1
- package/lib/manifest/sdui-page.d.ts.map +1 -1
- package/lib/manifest/sdui-page.js +28 -1
- package/lib/manifest/sdui-page.js.map +1 -1
- package/lib/manifest/sdui-page.mjs +28 -1
- package/lib/manifest/sdui-page.mjs.map +1 -1
- package/lib/manifest/validation.d.mts +17 -0
- package/lib/manifest/validation.d.mts.map +1 -1
- package/lib/manifest/validation.d.ts +17 -0
- package/lib/manifest/validation.d.ts.map +1 -1
- package/lib/manifest/validation.js +31 -1
- package/lib/manifest/validation.js.map +1 -1
- package/lib/manifest/validation.mjs +31 -1
- package/lib/manifest/validation.mjs.map +1 -1
- package/lib/sdui/actions.d.mts.map +1 -1
- package/lib/sdui/actions.d.ts.map +1 -1
- package/lib/sdui/actions.js +23 -13
- package/lib/sdui/actions.js.map +1 -1
- package/lib/sdui/actions.mjs +23 -13
- package/lib/sdui/actions.mjs.map +1 -1
- package/lib/sdui/component.d.mts +28 -11
- package/lib/sdui/component.d.mts.map +1 -1
- package/lib/sdui/component.d.ts +28 -11
- package/lib/sdui/component.d.ts.map +1 -1
- package/lib/sdui/component.js +69 -36
- package/lib/sdui/component.js.map +1 -1
- package/lib/sdui/component.mjs +69 -36
- package/lib/sdui/component.mjs.map +1 -1
- package/lib/sdui/components.d.mts +1141 -132
- package/lib/sdui/components.d.mts.map +1 -1
- package/lib/sdui/components.d.ts +1141 -132
- package/lib/sdui/components.d.ts.map +1 -1
- package/lib/sdui/components.js +834 -206
- package/lib/sdui/components.js.map +1 -1
- package/lib/sdui/components.mjs +830 -203
- package/lib/sdui/components.mjs.map +1 -1
- package/lib/sdui/directives.d.mts.map +1 -1
- package/lib/sdui/directives.d.ts.map +1 -1
- package/lib/sdui/directives.js +4 -1
- package/lib/sdui/directives.js.map +1 -1
- package/lib/sdui/directives.mjs +4 -1
- package/lib/sdui/directives.mjs.map +1 -1
- package/lib/sdui/index.d.mts +314 -261
- package/lib/sdui/index.d.mts.map +1 -1
- package/lib/sdui/index.d.ts +314 -261
- package/lib/sdui/index.d.ts.map +1 -1
- package/lib/sdui/index.js +255 -204
- package/lib/sdui/index.js.map +1 -1
- package/lib/sdui/index.mjs +128 -103
- package/lib/sdui/index.mjs.map +1 -1
- package/lib/sdui/propTypes.d.mts +6330 -0
- package/lib/sdui/propTypes.d.mts.map +1 -0
- package/lib/sdui/propTypes.d.ts +6330 -0
- package/lib/sdui/propTypes.d.ts.map +1 -0
- package/lib/sdui/propTypes.js +14 -0
- package/lib/sdui/propTypes.js.map +1 -0
- package/lib/sdui/propTypes.mjs +13 -0
- package/lib/sdui/propTypes.mjs.map +1 -0
- package/lib/sdui/render.d.mts +1 -1
- package/lib/sdui/render.d.mts.map +1 -1
- package/lib/sdui/render.d.ts +1 -1
- package/lib/sdui/render.d.ts.map +1 -1
- package/lib/sdui/render.js +11 -3
- package/lib/sdui/render.js.map +1 -1
- package/lib/sdui/render.mjs +11 -3
- package/lib/sdui/render.mjs.map +1 -1
- package/lib/sdui/state.d.mts.map +1 -1
- package/lib/sdui/state.d.ts.map +1 -1
- package/lib/sdui/state.js +3 -1
- package/lib/sdui/state.js.map +1 -1
- package/lib/sdui/state.mjs +3 -1
- package/lib/sdui/state.mjs.map +1 -1
- package/package.json +1 -1
- package/src/lib/manifest/app.ts +46 -2
- package/src/lib/manifest/category.ts +35 -7
- package/src/lib/manifest/custom-object-field-section.ts +37 -1
- package/src/lib/manifest/custom-object-page-layout.ts +67 -2
- package/src/lib/manifest/custom-object.ts +88 -4
- package/src/lib/manifest/existing-manifest-context.ts +673 -0
- package/src/lib/manifest/field.ts +160 -3
- package/src/lib/manifest/index.ts +39 -4
- package/src/lib/manifest/list-view.ts +50 -1
- package/src/lib/manifest/manifest-builder.ts +115 -5
- package/src/lib/manifest/manifest-function.ts +44 -4
- package/src/lib/manifest/rule.ts +60 -1
- package/src/lib/manifest/sdui-page.ts +37 -2
- package/src/lib/manifest/validation.ts +48 -1
- package/src/lib/sdui/actions.ts +23 -10
- package/src/lib/sdui/component.ts +84 -44
- package/src/lib/sdui/components.ts +1627 -212
- package/src/lib/sdui/directives.ts +4 -1
- package/src/lib/sdui/index.ts +565 -200
- package/src/lib/sdui/propTypes.ts +8470 -0
- package/src/lib/sdui/render.ts +13 -5
- package/src/lib/sdui/state.ts +8 -2
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type ExistingManifestContextOptions } from "./existing-manifest-context.mjs";
|
|
2
|
+
import type { ManifestComponentDeletion, ManifestScope } from "./manifest-builder.mjs";
|
|
2
3
|
/**
|
|
3
4
|
* Initialization properties for {@link Category}.
|
|
4
5
|
*/
|
|
@@ -18,9 +19,11 @@ export interface CategoryProps {
|
|
|
18
19
|
/**
|
|
19
20
|
* Human-readable description of what this category groups.
|
|
20
21
|
*
|
|
21
|
-
*
|
|
22
|
+
* Required. The backend (`CustomCategoryConfig.description: str`) requires the
|
|
23
|
+
* key to be present and rejects `null`. Pass an empty string only if you truly
|
|
24
|
+
* have no meaningful copy.
|
|
22
25
|
*/
|
|
23
|
-
description
|
|
26
|
+
description: string;
|
|
24
27
|
}
|
|
25
28
|
/**
|
|
26
29
|
* Defines a category and registers it with the manifest.
|
|
@@ -53,6 +56,8 @@ export interface CategoryProps {
|
|
|
53
56
|
* @see {@link CustomObject} — references this category via instance or api_name string.
|
|
54
57
|
*/
|
|
55
58
|
export declare class Category {
|
|
59
|
+
static readonly componentType: "CUSTOM_CATEGORY";
|
|
60
|
+
static toDeletionIdentifier(apiName: string): ManifestComponentDeletion;
|
|
56
61
|
private readonly _apiName;
|
|
57
62
|
private readonly _name;
|
|
58
63
|
private readonly _description;
|
|
@@ -61,6 +66,12 @@ export declare class Category {
|
|
|
61
66
|
* @param props - Initialization properties.
|
|
62
67
|
*/
|
|
63
68
|
constructor(scope: ManifestScope, props: CategoryProps);
|
|
69
|
+
/**
|
|
70
|
+
* Loads this category from the active existing-manifest JSON context.
|
|
71
|
+
*/
|
|
72
|
+
static loadFromExisting(apiName: string, options?: ExistingManifestContextOptions): Category;
|
|
73
|
+
/** @internal Hydrates a category from existing manifest wire JSON. */
|
|
74
|
+
static _fromExistingComponent(scope: ManifestScope, component: Record<string, any>): Category;
|
|
64
75
|
/**
|
|
65
76
|
* Returns the api_name of this category (e.g. `'gym__c'`).
|
|
66
77
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"category.d.mts","sourceRoot":"","sources":["../../src/lib/manifest/category.ts"],"names":[],"mappings":"OAAO,KAAK,EAAE,aAAa,EAAE;
|
|
1
|
+
{"version":3,"file":"category.d.mts","sourceRoot":"","sources":["../../src/lib/manifest/category.ts"],"names":[],"mappings":"OAAO,EAA8B,KAAK,8BAA8B,EAAE;OACnE,KAAK,EAAE,yBAAyB,EAAE,aAAa,EAAE;AAExD;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;;;OAMG;IACH,WAAW,EAAE,MAAM,CAAC;CACrB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,qBAAa,QAAQ;IACnB,MAAM,CAAC,QAAQ,CAAC,aAAa,EAAG,iBAAiB,CAAU;IAE3D,MAAM,CAAC,oBAAoB,CAAC,OAAO,EAAE,MAAM,GAAG,yBAAyB;IAOvE,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAS;IAClC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAS;IAC/B,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAS;IAEtC;;;OAGG;gBACS,KAAK,EAAE,aAAa,EAAE,KAAK,EAAE,aAAa;IAOtD;;OAEG;IACH,MAAM,CAAC,gBAAgB,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,GAAE,8BAAmC,GAAG,QAAQ;IAIhG,sEAAsE;IACtE,MAAM,CAAC,sBAAsB,CAAC,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,QAAQ;IAQ7F;;OAEG;IACH,UAAU,IAAI,MAAM;IAIpB;;OAEG;IACH,OAAO,IAAI,MAAM;IAIjB;;;;OAIG;IACH,MAAM,IAAI,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;CAQ9B"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type ExistingManifestContextOptions } from "./existing-manifest-context.js";
|
|
2
|
+
import type { ManifestComponentDeletion, ManifestScope } from "./manifest-builder.js";
|
|
2
3
|
/**
|
|
3
4
|
* Initialization properties for {@link Category}.
|
|
4
5
|
*/
|
|
@@ -18,9 +19,11 @@ export interface CategoryProps {
|
|
|
18
19
|
/**
|
|
19
20
|
* Human-readable description of what this category groups.
|
|
20
21
|
*
|
|
21
|
-
*
|
|
22
|
+
* Required. The backend (`CustomCategoryConfig.description: str`) requires the
|
|
23
|
+
* key to be present and rejects `null`. Pass an empty string only if you truly
|
|
24
|
+
* have no meaningful copy.
|
|
22
25
|
*/
|
|
23
|
-
description
|
|
26
|
+
description: string;
|
|
24
27
|
}
|
|
25
28
|
/**
|
|
26
29
|
* Defines a category and registers it with the manifest.
|
|
@@ -53,6 +56,8 @@ export interface CategoryProps {
|
|
|
53
56
|
* @see {@link CustomObject} — references this category via instance or api_name string.
|
|
54
57
|
*/
|
|
55
58
|
export declare class Category {
|
|
59
|
+
static readonly componentType: "CUSTOM_CATEGORY";
|
|
60
|
+
static toDeletionIdentifier(apiName: string): ManifestComponentDeletion;
|
|
56
61
|
private readonly _apiName;
|
|
57
62
|
private readonly _name;
|
|
58
63
|
private readonly _description;
|
|
@@ -61,6 +66,12 @@ export declare class Category {
|
|
|
61
66
|
* @param props - Initialization properties.
|
|
62
67
|
*/
|
|
63
68
|
constructor(scope: ManifestScope, props: CategoryProps);
|
|
69
|
+
/**
|
|
70
|
+
* Loads this category from the active existing-manifest JSON context.
|
|
71
|
+
*/
|
|
72
|
+
static loadFromExisting(apiName: string, options?: ExistingManifestContextOptions): Category;
|
|
73
|
+
/** @internal Hydrates a category from existing manifest wire JSON. */
|
|
74
|
+
static _fromExistingComponent(scope: ManifestScope, component: Record<string, any>): Category;
|
|
64
75
|
/**
|
|
65
76
|
* Returns the api_name of this category (e.g. `'gym__c'`).
|
|
66
77
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"category.d.ts","sourceRoot":"","sources":["../../src/lib/manifest/category.ts"],"names":[],"mappings":"OAAO,KAAK,EAAE,aAAa,EAAE;
|
|
1
|
+
{"version":3,"file":"category.d.ts","sourceRoot":"","sources":["../../src/lib/manifest/category.ts"],"names":[],"mappings":"OAAO,EAA8B,KAAK,8BAA8B,EAAE;OACnE,KAAK,EAAE,yBAAyB,EAAE,aAAa,EAAE;AAExD;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;;;OAMG;IACH,WAAW,EAAE,MAAM,CAAC;CACrB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,qBAAa,QAAQ;IACnB,MAAM,CAAC,QAAQ,CAAC,aAAa,EAAG,iBAAiB,CAAU;IAE3D,MAAM,CAAC,oBAAoB,CAAC,OAAO,EAAE,MAAM,GAAG,yBAAyB;IAOvE,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAS;IAClC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAS;IAC/B,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAS;IAEtC;;;OAGG;gBACS,KAAK,EAAE,aAAa,EAAE,KAAK,EAAE,aAAa;IAOtD;;OAEG;IACH,MAAM,CAAC,gBAAgB,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,GAAE,8BAAmC,GAAG,QAAQ;IAIhG,sEAAsE;IACtE,MAAM,CAAC,sBAAsB,CAAC,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,QAAQ;IAQ7F;;OAEG;IACH,UAAU,IAAI,MAAM;IAIpB;;OAEG;IACH,OAAO,IAAI,MAAM;IAIjB;;;;OAIG;IACH,MAAM,IAAI,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;CAQ9B"}
|
package/lib/manifest/category.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Category = void 0;
|
|
4
|
+
const existing_manifest_context_1 = require("./existing-manifest-context.js");
|
|
4
5
|
/**
|
|
5
6
|
* Defines a category and registers it with the manifest.
|
|
6
7
|
*
|
|
@@ -32,6 +33,12 @@ exports.Category = void 0;
|
|
|
32
33
|
* @see {@link CustomObject} — references this category via instance or api_name string.
|
|
33
34
|
*/
|
|
34
35
|
class Category {
|
|
36
|
+
static toDeletionIdentifier(apiName) {
|
|
37
|
+
return {
|
|
38
|
+
type: Category.componentType,
|
|
39
|
+
api_name: apiName,
|
|
40
|
+
};
|
|
41
|
+
}
|
|
35
42
|
/**
|
|
36
43
|
* @param scope - The manifest to register this category with.
|
|
37
44
|
* @param props - Initialization properties.
|
|
@@ -39,9 +46,23 @@ class Category {
|
|
|
39
46
|
constructor(scope, props) {
|
|
40
47
|
this._apiName = props.apiName;
|
|
41
48
|
this._name = props.name;
|
|
42
|
-
this._description = props.description
|
|
49
|
+
this._description = props.description;
|
|
43
50
|
scope._register(this);
|
|
44
51
|
}
|
|
52
|
+
/**
|
|
53
|
+
* Loads this category from the active existing-manifest JSON context.
|
|
54
|
+
*/
|
|
55
|
+
static loadFromExisting(apiName, options = {}) {
|
|
56
|
+
return (0, existing_manifest_context_1.getExistingManifestContext)(options).loadCategory(apiName);
|
|
57
|
+
}
|
|
58
|
+
/** @internal Hydrates a category from existing manifest wire JSON. */
|
|
59
|
+
static _fromExistingComponent(scope, component) {
|
|
60
|
+
return new Category(scope, {
|
|
61
|
+
apiName: component['api_name'],
|
|
62
|
+
name: component['name'] ?? component['api_name'],
|
|
63
|
+
description: component['description'] ?? '',
|
|
64
|
+
});
|
|
65
|
+
}
|
|
45
66
|
/**
|
|
46
67
|
* Returns the api_name of this category (e.g. `'gym__c'`).
|
|
47
68
|
*/
|
|
@@ -61,12 +82,13 @@ class Category {
|
|
|
61
82
|
*/
|
|
62
83
|
toDict() {
|
|
63
84
|
return {
|
|
64
|
-
type:
|
|
85
|
+
type: Category.componentType,
|
|
65
86
|
api_name: this._apiName,
|
|
66
87
|
name: this._name,
|
|
67
|
-
description: this._description
|
|
88
|
+
description: this._description,
|
|
68
89
|
};
|
|
69
90
|
}
|
|
70
91
|
}
|
|
71
92
|
exports.Category = Category;
|
|
93
|
+
Category.componentType = 'CUSTOM_CATEGORY';
|
|
72
94
|
//# sourceMappingURL=category.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"category.js","sourceRoot":"","sources":["../../src/lib/manifest/category.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"category.js","sourceRoot":"","sources":["../../src/lib/manifest/category.ts"],"names":[],"mappings":";;;AAAA,8EAA8G;AA6B9G;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,MAAa,QAAQ;IAGnB,MAAM,CAAC,oBAAoB,CAAC,OAAe;QACzC,OAAO;YACL,IAAI,EAAE,QAAQ,CAAC,aAAa;YAC5B,QAAQ,EAAE,OAAO;SAClB,CAAC;IACJ,CAAC;IAMD;;;OAGG;IACH,YAAY,KAAoB,EAAE,KAAoB;QACpD,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC,OAAO,CAAC;QAC9B,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC,IAAI,CAAC;QACxB,IAAI,CAAC,YAAY,GAAG,KAAK,CAAC,WAAW,CAAC;QACtC,KAAK,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;IACxB,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,gBAAgB,CAAC,OAAe,EAAE,UAA0C,EAAE;QACnF,OAAO,IAAA,sDAA0B,EAAC,OAAO,CAAC,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;IACnE,CAAC;IAED,sEAAsE;IACtE,MAAM,CAAC,sBAAsB,CAAC,KAAoB,EAAE,SAA8B;QAChF,OAAO,IAAI,QAAQ,CAAC,KAAK,EAAE;YACzB,OAAO,EAAE,SAAS,CAAC,UAAU,CAAC;YAC9B,IAAI,EAAE,SAAS,CAAC,MAAM,CAAC,IAAI,SAAS,CAAC,UAAU,CAAC;YAChD,WAAW,EAAE,SAAS,CAAC,aAAa,CAAC,IAAI,EAAE;SAC5C,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,UAAU;QACR,OAAO,IAAI,CAAC,QAAQ,CAAC;IACvB,CAAC;IAED;;OAEG;IACH,OAAO;QACL,OAAO,IAAI,CAAC,KAAK,CAAC;IACpB,CAAC;IAED;;;;OAIG;IACH,MAAM;QACJ,OAAO;YACL,IAAI,EAAE,QAAQ,CAAC,aAAa;YAC5B,QAAQ,EAAE,IAAI,CAAC,QAAQ;YACvB,IAAI,EAAE,IAAI,CAAC,KAAK;YAChB,WAAW,EAAE,IAAI,CAAC,YAAY;SAC/B,CAAC;IACJ,CAAC;;AAnEH,4BAoEC;AAnEiB,sBAAa,GAAG,iBAA0B,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { getExistingManifestContext } from "./existing-manifest-context.mjs";
|
|
1
2
|
/**
|
|
2
3
|
* Defines a category and registers it with the manifest.
|
|
3
4
|
*
|
|
@@ -29,6 +30,12 @@
|
|
|
29
30
|
* @see {@link CustomObject} — references this category via instance or api_name string.
|
|
30
31
|
*/
|
|
31
32
|
export class Category {
|
|
33
|
+
static toDeletionIdentifier(apiName) {
|
|
34
|
+
return {
|
|
35
|
+
type: Category.componentType,
|
|
36
|
+
api_name: apiName,
|
|
37
|
+
};
|
|
38
|
+
}
|
|
32
39
|
/**
|
|
33
40
|
* @param scope - The manifest to register this category with.
|
|
34
41
|
* @param props - Initialization properties.
|
|
@@ -36,9 +43,23 @@ export class Category {
|
|
|
36
43
|
constructor(scope, props) {
|
|
37
44
|
this._apiName = props.apiName;
|
|
38
45
|
this._name = props.name;
|
|
39
|
-
this._description = props.description
|
|
46
|
+
this._description = props.description;
|
|
40
47
|
scope._register(this);
|
|
41
48
|
}
|
|
49
|
+
/**
|
|
50
|
+
* Loads this category from the active existing-manifest JSON context.
|
|
51
|
+
*/
|
|
52
|
+
static loadFromExisting(apiName, options = {}) {
|
|
53
|
+
return getExistingManifestContext(options).loadCategory(apiName);
|
|
54
|
+
}
|
|
55
|
+
/** @internal Hydrates a category from existing manifest wire JSON. */
|
|
56
|
+
static _fromExistingComponent(scope, component) {
|
|
57
|
+
return new Category(scope, {
|
|
58
|
+
apiName: component['api_name'],
|
|
59
|
+
name: component['name'] ?? component['api_name'],
|
|
60
|
+
description: component['description'] ?? '',
|
|
61
|
+
});
|
|
62
|
+
}
|
|
42
63
|
/**
|
|
43
64
|
* Returns the api_name of this category (e.g. `'gym__c'`).
|
|
44
65
|
*/
|
|
@@ -58,11 +79,12 @@ export class Category {
|
|
|
58
79
|
*/
|
|
59
80
|
toDict() {
|
|
60
81
|
return {
|
|
61
|
-
type:
|
|
82
|
+
type: Category.componentType,
|
|
62
83
|
api_name: this._apiName,
|
|
63
84
|
name: this._name,
|
|
64
|
-
description: this._description
|
|
85
|
+
description: this._description,
|
|
65
86
|
};
|
|
66
87
|
}
|
|
67
88
|
}
|
|
89
|
+
Category.componentType = 'CUSTOM_CATEGORY';
|
|
68
90
|
//# sourceMappingURL=category.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"category.mjs","sourceRoot":"","sources":["../../src/lib/manifest/category.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"category.mjs","sourceRoot":"","sources":["../../src/lib/manifest/category.ts"],"names":[],"mappings":"OAAO,EAAE,0BAA0B,EAAuC;AA6B1E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,MAAM,OAAO,QAAQ;IAGnB,MAAM,CAAC,oBAAoB,CAAC,OAAe;QACzC,OAAO;YACL,IAAI,EAAE,QAAQ,CAAC,aAAa;YAC5B,QAAQ,EAAE,OAAO;SAClB,CAAC;IACJ,CAAC;IAMD;;;OAGG;IACH,YAAY,KAAoB,EAAE,KAAoB;QACpD,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC,OAAO,CAAC;QAC9B,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC,IAAI,CAAC;QACxB,IAAI,CAAC,YAAY,GAAG,KAAK,CAAC,WAAW,CAAC;QACtC,KAAK,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;IACxB,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,gBAAgB,CAAC,OAAe,EAAE,UAA0C,EAAE;QACnF,OAAO,0BAA0B,CAAC,OAAO,CAAC,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;IACnE,CAAC;IAED,sEAAsE;IACtE,MAAM,CAAC,sBAAsB,CAAC,KAAoB,EAAE,SAA8B;QAChF,OAAO,IAAI,QAAQ,CAAC,KAAK,EAAE;YACzB,OAAO,EAAE,SAAS,CAAC,UAAU,CAAC;YAC9B,IAAI,EAAE,SAAS,CAAC,MAAM,CAAC,IAAI,SAAS,CAAC,UAAU,CAAC;YAChD,WAAW,EAAE,SAAS,CAAC,aAAa,CAAC,IAAI,EAAE;SAC5C,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,UAAU;QACR,OAAO,IAAI,CAAC,QAAQ,CAAC;IACvB,CAAC;IAED;;OAEG;IACH,OAAO;QACL,OAAO,IAAI,CAAC,KAAK,CAAC;IACpB,CAAC;IAED;;;;OAIG;IACH,MAAM;QACJ,OAAO;YACL,IAAI,EAAE,QAAQ,CAAC,aAAa;YAC5B,QAAQ,EAAE,IAAI,CAAC,QAAQ;YACvB,IAAI,EAAE,IAAI,CAAC,KAAK;YAChB,WAAW,EAAE,IAAI,CAAC,YAAY;SAC/B,CAAC;IACJ,CAAC;;AAlEe,sBAAa,GAAG,iBAA0B,CAAC"}
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
import type { CustomObject } from "./custom-object.mjs";
|
|
2
|
+
import { type ExistingManifestContextOptions } from "./existing-manifest-context.mjs";
|
|
3
|
+
import type { ManifestComponentDeletion } from "./manifest-builder.mjs";
|
|
4
|
+
export interface CustomObjectFieldSectionLoadFromExistingOptions extends ExistingManifestContextOptions {
|
|
5
|
+
customObjectApiName?: string;
|
|
6
|
+
}
|
|
2
7
|
/**
|
|
3
8
|
* Initialization properties for {@link CustomObjectFieldSection}.
|
|
4
9
|
*/
|
|
@@ -42,6 +47,8 @@ export interface CustomObjectFieldSectionProps {
|
|
|
42
47
|
* @see {@link CustomObjectPageLayout} — controls which sections appear on which tab.
|
|
43
48
|
*/
|
|
44
49
|
export declare class CustomObjectFieldSection {
|
|
50
|
+
static readonly componentType: "CUSTOM_OBJECT_FIELD_SECTION";
|
|
51
|
+
static toDeletionIdentifier(sectionId: string): ManifestComponentDeletion;
|
|
45
52
|
private readonly _sectionId;
|
|
46
53
|
private readonly _name;
|
|
47
54
|
private readonly _model;
|
|
@@ -50,6 +57,12 @@ export declare class CustomObjectFieldSection {
|
|
|
50
57
|
* @param props - Initialization properties.
|
|
51
58
|
*/
|
|
52
59
|
constructor(customObject: CustomObject, props: CustomObjectFieldSectionProps);
|
|
60
|
+
/**
|
|
61
|
+
* Loads this field section from the active existing-manifest JSON context.
|
|
62
|
+
*/
|
|
63
|
+
static loadFromExisting(sectionId: string, options?: CustomObjectFieldSectionLoadFromExistingOptions): CustomObjectFieldSection;
|
|
64
|
+
/** @internal Hydrates a field section from existing manifest wire JSON. */
|
|
65
|
+
static _fromExistingComponent(customObject: CustomObject, component: Record<string, any>): CustomObjectFieldSection;
|
|
53
66
|
/**
|
|
54
67
|
* Returns the stable identifier for this section (e.g. `'sec_gm_profile'`).
|
|
55
68
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"custom-object-field-section.d.mts","sourceRoot":"","sources":["../../src/lib/manifest/custom-object-field-section.ts"],"names":[],"mappings":"OACO,KAAK,EAAE,YAAY,EAAE;
|
|
1
|
+
{"version":3,"file":"custom-object-field-section.d.mts","sourceRoot":"","sources":["../../src/lib/manifest/custom-object-field-section.ts"],"names":[],"mappings":"OACO,KAAK,EAAE,YAAY,EAAE;OACrB,EAA8B,KAAK,8BAA8B,EAAE;OACnE,KAAK,EAAE,yBAAyB,EAAE;AAEzC,MAAM,WAAW,+CAAgD,SAAQ,8BAA8B;IACrG,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B;AAED;;GAEG;AACH,MAAM,WAAW,6BAA6B;IAC5C;;;;;OAKG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;;OAKG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,qBAAa,wBAAwB;IACnC,MAAM,CAAC,QAAQ,CAAC,aAAa,EAAG,6BAA6B,CAAU;IAEvE,MAAM,CAAC,oBAAoB,CAAC,SAAS,EAAE,MAAM,GAAG,yBAAyB;IAOzE,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAS;IACpC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAS;IAC/B,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAe;IAEtC;;;OAGG;gBACS,YAAY,EAAE,YAAY,EAAE,KAAK,EAAE,6BAA6B;IAO5E;;OAEG;IACH,MAAM,CAAC,gBAAgB,CACrB,SAAS,EAAE,MAAM,EACjB,OAAO,GAAE,+CAAoD,GAC5D,wBAAwB;IAI3B,2EAA2E;IAC3E,MAAM,CAAC,sBAAsB,CAC3B,YAAY,EAAE,YAAY,EAC1B,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAC7B,wBAAwB;IAO3B;;;;;OAKG;IACH,YAAY,IAAI,MAAM;IAItB;;OAEG;IACH,OAAO,IAAI,MAAM;IAIjB;;OAEG;IACH,eAAe,IAAI,MAAM;IAIzB;;;;OAIG;IACH,MAAM,IAAI,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;CAQ9B"}
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
import type { CustomObject } from "./custom-object.js";
|
|
2
|
+
import { type ExistingManifestContextOptions } from "./existing-manifest-context.js";
|
|
3
|
+
import type { ManifestComponentDeletion } from "./manifest-builder.js";
|
|
4
|
+
export interface CustomObjectFieldSectionLoadFromExistingOptions extends ExistingManifestContextOptions {
|
|
5
|
+
customObjectApiName?: string;
|
|
6
|
+
}
|
|
2
7
|
/**
|
|
3
8
|
* Initialization properties for {@link CustomObjectFieldSection}.
|
|
4
9
|
*/
|
|
@@ -42,6 +47,8 @@ export interface CustomObjectFieldSectionProps {
|
|
|
42
47
|
* @see {@link CustomObjectPageLayout} — controls which sections appear on which tab.
|
|
43
48
|
*/
|
|
44
49
|
export declare class CustomObjectFieldSection {
|
|
50
|
+
static readonly componentType: "CUSTOM_OBJECT_FIELD_SECTION";
|
|
51
|
+
static toDeletionIdentifier(sectionId: string): ManifestComponentDeletion;
|
|
45
52
|
private readonly _sectionId;
|
|
46
53
|
private readonly _name;
|
|
47
54
|
private readonly _model;
|
|
@@ -50,6 +57,12 @@ export declare class CustomObjectFieldSection {
|
|
|
50
57
|
* @param props - Initialization properties.
|
|
51
58
|
*/
|
|
52
59
|
constructor(customObject: CustomObject, props: CustomObjectFieldSectionProps);
|
|
60
|
+
/**
|
|
61
|
+
* Loads this field section from the active existing-manifest JSON context.
|
|
62
|
+
*/
|
|
63
|
+
static loadFromExisting(sectionId: string, options?: CustomObjectFieldSectionLoadFromExistingOptions): CustomObjectFieldSection;
|
|
64
|
+
/** @internal Hydrates a field section from existing manifest wire JSON. */
|
|
65
|
+
static _fromExistingComponent(customObject: CustomObject, component: Record<string, any>): CustomObjectFieldSection;
|
|
53
66
|
/**
|
|
54
67
|
* Returns the stable identifier for this section (e.g. `'sec_gm_profile'`).
|
|
55
68
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"custom-object-field-section.d.ts","sourceRoot":"","sources":["../../src/lib/manifest/custom-object-field-section.ts"],"names":[],"mappings":"OACO,KAAK,EAAE,YAAY,EAAE;
|
|
1
|
+
{"version":3,"file":"custom-object-field-section.d.ts","sourceRoot":"","sources":["../../src/lib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, "__esModule", { value: true });
|
|
3
3
|
exports.CustomObjectFieldSection = void 0;
|
|
4
4
|
const _helpers_1 = require("./_helpers.js");
|
|
5
|
+
const existing_manifest_context_1 = require("./existing-manifest-context.js");
|
|
5
6
|
/**
|
|
6
7
|
* Defines a field section and registers it with the manifest.
|
|
7
8
|
*
|
|
@@ -26,6 +27,12 @@ const _helpers_1 = require("./_helpers.js");
|
|
|
26
27
|
* @see {@link CustomObjectPageLayout} — controls which sections appear on which tab.
|
|
27
28
|
*/
|
|
28
29
|
class CustomObjectFieldSection {
|
|
30
|
+
static toDeletionIdentifier(sectionId) {
|
|
31
|
+
return {
|
|
32
|
+
type: CustomObjectFieldSection.componentType,
|
|
33
|
+
section_id: sectionId,
|
|
34
|
+
};
|
|
35
|
+
}
|
|
29
36
|
/**
|
|
30
37
|
* @param customObject - The custom object this section belongs to.
|
|
31
38
|
* @param props - Initialization properties.
|
|
@@ -36,6 +43,19 @@ class CustomObjectFieldSection {
|
|
|
36
43
|
this._model = customObject;
|
|
37
44
|
customObject._register(this);
|
|
38
45
|
}
|
|
46
|
+
/**
|
|
47
|
+
* Loads this field section from the active existing-manifest JSON context.
|
|
48
|
+
*/
|
|
49
|
+
static loadFromExisting(sectionId, options = {}) {
|
|
50
|
+
return (0, existing_manifest_context_1.getExistingManifestContext)(options).loadFieldSection(sectionId, options);
|
|
51
|
+
}
|
|
52
|
+
/** @internal Hydrates a field section from existing manifest wire JSON. */
|
|
53
|
+
static _fromExistingComponent(customObject, component) {
|
|
54
|
+
return new CustomObjectFieldSection(customObject, {
|
|
55
|
+
sectionId: component['section_id'],
|
|
56
|
+
name: component['name'] ?? component['section_id'],
|
|
57
|
+
});
|
|
58
|
+
}
|
|
39
59
|
/**
|
|
40
60
|
* Returns the stable identifier for this section (e.g. `'sec_gm_profile'`).
|
|
41
61
|
*
|
|
@@ -64,7 +84,7 @@ class CustomObjectFieldSection {
|
|
|
64
84
|
*/
|
|
65
85
|
toDict() {
|
|
66
86
|
return {
|
|
67
|
-
type:
|
|
87
|
+
type: CustomObjectFieldSection.componentType,
|
|
68
88
|
section_id: this._sectionId,
|
|
69
89
|
model_name: this._model.getApiName(),
|
|
70
90
|
name: this._name,
|
|
@@ -72,4 +92,5 @@ class CustomObjectFieldSection {
|
|
|
72
92
|
}
|
|
73
93
|
}
|
|
74
94
|
exports.CustomObjectFieldSection = CustomObjectFieldSection;
|
|
95
|
+
CustomObjectFieldSection.componentType = 'CUSTOM_OBJECT_FIELD_SECTION';
|
|
75
96
|
//# sourceMappingURL=custom-object-field-section.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"custom-object-field-section.js","sourceRoot":"","sources":["../../src/lib/manifest/custom-object-field-section.ts"],"names":[],"mappings":";;;AAAA,4CAAwC;
|
|
1
|
+
{"version":3,"file":"custom-object-field-section.js","sourceRoot":"","sources":["../../src/lib/manifest/custom-object-field-section.ts"],"names":[],"mappings":";;;AAAA,4CAAwC;AAExC,8EAA8G;AA2B9G;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,MAAa,wBAAwB;IAGnC,MAAM,CAAC,oBAAoB,CAAC,SAAiB;QAC3C,OAAO;YACL,IAAI,EAAE,wBAAwB,CAAC,aAAa;YAC5C,UAAU,EAAE,SAAS;SACtB,CAAC;IACJ,CAAC;IAMD;;;OAGG;IACH,YAAY,YAA0B,EAAE,KAAoC;QAC1E,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC,SAAS,IAAI,IAAA,qBAAU,EAAC,KAAK,CAAC,CAAC;QACvD,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC,IAAI,CAAC;QACxB,IAAI,CAAC,MAAM,GAAG,YAAY,CAAC;QAC3B,YAAY,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;IAC/B,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,gBAAgB,CACrB,SAAiB,EACjB,UAA2D,EAAE;QAE7D,OAAO,IAAA,sDAA0B,EAAC,OAAO,CAAC,CAAC,gBAAgB,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;IAClF,CAAC;IAED,2EAA2E;IAC3E,MAAM,CAAC,sBAAsB,CAC3B,YAA0B,EAC1B,SAA8B;QAE9B,OAAO,IAAI,wBAAwB,CAAC,YAAY,EAAE;YAChD,SAAS,EAAE,SAAS,CAAC,YAAY,CAAC;YAClC,IAAI,EAAE,SAAS,CAAC,MAAM,CAAC,IAAI,SAAS,CAAC,YAAY,CAAC;SACnD,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,YAAY;QACV,OAAO,IAAI,CAAC,UAAU,CAAC;IACzB,CAAC;IAED;;OAEG;IACH,OAAO;QACL,OAAO,IAAI,CAAC,KAAK,CAAC;IACpB,CAAC;IAED;;OAEG;IACH,eAAe;QACb,OAAO,IAAI,CAAC,MAAM,CAAC,UAAU,EAAE,CAAC;IAClC,CAAC;IAED;;;;OAIG;IACH,MAAM;QACJ,OAAO;YACL,IAAI,EAAE,wBAAwB,CAAC,aAAa;YAC5C,UAAU,EAAE,IAAI,CAAC,UAAU;YAC3B,UAAU,EAAE,IAAI,CAAC,MAAM,CAAC,UAAU,EAAE;YACpC,IAAI,EAAE,IAAI,CAAC,KAAK;SACjB,CAAC;IACJ,CAAC;;AAlFH,4DAmFC;AAlFiB,sCAAa,GAAG,6BAAsC,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { generateId } from "./_helpers.mjs";
|
|
2
|
+
import { getExistingManifestContext } from "./existing-manifest-context.mjs";
|
|
2
3
|
/**
|
|
3
4
|
* Defines a field section and registers it with the manifest.
|
|
4
5
|
*
|
|
@@ -23,6 +24,12 @@ import { generateId } from "./_helpers.mjs";
|
|
|
23
24
|
* @see {@link CustomObjectPageLayout} — controls which sections appear on which tab.
|
|
24
25
|
*/
|
|
25
26
|
export class CustomObjectFieldSection {
|
|
27
|
+
static toDeletionIdentifier(sectionId) {
|
|
28
|
+
return {
|
|
29
|
+
type: CustomObjectFieldSection.componentType,
|
|
30
|
+
section_id: sectionId,
|
|
31
|
+
};
|
|
32
|
+
}
|
|
26
33
|
/**
|
|
27
34
|
* @param customObject - The custom object this section belongs to.
|
|
28
35
|
* @param props - Initialization properties.
|
|
@@ -33,6 +40,19 @@ export class CustomObjectFieldSection {
|
|
|
33
40
|
this._model = customObject;
|
|
34
41
|
customObject._register(this);
|
|
35
42
|
}
|
|
43
|
+
/**
|
|
44
|
+
* Loads this field section from the active existing-manifest JSON context.
|
|
45
|
+
*/
|
|
46
|
+
static loadFromExisting(sectionId, options = {}) {
|
|
47
|
+
return getExistingManifestContext(options).loadFieldSection(sectionId, options);
|
|
48
|
+
}
|
|
49
|
+
/** @internal Hydrates a field section from existing manifest wire JSON. */
|
|
50
|
+
static _fromExistingComponent(customObject, component) {
|
|
51
|
+
return new CustomObjectFieldSection(customObject, {
|
|
52
|
+
sectionId: component['section_id'],
|
|
53
|
+
name: component['name'] ?? component['section_id'],
|
|
54
|
+
});
|
|
55
|
+
}
|
|
36
56
|
/**
|
|
37
57
|
* Returns the stable identifier for this section (e.g. `'sec_gm_profile'`).
|
|
38
58
|
*
|
|
@@ -61,11 +81,12 @@ export class CustomObjectFieldSection {
|
|
|
61
81
|
*/
|
|
62
82
|
toDict() {
|
|
63
83
|
return {
|
|
64
|
-
type:
|
|
84
|
+
type: CustomObjectFieldSection.componentType,
|
|
65
85
|
section_id: this._sectionId,
|
|
66
86
|
model_name: this._model.getApiName(),
|
|
67
87
|
name: this._name,
|
|
68
88
|
};
|
|
69
89
|
}
|
|
70
90
|
}
|
|
91
|
+
CustomObjectFieldSection.componentType = 'CUSTOM_OBJECT_FIELD_SECTION';
|
|
71
92
|
//# sourceMappingURL=custom-object-field-section.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"custom-object-field-section.mjs","sourceRoot":"","sources":["../../src/lib/manifest/custom-object-field-section.ts"],"names":[],"mappings":"OAAO,EAAE,UAAU,EAAE;
|
|
1
|
+
{"version":3,"file":"custom-object-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AC,MAAM,CAAC,UAAU,EAAE,CAAC;IAClC,CAAC;IAED;;;;OAIG;IACH,MAAM;QACJ,OAAO;YACL,IAAI,EAAE,wBAAwB,CAAC,aAAa;YAC5C,UAAU,EAAE,IAAI,CAAC,UAAU;YAC3B,UAAU,EAAE,IAAI,CAAC,MAAM,CAAC,UAAU,EAAE;YACpC,IAAI,EAAE,IAAI,CAAC,KAAK;SACjB,CAAC;IACJ,CAAC;;AAjFe,sCAAa,GAAG,6BAAsC,CAAC"}
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
import { CustomObjectFieldSection } from "./custom-object-field-section.mjs";
|
|
2
2
|
import type { CustomObject } from "./custom-object.mjs";
|
|
3
|
+
import { type ExistingManifestContextOptions } from "./existing-manifest-context.mjs";
|
|
3
4
|
import type { Field } from "./field.mjs";
|
|
5
|
+
import type { ManifestComponentDeletion } from "./manifest-builder.mjs";
|
|
6
|
+
export interface PageLayoutDeletionIdentifier {
|
|
7
|
+
layoutId: string;
|
|
8
|
+
objectRqlName: string;
|
|
9
|
+
}
|
|
4
10
|
/** Edit to a built-in (system) header field. */
|
|
5
11
|
export interface SystemHeaderFieldEdit {
|
|
6
12
|
/** Replace the system field's RQL field reference. Optional. */
|
|
@@ -80,6 +86,8 @@ export interface FieldsSection {
|
|
|
80
86
|
name?: string;
|
|
81
87
|
/** Fields to display in this section. Required. */
|
|
82
88
|
fields: SectionField[];
|
|
89
|
+
/** Column layout for the fields. Optional. @default `'responsive'` (backend default). */
|
|
90
|
+
layout?: SectionFieldsLayout;
|
|
83
91
|
}
|
|
84
92
|
/**
|
|
85
93
|
* A section inside a page layout tab.
|
|
@@ -229,6 +237,9 @@ export interface CustomObjectPageLayoutProps {
|
|
|
229
237
|
*/
|
|
230
238
|
blueprintKey?: string;
|
|
231
239
|
}
|
|
240
|
+
export interface CustomObjectPageLayoutLoadFromExistingOptions extends ExistingManifestContextOptions {
|
|
241
|
+
customObjectApiName?: string;
|
|
242
|
+
}
|
|
232
243
|
/**
|
|
233
244
|
* Defines a page layout and registers it with the manifest.
|
|
234
245
|
*
|
|
@@ -270,6 +281,8 @@ export interface CustomObjectPageLayoutProps {
|
|
|
270
281
|
* @see {@link CustomObjectPageLayout.basic} — factory for simple single-tab layouts.
|
|
271
282
|
*/
|
|
272
283
|
export declare class CustomObjectPageLayout {
|
|
284
|
+
static readonly componentType: "CUSTOM_OBJECT_PAGE_LAYOUT";
|
|
285
|
+
static toDeletionIdentifier(identifier: PageLayoutDeletionIdentifier): ManifestComponentDeletion;
|
|
273
286
|
private readonly _layoutId;
|
|
274
287
|
private readonly _apiName;
|
|
275
288
|
private readonly _customObjectApiName;
|
|
@@ -284,6 +297,16 @@ export declare class CustomObjectPageLayout {
|
|
|
284
297
|
* @throws {Error} If `apiName` or `name` is empty.
|
|
285
298
|
*/
|
|
286
299
|
constructor(customObject: CustomObject, props: CustomObjectPageLayoutProps);
|
|
300
|
+
/**
|
|
301
|
+
* Loads this page layout from the active existing-manifest JSON context.
|
|
302
|
+
*
|
|
303
|
+
* `id` resolves against `layout_id` first, then `api_name`. When loading by
|
|
304
|
+
* api_name such as `'default'`, pass `customObjectApiName` if multiple objects
|
|
305
|
+
* have a layout with the same api_name.
|
|
306
|
+
*/
|
|
307
|
+
static loadFromExisting(layoutIdOrApiName: string, options?: CustomObjectPageLayoutLoadFromExistingOptions): CustomObjectPageLayout;
|
|
308
|
+
/** @internal Hydrates a page layout from existing manifest wire JSON. */
|
|
309
|
+
static _fromExistingComponent(customObject: CustomObject, component: Record<string, any>): CustomObjectPageLayout;
|
|
287
310
|
/**
|
|
288
311
|
* Returns the stable identifier for this layout record (e.g. `'layout_gym_member'`).
|
|
289
312
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"custom-object-page-layout.d.mts","sourceRoot":"","sources":["../../src/lib/manifest/custom-object-page-layout.ts"],"names":[],"mappings":"OACO,EAAE,wBAAwB,EAAE;OAC5B,KAAK,EAAE,YAAY,EAAE;OACrB,KAAK,EAAE,KAAK,EAAE;
|
|
1
|
+
{"version":3,"file":"custom-object-page-layout.d.mts","sourceRoot":"","sources":["../../src/lib/manifest/custom-object-page-layout.ts"],"names":[],"mappings":"OACO,EAAE,wBAAwB,EAAE;OAC5B,KAAK,EAAE,YAAY,EAAE;OACrB,EAA8B,KAAK,8BAA8B,EAAE;OACnE,KAAK,EAAE,KAAK,EAAE;OACd,KAAK,EAAE,yBAAyB,EAAE;AAEzC,MAAM,WAAW,4BAA4B;IAC3C,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,MAAM,CAAC;CACvB;AAMD,gDAAgD;AAChD,MAAM,WAAW,qBAAqB;IACpC,gEAAgE;IAChE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,0DAA0D;IAC1D,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED;;;;;GAKG;AACH,MAAM,WAAW,cAAc;IAC7B,2CAA2C;IAC3C,OAAO,EAAE,MAAM,CAAC;IAChB,2CAA2C;IAC3C,GAAG,EAAE,MAAM,CAAC;IACZ,wDAAwD;IACxD,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,kEAAkE;IAClE,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,yDAAyD;IACzD,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED;;;;;;;;GAQG;AACH,MAAM,WAAW,WAAW;IAC1B,4EAA4E;IAC5E,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,wDAAwD;IACxD,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,sDAAsD;IACtD,mBAAmB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACpC,8DAA8D;IAC9D,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC,mFAAmF;IACnF,gBAAgB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,qBAAqB,CAAC,CAAC;IACzD,+DAA+D;IAC/D,SAAS,CAAC,EAAE,cAAc,EAAE,CAA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,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAS;IAC/B,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAqB;IAC/C,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAc;IAC3C,OAAO,CAAC,QAAQ,CAAC,qBAAqB,CAAuB;IAC7D,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAqB;IAEnD;;;;OAIG;gBACS,YAAY,EAAE,YAAY,EAAE,KAAK,EAAE,2BAA2B;IAc1E;;;;;;OAMG;IACH,MAAM,CAAC,gBAAgB,CACrB,iBAAiB,EAAE,MAAM,EACzB,OAAO,GAAE,6CAAkD,GAC1D,sBAAsB;IAIzB,yEAAyE;IACzE,MAAM,CAAC,sBAAsB,CAC3B,YAAY,EAAE,YAAY,EAC1B,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAC7B,sBAAsB;IAgBzB;;OAEG;IACH,WAAW,IAAI,MAAM;IAIrB;;OAEG;IACH,UAAU,IAAI,MAAM;IAIpB;;OAEG;IACH,sBAAsB,IAAI,MAAM;IAIhC;;;;OAIG;IACH,MAAM,IAAI,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;IAiB7B;;;;;;;;;;;;;;;;OAgBG;IACH,MAAM,CAAC,KAAK,CACV,YAAY,EAAE,YAAY,EAC1B,KAAK,GAAE;QACL,MAAM,CAAC,EAAE,KAAK,EAAE,CAAC;KACb,GACL,sBAAsB;CAmC1B"}
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
import { CustomObjectFieldSection } from "./custom-object-field-section.js";
|
|
2
2
|
import type { CustomObject } from "./custom-object.js";
|
|
3
|
+
import { type ExistingManifestContextOptions } from "./existing-manifest-context.js";
|
|
3
4
|
import type { Field } from "./field.js";
|
|
5
|
+
import type { ManifestComponentDeletion } from "./manifest-builder.js";
|
|
6
|
+
export interface PageLayoutDeletionIdentifier {
|
|
7
|
+
layoutId: string;
|
|
8
|
+
objectRqlName: string;
|
|
9
|
+
}
|
|
4
10
|
/** Edit to a built-in (system) header field. */
|
|
5
11
|
export interface SystemHeaderFieldEdit {
|
|
6
12
|
/** Replace the system field's RQL field reference. Optional. */
|
|
@@ -80,6 +86,8 @@ export interface FieldsSection {
|
|
|
80
86
|
name?: string;
|
|
81
87
|
/** Fields to display in this section. Required. */
|
|
82
88
|
fields: SectionField[];
|
|
89
|
+
/** Column layout for the fields. Optional. @default `'responsive'` (backend default). */
|
|
90
|
+
layout?: SectionFieldsLayout;
|
|
83
91
|
}
|
|
84
92
|
/**
|
|
85
93
|
* A section inside a page layout tab.
|
|
@@ -229,6 +237,9 @@ export interface CustomObjectPageLayoutProps {
|
|
|
229
237
|
*/
|
|
230
238
|
blueprintKey?: string;
|
|
231
239
|
}
|
|
240
|
+
export interface CustomObjectPageLayoutLoadFromExistingOptions extends ExistingManifestContextOptions {
|
|
241
|
+
customObjectApiName?: string;
|
|
242
|
+
}
|
|
232
243
|
/**
|
|
233
244
|
* Defines a page layout and registers it with the manifest.
|
|
234
245
|
*
|
|
@@ -270,6 +281,8 @@ export interface CustomObjectPageLayoutProps {
|
|
|
270
281
|
* @see {@link CustomObjectPageLayout.basic} — factory for simple single-tab layouts.
|
|
271
282
|
*/
|
|
272
283
|
export declare class CustomObjectPageLayout {
|
|
284
|
+
static readonly componentType: "CUSTOM_OBJECT_PAGE_LAYOUT";
|
|
285
|
+
static toDeletionIdentifier(identifier: PageLayoutDeletionIdentifier): ManifestComponentDeletion;
|
|
273
286
|
private readonly _layoutId;
|
|
274
287
|
private readonly _apiName;
|
|
275
288
|
private readonly _customObjectApiName;
|
|
@@ -284,6 +297,16 @@ export declare class CustomObjectPageLayout {
|
|
|
284
297
|
* @throws {Error} If `apiName` or `name` is empty.
|
|
285
298
|
*/
|
|
286
299
|
constructor(customObject: CustomObject, props: CustomObjectPageLayoutProps);
|
|
300
|
+
/**
|
|
301
|
+
* Loads this page layout from the active existing-manifest JSON context.
|
|
302
|
+
*
|
|
303
|
+
* `id` resolves against `layout_id` first, then `api_name`. When loading by
|
|
304
|
+
* api_name such as `'default'`, pass `customObjectApiName` if multiple objects
|
|
305
|
+
* have a layout with the same api_name.
|
|
306
|
+
*/
|
|
307
|
+
static loadFromExisting(layoutIdOrApiName: string, options?: CustomObjectPageLayoutLoadFromExistingOptions): CustomObjectPageLayout;
|
|
308
|
+
/** @internal Hydrates a page layout from existing manifest wire JSON. */
|
|
309
|
+
static _fromExistingComponent(customObject: CustomObject, component: Record<string, any>): CustomObjectPageLayout;
|
|
287
310
|
/**
|
|
288
311
|
* Returns the stable identifier for this layout record (e.g. `'layout_gym_member'`).
|
|
289
312
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"custom-object-page-layout.d.ts","sourceRoot":"","sources":["../../src/lib/manifest/custom-object-page-layout.ts"],"names":[],"mappings":"OACO,EAAE,wBAAwB,EAAE;OAC5B,KAAK,EAAE,YAAY,EAAE;OACrB,KAAK,EAAE,KAAK,EAAE;
|
|
1
|
+
{"version":3,"file":"custom-object-page-layout.d.ts","sourceRoot":"","sources":["../../src/lib/manifest/custom-object-page-layout.ts"],"names":[],"mappings":"OACO,EAAE,wBAAwB,EAAE;OAC5B,KAAK,EAAE,YAAY,EAAE;OACrB,EAA8B,KAAK,8BAA8B,EAAE;OACnE,KAAK,EAAE,KAAK,EAAE;OACd,KAAK,EAAE,yBAAyB,EAAE;AAEzC,MAAM,WAAW,4BAA4B;IAC3C,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,MAAM,CAAC;CACvB;AAMD,gDAAgD;AAChD,MAAM,WAAW,qBAAqB;IACpC,gEAAgE;IAChE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,0DAA0D;IAC1D,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED;;;;;GAKG;AACH,MAAM,WAAW,cAAc;IAC7B,2CAA2C;IAC3C,OAAO,EAAE,MAAM,CAAC;IAChB,2CAA2C;IAC3C,GAAG,EAAE,MAAM,CAAC;IACZ,wD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