@sap/ux-specification 1.96.88 → 1.96.89
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/CHANGELOG.md +32 -1
- package/dist/documentation/runDocu-min.js +1 -1
- package/dist/documentation/runDocu-min.js.map +2 -2
- package/dist/documentation/v2/v2-AnalyticalListPage.html +2 -2
- package/dist/documentation/v2/v2-ApplicationV2.html +2 -2
- package/dist/documentation/v2/v2-ListReport.html +2 -2
- package/dist/documentation/v2/v2-ObjectPage.html +2 -2
- package/dist/documentation/v2/v2-OverviewPage.html +2 -2
- package/dist/documentation/v4/v4-ApplicationV4.html +2 -2
- package/dist/documentation/v4/v4-BuildingBlocks.html +2 -2
- package/dist/documentation/v4/v4-FreestylePage.html +2 -2
- package/dist/documentation/v4/v4-ListReport.html +2 -2
- package/dist/documentation/v4/v4-ObjectPage.html +2 -2
- package/dist/index-min.js +79 -79
- package/dist/index-min.js.map +3 -3
- package/dist/schemas/v2/ApplicationV2.json +2 -1
- package/dist/schemas/v4/ApplicationV4.json +6 -1
- package/dist/specification/package.json +5 -5
- package/dist/specification/scripts/documentation/components/TreeDiagram.d.ts +21 -0
- package/dist/specification/scripts/documentation/components/TreeDiagram.d.ts.map +1 -1
- package/dist/specification/scripts/documentation/components/TreeDiagram.js +21 -0
- package/dist/specification/scripts/documentation/components/TreeDiagram.js.map +1 -1
- package/dist/specification/scripts/documentation/components/filter.d.ts +7 -0
- package/dist/specification/scripts/documentation/components/filter.d.ts.map +1 -1
- package/dist/specification/scripts/documentation/components/filter.js +30 -0
- package/dist/specification/scripts/documentation/components/filter.js.map +1 -1
- package/dist/specification/scripts/documentation/components/ui/TreeUI.d.ts +70 -0
- package/dist/specification/scripts/documentation/components/ui/TreeUI.d.ts.map +1 -1
- package/dist/specification/scripts/documentation/components/ui/TreeUI.js +70 -3
- package/dist/specification/scripts/documentation/components/ui/TreeUI.js.map +1 -1
- package/dist/specification/scripts/documentation/components/ui/keyboardNavigation.d.ts +17 -0
- package/dist/specification/scripts/documentation/components/ui/keyboardNavigation.d.ts.map +1 -1
- package/dist/specification/scripts/documentation/components/ui/keyboardNavigation.js +23 -0
- package/dist/specification/scripts/documentation/components/ui/keyboardNavigation.js.map +1 -1
- package/dist/specification/scripts/documentation/components/ui/search.d.ts +12 -0
- package/dist/specification/scripts/documentation/components/ui/search.d.ts.map +1 -1
- package/dist/specification/scripts/documentation/components/ui/search.js +78 -8
- package/dist/specification/scripts/documentation/components/ui/search.js.map +1 -1
- package/dist/specification/scripts/documentation/components/ui/toggle.d.ts +21 -0
- package/dist/specification/scripts/documentation/components/ui/toggle.d.ts.map +1 -1
- package/dist/specification/scripts/documentation/components/ui/toggle.js +23 -6
- package/dist/specification/scripts/documentation/components/ui/toggle.js.map +1 -1
- package/dist/specification/scripts/documentation/components/ui/tooltip.d.ts +24 -0
- package/dist/specification/scripts/documentation/components/ui/tooltip.d.ts.map +1 -1
- package/dist/specification/scripts/documentation/components/ui/tooltip.js +24 -3
- package/dist/specification/scripts/documentation/components/ui/tooltip.js.map +1 -1
- package/dist/specification/scripts/documentation/components/ui/utils.d.ts +36 -0
- package/dist/specification/scripts/documentation/components/ui/utils.d.ts.map +1 -1
- package/dist/specification/scripts/documentation/components/ui/utils.js +36 -4
- package/dist/specification/scripts/documentation/components/ui/utils.js.map +1 -1
- package/dist/specification/scripts/extractDocu.js +49 -5
- package/dist/specification/scripts/extractDocu.js.map +1 -1
- package/dist/specification/scripts/macros/api.d.ts +4 -1
- package/dist/specification/scripts/macros/api.d.ts.map +1 -1
- package/dist/specification/scripts/macros/api.js +9 -1
- package/dist/specification/scripts/macros/api.js.map +1 -1
- package/dist/specification/scripts/macros/cmd.d.ts +1 -0
- package/dist/specification/scripts/macros/cmd.d.ts.map +1 -1
- package/dist/specification/scripts/macros/cmd.js +1 -0
- package/dist/specification/scripts/macros/cmd.js.map +1 -1
- package/dist/specification/scripts/macros/corrections.d.ts +1 -0
- package/dist/specification/scripts/macros/corrections.d.ts.map +1 -1
- package/dist/specification/scripts/macros/corrections.js +4 -0
- package/dist/specification/scripts/macros/corrections.js.map +1 -1
- package/dist/specification/scripts/macros/i18n.d.ts +1 -0
- package/dist/specification/scripts/macros/i18n.d.ts.map +1 -1
- package/dist/specification/scripts/macros/i18n.js +1 -0
- package/dist/specification/scripts/macros/i18n.js.map +1 -1
- package/dist/specification/scripts/macros/schema.d.ts +1 -0
- package/dist/specification/scripts/macros/schema.d.ts.map +1 -1
- package/dist/specification/scripts/macros/schema.js +18 -5
- package/dist/specification/scripts/macros/schema.js.map +1 -1
- package/dist/specification/scripts/schema/to-json-schema.d.ts +9 -5
- package/dist/specification/scripts/schema/to-json-schema.d.ts.map +1 -1
- package/dist/specification/scripts/schema/to-json-schema.js +32 -5
- package/dist/specification/scripts/schema/to-json-schema.js.map +1 -1
- package/dist/specification/scripts/spec.js +19 -9
- package/dist/specification/scripts/spec.js.map +1 -1
- package/dist/specification/src/api.d.ts +20 -12
- package/dist/specification/src/api.d.ts.map +1 -1
- package/dist/specification/src/api.js +22 -14
- package/dist/specification/src/api.js.map +1 -1
- package/dist/specification/src/extensionLogger.d.ts +3 -2
- package/dist/specification/src/extensionLogger.d.ts.map +1 -1
- package/dist/specification/src/extensionLogger.js +3 -2
- package/dist/specification/src/extensionLogger.js.map +1 -1
- package/dist/specification/src/i18n/i18n.d.ts +5 -0
- package/dist/specification/src/i18n/i18n.d.ts.map +1 -1
- package/dist/specification/src/i18n/i18n.js +5 -0
- package/dist/specification/src/i18n/i18n.js.map +1 -1
- package/dist/specification/src/project.d.ts +3 -1
- package/dist/specification/src/project.d.ts.map +1 -1
- package/dist/specification/src/project.js +3 -1
- package/dist/specification/src/project.js.map +1 -1
- package/dist/specification/src/specification/schemaAccess.d.ts +6 -2
- package/dist/specification/src/specification/schemaAccess.d.ts.map +1 -1
- package/dist/specification/src/specification/schemaAccess.js +10 -4
- package/dist/specification/src/specification/schemaAccess.js.map +1 -1
- package/dist/specification/src/sync/common/appProvider.d.ts +17 -6
- package/dist/specification/src/sync/common/appProvider.d.ts.map +1 -1
- package/dist/specification/src/sync/common/appProvider.js +33 -17
- package/dist/specification/src/sync/common/appProvider.js.map +1 -1
- package/dist/specification/src/sync/common/decoration/control.d.ts +26 -10
- package/dist/specification/src/sync/common/decoration/control.d.ts.map +1 -1
- package/dist/specification/src/sync/common/decoration/control.js +32 -13
- package/dist/specification/src/sync/common/decoration/control.js.map +1 -1
- package/dist/specification/src/sync/common/decoration/decorators.d.ts +14 -0
- package/dist/specification/src/sync/common/decoration/decorators.d.ts.map +1 -1
- package/dist/specification/src/sync/common/decoration/decorators.js +14 -0
- package/dist/specification/src/sync/common/decoration/decorators.js.map +1 -1
- package/dist/specification/src/sync/common/decoration/factory.d.ts +12 -3
- package/dist/specification/src/sync/common/decoration/factory.d.ts.map +1 -1
- package/dist/specification/src/sync/common/decoration/factory.js +6 -3
- package/dist/specification/src/sync/common/decoration/factory.js.map +1 -1
- package/dist/specification/src/sync/common/decoration/flex.d.ts +7 -0
- package/dist/specification/src/sync/common/decoration/flex.d.ts.map +1 -1
- package/dist/specification/src/sync/common/decoration/flex.js +7 -0
- package/dist/specification/src/sync/common/decoration/flex.js.map +1 -1
- package/dist/specification/src/sync/common/distTagEvaluator.d.ts +6 -3
- package/dist/specification/src/sync/common/distTagEvaluator.d.ts.map +1 -1
- package/dist/specification/src/sync/common/distTagEvaluator.js +6 -3
- package/dist/specification/src/sync/common/distTagEvaluator.js.map +1 -1
- package/dist/specification/src/sync/common/flexUtils.d.ts +11 -10
- package/dist/specification/src/sync/common/flexUtils.d.ts.map +1 -1
- package/dist/specification/src/sync/common/flexUtils.js +11 -10
- package/dist/specification/src/sync/common/flexUtils.js.map +1 -1
- package/dist/specification/src/sync/common/generate/objectPage.d.ts +27 -18
- package/dist/specification/src/sync/common/generate/objectPage.d.ts.map +1 -1
- package/dist/specification/src/sync/common/generate/objectPage.js +54 -33
- package/dist/specification/src/sync/common/generate/objectPage.js.map +1 -1
- package/dist/specification/src/sync/common/generate/utils.d.ts +62 -35
- package/dist/specification/src/sync/common/generate/utils.d.ts.map +1 -1
- package/dist/specification/src/sync/common/generate/utils.js +64 -35
- package/dist/specification/src/sync/common/generate/utils.js.map +1 -1
- package/dist/specification/src/sync/common/import/utils.d.ts +9 -3
- package/dist/specification/src/sync/common/import/utils.d.ts.map +1 -1
- package/dist/specification/src/sync/common/import/utils.js +9 -3
- package/dist/specification/src/sync/common/import/utils.js.map +1 -1
- package/dist/specification/src/sync/common/importProject.d.ts +17 -6
- package/dist/specification/src/sync/common/importProject.d.ts.map +1 -1
- package/dist/specification/src/sync/common/importProject.js +60 -30
- package/dist/specification/src/sync/common/importProject.js.map +1 -1
- package/dist/specification/src/sync/common/utils.d.ts +129 -53
- package/dist/specification/src/sync/common/utils.d.ts.map +1 -1
- package/dist/specification/src/sync/common/utils.js +237 -88
- package/dist/specification/src/sync/common/utils.js.map +1 -1
- package/dist/specification/src/sync/i18n.d.ts +5 -0
- package/dist/specification/src/sync/i18n.d.ts.map +1 -1
- package/dist/specification/src/sync/i18n.js +5 -0
- package/dist/specification/src/sync/i18n.js.map +1 -1
- package/dist/specification/src/sync/v2/export/controls/Action.d.ts +3 -3
- package/dist/specification/src/sync/v2/export/controls/Action.js +15 -15
- package/dist/specification/src/sync/v2/export/controls/Card.d.ts +14 -0
- package/dist/specification/src/sync/v2/export/controls/Card.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/export/controls/Card.js +20 -0
- package/dist/specification/src/sync/v2/export/controls/Card.js.map +1 -1
- package/dist/specification/src/sync/v2/export/controls/Field.js +5 -5
- package/dist/specification/src/sync/v2/export/controls/FilterBar.d.ts +20 -0
- package/dist/specification/src/sync/v2/export/controls/FilterBar.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/export/controls/FilterBar.js +28 -0
- package/dist/specification/src/sync/v2/export/controls/FilterBar.js.map +1 -1
- package/dist/specification/src/sync/v2/export/controls/FormAction.js +4 -4
- package/dist/specification/src/sync/v2/export/controls/Fragment.d.ts +10 -5
- package/dist/specification/src/sync/v2/export/controls/Fragment.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/export/controls/Fragment.js +62 -25
- package/dist/specification/src/sync/v2/export/controls/Fragment.js.map +1 -1
- package/dist/specification/src/sync/v2/export/controls/ObjectPageFooterAction.js +6 -6
- package/dist/specification/src/sync/v2/export/controls/ObjectPageHeaderAction.js +6 -6
- package/dist/specification/src/sync/v2/export/controls/ObjectPageHeaderSection.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/export/controls/ObjectPageHeaderSection.js +20 -16
- package/dist/specification/src/sync/v2/export/controls/ObjectPageHeaderSection.js.map +1 -1
- package/dist/specification/src/sync/v2/export/controls/ObjectPageSection.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/export/controls/ObjectPageSection.js.map +1 -1
- package/dist/specification/src/sync/v2/export/controls/ObjectPageToolBarAction.js +6 -6
- package/dist/specification/src/sync/v2/export/controls/Table.d.ts +24 -0
- package/dist/specification/src/sync/v2/export/controls/Table.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/export/controls/Table.js +42 -3
- package/dist/specification/src/sync/v2/export/controls/Table.js.map +1 -1
- package/dist/specification/src/sync/v2/export/controls/TableColumn.js +10 -10
- package/dist/specification/src/sync/v2/export/export.d.ts +7 -3
- package/dist/specification/src/sync/v2/export/export.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/export/export.js +133 -44
- package/dist/specification/src/sync/v2/export/export.js.map +1 -1
- package/dist/specification/src/sync/v2/export/exportPage.d.ts +18 -10
- package/dist/specification/src/sync/v2/export/exportPage.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/export/exportPage.js +34 -20
- package/dist/specification/src/sync/v2/export/exportPage.js.map +1 -1
- package/dist/specification/src/sync/v2/export/exportPageGeneric.d.ts +5 -2
- package/dist/specification/src/sync/v2/export/exportPageGeneric.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/export/exportPageGeneric.js +27 -17
- package/dist/specification/src/sync/v2/export/exportPageGeneric.js.map +1 -1
- package/dist/specification/src/sync/v2/export/manifest.d.ts +5 -2
- package/dist/specification/src/sync/v2/export/manifest.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/export/manifest.js +30 -6
- package/dist/specification/src/sync/v2/export/manifest.js.map +1 -1
- package/dist/specification/src/sync/v2/export/pages/OverviewPage.d.ts +21 -0
- package/dist/specification/src/sync/v2/export/pages/OverviewPage.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/export/pages/OverviewPage.js +36 -2
- package/dist/specification/src/sync/v2/export/pages/OverviewPage.js.map +1 -1
- package/dist/specification/src/sync/v2/export/view-controller-generator.d.ts +25 -15
- package/dist/specification/src/sync/v2/export/view-controller-generator.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/export/view-controller-generator.js +27 -16
- package/dist/specification/src/sync/v2/export/view-controller-generator.js.map +1 -1
- package/dist/specification/src/sync/v2/generate/analyticalListReport.d.ts +2 -0
- package/dist/specification/src/sync/v2/generate/analyticalListReport.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/generate/analyticalListReport.js +6 -0
- package/dist/specification/src/sync/v2/generate/analyticalListReport.js.map +1 -1
- package/dist/specification/src/sync/v2/generate/generate.d.ts +5 -9
- package/dist/specification/src/sync/v2/generate/generate.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/generate/generate.js +9 -12
- package/dist/specification/src/sync/v2/generate/generate.js.map +1 -1
- package/dist/specification/src/sync/v2/generate/listReport.d.ts +4 -2
- package/dist/specification/src/sync/v2/generate/listReport.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/generate/listReport.js +24 -7
- package/dist/specification/src/sync/v2/generate/listReport.js.map +1 -1
- package/dist/specification/src/sync/v2/generate/objectPage.d.ts +2 -2
- package/dist/specification/src/sync/v2/generate/objectPage.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/generate/objectPage.js +75 -43
- package/dist/specification/src/sync/v2/generate/objectPage.js.map +1 -1
- package/dist/specification/src/sync/v2/generate/overviewPage.d.ts +2 -2
- package/dist/specification/src/sync/v2/generate/overviewPage.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/generate/overviewPage.js +2 -2
- package/dist/specification/src/sync/v2/generate/overviewPage.js.map +1 -1
- package/dist/specification/src/sync/v2/generate/schemaAdaptation.js +2 -2
- package/dist/specification/src/sync/v2/generate/utils.d.ts +47 -22
- package/dist/specification/src/sync/v2/generate/utils.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/generate/utils.js +92 -33
- package/dist/specification/src/sync/v2/generate/utils.js.map +1 -1
- package/dist/specification/src/sync/v2/import/app/appProvider.d.ts +7 -0
- package/dist/specification/src/sync/v2/import/app/appProvider.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/import/app/appProvider.js +20 -4
- package/dist/specification/src/sync/v2/import/app/appProvider.js.map +1 -1
- package/dist/specification/src/sync/v2/import/app/ovpProvider.d.ts +4 -0
- package/dist/specification/src/sync/v2/import/app/ovpProvider.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/import/app/ovpProvider.js +4 -0
- package/dist/specification/src/sync/v2/import/app/ovpProvider.js.map +1 -1
- package/dist/specification/src/sync/v2/import/common/index.d.ts +28 -15
- package/dist/specification/src/sync/v2/import/common/index.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/import/common/index.js +91 -35
- package/dist/specification/src/sync/v2/import/common/index.js.map +1 -1
- package/dist/specification/src/sync/v2/import/controls/table.d.ts +6 -2
- package/dist/specification/src/sync/v2/import/controls/table.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/import/controls/table.js +6 -2
- package/dist/specification/src/sync/v2/import/controls/table.js.map +1 -1
- package/dist/specification/src/sync/v2/import/importPage.d.ts +2 -1
- package/dist/specification/src/sync/v2/import/importPage.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/import/importPage.js +4 -5
- package/dist/specification/src/sync/v2/import/importPage.js.map +1 -1
- package/dist/specification/src/sync/v2/import/pages/analyticalListPage.d.ts +3 -3
- package/dist/specification/src/sync/v2/import/pages/analyticalListPage.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/import/pages/analyticalListPage.js +9 -10
- package/dist/specification/src/sync/v2/import/pages/analyticalListPage.js.map +1 -1
- package/dist/specification/src/sync/v2/import/pages/listReport.d.ts +8 -7
- package/dist/specification/src/sync/v2/import/pages/listReport.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/import/pages/listReport.js +28 -24
- package/dist/specification/src/sync/v2/import/pages/listReport.js.map +1 -1
- package/dist/specification/src/sync/v2/import/pages/objectPage.d.ts +3 -3
- package/dist/specification/src/sync/v2/import/pages/objectPage.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/import/pages/objectPage.js +107 -76
- package/dist/specification/src/sync/v2/import/pages/objectPage.js.map +1 -1
- package/dist/specification/src/sync/v2/import/pages/overviewPage.d.ts +2 -1
- package/dist/specification/src/sync/v2/import/pages/overviewPage.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/import/pages/overviewPage.js +27 -12
- package/dist/specification/src/sync/v2/import/pages/overviewPage.js.map +1 -1
- package/dist/specification/src/sync/v2/import/utils.d.ts +18 -9
- package/dist/specification/src/sync/v2/import/utils.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/import/utils.js +27 -15
- package/dist/specification/src/sync/v2/import/utils.js.map +1 -1
- package/dist/specification/src/sync/v2/utils.d.ts +26 -1
- package/dist/specification/src/sync/v2/utils.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/utils.js +46 -0
- package/dist/specification/src/sync/v2/utils.js.map +1 -1
- package/dist/specification/src/sync/v4/application.d.ts +7 -5
- package/dist/specification/src/sync/v4/application.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/application.js +7 -5
- package/dist/specification/src/sync/v4/application.js.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/FilterBar.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/FilterBar.js +8 -0
- package/dist/specification/src/sync/v4/export/controls/FilterBar.js.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/ObjectPageFooter.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/ObjectPageFooter.js.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/ObjectPageTableColumn.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/ObjectPageTableColumn.js.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/Table.d.ts +18 -10
- package/dist/specification/src/sync/v4/export/controls/Table.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/Table.js +48 -18
- package/dist/specification/src/sync/v4/export/controls/Table.js.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/TableColumn.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/TableColumn.js.map +1 -1
- package/dist/specification/src/sync/v4/export/export.d.ts +6 -4
- package/dist/specification/src/sync/v4/export/export.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/export/export.js +136 -58
- package/dist/specification/src/sync/v4/export/export.js.map +1 -1
- package/dist/specification/src/sync/v4/export/exportCustomColumn.d.ts +6 -4
- package/dist/specification/src/sync/v4/export/exportCustomColumn.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/export/exportCustomColumn.js +6 -4
- package/dist/specification/src/sync/v4/export/exportCustomColumn.js.map +1 -1
- package/dist/specification/src/sync/v4/export/flexibleColumnLayout.d.ts +3 -2
- package/dist/specification/src/sync/v4/export/flexibleColumnLayout.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/export/flexibleColumnLayout.js +13 -9
- package/dist/specification/src/sync/v4/export/flexibleColumnLayout.js.map +1 -1
- package/dist/specification/src/sync/v4/export/fpmCustomPage.d.ts +6 -4
- package/dist/specification/src/sync/v4/export/fpmCustomPage.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/export/fpmCustomPage.js +9 -4
- package/dist/specification/src/sync/v4/export/fpmCustomPage.js.map +1 -1
- package/dist/specification/src/sync/v4/export/manifest.d.ts +6 -2
- package/dist/specification/src/sync/v4/export/manifest.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/export/manifest.js +46 -17
- package/dist/specification/src/sync/v4/export/manifest.js.map +1 -1
- package/dist/specification/src/sync/v4/export/pages/ListReport.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/export/pages/ListReport.js +4 -3
- package/dist/specification/src/sync/v4/export/pages/ListReport.js.map +1 -1
- package/dist/specification/src/sync/v4/export/utils.d.ts +6 -4
- package/dist/specification/src/sync/v4/export/utils.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/export/utils.js +6 -4
- package/dist/specification/src/sync/v4/export/utils.js.map +1 -1
- package/dist/specification/src/sync/v4/generate/fpm-custom-page/annotations.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/generate/fpm-custom-page/annotations.js +4 -0
- package/dist/specification/src/sync/v4/generate/fpm-custom-page/annotations.js.map +1 -1
- package/dist/specification/src/sync/v4/generate/fpm-custom-page/extensions.d.ts +5 -3
- package/dist/specification/src/sync/v4/generate/fpm-custom-page/extensions.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/generate/fpm-custom-page/extensions.js +14 -5
- package/dist/specification/src/sync/v4/generate/fpm-custom-page/extensions.js.map +1 -1
- package/dist/specification/src/sync/v4/generate/fpm-custom-page/generator.d.ts +1 -0
- package/dist/specification/src/sync/v4/generate/fpm-custom-page/generator.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/generate/fpm-custom-page/generator.js +18 -0
- package/dist/specification/src/sync/v4/generate/fpm-custom-page/generator.js.map +1 -1
- package/dist/specification/src/sync/v4/generate/fpm-custom-page/pageExtensions.d.ts +1 -1
- package/dist/specification/src/sync/v4/generate/fpm-custom-page/pageExtensions.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/generate/fpm-custom-page/pageExtensions.js +2 -1
- package/dist/specification/src/sync/v4/generate/fpm-custom-page/pageExtensions.js.map +1 -1
- package/dist/specification/src/sync/v4/generate/fpm-custom-page/utils.d.ts +2 -0
- package/dist/specification/src/sync/v4/generate/fpm-custom-page/utils.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/generate/fpm-custom-page/utils.js +2 -0
- package/dist/specification/src/sync/v4/generate/fpm-custom-page/utils.js.map +1 -1
- package/dist/specification/src/sync/v4/generate/freestylePage.d.ts +2 -2
- package/dist/specification/src/sync/v4/generate/freestylePage.js +2 -2
- package/dist/specification/src/sync/v4/generate/generate.d.ts +13 -11
- package/dist/specification/src/sync/v4/generate/generate.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/generate/generate.js +13 -11
- package/dist/specification/src/sync/v4/generate/generate.js.map +1 -1
- package/dist/specification/src/sync/v4/generate/listReport.d.ts +10 -7
- package/dist/specification/src/sync/v4/generate/listReport.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/generate/listReport.js +122 -73
- package/dist/specification/src/sync/v4/generate/listReport.js.map +1 -1
- package/dist/specification/src/sync/v4/generate/objectPage.d.ts +1 -1
- package/dist/specification/src/sync/v4/generate/objectPage.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/generate/objectPage.js +206 -154
- package/dist/specification/src/sync/v4/generate/objectPage.js.map +1 -1
- package/dist/specification/src/sync/v4/import/app/appProvider.d.ts +18 -4
- package/dist/specification/src/sync/v4/import/app/appProvider.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/import/app/appProvider.js +56 -24
- package/dist/specification/src/sync/v4/import/app/appProvider.js.map +1 -1
- package/dist/specification/src/sync/v4/import/fragment.d.ts +29 -4
- package/dist/specification/src/sync/v4/import/fragment.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/import/fragment.js +46 -7
- package/dist/specification/src/sync/v4/import/fragment.js.map +1 -1
- package/dist/specification/src/sync/v4/import/pages/fpmCustomPage.d.ts +3 -2
- package/dist/specification/src/sync/v4/import/pages/fpmCustomPage.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/import/pages/fpmCustomPage.js +7 -2
- package/dist/specification/src/sync/v4/import/pages/fpmCustomPage.js.map +1 -1
- package/dist/specification/src/sync/v4/import/pages/listReport.d.ts +12 -10
- package/dist/specification/src/sync/v4/import/pages/listReport.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/import/pages/listReport.js +69 -46
- package/dist/specification/src/sync/v4/import/pages/listReport.js.map +1 -1
- package/dist/specification/src/sync/v4/import/pages/objectPage.d.ts +7 -6
- package/dist/specification/src/sync/v4/import/pages/objectPage.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/import/pages/objectPage.js +49 -36
- package/dist/specification/src/sync/v4/import/pages/objectPage.js.map +1 -1
- package/dist/specification/src/sync/v4/import/utils.d.ts +4 -2
- package/dist/specification/src/sync/v4/import/utils.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/import/utils.js +4 -2
- package/dist/specification/src/sync/v4/import/utils.js.map +1 -1
- package/dist/specification/src/sync/v4/sync-rules/controllerExtensions.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/sync-rules/controllerExtensions.js +5 -2
- package/dist/specification/src/sync/v4/sync-rules/controllerExtensions.js.map +1 -1
- package/dist/specification/src/sync/v4/utils/StableIdHelper.d.ts +12 -0
- package/dist/specification/src/sync/v4/utils/StableIdHelper.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/utils/StableIdHelper.js +18 -0
- package/dist/specification/src/sync/v4/utils/StableIdHelper.js.map +1 -1
- package/dist/specification/src/sync/v4/utils/macros.d.ts +4 -0
- package/dist/specification/src/sync/v4/utils/macros.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/utils/macros.js +17 -1
- package/dist/specification/src/sync/v4/utils/macros.js.map +1 -1
- package/dist/specification/src/sync/v4/utils/utils.d.ts +38 -20
- package/dist/specification/src/sync/v4/utils/utils.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/utils/utils.js +99 -52
- package/dist/specification/src/sync/v4/utils/utils.js.map +1 -1
- package/dist/types/src/common/Application.d.ts +6 -0
- package/dist/types/src/common/Application.d.ts.map +1 -1
- package/dist/types/src/common/Application.js +4 -0
- package/dist/types/src/common/Application.js.map +1 -1
- package/dist/types/src/common/types.d.ts +51 -2
- package/dist/types/src/common/types.d.ts.map +1 -1
- package/dist/types/src/common/types.js +2 -1
- package/dist/types/src/common/types.js.map +1 -1
- package/dist/types/src/common/webapp/manifest/sapUi5.d.ts +3 -2
- package/dist/types/src/common/webapp/manifest/sapUi5.d.ts.map +1 -1
- package/dist/types/src/common/webapp/manifest/sapUi5.js +3 -2
- package/dist/types/src/common/webapp/manifest/sapUi5.js.map +1 -1
- package/dist/types/src/v2/application.d.ts +1 -1
- package/dist/types/src/v2/controls/Action.d.ts +12 -0
- package/dist/types/src/v2/controls/Action.d.ts.map +1 -1
- package/dist/types/src/v2/controls/AnalyticalListPageChart.d.ts +1 -0
- package/dist/types/src/v2/controls/AnalyticalListPageChart.d.ts.map +1 -1
- package/dist/types/src/v2/controls/AnalyticalListPageKPI.d.ts +1 -0
- package/dist/types/src/v2/controls/AnalyticalListPageKPI.d.ts.map +1 -1
- package/dist/types/src/v2/controls/Card.d.ts +13 -0
- package/dist/types/src/v2/controls/Card.d.ts.map +1 -1
- package/dist/types/src/v2/controls/Card.js.map +1 -1
- package/dist/types/src/v2/controls/Field.d.ts +1 -0
- package/dist/types/src/v2/controls/Field.d.ts.map +1 -1
- package/dist/types/src/v2/controls/FilterBar.d.ts +6 -0
- package/dist/types/src/v2/controls/FilterBar.d.ts.map +1 -1
- package/dist/types/src/v2/controls/FilterBar.js.map +1 -1
- package/dist/types/src/v2/controls/Header.d.ts +1 -0
- package/dist/types/src/v2/controls/Header.d.ts.map +1 -1
- package/dist/types/src/v2/controls/ObjectPageChart.d.ts +1 -0
- package/dist/types/src/v2/controls/ObjectPageChart.d.ts.map +1 -1
- package/dist/types/src/v2/controls/ObjectPageFooter.d.ts +2 -0
- package/dist/types/src/v2/controls/ObjectPageFooter.d.ts.map +1 -1
- package/dist/types/src/v2/controls/ObjectPageForm.d.ts +1 -0
- package/dist/types/src/v2/controls/ObjectPageForm.d.ts.map +1 -1
- package/dist/types/src/v2/controls/ObjectPageHeader.d.ts +1 -0
- package/dist/types/src/v2/controls/ObjectPageHeader.d.ts.map +1 -1
- package/dist/types/src/v2/controls/ObjectPageHeaderSection.d.ts +3 -0
- package/dist/types/src/v2/controls/ObjectPageHeaderSection.d.ts.map +1 -1
- package/dist/types/src/v2/controls/ObjectPageLayout.d.ts +1 -0
- package/dist/types/src/v2/controls/ObjectPageLayout.d.ts.map +1 -1
- package/dist/types/src/v2/controls/ObjectPageSection.d.ts +13 -0
- package/dist/types/src/v2/controls/ObjectPageSection.d.ts.map +1 -1
- package/dist/types/src/v2/controls/ObjectPageSection.js.map +1 -1
- package/dist/types/src/v2/controls/ObjectPageTable.d.ts +6 -0
- package/dist/types/src/v2/controls/ObjectPageTable.d.ts.map +1 -1
- package/dist/types/src/v2/controls/ObjectPageToolBar.d.ts +2 -0
- package/dist/types/src/v2/controls/ObjectPageToolBar.d.ts.map +1 -1
- package/dist/types/src/v2/controls/Table.d.ts +28 -0
- package/dist/types/src/v2/controls/Table.d.ts.map +1 -1
- package/dist/types/src/v2/controls/Table.js.map +1 -1
- package/dist/types/src/v2/controls/ToolBar.d.ts +1 -0
- package/dist/types/src/v2/controls/ToolBar.d.ts.map +1 -1
- package/dist/types/src/v2/pages/AnalyticalListPageConfigV2.d.ts +1 -0
- package/dist/types/src/v2/pages/AnalyticalListPageConfigV2.d.ts.map +1 -1
- package/dist/types/src/v2/pages/OverviewPageConfigV2.d.ts +4 -0
- package/dist/types/src/v2/pages/OverviewPageConfigV2.d.ts.map +1 -1
- package/dist/types/src/v4/application.d.ts +1 -1
- package/dist/types/src/v4/controls/CustomAction.d.ts +10 -0
- package/dist/types/src/v4/controls/CustomAction.d.ts.map +1 -1
- package/dist/types/src/v4/controls/FilterBar.d.ts +10 -0
- package/dist/types/src/v4/controls/FilterBar.d.ts.map +1 -1
- package/dist/types/src/v4/controls/FilterBar.js.map +1 -1
- package/dist/types/src/v4/controls/Header.d.ts +1 -0
- package/dist/types/src/v4/controls/Header.d.ts.map +1 -1
- package/dist/types/src/v4/controls/ObjectPageFooter.d.ts +1 -0
- package/dist/types/src/v4/controls/ObjectPageFooter.d.ts.map +1 -1
- package/dist/types/src/v4/controls/ObjectPageForm.d.ts +1 -0
- package/dist/types/src/v4/controls/ObjectPageForm.d.ts.map +1 -1
- package/dist/types/src/v4/controls/ObjectPageHeader.d.ts +2 -0
- package/dist/types/src/v4/controls/ObjectPageHeader.d.ts.map +1 -1
- package/dist/types/src/v4/controls/ObjectPageHeaderSection.d.ts +6 -0
- package/dist/types/src/v4/controls/ObjectPageHeaderSection.d.ts.map +1 -1
- package/dist/types/src/v4/controls/ObjectPageLayout.d.ts +1 -0
- package/dist/types/src/v4/controls/ObjectPageLayout.d.ts.map +1 -1
- package/dist/types/src/v4/controls/ObjectPageSection.d.ts +17 -0
- package/dist/types/src/v4/controls/ObjectPageSection.d.ts.map +1 -1
- package/dist/types/src/v4/controls/ObjectPageSection.js.map +1 -1
- package/dist/types/src/v4/controls/ObjectPageTable.d.ts +5 -0
- package/dist/types/src/v4/controls/ObjectPageTable.d.ts.map +1 -1
- package/dist/types/src/v4/controls/ObjectPageTable.js.map +1 -1
- package/dist/types/src/v4/controls/ObjectPageToolBar.d.ts +4 -0
- package/dist/types/src/v4/controls/ObjectPageToolBar.d.ts.map +1 -1
- package/dist/types/src/v4/controls/Table.d.ts +15 -0
- package/dist/types/src/v4/controls/Table.d.ts.map +1 -1
- package/dist/types/src/v4/controls/ToolBar.d.ts +9 -0
- package/dist/types/src/v4/controls/ToolBar.d.ts.map +1 -1
- package/dist/types/src/v4/page.d.ts +4 -0
- package/dist/types/src/v4/page.d.ts.map +1 -1
- package/dist/types/src/v4/webapp/manifest/ManifestSettings.d.ts +22 -0
- package/dist/types/src/v4/webapp/manifest/ManifestSettings.d.ts.map +1 -1
- package/dist/types/src/v4/webapp/manifest/sapUi5.d.ts +3 -0
- package/dist/types/src/v4/webapp/manifest/sapUi5.d.ts.map +1 -1
- package/dist/types/src/v4/webapp/manifest/sapUi5.js.map +1 -1
- package/dist/types/src/v4/webapp/manifest/sapUiPageV4.d.ts +1 -1
- package/dist/types/src/v4/webapp/manifest/sapUiPageV4.d.ts.map +1 -1
- package/dist/types/src/v4/webapp/manifest/sapUiPageV4.js +2 -2
- package/dist/types/src/v4/webapp/manifest/sapUiPageV4.js.map +1 -1
- package/package.json +6 -6
|
@@ -5,12 +5,25 @@ exports.checkIfNodeInViewport = checkIfNodeInViewport;
|
|
|
5
5
|
exports.toggleTabIndex = toggleTabIndex;
|
|
6
6
|
exports.toggleActiveFocus = toggleActiveFocus;
|
|
7
7
|
const d3_1 = require("d3");
|
|
8
|
+
/**
|
|
9
|
+
* Checks if a node is within the viewport of a container.
|
|
10
|
+
*
|
|
11
|
+
* @param rect - The bounding rectangle of the node.
|
|
12
|
+
* @param containerRect - The bounding rectangle of the container.
|
|
13
|
+
* @returns True if the node is within the viewport, otherwise false.
|
|
14
|
+
*/
|
|
8
15
|
function checkIfNodeInViewport(rect, containerRect) {
|
|
9
16
|
return (rect.top >= containerRect.top &&
|
|
10
17
|
rect.left >= containerRect.top &&
|
|
11
18
|
rect.bottom <= containerRect.bottom &&
|
|
12
19
|
rect.right <= containerRect.right);
|
|
13
20
|
}
|
|
21
|
+
/**
|
|
22
|
+
* Retrieves all sibling nodes of the given node.
|
|
23
|
+
*
|
|
24
|
+
* @param d - The node for which to find siblings.
|
|
25
|
+
* @returns An array of sibling nodes if they exist, otherwise null.
|
|
26
|
+
*/
|
|
14
27
|
function getAllNodeSiblings(d) {
|
|
15
28
|
if (d.parent && d.parent.children.length > 1) {
|
|
16
29
|
return d.parent.children;
|
|
@@ -19,6 +32,11 @@ function getAllNodeSiblings(d) {
|
|
|
19
32
|
return null;
|
|
20
33
|
}
|
|
21
34
|
}
|
|
35
|
+
/**
|
|
36
|
+
* Toggles the tabindex attribute of the specified node.
|
|
37
|
+
*
|
|
38
|
+
* @param d - The node for which to toggle the tabindex.
|
|
39
|
+
*/
|
|
22
40
|
function toggleTabIndex(d) {
|
|
23
41
|
if (d.data.id) {
|
|
24
42
|
const prevFocus = (0, d3_1.selectAll)(`[tabindex="0"][class="node-text"]`);
|
|
@@ -28,6 +46,11 @@ function toggleTabIndex(d) {
|
|
|
28
46
|
}
|
|
29
47
|
}
|
|
30
48
|
}
|
|
49
|
+
/**
|
|
50
|
+
* Toggles the active focus on the specified node.
|
|
51
|
+
*
|
|
52
|
+
* @param d - The node to toggle active focus on.
|
|
53
|
+
*/
|
|
31
54
|
function toggleActiveFocus(d) {
|
|
32
55
|
if (d.data.id) {
|
|
33
56
|
toggleTabIndex(d);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"keyboardNavigation.js","sourceRoot":"","sources":["../../../../../../scripts/documentation/components/ui/keyboardNavigation.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"keyboardNavigation.js","sourceRoot":"","sources":["../../../../../../scripts/documentation/components/ui/keyboardNavigation.ts"],"names":[],"mappings":";;;AAWA,sDAOC;AAqBD,wCAQC;AAOD,8CAKC;AA3DD,2BAAuC;AAIvC;;;;;;GAMG;AACH,SAAgB,qBAAqB,CAAC,IAAa,EAAE,aAAsB;IACvE,OAAO,CACH,IAAI,CAAC,GAAG,IAAI,aAAa,CAAC,GAAG;QAC7B,IAAI,CAAC,IAAI,IAAI,aAAa,CAAC,GAAG;QAC9B,IAAI,CAAC,MAAM,IAAI,aAAa,CAAC,MAAM;QACnC,IAAI,CAAC,KAAK,IAAI,aAAa,CAAC,KAAK,CACpC,CAAC;AACN,CAAC;AAED;;;;;GAKG;AACH,SAAS,kBAAkB,CAAC,CAA+B;IACvD,IAAI,CAAC,CAAC,MAAM,IAAI,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QAC3C,OAAO,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC;IAC7B,CAAC;SAAM,CAAC;QACJ,OAAO,IAAI,CAAC;IAChB,CAAC;AACL,CAAC;AAED;;;;GAIG;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QACf,KAAK,WAAW;YACZ,kBAAkB,CAAC,CAAC,EAAE,MAAM,EAAE,GAAG,CAAC,CAAC;YACnC,MAAM;IACd,CAAC;IACD,OAAO,MAAM,CAAC;AAClB,CAAC,CAAC;AAfW,QAAA,oBAAoB,wBAe/B"}
|
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
import type { HierarchyPointNode } from 'd3';
|
|
2
2
|
import type { TreeNode } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* Expands the node path in the hierarchy.
|
|
5
|
+
*
|
|
6
|
+
* @param path - The path to expand as an array of indices.
|
|
7
|
+
* @param rootNode - The root node of the hierarchy.
|
|
8
|
+
* @returns The expanded node.
|
|
9
|
+
*/
|
|
3
10
|
export declare function expandNodePath(path: string[], rootNode: HierarchyPointNode<TreeNode>): HierarchyPointNode<TreeNode>;
|
|
11
|
+
/**
|
|
12
|
+
* Sets up the in-built search functionality.
|
|
13
|
+
*
|
|
14
|
+
* @param treeData - The root node of the hierarchy.
|
|
15
|
+
*/
|
|
4
16
|
export declare function setupInBuiltSearch(treeData: HierarchyPointNode<TreeNode>): void;
|
|
5
17
|
//# sourceMappingURL=search.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search.d.ts","sourceRoot":"","sources":["../../../../../../scripts/documentation/components/ui/search.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,IAAI,CAAC;AAE7C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"search.d.ts","sourceRoot":"","sources":["../../../../../../scripts/documentation/components/ui/search.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,IAAI,CAAC;AAE7C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AA2IzC;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,QAAQ,EAAE,kBAAkB,CAAC,QAAQ,CAAC,GAAG,kBAAkB,CAAC,QAAQ,CAAC,CASnH;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,kBAAkB,CAAC,QAAQ,CAAC,GAAG,IAAI,CA8B/E"}
|
|
@@ -4,9 +4,16 @@ exports.expandNodePath = expandNodePath;
|
|
|
4
4
|
exports.setupInBuiltSearch = setupInBuiltSearch;
|
|
5
5
|
const toggle_1 = require("./toggle");
|
|
6
6
|
const utils_1 = require("./utils");
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
/**
|
|
8
|
+
* Creates the path to nodes for search.
|
|
9
|
+
*
|
|
10
|
+
* @param node - The current node in the hierarchy.
|
|
11
|
+
* @param path - The path array to accumulate indices.
|
|
12
|
+
* @returns The path to the node as an array of indices.
|
|
13
|
+
*/
|
|
14
|
+
function getNodePath(node, path = []) {
|
|
15
|
+
const p = path || [];
|
|
16
|
+
const parent = node.parent;
|
|
10
17
|
if (parent) {
|
|
11
18
|
const children = parent.children || parent.data._children;
|
|
12
19
|
p.unshift(children.indexOf(node));
|
|
@@ -16,37 +23,80 @@ function getNodePath(node, path) {
|
|
|
16
23
|
return p;
|
|
17
24
|
}
|
|
18
25
|
}
|
|
19
|
-
|
|
26
|
+
/**
|
|
27
|
+
* Sets up the search list.
|
|
28
|
+
*
|
|
29
|
+
* @param root - The root node of the hierarchy.
|
|
30
|
+
* @returns An array of search strings with paths to the nodes.
|
|
31
|
+
*/
|
|
20
32
|
function createSearchList(root) {
|
|
21
33
|
const searchList = [];
|
|
22
34
|
(0, utils_1.visit)(root,
|
|
23
|
-
|
|
35
|
+
/**
|
|
36
|
+
* Creates the search list with paths to the nodes.
|
|
37
|
+
*
|
|
38
|
+
* @param current - The current node in the hierarchy.
|
|
39
|
+
*/
|
|
24
40
|
(current) => {
|
|
25
41
|
if (current) {
|
|
26
42
|
searchList.push(current.data.name + '|' + getNodePath(current, []).join('-'));
|
|
27
43
|
}
|
|
28
|
-
},
|
|
44
|
+
},
|
|
45
|
+
/**
|
|
46
|
+
* Gets the children of the current node.
|
|
47
|
+
*
|
|
48
|
+
* @param current - The current node in the hierarchy.
|
|
49
|
+
* @returns The children of the current node.
|
|
50
|
+
*/
|
|
51
|
+
(current) => {
|
|
29
52
|
return current.children || current.data._children;
|
|
30
53
|
});
|
|
31
|
-
//
|
|
54
|
+
// Removes name of floorplan from search list
|
|
32
55
|
searchList.splice(searchList.indexOf(root.data.name + '|'), 1).sort();
|
|
33
56
|
return searchList;
|
|
34
57
|
}
|
|
58
|
+
/**
|
|
59
|
+
* Gets a DOM element by its selector.
|
|
60
|
+
*
|
|
61
|
+
* @param selector - The CSS selector of the element.
|
|
62
|
+
* @returns The DOM element.
|
|
63
|
+
*/
|
|
35
64
|
function getDOMElement(selector) {
|
|
36
65
|
return document.querySelector(selector);
|
|
37
66
|
}
|
|
67
|
+
/**
|
|
68
|
+
* Shows a DOM element by setting its display style to 'block'.
|
|
69
|
+
*
|
|
70
|
+
* @param element - The DOM element to show.
|
|
71
|
+
*/
|
|
38
72
|
function showDOMElement(element) {
|
|
39
73
|
element.style.display = 'block';
|
|
40
74
|
}
|
|
75
|
+
/**
|
|
76
|
+
* Hides a DOM element by setting its display style to 'none'.
|
|
77
|
+
*
|
|
78
|
+
* @param element - The DOM element to hide.
|
|
79
|
+
*/
|
|
41
80
|
function hideDOMElement(element) {
|
|
42
81
|
element.style.display = 'none';
|
|
43
82
|
}
|
|
83
|
+
/**
|
|
84
|
+
* Removes all child elements from a container and hides it.
|
|
85
|
+
*
|
|
86
|
+
* @param container - The container element.
|
|
87
|
+
*/
|
|
44
88
|
function removeDOMElements(container) {
|
|
45
89
|
while (container.firstChild) {
|
|
46
90
|
container.removeChild(container.firstChild);
|
|
47
91
|
}
|
|
48
92
|
hideDOMElement(container);
|
|
49
93
|
}
|
|
94
|
+
/**
|
|
95
|
+
* Creates and appends a DOM element to a container.
|
|
96
|
+
*
|
|
97
|
+
* @param content - The content to set in the new element.
|
|
98
|
+
* @param container - The container to append the new element to.
|
|
99
|
+
*/
|
|
50
100
|
function createDOMElements(content, container) {
|
|
51
101
|
const listElement = document.createElement('li');
|
|
52
102
|
listElement.setAttribute('data-path', content.split('|')[1]);
|
|
@@ -54,6 +104,14 @@ function createDOMElements(content, container) {
|
|
|
54
104
|
container.appendChild(listElement);
|
|
55
105
|
showDOMElement(container);
|
|
56
106
|
}
|
|
107
|
+
/**
|
|
108
|
+
* Handles the search input event.
|
|
109
|
+
*
|
|
110
|
+
* @param items - The list of searchable items.
|
|
111
|
+
* @param inputElement - The input element for search.
|
|
112
|
+
* @param icon - The icon element to show or hide.
|
|
113
|
+
* @param container - The container for search results.
|
|
114
|
+
*/
|
|
57
115
|
function searchInputEventHandler(items, inputElement, icon, container) {
|
|
58
116
|
const searchValue = inputElement.value.toUpperCase().trim();
|
|
59
117
|
if (searchValue === null || searchValue === '') {
|
|
@@ -70,8 +128,15 @@ function searchInputEventHandler(items, inputElement, icon, container) {
|
|
|
70
128
|
}
|
|
71
129
|
}
|
|
72
130
|
}
|
|
131
|
+
/**
|
|
132
|
+
* Expands the node path in the hierarchy.
|
|
133
|
+
*
|
|
134
|
+
* @param path - The path to expand as an array of indices.
|
|
135
|
+
* @param rootNode - The root node of the hierarchy.
|
|
136
|
+
* @returns The expanded node.
|
|
137
|
+
*/
|
|
73
138
|
function expandNodePath(path, rootNode) {
|
|
74
|
-
let node = rootNode; //
|
|
139
|
+
let node = rootNode; // Start with root
|
|
75
140
|
for (const element of path) {
|
|
76
141
|
if (node.data._children) {
|
|
77
142
|
(0, toggle_1.expand)(node);
|
|
@@ -80,6 +145,11 @@ function expandNodePath(path, rootNode) {
|
|
|
80
145
|
}
|
|
81
146
|
return node;
|
|
82
147
|
}
|
|
148
|
+
/**
|
|
149
|
+
* Sets up the in-built search functionality.
|
|
150
|
+
*
|
|
151
|
+
* @param treeData - The root node of the hierarchy.
|
|
152
|
+
*/
|
|
83
153
|
function setupInBuiltSearch(treeData) {
|
|
84
154
|
const searchInputElement = getDOMElement('#search-input');
|
|
85
155
|
const searchResultContainer = getDOMElement('#search-result');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search.js","sourceRoot":"","sources":["../../../../../../scripts/documentation/components/ui/search.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"search.js","sourceRoot":"","sources":["../../../../../../scripts/documentation/components/ui/search.ts"],"names":[],"mappings":";;AAqJA,wCASC;AAOD,gDA8BC;AAnMD,qCAAkC;AAElC,mCAA2C;AAG3C;;;;;;GAMG;AACH,SAAS,WAAW,CAAC,IAAkC,EAAE,OAAiB,EAAE;IACxE,MAAM,CAAC,GAAG,IAAI,IAAI,EAAE,CAAC;IACrB,MAAM,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;IAC3B,IAAI,MAAM,EAAE,CAAC;QACT,MAAM,QAAQ,GAAG,MAAM,CAAC,QAAQ,IAAI,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC;QAC1D,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC;QAClC,OAAO,WAAW,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;IAClC,CAAC;SAAM,CAAC;QACJ,OAAO,CAAC,CAAC;IACb,CAAC;AACL,CAAC;AAED;;;;;GAKG;AACH,SAAS,gBAAgB,CAAC,IAAkC;IACxD,MAAM,UAAU,GAAa,EAAE,CAAC;IAChC,IAAA,aAAK,EACD,IAAI;IACJ;;;;OAIG;IACH,CAAC,OAAqC,EAAE,EAAE;QACtC,IAAI,OAAO,EAAE,CAAC;YACV,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,GAAG,GAAG,GAAG,WAAW,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;QAClF,CAAC;IACL,CAAC;IACD;;;;;OAKG;IACH,C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4
|
+
* Collapses the given node by hiding its children and storing them in `_children`.
|
|
5
|
+
*
|
|
6
|
+
* @param d - The node to collapse.
|
|
7
|
+
*/
|
|
3
8
|
export declare function collapse(d: HierarchyPointNode<TreeNode>): void;
|
|
9
|
+
/**
|
|
10
|
+
* Expands the given node by restoring its children from `_children`.
|
|
11
|
+
*
|
|
12
|
+
* @param d - The node to expand.
|
|
13
|
+
*/
|
|
4
14
|
export declare function expand(d: HierarchyPointNode<TreeNode>): void;
|
|
15
|
+
/**
|
|
16
|
+
* Expands all nodes in the hierarchy starting from the given node.
|
|
17
|
+
*
|
|
18
|
+
* @param d - The root node to start expanding from.
|
|
19
|
+
*/
|
|
5
20
|
export declare function expandAll(d: HierarchyPointNode<TreeNode>): void;
|
|
21
|
+
/**
|
|
22
|
+
* Toggles the children of the given node. If the node is expanded, it will be collapsed, and vice versa.
|
|
23
|
+
*
|
|
24
|
+
* @param d - The node to toggle.
|
|
25
|
+
* @returns The toggled node.
|
|
26
|
+
*/
|
|
6
27
|
export declare function toggleChildren(d: HierarchyPointNode<TreeNode>): HierarchyPointNode<TreeNode>;
|
|
7
28
|
//# sourceMappingURL=toggle.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toggle.d.ts","sourceRoot":"","sources":["../../../../../../scripts/documentation/components/ui/toggle.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,IAAI,CAAC;AAC7C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"toggle.d.ts","sourceRoot":"","sources":["../../../../../../scripts/documentation/components/ui/toggle.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,IAAI,CAAC;AAC7C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAEzC;;;;GAIG;AACH,wBAAgB,QAAQ,CAAC,CAAC,EAAE,kBAAkB,CAAC,QAAQ,CAAC,GAAG,IAAI,CAO9D;AAED;;;;GAIG;AACH,wBAAgB,MAAM,CAAC,CAAC,EAAE,kBAAkB,CAAC,QAAQ,CAAC,GAAG,IAAI,CAM5D;AAED;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,CAAC,EAAE,kBAAkB,CAAC,QAAQ,CAAC,GAAG,IAAI,CAS/D;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,CAAC,EAAE,kBAAkB,CAAC,QAAQ,CAAC,GAAG,kBAAkB,CAAC,QAAQ,CAAC,CAO5F"}
|
|
@@ -4,24 +4,36 @@ exports.collapse = collapse;
|
|
|
4
4
|
exports.expand = expand;
|
|
5
5
|
exports.expandAll = expandAll;
|
|
6
6
|
exports.toggleChildren = toggleChildren;
|
|
7
|
-
|
|
7
|
+
/**
|
|
8
|
+
* Collapses the given node by hiding its children and storing them in `_children`.
|
|
9
|
+
*
|
|
10
|
+
* @param d - The node to collapse.
|
|
11
|
+
*/
|
|
8
12
|
function collapse(d) {
|
|
9
13
|
if (d.children) {
|
|
10
|
-
//d.data.children = expanded children
|
|
14
|
+
// d.data.children = expanded children
|
|
11
15
|
d.data._children = d.children;
|
|
12
16
|
d.data._children.forEach(collapse);
|
|
13
17
|
d.children = null;
|
|
14
18
|
}
|
|
15
19
|
}
|
|
16
|
-
|
|
20
|
+
/**
|
|
21
|
+
* Expands the given node by restoring its children from `_children`.
|
|
22
|
+
*
|
|
23
|
+
* @param d - The node to expand.
|
|
24
|
+
*/
|
|
17
25
|
function expand(d) {
|
|
18
26
|
if (d.data._children) {
|
|
19
|
-
//d.data._children =
|
|
27
|
+
// d.data._children = collapsed children
|
|
20
28
|
d.children = d.data._children;
|
|
21
29
|
d.data._children = null;
|
|
22
30
|
}
|
|
23
31
|
}
|
|
24
|
-
|
|
32
|
+
/**
|
|
33
|
+
* Expands all nodes in the hierarchy starting from the given node.
|
|
34
|
+
*
|
|
35
|
+
* @param d - The root node to start expanding from.
|
|
36
|
+
*/
|
|
25
37
|
function expandAll(d) {
|
|
26
38
|
if (d.data._children) {
|
|
27
39
|
d.children = d.data._children;
|
|
@@ -32,7 +44,12 @@ function expandAll(d) {
|
|
|
32
44
|
children.forEach(expandAll);
|
|
33
45
|
}
|
|
34
46
|
}
|
|
35
|
-
|
|
47
|
+
/**
|
|
48
|
+
* Toggles the children of the given node. If the node is expanded, it will be collapsed, and vice versa.
|
|
49
|
+
*
|
|
50
|
+
* @param d - The node to toggle.
|
|
51
|
+
* @returns The toggled node.
|
|
52
|
+
*/
|
|
36
53
|
function toggleChildren(d) {
|
|
37
54
|
if (d.children) {
|
|
38
55
|
collapse(d);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toggle.js","sourceRoot":"","sources":["../../../../../../scripts/documentation/components/ui/toggle.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"toggle.js","sourceRoot":"","sources":["../../../../../../scripts/documentation/components/ui/toggle.ts"],"names":[],"mappings":";;AAQA,4BAOC;AAOD,wBAMC;AAOD,8BASC;AAQD,wCAOC;AAxDD;;;;GAIG;AACH,SAAgB,QAAQ,CAAC,CAA+B;IACpD,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC;QACb,sCAAsC;QACtC,CAAC,CAAC,IAAI,CAAC,SAAS,GAAG,CAAC,CAAC,QAAQ,CAAC;QAC9B,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;QACnC,CAAC,CAAC,QAAQ,GAAG,IAAI,CAAC;IACtB,CAAC;AACL,CAAC;AAED;;;;GAIG;AACH,SAAgB,MAAM,CAAC,CAA+B;IAClD,IAAI,CAAC,CAAC,IAAI,CAAC,SAAS,EAAE,CAAC;QACnB,wCAAwC;QACxC,CAAC,CAAC,QAAQ,GAAG,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC;QAC9B,CAAC,CAAC,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC;IAC5B,CAAC;AACL,CAAC;AAED;;;;GAIG;AACH,SAAgB,SAAS,CAAC,CAA+B;IACrD,IAAI,CAAC,CAAC,IAAI,CAAC,SAAS,EAAE,CAAC;QACnB,CAAC,CAAC,QAAQ,GAAG,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC;QAC9B,CAAC,CAAC,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC;IAC5B,CAAC;IACD,MAAM,QAAQ,GAAG,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC;IAC5D,IAAI,QAAQ,EAAE,CAAC;QACX,QAAQ,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;IAChC,CAAC;AACL,CAAC;AAED;;;;;GAKG;AACH,SAAgB,cAAc,CAAC,CAA+B;IAC1D,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC;QACb,QAAQ,CAAC,CAAC,CAAC,CAAC;IAChB,CAAC;SAAM,IAAI,CAAC,CAAC,IAAI,CAAC,SAAS,EAAE,CAAC;QAC1B,MAAM,CAAC,CAAC,CAAC,CAAC;IACd,CAAC;IACD,OAAO,CAAC,CAAC;AACb,CAAC"}
|
|
@@ -1,7 +1,31 @@
|
|
|
1
1
|
import type { HierarchyPointNode, Selection } from 'd3';
|
|
2
2
|
import type { TreeNode, TooltipCoordinates } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* Removes the tooltip from the DOM and restores focus to the previously focused element.
|
|
5
|
+
*
|
|
6
|
+
* @param tooltipDiv - The D3 selection of the tooltip HTMLDivElement to be removed.
|
|
7
|
+
*/
|
|
3
8
|
export declare function removeTooltip(tooltipDiv: Selection<HTMLDivElement, TreeNode, HTMLElement, {}>): void;
|
|
9
|
+
/**
|
|
10
|
+
* Generates the HTML elements for the tooltip based on the provided data.
|
|
11
|
+
*
|
|
12
|
+
* @param d - The data node containing information to populate the tooltip.
|
|
13
|
+
* @returns The HTML string representing the tooltip elements.
|
|
14
|
+
*/
|
|
4
15
|
export declare const tooltipElements: (d: HierarchyPointNode<any>) => string;
|
|
16
|
+
/**
|
|
17
|
+
* Function to display tooltip depending on data.
|
|
18
|
+
*
|
|
19
|
+
* @param coordinates - The x and y coordinates where the tooltip should be displayed.
|
|
20
|
+
* @param d - The data node containing information to populate the tooltip.
|
|
21
|
+
* @param tooltipDiv - The D3 selection of the tooltip HTMLDivElement to be displayed.
|
|
22
|
+
*/
|
|
5
23
|
export declare function showTooltip(coordinates: TooltipCoordinates, d: HierarchyPointNode<TreeNode>, tooltipDiv: Selection<HTMLDivElement, TreeNode, HTMLElement, {}>): void;
|
|
24
|
+
/**
|
|
25
|
+
* Calculates the tooltip coordinates based on the target element's bounding rectangle.
|
|
26
|
+
*
|
|
27
|
+
* @param event - The keyboard event containing the target element.
|
|
28
|
+
* @returns The x and y coordinates for the tooltip.
|
|
29
|
+
*/
|
|
6
30
|
export declare function getTooltipCoordinates(event: KeyboardEvent): TooltipCoordinates;
|
|
7
31
|
//# sourceMappingURL=tooltip.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tooltip.d.ts","sourceRoot":"","sources":["../../../../../../scripts/documentation/components/ui/tooltip.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,SAAS,EAAE,MAAM,IAAI,CAAC;AACxD,OAAO,KAAK,EAAE,QAAQ,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"tooltip.d.ts","sourceRoot":"","sources":["../../../../../../scripts/documentation/components/ui/tooltip.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,SAAS,EAAE,MAAM,IAAI,CAAC;AACxD,OAAO,KAAK,EAAE,QAAQ,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAI7D;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,UAAU,EAAE,SAAS,CAAC,cAAc,EAAE,QAAQ,EAAE,WAAW,EAAE,EAAE,CAAC,QAI7F;AAED;;;;;GAKG;AACH,eAAO,MAAM,eAAe,GAAa,GAAG,kBAAkB,CAAC,GAAG,CAAC,WA+BlE,CAAC;AAEF;;;;;;GAMG;AACH,wBAAgB,WAAW,CACvB,WAAW,EAAE,kBAAkB,EAC/B,CAAC,EAAE,kBAAkB,CAAC,QAAQ,CAAC,EAC/B,UAAU,EAAE,SAAS,CAAC,cAAc,EAAE,QAAQ,EAAE,WAAW,EAAE,EAAE,CAAC,QAqCnE;AAED;;;;;GAKG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,aAAa,GAAG,kBAAkB,CAQ9E"}
|
|
@@ -7,13 +7,22 @@ exports.getTooltipCoordinates = getTooltipCoordinates;
|
|
|
7
7
|
const d3_1 = require("d3");
|
|
8
8
|
const icons_1 = require("./icons");
|
|
9
9
|
let restoreFocus;
|
|
10
|
-
|
|
10
|
+
/**
|
|
11
|
+
* Removes the tooltip from the DOM and restores focus to the previously focused element.
|
|
12
|
+
*
|
|
13
|
+
* @param tooltipDiv - The D3 selection of the tooltip HTMLDivElement to be removed.
|
|
14
|
+
*/
|
|
11
15
|
function removeTooltip(tooltipDiv) {
|
|
12
16
|
tooltipDiv.attr('tabindex', '-1').style('opacity', 1e-6).style('display', 'none');
|
|
13
17
|
restoreFocus?.focus();
|
|
14
18
|
restoreFocus = undefined;
|
|
15
19
|
}
|
|
16
|
-
|
|
20
|
+
/**
|
|
21
|
+
* Generates the HTML elements for the tooltip based on the provided data.
|
|
22
|
+
*
|
|
23
|
+
* @param d - The data node containing information to populate the tooltip.
|
|
24
|
+
* @returns The HTML string representing the tooltip elements.
|
|
25
|
+
*/
|
|
17
26
|
const tooltipElements = function (d) {
|
|
18
27
|
const closeButton = '<div id="tooltip_close-button">' + icons_1.closeIcon + '</div>', name = '<div class="tip_prop">' + d.data.name + ' </div>', description = '<div class="tip_desc">' + d.data.description + '</div>', type = '<div class="tip_type">' + d.data.type + '</div>', enums = '<div class="tip_enums">' + d.data.type.replaceAll('|', ' | ') + '</div>', controlType = '<div class="tip_control">' + d.data.control + '</div>';
|
|
19
28
|
let elements = closeButton;
|
|
@@ -43,7 +52,13 @@ const tooltipElements = function (d) {
|
|
|
43
52
|
return elements;
|
|
44
53
|
};
|
|
45
54
|
exports.tooltipElements = tooltipElements;
|
|
46
|
-
|
|
55
|
+
/**
|
|
56
|
+
* Function to display tooltip depending on data.
|
|
57
|
+
*
|
|
58
|
+
* @param coordinates - The x and y coordinates where the tooltip should be displayed.
|
|
59
|
+
* @param d - The data node containing information to populate the tooltip.
|
|
60
|
+
* @param tooltipDiv - The D3 selection of the tooltip HTMLDivElement to be displayed.
|
|
61
|
+
*/
|
|
47
62
|
function showTooltip(coordinates, d, tooltipDiv) {
|
|
48
63
|
restoreFocus = document.activeElement;
|
|
49
64
|
const outerSVG = (0, d3_1.select)('svg#tree-container').node();
|
|
@@ -85,6 +100,12 @@ function showTooltip(coordinates, d, tooltipDiv) {
|
|
|
85
100
|
removeTooltip(tooltipDiv);
|
|
86
101
|
}
|
|
87
102
|
}
|
|
103
|
+
/**
|
|
104
|
+
* Calculates the tooltip coordinates based on the target element's bounding rectangle.
|
|
105
|
+
*
|
|
106
|
+
* @param event - The keyboard event containing the target element.
|
|
107
|
+
* @returns The x and y coordinates for the tooltip.
|
|
108
|
+
*/
|
|
88
109
|
function getTooltipCoordinates(event) {
|
|
89
110
|
if (event.target instanceof Element) {
|
|
90
111
|
const targetRect = event.target.getBoundingClientRect();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tooltip.js","sourceRoot":"","sources":["../../../../../../scripts/documentation/components/ui/tooltip.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"tooltip.js","sourceRoot":"","sources":["../../../../../../scripts/documentation/components/ui/tooltip.ts"],"names":[],"mappings":";;;AAYA,sCAIC;AAgDD,kCAwCC;AAQD,sDAQC;AAxHD,2BAA4B;AAC5B,m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B,CAAC,CAAC,EAAE,CAAC,OAAO,EAAE;YACxC,aAAa,CAAC,UAAU,CAAC,CAAC;QAC9B,CAAC,CAAC,CAAC;IACP,CAAC;SAAM,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;QACtB,aAAa,CAAC,UAAU,CAAC,CAAC;IAC9B,CAAC;AACL,CAAC;AAED;;;;;GAKG;AACH,SAAgB,qBAAqB,CAAC,KAAoB;IACtD,IAAI,KAAK,CAAC,MAAM,YAAY,OAAO,EAAE,CAAC;QAClC,MAAM,UAAU,GAAG,KAAK,CAAC,MAAM,CAAC,qBAAqB,EAAE,CAAC;QACxD,OAAO;YACH,CAAC,EAAE,UAAU,CAAC,CAAC;YACf,CAAC,EAAE,UAAU,CAAC,CAAC;SAClB,CAAC;IACN,CAAC;AACL,CAAC"}
|
|
@@ -1,9 +1,45 @@
|
|
|
1
1
|
import type { HierarchyPointNode, HierarchyPointLink, HierarchyNode, Selection } from 'd3';
|
|
2
2
|
import type { TreeNode, TreeData } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* Splits a camelCase string into separate words with spaces.
|
|
5
|
+
*
|
|
6
|
+
* @param elem - The camelCase string to be split.
|
|
7
|
+
* @returns The string with words separated by spaces.
|
|
8
|
+
*/
|
|
3
9
|
export declare function splitName(elem: string): string;
|
|
10
|
+
/**
|
|
11
|
+
* Determine the coordinates of an svg element.
|
|
12
|
+
*
|
|
13
|
+
* @param selection - The D3 selection of SVG group elements to determine their bounding boxes.
|
|
14
|
+
*/
|
|
4
15
|
export declare function getBB(selection: Selection<SVGGElement, HierarchyPointNode<TreeNode>, SVGGElement, {}>): void;
|
|
16
|
+
/**
|
|
17
|
+
* Traverses a tree structure and applies a function to each node.
|
|
18
|
+
*
|
|
19
|
+
* @param parent - The root node or data structure to start traversal from.
|
|
20
|
+
* @param visitFn - The function to apply to each visited node.
|
|
21
|
+
* @param childrenFn - The function to retrieve the children of a node.
|
|
22
|
+
*/
|
|
5
23
|
export declare function visit(parent: HierarchyPointNode<TreeNode> | TreeData | Function, visitFn: Function, childrenFn: Function): void;
|
|
24
|
+
/**
|
|
25
|
+
* Counts the number of nodes at each level of the tree.
|
|
26
|
+
*
|
|
27
|
+
* @param levelWidth - An array where each index represents a tree level and its value represents the number of nodes at that level.
|
|
28
|
+
* @param level - The current level in the tree being traversed.
|
|
29
|
+
* @param n - The current node being processed in the tree.
|
|
30
|
+
*/
|
|
6
31
|
export declare function childCount(levelWidth: number[], level: number, n: HierarchyNode<TreeNode>): void;
|
|
32
|
+
/**
|
|
33
|
+
* Draws the links between the nodes.
|
|
34
|
+
*
|
|
35
|
+
* @param d - The link object containing source and target nodes.
|
|
36
|
+
* @returns A string representing the SVG path for the link.
|
|
37
|
+
*/
|
|
7
38
|
export declare function diagonal(d: HierarchyPointLink<TreeNode>): string;
|
|
39
|
+
/**
|
|
40
|
+
* Animates a specific node by fading its text in and out.
|
|
41
|
+
*
|
|
42
|
+
* @param node - The node to be animated.
|
|
43
|
+
*/
|
|
8
44
|
export declare function animateNode(node: HierarchyPointNode<TreeNode>): void;
|
|
9
45
|
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../../scripts/documentation/components/ui/utils.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,IAAI,CAAC;AAC3F,OAAO,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAInD,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAQ9C;
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../../scripts/documentation/components/ui/utils.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,IAAI,CAAC;AAC3F,OAAO,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAInD;;;;;GAKG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAQ9C;AAED;;;;GAIG;AACH,wBAAgB,KAAK,CAAC,SAAS,EAAE,SAAS,CAAC,WAAW,EAAE,kBAAkB,CAAC,QAAQ,CAAC,EAAE,WAAW,EAAE,EAAE,CAAC,QAIrG;AAED;;;;;;GAMG;AACH,wBAAgB,KAAK,CACjB,MAAM,EAAE,kBAAkB,CAAC,QAAQ,CAAC,GAAG,QAAQ,GAAG,QAAQ,EAC1D,OAAO,EAAE,QAAQ,EACjB,UAAU,EAAE,QAAQ,QAavB;AAED;;;;;;GAMG;AACH,wBAAgB,UAAU,CAAC,UAAU,EAAE,MAAM,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC,EAAE,aAAa,CAAC,QAAQ,CAAC,QAUzF;AAED;;;;;GAKG;AACH,wBAAgB,QAAQ,CAAC,CAAC,EAAE,kBAAkB,CAAC,QAAQ,CAAC,GAAG,MAAM,CAahE;AAED;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,kBAAkB,CAAC,QAAQ,CAAC,GAAG,IAAI,CAMpE"}
|
|
@@ -12,6 +12,12 @@ exports.animateNode = animateNode;
|
|
|
12
12
|
const d3_1 = require("d3");
|
|
13
13
|
const jquery_1 = __importDefault(require("jquery"));
|
|
14
14
|
// function to split CamelCase
|
|
15
|
+
/**
|
|
16
|
+
* Splits a camelCase string into separate words with spaces.
|
|
17
|
+
*
|
|
18
|
+
* @param elem - The camelCase string to be split.
|
|
19
|
+
* @returns The string with words separated by spaces.
|
|
20
|
+
*/
|
|
15
21
|
function splitName(elem) {
|
|
16
22
|
const splitElem = elem
|
|
17
23
|
.split(/(?=[A-Z])/)
|
|
@@ -21,13 +27,23 @@ function splitName(elem) {
|
|
|
21
27
|
.join(' ');
|
|
22
28
|
return splitElem;
|
|
23
29
|
}
|
|
24
|
-
|
|
30
|
+
/**
|
|
31
|
+
* Determine the coordinates of an svg element.
|
|
32
|
+
*
|
|
33
|
+
* @param selection - The D3 selection of SVG group elements to determine their bounding boxes.
|
|
34
|
+
*/
|
|
25
35
|
function getBB(selection) {
|
|
26
36
|
selection.each(function (d) {
|
|
27
37
|
d.data.bbox = this.getBBox();
|
|
28
38
|
});
|
|
29
39
|
}
|
|
30
|
-
|
|
40
|
+
/**
|
|
41
|
+
* Traverses a tree structure and applies a function to each node.
|
|
42
|
+
*
|
|
43
|
+
* @param parent - The root node or data structure to start traversal from.
|
|
44
|
+
* @param visitFn - The function to apply to each visited node.
|
|
45
|
+
* @param childrenFn - The function to retrieve the children of a node.
|
|
46
|
+
*/
|
|
31
47
|
function visit(parent, visitFn, childrenFn) {
|
|
32
48
|
if (!parent) {
|
|
33
49
|
return;
|
|
@@ -41,6 +57,13 @@ function visit(parent, visitFn, childrenFn) {
|
|
|
41
57
|
}
|
|
42
58
|
}
|
|
43
59
|
}
|
|
60
|
+
/**
|
|
61
|
+
* Counts the number of nodes at each level of the tree.
|
|
62
|
+
*
|
|
63
|
+
* @param levelWidth - An array where each index represents a tree level and its value represents the number of nodes at that level.
|
|
64
|
+
* @param level - The current level in the tree being traversed.
|
|
65
|
+
* @param n - The current node being processed in the tree.
|
|
66
|
+
*/
|
|
44
67
|
function childCount(levelWidth, level, n) {
|
|
45
68
|
if (n.children && n.children.length > 0) {
|
|
46
69
|
if (levelWidth.length <= level + 1) {
|
|
@@ -52,7 +75,12 @@ function childCount(levelWidth, level, n) {
|
|
|
52
75
|
});
|
|
53
76
|
}
|
|
54
77
|
}
|
|
55
|
-
|
|
78
|
+
/**
|
|
79
|
+
* Draws the links between the nodes.
|
|
80
|
+
*
|
|
81
|
+
* @param d - The link object containing source and target nodes.
|
|
82
|
+
* @returns A string representing the SVG path for the link.
|
|
83
|
+
*/
|
|
56
84
|
function diagonal(d) {
|
|
57
85
|
let nodeGroup, width = 0;
|
|
58
86
|
if (d.source.data.id) {
|
|
@@ -65,7 +93,11 @@ function diagonal(d) {
|
|
|
65
93
|
const path = 'M' + (d.source.y + width + 20) + ',' + d.source.x + 'H' + (d.target.y - 15) + 'V' + d.target.x + ('h' + 15);
|
|
66
94
|
return path;
|
|
67
95
|
}
|
|
68
|
-
|
|
96
|
+
/**
|
|
97
|
+
* Animates a specific node by fading its text in and out.
|
|
98
|
+
*
|
|
99
|
+
* @param node - The node to be animated.
|
|
100
|
+
*/
|
|
69
101
|
function animateNode(node) {
|
|
70
102
|
for (let i = 0; i < 3; i++) {
|
|
71
103
|
(0, jquery_1.default)('#n-' + node.data.id + ' .node-text')
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../../../scripts/documentation/components/ui/utils.ts"],"names":[],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../../../scripts/documentation/components/ui/utils.ts"],"names":[],"mappings":";;;;;AAYA,8BAQC;AAOD,sBAIC;AASD,sBAgBC;AASD,gCAUC;AAQD,4BAaC;AAOD,kCAMC;AA7GD,2BAA4B;AAG5B,oDAAuB;AAEvB,8BAA8B;AAC9B;;;;;GAKG;AACH,SAAgB,SAAS,CAAC,IAAY;IAClC,MAAM,SAAS,GAAG,IAAI;SACjB,KAAK,CAAC,WAAW,CAAC;SAClB,GAAG,CAAC,UAAU,CAAC;QACZ,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IAClD,CAAC,CAAC;SACD,IAAI,CAAC,GAAG,CAAC,CAAC;IACf,OAAO,SAAS,CAAC;AACrB,CAAC;AAED;;;;GAIG;AACH,SAAgB,KAAK,CAAC,SAAgF;IAClG,SAAS,CAAC,IAAI,CAAC,UAAU,CAA+B;QACpD,CAAC,CAAC,IAAI,CAAC,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