@blaze-cms/plugin-data-ui 0.146.0-alpha.5 → 0.146.0-alpha.51
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/CHANGELOG.md +233 -0
- package/lib/components/EntityManager/Entity/EntitiyNavLinks/EntityNavLinks.js +1 -0
- package/lib/components/EntityManager/Entity/EntitiyNavLinks/EntityNavLinks.js.map +1 -1
- package/lib/components/EntityManager/Entity/Entity.js +47 -48
- package/lib/components/EntityManager/Entity/Entity.js.map +1 -1
- package/lib/components/EntityManager/Entity/EntityHeader/HeaderPreviewButton/HeaderPreviewButton.js +9 -3
- package/lib/components/EntityManager/Entity/EntityHeader/HeaderPreviewButton/HeaderPreviewButton.js.map +1 -1
- package/lib/components/EntityManager/Entity/SideBarRelations/helpers/build-dynamic-query.js +2 -1
- package/lib/components/EntityManager/Entity/SideBarRelations/helpers/build-dynamic-query.js.map +1 -1
- package/lib/components/EntityManager/Entity/SideBarRelations/index.js +5 -6
- package/lib/components/EntityManager/Entity/SideBarRelations/index.js.map +1 -1
- package/lib/components/EntityManager/Entity/SideBarRelations/presentational/CustomSidebarInfo.js +9 -2
- package/lib/components/EntityManager/Entity/SideBarRelations/presentational/CustomSidebarInfo.js.map +1 -1
- package/lib/components/EntityManager/Entity/actions-handlers/create/submit.js +1 -1
- package/lib/components/EntityManager/Entity/actions-handlers/create/submit.js.map +1 -1
- package/lib/components/EntityManager/Entity/actions-handlers/delete/delete.js +1 -1
- package/lib/components/EntityManager/Entity/actions-handlers/delete/delete.js.map +1 -1
- package/lib/components/EntityManager/Entity/actions-handlers/shared/publish.js +1 -1
- package/lib/components/EntityManager/Entity/actions-handlers/shared/publish.js.map +1 -1
- package/lib/components/EntityManager/Entity/actions-handlers/update/submit.js +1 -1
- package/lib/components/EntityManager/Entity/actions-handlers/update/submit.js.map +1 -1
- package/lib/components/EntityManager/EntityManager.js +6 -7
- package/lib/components/EntityManager/EntityManager.js.map +1 -1
- package/lib/components/EntityManager/utils/entity.js +9 -3
- package/lib/components/EntityManager/utils/entity.js.map +1 -1
- package/lib/components/EntityManager/utils/entityAvailableActions.js +2 -2
- package/lib/components/EntityManager/utils/entityAvailableActions.js.map +1 -1
- package/lib/components/InfoBoxes/InfoBoxTooltip.js +40 -0
- package/lib/components/InfoBoxes/InfoBoxTooltip.js.map +1 -0
- package/lib/components/InfoBoxes/InfoBoxes.js +1 -0
- package/lib/components/InfoBoxes/InfoBoxes.js.map +1 -1
- package/lib/components/InfoBoxes/container/InfoBoxContainer.js +1 -2
- package/lib/components/InfoBoxes/container/InfoBoxContainer.js.map +1 -1
- package/lib/components/InfoBoxes/helpers/build-dynamic-query.js +2 -1
- package/lib/components/InfoBoxes/helpers/build-dynamic-query.js.map +1 -1
- package/lib/components/InfoBoxes/presentational/InfoBox.js +4 -1
- package/lib/components/InfoBoxes/presentational/InfoBox.js.map +1 -1
- package/lib/components/ListingTable/ListingTable.js +19 -19
- package/lib/components/ListingTable/ListingTable.js.map +1 -1
- package/lib/components/ListingTable/ListingTableContent/ListingTableContent.js.map +1 -1
- package/lib/components/ListingTable/TableActions/TableActions.js.map +1 -1
- package/lib/components/ListingTable/mappers/populate-rows.js +16 -4
- package/lib/components/ListingTable/mappers/populate-rows.js.map +1 -1
- package/lib/components/ListingTable/service/index.js +2 -1
- package/lib/components/ListingTable/service/index.js.map +1 -1
- package/lib/components/Tabs/index.js +1 -2
- package/lib/components/Tabs/index.js.map +1 -1
- package/lib/index.js +5 -6
- package/lib/index.js.map +1 -1
- package/lib/utils/add-content-menu-items.js +1 -1
- package/lib/utils/add-content-menu-items.js.map +1 -1
- package/lib-es/components/EntityManager/Entity/Entity.js.map +1 -1
- package/lib-es/components/EntityManager/Entity/EntityHeader/EntityHeader.js.map +1 -1
- package/lib-es/components/EntityManager/Entity/EntityHeader/HeaderPreviewButton/HeaderPreviewButton.js +4 -1
- package/lib-es/components/EntityManager/Entity/EntityHeader/HeaderPreviewButton/HeaderPreviewButton.js.map +1 -1
- package/lib-es/components/EntityManager/Entity/SideBarRelations/helpers/build-dynamic-query.js +2 -0
- package/lib-es/components/EntityManager/Entity/SideBarRelations/helpers/build-dynamic-query.js.map +1 -1
- package/lib-es/components/EntityManager/Entity/SideBarRelations/hooks/useCustomSidebarData.js.map +1 -1
- package/lib-es/components/EntityManager/Entity/SideBarRelations/presentational/CustomSidebarInfo.js +8 -2
- package/lib-es/components/EntityManager/Entity/SideBarRelations/presentational/CustomSidebarInfo.js.map +1 -1
- package/lib-es/components/EntityManager/Entity/actions-handlers/create/submit.js.map +1 -1
- package/lib-es/components/EntityManager/Entity/actions-handlers/shared/publish.js.map +1 -1
- package/lib-es/components/EntityManager/EntityManager.js.map +1 -1
- package/lib-es/components/EntityManager/utils/entity.js +4 -1
- package/lib-es/components/EntityManager/utils/entity.js.map +1 -1
- package/lib-es/components/EntityManager/utils/query.js.map +1 -1
- package/lib-es/components/InfoBoxes/InfoBoxTooltip.js +36 -0
- package/lib-es/components/InfoBoxes/InfoBoxTooltip.js.map +1 -0
- package/lib-es/components/InfoBoxes/helpers/build-dynamic-query.js +2 -0
- package/lib-es/components/InfoBoxes/helpers/build-dynamic-query.js.map +1 -1
- package/lib-es/components/InfoBoxes/hooks/useData.js.map +1 -1
- package/lib-es/components/InfoBoxes/presentational/InfoBox.js +4 -1
- package/lib-es/components/InfoBoxes/presentational/InfoBox.js.map +1 -1
- package/lib-es/components/InfoBoxes/presentational/InfoBoxLabel.js.map +1 -1
- package/lib-es/components/ListingTable/ListingTable.js +2 -1
- package/lib-es/components/ListingTable/ListingTable.js.map +1 -1
- package/lib-es/components/ListingTable/ListingTableContent/ListingTableContent.js.map +1 -1
- package/lib-es/components/ListingTable/mappers/populate-rows.js +16 -4
- package/lib-es/components/ListingTable/mappers/populate-rows.js.map +1 -1
- package/lib-es/components/ListingTable/service/index.js.map +1 -1
- package/lib-es/index.js +2 -2
- package/lib-es/index.js.map +1 -1
- package/lib-es/utils/add-content-menu-items.js.map +1 -1
- package/lib-es/utils/build-create-entity-mutation.js.map +1 -1
- package/lib-es/utils/build-delete-entity-mutation.js.map +1 -1
- package/lib-es/utils/build-listing-query.js.map +1 -1
- package/lib-es/utils/build-update-data-query.js.map +1 -1
- package/lib-es/utils/build-update-publish-unpublish-mutation.js.map +1 -1
- package/package.json +8 -7
- package/src/components/EntityManager/Entity/EntityHeader/HeaderPreviewButton/HeaderPreviewButton.js +4 -1
- package/src/components/EntityManager/Entity/SideBarRelations/helpers/build-dynamic-query.js +2 -0
- package/src/components/EntityManager/Entity/SideBarRelations/presentational/CustomSidebarInfo.js +5 -3
- package/src/components/EntityManager/utils/entity.js +4 -1
- package/src/components/InfoBoxes/InfoBoxTooltip.js +32 -0
- package/src/components/InfoBoxes/helpers/build-dynamic-query.js +2 -0
- package/src/components/InfoBoxes/presentational/InfoBox.js +4 -2
- package/src/components/ListingTable/ListingTable.js +2 -1
- package/src/components/ListingTable/mappers/populate-rows.js +33 -5
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,239 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [0.146.0-alpha.51](https://github.com/thebyte9/blaze/compare/v0.146.0-alpha.50...v0.146.0-alpha.51) (2025-06-11)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* open frontend debug toolbar with a url param ([#4771](https://github.com/thebyte9/blaze/issues/4771)) ([37b8ea5](https://github.com/thebyte9/blaze/commit/37b8ea59a5ed4be0912465717adeb079fd6b3a89))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [0.146.0-alpha.50](https://github.com/thebyte9/blaze/compare/v0.146.0-alpha.49...v0.146.0-alpha.50) (2025-05-16)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @blaze-cms/plugin-data-ui
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
# [0.146.0-alpha.49](https://github.com/thebyte9/blaze/compare/v0.146.0-alpha.48...v0.146.0-alpha.49) (2025-05-16)
|
|
26
|
+
|
|
27
|
+
**Note:** Version bump only for package @blaze-cms/plugin-data-ui
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
# [0.146.0-alpha.44](https://github.com/thebyte9/blaze/compare/v0.146.0-alpha.43...v0.146.0-alpha.44) (2025-05-07)
|
|
34
|
+
|
|
35
|
+
**Note:** Version bump only for package @blaze-cms/plugin-data-ui
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
# [0.146.0-alpha.42](https://github.com/thebyte9/blaze/compare/v0.146.0-alpha.41...v0.146.0-alpha.42) (2025-05-06)
|
|
42
|
+
|
|
43
|
+
**Note:** Version bump only for package @blaze-cms/plugin-data-ui
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
# [0.146.0-alpha.41](https://github.com/thebyte9/blaze/compare/v0.146.0-alpha.40...v0.146.0-alpha.41) (2025-04-16)
|
|
50
|
+
|
|
51
|
+
**Note:** Version bump only for package @blaze-cms/plugin-data-ui
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
# [0.146.0-alpha.40](https://github.com/thebyte9/blaze/compare/v0.146.0-alpha.39...v0.146.0-alpha.40) (2025-04-15)
|
|
58
|
+
|
|
59
|
+
**Note:** Version bump only for package @blaze-cms/plugin-data-ui
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
# [0.146.0-alpha.37](https://github.com/thebyte9/blaze/compare/v0.146.0-alpha.36...v0.146.0-alpha.37) (2025-04-03)
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
### Features
|
|
69
|
+
|
|
70
|
+
* update info box properties to support tooltips ([#4701](https://github.com/thebyte9/blaze/issues/4701)) ([08ed041](https://github.com/thebyte9/blaze/commit/08ed041c9432f02e82e4846974cda65ae6c15a26))
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
# [0.146.0-alpha.36](https://github.com/thebyte9/blaze/compare/v0.146.0-alpha.35...v0.146.0-alpha.36) (2025-03-31)
|
|
77
|
+
|
|
78
|
+
**Note:** Version bump only for package @blaze-cms/plugin-data-ui
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
# [0.146.0-alpha.35](https://github.com/thebyte9/blaze/compare/v0.146.0-alpha.34...v0.146.0-alpha.35) (2025-03-26)
|
|
85
|
+
|
|
86
|
+
**Note:** Version bump only for package @blaze-cms/plugin-data-ui
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
# [0.146.0-alpha.32](https://github.com/thebyte9/blaze/compare/v0.146.0-alpha.31...v0.146.0-alpha.32) (2025-03-17)
|
|
93
|
+
|
|
94
|
+
**Note:** Version bump only for package @blaze-cms/plugin-data-ui
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
# [0.146.0-alpha.31](https://github.com/thebyte9/blaze/compare/v0.146.0-alpha.30...v0.146.0-alpha.31) (2025-03-05)
|
|
101
|
+
|
|
102
|
+
**Note:** Version bump only for package @blaze-cms/plugin-data-ui
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
# [0.146.0-alpha.30](https://github.com/thebyte9/blaze/compare/v0.146.0-alpha.29...v0.146.0-alpha.30) (2025-02-25)
|
|
109
|
+
|
|
110
|
+
**Note:** Version bump only for package @blaze-cms/plugin-data-ui
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
# [0.146.0-alpha.28](https://github.com/thebyte9/blaze/compare/v0.146.0-alpha.27...v0.146.0-alpha.28) (2025-01-22)
|
|
117
|
+
|
|
118
|
+
**Note:** Version bump only for package @blaze-cms/plugin-data-ui
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
# [0.146.0-alpha.27](https://github.com/thebyte9/blaze/compare/v0.146.0-alpha.26...v0.146.0-alpha.27) (2024-12-18)
|
|
125
|
+
|
|
126
|
+
**Note:** Version bump only for package @blaze-cms/plugin-data-ui
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
# [0.146.0-alpha.26](https://github.com/thebyte9/blaze/compare/v0.146.0-alpha.25...v0.146.0-alpha.26) (2024-12-17)
|
|
133
|
+
|
|
134
|
+
**Note:** Version bump only for package @blaze-cms/plugin-data-ui
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
# [0.146.0-alpha.23](https://github.com/thebyte9/blaze/compare/v0.146.0-alpha.22...v0.146.0-alpha.23) (2024-12-03)
|
|
141
|
+
|
|
142
|
+
**Note:** Version bump only for package @blaze-cms/plugin-data-ui
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
# [0.146.0-alpha.21](https://github.com/thebyte9/blaze/compare/v0.146.0-alpha.20...v0.146.0-alpha.21) (2024-11-27)
|
|
149
|
+
|
|
150
|
+
**Note:** Version bump only for package @blaze-cms/plugin-data-ui
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
# [0.146.0-alpha.18](https://github.com/thebyte9/blaze/compare/v0.146.0-alpha.17...v0.146.0-alpha.18) (2024-11-15)
|
|
157
|
+
|
|
158
|
+
**Note:** Version bump only for package @blaze-cms/plugin-data-ui
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
# [0.146.0-alpha.17](https://github.com/thebyte9/blaze/compare/v0.146.0-alpha.16...v0.146.0-alpha.17) (2024-11-12)
|
|
165
|
+
|
|
166
|
+
**Note:** Version bump only for package @blaze-cms/plugin-data-ui
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
# [0.146.0-alpha.16](https://github.com/thebyte9/blaze/compare/v0.146.0-alpha.15...v0.146.0-alpha.16) (2024-10-27)
|
|
173
|
+
|
|
174
|
+
**Note:** Version bump only for package @blaze-cms/plugin-data-ui
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
# [0.146.0-alpha.15](https://github.com/thebyte9/blaze/compare/v0.146.0-alpha.14...v0.146.0-alpha.15) (2024-10-27)
|
|
181
|
+
|
|
182
|
+
**Note:** Version bump only for package @blaze-cms/plugin-data-ui
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
# [0.146.0-alpha.13](https://github.com/thebyte9/blaze/compare/v0.146.0-alpha.12...v0.146.0-alpha.13) (2024-10-23)
|
|
189
|
+
|
|
190
|
+
**Note:** Version bump only for package @blaze-cms/plugin-data-ui
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
# [0.146.0-alpha.10](https://github.com/thebyte9/blaze/compare/v0.146.0-alpha.9...v0.146.0-alpha.10) (2024-10-09)
|
|
197
|
+
|
|
198
|
+
**Note:** Version bump only for package @blaze-cms/plugin-data-ui
|
|
199
|
+
|
|
200
|
+
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
|
|
204
|
+
# [0.146.0-alpha.9](https://github.com/thebyte9/blaze/compare/v0.146.0-alpha.8...v0.146.0-alpha.9) (2024-09-27)
|
|
205
|
+
|
|
206
|
+
**Note:** Version bump only for package @blaze-cms/plugin-data-ui
|
|
207
|
+
|
|
208
|
+
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
# [0.146.0-alpha.8](https://github.com/thebyte9/blaze/compare/v0.146.0-alpha.7...v0.146.0-alpha.8) (2024-09-24)
|
|
213
|
+
|
|
214
|
+
**Note:** Version bump only for package @blaze-cms/plugin-data-ui
|
|
215
|
+
|
|
216
|
+
|
|
217
|
+
|
|
218
|
+
|
|
219
|
+
|
|
220
|
+
# [0.146.0-alpha.7](https://github.com/thebyte9/blaze/compare/v0.146.0-alpha.6...v0.146.0-alpha.7) (2024-09-19)
|
|
221
|
+
|
|
222
|
+
**Note:** Version bump only for package @blaze-cms/plugin-data-ui
|
|
223
|
+
|
|
224
|
+
|
|
225
|
+
|
|
226
|
+
|
|
227
|
+
|
|
228
|
+
# [0.146.0-alpha.6](https://github.com/thebyte9/blaze/compare/v0.146.0-alpha.5...v0.146.0-alpha.6) (2024-09-16)
|
|
229
|
+
|
|
230
|
+
|
|
231
|
+
### Features
|
|
232
|
+
|
|
233
|
+
* allow custom components in table columns ([#4482](https://github.com/thebyte9/blaze/issues/4482)) ([87098c9](https://github.com/thebyte9/blaze/commit/87098c93d9fd85adc2a2aa19f2e9a3db4402ae41))
|
|
234
|
+
|
|
235
|
+
|
|
236
|
+
|
|
237
|
+
|
|
238
|
+
|
|
6
239
|
# [0.146.0-alpha.5](https://github.com/thebyte9/blaze/compare/v0.146.0-alpha.4...v0.146.0-alpha.5) (2024-09-16)
|
|
7
240
|
|
|
8
241
|
**Note:** Version bump only for package @blaze-cms/plugin-data-ui
|
|
@@ -9,6 +9,7 @@ exports["default"] = void 0;
|
|
|
9
9
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
10
10
|
require("core-js/modules/es.array.map.js");
|
|
11
11
|
require("core-js/modules/es.object.entries.js");
|
|
12
|
+
require("core-js/modules/es.object.to-string.js");
|
|
12
13
|
require("core-js/modules/es.string.starts-with.js");
|
|
13
14
|
var _reactRouterDom = require("react-router-dom");
|
|
14
15
|
var _react = _interopRequireDefault(require("react"));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EntityNavLinks.js","names":["_reactRouterDom","require","_react","_interopRequireDefault","EntityNavLinks","_ref","schema","adminSectionNavigation","displayProperties","links","Object","entries","map","_ref2","_ref3","_slicedToArray2","k","v","label","uri","Wrapper","startsWith","Link","createElement","className","href","to","_default","exports"],"sources":["../../../../../src/components/EntityManager/Entity/EntitiyNavLinks/EntityNavLinks.js"],"sourcesContent":["import { Link } from 'react-router-dom';\nimport React from 'react';\n\nconst EntityNavLinks = ({ schema }) => {\n if (!schema) return null;\n\n const {\n displayProperties: { adminSectionNavigation }\n } = schema;\n\n if (!adminSectionNavigation) return null;\n\n const links = Object.entries(adminSectionNavigation).map(([k, v]) => {\n const { label, uri } = v;\n const Wrapper = uri.startsWith('#') ? 'a' : Link;\n\n return (\n <Wrapper className=\"entity-section-link\" href={uri} to={uri}>\n {label}\n </Wrapper>\n );\n });\n\n return <div className=\"entity-section-links\">{links}</div>;\n};\n\nexport default EntityNavLinks;\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"EntityNavLinks.js","names":["_reactRouterDom","require","_react","_interopRequireDefault","EntityNavLinks","_ref","schema","adminSectionNavigation","displayProperties","links","Object","entries","map","_ref2","_ref3","_slicedToArray2","k","v","label","uri","Wrapper","startsWith","Link","createElement","className","href","to","_default","exports"],"sources":["../../../../../src/components/EntityManager/Entity/EntitiyNavLinks/EntityNavLinks.js"],"sourcesContent":["import { Link } from 'react-router-dom';\nimport React from 'react';\n\nconst EntityNavLinks = ({ schema }) => {\n if (!schema) return null;\n\n const {\n displayProperties: { adminSectionNavigation }\n } = schema;\n\n if (!adminSectionNavigation) return null;\n\n const links = Object.entries(adminSectionNavigation).map(([k, v]) => {\n const { label, uri } = v;\n const Wrapper = uri.startsWith('#') ? 'a' : Link;\n\n return (\n <Wrapper className=\"entity-section-link\" href={uri} to={uri}>\n {label}\n </Wrapper>\n );\n });\n\n return <div className=\"entity-section-links\">{links}</div>;\n};\n\nexport default EntityNavLinks;\n"],"mappings":";;;;;;;;;;;;;AAAA,IAAAA,eAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAC,sBAAA,CAAAF,OAAA;AAEA,IAAMG,cAAc,GAAG,SAAjBA,cAAcA,CAAAC,IAAA,EAAmB;EAAA,IAAbC,MAAM,GAAAD,IAAA,CAANC,MAAM;EAC9B,IAAI,CAACA,MAAM,EAAE,OAAO,IAAI;EAExB,IACuBC,sBAAsB,GACzCD,MAAM,CADRE,iBAAiB,CAAID,sBAAsB;EAG7C,IAAI,CAACA,sBAAsB,EAAE,OAAO,IAAI;EAExC,IAAME,KAAK,GAAGC,MAAM,CAACC,OAAO,CAACJ,sBAAsB,CAAC,CAACK,GAAG,CAAC,UAAAC,KAAA,EAAY;IAAA,IAAAC,KAAA,OAAAC,eAAA,aAAAF,KAAA;MAAVG,CAAC,GAAAF,KAAA;MAAEG,CAAC,GAAAH,KAAA;IAC7D,IAAQI,KAAK,GAAUD,CAAC,CAAhBC,KAAK;MAAEC,GAAG,GAAKF,CAAC,CAATE,GAAG;IAClB,IAAMC,OAAO,GAAGD,GAAG,CAACE,UAAU,CAAC,GAAG,CAAC,GAAG,GAAG,GAAGC,oBAAI;IAEhD,oBACEpB,MAAA,YAAAqB,aAAA,CAACH,OAAO;MAACI,SAAS,EAAC,qBAAqB;MAACC,IAAI,EAAEN,GAAI;MAACO,EAAE,EAAEP;IAAI,GACzDD,KACM,CAAC;EAEd,CAAC,CAAC;EAEF,oBAAOhB,MAAA,YAAAqB,aAAA;IAAKC,SAAS,EAAC;EAAsB,GAAEf,KAAW,CAAC;AAC5D,CAAC;AAAC,IAAAkB,QAAA,GAAAC,OAAA,cAEaxB,cAAc","ignoreList":[]}
|
|
@@ -57,8 +57,7 @@ var _InfoBoxes = _interopRequireDefault(require("../../InfoBoxes/InfoBoxes"));
|
|
|
57
57
|
var _RecordEditContext = require("../utils/RecordEditContext");
|
|
58
58
|
var _excluded = ["isValid", "fields", "isNewValueSet", "valuesChecked", "currentField", "value"];
|
|
59
59
|
/* eslint-disable no-undef */
|
|
60
|
-
function
|
|
61
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
60
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t2 in e) "default" !== _t2 && {}.hasOwnProperty.call(e, _t2) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t2)) && (i.get || i.set) ? o(f, _t2, i) : f[_t2] = e[_t2]); return f; })(e, t); }
|
|
62
61
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
63
62
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2["default"])(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
64
63
|
var Entity = function Entity(_ref) {
|
|
@@ -88,29 +87,29 @@ var Entity = function Entity(_ref) {
|
|
|
88
87
|
entityData = _useState8[0],
|
|
89
88
|
setEntityData = _useState8[1];
|
|
90
89
|
var _useState9 = (0, _react.useState)(null),
|
|
91
|
-
|
|
92
|
-
entityIdentifier =
|
|
93
|
-
setEntityIdentifier =
|
|
94
|
-
var
|
|
90
|
+
_useState0 = (0, _slicedToArray2["default"])(_useState9, 2),
|
|
91
|
+
entityIdentifier = _useState0[0],
|
|
92
|
+
setEntityIdentifier = _useState0[1];
|
|
93
|
+
var _useState1 = (0, _react.useState)(''),
|
|
94
|
+
_useState10 = (0, _slicedToArray2["default"])(_useState1, 2),
|
|
95
|
+
pageTitle = _useState10[0],
|
|
96
|
+
setPageTitle = _useState10[1];
|
|
97
|
+
var _useState11 = (0, _react.useState)(false),
|
|
95
98
|
_useState12 = (0, _slicedToArray2["default"])(_useState11, 2),
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
var _useState13 = (0, _react.useState)(
|
|
99
|
+
isSaveButtonAvailable = _useState12[0],
|
|
100
|
+
setIsSaveButtonAvailable = _useState12[1];
|
|
101
|
+
var _useState13 = (0, _react.useState)(formData && formData.values && formData.values.status),
|
|
99
102
|
_useState14 = (0, _slicedToArray2["default"])(_useState13, 2),
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
var _useState15 = (0, _react.useState)(
|
|
103
|
+
entityIsPublished = _useState14[0],
|
|
104
|
+
setEntityIsPublish = _useState14[1];
|
|
105
|
+
var _useState15 = (0, _react.useState)(false),
|
|
103
106
|
_useState16 = (0, _slicedToArray2["default"])(_useState15, 2),
|
|
104
|
-
|
|
105
|
-
|
|
107
|
+
isEnablePublishButton = _useState16[0],
|
|
108
|
+
setEnablePublishButton = _useState16[1];
|
|
106
109
|
var _useState17 = (0, _react.useState)(false),
|
|
107
110
|
_useState18 = (0, _slicedToArray2["default"])(_useState17, 2),
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
var _useState19 = (0, _react.useState)(false),
|
|
111
|
-
_useState20 = (0, _slicedToArray2["default"])(_useState19, 2),
|
|
112
|
-
isEnablePreviewButton = _useState20[0],
|
|
113
|
-
setEnablePreviewButton = _useState20[1];
|
|
111
|
+
isEnablePreviewButton = _useState18[0],
|
|
112
|
+
setEnablePreviewButton = _useState18[1];
|
|
114
113
|
var _useToggle = (0, _useToggle5["default"])(false),
|
|
115
114
|
_useToggle2 = (0, _slicedToArray2["default"])(_useToggle, 2),
|
|
116
115
|
modalStatus = _useToggle2[0],
|
|
@@ -119,39 +118,39 @@ var Entity = function Entity(_ref) {
|
|
|
119
118
|
_useToggle4 = (0, _slicedToArray2["default"])(_useToggle3, 2),
|
|
120
119
|
copyModalStatus = _useToggle4[0],
|
|
121
120
|
setCopyModalStatus = _useToggle4[1];
|
|
122
|
-
var
|
|
121
|
+
var _useState19 = (0, _react.useState)(true),
|
|
122
|
+
_useState20 = (0, _slicedToArray2["default"])(_useState19, 2),
|
|
123
|
+
pageBuilderTemplateStatus = _useState20[0],
|
|
124
|
+
setPageBuilderTemplateStatus = _useState20[1];
|
|
125
|
+
var _useState21 = (0, _react.useState)(false),
|
|
123
126
|
_useState22 = (0, _slicedToArray2["default"])(_useState21, 2),
|
|
124
|
-
|
|
125
|
-
|
|
127
|
+
shouldCopyData = _useState22[0],
|
|
128
|
+
setShouldCopyData = _useState22[1];
|
|
126
129
|
var _useState23 = (0, _react.useState)(false),
|
|
127
130
|
_useState24 = (0, _slicedToArray2["default"])(_useState23, 2),
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
var _useState25 = (0, _react.useState)(
|
|
131
|
+
isFormValid = _useState24[0],
|
|
132
|
+
setIsFormValid = _useState24[1];
|
|
133
|
+
var _useState25 = (0, _react.useState)(null),
|
|
131
134
|
_useState26 = (0, _slicedToArray2["default"])(_useState25, 2),
|
|
132
|
-
|
|
133
|
-
|
|
135
|
+
formDataFromCopy = _useState26[0],
|
|
136
|
+
setFormDataFromCopy = _useState26[1];
|
|
134
137
|
var _useState27 = (0, _react.useState)(null),
|
|
135
138
|
_useState28 = (0, _slicedToArray2["default"])(_useState27, 2),
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
var _useState29 = (0, _react.useState)(
|
|
139
|
+
newUpdatedDate = _useState28[0],
|
|
140
|
+
setNewUpdatedDate = _useState28[1];
|
|
141
|
+
var _useState29 = (0, _react.useState)(_constants.SAVE_BUTTON_TEXTS.save),
|
|
139
142
|
_useState30 = (0, _slicedToArray2["default"])(_useState29, 2),
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
var _useState31 = (0, _react.useState)(
|
|
143
|
+
saveButtonText = _useState30[0],
|
|
144
|
+
setSaveButtonText = _useState30[1];
|
|
145
|
+
var _useState31 = (0, _react.useState)(null),
|
|
143
146
|
_useState32 = (0, _slicedToArray2["default"])(_useState31, 2),
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
var _useState33 = (0, _react.useState)(null),
|
|
147
|
-
_useState34 = (0, _slicedToArray2["default"])(_useState33, 2),
|
|
148
|
-
externalUpdateTime = _useState34[0],
|
|
149
|
-
setExternalUpdateTime = _useState34[1];
|
|
147
|
+
externalUpdateTime = _useState32[0],
|
|
148
|
+
setExternalUpdateTime = _useState32[1];
|
|
150
149
|
var isCreatePage = history.location.pathname.includes('create');
|
|
151
|
-
var
|
|
152
|
-
|
|
153
|
-
isNewEntity =
|
|
154
|
-
setIsNewEntity =
|
|
150
|
+
var _useState33 = (0, _react.useState)(isCreatePage),
|
|
151
|
+
_useState34 = (0, _slicedToArray2["default"])(_useState33, 2),
|
|
152
|
+
isNewEntity = _useState34[0],
|
|
153
|
+
setIsNewEntity = _useState34[1];
|
|
155
154
|
var client = (0, _client.useApolloClient)();
|
|
156
155
|
var shouldUpdateState = !entityIdentifier || (0, _entity.checkFulfilConditions)(entity, schema, previousQuery, !entityData) || entityData && entityData.id !== entity.id;
|
|
157
156
|
var clonedFormData = (0, _lodash["default"])(formData);
|
|
@@ -202,7 +201,7 @@ var Entity = function Entity(_ref) {
|
|
|
202
201
|
}
|
|
203
202
|
}, [client, entity, entityData, formData, formValues, pageBuilderTemplateStatus, previousQuery, schema, shouldUpdateState]);
|
|
204
203
|
var getFullUrl = /*#__PURE__*/function () {
|
|
205
|
-
var _ref2 = (0, _asyncToGenerator2["default"])(
|
|
204
|
+
var _ref2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee() {
|
|
206
205
|
var query, _yield$client$query, _yield$client$query$d, _yield$client$query$d2, _yield$client$query$d3, getEntityUrl;
|
|
207
206
|
return _regenerator["default"].wrap(function _callee$(_context) {
|
|
208
207
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -261,7 +260,7 @@ var Entity = function Entity(_ref) {
|
|
|
261
260
|
}
|
|
262
261
|
};
|
|
263
262
|
var onChangeFormValues = /*#__PURE__*/function () {
|
|
264
|
-
var _ref5 = (0, _asyncToGenerator2["default"])(
|
|
263
|
+
var _ref5 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee2(_ref4) {
|
|
265
264
|
var isValid, fields, isNewValueSet, valuesChecked, currentField, fieldValue, otherProps, updatedFormValues, pageBuilderTemplateId, pageBuilder, _yield$client$query2, _yield$client$query2$, data, itemsToAdd, _fields$filter, _fields$filter2, _fields$filter2$, updatedEntity, isValidAndNewValueSet, isNotValidOrNotNewValueSet;
|
|
266
265
|
return _regenerator["default"].wrap(function _callee2$(_context2) {
|
|
267
266
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -398,7 +397,7 @@ var Entity = function Entity(_ref) {
|
|
|
398
397
|
return _actionsHandlers["default"][action].submit(currentAction, addToast);
|
|
399
398
|
};
|
|
400
399
|
var onDelete = /*#__PURE__*/function () {
|
|
401
|
-
var _ref7 = (0, _asyncToGenerator2["default"])(
|
|
400
|
+
var _ref7 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee3() {
|
|
402
401
|
var id;
|
|
403
402
|
return _regenerator["default"].wrap(function _callee3$(_context3) {
|
|
404
403
|
while (1) switch (_context3.prev = _context3.next) {
|
|
@@ -453,7 +452,7 @@ var Entity = function Entity(_ref) {
|
|
|
453
452
|
setFormDataFromCopy(formDataUpdated);
|
|
454
453
|
};
|
|
455
454
|
var handlePublishAndUnpublish = /*#__PURE__*/function () {
|
|
456
|
-
var _ref9 = (0, _asyncToGenerator2["default"])(
|
|
455
|
+
var _ref9 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee4(_ref8) {
|
|
457
456
|
var textContent, isPublishButton, isPublished, isUnpublish, savedPageMessage;
|
|
458
457
|
return _regenerator["default"].wrap(function _callee4$(_context4) {
|
|
459
458
|
while (1) switch (_context4.prev = _context4.next) {
|