@synnaxlabs/pluto 0.21.8 → 0.21.9
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/{Center-hbwH7rg9.js → Center-BK9Rcaa0.js} +2 -2
- package/dist/{Center-hbwH7rg9.js.map → Center-BK9Rcaa0.js.map} +1 -1
- package/dist/{Center-5NJ61qfA.cjs → Center-Cc_rR5pQ.cjs} +2 -2
- package/dist/{Center-5NJ61qfA.cjs.map → Center-Cc_rR5pQ.cjs.map} +1 -1
- package/dist/{Keyboard-DaFraUsQ.cjs → Keyboard-Byx8rGZt.cjs} +3 -3
- package/dist/{Keyboard-DaFraUsQ.cjs.map → Keyboard-Byx8rGZt.cjs.map} +1 -1
- package/dist/{Keyboard-nDIAR7Rj.js → Keyboard-D31SwhYT.js} +3 -3
- package/dist/{Keyboard-nDIAR7Rj.js.map → Keyboard-D31SwhYT.js.map} +1 -1
- package/dist/{LinePlot-BZDm4uxJ.cjs → LinePlot-Bnb8Ufob.cjs} +96 -65
- package/dist/LinePlot-Bnb8Ufob.cjs.map +1 -0
- package/dist/{LinePlot-tOiSUMjC.js → LinePlot-KYwy1D7H.js} +281 -250
- package/dist/LinePlot-KYwy1D7H.js.map +1 -0
- package/dist/{Link-BdWFvK8v.cjs → Link-Bq38h1dw.cjs} +2 -2
- package/dist/{Link-BdWFvK8v.cjs.map → Link-Bq38h1dw.cjs.map} +1 -1
- package/dist/{Link-d3CXVSaO.js → Link-DQKdkwWL.js} +2 -2
- package/dist/{Link-d3CXVSaO.js.map → Link-DQKdkwWL.js.map} +1 -1
- package/dist/{List-DcsWFiLT.js → List-BmP_se57.js} +3 -3
- package/dist/{List-DcsWFiLT.js.map → List-BmP_se57.js.map} +1 -1
- package/dist/{List-PlMTfEHi.cjs → List-BnB-C5vQ.cjs} +3 -3
- package/dist/{List-PlMTfEHi.cjs.map → List-BnB-C5vQ.cjs.map} +1 -1
- package/dist/{Toggle-C6Z8WPT3.cjs → Toggle-D3iCEbO1.cjs} +46 -46
- package/dist/{Toggle-C6Z8WPT3.cjs.map → Toggle-D3iCEbO1.cjs.map} +1 -1
- package/dist/{Toggle-DGLgYCOX.js → Toggle-bT5RpwfA.js} +399 -399
- package/dist/{Toggle-DGLgYCOX.js.map → Toggle-bT5RpwfA.js.map} +1 -1
- package/dist/{Video-DFtnAOYY.cjs → Video-B4sma9fk.cjs} +2 -2
- package/dist/{Video-DFtnAOYY.cjs.map → Video-B4sma9fk.cjs.map} +1 -1
- package/dist/{Video-SGhKphYR.js → Video-Cp6XjjOK.js} +2 -2
- package/dist/{Video-SGhKphYR.js.map → Video-Cp6XjjOK.js.map} +1 -1
- package/dist/{aggregator-BgImZc4o.js → aggregator-B8fg7W2s.js} +106 -106
- package/dist/aggregator-B8fg7W2s.js.map +1 -0
- package/dist/{aggregator-BpfMBUD1.cjs → aggregator-Bh2Kyzkg.cjs} +100 -100
- package/dist/aggregator-Bh2Kyzkg.cjs.map +1 -0
- package/dist/align.cjs +1 -1
- package/dist/align.js +1 -1
- package/dist/button.cjs +1 -1
- package/dist/button.js +1 -1
- package/dist/{color-DV-YGUvp.js → color-CjdRh-aN.js} +2 -2
- package/dist/{color-DV-YGUvp.js.map → color-CjdRh-aN.js.map} +1 -1
- package/dist/{color-BVVyrgRF.cjs → color-DBNbbjJy.cjs} +2 -2
- package/dist/{color-BVVyrgRF.cjs.map → color-DBNbbjJy.cjs.map} +1 -1
- package/dist/color.cjs +1 -1
- package/dist/color.js +1 -1
- package/dist/{css-Pf9qxhQ4.cjs → css-Ci8WUD5E.cjs} +112 -108
- package/dist/css-Ci8WUD5E.cjs.map +1 -0
- package/dist/{css-DoalWJF6.js → css-DKKmdhSr.js} +114 -110
- package/dist/css-DKKmdhSr.js.map +1 -0
- package/dist/css.cjs +2 -2
- package/dist/css.js +2 -2
- package/dist/dropdown.cjs +1 -1
- package/dist/dropdown.js +1 -1
- package/dist/ether.cjs +3 -3
- package/dist/ether.js +5 -5
- package/dist/{external-Cu6T11fi.cjs → external-9_cqFQy3.cjs} +6 -6
- package/dist/{external-Cu6T11fi.cjs.map → external-9_cqFQy3.cjs.map} +1 -1
- package/dist/{external-Blx0rtt2.cjs → external-B-zN2e5z.cjs} +6 -6
- package/dist/{external-Blx0rtt2.cjs.map → external-B-zN2e5z.cjs.map} +1 -1
- package/dist/{external-DeheWVb-.js → external-BM82B8W2.js} +6 -6
- package/dist/{external-DeheWVb-.js.map → external-BM82B8W2.js.map} +1 -1
- package/dist/{external-96EinZfY.js → external-BYqTC99W.js} +3 -3
- package/dist/external-BYqTC99W.js.map +1 -0
- package/dist/{external-5przQjJD.js → external-BfZYUV3z.js} +11 -11
- package/dist/{external-5przQjJD.js.map → external-BfZYUV3z.js.map} +1 -1
- package/dist/{external-SxB9IH0p.js → external-BpqCp_M1.js} +2 -2
- package/dist/external-BpqCp_M1.js.map +1 -0
- package/dist/{external-C6GmnG49.js → external-BrW40HJx.js} +6 -6
- package/dist/{external-C6GmnG49.js.map → external-BrW40HJx.js.map} +1 -1
- package/dist/{external-1osPryUV.js → external-CAOQcoqL.js} +5 -5
- package/dist/{external-1osPryUV.js.map → external-CAOQcoqL.js.map} +1 -1
- package/dist/{external-D8dWmF4U.cjs → external-CIVsFXOp.cjs} +2 -2
- package/dist/external-CIVsFXOp.cjs.map +1 -0
- package/dist/{external-BAdU6u03.js → external-CnNdgPsB.js} +5 -5
- package/dist/{external-BAdU6u03.js.map → external-CnNdgPsB.js.map} +1 -1
- package/dist/{external-DiFhWWS-.js → external-CwjCCHPi.js} +7 -7
- package/dist/{external-DiFhWWS-.js.map → external-CwjCCHPi.js.map} +1 -1
- package/dist/{external-DarqsFzT.js → external-DNHMAfGi.js} +5 -5
- package/dist/{external-DarqsFzT.js.map → external-DNHMAfGi.js.map} +1 -1
- package/dist/{external-0PM7JrzG.cjs → external-DVQ2SRoH.cjs} +5 -5
- package/dist/{external-0PM7JrzG.cjs.map → external-DVQ2SRoH.cjs.map} +1 -1
- package/dist/{external-16K8slq8.cjs → external-D_yXh8rn.cjs} +11 -11
- package/dist/{external-16K8slq8.cjs.map → external-D_yXh8rn.cjs.map} +1 -1
- package/dist/{external-CPx8XA9-.cjs → external-Df0D1YYb.cjs} +7 -7
- package/dist/{external-CPx8XA9-.cjs.map → external-Df0D1YYb.cjs.map} +1 -1
- package/dist/{external-DvGqQHd8.cjs → external-DhPBdJpR.cjs} +3 -3
- package/dist/external-DhPBdJpR.cjs.map +1 -0
- package/dist/{external-D7XrxOVE.cjs → external-DhiN6pEk.cjs} +4 -4
- package/dist/{external-D7XrxOVE.cjs.map → external-DhiN6pEk.cjs.map} +1 -1
- package/dist/{external-CsO29OsF.cjs → external-DjYXzP7v.cjs} +7 -7
- package/dist/{external-CsO29OsF.cjs.map → external-DjYXzP7v.cjs.map} +1 -1
- package/dist/{external-B3ly2-jy.js → external-FWIwgLzc.js} +7 -7
- package/dist/{external-B3ly2-jy.js.map → external-FWIwgLzc.js.map} +1 -1
- package/dist/{external-B0z7uXZV.cjs → external-Iv2mRce8.cjs} +5 -5
- package/dist/{external-B0z7uXZV.cjs.map → external-Iv2mRce8.cjs.map} +1 -1
- package/dist/{external-CzJYG1hX.cjs → external-P6zP6dBA.cjs} +3 -3
- package/dist/external-P6zP6dBA.cjs.map +1 -0
- package/dist/{external-D4ur_D1S.cjs → external-d-vI8EHK.cjs} +5 -5
- package/dist/{external-D4ur_D1S.cjs.map → external-d-vI8EHK.cjs.map} +1 -1
- package/dist/{external-DQkw1ko0.js → external-giUMrk8w.js} +4 -4
- package/dist/{external-DQkw1ko0.js.map → external-giUMrk8w.js.map} +1 -1
- package/dist/{external-CgMwmBnF.js → external-zG96smqq.js} +3 -3
- package/dist/external-zG96smqq.js.map +1 -0
- package/dist/header.cjs +1 -1
- package/dist/header.js +1 -1
- package/dist/index.cjs +30 -30
- package/dist/index.js +55 -55
- package/dist/index.js.map +1 -1
- package/dist/input.cjs +1 -1
- package/dist/input.js +1 -1
- package/dist/list.cjs +1 -1
- package/dist/list.js +1 -1
- package/dist/menu.cjs +1 -1
- package/dist/menu.js +1 -1
- package/dist/src/telem/client/cache/cache.d.ts +3 -8
- package/dist/src/telem/client/cache/cache.d.ts.map +1 -1
- package/dist/src/telem/client/cache/dynamic.d.ts +13 -3
- package/dist/src/telem/client/cache/dynamic.d.ts.map +1 -1
- package/dist/src/telem/client/client.d.ts +1 -1
- package/dist/tabs.cjs +1 -1
- package/dist/tabs.js +1 -1
- package/dist/text.cjs +2 -2
- package/dist/text.js +2 -2
- package/dist/theming.cjs +2 -2
- package/dist/theming.js +2 -2
- package/dist/tree.cjs +1 -1
- package/dist/tree.js +1 -1
- package/dist/triggers.cjs +1 -1
- package/dist/triggers.js +1 -1
- package/dist/video.cjs +1 -1
- package/dist/video.js +1 -1
- package/package.json +2 -2
- package/dist/LinePlot-BZDm4uxJ.cjs.map +0 -1
- package/dist/LinePlot-tOiSUMjC.js.map +0 -1
- package/dist/aggregator-BgImZc4o.js.map +0 -1
- package/dist/aggregator-BpfMBUD1.cjs.map +0 -1
- package/dist/css-DoalWJF6.js.map +0 -1
- package/dist/css-Pf9qxhQ4.cjs.map +0 -1
- package/dist/external-96EinZfY.js.map +0 -1
- package/dist/external-CgMwmBnF.js.map +0 -1
- package/dist/external-CzJYG1hX.cjs.map +0 -1
- package/dist/external-D8dWmF4U.cjs.map +0 -1
- package/dist/external-DvGqQHd8.cjs.map +0 -1
- package/dist/external-SxB9IH0p.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"external-
|
|
1
|
+
{"version":3,"file":"external-giUMrk8w.js","sources":["../src/menu/Menu.tsx","../src/menu/Item.tsx"],"sourcesContent":["// Copyright 2023 Synnax Labs, Inc.\n//\n// Use of this software is governed by the Business Source License included in the file\n// licenses/BSL.txt.\n//\n// As of the Change Date specified in that file, in accordance with the Business Source\n// License, use of this software will be governed by the Apache License, Version 2.0,\n// included in the file licenses/APL.txt.\n\nimport {\n createContext,\n type PropsWithChildren,\n type ReactElement,\n useContext,\n} from \"react\";\n\nimport { type Input } from \"@/input\";\nimport { type Text } from \"@/text\";\nimport { type ComponentSize } from \"@/util/component\";\n\ninterface MenuContextValue {\n onClick: (key: string) => void;\n selected: string;\n level?: Text.Level;\n iconSpacing?: ComponentSize;\n}\n\nexport const MenuContext = createContext<MenuContextValue>({\n onClick: () => {},\n selected: \"\",\n});\n\nexport interface MenuProps\n extends Partial<Input.Control<string>>,\n PropsWithChildren,\n Pick<MenuContextValue, \"level\" | \"iconSpacing\"> {}\n\nexport const useMenuContext = (): MenuContextValue => useContext(MenuContext);\n\n/**\n * Menu is a modular component that allows you to create a menu with a list of items.\n * It satisfies the InputControl string interface, so it's selected value can be\n * controlled.\n *\n * @param props - Props for the component. All unlisted props will be spread to the\n * underlying Space component acting as the root element.\n * @param props.onChange - Callback executed when the selected item changes.\n * @param props.value - The selected item.\n */\nexport const Menu = ({\n children,\n onChange,\n level,\n iconSpacing,\n value = \"\",\n}: MenuProps): ReactElement => {\n const handleClick: MenuProps[\"onChange\"] = (key) => onChange?.(key);\n return (\n <MenuContext.Provider\n value={{ onClick: handleClick, selected: value, level, iconSpacing }}\n >\n {children}\n </MenuContext.Provider>\n );\n};\n","// Copyright 2023 Synnax Labs, Inc.\n//\n// Use of this software is governed by the Business Source License included in the file\n// licenses/BSL.txt.\n//\n// As of the Change Date specified in that file, in accordance with the Business Source\n// License, use of this software will be governed by the Apache License, Version 2.0,\n// included in the file licenses/APL.txt.\n\nimport { type FunctionComponent, type ReactElement } from \"react\";\n\nimport { Button } from \"@/button\";\nimport { CSS } from \"@/css\";\nimport { useMenuContext } from \"@/menu/Menu\";\n\nimport \"@/menu/Item.css\";\n\nconst menuItemFactory =\n <E extends Pick<Button.ButtonProps, \"className\" | \"onClick\" | \"size\">>(\n Base: FunctionComponent<E>,\n defaultProps?: Partial<E>,\n ): FunctionComponent<E & { itemKey: string }> =>\n // eslint-disable-next-line react/display-name\n (props): ReactElement => {\n const { itemKey, className, onClick, size, ...rest } = {\n ...defaultProps,\n ...props,\n };\n\n const { onClick: ctxOnClick, selected, level, iconSpacing } = useMenuContext();\n\n const handleClick: Button.ButtonProps[\"onClick\"] = (e) => {\n ctxOnClick(itemKey);\n onClick?.(e);\n };\n const _selected = selected === itemKey;\n return (\n // @ts-expect-error\n <Base\n level={level}\n {...rest}\n onClick={handleClick}\n variant=\"text\"\n className={CSS(CSS.B(\"menu-item\"), CSS.selected(_selected), className)}\n size={size ?? iconSpacing}\n />\n );\n };\n\nexport interface ItemProps extends Button.ButtonProps {\n itemKey: string;\n}\nexport const CoreItem = menuItemFactory(Button.Button, { noWrap: true });\n\nexport interface ItemIconProps extends Button.IconProps {\n itemKey: string;\n}\nconst ItemIcon = menuItemFactory(Button.Icon);\n\nconst ItemLink = menuItemFactory(Button.Link, { noWrap: true });\nexport interface MenuItemLinkProps extends Button.LinkProps {\n itemKey: string;\n}\n\ntype CoreItemType = typeof CoreItem;\n\nexport interface ItemType extends CoreItemType {\n Icon: typeof ItemIcon;\n Link: typeof ItemLink;\n}\n\n/**\n * Menu.Item renders a menu item.\n *\n * @param props - Props for the component. Identical props to those of Use except\n * for the ones listed below.\n * @param props.itemKey - The key of the item. This is used to identify the item and\n * is passed to the onChange callback of the Menu.\n */\nexport const Item = CoreItem as ItemType;\nItem.Icon = ItemIcon;\nItem.Link = ItemLink;\n"],"names":["jsx","Button.Button","Button.Icon","Button.Link"],"mappings":";;;;;AA2BO,MAAM,cAAc,cAAgC;AAAA,EACzD,SAAS,MAAM;AAAA,EAAC;AAAA,EAChB,UAAU;AACZ,CAAC;AAOY,MAAA,iBAAiB,MAAwB,WAAW,WAAW;AAYrE,MAAM,OAAO,CAAC;AAAA,EACnB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,QAAQ;AACV,MAA+B;AAC7B,QAAM,cAAqC,CAAC,QAAQ,qCAAW;AAE7D,SAAAA,kCAAA;AAAA,IAAC,YAAY;AAAA,IAAZ;AAAA,MACC,OAAO,EAAE,SAAS,aAAa,UAAU,OAAO,OAAO,YAAY;AAAA,MAElE;AAAA,IAAA;AAAA,EAAA;AAGP;AC/CA,MAAM,kBACJ,CACE,MACA;AAAA;AAAA,EAGF,CAAC,UAAwB;AACvB,UAAM,EAAE,SAAS,WAAW,SAAS,MAAM,GAAG,SAAS;AAAA,MACrD,GAAG;AAAA,MACH,GAAG;AAAA,IAAA;AAGL,UAAM,EAAE,SAAS,YAAY,UAAU,OAAO,YAAA,IAAgB;AAExD,UAAA,cAA6C,CAAC,MAAM;AACxD,iBAAW,OAAO;AAClB,yCAAU;AAAA,IAAC;AAEb,UAAM,YAAY,aAAa;AAC/B;AAAA;AAAA,MAEEA,kCAAA;AAAA,QAAC;AAAA,QAAA;AAAA,UACC;AAAA,UACC,GAAG;AAAA,UACJ,SAAS;AAAA,UACT,SAAQ;AAAA,UACR,WAAW,IAAI,IAAI,EAAE,WAAW,GAAG,IAAI,SAAS,SAAS,GAAG,SAAS;AAAA,UACrE,MAAM,QAAQ;AAAA,QAAA;AAAA,MAChB;AAAA;AAAA,EAEJ;AAAA;AAKK,MAAM,WAAW,gBAAgBC,QAAe,EAAE,QAAQ,KAAM,CAAA;AAKvE,MAAM,WAAW,gBAAgBC,IAAW;AAE5C,MAAM,WAAW,gBAAgBC,MAAa,EAAE,QAAQ,KAAM,CAAA;AAoBvD,MAAM,OAAO;AACpB,KAAK,OAAO;AACZ,KAAK,OAAO;;;;;;;;;;;;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as Button, I as Icon, T as Toggle, d as ToggleIcon } from "./Toggle-
|
|
2
|
-
import { L as Link } from "./Link-
|
|
1
|
+
import { B as Button, I as Icon, T as Toggle, d as ToggleIcon } from "./Toggle-bT5RpwfA.js";
|
|
2
|
+
import { L as Link } from "./Link-DQKdkwWL.js";
|
|
3
3
|
const external = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4
4
|
__proto__: null,
|
|
5
5
|
Button,
|
|
@@ -11,4 +11,4 @@ const external = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProp
|
|
|
11
11
|
export {
|
|
12
12
|
external as e
|
|
13
13
|
};
|
|
14
|
-
//# sourceMappingURL=external-
|
|
14
|
+
//# sourceMappingURL=external-zG96smqq.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"external-zG96smqq.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;"}
|
package/dist/header.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const external = require("./external-
|
|
3
|
+
const external = require("./external-DVQ2SRoH.cjs");
|
|
4
4
|
exports.Header = external.external;
|
|
5
5
|
//# sourceMappingURL=header.cjs.map
|
package/dist/header.js
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -8,26 +8,26 @@ var __publicField = (obj, key, value2) => {
|
|
|
8
8
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
9
9
|
const jsxRuntime = require("./jsx-runtime-B3vWrP5x.cjs");
|
|
10
10
|
const React = require("react");
|
|
11
|
-
const Toggle$1 = require("./Toggle-
|
|
12
|
-
const css = require("./css-
|
|
13
|
-
const external$l = require("./external-
|
|
14
|
-
const aggregator = require("./aggregator-
|
|
15
|
-
const Center$1 = require("./Center-
|
|
16
|
-
const LinePlot$2 = require("./LinePlot-
|
|
17
|
-
const external$k = require("./external-
|
|
18
|
-
const external$t = require("./external-
|
|
19
|
-
const external$q = require("./external-
|
|
11
|
+
const Toggle$1 = require("./Toggle-D3iCEbO1.cjs");
|
|
12
|
+
const css = require("./css-Ci8WUD5E.cjs");
|
|
13
|
+
const external$l = require("./external-DVQ2SRoH.cjs");
|
|
14
|
+
const aggregator = require("./aggregator-Bh2Kyzkg.cjs");
|
|
15
|
+
const Center$1 = require("./Center-Cc_rR5pQ.cjs");
|
|
16
|
+
const LinePlot$2 = require("./LinePlot-Bnb8Ufob.cjs");
|
|
17
|
+
const external$k = require("./external-d-vI8EHK.cjs");
|
|
18
|
+
const external$t = require("./external-9_cqFQy3.cjs");
|
|
19
|
+
const external$q = require("./external-DjYXzP7v.cjs");
|
|
20
20
|
const reactDom = require("react-dom");
|
|
21
|
-
const external$o = require("./external-
|
|
22
|
-
const external$n = require("./external-
|
|
23
|
-
const external$i = require("./external-
|
|
24
|
-
const external$j = require("./external-
|
|
25
|
-
const color = require("./color-
|
|
26
|
-
const external$m = require("./external-
|
|
27
|
-
const external$p = require("./external-
|
|
28
|
-
const external$r = require("./external-
|
|
29
|
-
const external$s = require("./external-
|
|
30
|
-
const Video = require("./Video-
|
|
21
|
+
const external$o = require("./external-DhiN6pEk.cjs");
|
|
22
|
+
const external$n = require("./external-B-zN2e5z.cjs");
|
|
23
|
+
const external$i = require("./external-CIVsFXOp.cjs");
|
|
24
|
+
const external$j = require("./external-P6zP6dBA.cjs");
|
|
25
|
+
const color = require("./color-DBNbbjJy.cjs");
|
|
26
|
+
const external$m = require("./external-D_yXh8rn.cjs");
|
|
27
|
+
const external$p = require("./external-Iv2mRce8.cjs");
|
|
28
|
+
const external$r = require("./external-DhPBdJpR.cjs");
|
|
29
|
+
const external$s = require("./external-Df0D1YYb.cjs");
|
|
30
|
+
const Video = require("./Video-B4sma9fk.cjs");
|
|
31
31
|
const zod = require("zod");
|
|
32
32
|
const Circle$1 = ({ variant, ...props }) => {
|
|
33
33
|
return /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(Toggle$1.m0.Circle, { color: Toggle$1.variantColors[variant], ...props });
|
|
@@ -297,7 +297,7 @@ const calculateInitialSizeDistribution = (initial, count) => {
|
|
|
297
297
|
};
|
|
298
298
|
const DELTA = 1e-3;
|
|
299
299
|
const slightlyOffsetEvenDistribution = (sizes) => {
|
|
300
|
-
if (sizes.every((v) => css.
|
|
300
|
+
if (sizes.every((v) => css.L.closeTo(v, 1 / sizes.length), DELTA))
|
|
301
301
|
return sizes.map((v, i) => {
|
|
302
302
|
if (i % 2 === 0)
|
|
303
303
|
return v + DELTA;
|
|
@@ -2247,8 +2247,8 @@ const Rule = Toggle$1.wrap$1(
|
|
|
2247
2247
|
return;
|
|
2248
2248
|
if (propsPosition == null)
|
|
2249
2249
|
return onPositionChange == null ? void 0 : onPositionChange(position);
|
|
2250
|
-
const b = css.
|
|
2251
|
-
if (propsPosition != null && !css.
|
|
2250
|
+
const b = css.C.construct(position + 0.01, position - 0.01);
|
|
2251
|
+
if (propsPosition != null && !css.C.contains(b, propsPosition))
|
|
2252
2252
|
onPositionChange == null ? void 0 : onPositionChange(Math.trunc(position * 100) / 100);
|
|
2253
2253
|
}, [position]);
|
|
2254
2254
|
const pixelPosRef = React.useRef(pixelPosition);
|
|
@@ -5224,7 +5224,7 @@ const Indicator = Toggle$1.wrap$1(
|
|
|
5224
5224
|
key: "no_chip",
|
|
5225
5225
|
variant: "warning",
|
|
5226
5226
|
message: "No chip connected.",
|
|
5227
|
-
time: aggregator.
|
|
5227
|
+
time: aggregator.m.now()
|
|
5228
5228
|
}
|
|
5229
5229
|
},
|
|
5230
5230
|
schema: LinePlot$2.indicatorStateZ
|
|
@@ -5308,7 +5308,7 @@ const Chip = Toggle$1.wrap$1(
|
|
|
5308
5308
|
key: "no_chip",
|
|
5309
5309
|
variant: "disabled",
|
|
5310
5310
|
message: "No chip connected.",
|
|
5311
|
-
time: aggregator.
|
|
5311
|
+
time: aggregator.m.now()
|
|
5312
5312
|
}
|
|
5313
5313
|
}
|
|
5314
5314
|
});
|
|
@@ -8295,11 +8295,11 @@ const Pluto = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePropert
|
|
|
8295
8295
|
Provider
|
|
8296
8296
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
8297
8297
|
const TimeRangeChip = ({ timeRange }) => {
|
|
8298
|
-
const startTS = new aggregator.
|
|
8298
|
+
const startTS = new aggregator.m(timeRange.start);
|
|
8299
8299
|
const startFormat = startTS.isToday ? "time" : "dateTime";
|
|
8300
|
-
const endTS = new aggregator.
|
|
8301
|
-
const isOpen = endTS.equals(aggregator.
|
|
8302
|
-
const endFormat = endTS.span(startTS) < aggregator.
|
|
8300
|
+
const endTS = new aggregator.m(timeRange.end);
|
|
8301
|
+
const isOpen = endTS.equals(aggregator.m.MAX);
|
|
8302
|
+
const endFormat = endTS.span(startTS) < aggregator.w.DAY ? "time" : "dateTime";
|
|
8303
8303
|
return /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsxs(
|
|
8304
8304
|
Center$1.Space,
|
|
8305
8305
|
{
|
|
@@ -8478,8 +8478,8 @@ exports.MultiSeries = aggregator.lt;
|
|
|
8478
8478
|
exports.Rate = aggregator.q;
|
|
8479
8479
|
exports.Series = aggregator.N;
|
|
8480
8480
|
exports.TimeRange = aggregator.U;
|
|
8481
|
-
exports.TimeSpan = aggregator.
|
|
8482
|
-
exports.TimeStamp = aggregator.
|
|
8481
|
+
exports.TimeSpan = aggregator.w;
|
|
8482
|
+
exports.TimeStamp = aggregator.m;
|
|
8483
8483
|
exports.state = aggregator.state;
|
|
8484
8484
|
exports.Generic = Center$1.Generic;
|
|
8485
8485
|
exports.telem = LinePlot$2.external;
|
package/dist/index.js
CHANGED
|
@@ -6,38 +6,38 @@ var __publicField = (obj, key, value2) => {
|
|
|
6
6
|
};
|
|
7
7
|
import { j as jsxRuntimeExports } from "./jsx-runtime-mMz73N64.js";
|
|
8
8
|
import React__default, { isValidElement, forwardRef, Children, useRef, useState, useCallback, useEffect, createElement, memo, createContext, useContext as useContext$6, useMemo, useLayoutEffect, useImperativeHandle, useId, createRef, Fragment } from "react";
|
|
9
|
-
import { p as m0, aG as variantColors, e as Text, N as DateTime, I as Icon$1, B as Button$4, aH as Aggregator, aI as Text$1, aJ as useAggregator, aK as useContext$5, aL as useNotifications, aM as Config, aN as Context$5, aO as Dialog, aP as chooseLocation, aQ as formatTip, aR as useConfig, aS as wrap, aa as mouseKey, o as useSyncedRef, M as MaybeEditable, aT as wrap$1, aU as use$b, aV as useResize, aW as Composite, aX as useEffectCompare, aY as useMemoDeepEqualProps, aZ as useUniqueKey, c as useTypography, a_ as useStateRef, f as useMemoCompare, a1 as compareModeConfigs, a6 as flattenConfig, a2 as determineMode, y as useHeldRef, X as use$c, W as WithIcon, j as use$d, a$ as useAsyncEffect, aw as selectValueIsZero, av as Search, v as useSelectionUtils, ah as Text$2, G as componentRenderProp, E as Editable, s as useContextMenu, r as ContextMenu, b0 as usePrevious, b1 as useDrop, l as filterByType, b2 as canDropOfType, k as useDraggingState, x as useCombinedStateAndRef, m as useDragAndDrop, b3 as Provider$9, as as useDebouncedCallback, u as use$e, ad as purgeMouse, b4 as useCombinedRefs, d as ToggleIcon, al as Switch$2, ak as Numeric, a0 as Provider$b, b5 as Provider$c, P as Provider$d, b6 as Provider$e } from "./Toggle-
|
|
10
|
-
import { b7, b8, D, b9, ba, be, bd, bb, bc } from "./Toggle-
|
|
11
|
-
import { C as CSS, J, d as f,
|
|
12
|
-
import { n } from "./css-
|
|
13
|
-
import { H as Header, B as ButtonTitle, A as Actions } from "./external-
|
|
14
|
-
import { e } from "./external-
|
|
15
|
-
import { A, V as VARIANTS$1,
|
|
16
|
-
import { K, O, M, N, U, J as J2 } from "./aggregator-
|
|
17
|
-
import { S as Space, P as Pack } from "./Center-
|
|
18
|
-
import { G } from "./Center-
|
|
19
|
-
import { I as Canvas$2, J as canvasStateZ, K as useStore, M as shallow$1, N as cc, A as LinePlot$2, B as linePlotStateZ, O as filterGridEntries, P as Line$5, Q as stateZ, X as XAxis$2, Y as YAxis$2, S as coreAxisStateZ, T as parseAutoBounds, U as withinSizeThreshold, V as Tooltip$3, W as tooltipStateZ, Z as Measure$2, _ as measureStateZ, $ as Rule$2, a0 as ruleStateZ, a1 as Annotation$1, a2 as annotationStateZ, a3 as Provider$7, a4 as providerStateZ, a5 as streamChannelData, a6 as channelData, a7 as ZERO_CONTEXT_VALUE, a8 as Provider$8, a9 as Eraser$1, aa as eraserStateZ, ab as useReactFlow, ac as BaseEdge, ad as Diagram$1, ae as diagramStateZ, af as translateViewportBackward, ag as useOnViewportChange, ah as translateEdgesForward, ai as translateNodesForward, aj as nodeConverter, ak as edgeConverter, al as ReactFlow, am as translateViewportForward, an as ConnectionMode, ao as SelectionMode, ap as ReactFlowProvider, aq as applyNodeChanges, ar as applyEdgeChanges, as as updateEdge, at as addEdge, au as Value$2, av as Controller$1, aw as controllerStateZ, ax as StateProvider$1, ay as stateProviderStateZ, az as Indicator$1, aA as indicatorStateZ, aB as Chip$1, aC as chipStateZ, aD as Legend$2, aE as legendStateZ, aF as Button$6, aG as buttonStateZ, aH as Position, aI as useUpdateNodeInternals, aJ as Handle$1, aK as Toggle$1, aL as toggleStateZ, aM as useInitialViewport, aN as sourcePipelinePropsZ, aO as sinkPipelinePropsZ, aP as streamChannelValuePropsZ, aQ as setChannelValuePropsZ, aR as stringifyNumberProps, aS as rollingAverageProps, aT as sourcePipeline, aU as streamChannelValue, aV as withinBounds, aW as sinkPipeline, aX as setChannelValue, aY as setpoint, aZ as stringifyNumber, a_ as rollingAverage, a$ as authoritySource, b0 as acquireChannelControl, b1 as Provider$a, b2 as providerStateZ$1, b3 as BaseProvider, b4 as providerStateZ$2 } from "./LinePlot-
|
|
20
|
-
import { v } from "./LinePlot-
|
|
21
|
-
import { S as Swatch } from "./external-
|
|
22
|
-
import { e as e2 } from "./external-
|
|
23
|
-
import { u as useDrag, T as Text$3 } from "./external-
|
|
24
|
-
import { e as e3 } from "./external-
|
|
25
|
-
import { C as Core$2, B as Button$5, D as DropdownButton, a as BaseButton, d as defaultButton, S as SelectLevel } from "./external-
|
|
26
|
-
import { e as e4 } from "./external-
|
|
9
|
+
import { p as m0, aG as variantColors, e as Text, N as DateTime, I as Icon$1, B as Button$4, aH as Aggregator, aI as Text$1, aJ as useAggregator, aK as useContext$5, aL as useNotifications, aM as Config, aN as Context$5, aO as Dialog, aP as chooseLocation, aQ as formatTip, aR as useConfig, aS as wrap, aa as mouseKey, o as useSyncedRef, M as MaybeEditable, aT as wrap$1, aU as use$b, aV as useResize, aW as Composite, aX as useEffectCompare, aY as useMemoDeepEqualProps, aZ as useUniqueKey, c as useTypography, a_ as useStateRef, f as useMemoCompare, a1 as compareModeConfigs, a6 as flattenConfig, a2 as determineMode, y as useHeldRef, X as use$c, W as WithIcon, j as use$d, a$ as useAsyncEffect, aw as selectValueIsZero, av as Search, v as useSelectionUtils, ah as Text$2, G as componentRenderProp, E as Editable, s as useContextMenu, r as ContextMenu, b0 as usePrevious, b1 as useDrop, l as filterByType, b2 as canDropOfType, k as useDraggingState, x as useCombinedStateAndRef, m as useDragAndDrop, b3 as Provider$9, as as useDebouncedCallback, u as use$e, ad as purgeMouse, b4 as useCombinedRefs, d as ToggleIcon, al as Switch$2, ak as Numeric, a0 as Provider$b, b5 as Provider$c, P as Provider$d, b6 as Provider$e } from "./Toggle-bT5RpwfA.js";
|
|
10
|
+
import { b7, b8, D, b9, ba, be, bd, bb, bc } from "./Toggle-bT5RpwfA.js";
|
|
11
|
+
import { C as CSS, J, d as f, L, T as To, q, Y, g as clsx, h as k, _ as _$1, c as cssString, K as Ke, j as C, a as Color, Z as ZERO } from "./css-DKKmdhSr.js";
|
|
12
|
+
import { n } from "./css-DKKmdhSr.js";
|
|
13
|
+
import { H as Header, B as ButtonTitle, A as Actions } from "./external-CnNdgPsB.js";
|
|
14
|
+
import { e } from "./external-CnNdgPsB.js";
|
|
15
|
+
import { A, V as VARIANTS$1, o as specZ, v as variantZ, h as usePurePassthrough, n as w, _, C as ComponentSizeLevels, c as S, p as S$1, q as A$1, x as g, k as dimensions, y as _b, X, z as n2, B as o$1, l as levelZ, m as m$1, D as dk, E as is, F as i, G as a, H as h, I as B, w as w$1 } from "./aggregator-B8fg7W2s.js";
|
|
16
|
+
import { K, O, M, N, U, J as J2 } from "./aggregator-B8fg7W2s.js";
|
|
17
|
+
import { S as Space, P as Pack } from "./Center-BK9Rcaa0.js";
|
|
18
|
+
import { G } from "./Center-BK9Rcaa0.js";
|
|
19
|
+
import { I as Canvas$2, J as canvasStateZ, K as useStore, M as shallow$1, N as cc, A as LinePlot$2, B as linePlotStateZ, O as filterGridEntries, P as Line$5, Q as stateZ, X as XAxis$2, Y as YAxis$2, S as coreAxisStateZ, T as parseAutoBounds, U as withinSizeThreshold, V as Tooltip$3, W as tooltipStateZ, Z as Measure$2, _ as measureStateZ, $ as Rule$2, a0 as ruleStateZ, a1 as Annotation$1, a2 as annotationStateZ, a3 as Provider$7, a4 as providerStateZ, a5 as streamChannelData, a6 as channelData, a7 as ZERO_CONTEXT_VALUE, a8 as Provider$8, a9 as Eraser$1, aa as eraserStateZ, ab as useReactFlow, ac as BaseEdge, ad as Diagram$1, ae as diagramStateZ, af as translateViewportBackward, ag as useOnViewportChange, ah as translateEdgesForward, ai as translateNodesForward, aj as nodeConverter, ak as edgeConverter, al as ReactFlow, am as translateViewportForward, an as ConnectionMode, ao as SelectionMode, ap as ReactFlowProvider, aq as applyNodeChanges, ar as applyEdgeChanges, as as updateEdge, at as addEdge, au as Value$2, av as Controller$1, aw as controllerStateZ, ax as StateProvider$1, ay as stateProviderStateZ, az as Indicator$1, aA as indicatorStateZ, aB as Chip$1, aC as chipStateZ, aD as Legend$2, aE as legendStateZ, aF as Button$6, aG as buttonStateZ, aH as Position, aI as useUpdateNodeInternals, aJ as Handle$1, aK as Toggle$1, aL as toggleStateZ, aM as useInitialViewport, aN as sourcePipelinePropsZ, aO as sinkPipelinePropsZ, aP as streamChannelValuePropsZ, aQ as setChannelValuePropsZ, aR as stringifyNumberProps, aS as rollingAverageProps, aT as sourcePipeline, aU as streamChannelValue, aV as withinBounds, aW as sinkPipeline, aX as setChannelValue, aY as setpoint, aZ as stringifyNumber, a_ as rollingAverage, a$ as authoritySource, b0 as acquireChannelControl, b1 as Provider$a, b2 as providerStateZ$1, b3 as BaseProvider, b4 as providerStateZ$2 } from "./LinePlot-KYwy1D7H.js";
|
|
20
|
+
import { v } from "./LinePlot-KYwy1D7H.js";
|
|
21
|
+
import { S as Swatch } from "./external-DNHMAfGi.js";
|
|
22
|
+
import { e as e2 } from "./external-DNHMAfGi.js";
|
|
23
|
+
import { u as useDrag, T as Text$3 } from "./external-BM82B8W2.js";
|
|
24
|
+
import { e as e3 } from "./external-BM82B8W2.js";
|
|
25
|
+
import { C as Core$2, B as Button$5, D as DropdownButton, a as BaseButton, d as defaultButton, S as SelectLevel } from "./external-FWIwgLzc.js";
|
|
26
|
+
import { e as e4 } from "./external-FWIwgLzc.js";
|
|
27
27
|
import { createPortal } from "react-dom";
|
|
28
|
-
import { e as e5 } from "./external-
|
|
29
|
-
import { F as Filter$2 } from "./external-
|
|
30
|
-
import { e as e6, c, f as f2, p } from "./external-
|
|
31
|
-
import { e as e7 } from "./external-
|
|
32
|
-
import { e as e8 } from "./external-
|
|
33
|
-
import { c as c2, u } from "./color-
|
|
34
|
-
import { I as Item } from "./external-
|
|
35
|
-
import { e as e9 } from "./external-
|
|
36
|
-
import { r as resetSelection, a as rename, T as Tabs, u as useStatic } from "./external-
|
|
37
|
-
import { e as e10 } from "./external-
|
|
38
|
-
import { e as e11 } from "./external-
|
|
39
|
-
import { e as e12 } from "./external-
|
|
40
|
-
import { V } from "./Video-
|
|
28
|
+
import { e as e5 } from "./external-giUMrk8w.js";
|
|
29
|
+
import { F as Filter$2 } from "./external-BrW40HJx.js";
|
|
30
|
+
import { e as e6, c, f as f2, p } from "./external-BrW40HJx.js";
|
|
31
|
+
import { e as e7 } from "./external-BpqCp_M1.js";
|
|
32
|
+
import { e as e8 } from "./external-zG96smqq.js";
|
|
33
|
+
import { c as c2, u } from "./color-CjdRh-aN.js";
|
|
34
|
+
import { I as Item } from "./external-BfZYUV3z.js";
|
|
35
|
+
import { e as e9 } from "./external-BfZYUV3z.js";
|
|
36
|
+
import { r as resetSelection, a as rename, T as Tabs, u as useStatic } from "./external-CAOQcoqL.js";
|
|
37
|
+
import { e as e10 } from "./external-CAOQcoqL.js";
|
|
38
|
+
import { e as e11 } from "./external-BYqTC99W.js";
|
|
39
|
+
import { e as e12 } from "./external-CwjCCHPi.js";
|
|
40
|
+
import { V } from "./Video-Cp6XjjOK.js";
|
|
41
41
|
import { z } from "zod";
|
|
42
42
|
const Circle$1 = ({ variant, ...props }) => {
|
|
43
43
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(m0.Circle, { color: variantColors[variant], ...props });
|
|
@@ -307,7 +307,7 @@ const calculateInitialSizeDistribution = (initial, count) => {
|
|
|
307
307
|
};
|
|
308
308
|
const DELTA = 1e-3;
|
|
309
309
|
const slightlyOffsetEvenDistribution = (sizes) => {
|
|
310
|
-
if (sizes.every((v2) =>
|
|
310
|
+
if (sizes.every((v2) => L.closeTo(v2, 1 / sizes.length), DELTA))
|
|
311
311
|
return sizes.map((v2, i2) => {
|
|
312
312
|
if (i2 % 2 === 0)
|
|
313
313
|
return v2 + DELTA;
|
|
@@ -2257,8 +2257,8 @@ const Rule = wrap$1(
|
|
|
2257
2257
|
return;
|
|
2258
2258
|
if (propsPosition == null)
|
|
2259
2259
|
return onPositionChange == null ? void 0 : onPositionChange(position);
|
|
2260
|
-
const b =
|
|
2261
|
-
if (propsPosition != null && !
|
|
2260
|
+
const b = C.construct(position + 0.01, position - 0.01);
|
|
2261
|
+
if (propsPosition != null && !C.contains(b, propsPosition))
|
|
2262
2262
|
onPositionChange == null ? void 0 : onPositionChange(Math.trunc(position * 100) / 100);
|
|
2263
2263
|
}, [position]);
|
|
2264
2264
|
const pixelPosRef = useRef(pixelPosition);
|
|
@@ -2567,7 +2567,7 @@ const XAxis = ({
|
|
|
2567
2567
|
}
|
|
2568
2568
|
);
|
|
2569
2569
|
};
|
|
2570
|
-
const lineKey = ({ channels: { x, y
|
|
2570
|
+
const lineKey = ({ channels: { x, y } }) => `${x ?? 0}-${y}`;
|
|
2571
2571
|
const YAxis = ({
|
|
2572
2572
|
lines,
|
|
2573
2573
|
rules,
|
|
@@ -2621,20 +2621,20 @@ const DynamicLine = ({
|
|
|
2621
2621
|
line: {
|
|
2622
2622
|
key,
|
|
2623
2623
|
timeSpan,
|
|
2624
|
-
channels: { x, y
|
|
2624
|
+
channels: { x, y },
|
|
2625
2625
|
...props
|
|
2626
2626
|
}
|
|
2627
2627
|
}) => {
|
|
2628
2628
|
const keepFor = Number(timeSpan.valueOf()) * 3;
|
|
2629
2629
|
const yTelem = streamChannelData({
|
|
2630
2630
|
timeSpan,
|
|
2631
|
-
channel:
|
|
2631
|
+
channel: y,
|
|
2632
2632
|
keepFor
|
|
2633
2633
|
});
|
|
2634
2634
|
const hasX = x != null && x !== 0;
|
|
2635
2635
|
const xTelem = streamChannelData({
|
|
2636
2636
|
timeSpan,
|
|
2637
|
-
channel: hasX ? x :
|
|
2637
|
+
channel: hasX ? x : y,
|
|
2638
2638
|
useIndexOfChannel: !hasX,
|
|
2639
2639
|
keepFor
|
|
2640
2640
|
});
|
|
@@ -2644,15 +2644,15 @@ const StaticLine = ({
|
|
|
2644
2644
|
line: {
|
|
2645
2645
|
timeRange,
|
|
2646
2646
|
key,
|
|
2647
|
-
channels: { x, y
|
|
2647
|
+
channels: { x, y },
|
|
2648
2648
|
...props
|
|
2649
2649
|
}
|
|
2650
2650
|
}) => {
|
|
2651
|
-
const yTelem = channelData({ timeRange, channel:
|
|
2651
|
+
const yTelem = channelData({ timeRange, channel: y });
|
|
2652
2652
|
const hasX = x != null && x !== 0;
|
|
2653
2653
|
const xTelem = channelData({
|
|
2654
2654
|
timeRange,
|
|
2655
|
-
channel: hasX ? x :
|
|
2655
|
+
channel: hasX ? x : y,
|
|
2656
2656
|
useIndexOfChannel: !hasX
|
|
2657
2657
|
});
|
|
2658
2658
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(Line$2, { aetherKey: key, y: yTelem, x: xTelem, ...props });
|
|
@@ -3599,10 +3599,10 @@ const maskStyle = {
|
|
|
3599
3599
|
const getDragLocationPercents = (e13) => {
|
|
3600
3600
|
const rect = e13.currentTarget.getBoundingClientRect();
|
|
3601
3601
|
const x = e13.clientX - rect.left;
|
|
3602
|
-
const
|
|
3603
|
-
if (
|
|
3602
|
+
const y = e13.clientY - rect.top;
|
|
3603
|
+
if (y < 24)
|
|
3604
3604
|
return { px: 0.5, py: 0.5 };
|
|
3605
|
-
return { px: x / rect.width, py:
|
|
3605
|
+
return { px: x / rect.width, py: y / rect.height };
|
|
3606
3606
|
};
|
|
3607
3607
|
const crossHairA = (px) => px;
|
|
3608
3608
|
const crossHairB = (px) => 1 - px;
|
|
@@ -4013,10 +4013,10 @@ const Controls$1 = ({
|
|
|
4013
4013
|
...props
|
|
4014
4014
|
}) => {
|
|
4015
4015
|
const os = use$5({ force: forceOS, default: DEFAULT_OS });
|
|
4016
|
-
const
|
|
4016
|
+
const C2 = Variants[os];
|
|
4017
4017
|
if (visibleIfOS != null && visibleIfOS !== os)
|
|
4018
4018
|
return null;
|
|
4019
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
4019
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(C2, { ...props });
|
|
4020
4020
|
};
|
|
4021
4021
|
const external$7 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4022
4022
|
__proto__: null,
|
|
@@ -5234,7 +5234,7 @@ const Indicator = wrap$1(
|
|
|
5234
5234
|
key: "no_chip",
|
|
5235
5235
|
variant: "warning",
|
|
5236
5236
|
message: "No chip connected.",
|
|
5237
|
-
time:
|
|
5237
|
+
time: m$1.now()
|
|
5238
5238
|
}
|
|
5239
5239
|
},
|
|
5240
5240
|
schema: indicatorStateZ
|
|
@@ -5318,7 +5318,7 @@ const Chip = wrap$1(
|
|
|
5318
5318
|
key: "no_chip",
|
|
5319
5319
|
variant: "disabled",
|
|
5320
5320
|
message: "No chip connected.",
|
|
5321
|
-
time:
|
|
5321
|
+
time: m$1.now()
|
|
5322
5322
|
}
|
|
5323
5323
|
}
|
|
5324
5324
|
});
|
|
@@ -8282,7 +8282,7 @@ const Provider$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePr
|
|
|
8282
8282
|
__proto__: null,
|
|
8283
8283
|
Provider: Provider$1
|
|
8284
8284
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
8285
|
-
const canDisable = (
|
|
8285
|
+
const canDisable = (C2) => ({ disabled = false, ...props }) => disabled ? props.children : /* @__PURE__ */ jsxRuntimeExports.jsx(C2, { ...props });
|
|
8286
8286
|
const CanDisableTelem = canDisable(Provider$1);
|
|
8287
8287
|
const CanDisableAether = canDisable(Provider$e);
|
|
8288
8288
|
const Provider = ({
|
|
@@ -8305,11 +8305,11 @@ const Pluto = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePropert
|
|
|
8305
8305
|
Provider
|
|
8306
8306
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
8307
8307
|
const TimeRangeChip = ({ timeRange }) => {
|
|
8308
|
-
const startTS = new
|
|
8308
|
+
const startTS = new m$1(timeRange.start);
|
|
8309
8309
|
const startFormat = startTS.isToday ? "time" : "dateTime";
|
|
8310
|
-
const endTS = new
|
|
8311
|
-
const isOpen = endTS.equals(
|
|
8312
|
-
const endFormat = endTS.span(startTS) <
|
|
8310
|
+
const endTS = new m$1(timeRange.end);
|
|
8311
|
+
const isOpen = endTS.equals(m$1.MAX);
|
|
8312
|
+
const endFormat = endTS.span(startTS) < w$1.DAY ? "time" : "dateTime";
|
|
8313
8313
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
8314
8314
|
Space,
|
|
8315
8315
|
{
|
|
@@ -8509,8 +8509,8 @@ export {
|
|
|
8509
8509
|
e4 as Text,
|
|
8510
8510
|
e11 as Theming,
|
|
8511
8511
|
U as TimeRange,
|
|
8512
|
-
|
|
8513
|
-
|
|
8512
|
+
w$1 as TimeSpan,
|
|
8513
|
+
m$1 as TimeStamp,
|
|
8514
8514
|
external$g as Tooltip,
|
|
8515
8515
|
e12 as Tree,
|
|
8516
8516
|
e3 as Triggers,
|