@neo4j-ndl/react 3.9.0 → 3.9.1
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/lib/cjs/_common/CodeBlockWrapper.js +1 -1
- package/lib/cjs/avatar/Avatar.js +1 -1
- package/lib/cjs/breadcrumbs/Breadcrumbs.js +2 -2
- package/lib/cjs/code/stories/code-default.story.js +31 -0
- package/lib/cjs/code/stories/code-default.story.js.map +1 -0
- package/lib/cjs/code/stories/code-disabled.story.js +45 -0
- package/lib/cjs/code/stories/code-disabled.story.js.map +1 -0
- package/lib/cjs/code/stories/code-full.story.js +45 -0
- package/lib/cjs/code/stories/code-full.story.js.map +1 -0
- package/lib/cjs/code/stories/code-inline-runnable.story.js +30 -0
- package/lib/cjs/code/stories/code-inline-runnable.story.js.map +1 -0
- package/lib/cjs/code/stories/code-inline.story.js +30 -0
- package/lib/cjs/code/stories/code-inline.story.js.map +1 -0
- package/lib/cjs/code/stories/code-languages.story.js +31 -0
- package/lib/cjs/code/stories/code-languages.story.js.map +1 -0
- package/lib/cjs/code/stories/code-overflow.story.js +31 -0
- package/lib/cjs/code/stories/code-overflow.story.js.map +1 -0
- package/lib/cjs/code/stories/code-with-actions.story.js +45 -0
- package/lib/cjs/code/stories/code-with-actions.story.js.map +1 -0
- package/lib/cjs/code/stories/code-with-header.story.js +31 -0
- package/lib/cjs/code/stories/code-with-header.story.js.map +1 -0
- package/lib/cjs/code/stories/code-with-line-numbers.story.js +31 -0
- package/lib/cjs/code/stories/code-with-line-numbers.story.js.map +1 -0
- package/lib/cjs/code/stories/code.stories.js +166 -0
- package/lib/cjs/code/stories/code.stories.js.map +1 -0
- package/lib/cjs/code/stories/example-code-snippets.js +81 -0
- package/lib/cjs/code/stories/example-code-snippets.js.map +1 -0
- package/lib/cjs/code/stories/index.js +68 -0
- package/lib/cjs/code/stories/index.js.map +1 -0
- package/lib/cjs/data-grid/Components.js +1 -1
- package/lib/cjs/date-picker/stories/date-picker-default.story.js +41 -0
- package/lib/cjs/date-picker/stories/date-picker-default.story.js.map +1 -0
- package/lib/cjs/date-picker/stories/date-picker-disabled.story.js +38 -0
- package/lib/cjs/date-picker/stories/date-picker-disabled.story.js.map +1 -0
- package/lib/cjs/date-picker/stories/date-picker-full.story.js +60 -0
- package/lib/cjs/date-picker/stories/date-picker-full.story.js.map +1 -0
- package/lib/cjs/date-picker/stories/date-picker-inside-modal.story.js +41 -0
- package/lib/cjs/date-picker/stories/date-picker-inside-modal.story.js.map +1 -0
- package/lib/cjs/date-picker/stories/date-picker-min-max-date.story.js +45 -0
- package/lib/cjs/date-picker/stories/date-picker-min-max-date.story.js.map +1 -0
- package/lib/cjs/date-picker/stories/date-picker-opens-to-date.story.js +43 -0
- package/lib/cjs/date-picker/stories/date-picker-opens-to-date.story.js.map +1 -0
- package/lib/cjs/date-picker/stories/date-picker-starts-on-monday.story.js +42 -0
- package/lib/cjs/date-picker/stories/date-picker-starts-on-monday.story.js.map +1 -0
- package/lib/cjs/date-picker/stories/date-picker-text-input-props.story.js +44 -0
- package/lib/cjs/date-picker/stories/date-picker-text-input-props.story.js.map +1 -0
- package/lib/cjs/date-picker/stories/date-picker-with-time-picker.story.js +45 -0
- package/lib/cjs/date-picker/stories/date-picker-with-time-picker.story.js.map +1 -0
- package/lib/cjs/date-picker/stories/date-picker.stories.js +207 -0
- package/lib/cjs/date-picker/stories/date-picker.stories.js.map +1 -0
- package/lib/cjs/date-picker/stories/index.js +64 -0
- package/lib/cjs/date-picker/stories/index.js.map +1 -0
- package/lib/cjs/dropzone/stories/dropzone-csv-files.story.js +37 -0
- package/lib/cjs/dropzone/stories/dropzone-csv-files.story.js.map +1 -0
- package/lib/cjs/dropzone/stories/dropzone-custom-extensions.story.js +36 -0
- package/lib/cjs/dropzone/stories/dropzone-custom-extensions.story.js.map +1 -0
- package/lib/cjs/dropzone/stories/dropzone-default.story.js +36 -0
- package/lib/cjs/dropzone/stories/dropzone-default.story.js.map +1 -0
- package/lib/cjs/dropzone/stories/dropzone-disabled.story.js +38 -0
- package/lib/cjs/dropzone/stories/dropzone-disabled.story.js.map +1 -0
- package/lib/cjs/dropzone/stories/dropzone-full.story.js +109 -0
- package/lib/cjs/dropzone/stories/dropzone-full.story.js.map +1 -0
- package/lib/cjs/dropzone/stories/dropzone-loading-progress.story.js +31 -0
- package/lib/cjs/dropzone/stories/dropzone-loading-progress.story.js.map +1 -0
- package/lib/cjs/dropzone/stories/dropzone-loading-spinner.story.js +31 -0
- package/lib/cjs/dropzone/stories/dropzone-loading-spinner.story.js.map +1 -0
- package/lib/cjs/dropzone/stories/dropzone.stories.js +121 -0
- package/lib/cjs/dropzone/stories/dropzone.stories.js.map +1 -0
- package/lib/cjs/dropzone/stories/index.js +56 -0
- package/lib/cjs/dropzone/stories/index.js.map +1 -0
- package/lib/cjs/graph-visualization/graph-visualization-buttons.js +2 -2
- package/lib/cjs/graph-visualization/graph-visualization.js +20 -4
- package/lib/cjs/graph-visualization/graph-visualization.js.map +1 -1
- package/lib/cjs/graph-visualization/stories/graph-visualization-highlighting.story.js +30 -0
- package/lib/cjs/graph-visualization/stories/graph-visualization-highlighting.story.js.map +1 -0
- package/lib/cjs/graph-visualization/stories/graph-visualization.stories.js +14 -1
- package/lib/cjs/graph-visualization/stories/graph-visualization.stories.js.map +1 -1
- package/lib/cjs/graph-visualization/stories/index.js +5 -1
- package/lib/cjs/graph-visualization/stories/index.js.map +1 -1
- package/lib/cjs/graph-visualization/{use-managed-selection-state.js → use-managed-node-state.js} +10 -6
- package/lib/cjs/graph-visualization/use-managed-node-state.js.map +1 -0
- package/lib/cjs/next/breadcrumbs/Breadcrumbs.js +1 -1
- package/lib/cjs/radio/stories/index.js +56 -0
- package/lib/cjs/radio/stories/index.js.map +1 -0
- package/lib/cjs/radio/stories/radio-checkedByDefault.story.js +30 -0
- package/lib/cjs/radio/stories/radio-checkedByDefault.story.js.map +1 -0
- package/lib/cjs/radio/stories/radio-custom-label.story.js +30 -0
- package/lib/cjs/radio/stories/radio-custom-label.story.js.map +1 -0
- package/lib/cjs/radio/stories/radio-default.story.js +30 -0
- package/lib/cjs/radio/stories/radio-default.story.js.map +1 -0
- package/lib/cjs/radio/stories/radio-disabled.story.js +30 -0
- package/lib/cjs/radio/stories/radio-disabled.story.js.map +1 -0
- package/lib/cjs/radio/stories/radio-hasLabelBefore.story.js +30 -0
- package/lib/cjs/radio/stories/radio-hasLabelBefore.story.js.map +1 -0
- package/lib/cjs/radio/stories/radio-no-label.story.js +30 -0
- package/lib/cjs/radio/stories/radio-no-label.story.js.map +1 -0
- package/lib/cjs/radio/stories/radio-truncated-label.story.js +30 -0
- package/lib/cjs/radio/stories/radio-truncated-label.story.js.map +1 -0
- package/lib/cjs/radio/stories/radio.stories.js +137 -0
- package/lib/cjs/radio/stories/radio.stories.js.map +1 -0
- package/lib/cjs/segmented-control/stories/segmented-control-only-icons.story.js +1 -1
- package/lib/cjs/spotlight/SpotlightTarget.js +1 -1
- package/lib/cjs/switch/stories/index.js +56 -0
- package/lib/cjs/switch/stories/index.js.map +1 -0
- package/lib/cjs/switch/stories/switch-checked-by-default.story.js +30 -0
- package/lib/cjs/switch/stories/switch-checked-by-default.story.js.map +1 -0
- package/lib/cjs/switch/stories/switch-default.story.js +30 -0
- package/lib/cjs/switch/stories/switch-default.story.js.map +1 -0
- package/lib/cjs/switch/stories/switch-disabled.story.js +30 -0
- package/lib/cjs/switch/stories/switch-disabled.story.js.map +1 -0
- package/lib/cjs/switch/stories/switch-full.story.js +39 -0
- package/lib/cjs/switch/stories/switch-full.story.js.map +1 -0
- package/lib/cjs/switch/stories/switch-has-label-before.story.js +30 -0
- package/lib/cjs/switch/stories/switch-has-label-before.story.js.map +1 -0
- package/lib/cjs/switch/stories/switch-indeterminate.story.js +33 -0
- package/lib/cjs/switch/stories/switch-indeterminate.story.js.map +1 -0
- package/lib/cjs/switch/stories/switch-no-label.story.js +30 -0
- package/lib/cjs/switch/stories/switch-no-label.story.js.map +1 -0
- package/lib/cjs/switch/stories/switch.stories.js +137 -0
- package/lib/cjs/switch/stories/switch.stories.js.map +1 -0
- package/lib/cjs/tabs/stories/index.js +48 -0
- package/lib/cjs/tabs/stories/index.js.map +1 -0
- package/lib/cjs/tabs/stories/tabs-default.story.js +32 -0
- package/lib/cjs/tabs/stories/tabs-default.story.js.map +1 -0
- package/lib/cjs/tabs/stories/tabs-disabled.story.js +32 -0
- package/lib/cjs/tabs/stories/tabs-disabled.story.js.map +1 -0
- package/lib/cjs/tabs/stories/tabs-fill-variants.story.js +33 -0
- package/lib/cjs/tabs/stories/tabs-fill-variants.story.js.map +1 -0
- package/lib/cjs/tabs/stories/tabs-sizes.story.js +33 -0
- package/lib/cjs/tabs/stories/tabs-sizes.story.js.map +1 -0
- package/lib/cjs/tabs/stories/tabs-with-icons.story.js +33 -0
- package/lib/cjs/tabs/stories/tabs-with-icons.story.js.map +1 -0
- package/lib/cjs/tabs/stories/tabs.stories.js +106 -0
- package/lib/cjs/tabs/stories/tabs.stories.js.map +1 -0
- package/lib/cjs/tag/stories/index.js +42 -0
- package/lib/cjs/tag/stories/index.js.map +1 -0
- package/lib/cjs/tag/stories/tag-removable.story.js +33 -0
- package/lib/cjs/tag/stories/tag-removable.story.js.map +1 -0
- package/lib/cjs/tag/stories/tag-sizes.story.js +30 -0
- package/lib/cjs/tag/stories/tag-sizes.story.js.map +1 -0
- package/lib/cjs/tag/stories/tag-types.story.js +30 -0
- package/lib/cjs/tag/stories/tag-types.story.js.map +1 -0
- package/lib/cjs/tag/stories/tag.stories.js +80 -0
- package/lib/cjs/tag/stories/tag.stories.js.map +1 -0
- package/lib/cjs/text-link/stories/index.js +40 -0
- package/lib/cjs/text-link/stories/index.js.map +1 -0
- package/lib/cjs/text-link/stories/text-link-default.story.js +30 -0
- package/lib/cjs/text-link/stories/text-link-default.story.js.map +1 -0
- package/lib/cjs/text-link/stories/text-link-external.story.js +30 -0
- package/lib/cjs/text-link/stories/text-link-external.story.js.map +1 -0
- package/lib/cjs/text-link/stories/text-link-internal-icon.story.js +30 -0
- package/lib/cjs/text-link/stories/text-link-internal-icon.story.js.map +1 -0
- package/lib/cjs/text-link/stories/text-link.stories.js +76 -0
- package/lib/cjs/text-link/stories/text-link.stories.js.map +1 -0
- package/lib/cjs/tree-view/TreeItemWrapper.js +1 -2
- package/lib/cjs/tree-view/TreeItemWrapper.js.map +1 -1
- package/lib/esm/_common/CodeBlockWrapper.js +1 -1
- package/lib/esm/avatar/Avatar.js +1 -1
- package/lib/esm/breadcrumbs/Breadcrumbs.js +2 -2
- package/lib/esm/code/stories/code-default.story.js +29 -0
- package/lib/esm/code/stories/code-default.story.js.map +1 -0
- package/lib/esm/code/stories/code-disabled.story.js +43 -0
- package/lib/esm/code/stories/code-disabled.story.js.map +1 -0
- package/lib/esm/code/stories/code-full.story.js +43 -0
- package/lib/esm/code/stories/code-full.story.js.map +1 -0
- package/lib/esm/code/stories/code-inline-runnable.story.js +28 -0
- package/lib/esm/code/stories/code-inline-runnable.story.js.map +1 -0
- package/lib/esm/code/stories/code-inline.story.js +28 -0
- package/lib/esm/code/stories/code-inline.story.js.map +1 -0
- package/lib/esm/code/stories/code-languages.story.js +29 -0
- package/lib/esm/code/stories/code-languages.story.js.map +1 -0
- package/lib/esm/code/stories/code-overflow.story.js +29 -0
- package/lib/esm/code/stories/code-overflow.story.js.map +1 -0
- package/lib/esm/code/stories/code-with-actions.story.js +43 -0
- package/lib/esm/code/stories/code-with-actions.story.js.map +1 -0
- package/lib/esm/code/stories/code-with-header.story.js +29 -0
- package/lib/esm/code/stories/code-with-header.story.js.map +1 -0
- package/lib/esm/code/stories/code-with-line-numbers.story.js +29 -0
- package/lib/esm/code/stories/code-with-line-numbers.story.js.map +1 -0
- package/lib/esm/code/stories/code.stories.js +163 -0
- package/lib/esm/code/stories/code.stories.js.map +1 -0
- package/lib/esm/code/stories/example-code-snippets.js +78 -0
- package/lib/esm/code/stories/example-code-snippets.js.map +1 -0
- package/lib/esm/code/stories/index.js +52 -0
- package/lib/esm/code/stories/index.js.map +1 -0
- package/lib/esm/data-grid/Components.js +1 -1
- package/lib/esm/date-picker/stories/date-picker-default.story.js +39 -0
- package/lib/esm/date-picker/stories/date-picker-default.story.js.map +1 -0
- package/lib/esm/date-picker/stories/date-picker-disabled.story.js +36 -0
- package/lib/esm/date-picker/stories/date-picker-disabled.story.js.map +1 -0
- package/lib/esm/date-picker/stories/date-picker-full.story.js +58 -0
- package/lib/esm/date-picker/stories/date-picker-full.story.js.map +1 -0
- package/lib/esm/date-picker/stories/date-picker-inside-modal.story.js +39 -0
- package/lib/esm/date-picker/stories/date-picker-inside-modal.story.js.map +1 -0
- package/lib/esm/date-picker/stories/date-picker-min-max-date.story.js +43 -0
- package/lib/esm/date-picker/stories/date-picker-min-max-date.story.js.map +1 -0
- package/lib/esm/date-picker/stories/date-picker-opens-to-date.story.js +41 -0
- package/lib/esm/date-picker/stories/date-picker-opens-to-date.story.js.map +1 -0
- package/lib/esm/date-picker/stories/date-picker-starts-on-monday.story.js +40 -0
- package/lib/esm/date-picker/stories/date-picker-starts-on-monday.story.js.map +1 -0
- package/lib/esm/date-picker/stories/date-picker-text-input-props.story.js +42 -0
- package/lib/esm/date-picker/stories/date-picker-text-input-props.story.js.map +1 -0
- package/lib/esm/date-picker/stories/date-picker-with-time-picker.story.js +43 -0
- package/lib/esm/date-picker/stories/date-picker-with-time-picker.story.js.map +1 -0
- package/lib/esm/date-picker/stories/date-picker.stories.js +201 -0
- package/lib/esm/date-picker/stories/date-picker.stories.js.map +1 -0
- package/lib/esm/date-picker/stories/index.js +49 -0
- package/lib/esm/date-picker/stories/index.js.map +1 -0
- package/lib/esm/dropzone/stories/dropzone-csv-files.story.js +35 -0
- package/lib/esm/dropzone/stories/dropzone-csv-files.story.js.map +1 -0
- package/lib/esm/dropzone/stories/dropzone-custom-extensions.story.js +34 -0
- package/lib/esm/dropzone/stories/dropzone-custom-extensions.story.js.map +1 -0
- package/lib/esm/dropzone/stories/dropzone-default.story.js +34 -0
- package/lib/esm/dropzone/stories/dropzone-default.story.js.map +1 -0
- package/lib/esm/dropzone/stories/dropzone-disabled.story.js +36 -0
- package/lib/esm/dropzone/stories/dropzone-disabled.story.js.map +1 -0
- package/lib/esm/dropzone/stories/dropzone-full.story.js +107 -0
- package/lib/esm/dropzone/stories/dropzone-full.story.js.map +1 -0
- package/lib/esm/dropzone/stories/dropzone-loading-progress.story.js +29 -0
- package/lib/esm/dropzone/stories/dropzone-loading-progress.story.js.map +1 -0
- package/lib/esm/dropzone/stories/dropzone-loading-spinner.story.js +29 -0
- package/lib/esm/dropzone/stories/dropzone-loading-spinner.story.js.map +1 -0
- package/lib/esm/dropzone/stories/dropzone.stories.js +118 -0
- package/lib/esm/dropzone/stories/dropzone.stories.js.map +1 -0
- package/lib/esm/dropzone/stories/index.js +43 -0
- package/lib/esm/dropzone/stories/index.js.map +1 -0
- package/lib/esm/graph-visualization/graph-visualization-buttons.js +2 -2
- package/lib/esm/graph-visualization/graph-visualization.js +20 -4
- package/lib/esm/graph-visualization/graph-visualization.js.map +1 -1
- package/lib/esm/graph-visualization/stories/graph-visualization-highlighting.story.js +28 -0
- package/lib/esm/graph-visualization/stories/graph-visualization-highlighting.story.js.map +1 -0
- package/lib/esm/graph-visualization/stories/graph-visualization.stories.js +14 -1
- package/lib/esm/graph-visualization/stories/graph-visualization.stories.js.map +1 -1
- package/lib/esm/graph-visualization/stories/index.js +3 -0
- package/lib/esm/graph-visualization/stories/index.js.map +1 -1
- package/lib/esm/graph-visualization/{use-managed-selection-state.js → use-managed-node-state.js} +9 -5
- package/lib/esm/graph-visualization/use-managed-node-state.js.map +1 -0
- package/lib/esm/next/breadcrumbs/Breadcrumbs.js +1 -1
- package/lib/esm/radio/stories/index.js +43 -0
- package/lib/esm/radio/stories/index.js.map +1 -0
- package/lib/esm/radio/stories/radio-checkedByDefault.story.js +28 -0
- package/lib/esm/radio/stories/radio-checkedByDefault.story.js.map +1 -0
- package/lib/esm/radio/stories/radio-custom-label.story.js +28 -0
- package/lib/esm/radio/stories/radio-custom-label.story.js.map +1 -0
- package/lib/esm/radio/stories/radio-default.story.js +28 -0
- package/lib/esm/radio/stories/radio-default.story.js.map +1 -0
- package/lib/esm/radio/stories/radio-disabled.story.js +28 -0
- package/lib/esm/radio/stories/radio-disabled.story.js.map +1 -0
- package/lib/esm/radio/stories/radio-hasLabelBefore.story.js +28 -0
- package/lib/esm/radio/stories/radio-hasLabelBefore.story.js.map +1 -0
- package/lib/esm/radio/stories/radio-no-label.story.js +28 -0
- package/lib/esm/radio/stories/radio-no-label.story.js.map +1 -0
- package/lib/esm/radio/stories/radio-truncated-label.story.js +28 -0
- package/lib/esm/radio/stories/radio-truncated-label.story.js.map +1 -0
- package/lib/esm/radio/stories/radio.stories.js +134 -0
- package/lib/esm/radio/stories/radio.stories.js.map +1 -0
- package/lib/esm/segmented-control/stories/segmented-control-only-icons.story.js +1 -1
- package/lib/esm/spotlight/SpotlightTarget.js +1 -1
- package/lib/esm/switch/stories/index.js +43 -0
- package/lib/esm/switch/stories/index.js.map +1 -0
- package/lib/esm/switch/stories/switch-checked-by-default.story.js +28 -0
- package/lib/esm/switch/stories/switch-checked-by-default.story.js.map +1 -0
- package/lib/esm/switch/stories/switch-default.story.js +28 -0
- package/lib/esm/switch/stories/switch-default.story.js.map +1 -0
- package/lib/esm/switch/stories/switch-disabled.story.js +28 -0
- package/lib/esm/switch/stories/switch-disabled.story.js.map +1 -0
- package/lib/esm/switch/stories/switch-full.story.js +37 -0
- package/lib/esm/switch/stories/switch-full.story.js.map +1 -0
- package/lib/esm/switch/stories/switch-has-label-before.story.js +28 -0
- package/lib/esm/switch/stories/switch-has-label-before.story.js.map +1 -0
- package/lib/esm/switch/stories/switch-indeterminate.story.js +31 -0
- package/lib/esm/switch/stories/switch-indeterminate.story.js.map +1 -0
- package/lib/esm/switch/stories/switch-no-label.story.js +28 -0
- package/lib/esm/switch/stories/switch-no-label.story.js.map +1 -0
- package/lib/esm/switch/stories/switch.stories.js +134 -0
- package/lib/esm/switch/stories/switch.stories.js.map +1 -0
- package/lib/esm/tabs/stories/index.js +37 -0
- package/lib/esm/tabs/stories/index.js.map +1 -0
- package/lib/esm/tabs/stories/tabs-default.story.js +30 -0
- package/lib/esm/tabs/stories/tabs-default.story.js.map +1 -0
- package/lib/esm/tabs/stories/tabs-disabled.story.js +30 -0
- package/lib/esm/tabs/stories/tabs-disabled.story.js.map +1 -0
- package/lib/esm/tabs/stories/tabs-fill-variants.story.js +31 -0
- package/lib/esm/tabs/stories/tabs-fill-variants.story.js.map +1 -0
- package/lib/esm/tabs/stories/tabs-sizes.story.js +31 -0
- package/lib/esm/tabs/stories/tabs-sizes.story.js.map +1 -0
- package/lib/esm/tabs/stories/tabs-with-icons.story.js +31 -0
- package/lib/esm/tabs/stories/tabs-with-icons.story.js.map +1 -0
- package/lib/esm/tabs/stories/tabs.stories.js +103 -0
- package/lib/esm/tabs/stories/tabs.stories.js.map +1 -0
- package/lib/esm/tag/stories/index.js +32 -0
- package/lib/esm/tag/stories/index.js.map +1 -0
- package/lib/esm/tag/stories/tag-removable.story.js +31 -0
- package/lib/esm/tag/stories/tag-removable.story.js.map +1 -0
- package/lib/esm/tag/stories/tag-sizes.story.js +28 -0
- package/lib/esm/tag/stories/tag-sizes.story.js.map +1 -0
- package/lib/esm/tag/stories/tag-types.story.js +28 -0
- package/lib/esm/tag/stories/tag-types.story.js.map +1 -0
- package/lib/esm/tag/stories/tag.stories.js +77 -0
- package/lib/esm/tag/stories/tag.stories.js.map +1 -0
- package/lib/esm/text-link/stories/index.js +31 -0
- package/lib/esm/text-link/stories/index.js.map +1 -0
- package/lib/esm/text-link/stories/text-link-default.story.js +28 -0
- package/lib/esm/text-link/stories/text-link-default.story.js.map +1 -0
- package/lib/esm/text-link/stories/text-link-external.story.js +28 -0
- package/lib/esm/text-link/stories/text-link-external.story.js.map +1 -0
- package/lib/esm/text-link/stories/text-link-internal-icon.story.js +28 -0
- package/lib/esm/text-link/stories/text-link-internal-icon.story.js.map +1 -0
- package/lib/esm/text-link/stories/text-link.stories.js +73 -0
- package/lib/esm/text-link/stories/text-link.stories.js.map +1 -0
- package/lib/esm/tree-view/TreeItemWrapper.js +1 -2
- package/lib/esm/tree-view/TreeItemWrapper.js.map +1 -1
- package/lib/types/code/stories/code-default.story.d.ts +23 -0
- package/lib/types/code/stories/code-disabled.story.d.ts +23 -0
- package/lib/types/code/stories/code-full.story.d.ts +23 -0
- package/lib/types/code/stories/code-inline-runnable.story.d.ts +23 -0
- package/lib/types/code/stories/code-inline.story.d.ts +23 -0
- package/lib/types/code/stories/code-languages.story.d.ts +23 -0
- package/lib/types/code/stories/code-overflow.story.d.ts +23 -0
- package/lib/types/code/stories/code-with-actions.story.d.ts +23 -0
- package/lib/types/code/stories/code-with-header.story.d.ts +23 -0
- package/lib/types/code/stories/code-with-line-numbers.story.d.ts +23 -0
- package/lib/types/code/stories/code.stories.d.ts +34 -0
- package/lib/types/code/stories/example-code-snippets.d.ts +27 -0
- package/lib/types/code/stories/index.d.ts +40 -0
- package/lib/types/date-picker/stories/date-picker-default.story.d.ts +23 -0
- package/lib/types/date-picker/stories/date-picker-disabled.story.d.ts +23 -0
- package/lib/types/date-picker/stories/date-picker-full.story.d.ts +23 -0
- package/lib/types/date-picker/stories/date-picker-inside-modal.story.d.ts +23 -0
- package/lib/types/date-picker/stories/date-picker-min-max-date.story.d.ts +23 -0
- package/lib/types/date-picker/stories/date-picker-opens-to-date.story.d.ts +23 -0
- package/lib/types/date-picker/stories/date-picker-starts-on-monday.story.d.ts +23 -0
- package/lib/types/date-picker/stories/date-picker-text-input-props.story.d.ts +23 -0
- package/lib/types/date-picker/stories/date-picker-with-time-picker.story.d.ts +23 -0
- package/lib/types/date-picker/stories/date-picker.stories.d.ts +34 -0
- package/lib/types/date-picker/stories/index.d.ts +38 -0
- package/lib/types/dropzone/stories/dropzone-csv-files.story.d.ts +23 -0
- package/lib/types/dropzone/stories/dropzone-custom-extensions.story.d.ts +23 -0
- package/lib/types/dropzone/stories/dropzone-default.story.d.ts +23 -0
- package/lib/types/dropzone/stories/dropzone-disabled.story.d.ts +23 -0
- package/lib/types/dropzone/stories/dropzone-full.story.d.ts +23 -0
- package/lib/types/dropzone/stories/dropzone-loading-progress.story.d.ts +23 -0
- package/lib/types/dropzone/stories/dropzone-loading-spinner.story.d.ts +23 -0
- package/lib/types/dropzone/stories/dropzone.stories.d.ts +32 -0
- package/lib/types/dropzone/stories/index.d.ts +34 -0
- package/lib/types/graph-visualization/graph-visualization.d.ts +17 -1
- package/lib/types/graph-visualization/stories/graph-visualization-highlighting.story.d.ts +22 -0
- package/lib/types/graph-visualization/stories/graph-visualization.stories.d.ts +1 -0
- package/lib/types/graph-visualization/stories/index.d.ts +2 -0
- package/lib/types/graph-visualization/{use-managed-selection-state.d.ts → use-managed-node-state.d.ts} +8 -6
- package/lib/types/radio/stories/index.d.ts +34 -0
- package/lib/types/radio/stories/radio-checkedByDefault.story.d.ts +23 -0
- package/lib/types/radio/stories/radio-custom-label.story.d.ts +23 -0
- package/lib/types/radio/stories/radio-default.story.d.ts +23 -0
- package/lib/types/radio/stories/radio-disabled.story.d.ts +23 -0
- package/lib/types/radio/stories/radio-hasLabelBefore.story.d.ts +23 -0
- package/lib/types/radio/stories/radio-no-label.story.d.ts +23 -0
- package/lib/types/radio/stories/radio-truncated-label.story.d.ts +23 -0
- package/lib/types/radio/stories/radio.stories.d.ts +32 -0
- package/lib/types/switch/stories/index.d.ts +34 -0
- package/lib/types/switch/stories/switch-checked-by-default.story.d.ts +23 -0
- package/lib/types/switch/stories/switch-default.story.d.ts +23 -0
- package/lib/types/switch/stories/switch-disabled.story.d.ts +23 -0
- package/lib/types/switch/stories/switch-full.story.d.ts +23 -0
- package/lib/types/switch/stories/switch-has-label-before.story.d.ts +23 -0
- package/lib/types/switch/stories/switch-indeterminate.story.d.ts +23 -0
- package/lib/types/switch/stories/switch-no-label.story.d.ts +23 -0
- package/lib/types/switch/stories/switch.stories.d.ts +32 -0
- package/lib/types/tabs/stories/index.d.ts +30 -0
- package/lib/types/tabs/stories/tabs-default.story.d.ts +23 -0
- package/lib/types/tabs/stories/tabs-disabled.story.d.ts +23 -0
- package/lib/types/tabs/stories/tabs-fill-variants.story.d.ts +23 -0
- package/lib/types/tabs/stories/tabs-sizes.story.d.ts +23 -0
- package/lib/types/tabs/stories/tabs-with-icons.story.d.ts +23 -0
- package/lib/types/tabs/stories/tabs.stories.d.ts +30 -0
- package/lib/types/tag/stories/index.d.ts +27 -0
- package/lib/types/tag/stories/tag-removable.story.d.ts +23 -0
- package/lib/types/tag/stories/tag-sizes.story.d.ts +23 -0
- package/lib/types/tag/stories/tag-types.story.d.ts +23 -0
- package/lib/types/tag/stories/tag.stories.d.ts +28 -0
- package/lib/types/text-link/stories/index.d.ts +26 -0
- package/lib/types/text-link/stories/text-link-default.story.d.ts +23 -0
- package/lib/types/text-link/stories/text-link-external.story.d.ts +23 -0
- package/lib/types/text-link/stories/text-link-internal-icon.story.d.ts +23 -0
- package/lib/types/text-link/stories/text-link.stories.d.ts +28 -0
- package/package.json +9 -2
- package/lib/cjs/graph-visualization/use-managed-selection-state.js.map +0 -1
- package/lib/esm/graph-visualization/use-managed-selection-state.js.map +0 -1
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
/**
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) "Neo4j"
|
|
5
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
6
|
+
*
|
|
7
|
+
* This file is part of Neo4j.
|
|
8
|
+
*
|
|
9
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
10
|
+
* it under the terms of the GNU General Public License as published by
|
|
11
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
12
|
+
* (at your option) any later version.
|
|
13
|
+
*
|
|
14
|
+
* This program is distributed in the hope that it will be useful,
|
|
15
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
16
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
17
|
+
* GNU General Public License for more details.
|
|
18
|
+
*
|
|
19
|
+
* You should have received a copy of the GNU General Public License
|
|
20
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
21
|
+
*/
|
|
22
|
+
import { Dropzone } from '@neo4j-ndl/react';
|
|
23
|
+
const Component = () => {
|
|
24
|
+
const onDrop = (files) => {
|
|
25
|
+
alert('attempted to upload ' +
|
|
26
|
+
files.length +
|
|
27
|
+
' file(s). Check console logs for more info');
|
|
28
|
+
};
|
|
29
|
+
return (_jsx(Dropzone, { supportedFilesDescription: "Supports: .dump Files", acceptedFileExtensions: ['.dump'], dropZoneOptions: {
|
|
30
|
+
onDrop,
|
|
31
|
+
} }));
|
|
32
|
+
};
|
|
33
|
+
export default Component;
|
|
34
|
+
//# sourceMappingURL=dropzone-custom-extensions.story.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dropzone-custom-extensions.story.js","sourceRoot":"","sources":["../../../../src/dropzone/stories/dropzone-custom-extensions.story.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAG5C,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,MAAM,MAAM,GAA8B,CAAC,KAAK,EAAE,EAAE;QAClD,KAAK,CACH,sBAAsB;YACpB,KAAK,CAAC,MAAM;YACZ,4CAA4C,CAC/C,CAAC;IACJ,CAAC,CAAC;IAEF,OAAO,CACL,KAAC,QAAQ,IACP,yBAAyB,EAAC,uBAAuB,EACjD,sBAAsB,EAAE,CAAC,OAAO,CAAC,EACjC,eAAe,EAAE;YACf,MAAM;SACP,GACD,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
/**
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) "Neo4j"
|
|
5
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
6
|
+
*
|
|
7
|
+
* This file is part of Neo4j.
|
|
8
|
+
*
|
|
9
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
10
|
+
* it under the terms of the GNU General Public License as published by
|
|
11
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
12
|
+
* (at your option) any later version.
|
|
13
|
+
*
|
|
14
|
+
* This program is distributed in the hope that it will be useful,
|
|
15
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
16
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
17
|
+
* GNU General Public License for more details.
|
|
18
|
+
*
|
|
19
|
+
* You should have received a copy of the GNU General Public License
|
|
20
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
21
|
+
*/
|
|
22
|
+
import { Dropzone } from '@neo4j-ndl/react';
|
|
23
|
+
const Component = () => {
|
|
24
|
+
const onDrop = (files) => {
|
|
25
|
+
alert('attempted to upload ' +
|
|
26
|
+
files.length +
|
|
27
|
+
' file(s). Check console logs for more info');
|
|
28
|
+
};
|
|
29
|
+
return (_jsx(Dropzone, { dropZoneOptions: {
|
|
30
|
+
onDrop,
|
|
31
|
+
} }));
|
|
32
|
+
};
|
|
33
|
+
export default Component;
|
|
34
|
+
//# sourceMappingURL=dropzone-default.story.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dropzone-default.story.js","sourceRoot":"","sources":["../../../../src/dropzone/stories/dropzone-default.story.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAG5C,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,MAAM,MAAM,GAA8B,CAAC,KAAK,EAAE,EAAE;QAClD,KAAK,CACH,sBAAsB;YACpB,KAAK,CAAC,MAAM;YACZ,4CAA4C,CAC/C,CAAC;IACJ,CAAC,CAAC;IAEF,OAAO,CACL,KAAC,QAAQ,IACP,eAAe,EAAE;YACf,MAAM;SACP,GACD,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
/**
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) "Neo4j"
|
|
5
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
6
|
+
*
|
|
7
|
+
* This file is part of Neo4j.
|
|
8
|
+
*
|
|
9
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
10
|
+
* it under the terms of the GNU General Public License as published by
|
|
11
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
12
|
+
* (at your option) any later version.
|
|
13
|
+
*
|
|
14
|
+
* This program is distributed in the hope that it will be useful,
|
|
15
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
16
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
17
|
+
* GNU General Public License for more details.
|
|
18
|
+
*
|
|
19
|
+
* You should have received a copy of the GNU General Public License
|
|
20
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
21
|
+
*/
|
|
22
|
+
import { Dropzone } from '@neo4j-ndl/react';
|
|
23
|
+
const Component = () => {
|
|
24
|
+
const onDrop = (files) => {
|
|
25
|
+
alert('attempted to upload ' +
|
|
26
|
+
files.length +
|
|
27
|
+
' file(s). Check console logs for more info');
|
|
28
|
+
};
|
|
29
|
+
return (_jsx(Dropzone, { supportedFilesDescription: "Supports: CSV Files", dropZoneOptions: {
|
|
30
|
+
accept: { 'text/csv': ['.csv'] },
|
|
31
|
+
onDrop,
|
|
32
|
+
disabled: true,
|
|
33
|
+
} }));
|
|
34
|
+
};
|
|
35
|
+
export default Component;
|
|
36
|
+
//# sourceMappingURL=dropzone-disabled.story.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dropzone-disabled.story.js","sourceRoot":"","sources":["../../../../src/dropzone/stories/dropzone-disabled.story.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAG5C,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,MAAM,MAAM,GAA8B,CAAC,KAAK,EAAE,EAAE;QAClD,KAAK,CACH,sBAAsB;YACpB,KAAK,CAAC,MAAM;YACZ,4CAA4C,CAC/C,CAAC;IACJ,CAAC,CAAC;IAEF,OAAO,CACL,KAAC,QAAQ,IACP,yBAAyB,EAAC,qBAAqB,EAC/C,eAAe,EAAE;YACf,MAAM,EAAE,EAAE,UAAU,EAAE,CAAC,MAAM,CAAC,EAAE;YAChC,MAAM;YACN,QAAQ,EAAE,IAAI;SACf,GACD,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
/**
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) "Neo4j"
|
|
5
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
6
|
+
*
|
|
7
|
+
* This file is part of Neo4j.
|
|
8
|
+
*
|
|
9
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
10
|
+
* it under the terms of the GNU General Public License as published by
|
|
11
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
12
|
+
* (at your option) any later version.
|
|
13
|
+
*
|
|
14
|
+
* This program is distributed in the hope that it will be useful,
|
|
15
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
16
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
17
|
+
* GNU General Public License for more details.
|
|
18
|
+
*
|
|
19
|
+
* You should have received a copy of the GNU General Public License
|
|
20
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
21
|
+
*/
|
|
22
|
+
import { XMarkIcon } from '@heroicons/react/24/solid';
|
|
23
|
+
import { Button, Dropzone, Typography } from '@neo4j-ndl/react';
|
|
24
|
+
import { useCallback, useState } from 'react';
|
|
25
|
+
// Configuration constants
|
|
26
|
+
const CONFIG = {
|
|
27
|
+
MAX_FILES: 3,
|
|
28
|
+
MAX_FILE_SIZE: 5 * 1024 * 1024, // 5MB
|
|
29
|
+
PROGRESS_INCREMENT: 5,
|
|
30
|
+
UPDATE_INTERVAL: 100,
|
|
31
|
+
ACCEPTED_EXTENSIONS: ['.txt', '.json'],
|
|
32
|
+
};
|
|
33
|
+
var UploadState;
|
|
34
|
+
(function (UploadState) {
|
|
35
|
+
UploadState["Idle"] = "idle";
|
|
36
|
+
UploadState["Uploading"] = "uploading";
|
|
37
|
+
UploadState["Success"] = "success";
|
|
38
|
+
UploadState["Error"] = "error";
|
|
39
|
+
})(UploadState || (UploadState = {}));
|
|
40
|
+
const Component = () => {
|
|
41
|
+
const [uploadData, setUploadData] = useState({
|
|
42
|
+
state: UploadState.Idle,
|
|
43
|
+
progress: 0,
|
|
44
|
+
files: [],
|
|
45
|
+
errors: [],
|
|
46
|
+
});
|
|
47
|
+
const resetUpload = useCallback(() => {
|
|
48
|
+
setUploadData({
|
|
49
|
+
state: UploadState.Idle,
|
|
50
|
+
progress: 0,
|
|
51
|
+
files: [],
|
|
52
|
+
errors: [],
|
|
53
|
+
});
|
|
54
|
+
}, []);
|
|
55
|
+
const simulateUpload = useCallback((files) => {
|
|
56
|
+
setUploadData((prev) => (Object.assign(Object.assign({}, prev), { state: UploadState.Uploading, files, progress: 0 })));
|
|
57
|
+
const interval = setInterval(() => {
|
|
58
|
+
setUploadData((prev) => {
|
|
59
|
+
const newProgress = prev.progress + CONFIG.PROGRESS_INCREMENT;
|
|
60
|
+
if (newProgress >= 100) {
|
|
61
|
+
clearInterval(interval);
|
|
62
|
+
setTimeout(() => setUploadData((current) => (Object.assign(Object.assign({}, current), { state: UploadState.Success }))), 500);
|
|
63
|
+
return Object.assign(Object.assign({}, prev), { progress: 100 });
|
|
64
|
+
}
|
|
65
|
+
return Object.assign(Object.assign({}, prev), { progress: newProgress });
|
|
66
|
+
});
|
|
67
|
+
}, CONFIG.UPDATE_INTERVAL);
|
|
68
|
+
}, []);
|
|
69
|
+
const handleDrop = useCallback((acceptedFiles, rejectedFiles, event) => {
|
|
70
|
+
console.info('Drop event:', { acceptedFiles, rejectedFiles, event });
|
|
71
|
+
if (acceptedFiles.length > 0) {
|
|
72
|
+
simulateUpload(acceptedFiles);
|
|
73
|
+
}
|
|
74
|
+
}, [simulateUpload]);
|
|
75
|
+
const handleDropRejected = useCallback((rejectedFiles) => {
|
|
76
|
+
const errors = rejectedFiles.map((file) => `${file.file.name}: ${file.errors.map((e) => e.message).join(', ')}`);
|
|
77
|
+
setUploadData((prev) => (Object.assign(Object.assign({}, prev), { state: UploadState.Error, errors })));
|
|
78
|
+
}, []);
|
|
79
|
+
const handleError = useCallback((error) => {
|
|
80
|
+
console.error('Dropzone error:', error);
|
|
81
|
+
setUploadData((prev) => (Object.assign(Object.assign({}, prev), { state: UploadState.Error, errors: [error.message] })));
|
|
82
|
+
}, []);
|
|
83
|
+
const renderStatusContent = () => {
|
|
84
|
+
const { state, progress, files, errors } = uploadData;
|
|
85
|
+
switch (state) {
|
|
86
|
+
case UploadState.Uploading:
|
|
87
|
+
return (_jsx(Dropzone.LoadingProgressBar, { progressBarPrecentage: Math.round(progress) }));
|
|
88
|
+
case UploadState.Success:
|
|
89
|
+
return (_jsxs("div", { className: "n-flex n-flex-col n-justify-center n-items-center n-gap-y-token-4", children: [_jsx(Typography, { variant: "h5", className: "n-text-palette-success-text n-font-semibold", children: "Upload Complete!" }), _jsxs(Typography, { variant: "body-small", className: "n-text-palette-neutral-text-weak", children: ["Successfully uploaded: ", files.map((file) => file.name).join(', ')] }), _jsx(Button, { onClick: resetUpload, children: "Upload More Files" })] }));
|
|
90
|
+
case UploadState.Error:
|
|
91
|
+
return (_jsxs("div", { className: "n-flex n-flex-col n-justify-center n-items-center n-gap-y-token-4", children: [_jsx(XMarkIcon, { className: "n-w-token-8 n-h-token-8 n-text-palette-danger-text" }), _jsx("div", { className: "n-flex n-flex-col n-gap-y-token-2", children: errors.map((message, index) => (_jsx(Typography, { variant: "label", className: "n-text-palette-danger-text n-font-semibold", htmlAttributes: { role: 'alert' }, children: message }, index))) }), _jsx(Button, { onClick: resetUpload, children: "Try Again" })] }));
|
|
92
|
+
default:
|
|
93
|
+
return undefined;
|
|
94
|
+
}
|
|
95
|
+
};
|
|
96
|
+
return (_jsx(Dropzone, { dropZoneOptions: {
|
|
97
|
+
onDrop: handleDrop,
|
|
98
|
+
onDropRejected: handleDropRejected,
|
|
99
|
+
onError: handleError,
|
|
100
|
+
multiple: true,
|
|
101
|
+
maxFiles: CONFIG.MAX_FILES,
|
|
102
|
+
maxSize: CONFIG.MAX_FILE_SIZE,
|
|
103
|
+
disabled: uploadData.state === UploadState.Uploading,
|
|
104
|
+
}, supportedFilesDescription: _jsxs("div", { className: "n-text-center n-flex n-flex-col n-gap-y-token-2", children: [_jsx(Typography, { variant: "body-small", className: "n-text-palette-neutral-text-weak", children: "Supports: Text files (.txt, .json) only" }), _jsxs(Typography, { variant: "body-small", className: "n-text-palette-neutral-text-weak", children: ["Max ", CONFIG.MAX_FILES, " files \u2022", ' ', CONFIG.MAX_FILE_SIZE / (1024 * 1024), "MB per file"] })] }), acceptedFileExtensions: CONFIG.ACCEPTED_EXTENSIONS, loadingComponent: renderStatusContent(), rejectedMessage: "Error: Please make sure to only upload .json or .txt files", customTitle: "Drag & Drop your files" }));
|
|
105
|
+
};
|
|
106
|
+
export default Component;
|
|
107
|
+
//# sourceMappingURL=dropzone-full.story.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dropzone-full.story.js","sour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,IACT,EAER,sBAAsB,EAAE,MAAM,CAAC,mBAAmB,EAClD,gBAAgB,EAAE,mBAAmB,EAAE,EACvC,eAAe,EAAC,4DAA4D,EAC5E,WAAW,EAAC,wBAAwB,GACpC,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
/**
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) "Neo4j"
|
|
5
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
6
|
+
*
|
|
7
|
+
* This file is part of Neo4j.
|
|
8
|
+
*
|
|
9
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
10
|
+
* it under the terms of the GNU General Public License as published by
|
|
11
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
12
|
+
* (at your option) any later version.
|
|
13
|
+
*
|
|
14
|
+
* This program is distributed in the hope that it will be useful,
|
|
15
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
16
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
17
|
+
* GNU General Public License for more details.
|
|
18
|
+
*
|
|
19
|
+
* You should have received a copy of the GNU General Public License
|
|
20
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
21
|
+
*/
|
|
22
|
+
import { Dropzone } from '@neo4j-ndl/react';
|
|
23
|
+
const Component = () => {
|
|
24
|
+
return (_jsx(Dropzone, { isTesting: true, loadingComponent: _jsx(Dropzone.LoadingProgressBar, { progressBarPrecentage: 50, progressBarMinute: 5 }), dropZoneOptions: {
|
|
25
|
+
onDrop: () => void 0,
|
|
26
|
+
} }));
|
|
27
|
+
};
|
|
28
|
+
export default Component;
|
|
29
|
+
//# sourceMappingURL=dropzone-loading-progress.story.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dropzone-loading-progress.story.js","sourceRoot":"","sources":["../../../../src/dropzone/stories/dropzone-loading-progress.story.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAE5C,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,KAAC,QAAQ,IACP,SAAS,EAAE,IAAI,EACf,gBAAgB,EACd,KAAC,QAAQ,CAAC,kBAAkB,IAC1B,qBAAqB,EAAE,EAAE,EACzB,iBAAiB,EAAE,CAAC,GACpB,EAEJ,eAAe,EAAE;YACf,MAAM,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC;SACrB,GACD,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
/**
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) "Neo4j"
|
|
5
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
6
|
+
*
|
|
7
|
+
* This file is part of Neo4j.
|
|
8
|
+
*
|
|
9
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
10
|
+
* it under the terms of the GNU General Public License as published by
|
|
11
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
12
|
+
* (at your option) any later version.
|
|
13
|
+
*
|
|
14
|
+
* This program is distributed in the hope that it will be useful,
|
|
15
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
16
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
17
|
+
* GNU General Public License for more details.
|
|
18
|
+
*
|
|
19
|
+
* You should have received a copy of the GNU General Public License
|
|
20
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
21
|
+
*/
|
|
22
|
+
import { Dropzone, LoadingSpinner } from '@neo4j-ndl/react';
|
|
23
|
+
const Component = () => {
|
|
24
|
+
return (_jsx(Dropzone, { isTesting: true, loadingComponent: _jsxs("div", { className: "n-flex n-flex-col n-justify-center n-items-center n-gap-y-token-4", children: [_jsx(LoadingSpinner, { size: "large" }), _jsx("div", { children: "Uploading" })] }), dropZoneOptions: {
|
|
25
|
+
onDrop: () => void 0,
|
|
26
|
+
} }));
|
|
27
|
+
};
|
|
28
|
+
export default Component;
|
|
29
|
+
//# sourceMappingURL=dropzone-loading-spinner.story.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dropzone-loading-spinner.story.js","sourceRoot":"","sources":["../../../../src/dropzone/stories/dropzone-loading-spinner.story.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAE5D,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,KAAC,QAAQ,IACP,SAAS,EAAE,IAAI,EACf,gBAAgB,EACd,eAAK,SAAS,EAAC,mEAAmE,aAChF,KAAC,cAAc,IAAC,IAAI,EAAC,OAAO,GAAG,EAC/B,sCAAoB,IAChB,EAER,eAAe,EAAE;YACf,MAAM,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC;SACrB,GACD,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
/**
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) "Neo4j"
|
|
5
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
6
|
+
*
|
|
7
|
+
* This file is part of Neo4j.
|
|
8
|
+
*
|
|
9
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
10
|
+
* it under the terms of the GNU General Public License as published by
|
|
11
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
12
|
+
* (at your option) any later version.
|
|
13
|
+
*
|
|
14
|
+
* This program is distributed in the hope that it will be useful,
|
|
15
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
16
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
17
|
+
* GNU General Public License for more details.
|
|
18
|
+
*
|
|
19
|
+
* You should have received a copy of the GNU General Public License
|
|
20
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
21
|
+
*/
|
|
22
|
+
import { Dropzone } from '@neo4j-ndl/react';
|
|
23
|
+
import { DropzoneCsvFiles, DropzoneCsvFilesSource, DropzoneCustomExtensions, DropzoneCustomExtensionsSource, DropzoneDefault, DropzoneDefaultSource, DropzoneDisabled, DropzoneDisabledSource, DropzoneFull, DropzoneFullSource, DropzoneLoadingProgress, DropzoneLoadingProgressSource, DropzoneLoadingSpinner, DropzoneLoadingSpinnerSource, } from '.';
|
|
24
|
+
const componentMeta = {
|
|
25
|
+
component: Dropzone,
|
|
26
|
+
parameters: {
|
|
27
|
+
controls: { disable: true },
|
|
28
|
+
},
|
|
29
|
+
tags: ['docsPage'],
|
|
30
|
+
title: 'Components/Dropzone',
|
|
31
|
+
id: 'components-dropzone',
|
|
32
|
+
decorators: [
|
|
33
|
+
(Story) => (_jsx("div", { className: "n-mx-auto n-w-1/2", children: _jsx(Story, {}) })),
|
|
34
|
+
],
|
|
35
|
+
};
|
|
36
|
+
export default componentMeta;
|
|
37
|
+
export const Default = {
|
|
38
|
+
args: {},
|
|
39
|
+
render: () => _jsx(DropzoneDefault, {}),
|
|
40
|
+
parameters: {
|
|
41
|
+
docs: {
|
|
42
|
+
source: {
|
|
43
|
+
code: DropzoneDefaultSource,
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
};
|
|
48
|
+
export const CsvFiles = {
|
|
49
|
+
args: {},
|
|
50
|
+
name: 'CSV Files Only (MIME type)',
|
|
51
|
+
render: () => _jsx(DropzoneCsvFiles, {}),
|
|
52
|
+
parameters: {
|
|
53
|
+
docs: {
|
|
54
|
+
source: {
|
|
55
|
+
code: DropzoneCsvFilesSource,
|
|
56
|
+
},
|
|
57
|
+
},
|
|
58
|
+
},
|
|
59
|
+
};
|
|
60
|
+
export const CustomExtensions = {
|
|
61
|
+
args: {},
|
|
62
|
+
name: 'Custom File Extensions (.dump)',
|
|
63
|
+
render: () => _jsx(DropzoneCustomExtensions, {}),
|
|
64
|
+
parameters: {
|
|
65
|
+
docs: {
|
|
66
|
+
source: {
|
|
67
|
+
code: DropzoneCustomExtensionsSource,
|
|
68
|
+
},
|
|
69
|
+
},
|
|
70
|
+
},
|
|
71
|
+
};
|
|
72
|
+
export const LoadingProgress = {
|
|
73
|
+
args: {},
|
|
74
|
+
name: 'Loading with Progress Bar',
|
|
75
|
+
render: () => _jsx(DropzoneLoadingProgress, {}),
|
|
76
|
+
parameters: {
|
|
77
|
+
docs: {
|
|
78
|
+
source: {
|
|
79
|
+
code: DropzoneLoadingProgressSource,
|
|
80
|
+
},
|
|
81
|
+
},
|
|
82
|
+
},
|
|
83
|
+
};
|
|
84
|
+
export const LoadingSpinner = {
|
|
85
|
+
args: {},
|
|
86
|
+
name: 'Loading with Spinner',
|
|
87
|
+
render: () => _jsx(DropzoneLoadingSpinner, {}),
|
|
88
|
+
parameters: {
|
|
89
|
+
docs: {
|
|
90
|
+
source: {
|
|
91
|
+
code: DropzoneLoadingSpinnerSource,
|
|
92
|
+
},
|
|
93
|
+
},
|
|
94
|
+
},
|
|
95
|
+
};
|
|
96
|
+
export const Disabled = {
|
|
97
|
+
args: {},
|
|
98
|
+
render: () => _jsx(DropzoneDisabled, {}),
|
|
99
|
+
parameters: {
|
|
100
|
+
docs: {
|
|
101
|
+
source: {
|
|
102
|
+
code: DropzoneDisabledSource,
|
|
103
|
+
},
|
|
104
|
+
},
|
|
105
|
+
},
|
|
106
|
+
};
|
|
107
|
+
export const Full = {
|
|
108
|
+
args: {},
|
|
109
|
+
render: () => _jsx(DropzoneFull, {}),
|
|
110
|
+
parameters: {
|
|
111
|
+
docs: {
|
|
112
|
+
source: {
|
|
113
|
+
code: DropzoneFullSource,
|
|
114
|
+
},
|
|
115
|
+
},
|
|
116
|
+
},
|
|
117
|
+
};
|
|
118
|
+
//# sourceMappingURL=dropzone.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dropzone.stories.js","sourceRoot":"","sources":["../../../../src/dropzone/stories/dropzone.stories.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAG5C,OAAO,EACL,gBAAgB,EAChB,sBAAsB,EACtB,wBAAwB,EACxB,8BAA8B,EAC9B,eAAe,EACf,qBAAqB,EACrB,gBAAgB,EAChB,sBAAsB,EACtB,YAAY,EACZ,kBAAkB,EAClB,uBAAuB,EACvB,6BAA6B,EAC7B,sBAAsB,EACtB,4BAA4B,GAC7B,MAAM,GAAG,CAAC;AAEX,MAAM,aAAa,GAA0B;IAC3C,SAAS,EAAE,QAAQ;IACnB,UAAU,EAAE;QACV,QAAQ,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE;KAC5B;IACD,IAAI,EAAE,CAAC,UAAU,CAAC;IAClB,KAAK,EAAE,qBAAqB;IAC5B,EAAE,EAAE,qBAAqB;IACzB,UAAU,EAAE;QACV,CAAC,KAAK,EAAE,EAAE,CAAC,CACT,cAAK,SAAS,EAAC,mBAAmB,YAChC,KAAC,KAAK,KAAG,GACL,CACP;KACF;CAC8B,CAAC;AAElC,eAAe,aAAa,CAAC;AAI7B,MAAM,CAAC,MAAM,OAAO,GAAU;IAC5B,IAAI,EAAE,EAAE;IACR,MAAM,EAAE,GAAG,EAAE,CAAC,KAAC,eAAe,KAAG;IACjC,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,MAAM,EAAE;gBACN,IAAI,EAAE,qBAAqB;aAC5B;SACF;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAAU;IAC7B,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E,EAAE;IACR,MAAM,EAAE,GAAG,EAAE,CAAC,KAAC,YAAY,KAAG;IAC9B,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,MAAM,EAAE;gBACN,IAAI,EAAE,kBAAkB;aACzB;SACF;KACF;CACF,CAAC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* Copyright (c) "Neo4j"
|
|
4
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
5
|
+
*
|
|
6
|
+
* This file is part of Neo4j.
|
|
7
|
+
*
|
|
8
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
9
|
+
* it under the terms of the GNU General Public License as published by
|
|
10
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
11
|
+
* (at your option) any later version.
|
|
12
|
+
*
|
|
13
|
+
* This program is distributed in the hope that it will be useful,
|
|
14
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
15
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
16
|
+
* GNU General Public License for more details.
|
|
17
|
+
*
|
|
18
|
+
* You should have received a copy of the GNU General Public License
|
|
19
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
|
+
*/
|
|
21
|
+
export { default as DropzoneDefault } from './dropzone-default.story';
|
|
22
|
+
export { default as DropzoneCsvFiles } from './dropzone-csv-files.story';
|
|
23
|
+
export { default as DropzoneCustomExtensions } from './dropzone-custom-extensions.story';
|
|
24
|
+
export { default as DropzoneLoadingProgress } from './dropzone-loading-progress.story';
|
|
25
|
+
export { default as DropzoneLoadingSpinner } from './dropzone-loading-spinner.story';
|
|
26
|
+
export { default as DropzoneDisabled } from './dropzone-disabled.story';
|
|
27
|
+
export { default as DropzoneFull } from './dropzone-full.story';
|
|
28
|
+
import { removeLicenseHeader } from '@neo4j-ndl/react/_common/export-stories-utils';
|
|
29
|
+
import DropzoneCsvFilesSourceRaw from './dropzone-csv-files.story.tsx?raw';
|
|
30
|
+
import DropzoneCustomExtensionsSourceRaw from './dropzone-custom-extensions.story.tsx?raw';
|
|
31
|
+
import DropzoneDefaultSourceRaw from './dropzone-default.story.tsx?raw';
|
|
32
|
+
import DropzoneDisabledSourceRaw from './dropzone-disabled.story.tsx?raw';
|
|
33
|
+
import DropzoneFullSourceRaw from './dropzone-full.story.tsx?raw';
|
|
34
|
+
import DropzoneLoadingProgressSourceRaw from './dropzone-loading-progress.story.tsx?raw';
|
|
35
|
+
import DropzoneLoadingSpinnerSourceRaw from './dropzone-loading-spinner.story.tsx?raw';
|
|
36
|
+
export const DropzoneDefaultSource = removeLicenseHeader(DropzoneDefaultSourceRaw);
|
|
37
|
+
export const DropzoneCsvFilesSource = removeLicenseHeader(DropzoneCsvFilesSourceRaw);
|
|
38
|
+
export const DropzoneCustomExtensionsSource = removeLicenseHeader(DropzoneCustomExtensionsSourceRaw);
|
|
39
|
+
export const DropzoneLoadingProgressSource = removeLicenseHeader(DropzoneLoadingProgressSourceRaw);
|
|
40
|
+
export const DropzoneLoadingSpinnerSource = removeLicenseHeader(DropzoneLoadingSpinnerSourceRaw);
|
|
41
|
+
export const DropzoneDisabledSource = removeLicenseHeader(DropzoneDisabledSourceRaw);
|
|
42
|
+
export const DropzoneFullSource = removeLicenseHeader(DropzoneFullSourceRaw);
|
|
43
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/dropzone/stories/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,0BAA0B,CAAC;AACtE,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AACzE,OAAO,EAAE,OAAO,IAAI,wBAAwB,EAAE,MAAM,oCAAoC,CAAC;AACzF,OAAO,EAAE,OAAO,IAAI,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AACvF,OAAO,EAAE,OAAO,IAAI,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;AACrF,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AACxE,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAEhE,OAAO,EAAE,mBAAmB,EAAE,MAAM,+CAA+C,CAAC;AAEpF,OAAO,yBAAyB,MAAM,oCAAoC,CAAC;AAC3E,OAAO,iCAAiC,MAAM,4CAA4C,CAAC;AAC3F,OAAO,wBAAwB,MAAM,kCAAkC,CAAC;AACxE,OAAO,yBAAyB,MAAM,mCAAmC,CAAC;AAC1E,OAAO,qBAAqB,MAAM,+BAA+B,CAAC;AAClE,OAAO,gCAAgC,MAAM,2CAA2C,CAAC;AACzF,OAAO,+BAA+B,MAAM,0CAA0C,CAAC;AAEvF,MAAM,CAAC,MAAM,qBAAqB,GAAG,mBAAmB,CACtD,wBAAwB,CACzB,CAAC;AACF,MAAM,CAAC,MAAM,sBAAsB,GAAG,mBAAmB,CACvD,yBAAyB,CAC1B,CAAC;AACF,MAAM,CAAC,MAAM,8BAA8B,GAAG,mBAAmB,CAC/D,iCAAiC,CAClC,CAAC;AACF,MAAM,CAAC,MAAM,6BAA6B,GAAG,mBAAmB,CAC9D,gCAAgC,CACjC,CAAC;AACF,MAAM,CAAC,MAAM,4BAA4B,GAAG,mBAAmB,CAC7D,+BAA+B,CAChC,CAAC;AACF,MAAM,CAAC,MAAM,sBAAsB,GAAG,mBAAmB,CACvD,yBAAyB,CAC1B,CAAC;AACF,MAAM,CAAC,MAAM,kBAAkB,GAAG,mBAAmB,CAAC,qBAAqB,CAAC,CAAC"}
|
|
@@ -72,14 +72,14 @@ export const BoxSelectButton = ({ className, style, htmlAttributes, tooltipPlace
|
|
|
72
72
|
useRegisterKeyboardGestureSwitcher('box');
|
|
73
73
|
return (_jsx(GroupButton, { isDisabled: interactionMode !== 'select' || setGesture === undefined, isActive: gesture === 'box', ariaLabel: "Box Select Button", tipContent: `Box Select ${NON_BREAKING_SPACE} ${GESTURE_KEYS.box}`, onClick: () => {
|
|
74
74
|
setGesture === null || setGesture === void 0 ? void 0 : setGesture('box');
|
|
75
|
-
}, tooltipPlacement: tooltipPlacement !== null && tooltipPlacement !== void 0 ? tooltipPlacement : 'right', htmlAttributes: Object.assign({ 'data-testid': 'gesture-box-select' }, htmlAttributes), className: className, style: style, children: _jsx(BoxSelectIcon, { "aria-label": "Box
|
|
75
|
+
}, tooltipPlacement: tooltipPlacement !== null && tooltipPlacement !== void 0 ? tooltipPlacement : 'right', htmlAttributes: Object.assign({ 'data-testid': 'gesture-box-select' }, htmlAttributes), className: className, style: style, children: _jsx(BoxSelectIcon, { "aria-label": "Box select" }) }));
|
|
76
76
|
};
|
|
77
77
|
export const LassoSelectButton = ({ className, style, htmlAttributes, tooltipPlacement, }) => {
|
|
78
78
|
const { gesture, setGesture, interactionMode } = useGraphVisualizationContext();
|
|
79
79
|
useRegisterKeyboardGestureSwitcher('lasso');
|
|
80
80
|
return (_jsx(GroupButton, { isDisabled: interactionMode !== 'select' || setGesture === undefined, isActive: gesture === 'lasso', ariaLabel: "Lasso Select Button", tipContent: `Lasso Select ${NON_BREAKING_SPACE} ${GESTURE_KEYS.lasso}`, onClick: () => {
|
|
81
81
|
setGesture === null || setGesture === void 0 ? void 0 : setGesture('lasso');
|
|
82
|
-
}, tooltipPlacement: tooltipPlacement !== null && tooltipPlacement !== void 0 ? tooltipPlacement : 'right', htmlAttributes: Object.assign({ 'data-testid': 'gesture-lasso-select' }, htmlAttributes), className: className, style: style, children: _jsx(LassoIcon, { "aria-label": "Lasso
|
|
82
|
+
}, tooltipPlacement: tooltipPlacement !== null && tooltipPlacement !== void 0 ? tooltipPlacement : 'right', htmlAttributes: Object.assign({ 'data-testid': 'gesture-lasso-select' }, htmlAttributes), className: className, style: style, children: _jsx(LassoIcon, { "aria-label": "Lasso select" }) }));
|
|
83
83
|
};
|
|
84
84
|
export const ZoomInButton = ({ className, style, htmlAttributes, tooltipPlacement, }) => {
|
|
85
85
|
const { nvlInstance } = useGraphVisualizationContext();
|
|
@@ -40,7 +40,7 @@ import { GraphVisualizationContext, } from './graph-visualization-context';
|
|
|
40
40
|
import { GraphVisualizationSidepanel } from './graph-visualization-sidepanel';
|
|
41
41
|
import { mapToNvlGraph } from './map-to-nvl-graph';
|
|
42
42
|
import { SingleSelectionSidepanelContents } from './sidepanel-components/single-selection-sidepanel-contents';
|
|
43
|
-
import {
|
|
43
|
+
import { useManagedNodeState } from './use-managed-node-state';
|
|
44
44
|
import { useSemicontrolledState } from './use-semi-controlled-state';
|
|
45
45
|
const PLACEMENTS = {
|
|
46
46
|
'bottom-left': 'ndl-graph-visualization-interaction-island ndl-bottom-left',
|
|
@@ -104,6 +104,20 @@ const DEFAULT_COMPONENTS = {
|
|
|
104
104
|
* />
|
|
105
105
|
* ```
|
|
106
106
|
*
|
|
107
|
+
* @example
|
|
108
|
+
* With search highlighting:
|
|
109
|
+
* ```tsx
|
|
110
|
+
* <GraphVisualization
|
|
111
|
+
* nodes={nodes}
|
|
112
|
+
* rels={relationships}
|
|
113
|
+
* // undefined = no highlighting (default behavior)
|
|
114
|
+
* // empty array = no search matches (dims all nodes)
|
|
115
|
+
* // array with IDs = highlight only those items
|
|
116
|
+
* highlightedNodeIds={searchResults.nodeIds}
|
|
117
|
+
* highlightedRelationshipIds={searchResults.relationshipIds}
|
|
118
|
+
* />
|
|
119
|
+
* ```
|
|
120
|
+
*
|
|
107
121
|
* @param props - {@link GraphVisualizationProps}
|
|
108
122
|
* @returns A React component that renders an interactive graph visualization
|
|
109
123
|
*
|
|
@@ -111,7 +125,7 @@ const DEFAULT_COMPONENTS = {
|
|
|
111
125
|
*/
|
|
112
126
|
export function GraphVisualization(_a) {
|
|
113
127
|
var _b, _c;
|
|
114
|
-
var { nvlRef: rawNvlRef, nvlCallbacks, nvlOptions, sidepanel: rawSidepanel, nodes: rawNodes, rels: rawRels, topLeftIsland = DEFAULT_COMPONENTS.topLeftIsland, topRightIsland = DEFAULT_COMPONENTS.topRightIsland, bottomLeftIsland = DEFAULT_COMPONENTS.bottomLeftIsland, bottomRightIsland = DEFAULT_COMPONENTS.bottomRightIsland, gesture = 'single', setGesture, selected: rawSelected, setSelected: rawSetSelected, interactionMode: rawInteractionMode, setInteractionMode: rawSetInteractionMode, mouseEventCallbacks = {}, className, style, htmlAttributes, ref, as } = _a, restProps = __rest(_a, ["nvlRef", "nvlCallbacks", "nvlOptions", "sidepanel", "nodes", "rels", "topLeftIsland", "topRightIsland", "bottomLeftIsland", "bottomRightIsland", "gesture", "setGesture", "selected", "setSelected", "interactionMode", "setInteractionMode", "mouseEventCallbacks", "className", "style", "htmlAttributes", "ref", "as"]);
|
|
128
|
+
var { nvlRef: rawNvlRef, nvlCallbacks, nvlOptions, sidepanel: rawSidepanel, nodes: rawNodes, rels: rawRels, highlightedNodeIds, highlightedRelationshipIds, topLeftIsland = DEFAULT_COMPONENTS.topLeftIsland, topRightIsland = DEFAULT_COMPONENTS.topRightIsland, bottomLeftIsland = DEFAULT_COMPONENTS.bottomLeftIsland, bottomRightIsland = DEFAULT_COMPONENTS.bottomRightIsland, gesture = 'single', setGesture, selected: rawSelected, setSelected: rawSetSelected, interactionMode: rawInteractionMode, setInteractionMode: rawSetInteractionMode, mouseEventCallbacks = {}, className, style, htmlAttributes, ref, as } = _a, restProps = __rest(_a, ["nvlRef", "nvlCallbacks", "nvlOptions", "sidepanel", "nodes", "rels", "highlightedNodeIds", "highlightedRelationshipIds", "topLeftIsland", "topRightIsland", "bottomLeftIsland", "bottomRightIsland", "gesture", "setGesture", "selected", "setSelected", "interactionMode", "setInteractionMode", "mouseEventCallbacks", "className", "style", "htmlAttributes", "ref", "as"]);
|
|
115
129
|
const nvlRef = useMemo(() => rawNvlRef !== null && rawNvlRef !== void 0 ? rawNvlRef : React.createRef(), [rawNvlRef]);
|
|
116
130
|
const instanceId = useId();
|
|
117
131
|
// Respect NDL theme changes
|
|
@@ -126,8 +140,10 @@ export function GraphVisualization(_a) {
|
|
|
126
140
|
const [interactionMode, setInteractionMode] = useSemicontrolledState(rawInteractionMode !== null && rawInteractionMode !== void 0 ? rawInteractionMode : 'select', rawSetInteractionMode);
|
|
127
141
|
const [selected, setSelected] = useSemicontrolledState(rawSelected !== null && rawSelected !== void 0 ? rawSelected : { nodeIds: [], relationshipIds: [] }, rawSetSelected);
|
|
128
142
|
const nvlGraph = useMemo(() => mapToNvlGraph(rawNodes, rawRels), [rawNodes, rawRels]);
|
|
129
|
-
const {
|
|
143
|
+
const { nodesWithState, relsWithState, wrappedMouseEventCallbacks } = useManagedNodeState({
|
|
130
144
|
gesture,
|
|
145
|
+
highlightedNodeIds,
|
|
146
|
+
highlightedRelationshipIds,
|
|
131
147
|
interactionMode,
|
|
132
148
|
mouseEventCallbacks,
|
|
133
149
|
nvlGraph,
|
|
@@ -164,7 +180,7 @@ export function GraphVisualization(_a) {
|
|
|
164
180
|
selected,
|
|
165
181
|
setGesture,
|
|
166
182
|
sidepanel,
|
|
167
|
-
}, children: [_jsxs("div", { className: "ndl-graph-visualization", children: [_jsx(InteractiveNvlWrapper, Object.assign({ layout: "d3Force", nodes:
|
|
183
|
+
}, children: [_jsxs("div", { className: "ndl-graph-visualization", children: [_jsx(InteractiveNvlWrapper, Object.assign({ layout: "d3Force", nodes: nodesWithState, rels: relsWithState, nvlOptions: Object.assign(Object.assign(Object.assign({}, DEFAULT_NVL_OPTIONS), { instanceId, styling: {
|
|
168
184
|
defaultRelationshipColor: border.strongest,
|
|
169
185
|
dropShadowColor: border.weak,
|
|
170
186
|
selectedInnerBorderColor: bg.default,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"graph-visualization.js","sourceRoot":"","sources":["../../../src/graph-visualization/graph-visualization.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACzC,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAEnE,OAAO,EACL,qBAAqB,GAEtB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,OAAO,IAAI,EAAE,EAAE,MAAM,YAAY,CAAC;AAC3C,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAGnE,OAAO,EACL,eAAe,EACf,cAAc,EACd,iBAAiB,EACjB,kBAAkB,EAClB,qBAAqB,EACrB,YAAY,EACZ,aAAa,EACb,eAAe,GAChB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAGL,yBAAyB,GAM1B,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,2BAA2B,EAAE,MAAM,iCAAiC,CAAC;AAC9E,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,gCAAgC,EAAE,MAAM,4DAA4D,CAAC;AAC9G,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"graph-visualization.js","sourceRoot":"","sources":["../../../src/graph-visualization/graph-visualization.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACzC,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAEnE,OAAO,EACL,qBAAqB,GAEtB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,OAAO,IAAI,EAAE,EAAE,MAAM,YAAY,CAAC;AAC3C,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAGnE,OAAO,EACL,eAAe,EACf,cAAc,EACd,iBAAiB,EACjB,kBAAkB,EAClB,qBAAqB,EACrB,YAAY,EAC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BAAkB,CAAC,kBAAkB,GAAG,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
/**
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) "Neo4j"
|
|
5
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
6
|
+
*
|
|
7
|
+
* This file is part of Neo4j.
|
|
8
|
+
*
|
|
9
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
10
|
+
* it under the terms of the GNU General Public License as published by
|
|
11
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
12
|
+
* (at your option) any later version.
|
|
13
|
+
*
|
|
14
|
+
* This program is distributed in the hope that it will be useful,
|
|
15
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
16
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
17
|
+
* GNU General Public License for more details.
|
|
18
|
+
*
|
|
19
|
+
* You should have received a copy of the GNU General Public License
|
|
20
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
21
|
+
*/
|
|
22
|
+
import { GraphVisualization } from '../graph-visualization';
|
|
23
|
+
import { containerClasses, StoryGraph } from './story-data';
|
|
24
|
+
const Component = () => {
|
|
25
|
+
return (_jsx("div", { style: { height: '600px' }, children: _jsx(GraphVisualization, { nodes: StoryGraph.nodes, rels: StoryGraph.rels, className: containerClasses, highlightedNodeIds: ['node1'], highlightedRelationshipIds: [] }) }));
|
|
26
|
+
};
|
|
27
|
+
export default Component;
|
|
28
|
+
//# sourceMappingURL=graph-visualization-highlighting.story.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"graph-visualization-highlighting.story.js","sourceRoot":"","sources":["../../../../src/graph-visualization/stories/graph-visualization-highlighting.story.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE5D,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,cAAK,KAAK,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,YAC7B,KAAC,kBAAkB,IACjB,KAAK,EAAE,UAAU,CAAC,KAAK,EACvB,IAAI,EAAE,UAAU,CAAC,IAAI,EACrB,SAAS,EAAE,gBAAgB,EAC3B,kBAAkB,EAAE,CAAC,OAAO,CAAC,EAC7B,0BAA0B,EAAE,EAAE,GAC9B,GACE,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|