@abidibo/react-cam-roi 0.13.1 → 0.14.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -1
- package/dist/Components/RoiEditor/ParametersModalForm/ParametersModalForm.module.css +20 -0
- package/dist/index.cjs.css +1 -1
- package/dist/index.cjs.css.map +1 -1
- package/dist/index.cjs.js +36 -16
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.css +1 -1
- package/dist/index.esm.css.map +1 -1
- package/dist/index.esm.js +36 -16
- package/dist/index.esm.js.map +1 -1
- package/dist/types/Components/RoiEditor/Types.d.ts +3 -1
- package/package.json +1 -1
package/README.md
CHANGED
@@ -213,10 +213,11 @@ export type ConfigurationParameter = {
|
|
213
213
|
description: string // helper text
|
214
214
|
unit: string // postponed to the label
|
215
215
|
type: DataTypeEnum // value type
|
216
|
-
options
|
216
|
+
options?: { value: number | string | boolean; label: string }[] // if filled the component will be a dropdown
|
217
217
|
multiple?: boolean // for multiple selection
|
218
218
|
required: boolean // required parameter
|
219
219
|
value: number | string | boolean | string[] | number[] | null // default value
|
220
|
+
fieldSet?: string // fieldset for grouping fields
|
220
221
|
}
|
221
222
|
|
222
223
|
// Configuration of ROIs
|
@@ -803,6 +804,14 @@ There are components that cannot be overridden. But still you can use classes to
|
|
803
804
|
|
804
805
|
- `react-cam-roi-form`
|
805
806
|
|
807
|
+
- `react-cam-roi-fieldset`
|
808
|
+
- `react-cam-roi-fieldset-light`
|
809
|
+
- `react-cam-roi-fieldset-dark`
|
810
|
+
|
811
|
+
- `react-cam-roi-legend`
|
812
|
+
- `react-cam-roi-legend-light`
|
813
|
+
- `react-cam-roi-legend-dark`
|
814
|
+
|
806
815
|
## Development
|
807
816
|
|
808
817
|
After cloning the repository and install dependencies (`yarn install`), you can run the following commands:
|
@@ -3,3 +3,23 @@
|
|
3
3
|
flex-direction: column;
|
4
4
|
gap: 1rem;
|
5
5
|
}
|
6
|
+
|
7
|
+
.fieldset {
|
8
|
+
display: flex;
|
9
|
+
flex-direction: column;
|
10
|
+
gap: 1rem;
|
11
|
+
}
|
12
|
+
|
13
|
+
.legend {
|
14
|
+
background: #e0e0e0;
|
15
|
+
padding: 0.2rem 0.5rem;
|
16
|
+
font-size: 1.2rem !important;
|
17
|
+
}
|
18
|
+
|
19
|
+
.legend-light {
|
20
|
+
background: #e0e0e0;
|
21
|
+
}
|
22
|
+
|
23
|
+
.legend-dark {
|
24
|
+
background: #232323;
|
25
|
+
}
|
package/dist/index.cjs.css
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
.BoolField-module_bool-field__-Qg7I{border-radius:.25rem;box-sizing:border-box;padding:.5rem}.BoolField-module_bool-field__-Qg7I:focus-visible{border:1px solid #1976d2;outline:none}.BoolField-module_bool-field-light__CHITs{background-color:#fff;border:1px solid #ccc;color:#333}.BoolField-module_bool-field-dark__gy9uQ{background-color:#333;border:1px solid #666;color:#fff}.BoolField-module_bool-field-error__qJV-E{border:1px solid #d32f2f}.BoolField-module_bool-field-label__LZbjy{display:block;font-weight:700;margin:0 0 1rem}.BoolField-module_bool-field-label-error__gBzdk{color:#d32f2f}.BoolField-module_bool-field-helper-text__fH8fC{font-size:.9rem;font-style:italic;margin-top:.5rem}.BoolField-module_bool-field-helper-text-error__McdWn{color:#d32f2f}.Button-module_button__MSSZa{align-items:center;border:none;border-radius:4px;color:#000;cursor:pointer;display:flex;font-size:16px;gap:.5rem;margin:4px 2px;padding:.5rem 1rem;text-align:center;text-decoration:none}.Button-module_button-light__u6BIN{background-color:#c7c7c7;color:#000}.Button-module_button-dark__3wtFc{background-color:#474747;color:#fff}.Button-module_button-disabled__s9jaY{cursor:not-allowed;opacity:.5}.EnumField-module_enum-field__szaEn{border-radius:.25rem;box-sizing:border-box;padding:.5rem;width:100%}.EnumField-module_enum-field__szaEn:focus-visible{border:1px solid #1976d2;outline:none}.EnumField-module_enum-field-light__vWmLt{background-color:#fff;border:1px solid #ccc;color:#333}.EnumField-module_enum-field-dark__fDZ4K{background-color:#333;border:1px solid #666;color:#fff}.EnumField-module_enum-field-error__Kagoh{border:1px solid #d32f2f}.EnumField-module_enum-field-label__o1dg0{display:block;font-weight:700;margin:0 0 1rem}.EnumField-module_enum-field-label-error__O2ayN{color:#d32f2f}.EnumField-module_enum-field-helper-text__nRzmi{font-size:.9rem;font-style:italic;margin-top:.5rem}.EnumField-module_enum-field-helper-text-error__ukfl1{color:#d32f2f}.IconButton-module_icon-button__T7a-e{border-radius:50%;cursor:pointer;display:inline-block;line-height:0;padding:.5rem}.IconButton-module_icon-button-light__ZNyjL:hover{background-color:rgba(0,0,0,.1)}.IconButton-module_icon-button-dark__nwcCW:hover{background-color:hsla(0,0%,100%,.1)}.IconButton-module_icon-button-disabled__a9y4V{cursor:not-allowed;opacity:.5}.Modal-module_modal-overlay__AX73T{align-items:center;display:flex;height:100%;justify-content:center;left:0;position:fixed;top:0;width:100%;z-index:9000}.Modal-module_modal-overlay-light__XGI4c{background-color:hsla(0,0%,100%,.7)}.Modal-module_modal-overlay-dark__o-3S1{background-color:rgba(0,0,0,.7)}.Modal-module_modal__JutQb{border-radius:5px;max-height:80%;max-width:80%;overflow:auto;padding:20px}.Modal-module_modal__JutQb:focus-visible{outline:none}.Modal-module_modal-light__tJ5iM{background-color:#fff;box-shadow:0 0 10px rgba(0,0,0,.2);color:#000}.Modal-module_modal-dark__ToNtQ{background-color:#333;box-shadow:0 0 10px hsla(0,0%,100%,.2);color:#fff}.Modal-module_modal-xs__ZpG0m{width:400px}.Modal-module_modal-sm__ZR3WM{width:600px}.Modal-module_modal-md__cekju{width:800px}.Modal-module_modal-lg__As-E0{width:1000px}.Modal-module_modal-xl__tBTZS{width:1200px}.Modal-module_modal-header__tayxk{align-items:center;display:flex;justify-content:space-between;margin-bottom:1rem}.Modal-module_modal-title__0SHNZ{font-size:1.5rem;font-weight:700;margin:0}.Modal-module_modal-title-light__txH-X{color:#000}.Modal-module_modal-title-dark__72qJi{color:#fff}.Modal-module_modal-footer__XwwRD{display:flex;gap:.5rem;justify-content:flex-end;margin-top:1rem}.NumberField-module_number-field__Sg83r{border-radius:.25rem;box-sizing:border-box;padding:.5rem;width:100%}.NumberField-module_number-field__Sg83r:focus-visible{border:1px solid #1976d2;outline:none}.NumberField-module_number-field-light__-13Kl{background-color:#fff;border:1px solid #ccc;color:#333}.NumberField-module_number-field-dark__6br67{background-color:#333;border:1px solid #666;color:#fff}.NumberField-module_number-field-error__MuNs5{border:1px solid #d32f2f}.NumberField-module_number-field-label__-E8z7{display:block;font-weight:700;margin:0 0 1rem}.NumberField-module_number-field-label-error__nDs97{color:#d32f2f}.NumberField-module_number-field-helper-text__UNMnr{font-size:.9rem;font-style:italic;padding-top:.5rem}.NumberField-module_number-field-helper-text-error__QW1b-{color:#d32f2f}.TextField-module_text-field__i1lgc{border-radius:.25rem;box-sizing:border-box;padding:.5rem;width:100%}.TextField-module_text-field__i1lgc:focus-visible{border:1px solid #1976d2;outline:none}.TextField-module_text-field-light__F5sz2{background-color:#fff;border:1px solid #ccc;color:#333}.TextField-module_text-field-dark__mGGSs{background-color:#333;border:1px solid #666;color:#fff}.TextField-module_text-field-error__6cqOv{border:1px solid #d32f2f}.TextField-module_text-field-label__Jjdem{display:block;font-weight:700;margin:0 0 1rem}.TextField-module_text-field-label-error__FTZnh{color:#d32f2f}.TextField-module_text-field-helper-text__E9vmk{font-size:.9rem;font-style:italic;margin-top:.5rem}.TextField-module_text-field-helper-text-error__48hRk{color:#d32f2f}.Loader-module_loader__6JyG7{animation:Loader-module_spin__ZcV1b 1s linear infinite;border-radius:50%;height:40px;width:40px}.Loader-module_loader-light__WlXKM{border:10px solid #f3f3f3;border-top-color:#3498db}.Loader-module_loader-dark__mW1w5{border:10px solid #333;border-top-color:#3498db}@keyframes Loader-module_spin__ZcV1b{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.Header-module_header__1FVtV{align-items:flex-start;box-sizing:border-box;display:flex;justify-content:space-between;padding:.5rem;width:100%}.Header-module_header-light__Vqkzy{background-color:#f5f5f5}.Header-module_header-dark__IuBJ1{background-color:#222}.Header-module_header-info__7BSAi{padding:.5rem;width:100%}.Header-module_header-info-light__u9GgZ{background-color:#f7f7f7;color:#000}.Header-module_header-info-dark__JWxIy{background-color:#222;color:#fff}.RoiEditor-module_canvas-wrapper__q0gQg{background-repeat:no-repeat;background-size:contain;position:relative}.RoiEditor-module_rois-wrapper__kRRhl{margin-top:1rem}.ParametersModalForm-module_form__WXebJ{display:flex;flex-direction:column;gap:1rem}.ShapesList-module_shapes-table__sx5Xp{border-collapse:collapse;width:100%}.ShapesList-module_shapes-table__sx5Xp tr{cursor:pointer}.ShapesList-module_shapes-table__sx5Xp th{padding:.8rem .3rem;text-align:left}.ShapesList-module_shapes-table__sx5Xp td{padding:0 .3rem}.ShapesList-module_shapes-table__sx5Xp tr td:last-child,.ShapesList-module_shapes-table__sx5Xp tr th:last-child{text-align:right}.ShapesList-module_shapes-table-light__TbtKn{background-color:#eee;color:#000}.ShapesList-module_shapes-table-dark__siyhV{background-color:#333;color:#fff}.ShapesList-module_shapes-row-selected-light__-0gaE{background-color:#ccc}.ShapesList-module_shapes-row-selected-dark__bGR3a{background-color:#666}.ShapesList-module_shapes-row-even-light__2eUZX{background-color:#f7f7f7}.ShapesList-module_shapes-row-even-dark__eyECv{background-color:#444}.ShapesList-module_shapes-row-odd-light__vZzPj{background-color:#f0f0f0}.ShapesList-module_shapes-row-odd-dark__TWGAu{background-color:#555}.ShapesList-module_shapesTableName__9Q6i1{align-items:center;display:flex}.ShapesList-module_shapesTableColor__Iyd33{border:1px solid #000;border-radius:50%;box-sizing:border-box;display:inline-block;height:24px;margin-right:.5rem;width:24px}.ColorPicker-module_colorpickerWrapper__qONC-{display:flex;flex-wrap:nowrap;gap:.2rem}.ColorPicker-module_colorpicker-button__Tvdcw{border-radius:50%;box-sizing:border-box;cursor:pointer;height:24px;width:24px}.ColorPicker-module_colorpicker-button-active__zwhHp{border:2px solid red}.Toolbar-module_toolbar__ywNcv{align-items:center;display:flex;padding:.5rem}.Toolbar-module_toolbar-light__aJtaH{background-color:#eee}.Toolbar-module_toolbar-dark__9iO4U{background-color:#333}.Toolbar-module_toolbar-helper__DBw3v{padding:.5rem}.Toolbar-module_toolbar-helper-light__Z4PLG{background-color:#f7f7f7;color:#000}.Toolbar-module_toolbar-helper-dark__AEXUy{background-color:#222;color:#fff}.Toolbar-module_toolbar-spacer__qPxmN{height:20px;margin:0 .5rem;width:1px}.Toolbar-module_toolbar-spacer-light__2CNYP{background-color:#ccc}.Toolbar-module_toolbar-spacer-dark__cW0Rj{background-color:#555}.TopBar-module_top-bar__9oCUR{align-items:center;display:flex;gap:.5rem;justify-content:flex-end;margin-bottom:.5rem}.TopBar-module_main-parameters-view__f-0SX{padding:1rem}.TopBar-module_main-parameters-view-light__o-dbi{background-color:#f5f5f5}.TopBar-module_main-parameters-view-dark__FnEnj{background-color:#333;color:#fff}.TopBar-module_main-parameters-button__9JX--{display:flex;justify-content:flex-end}
|
1
|
+
.BoolField-module_bool-field__-Qg7I{border-radius:.25rem;box-sizing:border-box;padding:.5rem}.BoolField-module_bool-field__-Qg7I:focus-visible{border:1px solid #1976d2;outline:none}.BoolField-module_bool-field-light__CHITs{background-color:#fff;border:1px solid #ccc;color:#333}.BoolField-module_bool-field-dark__gy9uQ{background-color:#333;border:1px solid #666;color:#fff}.BoolField-module_bool-field-error__qJV-E{border:1px solid #d32f2f}.BoolField-module_bool-field-label__LZbjy{display:block;font-weight:700;margin:0 0 1rem}.BoolField-module_bool-field-label-error__gBzdk{color:#d32f2f}.BoolField-module_bool-field-helper-text__fH8fC{font-size:.9rem;font-style:italic;margin-top:.5rem}.BoolField-module_bool-field-helper-text-error__McdWn{color:#d32f2f}.Button-module_button__MSSZa{align-items:center;border:none;border-radius:4px;color:#000;cursor:pointer;display:flex;font-size:16px;gap:.5rem;margin:4px 2px;padding:.5rem 1rem;text-align:center;text-decoration:none}.Button-module_button-light__u6BIN{background-color:#c7c7c7;color:#000}.Button-module_button-dark__3wtFc{background-color:#474747;color:#fff}.Button-module_button-disabled__s9jaY{cursor:not-allowed;opacity:.5}.EnumField-module_enum-field__szaEn{border-radius:.25rem;box-sizing:border-box;padding:.5rem;width:100%}.EnumField-module_enum-field__szaEn:focus-visible{border:1px solid #1976d2;outline:none}.EnumField-module_enum-field-light__vWmLt{background-color:#fff;border:1px solid #ccc;color:#333}.EnumField-module_enum-field-dark__fDZ4K{background-color:#333;border:1px solid #666;color:#fff}.EnumField-module_enum-field-error__Kagoh{border:1px solid #d32f2f}.EnumField-module_enum-field-label__o1dg0{display:block;font-weight:700;margin:0 0 1rem}.EnumField-module_enum-field-label-error__O2ayN{color:#d32f2f}.EnumField-module_enum-field-helper-text__nRzmi{font-size:.9rem;font-style:italic;margin-top:.5rem}.EnumField-module_enum-field-helper-text-error__ukfl1{color:#d32f2f}.IconButton-module_icon-button__T7a-e{border-radius:50%;cursor:pointer;display:inline-block;line-height:0;padding:.5rem}.IconButton-module_icon-button-light__ZNyjL:hover{background-color:rgba(0,0,0,.1)}.IconButton-module_icon-button-dark__nwcCW:hover{background-color:hsla(0,0%,100%,.1)}.IconButton-module_icon-button-disabled__a9y4V{cursor:not-allowed;opacity:.5}.Modal-module_modal-overlay__AX73T{align-items:center;display:flex;height:100%;justify-content:center;left:0;position:fixed;top:0;width:100%;z-index:9000}.Modal-module_modal-overlay-light__XGI4c{background-color:hsla(0,0%,100%,.7)}.Modal-module_modal-overlay-dark__o-3S1{background-color:rgba(0,0,0,.7)}.Modal-module_modal__JutQb{border-radius:5px;max-height:80%;max-width:80%;overflow:auto;padding:20px}.Modal-module_modal__JutQb:focus-visible{outline:none}.Modal-module_modal-light__tJ5iM{background-color:#fff;box-shadow:0 0 10px rgba(0,0,0,.2);color:#000}.Modal-module_modal-dark__ToNtQ{background-color:#333;box-shadow:0 0 10px hsla(0,0%,100%,.2);color:#fff}.Modal-module_modal-xs__ZpG0m{width:400px}.Modal-module_modal-sm__ZR3WM{width:600px}.Modal-module_modal-md__cekju{width:800px}.Modal-module_modal-lg__As-E0{width:1000px}.Modal-module_modal-xl__tBTZS{width:1200px}.Modal-module_modal-header__tayxk{align-items:center;display:flex;justify-content:space-between;margin-bottom:1rem}.Modal-module_modal-title__0SHNZ{font-size:1.5rem;font-weight:700;margin:0}.Modal-module_modal-title-light__txH-X{color:#000}.Modal-module_modal-title-dark__72qJi{color:#fff}.Modal-module_modal-footer__XwwRD{display:flex;gap:.5rem;justify-content:flex-end;margin-top:1rem}.NumberField-module_number-field__Sg83r{border-radius:.25rem;box-sizing:border-box;padding:.5rem;width:100%}.NumberField-module_number-field__Sg83r:focus-visible{border:1px solid #1976d2;outline:none}.NumberField-module_number-field-light__-13Kl{background-color:#fff;border:1px solid #ccc;color:#333}.NumberField-module_number-field-dark__6br67{background-color:#333;border:1px solid #666;color:#fff}.NumberField-module_number-field-error__MuNs5{border:1px solid #d32f2f}.NumberField-module_number-field-label__-E8z7{display:block;font-weight:700;margin:0 0 1rem}.NumberField-module_number-field-label-error__nDs97{color:#d32f2f}.NumberField-module_number-field-helper-text__UNMnr{font-size:.9rem;font-style:italic;padding-top:.5rem}.NumberField-module_number-field-helper-text-error__QW1b-{color:#d32f2f}.TextField-module_text-field__i1lgc{border-radius:.25rem;box-sizing:border-box;padding:.5rem;width:100%}.TextField-module_text-field__i1lgc:focus-visible{border:1px solid #1976d2;outline:none}.TextField-module_text-field-light__F5sz2{background-color:#fff;border:1px solid #ccc;color:#333}.TextField-module_text-field-dark__mGGSs{background-color:#333;border:1px solid #666;color:#fff}.TextField-module_text-field-error__6cqOv{border:1px solid #d32f2f}.TextField-module_text-field-label__Jjdem{display:block;font-weight:700;margin:0 0 1rem}.TextField-module_text-field-label-error__FTZnh{color:#d32f2f}.TextField-module_text-field-helper-text__E9vmk{font-size:.9rem;font-style:italic;margin-top:.5rem}.TextField-module_text-field-helper-text-error__48hRk{color:#d32f2f}.Loader-module_loader__6JyG7{animation:Loader-module_spin__ZcV1b 1s linear infinite;border-radius:50%;height:40px;width:40px}.Loader-module_loader-light__WlXKM{border:10px solid #f3f3f3;border-top-color:#3498db}.Loader-module_loader-dark__mW1w5{border:10px solid #333;border-top-color:#3498db}@keyframes Loader-module_spin__ZcV1b{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.Header-module_header__1FVtV{align-items:flex-start;box-sizing:border-box;display:flex;justify-content:space-between;padding:.5rem;width:100%}.Header-module_header-light__Vqkzy{background-color:#f5f5f5}.Header-module_header-dark__IuBJ1{background-color:#222}.Header-module_header-info__7BSAi{padding:.5rem;width:100%}.Header-module_header-info-light__u9GgZ{background-color:#f7f7f7;color:#000}.Header-module_header-info-dark__JWxIy{background-color:#222;color:#fff}.RoiEditor-module_canvas-wrapper__q0gQg{background-repeat:no-repeat;background-size:contain;position:relative}.RoiEditor-module_rois-wrapper__kRRhl{margin-top:1rem}.ParametersModalForm-module_fieldset__V-ywT,.ParametersModalForm-module_form__WXebJ{display:flex;flex-direction:column;gap:1rem}.ParametersModalForm-module_legend__F6CPv{background:#e0e0e0;font-size:1.2rem!important;padding:.2rem .5rem}.ParametersModalForm-module_legend-light__X9tWX{background:#e0e0e0}.ParametersModalForm-module_legend-dark__isTas{background:#232323}.ShapesList-module_shapes-table__sx5Xp{border-collapse:collapse;width:100%}.ShapesList-module_shapes-table__sx5Xp tr{cursor:pointer}.ShapesList-module_shapes-table__sx5Xp th{padding:.8rem .3rem;text-align:left}.ShapesList-module_shapes-table__sx5Xp td{padding:0 .3rem}.ShapesList-module_shapes-table__sx5Xp tr td:last-child,.ShapesList-module_shapes-table__sx5Xp tr th:last-child{text-align:right}.ShapesList-module_shapes-table-light__TbtKn{background-color:#eee;color:#000}.ShapesList-module_shapes-table-dark__siyhV{background-color:#333;color:#fff}.ShapesList-module_shapes-row-selected-light__-0gaE{background-color:#ccc}.ShapesList-module_shapes-row-selected-dark__bGR3a{background-color:#666}.ShapesList-module_shapes-row-even-light__2eUZX{background-color:#f7f7f7}.ShapesList-module_shapes-row-even-dark__eyECv{background-color:#444}.ShapesList-module_shapes-row-odd-light__vZzPj{background-color:#f0f0f0}.ShapesList-module_shapes-row-odd-dark__TWGAu{background-color:#555}.ShapesList-module_shapesTableName__9Q6i1{align-items:center;display:flex}.ShapesList-module_shapesTableColor__Iyd33{border:1px solid #000;border-radius:50%;box-sizing:border-box;display:inline-block;height:24px;margin-right:.5rem;width:24px}.ColorPicker-module_colorpickerWrapper__qONC-{display:flex;flex-wrap:nowrap;gap:.2rem}.ColorPicker-module_colorpicker-button__Tvdcw{border-radius:50%;box-sizing:border-box;cursor:pointer;height:24px;width:24px}.ColorPicker-module_colorpicker-button-active__zwhHp{border:2px solid red}.Toolbar-module_toolbar__ywNcv{align-items:center;display:flex;padding:.5rem}.Toolbar-module_toolbar-light__aJtaH{background-color:#eee}.Toolbar-module_toolbar-dark__9iO4U{background-color:#333}.Toolbar-module_toolbar-helper__DBw3v{padding:.5rem}.Toolbar-module_toolbar-helper-light__Z4PLG{background-color:#f7f7f7;color:#000}.Toolbar-module_toolbar-helper-dark__AEXUy{background-color:#222;color:#fff}.Toolbar-module_toolbar-spacer__qPxmN{height:20px;margin:0 .5rem;width:1px}.Toolbar-module_toolbar-spacer-light__2CNYP{background-color:#ccc}.Toolbar-module_toolbar-spacer-dark__cW0Rj{background-color:#555}.TopBar-module_top-bar__9oCUR{align-items:center;display:flex;gap:.5rem;justify-content:flex-end;margin-bottom:.5rem}.TopBar-module_main-parameters-view__f-0SX{padding:1rem}.TopBar-module_main-parameters-view-light__o-dbi{background-color:#f5f5f5}.TopBar-module_main-parameters-view-dark__FnEnj{background-color:#333;color:#fff}.TopBar-module_main-parameters-button__9JX--{display:flex;justify-content:flex-end}
|
2
2
|
/*# sourceMappingURL=index.cjs.css.map */
|
package/dist/index.cjs.css.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["BoolField.module.css","Button.module.css","EnumField.module.css","IconButton.module.css","Modal.module.css","NumberField.module.css","TextField.module.css","Loader.module.css","Header.module.css","RoiEditor.module.css","ParametersModalForm.module.css","ShapesList.module.css","ColorPicker.module.css","Toolbar.module.css","TopBar.module.css"],"names":[],"mappings":"AAUA,oCACE,oBAAsB,CACtB,qBAAsB,CACtB,aACF,CACA,kDAEE,wBAAyB,CADzB,YAEF,CACA,0CACE,qBAAsB,CAEtB,qBAAsB,CADtB,UAEF,CACA,yCACE,qBAAsB,CACtB,qBAAsB,CACtB,UACF,CACA,0CACE,wBACF,CACA,0CAEE,aAAc,CADd,eAAiB,CAEjB,eACF,CAOA,gDACE,aACF,CACA,gDAEE,eAAiB,CADjB,iBAAkB,CAElB,gBACF,CAOA,sDACE,aACF,CC3DA,6BACE,kBAAmB,CACnB,WAAY,CACZ,iBAAkB,CAClB,UAAY,CAQZ,cAAe,CAJf,YAAa,CACb,cAAe,CACf,SAAU,CACV,cAAe,CANf,kBAAmB,CACnB,iBAAkB,CAClB,oBAMF,CAEA,mCACE,wBAAyB,CACzB,UACF,CAEA,kCACE,wBAAyB,CACzB,UACF,CAEA,sCACE,kBAAmB,CACnB,UACF,CClBA,oCACE,oBAAsB,CACtB,qBAAsB,CACtB,aAAe,CACf,UACF,CACA,kDAEE,wBAAyB,CADzB,YAEF,CACA,0CACE,qBAAsB,CAEtB,qBAAsB,CADtB,UAEF,CACA,yCACE,qBAAsB,CACtB,qBAAsB,CACtB,UACF,CACA,0CACE,wBACF,CACA,0CAEE,aAAc,CADd,eAAiB,CAEjB,eACF,CAOA,gDACE,aACF,CACA,gDAEE,eAAiB,CADjB,iBAAkB,CAElB,gBACF,CAOA,sDACE,aACF,CC5DA,sCAEE,iBAAkB,CAGlB,cAAe,CAJf,oBAAqB,CAErB,aAAc,CACd,aAEF,CAEA,kDACE,+BACF,CAEA,iDACE,mCACF,CAEA,+CACE,kBAAmB,CACnB,UACF,CCnBA,mCAQE,kBAAmB,CAFnB,YAAa,CADb,WAAY,CAEZ,sBAAuB,CAJvB,MAAO,CAFP,cAAe,CACf,KAAM,CA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,CACnB,YAAa,CACb,SAAW,CACX,wBAAyB,CACzB,mBACF,CAEA,2CACE,YACF,CACA,iDACE,wBACF,CACA,gDACE,qBAAsB,CACtB,UACF,CAEA,6CACE,YAAa,CACb,wBACF","file":"index.cjs.css","sourcesContent":["/*\n.bool-field-wrapper {\n margin-bottom: 2rem;\n}\n.bool-field-wrapper-light {\n}\n.bool-field-wrapper-dark {\n}\n*/\n\n.bool-field {\n border-radius: 0.25rem;\n box-sizing: border-box;\n padding: 0.5rem;\n}\n.bool-field:focus-visible {\n outline: none;\n border: 1px solid #1976d2;\n}\n.bool-field-light {\n background-color: #fff;\n color: #333;\n border: 1px solid #ccc;\n}\n.bool-field-dark {\n background-color: #333;\n border: 1px solid #666;\n color: #fff;\n}\n.bool-field-error {\n border: 1px solid #d32f2f;\n}\n.bool-field-label {\n font-weight: bold;\n display: block;\n margin: 0 0 1rem 0;\n}\n/*\n.text-fiel-label-light {\n}\n.bool-field-label-dark {\n}\n*/\n.bool-field-label-error {\n color: #d32f2f;\n}\n.bool-field-helper-text {\n font-style: italic;\n font-size: 0.9rem;\n margin-top: 0.5rem;\n}\n/*\n.bool-field-helper-text-light {\n}\n.bool-field-helper-text-dark {\n}\n*/\n.bool-field-helper-text-error {\n color: #d32f2f;\n}\n",".button {\n align-items: center;\n border: none;\n border-radius: 4px;\n color: black;\n padding: .5rem 1rem;\n text-align: center;\n text-decoration: none;\n display: flex;\n font-size: 16px;\n gap: .5rem;\n margin: 4px 2px;\n cursor: pointer;\n}\n\n.button-light {\n background-color: #c7c7c7;\n color: black;\n}\n\n.button-dark {\n background-color: #474747;\n color: white;\n}\n\n.button-disabled {\n cursor: not-allowed;\n opacity: 0.5;\n}\n","/*\n.enum-field-wrapper {\n margin-bottom: 2rem;\n}\n.enum-field-wrapper-light {\n}\n.enum-field-wrapper-dark {\n}\n*/\n\n.enum-field {\n border-radius: 0.25rem;\n box-sizing: border-box;\n padding: 0.5rem;\n width: 100%;\n}\n.enum-field:focus-visible {\n outline: none;\n border: 1px solid #1976d2;\n}\n.enum-field-light {\n background-color: #fff;\n color: #333;\n border: 1px solid #ccc;\n}\n.enum-field-dark {\n background-color: #333;\n border: 1px solid #666;\n color: #fff;\n}\n.enum-field-error {\n border: 1px solid #d32f2f;\n}\n.enum-field-label {\n font-weight: bold;\n display: block;\n margin: 0 0 1rem 0;\n}\n/*\n.text-fiel-label-light {\n}\n.enum-field-label-dark {\n}\n*/\n.enum-field-label-error {\n color: #d32f2f;\n}\n.enum-field-helper-text {\n font-style: italic;\n font-size: 0.9rem;\n margin-top: 0.5rem;\n}\n/*\n.enum-field-helper-text-light {\n}\n.enum-field-helper-text-dark {\n}\n*/\n.enum-field-helper-text-error {\n color: #d32f2f;\n}\n",".icon-button {\n display: inline-block;\n border-radius: 50%;\n line-height: 0;\n padding: 0.5rem;\n cursor: pointer;\n}\n\n.icon-button-light:hover {\n background-color: rgba(0, 0, 0, 0.1);\n}\n\n.icon-button-dark:hover {\n background-color: rgba(255, 255, 255, 0.1);\n}\n\n.icon-button-disabled {\n cursor: not-allowed;\n opacity: 0.5;\n}\n",".modal-overlay {\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n z-index: 9000;\n}\n\n.modal-overlay-light {\n background-color: rgba(255, 255, 255, 0.7);\n}\n\n.modal-overlay-dark {\n background-color: rgba(0, 0, 0, 0.7);\n}\n\n.modal {\n max-width: 80%;\n max-height: 80%;\n overflow: auto;\n padding: 20px;\n border-radius: 5px;\n}\n\n.modal:focus-visible {\n outline: none;\n}\n\n.modal-light {\n background-color: #fff;\n box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);\n color: #000;\n}\n\n.modal-dark {\n background-color: #333;\n box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);\n color: #fff;\n}\n\n.modal-xs {\n width: 400px;\n}\n\n.modal-sm {\n width: 600px;\n}\n\n.modal-md {\n width: 800px;\n}\n\n.modal-lg {\n width: 1000px;\n}\n\n.modal-xl {\n width: 1200px;\n}\n\n.modal-header {\n display: flex;\n justify-content: space-between;\n align-items: center;\n margin-bottom: 1rem;\n}\n\n.modal-title {\n font-size: 1.5rem;\n font-weight: bold;\n margin: 0;\n}\n\n.modal-title-light {\n color: #000;\n}\n\n.modal-title-dark {\n color: #fff;\n}\n\n.modal-footer {\n display: flex;\n justify-content: flex-end;\n margin-top: 1rem;\n gap: .5rem;\n}\n\n","/*\n.number-field-wrapper {\n}\n.number-field-wrapper-light {\n}\n.number-field-wrapper-dark {\n}\n*/\n\n.number-field {\n border-radius: 0.25rem;\n box-sizing: border-box;\n padding: 0.5rem;\n width: 100%;\n}\n.number-field:focus-visible {\n outline: none;\n border: 1px solid #1976d2;\n}\n.number-field-light {\n background-color: #fff;\n color: #333;\n border: 1px solid #ccc;\n}\n.number-field-dark {\n background-color: #333;\n border: 1px solid #666;\n color: #fff;\n}\n.number-field-error {\n border: 1px solid #d32f2f;\n}\n.number-field-label {\n font-weight: bold;\n display: block;\n margin: 0 0 1rem 0;\n}\n/*\n.text-fiel-label-light {\n}\n.number-field-label-dark {\n}\n*/\n.number-field-label-error {\n color: #d32f2f;\n}\n.number-field-helper-text {\n font-style: italic;\n font-size: 0.9rem;\n padding-top: 0.5rem;\n}\n/*\n.number-field-helper-text-light {\n}\n.number-field-helper-text-dark {\n}\n*/\n.number-field-helper-text-error {\n color: #d32f2f;\n}\n","/*\n.text-field-wrapper {\n margin-bottom: 2rem;\n}\n.text-field-wrapper-light {\n}\n.text-field-wrapper-dark {\n}\n*/\n\n.text-field {\n border-radius: 0.25rem;\n box-sizing: border-box;\n padding: 0.5rem;\n width: 100%;\n}\n.text-field:focus-visible {\n outline: none;\n border: 1px solid #1976d2;\n}\n.text-field-light {\n background-color: #fff;\n color: #333;\n border: 1px solid #ccc;\n}\n.text-field-dark {\n background-color: #333;\n border: 1px solid #666;\n color: #fff;\n}\n.text-field-error {\n border: 1px solid #d32f2f;\n}\n.text-field-label {\n font-weight: bold;\n display: block;\n margin: 0 0 1rem 0;\n}\n/*\n.text-fiel-label-light {\n}\n.text-field-label-dark {\n}\n*/\n.text-field-label-error {\n color: #d32f2f;\n}\n.text-field-helper-text {\n font-style: italic;\n font-size: 0.9rem;\n margin-top: 0.5rem;\n}\n/*\n.text-field-helper-text-light {\n}\n.text-field-helper-text-dark {\n}\n*/\n.text-field-helper-text-error {\n color: #d32f2f;\n}\n",".loader {\n border-radius: 50%;\n width: 40px;\n height: 40px;\n animation: spin 1s linear infinite;\n}\n\n.loader-light {\n border: 10px solid #f3f3f3;\n border-top: 10px solid #3498db;\n}\n\n.loader-dark {\n border: 10px solid #333;\n border-top: 10px solid #3498db;\n}\n\n @keyframes spin {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n} \n",".header {\n align-items: flex-start;\n box-sizing: border-box;\n display: flex;\n justify-content: space-between;\n padding: 0.5rem;\n width: 100%;\n}\n\n.header-light {\n background-color: #f5f5f5;\n}\n\n.header-dark {\n background-color: #222;\n}\n\n.header-info {\n padding: 0.5rem;\n width: 100%;\n}\n.header-info-light {\n background-color: #f7f7f7;\n color: #000;\n}\n.header-info-dark {\n background-color: #222;\n color: #fff;\n}\n",".canvas-wrapper {\n background-size: contain;\n background-repeat: no-repeat;\n position: relative;\n}\n\n.rois-wrapper {\n margin-top: 1rem;\n}\n",".form {\n display: flex;\n flex-direction: column;\n gap: 1rem;\n}\n",".shapes-table {\n border-collapse: collapse;\n width: 100%;\n}\n\n.shapes-table tr {\n cursor: pointer;\n}\n\n.shapes-table th {\n padding: .8rem .3rem;\n text-align: left;\n}\n\n.shapes-table td {\n padding: 0 .3rem;\n}\n\n.shapes-table tr td:last-child,\n.shapes-table tr th:last-child {\n text-align: right;\n}\n\n.shapes-table-light {\n background-color: #eee;\n color: #000;\n}\n\n.shapes-table-dark {\n background-color: #333;\n color: #fff;\n}\n\n.shapes-row-selected-light {\n background-color: #ccc;\n}\n\n.shapes-row-selected-dark {\n background-color: #666;\n}\n\n.shapes-row-even-light {\n background-color: #f7f7f7;\n}\n\n.shapes-row-even-dark {\n background-color: #444;\n}\n\n.shapes-row-odd-light {\n background-color: #f0f0f0;\n}\n\n.shapes-row-odd-dark {\n background-color: #555;\n}\n\n.shapesTableName {\n display: flex;\n align-items: center;\n}\n\n.shapesTableColor {\n border: 1px solid #000;\n box-sizing: border-box;\n display: inline-block;\n width: 24px;\n height: 24px;\n border-radius: 50%;\n margin-right: .5rem;\n}\n",".colorpickerWrapper {\n display: flex;\n flex-wrap: nowrap;\n gap: .2rem;\n}\n\n.colorpicker-button {\n box-sizing: border-box;\n width: 24px;\n height: 24px;\n border-radius: 50%;\n cursor: pointer;\n}\n\n.colorpicker-button-active {\n border: 2px solid red;\n}\n",".toolbar {\n align-items: center;\n display: flex;\n padding: .5rem;\n}\n\n.toolbar-light {\n background-color: #eee;;\n}\n\n.toolbar-dark {\n background-color: #333;\n}\n\n.toolbar-helper {\n padding: .5rem;\n}\n\n.toolbar-helper-light {\n background-color: #f7f7f7;;\n color: #000;\n}\n\n.toolbar-helper-dark {\n background-color: #222;\n color: #fff;\n}\n\n.toolbar-spacer {\n height: 20px;\n margin: 0 .5rem;\n width: 1px;\n}\n\n.toolbar-spacer-light {\n background-color: #ccc;\n}\n\n.toolbar-spacer-dark {\n background-color: #555;\n}\n",".top-bar {\n align-items: center;\n display: flex;\n gap: 0.5rem;\n justify-content: flex-end;\n margin-bottom: 0.5rem;\n}\n\n.main-parameters-view {\n padding: 1rem;\n}\n.main-parameters-view-light {\n background-color: #f5f5f5;\n}\n.main-parameters-view-dark {\n background-color: #333;\n color: #fff;\n}\n\n.main-parameters-button {\n display: flex;\n justify-content: flex-end;\n}\n"]}
|
1
|
+
{"version":3,"sources":["BoolField.module.css","Button.module.css","EnumField.module.css","IconButton.module.css","Modal.module.css","NumberField.module.css","TextField.module.css","Loader.module.css","Header.module.css","RoiEditor.module.css","ParametersModalForm.module.css","ShapesList.module.css","ColorPicker.module.css","Toolbar.module.css","TopBar.module.css"],"names":[],"mappings":"AAUA,oCACE,oBAAsB,CACtB,qBAAsB,CACtB,aACF,CACA,kDAEE,wBAAyB,CADzB,YAEF,CACA,0CACE,qBAAsB,CAEtB,qBAAsB,CADtB,UAEF,CACA,yCACE,qBAAsB,CACtB,qBAAsB,CACtB,UACF,CACA,0CACE,wBACF,CACA,0CAEE,aAAc,CADd,eAAiB,CAEjB,eACF,CAOA,gDACE,aACF,CACA,gDAEE,eAAiB,CADjB,iBAAkB,CAElB,gBACF,CAOA,sDACE,aACF,CC3DA,6BACE,kBAAmB,CACnB,WAAY,CACZ,iBAAkB,CAClB,UAAY,CAQZ,cAAe,CAJf,YAAa,CACb,cAAe,CACf,SAAU,CACV,cAAe,CANf,kBAAmB,CACnB,iBAAkB,CAClB,oBAMF,CAEA,mCACE,wBAAyB,CACzB,UACF,CAEA,kCACE,wBAAyB,CACzB,UACF,CAEA,sCACE,kBAAmB,CACnB,UACF,CClBA,oCACE,oBAAsB,CACtB,qBAAsB,CACtB,aAAe,CACf,UACF,CACA,kDAEE,wBAAyB,CADzB,YAEF,CACA,0CACE,qBAAsB,CAEtB,qBAAsB,CADtB,UAEF,CACA,yCACE,qBAAsB,CACtB,qBAAsB,CACtB,UACF,CACA,0CACE,wBACF,CACA,0CAEE,aAAc,CADd,eAAiB,CAEjB,eACF,CAOA,gDACE,aACF,CACA,gDAEE,eAAiB,CADjB,iBAAkB,CAElB,gBACF,CAOA,sDACE,aACF,CC5DA,sCAEE,iBAAkB,CAGlB,cAAe,CAJf,oBAAqB,CAErB,aAAc,CACd,aAEF,CAEA,kDACE,+BACF,CAEA,iDACE,mCACF,CAEA,+CACE,kBAAmB,CACnB,UACF,CCnBA,mCAQE,kBAAmB,CAFnB,YAAa,CADb,WAAY,CAEZ,sBAAuB,CAJvB,MAAO,CAFP,cAAe,CACf,KAAM,CAEN,UAAW,CAKX,YACF,CAEA,yCACE,mCACF,CAEA,wCACE,+BACF,CAEA,2BAKE,iBAAkB,CAH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BAAmB,CACnB,YAAa,CACb,SAAW,CACX,wBAAyB,CACzB,mBACF,CAEA,2CACE,YACF,CACA,iDACE,wBACF,CACA,gDACE,qBAAsB,CACtB,UACF,CAEA,6CACE,YAAa,CACb,wBACF","file":"index.cjs.css","sourcesContent":["/*\n.bool-field-wrapper {\n margin-bottom: 2rem;\n}\n.bool-field-wrapper-light {\n}\n.bool-field-wrapper-dark {\n}\n*/\n\n.bool-field {\n border-radius: 0.25rem;\n box-sizing: border-box;\n padding: 0.5rem;\n}\n.bool-field:focus-visible {\n outline: none;\n border: 1px solid #1976d2;\n}\n.bool-field-light {\n background-color: #fff;\n color: #333;\n border: 1px solid #ccc;\n}\n.bool-field-dark {\n background-color: #333;\n border: 1px solid #666;\n color: #fff;\n}\n.bool-field-error {\n border: 1px solid #d32f2f;\n}\n.bool-field-label {\n font-weight: bold;\n display: block;\n margin: 0 0 1rem 0;\n}\n/*\n.text-fiel-label-light {\n}\n.bool-field-label-dark {\n}\n*/\n.bool-field-label-error {\n color: #d32f2f;\n}\n.bool-field-helper-text {\n font-style: italic;\n font-size: 0.9rem;\n margin-top: 0.5rem;\n}\n/*\n.bool-field-helper-text-light {\n}\n.bool-field-helper-text-dark {\n}\n*/\n.bool-field-helper-text-error {\n color: #d32f2f;\n}\n",".button {\n align-items: center;\n border: none;\n border-radius: 4px;\n color: black;\n padding: .5rem 1rem;\n text-align: center;\n text-decoration: none;\n display: flex;\n font-size: 16px;\n gap: .5rem;\n margin: 4px 2px;\n cursor: pointer;\n}\n\n.button-light {\n background-color: #c7c7c7;\n color: black;\n}\n\n.button-dark {\n background-color: #474747;\n color: white;\n}\n\n.button-disabled {\n cursor: not-allowed;\n opacity: 0.5;\n}\n","/*\n.enum-field-wrapper {\n margin-bottom: 2rem;\n}\n.enum-field-wrapper-light {\n}\n.enum-field-wrapper-dark {\n}\n*/\n\n.enum-field {\n border-radius: 0.25rem;\n box-sizing: border-box;\n padding: 0.5rem;\n width: 100%;\n}\n.enum-field:focus-visible {\n outline: none;\n border: 1px solid #1976d2;\n}\n.enum-field-light {\n background-color: #fff;\n color: #333;\n border: 1px solid #ccc;\n}\n.enum-field-dark {\n background-color: #333;\n border: 1px solid #666;\n color: #fff;\n}\n.enum-field-error {\n border: 1px solid #d32f2f;\n}\n.enum-field-label {\n font-weight: bold;\n display: block;\n margin: 0 0 1rem 0;\n}\n/*\n.text-fiel-label-light {\n}\n.enum-field-label-dark {\n}\n*/\n.enum-field-label-error {\n color: #d32f2f;\n}\n.enum-field-helper-text {\n font-style: italic;\n font-size: 0.9rem;\n margin-top: 0.5rem;\n}\n/*\n.enum-field-helper-text-light {\n}\n.enum-field-helper-text-dark {\n}\n*/\n.enum-field-helper-text-error {\n color: #d32f2f;\n}\n",".icon-button {\n display: inline-block;\n border-radius: 50%;\n line-height: 0;\n padding: 0.5rem;\n cursor: pointer;\n}\n\n.icon-button-light:hover {\n background-color: rgba(0, 0, 0, 0.1);\n}\n\n.icon-button-dark:hover {\n background-color: rgba(255, 255, 255, 0.1);\n}\n\n.icon-button-disabled {\n cursor: not-allowed;\n opacity: 0.5;\n}\n",".modal-overlay {\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n z-index: 9000;\n}\n\n.modal-overlay-light {\n background-color: rgba(255, 255, 255, 0.7);\n}\n\n.modal-overlay-dark {\n background-color: rgba(0, 0, 0, 0.7);\n}\n\n.modal {\n max-width: 80%;\n max-height: 80%;\n overflow: auto;\n padding: 20px;\n border-radius: 5px;\n}\n\n.modal:focus-visible {\n outline: none;\n}\n\n.modal-light {\n background-color: #fff;\n box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);\n color: #000;\n}\n\n.modal-dark {\n background-color: #333;\n box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);\n color: #fff;\n}\n\n.modal-xs {\n width: 400px;\n}\n\n.modal-sm {\n width: 600px;\n}\n\n.modal-md {\n width: 800px;\n}\n\n.modal-lg {\n width: 1000px;\n}\n\n.modal-xl {\n width: 1200px;\n}\n\n.modal-header {\n display: flex;\n justify-content: space-between;\n align-items: center;\n margin-bottom: 1rem;\n}\n\n.modal-title {\n font-size: 1.5rem;\n font-weight: bold;\n margin: 0;\n}\n\n.modal-title-light {\n color: #000;\n}\n\n.modal-title-dark {\n color: #fff;\n}\n\n.modal-footer {\n display: flex;\n justify-content: flex-end;\n margin-top: 1rem;\n gap: .5rem;\n}\n\n","/*\n.number-field-wrapper {\n}\n.number-field-wrapper-light {\n}\n.number-field-wrapper-dark {\n}\n*/\n\n.number-field {\n border-radius: 0.25rem;\n box-sizing: border-box;\n padding: 0.5rem;\n width: 100%;\n}\n.number-field:focus-visible {\n outline: none;\n border: 1px solid #1976d2;\n}\n.number-field-light {\n background-color: #fff;\n color: #333;\n border: 1px solid #ccc;\n}\n.number-field-dark {\n background-color: #333;\n border: 1px solid #666;\n color: #fff;\n}\n.number-field-error {\n border: 1px solid #d32f2f;\n}\n.number-field-label {\n font-weight: bold;\n display: block;\n margin: 0 0 1rem 0;\n}\n/*\n.text-fiel-label-light {\n}\n.number-field-label-dark {\n}\n*/\n.number-field-label-error {\n color: #d32f2f;\n}\n.number-field-helper-text {\n font-style: italic;\n font-size: 0.9rem;\n padding-top: 0.5rem;\n}\n/*\n.number-field-helper-text-light {\n}\n.number-field-helper-text-dark {\n}\n*/\n.number-field-helper-text-error {\n color: #d32f2f;\n}\n","/*\n.text-field-wrapper {\n margin-bottom: 2rem;\n}\n.text-field-wrapper-light {\n}\n.text-field-wrapper-dark {\n}\n*/\n\n.text-field {\n border-radius: 0.25rem;\n box-sizing: border-box;\n padding: 0.5rem;\n width: 100%;\n}\n.text-field:focus-visible {\n outline: none;\n border: 1px solid #1976d2;\n}\n.text-field-light {\n background-color: #fff;\n color: #333;\n border: 1px solid #ccc;\n}\n.text-field-dark {\n background-color: #333;\n border: 1px solid #666;\n color: #fff;\n}\n.text-field-error {\n border: 1px solid #d32f2f;\n}\n.text-field-label {\n font-weight: bold;\n display: block;\n margin: 0 0 1rem 0;\n}\n/*\n.text-fiel-label-light {\n}\n.text-field-label-dark {\n}\n*/\n.text-field-label-error {\n color: #d32f2f;\n}\n.text-field-helper-text {\n font-style: italic;\n font-size: 0.9rem;\n margin-top: 0.5rem;\n}\n/*\n.text-field-helper-text-light {\n}\n.text-field-helper-text-dark {\n}\n*/\n.text-field-helper-text-error {\n color: #d32f2f;\n}\n",".loader {\n border-radius: 50%;\n width: 40px;\n height: 40px;\n animation: spin 1s linear infinite;\n}\n\n.loader-light {\n border: 10px solid #f3f3f3;\n border-top: 10px solid #3498db;\n}\n\n.loader-dark {\n border: 10px solid #333;\n border-top: 10px solid #3498db;\n}\n\n @keyframes spin {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n} \n",".header {\n align-items: flex-start;\n box-sizing: border-box;\n display: flex;\n justify-content: space-between;\n padding: 0.5rem;\n width: 100%;\n}\n\n.header-light {\n background-color: #f5f5f5;\n}\n\n.header-dark {\n background-color: #222;\n}\n\n.header-info {\n padding: 0.5rem;\n width: 100%;\n}\n.header-info-light {\n background-color: #f7f7f7;\n color: #000;\n}\n.header-info-dark {\n background-color: #222;\n color: #fff;\n}\n",".canvas-wrapper {\n background-size: contain;\n background-repeat: no-repeat;\n position: relative;\n}\n\n.rois-wrapper {\n margin-top: 1rem;\n}\n",".form {\n display: flex;\n flex-direction: column;\n gap: 1rem;\n}\n\n.fieldset {\n display: flex;\n flex-direction: column;\n gap: 1rem;\n}\n\n.legend {\n background: #e0e0e0;\n padding: 0.2rem 0.5rem;\n font-size: 1.2rem !important;\n}\n\n.legend-light {\n background: #e0e0e0;\n}\n\n.legend-dark {\n background: #232323;\n}\n",".shapes-table {\n border-collapse: collapse;\n width: 100%;\n}\n\n.shapes-table tr {\n cursor: pointer;\n}\n\n.shapes-table th {\n padding: .8rem .3rem;\n text-align: left;\n}\n\n.shapes-table td {\n padding: 0 .3rem;\n}\n\n.shapes-table tr td:last-child,\n.shapes-table tr th:last-child {\n text-align: right;\n}\n\n.shapes-table-light {\n background-color: #eee;\n color: #000;\n}\n\n.shapes-table-dark {\n background-color: #333;\n color: #fff;\n}\n\n.shapes-row-selected-light {\n background-color: #ccc;\n}\n\n.shapes-row-selected-dark {\n background-color: #666;\n}\n\n.shapes-row-even-light {\n background-color: #f7f7f7;\n}\n\n.shapes-row-even-dark {\n background-color: #444;\n}\n\n.shapes-row-odd-light {\n background-color: #f0f0f0;\n}\n\n.shapes-row-odd-dark {\n background-color: #555;\n}\n\n.shapesTableName {\n display: flex;\n align-items: center;\n}\n\n.shapesTableColor {\n border: 1px solid #000;\n box-sizing: border-box;\n display: inline-block;\n width: 24px;\n height: 24px;\n border-radius: 50%;\n margin-right: .5rem;\n}\n",".colorpickerWrapper {\n display: flex;\n flex-wrap: nowrap;\n gap: .2rem;\n}\n\n.colorpicker-button {\n box-sizing: border-box;\n width: 24px;\n height: 24px;\n border-radius: 50%;\n cursor: pointer;\n}\n\n.colorpicker-button-active {\n border: 2px solid red;\n}\n",".toolbar {\n align-items: center;\n display: flex;\n padding: .5rem;\n}\n\n.toolbar-light {\n background-color: #eee;;\n}\n\n.toolbar-dark {\n background-color: #333;\n}\n\n.toolbar-helper {\n padding: .5rem;\n}\n\n.toolbar-helper-light {\n background-color: #f7f7f7;;\n color: #000;\n}\n\n.toolbar-helper-dark {\n background-color: #222;\n color: #fff;\n}\n\n.toolbar-spacer {\n height: 20px;\n margin: 0 .5rem;\n width: 1px;\n}\n\n.toolbar-spacer-light {\n background-color: #ccc;\n}\n\n.toolbar-spacer-dark {\n background-color: #555;\n}\n",".top-bar {\n align-items: center;\n display: flex;\n gap: 0.5rem;\n justify-content: flex-end;\n margin-bottom: 0.5rem;\n}\n\n.main-parameters-view {\n padding: 1rem;\n}\n.main-parameters-view-light {\n background-color: #f5f5f5;\n}\n.main-parameters-view-dark {\n background-color: #333;\n color: #fff;\n}\n\n.main-parameters-button {\n display: flex;\n justify-content: flex-end;\n}\n"]}
|
package/dist/index.cjs.js
CHANGED
@@ -100,7 +100,15 @@ var log = function (level, enable) {
|
|
100
100
|
return enable && console[level].apply(console, args);
|
101
101
|
};
|
102
102
|
var css = function (name, styles, themeMode) {
|
103
|
-
|
103
|
+
var parts = [];
|
104
|
+
if (styles[name])
|
105
|
+
parts.push(styles[name]);
|
106
|
+
if (styles["".concat(name, "-").concat(themeMode)])
|
107
|
+
parts.push(styles["".concat(name, "-").concat(themeMode)]);
|
108
|
+
parts.push("react-cam-roi-".concat(name));
|
109
|
+
if (themeMode)
|
110
|
+
parts.push("react-cam-roi-".concat(name, "-").concat(themeMode));
|
111
|
+
return parts.join(' ');
|
104
112
|
};
|
105
113
|
var humanize = function (str) {
|
106
114
|
return str
|
@@ -1558,11 +1566,11 @@ var ParameterField = function (_a) {
|
|
1558
1566
|
}
|
1559
1567
|
};
|
1560
1568
|
|
1561
|
-
var styles$4 = {"form":"ParametersModalForm-module_form__WXebJ"};
|
1569
|
+
var styles$4 = {"form":"ParametersModalForm-module_form__WXebJ","fieldset":"ParametersModalForm-module_fieldset__V-ywT","legend":"ParametersModalForm-module_legend__F6CPv","legend-light":"ParametersModalForm-module_legend-light__X9tWX","legend-dark":"ParametersModalForm-module_legend-dark__isTas"};
|
1562
1570
|
|
1563
1571
|
var ParametersModalForm = function (_a) {
|
1564
1572
|
var title = _a.title, onClose = _a.onClose, parameters = _a.parameters, data = _a.data, onSubmit = _a.onSubmit, shapeType = _a.shapeType, shapeName = _a.shapeName, shapeRole = _a.shapeRole, noModal = _a.noModal, readOnly = _a.readOnly;
|
1565
|
-
var _b = React.useContext(UiContext), Modal = _b.Modal, TextField = _b.TextField, strings = _b.strings;
|
1573
|
+
var _b = React.useContext(UiContext), Modal = _b.Modal, TextField = _b.TextField, strings = _b.strings, themeMode = _b.themeMode, Typography = _b.Typography;
|
1566
1574
|
var _c = React.useState(shapeName !== null && shapeName !== void 0 ? shapeName : ''), name = _c[0], setName = _c[1];
|
1567
1575
|
var _d = React.useState(shapeRole !== null && shapeRole !== void 0 ? shapeRole : ''), role = _d[0], setRole = _d[1];
|
1568
1576
|
var _e = useParametersForm(data), fields = _e.fields, setField = _e.setField, errors = _e.errors, setErrors = _e.setErrors;
|
@@ -1590,19 +1598,31 @@ var ParametersModalForm = function (_a) {
|
|
1590
1598
|
}
|
1591
1599
|
}
|
1592
1600
|
};
|
1593
|
-
|
1594
|
-
|
1595
|
-
|
1596
|
-
|
1597
|
-
|
1598
|
-
|
1599
|
-
|
1600
|
-
|
1601
|
-
|
1602
|
-
|
1603
|
-
|
1604
|
-
|
1605
|
-
|
1601
|
+
// group parameters by fieldset
|
1602
|
+
var groupedParameters = parameters.reduce(function (acc, p) {
|
1603
|
+
if (acc[p.fieldSet || '']) {
|
1604
|
+
acc[p.fieldSet || ''].push(p);
|
1605
|
+
}
|
1606
|
+
else {
|
1607
|
+
acc[p.fieldSet || ''] = [p];
|
1608
|
+
}
|
1609
|
+
return acc;
|
1610
|
+
}, {});
|
1611
|
+
var form = (jsxRuntime.jsxs("div", { className: css('form', styles$4, null), children: [shapeType && (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(TextField, { required: true, label: strings.name, type: "text", value: name, onChange: compose(setName, defaultTo('')), error: !!errors.name, helperText: errors.name, readOnly: readOnly }), jsxRuntime.jsx(RoleField, { required: true, value: role, onChange: compose(setRole, defaultTo('')), error: !!errors.role, helperText: errors.role, shapeType: shapeType, readOnly: readOnly, disabled: readOnly })] })), Object.keys(groupedParameters)
|
1612
|
+
.sort()
|
1613
|
+
.map(function (fieldSet) { return (jsxRuntime.jsxs("div", { className: css('fieldset', styles$4, themeMode), children: [fieldSet && (jsxRuntime.jsx(Typography, { component: "div", className: css('legend', styles$4, themeMode), children: fieldSet })), groupedParameters[fieldSet].map(function (parameter) {
|
1614
|
+
switch (parameter.type) {
|
1615
|
+
case 'string':
|
1616
|
+
return (jsxRuntime.jsx(ParameterField, { value: String((readOnly ? readonlyFields : fields)[parameter.codename]), onChange: setField(parameter.codename), parameter: parameter, errors: errors, readOnly: readOnly }, parameter.codename));
|
1617
|
+
case 'int':
|
1618
|
+
case 'float':
|
1619
|
+
return (jsxRuntime.jsx(ParameterField, { value: (readOnly ? readonlyFields : fields)[parameter.codename], onChange: setField(parameter.codename), parameter: parameter, errors: errors, readOnly: readOnly }, parameter.codename));
|
1620
|
+
case 'bool':
|
1621
|
+
return (jsxRuntime.jsx(ParameterField, { value: (readOnly ? readonlyFields : fields)[parameter.codename], onChange: setField(parameter.codename), parameter: parameter, errors: errors, readOnly: readOnly }, parameter.codename));
|
1622
|
+
default:
|
1623
|
+
return null;
|
1624
|
+
}
|
1625
|
+
})] }, fieldSet)); })] }));
|
1606
1626
|
return noModal ? (form) : (jsxRuntime.jsx(Modal, { onClose: onClose, title: title, isOpen: true, maxWidth: "sm", onSubmit: handleSubmit, children: form }));
|
1607
1627
|
};
|
1608
1628
|
|