@blaze-cms/plugin-data-ui 0.146.0-core-styles.42 → 0.146.0-tooltips.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.
Files changed (165) hide show
  1. package/CHANGELOG.md +9 -152
  2. package/lib/components/EntityDataListing/EntityDataListing.js.map +1 -1
  3. package/lib/components/EntityDataListing/index.js.map +1 -1
  4. package/lib/components/EntityManager/Entity/EntitiyNavLinks/EntityNavLinks.js.map +1 -1
  5. package/lib/components/EntityManager/Entity/EntitiyNavLinks/index.js.map +1 -1
  6. package/lib/components/EntityManager/Entity/Entity.js +67 -83
  7. package/lib/components/EntityManager/Entity/Entity.js.map +1 -1
  8. package/lib/components/EntityManager/Entity/EntityHeader/EntityHeader.js +1 -1
  9. package/lib/components/EntityManager/Entity/EntityHeader/EntityHeader.js.map +1 -1
  10. package/lib/components/EntityManager/Entity/EntityHeader/HeaderPreviewButton/HeaderPreviewButton.js +1 -1
  11. package/lib/components/EntityManager/Entity/EntityHeader/HeaderPreviewButton/HeaderPreviewButton.js.map +1 -1
  12. package/lib/components/EntityManager/Entity/EntityHeader/HeaderPreviewButton/index.js.map +1 -1
  13. package/lib/components/EntityManager/Entity/EntityHeader/index.js.map +1 -1
  14. package/lib/components/EntityManager/Entity/SideBarRelations/container/CustomSidebarInfoContainer.js +1 -1
  15. package/lib/components/EntityManager/Entity/SideBarRelations/container/CustomSidebarInfoContainer.js.map +1 -1
  16. package/lib/components/EntityManager/Entity/SideBarRelations/helpers/build-dynamic-query.js.map +1 -1
  17. package/lib/components/EntityManager/Entity/SideBarRelations/hooks/useCustomSidebarData.js.map +1 -1
  18. package/lib/components/EntityManager/Entity/SideBarRelations/index.js +8 -8
  19. package/lib/components/EntityManager/Entity/SideBarRelations/index.js.map +1 -1
  20. package/lib/components/EntityManager/Entity/SideBarRelations/presentational/CustomSidebarInfo.js +1 -1
  21. package/lib/components/EntityManager/Entity/SideBarRelations/presentational/CustomSidebarInfo.js.map +1 -1
  22. package/lib/components/EntityManager/Entity/actions-handlers/create/index.js.map +1 -1
  23. package/lib/components/EntityManager/Entity/actions-handlers/create/submit.js +2 -2
  24. package/lib/components/EntityManager/Entity/actions-handlers/create/submit.js.map +1 -1
  25. package/lib/components/EntityManager/Entity/actions-handlers/delete/delete.js +1 -1
  26. package/lib/components/EntityManager/Entity/actions-handlers/delete/delete.js.map +1 -1
  27. package/lib/components/EntityManager/Entity/actions-handlers/delete/index.js.map +1 -1
  28. package/lib/components/EntityManager/Entity/actions-handlers/index.js.map +1 -1
  29. package/lib/components/EntityManager/Entity/actions-handlers/shared/index.js.map +1 -1
  30. package/lib/components/EntityManager/Entity/actions-handlers/shared/publish.js +1 -1
  31. package/lib/components/EntityManager/Entity/actions-handlers/shared/publish.js.map +1 -1
  32. package/lib/components/EntityManager/Entity/actions-handlers/update/index.js.map +1 -1
  33. package/lib/components/EntityManager/Entity/actions-handlers/update/submit.js +6 -6
  34. package/lib/components/EntityManager/Entity/actions-handlers/update/submit.js.map +1 -1
  35. package/lib/components/EntityManager/Entity/index.js.map +1 -1
  36. package/lib/components/EntityManager/EntityManager.js +9 -9
  37. package/lib/components/EntityManager/EntityManager.js.map +1 -1
  38. package/lib/components/EntityManager/index.js.map +1 -1
  39. package/lib/components/EntityManager/utils/RecordEditContext/index.js.map +1 -1
  40. package/lib/components/EntityManager/utils/data-mappers.js +8 -8
  41. package/lib/components/EntityManager/utils/data-mappers.js.map +1 -1
  42. package/lib/components/EntityManager/utils/entity.js +8 -8
  43. package/lib/components/EntityManager/utils/entity.js.map +1 -1
  44. package/lib/components/EntityManager/utils/entityAvailableActions.js +2 -2
  45. package/lib/components/EntityManager/utils/entityAvailableActions.js.map +1 -1
  46. package/lib/components/EntityManager/utils/is-form-empty.js.map +1 -1
  47. package/lib/components/EntityManager/utils/query.js.map +1 -1
  48. package/lib/components/InfoBoxes/InfoBoxes.js.map +1 -1
  49. package/lib/components/InfoBoxes/container/InfoBoxContainer.js +4 -4
  50. package/lib/components/InfoBoxes/container/InfoBoxContainer.js.map +1 -1
  51. package/lib/components/InfoBoxes/helpers/build-dynamic-query.js.map +1 -1
  52. package/lib/components/InfoBoxes/hooks/useData.js.map +1 -1
  53. package/lib/components/InfoBoxes/hooks/useInfoBox.js.map +1 -1
  54. package/lib/components/InfoBoxes/index.js.map +1 -1
  55. package/lib/components/InfoBoxes/presentational/InfoBox.js +2 -2
  56. package/lib/components/InfoBoxes/presentational/InfoBox.js.map +1 -1
  57. package/lib/components/InfoBoxes/presentational/InfoBoxLabel.js.map +1 -1
  58. package/lib/components/InfoBoxes/presentational/InfoBoxValue.js.map +1 -1
  59. package/lib/components/ListingTable/ListingTable.js +18 -18
  60. package/lib/components/ListingTable/ListingTable.js.map +1 -1
  61. package/lib/components/ListingTable/ListingTableContent/ListingTableContent.js.map +1 -1
  62. package/lib/components/ListingTable/ListingTableContent/index.js.map +1 -1
  63. package/lib/components/ListingTable/TableActions/TableActions.js.map +1 -1
  64. package/lib/components/ListingTable/TableActions/index.js.map +1 -1
  65. package/lib/components/ListingTable/index.js.map +1 -1
  66. package/lib/components/ListingTable/mappers/populate-rows.js +9 -9
  67. package/lib/components/ListingTable/mappers/populate-rows.js.map +1 -1
  68. package/lib/components/ListingTable/service/index.js +7 -8
  69. package/lib/components/ListingTable/service/index.js.map +1 -1
  70. package/lib/components/hooks/useCallbackDebounce.js.map +1 -1
  71. package/lib/constants.js.map +1 -1
  72. package/lib/icons/ContentIcon.js.map +1 -1
  73. package/lib/icons/SettingsIcon.js.map +1 -1
  74. package/lib/icons/TaxonomyIcon.js.map +1 -1
  75. package/lib/icons/UsersIcon.js.map +1 -1
  76. package/lib/icons/index.js.map +1 -1
  77. package/lib/index.js +11 -11
  78. package/lib/index.js.map +1 -1
  79. package/lib/utils/add-content-menu-items.js +2 -2
  80. package/lib/utils/add-content-menu-items.js.map +1 -1
  81. package/lib/utils/build-create-entity-mutation.js.map +1 -1
  82. package/lib/utils/build-delete-entity-mutation.js.map +1 -1
  83. package/lib/utils/build-listing-query.js.map +1 -1
  84. package/lib/utils/build-update-data-query.js.map +1 -1
  85. package/lib/utils/build-update-publish-unpublish-mutation.js.map +1 -1
  86. package/lib/utils/get-default-query-params.js.map +1 -1
  87. package/lib/utils/hoc/withContext.js.map +1 -1
  88. package/lib/utils/hooks/useToggle.js.map +1 -1
  89. package/lib/utils/index.js.map +1 -1
  90. package/lib-es/components/EntityDataListing/EntityDataListing.js.map +1 -1
  91. package/lib-es/components/EntityDataListing/index.js.map +1 -1
  92. package/lib-es/components/EntityManager/Entity/EntitiyNavLinks/EntityNavLinks.js.map +1 -1
  93. package/lib-es/components/EntityManager/Entity/EntitiyNavLinks/index.js.map +1 -1
  94. package/lib-es/components/EntityManager/Entity/Entity.js +5 -19
  95. package/lib-es/components/EntityManager/Entity/Entity.js.map +1 -1
  96. package/lib-es/components/EntityManager/Entity/EntityHeader/EntityHeader.js.map +1 -1
  97. package/lib-es/components/EntityManager/Entity/EntityHeader/HeaderPreviewButton/HeaderPreviewButton.js.map +1 -1
  98. package/lib-es/components/EntityManager/Entity/EntityHeader/HeaderPreviewButton/index.js.map +1 -1
  99. package/lib-es/components/EntityManager/Entity/EntityHeader/index.js.map +1 -1
  100. package/lib-es/components/EntityManager/Entity/SideBarRelations/container/CustomSidebarInfoContainer.js.map +1 -1
  101. package/lib-es/components/EntityManager/Entity/SideBarRelations/helpers/build-dynamic-query.js.map +1 -1
  102. package/lib-es/components/EntityManager/Entity/SideBarRelations/hooks/useCustomSidebarData.js.map +1 -1
  103. package/lib-es/components/EntityManager/Entity/SideBarRelations/index.js.map +1 -1
  104. package/lib-es/components/EntityManager/Entity/SideBarRelations/presentational/CustomSidebarInfo.js.map +1 -1
  105. package/lib-es/components/EntityManager/Entity/actions-handlers/create/index.js.map +1 -1
  106. package/lib-es/components/EntityManager/Entity/actions-handlers/create/submit.js.map +1 -1
  107. package/lib-es/components/EntityManager/Entity/actions-handlers/delete/delete.js.map +1 -1
  108. package/lib-es/components/EntityManager/Entity/actions-handlers/delete/index.js.map +1 -1
  109. package/lib-es/components/EntityManager/Entity/actions-handlers/index.js.map +1 -1
  110. package/lib-es/components/EntityManager/Entity/actions-handlers/shared/index.js.map +1 -1
  111. package/lib-es/components/EntityManager/Entity/actions-handlers/shared/publish.js.map +1 -1
  112. package/lib-es/components/EntityManager/Entity/actions-handlers/update/index.js.map +1 -1
  113. package/lib-es/components/EntityManager/Entity/actions-handlers/update/submit.js.map +1 -1
  114. package/lib-es/components/EntityManager/Entity/index.js.map +1 -1
  115. package/lib-es/components/EntityManager/EntityManager.js.map +1 -1
  116. package/lib-es/components/EntityManager/index.js.map +1 -1
  117. package/lib-es/components/EntityManager/utils/RecordEditContext/index.js.map +1 -1
  118. package/lib-es/components/EntityManager/utils/data-mappers.js.map +1 -1
  119. package/lib-es/components/EntityManager/utils/entity.js.map +1 -1
  120. package/lib-es/components/EntityManager/utils/entityAvailableActions.js.map +1 -1
  121. package/lib-es/components/EntityManager/utils/is-form-empty.js.map +1 -1
  122. package/lib-es/components/EntityManager/utils/query.js.map +1 -1
  123. package/lib-es/components/InfoBoxes/InfoBoxes.js.map +1 -1
  124. package/lib-es/components/InfoBoxes/container/InfoBoxContainer.js.map +1 -1
  125. package/lib-es/components/InfoBoxes/helpers/build-dynamic-query.js.map +1 -1
  126. package/lib-es/components/InfoBoxes/hooks/useData.js.map +1 -1
  127. package/lib-es/components/InfoBoxes/hooks/useInfoBox.js.map +1 -1
  128. package/lib-es/components/InfoBoxes/index.js.map +1 -1
  129. package/lib-es/components/InfoBoxes/presentational/InfoBox.js.map +1 -1
  130. package/lib-es/components/InfoBoxes/presentational/InfoBoxLabel.js.map +1 -1
  131. package/lib-es/components/InfoBoxes/presentational/InfoBoxValue.js.map +1 -1
  132. package/lib-es/components/ListingTable/ListingTable.js.map +1 -1
  133. package/lib-es/components/ListingTable/ListingTableContent/ListingTableContent.js.map +1 -1
  134. package/lib-es/components/ListingTable/ListingTableContent/index.js.map +1 -1
  135. package/lib-es/components/ListingTable/TableActions/TableActions.js.map +1 -1
  136. package/lib-es/components/ListingTable/TableActions/index.js.map +1 -1
  137. package/lib-es/components/ListingTable/index.js.map +1 -1
  138. package/lib-es/components/ListingTable/mappers/populate-rows.js.map +1 -1
  139. package/lib-es/components/ListingTable/service/index.js.map +1 -1
  140. package/lib-es/components/hooks/useCallbackDebounce.js.map +1 -1
  141. package/lib-es/constants.js.map +1 -1
  142. package/lib-es/icons/ContentIcon.js.map +1 -1
  143. package/lib-es/icons/SettingsIcon.js.map +1 -1
  144. package/lib-es/icons/TaxonomyIcon.js.map +1 -1
  145. package/lib-es/icons/UsersIcon.js.map +1 -1
  146. package/lib-es/icons/index.js.map +1 -1
  147. package/lib-es/index.js +2 -2
  148. package/lib-es/index.js.map +1 -1
  149. package/lib-es/utils/add-content-menu-items.js.map +1 -1
  150. package/lib-es/utils/build-create-entity-mutation.js.map +1 -1
  151. package/lib-es/utils/build-delete-entity-mutation.js.map +1 -1
  152. package/lib-es/utils/build-listing-query.js.map +1 -1
  153. package/lib-es/utils/build-update-data-query.js.map +1 -1
  154. package/lib-es/utils/build-update-publish-unpublish-mutation.js.map +1 -1
  155. package/lib-es/utils/get-default-query-params.js.map +1 -1
  156. package/lib-es/utils/hoc/withContext.js.map +1 -1
  157. package/lib-es/utils/hooks/useToggle.js.map +1 -1
  158. package/lib-es/utils/index.js.map +1 -1
  159. package/package.json +12 -12
  160. package/src/components/EntityManager/Entity/Entity.js +14 -29
  161. package/lib/components/Tabs/index.js +0 -62
  162. package/lib/components/Tabs/index.js.map +0 -1
  163. package/lib-es/components/Tabs/index.js +0 -39
  164. package/lib-es/components/Tabs/index.js.map +0 -1
  165. package/src/components/Tabs/index.js +0 -42
package/CHANGELOG.md CHANGED
@@ -3,169 +3,26 @@
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-core-styles.42](https://github.com/thebyte9/blaze/compare/v0.146.0-core-styles.41...v0.146.0-core-styles.42) (2025-01-06)
7
-
8
- **Note:** Version bump only for package @blaze-cms/plugin-data-ui
9
-
10
-
11
-
12
-
13
-
14
- # [0.146.0-core-styles.41](https://github.com/thebyte9/blaze/compare/v0.146.0-core-styles.40...v0.146.0-core-styles.41) (2024-12-16)
15
-
16
- **Note:** Version bump only for package @blaze-cms/plugin-data-ui
17
-
18
-
19
-
20
-
21
-
22
- # [0.146.0-core-styles.40](https://github.com/thebyte9/blaze/compare/v0.146.0-core-styles.39...v0.146.0-core-styles.40) (2024-12-13)
23
-
24
- **Note:** Version bump only for package @blaze-cms/plugin-data-ui
25
-
26
-
27
-
28
-
29
-
30
- # [0.146.0-core-styles.38](https://github.com/thebyte9/blaze/compare/v0.146.0-core-styles.37...v0.146.0-core-styles.38) (2024-11-20)
31
-
32
- **Note:** Version bump only for package @blaze-cms/plugin-data-ui
33
-
34
-
35
-
36
-
37
-
38
- # [0.146.0-core-styles.37](https://github.com/thebyte9/blaze/compare/v0.146.0-core-styles.36...v0.146.0-core-styles.37) (2024-11-12)
39
-
40
- **Note:** Version bump only for package @blaze-cms/plugin-data-ui
41
-
42
-
43
-
44
-
45
-
46
- # [0.146.0-core-styles.36](https://github.com/thebyte9/blaze/compare/v0.146.0-core-styles.35...v0.146.0-core-styles.36) (2024-11-07)
47
-
48
- **Note:** Version bump only for package @blaze-cms/plugin-data-ui
49
-
50
-
51
-
52
-
53
-
54
- # [0.146.0-core-styles.35](https://github.com/thebyte9/blaze/compare/v0.146.0-core-styles.34...v0.146.0-core-styles.35) (2024-11-06)
55
-
56
- **Note:** Version bump only for package @blaze-cms/plugin-data-ui
57
-
58
-
59
-
60
-
61
-
62
- # [0.146.0-core-styles.32](https://github.com/thebyte9/blaze/compare/v0.146.0-core-styles.31...v0.146.0-core-styles.32) (2024-10-31)
63
-
64
- **Note:** Version bump only for package @blaze-cms/plugin-data-ui
65
-
66
-
67
-
68
-
69
-
70
- # [0.146.0-core-styles.26](https://github.com/thebyte9/blaze/compare/v0.146.0-core-styles.25...v0.146.0-core-styles.26) (2024-10-28)
71
-
72
- **Note:** Version bump only for package @blaze-cms/plugin-data-ui
73
-
74
-
75
-
76
-
77
-
78
- # [0.146.0-core-styles.25](https://github.com/thebyte9/blaze/compare/v0.146.0-core-styles.24...v0.146.0-core-styles.25) (2024-10-25)
79
-
80
- **Note:** Version bump only for package @blaze-cms/plugin-data-ui
81
-
82
-
83
-
84
-
85
-
86
- # [0.146.0-core-styles.23](https://github.com/thebyte9/blaze/compare/v0.146.0-core-styles.22...v0.146.0-core-styles.23) (2024-10-23)
87
-
88
- **Note:** Version bump only for package @blaze-cms/plugin-data-ui
89
-
90
-
91
-
92
-
93
-
94
- # [0.146.0-core-styles.21](https://github.com/thebyte9/blaze/compare/v0.146.0-core-styles.20...v0.146.0-core-styles.21) (2024-10-18)
95
-
96
- **Note:** Version bump only for package @blaze-cms/plugin-data-ui
97
-
98
-
99
-
100
-
101
-
102
- # [0.146.0-core-styles.11](https://github.com/thebyte9/blaze/compare/v0.146.0-core-styles.10...v0.146.0-core-styles.11) (2024-10-01)
103
-
104
- **Note:** Version bump only for package @blaze-cms/plugin-data-ui
105
-
106
-
107
-
108
-
109
-
110
- # [0.146.0-core-styles.10](https://github.com/thebyte9/blaze/compare/v0.146.0-core-styles.9...v0.146.0-core-styles.10) (2024-09-25)
111
-
112
- **Note:** Version bump only for package @blaze-cms/plugin-data-ui
113
-
114
-
115
-
116
-
117
-
118
- # [0.146.0-core-styles.8](https://github.com/thebyte9/blaze/compare/v0.146.0-core-styles.7...v0.146.0-core-styles.8) (2024-09-24)
119
-
120
- **Note:** Version bump only for package @blaze-cms/plugin-data-ui
121
-
122
-
123
-
124
-
125
-
126
- # [0.146.0-core-styles.7](https://github.com/thebyte9/blaze/compare/v0.146.0-core-styles.6...v0.146.0-core-styles.7) (2024-09-20)
127
-
128
- **Note:** Version bump only for package @blaze-cms/plugin-data-ui
129
-
130
-
131
-
132
-
133
-
134
- # [0.146.0-core-styles.6](https://github.com/thebyte9/blaze/compare/v0.146.0-core-styles.5...v0.146.0-core-styles.6) (2024-09-20)
135
-
136
- **Note:** Version bump only for package @blaze-cms/plugin-data-ui
137
-
138
-
6
+ # [0.146.0-tooltips.0](https://github.com/thebyte9/blaze/compare/v0.145.0...v0.146.0-tooltips.0) (2025-02-06)
139
7
 
140
8
 
9
+ ### Bug Fixes
141
10
 
142
- # [0.146.0-core-styles.3](https://github.com/thebyte9/blaze/compare/v0.146.0-core-styles.2...v0.146.0-core-styles.3) (2024-09-18)
11
+ * group data table row fields correctly ([#4465](https://github.com/thebyte9/blaze/issues/4465)) ([a07a06f](https://github.com/thebyte9/blaze/commit/a07a06f4db5d0f1980afad70d28352641effea1e))
12
+ * handle missing record error ([#4454](https://github.com/thebyte9/blaze/issues/4454)) ([f2ecf41](https://github.com/thebyte9/blaze/commit/f2ecf41962fd78b5808e6d7cd3714620697c4aaa))
13
+ * move tabs from entity to page builder ([#4601](https://github.com/thebyte9/blaze/issues/4601)) ([944fe19](https://github.com/thebyte9/blaze/commit/944fe19ce0a09d2f36604fcced44f0054dd5e8e5))
14
+ * render page from the ur on initial load ([#4463](https://github.com/thebyte9/blaze/issues/4463)) ([8de5fbe](https://github.com/thebyte9/blaze/commit/8de5fbe969e9c2954f6484e044fdfec49d7050ae))
143
15
 
144
16
 
145
17
  ### Features
146
18
 
19
+ * add tooltip support to parent select in DynamicRelation component ([#4603](https://github.com/thebyte9/blaze/issues/4603)) ([7767b5d](https://github.com/thebyte9/blaze/commit/7767b5dd7641d4b0c2477cffe6c0be8f9e8aa9dd))
147
20
  * allow custom components in table columns ([#4482](https://github.com/thebyte9/blaze/issues/4482)) ([87098c9](https://github.com/thebyte9/blaze/commit/87098c93d9fd85adc2a2aa19f2e9a3db4402ae41))
148
21
 
149
22
 
23
+ ### Reverts
150
24
 
151
-
152
-
153
- # [0.146.0-core-styles.0](https://github.com/thebyte9/blaze/compare/v0.145.1-core-styles.1...v0.146.0-core-styles.0) (2024-09-03)
154
-
155
- **Note:** Version bump only for package @blaze-cms/plugin-data-ui
156
-
157
-
158
-
159
-
160
-
161
- ## [0.145.1-core-styles.0](https://github.com/thebyte9/blaze/compare/v0.145.0...v0.145.1-core-styles.0) (2024-08-22)
162
-
163
-
164
- ### Bug Fixes
165
-
166
- * group data table row fields correctly ([#4465](https://github.com/thebyte9/blaze/issues/4465)) ([a07a06f](https://github.com/thebyte9/blaze/commit/a07a06f4db5d0f1980afad70d28352641effea1e))
167
- * handle missing record error ([#4454](https://github.com/thebyte9/blaze/issues/4454)) ([f2ecf41](https://github.com/thebyte9/blaze/commit/f2ecf41962fd78b5808e6d7cd3714620697c4aaa))
168
- * render page from the ur on initial load ([#4463](https://github.com/thebyte9/blaze/issues/4463)) ([8de5fbe](https://github.com/thebyte9/blaze/commit/8de5fbe969e9c2954f6484e044fdfec49d7050ae))
25
+ * Revert "chore: updating versions" ([1bbc7c2](https://github.com/thebyte9/blaze/commit/1bbc7c25a20903b8d517e1276b113b68976307d2))
169
26
 
170
27
 
171
28
 
@@ -1 +1 @@
1
- {"version":3,"file":"EntityDataListing.js","names":["_client","require","_react","_interopRequireDefault","_propTypes","_adminUiUtils","_ListingTable","_withContext","EntityDataListing","_ref","match","identifier","params","entityIdentifier","_useQuery","useQuery","getQuery","variables","_useQuery$data","data","_useQuery$data2","_useQuery$data2$getEn","getEntitySchemas","length","createElement","entitySchema","propTypes","PropTypes","object","isRequired","_default","exports","withContext"],"sources":["../../../src/components/EntityDataListing/EntityDataListing.js"],"sourcesContent":["import { useQuery } from '@apollo/client';\nimport React from 'react';\nimport PropTypes from 'prop-types';\nimport { getQuery } from '@blaze-cms/admin-ui-utils';\n\nimport ListingTable from '../ListingTable/ListingTable';\nimport { withContext } from '../../utils/hoc/withContext';\n\nconst EntityDataListing = ({ match }) => {\n const {\n params: { entityIdentifier: identifier }\n } = match;\n\n const { data: { getEntitySchemas = [] } = {} } = useQuery(getQuery('GET_ENTITY_SCHEMA'), {\n variables: { identifier }\n });\n\n if (!getEntitySchemas.length) return '';\n\n return <ListingTable entitySchema={getEntitySchemas[0]} />;\n};\n\nEntityDataListing.propTypes = {\n match: PropTypes.object.isRequired\n};\n\nexport default withContext(EntityDataListing);\n"],"mappings":";;;;;;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,UAAA,GAAAD,sBAAA,CAAAF,OAAA;AACA,IAAAI,aAAA,GAAAJ,OAAA;AAEA,IAAAK,aAAA,GAAAH,sBAAA,CAAAF,OAAA;AACA,IAAAM,YAAA,GAAAN,OAAA;AAEA,IAAMO,iBAAiB,GAAG,SAApBA,iBAAiBA,CAAAC,IAAA,EAAkB;EAAA,IAAZC,KAAK,GAAAD,IAAA,CAALC,KAAK;EAChC,IAC8BC,UAAU,GACpCD,KAAK,CADPE,MAAM,CAAIC,gBAAgB;EAG5B,IAAAC,SAAA,GAAiD,IAAAC,gBAAQ,EAAC,IAAAC,sBAAQ,EAAC,mBAAmB,CAAC,EAAE;MACvFC,SAAS,EAAE;QAAEN,UAAU,EAAVA;MAAW;IAC1B,CAAC,CAAC;IAAAO,cAAA,GAAAJ,SAAA,CAFMK,IAAI;IAAAC,eAAA,GAAAF,cAAA,cAA8B,CAAC,CAAC,GAAAA,cAAA;IAAAG,qBAAA,GAAAD,eAAA,CAA5BE,gBAAgB;IAAhBA,gBAAgB,GAAAD,qBAAA,cAAG,EAAE,GAAAA,qBAAA;EAIrC,IAAI,CAACC,gBAAgB,CAACC,MAAM,EAAE,OAAO,EAAE;EAEvC,oBAAOrB,MAAA,YAAAsB,aAAA,CAAClB,aAAA,WAAY;IAACmB,YAAY,EAAEH,gBAAgB,CAAC,CAAC;EAAE,CAAE,CAAC;AAC5D,CAAC;AAEDd,iBAAiB,CAACkB,SAAS,GAAG;EAC5BhB,KAAK,EAAEiB,qBAAS,CAACC,MAAM,CAACC;AAC1B,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,cAEa,IAAAC,wBAAW,EAACxB,iBAAiB,CAAC","ignoreList":[]}
1
+ {"version":3,"file":"EntityDataListing.js","names":["_client","require","_react","_interopRequireDefault","_propTypes","_adminUiUtils","_ListingTable","_withContext","EntityDataListing","_ref","match","identifier","params","entityIdentifier","_useQuery","useQuery","getQuery","variables","_useQuery$data","data","_useQuery$data2","_useQuery$data2$getEn","getEntitySchemas","length","createElement","entitySchema","propTypes","PropTypes","object","isRequired","_default","exports","withContext"],"sources":["../../../src/components/EntityDataListing/EntityDataListing.js"],"sourcesContent":["import { useQuery } from '@apollo/client';\nimport React from 'react';\nimport PropTypes from 'prop-types';\nimport { getQuery } from '@blaze-cms/admin-ui-utils';\n\nimport ListingTable from '../ListingTable/ListingTable';\nimport { withContext } from '../../utils/hoc/withContext';\n\nconst EntityDataListing = ({ match }) => {\n const {\n params: { entityIdentifier: identifier }\n } = match;\n\n const { data: { getEntitySchemas = [] } = {} } = useQuery(getQuery('GET_ENTITY_SCHEMA'), {\n variables: { identifier }\n });\n\n if (!getEntitySchemas.length) return '';\n\n return <ListingTable entitySchema={getEntitySchemas[0]} />;\n};\n\nEntityDataListing.propTypes = {\n match: PropTypes.object.isRequired\n};\n\nexport default withContext(EntityDataListing);\n"],"mappings":";;;;;;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,UAAA,GAAAD,sBAAA,CAAAF,OAAA;AACA,IAAAI,aAAA,GAAAJ,OAAA;AAEA,IAAAK,aAAA,GAAAH,sBAAA,CAAAF,OAAA;AACA,IAAAM,YAAA,GAAAN,OAAA;AAEA,IAAMO,iBAAiB,GAAG,SAApBA,iBAAiBA,CAAAC,IAAA,EAAkB;EAAA,IAAZC,KAAK,GAAAD,IAAA,CAALC,KAAK;EAChC,IAC8BC,UAAU,GACpCD,KAAK,CADPE,MAAM,CAAIC,gBAAgB;EAG5B,IAAAC,SAAA,GAAiD,IAAAC,gBAAQ,EAAC,IAAAC,sBAAQ,EAAC,mBAAmB,CAAC,EAAE;MACvFC,SAAS,EAAE;QAAEN,UAAU,EAAVA;MAAW;IAC1B,CAAC,CAAC;IAAAO,cAAA,GAAAJ,SAAA,CAFMK,IAAI;IAAAC,eAAA,GAAAF,cAAA,cAA8B,CAAC,CAAC,GAAAA,cAAA;IAAAG,qBAAA,GAAAD,eAAA,CAA5BE,gBAAgB;IAAhBA,gBAAgB,GAAAD,qBAAA,cAAG,EAAE,GAAAA,qBAAA;EAIrC,IAAI,CAACC,gBAAgB,CAACC,MAAM,EAAE,OAAO,EAAE;EAEvC,oBAAOrB,MAAA,YAAAsB,aAAA,CAAClB,aAAA,WAAY;IAACmB,YAAY,EAAEH,gBAAgB,CAAC,CAAC;EAAE,CAAE,CAAC;AAC5D,CAAC;AAEDd,iBAAiB,CAACkB,SAAS,GAAG;EAC5BhB,KAAK,EAAEiB,qBAAS,CAACC,MAAM,CAACC;AAC1B,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,cAEa,IAAAC,wBAAW,EAACxB,iBAAiB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["_EntityDataListing","_interopRequireDefault","require","_default","exports","EntityDataListing"],"sources":["../../../src/components/EntityDataListing/index.js"],"sourcesContent":["import EntityDataListing from './EntityDataListing';\n\nexport default EntityDataListing;\n"],"mappings":";;;;;;;;AAAA,IAAAA,kBAAA,GAAAC,sBAAA,CAAAC,OAAA;AAAoD,IAAAC,QAAA,GAAAC,OAAA,cAErCC,6BAAiB","ignoreList":[]}
1
+ {"version":3,"file":"index.js","names":["_EntityDataListing","_interopRequireDefault","require","_default","exports","EntityDataListing"],"sources":["../../../src/components/EntityDataListing/index.js"],"sourcesContent":["import EntityDataListing from './EntityDataListing';\n\nexport default EntityDataListing;\n"],"mappings":";;;;;;;;AAAA,IAAAA,kBAAA,GAAAC,sBAAA,CAAAC,OAAA;AAAoD,IAAAC,QAAA,GAAAC,OAAA,cAErCC,6BAAiB"}
@@ -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":";;;;;;;;;;;;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":[]}
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"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["_EntityNavLinks","_interopRequireDefault","require","_default","exports","EntityNavLinks"],"sources":["../../../../../src/components/EntityManager/Entity/EntitiyNavLinks/index.js"],"sourcesContent":["import EntityNavLinks from './EntityNavLinks';\n\nexport default EntityNavLinks;\n"],"mappings":";;;;;;;;AAAA,IAAAA,eAAA,GAAAC,sBAAA,CAAAC,OAAA;AAA8C,IAAAC,QAAA,GAAAC,OAAA,cAE/BC,0BAAc","ignoreList":[]}
1
+ {"version":3,"file":"index.js","names":["_EntityNavLinks","_interopRequireDefault","require","_default","exports","EntityNavLinks"],"sources":["../../../../../src/components/EntityManager/Entity/EntitiyNavLinks/index.js"],"sourcesContent":["import EntityNavLinks from './EntityNavLinks';\n\nexport default EntityNavLinks;\n"],"mappings":";;;;;;;;AAAA,IAAAA,eAAA,GAAAC,sBAAA,CAAAC,OAAA;AAA8C,IAAAC,QAAA,GAAAC,OAAA,cAE/BC,0BAAc"}
@@ -1,11 +1,11 @@
1
1
  "use strict";
2
2
 
3
+ require("core-js/modules/es.object.keys.js");
3
4
  require("core-js/modules/es.symbol.js");
4
- require("core-js/modules/es.object.define-properties.js");
5
- require("core-js/modules/es.object.define-property.js");
6
5
  require("core-js/modules/es.object.get-own-property-descriptor.js");
7
6
  require("core-js/modules/es.object.get-own-property-descriptors.js");
8
- require("core-js/modules/es.object.keys.js");
7
+ require("core-js/modules/es.object.define-properties.js");
8
+ require("core-js/modules/es.object.define-property.js");
9
9
  require("core-js/modules/es.string.iterator.js");
10
10
  require("core-js/modules/es.weak-map.js");
11
11
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
@@ -18,19 +18,19 @@ var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers
18
18
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
19
19
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
20
20
  var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
21
- require("core-js/modules/es.array.concat.js");
22
- require("core-js/modules/es.array.filter.js");
23
- require("core-js/modules/es.array.find-index.js");
24
- require("core-js/modules/es.array.for-each.js");
25
- require("core-js/modules/es.array.includes.js");
26
21
  require("core-js/modules/es.array.iterator.js");
27
- require("core-js/modules/es.array.map.js");
28
- require("core-js/modules/es.array.slice.js");
29
- require("core-js/modules/es.function.name.js");
30
22
  require("core-js/modules/es.object.to-string.js");
23
+ require("core-js/modules/web.dom-collections.iterator.js");
24
+ require("core-js/modules/es.array.includes.js");
31
25
  require("core-js/modules/es.string.includes.js");
26
+ require("core-js/modules/es.array.slice.js");
27
+ require("core-js/modules/es.array.filter.js");
28
+ require("core-js/modules/es.array.map.js");
29
+ require("core-js/modules/es.array.for-each.js");
32
30
  require("core-js/modules/web.dom-collections.for-each.js");
33
- require("core-js/modules/web.dom-collections.iterator.js");
31
+ require("core-js/modules/es.array.concat.js");
32
+ require("core-js/modules/es.array.find-index.js");
33
+ require("core-js/modules/es.function.name.js");
34
34
  var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
35
35
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
36
36
  var _react = _interopRequireWildcard(require("react"));
@@ -47,7 +47,6 @@ var _dataMappers = require("../utils/data-mappers");
47
47
  var _isFormEmpty = _interopRequireDefault(require("../utils/is-form-empty"));
48
48
  var _actionsHandlers = _interopRequireDefault(require("./actions-handlers"));
49
49
  var _SideBarRelations = _interopRequireDefault(require("./SideBarRelations"));
50
- var _Tabs = _interopRequireDefault(require("../../Tabs"));
51
50
  var _useCallbackDebounce = _interopRequireDefault(require("../../hooks/useCallbackDebounce"));
52
51
  var _constants = require("../../../constants");
53
52
  var _EntityHeader = _interopRequireDefault(require("./EntityHeader"));
@@ -58,11 +57,11 @@ var _RecordEditContext = require("../utils/RecordEditContext");
58
57
  var _excluded = ["isValid", "fields", "isNewValueSet", "valuesChecked", "currentField", "value"];
59
58
  /* eslint-disable no-undef */
60
59
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
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 && {}.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, 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; }
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) {
65
- var _schema$interfaces, _schema$interfaces2, _formData$values;
64
+ var _formData$values;
66
65
  var formData = _ref.formData,
67
66
  entity = _ref.entity,
68
67
  schema = _ref.schema,
@@ -74,43 +73,40 @@ var Entity = function Entity(_ref) {
74
73
  refetchRecord = _ref.refetchRecord;
75
74
  var _useState = (0, _react.useState)(null),
76
75
  _useState2 = (0, _slicedToArray2["default"])(_useState, 2),
77
- setCurrentTabId = _useState2[1];
76
+ formValues = _useState2[0],
77
+ setFormValues = _useState2[1];
78
78
  var _useState3 = (0, _react.useState)(null),
79
79
  _useState4 = (0, _slicedToArray2["default"])(_useState3, 2),
80
- formValues = _useState4[0],
81
- setFormValues = _useState4[1];
80
+ entitySchema = _useState4[0],
81
+ setEntitySchema = _useState4[1];
82
82
  var _useState5 = (0, _react.useState)(null),
83
83
  _useState6 = (0, _slicedToArray2["default"])(_useState5, 2),
84
- entitySchema = _useState6[0],
85
- setEntitySchema = _useState6[1];
84
+ entityData = _useState6[0],
85
+ setEntityData = _useState6[1];
86
86
  var _useState7 = (0, _react.useState)(null),
87
87
  _useState8 = (0, _slicedToArray2["default"])(_useState7, 2),
88
- entityData = _useState8[0],
89
- setEntityData = _useState8[1];
90
- var _useState9 = (0, _react.useState)(null),
88
+ entityIdentifier = _useState8[0],
89
+ setEntityIdentifier = _useState8[1];
90
+ var _useState9 = (0, _react.useState)(''),
91
91
  _useState10 = (0, _slicedToArray2["default"])(_useState9, 2),
92
- entityIdentifier = _useState10[0],
93
- setEntityIdentifier = _useState10[1];
94
- var _useState11 = (0, _react.useState)(''),
92
+ pageTitle = _useState10[0],
93
+ setPageTitle = _useState10[1];
94
+ var _useState11 = (0, _react.useState)(false),
95
95
  _useState12 = (0, _slicedToArray2["default"])(_useState11, 2),
96
- pageTitle = _useState12[0],
97
- setPageTitle = _useState12[1];
98
- var _useState13 = (0, _react.useState)(false),
96
+ isSaveButtonAvailable = _useState12[0],
97
+ setIsSaveButtonAvailable = _useState12[1];
98
+ var _useState13 = (0, _react.useState)(formData && formData.values && formData.values.status),
99
99
  _useState14 = (0, _slicedToArray2["default"])(_useState13, 2),
100
- isSaveButtonAvailable = _useState14[0],
101
- setIsSaveButtonAvailable = _useState14[1];
102
- var _useState15 = (0, _react.useState)(formData && formData.values && formData.values.status),
100
+ entityIsPublished = _useState14[0],
101
+ setEntityIsPublish = _useState14[1];
102
+ var _useState15 = (0, _react.useState)(false),
103
103
  _useState16 = (0, _slicedToArray2["default"])(_useState15, 2),
104
- entityIsPublished = _useState16[0],
105
- setEntityIsPublish = _useState16[1];
104
+ isEnablePublishButton = _useState16[0],
105
+ setEnablePublishButton = _useState16[1];
106
106
  var _useState17 = (0, _react.useState)(false),
107
107
  _useState18 = (0, _slicedToArray2["default"])(_useState17, 2),
108
- isEnablePublishButton = _useState18[0],
109
- setEnablePublishButton = _useState18[1];
110
- var _useState19 = (0, _react.useState)(false),
111
- _useState20 = (0, _slicedToArray2["default"])(_useState19, 2),
112
- isEnablePreviewButton = _useState20[0],
113
- setEnablePreviewButton = _useState20[1];
108
+ isEnablePreviewButton = _useState18[0],
109
+ setEnablePreviewButton = _useState18[1];
114
110
  var _useToggle = (0, _useToggle5["default"])(false),
115
111
  _useToggle2 = (0, _slicedToArray2["default"])(_useToggle, 2),
116
112
  modalStatus = _useToggle2[0],
@@ -119,39 +115,39 @@ var Entity = function Entity(_ref) {
119
115
  _useToggle4 = (0, _slicedToArray2["default"])(_useToggle3, 2),
120
116
  copyModalStatus = _useToggle4[0],
121
117
  setCopyModalStatus = _useToggle4[1];
122
- var _useState21 = (0, _react.useState)(true),
118
+ var _useState19 = (0, _react.useState)(true),
119
+ _useState20 = (0, _slicedToArray2["default"])(_useState19, 2),
120
+ pageBuilderTemplateStatus = _useState20[0],
121
+ setPageBuilderTemplateStatus = _useState20[1];
122
+ var _useState21 = (0, _react.useState)(false),
123
123
  _useState22 = (0, _slicedToArray2["default"])(_useState21, 2),
124
- pageBuilderTemplateStatus = _useState22[0],
125
- setPageBuilderTemplateStatus = _useState22[1];
124
+ shouldCopyData = _useState22[0],
125
+ setShouldCopyData = _useState22[1];
126
126
  var _useState23 = (0, _react.useState)(false),
127
127
  _useState24 = (0, _slicedToArray2["default"])(_useState23, 2),
128
- shouldCopyData = _useState24[0],
129
- setShouldCopyData = _useState24[1];
130
- var _useState25 = (0, _react.useState)(false),
128
+ isFormValid = _useState24[0],
129
+ setIsFormValid = _useState24[1];
130
+ var _useState25 = (0, _react.useState)(null),
131
131
  _useState26 = (0, _slicedToArray2["default"])(_useState25, 2),
132
- isFormValid = _useState26[0],
133
- setIsFormValid = _useState26[1];
132
+ formDataFromCopy = _useState26[0],
133
+ setFormDataFromCopy = _useState26[1];
134
134
  var _useState27 = (0, _react.useState)(null),
135
135
  _useState28 = (0, _slicedToArray2["default"])(_useState27, 2),
136
- formDataFromCopy = _useState28[0],
137
- setFormDataFromCopy = _useState28[1];
138
- var _useState29 = (0, _react.useState)(null),
136
+ newUpdatedDate = _useState28[0],
137
+ setNewUpdatedDate = _useState28[1];
138
+ var _useState29 = (0, _react.useState)(_constants.SAVE_BUTTON_TEXTS.save),
139
139
  _useState30 = (0, _slicedToArray2["default"])(_useState29, 2),
140
- newUpdatedDate = _useState30[0],
141
- setNewUpdatedDate = _useState30[1];
142
- var _useState31 = (0, _react.useState)(_constants.SAVE_BUTTON_TEXTS.save),
140
+ saveButtonText = _useState30[0],
141
+ setSaveButtonText = _useState30[1];
142
+ var _useState31 = (0, _react.useState)(null),
143
143
  _useState32 = (0, _slicedToArray2["default"])(_useState31, 2),
144
- saveButtonText = _useState32[0],
145
- setSaveButtonText = _useState32[1];
146
- var _useState33 = (0, _react.useState)(null),
147
- _useState34 = (0, _slicedToArray2["default"])(_useState33, 2),
148
- externalUpdateTime = _useState34[0],
149
- setExternalUpdateTime = _useState34[1];
144
+ externalUpdateTime = _useState32[0],
145
+ setExternalUpdateTime = _useState32[1];
150
146
  var isCreatePage = history.location.pathname.includes('create');
151
- var _useState35 = (0, _react.useState)(isCreatePage),
152
- _useState36 = (0, _slicedToArray2["default"])(_useState35, 2),
153
- isNewEntity = _useState36[0],
154
- setIsNewEntity = _useState36[1];
147
+ var _useState33 = (0, _react.useState)(isCreatePage),
148
+ _useState34 = (0, _slicedToArray2["default"])(_useState33, 2),
149
+ isNewEntity = _useState34[0],
150
+ setIsNewEntity = _useState34[1];
155
151
  var client = (0, _client.useApolloClient)();
156
152
  var shouldUpdateState = !entityIdentifier || (0, _entity.checkFulfilConditions)(entity, schema, previousQuery, !entityData) || entityData && entityData.id !== entity.id;
157
153
  var clonedFormData = (0, _lodash["default"])(formData);
@@ -202,7 +198,7 @@ var Entity = function Entity(_ref) {
202
198
  }
203
199
  }, [client, entity, entityData, formData, formValues, pageBuilderTemplateStatus, previousQuery, schema, shouldUpdateState]);
204
200
  var getFullUrl = /*#__PURE__*/function () {
205
- var _ref2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee() {
201
+ var _ref2 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee() {
206
202
  var query, _yield$client$query, _yield$client$query$d, _yield$client$query$d2, _yield$client$query$d3, getEntityUrl;
207
203
  return _regenerator["default"].wrap(function _callee$(_context) {
208
204
  while (1) switch (_context.prev = _context.next) {
@@ -261,7 +257,7 @@ var Entity = function Entity(_ref) {
261
257
  }
262
258
  };
263
259
  var onChangeFormValues = /*#__PURE__*/function () {
264
- var _ref5 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee2(_ref4) {
260
+ var _ref5 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee2(_ref4) {
265
261
  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
262
  return _regenerator["default"].wrap(function _callee2$(_context2) {
267
263
  while (1) switch (_context2.prev = _context2.next) {
@@ -398,7 +394,7 @@ var Entity = function Entity(_ref) {
398
394
  return _actionsHandlers["default"][action].submit(currentAction, addToast);
399
395
  };
400
396
  var onDelete = /*#__PURE__*/function () {
401
- var _ref7 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee3() {
397
+ var _ref7 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee3() {
402
398
  var id;
403
399
  return _regenerator["default"].wrap(function _callee3$(_context3) {
404
400
  while (1) switch (_context3.prev = _context3.next) {
@@ -453,7 +449,7 @@ var Entity = function Entity(_ref) {
453
449
  setFormDataFromCopy(formDataUpdated);
454
450
  };
455
451
  var handlePublishAndUnpublish = /*#__PURE__*/function () {
456
- var _ref9 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee4(_ref8) {
452
+ var _ref9 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee4(_ref8) {
457
453
  var textContent, isPublishButton, isPublished, isUnpublish, savedPageMessage;
458
454
  return _regenerator["default"].wrap(function _callee4$(_context4) {
459
455
  while (1) switch (_context4.prev = _context4.next) {
@@ -514,7 +510,6 @@ var Entity = function Entity(_ref) {
514
510
  var hasNewFormValues = (0, _entity.checkFulfilConditions)(isNewEntity, !(0, _isFormEmpty["default"])(formValues));
515
511
  var hasToDisplayPrompt = isSaveButtonAvailable || hasNewFormValues;
516
512
  var showSideBarRelations = (0, _entity.checkFulfilConditions)(schema, formData);
517
- var showPageBuilderTabs = (schema === null || schema === void 0 ? void 0 : (_schema$interfaces = schema.interfaces) === null || _schema$interfaces === void 0 ? void 0 : _schema$interfaces.includes('page-builder/page-builder-template')) || (schema === null || schema === void 0 ? void 0 : (_schema$interfaces2 = schema.interfaces) === null || _schema$interfaces2 === void 0 ? void 0 : _schema$interfaces2.includes('page-builder/page-builder'));
518
513
  return /*#__PURE__*/_react["default"].createElement(_RecordEditContext.RecordEditContextProvider, {
519
514
  value: {
520
515
  externalUpdateTime: externalUpdateTime,
@@ -555,7 +550,7 @@ var Entity = function Entity(_ref) {
555
550
  copyAction: onCopy,
556
551
  getFormData: getFormData
557
552
  }), /*#__PURE__*/_react["default"].createElement("div", {
558
- className: "page__content--fixed"
553
+ className: "page__content"
559
554
  }, /*#__PURE__*/_react["default"].createElement("div", {
560
555
  className: "page__content"
561
556
  }, /*#__PURE__*/_react["default"].createElement("div", {
@@ -567,18 +562,7 @@ var Entity = function Entity(_ref) {
567
562
  }), /*#__PURE__*/_react["default"].createElement(_InfoBoxes["default"], {
568
563
  id: entity.id,
569
564
  schema: schema
570
- }), /*#__PURE__*/_react["default"].createElement(_Tabs["default"], {
571
- enabled: showPageBuilderTabs,
572
- onTabChange: function onTabChange(tabId) {
573
- client.writeQuery({
574
- query: _adminUiUtils.GET_CURRENT_TAB_ID,
575
- data: {
576
- currentTabId: tabId
577
- }
578
- });
579
- setCurrentTabId(tabId);
580
- }
581
- }, /*#__PURE__*/_react["default"].createElement(_reactFormBuilder.FormBuilder, {
565
+ }), /*#__PURE__*/_react["default"].createElement(_reactFormBuilder.FormBuilder, {
582
566
  getIsFormValid: setIsFormValid,
583
567
  getFormValues: getFormValues,
584
568
  schema: schema,
@@ -589,7 +573,7 @@ var Entity = function Entity(_ref) {
589
573
  formValues: formValues,
590
574
  isNewEntity: isNewEntity,
591
575
  onExternalUpdate: setExternalUpdateTime
592
- })), /*#__PURE__*/_react["default"].createElement(_pluginRenderHooksUi.RenderHook, {
576
+ }), /*#__PURE__*/_react["default"].createElement(_pluginRenderHooksUi.RenderHook, {
593
577
  hookKey: "entity:".concat(action, ":main:bottom"),
594
578
  entity: entity,
595
579
  schema: schema