@m4l/components 9.17.1-beta-feature-731-m4l-components-code-editor.0 → 9.18.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/@types/types.d.ts +0 -11
- package/components/CommonActions/components/ActionFormCancel/ActionFormCancel.d.ts +2 -1
- package/components/CommonActions/components/ActionFormCancel/ActionFormCancel.d.ts.map +1 -1
- package/components/CommonActions/components/ActionFormCancel/ActionFormCancel.js +30 -41
- package/components/CommonActions/components/ActionFormCancel/types.d.ts +2 -2
- package/components/CommonActions/index.d.ts +1 -0
- package/components/CommonActions/index.d.ts.map +1 -1
- package/components/DragResizeWindowRND/DragResizeWindowRND.d.ts +3 -14
- package/components/DragResizeWindowRND/DragResizeWindowRND.d.ts.map +1 -1
- package/components/DragResizeWindowRND/DragResizeWindowRND.js +105 -119
- package/components/DragResizeWindowRND/helpers/index.d.ts +1 -0
- package/components/DragResizeWindowRND/helpers/index.d.ts.map +1 -1
- package/components/DragResizeWindowRND/helpers/resizeHandles.d.ts +15 -0
- package/components/DragResizeWindowRND/helpers/resizeHandles.d.ts.map +1 -0
- package/components/DragResizeWindowRND/helpers/resizeHandles.js +68 -0
- package/components/DragResizeWindowRND/types.d.ts +3 -1
- package/components/DragResizeWindowRND/types.d.ts.map +1 -1
- package/components/WindowBase/WindowBase.d.ts.map +1 -1
- package/components/WindowBase/WindowBase.js +49 -49
- package/components/WindowBase/WindowBase.styles.d.ts +1 -1
- package/components/WindowBase/WindowBase.styles.d.ts.map +1 -1
- package/components/WindowBase/WindowBase.styles.js +37 -12
- package/components/WindowBase/contexts/WindowToolsMFContext/types.d.ts +19 -34
- package/components/WindowBase/contexts/WindowToolsMFContext/types.d.ts.map +1 -1
- package/components/WindowBase/subcomponents/Header/HeaderWindowBase.js +18 -18
- package/components/areas/components/AreasAdmin/AreasAdmin.d.ts +2 -5
- package/components/areas/components/AreasAdmin/AreasAdmin.d.ts.map +1 -1
- package/components/areas/components/AreasAdmin/AreasAdmin.js +24 -24
- package/components/areas/components/AreasAdmin/helper.d.ts +1 -4
- package/components/areas/components/AreasAdmin/helper.d.ts.map +1 -1
- package/components/areas/components/AreasAdmin/subcomponents/AreaChip/AreaChip.d.ts +2 -26
- package/components/areas/components/AreasAdmin/subcomponents/AreaChip/AreaChip.d.ts.map +1 -1
- package/components/areas/components/AreasAdmin/subcomponents/AreaChip/AreaChip.js +72 -71
- package/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/AreaChipMobile.d.ts +1 -1
- package/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/AreaChipMobile.js +17 -17
- package/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/subcomponents/ChipMobile/ChipMobile.d.ts +2 -24
- package/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/subcomponents/ChipMobile/ChipMobile.d.ts.map +1 -1
- package/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/subcomponents/ChipMobile/ChipMobile.js +58 -57
- package/components/areas/components/AreasAdmin/types.d.ts +9 -9
- package/components/areas/components/AreasViewer/AreasViewer.styles.d.ts.map +1 -1
- package/components/areas/components/AreasViewer/AreasViewer.styles.js +174 -6
- package/components/areas/components/AreasViewer/constants.d.ts +12 -0
- package/components/areas/components/AreasViewer/constants.d.ts.map +1 -1
- package/components/areas/components/AreasViewer/constants.js +5 -2
- package/components/areas/components/AreasViewer/slots/AreasViewerEnum.d.ts +9 -0
- package/components/areas/components/AreasViewer/slots/AreasViewerEnum.d.ts.map +1 -1
- package/components/areas/components/AreasViewer/slots/AreasViewerEnum.js +2 -2
- package/components/areas/components/AreasViewer/slots/AreasViewerSlots.d.ts +27 -0
- package/components/areas/components/AreasViewer/slots/AreasViewerSlots.d.ts.map +1 -1
- package/components/areas/components/AreasViewer/slots/AreasViewerSlots.js +62 -25
- package/components/areas/components/AreasViewer/subcomponents/Area/Area.d.ts +1 -4
- package/components/areas/components/AreasViewer/subcomponents/Area/Area.d.ts.map +1 -1
- package/components/areas/components/AreasViewer/subcomponents/Area/Area.js +4 -4
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/AreaGridLayout/AreaGridLayout.d.ts +1 -2
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/AreaGridLayout/AreaGridLayout.d.ts.map +1 -1
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/BaseArea.d.ts +1 -1
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/BaseArea.d.ts.map +1 -1
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/BaseArea.js +12 -11
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/helpers/panelRuntime.d.ts +78 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/helpers/panelRuntime.d.ts.map +1 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/helpers/panelRuntime.js +86 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/hooks/useOverlayPanelResize.d.ts +33 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/hooks/useOverlayPanelResize.d.ts.map +1 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/hooks/useOverlayPanelResize.js +91 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/hooks/usePanelsByArea.d.ts +6 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/hooks/usePanelsByArea.d.ts.map +1 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/hooks/usePanelsByArea.js +45 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/hooks/usePinnedPanelResize.d.ts +16 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/hooks/usePinnedPanelResize.d.ts.map +1 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/hooks/usePinnedPanelResize.js +105 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/subcomponents/AreaPanels/AreaPanels.d.ts +6 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/subcomponents/AreaPanels/AreaPanels.d.ts.map +1 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/subcomponents/AreaPanels/AreaPanels.js +158 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/subcomponents/AreaPanels/subcomponents/PanelResizeInteractionLayer.d.ts +15 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/subcomponents/AreaPanels/subcomponents/PanelResizeInteractionLayer.d.ts.map +1 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/subcomponents/AreaPanels/subcomponents/PanelResizeInteractionLayer.js +19 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/subcomponents/AreaPanels/subcomponents/PanelResizeRail.d.ts +14 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/subcomponents/AreaPanels/subcomponents/PanelResizeRail.d.ts.map +1 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/subcomponents/AreaPanels/subcomponents/PanelResizeRail.js +35 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/subcomponents/AreaPanels/subcomponents/PanelWindow.d.ts +7 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/subcomponents/AreaPanels/subcomponents/PanelWindow.d.ts.map +1 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/subcomponents/AreaPanels/subcomponents/PanelWindow.js +68 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/types.d.ts +61 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/types.d.ts.map +1 -1
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/Window.d.ts +3 -6
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/Window.d.ts.map +1 -1
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/Window.js +45 -45
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/hooks/useHeaderActions.d.ts +1 -3
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/hooks/useHeaderActions.d.ts.map +1 -1
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/hooks/useRightActions.d.ts +1 -1
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/hooks/useRightActions.d.ts.map +1 -1
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/hooks/useRightActions.js +68 -40
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/hooks/useWindow.d.ts +6 -11
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/hooks/useWindow.d.ts.map +1 -1
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/hooks/useWindow.js +77 -76
- package/components/areas/contexts/AreasContext/helpers/generateModuleCount.d.ts +3 -5
- package/components/areas/contexts/AreasContext/helpers/generateModuleCount.d.ts.map +1 -1
- package/components/areas/contexts/AreasContext/helpers/helper.d.ts +20 -15
- package/components/areas/contexts/AreasContext/helpers/helper.d.ts.map +1 -1
- package/components/areas/contexts/AreasContext/helpers/helper.js +8 -7
- package/components/areas/contexts/AreasContext/index.d.ts.map +1 -1
- package/components/areas/contexts/AreasContext/index.js +51 -48
- package/components/areas/contexts/AreasContext/store.d.ts +2 -3
- package/components/areas/contexts/AreasContext/store.d.ts.map +1 -1
- package/components/areas/contexts/AreasContext/store.js +397 -290
- package/components/areas/contexts/AreasContext/types.d.ts +109 -85
- package/components/areas/contexts/AreasContext/types.d.ts.map +1 -1
- package/components/areas/dictionary.d.ts +3 -0
- package/components/areas/dictionary.d.ts.map +1 -1
- package/components/areas/dictionary.js +9 -6
- package/components/areas/hooks/useAreas/index.d.ts +2 -2
- package/components/areas/hooks/useAreas/index.js +4 -4
- package/components/areas/types.d.ts +173 -47
- package/components/areas/types.d.ts.map +1 -1
- package/components/areas/utils/useOnClickOutside/index.d.ts +2 -1
- package/components/areas/utils/useOnClickOutside/index.d.ts.map +1 -1
- package/components/areas/utils/useOnClickOutside/index.js +15 -0
- package/components/extended/index.d.ts +0 -1
- package/components/extended/index.d.ts.map +1 -1
- package/components/hook-form/index.d.ts +0 -1
- package/components/hook-form/index.d.ts.map +1 -1
- package/components/popups/components/PopupsProvider/contexts/PopupsContext/types.d.ts +5 -4
- package/components/popups/components/PopupsProvider/contexts/PopupsContext/types.d.ts.map +1 -1
- package/components/popups/components/PopupsProvider/hooks/usePopups.js +2 -2
- package/hooks/index.d.ts +1 -0
- package/hooks/index.d.ts.map +1 -1
- package/hooks/useWindowCloseGuard/index.d.ts +18 -0
- package/hooks/useWindowCloseGuard/index.d.ts.map +1 -0
- package/hooks/useWindowCloseGuard/index.js +56 -0
- package/index.js +664 -675
- package/package.json +7 -10
- package/test/mocks/dictionary-mock.d.ts +2 -0
- package/test/mocks/dictionary-mock.d.ts.map +1 -1
- package/components/extended/ReactSimpleCodeEditor/CodeEditor.d.ts +0 -6
- package/components/extended/ReactSimpleCodeEditor/CodeEditor.d.ts.map +0 -1
- package/components/extended/ReactSimpleCodeEditor/CodeEditor.js +0 -247
- package/components/extended/ReactSimpleCodeEditor/CodeEditor.styles.d.ts +0 -3
- package/components/extended/ReactSimpleCodeEditor/CodeEditor.styles.d.ts.map +0 -1
- package/components/extended/ReactSimpleCodeEditor/CodeEditor.styles.js +0 -297
- package/components/extended/ReactSimpleCodeEditor/constants.d.ts +0 -82
- package/components/extended/ReactSimpleCodeEditor/constants.d.ts.map +0 -1
- package/components/extended/ReactSimpleCodeEditor/constants.js +0 -149
- package/components/extended/ReactSimpleCodeEditor/dictionary.d.ts +0 -11
- package/components/extended/ReactSimpleCodeEditor/dictionary.d.ts.map +0 -1
- package/components/extended/ReactSimpleCodeEditor/dictionary.js +0 -7
- package/components/extended/ReactSimpleCodeEditor/helpers/highlighting.d.ts +0 -59
- package/components/extended/ReactSimpleCodeEditor/helpers/highlighting.d.ts.map +0 -1
- package/components/extended/ReactSimpleCodeEditor/helpers/highlighting.js +0 -1063
- package/components/extended/ReactSimpleCodeEditor/helpers/languageIcon.d.ts +0 -6
- package/components/extended/ReactSimpleCodeEditor/helpers/languageIcon.d.ts.map +0 -1
- package/components/extended/ReactSimpleCodeEditor/helpers/languageIcon.js +0 -7
- package/components/extended/ReactSimpleCodeEditor/index.d.ts +0 -4
- package/components/extended/ReactSimpleCodeEditor/index.d.ts.map +0 -1
- package/components/extended/ReactSimpleCodeEditor/slots/CodeEditorEnum.d.ts +0 -18
- package/components/extended/ReactSimpleCodeEditor/slots/CodeEditorEnum.d.ts.map +0 -1
- package/components/extended/ReactSimpleCodeEditor/slots/CodeEditorEnum.js +0 -4
- package/components/extended/ReactSimpleCodeEditor/slots/CodeEditorSlots.d.ts +0 -84
- package/components/extended/ReactSimpleCodeEditor/slots/CodeEditorSlots.d.ts.map +0 -1
- package/components/extended/ReactSimpleCodeEditor/slots/CodeEditorSlots.js +0 -63
- package/components/extended/ReactSimpleCodeEditor/slots/index.d.ts +0 -3
- package/components/extended/ReactSimpleCodeEditor/slots/index.d.ts.map +0 -1
- package/components/extended/ReactSimpleCodeEditor/storybookRuntime.d.ts +0 -15
- package/components/extended/ReactSimpleCodeEditor/storybookRuntime.d.ts.map +0 -1
- package/components/extended/ReactSimpleCodeEditor/types.d.ts +0 -127
- package/components/extended/ReactSimpleCodeEditor/types.d.ts.map +0 -1
- package/components/hook-form/RHFCodeEditor/RHFCodeEditor.d.ts +0 -7
- package/components/hook-form/RHFCodeEditor/RHFCodeEditor.d.ts.map +0 -1
- package/components/hook-form/RHFCodeEditor/RHFCodeEditor.js +0 -6
- package/components/hook-form/RHFCodeEditor/index.d.ts +0 -3
- package/components/hook-form/RHFCodeEditor/index.d.ts.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@m4l/components",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.18.0",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -46,31 +46,28 @@
|
|
|
46
46
|
"lodash-es": "4.17.23",
|
|
47
47
|
"yup": "0.32.11",
|
|
48
48
|
"@textea/json-viewer": "4.0.1",
|
|
49
|
-
"prismjs": "1.30.0",
|
|
50
|
-
"prism-react-renderer": "2.4.1",
|
|
51
49
|
"react-dom": "19.2.4",
|
|
52
50
|
"react-helmet-async": "2.0.5",
|
|
53
51
|
"@hookform/resolvers": "2.9.11",
|
|
54
52
|
"nprogress": "0.2.0",
|
|
55
53
|
"react-transition-group": "4.4.5",
|
|
56
|
-
"react-dropzone": "14.4.1",
|
|
57
|
-
"react-draggable": "4.5.0",
|
|
58
54
|
"@mui/x-date-pickers": "6.20.2",
|
|
59
|
-
"react-spinners": "0.13.8",
|
|
60
55
|
"react-rnd": "10.5.2",
|
|
61
56
|
"date-fns": "2.30.0",
|
|
62
57
|
"react-color": "2.19.3",
|
|
58
|
+
"react-spinners": "0.13.8",
|
|
59
|
+
"react-dropzone": "14.4.1",
|
|
60
|
+
"react-draggable": "4.5.0",
|
|
61
|
+
"react-resizable-panels": "2.1.9",
|
|
62
|
+
"simplebar-react": "3.2.6",
|
|
63
63
|
"chart.js": "4.5.1",
|
|
64
64
|
"chartjs-chart-error-bars": "4.4.5",
|
|
65
65
|
"qrcode.react": "3.2.0",
|
|
66
|
-
"simplebar-react": "3.2.6",
|
|
67
|
-
"react-simple-code-editor": "0.14.1",
|
|
68
|
-
"react-resizable-panels": "2.1.9",
|
|
69
66
|
"react-data-grid": "7.0.0-beta.47",
|
|
70
67
|
"react-dnd": "16.0.1",
|
|
71
68
|
"react-dnd-html5-backend": "16.0.1",
|
|
72
|
-
"react-resizable": "3.1.3",
|
|
73
69
|
"react-window": "1.8.11",
|
|
70
|
+
"react-resizable": "3.1.3",
|
|
74
71
|
"@tanstack/react-virtual": "3.13.23"
|
|
75
72
|
}
|
|
76
73
|
}
|
|
@@ -60,7 +60,9 @@ export interface DictionaryMockData {
|
|
|
60
60
|
label_minimize_window: string;
|
|
61
61
|
label_module_actions: string;
|
|
62
62
|
label_new_area: string;
|
|
63
|
+
label_pin_panel: string;
|
|
63
64
|
label_persist_module_cookies: string;
|
|
65
|
+
label_unpin_panel: string;
|
|
64
66
|
label_uncollapse_window: string;
|
|
65
67
|
label_window: string;
|
|
66
68
|
validation_edit_area: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dictionary-mock.d.ts","sourceRoot":"","sources":["../../../../../../packages/components/src/test/mocks/dictionary-mock.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE;QACJ,2BAA2B,EAAE,MAAM,CAAC;QACpC,sBAAsB,EAAE,MAAM,CAAC;QAC/B,eAAe,EAAE,MAAM,CAAC;QACxB,YAAY,EAAE,MAAM,CAAC;QACrB,gBAAgB,EAAE,MAAM,CAAC;QACzB,WAAW,EAAE,MAAM,CAAC;QACpB,gBAAgB,EAAE,MAAM,CAAC;QACzB,iBAAiB,EAAE,MAAM,CAAC;QAC1B,QAAQ,EAAE,MAAM,CAAC;QACjB,eAAe,EAAE,MAAM,CAAC;QACxB,kBAAkB,EAAE,MAAM,CAAC;QAC3B,sBAAsB,EAAE,MAAM,CAAC;QAC/B,oBAAoB,EAAE,MAAM,CAAC;QAC7B,eAAe,EAAE,MAAM,CAAC;QACxB,kBAAkB,EAAE,MAAM,CAAC;QAC3B,gBAAgB,EAAE,MAAM,CAAC;QACzB,oBAAoB,EAAE,MAAM,CAAC;QAC7B,oBAAoB,EAAE,MAAM,CAAC;QAC7B,kBAAkB,EAAE,MAAM,CAAC;QAC3B,qBA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;;GAEG;AACH,eAAO,MAAM,kBAAkB,EAAE,kBA6ZhC,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,0BAA0B,GAAI,YAAW,OAAO,CAAC,kBAAkB,CAAM,KAAG,kBAaxF,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,6BAA6B,GAAI,WAAU,IAAI,GAAG,IAAW,KAAG,kBAoB5E,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,0BAA0B,GAAI,YAAY,MAAM,KAAG,kBAS/D,CAAC"}
|
|
1
|
+
{"version":3,"file":"dictionary-mock.d.ts","sourceRoot":"","sources":["../../../../../../packages/components/src/test/mocks/dictionary-mock.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE;QACJ,2BAA2B,EAAE,MAAM,CAAC;QACpC,sBAAsB,EAAE,MAAM,CAAC;QAC/B,eAAe,EAAE,MAAM,CAAC;QACxB,YAAY,EAAE,MAAM,CAAC;QACrB,gBAAgB,EAAE,MAAM,CAAC;QACzB,WAAW,EAAE,MAAM,CAAC;QACpB,gBAAgB,EAAE,MAAM,CAAC;QACzB,iBAAiB,EAAE,MAAM,CAAC;QAC1B,QAAQ,EAAE,MAAM,CAAC;QACjB,eAAe,EAAE,MAAM,CAAC;QACxB,kBAAkB,EAAE,MAAM,CAAC;QAC3B,sBAAsB,EAAE,MAAM,CAAC;QAC/B,oBAAoB,EAAE,MAAM,CAAC;QAC7B,eAAe,EAAE,MAAM,CAAC;QACxB,kBAAkB,EAAE,MAAM,CAAC;QAC3B,gBAAgB,EAAE,MAAM,CAAC;QACzB,oBAAoB,EAAE,MAAM,CAAC;QAC7B,oBAAoB,EAAE,MAAM,CAAC;QAC7B,kBAAkB,EAAE,MAAM,CAAC;QAC3B,qBAAqB,EAAE,MAAM,CAAC;QAC9B,mBAAmB,EAAE,MAAM,CAAC;QAC5B,iBAAiB,EAAE,MAAM,CAAC;QAC1B,qBAAqB,EAAE,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C,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,0BAA0B,GAAI,YAAW,OAAO,CAAC,kBAAkB,CAAM,KAAG,kBAaxF,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,6BAA6B,GAAI,WAAU,IAAI,GAAG,IAAW,KAAG,kBAoB5E,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,0BAA0B,GAAI,YAAY,MAAM,KAAG,kBAS/D,CAAC"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { CodeEditorProps } from './types';
|
|
2
|
-
/**
|
|
3
|
-
* Render a syntax-highlighted code editor with optional self-managed fallback state.
|
|
4
|
-
*/
|
|
5
|
-
export declare function CodeEditor(props: CodeEditorProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
6
|
-
//# sourceMappingURL=CodeEditor.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CodeEditor.d.ts","sourceRoot":"","sources":["../../../../../../../packages/components/src/components/extended/ReactSimpleCodeEditor/CodeEditor.tsx"],"names":[],"mappings":"AAyCA,OAAO,KAAK,EAEV,eAAe,EAEhB,MAAM,SAAS,CAAC;AAgBjB;;GAEG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,eAAe,oDA8VhD"}
|
|
@@ -1,247 +0,0 @@
|
|
|
1
|
-
import { jsx as a, jsxs as S } from "@emotion/react/jsx-runtime";
|
|
2
|
-
import { useModuleDictionary as be, useModuleSkeleton as Ae } from "@m4l/core";
|
|
3
|
-
import y from "clsx";
|
|
4
|
-
import { useId as Me, useState as $, useRef as Ve, useMemo as E, useEffect as J, useCallback as Q } from "react";
|
|
5
|
-
import { useTheme as Pe } from "@mui/material/styles";
|
|
6
|
-
import { getPropDataTestId as V, getNameDataTestId as ze } from "../../../test/getNameDataTestId.js";
|
|
7
|
-
import { CODE_EDITOR_DEFAULT_MAX_LINES as He, CODE_EDITOR_DEFAULT_MIN_LINES as ke, CODE_EDITOR_DEFAULT_LANGUAGE as we, CODE_EDITOR_LINE_HEIGHT_BY_SIZE as Be, CODE_EDITOR_CLASSES as p, CODE_EDITOR_KEY_COMPONENT as D, CODE_EDITOR_READ_ONLY_LABEL as Ge, CODE_EDITOR_LANGUAGE_CHIP_ICON_INSTANCE_ID as Ue } from "./constants.js";
|
|
8
|
-
import { CODE_EDITOR_DICTIONARY as W } from "./dictionary.js";
|
|
9
|
-
import { resolveCodeEditorLanguageIcon as Ye } from "./helpers/languageIcon.js";
|
|
10
|
-
import { ensureCodeEditorRuntimeDependencies as Fe, getCodeEditorLineCount as je, createCodeEditorPrismTheme as qe, resolveCodeEditorLanguageTemplate as Ke, validateCodeEditorSyntax as Xe, highlightCode as Ze } from "./helpers/highlighting.js";
|
|
11
|
-
import { SkeletonStyled as $e, RootStyled as Je, HeaderStyled as Qe, LanguageChipStyled as We, LanguageChipIconStyled as et, HeaderBadgesStyled as tt, ReadOnlyChipStyled as at, BodyStyled as nt, LineNumbersStyled as rt, LineNumberStyled as lt, EditorScrollerStyled as ot, PlaceholderStyled as it, EditorStyled as st } from "./slots/CodeEditorSlots.js";
|
|
12
|
-
import { CodeEditorSlots as T } from "./slots/CodeEditorEnum.js";
|
|
13
|
-
function dt(C, L) {
|
|
14
|
-
return C.length !== L.length ? !1 : C.every((f, i) => f === L[i]);
|
|
15
|
-
}
|
|
16
|
-
function Dt(C) {
|
|
17
|
-
const {
|
|
18
|
-
className: L,
|
|
19
|
-
customLanguages: f,
|
|
20
|
-
dataTestId: i,
|
|
21
|
-
defaultValue: ee,
|
|
22
|
-
disabled: P = !1,
|
|
23
|
-
editorClassName: te,
|
|
24
|
-
error: ae = !1,
|
|
25
|
-
highlightTheme: z,
|
|
26
|
-
id: ne,
|
|
27
|
-
insertSpaces: re,
|
|
28
|
-
languageIcon: le,
|
|
29
|
-
languageLabel: oe,
|
|
30
|
-
languageTemplate: n,
|
|
31
|
-
languageText: ie,
|
|
32
|
-
maxLines: se = He,
|
|
33
|
-
minLines: _ = ke,
|
|
34
|
-
onBlur: de,
|
|
35
|
-
onChange: O,
|
|
36
|
-
placeholder: v,
|
|
37
|
-
preClassName: ue,
|
|
38
|
-
readOnly: s = !1,
|
|
39
|
-
readOnlyLabel: ce,
|
|
40
|
-
runtimeDependencies: d,
|
|
41
|
-
showLineNumbers: H = !1,
|
|
42
|
-
showPlaceholder: k = !0,
|
|
43
|
-
size: w = "medium",
|
|
44
|
-
syntaxValidator: x,
|
|
45
|
-
skeleton: me = !1,
|
|
46
|
-
textareaClassName: ge,
|
|
47
|
-
validateSyntax: B = !1,
|
|
48
|
-
value: u,
|
|
49
|
-
variant: he = "outlined",
|
|
50
|
-
...I
|
|
51
|
-
} = C, Ee = Me(), pe = ne || Ee, G = Pe(), { getLabel: Ce } = be(), Le = Ae() || me, c = O === void 0, [R, fe] = $(0), N = Ve([]), [Ie, U] = $(
|
|
52
|
-
u ?? ee ?? ""
|
|
53
|
-
), Y = E(() => d ? Array.isArray(d) ? d : [d] : [], [d]);
|
|
54
|
-
dt(
|
|
55
|
-
N.current,
|
|
56
|
-
Y
|
|
57
|
-
) || (N.current = Y);
|
|
58
|
-
const b = N.current;
|
|
59
|
-
J(() => {
|
|
60
|
-
c && u !== void 0 && U(u);
|
|
61
|
-
}, [c, u]), J(() => {
|
|
62
|
-
if (!b.length)
|
|
63
|
-
return;
|
|
64
|
-
let e = !0;
|
|
65
|
-
return Fe(b).catch(() => {
|
|
66
|
-
}).then(() => {
|
|
67
|
-
e && fe((h) => h + 1);
|
|
68
|
-
}), () => {
|
|
69
|
-
e = !1;
|
|
70
|
-
};
|
|
71
|
-
}, [b]);
|
|
72
|
-
const r = c ? Ie : u ?? "", Se = k && r.length === 0 && !!v, ye = Be[w], F = je(r), j = Math.max(F, _), A = Math.max(_, se), De = Math.min(j, A), Te = F >= A, q = E(
|
|
73
|
-
() => z ?? qe(G),
|
|
74
|
-
[z, G]
|
|
75
|
-
), l = E(
|
|
76
|
-
() => Ke(n),
|
|
77
|
-
[n, R]
|
|
78
|
-
), m = ie ?? l?.languageText ?? we, K = oe ?? l?.languageLabel, X = !!K, _e = Ye(
|
|
79
|
-
le ?? l?.languageIcon
|
|
80
|
-
), M = s ? Ce(W.readOnly) : void 0, Oe = ce ?? (M && M !== W.readOnly ? M : Ge), g = E(() => {
|
|
81
|
-
if (x)
|
|
82
|
-
return x({
|
|
83
|
-
code: r,
|
|
84
|
-
languageTemplate: l ?? n,
|
|
85
|
-
languageText: m
|
|
86
|
-
});
|
|
87
|
-
if (B)
|
|
88
|
-
return Xe({
|
|
89
|
-
code: r,
|
|
90
|
-
languageTemplate: l ?? n,
|
|
91
|
-
languageText: m
|
|
92
|
-
});
|
|
93
|
-
}, [
|
|
94
|
-
n,
|
|
95
|
-
l,
|
|
96
|
-
m,
|
|
97
|
-
r,
|
|
98
|
-
R,
|
|
99
|
-
x,
|
|
100
|
-
B
|
|
101
|
-
]), Z = ae || !!g && !g.isValid, o = g && !g.isValid ? g.errorRange : void 0, ve = E(() => {
|
|
102
|
-
if (!o)
|
|
103
|
-
return /* @__PURE__ */ new Set();
|
|
104
|
-
const e = o.start.line, h = o.end?.line ?? e;
|
|
105
|
-
return new Set(
|
|
106
|
-
Array.from(
|
|
107
|
-
{ length: Math.max(h - e + 1, 1) },
|
|
108
|
-
(ut, Ne) => e + Ne
|
|
109
|
-
)
|
|
110
|
-
);
|
|
111
|
-
}, [o]), t = {
|
|
112
|
-
disabled: P,
|
|
113
|
-
error: Z,
|
|
114
|
-
isLineCapped: Te,
|
|
115
|
-
isEmpty: r.length === 0,
|
|
116
|
-
isPlaceholderVisible: Se,
|
|
117
|
-
lineHeight: ye,
|
|
118
|
-
maxLines: A,
|
|
119
|
-
minLines: _,
|
|
120
|
-
readOnly: s,
|
|
121
|
-
showLineNumbers: H,
|
|
122
|
-
size: w,
|
|
123
|
-
variant: he,
|
|
124
|
-
visibleLineCount: De
|
|
125
|
-
}, xe = Q(
|
|
126
|
-
(e) => Ze({
|
|
127
|
-
code: e,
|
|
128
|
-
customLanguages: f,
|
|
129
|
-
languageTemplate: n,
|
|
130
|
-
languageText: m,
|
|
131
|
-
prismTheme: q,
|
|
132
|
-
syntaxErrorRange: o
|
|
133
|
-
}),
|
|
134
|
-
[
|
|
135
|
-
f,
|
|
136
|
-
n,
|
|
137
|
-
q,
|
|
138
|
-
m,
|
|
139
|
-
R,
|
|
140
|
-
o
|
|
141
|
-
]
|
|
142
|
-
), Re = Q(
|
|
143
|
-
(e) => {
|
|
144
|
-
c && U(e), O?.(e);
|
|
145
|
-
},
|
|
146
|
-
[O, c]
|
|
147
|
-
);
|
|
148
|
-
return Le ? /* @__PURE__ */ a($e, { ownerState: t }) : /* @__PURE__ */ S(
|
|
149
|
-
Je,
|
|
150
|
-
{
|
|
151
|
-
ownerState: t,
|
|
152
|
-
"aria-disabled": t.disabled || void 0,
|
|
153
|
-
className: y(p.root, L),
|
|
154
|
-
...V(D, T.root, i),
|
|
155
|
-
children: [
|
|
156
|
-
X || s ? /* @__PURE__ */ S(Qe, { ownerState: t, className: p.header, children: [
|
|
157
|
-
X ? /* @__PURE__ */ a(
|
|
158
|
-
We,
|
|
159
|
-
{
|
|
160
|
-
label: K,
|
|
161
|
-
size: "small",
|
|
162
|
-
variant: "outlined",
|
|
163
|
-
color: "default",
|
|
164
|
-
startIcon: /* @__PURE__ */ a(
|
|
165
|
-
et,
|
|
166
|
-
{
|
|
167
|
-
...V(
|
|
168
|
-
D,
|
|
169
|
-
T.languageChipIcon,
|
|
170
|
-
Ue
|
|
171
|
-
),
|
|
172
|
-
children: /* @__PURE__ */ a(_e, { fontSize: "small" })
|
|
173
|
-
}
|
|
174
|
-
)
|
|
175
|
-
}
|
|
176
|
-
) : null,
|
|
177
|
-
/* @__PURE__ */ a(tt, { ownerState: t, children: s ? /* @__PURE__ */ a(
|
|
178
|
-
at,
|
|
179
|
-
{
|
|
180
|
-
label: Oe,
|
|
181
|
-
size: "small"
|
|
182
|
-
}
|
|
183
|
-
) : null })
|
|
184
|
-
] }) : null,
|
|
185
|
-
/* @__PURE__ */ S(nt, { ownerState: t, children: [
|
|
186
|
-
H ? /* @__PURE__ */ a(rt, { ownerState: t, "aria-hidden": "true", children: Array.from({ length: j }, (e, h) => h + 1).map(
|
|
187
|
-
(e) => /* @__PURE__ */ a(
|
|
188
|
-
lt,
|
|
189
|
-
{
|
|
190
|
-
ownerState: t,
|
|
191
|
-
"data-code-editor-error-line": ve.has(e) || void 0,
|
|
192
|
-
children: e
|
|
193
|
-
},
|
|
194
|
-
`code-editor-line-${e}`
|
|
195
|
-
)
|
|
196
|
-
) }) : null,
|
|
197
|
-
/* @__PURE__ */ S(ot, { ownerState: t, children: [
|
|
198
|
-
k && t.isEmpty && v ? /* @__PURE__ */ a(
|
|
199
|
-
it,
|
|
200
|
-
{
|
|
201
|
-
ownerState: t,
|
|
202
|
-
...V(
|
|
203
|
-
D,
|
|
204
|
-
T.placeholder,
|
|
205
|
-
i
|
|
206
|
-
),
|
|
207
|
-
children: v
|
|
208
|
-
}
|
|
209
|
-
) : null,
|
|
210
|
-
/* @__PURE__ */ a(
|
|
211
|
-
st,
|
|
212
|
-
{
|
|
213
|
-
...I,
|
|
214
|
-
ownerState: t,
|
|
215
|
-
"aria-label": I["aria-label"] ?? "Code editor",
|
|
216
|
-
"aria-invalid": I["aria-invalid"] ?? (Z || void 0),
|
|
217
|
-
className: y(p.editor, te),
|
|
218
|
-
"data-testid": ze(
|
|
219
|
-
D,
|
|
220
|
-
T.textarea,
|
|
221
|
-
i
|
|
222
|
-
),
|
|
223
|
-
disabled: P,
|
|
224
|
-
highlight: xe,
|
|
225
|
-
insertSpaces: re,
|
|
226
|
-
onBlur: de,
|
|
227
|
-
onValueChange: Re,
|
|
228
|
-
preClassName: y(p.pre, ue),
|
|
229
|
-
readOnly: s,
|
|
230
|
-
tabSize: I.tabSize,
|
|
231
|
-
textareaClassName: y(
|
|
232
|
-
p.textarea,
|
|
233
|
-
ge
|
|
234
|
-
),
|
|
235
|
-
textareaId: pe,
|
|
236
|
-
value: r
|
|
237
|
-
}
|
|
238
|
-
)
|
|
239
|
-
] })
|
|
240
|
-
] })
|
|
241
|
-
]
|
|
242
|
-
}
|
|
243
|
-
);
|
|
244
|
-
}
|
|
245
|
-
export {
|
|
246
|
-
Dt as CodeEditor
|
|
247
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CodeEditor.styles.d.ts","sourceRoot":"","sources":["../../../../../../../packages/components/src/components/extended/ReactSimpleCodeEditor/CodeEditor.styles.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAGhD,eAAO,MAAM,gBAAgB,EAAE,gBA2U9B,CAAC"}
|
|
@@ -1,297 +0,0 @@
|
|
|
1
|
-
import { getTypographyStyles as d } from "../../../utils/getTypographyStyles.js";
|
|
2
|
-
import { getCodeEditorVSCodeModernPalette as s, CODE_EDITOR_LINE_HEIGHT_BY_SIZE as n, CODE_EDITOR_MONO_FONT_FAMILY as l, CODE_EDITOR_PADDING_PX as i } from "./constants.js";
|
|
3
|
-
import { getSizeStyles as p } from "../../../utils/getSizeStyles/getSizeStyles.js";
|
|
4
|
-
const b = {
|
|
5
|
-
/** Resolve the interactive shell colors and focus treatment for the editor root. */
|
|
6
|
-
root: ({ theme: r, ownerState: e }) => {
|
|
7
|
-
const o = !e?.disabled && !e?.readOnly, a = e?.disabled ? r.vars.palette.border.disabled : r.vars.palette.border.secondary;
|
|
8
|
-
return {
|
|
9
|
-
width: "100%",
|
|
10
|
-
display: "flex",
|
|
11
|
-
flexDirection: "column",
|
|
12
|
-
minHeight: 0,
|
|
13
|
-
gap: 0,
|
|
14
|
-
border: r.vars.size.borderStroke.container,
|
|
15
|
-
borderColor: e?.variant === "outlined" || e?.error ? a : "transparent",
|
|
16
|
-
borderRadius: r.vars.size.borderRadius["r1-5"],
|
|
17
|
-
...e?.error && {
|
|
18
|
-
borderColor: r.vars.palette.error.focus
|
|
19
|
-
},
|
|
20
|
-
...e?.variant === "contained" && {
|
|
21
|
-
backgroundColor: r.vars.palette.default.enabledOpacity
|
|
22
|
-
},
|
|
23
|
-
...e?.variant === "outlined" && {
|
|
24
|
-
backgroundColor: r.vars.palette.background.default
|
|
25
|
-
},
|
|
26
|
-
...e?.readOnly && {
|
|
27
|
-
backgroundColor: `${r.vars.palette.default.enabledOpacity}!important`
|
|
28
|
-
},
|
|
29
|
-
overflow: "hidden",
|
|
30
|
-
opacity: e?.disabled ? 0.72 : 1,
|
|
31
|
-
outline: "3px solid",
|
|
32
|
-
outlineColor: "transparent",
|
|
33
|
-
transition: "border-color 120ms ease, outline 120ms ease, opacity 120ms ease, background-color 120ms ease",
|
|
34
|
-
...o && {
|
|
35
|
-
"&:hover": {
|
|
36
|
-
backgroundColor: r.vars.palette.default.hoverOpacity,
|
|
37
|
-
...e?.error && {
|
|
38
|
-
borderColor: r.vars.palette.error.active
|
|
39
|
-
}
|
|
40
|
-
},
|
|
41
|
-
"&:focus-within": {
|
|
42
|
-
borderColor: r.vars.palette.primary.enabled,
|
|
43
|
-
outline: "3px solid",
|
|
44
|
-
outlineColor: e?.error ? r.vars.palette.error.focusOpacity : r.vars.palette.primary.hoverOpacity,
|
|
45
|
-
...e?.error && {
|
|
46
|
-
borderColor: r.vars.palette.error.enabled
|
|
47
|
-
},
|
|
48
|
-
...e?.variant === "contained" && {
|
|
49
|
-
backgroundColor: r.vars.palette.background.default,
|
|
50
|
-
"&&& .M4LCodeEditor-header": {
|
|
51
|
-
backgroundColor: r.vars.palette.default.enabledOpacity
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
};
|
|
57
|
-
},
|
|
58
|
-
/** Layout the language badge row above the editing surface. */
|
|
59
|
-
header: ({ theme: r, ownerState: e }) => {
|
|
60
|
-
const o = s(r);
|
|
61
|
-
return {
|
|
62
|
-
display: "flex",
|
|
63
|
-
alignItems: "center",
|
|
64
|
-
justifyContent: "space-between",
|
|
65
|
-
padding: r.vars.size.baseSpacings.sp2,
|
|
66
|
-
gap: r.vars.size.baseSpacings.sp2,
|
|
67
|
-
borderBottom: r.vars.size.borderStroke.container,
|
|
68
|
-
borderColor: r.vars.palette.border.secondary,
|
|
69
|
-
...e?.variant === "contained" && {
|
|
70
|
-
backgroundColor: "transparent"
|
|
71
|
-
},
|
|
72
|
-
...e?.variant === "outlined" && {
|
|
73
|
-
backgroundColor: r.vars.palette.background.default
|
|
74
|
-
},
|
|
75
|
-
...e?.readOnly && {
|
|
76
|
-
backgroundColor: `${r.vars.palette.background.default}!important`
|
|
77
|
-
},
|
|
78
|
-
color: o.surface.headerForeground,
|
|
79
|
-
borderTopLeftRadius: r.vars.size.borderRadius.r2,
|
|
80
|
-
borderTopRightRadius: r.vars.size.borderRadius.r2,
|
|
81
|
-
overflow: "hidden",
|
|
82
|
-
minHeight: "33px"
|
|
83
|
-
};
|
|
84
|
-
},
|
|
85
|
-
/** Align any trailing badges rendered in the header row. */
|
|
86
|
-
headerBadges: ({ theme: r }) => ({
|
|
87
|
-
display: "flex",
|
|
88
|
-
alignItems: "center",
|
|
89
|
-
justifyContent: "flex-end",
|
|
90
|
-
gap: r.vars.size.baseSpacings.sp1,
|
|
91
|
-
minWidth: 0,
|
|
92
|
-
// Keep badges right-aligned even when the language chip is absent and the
|
|
93
|
-
// badges container is the only child of the header row.
|
|
94
|
-
marginLeft: "auto"
|
|
95
|
-
}),
|
|
96
|
-
/** Keep the leading language chip aligned with the editor header layout. */
|
|
97
|
-
languageChip: ({ theme: r, ownerState: e }) => {
|
|
98
|
-
const o = s(r);
|
|
99
|
-
return {
|
|
100
|
-
flexShrink: 0,
|
|
101
|
-
minWidth: 0,
|
|
102
|
-
whiteSpace: "nowrap",
|
|
103
|
-
textTransform: "lowercase",
|
|
104
|
-
paddingTop: 0,
|
|
105
|
-
paddingBottom: 0,
|
|
106
|
-
backgroundColor: "transparent",
|
|
107
|
-
borderColor: r.vars.palette.chips.default.outlined.backgroundActive,
|
|
108
|
-
color: o.surface.languageChipForeground,
|
|
109
|
-
...p(
|
|
110
|
-
r,
|
|
111
|
-
e?.size || "medium",
|
|
112
|
-
"base",
|
|
113
|
-
(a) => ({ height: a })
|
|
114
|
-
),
|
|
115
|
-
"&&& .M4LTypography-root": {
|
|
116
|
-
...d(r.generalSettings.isMobile, e?.size || "medium", "microSlim"),
|
|
117
|
-
color: o.surface.languageChipForeground,
|
|
118
|
-
textTransform: "uppercase"
|
|
119
|
-
}
|
|
120
|
-
};
|
|
121
|
-
},
|
|
122
|
-
/** Keep the language icon aligned while preserving any intrinsic Seti fill colors. */
|
|
123
|
-
languageChipIcon: () => ({
|
|
124
|
-
display: "inline-flex",
|
|
125
|
-
flexShrink: 0,
|
|
126
|
-
width: "16px",
|
|
127
|
-
height: "16px",
|
|
128
|
-
lineHeight: 0,
|
|
129
|
-
"& .MuiSvgIcon-root": {
|
|
130
|
-
display: "block",
|
|
131
|
-
width: "16px",
|
|
132
|
-
height: "16px",
|
|
133
|
-
fontSize: "16px"
|
|
134
|
-
}
|
|
135
|
-
}),
|
|
136
|
-
/** Keep the read-only chip aligned with the trailing header actions. */
|
|
137
|
-
readOnlyChip: ({ theme: r, ownerState: e }) => ({
|
|
138
|
-
"&&&": {
|
|
139
|
-
flexShrink: 0,
|
|
140
|
-
minWidth: 0,
|
|
141
|
-
whiteSpace: "nowrap",
|
|
142
|
-
...p(
|
|
143
|
-
r,
|
|
144
|
-
e?.size || "medium",
|
|
145
|
-
"base",
|
|
146
|
-
(o) => ({ height: o })
|
|
147
|
-
),
|
|
148
|
-
"&&& .M4LTypography-root": {
|
|
149
|
-
...d(r.generalSettings.isMobile, e?.size || "medium", "microSlim"),
|
|
150
|
-
color: r.vars.palette.chips.info.contained.color
|
|
151
|
-
},
|
|
152
|
-
backgroundColor: r.vars.palette.chips.info.contained.backgroundColor,
|
|
153
|
-
borderColor: "transparent"
|
|
154
|
-
}
|
|
155
|
-
}),
|
|
156
|
-
/** Build the two-column layout used by the gutter and editor scroller. */
|
|
157
|
-
body: ({ theme: r, ownerState: e }) => {
|
|
158
|
-
const o = e?.visibleLineCount || e?.minLines || 1, a = e?.lineHeight || n.medium, t = e?.isLineCapped ? i : i * 2;
|
|
159
|
-
return {
|
|
160
|
-
display: "grid",
|
|
161
|
-
gridTemplateColumns: e?.showLineNumbers ? "auto minmax(0, 1fr)" : "minmax(0, 1fr)",
|
|
162
|
-
width: "100%",
|
|
163
|
-
alignItems: "start",
|
|
164
|
-
columnGap: 0,
|
|
165
|
-
maxHeight: `${o * a + t}px`,
|
|
166
|
-
minHeight: 0,
|
|
167
|
-
overflow: "auto",
|
|
168
|
-
pointerEvents: e?.disabled ? "none" : "auto",
|
|
169
|
-
userSelect: e?.disabled ? "none" : "auto",
|
|
170
|
-
gap: r.vars.size.baseSpacings.sp2
|
|
171
|
-
};
|
|
172
|
-
},
|
|
173
|
-
/** Style the optional line-number gutter. */
|
|
174
|
-
lineNumbers: ({ theme: r, ownerState: e }) => {
|
|
175
|
-
const o = s(r);
|
|
176
|
-
return {
|
|
177
|
-
display: "flex",
|
|
178
|
-
flexDirection: "column",
|
|
179
|
-
alignItems: "flex-end",
|
|
180
|
-
padding: `${i}px ${r.vars.size.baseSpacings.sp1} ${e?.isLineCapped ? 0 : i}px ${r.vars.size.baseSpacings.sp2}`,
|
|
181
|
-
backgroundColor: "transparent",
|
|
182
|
-
color: e?.disabled ? o.surface.placeholderForeground : o.surface.lineNumberForeground,
|
|
183
|
-
userSelect: "none",
|
|
184
|
-
...d(r.generalSettings.isMobile, e?.size || "medium", "bodyStandard"),
|
|
185
|
-
fontFamily: l,
|
|
186
|
-
lineHeight: `${n[e?.size || "medium"]}px`
|
|
187
|
-
};
|
|
188
|
-
},
|
|
189
|
-
/** Keep each rendered line number aligned with the code line height. */
|
|
190
|
-
lineNumber: ({ theme: r, ownerState: e }) => {
|
|
191
|
-
const o = s(r);
|
|
192
|
-
return {
|
|
193
|
-
display: "block",
|
|
194
|
-
minWidth: "2ch",
|
|
195
|
-
height: `${e?.lineHeight || n.medium}px`,
|
|
196
|
-
lineHeight: `${e?.lineHeight || n.medium}px`,
|
|
197
|
-
textAlign: "right",
|
|
198
|
-
'&[data-code-editor-error-line="true"]': {
|
|
199
|
-
color: o.surface.errorBorderColor,
|
|
200
|
-
borderLeft: `1px solid ${o.surface.errorBorderColor}`
|
|
201
|
-
}
|
|
202
|
-
};
|
|
203
|
-
},
|
|
204
|
-
/** Provide horizontal overflow for long code lines without wrapping them. */
|
|
205
|
-
editorScroller: ({ theme: r, ownerState: e }) => ({
|
|
206
|
-
position: "relative",
|
|
207
|
-
width: e?.isPlaceholderVisible ? "100%" : "fit-content",
|
|
208
|
-
paddingTop: r.vars.size.baseSpacings.sp3,
|
|
209
|
-
paddingBottom: r.vars.size.baseSpacings.sp3,
|
|
210
|
-
paddingRight: r.vars.size.baseSpacings.sp2,
|
|
211
|
-
paddingLeft: r.vars.size.baseSpacings.sp2,
|
|
212
|
-
backgroundColor: "transparent"
|
|
213
|
-
}),
|
|
214
|
-
/** Style the underlying react-simple-code-editor surface and its inner elements. */
|
|
215
|
-
editor: ({ theme: r, ownerState: e }) => {
|
|
216
|
-
const o = s(r), a = e?.isLineCapped ? 0 : i, t = i + a;
|
|
217
|
-
return {
|
|
218
|
-
position: "relative",
|
|
219
|
-
zIndex: 0,
|
|
220
|
-
width: "max-content",
|
|
221
|
-
minWidth: "100%",
|
|
222
|
-
minHeight: `calc(${e?.minLines || 1} * ${e?.lineHeight || n.medium}px + ${t}px)`,
|
|
223
|
-
backgroundColor: "transparent",
|
|
224
|
-
fontFamily: l,
|
|
225
|
-
fontSize: "11px",
|
|
226
|
-
lineHeight: `${e?.lineHeight || n.medium}px`,
|
|
227
|
-
fontWeight: 400,
|
|
228
|
-
"& textarea, & pre": {
|
|
229
|
-
...d(r.generalSettings.isMobile, e?.size || "medium", "bodyStandard"),
|
|
230
|
-
fontFamily: l,
|
|
231
|
-
lineHeight: `${e?.lineHeight || n.medium}px`,
|
|
232
|
-
whiteSpace: "pre !important",
|
|
233
|
-
wordBreak: "normal",
|
|
234
|
-
overflowWrap: "normal",
|
|
235
|
-
margin: 0,
|
|
236
|
-
paddingTop: `${i}px`,
|
|
237
|
-
paddingRight: `${i}px`,
|
|
238
|
-
paddingBottom: `${a}px`,
|
|
239
|
-
paddingLeft: `${i}px`,
|
|
240
|
-
tabSize: 2,
|
|
241
|
-
fontVariantLigatures: "none",
|
|
242
|
-
backgroundColor: "transparent"
|
|
243
|
-
},
|
|
244
|
-
"&&& textarea": {
|
|
245
|
-
...d(r.generalSettings.isMobile, e?.size || "medium", "microSlim"),
|
|
246
|
-
outline: "none",
|
|
247
|
-
backgroundColor: "transparent",
|
|
248
|
-
caretColor: e?.disabled ? "transparent" : o.surface.caretForeground,
|
|
249
|
-
cursor: e?.disabled ? "not-allowed" : e?.readOnly ? "default" : "text",
|
|
250
|
-
"&::selection": {
|
|
251
|
-
backgroundColor: o.surface.selectionBackground
|
|
252
|
-
}
|
|
253
|
-
},
|
|
254
|
-
"& pre": {
|
|
255
|
-
color: e?.disabled ? o.surface.placeholderForeground : o.surface.editorForeground
|
|
256
|
-
},
|
|
257
|
-
"& .token-line": {
|
|
258
|
-
display: "block",
|
|
259
|
-
width: "100%"
|
|
260
|
-
},
|
|
261
|
-
'& .token-line[data-code-editor-error-line="true"]': {
|
|
262
|
-
backgroundColor: o.surface.errorLineBackground
|
|
263
|
-
},
|
|
264
|
-
'& [data-code-editor-error-token="true"]': {
|
|
265
|
-
backgroundColor: o.surface.errorRangeBackground,
|
|
266
|
-
boxShadow: `inset 0 -1px 0 ${o.surface.errorRangeShadowColor}`
|
|
267
|
-
}
|
|
268
|
-
};
|
|
269
|
-
},
|
|
270
|
-
/** Position the empty-state placeholder above the editor surface. */
|
|
271
|
-
placeholder: ({ theme: r, ownerState: e }) => {
|
|
272
|
-
const o = s(r);
|
|
273
|
-
return {
|
|
274
|
-
position: "absolute",
|
|
275
|
-
zIndex: 1,
|
|
276
|
-
top: `${i}px`,
|
|
277
|
-
left: `${i}px`,
|
|
278
|
-
pointerEvents: "none",
|
|
279
|
-
color: o.surface.placeholderForeground,
|
|
280
|
-
...d(r.generalSettings.isMobile, e?.size || "medium", "bodyStandard"),
|
|
281
|
-
fontFamily: l,
|
|
282
|
-
lineHeight: `${e?.lineHeight || n.medium}px`,
|
|
283
|
-
whiteSpace: "pre-wrap"
|
|
284
|
-
};
|
|
285
|
-
},
|
|
286
|
-
/** Size the skeleton block to the same footprint as the live editor. */
|
|
287
|
-
skeleton: ({ theme: r }) => ({
|
|
288
|
-
"&&&": {
|
|
289
|
-
borderRadius: r.vars.size.borderRadius.r1,
|
|
290
|
-
width: "100%",
|
|
291
|
-
height: "100px"
|
|
292
|
-
}
|
|
293
|
-
})
|
|
294
|
-
};
|
|
295
|
-
export {
|
|
296
|
-
b as codeEditorStyles
|
|
297
|
-
};
|