@j2inn/fin5-ui-utils 8.2.0 → 9.0.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/fantomProps/createFin5Props/index.d.ts +12 -12
- package/dist/fantomProps/createFin5Props/index.js +146 -146
- package/dist/fantomProps/createFin5Props/index.js.map +1 -1
- package/dist/fantomProps/createFin5Props/runCreateFin5Props.d.ts +2 -2
- package/dist/fantomProps/createFin5Props/runCreateFin5Props.js +20 -20
- package/dist/fantomProps/createFin5Props/runCreateFin5Props.js.map +1 -1
- package/dist/fantomProps/fantomPropsToObject.d.ts +8 -8
- package/dist/fantomProps/fantomPropsToObject.js +182 -183
- package/dist/fantomProps/fantomPropsToObject.js.map +1 -1
- package/dist/fantomProps/generateJsonFromFantomPropsFile.d.ts +4 -4
- package/dist/fantomProps/generateJsonFromFantomPropsFile.js +51 -41
- package/dist/fantomProps/generateJsonFromFantomPropsFile.js.map +1 -1
- package/dist/fantomProps/localePropsToJson.d.ts +1 -1
- package/dist/fantomProps/localePropsToJson.js +60 -50
- package/dist/fantomProps/localePropsToJson.js.map +1 -1
- package/dist/fantomProps/readFantomPropsFile.d.ts +5 -5
- package/dist/fantomProps/readFantomPropsFile.js +74 -65
- package/dist/fantomProps/readFantomPropsFile.js.map +1 -1
- package/dist/fin5Top/fin5FileUpload.d.ts +24 -24
- package/dist/fin5Top/fin5FileUpload.js +51 -51
- package/dist/fin5Top/fin5FileUpload.js.map +1 -1
- package/dist/fin5Top/fin5Top.d.ts +188 -188
- package/dist/fin5Top/fin5Top.js +86 -86
- package/dist/fin5Top/fin5Top.js.map +1 -1
- package/dist/fin5Top/finEdge2Cloud.d.ts +6 -6
- package/dist/fin5Top/finEdge2Cloud.js +15 -15
- package/dist/fin5Top/getFin5BinUrl.d.ts +2 -2
- package/dist/fin5Top/getFin5BinUrl.js +9 -9
- package/dist/fin5Top/openFin5Alarm.d.ts +22 -22
- package/dist/fin5Top/openFin5Alarm.js +23 -23
- package/dist/fin5Top/openFin5Alarm.js.map +1 -1
- package/dist/fin5Top/openFin5Historian.d.ts +3 -3
- package/dist/fin5Top/openFin5Historian.js +19 -19
- package/dist/fin5Top/openFin5Historian.js.map +1 -1
- package/dist/fin5Top/useFin5AppURLHashParameter.d.ts +18 -18
- package/dist/fin5Top/useFin5AppURLHashParameter.js +133 -133
- package/dist/fin5Top/useFin5AppURLHashParameter.js.map +1 -1
- package/dist/index.d.ts +35 -35
- package/dist/index.js +69 -69
- package/dist/jobs/jobUtils.d.ts +14 -14
- package/dist/jobs/jobUtils.js +15 -15
- package/dist/jobs/jobUtils.js.map +1 -1
- package/dist/react/app/Fin5AppContainer.d.ts +36 -36
- package/dist/react/app/Fin5AppContainer.js +171 -161
- package/dist/react/app/Fin5AppContainer.js.map +1 -1
- package/dist/react/app/Fin5AppRootStore.d.ts +42 -42
- package/dist/react/app/Fin5AppRootStore.js +114 -114
- package/dist/react/app/Fin5AppRootStore.js.map +1 -1
- package/dist/react/components/ErrorBoundary.d.ts +57 -57
- package/dist/react/components/ErrorBoundary.js +160 -150
- package/dist/react/components/ErrorBoundary.js.map +1 -1
- package/dist/react/components/ErrorDisplayer.d.ts +19 -19
- package/dist/react/components/ErrorDisplayer.js +36 -36
- package/dist/react/components/ErrorDisplayer.js.map +1 -1
- package/dist/react/components/Loader.d.ts +9 -9
- package/dist/react/components/Loader.js +17 -17
- package/dist/react/components/LoadingSpinner.d.ts +2 -2
- package/dist/react/components/LoadingSpinner.js +27 -27
- package/dist/react/components/RecordImage.d.ts +20 -20
- package/dist/react/components/RecordImage.js +61 -51
- package/dist/react/components/RecordImage.js.map +1 -1
- package/dist/react/components/charts/QRCode.d.ts +25 -25
- package/dist/react/components/charts/QRCode.js +92 -82
- package/dist/react/components/charts/QRCode.js.map +1 -1
- package/dist/react/components/charts/line-bar/Chart.d.ts +166 -166
- package/dist/react/components/charts/line-bar/Chart.js +452 -442
- package/dist/react/components/charts/line-bar/Chart.js.map +1 -1
- package/dist/react/components/charts/line-bar/HGridChart.d.ts +58 -58
- package/dist/react/components/charts/line-bar/HGridChart.js +295 -285
- package/dist/react/components/charts/line-bar/HGridChart.js.map +1 -1
- package/dist/react/components/charts/pie/PieChart.d.ts +94 -94
- package/dist/react/components/charts/pie/PieChart.js +214 -204
- package/dist/react/components/charts/pie/PieChart.js.map +1 -1
- package/dist/react/components/charts/pie/SimplePieChart.d.ts +21 -21
- package/dist/react/components/charts/pie/SimplePieChart.js +65 -55
- package/dist/react/components/charts/pie/SimplePieChart.js.map +1 -1
- package/dist/react/components/graphics/GraphicViewer.d.ts +10 -10
- package/dist/react/components/graphics/GraphicViewer.js +29 -29
- package/dist/react/components/graphics/GraphicsTabViewer.d.ts +17 -17
- package/dist/react/components/graphics/GraphicsTabViewer.js +100 -90
- package/dist/react/components/graphics/GraphicsTabViewer.js.map +1 -1
- package/dist/react/components/makeCustomElement.d.ts +16 -16
- package/dist/react/components/makeCustomElement.js +150 -150
- package/dist/react/components/makeCustomElement.js.map +1 -1
- package/dist/react/components/navigation/BasicLayout.d.ts +41 -41
- package/dist/react/components/navigation/BasicLayout.js +165 -155
- package/dist/react/components/navigation/BasicLayout.js.map +1 -1
- package/dist/react/components/navigation/HeaderSiderLayout.d.ts +13 -13
- package/dist/react/components/navigation/HeaderSiderLayout.js +119 -110
- package/dist/react/components/navigation/HeaderSiderLayout.js.map +1 -1
- package/dist/react/components/navigation/MenuPage.d.ts +37 -37
- package/dist/react/components/navigation/MenuPage.js +35 -36
- package/dist/react/components/navigation/MenuPage.js.map +1 -1
- package/dist/react/components/navigation/MenuTrigger.d.ts +9 -9
- package/dist/react/components/navigation/MenuTrigger.js +33 -33
- package/dist/react/components/navigation/ReactRouterHeaderSiderLayout.d.ts +11 -11
- package/dist/react/components/navigation/ReactRouterHeaderSiderLayout.js +25 -25
- package/dist/react/components/navigation/ReactRouterHeaderSiderLayout.js.map +1 -1
- package/dist/react/components/navigation/ReactRouterLayout.d.ts +45 -46
- package/dist/react/components/navigation/ReactRouterLayout.js +142 -132
- package/dist/react/components/navigation/ReactRouterLayout.js.map +1 -1
- package/dist/react/components/navigation/customRouting/Router.d.ts +12 -12
- package/dist/react/components/navigation/customRouting/Router.js +54 -45
- package/dist/react/components/navigation/customRouting/Router.js.map +1 -1
- package/dist/react/components/navigation/customRouting/RouterLayout.d.ts +11 -11
- package/dist/react/components/navigation/customRouting/RouterLayout.js +71 -61
- package/dist/react/components/navigation/customRouting/RouterLayout.js.map +1 -1
- package/dist/react/components/resolvable/configurationForm/ConfigurationForm.d.ts +26 -27
- package/dist/react/components/resolvable/configurationForm/ConfigurationForm.js +105 -95
- package/dist/react/components/resolvable/configurationForm/ConfigurationForm.js.map +1 -1
- package/dist/react/components/resolvable/configurationForm/ConfigurationFormEntry.d.ts +15 -16
- package/dist/react/components/resolvable/configurationForm/ConfigurationFormEntry.js +98 -88
- package/dist/react/components/resolvable/configurationForm/ConfigurationFormEntry.js.map +1 -1
- package/dist/react/components/resolvable/configurationForm/getSectionDefault.d.ts +16 -16
- package/dist/react/components/resolvable/configurationForm/getSectionDefault.js +99 -99
- package/dist/react/components/resolvable/configurationForm/getSectionDefault.js.map +1 -1
- package/dist/react/hooks/useFin5BinUrl.d.ts +6 -6
- package/dist/react/hooks/useFin5BinUrl.js +15 -15
- package/dist/react/hooks/useFin5ColorScheme.d.ts +2 -2
- package/dist/react/hooks/useFin5ColorScheme.js +55 -56
- package/dist/react/hooks/useFin5ColorScheme.js.map +1 -1
- package/dist/react/hooks/useScreenSize.d.ts +7 -7
- package/dist/react/hooks/useScreenSize.js +31 -31
- package/dist_es/fantomProps/createFin5Props/index.d.ts +12 -12
- package/dist_es/fantomProps/createFin5Props/index.js +140 -140
- package/dist_es/fantomProps/createFin5Props/index.js.map +1 -1
- package/dist_es/fantomProps/createFin5Props/runCreateFin5Props.d.ts +2 -2
- package/dist_es/fantomProps/createFin5Props/runCreateFin5Props.js +15 -15
- package/dist_es/fantomProps/createFin5Props/runCreateFin5Props.js.map +1 -1
- package/dist_es/fantomProps/fantomPropsToObject.d.ts +8 -8
- package/dist_es/fantomProps/fantomPropsToObject.js +178 -178
- package/dist_es/fantomProps/fantomPropsToObject.js.map +1 -1
- package/dist_es/fantomProps/generateJsonFromFantomPropsFile.d.ts +4 -4
- package/dist_es/fantomProps/generateJsonFromFantomPropsFile.js +12 -12
- package/dist_es/fantomProps/localePropsToJson.d.ts +1 -1
- package/dist_es/fantomProps/localePropsToJson.js +21 -21
- package/dist_es/fantomProps/localePropsToJson.js.map +1 -1
- package/dist_es/fantomProps/readFantomPropsFile.d.ts +5 -5
- package/dist_es/fantomProps/readFantomPropsFile.js +38 -39
- package/dist_es/fantomProps/readFantomPropsFile.js.map +1 -1
- package/dist_es/fin5Top/fin5FileUpload.d.ts +24 -24
- package/dist_es/fin5Top/fin5FileUpload.js +47 -47
- package/dist_es/fin5Top/fin5FileUpload.js.map +1 -1
- package/dist_es/fin5Top/fin5Top.d.ts +188 -188
- package/dist_es/fin5Top/fin5Top.js +81 -81
- package/dist_es/fin5Top/fin5Top.js.map +1 -1
- package/dist_es/fin5Top/finEdge2Cloud.d.ts +6 -6
- package/dist_es/fin5Top/finEdge2Cloud.js +11 -11
- package/dist_es/fin5Top/getFin5BinUrl.d.ts +2 -2
- package/dist_es/fin5Top/getFin5BinUrl.js +5 -5
- package/dist_es/fin5Top/openFin5Alarm.d.ts +22 -22
- package/dist_es/fin5Top/openFin5Alarm.js +19 -19
- package/dist_es/fin5Top/openFin5Alarm.js.map +1 -1
- package/dist_es/fin5Top/openFin5Historian.d.ts +3 -3
- package/dist_es/fin5Top/openFin5Historian.js +15 -15
- package/dist_es/fin5Top/openFin5Historian.js.map +1 -1
- package/dist_es/fin5Top/useFin5AppURLHashParameter.d.ts +18 -18
- package/dist_es/fin5Top/useFin5AppURLHashParameter.js +124 -124
- package/dist_es/fin5Top/useFin5AppURLHashParameter.js.map +1 -1
- package/dist_es/index.d.ts +35 -35
- package/dist_es/index.js +53 -53
- package/dist_es/jobs/jobUtils.d.ts +14 -14
- package/dist_es/jobs/jobUtils.js +9 -9
- package/dist_es/react/app/Fin5AppContainer.d.ts +36 -36
- package/dist_es/react/app/Fin5AppContainer.js +132 -132
- package/dist_es/react/app/Fin5AppContainer.js.map +1 -1
- package/dist_es/react/app/Fin5AppRootStore.d.ts +42 -42
- package/dist_es/react/app/Fin5AppRootStore.js +110 -110
- package/dist_es/react/app/Fin5AppRootStore.js.map +1 -1
- package/dist_es/react/components/ErrorBoundary.d.ts +57 -57
- package/dist_es/react/components/ErrorBoundary.js +123 -123
- package/dist_es/react/components/ErrorDisplayer.d.ts +19 -19
- package/dist_es/react/components/ErrorDisplayer.js +28 -28
- package/dist_es/react/components/ErrorDisplayer.js.map +1 -1
- package/dist_es/react/components/Loader.d.ts +9 -9
- package/dist_es/react/components/Loader.js +12 -12
- package/dist_es/react/components/LoadingSpinner.d.ts +2 -2
- package/dist_es/react/components/LoadingSpinner.js +20 -20
- package/dist_es/react/components/RecordImage.d.ts +20 -20
- package/dist_es/react/components/RecordImage.js +24 -24
- package/dist_es/react/components/RecordImage.js.map +1 -1
- package/dist_es/react/components/charts/QRCode.d.ts +25 -25
- package/dist_es/react/components/charts/QRCode.js +52 -52
- package/dist_es/react/components/charts/QRCode.js.map +1 -1
- package/dist_es/react/components/charts/line-bar/Chart.d.ts +166 -166
- package/dist_es/react/components/charts/line-bar/Chart.js +415 -415
- package/dist_es/react/components/charts/line-bar/Chart.js.map +1 -1
- package/dist_es/react/components/charts/line-bar/HGridChart.d.ts +58 -58
- package/dist_es/react/components/charts/line-bar/HGridChart.js +250 -250
- package/dist_es/react/components/charts/line-bar/HGridChart.js.map +1 -1
- package/dist_es/react/components/charts/pie/PieChart.d.ts +94 -94
- package/dist_es/react/components/charts/pie/PieChart.js +177 -177
- package/dist_es/react/components/charts/pie/PieChart.js.map +1 -1
- package/dist_es/react/components/charts/pie/SimplePieChart.d.ts +21 -21
- package/dist_es/react/components/charts/pie/SimplePieChart.js +25 -25
- package/dist_es/react/components/graphics/GraphicViewer.d.ts +10 -10
- package/dist_es/react/components/graphics/GraphicViewer.js +22 -22
- package/dist_es/react/components/graphics/GraphicsTabViewer.d.ts +17 -17
- package/dist_es/react/components/graphics/GraphicsTabViewer.js +60 -60
- package/dist_es/react/components/graphics/GraphicsTabViewer.js.map +1 -1
- package/dist_es/react/components/makeCustomElement.d.ts +16 -16
- package/dist_es/react/components/makeCustomElement.js +142 -142
- package/dist_es/react/components/makeCustomElement.js.map +1 -1
- package/dist_es/react/components/navigation/BasicLayout.d.ts +41 -41
- package/dist_es/react/components/navigation/BasicLayout.js +124 -124
- package/dist_es/react/components/navigation/BasicLayout.js.map +1 -1
- package/dist_es/react/components/navigation/HeaderSiderLayout.d.ts +13 -13
- package/dist_es/react/components/navigation/HeaderSiderLayout.js +80 -80
- package/dist_es/react/components/navigation/HeaderSiderLayout.js.map +1 -1
- package/dist_es/react/components/navigation/MenuPage.d.ts +37 -37
- package/dist_es/react/components/navigation/MenuPage.js +30 -30
- package/dist_es/react/components/navigation/MenuPage.js.map +1 -1
- package/dist_es/react/components/navigation/MenuTrigger.d.ts +9 -9
- package/dist_es/react/components/navigation/MenuTrigger.js +28 -28
- package/dist_es/react/components/navigation/ReactRouterHeaderSiderLayout.d.ts +11 -11
- package/dist_es/react/components/navigation/ReactRouterHeaderSiderLayout.js +18 -18
- package/dist_es/react/components/navigation/ReactRouterHeaderSiderLayout.js.map +1 -1
- package/dist_es/react/components/navigation/ReactRouterLayout.d.ts +45 -46
- package/dist_es/react/components/navigation/ReactRouterLayout.js +99 -99
- package/dist_es/react/components/navigation/ReactRouterLayout.js.map +1 -1
- package/dist_es/react/components/navigation/customRouting/Router.d.ts +12 -12
- package/dist_es/react/components/navigation/customRouting/Router.js +18 -18
- package/dist_es/react/components/navigation/customRouting/Router.js.map +1 -1
- package/dist_es/react/components/navigation/customRouting/RouterLayout.d.ts +11 -11
- package/dist_es/react/components/navigation/customRouting/RouterLayout.js +34 -34
- package/dist_es/react/components/navigation/customRouting/RouterLayout.js.map +1 -1
- package/dist_es/react/components/resolvable/configurationForm/ConfigurationForm.d.ts +26 -27
- package/dist_es/react/components/resolvable/configurationForm/ConfigurationForm.js +64 -64
- package/dist_es/react/components/resolvable/configurationForm/ConfigurationForm.js.map +1 -1
- package/dist_es/react/components/resolvable/configurationForm/ConfigurationFormEntry.d.ts +15 -16
- package/dist_es/react/components/resolvable/configurationForm/ConfigurationFormEntry.js +58 -58
- package/dist_es/react/components/resolvable/configurationForm/ConfigurationFormEntry.js.map +1 -1
- package/dist_es/react/components/resolvable/configurationForm/getSectionDefault.d.ts +16 -16
- package/dist_es/react/components/resolvable/configurationForm/getSectionDefault.js +94 -94
- package/dist_es/react/components/resolvable/configurationForm/getSectionDefault.js.map +1 -1
- package/dist_es/react/hooks/useFin5BinUrl.d.ts +6 -6
- package/dist_es/react/hooks/useFin5BinUrl.js +11 -11
- package/dist_es/react/hooks/useFin5ColorScheme.d.ts +2 -2
- package/dist_es/react/hooks/useFin5ColorScheme.js +52 -52
- package/dist_es/react/hooks/useFin5ColorScheme.js.map +1 -1
- package/dist_es/react/hooks/useScreenSize.d.ts +7 -7
- package/dist_es/react/hooks/useScreenSize.js +27 -27
- package/package.json +26 -49
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HeaderSiderLayout.js","sourceRoot":"","sources":["../../../../src/react/components/navigation/HeaderSiderLayout.tsx"],"names":[],"mappings":";AAAA;;GAEG
|
|
1
|
+
{"version":3,"file":"HeaderSiderLayout.js","sourceRoot":"","sources":["../../../../src/react/components/navigation/HeaderSiderLayout.tsx"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkEH,8CA6FC;AA7JD,kCAAmD;AAEnD,4DAAmC;AACnC,+CAA8D;AAC9D,yCAA2C;AAC3C,+CAKsB;AAEtB,gEAAuC;AAEvC,MAAM,SAAS,GAAG,IAAA,2BAAe,EAAC;IACjC,MAAM,EAAE,CAAC,EAAE,YAAY,EAA6B,EAAE,EAAE,CAAC,CAAC;QACzD,QAAQ,EAAE,OAAO;QACjB,KAAK,EAAE,MAAM;QACb,MAAM,EAAE,IAAI;QACZ,OAAO,EAAE,CAAC;QACV,MAAM,EAAE,YAAY;QACpB,UAAU,EAAE,GAAG,YAAY,IAAI;KAC/B,CAAC;IACF,aAAa,EAAE;QACd,MAAM,EAAE,MAAM;KACd;IACD,KAAK,EAAE,CAAC,EAAE,YAAY,EAA6B,EAAE,EAAE,CAAC,CAAC;QACxD,QAAQ,EAAE,MAAM;QAChB,MAAM,EAAE,OAAO;QACf,QAAQ,EAAE,OAAO;QACjB,IAAI,EAAE,CAAC;QACP,GAAG,EAAE,CAAC;QACN,MAAM,EAAE,CAAC;QACT,MAAM,EAAE,GAAG;QACX,UAAU,EAAE,YAAY;KACxB,CAAC;IACF,OAAO,EAAE,CAAC,EACT,QAAQ,EACR,YAAY,EACZ,UAAU,GAAG,GAAG,EAChB,YAAY,GACe,EAAE,EAAE,CAAC,CAAC;QACjC,WAAW,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,UAAU;QAC1D,UAAU,EAAE,YAAY;KACxB,CAAC;CACF,CAAC,CAAA;AAEF,wCAAwC;AACxC,MAAM,MAAM,GAAG,WAAM,CAAC,MAAiC,CAAA;AACvD,MAAM,KAAK,GAAG,WAAM,CAAC,KAA+B,CAAA;AACpD,MAAM,OAAO,GAAG,WAAM,CAAC,OAAmC,CAAA;AAU1D;;;GAGG;AACH,SAAgB,iBAAiB,CAAqB,EACrD,KAAK,GAAG,EAAE,EACV,WAAW,EACX,aAAa,GAAG,EAAE,EAClB,QAAQ,EACR,YAAY,EACZ,WAAW,EACX,MAAM,EACN,WAAW,EACX,UAAU,EACV,YAAY,EACZ,SAAS,EACT,UAAU,EACV,SAAS,EACT,oBAAoB,EACpB,YAAY,GAAG,mCAAqB,EACpC,QAAQ,GACmB;IAC3B,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,IAAA,gBAAQ,EAAC,KAAK,CAAC,CAAA;IAC/C,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,IAAA,gBAAQ,EAAC,KAAK,CAAC,CAAA;IACrD,MAAM,UAAU,GAAG,UAAU,EAAE,KAAK,CAAA;IACpC,MAAM,OAAO,GAAG,SAAS,CAAC;QACzB,QAAQ;QACR,YAAY,EAAE,YAAY,EAAE,SAAS;QACrC,UAAU;QACV,YAAY;KACZ,CAAC,CAAA;IAEF,MAAM,SAAS,GAAG,IAAA,eAAO,EAAC,GAAG,EAAE,CAAC,IAAA,0BAAY,EAAC,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAA;IAE7D,OAAO,CACN,8BAAC,WAAM,IAAC,QAAQ,WAAK,WAAW;QAC/B,8BAAC,MAAM,OACF,WAAW,EACf,SAAS,EAAE,IAAA,oBAAU,EAAC,OAAO,CAAC,MAAM,EAAE,WAAW,EAAE,SAAS,CAAC;YAC7D,8BAAC,cAAS,IAAC,UAAU,QAAC,MAAM,QAAC,SAAS,EAAE,OAAO,CAAC,aAAa;gBAC3D,QAAQ,IAAI,CACZ,8BAAC,qBAAW,IACX,WAAW,EAAE,WAAW,EACxB,YAAY,EAAE,YAAY,EAC1B,SAAS,EAAE,oBAAoB,EAC/B,OAAO,EAAE,GAAG,EAAE;wBACb,cAAc,CAAC,CAAC,WAAW,CAAC,CAAA;oBAC7B,CAAC,GACA,CACF;gBACA,MAAM,CACI,CACJ;QACT,8BAAC,KAAK,OACD,UAAU,EACd,SAAS,EAAE,IAAA,oBAAU,EAAC,OAAO,CAAC,KAAK,EAAE,UAAU,EAAE,SAAS,CAAC,EAC3D,UAAU,EAAC,IAAI,EACf,YAAY,EAAE,CAAC,MAAe,EAAE,EAAE;gBACjC,WAAW,CAAC,MAAM,CAAC,CAAA;gBACnB,cAAc,CAAC,IAAI,CAAC,CAAA;YACrB,CAAC,EACD,SAAS,EAAE,CAAC,QAAQ,IAAI,WAAW,CAAC,IAAI,YAAY,EAAE,SAAS,EAC/D,cAAc,EACb,QAAQ,IAAI,WAAW;gBACtB,CAAC,CAAC,CAAC;gBACH,CAAC,CAAC,YAAY;oBACb,CAAC,CAAC,YAAY;oBACd,CAAC,CAAC,CAAC,EAEN,OAAO,EAAE,IAAI;YACZ,UAAU;YACX,8BAAC,SAAI,OACA,SAAS,EACb,mBAAmB,EAClB,WAAW,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,SAAS,EAExC,KAAK,EAAE,SAAS,EAChB,YAAY,EAAE,aAAa,EAC3B,QAAQ,EAAE,CAAC,EAAE,GAAG,EAAE,EAAE,EAAE;oBACrB,IAAI,CAAC,WAAW,EAAE,CAAC;wBAClB,cAAc,CAAC,IAAI,CAAC,CAAA;oBACrB,CAAC;oBACD,QAAQ,EAAE,CAAC,GAAG,CAAC,CAAA;gBAChB,CAAC,GACA;YACD,SAAS,CACH;QACR,8BAAC,OAAO,OACH,YAAY,EAChB,SAAS,EAAE,IAAA,oBAAU,EACpB,OAAO,CAAC,OAAO,EACf,YAAY,EAAE,SAAS,CACvB,IACA,QAAQ,CACA,CACF,CACT,CAAA;AACF,CAAC"}
|
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
import { ItemType } from 'antd/lib/menu/hooks/useItems';
|
|
2
|
-
import React, { PropsWithChildren } from 'react';
|
|
3
|
-
/**
|
|
4
|
-
* Menu page has both the data required by the menu and the data required to actually render the page.
|
|
5
|
-
*/
|
|
6
|
-
export
|
|
7
|
-
/**
|
|
8
|
-
* Menu Item that represents an application page
|
|
9
|
-
*/
|
|
10
|
-
interface Page<T = Record<string, unknown>> {
|
|
11
|
-
key: string;
|
|
12
|
-
component?: React.LazyExoticComponent<React.FC<T>>;
|
|
13
|
-
props?: PropsWithChildren<T>;
|
|
14
|
-
children?: MenuPage<T>[];
|
|
15
|
-
disabled?: boolean;
|
|
16
|
-
/**
|
|
17
|
-
* Set it to false to avoid showing the page in the menu. It is just used for routing purposes.
|
|
18
|
-
*/
|
|
19
|
-
showInMenu?: boolean;
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* Retrieve a specific page or subPage from a root page list
|
|
23
|
-
* @param name the name of the searched page
|
|
24
|
-
* @param pages the list of root pages
|
|
25
|
-
*/
|
|
26
|
-
export declare function findPageByName<T extends MenuPage>(pages: T[], name?: string): T | undefined;
|
|
27
|
-
/**
|
|
28
|
-
* Expands the list of pages to include all the subpages
|
|
29
|
-
*/
|
|
30
|
-
export declare function pageTreeToPageList<T extends MenuPage>(pages: T[]): T[];
|
|
31
|
-
/**
|
|
32
|
-
* Recursively get all the subPages of a root page
|
|
33
|
-
* @param page root page
|
|
34
|
-
* @returns the whole tree of subPages as a list
|
|
35
|
-
*/
|
|
36
|
-
export declare function getAllSubPages<T extends MenuPage>(page: T): T[];
|
|
37
|
-
export {};
|
|
1
|
+
import { ItemType } from 'antd/lib/menu/hooks/useItems';
|
|
2
|
+
import React, { PropsWithChildren } from 'react';
|
|
3
|
+
/**
|
|
4
|
+
* Menu page has both the data required by the menu and the data required to actually render the page.
|
|
5
|
+
*/
|
|
6
|
+
export type MenuPage<T = Record<string, unknown>> = ItemType & Page<T>;
|
|
7
|
+
/**
|
|
8
|
+
* Menu Item that represents an application page
|
|
9
|
+
*/
|
|
10
|
+
interface Page<T = Record<string, unknown>> {
|
|
11
|
+
key: string;
|
|
12
|
+
component?: React.LazyExoticComponent<React.FC<T>>;
|
|
13
|
+
props?: PropsWithChildren<T>;
|
|
14
|
+
children?: MenuPage<T>[];
|
|
15
|
+
disabled?: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* Set it to false to avoid showing the page in the menu. It is just used for routing purposes.
|
|
18
|
+
*/
|
|
19
|
+
showInMenu?: boolean;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Retrieve a specific page or subPage from a root page list
|
|
23
|
+
* @param name the name of the searched page
|
|
24
|
+
* @param pages the list of root pages
|
|
25
|
+
*/
|
|
26
|
+
export declare function findPageByName<T extends MenuPage>(pages: T[], name?: string): T | undefined;
|
|
27
|
+
/**
|
|
28
|
+
* Expands the list of pages to include all the subpages
|
|
29
|
+
*/
|
|
30
|
+
export declare function pageTreeToPageList<T extends MenuPage>(pages: T[]): T[];
|
|
31
|
+
/**
|
|
32
|
+
* Recursively get all the subPages of a root page
|
|
33
|
+
* @param page root page
|
|
34
|
+
* @returns the whole tree of subPages as a list
|
|
35
|
+
*/
|
|
36
|
+
export declare function getAllSubPages<T extends MenuPage>(page: T): T[];
|
|
37
|
+
export {};
|
|
@@ -1,37 +1,36 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* Copyright (c) 2022, J2 Innovations. All Rights Reserved
|
|
4
|
-
*/
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
*
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* Recursively get all the subPages of a root page
|
|
25
|
-
* @param page root page
|
|
26
|
-
* @returns the whole tree of subPages as a list
|
|
27
|
-
*/
|
|
28
|
-
function getAllSubPages(page) {
|
|
29
|
-
if (page.children) {
|
|
30
|
-
return [page].concat(...page.children.map((subPage) => getAllSubPages(subPage)));
|
|
31
|
-
}
|
|
32
|
-
else {
|
|
33
|
-
return [page];
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
exports.getAllSubPages = getAllSubPages;
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) 2022, J2 Innovations. All Rights Reserved
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.findPageByName = findPageByName;
|
|
7
|
+
exports.pageTreeToPageList = pageTreeToPageList;
|
|
8
|
+
exports.getAllSubPages = getAllSubPages;
|
|
9
|
+
/**
|
|
10
|
+
* Retrieve a specific page or subPage from a root page list
|
|
11
|
+
* @param name the name of the searched page
|
|
12
|
+
* @param pages the list of root pages
|
|
13
|
+
*/
|
|
14
|
+
function findPageByName(pages, name) {
|
|
15
|
+
return pageTreeToPageList(pages).find((page) => page.key === name && !page.disabled);
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Expands the list of pages to include all the subpages
|
|
19
|
+
*/
|
|
20
|
+
function pageTreeToPageList(pages) {
|
|
21
|
+
return pages.flatMap((page) => getAllSubPages(page));
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Recursively get all the subPages of a root page
|
|
25
|
+
* @param page root page
|
|
26
|
+
* @returns the whole tree of subPages as a list
|
|
27
|
+
*/
|
|
28
|
+
function getAllSubPages(page) {
|
|
29
|
+
if (page.children) {
|
|
30
|
+
return [page].concat(...page.children.map((subPage) => getAllSubPages(subPage)));
|
|
31
|
+
}
|
|
32
|
+
else {
|
|
33
|
+
return [page];
|
|
34
|
+
}
|
|
35
|
+
}
|
|
37
36
|
//# sourceMappingURL=MenuPage.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MenuPage.js","sourceRoot":"","sources":["../../../../src/react/components/navigation/MenuPage.tsx"],"names":[],"mappings":";AAAA;;GAEG
|
|
1
|
+
{"version":3,"file":"MenuPage.js","sourceRoot":"","sources":["../../../../src/react/components/navigation/MenuPage.tsx"],"names":[],"mappings":";AAAA;;GAEG;;AA8BH,wCAOC;AAKD,gDAEC;AAOD,wCAQC;AAlCD;;;;GAIG;AACH,SAAgB,cAAc,CAC7B,KAAU,EACV,IAAa;IAEb,OAAO,kBAAkB,CAAC,KAAK,CAAC,CAAC,IAAI,CACpC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,GAAG,KAAK,IAAI,IAAI,CAAC,IAAI,CAAC,QAAQ,CAC7C,CAAA;AACF,CAAC;AAED;;GAEG;AACH,SAAgB,kBAAkB,CAAqB,KAAU;IAChE,OAAO,KAAK,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,cAAc,CAAC,IAAS,CAAC,CAAC,CAAA;AAC1D,CAAC;AAED;;;;GAIG;AACH,SAAgB,cAAc,CAAqB,IAAO;IACzD,IAAI,IAAI,CAAC,QAAQ,EAAE,CAAC;QACnB,OAAO,CAAC,IAAI,CAAC,CAAC,MAAM,CACnB,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,cAAc,CAAC,OAAY,CAAC,CAAC,CAC/D,CAAA;IACF,CAAC;SAAM,CAAC;QACP,OAAO,CAAC,IAAI,CAAC,CAAA;IACd,CAAC;AACF,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
interface MenuTriggerProps {
|
|
3
|
-
hiddenSider: boolean;
|
|
4
|
-
headerHeight?: number;
|
|
5
|
-
className?: string;
|
|
6
|
-
onClick: () => void;
|
|
7
|
-
}
|
|
8
|
-
declare const MenuTrigger: React.FC<MenuTriggerProps>;
|
|
9
|
-
export default MenuTrigger;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface MenuTriggerProps {
|
|
3
|
+
hiddenSider: boolean;
|
|
4
|
+
headerHeight?: number;
|
|
5
|
+
className?: string;
|
|
6
|
+
onClick: () => void;
|
|
7
|
+
}
|
|
8
|
+
declare const MenuTrigger: React.FC<MenuTriggerProps>;
|
|
9
|
+
export default MenuTrigger;
|
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* Copyright (c) 2024, J2 Innovations. All Rights Reserved
|
|
4
|
-
*/
|
|
5
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
6
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
7
|
-
};
|
|
8
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
const icons_1 = require("@ant-design/icons");
|
|
10
|
-
const classnames_1 = __importDefault(require("classnames"));
|
|
11
|
-
const react_1 = __importDefault(require("react"));
|
|
12
|
-
const react_jss_1 = require("react-jss");
|
|
13
|
-
const useStyles = (0, react_jss_1.createUseStyles)((theme) => ({
|
|
14
|
-
menuTrigger: ({ headerHeight }) => ({
|
|
15
|
-
width: headerHeight,
|
|
16
|
-
height: '100%',
|
|
17
|
-
textAlign: 'center',
|
|
18
|
-
fontSize: 18,
|
|
19
|
-
cursor: 'pointer',
|
|
20
|
-
transition: 'color 0.3s ease-in-out',
|
|
21
|
-
backgroundColor: 'transparent',
|
|
22
|
-
color: theme.linkColor,
|
|
23
|
-
padding: '0 0.5rem',
|
|
24
|
-
'&:hover': {
|
|
25
|
-
color: theme.linkActiveColor,
|
|
26
|
-
},
|
|
27
|
-
}),
|
|
28
|
-
}));
|
|
29
|
-
const MenuTrigger = ({ hiddenSider, headerHeight = 45, onClick, className, }) => {
|
|
30
|
-
const classes = useStyles({ headerHeight });
|
|
31
|
-
return hiddenSider ? (react_1.default.createElement(icons_1.MenuUnfoldOutlined, { className: (0, classnames_1.default)(classes.menuTrigger, className), onClick: onClick })) : (react_1.default.createElement(icons_1.MenuFoldOutlined, { className: (0, classnames_1.default)(classes.menuTrigger, className), onClick: onClick }));
|
|
32
|
-
};
|
|
33
|
-
exports.default = MenuTrigger;
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) 2024, J2 Innovations. All Rights Reserved
|
|
4
|
+
*/
|
|
5
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
6
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
7
|
+
};
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
const icons_1 = require("@ant-design/icons");
|
|
10
|
+
const classnames_1 = __importDefault(require("classnames"));
|
|
11
|
+
const react_1 = __importDefault(require("react"));
|
|
12
|
+
const react_jss_1 = require("react-jss");
|
|
13
|
+
const useStyles = (0, react_jss_1.createUseStyles)((theme) => ({
|
|
14
|
+
menuTrigger: ({ headerHeight }) => ({
|
|
15
|
+
width: headerHeight,
|
|
16
|
+
height: '100%',
|
|
17
|
+
textAlign: 'center',
|
|
18
|
+
fontSize: 18,
|
|
19
|
+
cursor: 'pointer',
|
|
20
|
+
transition: 'color 0.3s ease-in-out',
|
|
21
|
+
backgroundColor: 'transparent',
|
|
22
|
+
color: theme.linkColor,
|
|
23
|
+
padding: '0 0.5rem',
|
|
24
|
+
'&:hover': {
|
|
25
|
+
color: theme.linkActiveColor,
|
|
26
|
+
},
|
|
27
|
+
}),
|
|
28
|
+
}));
|
|
29
|
+
const MenuTrigger = ({ hiddenSider, headerHeight = 45, onClick, className, }) => {
|
|
30
|
+
const classes = useStyles({ headerHeight });
|
|
31
|
+
return hiddenSider ? (react_1.default.createElement(icons_1.MenuUnfoldOutlined, { className: (0, classnames_1.default)(classes.menuTrigger, className), onClick: onClick })) : (react_1.default.createElement(icons_1.MenuFoldOutlined, { className: (0, classnames_1.default)(classes.menuTrigger, className), onClick: onClick }));
|
|
32
|
+
};
|
|
33
|
+
exports.default = MenuTrigger;
|
|
34
34
|
//# sourceMappingURL=MenuTrigger.js.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import { HeaderSiderLayoutProps } from './HeaderSiderLayout';
|
|
4
|
-
import { ReactRouterMenuPage } from './ReactRouterLayout';
|
|
5
|
-
export interface ReactRouterHeaderSiderLayoutProps extends HeaderSiderLayoutProps<ReactRouterMenuPage> {
|
|
6
|
-
isSelectedRoute?: (page: ReactRouterMenuPage, location: Location) => boolean;
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* Header/Sider layout that uses React Router.
|
|
10
|
-
*/
|
|
11
|
-
export declare const ReactRouterHeaderSiderLayout: React.FC<ReactRouterHeaderSiderLayoutProps>;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type Location } from 'react-router';
|
|
3
|
+
import { HeaderSiderLayoutProps } from './HeaderSiderLayout';
|
|
4
|
+
import { ReactRouterMenuPage } from './ReactRouterLayout';
|
|
5
|
+
export interface ReactRouterHeaderSiderLayoutProps extends HeaderSiderLayoutProps<ReactRouterMenuPage> {
|
|
6
|
+
isSelectedRoute?: (page: ReactRouterMenuPage, location: Location) => boolean;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Header/Sider layout that uses React Router.
|
|
10
|
+
*/
|
|
11
|
+
export declare const ReactRouterHeaderSiderLayout: React.FC<ReactRouterHeaderSiderLayoutProps>;
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* Copyright (c) 2024, J2 Innovations. All Rights Reserved
|
|
4
|
-
*/
|
|
5
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
6
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
7
|
-
};
|
|
8
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.ReactRouterHeaderSiderLayout = void 0;
|
|
10
|
-
const react_1 = __importDefault(require("react"));
|
|
11
|
-
const react_router_1 = require("react-router");
|
|
12
|
-
const HeaderSiderLayout_1 = require("./HeaderSiderLayout");
|
|
13
|
-
const ReactRouterLayout_1 = require("./ReactRouterLayout");
|
|
14
|
-
/**
|
|
15
|
-
* Header/Sider layout that uses React Router.
|
|
16
|
-
*/
|
|
17
|
-
const ReactRouterHeaderSiderLayout = ({ isSelectedRoute, pages = [], onSelect, ...otherProps }) => {
|
|
18
|
-
const navigate = (0, react_router_1.useNavigate)();
|
|
19
|
-
const selectedRoutes = (0, ReactRouterLayout_1.useSelectedRoutes)(pages, isSelectedRoute);
|
|
20
|
-
const pageKeyRouteMap = (0, ReactRouterLayout_1.useGetPageKeyRouteMap)(pages);
|
|
21
|
-
const defaultOnSelect = (0, ReactRouterLayout_1.useDefaultOnSelect)(navigate, pageKeyRouteMap, pages);
|
|
22
|
-
return (react_1.default.createElement(HeaderSiderLayout_1.HeaderSiderLayout, { ...otherProps, pages: pages, onSelect: onSelect ?? defaultOnSelect, selectedPages: selectedRoutes },
|
|
23
|
-
react_1.default.createElement(react_router_1.Outlet, null)));
|
|
24
|
-
};
|
|
25
|
-
exports.ReactRouterHeaderSiderLayout = ReactRouterHeaderSiderLayout;
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) 2024, J2 Innovations. All Rights Reserved
|
|
4
|
+
*/
|
|
5
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
6
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
7
|
+
};
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.ReactRouterHeaderSiderLayout = void 0;
|
|
10
|
+
const react_1 = __importDefault(require("react"));
|
|
11
|
+
const react_router_1 = require("react-router");
|
|
12
|
+
const HeaderSiderLayout_1 = require("./HeaderSiderLayout");
|
|
13
|
+
const ReactRouterLayout_1 = require("./ReactRouterLayout");
|
|
14
|
+
/**
|
|
15
|
+
* Header/Sider layout that uses React Router.
|
|
16
|
+
*/
|
|
17
|
+
const ReactRouterHeaderSiderLayout = ({ isSelectedRoute, pages = [], onSelect, ...otherProps }) => {
|
|
18
|
+
const navigate = (0, react_router_1.useNavigate)();
|
|
19
|
+
const selectedRoutes = (0, ReactRouterLayout_1.useSelectedRoutes)(pages, isSelectedRoute);
|
|
20
|
+
const pageKeyRouteMap = (0, ReactRouterLayout_1.useGetPageKeyRouteMap)(pages);
|
|
21
|
+
const defaultOnSelect = (0, ReactRouterLayout_1.useDefaultOnSelect)(navigate, pageKeyRouteMap, pages);
|
|
22
|
+
return (react_1.default.createElement(HeaderSiderLayout_1.HeaderSiderLayout, { ...otherProps, pages: pages, onSelect: onSelect ?? defaultOnSelect, selectedPages: selectedRoutes },
|
|
23
|
+
react_1.default.createElement(react_router_1.Outlet, null)));
|
|
24
|
+
};
|
|
25
|
+
exports.ReactRouterHeaderSiderLayout = ReactRouterHeaderSiderLayout;
|
|
26
26
|
//# sourceMappingURL=ReactRouterHeaderSiderLayout.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReactRouterHeaderSiderLayout.js","sourceRoot":"","sources":["../../../../src/react/components/navigation/ReactRouterHeaderSiderLayout.tsx"],"names":[],"mappings":";AAAA;;GAEG;;;;;;
|
|
1
|
+
{"version":3,"file":"ReactRouterHeaderSiderLayout.js","sourceRoot":"","sources":["../../../../src/react/components/navigation/ReactRouterHeaderSiderLayout.tsx"],"names":[],"mappings":";AAAA;;GAEG;;;;;;AAEH,kDAAyB;AACzB,+CAAiE;AACjE,2DAA+E;AAC/E,2DAK4B;AAM5B;;GAEG;AACI,MAAM,4BAA4B,GAErC,CAAC,EAAE,eAAe,EAAE,KAAK,GAAG,EAAE,EAAE,QAAQ,EAAE,GAAG,UAAU,EAAE,EAAE,EAAE;IAChE,MAAM,QAAQ,GAAG,IAAA,0BAAW,GAAE,CAAA;IAC9B,MAAM,cAAc,GAAG,IAAA,qCAAiB,EAAC,KAAK,EAAE,eAAe,CAAC,CAAA;IAChE,MAAM,eAAe,GAAG,IAAA,yCAAqB,EAAC,KAAK,CAAC,CAAA;IACpD,MAAM,eAAe,GAAG,IAAA,sCAAkB,EAAC,QAAQ,EAAE,eAAe,EAAE,KAAK,CAAC,CAAA;IAE5E,OAAO,CACN,8BAAC,qCAAiB,OACb,UAAU,EACd,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,QAAQ,IAAI,eAAe,EACrC,aAAa,EAAE,cAAc;QAC7B,8BAAC,qBAAM,OAAG,CACS,CACpB,CAAA;AACF,CAAC,CAAA;AAjBY,QAAA,4BAA4B,gCAiBxC"}
|
|
@@ -1,46 +1,45 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
* FIN < 5.1.7.92
|
|
24
|
-
* @
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
export declare const
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
* If we are
|
|
31
|
-
*
|
|
32
|
-
* @
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
*
|
|
38
|
-
* @
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
export declare const
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
export declare const ReactRouterLayout: React.FC<ReactRouterLayoutProps>;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type Location, type NavigateFunction } from 'react-router';
|
|
3
|
+
import { BasicLayoutProps } from './BasicLayout';
|
|
4
|
+
import { MenuPage } from './MenuPage';
|
|
5
|
+
export type ReactRouterMenuPage = MenuPage & {
|
|
6
|
+
route: string;
|
|
7
|
+
};
|
|
8
|
+
export interface ReactRouterLayoutProps extends BasicLayoutProps<ReactRouterMenuPage> {
|
|
9
|
+
isSelectedRoute?: (page: ReactRouterMenuPage, location: Location) => boolean;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* This hook can be used with react-router/BasicLayout,
|
|
13
|
+
* to ensure FIN5 URL is aligned with the internal frame URL.
|
|
14
|
+
* This does not skip the hash update and should be used only with
|
|
15
|
+
* FIN >= 5.1.7.92, otherwise FIN will reload the entire page.
|
|
16
|
+
*/
|
|
17
|
+
export declare const useLocationUpdate: () => void;
|
|
18
|
+
/**
|
|
19
|
+
* This hook can be used with react-router/BasicLayout,
|
|
20
|
+
* to ensure FIN5 URL is aligned with the internal frame URL.
|
|
21
|
+
* This skips the hash update and should be used only with
|
|
22
|
+
* FIN < 5.1.7.92.
|
|
23
|
+
* @deprecated use only with FIN < 5.1.7.92
|
|
24
|
+
* @see {@link useLocationUpdate} for FIN >= 5.1.7.92
|
|
25
|
+
*/
|
|
26
|
+
export declare const useLocationUpdateSkippingHash: () => void;
|
|
27
|
+
export declare const useSelectedRoutes: (pages: ReactRouterMenuPage[], isSelectedRoute?: (page: ReactRouterMenuPage, location: Location) => boolean) => string[];
|
|
28
|
+
/**
|
|
29
|
+
* If we are inside a frame (FIN5), the route is left as is.
|
|
30
|
+
* If we are outside FIN5 frame, the route needs to be prefixed with a segment containing the project name.
|
|
31
|
+
* @param route
|
|
32
|
+
* @returns the correct route for the environment
|
|
33
|
+
*/
|
|
34
|
+
export declare const getRoute: (route: string) => string;
|
|
35
|
+
/**
|
|
36
|
+
* Create a map that holds the page key and its related route.
|
|
37
|
+
* @param pages
|
|
38
|
+
* @returns the map page key - route
|
|
39
|
+
*/
|
|
40
|
+
export declare const useGetPageKeyRouteMap: (pages: ReactRouterMenuPage[]) => Map<string, string>;
|
|
41
|
+
export declare const useDefaultOnSelect: (navigate: NavigateFunction, pageKeyRouteMap: Map<string, string>, pages: ReactRouterMenuPage[]) => (key: string) => void;
|
|
42
|
+
/**
|
|
43
|
+
* Basic layout that uses React Router.
|
|
44
|
+
*/
|
|
45
|
+
export declare const ReactRouterLayout: React.FC<ReactRouterLayoutProps>;
|