@adcops/autocore-react 3.0.15 → 3.0.18
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/components/ValueInput.d.ts +1 -0
- package/dist/components/ValueInput.js +1 -1
- package/dist/core/EventEmitterContext.d.ts +5 -0
- package/dist/core/EventEmitterContext.js +1 -1
- package/dist/hooks/useAdsRegisterSymbol.d.ts +32 -0
- package/dist/hooks/useAdsRegisterSymbol.js +1 -0
- package/dist/hub/HubBase.d.ts +10 -0
- package/dist/hub/HubBase.js +1 -1
- package/dist/hub/HubWebSocket.js +1 -1
- package/dist/hub/index.js +1 -1
- package/docs/classes/components_BlocklyEditor.BlocklyEditor.html +2 -2
- package/docs/classes/components_CodeEditor.CodeEditor.html +2 -2
- package/docs/classes/components_JogPanel.JogPanel.html +2 -2
- package/docs/classes/components_Lamp.Lamp.html +2 -2
- package/docs/classes/components_TextInput.TextInput.html +115 -0
- package/docs/classes/components_ValueIndicator.ValueIndicator.html +119 -0
- package/docs/classes/components_ValueInput.ValueInput.html +12 -14
- package/docs/classes/hub_HubWebSocket.HubWebSocket.html +106 -0
- package/docs/enums/components_JogPanel.JogDistanceAction.html +2 -2
- package/docs/enums/components_JogPanel.JogPanelAction.html +2 -2
- package/docs/enums/components_JogPanel.JogSpeedAction.html +2 -2
- package/docs/enums/core_ActionMode.ActionMode.html +2 -2
- package/docs/enums/core_IndicatorColor.IndicatorColor.html +2 -2
- package/docs/functions/assets_BlocklyLogo.default.html +1 -1
- package/docs/functions/assets_Distance.default.html +1 -1
- package/docs/functions/assets_JogLong.default.html +1 -1
- package/docs/functions/assets_JogMedium.default.html +1 -1
- package/docs/functions/assets_JogShort.default.html +1 -1
- package/docs/functions/assets_PythonLogo.default.html +1 -1
- package/docs/functions/assets_Rotation3D.default.html +1 -1
- package/docs/functions/assets_RotationCcw.default.html +1 -1
- package/docs/functions/assets_RotationCcwA.default.html +1 -1
- package/docs/functions/assets_RotationCcwB.default.html +1 -1
- package/docs/functions/assets_RotationCcwC.default.html +1 -1
- package/docs/functions/assets_RotationCw.default.html +1 -1
- package/docs/functions/assets_RotationCwA.default.html +1 -1
- package/docs/functions/assets_RotationCwB.default.html +1 -1
- package/docs/functions/assets_RotationCwC.default.html +1 -1
- package/docs/functions/assets_Run.default.html +1 -1
- package/docs/functions/assets_Speed.default.html +1 -1
- package/docs/functions/assets_SpeedFast.default.html +1 -1
- package/docs/functions/assets_SpeedMedium.default.html +1 -1
- package/docs/functions/assets_SpeedNone.default.html +1 -1
- package/docs/functions/assets_SpeedSlow.default.html +1 -1
- package/docs/functions/assets_Walk.default.html +1 -1
- package/docs/functions/components_BlocklyEditor.createCustomToolbox.html +2 -2
- package/docs/functions/components_FileList.FileList.html +21 -0
- package/docs/functions/components_FitText.FitText.html +8 -0
- package/docs/functions/components_ToggleGroup.ToggleGroup.html +5 -0
- package/docs/interfaces/components_JogPanel.JogPanelButtonDefinition.html +2 -2
- package/docs/interfaces/components_ToggleGroup.ToggleGroupProps.html +12 -30
- package/docs/interfaces/core_IndicatorButtonState.IndicatorButtonState.html +2 -2
- package/docs/interfaces/hub_CommandMessage.CommandMessage.html +6 -0
- package/docs/interfaces/hub_CommandMessage.CommandMessageResult.html +4 -0
- package/docs/modules/assets.html +2 -2
- package/docs/modules/assets_BlocklyLogo.html +2 -2
- package/docs/modules/assets_Distance.html +2 -2
- package/docs/modules/assets_JogLong.html +2 -2
- package/docs/modules/assets_JogMedium.html +2 -2
- package/docs/modules/assets_JogShort.html +2 -2
- package/docs/modules/assets_PythonLogo.html +2 -2
- package/docs/modules/assets_Rotation3D.html +2 -2
- package/docs/modules/assets_RotationCcw.html +2 -2
- package/docs/modules/assets_RotationCcwA.html +2 -2
- package/docs/modules/assets_RotationCcwB.html +2 -2
- package/docs/modules/assets_RotationCcwC.html +2 -2
- package/docs/modules/assets_RotationCw.html +2 -2
- package/docs/modules/assets_RotationCwA.html +2 -2
- package/docs/modules/assets_RotationCwB.html +2 -2
- package/docs/modules/assets_RotationCwC.html +2 -2
- package/docs/modules/assets_Run.html +2 -2
- package/docs/modules/assets_Speed.html +2 -2
- package/docs/modules/assets_SpeedFast.html +2 -2
- package/docs/modules/assets_SpeedMedium.html +2 -2
- package/docs/modules/assets_SpeedNone.html +2 -2
- package/docs/modules/assets_SpeedSlow.html +2 -2
- package/docs/modules/assets_Walk.html +2 -2
- package/docs/modules/components_BlocklyEditor.html +2 -2
- package/docs/modules/components_CodeEditor.html +2 -2
- package/docs/modules/{hub_HubSimulate.html → components_FileList.html} +3 -3
- package/docs/modules/components_FitText.html +3 -0
- package/docs/modules/components_JogPanel.html +2 -2
- package/docs/modules/components_Lamp.html +2 -2
- package/docs/modules/{hub_HubTauri.html → components_TextInput.html} +2 -2
- package/docs/modules/components_ToggleGroup.html +4 -3
- package/docs/modules/components_ValueIndicator.html +4 -0
- package/docs/modules/components_ValueInput.html +2 -2
- package/docs/modules/core_ActionMode.html +2 -2
- package/docs/modules/core_IndicatorButtonState.html +2 -2
- package/docs/modules/core_IndicatorColor.html +2 -2
- package/docs/modules/{core_NumerableTypes.html → hub_CommandMessage.html} +3 -2
- package/docs/modules/{core_MaskPatterns.html → hub_HubWebSocket.html} +2 -3
- package/docs/types/components_IndicatorButton.IndicatorButtonOptionsType.html +1 -1
- package/docs/variables/components_BlocklyEditor.StandardToolbox.html +1 -1
- package/docs/variables/components_JogPanel.DefaultLinearJogButtons.html +2 -2
- package/docs/variables/components_JogPanel.DefaultRotationJogButtons.html +2 -2
- package/package.json +5 -1
- package/src/components/FileList.tsx +1 -1
- package/src/components/ValueInput.tsx +13 -2
- package/src/core/EventEmitterContext.tsx +57 -53
- package/src/hooks/useAdsRegisterSymbol.ts +97 -0
- package/src/hub/HubBase.ts +18 -1
- package/src/hub/HubWebSocket.ts +8 -4
- package/src/hub/index.ts +12 -12
- package/docs/.nojekyll +0 -1
- package/docs/assets/highlight.css +0 -113
- package/docs/assets/icons.js +0 -15
- package/docs/assets/icons.svg +0 -1
- package/docs/assets/main.js +0 -59
- package/docs/assets/navigation.js +0 -1
- package/docs/assets/search.js +0 -1
- package/docs/assets/style.css +0 -1414
- package/docs/classes/components_Indicator.Indicator.html +0 -105
- package/docs/classes/components_IndicatorButton.IndicatorButton.html +0 -119
- package/docs/classes/components_OskDialog.OskDialog.html +0 -117
- package/docs/classes/components_ToggleGroup.ToggleGroup.html +0 -118
- package/docs/classes/components_ValueDisplay.ValueDisplay.html +0 -121
- package/docs/classes/core_ValueSimulator.ValueSimulator.html +0 -51
- package/docs/classes/hub_HubBase.HubBase.html +0 -96
- package/docs/classes/hub_HubSimulate.HubSimulate.html +0 -68
- package/docs/classes/hub_HubSocketIo.HubSocketIo.html +0 -92
- package/docs/classes/hub_HubTauri.HubTauri.html +0 -83
- package/docs/functions/components_Osk.Osk.html +0 -5
- package/docs/functions/core_EventEmitterContext.EventEmitterProvider.html +0 -8
- package/docs/functions/core_UniqueId.UniqueId.html +0 -9
- package/docs/functions/core_hoc.hocAddSubscription.html +0 -6
- package/docs/functions/hub.createHub.html +0 -3
- package/docs/hierarchy.html +0 -1
- package/docs/index.html +0 -94
- package/docs/interfaces/components_IndicatorButton.IndicatorButtonProps.html +0 -665
- package/docs/interfaces/core_EventEmitterContext.Action.html +0 -8
- package/docs/interfaces/core_EventEmitterContext.EventEmitterContextType.html +0 -30
- package/docs/interfaces/core_EventEmitterContext.State.html +0 -8
- package/docs/interfaces/core_EventEmitterContext.Subscription.html +0 -6
- package/docs/interfaces/core_PositionContext.IPositionContext.html +0 -17
- package/docs/modules/components_Indicator.html +0 -4
- package/docs/modules/components_IndicatorButton.html +0 -7
- package/docs/modules/components_Osk.html +0 -3
- package/docs/modules/components_OskDialog.html +0 -3
- package/docs/modules/components_ValueDisplay.html +0 -3
- package/docs/modules/core_EventEmitterContext.html +0 -11
- package/docs/modules/core_PositionContext.html +0 -4
- package/docs/modules/core_UniqueId.html +0 -2
- package/docs/modules/core_ValueSimulator.html +0 -3
- package/docs/modules/core_hoc.html +0 -3
- package/docs/modules/hub.html +0 -6
- package/docs/modules/hub_HubBase.html +0 -3
- package/docs/modules/hub_HubSocketIo.html +0 -3
- package/docs/types/core_EventEmitterContext.EmitterDispatchFunction.html +0 -3
- package/docs/types/core_EventEmitterContext.EmitterSubscribeFunction.html +0 -3
- package/docs/types/core_EventEmitterContext.EmitterUnsubscribeFunction.html +0 -3
- package/docs/types/core_NumerableTypes.NumerableFormatOptions.html +0 -4
- package/docs/types/core_hoc.HocAddSubscriptionProps.html +0 -4
- package/docs/variables/core_EventEmitterContext.EventEmitterContext.html +0 -58
- package/docs/variables/core_MaskPatterns.PrimeReactMaskPatterns.html +0 -14
- package/docs/variables/core_MaskPatterns.RegExMaskPatterns.html +0 -15
- package/docs/variables/core_PositionContext.DimensionsContext.html +0 -6
|
@@ -2,18 +2,18 @@
|
|
|
2
2
|
* Copyright (C) 2024 Automated Design Corp. All Rights Reserved.
|
|
3
3
|
* Created Date: 2024-01-17 11:45:10
|
|
4
4
|
* -----
|
|
5
|
-
* Last Modified: 2024-04-
|
|
5
|
+
* Last Modified: 2024-04-25 15:24:53
|
|
6
6
|
* Modified By: ADC
|
|
7
7
|
* -----
|
|
8
8
|
*
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
import React, { createContext, ReactNode, useState, useMemo } from 'react';
|
|
13
|
-
import {createHub, Hub} from "../hub";
|
|
14
|
-
import {CommandMessageResult} from "../hub/CommandMessage";
|
|
12
|
+
import React, { createContext, ReactNode, useState, useMemo, useCallback } from 'react';
|
|
13
|
+
import { createHub, Hub } from "../hub";
|
|
14
|
+
import { CommandMessageResult } from "../hub/CommandMessage";
|
|
15
15
|
|
|
16
|
-
export {Hub};
|
|
16
|
+
export { Hub };
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
19
|
* Represents an event subsription.
|
|
@@ -38,7 +38,7 @@ export interface State {
|
|
|
38
38
|
subscriptions: Record<string, Subscription[]>;
|
|
39
39
|
|
|
40
40
|
/** Tracks the next subscription ID that will be assigned. */
|
|
41
|
-
nextSubscriptionId: number;
|
|
41
|
+
nextSubscriptionId: number;
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
/**
|
|
@@ -104,7 +104,7 @@ export interface EventEmitterContextType {
|
|
|
104
104
|
* Invoke/send a message to the back end.
|
|
105
105
|
* This does NOT get published to the front end.
|
|
106
106
|
*/
|
|
107
|
-
invoke(
|
|
107
|
+
invoke(domain: string, fname: string, payload?: object): Promise<CommandMessageResult>;
|
|
108
108
|
|
|
109
109
|
/**
|
|
110
110
|
* Subscribe to events identified by the topic.
|
|
@@ -119,25 +119,32 @@ export interface EventEmitterContextType {
|
|
|
119
119
|
* @param subscriptionId The id of the subscription returned by the subscribe method.
|
|
120
120
|
* @returns
|
|
121
121
|
*/
|
|
122
|
-
unsubscribe: (subscriptionId
|
|
122
|
+
unsubscribe: (subscriptionId: number) => void;
|
|
123
123
|
|
|
124
124
|
|
|
125
125
|
/**
|
|
126
126
|
* Global hub for publishing and receiving events throughout the interface, and for exchanging
|
|
127
127
|
* data with the backend.
|
|
128
128
|
*/
|
|
129
|
-
hub
|
|
129
|
+
hub: Hub | null;
|
|
130
130
|
|
|
131
131
|
/**
|
|
132
132
|
* Retrieves the current subscriptions. Used for debugging purposes.
|
|
133
133
|
* @param topic Optional. The topic to retrieve subscriptions for. If omitted, returns all subscriptions.
|
|
134
134
|
* @returns An object containing the current subscriptions, optionally filtered by topic.
|
|
135
135
|
*/
|
|
136
|
-
getSubscriptions: (topic?: string) => Record<string, Subscription[]> | Subscription[];
|
|
136
|
+
getSubscriptions: (topic?: string) => Record<string, Subscription[]> | Subscription[];
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* Returns true if the Hub in use is connected to its source.
|
|
141
|
+
* @returns boolean
|
|
142
|
+
*/
|
|
143
|
+
isConnected: () => boolean;
|
|
137
144
|
}
|
|
138
145
|
|
|
139
146
|
|
|
140
|
-
let globalSubscriptionId = 1;
|
|
147
|
+
let globalSubscriptionId = 1;
|
|
141
148
|
|
|
142
149
|
/**
|
|
143
150
|
* A global context for managing event emission and subscription.
|
|
@@ -262,25 +269,27 @@ let globalSubscriptionId = 1;
|
|
|
262
269
|
*
|
|
263
270
|
*/
|
|
264
271
|
export const EventEmitterContext = createContext<EventEmitterContextType>({
|
|
265
|
-
state: { subscriptions: {}, nextSubscriptionId
|
|
272
|
+
state: { subscriptions: {}, nextSubscriptionId: 1 },
|
|
266
273
|
dispatch: () => { },
|
|
267
274
|
subscribe: () => { return 0; }, // Placeholder for subscription logic
|
|
268
|
-
invoke: async (domain: string, fname: string, payload?: object) => {
|
|
275
|
+
invoke: async (domain: string, fname: string, payload?: object) => {
|
|
269
276
|
domain;
|
|
270
277
|
fname;
|
|
271
278
|
payload;
|
|
272
|
-
let ret
|
|
279
|
+
let ret: CommandMessageResult = {
|
|
273
280
|
data: {},
|
|
274
281
|
success: false,
|
|
275
|
-
error_message
|
|
282
|
+
error_message: ""
|
|
276
283
|
};
|
|
277
284
|
// Placeholder for invoke logic
|
|
278
285
|
// Implement the logic to send a message to the backend and return a promise
|
|
279
286
|
return Promise.resolve(ret); // Example placeholder, replace with actual implementation
|
|
280
287
|
},
|
|
281
|
-
unsubscribe: (subscriptionId: number) => { subscriptionId;}, // Placeholder for unsubscription logic
|
|
288
|
+
unsubscribe: (subscriptionId: number) => { subscriptionId; }, // Placeholder for unsubscription logic
|
|
282
289
|
hub: null,
|
|
283
|
-
getSubscriptions: () => { return []; }
|
|
290
|
+
getSubscriptions: () => { return []; },
|
|
291
|
+
isConnected: () => { return false }
|
|
292
|
+
|
|
284
293
|
});
|
|
285
294
|
|
|
286
295
|
|
|
@@ -318,21 +327,23 @@ export const EventEmitterContext = createContext<EventEmitterContextType>({
|
|
|
318
327
|
* ```
|
|
319
328
|
*/
|
|
320
329
|
export const EventEmitterProvider: React.FC<{ children: ReactNode }> = ({ children }) => {
|
|
321
|
-
const [state, setState] = useState<State>({ subscriptions: {}, nextSubscriptionId
|
|
330
|
+
const [state, setState] = useState<State>({ subscriptions: {}, nextSubscriptionId: 1 });
|
|
322
331
|
|
|
323
332
|
// Memoize the hub instance so it's only created once
|
|
324
333
|
const hub = useMemo(() => createHub(), []);
|
|
325
334
|
|
|
326
|
-
const dispatch = (action: Action) => {
|
|
335
|
+
const dispatch = useCallback((action: Action) => {
|
|
327
336
|
const { topic, payload } = action;
|
|
328
337
|
|
|
329
338
|
setState(prevState => {
|
|
330
|
-
prevState.subscriptions[topic]
|
|
339
|
+
const callbacks = prevState.subscriptions[topic] || [];
|
|
340
|
+
callbacks.forEach(sub => sub.callback(payload));
|
|
331
341
|
return { ...prevState, eventData: payload };
|
|
332
|
-
|
|
333
|
-
|
|
342
|
+
});
|
|
343
|
+
|
|
344
|
+
}, []);
|
|
334
345
|
|
|
335
|
-
const subscribe = (topic: string, callback: React.Dispatch<any>)
|
|
346
|
+
const subscribe = useCallback((topic: string, callback: React.Dispatch<any>): number => {
|
|
336
347
|
|
|
337
348
|
globalSubscriptionId += 1;
|
|
338
349
|
const subscriptionId = globalSubscriptionId; // state.nextSubscriptionId;
|
|
@@ -340,39 +351,31 @@ export const EventEmitterProvider: React.FC<{ children: ReactNode }> = ({ childr
|
|
|
340
351
|
setState(prevState => ({
|
|
341
352
|
...prevState,
|
|
342
353
|
subscriptions: {
|
|
343
|
-
|
|
344
|
-
|
|
354
|
+
...prevState.subscriptions,
|
|
355
|
+
[topic]: [...(prevState.subscriptions[topic] || []), { id: subscriptionId, callback }]
|
|
345
356
|
},
|
|
346
357
|
nextSubscriptionId: globalSubscriptionId + 1 // prevState.nextSubscriptionId + 1
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
};
|
|
358
|
+
}));
|
|
359
|
+
|
|
360
|
+
return subscriptionId;
|
|
361
|
+
}, []);
|
|
351
362
|
|
|
352
363
|
|
|
353
|
-
const unsubscribe = (subscriptionId: number) => {
|
|
364
|
+
const unsubscribe = useCallback((subscriptionId: number) => {
|
|
354
365
|
setState(prevState => {
|
|
355
366
|
const newSubscriptions = { ...prevState.subscriptions };
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
// Filter out the subscription with the given ID
|
|
361
|
-
newSubscriptions[topic] = newSubscriptions[topic].filter(sub => sub.id !== subscriptionId);
|
|
362
|
-
|
|
363
|
-
// If the topic now has no subscriptions, you can optionally delete the topic key
|
|
364
|
-
if (newSubscriptions[topic].length === 0) {
|
|
365
|
-
delete newSubscriptions[topic];
|
|
366
|
-
}
|
|
367
|
+
Object.keys(newSubscriptions).forEach(topic => {
|
|
368
|
+
newSubscriptions[topic] = newSubscriptions[topic].filter(sub => sub.id !== subscriptionId);
|
|
369
|
+
if (newSubscriptions[topic].length === 0) {
|
|
370
|
+
delete newSubscriptions[topic];
|
|
367
371
|
}
|
|
368
|
-
}
|
|
369
|
-
|
|
372
|
+
});
|
|
370
373
|
return { ...prevState, subscriptions: newSubscriptions };
|
|
371
|
-
});
|
|
372
|
-
};
|
|
374
|
+
});
|
|
375
|
+
}, []);
|
|
373
376
|
|
|
374
377
|
|
|
375
|
-
const getSubscriptions = (topic?: string): Record<string, Subscription[]> | Subscription[] => {
|
|
378
|
+
const getSubscriptions = useCallback((topic?: string): Record<string, Subscription[]> | Subscription[] => {
|
|
376
379
|
if (topic) {
|
|
377
380
|
// Return subscriptions for the provided topic, or an empty array if the topic doesn't exist
|
|
378
381
|
return state.subscriptions[topic] || [];
|
|
@@ -380,18 +383,19 @@ export const EventEmitterProvider: React.FC<{ children: ReactNode }> = ({ childr
|
|
|
380
383
|
// Return all subscriptions
|
|
381
384
|
return state.subscriptions;
|
|
382
385
|
}
|
|
383
|
-
};
|
|
386
|
+
}, []);
|
|
384
387
|
|
|
385
388
|
// Provide the memoized hub instance in the context value
|
|
386
389
|
const contextValue = useMemo(() => ({
|
|
387
|
-
state,
|
|
388
|
-
dispatch,
|
|
389
|
-
subscribe,
|
|
390
|
-
unsubscribe,
|
|
390
|
+
state,
|
|
391
|
+
dispatch,
|
|
392
|
+
subscribe,
|
|
393
|
+
unsubscribe,
|
|
391
394
|
invoke: hub.invoke,
|
|
392
395
|
hub,
|
|
393
|
-
getSubscriptions
|
|
394
|
-
|
|
396
|
+
getSubscriptions,
|
|
397
|
+
isConnected: hub.isConnected
|
|
398
|
+
}), [state, hub]);
|
|
395
399
|
|
|
396
400
|
|
|
397
401
|
hub.setContext(contextValue);
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (C) 2024 Automated Design Corp.. All Rights Reserved.
|
|
3
|
+
* Created Date: 2024-04-25 09:17:05
|
|
4
|
+
* -----
|
|
5
|
+
* Last Modified: 2024-04-25 16:03:15
|
|
6
|
+
* -----
|
|
7
|
+
*
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
import { useEffect, useContext, useRef } from 'react';
|
|
12
|
+
import {EventEmitterContext} from "../core/EventEmitterContext";
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Custom hook for registering symbols and subscribing to updates on the
|
|
16
|
+
* ADS domain via the EventEmitterContext.
|
|
17
|
+
* This hook abstracts the common pattern of registering symbols and handling subscriptions
|
|
18
|
+
* to updates in components that need real-time data from a backend service.
|
|
19
|
+
*
|
|
20
|
+
* @param setters A mapping of state setter functions, where each key corresponds to a piece of state
|
|
21
|
+
* related to a symbol, and each value is the setter function for that state.
|
|
22
|
+
* @param symbols A mapping of state keys to their corresponding symbol names in the backend system.
|
|
23
|
+
* Each key should match a key in the `setters` object, and each value should be a string
|
|
24
|
+
* that represents the symbol name to register and subscribe to.
|
|
25
|
+
*
|
|
26
|
+
* ## Usage Example:
|
|
27
|
+
* ```typescript
|
|
28
|
+
* const setters = {
|
|
29
|
+
* speed: setSpeed,
|
|
30
|
+
* temperature: setTemperature
|
|
31
|
+
* };
|
|
32
|
+
*
|
|
33
|
+
* const symbols = {
|
|
34
|
+
* speed: "Sensor.speed",
|
|
35
|
+
* temperature: "Sensor.temperature"
|
|
36
|
+
* };
|
|
37
|
+
*
|
|
38
|
+
* useRegisterSymbols(setters, symbols);
|
|
39
|
+
* ```
|
|
40
|
+
*
|
|
41
|
+
* This will register and subscribe to updates for "Sensor.speed" and "Sensor.temperature",
|
|
42
|
+
* and update the `speed` and `temperature` states via `setSpeed` and `setTemperature` respectively
|
|
43
|
+
* whenever new data is received.
|
|
44
|
+
*/
|
|
45
|
+
export const useAdsRegisterSymbols = (setters: Record<string, (value: any) => void>, symbols: Record<string, string>) => {
|
|
46
|
+
const { invoke, subscribe, unsubscribe, isConnected } = useContext(EventEmitterContext);
|
|
47
|
+
const subscriptions = useRef<number[]>([]);
|
|
48
|
+
const isMounted = useRef(true);
|
|
49
|
+
|
|
50
|
+
useEffect(() => {
|
|
51
|
+
isMounted.current = true;
|
|
52
|
+
|
|
53
|
+
const registerAndSubscribe = async () => {
|
|
54
|
+
for (const [key, symbolName] of Object.entries(symbols)) {
|
|
55
|
+
try {
|
|
56
|
+
await invoke("ADS", "register_symbol", { symbol_name: symbolName });
|
|
57
|
+
//console.log(`Subscribe... ADS/${symbolName}`);
|
|
58
|
+
const subscriptionId = subscribe(`ADS/${symbolName}`, (data) => {
|
|
59
|
+
if (isMounted.current) {
|
|
60
|
+
const setter = setters[key];
|
|
61
|
+
if (setter) {
|
|
62
|
+
setter(data.value);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
subscriptions.current.push(subscriptionId);
|
|
67
|
+
} catch (err) {
|
|
68
|
+
console.error(`Failed to register symbol ${symbolName}: ${err}`);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
await invoke("ADS", "refresh", {});
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
if (!isConnected() ) {
|
|
75
|
+
//console.log("SCHEDULE LATER...");
|
|
76
|
+
let connectionSubId = subscribe("HUB/connected", () => {
|
|
77
|
+
registerAndSubscribe();
|
|
78
|
+
unsubscribe(connectionSubId);
|
|
79
|
+
});
|
|
80
|
+
subscriptions.current.push(connectionSubId);
|
|
81
|
+
}
|
|
82
|
+
else {
|
|
83
|
+
//console.log("ALREADY CONNECTED...");
|
|
84
|
+
registerAndSubscribe();
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
return () => {
|
|
89
|
+
//console.log("UNSUBSCRIBE");
|
|
90
|
+
isMounted.current = false;
|
|
91
|
+
subscriptions.current.forEach(subscriptionId => unsubscribe(subscriptionId));
|
|
92
|
+
subscriptions.current = [];
|
|
93
|
+
};
|
|
94
|
+
}, []); // Ensure setters and symbols are included if they can change
|
|
95
|
+
|
|
96
|
+
return null; // This hook does not render anything
|
|
97
|
+
};
|
package/src/hub/HubBase.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Created Date: 2023-12-15 14:21:33
|
|
4
4
|
* Author: Thomas C. Bitsky Jr.
|
|
5
5
|
* -----
|
|
6
|
-
* Last Modified: 2024-04-
|
|
6
|
+
* Last Modified: 2024-04-25 14:44:14
|
|
7
7
|
* Modified By: ADC
|
|
8
8
|
* -----
|
|
9
9
|
*
|
|
@@ -95,6 +95,8 @@ export abstract class HubBase {
|
|
|
95
95
|
|
|
96
96
|
protected context : EventEmitterContextType | null = null;
|
|
97
97
|
|
|
98
|
+
protected isConnected_ : boolean = false;
|
|
99
|
+
|
|
98
100
|
|
|
99
101
|
/**
|
|
100
102
|
* Constructor
|
|
@@ -125,6 +127,21 @@ export abstract class HubBase {
|
|
|
125
127
|
abstract invoke(domain: string, fname: string, payload? : object) : Promise<CommandMessageResult>;
|
|
126
128
|
|
|
127
129
|
|
|
130
|
+
/**
|
|
131
|
+
* Allos the derived class to set whether the hub is connected to its source.
|
|
132
|
+
* @param s boolean
|
|
133
|
+
*/
|
|
134
|
+
protected setIsConnected = (s : boolean) => {
|
|
135
|
+
this.isConnected_ = s;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* Returns true if the Hub is connected to its source.
|
|
140
|
+
*/
|
|
141
|
+
isConnected = () : boolean => {
|
|
142
|
+
return this.isConnected_;
|
|
143
|
+
}
|
|
144
|
+
|
|
128
145
|
/**
|
|
129
146
|
* Convenience function to invoke a command with an optional topic and optional value.
|
|
130
147
|
* This will invoke the specified command in the backend. It does not broadcast the
|
package/src/hub/HubWebSocket.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Copyright (C) 2024 Automated Design Corp.. All Rights Reserved.
|
|
3
3
|
* Created Date: 2024-04-17 09:13:07
|
|
4
4
|
* -----
|
|
5
|
-
* Last Modified: 2024-04-
|
|
5
|
+
* Last Modified: 2024-04-25 14:42:02
|
|
6
6
|
* -----
|
|
7
7
|
*
|
|
8
8
|
*/
|
|
@@ -131,7 +131,10 @@ export class HubWebSocket extends HubBase {
|
|
|
131
131
|
super();
|
|
132
132
|
|
|
133
133
|
const host = window.location.hostname; // Get the hostname from the address bar
|
|
134
|
-
|
|
134
|
+
|
|
135
|
+
// Default to using autocore-server.
|
|
136
|
+
let port = undefined; // window.location.port; // Get the port from the address bar, if any
|
|
137
|
+
|
|
135
138
|
const proto = window.location.protocol === 'https:' ? 'wss://' : 'ws://'; // Determine the protocol
|
|
136
139
|
const wsUrl = `${proto}${host}${port ? ':' + port : ''}/ws/`; // Construct WebSocket URL
|
|
137
140
|
|
|
@@ -146,7 +149,7 @@ export class HubWebSocket extends HubBase {
|
|
|
146
149
|
this.socket.onopen = function() {
|
|
147
150
|
console.log("WebSocket connection established.");
|
|
148
151
|
self.publish("HUB/connected", true);
|
|
149
|
-
|
|
152
|
+
self.setIsConnected(true);
|
|
150
153
|
};
|
|
151
154
|
|
|
152
155
|
|
|
@@ -211,7 +214,8 @@ export class HubWebSocket extends HubBase {
|
|
|
211
214
|
// The Websocket connection has closed.
|
|
212
215
|
//
|
|
213
216
|
this.socket.onclose = () => {
|
|
214
|
-
|
|
217
|
+
self.setIsConnected(false);
|
|
218
|
+
console.log('WebSocket connection closed.');
|
|
215
219
|
};
|
|
216
220
|
}
|
|
217
221
|
|
package/src/hub/index.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Copyright (C) 2024 Automated Design Corp. All Rights Reserved.
|
|
3
3
|
* Created Date: 2024-01-16 21:07:29
|
|
4
4
|
* -----
|
|
5
|
-
* Last Modified: 2024-04-
|
|
5
|
+
* Last Modified: 2024-04-25 07:18:48
|
|
6
6
|
* Modified By: ADC
|
|
7
7
|
* -----
|
|
8
8
|
*
|
|
@@ -25,19 +25,19 @@ export function createHub(): Hub {
|
|
|
25
25
|
console.log("HUB: Starting link to Tauri backend.");
|
|
26
26
|
return new HubTauri();
|
|
27
27
|
}
|
|
28
|
-
else if (
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
) {
|
|
28
|
+
// else if (
|
|
29
|
+
// window.location.port !== undefined
|
|
30
|
+
// && window.location.port.length > 0
|
|
31
|
+
// && window.location.port !== '80'
|
|
32
|
+
// && window.location.port !== '8080'
|
|
33
|
+
// && window.location.port !== '443'
|
|
34
|
+
// ) {
|
|
35
35
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
36
|
+
// // We're loaded in some development environment
|
|
37
|
+
// console.log("HUB: Starting HUB SIMULATOR.");
|
|
38
|
+
// return new HubSimulate();
|
|
39
39
|
|
|
40
|
-
}
|
|
40
|
+
// }
|
|
41
41
|
else {
|
|
42
42
|
// A web-app that must communicate with a backend in another process.
|
|
43
43
|
console.log("HUB: Starting websocket connection.");
|
package/docs/.nojekyll
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
TypeDoc added this file to prevent GitHub Pages from using Jekyll. You can turn off this behavior by setting the `githubPages` option to false.
|
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
:root {
|
|
2
|
-
--light-hl-0: #001080;
|
|
3
|
-
--dark-hl-0: #9CDCFE;
|
|
4
|
-
--light-hl-1: #000000;
|
|
5
|
-
--dark-hl-1: #D4D4D4;
|
|
6
|
-
--light-hl-2: #AF00DB;
|
|
7
|
-
--dark-hl-2: #C586C0;
|
|
8
|
-
--light-hl-3: #A31515;
|
|
9
|
-
--dark-hl-3: #CE9178;
|
|
10
|
-
--light-hl-4: #098658;
|
|
11
|
-
--dark-hl-4: #B5CEA8;
|
|
12
|
-
--light-hl-5: #008000;
|
|
13
|
-
--dark-hl-5: #6A9955;
|
|
14
|
-
--light-hl-6: #0000FF;
|
|
15
|
-
--dark-hl-6: #569CD6;
|
|
16
|
-
--light-hl-7: #000000;
|
|
17
|
-
--dark-hl-7: #C8C8C8;
|
|
18
|
-
--light-hl-8: #267F99;
|
|
19
|
-
--dark-hl-8: #4EC9B0;
|
|
20
|
-
--light-hl-9: #0070C1;
|
|
21
|
-
--dark-hl-9: #4FC1FF;
|
|
22
|
-
--light-hl-10: #795E26;
|
|
23
|
-
--dark-hl-10: #DCDCAA;
|
|
24
|
-
--light-hl-11: #CD3131;
|
|
25
|
-
--dark-hl-11: #F44747;
|
|
26
|
-
--light-hl-12: #811F3F;
|
|
27
|
-
--dark-hl-12: #D16969;
|
|
28
|
-
--light-code-background: #FFFFFF;
|
|
29
|
-
--dark-code-background: #1E1E1E;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
@media (prefers-color-scheme: light) { :root {
|
|
33
|
-
--hl-0: var(--light-hl-0);
|
|
34
|
-
--hl-1: var(--light-hl-1);
|
|
35
|
-
--hl-2: var(--light-hl-2);
|
|
36
|
-
--hl-3: var(--light-hl-3);
|
|
37
|
-
--hl-4: var(--light-hl-4);
|
|
38
|
-
--hl-5: var(--light-hl-5);
|
|
39
|
-
--hl-6: var(--light-hl-6);
|
|
40
|
-
--hl-7: var(--light-hl-7);
|
|
41
|
-
--hl-8: var(--light-hl-8);
|
|
42
|
-
--hl-9: var(--light-hl-9);
|
|
43
|
-
--hl-10: var(--light-hl-10);
|
|
44
|
-
--hl-11: var(--light-hl-11);
|
|
45
|
-
--hl-12: var(--light-hl-12);
|
|
46
|
-
--code-background: var(--light-code-background);
|
|
47
|
-
} }
|
|
48
|
-
|
|
49
|
-
@media (prefers-color-scheme: dark) { :root {
|
|
50
|
-
--hl-0: var(--dark-hl-0);
|
|
51
|
-
--hl-1: var(--dark-hl-1);
|
|
52
|
-
--hl-2: var(--dark-hl-2);
|
|
53
|
-
--hl-3: var(--dark-hl-3);
|
|
54
|
-
--hl-4: var(--dark-hl-4);
|
|
55
|
-
--hl-5: var(--dark-hl-5);
|
|
56
|
-
--hl-6: var(--dark-hl-6);
|
|
57
|
-
--hl-7: var(--dark-hl-7);
|
|
58
|
-
--hl-8: var(--dark-hl-8);
|
|
59
|
-
--hl-9: var(--dark-hl-9);
|
|
60
|
-
--hl-10: var(--dark-hl-10);
|
|
61
|
-
--hl-11: var(--dark-hl-11);
|
|
62
|
-
--hl-12: var(--dark-hl-12);
|
|
63
|
-
--code-background: var(--dark-code-background);
|
|
64
|
-
} }
|
|
65
|
-
|
|
66
|
-
:root[data-theme='light'] {
|
|
67
|
-
--hl-0: var(--light-hl-0);
|
|
68
|
-
--hl-1: var(--light-hl-1);
|
|
69
|
-
--hl-2: var(--light-hl-2);
|
|
70
|
-
--hl-3: var(--light-hl-3);
|
|
71
|
-
--hl-4: var(--light-hl-4);
|
|
72
|
-
--hl-5: var(--light-hl-5);
|
|
73
|
-
--hl-6: var(--light-hl-6);
|
|
74
|
-
--hl-7: var(--light-hl-7);
|
|
75
|
-
--hl-8: var(--light-hl-8);
|
|
76
|
-
--hl-9: var(--light-hl-9);
|
|
77
|
-
--hl-10: var(--light-hl-10);
|
|
78
|
-
--hl-11: var(--light-hl-11);
|
|
79
|
-
--hl-12: var(--light-hl-12);
|
|
80
|
-
--code-background: var(--light-code-background);
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
:root[data-theme='dark'] {
|
|
84
|
-
--hl-0: var(--dark-hl-0);
|
|
85
|
-
--hl-1: var(--dark-hl-1);
|
|
86
|
-
--hl-2: var(--dark-hl-2);
|
|
87
|
-
--hl-3: var(--dark-hl-3);
|
|
88
|
-
--hl-4: var(--dark-hl-4);
|
|
89
|
-
--hl-5: var(--dark-hl-5);
|
|
90
|
-
--hl-6: var(--dark-hl-6);
|
|
91
|
-
--hl-7: var(--dark-hl-7);
|
|
92
|
-
--hl-8: var(--dark-hl-8);
|
|
93
|
-
--hl-9: var(--dark-hl-9);
|
|
94
|
-
--hl-10: var(--dark-hl-10);
|
|
95
|
-
--hl-11: var(--dark-hl-11);
|
|
96
|
-
--hl-12: var(--dark-hl-12);
|
|
97
|
-
--code-background: var(--dark-code-background);
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
.hl-0 { color: var(--hl-0); }
|
|
101
|
-
.hl-1 { color: var(--hl-1); }
|
|
102
|
-
.hl-2 { color: var(--hl-2); }
|
|
103
|
-
.hl-3 { color: var(--hl-3); }
|
|
104
|
-
.hl-4 { color: var(--hl-4); }
|
|
105
|
-
.hl-5 { color: var(--hl-5); }
|
|
106
|
-
.hl-6 { color: var(--hl-6); }
|
|
107
|
-
.hl-7 { color: var(--hl-7); }
|
|
108
|
-
.hl-8 { color: var(--hl-8); }
|
|
109
|
-
.hl-9 { color: var(--hl-9); }
|
|
110
|
-
.hl-10 { color: var(--hl-10); }
|
|
111
|
-
.hl-11 { color: var(--hl-11); }
|
|
112
|
-
.hl-12 { color: var(--hl-12); }
|
|
113
|
-
pre, code { background: var(--code-background); }
|
package/docs/assets/icons.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
(function(svg) {
|
|
2
|
-
svg.innerHTML = `<g id="icon-1"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-module)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M9.162 16V7.24H10.578L11.514 10.072C11.602 10.328 11.674 10.584 11.73 10.84C11.794 11.088 11.842 11.28 11.874 11.416C11.906 11.28 11.954 11.088 12.018 10.84C12.082 10.584 12.154 10.324 12.234 10.06L13.122 7.24H14.538V16H13.482V12.82C13.482 12.468 13.49 12.068 13.506 11.62C13.53 11.172 13.558 10.716 13.59 10.252C13.622 9.78 13.654 9.332 13.686 8.908C13.726 8.476 13.762 8.1 13.794 7.78L12.366 12.16H11.334L9.894 7.78C9.934 8.092 9.97 8.456 10.002 8.872C10.042 9.28 10.078 9.716 10.11 10.18C10.142 10.636 10.166 11.092 10.182 11.548C10.206 12.004 10.218 12.428 10.218 12.82V16H9.162Z" fill="var(--color-text)"></path></g><g id="icon-2"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-module)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M9.162 16V7.24H10.578L11.514 10.072C11.602 10.328 11.674 10.584 11.73 10.84C11.794 11.088 11.842 11.28 11.874 11.416C11.906 11.28 11.954 11.088 12.018 10.84C12.082 10.584 12.154 10.324 12.234 10.06L13.122 7.24H14.538V16H13.482V12.82C13.482 12.468 13.49 12.068 13.506 11.62C13.53 11.172 13.558 10.716 13.59 10.252C13.622 9.78 13.654 9.332 13.686 8.908C13.726 8.476 13.762 8.1 13.794 7.78L12.366 12.16H11.334L9.894 7.78C9.934 8.092 9.97 8.456 10.002 8.872C10.042 9.28 10.078 9.716 10.11 10.18C10.142 10.636 10.166 11.092 10.182 11.548C10.206 12.004 10.218 12.428 10.218 12.82V16H9.162Z" fill="var(--color-text)"></path></g><g id="icon-4"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-namespace)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M9.33 16V7.24H10.77L13.446 14.74C13.43 14.54 13.41 14.296 13.386 14.008C13.37 13.712 13.354 13.404 13.338 13.084C13.33 12.756 13.326 12.448 13.326 12.16V7.24H14.37V16H12.93L10.266 8.5C10.282 8.692 10.298 8.936 10.314 9.232C10.33 9.52 10.342 9.828 10.35 10.156C10.366 10.476 10.374 10.784 10.374 11.08V16H9.33Z" fill="var(--color-text)"></path></g><g id="icon-8"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-enum)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M9.45 16V7.24H14.49V8.224H10.518V10.936H14.07V11.908H10.518V15.016H14.49V16H9.45Z" fill="var(--color-text)"></path></g><g id="icon-16"><rect fill="var(--color-icon-background)" stroke="#FF984D" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><path d="M9.354 16V7.24H12.174C12.99 7.24 13.638 7.476 14.118 7.948C14.606 8.412 14.85 9.036 14.85 9.82C14.85 10.604 14.606 11.232 14.118 11.704C13.638 12.168 12.99 12.4 12.174 12.4H10.434V16H9.354ZM10.434 11.428H12.174C12.646 11.428 13.022 11.284 13.302 10.996C13.59 10.7 13.734 10.308 13.734 9.82C13.734 9.324 13.59 8.932 13.302 8.644C13.022 8.356 12.646 8.212 12.174 8.212H10.434V11.428Z" fill="var(--color-text)"></path></g><g id="icon-32"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-variable)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M11.106 16L8.85 7.24H9.966L11.454 13.192C11.558 13.608 11.646 13.996 11.718 14.356C11.79 14.708 11.842 14.976 11.874 15.16C11.906 14.976 11.954 14.708 12.018 14.356C12.09 13.996 12.178 13.608 12.282 13.192L13.758 7.24H14.85L12.582 16H11.106Z" fill="var(--color-text)"></path></g><g id="icon-64"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-function)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M9.39 16V7.24H14.55V8.224H10.446V11.128H14.238V12.112H10.47V16H9.39Z" fill="var(--color-text)"></path></g><g id="icon-128"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-class)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M11.898 16.1201C11.098 16.1201 10.466 15.8961 10.002 15.4481C9.53803 15.0001 9.30603 14.3841 9.30603 13.6001V9.64012C9.30603 8.85612 9.53803 8.24012 10.002 7.79212C10.466 7.34412 11.098 7.12012 11.898 7.12012C12.682 7.12012 13.306 7.34812 13.77 7.80412C14.234 8.25212 14.466 8.86412 14.466 9.64012H13.386C13.386 9.14412 13.254 8.76412 12.99 8.50012C12.734 8.22812 12.37 8.09212 11.898 8.09212C11.426 8.09212 11.054 8.22412 10.782 8.48812C10.518 8.75212 10.386 9.13212 10.386 9.62812V13.6001C10.386 14.0961 10.518 14.4801 10.782 14.7521C11.054 15.0161 11.426 15.1481 11.898 15.1481C12.37 15.1481 12.734 15.0161 12.99 14.7521C13.254 14.4801 13.386 14.0961 13.386 13.6001H14.466C14.466 14.3761 14.234 14.9921 13.77 15.4481C13.306 15.8961 12.682 16.1201 11.898 16.1201Z" fill="var(--color-text)"></path></g><g id="icon-256"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-interface)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M9.51 16V15.016H11.298V8.224H9.51V7.24H14.19V8.224H12.402V15.016H14.19V16H9.51Z" fill="var(--color-text)"></path></g><g id="icon-512"><rect fill="var(--color-icon-background)" stroke="#4D7FFF" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><path d="M11.898 16.1201C11.098 16.1201 10.466 15.8961 10.002 15.4481C9.53803 15.0001 9.30603 14.3841 9.30603 13.6001V9.64012C9.30603 8.85612 9.53803 8.24012 10.002 7.79212C10.466 7.34412 11.098 7.12012 11.898 7.12012C12.682 7.12012 13.306 7.34812 13.77 7.80412C14.234 8.25212 14.466 8.86412 14.466 9.64012H13.386C13.386 9.14412 13.254 8.76412 12.99 8.50012C12.734 8.22812 12.37 8.09212 11.898 8.09212C11.426 8.09212 11.054 8.22412 10.782 8.48812C10.518 8.75212 10.386 9.13212 10.386 9.62812V13.6001C10.386 14.0961 10.518 14.4801 10.782 14.7521C11.054 15.0161 11.426 15.1481 11.898 15.1481C12.37 15.1481 12.734 15.0161 12.99 14.7521C13.254 14.4801 13.386 14.0961 13.386 13.6001H14.466C14.466 14.3761 14.234 14.9921 13.77 15.4481C13.306 15.8961 12.682 16.1201 11.898 16.1201Z" fill="var(--color-text)"></path></g><g id="icon-1024"><rect fill="var(--color-icon-background)" stroke="#FF984D" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><path d="M9.354 16V7.24H12.174C12.99 7.24 13.638 7.476 14.118 7.948C14.606 8.412 14.85 9.036 14.85 9.82C14.85 10.604 14.606 11.232 14.118 11.704C13.638 12.168 12.99 12.4 12.174 12.4H10.434V16H9.354ZM10.434 11.428H12.174C12.646 11.428 13.022 11.284 13.302 10.996C13.59 10.7 13.734 10.308 13.734 9.82C13.734 9.324 13.59 8.932 13.302 8.644C13.022 8.356 12.646 8.212 12.174 8.212H10.434V11.428Z" fill="var(--color-text)"></path></g><g id="icon-2048"><rect fill="var(--color-icon-background)" stroke="#FF4DB8" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><path d="M9.162 16V7.24H10.578L11.514 10.072C11.602 10.328 11.674 10.584 11.73 10.84C11.794 11.088 11.842 11.28 11.874 11.416C11.906 11.28 11.954 11.088 12.018 10.84C12.082 10.584 12.154 10.324 12.234 10.06L13.122 7.24H14.538V16H13.482V12.82C13.482 12.468 13.49 12.068 13.506 11.62C13.53 11.172 13.558 10.716 13.59 10.252C13.622 9.78 13.654 9.332 13.686 8.908C13.726 8.476 13.762 8.1 13.794 7.78L12.366 12.16H11.334L9.894 7.78C9.934 8.092 9.97 8.456 10.002 8.872C10.042 9.28 10.078 9.716 10.11 10.18C10.142 10.636 10.166 11.092 10.182 11.548C10.206 12.004 10.218 12.428 10.218 12.82V16H9.162Z" fill="var(--color-text)"></path></g><g id="icon-4096"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-function)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M9.39 16V7.24H14.55V8.224H10.446V11.128H14.238V12.112H10.47V16H9.39Z" fill="var(--color-text)"></path></g><g id="icon-8192"><rect fill="var(--color-icon-background)" stroke="#FF984D" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><path d="M9.354 16V7.24H12.174C12.99 7.24 13.638 7.476 14.118 7.948C14.606 8.412 14.85 9.036 14.85 9.82C14.85 10.604 14.606 11.232 14.118 11.704C13.638 12.168 12.99 12.4 12.174 12.4H10.434V16H9.354ZM10.434 11.428H12.174C12.646 11.428 13.022 11.284 13.302 10.996C13.59 10.7 13.734 10.308 13.734 9.82C13.734 9.324 13.59 8.932 13.302 8.644C13.022 8.356 12.646 8.212 12.174 8.212H10.434V11.428Z" fill="var(--color-text)"></path></g><g id="icon-16384"><rect fill="var(--color-icon-background)" stroke="#4D7FFF" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><path d="M11.898 16.1201C11.098 16.1201 10.466 15.8961 10.002 15.4481C9.53803 15.0001 9.30603 14.3841 9.30603 13.6001V9.64012C9.30603 8.85612 9.53803 8.24012 10.002 7.79212C10.466 7.34412 11.098 7.12012 11.898 7.12012C12.682 7.12012 13.306 7.34812 13.77 7.80412C14.234 8.25212 14.466 8.86412 14.466 9.64012H13.386C13.386 9.14412 13.254 8.76412 12.99 8.50012C12.734 8.22812 12.37 8.09212 11.898 8.09212C11.426 8.09212 11.054 8.22412 10.782 8.48812C10.518 8.75212 10.386 9.13212 10.386 9.62812V13.6001C10.386 14.0961 10.518 14.4801 10.782 14.7521C11.054 15.0161 11.426 15.1481 11.898 15.1481C12.37 15.1481 12.734 15.0161 12.99 14.7521C13.254 14.4801 13.386 14.0961 13.386 13.6001H14.466C14.466 14.3761 14.234 14.9921 13.77 15.4481C13.306 15.8961 12.682 16.1201 11.898 16.1201Z" fill="var(--color-text)"></path></g><g id="icon-32768"><rect fill="var(--color-icon-background)" stroke="#FF984D" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><path d="M9.354 16V7.24H12.174C12.99 7.24 13.638 7.476 14.118 7.948C14.606 8.412 14.85 9.036 14.85 9.82C14.85 10.604 14.606 11.232 14.118 11.704C13.638 12.168 12.99 12.4 12.174 12.4H10.434V16H9.354ZM10.434 11.428H12.174C12.646 11.428 13.022 11.284 13.302 10.996C13.59 10.7 13.734 10.308 13.734 9.82C13.734 9.324 13.59 8.932 13.302 8.644C13.022 8.356 12.646 8.212 12.174 8.212H10.434V11.428Z" fill="var(--color-text)"></path></g><g id="icon-65536"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-type-alias)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M11.31 16V8.224H8.91V7.24H14.79V8.224H12.39V16H11.31Z" fill="var(--color-text)"></path></g><g id="icon-131072"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-type-alias)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M11.31 16V8.224H8.91V7.24H14.79V8.224H12.39V16H11.31Z" fill="var(--color-text)"></path></g><g id="icon-262144"><rect fill="var(--color-icon-background)" stroke="#FF4D4D" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><path d="M8.85 16L11.13 7.24H12.582L14.85 16H13.758L13.182 13.672H10.53L9.954 16H8.85ZM10.746 12.76H12.954L12.282 10.06C12.154 9.548 12.054 9.12 11.982 8.776C11.91 8.432 11.866 8.208 11.85 8.104C11.834 8.208 11.79 8.432 11.718 8.776C11.646 9.12 11.546 9.544 11.418 10.048L10.746 12.76Z" fill="var(--color-text)"></path></g><g id="icon-524288"><rect fill="var(--color-icon-background)" stroke="#FF4D4D" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><path d="M8.85 16L11.13 7.24H12.582L14.85 16H13.758L13.182 13.672H10.53L9.954 16H8.85ZM10.746 12.76H12.954L12.282 10.06C12.154 9.548 12.054 9.12 11.982 8.776C11.91 8.432 11.866 8.208 11.85 8.104C11.834 8.208 11.79 8.432 11.718 8.776C11.646 9.12 11.546 9.544 11.418 10.048L10.746 12.76Z" fill="var(--color-text)"></path></g><g id="icon-1048576"><rect fill="var(--color-icon-background)" stroke="#FF4D4D" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><path d="M8.85 16L11.13 7.24H12.582L14.85 16H13.758L13.182 13.672H10.53L9.954 16H8.85ZM10.746 12.76H12.954L12.282 10.06C12.154 9.548 12.054 9.12 11.982 8.776C11.91 8.432 11.866 8.208 11.85 8.104C11.834 8.208 11.79 8.432 11.718 8.776C11.646 9.12 11.546 9.544 11.418 10.048L10.746 12.76Z" fill="var(--color-text)"></path></g><g id="icon-2097152"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-type-alias)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M11.31 16V8.224H8.91V7.24H14.79V8.224H12.39V16H11.31Z" fill="var(--color-text)"></path></g><g id="icon-4194304"><rect fill="var(--color-icon-background)" stroke="#FF4D82" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><path d="M10.354 17V8.24H13.066C13.586 8.24 14.042 8.348 14.434 8.564C14.826 8.772 15.13 9.064 15.346 9.44C15.562 9.816 15.67 10.256 15.67 10.76C15.67 11.352 15.514 11.86 15.202 12.284C14.898 12.708 14.482 13 13.954 13.16L15.79 17H14.518L12.838 13.28H11.434V17H10.354ZM11.434 12.308H13.066C13.514 12.308 13.874 12.168 14.146 11.888C14.418 11.6 14.554 11.224 14.554 10.76C14.554 10.288 14.418 9.912 14.146 9.632C13.874 9.352 13.514 9.212 13.066 9.212H11.434V12.308Z" fill="var(--color-text)"></path></g><g id="icon-chevronDown"><path d="M4.93896 8.531L12 15.591L19.061 8.531L16.939 6.409L12 11.349L7.06098 6.409L4.93896 8.531Z" fill="var(--color-text)"></path></g><g id="icon-chevronSmall"><path d="M1.5 5.50969L8 11.6609L14.5 5.50969L12.5466 3.66086L8 7.96494L3.45341 3.66086L1.5 5.50969Z" fill="var(--color-text)"></path></g><g id="icon-checkbox"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></g><g id="icon-menu"><rect x="1" y="3" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="7" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="11" width="14" height="2" fill="var(--color-text)"></rect></g><g id="icon-search"><path d="M15.7824 13.833L12.6666 10.7177C12.5259 10.5771 12.3353 10.499 12.1353 10.499H11.6259C12.4884 9.39596 13.001 8.00859 13.001 6.49937C13.001 2.90909 10.0914 0 6.50048 0C2.90959 0 0 2.90909 0 6.49937C0 10.0896 2.90959 12.9987 6.50048 12.9987C8.00996 12.9987 9.39756 12.4863 10.5008 11.6239V12.1332C10.5008 12.3332 10.5789 12.5238 10.7195 12.6644L13.8354 15.7797C14.1292 16.0734 14.6042 16.0734 14.8948 15.7797L15.7793 14.8954C16.0731 14.6017 16.0731 14.1267 15.7824 13.833ZM6.50048 10.499C4.29094 10.499 2.50018 8.71165 2.50018 6.49937C2.50018 4.29021 4.28781 2.49976 6.50048 2.49976C8.71001 2.49976 10.5008 4.28708 10.5008 6.49937C10.5008 8.70852 8.71314 10.499 6.50048 10.499Z" fill="var(--color-text)"></path></g><g id="icon-anchor"><g stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></g></g>`;
|
|
3
|
-
svg.style.display = 'none';
|
|
4
|
-
if (location.protocol === 'file:') {
|
|
5
|
-
if (document.readyState === 'loading') document.addEventListener('DOMContentLoaded', updateUseElements);
|
|
6
|
-
else updateUseElements()
|
|
7
|
-
function updateUseElements() {
|
|
8
|
-
document.querySelectorAll('use').forEach(el => {
|
|
9
|
-
if (el.getAttribute('href').includes('#icon-')) {
|
|
10
|
-
el.setAttribute('href', el.getAttribute('href').replace(/.*#/, '#'));
|
|
11
|
-
}
|
|
12
|
-
});
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
})(document.body.appendChild(document.createElementNS('http://www.w3.org/2000/svg', 'svg')))
|
package/docs/assets/icons.svg
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg"><g id="icon-1"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-module)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M9.162 16V7.24H10.578L11.514 10.072C11.602 10.328 11.674 10.584 11.73 10.84C11.794 11.088 11.842 11.28 11.874 11.416C11.906 11.28 11.954 11.088 12.018 10.84C12.082 10.584 12.154 10.324 12.234 10.06L13.122 7.24H14.538V16H13.482V12.82C13.482 12.468 13.49 12.068 13.506 11.62C13.53 11.172 13.558 10.716 13.59 10.252C13.622 9.78 13.654 9.332 13.686 8.908C13.726 8.476 13.762 8.1 13.794 7.78L12.366 12.16H11.334L9.894 7.78C9.934 8.092 9.97 8.456 10.002 8.872C10.042 9.28 10.078 9.716 10.11 10.18C10.142 10.636 10.166 11.092 10.182 11.548C10.206 12.004 10.218 12.428 10.218 12.82V16H9.162Z" fill="var(--color-text)"></path></g><g id="icon-2"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-module)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M9.162 16V7.24H10.578L11.514 10.072C11.602 10.328 11.674 10.584 11.73 10.84C11.794 11.088 11.842 11.28 11.874 11.416C11.906 11.28 11.954 11.088 12.018 10.84C12.082 10.584 12.154 10.324 12.234 10.06L13.122 7.24H14.538V16H13.482V12.82C13.482 12.468 13.49 12.068 13.506 11.62C13.53 11.172 13.558 10.716 13.59 10.252C13.622 9.78 13.654 9.332 13.686 8.908C13.726 8.476 13.762 8.1 13.794 7.78L12.366 12.16H11.334L9.894 7.78C9.934 8.092 9.97 8.456 10.002 8.872C10.042 9.28 10.078 9.716 10.11 10.18C10.142 10.636 10.166 11.092 10.182 11.548C10.206 12.004 10.218 12.428 10.218 12.82V16H9.162Z" fill="var(--color-text)"></path></g><g id="icon-4"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-namespace)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M9.33 16V7.24H10.77L13.446 14.74C13.43 14.54 13.41 14.296 13.386 14.008C13.37 13.712 13.354 13.404 13.338 13.084C13.33 12.756 13.326 12.448 13.326 12.16V7.24H14.37V16H12.93L10.266 8.5C10.282 8.692 10.298 8.936 10.314 9.232C10.33 9.52 10.342 9.828 10.35 10.156C10.366 10.476 10.374 10.784 10.374 11.08V16H9.33Z" fill="var(--color-text)"></path></g><g id="icon-8"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-enum)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M9.45 16V7.24H14.49V8.224H10.518V10.936H14.07V11.908H10.518V15.016H14.49V16H9.45Z" fill="var(--color-text)"></path></g><g id="icon-16"><rect fill="var(--color-icon-background)" stroke="#FF984D" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><path d="M9.354 16V7.24H12.174C12.99 7.24 13.638 7.476 14.118 7.948C14.606 8.412 14.85 9.036 14.85 9.82C14.85 10.604 14.606 11.232 14.118 11.704C13.638 12.168 12.99 12.4 12.174 12.4H10.434V16H9.354ZM10.434 11.428H12.174C12.646 11.428 13.022 11.284 13.302 10.996C13.59 10.7 13.734 10.308 13.734 9.82C13.734 9.324 13.59 8.932 13.302 8.644C13.022 8.356 12.646 8.212 12.174 8.212H10.434V11.428Z" fill="var(--color-text)"></path></g><g id="icon-32"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-variable)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M11.106 16L8.85 7.24H9.966L11.454 13.192C11.558 13.608 11.646 13.996 11.718 14.356C11.79 14.708 11.842 14.976 11.874 15.16C11.906 14.976 11.954 14.708 12.018 14.356C12.09 13.996 12.178 13.608 12.282 13.192L13.758 7.24H14.85L12.582 16H11.106Z" fill="var(--color-text)"></path></g><g id="icon-64"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-function)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M9.39 16V7.24H14.55V8.224H10.446V11.128H14.238V12.112H10.47V16H9.39Z" fill="var(--color-text)"></path></g><g id="icon-128"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-class)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M11.898 16.1201C11.098 16.1201 10.466 15.8961 10.002 15.4481C9.53803 15.0001 9.30603 14.3841 9.30603 13.6001V9.64012C9.30603 8.85612 9.53803 8.24012 10.002 7.79212C10.466 7.34412 11.098 7.12012 11.898 7.12012C12.682 7.12012 13.306 7.34812 13.77 7.80412C14.234 8.25212 14.466 8.86412 14.466 9.64012H13.386C13.386 9.14412 13.254 8.76412 12.99 8.50012C12.734 8.22812 12.37 8.09212 11.898 8.09212C11.426 8.09212 11.054 8.22412 10.782 8.48812C10.518 8.75212 10.386 9.13212 10.386 9.62812V13.6001C10.386 14.0961 10.518 14.4801 10.782 14.7521C11.054 15.0161 11.426 15.1481 11.898 15.1481C12.37 15.1481 12.734 15.0161 12.99 14.7521C13.254 14.4801 13.386 14.0961 13.386 13.6001H14.466C14.466 14.3761 14.234 14.9921 13.77 15.4481C13.306 15.8961 12.682 16.1201 11.898 16.1201Z" fill="var(--color-text)"></path></g><g id="icon-256"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-interface)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M9.51 16V15.016H11.298V8.224H9.51V7.24H14.19V8.224H12.402V15.016H14.19V16H9.51Z" fill="var(--color-text)"></path></g><g id="icon-512"><rect fill="var(--color-icon-background)" stroke="#4D7FFF" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><path d="M11.898 16.1201C11.098 16.1201 10.466 15.8961 10.002 15.4481C9.53803 15.0001 9.30603 14.3841 9.30603 13.6001V9.64012C9.30603 8.85612 9.53803 8.24012 10.002 7.79212C10.466 7.34412 11.098 7.12012 11.898 7.12012C12.682 7.12012 13.306 7.34812 13.77 7.80412C14.234 8.25212 14.466 8.86412 14.466 9.64012H13.386C13.386 9.14412 13.254 8.76412 12.99 8.50012C12.734 8.22812 12.37 8.09212 11.898 8.09212C11.426 8.09212 11.054 8.22412 10.782 8.48812C10.518 8.75212 10.386 9.13212 10.386 9.62812V13.6001C10.386 14.0961 10.518 14.4801 10.782 14.7521C11.054 15.0161 11.426 15.1481 11.898 15.1481C12.37 15.1481 12.734 15.0161 12.99 14.7521C13.254 14.4801 13.386 14.0961 13.386 13.6001H14.466C14.466 14.3761 14.234 14.9921 13.77 15.4481C13.306 15.8961 12.682 16.1201 11.898 16.1201Z" fill="var(--color-text)"></path></g><g id="icon-1024"><rect fill="var(--color-icon-background)" stroke="#FF984D" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><path d="M9.354 16V7.24H12.174C12.99 7.24 13.638 7.476 14.118 7.948C14.606 8.412 14.85 9.036 14.85 9.82C14.85 10.604 14.606 11.232 14.118 11.704C13.638 12.168 12.99 12.4 12.174 12.4H10.434V16H9.354ZM10.434 11.428H12.174C12.646 11.428 13.022 11.284 13.302 10.996C13.59 10.7 13.734 10.308 13.734 9.82C13.734 9.324 13.59 8.932 13.302 8.644C13.022 8.356 12.646 8.212 12.174 8.212H10.434V11.428Z" fill="var(--color-text)"></path></g><g id="icon-2048"><rect fill="var(--color-icon-background)" stroke="#FF4DB8" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><path d="M9.162 16V7.24H10.578L11.514 10.072C11.602 10.328 11.674 10.584 11.73 10.84C11.794 11.088 11.842 11.28 11.874 11.416C11.906 11.28 11.954 11.088 12.018 10.84C12.082 10.584 12.154 10.324 12.234 10.06L13.122 7.24H14.538V16H13.482V12.82C13.482 12.468 13.49 12.068 13.506 11.62C13.53 11.172 13.558 10.716 13.59 10.252C13.622 9.78 13.654 9.332 13.686 8.908C13.726 8.476 13.762 8.1 13.794 7.78L12.366 12.16H11.334L9.894 7.78C9.934 8.092 9.97 8.456 10.002 8.872C10.042 9.28 10.078 9.716 10.11 10.18C10.142 10.636 10.166 11.092 10.182 11.548C10.206 12.004 10.218 12.428 10.218 12.82V16H9.162Z" fill="var(--color-text)"></path></g><g id="icon-4096"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-function)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M9.39 16V7.24H14.55V8.224H10.446V11.128H14.238V12.112H10.47V16H9.39Z" fill="var(--color-text)"></path></g><g id="icon-8192"><rect fill="var(--color-icon-background)" stroke="#FF984D" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><path d="M9.354 16V7.24H12.174C12.99 7.24 13.638 7.476 14.118 7.948C14.606 8.412 14.85 9.036 14.85 9.82C14.85 10.604 14.606 11.232 14.118 11.704C13.638 12.168 12.99 12.4 12.174 12.4H10.434V16H9.354ZM10.434 11.428H12.174C12.646 11.428 13.022 11.284 13.302 10.996C13.59 10.7 13.734 10.308 13.734 9.82C13.734 9.324 13.59 8.932 13.302 8.644C13.022 8.356 12.646 8.212 12.174 8.212H10.434V11.428Z" fill="var(--color-text)"></path></g><g id="icon-16384"><rect fill="var(--color-icon-background)" stroke="#4D7FFF" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><path d="M11.898 16.1201C11.098 16.1201 10.466 15.8961 10.002 15.4481C9.53803 15.0001 9.30603 14.3841 9.30603 13.6001V9.64012C9.30603 8.85612 9.53803 8.24012 10.002 7.79212C10.466 7.34412 11.098 7.12012 11.898 7.12012C12.682 7.12012 13.306 7.34812 13.77 7.80412C14.234 8.25212 14.466 8.86412 14.466 9.64012H13.386C13.386 9.14412 13.254 8.76412 12.99 8.50012C12.734 8.22812 12.37 8.09212 11.898 8.09212C11.426 8.09212 11.054 8.22412 10.782 8.48812C10.518 8.75212 10.386 9.13212 10.386 9.62812V13.6001C10.386 14.0961 10.518 14.4801 10.782 14.7521C11.054 15.0161 11.426 15.1481 11.898 15.1481C12.37 15.1481 12.734 15.0161 12.99 14.7521C13.254 14.4801 13.386 14.0961 13.386 13.6001H14.466C14.466 14.3761 14.234 14.9921 13.77 15.4481C13.306 15.8961 12.682 16.1201 11.898 16.1201Z" fill="var(--color-text)"></path></g><g id="icon-32768"><rect fill="var(--color-icon-background)" stroke="#FF984D" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><path d="M9.354 16V7.24H12.174C12.99 7.24 13.638 7.476 14.118 7.948C14.606 8.412 14.85 9.036 14.85 9.82C14.85 10.604 14.606 11.232 14.118 11.704C13.638 12.168 12.99 12.4 12.174 12.4H10.434V16H9.354ZM10.434 11.428H12.174C12.646 11.428 13.022 11.284 13.302 10.996C13.59 10.7 13.734 10.308 13.734 9.82C13.734 9.324 13.59 8.932 13.302 8.644C13.022 8.356 12.646 8.212 12.174 8.212H10.434V11.428Z" fill="var(--color-text)"></path></g><g id="icon-65536"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-type-alias)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M11.31 16V8.224H8.91V7.24H14.79V8.224H12.39V16H11.31Z" fill="var(--color-text)"></path></g><g id="icon-131072"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-type-alias)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M11.31 16V8.224H8.91V7.24H14.79V8.224H12.39V16H11.31Z" fill="var(--color-text)"></path></g><g id="icon-262144"><rect fill="var(--color-icon-background)" stroke="#FF4D4D" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><path d="M8.85 16L11.13 7.24H12.582L14.85 16H13.758L13.182 13.672H10.53L9.954 16H8.85ZM10.746 12.76H12.954L12.282 10.06C12.154 9.548 12.054 9.12 11.982 8.776C11.91 8.432 11.866 8.208 11.85 8.104C11.834 8.208 11.79 8.432 11.718 8.776C11.646 9.12 11.546 9.544 11.418 10.048L10.746 12.76Z" fill="var(--color-text)"></path></g><g id="icon-524288"><rect fill="var(--color-icon-background)" stroke="#FF4D4D" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><path d="M8.85 16L11.13 7.24H12.582L14.85 16H13.758L13.182 13.672H10.53L9.954 16H8.85ZM10.746 12.76H12.954L12.282 10.06C12.154 9.548 12.054 9.12 11.982 8.776C11.91 8.432 11.866 8.208 11.85 8.104C11.834 8.208 11.79 8.432 11.718 8.776C11.646 9.12 11.546 9.544 11.418 10.048L10.746 12.76Z" fill="var(--color-text)"></path></g><g id="icon-1048576"><rect fill="var(--color-icon-background)" stroke="#FF4D4D" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><path d="M8.85 16L11.13 7.24H12.582L14.85 16H13.758L13.182 13.672H10.53L9.954 16H8.85ZM10.746 12.76H12.954L12.282 10.06C12.154 9.548 12.054 9.12 11.982 8.776C11.91 8.432 11.866 8.208 11.85 8.104C11.834 8.208 11.79 8.432 11.718 8.776C11.646 9.12 11.546 9.544 11.418 10.048L10.746 12.76Z" fill="var(--color-text)"></path></g><g id="icon-2097152"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-type-alias)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M11.31 16V8.224H8.91V7.24H14.79V8.224H12.39V16H11.31Z" fill="var(--color-text)"></path></g><g id="icon-4194304"><rect fill="var(--color-icon-background)" stroke="#FF4D82" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><path d="M10.354 17V8.24H13.066C13.586 8.24 14.042 8.348 14.434 8.564C14.826 8.772 15.13 9.064 15.346 9.44C15.562 9.816 15.67 10.256 15.67 10.76C15.67 11.352 15.514 11.86 15.202 12.284C14.898 12.708 14.482 13 13.954 13.16L15.79 17H14.518L12.838 13.28H11.434V17H10.354ZM11.434 12.308H13.066C13.514 12.308 13.874 12.168 14.146 11.888C14.418 11.6 14.554 11.224 14.554 10.76C14.554 10.288 14.418 9.912 14.146 9.632C13.874 9.352 13.514 9.212 13.066 9.212H11.434V12.308Z" fill="var(--color-text)"></path></g><g id="icon-chevronDown"><path d="M4.93896 8.531L12 15.591L19.061 8.531L16.939 6.409L12 11.349L7.06098 6.409L4.93896 8.531Z" fill="var(--color-text)"></path></g><g id="icon-chevronSmall"><path d="M1.5 5.50969L8 11.6609L14.5 5.50969L12.5466 3.66086L8 7.96494L3.45341 3.66086L1.5 5.50969Z" fill="var(--color-text)"></path></g><g id="icon-checkbox"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></g><g id="icon-menu"><rect x="1" y="3" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="7" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="11" width="14" height="2" fill="var(--color-text)"></rect></g><g id="icon-search"><path d="M15.7824 13.833L12.6666 10.7177C12.5259 10.5771 12.3353 10.499 12.1353 10.499H11.6259C12.4884 9.39596 13.001 8.00859 13.001 6.49937C13.001 2.90909 10.0914 0 6.50048 0C2.90959 0 0 2.90909 0 6.49937C0 10.0896 2.90959 12.9987 6.50048 12.9987C8.00996 12.9987 9.39756 12.4863 10.5008 11.6239V12.1332C10.5008 12.3332 10.5789 12.5238 10.7195 12.6644L13.8354 15.7797C14.1292 16.0734 14.6042 16.0734 14.8948 15.7797L15.7793 14.8954C16.0731 14.6017 16.0731 14.1267 15.7824 13.833ZM6.50048 10.499C4.29094 10.499 2.50018 8.71165 2.50018 6.49937C2.50018 4.29021 4.28781 2.49976 6.50048 2.49976C8.71001 2.49976 10.5008 4.28708 10.5008 6.49937C10.5008 8.70852 8.71314 10.499 6.50048 10.499Z" fill="var(--color-text)"></path></g><g id="icon-anchor"><g stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></g></g></svg>
|