@speron/projekt-front 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.js +447 -0
- package/dist/es/index.js +11062 -0
- package/dist/umd/index.js +447 -0
- package/package.json +30 -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 +47 -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 +243 -0
- package/src/Base/Mutations/InteractiveMutations.jsx +32 -0
- package/src/Base/Mutations/Update.jsx +275 -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/EventGQLModel/Components/A4Plan/A4Plan.jsx +363 -0
- package/src/EventGQLModel/Components/A4Plan/index.js +1 -0
- package/src/EventGQLModel/Components/CardCapsule.jsx +43 -0
- package/src/EventGQLModel/Components/Children.jsx +31 -0
- package/src/EventGQLModel/Components/ConfirmEdit.jsx +61 -0
- package/src/EventGQLModel/Components/Filter.jsx +14 -0
- package/src/EventGQLModel/Components/LargeCard.jsx +54 -0
- package/src/EventGQLModel/Components/Link.jsx +55 -0
- package/src/EventGQLModel/Components/LiveEdit.jsx +111 -0
- package/src/EventGQLModel/Components/MediumCard.jsx +39 -0
- package/src/EventGQLModel/Components/MediumContent.jsx +96 -0
- package/src/EventGQLModel/Components/MediumEditableContent.jsx +35 -0
- package/src/EventGQLModel/Components/Plan/PlanRow.jsx +470 -0
- package/src/EventGQLModel/Components/Plan/_utils.js +971 -0
- package/src/EventGQLModel/Components/Plan/calendarReducer.js +535 -0
- package/src/EventGQLModel/Components/Plan/index.js +3 -0
- package/src/EventGQLModel/Components/Table.jsx +7 -0
- package/src/EventGQLModel/Components/index.js +15 -0
- package/src/EventGQLModel/Mutations/Create.jsx +202 -0
- package/src/EventGQLModel/Mutations/Delete.jsx +173 -0
- package/src/EventGQLModel/Mutations/InteractiveMutations.jsx +30 -0
- package/src/EventGQLModel/Mutations/Update.jsx +147 -0
- package/src/EventGQLModel/Mutations/helpers.jsx +7 -0
- package/src/EventGQLModel/Pages/PageBase.jsx +56 -0
- package/src/EventGQLModel/Pages/PageCreateItem.jsx +28 -0
- package/src/EventGQLModel/Pages/PageDeleteItem.jsx +16 -0
- package/src/EventGQLModel/Pages/PageNavbar.jsx +160 -0
- package/src/EventGQLModel/Pages/PagePlan.jsx +42 -0
- package/src/EventGQLModel/Pages/PageReadItem.jsx +11 -0
- package/src/EventGQLModel/Pages/PageReadItemEx.jsx +42 -0
- package/src/EventGQLModel/Pages/PageSubevents.jsx +43 -0
- package/src/EventGQLModel/Pages/PageUpdateItem.jsx +14 -0
- package/src/EventGQLModel/Pages/PageVector.jsx +80 -0
- package/src/EventGQLModel/Pages/RouterSegment.jsx +82 -0
- package/src/EventGQLModel/Pages/index.js +2 -0
- package/src/EventGQLModel/Queries/DeleteAsyncAction.jsx +32 -0
- package/src/EventGQLModel/Queries/Fragments.jsx +123 -0
- package/src/EventGQLModel/Queries/InsertAsyncAction.jsx +40 -0
- package/src/EventGQLModel/Queries/ReadAsyncAction.jsx +44 -0
- package/src/EventGQLModel/Queries/ReadPageAsyncAction.jsx +13 -0
- package/src/EventGQLModel/Queries/ReadSubEventsAsyncAction.jsx +44 -0
- package/src/EventGQLModel/Queries/SearchAsyncAction.jsx +16 -0
- package/src/EventGQLModel/Queries/UpdateAsyncAction.jsx +40 -0
- package/src/EventGQLModel/Queries/index.js +6 -0
- package/src/EventGQLModel/Scalars/ScalarAttribute.jsx +54 -0
- package/src/EventGQLModel/Scalars/TemplateScalarAttribute.jsx +88 -0
- package/src/EventGQLModel/Scalars/index.js +1 -0
- package/src/EventGQLModel/Vectors/TemplateVectorsAttribute.jsx +326 -0
- package/src/EventGQLModel/Vectors/VectorAttribute.jsx +56 -0
- package/src/EventGQLModel/Vectors/index.js +1 -0
- package/src/EventGQLModel/WhatToDo.md +44 -0
- package/src/EventGQLModel/index.js +71 -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 +73 -0
- package/src/GroupGQLModel/Mutations/Delete.jsx +87 -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 +145 -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 +245 -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 +49 -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 +120 -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
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
import { useState } from "react"
|
|
2
|
+
import { Link } from "../../Base/Components"
|
|
3
|
+
import { Attribute, formatDateTime } from "../../Base/Components/Attribute"
|
|
4
|
+
import { EntityLookup } from "../../Base/FormControls/EntityLookup"
|
|
5
|
+
import { Input } from "../../Base/FormControls/Input"
|
|
6
|
+
import { SearchAsyncAction as SearchUserAsyncAction } from "../../UserGQLModel/Queries/SearchAsyncAction"
|
|
7
|
+
import { useEffect } from "react"
|
|
8
|
+
import { useAsyncThunkAction } from "../../../../dynamic/src/Hooks"
|
|
9
|
+
import { ReadAsyncAction } from "../../GroupGQLModel"
|
|
10
|
+
import { AsyncStateIndicator } from "../../Base/Helpers/AsyncStateIndicator"
|
|
11
|
+
import { InsertAsyncAction } from "../../RoleGQLModel/Queries"
|
|
12
|
+
import { SearchAsyncAction as SearchRoleTypeAsyncAction } from "../../RoleTypeGQLModel/Queries/SearchAsyncAction"
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* A component that displays medium-level content for an template entity.
|
|
16
|
+
*
|
|
17
|
+
* This component renders a label "TemplateMediumContent" followed by a serialized representation of the `template` object
|
|
18
|
+
* and any additional child content. It is designed to handle and display information about an template entity object.
|
|
19
|
+
*
|
|
20
|
+
* @component
|
|
21
|
+
* @param {Object} props - The properties for the TemplateMediumContent component.
|
|
22
|
+
* @param {Object} props.template - The object representing the template entity.
|
|
23
|
+
* @param {string|number} props.template.id - The unique identifier for the template entity.
|
|
24
|
+
* @param {string} props.template.name - The name or label of the template entity.
|
|
25
|
+
* @param {React.ReactNode} [props.children=null] - Additional content to render after the serialized `template` object.
|
|
26
|
+
*
|
|
27
|
+
* @returns {JSX.Element} A JSX element displaying the entity's details and optional content.
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* // Example usage:
|
|
31
|
+
* const templateEntity = { id: 123, name: "Sample Entity" };
|
|
32
|
+
*
|
|
33
|
+
* <TemplateMediumContent template={templateEntity}>
|
|
34
|
+
* <p>Additional information about the entity.</p>
|
|
35
|
+
* </TemplateMediumContent>
|
|
36
|
+
*/
|
|
37
|
+
export const MediumEditableContent = ({ item, onChange=(e)=>null, onBlur=(e)=>null, children}) => {
|
|
38
|
+
return (
|
|
39
|
+
<>
|
|
40
|
+
{/* defaultValue={item?.name|| "Název"} */}
|
|
41
|
+
<Input id={"name"} label={"Jméno"} className="form-control" value={item?.name|| "Název"} onChange={onChange} onBlur={onBlur} />
|
|
42
|
+
<Input id={"nameEn"} label={"Anglický název"} className="form-control" value={item?.nameEn|| "Anglický název"} onChange={onChange} onBlur={onBlur} />
|
|
43
|
+
{children}
|
|
44
|
+
</>
|
|
45
|
+
)
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
export const RBACEdit = ({ item, onChange }) => {
|
|
50
|
+
const { id="" } = item || {}
|
|
51
|
+
const { entity, loading, error, run } = useAsyncThunkAction(ReadAsyncAction, {id}, {deferred: true})
|
|
52
|
+
const { data, loading: saving, error: updateError, run: save } = useAsyncThunkAction(InsertAsyncAction, {id}, {deferred: true})
|
|
53
|
+
|
|
54
|
+
const [roles, setRoles] = useState((entity || {})?.roles||[])
|
|
55
|
+
|
|
56
|
+
// useEffect(()=>{
|
|
57
|
+
// const newRoles = (entity || {})?.roles||[]
|
|
58
|
+
// if (newRoles === roles)
|
|
59
|
+
// return
|
|
60
|
+
// setRoles(newRoles)
|
|
61
|
+
// }, [entity, roles])
|
|
62
|
+
|
|
63
|
+
useEffect(()=>{
|
|
64
|
+
if (!id) return
|
|
65
|
+
console.log("RBACEdit", item?.id, item)
|
|
66
|
+
|
|
67
|
+
const runner = async () => {
|
|
68
|
+
const result = await run({id})
|
|
69
|
+
console.log("RBACEdit", item?.id, result)
|
|
70
|
+
|
|
71
|
+
}
|
|
72
|
+
runner()
|
|
73
|
+
}, [id])
|
|
74
|
+
|
|
75
|
+
useEffect(() => {
|
|
76
|
+
console.log("RBACEdit.useEffect2", item?.id, entity)
|
|
77
|
+
const newRoles = (entity || {})?.roles||[]
|
|
78
|
+
setRoles(newRoles)
|
|
79
|
+
},[entity])
|
|
80
|
+
|
|
81
|
+
const [role, setRole] = useState({
|
|
82
|
+
id: crypto.randomUUID(),
|
|
83
|
+
groupId: entity?.id ?? id,
|
|
84
|
+
// startdate: formatDateTime(new Date()),
|
|
85
|
+
// enddate: formatDateTime(new Date() + 14)
|
|
86
|
+
})
|
|
87
|
+
|
|
88
|
+
const handleChangeOrBlur = (e) => {
|
|
89
|
+
const id = e?.target?.id
|
|
90
|
+
const value = e?.target?.value
|
|
91
|
+
if (!id) return;
|
|
92
|
+
|
|
93
|
+
setRole(prev => ({
|
|
94
|
+
...prev, [id]: value
|
|
95
|
+
}))
|
|
96
|
+
|
|
97
|
+
}
|
|
98
|
+
const handleConfirm = async() => {
|
|
99
|
+
console.log("RBACEdit.handleConfirm", item?.id, role)
|
|
100
|
+
await save(role)
|
|
101
|
+
await run({id})
|
|
102
|
+
setRole(
|
|
103
|
+
prev => ({
|
|
104
|
+
...prev,
|
|
105
|
+
id: crypto.randomUUID(),
|
|
106
|
+
userId: null,
|
|
107
|
+
user: null,
|
|
108
|
+
})
|
|
109
|
+
)
|
|
110
|
+
// setRoles(prev => ([...prev, role]))
|
|
111
|
+
}
|
|
112
|
+
return (<>
|
|
113
|
+
<AsyncStateIndicator
|
|
114
|
+
error={error}
|
|
115
|
+
loading={loading}
|
|
116
|
+
text={"Nahrávám"}
|
|
117
|
+
/>
|
|
118
|
+
<AsyncStateIndicator
|
|
119
|
+
error={updateError}
|
|
120
|
+
loading={saving}
|
|
121
|
+
text={"Ukládám"}
|
|
122
|
+
/>
|
|
123
|
+
<table className="table table-stripped">
|
|
124
|
+
<thead>
|
|
125
|
+
<tr>
|
|
126
|
+
<th>Typ role</th>
|
|
127
|
+
<th>Osoba</th>
|
|
128
|
+
<th>Počátek</th>
|
|
129
|
+
<th>Konec</th>
|
|
130
|
+
<th>Platná</th>
|
|
131
|
+
<th></th>
|
|
132
|
+
</tr>
|
|
133
|
+
</thead>
|
|
134
|
+
<tbody>
|
|
135
|
+
{roles.map(role => <tr key={role?.id}>
|
|
136
|
+
<td>
|
|
137
|
+
<Link item={role?.roletype || {}}/>
|
|
138
|
+
</td>
|
|
139
|
+
<td>
|
|
140
|
+
<Link item={role?.user || {}}/>
|
|
141
|
+
</td>
|
|
142
|
+
<td>
|
|
143
|
+
{role?.startdate?formatDateTime(role?.startdate):"-"}
|
|
144
|
+
</td>
|
|
145
|
+
<td>
|
|
146
|
+
{role?.enddate?formatDateTime(role?.enddate):"-"}
|
|
147
|
+
</td>
|
|
148
|
+
<td>
|
|
149
|
+
{role?.valid?"Ano":"Ne"}
|
|
150
|
+
</td>
|
|
151
|
+
<td>
|
|
152
|
+
|
|
153
|
+
</td>
|
|
154
|
+
</tr>
|
|
155
|
+
)}
|
|
156
|
+
</tbody>
|
|
157
|
+
<tfoot>
|
|
158
|
+
<tr>
|
|
159
|
+
<td>
|
|
160
|
+
<EntityLookup
|
|
161
|
+
id="roletypeId"
|
|
162
|
+
className="form-control"
|
|
163
|
+
asyncAction={SearchRoleTypeAsyncAction}
|
|
164
|
+
onChange={handleChangeOrBlur}
|
|
165
|
+
onBlur={handleChangeOrBlur}
|
|
166
|
+
value={role?.roletype}
|
|
167
|
+
/>
|
|
168
|
+
</td>
|
|
169
|
+
<td>
|
|
170
|
+
<EntityLookup
|
|
171
|
+
id="userId"
|
|
172
|
+
className="form-control"
|
|
173
|
+
asyncAction={SearchUserAsyncAction}
|
|
174
|
+
onChange={handleChangeOrBlur}
|
|
175
|
+
onBlur={handleChangeOrBlur}
|
|
176
|
+
value={role?.user}
|
|
177
|
+
/>
|
|
178
|
+
</td>
|
|
179
|
+
<td>
|
|
180
|
+
<Input
|
|
181
|
+
id="startdate"
|
|
182
|
+
type="datetime-local"
|
|
183
|
+
className="form-control"
|
|
184
|
+
onChange={handleChangeOrBlur}
|
|
185
|
+
onBlur={handleChangeOrBlur}
|
|
186
|
+
value={role?.startdate}
|
|
187
|
+
/>
|
|
188
|
+
</td>
|
|
189
|
+
<td>
|
|
190
|
+
<Input
|
|
191
|
+
id="enddate"
|
|
192
|
+
type="datetime-local"
|
|
193
|
+
className="form-control"
|
|
194
|
+
onChange={handleChangeOrBlur}
|
|
195
|
+
onBlur={handleChangeOrBlur}
|
|
196
|
+
value={role?.enddate}
|
|
197
|
+
/>
|
|
198
|
+
</td>
|
|
199
|
+
<td colSpan={2}>
|
|
200
|
+
<button
|
|
201
|
+
className="btn btn-outline-primary form-control"
|
|
202
|
+
onClick={handleConfirm}
|
|
203
|
+
disabled={
|
|
204
|
+
!(role?.userId && role?.startdate && role?.roletypeId)
|
|
205
|
+
}
|
|
206
|
+
>Ok</button>
|
|
207
|
+
</td>
|
|
208
|
+
</tr>
|
|
209
|
+
</tfoot>
|
|
210
|
+
</table>
|
|
211
|
+
</>)
|
|
212
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
|
|
2
|
+
export * from './CardCapsule'
|
|
3
|
+
export * from './Children'
|
|
4
|
+
export * from './LargeCard'
|
|
5
|
+
export * from './Link'
|
|
6
|
+
export * from './MediumContent'
|
|
7
|
+
export * from './MediumCard'
|
|
8
|
+
|
|
9
|
+
export * from './MediumEditableContent'
|
|
10
|
+
export * from './LiveEdit'
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
export * from './ConfirmEdit'
|
|
@@ -0,0 +1,202 @@
|
|
|
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 "../../Base/Mutations/Create"
|
|
9
|
+
|
|
10
|
+
const DefaultContent = (props) => <MediumEditableContent {...props} />
|
|
11
|
+
const MutationAsyncAction = InsertAsyncAction
|
|
12
|
+
|
|
13
|
+
const permissions = {
|
|
14
|
+
oneOfRoles: ["superadmin"],
|
|
15
|
+
mode: "absolute",
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
const defaultitem = { name: "Nový" };
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Wrapper nad `BaseCreateLink` (alias importu `CreateLink` z Base/Mutations/Create),
|
|
22
|
+
* který je odvozený z obecných `General*` komponent.
|
|
23
|
+
*
|
|
24
|
+
* Účel wrapperu:
|
|
25
|
+
* - nastaví výchozí `uriPattern` pro create route
|
|
26
|
+
* - aplikuje výchozí RBAC nastavení přes `permissions` (např. `oneOfRoles`, `mode`)
|
|
27
|
+
* - všechny ostatní props pouze přeposílá do Base komponenty
|
|
28
|
+
*
|
|
29
|
+
* Vizuálně vyrenderuje link pro kliknutí
|
|
30
|
+
*
|
|
31
|
+
* @param {Object} params
|
|
32
|
+
* @param {string} [params.uriPattern=CreateURI]
|
|
33
|
+
* Cílová URI/pattern pro link na create stránku nebo create akci (dle routování aplikace).
|
|
34
|
+
*
|
|
35
|
+
* @param {Object} params.props
|
|
36
|
+
* Další props přeposílané do `BaseCreateLink` (např. `children`, `className`,
|
|
37
|
+
* `preserveSearch`, `preserveHash`, atd.).
|
|
38
|
+
*
|
|
39
|
+
* @returns {JSX.Element} Vykreslí `BaseCreateLink` s přednastaveným `uriPattern` a RBAC oprávněními.
|
|
40
|
+
*/
|
|
41
|
+
export const CreateLink = ({
|
|
42
|
+
uriPattern=CreateURI,
|
|
43
|
+
...props
|
|
44
|
+
}) => (
|
|
45
|
+
<BaseCreateLink {...props} uriPattern={uriPattern} {...permissions} />
|
|
46
|
+
);
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Wrapper nad `BaseCreateButton` (alias importu `CreateButton` z Base/Mutations/Create),
|
|
50
|
+
* který je odvozený z obecných `General*` komponent.
|
|
51
|
+
*
|
|
52
|
+
* Účel wrapperu:
|
|
53
|
+
* - nastaví výchozí oprávnění (RBAC) přes `permissions` (`oneOfRoles`, `mode`)
|
|
54
|
+
* - nastaví výchozí mutaci pro vytvoření entity (`mutationAsyncAction`)
|
|
55
|
+
* - umožní vyměnit dialog a obsah formuláře (`CreateDialog`, `DefaultContent`)
|
|
56
|
+
* - určí kam se má po úspěšném vytvoření navigovat (`readItemURI`)
|
|
57
|
+
* - předá výchozí `item` pro nový záznam
|
|
58
|
+
*
|
|
59
|
+
* Zobrazí tlačítko a po jeho stisku otevře dialog, při volbě OK dochází k odeslání mutace na backend
|
|
60
|
+
*
|
|
61
|
+
* @param {Object} params
|
|
62
|
+
* @param {Function} [params.mutationAsyncAction=MutationAsyncAction]
|
|
63
|
+
* Async action (thunk) pro vytvoření entity (např. InsertAsyncAction). Používá ho Base/General logika.
|
|
64
|
+
*
|
|
65
|
+
* @param {React.ComponentType<Object>} [params.CreateDialog=CreateDialog]
|
|
66
|
+
* Komponenta dialogu použitá pro vytvoření (renderuje formulář a volá `onOk(draft)` / `onCancel()`).
|
|
67
|
+
*
|
|
68
|
+
* @param {React.ComponentType<Object>} [params.DefaultContent=DefaultContent]
|
|
69
|
+
* Komponenta, která vykreslí editable obsah formuláře (typicky MediumEditableContent).
|
|
70
|
+
*
|
|
71
|
+
* @param {string} [params.readItemURI=ReadItemURI]
|
|
72
|
+
* URI pattern pro navigaci na detail nově vytvořené entity (obvykle obsahuje `:id`).
|
|
73
|
+
*
|
|
74
|
+
* @param {Object} [params.rbacitem]
|
|
75
|
+
* RBAC item pro PermissionGate/Permission check (pokud se liší od entity, která se vytváří).
|
|
76
|
+
*
|
|
77
|
+
* @param {Object} [params.item=defaultitem]
|
|
78
|
+
* Výchozí objekt (draft) pro nový záznam. Posílá se do dialogu jako `item`.
|
|
79
|
+
*
|
|
80
|
+
* @param {Object} params.props
|
|
81
|
+
* Všechny další props jsou přeposlány přímo do `BaseCreateButton`
|
|
82
|
+
* (typicky `children`, `className`, `disabled`, `title`, atd.).
|
|
83
|
+
*
|
|
84
|
+
* @returns {JSX.Element} Vykreslí `BaseCreateButton` s přednastavenými defaulty a RBAC oprávněními.
|
|
85
|
+
*/
|
|
86
|
+
export const CreateButton = ({
|
|
87
|
+
mutationAsyncAction=MutationAsyncAction,
|
|
88
|
+
CreateDialog: CreateDialog_=CreateDialog,
|
|
89
|
+
DefaultContent:defaultContent=DefaultContent,
|
|
90
|
+
readItemURI=ReadItemURI,
|
|
91
|
+
rbacitem,
|
|
92
|
+
item=defaultitem,
|
|
93
|
+
...props
|
|
94
|
+
}) => {
|
|
95
|
+
return <BaseCreateButton
|
|
96
|
+
{...props}
|
|
97
|
+
DefaultContent={defaultContent}
|
|
98
|
+
CreateDialog={CreateDialog_}
|
|
99
|
+
readItemURI={readItemURI}
|
|
100
|
+
rbacitem={rbacitem}
|
|
101
|
+
item={item}
|
|
102
|
+
mutationAsyncAction={mutationAsyncAction}
|
|
103
|
+
{...permissions}
|
|
104
|
+
/>
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* Wrapper nad `BaseCreateDialog` (alias importu `CreateDialog` z Base/Mutations/Create),
|
|
109
|
+
* který je odvozený z obecných `General*` komponent.
|
|
110
|
+
*
|
|
111
|
+
* Účel wrapperu:
|
|
112
|
+
* - nastaví výchozí title, obsah formuláře a výchozí draft (`item`)
|
|
113
|
+
* - předá `readItemURI` pro případnou navigaci po vytvoření (dle implementace Base/General)
|
|
114
|
+
* - umožní přepsat `mutationAsyncAction` (pokud BaseCreateDialog mutaci používá)
|
|
115
|
+
*
|
|
116
|
+
* Mutaci provadi až tlačítko (`BaseCreateButton`) Dialog jen zobrazuje a zabezpecuje sber dat
|
|
117
|
+
* a dialog je jen “formulář”.
|
|
118
|
+
*
|
|
119
|
+
* @param {Object} params
|
|
120
|
+
* @param {string} [params.title="Nov(ý/é)"]
|
|
121
|
+
* Titulek dialogu.
|
|
122
|
+
*
|
|
123
|
+
* @param {Function} [params.mutationAsyncAction=MutationAsyncAction]
|
|
124
|
+
* Async action (thunk) pro vytvoření entity. Použije se pouze pokud ho `BaseCreateDialog` skutečně volá
|
|
125
|
+
* (záleží na Base/General implementaci).
|
|
126
|
+
*
|
|
127
|
+
* @param {React.ComponentType<Object>} [params.DefaultContent=DefaultContent]
|
|
128
|
+
* Komponenta, která vykreslí editable obsah formuláře (typicky MediumEditableContent).
|
|
129
|
+
*
|
|
130
|
+
* @param {string} [params.readItemURI=ReadItemURI]
|
|
131
|
+
* URI pattern pro navigaci na detail nově vytvořené entity (obvykle obsahuje `:id`).
|
|
132
|
+
*
|
|
133
|
+
* @param {Object} [params.item=defaultitem]
|
|
134
|
+
* Výchozí objekt (draft) pro nový záznam. Posílá se do dialogu jako `item`.
|
|
135
|
+
*
|
|
136
|
+
* @param {Object} params.props
|
|
137
|
+
* Všechny další props jsou přeposlány přímo do `BaseCreateDialog`
|
|
138
|
+
* (typicky `oklabel`, `cancellabel`, `onOk`, `onCancel`, `className`, atd.).
|
|
139
|
+
*
|
|
140
|
+
* @returns {JSX.Element} Vykreslí `BaseCreateDialog` s přednastavenými defaulty.
|
|
141
|
+
*/
|
|
142
|
+
export const CreateDialog = ({
|
|
143
|
+
title = "Nov(ý/é)",
|
|
144
|
+
// mutationAsyncAction=MutationAsyncAction,
|
|
145
|
+
DefaultContent:defaultContent=DefaultContent,
|
|
146
|
+
readItemURI=ReadItemURI,
|
|
147
|
+
item=defaultitem,
|
|
148
|
+
...props
|
|
149
|
+
}) => {
|
|
150
|
+
return <BaseCreateDialog
|
|
151
|
+
{...props}
|
|
152
|
+
title={title}
|
|
153
|
+
DefaultContent={defaultContent}
|
|
154
|
+
readItemURI={readItemURI}
|
|
155
|
+
item={item}
|
|
156
|
+
// mutationAsyncAction={mutationAsyncAction}
|
|
157
|
+
/>
|
|
158
|
+
};
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* Wrapper nad `BaseCreateBody` (alias importu `CreateBody` z Base/Mutations/Create),
|
|
162
|
+
* který je odvozený z obecných `General*` komponent.
|
|
163
|
+
*
|
|
164
|
+
* `CreateBody` typicky reprezentuje “page-level” create workflow (ne jen tlačítko + modal):
|
|
165
|
+
* - vykreslí create formulář pomocí `DefaultContent`
|
|
166
|
+
* - zajistí uložení přes `mutationAsyncAction` (dle Base/General implementace)
|
|
167
|
+
* - po úspěchu může navigovat na detail vytvořené entity přes `readItemURI` (pokud Base/General takto funguje)
|
|
168
|
+
*
|
|
169
|
+
* Wrapper pouze nastavuje defaulty a přeposílá props do `BaseCreateBody`.
|
|
170
|
+
*
|
|
171
|
+
* Vizualizuje <DefaultContent />, sbira zmeny a umoznuje volani backendu pro ulozeni dat
|
|
172
|
+
*
|
|
173
|
+
* @param {Object} params
|
|
174
|
+
* @param {Function} [params.mutationAsyncAction=MutationAsyncAction]
|
|
175
|
+
* Async action (thunk) pro vytvoření entity (např. InsertAsyncAction). Používá ho Base/General logika.
|
|
176
|
+
*
|
|
177
|
+
* @param {React.ComponentType<Object>} [params.DefaultContent=DefaultContent]
|
|
178
|
+
* Komponenta, která vykreslí editable obsah formuláře (typicky MediumEditableContent).
|
|
179
|
+
*
|
|
180
|
+
* @param {string} [params.readItemURI=ReadItemURI]
|
|
181
|
+
* URI pattern pro navigaci na detail nově vytvořené entity (obvykle obsahuje `:id`).
|
|
182
|
+
*
|
|
183
|
+
* @param {Object} params.props
|
|
184
|
+
* Všechny další props jsou přeposlány přímo do `BaseCreateBody`
|
|
185
|
+
* (typicky `title`, `oklabel`, `cancellabel`, `onOk`, `onCancel`, `className`, atd.).
|
|
186
|
+
*
|
|
187
|
+
* @returns {JSX.Element} Vykreslí `BaseCreateBody` s přednastavenými defaulty.
|
|
188
|
+
*/
|
|
189
|
+
export const CreateBody = ({
|
|
190
|
+
mutationAsyncAction=MutationAsyncAction,
|
|
191
|
+
DefaultContent:defaultContent=DefaultContent,
|
|
192
|
+
readItemURI=ReadItemURI,
|
|
193
|
+
...props
|
|
194
|
+
}) => {
|
|
195
|
+
return <BaseCreateBody
|
|
196
|
+
{...props}
|
|
197
|
+
DefaultContent={defaultContent}
|
|
198
|
+
readItemURI={readItemURI}
|
|
199
|
+
mutationAsyncAction={mutationAsyncAction}
|
|
200
|
+
/>
|
|
201
|
+
};
|
|
202
|
+
|
|
@@ -0,0 +1,173 @@
|
|
|
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 "../../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
|
+
/**
|
|
19
|
+
* Link na delete route pro konkrétní entitu.
|
|
20
|
+
*
|
|
21
|
+
* Wrapper nad `BaseDeleteLink`. Nastavuje výchozí `uriPattern` pro delete route a aplikuje RBAC
|
|
22
|
+
* přes `permissions`. Ostatní props přeposílá do Base komponenty.
|
|
23
|
+
*
|
|
24
|
+
* @param {Object} params
|
|
25
|
+
* @param {string} [params.uriPattern=DeleteItemURI]
|
|
26
|
+
* URI pattern pro delete route (typicky obsahuje `:id` nebo odpovídá routování aplikace).
|
|
27
|
+
* @param {Object} params.props
|
|
28
|
+
* Další props přeposílané do `BaseDeleteLink` (např. `children`, `className`,
|
|
29
|
+
* `preserveSearch`, `preserveHash`, atd.).
|
|
30
|
+
*
|
|
31
|
+
* @returns {JSX.Element}
|
|
32
|
+
*/
|
|
33
|
+
export const DeleteLink = ({
|
|
34
|
+
uriPattern=DeleteItemURI,
|
|
35
|
+
...props
|
|
36
|
+
}) => {
|
|
37
|
+
return (
|
|
38
|
+
<BaseDeleteLink
|
|
39
|
+
{...props}
|
|
40
|
+
uriPattern={uriPattern}
|
|
41
|
+
{...permissions}
|
|
42
|
+
/>
|
|
43
|
+
)
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Tlačítko pro smazání entity (obvykle otevře confirm dialog a spustí delete mutaci).
|
|
48
|
+
*
|
|
49
|
+
* Wrapper nad `BaseDeleteButton`. Dodává výchozí `DefaultContent`, `mutationAsyncAction`
|
|
50
|
+
* a `vectorItemsURI` (kam se naviguje po úspěšném smazání, pokud není použit `onOk`).
|
|
51
|
+
*
|
|
52
|
+
* Chování navigace / callback:
|
|
53
|
+
* - Pokud je definované `onOk`, použije se pro “feedback”, že mazání proběhlo (tj. uživatel si
|
|
54
|
+
* rozhodne, co dál).
|
|
55
|
+
* - Pokud `onOk` definované není, Base implementace typicky naviguje na `vectorItemsURI`.
|
|
56
|
+
*
|
|
57
|
+
* @param {Object} params
|
|
58
|
+
* @param {Function} [params.mutationAsyncAction=MutationAsyncAction]
|
|
59
|
+
* Async action (thunk) pro delete operaci (např. DeleteAsyncAction).
|
|
60
|
+
*
|
|
61
|
+
* @param {React.ComponentType<Object>} [params.DefaultContent=MediumContent]
|
|
62
|
+
* Komponenta pro zobrazení mazáné entity v confirm dialogu (read-only).
|
|
63
|
+
*
|
|
64
|
+
* @param {string} [params.vectorItemsURI=ListURI]
|
|
65
|
+
* URI pro návrat po úspěšném smazání (typicky list stránka / kolekce).
|
|
66
|
+
*
|
|
67
|
+
* @param {Function} [params.onOk]
|
|
68
|
+
* Callback po úspěšném smazání. Pokud není zadán, Base implementace typicky použije navigaci na `vectorItemsURI`.
|
|
69
|
+
*
|
|
70
|
+
* @param {Object}} params.props
|
|
71
|
+
* Další props přeposílané do `BaseDeleteButton` (např. `children`, `title`, `className`,
|
|
72
|
+
* `rbacitem`, `item`, `disabled`, atd. – podle Base/General implementace).
|
|
73
|
+
*
|
|
74
|
+
* @returns {JSX.Element}
|
|
75
|
+
*/
|
|
76
|
+
export const DeleteButton = ({
|
|
77
|
+
mutationAsyncAction=MutationAsyncAction,
|
|
78
|
+
DefaultContent:DefaultContent_=DefaultContent,
|
|
79
|
+
Dialog=DeleteDialog,
|
|
80
|
+
vectorItemsURI=ListURI,
|
|
81
|
+
onOk,
|
|
82
|
+
...props
|
|
83
|
+
}) => {
|
|
84
|
+
return (
|
|
85
|
+
<BaseDeleteButton
|
|
86
|
+
{...props}
|
|
87
|
+
DefaultContent={DefaultContent_}
|
|
88
|
+
Dialog={Dialog}
|
|
89
|
+
mutationAsyncAction={mutationAsyncAction}
|
|
90
|
+
vectorItemsURI={vectorItemsURI}
|
|
91
|
+
onOk={onOk}
|
|
92
|
+
{...permissions}
|
|
93
|
+
/>
|
|
94
|
+
)
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* Confirm dialog pro smazání entity.
|
|
99
|
+
*
|
|
100
|
+
* Wrapper nad `BaseDeleteDialog`. Dodává výchozí `DefaultContent` (read-only zobrazení entity),
|
|
101
|
+
* `mutationAsyncAction` a `vectorItemsURI` pro návrat po úspěchu (dle Base/General implementace).
|
|
102
|
+
*
|
|
103
|
+
* @param {Object} params
|
|
104
|
+
* @param {Function} [params.mutationAsyncAction=MutationAsyncAction]
|
|
105
|
+
* Async action (thunk) pro delete operaci (např. DeleteAsyncAction).
|
|
106
|
+
*
|
|
107
|
+
* @param {React.ComponentType<Object>} [params.DefaultContent=MediumContent]
|
|
108
|
+
* Komponenta pro zobrazení mazáné entity (read-only).
|
|
109
|
+
*
|
|
110
|
+
* @param {string} [params.vectorItemsURI=ListURI]
|
|
111
|
+
* URI pro návrat po úspěšném smazání (typicky list stránka / kolekce).
|
|
112
|
+
*
|
|
113
|
+
* @param {Object}} params.props
|
|
114
|
+
* Další props přeposílané do `BaseDeleteDialog` (např. `title`, `oklabel`, `cancellabel`,
|
|
115
|
+
* `item`, `onOk`, `onCancel`, atd.).
|
|
116
|
+
*
|
|
117
|
+
* @returns {JSX.Element}
|
|
118
|
+
*/
|
|
119
|
+
export const DeleteDialog = ({
|
|
120
|
+
mutationAsyncAction=MutationAsyncAction,
|
|
121
|
+
DefaultContent:DefaultContent_=DefaultContent,
|
|
122
|
+
vectorItemsURI=ListURI,
|
|
123
|
+
...props
|
|
124
|
+
}) => {
|
|
125
|
+
return (
|
|
126
|
+
<BaseDeleteDialog
|
|
127
|
+
{...props}
|
|
128
|
+
DefaultContent={DefaultContent_}
|
|
129
|
+
mutationAsyncAction={mutationAsyncAction}
|
|
130
|
+
vectorItemsURI={vectorItemsURI}
|
|
131
|
+
{...permissions}
|
|
132
|
+
/>
|
|
133
|
+
)
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* “Page-level” delete workflow (mazání na celé stránce / v těle stránky).
|
|
138
|
+
*
|
|
139
|
+
* Wrapper nad `BaseDeleteBody`. Dodává výchozí `DefaultContent`, `mutationAsyncAction`
|
|
140
|
+
* a `vectorItemsURI` a aplikuje RBAC přes `permissions`.
|
|
141
|
+
*
|
|
142
|
+
* @param {Object} params
|
|
143
|
+
* @param {Function} [params.mutationAsyncAction=MutationAsyncAction]
|
|
144
|
+
* Async action (thunk) pro delete operaci (např. DeleteAsyncAction).
|
|
145
|
+
*
|
|
146
|
+
* @param {React.ComponentType<Object>} [params.DefaultContent=MediumContent]
|
|
147
|
+
* Komponenta pro zobrazení mazáné entity (read-only).
|
|
148
|
+
*
|
|
149
|
+
* @param {string} [params.vectorItemsURI=ListURI]
|
|
150
|
+
* URI pro návrat po úspěšném smazání (typicky list stránka / kolekce).
|
|
151
|
+
*
|
|
152
|
+
* @param {Object}} params.props
|
|
153
|
+
* Další props přeposílané do `BaseDeleteBody` (např. `title`, `oklabel`, `cancellabel`,
|
|
154
|
+
* `item`, `onOk`, `onCancel`, atd.).
|
|
155
|
+
*
|
|
156
|
+
* @returns {JSX.Element}
|
|
157
|
+
*/
|
|
158
|
+
export const DeleteBody = ({
|
|
159
|
+
mutationAsyncAction=MutationAsyncAction,
|
|
160
|
+
DefaultContent:DefaultContent_=DefaultContent,
|
|
161
|
+
vectorItemsURI=ListURI,
|
|
162
|
+
...props
|
|
163
|
+
}) => {
|
|
164
|
+
return (
|
|
165
|
+
<BaseDeleteBody
|
|
166
|
+
{...props}
|
|
167
|
+
DefaultContent={DefaultContent_}
|
|
168
|
+
mutationAsyncAction={mutationAsyncAction}
|
|
169
|
+
vectorItemsURI={vectorItemsURI}
|
|
170
|
+
{...permissions}
|
|
171
|
+
/>
|
|
172
|
+
)
|
|
173
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { CardCapsule, VectorItemsURI } from "../Components"
|
|
2
|
+
import { CreateButton, CreateLink } from "./Create"
|
|
3
|
+
import { UpdateButton, UpdateLink } from "./Update"
|
|
4
|
+
import { ProxyLink } from "../../Base/Components/ProxyLink"
|
|
5
|
+
import { DeleteButton } from "./Delete"
|
|
6
|
+
|
|
7
|
+
export const PageLink = ({ children, preserveHash = true, preserveSearch = true, ...props }) => {
|
|
8
|
+
return (
|
|
9
|
+
<ProxyLink
|
|
10
|
+
to={VectorItemsURI}
|
|
11
|
+
preserveHash={preserveHash}
|
|
12
|
+
preserveSearch={preserveSearch}
|
|
13
|
+
{...props}
|
|
14
|
+
>
|
|
15
|
+
{children}
|
|
16
|
+
</ProxyLink>
|
|
17
|
+
);
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
export const InteractiveMutations = ({ item }) => {
|
|
21
|
+
return (
|
|
22
|
+
<CardCapsule item={item} title="Nástroje">
|
|
23
|
+
<PageLink className="btn btn-outline-success">Stránka</PageLink>
|
|
24
|
+
<UpdateLink className="btn btn-outline-success" item={item}>Upravit</UpdateLink>
|
|
25
|
+
<UpdateButton className="btn btn-outline-success" item={item}>Upravit Dialog</UpdateButton>
|
|
26
|
+
<CreateButton className="btn btn-outline-success" rbacitem={{}}>Vytvořit nový</CreateButton>
|
|
27
|
+
<DeleteButton className="btn btn-outline-danger" item={item}>Odstranit</DeleteButton>
|
|
28
|
+
</CardCapsule>
|
|
29
|
+
)
|
|
30
|
+
}
|