@ohif/app 3.9.0-beta.87 → 3.9.0-beta.88
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/{3482.bundle.a41c58eff876e2cfcbf4.js → 3482.bundle.850ff199da4a907674b4.js} +2 -2
- package/dist/{3962.bundle.6e2f1b5dd6d94da2889b.js → 3962.bundle.e504478a353e52eb6a97.js} +2 -2
- package/dist/{4210.bundle.2c9a3e994d81843373f8.js → 4210.bundle.48668b411fdbabd4148b.js} +2 -2
- package/dist/{6552.bundle.16415f0c552ba1ee590b.js → 6552.bundle.3f20b95c2da2f6149c7a.js} +4 -4
- package/dist/{7913.bundle.eb9263f4f71ac109fd79.js → 7913.bundle.a6a93115852315089a5a.js} +2 -2
- package/dist/{8999.bundle.9f08fc751e1f8d3127b3.js → 8999.bundle.121e290ea00e857fdf6d.js} +2 -2
- package/dist/{app.bundle.a2882c170bed21574901.js → app.bundle.ae11954164c4a8113eba.js} +754 -35
- package/dist/app.bundle.css +2 -2
- package/dist/index.html +1 -1
- package/dist/sw.js +1 -1
- package/package.json +18 -18
- /package/dist/{153.bundle.e384139aa6dc917c1e7f.js → 153.bundle.26839375de24e88aba65.js} +0 -0
- /package/dist/{2119.bundle.be20eb6a847aa7bc1cb4.js → 2119.bundle.474bb516d56922db33b9.js} +0 -0
- /package/dist/{2791.bundle.91c3d6d25da43f62726a.js → 2791.bundle.e744aac5300171cb2fa5.js} +0 -0
- /package/dist/{4353.bundle.5ddbd4947be136ec266e.js → 4353.bundle.9bcbdbc20f0413a48117.js} +0 -0
- /package/dist/{4842.bundle.d5d1d6c35dfe6066250e.js → 4842.bundle.975d1e3a7ca605172be0.js} +0 -0
- /package/dist/{4978.bundle.b2d5f98dc7db01fcb3d9.js → 4978.bundle.ec6e397d724b3a104514.js} +0 -0
- /package/dist/{5888.bundle.c056620c251a9974bad4.js → 5888.bundle.e34a932b1a9a00675174.js} +0 -0
- /package/dist/{6591.bundle.20f9d1062b82fa1bc033.js → 6591.bundle.246e910c05d0076154a8.js} +0 -0
- /package/dist/{7246.bundle.80427fb3b6b4faa12e7d.js → 7246.bundle.3736e9f7b919e0f55c5c.js} +0 -0
- /package/dist/{7360.bundle.29170b88f653797645d3.js → 7360.bundle.58e4e66903c24ba44e4e.js} +0 -0
- /package/dist/{7376.bundle.463e21a205e3907dc349.js → 7376.bundle.7af8c3bbd7b0a919845e.js} +0 -0
- /package/dist/{7502.bundle.247010c9dad2f9041e45.js → 7502.bundle.0256a1f690ff7508c9ea.js} +0 -0
- /package/dist/{8944.bundle.2647d0df55dbf42e33f7.js → 8944.bundle.75ebf48ab17b459528e3.js} +0 -0
- /package/dist/{962.bundle.1a4306eb0d41beda14e1.js → 962.bundle.99965797c8353f273fa1.js} +0 -0
|
@@ -5336,8 +5336,8 @@ Compose.propTypes = {
|
|
|
5336
5336
|
};
|
|
5337
5337
|
// EXTERNAL MODULE: ../../ui/src/index.js + 691 modules
|
|
5338
5338
|
var ui_src = __webpack_require__(50395);
|
|
5339
|
-
// EXTERNAL MODULE: ../../ui-next/src/index.ts +
|
|
5340
|
-
var ui_next_src = __webpack_require__(
|
|
5339
|
+
// EXTERNAL MODULE: ../../ui-next/src/index.ts + 2444 modules
|
|
5340
|
+
var ui_next_src = __webpack_require__(49732);
|
|
5341
5341
|
// EXTERNAL MODULE: ./state/index.js + 1 modules
|
|
5342
5342
|
var state = __webpack_require__(52490);
|
|
5343
5343
|
// EXTERNAL MODULE: ../../core/src/index.ts + 74 modules
|
|
@@ -6262,8 +6262,8 @@ function WorkList({
|
|
|
6262
6262
|
};
|
|
6263
6263
|
});
|
|
6264
6264
|
const hasStudies = numOfStudies > 0;
|
|
6265
|
-
const versionNumber = "3.9.0-beta.
|
|
6266
|
-
const commitHash = "
|
|
6265
|
+
const versionNumber = "3.9.0-beta.88";
|
|
6266
|
+
const commitHash = "7f17d5d733b02af098c450bcc776bfa36551c782";
|
|
6267
6267
|
const menuOptions = [{
|
|
6268
6268
|
title: t('Header:About'),
|
|
6269
6269
|
icon: 'info',
|
|
@@ -13313,7 +13313,7 @@ const detectionOptions = {
|
|
|
13313
13313
|
}
|
|
13314
13314
|
});
|
|
13315
13315
|
;// CONCATENATED MODULE: ../../i18n/package.json
|
|
13316
|
-
const package_namespaceObject = JSON.parse('{"i8":"3.9.0-beta.
|
|
13316
|
+
const package_namespaceObject = JSON.parse('{"i8":"3.9.0-beta.87"}');
|
|
13317
13317
|
;// CONCATENATED MODULE: ../../i18n/src/utils.js
|
|
13318
13318
|
const languagesMap = {
|
|
13319
13319
|
ar: 'Arabic',
|
|
@@ -25958,8 +25958,8 @@ Input.propTypes = {
|
|
|
25958
25958
|
;// CONCATENATED MODULE: ../../ui/src/components/Input/index.js
|
|
25959
25959
|
|
|
25960
25960
|
/* harmony default export */ const components_Input = (Input_Input);
|
|
25961
|
-
// EXTERNAL MODULE: ../../ui-next/src/index.ts +
|
|
25962
|
-
var ui_next_src = __webpack_require__(
|
|
25961
|
+
// EXTERNAL MODULE: ../../ui-next/src/index.ts + 2444 modules
|
|
25962
|
+
var ui_next_src = __webpack_require__(49732);
|
|
25963
25963
|
;// CONCATENATED MODULE: ../../ui/src/components/InputLabelWrapper/InputLabelWrapper.tsx
|
|
25964
25964
|
|
|
25965
25965
|
|
|
@@ -76031,7 +76031,7 @@ function uuidv4() {
|
|
|
76031
76031
|
|
|
76032
76032
|
/***/ }),
|
|
76033
76033
|
|
|
76034
|
-
/***/
|
|
76034
|
+
/***/ 49732:
|
|
76035
76035
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
76036
76036
|
|
|
76037
76037
|
"use strict";
|
|
@@ -191282,7 +191282,7 @@ var [createTabsContext, createTabsScope] = createContextScope(TABS_NAME, [
|
|
|
191282
191282
|
]);
|
|
191283
191283
|
var useRovingFocusGroupScope = $d7bdfb9eb0fdf311$export$c7109489551a4f4();
|
|
191284
191284
|
var [TabsProvider, useTabsContext] = createTabsContext(TABS_NAME);
|
|
191285
|
-
var
|
|
191285
|
+
var dist_Tabs = react.forwardRef(
|
|
191286
191286
|
(props, forwardedRef) => {
|
|
191287
191287
|
const {
|
|
191288
191288
|
__scopeTabs,
|
|
@@ -191323,9 +191323,9 @@ var Tabs = react.forwardRef(
|
|
|
191323
191323
|
);
|
|
191324
191324
|
}
|
|
191325
191325
|
);
|
|
191326
|
-
|
|
191326
|
+
dist_Tabs.displayName = TABS_NAME;
|
|
191327
191327
|
var TAB_LIST_NAME = "TabsList";
|
|
191328
|
-
var
|
|
191328
|
+
var dist_TabsList = react.forwardRef(
|
|
191329
191329
|
(props, forwardedRef) => {
|
|
191330
191330
|
const { __scopeTabs, loop = true, ...listProps } = props;
|
|
191331
191331
|
const context = useTabsContext(TAB_LIST_NAME, __scopeTabs);
|
|
@@ -191351,9 +191351,9 @@ var TabsList = react.forwardRef(
|
|
|
191351
191351
|
);
|
|
191352
191352
|
}
|
|
191353
191353
|
);
|
|
191354
|
-
|
|
191354
|
+
dist_TabsList.displayName = TAB_LIST_NAME;
|
|
191355
191355
|
var dist_TRIGGER_NAME = "TabsTrigger";
|
|
191356
|
-
var
|
|
191356
|
+
var dist_TabsTrigger = react.forwardRef(
|
|
191357
191357
|
(props, forwardedRef) => {
|
|
191358
191358
|
const { __scopeTabs, value, disabled = false, ...triggerProps } = props;
|
|
191359
191359
|
const context = useTabsContext(dist_TRIGGER_NAME, __scopeTabs);
|
|
@@ -191403,9 +191403,9 @@ var TabsTrigger = react.forwardRef(
|
|
|
191403
191403
|
);
|
|
191404
191404
|
}
|
|
191405
191405
|
);
|
|
191406
|
-
|
|
191406
|
+
dist_TabsTrigger.displayName = dist_TRIGGER_NAME;
|
|
191407
191407
|
var react_tabs_dist_CONTENT_NAME = "TabsContent";
|
|
191408
|
-
var
|
|
191408
|
+
var dist_TabsContent = react.forwardRef(
|
|
191409
191409
|
(props, forwardedRef) => {
|
|
191410
191410
|
const { __scopeTabs, value, forceMount, children, ...contentProps } = props;
|
|
191411
191411
|
const context = useTabsContext(react_tabs_dist_CONTENT_NAME, __scopeTabs);
|
|
@@ -191438,17 +191438,17 @@ var TabsContent = react.forwardRef(
|
|
|
191438
191438
|
) });
|
|
191439
191439
|
}
|
|
191440
191440
|
);
|
|
191441
|
-
|
|
191441
|
+
dist_TabsContent.displayName = react_tabs_dist_CONTENT_NAME;
|
|
191442
191442
|
function makeTriggerId(baseId, value) {
|
|
191443
191443
|
return `${baseId}-trigger-${value}`;
|
|
191444
191444
|
}
|
|
191445
191445
|
function makeContentId(baseId, value) {
|
|
191446
191446
|
return `${baseId}-content-${value}`;
|
|
191447
191447
|
}
|
|
191448
|
-
var dist_Root2 =
|
|
191449
|
-
var dist_List =
|
|
191450
|
-
var dist_Trigger =
|
|
191451
|
-
var react_tabs_dist_Content =
|
|
191448
|
+
var dist_Root2 = dist_Tabs;
|
|
191449
|
+
var dist_List = dist_TabsList;
|
|
191450
|
+
var dist_Trigger = dist_TabsTrigger;
|
|
191451
|
+
var react_tabs_dist_Content = dist_TabsContent;
|
|
191452
191452
|
|
|
191453
191453
|
//# sourceMappingURL=index.mjs.map
|
|
191454
191454
|
|
|
@@ -191801,7 +191801,7 @@ ToggleGroupItem.displayName = $6c1fd9e6a8969628$export$6d08773d2e66f8f2.displayN
|
|
|
191801
191801
|
function Input_extends() { return Input_extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, Input_extends.apply(null, arguments); }
|
|
191802
191802
|
|
|
191803
191803
|
|
|
191804
|
-
const
|
|
191804
|
+
const Input_Input = /*#__PURE__*/react.forwardRef(({
|
|
191805
191805
|
className,
|
|
191806
191806
|
type,
|
|
191807
191807
|
...props
|
|
@@ -191812,7 +191812,7 @@ const Input = /*#__PURE__*/react.forwardRef(({
|
|
|
191812
191812
|
ref: ref
|
|
191813
191813
|
}, props));
|
|
191814
191814
|
});
|
|
191815
|
-
|
|
191815
|
+
Input_Input.displayName = 'Input';
|
|
191816
191816
|
|
|
191817
191817
|
;// CONCATENATED MODULE: ../../ui-next/src/components/Input/index.tsx
|
|
191818
191818
|
|
|
@@ -191825,7 +191825,7 @@ Input.displayName = 'Input';
|
|
|
191825
191825
|
|
|
191826
191826
|
|
|
191827
191827
|
var react_label_dist_NAME = "Label";
|
|
191828
|
-
var
|
|
191828
|
+
var dist_Label = react.forwardRef((props, forwardedRef) => {
|
|
191829
191829
|
return /* @__PURE__ */ (0,jsx_runtime.jsx)(
|
|
191830
191830
|
Primitive.label,
|
|
191831
191831
|
{
|
|
@@ -191840,8 +191840,8 @@ var Label = react.forwardRef((props, forwardedRef) => {
|
|
|
191840
191840
|
}
|
|
191841
191841
|
);
|
|
191842
191842
|
});
|
|
191843
|
-
|
|
191844
|
-
var react_label_dist_Root =
|
|
191843
|
+
dist_Label.displayName = react_label_dist_NAME;
|
|
191844
|
+
var react_label_dist_Root = dist_Label;
|
|
191845
191845
|
|
|
191846
191846
|
//# sourceMappingURL=index.mjs.map
|
|
191847
191847
|
|
|
@@ -191896,7 +191896,7 @@ function usePrevious(value) {
|
|
|
191896
191896
|
var SWITCH_NAME = "Switch";
|
|
191897
191897
|
var [createSwitchContext, createSwitchScope] = createContextScope(SWITCH_NAME);
|
|
191898
191898
|
var [SwitchProvider, useSwitchContext] = createSwitchContext(SWITCH_NAME);
|
|
191899
|
-
var
|
|
191899
|
+
var dist_Switch = react.forwardRef(
|
|
191900
191900
|
(props, forwardedRef) => {
|
|
191901
191901
|
const {
|
|
191902
191902
|
__scopeSwitch,
|
|
@@ -191957,7 +191957,7 @@ var Switch = react.forwardRef(
|
|
|
191957
191957
|
] });
|
|
191958
191958
|
}
|
|
191959
191959
|
);
|
|
191960
|
-
|
|
191960
|
+
dist_Switch.displayName = SWITCH_NAME;
|
|
191961
191961
|
var THUMB_NAME = "SwitchThumb";
|
|
191962
191962
|
var SwitchThumb = react.forwardRef(
|
|
191963
191963
|
(props, forwardedRef) => {
|
|
@@ -192014,7 +192014,7 @@ var BubbleInput = (props) => {
|
|
|
192014
192014
|
function dist_getState(checked) {
|
|
192015
192015
|
return checked ? "checked" : "unchecked";
|
|
192016
192016
|
}
|
|
192017
|
-
var react_switch_dist_Root =
|
|
192017
|
+
var react_switch_dist_Root = dist_Switch;
|
|
192018
192018
|
var Thumb = SwitchThumb;
|
|
192019
192019
|
|
|
192020
192020
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -192256,7 +192256,7 @@ var [createSliderContext, createSliderScope] = createContextScope(SLIDER_NAME, [
|
|
|
192256
192256
|
createCollectionScope
|
|
192257
192257
|
]);
|
|
192258
192258
|
var [SliderProvider, useSliderContext] = createSliderContext(SLIDER_NAME);
|
|
192259
|
-
var
|
|
192259
|
+
var dist_Slider = react.forwardRef(
|
|
192260
192260
|
(props, forwardedRef) => {
|
|
192261
192261
|
const {
|
|
192262
192262
|
name,
|
|
@@ -192365,7 +192365,7 @@ var Slider = react.forwardRef(
|
|
|
192365
192365
|
);
|
|
192366
192366
|
}
|
|
192367
192367
|
);
|
|
192368
|
-
|
|
192368
|
+
dist_Slider.displayName = SLIDER_NAME;
|
|
192369
192369
|
var [SliderOrientationProvider, useSliderOrientationContext] = createSliderContext(SLIDER_NAME, {
|
|
192370
192370
|
startEdge: "left",
|
|
192371
192371
|
endEdge: "right",
|
|
@@ -192761,7 +192761,7 @@ function roundValue(value, decimalCount) {
|
|
|
192761
192761
|
const rounder = Math.pow(10, decimalCount);
|
|
192762
192762
|
return Math.round(value * rounder) / rounder;
|
|
192763
192763
|
}
|
|
192764
|
-
var react_slider_dist_Root =
|
|
192764
|
+
var react_slider_dist_Root = dist_Slider;
|
|
192765
192765
|
var Track = SliderTrack;
|
|
192766
192766
|
var Range = SliderRange;
|
|
192767
192767
|
var dist_Thumb = SliderThumb;
|
|
@@ -192820,7 +192820,7 @@ function dist_useStateMachine(initialState, machine) {
|
|
|
192820
192820
|
var SCROLL_AREA_NAME = "ScrollArea";
|
|
192821
192821
|
var [createScrollAreaContext, createScrollAreaScope] = createContextScope(SCROLL_AREA_NAME);
|
|
192822
192822
|
var [ScrollAreaProvider, useScrollAreaContext] = createScrollAreaContext(SCROLL_AREA_NAME);
|
|
192823
|
-
var
|
|
192823
|
+
var dist_ScrollArea = react.forwardRef(
|
|
192824
192824
|
(props, forwardedRef) => {
|
|
192825
192825
|
const {
|
|
192826
192826
|
__scopeScrollArea,
|
|
@@ -192881,7 +192881,7 @@ var ScrollArea = react.forwardRef(
|
|
|
192881
192881
|
);
|
|
192882
192882
|
}
|
|
192883
192883
|
);
|
|
192884
|
-
|
|
192884
|
+
dist_ScrollArea.displayName = SCROLL_AREA_NAME;
|
|
192885
192885
|
var VIEWPORT_NAME = "ScrollAreaViewport";
|
|
192886
192886
|
var ScrollAreaViewport = react.forwardRef(
|
|
192887
192887
|
(props, forwardedRef) => {
|
|
@@ -193512,7 +193512,7 @@ function useResizeObserver(element, onResize) {
|
|
|
193512
193512
|
}
|
|
193513
193513
|
}, [element, handleResize]);
|
|
193514
193514
|
}
|
|
193515
|
-
var react_scroll_area_dist_Root =
|
|
193515
|
+
var react_scroll_area_dist_Root = dist_ScrollArea;
|
|
193516
193516
|
var Viewport = ScrollAreaViewport;
|
|
193517
193517
|
var Scrollbar = (/* unused pure expression or super */ null && (ScrollAreaScrollbar));
|
|
193518
193518
|
var react_scroll_area_dist_Thumb = (/* unused pure expression or super */ null && (ScrollAreaThumb));
|
|
@@ -196924,6 +196924,720 @@ function Toolbox({
|
|
|
196924
196924
|
|
|
196925
196925
|
|
|
196926
196926
|
|
|
196927
|
+
;// CONCATENATED MODULE: ../../ui-next/src/_prototypes/PanelSplit/ItemList.tsx
|
|
196928
|
+
|
|
196929
|
+
// Updated import path
|
|
196930
|
+
|
|
196931
|
+
/**
|
|
196932
|
+
* ItemList Component
|
|
196933
|
+
*
|
|
196934
|
+
* Displays a list of items that can be selected, toggled for visibility,
|
|
196935
|
+
* and added (changing availability).
|
|
196936
|
+
*
|
|
196937
|
+
* @param items - Array of items to display.
|
|
196938
|
+
* @param onSelectItem - Callback when an item is selected.
|
|
196939
|
+
* @param selectedItem - The currently selected item.
|
|
196940
|
+
* @param onToggleVisibility - Callback when an item's visibility is toggled.
|
|
196941
|
+
* @param onAddItem - Callback when an item's availability is changed to 'loaded'.
|
|
196942
|
+
*/
|
|
196943
|
+
const ItemList_ItemList = ({
|
|
196944
|
+
items,
|
|
196945
|
+
onSelectItem,
|
|
196946
|
+
selectedItem,
|
|
196947
|
+
onToggleVisibility,
|
|
196948
|
+
onAddItem
|
|
196949
|
+
}) => {
|
|
196950
|
+
return /*#__PURE__*/React.createElement("ul", {
|
|
196951
|
+
"aria-label": "Item List",
|
|
196952
|
+
className: "space-y-1"
|
|
196953
|
+
}, items.map(item => /*#__PURE__*/React.createElement("li", {
|
|
196954
|
+
key: item.id
|
|
196955
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
196956
|
+
className: "flex items-center"
|
|
196957
|
+
}, item.availability === 'available' && /*#__PURE__*/React.createElement(Button, {
|
|
196958
|
+
variant: "ghost",
|
|
196959
|
+
size: "icon",
|
|
196960
|
+
onClick: e => {
|
|
196961
|
+
e.stopPropagation(); // Prevent parent onClick
|
|
196962
|
+
onAddItem(item.id);
|
|
196963
|
+
},
|
|
196964
|
+
"aria-label": `Add ${item.name}`,
|
|
196965
|
+
className: "ml-1 mr-1"
|
|
196966
|
+
}, /*#__PURE__*/React.createElement("svg", {
|
|
196967
|
+
width: "16px",
|
|
196968
|
+
height: "16px",
|
|
196969
|
+
viewBox: "0 0 24 24",
|
|
196970
|
+
fill: "none",
|
|
196971
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
196972
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
196973
|
+
d: "M12 5V19",
|
|
196974
|
+
stroke: "#348CFD",
|
|
196975
|
+
strokeWidth: "2",
|
|
196976
|
+
strokeLinecap: "round",
|
|
196977
|
+
strokeLinejoin: "round"
|
|
196978
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
196979
|
+
d: "M5 12H19",
|
|
196980
|
+
stroke: "#348CFD",
|
|
196981
|
+
strokeWidth: "2",
|
|
196982
|
+
strokeLinecap: "round",
|
|
196983
|
+
strokeLinejoin: "round"
|
|
196984
|
+
}))), /*#__PURE__*/React.createElement("button", {
|
|
196985
|
+
onClick: () => onSelectItem(item),
|
|
196986
|
+
className: `text-foreground flex h-7 w-full flex-grow cursor-pointer items-center justify-between rounded p-1 text-sm ${item.id === selectedItem?.id ? 'bg-primary/20' : 'bg-muted hover:bg-primary/30'} focus-visible:ring-ring focus-visible:outline-none focus-visible:ring-1`,
|
|
196987
|
+
"aria-pressed": item.id === selectedItem?.id
|
|
196988
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
196989
|
+
className: "ml-1"
|
|
196990
|
+
}, item.name), item.availability === 'available' && /*#__PURE__*/React.createElement("span", {
|
|
196991
|
+
className: "text-muted-foreground text-xs"
|
|
196992
|
+
}, "Available"), item.availability === 'loaded' && /*#__PURE__*/React.createElement(Button, {
|
|
196993
|
+
variant: "ghost",
|
|
196994
|
+
size: "icon",
|
|
196995
|
+
onClick: e => {
|
|
196996
|
+
e.stopPropagation(); // Prevent parent onClick
|
|
196997
|
+
onToggleVisibility(item.id);
|
|
196998
|
+
},
|
|
196999
|
+
"aria-label": item.visibility === 'Visible' ? `Hide ${item.name}` : `Show ${item.name}`
|
|
197000
|
+
}, item.visibility === 'Visible' ?
|
|
197001
|
+
/*#__PURE__*/
|
|
197002
|
+
// SVG Icon for "Visible"
|
|
197003
|
+
React.createElement("svg", {
|
|
197004
|
+
width: "24px",
|
|
197005
|
+
height: "24px",
|
|
197006
|
+
viewBox: "0 0 24 24"
|
|
197007
|
+
}, /*#__PURE__*/React.createElement("g", {
|
|
197008
|
+
stroke: "none",
|
|
197009
|
+
strokeWidth: "1",
|
|
197010
|
+
fill: "none",
|
|
197011
|
+
fillRule: "evenodd"
|
|
197012
|
+
}, /*#__PURE__*/React.createElement("rect", {
|
|
197013
|
+
x: "0",
|
|
197014
|
+
y: "0",
|
|
197015
|
+
width: "24",
|
|
197016
|
+
height: "24"
|
|
197017
|
+
}), /*#__PURE__*/React.createElement("circle", {
|
|
197018
|
+
stroke: "#348CFD",
|
|
197019
|
+
strokeLinecap: "round",
|
|
197020
|
+
strokeLinejoin: "round",
|
|
197021
|
+
cx: "12.4986195",
|
|
197022
|
+
cy: "11.8041442",
|
|
197023
|
+
r: "2.58684689"
|
|
197024
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
197025
|
+
d: "M20.906611,11.5617197 C20.0470387,10.5861089 16.6094888,7 12.4986195,7 C8.38775024,7 4.95020027,10.5861089 4.090628,11.5617197 C3.96979067,11.7007491 3.96979067,11.9075393 4.090628,12.0465687 C4.95020027,13.0221796 8.38775024,16.6082885 12.4986195,16.6082885 C16.6094888,16.6082885 20.0470387,13.0221796 20.906611,12.0465687 C21.0274483,11.9075393 21.0274483,11.7007491 20.906611,11.5617197 Z",
|
|
197026
|
+
stroke: "#348CFD",
|
|
197027
|
+
strokeLinecap: "round",
|
|
197028
|
+
strokeLinejoin: "round"
|
|
197029
|
+
}))) :
|
|
197030
|
+
/*#__PURE__*/
|
|
197031
|
+
// SVG Icon for "Hidden"
|
|
197032
|
+
React.createElement("svg", {
|
|
197033
|
+
width: "24px",
|
|
197034
|
+
height: "24px",
|
|
197035
|
+
viewBox: "0 0 24 24"
|
|
197036
|
+
}, /*#__PURE__*/React.createElement("g", {
|
|
197037
|
+
stroke: "none",
|
|
197038
|
+
strokeWidth: "1",
|
|
197039
|
+
fill: "none",
|
|
197040
|
+
fillRule: "evenodd"
|
|
197041
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
197042
|
+
d: "M18.0567826,8.96286957 C19.1471229,9.75269568 20.1356859,10.674229 21,11.7065217 C21,11.7065217 17.1949565,16.5108696 12.5,16.5108696 C11.7479876,16.5066962 11.0007435,16.3911225 10.2826087,16.167913",
|
|
197043
|
+
stroke: "#348CFD",
|
|
197044
|
+
strokeLinecap: "round",
|
|
197045
|
+
strokeLinejoin: "round"
|
|
197046
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
197047
|
+
d: "M6.93286957,14.4413043 C5.84666081,13.6535964 4.86162018,12.7350857 4,11.7065217 C4,11.7065217 7.80504348,6.90217391 12.5,6.90217391 C13.1235541,6.90480509 13.7443251,6.98550531 14.3478261,7.1423913",
|
|
197048
|
+
stroke: "#348CFD",
|
|
197049
|
+
strokeLinecap: "round",
|
|
197050
|
+
strokeLinejoin: "round"
|
|
197051
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
197052
|
+
d: "M9.54347826,11.7065217 C9.54347826,10.0736799 10.8671581,8.75 12.5,8.75",
|
|
197053
|
+
stroke: "#348CFD",
|
|
197054
|
+
strokeLinecap: "round",
|
|
197055
|
+
strokeLinejoin: "round"
|
|
197056
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
197057
|
+
d: "M15.4565217,11.7065217 C15.4565217,13.3393636 14.1328419,14.6630435 12.5,14.6630435",
|
|
197058
|
+
stroke: "#348CFD",
|
|
197059
|
+
strokeLinecap: "round",
|
|
197060
|
+
strokeLinejoin: "round"
|
|
197061
|
+
}), /*#__PURE__*/React.createElement("line", {
|
|
197062
|
+
x1: "19.7065217",
|
|
197063
|
+
y1: "4.5",
|
|
197064
|
+
x2: "5.29347826",
|
|
197065
|
+
y2: "18.9130435",
|
|
197066
|
+
stroke: "#348CFD",
|
|
197067
|
+
strokeLinecap: "round",
|
|
197068
|
+
strokeLinejoin: "round"
|
|
197069
|
+
})))))))));
|
|
197070
|
+
};
|
|
197071
|
+
/* harmony default export */ const PanelSplit_ItemList = ((/* unused pure expression or super */ null && (ItemList_ItemList)));
|
|
197072
|
+
;// CONCATENATED MODULE: ../../ui-next/src/_prototypes/PanelSplit/PropertiesPanel.tsx
|
|
197073
|
+
|
|
197074
|
+
|
|
197075
|
+
|
|
197076
|
+
|
|
197077
|
+
|
|
197078
|
+
|
|
197079
|
+
|
|
197080
|
+
/**
|
|
197081
|
+
* PropertiesPanel Component
|
|
197082
|
+
*
|
|
197083
|
+
* Displays and manages the properties of the selected item.
|
|
197084
|
+
* Renders different content based on the item's availability state.
|
|
197085
|
+
*
|
|
197086
|
+
* @param selectedItem - The currently selected item.
|
|
197087
|
+
* @param onUpdateProperty - Callback to handle property updates.
|
|
197088
|
+
* @param onAddItem - Callback to handle adding the item.
|
|
197089
|
+
*/
|
|
197090
|
+
const PropertiesPanel_PropertiesPanel = ({
|
|
197091
|
+
selectedItem,
|
|
197092
|
+
onUpdateProperty,
|
|
197093
|
+
onAddItem
|
|
197094
|
+
}) => {
|
|
197095
|
+
if (!selectedItem) {
|
|
197096
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
197097
|
+
className: "text-gray-500"
|
|
197098
|
+
}, /*#__PURE__*/React.createElement("p", null, "No item selected."));
|
|
197099
|
+
}
|
|
197100
|
+
if (selectedItem.availability === 'available') {
|
|
197101
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
197102
|
+
className: "flex flex-col items-center p-1.5 text-sm"
|
|
197103
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
197104
|
+
onClick: () => onAddItem(selectedItem.id),
|
|
197105
|
+
className: "mb-4 mt-2",
|
|
197106
|
+
variant: "default"
|
|
197107
|
+
}, "Add this item"), /*#__PURE__*/React.createElement("div", {
|
|
197108
|
+
className: "border-primary/30 mb-2 w-full border-b"
|
|
197109
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
197110
|
+
className: "text-foreground w-full text-left"
|
|
197111
|
+
}, "Series: ", /*#__PURE__*/React.createElement("span", {
|
|
197112
|
+
className: "text-muted-foreground"
|
|
197113
|
+
}, selectedItem.series)));
|
|
197114
|
+
}
|
|
197115
|
+
if (selectedItem.availability === 'loaded') {
|
|
197116
|
+
/**
|
|
197117
|
+
* Handles changes to a property's value.
|
|
197118
|
+
*
|
|
197119
|
+
* @param property - The property being updated.
|
|
197120
|
+
* @param newValue - The new value for the property.
|
|
197121
|
+
*/
|
|
197122
|
+
const handleChange = (property, newValue) => {
|
|
197123
|
+
console.log(`Updating property '${property.key}' to`, newValue); // Debug log
|
|
197124
|
+
onUpdateProperty(selectedItem.id, property.key, newValue);
|
|
197125
|
+
};
|
|
197126
|
+
|
|
197127
|
+
// Determine if the selected item is the master
|
|
197128
|
+
const isMaster = selectedItem.controlsAll;
|
|
197129
|
+
|
|
197130
|
+
/**
|
|
197131
|
+
* Handles changes to the display mode via Tabs.
|
|
197132
|
+
*
|
|
197133
|
+
* @param newDisplayMode - The new display mode selected.
|
|
197134
|
+
*/
|
|
197135
|
+
const handleDisplayModeChange = newDisplayMode => {
|
|
197136
|
+
console.log(`Display mode changed to`, newDisplayMode); // Debug log
|
|
197137
|
+
onUpdateProperty(selectedItem.id, 'displayMode', newDisplayMode);
|
|
197138
|
+
};
|
|
197139
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
197140
|
+
className: "p-1.5 text-sm"
|
|
197141
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
197142
|
+
className: "items-top mb-2.5 flex justify-between"
|
|
197143
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
197144
|
+
className: "text-foreground text-sm font-semibold"
|
|
197145
|
+
}, "Properties ", /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement("span", {
|
|
197146
|
+
className: "text-muted-foreground font-normal"
|
|
197147
|
+
}, selectedItem.name)), /*#__PURE__*/React.createElement(Tabs, {
|
|
197148
|
+
value: selectedItem.displayMode,
|
|
197149
|
+
onValueChange: handleDisplayModeChange,
|
|
197150
|
+
className: "ml-auto"
|
|
197151
|
+
}, /*#__PURE__*/React.createElement(TabsList, null, /*#__PURE__*/React.createElement(TabsTrigger, {
|
|
197152
|
+
value: "Fill & Outline"
|
|
197153
|
+
}, /*#__PURE__*/React.createElement("svg", {
|
|
197154
|
+
width: "18px",
|
|
197155
|
+
height: "18px",
|
|
197156
|
+
viewBox: "0 0 18 18"
|
|
197157
|
+
}, /*#__PURE__*/React.createElement("g", {
|
|
197158
|
+
id: "view-outline-fill",
|
|
197159
|
+
stroke: "none",
|
|
197160
|
+
strokeWidth: "1",
|
|
197161
|
+
fill: "none",
|
|
197162
|
+
fillRule: "evenodd"
|
|
197163
|
+
}, /*#__PURE__*/React.createElement("g", {
|
|
197164
|
+
id: "Group-13"
|
|
197165
|
+
}, /*#__PURE__*/React.createElement("rect", {
|
|
197166
|
+
id: "Rectangle",
|
|
197167
|
+
x: "0",
|
|
197168
|
+
y: "0",
|
|
197169
|
+
width: "18",
|
|
197170
|
+
height: "18"
|
|
197171
|
+
}), /*#__PURE__*/React.createElement("rect", {
|
|
197172
|
+
id: "Rectangle",
|
|
197173
|
+
stroke: "#348CFD",
|
|
197174
|
+
x: "1.5",
|
|
197175
|
+
y: "1.5",
|
|
197176
|
+
width: "15",
|
|
197177
|
+
height: "15",
|
|
197178
|
+
rx: "1"
|
|
197179
|
+
}), /*#__PURE__*/React.createElement("rect", {
|
|
197180
|
+
id: "Rectangle",
|
|
197181
|
+
fill: "#348CFD",
|
|
197182
|
+
x: "3.5",
|
|
197183
|
+
y: "3.5",
|
|
197184
|
+
width: "11",
|
|
197185
|
+
height: "11",
|
|
197186
|
+
rx: "1"
|
|
197187
|
+
}))))), /*#__PURE__*/React.createElement(TabsTrigger, {
|
|
197188
|
+
value: "Outline Only"
|
|
197189
|
+
}, /*#__PURE__*/React.createElement("svg", {
|
|
197190
|
+
width: "18px",
|
|
197191
|
+
height: "18px",
|
|
197192
|
+
viewBox: "0 0 18 18"
|
|
197193
|
+
}, /*#__PURE__*/React.createElement("g", {
|
|
197194
|
+
id: "view-outline",
|
|
197195
|
+
stroke: "none",
|
|
197196
|
+
strokeWidth: "1",
|
|
197197
|
+
fill: "none",
|
|
197198
|
+
fillRule: "evenodd"
|
|
197199
|
+
}, /*#__PURE__*/React.createElement("g", {
|
|
197200
|
+
id: "Group-13"
|
|
197201
|
+
}, /*#__PURE__*/React.createElement("rect", {
|
|
197202
|
+
id: "Rectangle",
|
|
197203
|
+
x: "0",
|
|
197204
|
+
y: "0",
|
|
197205
|
+
width: "18",
|
|
197206
|
+
height: "18"
|
|
197207
|
+
}), /*#__PURE__*/React.createElement("rect", {
|
|
197208
|
+
id: "Rectangle",
|
|
197209
|
+
stroke: "#348CFD",
|
|
197210
|
+
x: "1.5",
|
|
197211
|
+
y: "1.5",
|
|
197212
|
+
width: "15",
|
|
197213
|
+
height: "15",
|
|
197214
|
+
rx: "1"
|
|
197215
|
+
}))))), /*#__PURE__*/React.createElement(TabsTrigger, {
|
|
197216
|
+
value: "Fill Only"
|
|
197217
|
+
}, /*#__PURE__*/React.createElement("svg", {
|
|
197218
|
+
width: "18px",
|
|
197219
|
+
height: "18px",
|
|
197220
|
+
viewBox: "0 0 18 18"
|
|
197221
|
+
}, /*#__PURE__*/React.createElement("g", {
|
|
197222
|
+
id: "view-fill",
|
|
197223
|
+
stroke: "none",
|
|
197224
|
+
strokeWidth: "1",
|
|
197225
|
+
fill: "none",
|
|
197226
|
+
fillRule: "evenodd"
|
|
197227
|
+
}, /*#__PURE__*/React.createElement("g", {
|
|
197228
|
+
id: "Group-13"
|
|
197229
|
+
}, /*#__PURE__*/React.createElement("rect", {
|
|
197230
|
+
id: "Rectangle",
|
|
197231
|
+
x: "0",
|
|
197232
|
+
y: "0",
|
|
197233
|
+
width: "18",
|
|
197234
|
+
height: "18"
|
|
197235
|
+
}), /*#__PURE__*/React.createElement("rect", {
|
|
197236
|
+
id: "Rectangle",
|
|
197237
|
+
fill: "#348CFD",
|
|
197238
|
+
x: "2",
|
|
197239
|
+
y: "2",
|
|
197240
|
+
width: "14",
|
|
197241
|
+
height: "14",
|
|
197242
|
+
rx: "1"
|
|
197243
|
+
})))))), /*#__PURE__*/React.createElement("div", {
|
|
197244
|
+
className: "mt-0"
|
|
197245
|
+
}, /*#__PURE__*/React.createElement(TabsContent, {
|
|
197246
|
+
value: "Fill & Outline"
|
|
197247
|
+
}, /*#__PURE__*/React.createElement("p", {
|
|
197248
|
+
className: "text-muted-foreground text-xxs text-center"
|
|
197249
|
+
}, "Fill & Outline")), /*#__PURE__*/React.createElement(TabsContent, {
|
|
197250
|
+
value: "Outline Only"
|
|
197251
|
+
}, /*#__PURE__*/React.createElement("p", {
|
|
197252
|
+
className: "text-muted-foreground text-xxs text-center"
|
|
197253
|
+
}, "Outline Only")), /*#__PURE__*/React.createElement(TabsContent, {
|
|
197254
|
+
value: "Fill Only"
|
|
197255
|
+
}, /*#__PURE__*/React.createElement("p", {
|
|
197256
|
+
className: "text-muted-foreground text-xxs text-center"
|
|
197257
|
+
}, "Fill Only"))))), /*#__PURE__*/React.createElement("div", {
|
|
197258
|
+
className: "mb-3 space-y-3"
|
|
197259
|
+
}, selectedItem.properties.map(prop => /*#__PURE__*/React.createElement("div", {
|
|
197260
|
+
key: prop.key,
|
|
197261
|
+
className: "flex items-center justify-between space-x-4"
|
|
197262
|
+
}, /*#__PURE__*/React.createElement(Label, {
|
|
197263
|
+
htmlFor: prop.key,
|
|
197264
|
+
className: "flex-grow whitespace-nowrap"
|
|
197265
|
+
}, prop.label), /*#__PURE__*/React.createElement("div", {
|
|
197266
|
+
className: "flex items-center space-x-3"
|
|
197267
|
+
}, renderPropertyInput(prop, handleChange))))), !isMaster && /*#__PURE__*/React.createElement("div", {
|
|
197268
|
+
className: "text-foreground mb-1"
|
|
197269
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
197270
|
+
className: "border-primary/30 mb-2 w-full border-b"
|
|
197271
|
+
}), "Series: ", /*#__PURE__*/React.createElement("span", {
|
|
197272
|
+
className: "text-muted-foreground"
|
|
197273
|
+
}, selectedItem.series)));
|
|
197274
|
+
}
|
|
197275
|
+
|
|
197276
|
+
// For other availability states, you can add additional conditions if needed
|
|
197277
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
197278
|
+
className: "text-gray-500"
|
|
197279
|
+
}, /*#__PURE__*/React.createElement("p", null, "No properties available for the selected item."));
|
|
197280
|
+
};
|
|
197281
|
+
|
|
197282
|
+
/**
|
|
197283
|
+
* Renders the appropriate input component based on the property's type.
|
|
197284
|
+
*
|
|
197285
|
+
* @param prop - The property to render.
|
|
197286
|
+
* @param handleChange - Function to handle value changes.
|
|
197287
|
+
* @returns JSX Element corresponding to the property type.
|
|
197288
|
+
*/
|
|
197289
|
+
const renderPropertyInput = (prop, handleChange) => {
|
|
197290
|
+
switch (prop.type) {
|
|
197291
|
+
case 'slider':
|
|
197292
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Slider, {
|
|
197293
|
+
id: prop.key,
|
|
197294
|
+
value: [prop.value] // Pass as an array for Radix UI Slider
|
|
197295
|
+
,
|
|
197296
|
+
min: prop.min,
|
|
197297
|
+
max: prop.max,
|
|
197298
|
+
step: prop.step,
|
|
197299
|
+
onValueChange: values => {
|
|
197300
|
+
console.log(`Slider '${prop.key}' changed to`, values[0]); // Debug log
|
|
197301
|
+
handleChange(prop, values[0]);
|
|
197302
|
+
},
|
|
197303
|
+
className: "w-28"
|
|
197304
|
+
}), /*#__PURE__*/React.createElement(Input, {
|
|
197305
|
+
type: "number",
|
|
197306
|
+
id: prop.key,
|
|
197307
|
+
value: prop.value,
|
|
197308
|
+
min: prop.min,
|
|
197309
|
+
max: prop.max,
|
|
197310
|
+
step: prop.step,
|
|
197311
|
+
onChange: e => {
|
|
197312
|
+
const newVal = Number(e.target.value);
|
|
197313
|
+
console.log(`Input '${prop.key}' changed to`, newVal); // Debug log
|
|
197314
|
+
handleChange(prop, newVal);
|
|
197315
|
+
},
|
|
197316
|
+
className: "w-14"
|
|
197317
|
+
}));
|
|
197318
|
+
case 'boolean':
|
|
197319
|
+
return /*#__PURE__*/React.createElement(Switch, {
|
|
197320
|
+
id: prop.key,
|
|
197321
|
+
checked: prop.value,
|
|
197322
|
+
onCheckedChange: checked => {
|
|
197323
|
+
console.log(`Switch '${prop.key}' toggled to`, checked); // Debug log
|
|
197324
|
+
handleChange(prop, checked);
|
|
197325
|
+
}
|
|
197326
|
+
});
|
|
197327
|
+
|
|
197328
|
+
// Add more cases if you have other property types
|
|
197329
|
+
default:
|
|
197330
|
+
return null;
|
|
197331
|
+
}
|
|
197332
|
+
};
|
|
197333
|
+
/* harmony default export */ const PanelSplit_PropertiesPanel = ((/* unused pure expression or super */ null && (PropertiesPanel_PropertiesPanel)));
|
|
197334
|
+
;// CONCATENATED MODULE: ../../ui-next/src/_prototypes/PanelSplit/PanelSplit.tsx
|
|
197335
|
+
|
|
197336
|
+
|
|
197337
|
+
|
|
197338
|
+
|
|
197339
|
+
const PanelSplit = () => {
|
|
197340
|
+
const [selectedItem, setSelectedItem] = useState(null);
|
|
197341
|
+
const [items, setItems] = useState([{
|
|
197342
|
+
id: 1,
|
|
197343
|
+
name: 'All Items',
|
|
197344
|
+
controlsAll: true,
|
|
197345
|
+
// Master item
|
|
197346
|
+
displayMode: 'Fill & Outline',
|
|
197347
|
+
// Default display mode
|
|
197348
|
+
visibility: 'Visible',
|
|
197349
|
+
// Default visibility
|
|
197350
|
+
availability: 'loaded',
|
|
197351
|
+
// Set to 'loaded'
|
|
197352
|
+
properties: [{
|
|
197353
|
+
key: 'opacity',
|
|
197354
|
+
label: 'Opacity',
|
|
197355
|
+
type: 'slider',
|
|
197356
|
+
value: 50,
|
|
197357
|
+
min: 1,
|
|
197358
|
+
max: 100,
|
|
197359
|
+
step: 1
|
|
197360
|
+
}, {
|
|
197361
|
+
key: 'outline',
|
|
197362
|
+
label: 'Outline',
|
|
197363
|
+
type: 'slider',
|
|
197364
|
+
value: 5,
|
|
197365
|
+
min: 1,
|
|
197366
|
+
max: 10,
|
|
197367
|
+
step: 1
|
|
197368
|
+
}, {
|
|
197369
|
+
key: 'displayInactiveSegments',
|
|
197370
|
+
label: 'Display inactive segments',
|
|
197371
|
+
type: 'boolean',
|
|
197372
|
+
value: false
|
|
197373
|
+
}]
|
|
197374
|
+
}, {
|
|
197375
|
+
id: 2,
|
|
197376
|
+
name: 'List item 1',
|
|
197377
|
+
series: 'Series A',
|
|
197378
|
+
displayMode: 'Fill & Outline',
|
|
197379
|
+
// Default display mode
|
|
197380
|
+
visibility: 'Visible',
|
|
197381
|
+
// Default visibility
|
|
197382
|
+
availability: 'loaded',
|
|
197383
|
+
// Set to 'loaded'
|
|
197384
|
+
properties: [{
|
|
197385
|
+
key: 'opacity',
|
|
197386
|
+
label: 'Opacity',
|
|
197387
|
+
type: 'slider',
|
|
197388
|
+
value: 70,
|
|
197389
|
+
min: 1,
|
|
197390
|
+
max: 100,
|
|
197391
|
+
step: 1
|
|
197392
|
+
}, {
|
|
197393
|
+
key: 'outline',
|
|
197394
|
+
label: 'Outline',
|
|
197395
|
+
type: 'slider',
|
|
197396
|
+
value: 7,
|
|
197397
|
+
min: 1,
|
|
197398
|
+
max: 10,
|
|
197399
|
+
step: 1
|
|
197400
|
+
}]
|
|
197401
|
+
}, {
|
|
197402
|
+
id: 3,
|
|
197403
|
+
name: 'List item 2',
|
|
197404
|
+
series: 'Series B',
|
|
197405
|
+
displayMode: 'Fill & Outline',
|
|
197406
|
+
// Default display mode
|
|
197407
|
+
visibility: 'Visible',
|
|
197408
|
+
// Default visibility
|
|
197409
|
+
availability: 'loaded',
|
|
197410
|
+
// Set to 'loaded'
|
|
197411
|
+
properties: [{
|
|
197412
|
+
key: 'opacity',
|
|
197413
|
+
label: 'Opacity',
|
|
197414
|
+
type: 'slider',
|
|
197415
|
+
value: 70,
|
|
197416
|
+
min: 1,
|
|
197417
|
+
max: 100,
|
|
197418
|
+
step: 1
|
|
197419
|
+
}, {
|
|
197420
|
+
key: 'outline',
|
|
197421
|
+
label: 'Outline',
|
|
197422
|
+
type: 'slider',
|
|
197423
|
+
value: 7,
|
|
197424
|
+
min: 1,
|
|
197425
|
+
max: 10,
|
|
197426
|
+
step: 1
|
|
197427
|
+
}]
|
|
197428
|
+
}, {
|
|
197429
|
+
id: 4,
|
|
197430
|
+
name: 'List item 3',
|
|
197431
|
+
series: 'Series C',
|
|
197432
|
+
displayMode: 'Fill & Outline',
|
|
197433
|
+
// Default display mode
|
|
197434
|
+
visibility: 'Visible',
|
|
197435
|
+
// Visibility will not be shown initially
|
|
197436
|
+
availability: 'available',
|
|
197437
|
+
// Set to 'available'
|
|
197438
|
+
properties: [{
|
|
197439
|
+
key: 'opacity',
|
|
197440
|
+
label: 'Opacity',
|
|
197441
|
+
type: 'slider',
|
|
197442
|
+
value: 80,
|
|
197443
|
+
min: 1,
|
|
197444
|
+
max: 100,
|
|
197445
|
+
step: 1
|
|
197446
|
+
}, {
|
|
197447
|
+
key: 'outline',
|
|
197448
|
+
label: 'Outline',
|
|
197449
|
+
type: 'slider',
|
|
197450
|
+
value: 8,
|
|
197451
|
+
min: 1,
|
|
197452
|
+
max: 10,
|
|
197453
|
+
step: 1
|
|
197454
|
+
}]
|
|
197455
|
+
}
|
|
197456
|
+
// Add more items as needed
|
|
197457
|
+
]);
|
|
197458
|
+
|
|
197459
|
+
// Set the master item as selected by default on mount
|
|
197460
|
+
useEffect(() => {
|
|
197461
|
+
if (items.length > 0 && !selectedItem) {
|
|
197462
|
+
setSelectedItem(items.find(item => item.controlsAll) || items[0]);
|
|
197463
|
+
}
|
|
197464
|
+
}, [items, selectedItem]);
|
|
197465
|
+
|
|
197466
|
+
/**
|
|
197467
|
+
* Handles updating a property's value.
|
|
197468
|
+
*
|
|
197469
|
+
* @param itemId - The ID of the item being updated.
|
|
197470
|
+
* @param propertyKey - The key identifying the property.
|
|
197471
|
+
* @param newValue - The new value for the property.
|
|
197472
|
+
*/
|
|
197473
|
+
const handleUpdateProperty = (itemId, propertyKey, newValue) => {
|
|
197474
|
+
const masterItem = items.find(item => item.controlsAll);
|
|
197475
|
+
if (masterItem && itemId === masterItem.id) {
|
|
197476
|
+
if (propertyKey === 'displayMode') {
|
|
197477
|
+
// Update displayMode for all items
|
|
197478
|
+
setItems(prevItems => prevItems.map(item => ({
|
|
197479
|
+
...item,
|
|
197480
|
+
displayMode: newValue,
|
|
197481
|
+
// Set to the new displayMode
|
|
197482
|
+
properties: item.properties.map(prop => prop.key === propertyKey ? {
|
|
197483
|
+
...prop,
|
|
197484
|
+
value: newValue
|
|
197485
|
+
} : prop)
|
|
197486
|
+
})));
|
|
197487
|
+
|
|
197488
|
+
// Also update the selectedItem if it's the master
|
|
197489
|
+
setSelectedItem(prevSelected => prevSelected ? {
|
|
197490
|
+
...prevSelected,
|
|
197491
|
+
displayMode: newValue,
|
|
197492
|
+
properties: prevSelected.properties.map(prop => prop.key === propertyKey ? {
|
|
197493
|
+
...prop,
|
|
197494
|
+
value: newValue
|
|
197495
|
+
} : prop)
|
|
197496
|
+
} : prevSelected);
|
|
197497
|
+
} else if (propertyKey === 'visibility') {
|
|
197498
|
+
// Update visibility for all items
|
|
197499
|
+
setItems(prevItems => prevItems.map(item => ({
|
|
197500
|
+
...item,
|
|
197501
|
+
visibility: newValue // Set to the new visibility
|
|
197502
|
+
})));
|
|
197503
|
+
|
|
197504
|
+
// Also update the selectedItem if it's the master
|
|
197505
|
+
setSelectedItem(prevSelected => prevSelected ? {
|
|
197506
|
+
...prevSelected,
|
|
197507
|
+
visibility: newValue
|
|
197508
|
+
} : prevSelected);
|
|
197509
|
+
} else {
|
|
197510
|
+
// Update other properties for all items
|
|
197511
|
+
setItems(prevItems => prevItems.map(item => ({
|
|
197512
|
+
...item,
|
|
197513
|
+
properties: item.properties.map(prop => prop.key === propertyKey ? {
|
|
197514
|
+
...prop,
|
|
197515
|
+
value: newValue
|
|
197516
|
+
} : prop)
|
|
197517
|
+
})));
|
|
197518
|
+
|
|
197519
|
+
// Also update the selectedItem if it's the master
|
|
197520
|
+
setSelectedItem(prevSelected => prevSelected ? {
|
|
197521
|
+
...prevSelected,
|
|
197522
|
+
properties: prevSelected.properties.map(prop => prop.key === propertyKey ? {
|
|
197523
|
+
...prop,
|
|
197524
|
+
value: newValue
|
|
197525
|
+
} : prop)
|
|
197526
|
+
} : prevSelected);
|
|
197527
|
+
}
|
|
197528
|
+
} else {
|
|
197529
|
+
if (propertyKey === 'displayMode') {
|
|
197530
|
+
// Update displayMode only for the selected item
|
|
197531
|
+
setItems(prevItems => prevItems.map(item => item.id === itemId ? {
|
|
197532
|
+
...item,
|
|
197533
|
+
displayMode: newValue
|
|
197534
|
+
} : item));
|
|
197535
|
+
|
|
197536
|
+
// Update selectedItem
|
|
197537
|
+
setSelectedItem(prevSelected => prevSelected ? {
|
|
197538
|
+
...prevSelected,
|
|
197539
|
+
displayMode: newValue
|
|
197540
|
+
} : prevSelected);
|
|
197541
|
+
} else if (propertyKey === 'visibility') {
|
|
197542
|
+
// Toggle visibility only for the selected item
|
|
197543
|
+
setItems(prevItems => prevItems.map(item => item.id === itemId ? {
|
|
197544
|
+
...item,
|
|
197545
|
+
visibility: newValue
|
|
197546
|
+
} : item));
|
|
197547
|
+
|
|
197548
|
+
// Update selectedItem
|
|
197549
|
+
setSelectedItem(prevSelected => prevSelected ? {
|
|
197550
|
+
...prevSelected,
|
|
197551
|
+
visibility: newValue
|
|
197552
|
+
} : prevSelected);
|
|
197553
|
+
} else if (propertyKey === 'availability') {
|
|
197554
|
+
// Update availability only for the selected item
|
|
197555
|
+
setItems(prevItems => prevItems.map(item => item.id === itemId ? {
|
|
197556
|
+
...item,
|
|
197557
|
+
availability: newValue
|
|
197558
|
+
} : item));
|
|
197559
|
+
|
|
197560
|
+
// Update selectedItem
|
|
197561
|
+
setSelectedItem(prevSelected => prevSelected ? {
|
|
197562
|
+
...prevSelected,
|
|
197563
|
+
availability: newValue
|
|
197564
|
+
} : prevSelected);
|
|
197565
|
+
} else {
|
|
197566
|
+
// Update only the selected item's properties
|
|
197567
|
+
setItems(prevItems => prevItems.map(item => item.id === itemId ? {
|
|
197568
|
+
...item,
|
|
197569
|
+
properties: item.properties.map(prop => prop.key === propertyKey ? {
|
|
197570
|
+
...prop,
|
|
197571
|
+
value: newValue
|
|
197572
|
+
} : prop)
|
|
197573
|
+
} : item));
|
|
197574
|
+
|
|
197575
|
+
// Update selectedItem
|
|
197576
|
+
setSelectedItem(prevSelected => prevSelected ? {
|
|
197577
|
+
...prevSelected,
|
|
197578
|
+
properties: prevSelected.properties.map(prop => prop.key === propertyKey ? {
|
|
197579
|
+
...prop,
|
|
197580
|
+
value: newValue
|
|
197581
|
+
} : prop)
|
|
197582
|
+
} : prevSelected);
|
|
197583
|
+
}
|
|
197584
|
+
}
|
|
197585
|
+
};
|
|
197586
|
+
|
|
197587
|
+
/**
|
|
197588
|
+
* Handles selecting an item from the list.
|
|
197589
|
+
*
|
|
197590
|
+
* @param item - The item being selected.
|
|
197591
|
+
*/
|
|
197592
|
+
const handleSelectItem = item => {
|
|
197593
|
+
setSelectedItem(item);
|
|
197594
|
+
};
|
|
197595
|
+
|
|
197596
|
+
/**
|
|
197597
|
+
* Handles toggling the visibility of an item.
|
|
197598
|
+
*
|
|
197599
|
+
* @param itemId - The ID of the item being toggled.
|
|
197600
|
+
*/
|
|
197601
|
+
const handleToggleVisibility = itemId => {
|
|
197602
|
+
const item = items.find(item => item.id === itemId);
|
|
197603
|
+
if (item) {
|
|
197604
|
+
const newVisibility = item.visibility === 'Visible' ? 'Hidden' : 'Visible';
|
|
197605
|
+
handleUpdateProperty(itemId, 'visibility', newVisibility);
|
|
197606
|
+
}
|
|
197607
|
+
};
|
|
197608
|
+
|
|
197609
|
+
/**
|
|
197610
|
+
* Handles adding an item (changing availability from 'available' to 'loaded').
|
|
197611
|
+
*
|
|
197612
|
+
* @param itemId - The ID of the item being added.
|
|
197613
|
+
*/
|
|
197614
|
+
const handleAddItem = itemId => {
|
|
197615
|
+
handleUpdateProperty(itemId, 'availability', 'loaded');
|
|
197616
|
+
};
|
|
197617
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
197618
|
+
className: "flex h-full w-[262px] flex-col"
|
|
197619
|
+
}, /*#__PURE__*/React.createElement(ScrollArea, {
|
|
197620
|
+
className: "bg-muted h-[132px] rounded-t border-gray-300 p-1"
|
|
197621
|
+
}, /*#__PURE__*/React.createElement(ItemList, {
|
|
197622
|
+
items: items,
|
|
197623
|
+
onSelectItem: handleSelectItem,
|
|
197624
|
+
selectedItem: selectedItem,
|
|
197625
|
+
onToggleVisibility: handleToggleVisibility // Pass the toggle handler
|
|
197626
|
+
,
|
|
197627
|
+
onAddItem: handleAddItem // Pass the add handler
|
|
197628
|
+
})), /*#__PURE__*/React.createElement(ScrollArea, {
|
|
197629
|
+
className: "bg-popover max-h-[400px] flex-grow overflow-auto rounded p-1"
|
|
197630
|
+
}, /*#__PURE__*/React.createElement(PropertiesPanel, {
|
|
197631
|
+
selectedItem: selectedItem,
|
|
197632
|
+
onUpdateProperty: handleUpdateProperty,
|
|
197633
|
+
onAddItem: handleAddItem // Pass the add handler
|
|
197634
|
+
})));
|
|
197635
|
+
};
|
|
197636
|
+
/* harmony default export */ const PanelSplit_PanelSplit = ((/* unused pure expression or super */ null && (PanelSplit)));
|
|
197637
|
+
;// CONCATENATED MODULE: ../../ui-next/src/_prototypes/PanelSplit/index.ts
|
|
197638
|
+
|
|
197639
|
+
|
|
197640
|
+
|
|
196927
197641
|
;// CONCATENATED MODULE: ../../ui-next/src/components/index.ts
|
|
196928
197642
|
|
|
196929
197643
|
|
|
@@ -196952,6 +197666,11 @@ function Toolbox({
|
|
|
196952
197666
|
|
|
196953
197667
|
|
|
196954
197668
|
|
|
197669
|
+
|
|
197670
|
+
|
|
197671
|
+
|
|
197672
|
+
|
|
197673
|
+
// Prototypes
|
|
196955
197674
|
|
|
196956
197675
|
|
|
196957
197676
|
|
|
@@ -403232,7 +403951,7 @@ function __disposeResources(env) {
|
|
|
403232
403951
|
/******/ // This function allow to reference async chunks
|
|
403233
403952
|
/******/ __webpack_require__.u = (chunkId) => {
|
|
403234
403953
|
/******/ // return url for filenames based on template
|
|
403235
|
-
/******/ return "" + ({"1985":"polySeg","2158":"histogram-worker","7607":"suv-peak-worker"}[chunkId] || chunkId) + ".bundle." + {"79":"422d9ccbaaefa6b0a039","153":"
|
|
403954
|
+
/******/ return "" + ({"1985":"polySeg","2158":"histogram-worker","7607":"suv-peak-worker"}[chunkId] || chunkId) + ".bundle." + {"79":"422d9ccbaaefa6b0a039","153":"26839375de24e88aba65","818":"b6027359846cc90e32ff","962":"99965797c8353f273fa1","1169":"4622fde2805592aad5d0","1202":"55f140afb05e1ad5512c","1498":"ff6ba98c695ef559fec2","1540":"2a0208cc8d5cabfc569d","1985":"0a70e65fe89169ec7508","2119":"474bb516d56922db33b9","2158":"d97bab3206c49329f64b","2412":"e1abf9a60dcecb7f0c77","2791":"e744aac5300171cb2fa5","2831":"22245416b8edb6c9dc56","2898":"ef8d98b006bd8386d599","3286":"b9b3a165dc5a8b24b47f","3482":"850ff199da4a907674b4","3497":"512610422a2862584c55","3658":"e44755981b64e69a8d7e","3962":"e504478a353e52eb6a97","4210":"48668b411fdbabd4148b","4353":"9bcbdbc20f0413a48117","4530":"ec12dfd2fbf9083b164e","4757":"ed362a485344485c9f1c","4842":"975d1e3a7ca605172be0","4978":"ec6e397d724b3a104514","5793":"d1b4e887564bbb98752d","5888":"e34a932b1a9a00675174","5898":"be696e0b355efc1c7f05","5931":"f16bcd50591d83af9f7a","6010":"a41bef6e63d1f8f8af7f","6552":"3f20b95c2da2f6149c7a","6591":"246e910c05d0076154a8","6904":"da0d83fcd48a48cfaac1","7246":"3736e9f7b919e0f55c5c","7360":"58e4e66903c24ba44e4e","7376":"7af8c3bbd7b0a919845e","7502":"0256a1f690ff7508c9ea","7607":"54d68bc1808ad3d77994","7913":"a6a93115852315089a5a","8315":"5cac046f15998869dc97","8714":"36331faa35db985a786c","8944":"75ebf48ab17b459528e3","8993":"23cd5f8560800a97d798","8999":"121e290ea00e857fdf6d"}[chunkId] + ".js";
|
|
403236
403955
|
/******/ };
|
|
403237
403956
|
/******/ })();
|
|
403238
403957
|
/******/
|