@wix/auto-patterns 1.22.0 → 1.24.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/cjs/components/AutoPatternsEntityPage/AutoPatternsEntityPage.js +12 -323
- package/dist/cjs/components/AutoPatternsEntityPage/AutoPatternsEntityPage.js.map +1 -1
- package/dist/cjs/components/AutoPatternsEntityPage/EditModeEntityPage.js +172 -0
- package/dist/cjs/components/AutoPatternsEntityPage/EditModeEntityPage.js.map +1 -0
- package/dist/cjs/components/AutoPatternsEntityPage/RenderLayout/RenderLayoutCard.js +78 -0
- package/dist/cjs/components/AutoPatternsEntityPage/RenderLayout/RenderLayoutCard.js.map +1 -0
- package/dist/cjs/components/AutoPatternsEntityPage/RenderLayout/RenderLayoutContent.js +119 -0
- package/dist/cjs/components/AutoPatternsEntityPage/RenderLayout/RenderLayoutContent.js.map +1 -0
- package/dist/cjs/components/AutoPatternsEntityPage/RenderLayout/RenderViewField.js +79 -0
- package/dist/cjs/components/AutoPatternsEntityPage/RenderLayout/RenderViewField.js.map +1 -0
- package/dist/cjs/components/AutoPatternsEntityPage/RenderLayout/index.js +16 -0
- package/dist/cjs/components/AutoPatternsEntityPage/RenderLayout/index.js.map +1 -0
- package/dist/cjs/components/AutoPatternsEntityPage/ViewEntityPage/RenderViewLayoutCard.js +77 -0
- package/dist/cjs/components/AutoPatternsEntityPage/ViewEntityPage/RenderViewLayoutCard.js.map +1 -0
- package/dist/cjs/components/AutoPatternsEntityPage/ViewEntityPage/RenderViewLayoutContent.js +109 -0
- package/dist/cjs/components/AutoPatternsEntityPage/ViewEntityPage/RenderViewLayoutContent.js.map +1 -0
- package/dist/cjs/components/AutoPatternsEntityPage/ViewModeEntityPage.js +196 -0
- package/dist/cjs/components/AutoPatternsEntityPage/ViewModeEntityPage.js.map +1 -0
- package/dist/cjs/components/AutoPatternsEntityPage/index.js +12 -0
- package/dist/cjs/components/AutoPatternsEntityPage/index.js.map +1 -1
- package/dist/cjs/hooks/useActionCell.js.map +1 -1
- package/dist/cjs/hooks/useEntityPageActions.js +105 -0
- package/dist/cjs/hooks/useEntityPageActions.js.map +1 -0
- package/dist/cjs/hooks/useEntityPageMoreActions.js +10 -0
- package/dist/cjs/hooks/useEntityPageMoreActions.js.map +1 -1
- package/dist/cjs/hooks/useNavigateEditEntityAction.js +50 -0
- package/dist/cjs/hooks/useNavigateEditEntityAction.js.map +1 -0
- package/dist/cjs/hooks/useNavigationUtils.js +12 -1
- package/dist/cjs/hooks/useNavigationUtils.js.map +1 -1
- package/dist/cjs/providers/PatternsWizardOverridesContext.js +1 -1
- package/dist/cjs/providers/PatternsWizardOverridesContext.js.map +1 -1
- package/dist/cjs/types/EntityPageConfig.js.map +1 -1
- package/dist/cjs/types/actions/base.js.map +1 -1
- package/dist/cjs/types/actions/entityPageActions.js.map +1 -1
- package/dist/cjs/utils/actions/types.js.map +1 -1
- package/dist/docs/action_cell.md +6 -2
- package/dist/docs/app_config_structure.md +48 -6
- package/dist/docs/auto-patterns-guide.md +391 -60
- package/dist/docs/bulk_actions.md +7 -6
- package/dist/docs/collection_page_actions.md +14 -4
- package/dist/docs/custom_overrides.md +86 -15
- package/dist/docs/entity_page.md +65 -1
- package/dist/docs/entity_page_actions.md +13 -11
- package/dist/docs/entity_page_view_actions.md +137 -0
- package/dist/docs/index.md +6 -2
- package/dist/docs/pages_configuration.md +1 -11
- package/dist/docs/sdk_utilities.md +11 -4
- package/dist/docs/wix_fqdn_custom_data_source.md +25 -5
- package/dist/esm/components/AutoPatternsEntityPage/AutoPatternsEntityPage.js +9 -201
- package/dist/esm/components/AutoPatternsEntityPage/AutoPatternsEntityPage.js.map +1 -1
- package/dist/esm/components/AutoPatternsEntityPage/EditModeEntityPage.js +115 -0
- package/dist/esm/components/AutoPatternsEntityPage/EditModeEntityPage.js.map +1 -0
- package/dist/esm/components/AutoPatternsEntityPage/RenderLayout/RenderLayoutCard.js +33 -0
- package/dist/esm/components/AutoPatternsEntityPage/RenderLayout/RenderLayoutCard.js.map +1 -0
- package/dist/esm/components/AutoPatternsEntityPage/RenderLayout/RenderLayoutContent.js +70 -0
- package/dist/esm/components/AutoPatternsEntityPage/RenderLayout/RenderLayoutContent.js.map +1 -0
- package/dist/esm/components/AutoPatternsEntityPage/RenderLayout/RenderViewField.js +48 -0
- package/dist/esm/components/AutoPatternsEntityPage/RenderLayout/RenderViewField.js.map +1 -0
- package/dist/esm/components/AutoPatternsEntityPage/RenderLayout/index.js +3 -0
- package/dist/esm/components/AutoPatternsEntityPage/RenderLayout/index.js.map +1 -0
- package/dist/esm/components/AutoPatternsEntityPage/ViewEntityPage/RenderViewLayoutCard.js +31 -0
- package/dist/esm/components/AutoPatternsEntityPage/ViewEntityPage/RenderViewLayoutCard.js.map +1 -0
- package/dist/esm/components/AutoPatternsEntityPage/ViewEntityPage/RenderViewLayoutContent.js +66 -0
- package/dist/esm/components/AutoPatternsEntityPage/ViewEntityPage/RenderViewLayoutContent.js.map +1 -0
- package/dist/esm/components/AutoPatternsEntityPage/ViewModeEntityPage.js +109 -0
- package/dist/esm/components/AutoPatternsEntityPage/ViewModeEntityPage.js.map +1 -0
- package/dist/esm/components/AutoPatternsEntityPage/index.js +2 -0
- package/dist/esm/components/AutoPatternsEntityPage/index.js.map +1 -1
- package/dist/esm/hooks/useActionCell.js.map +1 -1
- package/dist/esm/hooks/useEntityPageActions.js +82 -0
- package/dist/esm/hooks/useEntityPageActions.js.map +1 -0
- package/dist/esm/hooks/useEntityPageMoreActions.js +11 -1
- package/dist/esm/hooks/useEntityPageMoreActions.js.map +1 -1
- package/dist/esm/hooks/useNavigateEditEntityAction.js +46 -0
- package/dist/esm/hooks/useNavigateEditEntityAction.js.map +1 -0
- package/dist/esm/hooks/useNavigationUtils.js +12 -1
- package/dist/esm/hooks/useNavigationUtils.js.map +1 -1
- package/dist/esm/providers/PatternsWizardOverridesContext.js.map +1 -1
- package/dist/esm/types/EntityPageConfig.js.map +1 -1
- package/dist/esm/types/actions/base.js.map +1 -1
- package/dist/esm/types/actions/entityPageActions.js.map +1 -1
- package/dist/esm/utils/actions/types.js.map +1 -1
- package/dist/types/components/AutoPatternsEntityPage/AutoPatternsEntityPage.d.ts.map +1 -1
- package/dist/types/components/AutoPatternsEntityPage/EditModeEntityPage.d.ts +6 -0
- package/dist/types/components/AutoPatternsEntityPage/EditModeEntityPage.d.ts.map +1 -0
- package/dist/types/components/AutoPatternsEntityPage/RenderLayout/RenderLayoutCard.d.ts +11 -0
- package/dist/types/components/AutoPatternsEntityPage/RenderLayout/RenderLayoutCard.d.ts.map +1 -0
- package/dist/types/components/AutoPatternsEntityPage/RenderLayout/RenderLayoutContent.d.ts +13 -0
- package/dist/types/components/AutoPatternsEntityPage/RenderLayout/RenderLayoutContent.d.ts.map +1 -0
- package/dist/types/components/AutoPatternsEntityPage/RenderLayout/RenderViewField.d.ts +8 -0
- package/dist/types/components/AutoPatternsEntityPage/RenderLayout/RenderViewField.d.ts.map +1 -0
- package/dist/types/components/AutoPatternsEntityPage/RenderLayout/index.d.ts +3 -0
- package/dist/types/components/AutoPatternsEntityPage/RenderLayout/index.d.ts.map +1 -0
- package/dist/types/components/AutoPatternsEntityPage/ViewEntityPage/RenderViewLayoutCard.d.ts +8 -0
- package/dist/types/components/AutoPatternsEntityPage/ViewEntityPage/RenderViewLayoutCard.d.ts.map +1 -0
- package/dist/types/components/AutoPatternsEntityPage/ViewEntityPage/RenderViewLayoutContent.d.ts +8 -0
- package/dist/types/components/AutoPatternsEntityPage/ViewEntityPage/RenderViewLayoutContent.d.ts.map +1 -0
- package/dist/types/components/AutoPatternsEntityPage/ViewModeEntityPage.d.ts +8 -0
- package/dist/types/components/AutoPatternsEntityPage/ViewModeEntityPage.d.ts.map +1 -0
- package/dist/types/components/AutoPatternsEntityPage/index.d.ts +2 -0
- package/dist/types/components/AutoPatternsEntityPage/index.d.ts.map +1 -1
- package/dist/types/hooks/useEntityPageActions.d.ts +9 -0
- package/dist/types/hooks/useEntityPageActions.d.ts.map +1 -0
- package/dist/types/hooks/useEntityPageHeaderTexts.d.ts.map +1 -1
- package/dist/types/hooks/useEntityPageMoreActions.d.ts +2 -2
- package/dist/types/hooks/useEntityPageMoreActions.d.ts.map +1 -1
- package/dist/types/hooks/useNavigateEditEntityAction.d.ts +6 -0
- package/dist/types/hooks/useNavigateEditEntityAction.d.ts.map +1 -0
- package/dist/types/hooks/useNavigationUtils.d.ts +1 -0
- package/dist/types/hooks/useNavigationUtils.d.ts.map +1 -1
- package/dist/types/providers/PatternsWizardOverridesContext.d.ts +2 -5
- package/dist/types/providers/PatternsWizardOverridesContext.d.ts.map +1 -1
- package/dist/types/types/EntityPageConfig.d.ts +20 -4
- package/dist/types/types/EntityPageConfig.d.ts.map +1 -1
- package/dist/types/types/actions/base.d.ts +0 -4
- package/dist/types/types/actions/base.d.ts.map +1 -1
- package/dist/types/types/actions/entityPageActions.d.ts +24 -5
- package/dist/types/types/actions/entityPageActions.d.ts.map +1 -1
- package/dist/types/utils/actions/types.d.ts +1 -1
- package/dist/types/utils/actions/types.d.ts.map +1 -1
- package/package.json +15 -15
- package/dist/docs/config_schema.md +0 -184
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
exports.__esModule = true;
|
|
5
|
+
exports.RenderLayoutCard = void 0;
|
|
6
|
+
var _react = _interopRequireDefault(require("react"));
|
|
7
|
+
var _designSystem = require("@wix/design-system");
|
|
8
|
+
var _patterns = require("@wix/patterns");
|
|
9
|
+
var _RenderLayoutContent = require("./RenderLayoutContent");
|
|
10
|
+
var _jsxFileName = "/home/builduser/work/73d19ce3378ce4dd/packages/auto-patterns/dist/cjs/components/AutoPatternsEntityPage/RenderLayout/RenderLayoutCard.tsx";
|
|
11
|
+
const RenderLayoutCard = ({
|
|
12
|
+
layout,
|
|
13
|
+
sectionId,
|
|
14
|
+
cardIndex,
|
|
15
|
+
setInputRef
|
|
16
|
+
}) => {
|
|
17
|
+
var _layout$card$subtitle;
|
|
18
|
+
switch (layout.type) {
|
|
19
|
+
case 'card':
|
|
20
|
+
return /*#__PURE__*/_react.default.createElement(_patterns.EntityPage.Card, {
|
|
21
|
+
minHeight: "50px",
|
|
22
|
+
__self: void 0,
|
|
23
|
+
__source: {
|
|
24
|
+
fileName: _jsxFileName,
|
|
25
|
+
lineNumber: 24,
|
|
26
|
+
columnNumber: 9
|
|
27
|
+
}
|
|
28
|
+
}, /*#__PURE__*/_react.default.createElement(_designSystem.Card.Header, {
|
|
29
|
+
title: layout.card.title.text,
|
|
30
|
+
subtitle: (_layout$card$subtitle = layout.card.subtitle) == null ? void 0 : _layout$card$subtitle.text,
|
|
31
|
+
__self: void 0,
|
|
32
|
+
__source: {
|
|
33
|
+
fileName: _jsxFileName,
|
|
34
|
+
lineNumber: 25,
|
|
35
|
+
columnNumber: 11
|
|
36
|
+
}
|
|
37
|
+
}), /*#__PURE__*/_react.default.createElement(_designSystem.Card.Divider, {
|
|
38
|
+
__self: void 0,
|
|
39
|
+
__source: {
|
|
40
|
+
fileName: _jsxFileName,
|
|
41
|
+
lineNumber: 29,
|
|
42
|
+
columnNumber: 11
|
|
43
|
+
}
|
|
44
|
+
}), /*#__PURE__*/_react.default.createElement(_designSystem.Card.Content, {
|
|
45
|
+
__self: void 0,
|
|
46
|
+
__source: {
|
|
47
|
+
fileName: _jsxFileName,
|
|
48
|
+
lineNumber: 30,
|
|
49
|
+
columnNumber: 11
|
|
50
|
+
}
|
|
51
|
+
}, /*#__PURE__*/_react.default.createElement(_designSystem.Layout, {
|
|
52
|
+
__self: void 0,
|
|
53
|
+
__source: {
|
|
54
|
+
fileName: _jsxFileName,
|
|
55
|
+
lineNumber: 31,
|
|
56
|
+
columnNumber: 13
|
|
57
|
+
}
|
|
58
|
+
}, layout.card.children.map((child, index) => /*#__PURE__*/_react.default.createElement(_RenderLayoutContent.RenderLayoutContent, {
|
|
59
|
+
key: `${sectionId}-card-${cardIndex}-content-${index}`,
|
|
60
|
+
content: child,
|
|
61
|
+
level: 0,
|
|
62
|
+
sectionId: sectionId,
|
|
63
|
+
cardIndex: cardIndex,
|
|
64
|
+
contentIndex: index,
|
|
65
|
+
setInputRef: setInputRef,
|
|
66
|
+
__self: void 0,
|
|
67
|
+
__source: {
|
|
68
|
+
fileName: _jsxFileName,
|
|
69
|
+
lineNumber: 33,
|
|
70
|
+
columnNumber: 17
|
|
71
|
+
}
|
|
72
|
+
})))));
|
|
73
|
+
default:
|
|
74
|
+
return null;
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
exports.RenderLayoutCard = RenderLayoutCard;
|
|
78
|
+
//# sourceMappingURL=RenderLayoutCard.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_designSystem","_patterns","_RenderLayoutContent","_jsxFileName","RenderLayoutCard","layout","sectionId","cardIndex","setInputRef","_layout$card$subtitle","type","default","createElement","EntityPage","Card","minHeight","__self","__source","fileName","lineNumber","columnNumber","Header","title","card","text","subtitle","Divider","Content","Layout","children","map","child","index","RenderLayoutContent","key","content","level","contentIndex","exports"],"sources":["../../../../../src/components/AutoPatternsEntityPage/RenderLayout/RenderLayoutCard.tsx"],"sourcesContent":["import React from 'react';\nimport { Card, Layout } from '@wix/design-system';\nimport { EntityPage } from '@wix/patterns';\nimport { RenderLayoutContent } from './RenderLayoutContent';\nimport { CardLayout } from '../../../types';\nimport { BaseInputRef } from '../Fields/types';\n\nexport interface RenderLayoutCardProps {\n layout: CardLayout;\n sectionId: string;\n cardIndex: number;\n setInputRef: (id: string, input: BaseInputRef) => void;\n}\n\nexport const RenderLayoutCard: React.FC<RenderLayoutCardProps> = ({\n layout,\n sectionId,\n cardIndex,\n setInputRef,\n}) => {\n switch (layout.type) {\n case 'card':\n return (\n <EntityPage.Card minHeight=\"50px\">\n <Card.Header\n title={layout.card.title.text}\n subtitle={layout.card.subtitle?.text}\n />\n <Card.Divider />\n <Card.Content>\n <Layout>\n {layout.card.children.map((child, index: number) => (\n <RenderLayoutContent\n key={`${sectionId}-card-${cardIndex}-content-${index}`}\n content={child}\n level={0}\n sectionId={sectionId}\n cardIndex={cardIndex}\n contentIndex={index}\n setInputRef={setInputRef}\n />\n ))}\n </Layout>\n </Card.Content>\n </EntityPage.Card>\n );\n default:\n return null;\n }\n};\n"],"mappings":";;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,aAAA,GAAAD,OAAA;AACA,IAAAE,SAAA,GAAAF,OAAA;AACA,IAAAG,oBAAA,GAAAH,OAAA;AAA4D,IAAAI,YAAA;AAWrD,MAAMC,gBAAiD,GAAGA,CAAC;EAChEC,MAAM;EACNC,SAAS;EACTC,SAAS;EACTC;AACF,CAAC,KAAK;EAAA,IAAAC,qBAAA;EACJ,QAAQJ,MAAM,CAACK,IAAI;IACjB,KAAK,MAAM;MACT,oBACEb,MAAA,CAAAc,OAAA,CAAAC,aAAA,CAACX,SAAA,CAAAY,UAAU,CAACC,IAAI;QAACC,SAAS,EAAC,MAAM;QAAAC,MAAA;QAAAC,QAAA;UAAAC,QAAA,EAAAf,YAAA;UAAAgB,UAAA;UAAAC,YAAA;QAAA;MAAA,gBAC/BvB,MAAA,CAAAc,OAAA,CAAAC,aAAA,CAACZ,aAAA,CAAAc,IAAI,CAACO,MAAM;QACVC,KAAK,EAAEjB,MAAM,CAACkB,IAAI,CAACD,KAAK,CAACE,IAAK;QAC9BC,QAAQ,GAAAhB,qBAAA,GAAEJ,MAAM,CAACkB,IAAI,CAACE,QAAQ,qBAApBhB,qBAAA,CAAsBe,IAAK;QAAAR,MAAA;QAAAC,QAAA;UAAAC,QAAA,EAAAf,YAAA;UAAAgB,UAAA;UAAAC,YAAA;QAAA;MAAA,CACtC,CAAC,eACFvB,MAAA,CAAAc,OAAA,CAAAC,aAAA,CAACZ,aAAA,CAAAc,IAAI,CAACY,OAAO;QAAAV,MAAA;QAAAC,QAAA;UAAAC,QAAA,EAAAf,YAAA;UAAAgB,UAAA;UAAAC,YAAA;QAAA;MAAA,CAAE,CAAC,eAChBvB,MAAA,CAAAc,OAAA,CAAAC,aAAA,CAACZ,aAAA,CAAAc,IAAI,CAACa,OAAO;QAAAX,MAAA;QAAAC,QAAA;UAAAC,QAAA,EAAAf,YAAA;UAAAgB,UAAA;UAAAC,YAAA;QAAA;MAAA,gBACXvB,MAAA,CAAAc,OAAA,CAAAC,aAAA,CAACZ,aAAA,CAAA4B,MAAM;QAAAZ,MAAA;QAAAC,QAAA;UAAAC,QAAA,EAAAf,YAAA;UAAAgB,UAAA;UAAAC,YAAA;QAAA;MAAA,GACJf,MAAM,CAACkB,IAAI,CAACM,QAAQ,CAACC,GAAG,CAAC,CAACC,KAAK,EAAEC,KAAa,kBAC7CnC,MAAA,CAAAc,OAAA,CAAAC,aAAA,CAACV,oBAAA,CAAA+B,mBAAmB;QAClBC,GAAG,EAAE,GAAG5B,SAAS,SAASC,SAAS,YAAYyB,KAAK,EAAG;QACvDG,OAAO,EAAEJ,KAAM;QACfK,KAAK,EAAE,CAAE;QACT9B,SAAS,EAAEA,SAAU;QACrBC,SAAS,EAAEA,SAAU;QACrB8B,YAAY,EAAEL,KAAM;QACpBxB,WAAW,EAAEA,WAAY;QAAAQ,MAAA;QAAAC,QAAA;UAAAC,QAAA,EAAAf,YAAA;UAAAgB,UAAA;UAAAC,YAAA;QAAA;MAAA,CAC1B,CACF,CACK,CACI,CACC,CAAC;IAEtB;MACE,OAAO,IAAI;EACf;AACF,CAAC;AAACkB,OAAA,CAAAlC,gBAAA,GAAAA,gBAAA","ignoreList":[]}
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
exports.__esModule = true;
|
|
5
|
+
exports.RenderLayoutContent = void 0;
|
|
6
|
+
var _react = _interopRequireDefault(require("react"));
|
|
7
|
+
var _designSystem = require("@wix/design-system");
|
|
8
|
+
var _SchemaContext = require("../../../providers/SchemaContext");
|
|
9
|
+
var _providers = require("../../../providers");
|
|
10
|
+
var _patterns = require("@wix/patterns");
|
|
11
|
+
var _FormFieldInput = require("../Fields/FormFieldInput");
|
|
12
|
+
var _jsxFileName = "/home/builduser/work/73d19ce3378ce4dd/packages/auto-patterns/dist/cjs/components/AutoPatternsEntityPage/RenderLayout/RenderLayoutContent.tsx";
|
|
13
|
+
const RenderLayoutContent = ({
|
|
14
|
+
content,
|
|
15
|
+
level,
|
|
16
|
+
sectionId,
|
|
17
|
+
cardIndex,
|
|
18
|
+
contentIndex,
|
|
19
|
+
setInputRef
|
|
20
|
+
}) => {
|
|
21
|
+
var _content$container$ch, _overrides$components;
|
|
22
|
+
const schema = (0, _SchemaContext.useSchema)();
|
|
23
|
+
const overrides = (0, _providers.usePatternsWizardOverridesContext)();
|
|
24
|
+
const pageState = (0, _patterns.useEntityPageContext)();
|
|
25
|
+
const entity = pageState.entity;
|
|
26
|
+
switch (content.type) {
|
|
27
|
+
case 'field':
|
|
28
|
+
if (!content.field.fieldId) {
|
|
29
|
+
return null;
|
|
30
|
+
}
|
|
31
|
+
const field = schema.fields[content.field.fieldId];
|
|
32
|
+
if (!field) {
|
|
33
|
+
return null;
|
|
34
|
+
}
|
|
35
|
+
return /*#__PURE__*/_react.default.createElement(_designSystem.Cell, {
|
|
36
|
+
span: content.field.span,
|
|
37
|
+
__self: void 0,
|
|
38
|
+
__source: {
|
|
39
|
+
fileName: _jsxFileName,
|
|
40
|
+
lineNumber: 45,
|
|
41
|
+
columnNumber: 9
|
|
42
|
+
}
|
|
43
|
+
}, /*#__PURE__*/_react.default.createElement(_FormFieldInput.FormFieldInput, {
|
|
44
|
+
key: content.field.fieldId,
|
|
45
|
+
field: field,
|
|
46
|
+
inputRef: ref => setInputRef(content.field.fieldId, ref),
|
|
47
|
+
__self: void 0,
|
|
48
|
+
__source: {
|
|
49
|
+
fileName: _jsxFileName,
|
|
50
|
+
lineNumber: 46,
|
|
51
|
+
columnNumber: 11
|
|
52
|
+
}
|
|
53
|
+
}));
|
|
54
|
+
case 'container':
|
|
55
|
+
if (!((_content$container$ch = content.container.children) != null && _content$container$ch.length)) {
|
|
56
|
+
return null;
|
|
57
|
+
}
|
|
58
|
+
return /*#__PURE__*/_react.default.createElement(_designSystem.Cell, {
|
|
59
|
+
span: content.container.span,
|
|
60
|
+
__self: void 0,
|
|
61
|
+
__source: {
|
|
62
|
+
fileName: _jsxFileName,
|
|
63
|
+
lineNumber: 60,
|
|
64
|
+
columnNumber: 9
|
|
65
|
+
}
|
|
66
|
+
}, /*#__PURE__*/_react.default.createElement(_designSystem.Layout, {
|
|
67
|
+
__self: void 0,
|
|
68
|
+
__source: {
|
|
69
|
+
fileName: _jsxFileName,
|
|
70
|
+
lineNumber: 61,
|
|
71
|
+
columnNumber: 11
|
|
72
|
+
}
|
|
73
|
+
}, content.container.children.map((child, index) => /*#__PURE__*/_react.default.createElement(RenderLayoutContent, {
|
|
74
|
+
key: `${sectionId}-card-${cardIndex}-content-${contentIndex}-level-${level}-child-${index}`,
|
|
75
|
+
content: child,
|
|
76
|
+
level: level + 1,
|
|
77
|
+
sectionId: sectionId,
|
|
78
|
+
cardIndex: cardIndex,
|
|
79
|
+
contentIndex: index,
|
|
80
|
+
setInputRef: setInputRef,
|
|
81
|
+
__self: void 0,
|
|
82
|
+
__source: {
|
|
83
|
+
fileName: _jsxFileName,
|
|
84
|
+
lineNumber: 63,
|
|
85
|
+
columnNumber: 15
|
|
86
|
+
}
|
|
87
|
+
}))));
|
|
88
|
+
case 'component':
|
|
89
|
+
if (!content.component.componentId) {
|
|
90
|
+
return null;
|
|
91
|
+
}
|
|
92
|
+
const Component = overrides == null || (_overrides$components = overrides.components) == null ? void 0 : _overrides$components[content.component.componentId];
|
|
93
|
+
if (!Component) {
|
|
94
|
+
return null;
|
|
95
|
+
}
|
|
96
|
+
return /*#__PURE__*/_react.default.createElement(_designSystem.Cell, {
|
|
97
|
+
span: content.component.span,
|
|
98
|
+
__self: void 0,
|
|
99
|
+
__source: {
|
|
100
|
+
fileName: _jsxFileName,
|
|
101
|
+
lineNumber: 88,
|
|
102
|
+
columnNumber: 9
|
|
103
|
+
}
|
|
104
|
+
}, /*#__PURE__*/_react.default.createElement(Component, {
|
|
105
|
+
form: pageState == null ? void 0 : pageState.form,
|
|
106
|
+
entity: entity,
|
|
107
|
+
__self: void 0,
|
|
108
|
+
__source: {
|
|
109
|
+
fileName: _jsxFileName,
|
|
110
|
+
lineNumber: 89,
|
|
111
|
+
columnNumber: 11
|
|
112
|
+
}
|
|
113
|
+
}));
|
|
114
|
+
default:
|
|
115
|
+
return null;
|
|
116
|
+
}
|
|
117
|
+
};
|
|
118
|
+
exports.RenderLayoutContent = RenderLayoutContent;
|
|
119
|
+
//# sourceMappingURL=RenderLayoutContent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_designSystem","_SchemaContext","_providers","_patterns","_FormFieldInput","_jsxFileName","RenderLayoutContent","content","level","sectionId","cardIndex","contentIndex","setInputRef","_content$container$ch","_overrides$components","schema","useSchema","overrides","usePatternsWizardOverridesContext","pageState","useEntityPageContext","entity","type","field","fieldId","fields","default","createElement","Cell","span","__self","__source","fileName","lineNumber","columnNumber","FormFieldInput","key","inputRef","ref","container","children","length","Layout","map","child","index","component","componentId","Component","components","form","exports"],"sources":["../../../../../src/components/AutoPatternsEntityPage/RenderLayout/RenderLayoutContent.tsx"],"sourcesContent":["import React from 'react';\nimport { Cell, Layout } from '@wix/design-system';\nimport { useSchema } from '../../../providers/SchemaContext';\nimport { usePatternsWizardOverridesContext } from '../../../providers';\nimport { useEntityPageContext } from '@wix/patterns';\nimport { FormFieldInput } from '../Fields/FormFieldInput';\nimport { LayoutContent } from '../../../types';\nimport { BaseInputRef } from '../Fields/types';\n\nexport interface RenderLayoutContentProps {\n content: LayoutContent;\n level: number;\n sectionId: string;\n cardIndex: number;\n contentIndex: number;\n setInputRef: (id: string, input: BaseInputRef) => void;\n}\n\nexport const RenderLayoutContent: React.FC<RenderLayoutContentProps> = ({\n content,\n level,\n sectionId,\n cardIndex,\n contentIndex,\n setInputRef,\n}) => {\n const schema = useSchema();\n const overrides = usePatternsWizardOverridesContext();\n const pageState = useEntityPageContext();\n\n const entity = pageState.entity;\n\n switch (content.type) {\n case 'field':\n if (!content.field.fieldId) {\n return null;\n }\n\n const field = schema.fields[content.field.fieldId];\n if (!field) {\n return null;\n }\n\n return (\n <Cell span={content.field.span}>\n <FormFieldInput\n key={content.field.fieldId}\n field={field}\n inputRef={(ref) => setInputRef(content.field.fieldId, ref)}\n />\n </Cell>\n );\n\n case 'container':\n if (!content.container.children?.length) {\n return null;\n }\n\n return (\n <Cell span={content.container.span}>\n <Layout>\n {content.container.children.map((child, index) => (\n <RenderLayoutContent\n key={`${sectionId}-card-${cardIndex}-content-${contentIndex}-level-${level}-child-${index}`}\n content={child}\n level={level + 1}\n sectionId={sectionId}\n cardIndex={cardIndex}\n contentIndex={index}\n setInputRef={setInputRef}\n />\n ))}\n </Layout>\n </Cell>\n );\n\n case 'component':\n if (!content.component.componentId) {\n return null;\n }\n\n const Component = overrides?.components?.[content.component.componentId];\n if (!Component) {\n return null;\n }\n\n return (\n <Cell span={content.component.span}>\n <Component\n form={pageState?.form as any}\n entity={entity as Record<string, any>}\n />\n </Cell>\n );\n\n default:\n return null;\n }\n};\n"],"mappings":";;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,aAAA,GAAAD,OAAA;AACA,IAAAE,cAAA,GAAAF,OAAA;AACA,IAAAG,UAAA,GAAAH,OAAA;AACA,IAAAI,SAAA,GAAAJ,OAAA;AACA,IAAAK,eAAA,GAAAL,OAAA;AAA0D,IAAAM,YAAA;AAanD,MAAMC,mBAAuD,GAAGA,CAAC;EACtEC,OAAO;EACPC,KAAK;EAC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AI,CAACC,SAAS,EAAE;QACd,OAAO,IAAI;MACb;MAEA,oBACEnD,MAAA,CAAA6B,OAAA,CAAAC,aAAA,CAAC3B,aAAA,CAAA4B,IAAI;QAACC,IAAI,EAAEtB,OAAO,CAACuC,SAAS,CAACjB,IAAK;QAAAC,MAAA;QAAAC,QAAA;UAAAC,QAAA,EAAA3B,YAAA;UAAA4B,UAAA;UAAAC,YAAA;QAAA;MAAA,gBACjCrC,MAAA,CAAA6B,OAAA,CAAAC,aAAA,CAACqB,SAAS;QACRE,IAAI,EAAE/B,SAAS,oBAATA,SAAS,CAAE+B,IAAY;QAC7B7B,MAAM,EAAEA,MAA8B;QAAAS,MAAA;QAAAC,QAAA;UAAAC,QAAA,EAAA3B,YAAA;UAAA4B,UAAA;UAAAC,YAAA;QAAA;MAAA,CACvC,CACG,CAAC;IAGX;MACE,OAAO,IAAI;EACf;AACF,CAAC;AAACiB,OAAA,CAAA7C,mBAAA,GAAAA,mBAAA","ignoreList":[]}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
exports.__esModule = true;
|
|
5
|
+
exports.RenderViewField = void 0;
|
|
6
|
+
var _react = _interopRequireDefault(require("react"));
|
|
7
|
+
var _designSystem = require("@wix/design-system");
|
|
8
|
+
var _jsxFileName = "/home/builduser/work/73d19ce3378ce4dd/packages/auto-patterns/dist/cjs/components/AutoPatternsEntityPage/RenderLayout/RenderViewField.tsx";
|
|
9
|
+
const RenderViewField = ({
|
|
10
|
+
field,
|
|
11
|
+
fieldId,
|
|
12
|
+
entity,
|
|
13
|
+
span
|
|
14
|
+
}) => {
|
|
15
|
+
const fieldValue = entity == null ? void 0 : entity[fieldId];
|
|
16
|
+
|
|
17
|
+
// Safe display value conversion for all field types
|
|
18
|
+
const getDisplayValue = value => {
|
|
19
|
+
if (value === null || value === undefined) {
|
|
20
|
+
return '-';
|
|
21
|
+
}
|
|
22
|
+
if (typeof value === 'string' || typeof value === 'number' || typeof value === 'boolean') {
|
|
23
|
+
return String(value);
|
|
24
|
+
}
|
|
25
|
+
if (Array.isArray(value)) {
|
|
26
|
+
return value.length > 0 ? value.join(', ') : '-';
|
|
27
|
+
}
|
|
28
|
+
if (typeof value === 'object') {
|
|
29
|
+
// Handle dates
|
|
30
|
+
if (value instanceof Date) {
|
|
31
|
+
return value.toLocaleDateString();
|
|
32
|
+
}
|
|
33
|
+
// Handle objects with display properties
|
|
34
|
+
if (value.toString && value.toString !== Object.prototype.toString) {
|
|
35
|
+
return value.toString();
|
|
36
|
+
}
|
|
37
|
+
// Fallback for complex objects
|
|
38
|
+
return JSON.stringify(value);
|
|
39
|
+
}
|
|
40
|
+
return String(value);
|
|
41
|
+
};
|
|
42
|
+
const displayValue = getDisplayValue(fieldValue);
|
|
43
|
+
return /*#__PURE__*/_react.default.createElement(_designSystem.Cell, {
|
|
44
|
+
span: span,
|
|
45
|
+
__self: void 0,
|
|
46
|
+
__source: {
|
|
47
|
+
fileName: _jsxFileName,
|
|
48
|
+
lineNumber: 45,
|
|
49
|
+
columnNumber: 5
|
|
50
|
+
}
|
|
51
|
+
}, /*#__PURE__*/_react.default.createElement(_designSystem.Box, {
|
|
52
|
+
direction: "vertical",
|
|
53
|
+
gap: "4px",
|
|
54
|
+
__self: void 0,
|
|
55
|
+
__source: {
|
|
56
|
+
fileName: _jsxFileName,
|
|
57
|
+
lineNumber: 46,
|
|
58
|
+
columnNumber: 7
|
|
59
|
+
}
|
|
60
|
+
}, /*#__PURE__*/_react.default.createElement(_designSystem.Text, {
|
|
61
|
+
size: "small",
|
|
62
|
+
secondary: true,
|
|
63
|
+
__self: void 0,
|
|
64
|
+
__source: {
|
|
65
|
+
fileName: _jsxFileName,
|
|
66
|
+
lineNumber: 47,
|
|
67
|
+
columnNumber: 9
|
|
68
|
+
}
|
|
69
|
+
}, field.displayName || fieldId), /*#__PURE__*/_react.default.createElement(_designSystem.Text, {
|
|
70
|
+
__self: void 0,
|
|
71
|
+
__source: {
|
|
72
|
+
fileName: _jsxFileName,
|
|
73
|
+
lineNumber: 50,
|
|
74
|
+
columnNumber: 9
|
|
75
|
+
}
|
|
76
|
+
}, displayValue)));
|
|
77
|
+
};
|
|
78
|
+
exports.RenderViewField = RenderViewField;
|
|
79
|
+
//# sourceMappingURL=RenderViewField.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_designSystem","_jsxFileName","RenderViewField","field","fieldId","entity","span","fieldValue","getDisplayValue","value","undefined","String","Array","isArray","length","join","Date","toLocaleDateString","toString","Object","prototype","JSON","stringify","displayValue","default","createElement","Cell","__self","__source","fileName","lineNumber","columnNumber","Box","direction","gap","Text","size","secondary","displayName","exports"],"sources":["../../../../../src/components/AutoPatternsEntityPage/RenderLayout/RenderViewField.tsx"],"sourcesContent":["import React from 'react';\nimport { Cell, Box, Text } from '@wix/design-system';\n\nexport const RenderViewField: React.FC<{\n field: any;\n fieldId: string;\n entity: any;\n span?: number;\n}> = ({ field, fieldId, entity, span }) => {\n const fieldValue = entity?.[fieldId];\n\n // Safe display value conversion for all field types\n const getDisplayValue = (value: any): string => {\n if (value === null || value === undefined) {\n return '-';\n }\n if (\n typeof value === 'string' ||\n typeof value === 'number' ||\n typeof value === 'boolean'\n ) {\n return String(value);\n }\n if (Array.isArray(value)) {\n return value.length > 0 ? value.join(', ') : '-';\n }\n if (typeof value === 'object') {\n // Handle dates\n if (value instanceof Date) {\n return value.toLocaleDateString();\n }\n // Handle objects with display properties\n if (value.toString && value.toString !== Object.prototype.toString) {\n return value.toString();\n }\n // Fallback for complex objects\n return JSON.stringify(value);\n }\n return String(value);\n };\n\n const displayValue = getDisplayValue(fieldValue);\n\n return (\n <Cell span={span}>\n <Box direction=\"vertical\" gap=\"4px\">\n <Text size=\"small\" secondary>\n {field.displayName || fieldId}\n </Text>\n <Text>{displayValue}</Text>\n </Box>\n </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AAA,CAACzB,aAAA,CAAA0B,IAAI;IAACpB,IAAI,EAAEA,IAAK;IAAAqB,MAAA;IAAAC,QAAA;MAAAC,QAAA,EAAA5B,YAAA;MAAA6B,UAAA;MAAAC,YAAA;IAAA;EAAA,gBACflC,MAAA,CAAA2B,OAAA,CAAAC,aAAA,CAACzB,aAAA,CAAAgC,GAAG;IAACC,SAAS,EAAC,UAAU;IAACC,GAAG,EAAC,KAAK;IAAAP,MAAA;IAAAC,QAAA;MAAAC,QAAA,EAAA5B,YAAA;MAAA6B,UAAA;MAAAC,YAAA;IAAA;EAAA,gBACjClC,MAAA,CAAA2B,OAAA,CAAAC,aAAA,CAACzB,aAAA,CAAAmC,IAAI;IAACC,IAAI,EAAC,OAAO;IAACC,SAAS;IAAAV,MAAA;IAAAC,QAAA;MAAAC,QAAA,EAAA5B,YAAA;MAAA6B,UAAA;MAAAC,YAAA;IAAA;EAAA,GACzB5B,KAAK,CAACmC,WAAW,IAAIlC,OAClB,CAAC,eACPP,MAAA,CAAA2B,OAAA,CAAAC,aAAA,CAACzB,aAAA,CAAAmC,IAAI;IAAAR,MAAA;IAAAC,QAAA;MAAAC,QAAA,EAAA5B,YAAA;MAAA6B,UAAA;MAAAC,YAAA;IAAA;EAAA,GAAER,YAAmB,CACvB,CACD,CAAC;AAEX,CAAC;AAACgB,OAAA,CAAArC,eAAA,GAAAA,eAAA","ignoreList":[]}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
var _RenderLayoutCard = require("./RenderLayoutCard");
|
|
5
|
+
Object.keys(_RenderLayoutCard).forEach(function (key) {
|
|
6
|
+
if (key === "default" || key === "__esModule") return;
|
|
7
|
+
if (key in exports && exports[key] === _RenderLayoutCard[key]) return;
|
|
8
|
+
exports[key] = _RenderLayoutCard[key];
|
|
9
|
+
});
|
|
10
|
+
var _RenderLayoutContent = require("./RenderLayoutContent");
|
|
11
|
+
Object.keys(_RenderLayoutContent).forEach(function (key) {
|
|
12
|
+
if (key === "default" || key === "__esModule") return;
|
|
13
|
+
if (key in exports && exports[key] === _RenderLayoutContent[key]) return;
|
|
14
|
+
exports[key] = _RenderLayoutContent[key];
|
|
15
|
+
});
|
|
16
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_RenderLayoutCard","require","Object","keys","forEach","key","exports","_RenderLayoutContent"],"sources":["../../../../../src/components/AutoPatternsEntityPage/RenderLayout/index.ts"],"sourcesContent":["export * from './RenderLayoutCard';\nexport * from './RenderLayoutContent';\n"],"mappings":";;;AAAA,IAAAA,iBAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,iBAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,iBAAA,CAAAK,GAAA;EAAAC,OAAA,CAAAD,GAAA,IAAAL,iBAAA,CAAAK,GAAA;AAAA;AACA,IAAAE,oBAAA,GAAAN,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAI,oBAAA,EAAAH,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAE,oBAAA,CAAAF,GAAA;EAAAC,OAAA,CAAAD,GAAA,IAAAE,oBAAA,CAAAF,GAAA;AAAA","ignoreList":[]}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
exports.__esModule = true;
|
|
5
|
+
exports.RenderViewLayoutCard = void 0;
|
|
6
|
+
var _react = _interopRequireDefault(require("react"));
|
|
7
|
+
var _designSystem = require("@wix/design-system");
|
|
8
|
+
var _RenderViewLayoutContent = require("./RenderViewLayoutContent");
|
|
9
|
+
var _jsxFileName = "/home/builduser/work/73d19ce3378ce4dd/packages/auto-patterns/dist/cjs/components/AutoPatternsEntityPage/ViewEntityPage/RenderViewLayoutCard.tsx";
|
|
10
|
+
// TODO: remove this component and use RenderLayoutCard instead
|
|
11
|
+
const RenderViewLayoutCard = ({
|
|
12
|
+
entity,
|
|
13
|
+
layout,
|
|
14
|
+
sectionId,
|
|
15
|
+
cardIndex
|
|
16
|
+
}) => {
|
|
17
|
+
var _layout$card$subtitle;
|
|
18
|
+
switch (layout.type) {
|
|
19
|
+
case 'card':
|
|
20
|
+
return /*#__PURE__*/_react.default.createElement(_designSystem.Card, {
|
|
21
|
+
__self: void 0,
|
|
22
|
+
__source: {
|
|
23
|
+
fileName: _jsxFileName,
|
|
24
|
+
lineNumber: 21,
|
|
25
|
+
columnNumber: 9
|
|
26
|
+
}
|
|
27
|
+
}, /*#__PURE__*/_react.default.createElement(_designSystem.Card.Header, {
|
|
28
|
+
title: layout.card.title.text,
|
|
29
|
+
subtitle: (_layout$card$subtitle = layout.card.subtitle) == null ? void 0 : _layout$card$subtitle.text,
|
|
30
|
+
__self: void 0,
|
|
31
|
+
__source: {
|
|
32
|
+
fileName: _jsxFileName,
|
|
33
|
+
lineNumber: 22,
|
|
34
|
+
columnNumber: 11
|
|
35
|
+
}
|
|
36
|
+
}), /*#__PURE__*/_react.default.createElement(_designSystem.Card.Divider, {
|
|
37
|
+
__self: void 0,
|
|
38
|
+
__source: {
|
|
39
|
+
fileName: _jsxFileName,
|
|
40
|
+
lineNumber: 26,
|
|
41
|
+
columnNumber: 11
|
|
42
|
+
}
|
|
43
|
+
}), /*#__PURE__*/_react.default.createElement(_designSystem.Card.Content, {
|
|
44
|
+
__self: void 0,
|
|
45
|
+
__source: {
|
|
46
|
+
fileName: _jsxFileName,
|
|
47
|
+
lineNumber: 27,
|
|
48
|
+
columnNumber: 11
|
|
49
|
+
}
|
|
50
|
+
}, /*#__PURE__*/_react.default.createElement(_designSystem.Layout, {
|
|
51
|
+
__self: void 0,
|
|
52
|
+
__source: {
|
|
53
|
+
fileName: _jsxFileName,
|
|
54
|
+
lineNumber: 28,
|
|
55
|
+
columnNumber: 13
|
|
56
|
+
}
|
|
57
|
+
}, layout.card.children.map((child, index) => /*#__PURE__*/_react.default.createElement(_RenderViewLayoutContent.RenderViewLayoutContent, {
|
|
58
|
+
key: `${sectionId}-card-${cardIndex}-content-${index}`,
|
|
59
|
+
entity: entity,
|
|
60
|
+
content: child,
|
|
61
|
+
level: 0,
|
|
62
|
+
sectionId: sectionId,
|
|
63
|
+
cardIndex: cardIndex,
|
|
64
|
+
contentIndex: index,
|
|
65
|
+
__self: void 0,
|
|
66
|
+
__source: {
|
|
67
|
+
fileName: _jsxFileName,
|
|
68
|
+
lineNumber: 30,
|
|
69
|
+
columnNumber: 17
|
|
70
|
+
}
|
|
71
|
+
})))));
|
|
72
|
+
default:
|
|
73
|
+
return null;
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
exports.RenderViewLayoutCard = RenderViewLayoutCard;
|
|
77
|
+
//# sourceMappingURL=RenderViewLayoutCard.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_designSystem","_RenderViewLayoutContent","_jsxFileName","RenderViewLayoutCard","entity","layout","sectionId","cardIndex","_layout$card$subtitle","type","default","createElement","Card","__self","__source","fileName","lineNumber","columnNumber","Header","title","card","text","subtitle","Divider","Content","Layout","children","map","child","index","RenderViewLayoutContent","key","content","level","contentIndex","exports"],"sources":["../../../../../src/components/AutoPatternsEntityPage/ViewEntityPage/RenderViewLayoutCard.tsx"],"sourcesContent":["import React from 'react';\nimport { Card, Layout } from '@wix/design-system';\nimport { RenderViewLayoutContent } from './RenderViewLayoutContent';\nimport { RenderLayoutCardProps } from '../RenderLayout';\n\ninterface RenderViewLayoutCardProps\n extends Omit<RenderLayoutCardProps, 'setInputRef'> {\n entity: Record<string, any>;\n}\n\n// TODO: remove this component and use RenderLayoutCard instead\nexport const RenderViewLayoutCard: React.FC<RenderViewLayoutCardProps> = ({\n entity,\n layout,\n sectionId,\n cardIndex,\n}) => {\n switch (layout.type) {\n case 'card':\n return (\n <Card>\n <Card.Header\n title={layout.card.title.text}\n subtitle={layout.card.subtitle?.text}\n />\n <Card.Divider />\n <Card.Content>\n <Layout>\n {layout.card.children.map((child, index: number) => (\n <RenderViewLayoutContent\n key={`${sectionId}-card-${cardIndex}-content-${index}`}\n entity={entity}\n content={child}\n level={0}\n sectionId={sectionId}\n cardIndex={cardIndex}\n contentIndex={index}\n />\n ))}\n </Layout>\n </Card.Content>\n </Card>\n );\n default:\n return null;\n }\n};\n"],"mappings":";;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,aAAA,GAAAD,OAAA;AACA,IAAAE,wBAAA,GAAAF,OAAA;AAAoE,IAAAG,YAAA;AAQpE;AACO,MAAMC,oBAAyD,GAAGA,CAAC;EACxEC,MAAM;EACNC,MAAM;EACNC,SAAS;EACTC;AACF,CAAC,KAAK;EAAA,IAAAC,qBAAA;EACJ,QAAQH,MAAM,CAACI,IAAI;IACjB,KAAK,MAAM;MACT,oBACEZ,MAAA,CAAAa,OAAA,CAAAC,aAAA,CAACX,aAAA,CAAAY,IAAI;QAAAC,MAAA;QAAAC,QAAA;UAAAC,QAAA,EAAAb,YAAA;UAAAc,UAAA;UAAAC,YAAA;QAAA;MAAA,gBACHpB,MAAA,CAAAa,OAAA,CAAAC,aAAA,CAACX,aAAA,CAAAY,IAAI,CAACM,MAAM;QACVC,KAAK,EAAEd,MAAM,CAACe,IAAI,CAACD,KAAK,CAACE,IAAK;QAC9BC,QAAQ,GAAAd,qBAAA,GAAEH,MAAM,CAACe,IAAI,CAACE,QAAQ,qBAApBd,qBAAA,CAAsBa,IAAK;QAAAR,MAAA;QAAAC,QAAA;UAAAC,QAAA,EAAAb,YAAA;UAAAc,UAAA;U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babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
exports.__esModule = true;
|
|
5
|
+
exports.RenderViewLayoutContent = void 0;
|
|
6
|
+
var _react = _interopRequireDefault(require("react"));
|
|
7
|
+
var _designSystem = require("@wix/design-system");
|
|
8
|
+
var _SchemaContext = require("../../../providers/SchemaContext");
|
|
9
|
+
var _providers = require("../../../providers");
|
|
10
|
+
var _RenderViewField = require("../RenderLayout/RenderViewField");
|
|
11
|
+
var _jsxFileName = "/home/builduser/work/73d19ce3378ce4dd/packages/auto-patterns/dist/cjs/components/AutoPatternsEntityPage/ViewEntityPage/RenderViewLayoutContent.tsx";
|
|
12
|
+
// TODO: remove this component and use RenderLayoutContent instead
|
|
13
|
+
const RenderViewLayoutContent = ({
|
|
14
|
+
entity,
|
|
15
|
+
content,
|
|
16
|
+
level,
|
|
17
|
+
sectionId,
|
|
18
|
+
cardIndex,
|
|
19
|
+
contentIndex
|
|
20
|
+
}) => {
|
|
21
|
+
var _content$container$ch, _overrides$components;
|
|
22
|
+
const schema = (0, _SchemaContext.useSchema)();
|
|
23
|
+
const overrides = (0, _providers.usePatternsWizardOverridesContext)();
|
|
24
|
+
switch (content.type) {
|
|
25
|
+
case 'field':
|
|
26
|
+
if (!content.field.fieldId) {
|
|
27
|
+
return null;
|
|
28
|
+
}
|
|
29
|
+
const field = schema.fields[content.field.fieldId];
|
|
30
|
+
if (!field) {
|
|
31
|
+
return null;
|
|
32
|
+
}
|
|
33
|
+
return /*#__PURE__*/_react.default.createElement(_RenderViewField.RenderViewField, {
|
|
34
|
+
field: field,
|
|
35
|
+
fieldId: content.field.fieldId,
|
|
36
|
+
entity: entity,
|
|
37
|
+
span: content.field.span,
|
|
38
|
+
__self: void 0,
|
|
39
|
+
__source: {
|
|
40
|
+
fileName: _jsxFileName,
|
|
41
|
+
lineNumber: 32,
|
|
42
|
+
columnNumber: 9
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
case 'container':
|
|
46
|
+
if (!((_content$container$ch = content.container.children) != null && _content$container$ch.length)) {
|
|
47
|
+
return null;
|
|
48
|
+
}
|
|
49
|
+
return /*#__PURE__*/_react.default.createElement(_designSystem.Cell, {
|
|
50
|
+
span: content.container.span,
|
|
51
|
+
__self: void 0,
|
|
52
|
+
__source: {
|
|
53
|
+
fileName: _jsxFileName,
|
|
54
|
+
lineNumber: 46,
|
|
55
|
+
columnNumber: 9
|
|
56
|
+
}
|
|
57
|
+
}, /*#__PURE__*/_react.default.createElement(_designSystem.Layout, {
|
|
58
|
+
__self: void 0,
|
|
59
|
+
__source: {
|
|
60
|
+
fileName: _jsxFileName,
|
|
61
|
+
lineNumber: 47,
|
|
62
|
+
columnNumber: 11
|
|
63
|
+
}
|
|
64
|
+
}, content.container.children.map((child, index) => /*#__PURE__*/_react.default.createElement(RenderViewLayoutContent, {
|
|
65
|
+
key: `${sectionId}-card-${cardIndex}-content-${contentIndex}-level-${level}-child-${index}`,
|
|
66
|
+
entity: entity,
|
|
67
|
+
content: child,
|
|
68
|
+
level: level + 1,
|
|
69
|
+
sectionId: sectionId,
|
|
70
|
+
cardIndex: cardIndex,
|
|
71
|
+
contentIndex: index,
|
|
72
|
+
__self: void 0,
|
|
73
|
+
__source: {
|
|
74
|
+
fileName: _jsxFileName,
|
|
75
|
+
lineNumber: 49,
|
|
76
|
+
columnNumber: 15
|
|
77
|
+
}
|
|
78
|
+
}))));
|
|
79
|
+
case 'component':
|
|
80
|
+
if (!content.component.componentId) {
|
|
81
|
+
return null;
|
|
82
|
+
}
|
|
83
|
+
const Component = overrides == null || (_overrides$components = overrides.components) == null ? void 0 : _overrides$components[content.component.componentId];
|
|
84
|
+
if (!Component) {
|
|
85
|
+
return null;
|
|
86
|
+
}
|
|
87
|
+
return /*#__PURE__*/_react.default.createElement(_designSystem.Cell, {
|
|
88
|
+
span: content.component.span,
|
|
89
|
+
__self: void 0,
|
|
90
|
+
__source: {
|
|
91
|
+
fileName: _jsxFileName,
|
|
92
|
+
lineNumber: 74,
|
|
93
|
+
columnNumber: 9
|
|
94
|
+
}
|
|
95
|
+
}, /*#__PURE__*/_react.default.createElement(Component, {
|
|
96
|
+
entity: entity,
|
|
97
|
+
__self: void 0,
|
|
98
|
+
__source: {
|
|
99
|
+
fileName: _jsxFileName,
|
|
100
|
+
lineNumber: 75,
|
|
101
|
+
columnNumber: 11
|
|
102
|
+
}
|
|
103
|
+
}));
|
|
104
|
+
default:
|
|
105
|
+
return null;
|
|
106
|
+
}
|
|
107
|
+
};
|
|
108
|
+
exports.RenderViewLayoutContent = RenderViewLayoutContent;
|
|
109
|
+
//# sourceMappingURL=RenderViewLayoutContent.js.map
|
package/dist/cjs/components/AutoPatternsEntityPage/ViewEntityPage/RenderViewLayoutContent.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_designSystem","_SchemaContext","_providers","_RenderViewField","_jsxFileName","RenderViewLayoutContent","entity","content","level","sectionId","cardIndex","contentIndex","_content$container$ch","_overrides$components","schema","useSchema","overrides","usePatternsWizardOverridesContext","type","field","fieldId","fields","default","createElement","RenderViewField","span","__self","__source","fileName","lineNumber","columnNumber","container","children","length","Cell","Layout","map","child","index","key","component","componentId","Component","components","exports"],"sources":["../../../../../src/components/AutoPatternsEntityPage/ViewEntityPage/RenderViewLayoutContent.tsx"],"sourcesContent":["import React from 'react';\nimport { Cell, Layout } from '@wix/design-system';\nimport { useSchema } from '../../../providers/SchemaContext';\nimport { usePatternsWizardOverridesContext } from '../../../providers';\nimport { RenderViewField } from '../RenderLayout/RenderViewField';\nimport { RenderLayoutContentProps } from '../RenderLayout';\n\ninterface RenderViewLayoutContentProps\n extends Omit<RenderLayoutContentProps, 'setInputRef'> {\n entity: Record<string, any>;\n}\n\n// TODO: remove this component and use RenderLayoutContent instead\nexport const RenderViewLayoutContent: React.FC<\n RenderViewLayoutContentProps\n> = ({ entity, content, level, sectionId, cardIndex, contentIndex }) => {\n const schema = useSchema();\n const overrides = usePatternsWizardOverridesContext();\n\n switch (content.type) {\n case 'field':\n if (!content.field.fieldId) {\n return null;\n }\n\n const field = schema.fields[content.field.fieldId];\n if (!field) {\n return null;\n }\n\n return (\n <RenderViewField\n field={field}\n fieldId={content.field.fieldId}\n entity={entity}\n span={content.field.span}\n />\n );\n\n case 'container':\n if (!content.container.children?.length) {\n return null;\n }\n\n return (\n <Cell span={content.container.span}>\n <Layout>\n {content.container.children.map((child, index) => (\n <RenderViewLayoutContent\n key={`${sectionId}-card-${cardIndex}-content-${contentIndex}-level-${level}-child-${index}`}\n entity={entity}\n content={child}\n level={level + 1}\n sectionId={sectionId}\n cardIndex={cardIndex}\n contentIndex={index}\n />\n ))}\n </Layout>\n </Cell>\n );\n\n case 'component':\n if (!content.component.componentId) {\n return null;\n }\n\n const Component = overrides?.components?.[content.component.componentId];\n if (!Component) {\n return null;\n }\n\n return (\n <Cell span={content.component.span}>\n <Component entity={entity} />\n </Cell>\n );\n\n default:\n return null;\n }\n};\n"],"mappings":";;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,aAAA,GAAAD,OAAA;AACA,IAAAE,cAAA,GAAAF,OAAA;AACA,IAAAG,UAAA,GAAAH,OAAA;AACA,IAAAI,gBAAA,GAAAJ,OAAA;AAAkE,IAAAK,YAAA;AAQlE;AACO,MAAMC,uBAEZ,GAAGA,CAAC;EAAEC,MAAM;EAAEC,OAAO;EAAEC,KAAK;EAAEC,SAAS;EAAEC,SAAS;EAAEC;AAAa,CAAC,KAAK;EAAA,IAAAC,qBAAA,EAAAC,qBAAA;EACtE,MAAMC,MAAM,GAAG,IAAAC,wBAAS,EAAC,CAAC;EAC1B,MAAMC,SAAS,GAAG,IAAAC,4CAAiC,EAAC,CAAC;EAErD,QAAQV,OAAO,CAACW,IAAI;IAClB,KAAK,OAAO;MACV,IAAI,CAACX,OAAO,CAACY,KAAK,CAACC,OAAO,EAAE;QAC1B,OAAO,IAAI;MACb;MAEA,MAAMD,KAAK,GAA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