@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
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/*******************************************************************************
|
|
2
|
+
* Copyright (c) 2019, 2020 Obeo.
|
|
3
|
+
* This program and the accompanying materials
|
|
4
|
+
* are made available under the terms of the Eclipse Public License v2.0
|
|
5
|
+
* which accompanies this distribution, and is available at
|
|
6
|
+
* https://www.eclipse.org/legal/epl-2.0/
|
|
7
|
+
*
|
|
8
|
+
* SPDX-License-Identifier: EPL-2.0
|
|
9
|
+
*
|
|
10
|
+
* Contributors:
|
|
11
|
+
* Obeo - initial API and implementation
|
|
12
|
+
*******************************************************************************/
|
|
13
|
+
@font-face {
|
|
14
|
+
font-family: 'Lato';
|
|
15
|
+
font-style: normal;
|
|
16
|
+
font-weight: 100;
|
|
17
|
+
src: url(./fonts/Lato/Lato-Thin.ttf) format('truetype');
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
@font-face {
|
|
21
|
+
font-family: 'Lato';
|
|
22
|
+
font-style: italic;
|
|
23
|
+
font-weight: 100;
|
|
24
|
+
src: url(./fonts/Lato/Lato-ThinItalic.ttf) format('truetype');
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
@font-face {
|
|
28
|
+
font-family: 'Lato';
|
|
29
|
+
font-style: normal;
|
|
30
|
+
font-weight: 300;
|
|
31
|
+
src: url(./fonts/Lato/Lato-Light.ttf) format('truetype');
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
@font-face {
|
|
35
|
+
font-family: 'Lato';
|
|
36
|
+
font-style: italic;
|
|
37
|
+
font-weight: 300;
|
|
38
|
+
src: url(./fonts/Lato/Lato-LightItalic.ttf) format('truetype');
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
@font-face {
|
|
42
|
+
font-family: 'Lato';
|
|
43
|
+
font-style: normal;
|
|
44
|
+
font-weight: 400;
|
|
45
|
+
src: url(./fonts/Lato/Lato-Regular.ttf) format('truetype');
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
@font-face {
|
|
49
|
+
font-family: 'Lato';
|
|
50
|
+
font-style: italic;
|
|
51
|
+
font-weight: 400;
|
|
52
|
+
src: url(./fonts/Lato/Lato-Italic.ttf) format('truetype');
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
@font-face {
|
|
56
|
+
font-family: 'Lato';
|
|
57
|
+
font-style: normal;
|
|
58
|
+
font-weight: 700;
|
|
59
|
+
src: url(./fonts/Lato/Lato-Bold.ttf) format('truetype');
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
@font-face {
|
|
63
|
+
font-family: 'Lato';
|
|
64
|
+
font-style: italic;
|
|
65
|
+
font-weight: 700;
|
|
66
|
+
src: url(./fonts/Lato/Lato-BoldItalic.ttf) format('truetype');
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
@font-face {
|
|
70
|
+
font-family: 'Lato';
|
|
71
|
+
font-style: normal;
|
|
72
|
+
font-weight: 900;
|
|
73
|
+
src: url(./fonts/Lato/Lato-Black.ttf) format('truetype');
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
@font-face {
|
|
77
|
+
font-family: 'Lato';
|
|
78
|
+
font-style: italic;
|
|
79
|
+
font-weight: 900;
|
|
80
|
+
src: url(./fonts/Lato/Lato-BlackItalic.ttf) format('truetype');
|
|
81
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/*******************************************************************************
|
|
2
|
+
* Copyright (c) 2021, 2024 Obeo.
|
|
3
|
+
* This program and the accompanying materials
|
|
4
|
+
* are made available under the terms of the Eclipse Public License v2.0
|
|
5
|
+
* which accompanies this distribution, and is available at
|
|
6
|
+
* https://www.eclipse.org/legal/epl-2.0/
|
|
7
|
+
*
|
|
8
|
+
* SPDX-License-Identifier: EPL-2.0
|
|
9
|
+
*
|
|
10
|
+
* Contributors:
|
|
11
|
+
* Obeo - initial API and implementation
|
|
12
|
+
*******************************************************************************/
|
|
13
|
+
import Link from '@mui/material/Link';
|
|
14
|
+
import { makeStyles } from 'tss-react/mui';
|
|
15
|
+
import Typography from '@mui/material/Typography';
|
|
16
|
+
|
|
17
|
+
const useFooterStyles = makeStyles()((theme) => ({
|
|
18
|
+
footer: {
|
|
19
|
+
display: 'flex',
|
|
20
|
+
justifyContent: 'center',
|
|
21
|
+
margin: theme.spacing(2),
|
|
22
|
+
'& > *': {
|
|
23
|
+
marginLeft: theme.spacing(0.5),
|
|
24
|
+
marginRight: theme.spacing(0.5),
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
}));
|
|
28
|
+
|
|
29
|
+
export const Footer = () => {
|
|
30
|
+
const { classes } = useFooterStyles();
|
|
31
|
+
return (
|
|
32
|
+
<footer className={classes.footer}>
|
|
33
|
+
<Typography variant="caption">
|
|
34
|
+
© {new Date().getFullYear()} CEA LIST, Obeo, Artal. Powered by
|
|
35
|
+
</Typography>
|
|
36
|
+
<Link
|
|
37
|
+
variant="caption"
|
|
38
|
+
href="https://gitlab.eclipse.org/eclipse/papyrus/org.eclipse.papyrus-web"
|
|
39
|
+
rel="noopener noreferrer"
|
|
40
|
+
target="_blank">
|
|
41
|
+
Papyrus Web.
|
|
42
|
+
</Link>
|
|
43
|
+
|
|
44
|
+
<Typography variant="caption">Papyrus-Web is developed under the </Typography>
|
|
45
|
+
<Link variant="caption" href="https://www.eclipse.org/legal/epl-2.0" rel="noopener noreferrer" target="_blank">
|
|
46
|
+
EPL v2 License.
|
|
47
|
+
</Link>
|
|
48
|
+
</footer>
|
|
49
|
+
);
|
|
50
|
+
};
|
|
Binary file
|
|
@@ -0,0 +1,325 @@
|
|
|
1
|
+
/*******************************************************************************
|
|
2
|
+
* Copyright (c) 2019, 2025 CEA LIST, Obeo.
|
|
3
|
+
* This program and the accompanying materials
|
|
4
|
+
* are made available under the terms of the Eclipse Public License v2.0
|
|
5
|
+
* which accompanies this distribution, and is available at
|
|
6
|
+
* https://www.eclipse.org/legal/epl-2.0/
|
|
7
|
+
*
|
|
8
|
+
* SPDX-License-Identifier: EPL-2.0
|
|
9
|
+
*
|
|
10
|
+
* Contributors:
|
|
11
|
+
* Obeo - initial API and implementation
|
|
12
|
+
* Titouan BOUETE-GIRAUD (Artal Technologies) - Issue 210
|
|
13
|
+
*******************************************************************************/
|
|
14
|
+
import { loadDevMessages, loadErrorMessages } from '@apollo/client/dev';
|
|
15
|
+
import { ExtensionRegistry } from '@eclipse-sirius/sirius-components-core';
|
|
16
|
+
import {
|
|
17
|
+
DiagramPaletteToolContributionProps,
|
|
18
|
+
diagramPaletteToolExtensionPoint,
|
|
19
|
+
EdgeData,
|
|
20
|
+
NodeData,
|
|
21
|
+
NodeTypeContribution,
|
|
22
|
+
} from '@eclipse-sirius/sirius-components-diagrams';
|
|
23
|
+
import {
|
|
24
|
+
ApolloClientOptionsConfigurer,
|
|
25
|
+
apolloClientOptionsConfigurersExtensionPoint,
|
|
26
|
+
DefaultExtensionRegistryMergeStrategy,
|
|
27
|
+
DiagramRepresentationConfiguration,
|
|
28
|
+
footerExtensionPoint,
|
|
29
|
+
navigationBarIconExtensionPoint,
|
|
30
|
+
navigationBarMenuHelpURLExtensionPoint,
|
|
31
|
+
NodeTypeRegistry,
|
|
32
|
+
SiriusWebApplication,
|
|
33
|
+
} from '@eclipse-sirius/sirius-web-application';
|
|
34
|
+
import { forkRegistry } from '@eclipse-sirius/sirius-web-view-fork';
|
|
35
|
+
import FormatListBulletedIcon from '@mui/icons-material/FormatListBulleted';
|
|
36
|
+
import { httpOrigin, wsOrigin } from './core/URL';
|
|
37
|
+
import { CuboidNode } from '@eclipse-papyrus/papyrus-web-components';
|
|
38
|
+
import { CuboidNodeConverter } from '@eclipse-papyrus/papyrus-web-components';
|
|
39
|
+
import { CuboidNodeLayoutHandler } from '@eclipse-papyrus/papyrus-web-components';
|
|
40
|
+
import { CuboidNodeListConverter } from '@eclipse-papyrus/papyrus-web-components';
|
|
41
|
+
import { CuboidNodeListLayoutHandler } from '@eclipse-papyrus/papyrus-web-components';
|
|
42
|
+
import { CustomImageNode } from '@eclipse-papyrus/papyrus-web-components';
|
|
43
|
+
import { CustomImageNodeConverter } from '@eclipse-papyrus/papyrus-web-components';
|
|
44
|
+
import { CustomImageNodeLayoutHandler } from '@eclipse-papyrus/papyrus-web-components';
|
|
45
|
+
import { EllipseNode } from '@eclipse-papyrus/papyrus-web-components';
|
|
46
|
+
import { EllipseNodeConverter } from '@eclipse-papyrus/papyrus-web-components';
|
|
47
|
+
import { EllipseNodeLayoutHandler } from '@eclipse-papyrus/papyrus-web-components';
|
|
48
|
+
import { InnerFlagNode } from '@eclipse-papyrus/papyrus-web-components';
|
|
49
|
+
import { InnerFlagNodeConverter } from '@eclipse-papyrus/papyrus-web-components';
|
|
50
|
+
import { InnerFlagNodeLayoutHandler } from '@eclipse-papyrus/papyrus-web-components';
|
|
51
|
+
import { NoteNode } from '@eclipse-papyrus/papyrus-web-components';
|
|
52
|
+
import { NoteNodeConverter } from '@eclipse-papyrus/papyrus-web-components';
|
|
53
|
+
import { NoteNodeLayoutHandler } from '@eclipse-papyrus/papyrus-web-components';
|
|
54
|
+
import { OuterFlagNode } from '@eclipse-papyrus/papyrus-web-components';
|
|
55
|
+
import { OuterFlagNodeConverter } from '@eclipse-papyrus/papyrus-web-components';
|
|
56
|
+
import { OuterFlagNodeLayoutHandler } from '@eclipse-papyrus/papyrus-web-components';
|
|
57
|
+
import { PackageNode } from '@eclipse-papyrus/papyrus-web-components';
|
|
58
|
+
import { PackageNodeConverter } from '@eclipse-papyrus/papyrus-web-components';
|
|
59
|
+
import { PackageNodeLayoutHandler } from '@eclipse-papyrus/papyrus-web-components';
|
|
60
|
+
import { PackageNodeListConverter } from '@eclipse-papyrus/papyrus-web-components';
|
|
61
|
+
import { PackageNodeListLayoutHandler } from '@eclipse-papyrus/papyrus-web-components';
|
|
62
|
+
import { RectangleWithExternalLabelNode } from '@eclipse-papyrus/papyrus-web-components';
|
|
63
|
+
import { RectangleWithExternalLabelNodeConverter } from '@eclipse-papyrus/papyrus-web-components';
|
|
64
|
+
import { RectangleWithExternalLabelNodeLayoutHandler } from '@eclipse-papyrus/papyrus-web-components';
|
|
65
|
+
|
|
66
|
+
import {
|
|
67
|
+
GQLWidget,
|
|
68
|
+
PropertySectionComponent,
|
|
69
|
+
widgetContributionExtensionPoint,
|
|
70
|
+
} from '@eclipse-sirius/sirius-components-forms';
|
|
71
|
+
import { treeItemContextMenuEntryExtensionPoint } from '@eclipse-sirius/sirius-components-trees';
|
|
72
|
+
import {
|
|
73
|
+
ReferenceIcon,
|
|
74
|
+
ReferencePreview,
|
|
75
|
+
ReferencePropertySection,
|
|
76
|
+
} from '@eclipse-sirius/sirius-components-widget-reference';
|
|
77
|
+
import './ReactFlow.css';
|
|
78
|
+
import { PapyrusPopupToolContribution } from '@eclipse-papyrus/papyrus-web-components';
|
|
79
|
+
import './fonts.css';
|
|
80
|
+
import { Footer } from './footer/Footer';
|
|
81
|
+
import { nodesStyleDocumentTransform } from '@eclipse-papyrus/papyrus-web-components';
|
|
82
|
+
import './portals.css';
|
|
83
|
+
import { UMLModelTreeItemContextMenuContribution } from '@eclipse-papyrus/papyrus-web-components';
|
|
84
|
+
import { UMLElementTreeItemContextMenuContribution } from '@eclipse-papyrus/papyrus-web-components';
|
|
85
|
+
import './reset.css';
|
|
86
|
+
import './variables.css';
|
|
87
|
+
import { customWidgetsDocumentTransform } from '@eclipse-papyrus/papyrus-web-components';
|
|
88
|
+
|
|
89
|
+
import { Edge, Node } from '@xyflow/react';
|
|
90
|
+
import { ExtensionRegistryMergeStrategy } from './extensions/ExtensionRegistryMergeStrategy';
|
|
91
|
+
import { createRoot } from 'react-dom/client';
|
|
92
|
+
import { PapyrusNavigationBarIcon } from './core/PapyrusNavigationBarIcon';
|
|
93
|
+
import { PublishProfileTreeItemContextMenuContribution } from '@eclipse-papyrus/papyrus-web-components';
|
|
94
|
+
import { ContainmentReferenceIcon } from '@eclipse-papyrus/papyrus-web-components';
|
|
95
|
+
import { ContainmentReferencePreview } from '@eclipse-papyrus/papyrus-web-components';
|
|
96
|
+
import { ContainmentReferenceSection } from '@eclipse-papyrus/papyrus-web-components';
|
|
97
|
+
import { CustomImageIcon } from '@eclipse-papyrus/papyrus-web-components';
|
|
98
|
+
import { CustomImagePreview } from '@eclipse-papyrus/papyrus-web-components';
|
|
99
|
+
import { CustomImageSection } from '@eclipse-papyrus/papyrus-web-components';
|
|
100
|
+
import { LanguageExpressionIcon } from '@eclipse-papyrus/papyrus-web-components';
|
|
101
|
+
import { LanguageExpressionPreview } from '@eclipse-papyrus/papyrus-web-components';
|
|
102
|
+
import { LanguageExpressionSection } from '@eclipse-papyrus/papyrus-web-components';
|
|
103
|
+
import { PrimitiveListWidgetPreview } from '@eclipse-papyrus/papyrus-web-components';
|
|
104
|
+
import { PrimitiveListSection } from '@eclipse-papyrus/papyrus-web-components';
|
|
105
|
+
import { PrimitiveRadioIcon } from '@eclipse-papyrus/papyrus-web-components';
|
|
106
|
+
import { PrimitiveRadioPreview } from '@eclipse-papyrus/papyrus-web-components';
|
|
107
|
+
import { PrimitiveRadioSection } from '@eclipse-papyrus/papyrus-web-components';
|
|
108
|
+
|
|
109
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
110
|
+
loadDevMessages();
|
|
111
|
+
loadErrorMessages();
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
const extensionRegistry: ExtensionRegistry = new ExtensionRegistry();
|
|
115
|
+
|
|
116
|
+
/*
|
|
117
|
+
* Custom node contribution
|
|
118
|
+
*/
|
|
119
|
+
const nodeTypeRegistryValue: NodeTypeRegistry = {
|
|
120
|
+
nodeLayoutHandlers: [
|
|
121
|
+
new EllipseNodeLayoutHandler(),
|
|
122
|
+
new PackageNodeLayoutHandler(),
|
|
123
|
+
new PackageNodeListLayoutHandler(),
|
|
124
|
+
new RectangleWithExternalLabelNodeLayoutHandler(),
|
|
125
|
+
new NoteNodeLayoutHandler(),
|
|
126
|
+
new InnerFlagNodeLayoutHandler(),
|
|
127
|
+
new OuterFlagNodeLayoutHandler(),
|
|
128
|
+
new CuboidNodeLayoutHandler(),
|
|
129
|
+
new CuboidNodeListLayoutHandler(),
|
|
130
|
+
new CustomImageNodeLayoutHandler(),
|
|
131
|
+
],
|
|
132
|
+
nodeConverters: [
|
|
133
|
+
new EllipseNodeConverter(),
|
|
134
|
+
new PackageNodeConverter(),
|
|
135
|
+
new PackageNodeListConverter(),
|
|
136
|
+
new RectangleWithExternalLabelNodeConverter(),
|
|
137
|
+
new NoteNodeConverter(),
|
|
138
|
+
new InnerFlagNodeConverter(),
|
|
139
|
+
new OuterFlagNodeConverter(),
|
|
140
|
+
new CuboidNodeConverter(),
|
|
141
|
+
new CuboidNodeListConverter(),
|
|
142
|
+
new CustomImageNodeConverter(),
|
|
143
|
+
],
|
|
144
|
+
nodeTypeContributions: [
|
|
145
|
+
<NodeTypeContribution component={EllipseNode} type={'ellipseNode'} />,
|
|
146
|
+
<NodeTypeContribution component={PackageNode} type={'packageNode'} />,
|
|
147
|
+
<NodeTypeContribution component={PackageNode} type={'packageNodeList'} />,
|
|
148
|
+
<NodeTypeContribution component={RectangleWithExternalLabelNode} type={'rectangleWithExternalLabelNode'} />,
|
|
149
|
+
<NodeTypeContribution component={NoteNode} type={'noteNode'} />,
|
|
150
|
+
<NodeTypeContribution component={InnerFlagNode} type={'innerFlagNode'} />,
|
|
151
|
+
<NodeTypeContribution component={OuterFlagNode} type={'outerFlagNode'} />,
|
|
152
|
+
<NodeTypeContribution component={CuboidNode} type={'cuboidNode'} />,
|
|
153
|
+
<NodeTypeContribution component={CuboidNode} type={'cuboidNodeList'} />,
|
|
154
|
+
<NodeTypeContribution component={CustomImageNode} type={'customImageNode'} />,
|
|
155
|
+
],
|
|
156
|
+
};
|
|
157
|
+
|
|
158
|
+
// Contribution to modify GraphQl requests to handle custom node
|
|
159
|
+
const nodeApolloClientOptionsConfigurer: ApolloClientOptionsConfigurer = (currentOptions) => {
|
|
160
|
+
const { documentTransform } = currentOptions;
|
|
161
|
+
|
|
162
|
+
const newDocumentTransform = documentTransform
|
|
163
|
+
? documentTransform.concat(nodesStyleDocumentTransform)
|
|
164
|
+
: nodesStyleDocumentTransform;
|
|
165
|
+
return {
|
|
166
|
+
...currentOptions,
|
|
167
|
+
documentTransform: newDocumentTransform,
|
|
168
|
+
};
|
|
169
|
+
};
|
|
170
|
+
|
|
171
|
+
/*
|
|
172
|
+
* Custom widgets contribution
|
|
173
|
+
*/
|
|
174
|
+
|
|
175
|
+
// Contribution to modify GraphQl requests to handle custom widgets
|
|
176
|
+
const widgetsApolloClientOptionsConfigurer: ApolloClientOptionsConfigurer = (currentOptions) => {
|
|
177
|
+
const { documentTransform } = currentOptions;
|
|
178
|
+
|
|
179
|
+
const newDocumentTransform = documentTransform
|
|
180
|
+
? documentTransform.concat(customWidgetsDocumentTransform)
|
|
181
|
+
: customWidgetsDocumentTransform;
|
|
182
|
+
return {
|
|
183
|
+
...currentOptions,
|
|
184
|
+
documentTransform: newDocumentTransform,
|
|
185
|
+
};
|
|
186
|
+
};
|
|
187
|
+
|
|
188
|
+
extensionRegistry.putData(widgetContributionExtensionPoint, {
|
|
189
|
+
identifier: 'papyrus-custom-widget-primitive-list',
|
|
190
|
+
data: [
|
|
191
|
+
{
|
|
192
|
+
name: 'PrimitiveListWidget',
|
|
193
|
+
icon: <FormatListBulletedIcon />,
|
|
194
|
+
previewComponent: PrimitiveListWidgetPreview,
|
|
195
|
+
component: (widget: GQLWidget): PropertySectionComponent<GQLWidget> | null => {
|
|
196
|
+
if (widget.__typename === 'PrimitiveListWidget') {
|
|
197
|
+
return PrimitiveListSection;
|
|
198
|
+
}
|
|
199
|
+
return null;
|
|
200
|
+
},
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
name: 'LanguageExpression',
|
|
204
|
+
icon: <LanguageExpressionIcon />,
|
|
205
|
+
previewComponent: LanguageExpressionPreview,
|
|
206
|
+
component: (widget: GQLWidget): PropertySectionComponent<GQLWidget> | null => {
|
|
207
|
+
if (widget.__typename === 'LanguageExpression') {
|
|
208
|
+
return LanguageExpressionSection;
|
|
209
|
+
}
|
|
210
|
+
return null;
|
|
211
|
+
},
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
name: 'ContainmentReferenceWidget',
|
|
215
|
+
icon: <ContainmentReferenceIcon />,
|
|
216
|
+
previewComponent: ContainmentReferencePreview,
|
|
217
|
+
component: (widget: GQLWidget): PropertySectionComponent<GQLWidget> | null => {
|
|
218
|
+
if (widget.__typename === 'ContainmentReferenceWidget') {
|
|
219
|
+
return ContainmentReferenceSection;
|
|
220
|
+
}
|
|
221
|
+
return null;
|
|
222
|
+
},
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
name: 'PrimitiveRadio',
|
|
226
|
+
icon: <PrimitiveRadioIcon />,
|
|
227
|
+
previewComponent: PrimitiveRadioPreview,
|
|
228
|
+
component: (widget: GQLWidget): PropertySectionComponent<GQLWidget> | null => {
|
|
229
|
+
if (widget.__typename === 'PrimitiveRadio') {
|
|
230
|
+
return PrimitiveRadioSection;
|
|
231
|
+
}
|
|
232
|
+
return null;
|
|
233
|
+
},
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
name: 'ReferenceWidget',
|
|
237
|
+
icon: <ReferenceIcon />,
|
|
238
|
+
previewComponent: ReferencePreview,
|
|
239
|
+
component: (widget: GQLWidget): PropertySectionComponent<GQLWidget> | null => {
|
|
240
|
+
let propertySectionComponent: PropertySectionComponent<GQLWidget> | null = null;
|
|
241
|
+
|
|
242
|
+
if (widget.__typename === 'ReferenceWidget') {
|
|
243
|
+
propertySectionComponent = ReferencePropertySection;
|
|
244
|
+
}
|
|
245
|
+
return propertySectionComponent;
|
|
246
|
+
},
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
name: 'CustomImageWidget',
|
|
250
|
+
icon: <CustomImageIcon />,
|
|
251
|
+
previewComponent: CustomImagePreview,
|
|
252
|
+
component: (widget: GQLWidget): PropertySectionComponent<GQLWidget> | null => {
|
|
253
|
+
if (widget.__typename === 'CustomImageWidget') {
|
|
254
|
+
return CustomImageSection;
|
|
255
|
+
}
|
|
256
|
+
return null;
|
|
257
|
+
},
|
|
258
|
+
},
|
|
259
|
+
],
|
|
260
|
+
});
|
|
261
|
+
|
|
262
|
+
// Plug both (widgets and node) graphQl document transformers
|
|
263
|
+
extensionRegistry.putData(apolloClientOptionsConfigurersExtensionPoint, {
|
|
264
|
+
identifier: `papyrusweb_${apolloClientOptionsConfigurersExtensionPoint.identifier}`,
|
|
265
|
+
data: [nodeApolloClientOptionsConfigurer, widgetsApolloClientOptionsConfigurer],
|
|
266
|
+
});
|
|
267
|
+
|
|
268
|
+
// Palette tools contribution
|
|
269
|
+
const diagramPaletteToolContributions: DiagramPaletteToolContributionProps[] = [
|
|
270
|
+
{
|
|
271
|
+
canHandle: (_: Node<NodeData> | Edge<EdgeData>) => true,
|
|
272
|
+
component: PapyrusPopupToolContribution,
|
|
273
|
+
},
|
|
274
|
+
];
|
|
275
|
+
extensionRegistry.putData<DiagramPaletteToolContributionProps[]>(diagramPaletteToolExtensionPoint, {
|
|
276
|
+
identifier: 'papyrus-diagram-tools',
|
|
277
|
+
data: diagramPaletteToolContributions,
|
|
278
|
+
});
|
|
279
|
+
|
|
280
|
+
// Tree Item context menu contributions
|
|
281
|
+
extensionRegistry.addComponent(treeItemContextMenuEntryExtensionPoint, {
|
|
282
|
+
identifier: 'papyrus-custom-tree-menu-profile',
|
|
283
|
+
Component: UMLModelTreeItemContextMenuContribution,
|
|
284
|
+
});
|
|
285
|
+
extensionRegistry.addComponent(treeItemContextMenuEntryExtensionPoint, {
|
|
286
|
+
identifier: 'papyrus-custom-tree-menu-stereotype',
|
|
287
|
+
Component: UMLElementTreeItemContextMenuContribution,
|
|
288
|
+
});
|
|
289
|
+
extensionRegistry.addComponent(treeItemContextMenuEntryExtensionPoint, {
|
|
290
|
+
identifier: 'papyrus-custom-tree-menu-publish-profile',
|
|
291
|
+
Component: PublishProfileTreeItemContextMenuContribution,
|
|
292
|
+
});
|
|
293
|
+
|
|
294
|
+
// Footer contribution
|
|
295
|
+
extensionRegistry.addComponent(footerExtensionPoint, {
|
|
296
|
+
identifier: 'papyrus-footer',
|
|
297
|
+
Component: Footer,
|
|
298
|
+
});
|
|
299
|
+
|
|
300
|
+
// Main icon contribution
|
|
301
|
+
extensionRegistry.addComponent(navigationBarIconExtensionPoint, {
|
|
302
|
+
identifier: 'papyrusweb_navigationbar#icon',
|
|
303
|
+
Component: PapyrusNavigationBarIcon,
|
|
304
|
+
});
|
|
305
|
+
|
|
306
|
+
// Customize help url
|
|
307
|
+
extensionRegistry.putData(navigationBarMenuHelpURLExtensionPoint, {
|
|
308
|
+
identifier: `papyrus_web_doc_${navigationBarMenuHelpURLExtensionPoint.identifier}`,
|
|
309
|
+
data: `${httpOrigin}/doc/index.html`,
|
|
310
|
+
});
|
|
311
|
+
|
|
312
|
+
// Table contribution
|
|
313
|
+
extensionRegistry.addAll(forkRegistry, new DefaultExtensionRegistryMergeStrategy());
|
|
314
|
+
|
|
315
|
+
const container = document.getElementById('root');
|
|
316
|
+
const root = createRoot(container!);
|
|
317
|
+
root.render(
|
|
318
|
+
<SiriusWebApplication
|
|
319
|
+
httpOrigin={httpOrigin}
|
|
320
|
+
wsOrigin={wsOrigin}
|
|
321
|
+
extensionRegistry={extensionRegistry}
|
|
322
|
+
extensionRegistryMergeStrategy={new ExtensionRegistryMergeStrategy()}>
|
|
323
|
+
<DiagramRepresentationConfiguration nodeTypeRegistry={nodeTypeRegistryValue} />
|
|
324
|
+
</SiriusWebApplication>
|
|
325
|
+
);
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/*******************************************************************************
|
|
2
|
+
* Copyright (c) 2023, 2024 Obeo.
|
|
3
|
+
* This program and the accompanying materials
|
|
4
|
+
* are made available under the terms of the Eclipse Public License v2.0
|
|
5
|
+
* which accompanies this distribution, and is available at
|
|
6
|
+
* https://www.eclipse.org/legal/epl-2.0/
|
|
7
|
+
*
|
|
8
|
+
* SPDX-License-Identifier: EPL-2.0
|
|
9
|
+
*
|
|
10
|
+
* Contributors:
|
|
11
|
+
* Obeo - initial API and implementation
|
|
12
|
+
*******************************************************************************/
|
|
13
|
+
|
|
14
|
+
.react-grid-item.react-grid-placeholder {
|
|
15
|
+
background: #be1a78;
|
|
16
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/// <reference types="react-scripts" />
|
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
/*******************************************************************************
|
|
2
|
+
* Copyright (c) 2019, 2022 Obeo and others.
|
|
3
|
+
* This program and the accompanying materials
|
|
4
|
+
* are made available under the terms of the Eclipse Public License v2.0
|
|
5
|
+
* which accompanies this distribution, and is available at
|
|
6
|
+
* https://www.eclipse.org/legal/epl-2.0/
|
|
7
|
+
*
|
|
8
|
+
* SPDX-License-Identifier: EPL-2.0
|
|
9
|
+
*
|
|
10
|
+
* Contributors:
|
|
11
|
+
* Obeo - initial API and implementation
|
|
12
|
+
*******************************************************************************/
|
|
13
|
+
html,
|
|
14
|
+
body,
|
|
15
|
+
div,
|
|
16
|
+
span,
|
|
17
|
+
object,
|
|
18
|
+
iframe,
|
|
19
|
+
h1,
|
|
20
|
+
h2,
|
|
21
|
+
h3,
|
|
22
|
+
h4,
|
|
23
|
+
h5,
|
|
24
|
+
h6,
|
|
25
|
+
p,
|
|
26
|
+
blockquote,
|
|
27
|
+
pre,
|
|
28
|
+
abbr,
|
|
29
|
+
address,
|
|
30
|
+
cite,
|
|
31
|
+
code,
|
|
32
|
+
del,
|
|
33
|
+
dfn,
|
|
34
|
+
em,
|
|
35
|
+
img,
|
|
36
|
+
ins,
|
|
37
|
+
kbd,
|
|
38
|
+
q,
|
|
39
|
+
samp,
|
|
40
|
+
small,
|
|
41
|
+
strong,
|
|
42
|
+
sub,
|
|
43
|
+
sup,
|
|
44
|
+
var,
|
|
45
|
+
b,
|
|
46
|
+
i,
|
|
47
|
+
dl,
|
|
48
|
+
dt,
|
|
49
|
+
dd,
|
|
50
|
+
ol,
|
|
51
|
+
ul,
|
|
52
|
+
li,
|
|
53
|
+
fieldset,
|
|
54
|
+
form,
|
|
55
|
+
label,
|
|
56
|
+
legend,
|
|
57
|
+
table,
|
|
58
|
+
caption,
|
|
59
|
+
tbody,
|
|
60
|
+
tfoot,
|
|
61
|
+
thead,
|
|
62
|
+
tr,
|
|
63
|
+
th,
|
|
64
|
+
td,
|
|
65
|
+
article,
|
|
66
|
+
aside,
|
|
67
|
+
canvas,
|
|
68
|
+
details,
|
|
69
|
+
figcaption,
|
|
70
|
+
figure,
|
|
71
|
+
footer,
|
|
72
|
+
header,
|
|
73
|
+
hgroup,
|
|
74
|
+
menu,
|
|
75
|
+
nav,
|
|
76
|
+
section,
|
|
77
|
+
summary,
|
|
78
|
+
time,
|
|
79
|
+
mark,
|
|
80
|
+
audio,
|
|
81
|
+
video {
|
|
82
|
+
margin: 0;
|
|
83
|
+
padding: 0;
|
|
84
|
+
border: 0;
|
|
85
|
+
outline: 0;
|
|
86
|
+
font-size: 100%;
|
|
87
|
+
vertical-align: baseline;
|
|
88
|
+
background: transparent;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
*,
|
|
92
|
+
*:before,
|
|
93
|
+
*:after {
|
|
94
|
+
-webkit-box-sizing: border-box;
|
|
95
|
+
-moz-box-sizing: border-box;
|
|
96
|
+
box-sizing: border-box;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
:focus {
|
|
100
|
+
outline: 0;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
body {
|
|
104
|
+
line-height: 1;
|
|
105
|
+
color: black;
|
|
106
|
+
background: white;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
article,
|
|
110
|
+
aside,
|
|
111
|
+
details,
|
|
112
|
+
figcaption,
|
|
113
|
+
figure,
|
|
114
|
+
footer,
|
|
115
|
+
header,
|
|
116
|
+
hgroup,
|
|
117
|
+
menu,
|
|
118
|
+
nav,
|
|
119
|
+
section {
|
|
120
|
+
display: block;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
nav ul {
|
|
124
|
+
list-style: none;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
blockquote,
|
|
128
|
+
q {
|
|
129
|
+
quotes: none;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
blockquote:before,
|
|
133
|
+
blockquote:after,
|
|
134
|
+
q:before,
|
|
135
|
+
q:after {
|
|
136
|
+
content: '';
|
|
137
|
+
content: none;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
a {
|
|
141
|
+
margin: 0;
|
|
142
|
+
padding: 0;
|
|
143
|
+
font-size: 100%;
|
|
144
|
+
vertical-align: baseline;
|
|
145
|
+
background: transparent;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
ins {
|
|
149
|
+
background-color: white;
|
|
150
|
+
color: black;
|
|
151
|
+
text-decoration: none;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
mark {
|
|
155
|
+
background-color: white;
|
|
156
|
+
color: black;
|
|
157
|
+
font-style: inherit;
|
|
158
|
+
font-weight: inherit;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
del {
|
|
162
|
+
text-decoration: line-through;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
abbr[title],
|
|
166
|
+
dfn[title] {
|
|
167
|
+
border-bottom: 1px dotted;
|
|
168
|
+
cursor: help;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
table {
|
|
172
|
+
border-collapse: collapse;
|
|
173
|
+
border-spacing: 0;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
hr {
|
|
177
|
+
display: block;
|
|
178
|
+
height: 1px;
|
|
179
|
+
border: 0;
|
|
180
|
+
border-top: 1px solid black;
|
|
181
|
+
margin: 0;
|
|
182
|
+
padding: 0;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
input,
|
|
186
|
+
select {
|
|
187
|
+
vertical-align: middle;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
ol,
|
|
191
|
+
ul {
|
|
192
|
+
list-style: none;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
[role='button'],
|
|
196
|
+
input[type='submit'],
|
|
197
|
+
input[type='reset'],
|
|
198
|
+
input[type='button'],
|
|
199
|
+
button {
|
|
200
|
+
background: none;
|
|
201
|
+
border: 0;
|
|
202
|
+
color: inherit;
|
|
203
|
+
font: inherit;
|
|
204
|
+
line-height: normal;
|
|
205
|
+
overflow: visible;
|
|
206
|
+
padding: 0;
|
|
207
|
+
-webkit-appearance: button; /* for input */
|
|
208
|
+
-webkit-user-select: none; /* for button */
|
|
209
|
+
-moz-user-select: none;
|
|
210
|
+
-ms-user-select: none;
|
|
211
|
+
user-select: none;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
input::-moz-focus-inner,
|
|
215
|
+
button::-moz-focus-inner {
|
|
216
|
+
border: 0;
|
|
217
|
+
padding: 0;
|
|
218
|
+
}
|