@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,135 @@
|
|
|
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
|
+
import { Selection, GQLMessage } from '@eclipse-sirius/sirius-components-core';
|
|
15
|
+
import { GQLListItem, GQLListStyle, GQLWidget } from '@eclipse-sirius/sirius-components-forms';
|
|
16
|
+
export interface PrimitiveListStyleProps {
|
|
17
|
+
color: string | null;
|
|
18
|
+
fontSize: number | null;
|
|
19
|
+
italic: boolean | null;
|
|
20
|
+
bold: boolean | null;
|
|
21
|
+
underline: boolean | null;
|
|
22
|
+
strikeThrough: boolean | null;
|
|
23
|
+
}
|
|
24
|
+
export interface PrimitiveListPropertySectionProps {
|
|
25
|
+
editingContextId: string;
|
|
26
|
+
formId: string;
|
|
27
|
+
widget: EditableGQLList;
|
|
28
|
+
readOnly: boolean;
|
|
29
|
+
setSelection: (selection: Selection) => void;
|
|
30
|
+
}
|
|
31
|
+
export interface EditableGQLList extends GQLWidget {
|
|
32
|
+
canAdd: boolean;
|
|
33
|
+
canReorder: boolean;
|
|
34
|
+
hasCandidates: boolean;
|
|
35
|
+
items: GQLActionableListItem[];
|
|
36
|
+
style: GQLListStyle;
|
|
37
|
+
}
|
|
38
|
+
export interface GQLActionableListItem extends GQLListItem {
|
|
39
|
+
hasAction: Boolean;
|
|
40
|
+
actionIconURL: string;
|
|
41
|
+
}
|
|
42
|
+
export interface GQLDeletePrimitiveListItemMutationData {
|
|
43
|
+
deletePrimitiveListItem: GQLDeletePrimitiveListItemPayload;
|
|
44
|
+
}
|
|
45
|
+
export interface GQLAddPrimitiveListItemMutationData {
|
|
46
|
+
addPrimitiveListItem: GQLDeletePrimitiveListItemPayload;
|
|
47
|
+
}
|
|
48
|
+
export interface GQLDeletePrimitiveListItemPayload {
|
|
49
|
+
__typename: string;
|
|
50
|
+
}
|
|
51
|
+
export interface GQLAddPrimitiveListItemPayload {
|
|
52
|
+
__typename: string;
|
|
53
|
+
}
|
|
54
|
+
export interface GQLErrorPayload extends GQLDeletePrimitiveListItemPayload {
|
|
55
|
+
messages: GQLMessage[];
|
|
56
|
+
}
|
|
57
|
+
export interface GQLSuccessPayload extends GQLDeletePrimitiveListItemPayload {
|
|
58
|
+
messages: GQLMessage[];
|
|
59
|
+
}
|
|
60
|
+
export interface GQLErrorPayload extends GQLAddPrimitiveListItemPayload {
|
|
61
|
+
messages: GQLMessage[];
|
|
62
|
+
}
|
|
63
|
+
export interface GQLSuccessPayload extends GQLAddPrimitiveListItemPayload {
|
|
64
|
+
messages: GQLMessage[];
|
|
65
|
+
}
|
|
66
|
+
export interface GQLReorderPrimitiveListItemsMutationData {
|
|
67
|
+
reorderPrimitiveListItems: GQLReorderPrimitiveListItemsPayload;
|
|
68
|
+
}
|
|
69
|
+
export interface GQLReorderPrimitiveListItemsPayload {
|
|
70
|
+
__typename: string;
|
|
71
|
+
}
|
|
72
|
+
export interface GQLReorderPrimitiveListItemsMutationVariables {
|
|
73
|
+
input: GQLReorderPrimitiveListItemsInput;
|
|
74
|
+
}
|
|
75
|
+
export interface GQLReorderPrimitiveListItemsInput {
|
|
76
|
+
id: string;
|
|
77
|
+
editingContextId: string;
|
|
78
|
+
representationId: string;
|
|
79
|
+
listId: string;
|
|
80
|
+
itemId: string;
|
|
81
|
+
fromIndex: number;
|
|
82
|
+
toIndex: number;
|
|
83
|
+
}
|
|
84
|
+
export interface GQLActionPrimitiveListItemMutationData {
|
|
85
|
+
actionPrimitiveListItem: GQLActionPrimitiveListItemPayload;
|
|
86
|
+
}
|
|
87
|
+
export interface GQLActionPrimitiveListItemPayload {
|
|
88
|
+
__typename: string;
|
|
89
|
+
}
|
|
90
|
+
export interface GQLActionPrimitiveListItemMutationVariables {
|
|
91
|
+
input: GQLActionPrimitiveListItemInput;
|
|
92
|
+
}
|
|
93
|
+
export interface GQLActionPrimitiveListItemInput {
|
|
94
|
+
id: string;
|
|
95
|
+
editingContextId: string;
|
|
96
|
+
representationId: string;
|
|
97
|
+
listId: string;
|
|
98
|
+
itemId: string;
|
|
99
|
+
}
|
|
100
|
+
export interface GQLPrimitiveListCandidate {
|
|
101
|
+
value: string;
|
|
102
|
+
label: string;
|
|
103
|
+
}
|
|
104
|
+
export interface PrimitiveListAutocompleteState {
|
|
105
|
+
open: boolean;
|
|
106
|
+
candidates: GQLPrimitiveListCandidate[] | null;
|
|
107
|
+
}
|
|
108
|
+
export interface GQLGetPrimitiveListCandidatesQueryData {
|
|
109
|
+
viewer: GQLViewer;
|
|
110
|
+
}
|
|
111
|
+
export interface GQLViewer {
|
|
112
|
+
editingContext: GQLEditingContext;
|
|
113
|
+
}
|
|
114
|
+
export interface GQLEditingContext {
|
|
115
|
+
representation: GQLRepresentationMetadata;
|
|
116
|
+
}
|
|
117
|
+
export interface GQLRepresentationMetadata {
|
|
118
|
+
id: string;
|
|
119
|
+
label: string;
|
|
120
|
+
kind: string;
|
|
121
|
+
description: GQLRepresentationDescription;
|
|
122
|
+
}
|
|
123
|
+
export interface GQLRepresentationDescription {
|
|
124
|
+
id: string;
|
|
125
|
+
__typename: string;
|
|
126
|
+
}
|
|
127
|
+
export interface GQLFormDescription extends GQLRepresentationDescription {
|
|
128
|
+
primitiveListCandidates: GQLPrimitiveListCandidate[];
|
|
129
|
+
}
|
|
130
|
+
export interface GQLGetPrimitiveListCandidatesQueryVariables {
|
|
131
|
+
editingContextId: string;
|
|
132
|
+
representationId: string;
|
|
133
|
+
primitiveListId: string;
|
|
134
|
+
}
|
|
135
|
+
//# sourceMappingURL=PrimitiveListWidgetPropertySection.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PrimitiveListWidgetPropertySection.types.d.ts","sourceRoot":"","sources":["../../../src/widgets/primitiveList/PrimitiveListWidgetPropertySection.types.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,42 @@
|
|
|
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
|
+
import { GQLWidget } from '@eclipse-sirius/sirius-components-forms';
|
|
15
|
+
import { GQLMessage } from '@eclipse-sirius/sirius-components-core';
|
|
16
|
+
export interface GQLPrimitiveRadio extends GQLWidget {
|
|
17
|
+
candidateList: Array<string> | null;
|
|
18
|
+
candidateValue: string;
|
|
19
|
+
}
|
|
20
|
+
export interface GQLNewValueData {
|
|
21
|
+
newValue: GQLNewValuePayload;
|
|
22
|
+
}
|
|
23
|
+
export interface GQLNewValueVariables {
|
|
24
|
+
input: GQLNewValueInput;
|
|
25
|
+
}
|
|
26
|
+
export interface GQLNewValueInput {
|
|
27
|
+
id: string;
|
|
28
|
+
editingContextId: string;
|
|
29
|
+
representationId: string;
|
|
30
|
+
primitiveRadioId: string;
|
|
31
|
+
value: string;
|
|
32
|
+
}
|
|
33
|
+
export interface GQLNewValuePayload {
|
|
34
|
+
__typename: string;
|
|
35
|
+
}
|
|
36
|
+
export interface GQLSuccessPayload extends GQLNewValuePayload {
|
|
37
|
+
messages: GQLMessage[];
|
|
38
|
+
}
|
|
39
|
+
export interface GQLErrorPayload extends GQLNewValuePayload {
|
|
40
|
+
messages: GQLMessage[];
|
|
41
|
+
}
|
|
42
|
+
//# sourceMappingURL=PrimitiveRadioFragment.type.d.ts.map
|
package/papyrus-web-components/dist/widgets/primitiveRadio/PrimitiveRadioFragment.type.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PrimitiveRadioFragment.type.d.ts","sourceRoot":"","sources":["../../../src/widgets/primitiveRadio/PrimitiveRadioFragment.type.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;6EAY6E;AAE7E,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AACpE,OAAO,EAAE,UAAU,EAAE,MAAM,wCAAwC,CAAC;AAEpE,MAAM,WAAW,iBAAkB,SAAQ,SAAS;IAClD,aAAa,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;IACpC,cAAc,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,eAAe;IAC9B,QAAQ,EAAE,kBAAkB,CAAC;CAC9B;AAED,MAAM,WAAW,oBAAoB;IACnC,KAAK,EAAE,gBAAgB,CAAC;CACzB;AAED,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,gBAAgB,EAAE,MAAM,CAAC;IACzB,gBAAgB,EAAE,MAAM,CAAC;IACzB,gBAAgB,EAAE,MAAM,CAAC;IACzB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,kBAAkB;IACjC,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,iBAAkB,SAAQ,kBAAkB;IAC3D,QAAQ,EAAE,UAAU,EAAE,CAAC;CACxB;AAED,MAAM,WAAW,eAAgB,SAAQ,kBAAkB;IACzD,QAAQ,EAAE,UAAU,EAAE,CAAC;CACxB"}
|
|
@@ -0,0 +1,16 @@
|
|
|
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
|
+
import { SvgIconProps } from '@mui/material/SvgIcon';
|
|
15
|
+
export declare const PrimitiveRadioIcon: (props: SvgIconProps) => import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
//# sourceMappingURL=PrimitiveRadioIcon.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PrimitiveRadioIcon.d.ts","sourceRoot":"","sources":["../../../src/widgets/primitiveRadio/PrimitiveRadioIcon.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;6EAY6E;AAE7E,OAAgB,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAE9D,eAAO,MAAM,kBAAkB,UAAW,YAAY,4CAmBrD,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
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
|
+
import { WidgetProps } from '@eclipse-sirius/sirius-components-formdescriptioneditors';
|
|
15
|
+
import { GQLPrimitiveRadio } from './PrimitiveRadioFragment.type';
|
|
16
|
+
type PropertySectionComponentProps = WidgetProps<GQLPrimitiveRadio>;
|
|
17
|
+
export declare const PrimitiveRadioPreview: ({ widget }: PropertySectionComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export {};
|
|
19
|
+
//# sourceMappingURL=PrimitiveRadioPreview.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PrimitiveRadioPreview.d.ts","sourceRoot":"","sources":["../../../src/widgets/primitiveRadio/PrimitiveRadioPreview.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;6EAY6E;AAG7E,OAAO,EAAE,WAAW,EAAE,MAAM,0DAA0D,CAAC;AAMvF,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAgBlE,KAAK,6BAA6B,GAAG,WAAW,CAAC,iBAAiB,CAAC,CAAC;AAEpE,eAAO,MAAM,qBAAqB,wFAgDjC,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|
+
import { PropertySectionComponentProps } from '@eclipse-sirius/sirius-components-forms';
|
|
15
|
+
import { GQLPrimitiveRadio } from './PrimitiveRadioFragment.type';
|
|
16
|
+
export declare const newValueMutation: import("@apollo/client").DocumentNode;
|
|
17
|
+
export declare const PrimitiveRadioSection: ({ editingContextId, formId, widget, readOnly, }: PropertySectionComponentProps<GQLPrimitiveRadio>) => import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
//# sourceMappingURL=PrimitiveRadioSection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PrimitiveRadioSection.d.ts","sourceRoot":"","sources":["../../../src/widgets/primitiveRadio/PrimitiveRadioSection.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;6EAY6E;AAI7E,OAAO,EAAE,6BAA6B,EAAwB,MAAM,yCAAyC,CAAC;AAM9G,OAAO,EAML,iBAAiB,EAElB,MAAM,+BAA+B,CAAC;AAEvC,eAAO,MAAM,gBAAgB,uCAkB5B,CAAC;AAEF,eAAO,MAAM,qBAAqB,oDAK/B,8BAA8B,iBAAiB,CAAC,4CAsElD,CAAC"}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@eclipse-papyrus/papyrus-web-components",
|
|
3
|
+
"version": "2026.2.0",
|
|
4
|
+
"author": "Eclipse Papyrus",
|
|
5
|
+
"license": "EPL-2.0",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "https://gitlab.eclipse.org/eclipse/papyrus/org.eclipse.papyrus-web"
|
|
9
|
+
},
|
|
10
|
+
"publishConfig": {
|
|
11
|
+
"registry": "https://registry.npmjs.org/",
|
|
12
|
+
"access": "public"
|
|
13
|
+
|
|
14
|
+
},
|
|
15
|
+
"main": "./dist/papyrus-web-components.umd.js",
|
|
16
|
+
"module": "./dist/papyrus-web-components.es.js",
|
|
17
|
+
"types": "./dist/index.d.ts",
|
|
18
|
+
"files": [
|
|
19
|
+
"dist"
|
|
20
|
+
],
|
|
21
|
+
"exports": {
|
|
22
|
+
".": {
|
|
23
|
+
"require": "./dist/papyrus-web-components.umd.js",
|
|
24
|
+
"import": "./dist/papyrus-web-components.es.js"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"scripts": {
|
|
28
|
+
"build-dev": "vite build --mode 'development' && tsc",
|
|
29
|
+
"build": "vite build && tsc",
|
|
30
|
+
"format": "prettier --write \"src/**/*.{js,ts,tsx,css}\"",
|
|
31
|
+
"format-lint": "prettier --list-different \"src/**/*.{js,ts,tsx,css}\"",
|
|
32
|
+
"publish:local": "yalc push"
|
|
33
|
+
},
|
|
34
|
+
"peerDependencies": {
|
|
35
|
+
"@ObeoNetwork/gantt-task-react": "0.6.2",
|
|
36
|
+
"@ObeoNetwork/react-trello": "2.4.11",
|
|
37
|
+
"@apollo/client": "3.10.4",
|
|
38
|
+
"@eclipse-sirius/sirius-components-browser": "2026.1.2",
|
|
39
|
+
"@eclipse-sirius/sirius-components-charts": "2026.1.2",
|
|
40
|
+
"@eclipse-sirius/sirius-components-core": "2026.1.2",
|
|
41
|
+
"@eclipse-sirius/sirius-components-deck": "2026.1.2",
|
|
42
|
+
"@eclipse-sirius/sirius-components-diagrams": "2026.1.2",
|
|
43
|
+
"@eclipse-sirius/sirius-components-formdescriptioneditors": "2026.1.2",
|
|
44
|
+
"@eclipse-sirius/sirius-components-forms": "2026.1.2",
|
|
45
|
+
"@eclipse-sirius/sirius-components-gantt": "2026.1.2",
|
|
46
|
+
"@eclipse-sirius/sirius-components-omnibox": "2026.1.2",
|
|
47
|
+
"@eclipse-sirius/sirius-components-portals": "2026.1.2",
|
|
48
|
+
"@eclipse-sirius/sirius-components-selection": "2026.1.2",
|
|
49
|
+
"@eclipse-sirius/sirius-components-trees": "2026.1.2",
|
|
50
|
+
"@eclipse-sirius/sirius-components-tables": "2026.1.2",
|
|
51
|
+
"@eclipse-sirius/sirius-components-validation": "2026.1.2",
|
|
52
|
+
"@eclipse-sirius/sirius-components-widget-reference": "2026.1.2",
|
|
53
|
+
"@eclipse-sirius/sirius-components-widget-table": "2026.1.2",
|
|
54
|
+
"@eclipse-sirius/sirius-components-tsconfig": "2026.1.2",
|
|
55
|
+
"@eclipse-sirius/sirius-web-application": "2026.1.2",
|
|
56
|
+
"@lexical/react": "0.8.1",
|
|
57
|
+
"@mui/icons-material": "7.0.2",
|
|
58
|
+
"@mui/material": "7.0.2",
|
|
59
|
+
"@mui/x-tree-view": "7.29.1",
|
|
60
|
+
"@types/react": "18.3.3",
|
|
61
|
+
"@types/react-dom": "18.3.0",
|
|
62
|
+
"@types/react-router-dom": "5.3.3",
|
|
63
|
+
"@xstate/react": "3.0.0",
|
|
64
|
+
"@xyflow/react": "12.6.0",
|
|
65
|
+
"d3": "7.0.0",
|
|
66
|
+
"elkjs": "0.11.0",
|
|
67
|
+
"export-to-csv": "1.3.0",
|
|
68
|
+
"fontsource-roboto": "4.0.0",
|
|
69
|
+
"graphql": "16.8.1",
|
|
70
|
+
"html-to-image": "1.11.11",
|
|
71
|
+
"lexical": "0.8.1",
|
|
72
|
+
"material-react-table": "3.2.1",
|
|
73
|
+
"notistack": "3.0.1",
|
|
74
|
+
"pathfinding": "0.4.18",
|
|
75
|
+
"prop-types": "15.8.1",
|
|
76
|
+
"react": "18.3.1",
|
|
77
|
+
"react-dom": "18.3.1",
|
|
78
|
+
"react-draggable": "4.4.6",
|
|
79
|
+
"react-grid-layout": "1.4.4",
|
|
80
|
+
"react-router-dom": "6.26.0",
|
|
81
|
+
"reflect-metadata": "0.1.13",
|
|
82
|
+
"subscriptions-transport-ws": "0.11.0",
|
|
83
|
+
"svg-path-parser": "1.1.0",
|
|
84
|
+
"xstate": "4.32.1"
|
|
85
|
+
},
|
|
86
|
+
"devDependencies": {
|
|
87
|
+
"@testing-library/jest-dom": "5.14.1",
|
|
88
|
+
"@testing-library/react": "12.1.2",
|
|
89
|
+
"@testing-library/user-event": "13.2.1",
|
|
90
|
+
"@types/d3": "7.0.0",
|
|
91
|
+
"@types/jest": "27.0.0",
|
|
92
|
+
"@types/node": "22.16.0",
|
|
93
|
+
"@types/react-dom": "18.3.0",
|
|
94
|
+
"rollup-plugin-peer-deps-external": "2.2.4",
|
|
95
|
+
"@vitejs/plugin-react": "5.0.0",
|
|
96
|
+
"jest-junit-reporter": "1.1.0",
|
|
97
|
+
"prettier": "2.7.1",
|
|
98
|
+
"react": "18.3.1",
|
|
99
|
+
"react-dom": "18.3.1",
|
|
100
|
+
"tss-react": "4.9.16",
|
|
101
|
+
"typescript": "5.4.5",
|
|
102
|
+
"vite": "7.1.1",
|
|
103
|
+
"vitest": "3.2.4"
|
|
104
|
+
}
|
|
105
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/*******************************************************************************
|
|
2
|
+
* Copyright (c) 2021, 2025 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
|
+
|
|
14
|
+
export type EditingContext = {
|
|
15
|
+
id: string;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export type Project = {
|
|
19
|
+
id: string;
|
|
20
|
+
name: string;
|
|
21
|
+
currentEditingContext: EditingContext;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
export type GQLRepresentationMetadata = {
|
|
25
|
+
id: string;
|
|
26
|
+
label: string;
|
|
27
|
+
kind: string;
|
|
28
|
+
isProfileDiagram: boolean;
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
export type GQLEditingContext = {
|
|
32
|
+
id: string;
|
|
33
|
+
representation: GQLRepresentationMetadata | undefined;
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
export type GQLProject = {
|
|
37
|
+
id: string;
|
|
38
|
+
name: string;
|
|
39
|
+
currentEditingContext: GQLEditingContext;
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
export type GQLViewer = {
|
|
43
|
+
project: GQLProject;
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
export type GQLGetProjectQueryData = {
|
|
47
|
+
viewer: GQLViewer;
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
export type GQLGetProjectQueryVariables = {
|
|
51
|
+
projectId: string;
|
|
52
|
+
representationId: string;
|
|
53
|
+
includeRepresentation: boolean;
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
export type EditProjectViewParams = 'projectId' | 'representationId';
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
/*******************************************************************************
|
|
2
|
+
* Copyright (c) 2023, 2025 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
|
+
* CEA LIST - Copied from FilterableSortableList.tsx at 10f4e6386bb9eeb3839071e9cdd4d1ceb8efcb39. Adapted to contain metaclasses.
|
|
13
|
+
*******************************************************************************/
|
|
14
|
+
import { ServerContext, ServerContextValue, splitText } from '@eclipse-sirius/sirius-components-core';
|
|
15
|
+
import { ListItemIcon } from '@mui/material';
|
|
16
|
+
import List from '@mui/material/List';
|
|
17
|
+
import ListItem from '@mui/material/ListItem';
|
|
18
|
+
import ListItemText from '@mui/material/ListItemText';
|
|
19
|
+
import Typography from '@mui/material/Typography';
|
|
20
|
+
import { Theme } from '@mui/material/styles';
|
|
21
|
+
import { makeStyles } from 'tss-react/mui';
|
|
22
|
+
import { useContext, useState } from 'react';
|
|
23
|
+
import {
|
|
24
|
+
FilterableSortableListProps,
|
|
25
|
+
FilterableSortableListState,
|
|
26
|
+
HighlightedLabelProps,
|
|
27
|
+
} from './FilterableSortableList.types';
|
|
28
|
+
import { ModelBrowserFilterBar } from './ModelBrowserFilterBar';
|
|
29
|
+
|
|
30
|
+
const useStyles = makeStyles()((theme: Theme) => ({
|
|
31
|
+
selectable: {
|
|
32
|
+
cursor: 'pointer',
|
|
33
|
+
'&:hover': {
|
|
34
|
+
backgroundColor: theme.palette.action.hover,
|
|
35
|
+
},
|
|
36
|
+
userSelect: 'none',
|
|
37
|
+
},
|
|
38
|
+
selected: {
|
|
39
|
+
cursor: 'pointer',
|
|
40
|
+
backgroundColor: theme.palette.action.selected,
|
|
41
|
+
userSelect: 'none',
|
|
42
|
+
},
|
|
43
|
+
selectedLabel: {
|
|
44
|
+
fontWeight: 'bold',
|
|
45
|
+
},
|
|
46
|
+
title: {
|
|
47
|
+
opacity: 0.6,
|
|
48
|
+
fontSize: theme.typography.caption.fontSize,
|
|
49
|
+
},
|
|
50
|
+
borderStyle: {
|
|
51
|
+
border: '1px solid',
|
|
52
|
+
borderColor: theme.palette.grey[500],
|
|
53
|
+
height: 300,
|
|
54
|
+
overflow: 'auto',
|
|
55
|
+
},
|
|
56
|
+
}));
|
|
57
|
+
const useLabelStyles = makeStyles()((theme: Theme) => ({
|
|
58
|
+
highlight: {
|
|
59
|
+
backgroundColor: theme.palette.navigation.leftBackground,
|
|
60
|
+
},
|
|
61
|
+
}));
|
|
62
|
+
|
|
63
|
+
const HighlightedLabel = ({ label, textToHighlight }: HighlightedLabelProps) => {
|
|
64
|
+
const { classes } = useLabelStyles();
|
|
65
|
+
let itemLabel: JSX.Element;
|
|
66
|
+
const splitLabelWithTextToHighlight: string[] = splitText(label, textToHighlight);
|
|
67
|
+
if (
|
|
68
|
+
textToHighlight === null ||
|
|
69
|
+
textToHighlight === '' ||
|
|
70
|
+
(splitLabelWithTextToHighlight.length === 1 &&
|
|
71
|
+
splitLabelWithTextToHighlight[0].toLocaleLowerCase() !== label.toLocaleLowerCase())
|
|
72
|
+
) {
|
|
73
|
+
itemLabel = <>{label}</>;
|
|
74
|
+
} else {
|
|
75
|
+
const languages: string[] = Array.from(navigator.languages);
|
|
76
|
+
itemLabel = (
|
|
77
|
+
<>
|
|
78
|
+
{splitLabelWithTextToHighlight.map((value, index) => {
|
|
79
|
+
const shouldHighlight = value.localeCompare(textToHighlight, languages, { sensitivity: 'base' }) === 0;
|
|
80
|
+
return (
|
|
81
|
+
<span
|
|
82
|
+
key={value + index}
|
|
83
|
+
data-testid={`${label}-${value}-${index}`}
|
|
84
|
+
className={shouldHighlight ? classes.highlight : ''}>
|
|
85
|
+
{value}
|
|
86
|
+
</span>
|
|
87
|
+
);
|
|
88
|
+
})}
|
|
89
|
+
</>
|
|
90
|
+
);
|
|
91
|
+
}
|
|
92
|
+
return <Typography>{itemLabel}</Typography>;
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
export const FilterableSortableList = ({
|
|
96
|
+
items,
|
|
97
|
+
onClick,
|
|
98
|
+
onDoubleClick,
|
|
99
|
+
selectedItems,
|
|
100
|
+
onFocusFilter,
|
|
101
|
+
}: FilterableSortableListProps) => {
|
|
102
|
+
const { classes } = useStyles();
|
|
103
|
+
const [state, setState] = useState<FilterableSortableListState>({
|
|
104
|
+
filterBarText: '',
|
|
105
|
+
hoveringItemId: undefined,
|
|
106
|
+
draggingItemId: undefined,
|
|
107
|
+
});
|
|
108
|
+
const { httpOrigin } = useContext<ServerContextValue>(ServerContext);
|
|
109
|
+
|
|
110
|
+
return (
|
|
111
|
+
<>
|
|
112
|
+
<ModelBrowserFilterBar
|
|
113
|
+
onTextChange={(event) =>
|
|
114
|
+
setState((prevState) => {
|
|
115
|
+
return {
|
|
116
|
+
...prevState,
|
|
117
|
+
filterBarText: event.target.value,
|
|
118
|
+
};
|
|
119
|
+
})
|
|
120
|
+
}
|
|
121
|
+
onTextClear={() =>
|
|
122
|
+
setState((prevState) => {
|
|
123
|
+
return {
|
|
124
|
+
...prevState,
|
|
125
|
+
filterBarText: '',
|
|
126
|
+
};
|
|
127
|
+
})
|
|
128
|
+
}
|
|
129
|
+
text={state.filterBarText}
|
|
130
|
+
onFocus={onFocusFilter}
|
|
131
|
+
/>
|
|
132
|
+
<span className={classes.title}>Selected</span>
|
|
133
|
+
<div className={classes.borderStyle}>
|
|
134
|
+
<List dense component="div" role="list" data-testid="selected-items-list">
|
|
135
|
+
{items
|
|
136
|
+
.filter(({ label }) => {
|
|
137
|
+
if (state.filterBarText === null || state.filterBarText === '') {
|
|
138
|
+
return true;
|
|
139
|
+
}
|
|
140
|
+
const splitLabelWithTextToHighlight: string[] = splitText(label, state.filterBarText);
|
|
141
|
+
return (
|
|
142
|
+
splitLabelWithTextToHighlight.length > 1 ||
|
|
143
|
+
(splitLabelWithTextToHighlight.length === 1 &&
|
|
144
|
+
splitLabelWithTextToHighlight[0].toLocaleLowerCase() === state.filterBarText.toLocaleLowerCase())
|
|
145
|
+
);
|
|
146
|
+
})
|
|
147
|
+
.map(({ id, label, iconURL }, _) => {
|
|
148
|
+
const labelId = `transfer-list-item-${id}-label`;
|
|
149
|
+
const selected = selectedItems.some((entry) => entry.id === id);
|
|
150
|
+
return (
|
|
151
|
+
<ListItem
|
|
152
|
+
key={id}
|
|
153
|
+
role="listitem"
|
|
154
|
+
className={selected ? classes.selected : classes.selectable}
|
|
155
|
+
onClick={(event) => onClick(event, { id, label, iconURL })}
|
|
156
|
+
onDoubleClick={(_) => onDoubleClick()}
|
|
157
|
+
data-testid={label}>
|
|
158
|
+
<ListItemIcon>
|
|
159
|
+
{iconURL ? <img width="16" height="16" alt={''} src={httpOrigin + iconURL} /> : null}
|
|
160
|
+
</ListItemIcon>
|
|
161
|
+
<ListItemText
|
|
162
|
+
id={labelId}
|
|
163
|
+
primary={<HighlightedLabel label={label} textToHighlight={state.filterBarText} />}
|
|
164
|
+
/>
|
|
165
|
+
</ListItem>
|
|
166
|
+
);
|
|
167
|
+
})}
|
|
168
|
+
</List>
|
|
169
|
+
</div>
|
|
170
|
+
</>
|
|
171
|
+
);
|
|
172
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/*******************************************************************************
|
|
2
|
+
* Copyright (c) 2023, 2025 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
|
+
* CEA LIST - copied from FilterableSortableList.types.ts at 10f4e6386bb9eeb3839071e9cdd4d1ceb8efcb39. Adapted to contain metaclasses.
|
|
13
|
+
*******************************************************************************/
|
|
14
|
+
import { ItemWithIcon } from './TransferModal.types';
|
|
15
|
+
|
|
16
|
+
export interface FilterableSortableListProps {
|
|
17
|
+
items: ItemWithIcon[];
|
|
18
|
+
setItems: (items: ItemWithIcon[]) => void;
|
|
19
|
+
onDoubleClick: () => void;
|
|
20
|
+
onClick: (event: React.MouseEvent<Element, MouseEvent>, item: ItemWithIcon) => void;
|
|
21
|
+
selectedItems: ItemWithIcon[];
|
|
22
|
+
onFocusFilter: boolean;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export interface FilterableSortableListState {
|
|
26
|
+
filterBarText: string;
|
|
27
|
+
hoveringItemId: string | undefined;
|
|
28
|
+
draggingItemId: string | undefined;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export interface HighlightedLabelProps {
|
|
32
|
+
label: string;
|
|
33
|
+
textToHighlight: string;
|
|
34
|
+
}
|