@eclipse-papyrus/papyrus-web-parent 2026.2.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/.prettierrc +22 -0
- package/.project +11 -0
- package/.turbo/cache/2e7de991e3eb5b77-meta.json +1 -0
- package/.turbo/cache/2e7de991e3eb5b77.tar.zst +0 -0
- package/.turbo/cache/6d4efa6c3019818e-meta.json +1 -0
- package/.turbo/cache/6d4efa6c3019818e.tar.zst +0 -0
- package/.turbo/cache/904b84e8ab6fefb1-meta.json +1 -0
- package/.turbo/cache/904b84e8ab6fefb1.tar.zst +0 -0
- package/.turbo/cache/b657accc57a869a6-meta.json +1 -0
- package/.turbo/cache/b657accc57a869a6.tar.zst +0 -0
- package/.turbo/cookies/1.cookie +0 -0
- package/.turbo/cookies/2.cookie +0 -0
- package/.turbo/cookies/3.cookie +0 -0
- package/.turbo/cookies/4.cookie +0 -0
- package/.turbo/cookies/5.cookie +0 -0
- package/.turbo/cookies/6.cookie +0 -0
- package/.turbo/cookies/7.cookie +0 -0
- package/.turbo/cookies/8.cookie +0 -0
- package/.turbo/daemon/8a1f25190e5082e3-turbo.log.2026-04-01 +0 -0
- package/package.json +32 -0
- package/papyrus-web/.env.development +2 -0
- package/papyrus-web/.prettierrc +22 -0
- package/papyrus-web/.turbo/turbo-build.log +30 -0
- package/papyrus-web/.turbo/turbo-format-lint.log +6 -0
- package/papyrus-web/README.adoc +84 -0
- package/papyrus-web/dist/assets/Lato-Black-B_kLSaRn.ttf +0 -0
- package/papyrus-web/dist/assets/Lato-BlackItalic-B2JUbIh8.ttf +0 -0
- package/papyrus-web/dist/assets/Lato-Bold-DBmunEOG.ttf +0 -0
- package/papyrus-web/dist/assets/Lato-BoldItalic-DfTVlc2v.ttf +0 -0
- package/papyrus-web/dist/assets/Lato-Italic-CxPt6gM6.ttf +0 -0
- package/papyrus-web/dist/assets/Lato-Light-Cg7pVZQZ.ttf +0 -0
- package/papyrus-web/dist/assets/Lato-LightItalic-BkbZ6uep.ttf +0 -0
- package/papyrus-web/dist/assets/Lato-Regular-57KsL5Ww.ttf +0 -0
- package/papyrus-web/dist/assets/Lato-Thin-CvSM47fD.ttf +0 -0
- package/papyrus-web/dist/assets/Lato-ThinItalic-9M4CJfMt.ttf +0 -0
- package/papyrus-web/dist/assets/browser-ponyfill-CVpHIrSq.js +2 -0
- package/papyrus-web/dist/assets/index-CjSWMYED.js +6122 -0
- package/papyrus-web/dist/assets/index-DJjGIuFa.css +1 -0
- package/papyrus-web/dist/assets/papyrus-icon-DqmMeq_6.png +0 -0
- package/papyrus-web/dist/favicon.ico +0 -0
- package/papyrus-web/dist/index.html +42 -0
- package/papyrus-web/dist/manifest.json +15 -0
- package/papyrus-web/dist/papyrus.ico +0 -0
- package/papyrus-web/index.html +41 -0
- package/papyrus-web/package.json +104 -0
- package/papyrus-web/public/favicon.ico +0 -0
- package/papyrus-web/public/manifest.json +15 -0
- package/papyrus-web/public/papyrus.ico +0 -0
- package/papyrus-web/src/ReactFlow.css +17 -0
- package/papyrus-web/src/core/PapyrusIcon.tsx +17 -0
- package/papyrus-web/src/core/PapyrusNavigationBarIcon.tsx +46 -0
- package/papyrus-web/src/core/URL.ts +34 -0
- package/papyrus-web/src/extensions/ExtensionRegistryMergeStrategy.ts +50 -0
- package/papyrus-web/src/fonts/Lato/Lato-Black.ttf +0 -0
- package/papyrus-web/src/fonts/Lato/Lato-BlackItalic.ttf +0 -0
- package/papyrus-web/src/fonts/Lato/Lato-Bold.ttf +0 -0
- package/papyrus-web/src/fonts/Lato/Lato-BoldItalic.ttf +0 -0
- package/papyrus-web/src/fonts/Lato/Lato-Italic.ttf +0 -0
- package/papyrus-web/src/fonts/Lato/Lato-Light.ttf +0 -0
- package/papyrus-web/src/fonts/Lato/Lato-LightItalic.ttf +0 -0
- package/papyrus-web/src/fonts/Lato/Lato-Regular.ttf +0 -0
- package/papyrus-web/src/fonts/Lato/Lato-Thin.ttf +0 -0
- package/papyrus-web/src/fonts/Lato/Lato-ThinItalic.ttf +0 -0
- package/papyrus-web/src/fonts/Lato/OFL.txt +93 -0
- package/papyrus-web/src/fonts.css +81 -0
- package/papyrus-web/src/footer/Footer.tsx +50 -0
- package/papyrus-web/src/icons/papyrus-icon.png +0 -0
- package/papyrus-web/src/index.tsx +325 -0
- package/papyrus-web/src/portals.css +16 -0
- package/papyrus-web/src/react-app-env.d.ts +1 -0
- package/papyrus-web/src/reset.css +218 -0
- package/papyrus-web/src/variables.css +111 -0
- package/papyrus-web/src/vite-env.d.ts +1 -0
- package/papyrus-web/tsconfig.json +34 -0
- package/papyrus-web/vite.config.js +24 -0
- package/papyrus-web-components/.prettierrc +22 -0
- package/papyrus-web-components/.turbo/turbo-build.log +77 -0
- package/papyrus-web-components/.turbo/turbo-format-lint.log +6 -0
- package/papyrus-web-components/README.adoc +13 -0
- package/papyrus-web-components/dist/diagram-tools/EditProjectView.types.d.ts +48 -0
- package/papyrus-web-components/dist/diagram-tools/EditProjectView.types.d.ts.map +1 -0
- package/papyrus-web-components/dist/diagram-tools/FilterableSortableList.d.ts +3 -0
- package/papyrus-web-components/dist/diagram-tools/FilterableSortableList.d.ts.map +1 -0
- package/papyrus-web-components/dist/diagram-tools/FilterableSortableList.types.d.ts +33 -0
- package/papyrus-web-components/dist/diagram-tools/FilterableSortableList.types.d.ts.map +1 -0
- package/papyrus-web-components/dist/diagram-tools/ModelBrowserFilterBar.d.ts +15 -0
- package/papyrus-web-components/dist/diagram-tools/ModelBrowserFilterBar.d.ts.map +1 -0
- package/papyrus-web-components/dist/diagram-tools/ModelBrowserFilterBar.types.d.ts +20 -0
- package/papyrus-web-components/dist/diagram-tools/ModelBrowserFilterBar.types.d.ts.map +1 -0
- package/papyrus-web-components/dist/diagram-tools/PapyrusPopupToolContribution.d.ts +3 -0
- package/papyrus-web-components/dist/diagram-tools/PapyrusPopupToolContribution.d.ts.map +1 -0
- package/papyrus-web-components/dist/diagram-tools/PapyrusPopupToolContribution.types.d.ts +53 -0
- package/papyrus-web-components/dist/diagram-tools/PapyrusPopupToolContribution.types.d.ts.map +1 -0
- package/papyrus-web-components/dist/diagram-tools/TransferModal.d.ts +3 -0
- package/papyrus-web-components/dist/diagram-tools/TransferModal.d.ts.map +1 -0
- package/papyrus-web-components/dist/diagram-tools/TransferModal.types.d.ts +32 -0
- package/papyrus-web-components/dist/diagram-tools/TransferModal.types.d.ts.map +1 -0
- package/papyrus-web-components/dist/index.d.ts +61 -0
- package/papyrus-web-components/dist/index.d.ts.map +1 -0
- package/papyrus-web-components/dist/nodes/NodesDocumentTransform.d.ts +15 -0
- package/papyrus-web-components/dist/nodes/NodesDocumentTransform.d.ts.map +1 -0
- package/papyrus-web-components/dist/nodes/cuboid/CuboidNode.d.ts +18 -0
- package/papyrus-web-components/dist/nodes/cuboid/CuboidNode.d.ts.map +1 -0
- package/papyrus-web-components/dist/nodes/cuboid/CuboidNode.types.d.ts +29 -0
- package/papyrus-web-components/dist/nodes/cuboid/CuboidNode.types.d.ts.map +1 -0
- package/papyrus-web-components/dist/nodes/cuboid/CuboidNodeConverter.d.ts +21 -0
- package/papyrus-web-components/dist/nodes/cuboid/CuboidNodeConverter.d.ts.map +1 -0
- package/papyrus-web-components/dist/nodes/cuboid/CuboidNodeLayoutHandler.d.ts +23 -0
- package/papyrus-web-components/dist/nodes/cuboid/CuboidNodeLayoutHandler.d.ts.map +1 -0
- package/papyrus-web-components/dist/nodes/cuboid/CuboidNodeListConverter.d.ts +21 -0
- package/papyrus-web-components/dist/nodes/cuboid/CuboidNodeListConverter.d.ts.map +1 -0
- package/papyrus-web-components/dist/nodes/cuboid/CuboidNodeListLayoutHandler.d.ts +23 -0
- package/papyrus-web-components/dist/nodes/cuboid/CuboidNodeListLayoutHandler.d.ts.map +1 -0
- package/papyrus-web-components/dist/nodes/customImage/CustomImageNode.d.ts +3 -0
- package/papyrus-web-components/dist/nodes/customImage/CustomImageNode.d.ts.map +1 -0
- package/papyrus-web-components/dist/nodes/customImage/CustomImageNode.types.d.ts +34 -0
- package/papyrus-web-components/dist/nodes/customImage/CustomImageNode.types.d.ts.map +1 -0
- package/papyrus-web-components/dist/nodes/customImage/CustomImageNodeConverter.d.ts +22 -0
- package/papyrus-web-components/dist/nodes/customImage/CustomImageNodeConverter.d.ts.map +1 -0
- package/papyrus-web-components/dist/nodes/customImage/CustomImageNodeLayoutHandler.d.ts +23 -0
- package/papyrus-web-components/dist/nodes/customImage/CustomImageNodeLayoutHandler.d.ts.map +1 -0
- package/papyrus-web-components/dist/nodes/ellipse/EllipseNode.d.ts +15 -0
- package/papyrus-web-components/dist/nodes/ellipse/EllipseNode.d.ts.map +1 -0
- package/papyrus-web-components/dist/nodes/ellipse/EllipseNode.types.d.ts +33 -0
- package/papyrus-web-components/dist/nodes/ellipse/EllipseNode.types.d.ts.map +1 -0
- package/papyrus-web-components/dist/nodes/ellipse/EllipseNodeConverter.d.ts +23 -0
- package/papyrus-web-components/dist/nodes/ellipse/EllipseNodeConverter.d.ts.map +1 -0
- package/papyrus-web-components/dist/nodes/ellipse/EllipseNodeLayoutHandler.d.ts +25 -0
- package/papyrus-web-components/dist/nodes/ellipse/EllipseNodeLayoutHandler.d.ts.map +1 -0
- package/papyrus-web-components/dist/nodes/innerFlag/InnerFlagNode.d.ts +18 -0
- package/papyrus-web-components/dist/nodes/innerFlag/InnerFlagNode.d.ts.map +1 -0
- package/papyrus-web-components/dist/nodes/innerFlag/InnerFlagNode.types.d.ts +23 -0
- package/papyrus-web-components/dist/nodes/innerFlag/InnerFlagNode.types.d.ts.map +1 -0
- package/papyrus-web-components/dist/nodes/innerFlag/InnerFlagNodeConverter.d.ts +21 -0
- package/papyrus-web-components/dist/nodes/innerFlag/InnerFlagNodeConverter.d.ts.map +1 -0
- package/papyrus-web-components/dist/nodes/innerFlag/InnerFlagNodeLayoutHandler.d.ts +21 -0
- package/papyrus-web-components/dist/nodes/innerFlag/InnerFlagNodeLayoutHandler.d.ts.map +1 -0
- package/papyrus-web-components/dist/nodes/note/NoteLabel.d.ts +18 -0
- package/papyrus-web-components/dist/nodes/note/NoteLabel.d.ts.map +1 -0
- package/papyrus-web-components/dist/nodes/note/NoteNode.d.ts +19 -0
- package/papyrus-web-components/dist/nodes/note/NoteNode.d.ts.map +1 -0
- package/papyrus-web-components/dist/nodes/note/NoteNode.types.d.ts +41 -0
- package/papyrus-web-components/dist/nodes/note/NoteNode.types.d.ts.map +1 -0
- package/papyrus-web-components/dist/nodes/note/NoteNodeConverter.d.ts +21 -0
- package/papyrus-web-components/dist/nodes/note/NoteNodeConverter.d.ts.map +1 -0
- package/papyrus-web-components/dist/nodes/note/NoteNodeLayoutHandler.d.ts +21 -0
- package/papyrus-web-components/dist/nodes/note/NoteNodeLayoutHandler.d.ts.map +1 -0
- package/papyrus-web-components/dist/nodes/outerFlag/OuterFlagNode.d.ts +18 -0
- package/papyrus-web-components/dist/nodes/outerFlag/OuterFlagNode.d.ts.map +1 -0
- package/papyrus-web-components/dist/nodes/outerFlag/OuterFlagNode.types.d.ts +23 -0
- package/papyrus-web-components/dist/nodes/outerFlag/OuterFlagNode.types.d.ts.map +1 -0
- package/papyrus-web-components/dist/nodes/outerFlag/OuterFlagNodeConverter.d.ts +21 -0
- package/papyrus-web-components/dist/nodes/outerFlag/OuterFlagNodeConverter.d.ts.map +1 -0
- package/papyrus-web-components/dist/nodes/outerFlag/OuterFlagNodeLayoutHandler.d.ts +21 -0
- package/papyrus-web-components/dist/nodes/outerFlag/OuterFlagNodeLayoutHandler.d.ts.map +1 -0
- package/papyrus-web-components/dist/nodes/package/PackageNode.d.ts +18 -0
- package/papyrus-web-components/dist/nodes/package/PackageNode.d.ts.map +1 -0
- package/papyrus-web-components/dist/nodes/package/PackageNode.types.d.ts +29 -0
- package/papyrus-web-components/dist/nodes/package/PackageNode.types.d.ts.map +1 -0
- package/papyrus-web-components/dist/nodes/package/PackageNodeConverter.d.ts +21 -0
- package/papyrus-web-components/dist/nodes/package/PackageNodeConverter.d.ts.map +1 -0
- package/papyrus-web-components/dist/nodes/package/PackageNodeLayoutHandler.d.ts +23 -0
- package/papyrus-web-components/dist/nodes/package/PackageNodeLayoutHandler.d.ts.map +1 -0
- package/papyrus-web-components/dist/nodes/package/PackageNodeListConverter.d.ts +21 -0
- package/papyrus-web-components/dist/nodes/package/PackageNodeListConverter.d.ts.map +1 -0
- package/papyrus-web-components/dist/nodes/package/PackageNodeListLayoutHandler.d.ts +24 -0
- package/papyrus-web-components/dist/nodes/package/PackageNodeListLayoutHandler.d.ts.map +1 -0
- package/papyrus-web-components/dist/nodes/rectangleWithExternalLabel/RectangleWithExternalLabelNode.d.ts +18 -0
- package/papyrus-web-components/dist/nodes/rectangleWithExternalLabel/RectangleWithExternalLabelNode.d.ts.map +1 -0
- package/papyrus-web-components/dist/nodes/rectangleWithExternalLabel/RectangleWithExternalLabelNode.types.d.ts +23 -0
- package/papyrus-web-components/dist/nodes/rectangleWithExternalLabel/RectangleWithExternalLabelNode.types.d.ts.map +1 -0
- package/papyrus-web-components/dist/nodes/rectangleWithExternalLabel/RectangleWithExternalLabelNodeConverter.d.ts +21 -0
- package/papyrus-web-components/dist/nodes/rectangleWithExternalLabel/RectangleWithExternalLabelNodeConverter.d.ts.map +1 -0
- package/papyrus-web-components/dist/nodes/rectangleWithExternalLabel/RectangleWithExternalLabelNodeLayoutHandler.d.ts +20 -0
- package/papyrus-web-components/dist/nodes/rectangleWithExternalLabel/RectangleWithExternalLabelNodeLayoutHandler.d.ts.map +1 -0
- package/papyrus-web-components/dist/papyrus-web-components.es.js +11710 -0
- package/papyrus-web-components/dist/papyrus-web-components.umd.js +11664 -0
- package/papyrus-web-components/dist/profile/apply-profile/ApplyProfileModal.d.ts +3 -0
- package/papyrus-web-components/dist/profile/apply-profile/ApplyProfileModal.d.ts.map +1 -0
- package/papyrus-web-components/dist/profile/apply-profile/ApplyProfileModal.types.d.ts +55 -0
- package/papyrus-web-components/dist/profile/apply-profile/ApplyProfileModal.types.d.ts.map +1 -0
- package/papyrus-web-components/dist/profile/apply-profile/ApplyProfileModalMachine.d.ts +65 -0
- package/papyrus-web-components/dist/profile/apply-profile/ApplyProfileModalMachine.d.ts.map +1 -0
- package/papyrus-web-components/dist/profile/apply-profile/UMLModelTreeItemContextMenuContribution.d.ts +16 -0
- package/papyrus-web-components/dist/profile/apply-profile/UMLModelTreeItemContextMenuContribution.d.ts.map +1 -0
- package/papyrus-web-components/dist/profile/apply-stereotype/ApplyStereotypeModal.d.ts +15 -0
- package/papyrus-web-components/dist/profile/apply-stereotype/ApplyStereotypeModal.d.ts.map +1 -0
- package/papyrus-web-components/dist/profile/apply-stereotype/ApplyStereotypeModal.types.d.ts +48 -0
- package/papyrus-web-components/dist/profile/apply-stereotype/ApplyStereotypeModal.types.d.ts.map +1 -0
- package/papyrus-web-components/dist/profile/apply-stereotype/ApplyStereotypeModalMachine.d.ts +65 -0
- package/papyrus-web-components/dist/profile/apply-stereotype/ApplyStereotypeModalMachine.d.ts.map +1 -0
- package/papyrus-web-components/dist/profile/apply-stereotype/UMLElementTreeItemContextMenuContribution.d.ts +16 -0
- package/papyrus-web-components/dist/profile/apply-stereotype/UMLElementTreeItemContextMenuContribution.d.ts.map +1 -0
- package/papyrus-web-components/dist/profile/publish-profile/PublishProfileDialog.d.ts +16 -0
- package/papyrus-web-components/dist/profile/publish-profile/PublishProfileDialog.d.ts.map +1 -0
- package/papyrus-web-components/dist/profile/publish-profile/PublishProfileDialog.types.d.ts +72 -0
- package/papyrus-web-components/dist/profile/publish-profile/PublishProfileDialog.types.d.ts.map +1 -0
- package/papyrus-web-components/dist/profile/publish-profile/PublishProfileTreeItemContextMenuContribution.d.ts +16 -0
- package/papyrus-web-components/dist/profile/publish-profile/PublishProfileTreeItemContextMenuContribution.d.ts.map +1 -0
- package/papyrus-web-components/dist/widgets/CustomWidgetsDocumentTransform.d.ts +15 -0
- package/papyrus-web-components/dist/widgets/CustomWidgetsDocumentTransform.d.ts.map +1 -0
- package/papyrus-web-components/dist/widgets/containmentReference/ContainmentReferenceFragment.types.d.ts +145 -0
- package/papyrus-web-components/dist/widgets/containmentReference/ContainmentReferenceFragment.types.d.ts.map +1 -0
- package/papyrus-web-components/dist/widgets/containmentReference/ContainmentReferenceIcon.d.ts +16 -0
- package/papyrus-web-components/dist/widgets/containmentReference/ContainmentReferenceIcon.d.ts.map +1 -0
- package/papyrus-web-components/dist/widgets/containmentReference/ContainmentReferencePreview.d.ts +19 -0
- package/papyrus-web-components/dist/widgets/containmentReference/ContainmentReferencePreview.d.ts.map +1 -0
- package/papyrus-web-components/dist/widgets/containmentReference/ContainmentReferenceSection.d.ts +21 -0
- package/papyrus-web-components/dist/widgets/containmentReference/ContainmentReferenceSection.d.ts.map +1 -0
- package/papyrus-web-components/dist/widgets/containmentReference/ReorderIcon.d.ts +18 -0
- package/papyrus-web-components/dist/widgets/containmentReference/ReorderIcon.d.ts.map +1 -0
- package/papyrus-web-components/dist/widgets/containmentReference/dialogs/CreateNewChildDialog.d.ts +17 -0
- package/papyrus-web-components/dist/widgets/containmentReference/dialogs/CreateNewChildDialog.d.ts.map +1 -0
- package/papyrus-web-components/dist/widgets/containmentReference/dialogs/CreateNewChildDialog.types.d.ts +23 -0
- package/papyrus-web-components/dist/widgets/containmentReference/dialogs/CreateNewChildDialog.types.d.ts.map +1 -0
- package/papyrus-web-components/dist/widgets/customImage/AddImageIcon.d.ts +17 -0
- package/papyrus-web-components/dist/widgets/customImage/AddImageIcon.d.ts.map +1 -0
- package/papyrus-web-components/dist/widgets/customImage/CustomImageFragment.types.d.ts +83 -0
- package/papyrus-web-components/dist/widgets/customImage/CustomImageFragment.types.d.ts.map +1 -0
- package/papyrus-web-components/dist/widgets/customImage/CustomImageIcon.d.ts +17 -0
- package/papyrus-web-components/dist/widgets/customImage/CustomImageIcon.d.ts.map +1 -0
- package/papyrus-web-components/dist/widgets/customImage/CustomImagePreview.d.ts +20 -0
- package/papyrus-web-components/dist/widgets/customImage/CustomImagePreview.d.ts.map +1 -0
- package/papyrus-web-components/dist/widgets/customImage/CustomImageSection.d.ts +21 -0
- package/papyrus-web-components/dist/widgets/customImage/CustomImageSection.d.ts.map +1 -0
- package/papyrus-web-components/dist/widgets/dialogs/ReorderItemsDialog.d.ts +17 -0
- package/papyrus-web-components/dist/widgets/dialogs/ReorderItemsDialog.d.ts.map +1 -0
- package/papyrus-web-components/dist/widgets/dialogs/ReorderItemsDialog.types.d.ts +29 -0
- package/papyrus-web-components/dist/widgets/dialogs/ReorderItemsDialog.types.d.ts.map +1 -0
- package/papyrus-web-components/dist/widgets/languageExpression/LanguageExpressionFragment.types.d.ts +97 -0
- package/papyrus-web-components/dist/widgets/languageExpression/LanguageExpressionFragment.types.d.ts.map +1 -0
- package/papyrus-web-components/dist/widgets/languageExpression/LanguageExpressionIcon.d.ts +16 -0
- package/papyrus-web-components/dist/widgets/languageExpression/LanguageExpressionIcon.d.ts.map +1 -0
- package/papyrus-web-components/dist/widgets/languageExpression/LanguageExpressionPreview.d.ts +6 -0
- package/papyrus-web-components/dist/widgets/languageExpression/LanguageExpressionPreview.d.ts.map +1 -0
- package/papyrus-web-components/dist/widgets/languageExpression/LanguageExpressionSection.d.ts +21 -0
- package/papyrus-web-components/dist/widgets/languageExpression/LanguageExpressionSection.d.ts.map +1 -0
- package/papyrus-web-components/dist/widgets/primitiveList/PrimitiveListWidgetPreview.d.ts +19 -0
- package/papyrus-web-components/dist/widgets/primitiveList/PrimitiveListWidgetPreview.d.ts.map +1 -0
- package/papyrus-web-components/dist/widgets/primitiveList/PrimitiveListWidgetPropertySection.d.ts +7 -0
- package/papyrus-web-components/dist/widgets/primitiveList/PrimitiveListWidgetPropertySection.d.ts.map +1 -0
- package/papyrus-web-components/dist/widgets/primitiveList/PrimitiveListWidgetPropertySection.types.d.ts +135 -0
- package/papyrus-web-components/dist/widgets/primitiveList/PrimitiveListWidgetPropertySection.types.d.ts.map +1 -0
- package/papyrus-web-components/dist/widgets/primitiveRadio/PrimitiveRadioFragment.type.d.ts +42 -0
- package/papyrus-web-components/dist/widgets/primitiveRadio/PrimitiveRadioFragment.type.d.ts.map +1 -0
- package/papyrus-web-components/dist/widgets/primitiveRadio/PrimitiveRadioIcon.d.ts +16 -0
- package/papyrus-web-components/dist/widgets/primitiveRadio/PrimitiveRadioIcon.d.ts.map +1 -0
- package/papyrus-web-components/dist/widgets/primitiveRadio/PrimitiveRadioPreview.d.ts +19 -0
- package/papyrus-web-components/dist/widgets/primitiveRadio/PrimitiveRadioPreview.d.ts.map +1 -0
- package/papyrus-web-components/dist/widgets/primitiveRadio/PrimitiveRadioSection.d.ts +18 -0
- package/papyrus-web-components/dist/widgets/primitiveRadio/PrimitiveRadioSection.d.ts.map +1 -0
- package/papyrus-web-components/package.json +105 -0
- package/papyrus-web-components/src/diagram-tools/EditProjectView.types.ts +56 -0
- package/papyrus-web-components/src/diagram-tools/FilterableSortableList.tsx +172 -0
- package/papyrus-web-components/src/diagram-tools/FilterableSortableList.types.ts +34 -0
- package/papyrus-web-components/src/diagram-tools/ModelBrowserFilterBar.tsx +73 -0
- package/papyrus-web-components/src/diagram-tools/ModelBrowserFilterBar.types.ts +19 -0
- package/papyrus-web-components/src/diagram-tools/PapyrusPopupToolContribution.tsx +206 -0
- package/papyrus-web-components/src/diagram-tools/PapyrusPopupToolContribution.types.ts +61 -0
- package/papyrus-web-components/src/diagram-tools/TransferModal.tsx +235 -0
- package/papyrus-web-components/src/diagram-tools/TransferModal.types.ts +35 -0
- package/papyrus-web-components/src/index.ts +61 -0
- package/papyrus-web-components/src/nodes/NodesDocumentTransform.ts +242 -0
- package/papyrus-web-components/src/nodes/cuboid/CuboidNode.tsx +183 -0
- package/papyrus-web-components/src/nodes/cuboid/CuboidNode.types.ts +30 -0
- package/papyrus-web-components/src/nodes/cuboid/CuboidNodeConverter.ts +201 -0
- package/papyrus-web-components/src/nodes/cuboid/CuboidNodeLayoutHandler.ts +283 -0
- package/papyrus-web-components/src/nodes/cuboid/CuboidNodeListConverter.ts +238 -0
- package/papyrus-web-components/src/nodes/cuboid/CuboidNodeListLayoutHandler.ts +260 -0
- package/papyrus-web-components/src/nodes/customImage/CustomImageNode.tsx +153 -0
- package/papyrus-web-components/src/nodes/customImage/CustomImageNode.types.ts +37 -0
- package/papyrus-web-components/src/nodes/customImage/CustomImageNodeConverter.ts +212 -0
- package/papyrus-web-components/src/nodes/customImage/CustomImageNodeLayoutHandler.ts +53 -0
- package/papyrus-web-components/src/nodes/ellipse/EllipseNode.tsx +119 -0
- package/papyrus-web-components/src/nodes/ellipse/EllipseNode.types.ts +35 -0
- package/papyrus-web-components/src/nodes/ellipse/EllipseNodeConverter.ts +208 -0
- package/papyrus-web-components/src/nodes/ellipse/EllipseNodeLayoutHandler.ts +284 -0
- package/papyrus-web-components/src/nodes/innerFlag/InnerFlagNode.tsx +156 -0
- package/papyrus-web-components/src/nodes/innerFlag/InnerFlagNode.types.ts +23 -0
- package/papyrus-web-components/src/nodes/innerFlag/InnerFlagNodeConverter.ts +200 -0
- package/papyrus-web-components/src/nodes/innerFlag/InnerFlagNodeLayoutHandler.ts +118 -0
- package/papyrus-web-components/src/nodes/note/NoteLabel.tsx +146 -0
- package/papyrus-web-components/src/nodes/note/NoteNode.tsx +168 -0
- package/papyrus-web-components/src/nodes/note/NoteNode.types.ts +43 -0
- package/papyrus-web-components/src/nodes/note/NoteNodeConverter.ts +200 -0
- package/papyrus-web-components/src/nodes/note/NoteNodeLayoutHandler.ts +85 -0
- package/papyrus-web-components/src/nodes/outerFlag/OuterFlagNode.tsx +153 -0
- package/papyrus-web-components/src/nodes/outerFlag/OuterFlagNode.types.ts +23 -0
- package/papyrus-web-components/src/nodes/outerFlag/OuterFlagNodeConverter.ts +200 -0
- package/papyrus-web-components/src/nodes/outerFlag/OuterFlagNodeLayoutHandler.ts +116 -0
- package/papyrus-web-components/src/nodes/package/PackageNode.tsx +200 -0
- package/papyrus-web-components/src/nodes/package/PackageNode.types.ts +30 -0
- package/papyrus-web-components/src/nodes/package/PackageNodeConverter.ts +243 -0
- package/papyrus-web-components/src/nodes/package/PackageNodeLayoutHandler.ts +229 -0
- package/papyrus-web-components/src/nodes/package/PackageNodeListConverter.ts +254 -0
- package/papyrus-web-components/src/nodes/package/PackageNodeListLayoutHandler.ts +253 -0
- package/papyrus-web-components/src/nodes/rectangleWithExternalLabel/RectangleWithExternalLabelNode.tsx +155 -0
- package/papyrus-web-components/src/nodes/rectangleWithExternalLabel/RectangleWithExternalLabelNode.types.ts +23 -0
- package/papyrus-web-components/src/nodes/rectangleWithExternalLabel/RectangleWithExternalLabelNodeConverter.ts +205 -0
- package/papyrus-web-components/src/nodes/rectangleWithExternalLabel/RectangleWithExternalLabelNodeLayoutHandler.ts +55 -0
- package/papyrus-web-components/src/profile/apply-profile/ApplyProfileModal.tsx +238 -0
- package/papyrus-web-components/src/profile/apply-profile/ApplyProfileModal.types.tsx +65 -0
- package/papyrus-web-components/src/profile/apply-profile/ApplyProfileModalMachine.tsx +175 -0
- package/papyrus-web-components/src/profile/apply-profile/UMLModelTreeItemContextMenuContribution.tsx +74 -0
- package/papyrus-web-components/src/profile/apply-stereotype/ApplyStereotypeModal.tsx +248 -0
- package/papyrus-web-components/src/profile/apply-stereotype/ApplyStereotypeModal.types.ts +57 -0
- package/papyrus-web-components/src/profile/apply-stereotype/ApplyStereotypeModalMachine.ts +185 -0
- package/papyrus-web-components/src/profile/apply-stereotype/UMLElementTreeItemContextMenuContribution.tsx +70 -0
- package/papyrus-web-components/src/profile/publish-profile/PublishProfileDialog.tsx +380 -0
- package/papyrus-web-components/src/profile/publish-profile/PublishProfileDialog.types.ts +84 -0
- package/papyrus-web-components/src/profile/publish-profile/PublishProfileTreeItemContextMenuContribution.tsx +59 -0
- package/papyrus-web-components/src/widgets/CustomWidgetsDocumentTransform.ts +215 -0
- package/papyrus-web-components/src/widgets/containmentReference/ContainmentReferenceFragment.types.ts +178 -0
- package/papyrus-web-components/src/widgets/containmentReference/ContainmentReferenceIcon.tsx +38 -0
- package/papyrus-web-components/src/widgets/containmentReference/ContainmentReferencePreview.tsx +106 -0
- package/papyrus-web-components/src/widgets/containmentReference/ContainmentReferenceSection.tsx +508 -0
- package/papyrus-web-components/src/widgets/containmentReference/ReorderIcon.tsx +31 -0
- package/papyrus-web-components/src/widgets/containmentReference/dialogs/CreateNewChildDialog.tsx +104 -0
- package/papyrus-web-components/src/widgets/containmentReference/dialogs/CreateNewChildDialog.types.ts +24 -0
- package/papyrus-web-components/src/widgets/customImage/AddImageIcon.tsx +35 -0
- package/papyrus-web-components/src/widgets/customImage/CustomImageFragment.types.ts +98 -0
- package/papyrus-web-components/src/widgets/customImage/CustomImageIcon.tsx +34 -0
- package/papyrus-web-components/src/widgets/customImage/CustomImagePreview.tsx +87 -0
- package/papyrus-web-components/src/widgets/customImage/CustomImageSection.tsx +348 -0
- package/papyrus-web-components/src/widgets/dialogs/ReorderItemsDialog.tsx +145 -0
- package/papyrus-web-components/src/widgets/dialogs/ReorderItemsDialog.types.ts +30 -0
- package/papyrus-web-components/src/widgets/languageExpression/LanguageExpressionFragment.types.ts +117 -0
- package/papyrus-web-components/src/widgets/languageExpression/LanguageExpressionIcon.tsx +36 -0
- package/papyrus-web-components/src/widgets/languageExpression/LanguageExpressionPreview.tsx +163 -0
- package/papyrus-web-components/src/widgets/languageExpression/LanguageExpressionSection.tsx +548 -0
- package/papyrus-web-components/src/widgets/primitiveList/PrimitiveListWidgetPreview.tsx +158 -0
- package/papyrus-web-components/src/widgets/primitiveList/PrimitiveListWidgetPropertySection.tsx +616 -0
- package/papyrus-web-components/src/widgets/primitiveList/PrimitiveListWidgetPropertySection.types.ts +162 -0
- package/papyrus-web-components/src/widgets/primitiveRadio/PrimitiveRadioFragment.type.ts +49 -0
- package/papyrus-web-components/src/widgets/primitiveRadio/PrimitiveRadioIcon.tsx +36 -0
- package/papyrus-web-components/src/widgets/primitiveRadio/PrimitiveRadioPreview.tsx +88 -0
- package/papyrus-web-components/src/widgets/primitiveRadio/PrimitiveRadioSection.tsx +128 -0
- package/papyrus-web-components/tsconfig.json +14 -0
- package/papyrus-web-components/vite.config.js +26 -0
- package/turbo.json +31 -0
package/papyrus-web-components/src/widgets/containmentReference/ContainmentReferenceSection.tsx
ADDED
|
@@ -0,0 +1,508 @@
|
|
|
1
|
+
/*****************************************************************************
|
|
2
|
+
* Copyright (c) 2023, 2025 CEA LIST, Obeo.
|
|
3
|
+
*
|
|
4
|
+
* All rights reserved. This program and the accompanying materials
|
|
5
|
+
* are made available under the terms of the Eclipse Public License 2.0
|
|
6
|
+
* which accompanies this distribution, and is available at
|
|
7
|
+
* https://www.eclipse.org/legal/epl-2.0/
|
|
8
|
+
*
|
|
9
|
+
* SPDX-License-Identifier: EPL-2.0
|
|
10
|
+
*
|
|
11
|
+
* Contributors:
|
|
12
|
+
* Obeo - Initial API and implementation
|
|
13
|
+
***************************************************************************/
|
|
14
|
+
|
|
15
|
+
import { gql, useLazyQuery, useMutation } from '@apollo/client';
|
|
16
|
+
import { IconOverlay, getCSSColor, useMultiToast, useSelection } from '@eclipse-sirius/sirius-components-core';
|
|
17
|
+
import {
|
|
18
|
+
PropertySectionComponentProps,
|
|
19
|
+
PropertySectionLabel,
|
|
20
|
+
getTextDecorationLineValue,
|
|
21
|
+
useClickHandler,
|
|
22
|
+
} from '@eclipse-sirius/sirius-components-forms';
|
|
23
|
+
import {
|
|
24
|
+
GQLErrorPayload,
|
|
25
|
+
GQLReferenceWidgetStyle,
|
|
26
|
+
GQLSuccessPayload,
|
|
27
|
+
} from '@eclipse-sirius/sirius-components-widget-reference';
|
|
28
|
+
import AddIcon from '@mui/icons-material/Add';
|
|
29
|
+
import { Typography } from '@mui/material';
|
|
30
|
+
import Chip from '@mui/material/Chip';
|
|
31
|
+
import IconButton from '@mui/material/IconButton';
|
|
32
|
+
import { useEffect, useState } from 'react';
|
|
33
|
+
import { makeStyles } from 'tss-react/mui';
|
|
34
|
+
import ReorderItemsDialog from '../dialogs/ReorderItemsDialog';
|
|
35
|
+
import {
|
|
36
|
+
ContainmentReferenceDialogKind,
|
|
37
|
+
GQLClickContainmentReferenceItemMutationData,
|
|
38
|
+
GQLClickContainmentReferenceItemMutationVariables,
|
|
39
|
+
GQLClickContainmentReferenceItemPayload,
|
|
40
|
+
GQLContainmentReferenceItem,
|
|
41
|
+
GQLContainmentReferenceWidget,
|
|
42
|
+
GQLCreateElementInReferenceMutationData,
|
|
43
|
+
GQLCreateElementInReferenceMutationVariables,
|
|
44
|
+
GQLGetChildCreationDescriptionsQueryData,
|
|
45
|
+
GQLGetChildCreationDescriptionsQueryVariables,
|
|
46
|
+
GQLMoveContainmentReferenceItemMutationData,
|
|
47
|
+
GQLMoveContainmentReferenceItemMutationVariables,
|
|
48
|
+
GQLRemoveContainmentReferenceItemMutationData,
|
|
49
|
+
GQLRemoveContainmentReferenceItemMutationVariables,
|
|
50
|
+
GQLRemoveContainmentReferenceItemPayload,
|
|
51
|
+
} from './ContainmentReferenceFragment.types';
|
|
52
|
+
import ReorderIcon from './ReorderIcon';
|
|
53
|
+
import CreateNewChildDialog from './dialogs/CreateNewChildDialog';
|
|
54
|
+
import { ChildCreationDescription } from './dialogs/CreateNewChildDialog.types';
|
|
55
|
+
|
|
56
|
+
const useStyles = makeStyles<GQLReferenceWidgetStyle>()(
|
|
57
|
+
(theme, { color, fontSize, italic, bold, underline, strikeThrough }) => ({
|
|
58
|
+
labelItemStyle: {
|
|
59
|
+
color: color ? getCSSColor(color, theme) : undefined,
|
|
60
|
+
fontSize: fontSize ?? undefined,
|
|
61
|
+
fontStyle: italic ? 'italic' : undefined,
|
|
62
|
+
fontWeight: bold ? 'bold' : undefined,
|
|
63
|
+
textDecorationLine: getTextDecorationLineValue(underline, strikeThrough),
|
|
64
|
+
},
|
|
65
|
+
chip: {
|
|
66
|
+
margin: '3px',
|
|
67
|
+
},
|
|
68
|
+
toolbar: {
|
|
69
|
+
marginLeft: 'auto',
|
|
70
|
+
display: 'flex',
|
|
71
|
+
alignItems: 'center',
|
|
72
|
+
},
|
|
73
|
+
empty: {
|
|
74
|
+
color: '#B3BFC5',
|
|
75
|
+
},
|
|
76
|
+
})
|
|
77
|
+
);
|
|
78
|
+
|
|
79
|
+
export const clickContainmentReferenceItemMutation = gql`
|
|
80
|
+
mutation clickContainmentReferenceItem($input: ClickContainmentReferenceItemInput!) {
|
|
81
|
+
clickContainmentReferenceItem(input: $input) {
|
|
82
|
+
__typename
|
|
83
|
+
... on ErrorPayload {
|
|
84
|
+
messages {
|
|
85
|
+
body
|
|
86
|
+
level
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
... on SuccessPayload {
|
|
90
|
+
messages {
|
|
91
|
+
body
|
|
92
|
+
level
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
`;
|
|
98
|
+
|
|
99
|
+
export const removeContainmentReferenceItemMutation = gql`
|
|
100
|
+
mutation removeContainmentReferenceItem($input: RemoveContainmentReferenceItemInput!) {
|
|
101
|
+
removeContainmentReferenceItem(input: $input) {
|
|
102
|
+
__typename
|
|
103
|
+
... on ErrorPayload {
|
|
104
|
+
messages {
|
|
105
|
+
body
|
|
106
|
+
level
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
... on SuccessPayload {
|
|
110
|
+
messages {
|
|
111
|
+
body
|
|
112
|
+
level
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
`;
|
|
118
|
+
|
|
119
|
+
export const moveContainmentReferenceItemMutation = gql`
|
|
120
|
+
mutation moveContainmentReferenceItem($input: MoveContainmentReferenceItemInput!) {
|
|
121
|
+
moveContainmentReferenceItem(input: $input) {
|
|
122
|
+
__typename
|
|
123
|
+
... on ErrorPayload {
|
|
124
|
+
messages {
|
|
125
|
+
body
|
|
126
|
+
level
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
... on SuccessPayload {
|
|
130
|
+
messages {
|
|
131
|
+
body
|
|
132
|
+
level
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
`;
|
|
138
|
+
|
|
139
|
+
const getChildCreationDescriptionsQuery = gql`
|
|
140
|
+
query getChildCreationDescriptions(
|
|
141
|
+
$editingContextId: ID!
|
|
142
|
+
$containerId: ID!
|
|
143
|
+
$referenceKind: String
|
|
144
|
+
$descriptionId: String!
|
|
145
|
+
) {
|
|
146
|
+
viewer {
|
|
147
|
+
editingContext(editingContextId: $editingContextId) {
|
|
148
|
+
referenceWidgetChildCreationDescriptions(
|
|
149
|
+
containerId: $containerId
|
|
150
|
+
referenceKind: $referenceKind
|
|
151
|
+
descriptionId: $descriptionId
|
|
152
|
+
) {
|
|
153
|
+
id
|
|
154
|
+
label
|
|
155
|
+
iconURL
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
`;
|
|
161
|
+
|
|
162
|
+
const createElementInReferenceMutation = gql`
|
|
163
|
+
mutation createElementInReference($input: CreateElementInReferenceInput!) {
|
|
164
|
+
createElementInReference(input: $input) {
|
|
165
|
+
__typename
|
|
166
|
+
... on CreateElementInReferenceSuccessPayload {
|
|
167
|
+
object {
|
|
168
|
+
id
|
|
169
|
+
label
|
|
170
|
+
kind
|
|
171
|
+
}
|
|
172
|
+
messages {
|
|
173
|
+
body
|
|
174
|
+
level
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
... on ErrorPayload {
|
|
178
|
+
messages {
|
|
179
|
+
body
|
|
180
|
+
level
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
`;
|
|
186
|
+
|
|
187
|
+
const isErrorPayload = (
|
|
188
|
+
payload: GQLClickContainmentReferenceItemPayload | GQLRemoveContainmentReferenceItemPayload
|
|
189
|
+
): payload is GQLErrorPayload => payload.__typename === 'ErrorPayload';
|
|
190
|
+
const isSuccessPayload = (
|
|
191
|
+
payload: GQLClickContainmentReferenceItemPayload | GQLRemoveContainmentReferenceItemPayload
|
|
192
|
+
): payload is GQLSuccessPayload => payload.__typename === 'SuccessPayload';
|
|
193
|
+
|
|
194
|
+
const ContainmentReferenceSection = ({
|
|
195
|
+
editingContextId,
|
|
196
|
+
formId,
|
|
197
|
+
widget,
|
|
198
|
+
readOnly,
|
|
199
|
+
}: PropertySectionComponentProps<GQLContainmentReferenceWidget>) => {
|
|
200
|
+
const styleProps: GQLReferenceWidgetStyle = {
|
|
201
|
+
color: widget.style?.color ?? null,
|
|
202
|
+
fontSize: widget.style?.fontSize ?? null,
|
|
203
|
+
italic: widget.style?.italic ?? null,
|
|
204
|
+
bold: widget.style?.bold ?? null,
|
|
205
|
+
underline: widget.style?.underline ?? null,
|
|
206
|
+
strikeThrough: widget.style?.strikeThrough ?? null,
|
|
207
|
+
};
|
|
208
|
+
const { classes } = useStyles(styleProps);
|
|
209
|
+
|
|
210
|
+
const [openDialog, setOpenDialog] = useState<ContainmentReferenceDialogKind | null>(null);
|
|
211
|
+
const [childTypes, setChildTypes] = useState<ChildCreationDescription[]>([]);
|
|
212
|
+
|
|
213
|
+
const { setSelection } = useSelection();
|
|
214
|
+
|
|
215
|
+
const { addErrorMessage, addMessages } = useMultiToast();
|
|
216
|
+
|
|
217
|
+
const [clickReferenceValue, { loading: clickLoading, error: clickError, data: clickData }] = useMutation<
|
|
218
|
+
GQLClickContainmentReferenceItemMutationData,
|
|
219
|
+
GQLClickContainmentReferenceItemMutationVariables
|
|
220
|
+
>(clickContainmentReferenceItemMutation);
|
|
221
|
+
const [removeContainmentReferenceItem, { loading: removeLoading, error: removeError, data: removeData }] =
|
|
222
|
+
useMutation<GQLRemoveContainmentReferenceItemMutationData, GQLRemoveContainmentReferenceItemMutationVariables>(
|
|
223
|
+
removeContainmentReferenceItemMutation
|
|
224
|
+
);
|
|
225
|
+
const [moveReferenceValue, { loading: moveLoading, error: moveError, data: moveData }] = useMutation<
|
|
226
|
+
GQLMoveContainmentReferenceItemMutationData,
|
|
227
|
+
GQLMoveContainmentReferenceItemMutationVariables
|
|
228
|
+
>(moveContainmentReferenceItemMutation);
|
|
229
|
+
const [
|
|
230
|
+
getChildCreationDescription,
|
|
231
|
+
{
|
|
232
|
+
loading: childCreationDescriptionsLoading,
|
|
233
|
+
data: childCreationDescriptionsData,
|
|
234
|
+
error: childCreationDescriptionsError,
|
|
235
|
+
},
|
|
236
|
+
] = useLazyQuery<GQLGetChildCreationDescriptionsQueryData, GQLGetChildCreationDescriptionsQueryVariables>(
|
|
237
|
+
getChildCreationDescriptionsQuery
|
|
238
|
+
);
|
|
239
|
+
const [
|
|
240
|
+
createElementInReference,
|
|
241
|
+
{ loading: createElementLoading, error: createElementError, data: createElementData },
|
|
242
|
+
] = useMutation<GQLCreateElementInReferenceMutationData, GQLCreateElementInReferenceMutationVariables>(
|
|
243
|
+
createElementInReferenceMutation
|
|
244
|
+
);
|
|
245
|
+
|
|
246
|
+
useEffect(() => {
|
|
247
|
+
if (!clickLoading) {
|
|
248
|
+
if (clickError) {
|
|
249
|
+
addErrorMessage('An unexpected error has occurred, please refresh the page');
|
|
250
|
+
}
|
|
251
|
+
if (clickData) {
|
|
252
|
+
const { clickContainmentReferenceItem } = clickData;
|
|
253
|
+
if (isErrorPayload(clickContainmentReferenceItem) || isSuccessPayload(clickContainmentReferenceItem)) {
|
|
254
|
+
addMessages(clickContainmentReferenceItem.messages);
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
}, [clickLoading, clickError, clickData]);
|
|
259
|
+
useEffect(() => {
|
|
260
|
+
if (!removeLoading) {
|
|
261
|
+
if (removeError) {
|
|
262
|
+
addErrorMessage('An unexpected error has occurred, please refresh the page');
|
|
263
|
+
}
|
|
264
|
+
if (removeData) {
|
|
265
|
+
const { removeContainmentReferenceItem } = removeData;
|
|
266
|
+
if (isErrorPayload(removeContainmentReferenceItem) || isSuccessPayload(removeContainmentReferenceItem)) {
|
|
267
|
+
addMessages(removeContainmentReferenceItem.messages);
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
}, [removeLoading, removeError, removeData]);
|
|
272
|
+
useEffect(() => {
|
|
273
|
+
if (!moveLoading) {
|
|
274
|
+
if (moveError) {
|
|
275
|
+
addErrorMessage('An unexpected error has occurred, please refresh the page');
|
|
276
|
+
}
|
|
277
|
+
if (moveData) {
|
|
278
|
+
const { moveContainmentReferenceItem } = moveData;
|
|
279
|
+
if (isErrorPayload(moveContainmentReferenceItem) || isSuccessPayload(moveContainmentReferenceItem)) {
|
|
280
|
+
addMessages(moveContainmentReferenceItem.messages);
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
}, [moveLoading, moveError, moveData]);
|
|
285
|
+
useEffect(() => {
|
|
286
|
+
if (!childCreationDescriptionsLoading) {
|
|
287
|
+
if (childCreationDescriptionsError) {
|
|
288
|
+
addErrorMessage('An unexpected error has occurred, please refresh the page');
|
|
289
|
+
}
|
|
290
|
+
if (childCreationDescriptionsData) {
|
|
291
|
+
const { referenceWidgetChildCreationDescriptions } = childCreationDescriptionsData.viewer.editingContext;
|
|
292
|
+
if (referenceWidgetChildCreationDescriptions.length > 1) {
|
|
293
|
+
setChildTypes(referenceWidgetChildCreationDescriptions);
|
|
294
|
+
setOpenDialog('NEW_INSTANCE');
|
|
295
|
+
} else if (referenceWidgetChildCreationDescriptions.length === 1) {
|
|
296
|
+
callCreateElementInReference(referenceWidgetChildCreationDescriptions[0].id);
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
}, [childCreationDescriptionsLoading, childCreationDescriptionsData, childCreationDescriptionsError]);
|
|
301
|
+
useEffect(() => {
|
|
302
|
+
if (!createElementLoading) {
|
|
303
|
+
if (createElementError) {
|
|
304
|
+
addErrorMessage('An unexpected error has occurred, please refresh the page');
|
|
305
|
+
}
|
|
306
|
+
if (createElementData) {
|
|
307
|
+
const { createElementInReference } = createElementData;
|
|
308
|
+
if (isErrorPayload(createElementInReference) || isSuccessPayload(createElementInReference)) {
|
|
309
|
+
const { messages } = createElementInReference;
|
|
310
|
+
addMessages(messages);
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
}, [createElementLoading, createElementData, createElementError]);
|
|
315
|
+
|
|
316
|
+
const callMoveContainmentReferenceItem = (valueId: string, fromIndex: number, toIndex: number) => {
|
|
317
|
+
if (valueId && fromIndex !== -1 && toIndex !== -1) {
|
|
318
|
+
const variables: GQLMoveContainmentReferenceItemMutationVariables = {
|
|
319
|
+
input: {
|
|
320
|
+
id: crypto.randomUUID(),
|
|
321
|
+
editingContextId,
|
|
322
|
+
representationId: formId,
|
|
323
|
+
referenceWidgetId: widget.id,
|
|
324
|
+
referenceItemId: valueId,
|
|
325
|
+
fromIndex,
|
|
326
|
+
toIndex,
|
|
327
|
+
},
|
|
328
|
+
};
|
|
329
|
+
moveReferenceValue({ variables });
|
|
330
|
+
}
|
|
331
|
+
};
|
|
332
|
+
|
|
333
|
+
const handleReferenceItemSimpleClick = (item: GQLContainmentReferenceItem) => {
|
|
334
|
+
const { id } = item;
|
|
335
|
+
setSelection({ entries: [{ id }] });
|
|
336
|
+
if (item.hasClickAction) {
|
|
337
|
+
const variables: GQLClickContainmentReferenceItemMutationVariables = {
|
|
338
|
+
input: {
|
|
339
|
+
id: crypto.randomUUID(),
|
|
340
|
+
editingContextId,
|
|
341
|
+
representationId: formId,
|
|
342
|
+
referenceWidgetId: widget.id,
|
|
343
|
+
referenceItemId: item.id,
|
|
344
|
+
clickEventKind: 'SINGLE_CLICK',
|
|
345
|
+
},
|
|
346
|
+
};
|
|
347
|
+
clickReferenceValue({ variables });
|
|
348
|
+
}
|
|
349
|
+
};
|
|
350
|
+
const handleReferenceItemDoubleClick = (item: GQLContainmentReferenceItem) => {
|
|
351
|
+
const { id } = item;
|
|
352
|
+
setSelection({ entries: [{ id }] });
|
|
353
|
+
if (item.hasClickAction) {
|
|
354
|
+
const variables: GQLClickContainmentReferenceItemMutationVariables = {
|
|
355
|
+
input: {
|
|
356
|
+
id: crypto.randomUUID(),
|
|
357
|
+
editingContextId,
|
|
358
|
+
representationId: formId,
|
|
359
|
+
referenceWidgetId: widget.id,
|
|
360
|
+
referenceItemId: item.id,
|
|
361
|
+
clickEventKind: 'DOUBLE_CLICK',
|
|
362
|
+
},
|
|
363
|
+
};
|
|
364
|
+
clickReferenceValue({ variables });
|
|
365
|
+
}
|
|
366
|
+
};
|
|
367
|
+
|
|
368
|
+
const callCreateElementInReference = (newChildDescriptionId: string) => {
|
|
369
|
+
if (newChildDescriptionId !== null) {
|
|
370
|
+
const input = {
|
|
371
|
+
id: crypto.randomUUID(),
|
|
372
|
+
editingContextId,
|
|
373
|
+
representationId: formId,
|
|
374
|
+
referenceWidgetId: widget.id,
|
|
375
|
+
containerId: widget.ownerId,
|
|
376
|
+
domainId: null,
|
|
377
|
+
creationDescriptionId: newChildDescriptionId,
|
|
378
|
+
descriptionId: widget.descriptionId,
|
|
379
|
+
};
|
|
380
|
+
createElementInReference({ variables: { input } });
|
|
381
|
+
}
|
|
382
|
+
};
|
|
383
|
+
|
|
384
|
+
const handleCloseCreateNewChildDialog = (newChildDescriptionId: string | null) => {
|
|
385
|
+
setChildTypes([]);
|
|
386
|
+
setOpenDialog(null);
|
|
387
|
+
if (newChildDescriptionId) {
|
|
388
|
+
callCreateElementInReference(newChildDescriptionId);
|
|
389
|
+
}
|
|
390
|
+
};
|
|
391
|
+
|
|
392
|
+
const clickHandler = useClickHandler<GQLContainmentReferenceItem>(
|
|
393
|
+
handleReferenceItemSimpleClick,
|
|
394
|
+
handleReferenceItemDoubleClick
|
|
395
|
+
);
|
|
396
|
+
|
|
397
|
+
const handleDeleteItem = (item: GQLContainmentReferenceItem) => {
|
|
398
|
+
if (item?.id) {
|
|
399
|
+
if (widget.referenceValues && widget.referenceValues.find((value) => value.id === item.id)) {
|
|
400
|
+
const variables: GQLRemoveContainmentReferenceItemMutationVariables = {
|
|
401
|
+
input: {
|
|
402
|
+
id: crypto.randomUUID(),
|
|
403
|
+
editingContextId,
|
|
404
|
+
representationId: formId,
|
|
405
|
+
referenceWidgetId: widget.id,
|
|
406
|
+
referenceItemId: item.id,
|
|
407
|
+
},
|
|
408
|
+
};
|
|
409
|
+
removeContainmentReferenceItem({ variables });
|
|
410
|
+
}
|
|
411
|
+
}
|
|
412
|
+
};
|
|
413
|
+
|
|
414
|
+
const handleOpenCreateNewChildDialog = () => {
|
|
415
|
+
getChildCreationDescription({
|
|
416
|
+
variables: {
|
|
417
|
+
editingContextId,
|
|
418
|
+
containerId: widget.ownerId,
|
|
419
|
+
referenceKind: widget.containmentReference.referenceKind,
|
|
420
|
+
descriptionId: widget.descriptionId,
|
|
421
|
+
},
|
|
422
|
+
});
|
|
423
|
+
};
|
|
424
|
+
|
|
425
|
+
const getDialog = (): JSX.Element | null => {
|
|
426
|
+
if (!openDialog) return null;
|
|
427
|
+
if (openDialog === 'REORDER') {
|
|
428
|
+
return (
|
|
429
|
+
<ReorderItemsDialog
|
|
430
|
+
items={widget.referenceValues?.map(({ label, id, iconURL }) => ({ label, id, iconURL })) ?? []}
|
|
431
|
+
moveElement={callMoveContainmentReferenceItem}
|
|
432
|
+
onClose={() => setOpenDialog(null)}
|
|
433
|
+
/>
|
|
434
|
+
);
|
|
435
|
+
} else if (openDialog === 'NEW_INSTANCE') {
|
|
436
|
+
return <CreateNewChildDialog childTypes={childTypes} onClose={handleCloseCreateNewChildDialog} />;
|
|
437
|
+
}
|
|
438
|
+
return null;
|
|
439
|
+
};
|
|
440
|
+
|
|
441
|
+
const dialog: JSX.Element | null = getDialog();
|
|
442
|
+
|
|
443
|
+
const canReorder =
|
|
444
|
+
!readOnly &&
|
|
445
|
+
!widget.readOnly &&
|
|
446
|
+
widget.containmentReference.isMany &&
|
|
447
|
+
widget.referenceValues &&
|
|
448
|
+
widget.referenceValues.length > 1;
|
|
449
|
+
|
|
450
|
+
const isDisabled =
|
|
451
|
+
readOnly || widget.readOnly || (!widget.containmentReference.isMany && (widget.referenceValues?.length ?? 0) > 0);
|
|
452
|
+
|
|
453
|
+
return (
|
|
454
|
+
<>
|
|
455
|
+
<div data-testid={`containment-reference-${widget.label}`}>
|
|
456
|
+
<div style={{ display: 'flex' }}>
|
|
457
|
+
<PropertySectionLabel
|
|
458
|
+
editingContextId={editingContextId}
|
|
459
|
+
formId={formId}
|
|
460
|
+
widget={widget}
|
|
461
|
+
data-testid={widget.label}
|
|
462
|
+
/>
|
|
463
|
+
<div className={classes.toolbar} data-testid="containment-reference-toolbar">
|
|
464
|
+
<IconButton
|
|
465
|
+
data-testid="containment-reference-create-child"
|
|
466
|
+
onClick={handleOpenCreateNewChildDialog}
|
|
467
|
+
disabled={isDisabled}
|
|
468
|
+
size="small">
|
|
469
|
+
<AddIcon />
|
|
470
|
+
</IconButton>
|
|
471
|
+
{widget.containmentReference.canMove && (
|
|
472
|
+
<IconButton
|
|
473
|
+
data-testid="containment-reference-reorder-children"
|
|
474
|
+
onClick={() => setOpenDialog('REORDER')}
|
|
475
|
+
disabled={!canReorder}
|
|
476
|
+
size="small">
|
|
477
|
+
<ReorderIcon fill={`${canReorder ? '#00000077' : '#B3BFC5'}`} />
|
|
478
|
+
</IconButton>
|
|
479
|
+
)}
|
|
480
|
+
</div>
|
|
481
|
+
</div>
|
|
482
|
+
{widget.referenceValues && widget.referenceValues.length > 0 ? (
|
|
483
|
+
widget.referenceValues.map((item, index) => (
|
|
484
|
+
<Chip
|
|
485
|
+
key={index}
|
|
486
|
+
classes={{ label: classes.labelItemStyle, root: classes.chip }}
|
|
487
|
+
label={item.label}
|
|
488
|
+
data-testid={`${item.label}`}
|
|
489
|
+
icon={
|
|
490
|
+
<div>
|
|
491
|
+
<IconOverlay iconURLs={item.iconURL} alt={item.label} />
|
|
492
|
+
</div>
|
|
493
|
+
}
|
|
494
|
+
clickable={!readOnly && !widget.readOnly}
|
|
495
|
+
onClick={() => clickHandler(item)}
|
|
496
|
+
onDelete={() => handleDeleteItem(item)}
|
|
497
|
+
/>
|
|
498
|
+
))
|
|
499
|
+
) : (
|
|
500
|
+
<Typography className={classes.empty}>None</Typography>
|
|
501
|
+
)}
|
|
502
|
+
</div>
|
|
503
|
+
{dialog}
|
|
504
|
+
</>
|
|
505
|
+
);
|
|
506
|
+
};
|
|
507
|
+
|
|
508
|
+
export default ContainmentReferenceSection;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/*****************************************************************************
|
|
2
|
+
* Copyright (c) 2023, 2025 CEA LIST, Obeo.
|
|
3
|
+
*
|
|
4
|
+
* All rights reserved. This program and the accompanying materials
|
|
5
|
+
* are made available under the terms of the Eclipse Public License 2.0
|
|
6
|
+
* which accompanies this distribution, and is available at
|
|
7
|
+
* https://www.eclipse.org/legal/epl-2.0/
|
|
8
|
+
*
|
|
9
|
+
* SPDX-License-Identifier: EPL-2.0
|
|
10
|
+
*
|
|
11
|
+
* Contributors:
|
|
12
|
+
* Obeo - Initial API and implementation
|
|
13
|
+
***************************************************************************/
|
|
14
|
+
|
|
15
|
+
const ReorderIcon = ({ ...props }) => {
|
|
16
|
+
return (
|
|
17
|
+
<svg width="24px" height="24px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
18
|
+
<g strokeWidth="0"></g>
|
|
19
|
+
<g strokeLinecap="round" strokeLinejoin="round"></g>
|
|
20
|
+
<g>
|
|
21
|
+
<path
|
|
22
|
+
fillRule="evenodd"
|
|
23
|
+
clipRule="evenodd"
|
|
24
|
+
d="M7 5C7.55228 5 8 5.44772 8 6V15.5858L10.2929 13.2929C10.6834 12.9024 11.3166 12.9024 11.7071 13.2929C12.0976 13.6834 12.0976 14.3166 11.7071 14.7071L7.70711 18.7071C7.31658 19.0976 6.68342 19.0976 6.29289 18.7071L2.29289 14.7071C1.90237 14.3166 1.90237 13.6834 2.29289 13.2929C2.68342 12.9024 3.31658 12.9024 3.70711 13.2929L6 15.5858V6C6 5.44772 6.44772 5 7 5ZM16.2929 5.29289C16.6834 4.90237 17.3166 4.90237 17.7071 5.29289L21.7071 9.29289C22.0976 9.68342 22.0976 10.3166 21.7071 10.7071C21.3166 11.0976 20.6834 11.0976 20.2929 10.7071L18 8.41421V18C18 18.5523 17.5523 19 17 19C16.4477 19 16 18.5523 16 18V8.41421L13.7071 10.7071C13.3166 11.0976 12.6834 11.0976 12.2929 10.7071C11.9024 10.3166 11.9024 9.68342 12.2929 9.29289L16.2929 5.29289Z"
|
|
25
|
+
{...props}></path>
|
|
26
|
+
</g>
|
|
27
|
+
</svg>
|
|
28
|
+
);
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
export default ReorderIcon;
|
package/papyrus-web-components/src/widgets/containmentReference/dialogs/CreateNewChildDialog.tsx
ADDED
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
/*****************************************************************************
|
|
2
|
+
* Copyright (c) 2023, 2025 CEA LIST, Obeo.
|
|
3
|
+
*
|
|
4
|
+
* All rights reserved. This program and the accompanying materials
|
|
5
|
+
* are made available under the terms of the Eclipse Public License 2.0
|
|
6
|
+
* which accompanies this distribution, and is available at
|
|
7
|
+
* https://www.eclipse.org/legal/epl-2.0/
|
|
8
|
+
*
|
|
9
|
+
* SPDX-License-Identifier: EPL-2.0
|
|
10
|
+
*
|
|
11
|
+
* Contributors:
|
|
12
|
+
* Obeo - Initial API and implementation
|
|
13
|
+
***************************************************************************/
|
|
14
|
+
|
|
15
|
+
import { ServerContext, ServerContextValue } from '@eclipse-sirius/sirius-components-core';
|
|
16
|
+
import { Dialog, DialogContent, DialogContentText, DialogTitle } from '@mui/material';
|
|
17
|
+
import Button from '@mui/material/Button';
|
|
18
|
+
import DialogActions from '@mui/material/DialogActions';
|
|
19
|
+
import List from '@mui/material/List';
|
|
20
|
+
import ListItemButton from '@mui/material/ListItemButton';
|
|
21
|
+
import ListItemIcon from '@mui/material/ListItemIcon';
|
|
22
|
+
import ListItemText from '@mui/material/ListItemText';
|
|
23
|
+
import { useContext, useState } from 'react';
|
|
24
|
+
import { makeStyles } from 'tss-react/mui';
|
|
25
|
+
import { CreateNewChildDialogProps } from './CreateNewChildDialog.types';
|
|
26
|
+
|
|
27
|
+
const useStyles = makeStyles()((theme) => ({
|
|
28
|
+
dialogContent: {
|
|
29
|
+
overflowX: 'hidden',
|
|
30
|
+
},
|
|
31
|
+
paper: {
|
|
32
|
+
width: 400,
|
|
33
|
+
height: 370,
|
|
34
|
+
border: '1px solid',
|
|
35
|
+
borderColor: theme.palette.grey[500],
|
|
36
|
+
overflow: 'auto',
|
|
37
|
+
},
|
|
38
|
+
borderStyle: {
|
|
39
|
+
height: 300,
|
|
40
|
+
overflow: 'auto',
|
|
41
|
+
},
|
|
42
|
+
button: {
|
|
43
|
+
margin: theme.spacing(0.5, 0),
|
|
44
|
+
},
|
|
45
|
+
iconRoot: {
|
|
46
|
+
minWidth: theme.spacing(3),
|
|
47
|
+
},
|
|
48
|
+
}));
|
|
49
|
+
|
|
50
|
+
const CreateNewChildDialog = ({ childTypes, onClose }: CreateNewChildDialogProps) => {
|
|
51
|
+
const { classes } = useStyles();
|
|
52
|
+
const { httpOrigin } = useContext<ServerContextValue>(ServerContext);
|
|
53
|
+
const [selectedChildTypeId, setSelectedChildTypeId] = useState<string>(childTypes[0].id);
|
|
54
|
+
|
|
55
|
+
return (
|
|
56
|
+
<Dialog
|
|
57
|
+
open={true}
|
|
58
|
+
onClose={() => onClose(null)}
|
|
59
|
+
aria-labelledby="dialog-title"
|
|
60
|
+
maxWidth={false}
|
|
61
|
+
data-testid="containment-reference-new-child-dialog">
|
|
62
|
+
<DialogTitle id="dialog-title">New Element</DialogTitle>
|
|
63
|
+
<DialogContent className={classes.dialogContent}>
|
|
64
|
+
<DialogContentText>Select the new element type</DialogContentText>
|
|
65
|
+
<div className={classes.paper}>
|
|
66
|
+
<List data-testid="containment-reference-new-child-dialog-types-list">
|
|
67
|
+
{childTypes.map((creationDescription) => (
|
|
68
|
+
<ListItemButton
|
|
69
|
+
key={creationDescription.id}
|
|
70
|
+
data-testid={creationDescription.label}
|
|
71
|
+
selected={creationDescription.id === selectedChildTypeId}
|
|
72
|
+
onDoubleClick={() => onClose(creationDescription.id)}
|
|
73
|
+
onClick={() => setSelectedChildTypeId(creationDescription.id)}>
|
|
74
|
+
{creationDescription.iconURL && (
|
|
75
|
+
<ListItemIcon className={classes.iconRoot}>
|
|
76
|
+
<img
|
|
77
|
+
height="16"
|
|
78
|
+
width="16"
|
|
79
|
+
alt={creationDescription.label}
|
|
80
|
+
src={httpOrigin + creationDescription.iconURL}
|
|
81
|
+
/>
|
|
82
|
+
</ListItemIcon>
|
|
83
|
+
)}
|
|
84
|
+
<ListItemText primary={creationDescription.label} />
|
|
85
|
+
</ListItemButton>
|
|
86
|
+
))}
|
|
87
|
+
</List>
|
|
88
|
+
</div>
|
|
89
|
+
</DialogContent>
|
|
90
|
+
<DialogActions>
|
|
91
|
+
<Button
|
|
92
|
+
variant="contained"
|
|
93
|
+
color="primary"
|
|
94
|
+
type="button"
|
|
95
|
+
data-testid="close-containment-reference-new-child-dialog"
|
|
96
|
+
onClick={() => onClose(selectedChildTypeId)}>
|
|
97
|
+
create
|
|
98
|
+
</Button>
|
|
99
|
+
</DialogActions>
|
|
100
|
+
</Dialog>
|
|
101
|
+
);
|
|
102
|
+
};
|
|
103
|
+
|
|
104
|
+
export default CreateNewChildDialog;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/*****************************************************************************
|
|
2
|
+
* Copyright (c) 2023, 2025 CEA LIST, Obeo.
|
|
3
|
+
*
|
|
4
|
+
* All rights reserved. This program and the accompanying materials
|
|
5
|
+
* are made available under the terms of the Eclipse Public License 2.0
|
|
6
|
+
* which accompanies this distribution, and is available at
|
|
7
|
+
* https://www.eclipse.org/legal/epl-2.0/
|
|
8
|
+
*
|
|
9
|
+
* SPDX-License-Identifier: EPL-2.0
|
|
10
|
+
*
|
|
11
|
+
* Contributors:
|
|
12
|
+
* Obeo - Initial API and implementation
|
|
13
|
+
***************************************************************************/
|
|
14
|
+
|
|
15
|
+
export interface CreateNewChildDialogProps {
|
|
16
|
+
childTypes: ChildCreationDescription[];
|
|
17
|
+
onClose: (selectedChildCreationId: string | null) => void;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export interface ChildCreationDescription {
|
|
21
|
+
id: string;
|
|
22
|
+
label: string;
|
|
23
|
+
iconURL: string;
|
|
24
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/*****************************************************************************
|
|
2
|
+
* Copyright (c) 2024, 2025 CEA LIST, Obeo, Artal Technologies.
|
|
3
|
+
*
|
|
4
|
+
* All rights reserved. This program and the accompanying materials
|
|
5
|
+
* are made available under the terms of the Eclipse Public License 2.0
|
|
6
|
+
* which accompanies this distribution, and is available at
|
|
7
|
+
* https://www.eclipse.org/legal/epl-2.0/
|
|
8
|
+
*
|
|
9
|
+
* SPDX-License-Identifier: EPL-2.0
|
|
10
|
+
*
|
|
11
|
+
* Contributors:
|
|
12
|
+
* Obeo - Initial API and implementation
|
|
13
|
+
* Titouan BOUETE-GIRAUD (Artal Technologies) - Issue 210
|
|
14
|
+
*****************************************************************************/
|
|
15
|
+
|
|
16
|
+
import SvgIcon, { SvgIconProps } from '@mui/material/SvgIcon';
|
|
17
|
+
|
|
18
|
+
export const AddImageIcon = (props: SvgIconProps) => {
|
|
19
|
+
return (
|
|
20
|
+
<SvgIcon
|
|
21
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
22
|
+
viewBox="0 0 24 24"
|
|
23
|
+
aria-labelledby="title"
|
|
24
|
+
aria-describedby="desc"
|
|
25
|
+
role="img"
|
|
26
|
+
{...props}>
|
|
27
|
+
<g>
|
|
28
|
+
<rect fill="none" height="24" width="24" />
|
|
29
|
+
</g>
|
|
30
|
+
<g>
|
|
31
|
+
<path d="M 5 5 h 14 v 2 h 2 V 5 c 0 -1.1 -0.89 -2 -2 -2 H 5 C 3.9 3 3 3.9 3 5 v 2 h 2 v -2 M 11 19 h 2 v -9 L 15.59 12.59 L 17 11 L 12 6 L 7 11 L 8.59 12.59 L 11 10 z" />
|
|
32
|
+
</g>
|
|
33
|
+
</SvgIcon>
|
|
34
|
+
);
|
|
35
|
+
};
|