@hrbolek/uoisfrontend-template 0.6.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/index.html +104 -0
- package/package.json +24 -0
- package/src/Base/Components/Attribute.jsx +51 -0
- package/src/Base/Components/CardCapsule.jsx +353 -0
- package/src/Base/Components/Col.jsx +36 -0
- package/src/Base/Components/ConfirmEdit.jsx +61 -0
- package/src/Base/Components/CopyButton.jsx +33 -0
- package/src/Base/Components/LargeCard.jsx +22 -0
- package/src/Base/Components/Link.jsx +42 -0
- package/src/Base/Components/LiveEdit.jsx +64 -0
- package/src/Base/Components/MediumCard.jsx +30 -0
- package/src/Base/Components/MediumContent.jsx +74 -0
- package/src/Base/Components/MediumEditableContent.jsx +52 -0
- package/src/Base/Components/ProxyLink.jsx +132 -0
- package/src/Base/Components/Row.jsx +23 -0
- package/src/Base/Components/Table.jsx +275 -0
- package/src/Base/Components/index.js +14 -0
- package/src/Base/Components/style.js +278 -0
- package/src/Base/FormControls/Collapsible.jsx +46 -0
- package/src/Base/FormControls/Dialog.jsx +75 -0
- package/src/Base/FormControls/EntityLookup.jsx +175 -0
- package/src/Base/FormControls/Filter.jsx +834 -0
- package/src/Base/FormControls/Input.jsx +163 -0
- package/src/Base/FormControls/Label.jsx +40 -0
- package/src/Base/FormControls/Select.jsx +150 -0
- package/src/Base/FormControls/TextArea.jsx +86 -0
- package/src/Base/FormControls/index.js +8 -0
- package/src/Base/Helpers/AsyncStateIndicator.jsx +9 -0
- package/src/Base/Helpers/GQLEntityProvider.jsx +163 -0
- package/src/Base/Helpers/NavigationHistoryProvider.jsx +178 -0
- package/src/Base/Helpers/PlaceChild.jsx +13 -0
- package/src/Base/Helpers/generateQuery.js +508 -0
- package/src/Base/Helpers/index.js +5 -0
- package/src/Base/Mutations/Create.jsx +152 -0
- package/src/Base/Mutations/Delete.jsx +237 -0
- package/src/Base/Mutations/General.jsx +241 -0
- package/src/Base/Mutations/InteractiveMutations.jsx +32 -0
- package/src/Base/Mutations/Update.jsx +270 -0
- package/src/Base/Mutations/helpers.jsx +7 -0
- package/src/Base/Mutations/index.js +5 -0
- package/src/Base/Pages/Page.jsx +235 -0
- package/src/Base/Pages/PageCatch.jsx +235 -0
- package/src/Base/Pages/PageNavbar.jsx +70 -0
- package/src/Base/Pages/PageVector.jsx +229 -0
- package/src/Base/Pages/RouterSegment.jsx +66 -0
- package/src/Base/Pages/index.js +5 -0
- package/src/Base/Queries/DeleteAsyncAction.jsx +32 -0
- package/src/Base/Queries/Fragments.jsx +101 -0
- package/src/Base/Queries/InsertAsyncAction.jsx +40 -0
- package/src/Base/Queries/ReadAsyncAction.jsx +44 -0
- package/src/Base/Queries/ReadPageAsyncAction.jsx +16 -0
- package/src/Base/Queries/SearchAsyncAction.jsx +16 -0
- package/src/Base/Queries/UpdateAsyncAction.jsx +40 -0
- package/src/Base/Queries/index.js +6 -0
- package/src/Base/Scalars/ScalarAttribute.jsx +49 -0
- package/src/Base/Scalars/index.js +1 -0
- package/src/Base/Vectors/VectorAttribute.jsx +137 -0
- package/src/Base/Vectors/index.js +1 -0
- package/src/Base/index.js +32 -0
- package/src/GroupGQLModel/Components/CUDButton.jsx +128 -0
- package/src/GroupGQLModel/Components/CardCapsule.jsx +44 -0
- package/src/GroupGQLModel/Components/Children.jsx +31 -0
- package/src/GroupGQLModel/Components/ConfirmEdit.jsx +61 -0
- package/src/GroupGQLModel/Components/Filter.jsx +14 -0
- package/src/GroupGQLModel/Components/LargeCard.jsx +68 -0
- package/src/GroupGQLModel/Components/Link.jsx +54 -0
- package/src/GroupGQLModel/Components/LiveEdit.jsx +111 -0
- package/src/GroupGQLModel/Components/MediumCard.jsx +51 -0
- package/src/GroupGQLModel/Components/MediumContent.jsx +56 -0
- package/src/GroupGQLModel/Components/MediumEditableContent.jsx +52 -0
- package/src/GroupGQLModel/Components/Table.jsx +70 -0
- package/src/GroupGQLModel/Components/index.js +14 -0
- package/src/GroupGQLModel/Mutations/AddMembership.jsx +156 -0
- package/src/GroupGQLModel/Mutations/Create.jsx +67 -0
- package/src/GroupGQLModel/Mutations/Delete.jsx +81 -0
- package/src/GroupGQLModel/Mutations/InteractiveMutations.jsx +30 -0
- package/src/GroupGQLModel/Mutations/Update.jsx +74 -0
- package/src/GroupGQLModel/Pages/PageBase.jsx +56 -0
- package/src/GroupGQLModel/Pages/PageCreateItem.jsx +27 -0
- package/src/GroupGQLModel/Pages/PageDeleteItem.jsx +16 -0
- package/src/GroupGQLModel/Pages/PageNavbar.jsx +264 -0
- package/src/GroupGQLModel/Pages/PageReadItem.jsx +12 -0
- package/src/GroupGQLModel/Pages/PageReadItemEx.jsx +57 -0
- package/src/GroupGQLModel/Pages/PageUpdateItem.jsx +14 -0
- package/src/GroupGQLModel/Pages/PageVector.jsx +80 -0
- package/src/GroupGQLModel/Pages/RouterSegment.jsx +85 -0
- package/src/GroupGQLModel/Pages/index.js +2 -0
- package/src/GroupGQLModel/Queries/DeleteAsyncAction.jsx +22 -0
- package/src/GroupGQLModel/Queries/Fragments.jsx +129 -0
- package/src/GroupGQLModel/Queries/InsertAsyncAction.jsx +43 -0
- package/src/GroupGQLModel/Queries/ReadAsyncAction.jsx +44 -0
- package/src/GroupGQLModel/Queries/ReadPageAsyncAction.jsx +18 -0
- package/src/GroupGQLModel/Queries/SearchAsyncAction.jsx +15 -0
- package/src/GroupGQLModel/Queries/UpdateAsyncAction.jsx +56 -0
- package/src/GroupGQLModel/Queries/index.js +6 -0
- package/src/GroupGQLModel/Scalars/GroupRoles.jsx +69 -0
- package/src/GroupGQLModel/Scalars/MasterGroup.jsx +15 -0
- package/src/GroupGQLModel/Scalars/RBACObject.jsx +233 -0
- package/src/GroupGQLModel/Scalars/ScalarAttribute.jsx +54 -0
- package/src/GroupGQLModel/Scalars/TemplateScalarAttribute.jsx +88 -0
- package/src/GroupGQLModel/Scalars/index.js +1 -0
- package/src/GroupGQLModel/Vectors/GroupMemberships.jsx +115 -0
- package/src/GroupGQLModel/Vectors/GroupRoles.jsx +112 -0
- package/src/GroupGQLModel/Vectors/GroupRolesOn.jsx +113 -0
- package/src/GroupGQLModel/Vectors/GroupSubgroups.jsx +97 -0
- package/src/GroupGQLModel/Vectors/TemplateVectorsAttribute.jsx +326 -0
- package/src/GroupGQLModel/Vectors/VectorAttribute.jsx +56 -0
- package/src/GroupGQLModel/Vectors/index.js +1 -0
- package/src/GroupGQLModel/index.js +7 -0
- package/src/GroupTypeGQLModel/Components/CUDButton.jsx +128 -0
- package/src/GroupTypeGQLModel/Components/CardCapsule.jsx +43 -0
- package/src/GroupTypeGQLModel/Components/Children.jsx +31 -0
- package/src/GroupTypeGQLModel/Components/ConfirmEdit.jsx +61 -0
- package/src/GroupTypeGQLModel/Components/Filter.jsx +14 -0
- package/src/GroupTypeGQLModel/Components/LargeCard.jsx +49 -0
- package/src/GroupTypeGQLModel/Components/Link.jsx +53 -0
- package/src/GroupTypeGQLModel/Components/LiveEdit.jsx +111 -0
- package/src/GroupTypeGQLModel/Components/MediumCard.jsx +39 -0
- package/src/GroupTypeGQLModel/Components/MediumContent.jsx +97 -0
- package/src/GroupTypeGQLModel/Components/MediumEditableContent.jsx +35 -0
- package/src/GroupTypeGQLModel/Components/Table.jsx +7 -0
- package/src/GroupTypeGQLModel/Components/index.js +14 -0
- package/src/GroupTypeGQLModel/Mutations/Create.jsx +67 -0
- package/src/GroupTypeGQLModel/Mutations/Delete.jsx +80 -0
- package/src/GroupTypeGQLModel/Mutations/InteractiveMutations.jsx +30 -0
- package/src/GroupTypeGQLModel/Mutations/Update.jsx +74 -0
- package/src/GroupTypeGQLModel/Pages/Page.jsx +3 -0
- package/src/GroupTypeGQLModel/Pages/PageBase.jsx +26 -0
- package/src/GroupTypeGQLModel/Pages/PageCreateItem.jsx +21 -0
- package/src/GroupTypeGQLModel/Pages/PageDeleteItem.jsx +13 -0
- package/src/GroupTypeGQLModel/Pages/PageNavbar.jsx +148 -0
- package/src/GroupTypeGQLModel/Pages/PageReadItem.jsx +28 -0
- package/src/GroupTypeGQLModel/Pages/PageUpdateItem.jsx +25 -0
- package/src/GroupTypeGQLModel/Pages/PageVector.jsx +83 -0
- package/src/GroupTypeGQLModel/Pages/RouterSegment.jsx +68 -0
- package/src/GroupTypeGQLModel/Pages/index.js +10 -0
- package/src/GroupTypeGQLModel/Queries/DeleteAsyncAction.jsx +27 -0
- package/src/GroupTypeGQLModel/Queries/Fragments.jsx +96 -0
- package/src/GroupTypeGQLModel/Queries/InsertAsyncAction.jsx +41 -0
- package/src/GroupTypeGQLModel/Queries/ReadAsyncAction.jsx +45 -0
- package/src/GroupTypeGQLModel/Queries/ReadPageAsyncAction.jsx +14 -0
- package/src/GroupTypeGQLModel/Queries/SearchAsyncAction.jsx +16 -0
- package/src/GroupTypeGQLModel/Queries/UpdateAsyncAction.jsx +42 -0
- package/src/GroupTypeGQLModel/Queries/index.js +6 -0
- package/src/GroupTypeGQLModel/Scalars/ScalarAttribute.jsx +54 -0
- package/src/GroupTypeGQLModel/Scalars/TemplateScalarAttribute.jsx +88 -0
- package/src/GroupTypeGQLModel/Scalars/index.js +1 -0
- package/src/GroupTypeGQLModel/Vectors/TemplateVectorsAttribute.jsx +326 -0
- package/src/GroupTypeGQLModel/Vectors/VectorAttribute.jsx +56 -0
- package/src/GroupTypeGQLModel/Vectors/index.js +1 -0
- package/src/GroupTypeGQLModel/index.js +6 -0
- package/src/MembershipGQLModel/Components/CUDButton.jsx +128 -0
- package/src/MembershipGQLModel/Components/CardCapsule.jsx +43 -0
- package/src/MembershipGQLModel/Components/Children.jsx +31 -0
- package/src/MembershipGQLModel/Components/ConfirmEdit.jsx +61 -0
- package/src/MembershipGQLModel/Components/Filter.jsx +14 -0
- package/src/MembershipGQLModel/Components/LargeCard.jsx +49 -0
- package/src/MembershipGQLModel/Components/Link.jsx +54 -0
- package/src/MembershipGQLModel/Components/LiveEdit.jsx +111 -0
- package/src/MembershipGQLModel/Components/MediumCard.jsx +39 -0
- package/src/MembershipGQLModel/Components/MediumContent.jsx +97 -0
- package/src/MembershipGQLModel/Components/MediumEditableContent.jsx +35 -0
- package/src/MembershipGQLModel/Components/Table.jsx +7 -0
- package/src/MembershipGQLModel/Components/index.js +14 -0
- package/src/MembershipGQLModel/Mutations/Create.jsx +67 -0
- package/src/MembershipGQLModel/Mutations/Delete.jsx +80 -0
- package/src/MembershipGQLModel/Mutations/InteractiveMutations.jsx +31 -0
- package/src/MembershipGQLModel/Mutations/Update.jsx +74 -0
- package/src/MembershipGQLModel/Mutations/helpers.jsx +7 -0
- package/src/MembershipGQLModel/Pages/PageBase.jsx +57 -0
- package/src/MembershipGQLModel/Pages/PageCreateItem.jsx +28 -0
- package/src/MembershipGQLModel/Pages/PageDeleteItem.jsx +16 -0
- package/src/MembershipGQLModel/Pages/PageNavbar.jsx +110 -0
- package/src/MembershipGQLModel/Pages/PageReadItem.jsx +11 -0
- package/src/MembershipGQLModel/Pages/PageReadItemEx.jsx +42 -0
- package/src/MembershipGQLModel/Pages/PageUpdateItem.jsx +14 -0
- package/src/MembershipGQLModel/Pages/PageVector.jsx +80 -0
- package/src/MembershipGQLModel/Pages/RouterSegment.jsx +73 -0
- package/src/MembershipGQLModel/Pages/index.js +2 -0
- package/src/MembershipGQLModel/Queries/DeleteAsyncAction.jsx +32 -0
- package/src/MembershipGQLModel/Queries/Fragments.jsx +113 -0
- package/src/MembershipGQLModel/Queries/InsertAsyncAction.jsx +38 -0
- package/src/MembershipGQLModel/Queries/ReadAsyncAction.jsx +44 -0
- package/src/MembershipGQLModel/Queries/ReadPageAsyncAction.jsx +13 -0
- package/src/MembershipGQLModel/Queries/SearchAsyncAction.jsx +16 -0
- package/src/MembershipGQLModel/Queries/UpdateAsyncAction.jsx +40 -0
- package/src/MembershipGQLModel/Queries/index.js +6 -0
- package/src/MembershipGQLModel/Scalars/ScalarAttribute.jsx +54 -0
- package/src/MembershipGQLModel/Scalars/TemplateScalarAttribute.jsx +88 -0
- package/src/MembershipGQLModel/Scalars/index.js +1 -0
- package/src/MembershipGQLModel/Vectors/TemplateVectorsAttribute.jsx +326 -0
- package/src/MembershipGQLModel/Vectors/VectorAttribute.jsx +56 -0
- package/src/MembershipGQLModel/Vectors/index.js +1 -0
- package/src/MembershipGQLModel/WhatToDo.md +44 -0
- package/src/MembershipGQLModel/index.js +6 -0
- package/src/RBACGQLModel/Components/CardCapsule.jsx +43 -0
- package/src/RBACGQLModel/Components/Children.jsx +31 -0
- package/src/RBACGQLModel/Components/ConfirmEdit.jsx +61 -0
- package/src/RBACGQLModel/Components/Filter.jsx +14 -0
- package/src/RBACGQLModel/Components/LargeCard.jsx +50 -0
- package/src/RBACGQLModel/Components/Link.jsx +54 -0
- package/src/RBACGQLModel/Components/LiveEdit.jsx +111 -0
- package/src/RBACGQLModel/Components/MediumCard.jsx +39 -0
- package/src/RBACGQLModel/Components/MediumContent.jsx +96 -0
- package/src/RBACGQLModel/Components/MediumEditableContent.jsx +212 -0
- package/src/RBACGQLModel/Components/Table.jsx +7 -0
- package/src/RBACGQLModel/Components/index.js +13 -0
- package/src/RBACGQLModel/Mutations/Create.jsx +202 -0
- package/src/RBACGQLModel/Mutations/Delete.jsx +173 -0
- package/src/RBACGQLModel/Mutations/InteractiveMutations.jsx +30 -0
- package/src/RBACGQLModel/Mutations/Update.jsx +147 -0
- package/src/RBACGQLModel/Mutations/helpers.jsx +7 -0
- package/src/RBACGQLModel/Pages/PageBase.jsx +56 -0
- package/src/RBACGQLModel/Pages/PageCreateItem.jsx +28 -0
- package/src/RBACGQLModel/Pages/PageDeleteItem.jsx +16 -0
- package/src/RBACGQLModel/Pages/PageNavbar.jsx +160 -0
- package/src/RBACGQLModel/Pages/PageReadItem.jsx +11 -0
- package/src/RBACGQLModel/Pages/PageReadItemEx.jsx +42 -0
- package/src/RBACGQLModel/Pages/PageUpdateItem.jsx +14 -0
- package/src/RBACGQLModel/Pages/PageVector.jsx +80 -0
- package/src/RBACGQLModel/Pages/RouterSegment.jsx +72 -0
- package/src/RBACGQLModel/Pages/index.js +2 -0
- package/src/RBACGQLModel/Queries/DeleteAsyncAction.jsx +32 -0
- package/src/RBACGQLModel/Queries/Fragments.jsx +101 -0
- package/src/RBACGQLModel/Queries/InsertAsyncAction.jsx +40 -0
- package/src/RBACGQLModel/Queries/ReadAsyncAction.jsx +44 -0
- package/src/RBACGQLModel/Queries/ReadPageAsyncAction.jsx +13 -0
- package/src/RBACGQLModel/Queries/SearchAsyncAction.jsx +16 -0
- package/src/RBACGQLModel/Queries/UpdateAsyncAction.jsx +40 -0
- package/src/RBACGQLModel/Queries/index.js +6 -0
- package/src/RBACGQLModel/Scalars/ScalarAttribute.jsx +54 -0
- package/src/RBACGQLModel/Scalars/TemplateScalarAttribute.jsx +88 -0
- package/src/RBACGQLModel/Scalars/index.js +1 -0
- package/src/RBACGQLModel/Vectors/TemplateVectorsAttribute.jsx +326 -0
- package/src/RBACGQLModel/Vectors/VectorAttribute.jsx +56 -0
- package/src/RBACGQLModel/Vectors/index.js +1 -0
- package/src/RBACGQLModel/WhatToDo.md +44 -0
- package/src/RBACGQLModel/index.js +71 -0
- package/src/RoleGQLModel/Components/CUDButton.jsx +128 -0
- package/src/RoleGQLModel/Components/CardCapsule.jsx +43 -0
- package/src/RoleGQLModel/Components/Children.jsx +31 -0
- package/src/RoleGQLModel/Components/ConfirmEdit.jsx +61 -0
- package/src/RoleGQLModel/Components/Filter.jsx +14 -0
- package/src/RoleGQLModel/Components/LargeCard.jsx +49 -0
- package/src/RoleGQLModel/Components/Link.jsx +55 -0
- package/src/RoleGQLModel/Components/LiveEdit.jsx +111 -0
- package/src/RoleGQLModel/Components/MediumCard.jsx +39 -0
- package/src/RoleGQLModel/Components/MediumContent.jsx +97 -0
- package/src/RoleGQLModel/Components/MediumEditableContent.jsx +72 -0
- package/src/RoleGQLModel/Components/RBACObject.jsx +22 -0
- package/src/RoleGQLModel/Components/Table.jsx +82 -0
- package/src/RoleGQLModel/Components/index.js +14 -0
- package/src/RoleGQLModel/Mutations/AddRoleOnGroup.jsx +117 -0
- package/src/RoleGQLModel/Mutations/Create.jsx +67 -0
- package/src/RoleGQLModel/Mutations/Delete.jsx +80 -0
- package/src/RoleGQLModel/Mutations/InteractiveMutations.jsx +31 -0
- package/src/RoleGQLModel/Mutations/Update.jsx +74 -0
- package/src/RoleGQLModel/Pages/Page.jsx +3 -0
- package/src/RoleGQLModel/Pages/PageBase.jsx +26 -0
- package/src/RoleGQLModel/Pages/PageContent.jsx +31 -0
- package/src/RoleGQLModel/Pages/PageCreateItem.jsx +21 -0
- package/src/RoleGQLModel/Pages/PageDeleteItem.jsx +13 -0
- package/src/RoleGQLModel/Pages/PageNavbar.jsx +161 -0
- package/src/RoleGQLModel/Pages/PageReadItem.jsx +28 -0
- package/src/RoleGQLModel/Pages/PageUpdateItem.jsx +25 -0
- package/src/RoleGQLModel/Pages/PageVector.jsx +83 -0
- package/src/RoleGQLModel/Pages/RouterSegment.jsx +69 -0
- package/src/RoleGQLModel/Pages/index.js +10 -0
- package/src/RoleGQLModel/Queries/DeleteAsyncAction.jsx +22 -0
- package/src/RoleGQLModel/Queries/Fragments.jsx +123 -0
- package/src/RoleGQLModel/Queries/InsertAsyncAction.jsx +45 -0
- package/src/RoleGQLModel/Queries/ReadAsyncAction.jsx +45 -0
- package/src/RoleGQLModel/Queries/ReadPageAsyncAction.jsx +13 -0
- package/src/RoleGQLModel/Queries/UpdateAsyncAction.jsx +35 -0
- package/src/RoleGQLModel/Queries/index.js +6 -0
- package/src/RoleGQLModel/Scalars/ScalarAttribute.jsx +54 -0
- package/src/RoleGQLModel/Scalars/TemplateScalarAttribute.jsx +88 -0
- package/src/RoleGQLModel/Scalars/index.js +1 -0
- package/src/RoleGQLModel/Vectors/TemplateVectorsAttribute.jsx +326 -0
- package/src/RoleGQLModel/Vectors/VectorAttribute.jsx +56 -0
- package/src/RoleGQLModel/Vectors/index.js +1 -0
- package/src/RoleGQLModel/index.js +6 -0
- package/src/RoleTypeGQLModel/Components/CUDButton.jsx +128 -0
- package/src/RoleTypeGQLModel/Components/CardCapsule.jsx +43 -0
- package/src/RoleTypeGQLModel/Components/Children.jsx +31 -0
- package/src/RoleTypeGQLModel/Components/ConfirmEdit.jsx +61 -0
- package/src/RoleTypeGQLModel/Components/Filter.jsx +14 -0
- package/src/RoleTypeGQLModel/Components/LargeCard.jsx +49 -0
- package/src/RoleTypeGQLModel/Components/Link.jsx +55 -0
- package/src/RoleTypeGQLModel/Components/LiveEdit.jsx +111 -0
- package/src/RoleTypeGQLModel/Components/MediumCard.jsx +39 -0
- package/src/RoleTypeGQLModel/Components/MediumContent.jsx +97 -0
- package/src/RoleTypeGQLModel/Components/MediumEditableContent.jsx +35 -0
- package/src/RoleTypeGQLModel/Components/Table.jsx +7 -0
- package/src/RoleTypeGQLModel/Components/index.js +14 -0
- package/src/RoleTypeGQLModel/Mutations/Create.jsx +67 -0
- package/src/RoleTypeGQLModel/Mutations/Delete.jsx +80 -0
- package/src/RoleTypeGQLModel/Mutations/InteractiveMutations.jsx +30 -0
- package/src/RoleTypeGQLModel/Mutations/Update.jsx +74 -0
- package/src/RoleTypeGQLModel/Pages/Page.jsx +3 -0
- package/src/RoleTypeGQLModel/Pages/PageBase.jsx +56 -0
- package/src/RoleTypeGQLModel/Pages/PageCreateItem.jsx +27 -0
- package/src/RoleTypeGQLModel/Pages/PageDeleteItem.jsx +16 -0
- package/src/RoleTypeGQLModel/Pages/PageNavbar.jsx +148 -0
- package/src/RoleTypeGQLModel/Pages/PageReadItem.jsx +11 -0
- package/src/RoleTypeGQLModel/Pages/PageUpdateItem.jsx +14 -0
- package/src/RoleTypeGQLModel/Pages/PageVector.jsx +79 -0
- package/src/RoleTypeGQLModel/Pages/RouterSegment.jsx +69 -0
- package/src/RoleTypeGQLModel/Pages/index.js +10 -0
- package/src/RoleTypeGQLModel/Queries/DeleteAsyncAction.jsx +32 -0
- package/src/RoleTypeGQLModel/Queries/Fragments.jsx +103 -0
- package/src/RoleTypeGQLModel/Queries/InsertAsyncAction.jsx +40 -0
- package/src/RoleTypeGQLModel/Queries/ReadAsyncAction.jsx +44 -0
- package/src/RoleTypeGQLModel/Queries/ReadPageAsyncAction.jsx +13 -0
- package/src/RoleTypeGQLModel/Queries/SearchAsyncAction.jsx +29 -0
- package/src/RoleTypeGQLModel/Queries/UpdateAsyncAction.jsx +40 -0
- package/src/RoleTypeGQLModel/Queries/index.js +6 -0
- package/src/RoleTypeGQLModel/Scalars/ScalarAttribute.jsx +54 -0
- package/src/RoleTypeGQLModel/Scalars/TemplateScalarAttribute.jsx +88 -0
- package/src/RoleTypeGQLModel/Scalars/index.js +1 -0
- package/src/RoleTypeGQLModel/Vectors/TemplateVectorsAttribute.jsx +326 -0
- package/src/RoleTypeGQLModel/Vectors/VectorAttribute.jsx +56 -0
- package/src/RoleTypeGQLModel/Vectors/index.js +1 -0
- package/src/RoleTypeGQLModel/index.js +6 -0
- package/src/StateGQLModel/Components/CardCapsule.jsx +43 -0
- package/src/StateGQLModel/Components/Children.jsx +31 -0
- package/src/StateGQLModel/Components/ConfirmEdit.jsx +61 -0
- package/src/StateGQLModel/Components/Filter.jsx +14 -0
- package/src/StateGQLModel/Components/LargeCard.jsx +50 -0
- package/src/StateGQLModel/Components/Link.jsx +54 -0
- package/src/StateGQLModel/Components/LiveEdit.jsx +111 -0
- package/src/StateGQLModel/Components/MediumCard.jsx +39 -0
- package/src/StateGQLModel/Components/MediumContent.jsx +96 -0
- package/src/StateGQLModel/Components/MediumEditableContent.jsx +36 -0
- package/src/StateGQLModel/Components/Table.jsx +7 -0
- package/src/StateGQLModel/Components/index.js +13 -0
- package/src/StateGQLModel/Mutations/Create.jsx +79 -0
- package/src/StateGQLModel/Mutations/Delete.jsx +87 -0
- package/src/StateGQLModel/Mutations/InteractiveMutations.jsx +30 -0
- package/src/StateGQLModel/Mutations/Update.jsx +76 -0
- package/src/StateGQLModel/Mutations/helpers.jsx +7 -0
- package/src/StateGQLModel/Pages/PageBase.jsx +56 -0
- package/src/StateGQLModel/Pages/PageCreateItem.jsx +28 -0
- package/src/StateGQLModel/Pages/PageDeleteItem.jsx +16 -0
- package/src/StateGQLModel/Pages/PageNavbar.jsx +160 -0
- package/src/StateGQLModel/Pages/PageReadItem.jsx +11 -0
- package/src/StateGQLModel/Pages/PageReadItemEx.jsx +42 -0
- package/src/StateGQLModel/Pages/PageUpdateItem.jsx +14 -0
- package/src/StateGQLModel/Pages/PageVector.jsx +80 -0
- package/src/StateGQLModel/Pages/RouterSegment.jsx +72 -0
- package/src/StateGQLModel/Pages/index.js +2 -0
- package/src/StateGQLModel/Queries/DeleteAsyncAction.jsx +32 -0
- package/src/StateGQLModel/Queries/Fragments.jsx +109 -0
- package/src/StateGQLModel/Queries/InsertAsyncAction.jsx +104 -0
- package/src/StateGQLModel/Queries/ReadAsyncAction.jsx +48 -0
- package/src/StateGQLModel/Queries/ReadPageAsyncAction.jsx +23 -0
- package/src/StateGQLModel/Queries/SearchAsyncAction.jsx +16 -0
- package/src/StateGQLModel/Queries/UpdateAsyncAction.jsx +106 -0
- package/src/StateGQLModel/Queries/index.js +6 -0
- package/src/StateGQLModel/Scalars/ScalarAttribute.jsx +54 -0
- package/src/StateGQLModel/Scalars/TemplateScalarAttribute.jsx +88 -0
- package/src/StateGQLModel/Scalars/index.js +1 -0
- package/src/StateGQLModel/Vectors/TemplateVectorsAttribute.jsx +326 -0
- package/src/StateGQLModel/Vectors/VectorAttribute.jsx +56 -0
- package/src/StateGQLModel/Vectors/index.js +1 -0
- package/src/StateGQLModel/index.js +71 -0
- package/src/StateMachineGQLModel/Components/CardCapsule.jsx +43 -0
- package/src/StateMachineGQLModel/Components/Children.jsx +31 -0
- package/src/StateMachineGQLModel/Components/ConfirmEdit.jsx +61 -0
- package/src/StateMachineGQLModel/Components/Filter.jsx +14 -0
- package/src/StateMachineGQLModel/Components/LargeCard.jsx +50 -0
- package/src/StateMachineGQLModel/Components/Link.jsx +54 -0
- package/src/StateMachineGQLModel/Components/LiveEdit.jsx +111 -0
- package/src/StateMachineGQLModel/Components/MediumCard.jsx +39 -0
- package/src/StateMachineGQLModel/Components/MediumContent.jsx +96 -0
- package/src/StateMachineGQLModel/Components/MediumEditableContent.jsx +989 -0
- package/src/StateMachineGQLModel/Components/Table.jsx +7 -0
- package/src/StateMachineGQLModel/Components/index.js +13 -0
- package/src/StateMachineGQLModel/Mutations/Create.jsx +79 -0
- package/src/StateMachineGQLModel/Mutations/Delete.jsx +80 -0
- package/src/StateMachineGQLModel/Mutations/InteractiveMutations.jsx +30 -0
- package/src/StateMachineGQLModel/Mutations/Update.jsx +74 -0
- package/src/StateMachineGQLModel/Mutations/helpers.jsx +7 -0
- package/src/StateMachineGQLModel/Pages/PageBase.jsx +56 -0
- package/src/StateMachineGQLModel/Pages/PageCreateItem.jsx +28 -0
- package/src/StateMachineGQLModel/Pages/PageDeleteItem.jsx +16 -0
- package/src/StateMachineGQLModel/Pages/PageNavbar.jsx +160 -0
- package/src/StateMachineGQLModel/Pages/PageReadItem.jsx +11 -0
- package/src/StateMachineGQLModel/Pages/PageReadItemEx.jsx +42 -0
- package/src/StateMachineGQLModel/Pages/PageUpdateItem.jsx +14 -0
- package/src/StateMachineGQLModel/Pages/PageVector.jsx +80 -0
- package/src/StateMachineGQLModel/Pages/RouterSegment.jsx +72 -0
- package/src/StateMachineGQLModel/Pages/index.js +2 -0
- package/src/StateMachineGQLModel/Queries/DeleteAsyncAction.jsx +32 -0
- package/src/StateMachineGQLModel/Queries/Fragments.jsx +148 -0
- package/src/StateMachineGQLModel/Queries/InsertAsyncAction.jsx +44 -0
- package/src/StateMachineGQLModel/Queries/ReadAsyncAction.jsx +48 -0
- package/src/StateMachineGQLModel/Queries/ReadPageAsyncAction.jsx +23 -0
- package/src/StateMachineGQLModel/Queries/SearchAsyncAction.jsx +16 -0
- package/src/StateMachineGQLModel/Queries/UpdateAsyncAction.jsx +40 -0
- package/src/StateMachineGQLModel/Queries/index.js +6 -0
- package/src/StateMachineGQLModel/Scalars/ScalarAttribute.jsx +54 -0
- package/src/StateMachineGQLModel/Scalars/TemplateScalarAttribute.jsx +88 -0
- package/src/StateMachineGQLModel/Scalars/index.js +1 -0
- package/src/StateMachineGQLModel/Vectors/TemplateVectorsAttribute.jsx +326 -0
- package/src/StateMachineGQLModel/Vectors/VectorAttribute.jsx +56 -0
- package/src/StateMachineGQLModel/Vectors/index.js +1 -0
- package/src/StateMachineGQLModel/WhatToDo.md +44 -0
- package/src/StateMachineGQLModel/index.js +71 -0
- package/src/StateTransitionGQLModel/Components/CardCapsule.jsx +43 -0
- package/src/StateTransitionGQLModel/Components/Children.jsx +31 -0
- package/src/StateTransitionGQLModel/Components/ConfirmEdit.jsx +61 -0
- package/src/StateTransitionGQLModel/Components/Filter.jsx +14 -0
- package/src/StateTransitionGQLModel/Components/LargeCard.jsx +50 -0
- package/src/StateTransitionGQLModel/Components/Link.jsx +54 -0
- package/src/StateTransitionGQLModel/Components/LiveEdit.jsx +111 -0
- package/src/StateTransitionGQLModel/Components/MediumCard.jsx +39 -0
- package/src/StateTransitionGQLModel/Components/MediumContent.jsx +96 -0
- package/src/StateTransitionGQLModel/Components/MediumEditableContent.jsx +35 -0
- package/src/StateTransitionGQLModel/Components/Table.jsx +7 -0
- package/src/StateTransitionGQLModel/Components/index.js +13 -0
- package/src/StateTransitionGQLModel/Mutations/Create.jsx +79 -0
- package/src/StateTransitionGQLModel/Mutations/Delete.jsx +80 -0
- package/src/StateTransitionGQLModel/Mutations/InteractiveMutations.jsx +30 -0
- package/src/StateTransitionGQLModel/Mutations/Update.jsx +75 -0
- package/src/StateTransitionGQLModel/Mutations/helpers.jsx +7 -0
- package/src/StateTransitionGQLModel/Pages/PageBase.jsx +56 -0
- package/src/StateTransitionGQLModel/Pages/PageCreateItem.jsx +28 -0
- package/src/StateTransitionGQLModel/Pages/PageDeleteItem.jsx +16 -0
- package/src/StateTransitionGQLModel/Pages/PageNavbar.jsx +160 -0
- package/src/StateTransitionGQLModel/Pages/PageReadItem.jsx +11 -0
- package/src/StateTransitionGQLModel/Pages/PageReadItemEx.jsx +42 -0
- package/src/StateTransitionGQLModel/Pages/PageUpdateItem.jsx +14 -0
- package/src/StateTransitionGQLModel/Pages/PageVector.jsx +80 -0
- package/src/StateTransitionGQLModel/Pages/RouterSegment.jsx +72 -0
- package/src/StateTransitionGQLModel/Pages/index.js +2 -0
- package/src/StateTransitionGQLModel/Queries/DeleteAsyncAction.jsx +32 -0
- package/src/StateTransitionGQLModel/Queries/Fragments.jsx +150 -0
- package/src/StateTransitionGQLModel/Queries/InsertAsyncAction.jsx +107 -0
- package/src/StateTransitionGQLModel/Queries/ReadAsyncAction.jsx +48 -0
- package/src/StateTransitionGQLModel/Queries/ReadPageAsyncAction.jsx +23 -0
- package/src/StateTransitionGQLModel/Queries/SearchAsyncAction.jsx +16 -0
- package/src/StateTransitionGQLModel/Queries/UpdateAsyncAction.jsx +109 -0
- package/src/StateTransitionGQLModel/Queries/index.js +6 -0
- package/src/StateTransitionGQLModel/Scalars/ScalarAttribute.jsx +54 -0
- package/src/StateTransitionGQLModel/Scalars/TemplateScalarAttribute.jsx +88 -0
- package/src/StateTransitionGQLModel/Scalars/index.js +1 -0
- package/src/StateTransitionGQLModel/Vectors/TemplateVectorsAttribute.jsx +326 -0
- package/src/StateTransitionGQLModel/Vectors/VectorAttribute.jsx +56 -0
- package/src/StateTransitionGQLModel/Vectors/index.js +1 -0
- package/src/StateTransitionGQLModel/WhatToDo.md +44 -0
- package/src/StateTransitionGQLModel/index.js +71 -0
- package/src/Template/Attributes/TemplateTrivialAttribute.jsx +21 -0
- package/src/Template/Attributes/index.js +1 -0
- package/src/Template/Components/CUDButton.jsx +128 -0
- package/src/Template/Components/CardCapsule.jsx +43 -0
- package/src/Template/Components/Children.jsx +31 -0
- package/src/Template/Components/ConfirmEdit.jsx +61 -0
- package/src/Template/Components/LargeCard.jsx +48 -0
- package/src/Template/Components/Link.jsx +41 -0
- package/src/Template/Components/LiveEdit.jsx +111 -0
- package/src/Template/Components/MediumCard.jsx +39 -0
- package/src/Template/Components/MediumContent.jsx +97 -0
- package/src/Template/Components/MediumEditableContent.jsx +36 -0
- package/src/Template/Components/Table.jsx +7 -0
- package/src/Template/Components/index.js +14 -0
- package/src/Template/Pages/Page.jsx +28 -0
- package/src/Template/Pages/PageCapsule.jsx +13 -0
- package/src/Template/Pages/PageContent.jsx +34 -0
- package/src/Template/Pages/PageEdit.jsx +17 -0
- package/src/Template/Pages/PageNavbar.jsx +110 -0
- package/src/Template/Pages/RouterSegment.jsx +52 -0
- package/src/Template/Pages/VectorPage.jsx +133 -0
- package/src/Template/Pages/index.js +6 -0
- package/src/Template/Queries/DeleteAsyncAction.jsx +22 -0
- package/src/Template/Queries/Fragments.jsx +92 -0
- package/src/Template/Queries/InsertAsyncAction.jsx +22 -0
- package/src/Template/Queries/ReadAsyncAction.jsx +45 -0
- package/src/Template/Queries/ReadPageAsyncAction.jsx +13 -0
- package/src/Template/Queries/UpdateAsyncAction.jsx +76 -0
- package/src/Template/Queries/index.js +6 -0
- package/src/Template/Scalars/ScalarAttribute.jsx +54 -0
- package/src/Template/Scalars/TemplateScalarAttribute.jsx +88 -0
- package/src/Template/Scalars/index.js +1 -0
- package/src/Template/Vectors/TemplateVectorsAttribute.jsx +326 -0
- package/src/Template/Vectors/VectorAttribute.jsx +56 -0
- package/src/Template/Vectors/index.js +1 -0
- package/src/Template/index.js +71 -0
- package/src/UserGQLModel/Components/CUDButton.jsx +128 -0
- package/src/UserGQLModel/Components/CardCapsule.jsx +43 -0
- package/src/UserGQLModel/Components/ConfirmEdit.jsx +61 -0
- package/src/UserGQLModel/Components/Filter.jsx +15 -0
- package/src/UserGQLModel/Components/LargeCard.jsx +82 -0
- package/src/UserGQLModel/Components/Link.jsx +54 -0
- package/src/UserGQLModel/Components/LiveEdit.jsx +111 -0
- package/src/UserGQLModel/Components/MediumCard.jsx +40 -0
- package/src/UserGQLModel/Components/MediumContent.jsx +43 -0
- package/src/UserGQLModel/Components/MediumEditableContent.jsx +57 -0
- package/src/UserGQLModel/Components/Table.jsx +7 -0
- package/src/UserGQLModel/Components/index.js +13 -0
- package/src/UserGQLModel/Mutations/AddMembership.jsx +136 -0
- package/src/UserGQLModel/Mutations/Create.jsx +68 -0
- package/src/UserGQLModel/Mutations/Delete.jsx +81 -0
- package/src/UserGQLModel/Mutations/InteractiveMutations.jsx +30 -0
- package/src/UserGQLModel/Mutations/Update.jsx +68 -0
- package/src/UserGQLModel/Mutations/helpers.jsx +7 -0
- package/src/UserGQLModel/Pages/PageAddMembership.jsx +15 -0
- package/src/UserGQLModel/Pages/PageBase.jsx +56 -0
- package/src/UserGQLModel/Pages/PageCreateItem.jsx +27 -0
- package/src/UserGQLModel/Pages/PageDeleteItem.jsx +16 -0
- package/src/UserGQLModel/Pages/PageNavbar.jsx +146 -0
- package/src/UserGQLModel/Pages/PageReadItem.jsx +12 -0
- package/src/UserGQLModel/Pages/PageReadItemEx.jsx +62 -0
- package/src/UserGQLModel/Pages/PageUpdateItem.jsx +14 -0
- package/src/UserGQLModel/Pages/PageVector.jsx +78 -0
- package/src/UserGQLModel/Pages/RouterSegment.jsx +77 -0
- package/src/UserGQLModel/Pages/index.js +9 -0
- package/src/UserGQLModel/Queries/DeleteAsyncAction.jsx +22 -0
- package/src/UserGQLModel/Queries/Fragments.jsx +114 -0
- package/src/UserGQLModel/Queries/InsertAsyncAction.jsx +22 -0
- package/src/UserGQLModel/Queries/ReadAsyncAction.jsx +45 -0
- package/src/UserGQLModel/Queries/ReadPageAsyncAction.jsx +17 -0
- package/src/UserGQLModel/Queries/SearchAsyncAction.jsx +15 -0
- package/src/UserGQLModel/Queries/UpdateAsyncAction.jsx +76 -0
- package/src/UserGQLModel/Queries/index.js +6 -0
- package/src/UserGQLModel/Scalars/ScalarAttribute.jsx +54 -0
- package/src/UserGQLModel/Scalars/TemplateScalarAttribute.jsx +88 -0
- package/src/UserGQLModel/Scalars/index.js +1 -0
- package/src/UserGQLModel/Vectors/Roles.jsx +23 -0
- package/src/UserGQLModel/Vectors/TemplateVectorsAttribute.jsx +326 -0
- package/src/UserGQLModel/Vectors/UserMemberships.jsx +56 -0
- package/src/UserGQLModel/Vectors/UserRoles.jsx +81 -0
- package/src/UserGQLModel/Vectors/VectorAttribute.jsx +56 -0
- package/src/UserGQLModel/Vectors/index.js +1 -0
- package/src/UserGQLModel/index.js +6 -0
- package/src/_Template/Components/CardCapsule.jsx +43 -0
- package/src/_Template/Components/Children.jsx +31 -0
- package/src/_Template/Components/ConfirmEdit.jsx +61 -0
- package/src/_Template/Components/Filter.jsx +14 -0
- package/src/_Template/Components/LargeCard.jsx +50 -0
- package/src/_Template/Components/Link.jsx +54 -0
- package/src/_Template/Components/LiveEdit.jsx +111 -0
- package/src/_Template/Components/MediumCard.jsx +39 -0
- package/src/_Template/Components/MediumContent.jsx +96 -0
- package/src/_Template/Components/MediumEditableContent.jsx +35 -0
- package/src/_Template/Components/Table.jsx +7 -0
- package/src/_Template/Components/index.js +13 -0
- package/src/_Template/Mutations/Create.jsx +202 -0
- package/src/_Template/Mutations/Delete.jsx +173 -0
- package/src/_Template/Mutations/InteractiveMutations.jsx +30 -0
- package/src/_Template/Mutations/Update.jsx +147 -0
- package/src/_Template/Mutations/helpers.jsx +7 -0
- package/src/_Template/Pages/PageBase.jsx +56 -0
- package/src/_Template/Pages/PageCreateItem.jsx +28 -0
- package/src/_Template/Pages/PageDeleteItem.jsx +16 -0
- package/src/_Template/Pages/PageNavbar.jsx +160 -0
- package/src/_Template/Pages/PageReadItem.jsx +11 -0
- package/src/_Template/Pages/PageReadItemEx.jsx +42 -0
- package/src/_Template/Pages/PageUpdateItem.jsx +14 -0
- package/src/_Template/Pages/PageVector.jsx +80 -0
- package/src/_Template/Pages/RouterSegment.jsx +72 -0
- package/src/_Template/Pages/index.js +2 -0
- package/src/_Template/Queries/DeleteAsyncAction.jsx +32 -0
- package/src/_Template/Queries/Fragments.jsx +101 -0
- package/src/_Template/Queries/InsertAsyncAction.jsx +40 -0
- package/src/_Template/Queries/ReadAsyncAction.jsx +44 -0
- package/src/_Template/Queries/ReadPageAsyncAction.jsx +13 -0
- package/src/_Template/Queries/SearchAsyncAction.jsx +16 -0
- package/src/_Template/Queries/UpdateAsyncAction.jsx +40 -0
- package/src/_Template/Queries/index.js +6 -0
- package/src/_Template/Scalars/ScalarAttribute.jsx +54 -0
- package/src/_Template/Scalars/TemplateScalarAttribute.jsx +88 -0
- package/src/_Template/Scalars/index.js +1 -0
- package/src/_Template/Vectors/TemplateVectorsAttribute.jsx +326 -0
- package/src/_Template/Vectors/VectorAttribute.jsx +56 -0
- package/src/_Template/Vectors/index.js +1 -0
- package/src/_Template/WhatToDo.md +44 -0
- package/src/_Template/index.js +71 -0
- package/src/index.js +8 -0
- package/src/uriroot.js +158 -0
- package/vite.config.js +47 -0
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { EntityLookup } from "../../../../_template/src/Base/FormControls/EntityLookup"
|
|
2
|
+
import { SearchAsyncAction as SearchUserAsyncAction } from "../../UserGQLModel/Queries/SearchAsyncAction"
|
|
3
|
+
import { SearchAsyncAction as SearchGroupAsyncAction } from "../../GroupGQLModel/Queries/SearchAsyncAction"
|
|
4
|
+
import { Input } from "../../../../_template/src/Base/FormControls/Input"
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* A component that displays medium-level content for an template entity.
|
|
8
|
+
*
|
|
9
|
+
* This component renders a label "TemplateMediumContent" followed by a serialized representation of the `template` object
|
|
10
|
+
* and any additional child content. It is designed to handle and display information about an template entity object.
|
|
11
|
+
*
|
|
12
|
+
* @component
|
|
13
|
+
* @param {Object} props - The properties for the TemplateMediumContent component.
|
|
14
|
+
* @param {Object} props.template - The object representing the template entity.
|
|
15
|
+
* @param {string|number} props.template.id - The unique identifier for the template entity.
|
|
16
|
+
* @param {string} props.template.name - The name or label of the template entity.
|
|
17
|
+
* @param {React.ReactNode} [props.children=null] - Additional content to render after the serialized `template` object.
|
|
18
|
+
*
|
|
19
|
+
* @returns {JSX.Element} A JSX element displaying the entity's details and optional content.
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* // Example usage:
|
|
23
|
+
* const templateEntity = { id: 123, name: "Sample Entity" };
|
|
24
|
+
*
|
|
25
|
+
* <TemplateMediumContent template={templateEntity}>
|
|
26
|
+
* <p>Additional information about the entity.</p>
|
|
27
|
+
* </TemplateMediumContent>
|
|
28
|
+
*/
|
|
29
|
+
export const MediumEditableContent = ({ item, onChange=(e)=>null, onBlur=(e)=>null, children}) => {
|
|
30
|
+
return (
|
|
31
|
+
<>
|
|
32
|
+
{/* defaultValue={item?.name|| "Název"} */}
|
|
33
|
+
<Input
|
|
34
|
+
id={"startdate"}
|
|
35
|
+
type={"datetime-local"}
|
|
36
|
+
label={"Počáteční datum"}
|
|
37
|
+
className="form-control"
|
|
38
|
+
value={item?.startdate} // || isoNowZ } //|| new Date().toISOString()}
|
|
39
|
+
onChange={onChange}
|
|
40
|
+
onBlur={onBlur}
|
|
41
|
+
/>
|
|
42
|
+
<Input
|
|
43
|
+
id={"enddate"}
|
|
44
|
+
type={"datetime-local"}
|
|
45
|
+
label={"Koncové datum"}
|
|
46
|
+
className="form-control"
|
|
47
|
+
value={item?.enddate}
|
|
48
|
+
onChange={onChange}
|
|
49
|
+
onBlur={onBlur}
|
|
50
|
+
/>
|
|
51
|
+
<EntityLookup
|
|
52
|
+
asyncAction={SearchUserAsyncAction} //SearchGroupAsyncAction
|
|
53
|
+
id={"userId"}
|
|
54
|
+
label={"Uživatel"}
|
|
55
|
+
className="form-control"
|
|
56
|
+
value={item?.user}
|
|
57
|
+
onChange={onChange}
|
|
58
|
+
onBlur={onBlur}
|
|
59
|
+
/>
|
|
60
|
+
<EntityLookup
|
|
61
|
+
asyncAction={SearchGroupAsyncAction} //SearchGroupAsyncAction
|
|
62
|
+
id={"groupId"}
|
|
63
|
+
label={"Skupina"}
|
|
64
|
+
className="form-control"
|
|
65
|
+
value={item?.group}
|
|
66
|
+
onChange={onChange}
|
|
67
|
+
onBlur={onBlur}
|
|
68
|
+
/>
|
|
69
|
+
{children}
|
|
70
|
+
</>
|
|
71
|
+
)
|
|
72
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Link, SimpleCardCapsule } from "../../../../_template/src/Base/Components"
|
|
2
|
+
import { Col as Col_ } from "../../../../_template/src/Base/Components/Col"
|
|
3
|
+
import { Row } from "../../../../_template/src/Base/Components/Row"
|
|
4
|
+
|
|
5
|
+
export const RBACObject = ({ item }) => {
|
|
6
|
+
const { currentUserRoles=[] } = item || {}
|
|
7
|
+
|
|
8
|
+
return (
|
|
9
|
+
<SimpleCardCapsule title="Moje oprávnění">
|
|
10
|
+
|
|
11
|
+
{currentUserRoles.map(role => (
|
|
12
|
+
<Row key={role?.id}>
|
|
13
|
+
<Col_>
|
|
14
|
+
<Link item={role?.roletype} />@
|
|
15
|
+
<Link item={role?.group} />
|
|
16
|
+
</Col_>
|
|
17
|
+
</Row>
|
|
18
|
+
))}
|
|
19
|
+
|
|
20
|
+
</SimpleCardCapsule>
|
|
21
|
+
)
|
|
22
|
+
}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { Table as BaseTable, KebabMenu } from "../../../../_template/src/Base/Components/Table"
|
|
2
|
+
import { Link as BaseLink } from "../../../../_template/src/Base/Components/Link"
|
|
3
|
+
import { Link, LinkURI } from "./Link"
|
|
4
|
+
import { useNavigate } from "react-router"
|
|
5
|
+
import { UpdateLink } from "../Mutations/Update"
|
|
6
|
+
import { DeleteButton } from "../Mutations/Delete"
|
|
7
|
+
|
|
8
|
+
const CellName = ({ row, name }) => (
|
|
9
|
+
<td key={name}>
|
|
10
|
+
<Link item={row} />
|
|
11
|
+
</td>
|
|
12
|
+
)
|
|
13
|
+
|
|
14
|
+
const CellGroup = ({ row, name }) => (
|
|
15
|
+
<td key={name}>
|
|
16
|
+
<BaseLink item={row?.group || {}} />
|
|
17
|
+
</td>
|
|
18
|
+
)
|
|
19
|
+
|
|
20
|
+
const CellUser = ({ row, name }) => (
|
|
21
|
+
<td key={name}>
|
|
22
|
+
<BaseLink item={row?.user || {}} />
|
|
23
|
+
</td>
|
|
24
|
+
)
|
|
25
|
+
|
|
26
|
+
const CellRoleType = ({ row, name }) => (
|
|
27
|
+
<td key={name}>
|
|
28
|
+
<BaseLink item={row?.roletype || {}} />
|
|
29
|
+
</td>
|
|
30
|
+
)
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
const CellTools = ({ row, name }) => {
|
|
34
|
+
const navigate = useNavigate()
|
|
35
|
+
const {id, name: name_} = row || {}
|
|
36
|
+
return (
|
|
37
|
+
<td>
|
|
38
|
+
<KebabMenu actions={[
|
|
39
|
+
{
|
|
40
|
+
// label: "Editovat",
|
|
41
|
+
label: "Editovat " + name_,
|
|
42
|
+
onClick: () => navigate(`${LinkURI.replace("view", "edit")}${id}`),
|
|
43
|
+
children: (<UpdateLink item={row} className="form-control btn btn-outline-secondary border-0">Upravit</UpdateLink>)
|
|
44
|
+
// children: (<UpdateLink item={row} className="btn btn-outline-secondary">{name}</UpdateLink>)
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
// label: "Editovat",
|
|
48
|
+
label: "Smazat " + name_,
|
|
49
|
+
onClick: () => navigate(`${LinkURI.replace("view", "edit")}${id}`),
|
|
50
|
+
children: (<DeleteButton item={row} className="form-control btn btn-outline-secondary border-0">Odstranit</DeleteButton>)
|
|
51
|
+
// children: (<UpdateLink item={row} className="btn btn-outline-secondary">{name}</UpdateLink>)
|
|
52
|
+
}
|
|
53
|
+
]} />
|
|
54
|
+
</td>
|
|
55
|
+
)
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
const table_def = {
|
|
59
|
+
"roletype": {
|
|
60
|
+
label: "Typ role",
|
|
61
|
+
component: CellRoleType
|
|
62
|
+
},
|
|
63
|
+
"user": {
|
|
64
|
+
label: "Uživatel",
|
|
65
|
+
component: CellUser
|
|
66
|
+
},
|
|
67
|
+
"group": {
|
|
68
|
+
label: "Skupina",
|
|
69
|
+
component: CellGroup
|
|
70
|
+
},
|
|
71
|
+
|
|
72
|
+
"tools": {
|
|
73
|
+
label: "Nástroje",
|
|
74
|
+
component: CellTools
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export const Table = ({ data }) => {
|
|
79
|
+
return (
|
|
80
|
+
<BaseTable data={data} table_def={table_def}/>
|
|
81
|
+
)
|
|
82
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
|
|
2
|
+
export * from './CardCapsule'
|
|
3
|
+
export * from './Children'
|
|
4
|
+
export * from './CUDButton'
|
|
5
|
+
export * from './LargeCard'
|
|
6
|
+
export * from './Link'
|
|
7
|
+
export * from './MediumContent'
|
|
8
|
+
export * from './MediumCard'
|
|
9
|
+
|
|
10
|
+
export * from './MediumEditableContent'
|
|
11
|
+
export * from './LiveEdit'
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
export * from './ConfirmEdit'
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import { AddRoleOnGroupURI, ReadItemURI } from "../Components"
|
|
2
|
+
import { InsertAsyncAction } from "../Queries"
|
|
3
|
+
import { SearchAsyncAction as SearchUserAsyncAction } from "../../UserGQLModel/Queries/SearchAsyncAction"
|
|
4
|
+
import { SearchAsyncAction as SearchGroupAsyncAction } from "../../GroupGQLModel/Queries/SearchAsyncAction"
|
|
5
|
+
import {
|
|
6
|
+
CreateBody as BaseCreateBody,
|
|
7
|
+
CreateButton as BaseCreateButton,
|
|
8
|
+
CreateDialog as BaseCreateDialog,
|
|
9
|
+
CreateLink as BaseCreateLink
|
|
10
|
+
} from "../../../../_template/src/Base/Mutations/Create"
|
|
11
|
+
import { EntityLookup } from "../../../../_template/src/Base/FormControls/EntityLookup"
|
|
12
|
+
import { Input } from "../../../../_template/src/Base/FormControls/Input"
|
|
13
|
+
|
|
14
|
+
const AddRoleOnGroupContent = ({ item, onChange=(e)=>null, onBlur=(e)=>null, children}) => {
|
|
15
|
+
return (
|
|
16
|
+
<>
|
|
17
|
+
{/* defaultValue={item?.name|| "Název"} */}
|
|
18
|
+
<EntityLookup
|
|
19
|
+
asyncAction={SearchGroupAsyncAction} //SearchGroupAsyncAction
|
|
20
|
+
id={"groupId"}
|
|
21
|
+
label={"Skupina"}
|
|
22
|
+
className="form-control"
|
|
23
|
+
value={item?.group}
|
|
24
|
+
onChange={onChange}
|
|
25
|
+
onBlur={onBlur}
|
|
26
|
+
disabled
|
|
27
|
+
/>
|
|
28
|
+
<EntityLookup
|
|
29
|
+
asyncAction={SearchUserAsyncAction} //SearchGroupAsyncAction
|
|
30
|
+
id={"userId"}
|
|
31
|
+
label={"Uživatel"}
|
|
32
|
+
className="form-control"
|
|
33
|
+
value={item?.user}
|
|
34
|
+
onChange={onChange}
|
|
35
|
+
onBlur={onBlur}
|
|
36
|
+
/>
|
|
37
|
+
<Input
|
|
38
|
+
id={"startdate"}
|
|
39
|
+
type={"datetime-local"}
|
|
40
|
+
label={"Počáteční datum"}
|
|
41
|
+
className="form-control"
|
|
42
|
+
value={item?.startdate} // || isoNowZ } //|| new Date().toISOString()}
|
|
43
|
+
onChange={onChange}
|
|
44
|
+
onBlur={onBlur}
|
|
45
|
+
/>
|
|
46
|
+
<Input
|
|
47
|
+
id={"enddate"}
|
|
48
|
+
type={"datetime-local"}
|
|
49
|
+
label={"Koncové datum"}
|
|
50
|
+
className="form-control"
|
|
51
|
+
value={item?.enddate}
|
|
52
|
+
onChange={onChange}
|
|
53
|
+
onBlur={onBlur}
|
|
54
|
+
/>
|
|
55
|
+
{children}
|
|
56
|
+
</>
|
|
57
|
+
)
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
const DefaultContent = AddRoleOnGroupContent
|
|
61
|
+
const MutationAsyncAction = InsertAsyncAction
|
|
62
|
+
|
|
63
|
+
const permissions = {
|
|
64
|
+
oneOfRoles: ["administrátor"],
|
|
65
|
+
mode: "item",
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export const AddRoleOnGroupLink = ({
|
|
69
|
+
uriPattern=AddRoleOnGroupURI,
|
|
70
|
+
...props
|
|
71
|
+
}) => (
|
|
72
|
+
<BaseCreateLink {...props} uriPattern={uriPattern} />
|
|
73
|
+
);
|
|
74
|
+
|
|
75
|
+
export const AddRoleOnGroupButton = ({
|
|
76
|
+
mutationAsyncAction=MutationAsyncAction,
|
|
77
|
+
DefaultContent:defaultContent=DefaultContent,
|
|
78
|
+
readItemURI=ReadItemURI,
|
|
79
|
+
...props
|
|
80
|
+
}) => {
|
|
81
|
+
return <BaseCreateButton
|
|
82
|
+
{...props}
|
|
83
|
+
DefaultContent={defaultContent}
|
|
84
|
+
readItemURI={readItemURI}
|
|
85
|
+
mutationAsyncAction={mutationAsyncAction}
|
|
86
|
+
{...permissions}
|
|
87
|
+
/>
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export const AddRoleOnGroupDialog = ({
|
|
91
|
+
mutationAsyncAction=MutationAsyncAction,
|
|
92
|
+
DefaultContent:defaultContent=DefaultContent,
|
|
93
|
+
readItemURI=ReadItemURI,
|
|
94
|
+
...props
|
|
95
|
+
}) => {
|
|
96
|
+
return <BaseCreateDialog
|
|
97
|
+
{...props}
|
|
98
|
+
DefaultContent={defaultContent}
|
|
99
|
+
readItemURI={readItemURI}
|
|
100
|
+
mutationAsyncAction={mutationAsyncAction}
|
|
101
|
+
/>
|
|
102
|
+
};
|
|
103
|
+
|
|
104
|
+
export const AddRoleOnGroupBody = ({
|
|
105
|
+
mutationAsyncAction=MutationAsyncAction,
|
|
106
|
+
DefaultContent:defaultContent=DefaultContent,
|
|
107
|
+
readItemURI=ReadItemURI,
|
|
108
|
+
...props
|
|
109
|
+
}) => {
|
|
110
|
+
return <BaseCreateBody
|
|
111
|
+
{...props}
|
|
112
|
+
DefaultContent={defaultContent}
|
|
113
|
+
readItemURI={readItemURI}
|
|
114
|
+
mutationAsyncAction={mutationAsyncAction}
|
|
115
|
+
/>
|
|
116
|
+
};
|
|
117
|
+
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { CreateURI, MediumEditableContent, ReadItemURI } from "../Components"
|
|
2
|
+
import { InsertAsyncAction } from "../Queries"
|
|
3
|
+
import {
|
|
4
|
+
CreateBody as BaseCreateBody,
|
|
5
|
+
CreateButton as BaseCreateButton,
|
|
6
|
+
CreateDialog as BaseCreateDialog,
|
|
7
|
+
CreateLink as BaseCreateLink
|
|
8
|
+
} from "../../../../_template/src/Base/Mutations/Create"
|
|
9
|
+
|
|
10
|
+
const DefaultContent = MediumEditableContent
|
|
11
|
+
const MutationAsyncAction = InsertAsyncAction
|
|
12
|
+
|
|
13
|
+
const permissions = {
|
|
14
|
+
oneOfRoles: ["superadmin"],
|
|
15
|
+
mode: "absolute",
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export const CreateLink = ({
|
|
19
|
+
uriPattern=CreateURI,
|
|
20
|
+
...props
|
|
21
|
+
}) => (
|
|
22
|
+
<BaseCreateLink {...props} uriPattern={uriPattern} />
|
|
23
|
+
);
|
|
24
|
+
|
|
25
|
+
export const CreateButton = ({
|
|
26
|
+
mutationAsyncAction=MutationAsyncAction,
|
|
27
|
+
DefaultContent:defaultContent=DefaultContent,
|
|
28
|
+
readItemURI=ReadItemURI,
|
|
29
|
+
...props
|
|
30
|
+
}) => {
|
|
31
|
+
return <BaseCreateButton
|
|
32
|
+
{...props}
|
|
33
|
+
DefaultContent={defaultContent}
|
|
34
|
+
readItemURI={readItemURI}
|
|
35
|
+
mutationAsyncAction={mutationAsyncAction}
|
|
36
|
+
{...permissions}
|
|
37
|
+
/>
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export const CreateDialog = ({
|
|
41
|
+
mutationAsyncAction=MutationAsyncAction,
|
|
42
|
+
DefaultContent:defaultContent=DefaultContent,
|
|
43
|
+
readItemURI=ReadItemURI,
|
|
44
|
+
...props
|
|
45
|
+
}) => {
|
|
46
|
+
return <BaseCreateDialog
|
|
47
|
+
{...props}
|
|
48
|
+
DefaultContent={defaultContent}
|
|
49
|
+
readItemURI={readItemURI}
|
|
50
|
+
mutationAsyncAction={mutationAsyncAction}
|
|
51
|
+
/>
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
export const CreateBody = ({
|
|
55
|
+
mutationAsyncAction=MutationAsyncAction,
|
|
56
|
+
DefaultContent:defaultContent=DefaultContent,
|
|
57
|
+
readItemURI=ReadItemURI,
|
|
58
|
+
...props
|
|
59
|
+
}) => {
|
|
60
|
+
return <BaseCreateBody
|
|
61
|
+
{...props}
|
|
62
|
+
DefaultContent={defaultContent}
|
|
63
|
+
readItemURI={readItemURI}
|
|
64
|
+
mutationAsyncAction={mutationAsyncAction}
|
|
65
|
+
/>
|
|
66
|
+
};
|
|
67
|
+
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { DeleteItemURI, ListURI, MediumContent, VectorItemsURI } from "../Components";
|
|
2
|
+
import { DeleteAsyncAction } from "../Queries";
|
|
3
|
+
import {
|
|
4
|
+
DeleteBody as BaseDeleteBody,
|
|
5
|
+
DeleteButton as BaseDeleteButton,
|
|
6
|
+
DeleteDialog as BaseDeleteDialog,
|
|
7
|
+
DeleteLink as BaseDeleteLink
|
|
8
|
+
} from "../../../../_template/src/Base/Mutations/Delete";
|
|
9
|
+
|
|
10
|
+
const DefaultContent = MediumContent
|
|
11
|
+
const MutationAsyncAction = DeleteAsyncAction
|
|
12
|
+
|
|
13
|
+
const permissions = {
|
|
14
|
+
oneOfRoles: ["superadmin"],
|
|
15
|
+
mode: "absolute",
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export const DeleteLink = ({
|
|
19
|
+
uriPattern=DeleteItemURI,
|
|
20
|
+
...props
|
|
21
|
+
}) => {
|
|
22
|
+
return (
|
|
23
|
+
<BaseDeleteLink
|
|
24
|
+
{...props}
|
|
25
|
+
uriPattern={uriPattern}
|
|
26
|
+
{...permissions}
|
|
27
|
+
/>
|
|
28
|
+
)
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
export const DeleteButton = ({
|
|
32
|
+
mutationAsyncAction=MutationAsyncAction,
|
|
33
|
+
DefaultContent:DefaultContent_=DefaultContent,
|
|
34
|
+
vectorItemsURI=ListURI,
|
|
35
|
+
...props
|
|
36
|
+
}) => {
|
|
37
|
+
return (
|
|
38
|
+
<BaseDeleteButton
|
|
39
|
+
{...props}
|
|
40
|
+
DefaultContent={DefaultContent_}
|
|
41
|
+
mutationAsyncAction={mutationAsyncAction}
|
|
42
|
+
vectorItemsURI={vectorItemsURI}
|
|
43
|
+
{...permissions}
|
|
44
|
+
/>
|
|
45
|
+
)
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export const DeleteDialog = ({
|
|
49
|
+
mutationAsyncAction=MutationAsyncAction,
|
|
50
|
+
DefaultContent:DefaultContent_=DefaultContent,
|
|
51
|
+
vectorItemsURI=ListURI,
|
|
52
|
+
...props
|
|
53
|
+
}) => {
|
|
54
|
+
return (
|
|
55
|
+
<BaseDeleteDialog
|
|
56
|
+
{...props}
|
|
57
|
+
DefaultContent={DefaultContent}
|
|
58
|
+
mutationAsyncAction={MutationAsyncAction}
|
|
59
|
+
vectorItemsURI={vectorItemsURI}
|
|
60
|
+
{...permissions}
|
|
61
|
+
/>
|
|
62
|
+
)
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export const DeleteBody = ({
|
|
66
|
+
mutationAsyncAction=MutationAsyncAction,
|
|
67
|
+
DefaultContent:DefaultContent_=DefaultContent,
|
|
68
|
+
vectorItemsURI=ListURI,
|
|
69
|
+
...props
|
|
70
|
+
}) => {
|
|
71
|
+
return (
|
|
72
|
+
<BaseDeleteBody
|
|
73
|
+
{...props}
|
|
74
|
+
DefaultContent={DefaultContent}
|
|
75
|
+
mutationAsyncAction={MutationAsyncAction}
|
|
76
|
+
vectorItemsURI={vectorItemsURI}
|
|
77
|
+
{...permissions}
|
|
78
|
+
/>
|
|
79
|
+
)
|
|
80
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { CardCapsule } from "../Components"
|
|
2
|
+
import { VectorItemsURI } from "../Pages"
|
|
3
|
+
import { CreateButton, CreateLink } from "./Create"
|
|
4
|
+
import { UpdateButton, UpdateLink } from "./Update"
|
|
5
|
+
import { ProxyLink } from "../../../../_template/src/Base/Components/ProxyLink"
|
|
6
|
+
import { DeleteButton } from "./Delete"
|
|
7
|
+
|
|
8
|
+
export const PageLink = ({ children, preserveHash = true, preserveSearch = true, ...props }) => {
|
|
9
|
+
return (
|
|
10
|
+
<ProxyLink
|
|
11
|
+
to={VectorItemsURI}
|
|
12
|
+
preserveHash={preserveHash}
|
|
13
|
+
preserveSearch={preserveSearch}
|
|
14
|
+
{...props}
|
|
15
|
+
>
|
|
16
|
+
{children}
|
|
17
|
+
</ProxyLink>
|
|
18
|
+
);
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export const InteractiveMutations = ({ item }) => {
|
|
22
|
+
return (
|
|
23
|
+
<CardCapsule item={item} title="Nástroje">
|
|
24
|
+
<PageLink className="btn btn-outline-success">Stránka</PageLink>
|
|
25
|
+
<UpdateLink className="btn btn-outline-success" item={item}>Upravit</UpdateLink>
|
|
26
|
+
<UpdateButton className="btn btn-outline-success" item={item}>Upravit Dialog</UpdateButton>
|
|
27
|
+
<CreateButton className="btn btn-outline-success" rbacitem={{}}>Vytvořit nový</CreateButton>
|
|
28
|
+
<DeleteButton className="btn btn-outline-danger" item={item}>Odstranit</DeleteButton>
|
|
29
|
+
</CardCapsule>
|
|
30
|
+
)
|
|
31
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import {
|
|
2
|
+
UpdateBody as BaseUpdateBody,
|
|
3
|
+
UpdateButton as BaseUpdateButton,
|
|
4
|
+
UpdateDialog as BaseUpdateDialog,
|
|
5
|
+
UpdateLink as BaseUpdateLink
|
|
6
|
+
} from "../../../../_template/src/Base/Mutations/Update";
|
|
7
|
+
|
|
8
|
+
import { MediumEditableContent, UpdateItemURI } from "../Components";
|
|
9
|
+
import { UpdateAsyncAction } from "../Queries";
|
|
10
|
+
|
|
11
|
+
const DefaultContent = MediumEditableContent
|
|
12
|
+
const mutationAsyncAction = UpdateAsyncAction
|
|
13
|
+
|
|
14
|
+
const permissions = {
|
|
15
|
+
oneOfRoles: ["superadmin"],
|
|
16
|
+
mode: "absolute",
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
// ALTERNATIVE, CHECK GQLENDPOINT
|
|
20
|
+
// const permissions = {
|
|
21
|
+
// oneOfRoles: ["administrátor", "personalista"],
|
|
22
|
+
// mode: "item",
|
|
23
|
+
// }
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
export const UpdateLink = ({
|
|
27
|
+
uriPattern=UpdateItemURI,
|
|
28
|
+
...props
|
|
29
|
+
}) => {
|
|
30
|
+
return <BaseUpdateLink
|
|
31
|
+
{...props}
|
|
32
|
+
uriPattern={uriPattern}
|
|
33
|
+
{...permissions}
|
|
34
|
+
/>
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export const UpdateButton = ({
|
|
38
|
+
DefaultContent:DefaultContent_=DefaultContent,
|
|
39
|
+
mutationAsyncAction:mutationAsyncAction_=mutationAsyncAction,
|
|
40
|
+
...props
|
|
41
|
+
}) => {
|
|
42
|
+
return <BaseUpdateButton
|
|
43
|
+
{...props}
|
|
44
|
+
DefaultContent={DefaultContent_}
|
|
45
|
+
mutationAsyncAction={mutationAsyncAction_}
|
|
46
|
+
{...permissions}
|
|
47
|
+
/>
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export const UpdateDialog = ({
|
|
51
|
+
DefaultContent:DefaultContent_=DefaultContent,
|
|
52
|
+
mutationAsyncAction:mutationAsyncAction_=mutationAsyncAction,
|
|
53
|
+
...props
|
|
54
|
+
}) => {
|
|
55
|
+
return <BaseUpdateDialog
|
|
56
|
+
{...props}
|
|
57
|
+
DefaultContent={DefaultContent}
|
|
58
|
+
mutationAsyncAction={mutationAsyncAction}
|
|
59
|
+
{...permissions}
|
|
60
|
+
/>
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export const UpdateBody = ({
|
|
64
|
+
DefaultContent:DefaultContent_=DefaultContent,
|
|
65
|
+
mutationAsyncAction:mutationAsyncAction_=mutationAsyncAction,
|
|
66
|
+
...props
|
|
67
|
+
}) => {
|
|
68
|
+
return <BaseUpdateBody
|
|
69
|
+
{...props}
|
|
70
|
+
DefaultContent={DefaultContent}
|
|
71
|
+
mutationAsyncAction={mutationAsyncAction}
|
|
72
|
+
{...permissions}
|
|
73
|
+
/>
|
|
74
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { useParams } from "react-router"
|
|
2
|
+
import { AsyncActionProvider } from "../../../../_template/src/Base/Helpers/GQLEntityProvider"
|
|
3
|
+
import { PlaceChild } from "../../../../_template/src/Base/Helpers/PlaceChild"
|
|
4
|
+
import { PageNavbar } from "./PageNavbar"
|
|
5
|
+
import { ReadAsyncAction } from "../Queries"
|
|
6
|
+
|
|
7
|
+
export const PageItemBase = ({ children, queryAsyncAction=ReadAsyncAction }) => {
|
|
8
|
+
const {id} = useParams()
|
|
9
|
+
const item = {id}
|
|
10
|
+
return (
|
|
11
|
+
<AsyncActionProvider item={item} queryAsyncAction={queryAsyncAction}>
|
|
12
|
+
<PlaceChild Component={PageNavbar} />
|
|
13
|
+
{children}
|
|
14
|
+
</AsyncActionProvider>
|
|
15
|
+
)
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
export const PageBase = ({ children }) => {
|
|
20
|
+
return (
|
|
21
|
+
<>
|
|
22
|
+
<PageNavbar />
|
|
23
|
+
{children}
|
|
24
|
+
</>
|
|
25
|
+
)
|
|
26
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { BaseUI } from "../../Base"
|
|
2
|
+
import { useGQLEntityContext } from "../../Template/Utils/GQLEntityProvider"
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Renders a page layout for a single template entity, including navigation and detailed view.
|
|
6
|
+
*
|
|
7
|
+
* This component wraps `TemplatePageNavbar` and `TemplateLargeCard` to provide a consistent
|
|
8
|
+
* interface for displaying an individual template. It also supports rendering children as
|
|
9
|
+
* nested content inside the card.
|
|
10
|
+
*
|
|
11
|
+
* @component
|
|
12
|
+
* @param {Object} props - Component props.
|
|
13
|
+
* @param {React.ReactNode} [props.children] - Optional nested content rendered inside the card.
|
|
14
|
+
* @returns {JSX.Element} Rendered page layout for a template.
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* const template = { id: 1, name: "Example Template" };
|
|
18
|
+
* <TemplatePageContent template={template}>
|
|
19
|
+
* <p>Additional info here.</p>
|
|
20
|
+
* </TemplatePageContent>
|
|
21
|
+
*/
|
|
22
|
+
export const PageContent = ({ children, ...props}) => {
|
|
23
|
+
const { item } = useGQLEntityContext()
|
|
24
|
+
if (!item) return null
|
|
25
|
+
return (<>
|
|
26
|
+
<BaseUI.LargeCard item={item} {...props} >
|
|
27
|
+
{children}
|
|
28
|
+
{/* Template {JSON.stringify(item)} */}
|
|
29
|
+
</BaseUI.LargeCard>
|
|
30
|
+
</>)
|
|
31
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ReadAsyncAction } from "../Queries"
|
|
2
|
+
import { Row } from "../../../../_template/src/Base/Components/Row";
|
|
3
|
+
import { Col as Col_ } from "../../../../_template/src/Base/Components/Col";
|
|
4
|
+
import { LinkURI } from "../Components";
|
|
5
|
+
import { PageBase } from "./PageBase";
|
|
6
|
+
import { CreateBody } from "../Mutations/Create";
|
|
7
|
+
|
|
8
|
+
export const PageCreateItem = ({ children, queryAsyncAction=ReadAsyncAction, ...props }) => {
|
|
9
|
+
return (
|
|
10
|
+
<PageBase>
|
|
11
|
+
<Row>
|
|
12
|
+
<Col_></Col_>
|
|
13
|
+
<Col_></Col_>
|
|
14
|
+
<Col_>
|
|
15
|
+
<CreateBody {...props} />
|
|
16
|
+
</Col_>
|
|
17
|
+
<Col_></Col_>
|
|
18
|
+
</Row>
|
|
19
|
+
</PageBase>
|
|
20
|
+
)
|
|
21
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { DeleteAsyncAction } from "../Queries"
|
|
2
|
+
import { LinkURI } from "../Components";
|
|
3
|
+
import { PageBase } from "./PageBase";
|
|
4
|
+
import { DeleteBody } from "../Mutations/Delete";
|
|
5
|
+
|
|
6
|
+
export const PageDeleteItem = ({ children, queryAsyncAction=DeleteAsyncAction, ...props }) => {
|
|
7
|
+
return (
|
|
8
|
+
<PageBase>
|
|
9
|
+
<DeleteBody {...props} mutationAsyncAction={queryAsyncAction} />
|
|
10
|
+
</PageBase>
|
|
11
|
+
)
|
|
12
|
+
}
|
|
13
|
+
|