poe-svelte-ui-lib 2.3.8 → 2.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +111 -40
- package/dist/Button/ButtonProps.svelte +3 -3
- package/dist/Button/README.md +1 -1
- package/dist/FieldLabel.svelte +4 -2
- package/dist/GUIRenderer/GUIRenderer.svelte +48 -18
- package/dist/Graph/Graph.svelte +3 -3
- package/dist/Graph/README.md +10 -8
- package/dist/Input/Input.svelte +9 -4
- package/dist/Input/InputProps.svelte +3 -1
- package/dist/Input/README.md +1 -1
- package/dist/Joystick/Joystick.svelte +3 -3
- package/dist/Joystick/README.md +13 -11
- package/dist/PeriodChart/PeriodChart.svelte +3 -3
- package/dist/PeriodChart/README.md +2 -0
- package/dist/ProgressBar/ProgressBar.svelte +4 -0
- package/dist/ProgressBar/README.md +14 -10
- package/dist/Select/README.md +1 -1
- package/dist/Select/SelectProps.svelte +3 -3
- package/dist/Slider/README.md +15 -13
- package/dist/Slider/Slider.svelte +2 -1
- package/dist/Table/README.md +22 -20
- package/dist/Table/Table.svelte +3 -3
- package/dist/Table/TableProps.svelte +3 -1
- package/dist/Tabs/README.md +7 -5
- package/dist/Tabs/Tabs.svelte +7 -1
- package/dist/TextsEditor.svelte +8 -4
- package/dist/VideoViewer/README.md +15 -13
- package/dist/VideoViewer/VideoViewer.svelte +21 -11
- package/dist/WidgetDeviceInfo/README.md +20 -18
- package/dist/WidgetDeviceInfo/WidgetDeviceInfo.svelte +33 -13
- package/dist/WidgetDeviceInfo/WidgetDeviceInfoProps.svelte +3 -1
- package/dist/WidgetFileSystem/README.md +20 -20
- package/dist/WidgetFileSystem/WidgetFileSystem.svelte +8 -9
- package/dist/WidgetMap/README.md +7 -0
- package/dist/WidgetMap/mapWrapper/utils.js +2 -2
- package/dist/WidgetStackInfo/README.md +1 -1
- package/dist/WidgetStackInfo/WidgetStackInfo.svelte +24 -9
- package/dist/WidgetWiFi/README.md +18 -16
- package/dist/WidgetWiFi/WidgetWiFi.svelte +37 -19
- package/dist/defaults.js +8 -5
- package/dist/fsTransfer.d.ts +18 -3
- package/dist/fsTransfer.js +45 -10
- package/dist/gui.js +1 -1
- package/dist/html.js +34 -9
- package/dist/icons.js +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/locales/constructor.js +6 -6
- package/dist/locales/localize.js +9 -6
- package/dist/locales/translations.d.ts +51 -1
- package/dist/locales/translations.js +29 -7
- package/dist/options.d.ts +2 -0
- package/dist/options.js +9 -0
- package/dist/protocols/PROTOCOL.md +157 -31
- package/dist/protocols/can.js +7 -3
- package/dist/protocols/cbor/decoder.d.ts +0 -4
- package/dist/protocols/cbor/decoder.js +4 -23
- package/dist/protocols/cbor/encoder.d.ts +1 -1
- package/dist/protocols/cbor/encoder.js +3 -6
- package/dist/protocols/cbor/types.d.ts +0 -8
- package/dist/protocols/cbor/value.js +3 -3
- package/dist/protocols/dictionary.d.ts +9 -1
- package/dist/protocols/dictionary.js +11 -4
- package/dist/protocols/dictionary.yaml +26 -1
- package/dist/protocols/dictionaryCodes.js +17 -0
- package/dist/protocols/index.d.ts +4 -2
- package/dist/protocols/index.js +7 -3
- package/dist/protocols/packet.d.ts +1 -0
- package/dist/protocols/packet.js +21 -22
- package/dist/protocols/wsEnvelope.d.ts +17 -0
- package/dist/protocols/wsEnvelope.js +38 -0
- package/dist/protocols/xPoeDebug.d.ts +0 -1
- package/dist/protocols/xPoeDebug.js +12 -16
- package/dist/types.d.ts +26 -0
- package/package.json +2 -2
- package/dist/IconsCatalog/battery/battery1.svg +0 -1
- package/dist/IconsCatalog/battery/battery2.svg +0 -1
- package/dist/IconsCatalog/battery/battery3.svg +0 -1
- package/dist/IconsCatalog/battery/battery4.svg +0 -1
- package/dist/IconsCatalog/battery/battery5.svg +0 -1
- package/dist/IconsCatalog/bulb/bulb1.svg +0 -1
- package/dist/IconsCatalog/bulb/bulb2.svg +0 -1
- package/dist/IconsCatalog/bulb/bulb3.svg +0 -1
- package/dist/IconsCatalog/bulb/bulb4.svg +0 -1
- package/dist/IconsCatalog/bulb/bulb5.svg +0 -1
- package/dist/IconsCatalog/climate.air-conditioning.svg +0 -1
- package/dist/IconsCatalog/climate.car-fan.svg +0 -1
- package/dist/IconsCatalog/climate.cloud-rain.svg +0 -1
- package/dist/IconsCatalog/climate.droplet.svg +0 -1
- package/dist/IconsCatalog/climate.droplets.svg +0 -1
- package/dist/IconsCatalog/climate.flame.svg +0 -1
- package/dist/IconsCatalog/climate.leaf.svg +0 -1
- package/dist/IconsCatalog/climate.mist.svg +0 -1
- package/dist/IconsCatalog/climate.moon.svg +0 -1
- package/dist/IconsCatalog/climate.plant.svg +0 -1
- package/dist/IconsCatalog/climate.seedling.svg +0 -1
- package/dist/IconsCatalog/climate.snowflake.svg +0 -1
- package/dist/IconsCatalog/climate.sun.svg +0 -1
- package/dist/IconsCatalog/climate.temperature-sun.svg +0 -1
- package/dist/IconsCatalog/climate.trees.svg +0 -1
- package/dist/IconsCatalog/climate.wind.svg +0 -1
- package/dist/IconsCatalog/electronics.cpu-2.svg +0 -1
- package/dist/IconsCatalog/electronics.cpu.svg +0 -1
- package/dist/IconsCatalog/electronics.database.svg +0 -1
- package/dist/IconsCatalog/electronics.device-desktop.svg +0 -1
- package/dist/IconsCatalog/electronics.device-gamepad.svg +0 -1
- package/dist/IconsCatalog/electronics.device-laptop.svg +0 -1
- package/dist/IconsCatalog/electronics.device-mobile.svg +0 -1
- package/dist/IconsCatalog/electronics.device-sd-card.svg +0 -1
- package/dist/IconsCatalog/electronics.device-tablet.svg +0 -1
- package/dist/IconsCatalog/electronics.device-tv.svg +0 -1
- package/dist/IconsCatalog/electronics.device-watch.svg +0 -1
- package/dist/IconsCatalog/electronics.keyboard.svg +0 -1
- package/dist/IconsCatalog/electronics.printer.svg +0 -1
- package/dist/IconsCatalog/electronics.server.svg +0 -1
- package/dist/IconsCatalog/electronics.terminal-2.svg +0 -1
- package/dist/IconsCatalog/electronics.usb.svg +0 -1
- package/dist/IconsCatalog/home.bed.svg +0 -1
- package/dist/IconsCatalog/home.building.svg +0 -1
- package/dist/IconsCatalog/home.car-garage.svg +0 -1
- package/dist/IconsCatalog/home.door.svg +0 -1
- package/dist/IconsCatalog/home.elevator.svg +0 -1
- package/dist/IconsCatalog/home.fence.svg +0 -1
- package/dist/IconsCatalog/home.fingerprint.svg +0 -1
- package/dist/IconsCatalog/home.fridge.svg +0 -1
- package/dist/IconsCatalog/home.home.svg +0 -1
- package/dist/IconsCatalog/home.id-badge-2.svg +0 -1
- package/dist/IconsCatalog/home.key.svg +0 -1
- package/dist/IconsCatalog/home.lock.svg +0 -1
- package/dist/IconsCatalog/home.shield.svg +0 -1
- package/dist/IconsCatalog/home.sofa.svg +0 -1
- package/dist/IconsCatalog/home.users.svg +0 -1
- package/dist/IconsCatalog/home.window.svg +0 -1
- package/dist/IconsCatalog/iconsLib.d.ts +0 -1
- package/dist/IconsCatalog/iconsLib.js +0 -43
- package/dist/IconsCatalog/industry.assembly.svg +0 -1
- package/dist/IconsCatalog/industry.barrel.svg +0 -1
- package/dist/IconsCatalog/industry.box.svg +0 -1
- package/dist/IconsCatalog/industry.building-factory.svg +0 -1
- package/dist/IconsCatalog/industry.crane.svg +0 -1
- package/dist/IconsCatalog/industry.engine.svg +0 -1
- package/dist/IconsCatalog/industry.fire-extinguisher.svg +0 -1
- package/dist/IconsCatalog/industry.forklift.svg +0 -1
- package/dist/IconsCatalog/industry.gas-station.svg +0 -1
- package/dist/IconsCatalog/industry.hammer.svg +0 -1
- package/dist/IconsCatalog/industry.package.svg +0 -1
- package/dist/IconsCatalog/industry.recycle.svg +0 -1
- package/dist/IconsCatalog/industry.robot.svg +0 -1
- package/dist/IconsCatalog/industry.tool.svg +0 -1
- package/dist/IconsCatalog/industry.tools.svg +0 -1
- package/dist/IconsCatalog/industry.wheel.svg +0 -1
- package/dist/IconsCatalog/light.brightness.svg +0 -1
- package/dist/IconsCatalog/light.building-lighthouse.svg +0 -1
- package/dist/IconsCatalog/light.bulb-off.svg +0 -1
- package/dist/IconsCatalog/light.bulb.svg +0 -1
- package/dist/IconsCatalog/light.candle.svg +0 -1
- package/dist/IconsCatalog/light.color-picker.svg +0 -1
- package/dist/IconsCatalog/light.color-swatch.svg +0 -1
- package/dist/IconsCatalog/light.contrast.svg +0 -1
- package/dist/IconsCatalog/light.highlight.svg +0 -1
- package/dist/IconsCatalog/light.lamp-2.svg +0 -1
- package/dist/IconsCatalog/light.lamp.svg +0 -1
- package/dist/IconsCatalog/light.palette.svg +0 -1
- package/dist/IconsCatalog/light.prism-light.svg +0 -1
- package/dist/IconsCatalog/light.sparkles.svg +0 -1
- package/dist/IconsCatalog/light.sun-high.svg +0 -1
- package/dist/IconsCatalog/light.traffic-lights.svg +0 -1
- package/dist/IconsCatalog/media.camera.svg +0 -1
- package/dist/IconsCatalog/media.device-audio-tape.svg +0 -1
- package/dist/IconsCatalog/media.device-cctv.svg +0 -1
- package/dist/IconsCatalog/media.device-speaker.svg +0 -1
- package/dist/IconsCatalog/media.headphones.svg +0 -1
- package/dist/IconsCatalog/media.microphone.svg +0 -1
- package/dist/IconsCatalog/media.movie.svg +0 -1
- package/dist/IconsCatalog/media.music.svg +0 -1
- package/dist/IconsCatalog/media.photo.svg +0 -1
- package/dist/IconsCatalog/media.player-play.svg +0 -1
- package/dist/IconsCatalog/media.player-record.svg +0 -1
- package/dist/IconsCatalog/media.playlist.svg +0 -1
- package/dist/IconsCatalog/media.radio.svg +0 -1
- package/dist/IconsCatalog/media.speakerphone.svg +0 -1
- package/dist/IconsCatalog/media.video.svg +0 -1
- package/dist/IconsCatalog/media.volume.svg +0 -1
- package/dist/IconsCatalog/network.access-point.svg +0 -1
- package/dist/IconsCatalog/network.antenna-bars-5.svg +0 -1
- package/dist/IconsCatalog/network.antenna.svg +0 -1
- package/dist/IconsCatalog/network.bluetooth.svg +0 -1
- package/dist/IconsCatalog/network.broadcast.svg +0 -1
- package/dist/IconsCatalog/network.cell-signal-5.svg +0 -1
- package/dist/IconsCatalog/network.cloud.svg +0 -1
- package/dist/IconsCatalog/network.link.svg +0 -1
- package/dist/IconsCatalog/network.mail.svg +0 -1
- package/dist/IconsCatalog/network.message.svg +0 -1
- package/dist/IconsCatalog/network.network.svg +0 -1
- package/dist/IconsCatalog/network.nfc.svg +0 -1
- package/dist/IconsCatalog/network.router.svg +0 -1
- package/dist/IconsCatalog/network.wifi.svg +0 -1
- package/dist/IconsCatalog/network.world-www.svg +0 -1
- package/dist/IconsCatalog/network.world.svg +0 -1
- package/dist/IconsCatalog/power.battery-automotive.svg +0 -1
- package/dist/IconsCatalog/power.battery-charging.svg +0 -1
- package/dist/IconsCatalog/power.battery-eco.svg +0 -1
- package/dist/IconsCatalog/power.battery.svg +0 -1
- package/dist/IconsCatalog/power.bolt.svg +0 -1
- package/dist/IconsCatalog/power.charging-pile.svg +0 -1
- package/dist/IconsCatalog/power.circuit-ground.svg +0 -1
- package/dist/IconsCatalog/power.circuit-motor.svg +0 -1
- package/dist/IconsCatalog/power.circuit-resistor.svg +0 -1
- package/dist/IconsCatalog/power.circuit-switch-open.svg +0 -1
- package/dist/IconsCatalog/power.plug-connected.svg +0 -1
- package/dist/IconsCatalog/power.plug.svg +0 -1
- package/dist/IconsCatalog/power.power.svg +0 -1
- package/dist/IconsCatalog/power.solar-panel.svg +0 -1
- package/dist/IconsCatalog/power.toggle-left.svg +0 -1
- package/dist/IconsCatalog/power.windmill.svg +0 -1
- package/dist/IconsCatalog/propeller/propeller1.svg +0 -1
- package/dist/IconsCatalog/propeller/propeller2.svg +0 -1
- package/dist/IconsCatalog/propeller/propeller3.svg +0 -1
- package/dist/IconsCatalog/propeller/propeller4.svg +0 -1
- package/dist/IconsCatalog/propeller/propeller5.svg +0 -1
- package/dist/IconsCatalog/sensors.activity.svg +0 -1
- package/dist/IconsCatalog/sensors.atom.svg +0 -1
- package/dist/IconsCatalog/sensors.compass.svg +0 -1
- package/dist/IconsCatalog/sensors.dashboard.svg +0 -1
- package/dist/IconsCatalog/sensors.device-mobile-vibration.svg +0 -1
- package/dist/IconsCatalog/sensors.droplet-half-2.svg +0 -1
- package/dist/IconsCatalog/sensors.eye.svg +0 -1
- package/dist/IconsCatalog/sensors.flask.svg +0 -1
- package/dist/IconsCatalog/sensors.gauge.svg +0 -1
- package/dist/IconsCatalog/sensors.heartbeat.svg +0 -1
- package/dist/IconsCatalog/sensors.magnet.svg +0 -1
- package/dist/IconsCatalog/sensors.radioactive.svg +0 -1
- package/dist/IconsCatalog/sensors.ruler-measure.svg +0 -1
- package/dist/IconsCatalog/sensors.scale.svg +0 -1
- package/dist/IconsCatalog/sensors.temperature.svg +0 -1
- package/dist/IconsCatalog/sensors.thermometer.svg +0 -1
- package/dist/IconsCatalog/settings.adjustments.svg +0 -1
- package/dist/IconsCatalog/settings.alert-triangle.svg +0 -1
- package/dist/IconsCatalog/settings.bell.svg +0 -1
- package/dist/IconsCatalog/settings.calendar.svg +0 -1
- package/dist/IconsCatalog/settings.chart-bar.svg +0 -1
- package/dist/IconsCatalog/settings.chart-line.svg +0 -1
- package/dist/IconsCatalog/settings.chart-pie.svg +0 -1
- package/dist/IconsCatalog/settings.clock.svg +0 -1
- package/dist/IconsCatalog/settings.file-text.svg +0 -1
- package/dist/IconsCatalog/settings.folder.svg +0 -1
- package/dist/IconsCatalog/settings.history.svg +0 -1
- package/dist/IconsCatalog/settings.info-circle.svg +0 -1
- package/dist/IconsCatalog/settings.list.svg +0 -1
- package/dist/IconsCatalog/settings.report.svg +0 -1
- package/dist/IconsCatalog/settings.settings.svg +0 -1
- package/dist/IconsCatalog/settings.table.svg +0 -1
- package/dist/IconsCatalog/space.comet.svg +0 -1
- package/dist/IconsCatalog/space.meteor.svg +0 -1
- package/dist/IconsCatalog/space.moon-stars.svg +0 -1
- package/dist/IconsCatalog/space.orbit.svg +0 -1
- package/dist/IconsCatalog/space.parachute.svg +0 -1
- package/dist/IconsCatalog/space.plane-departure.svg +0 -1
- package/dist/IconsCatalog/space.planet.svg +0 -1
- package/dist/IconsCatalog/space.radar-2.svg +0 -1
- package/dist/IconsCatalog/space.radar.svg +0 -1
- package/dist/IconsCatalog/space.rocket.svg +0 -1
- package/dist/IconsCatalog/space.satellite.svg +0 -1
- package/dist/IconsCatalog/space.stars.svg +0 -1
- package/dist/IconsCatalog/space.target-arrow.svg +0 -1
- package/dist/IconsCatalog/space.telescope.svg +0 -1
- package/dist/IconsCatalog/space.ufo.svg +0 -1
- package/dist/IconsCatalog/space.world-longitude.svg +0 -1
- package/dist/IconsCatalog/transport.bike.svg +0 -1
- package/dist/IconsCatalog/transport.bus.svg +0 -1
- package/dist/IconsCatalog/transport.car.svg +0 -1
- package/dist/IconsCatalog/transport.drone.svg +0 -1
- package/dist/IconsCatalog/transport.gps.svg +0 -1
- package/dist/IconsCatalog/transport.helicopter.svg +0 -1
- package/dist/IconsCatalog/transport.map-pin.svg +0 -1
- package/dist/IconsCatalog/transport.map.svg +0 -1
- package/dist/IconsCatalog/transport.navigation.svg +0 -1
- package/dist/IconsCatalog/transport.plane.svg +0 -1
- package/dist/IconsCatalog/transport.route.svg +0 -1
- package/dist/IconsCatalog/transport.ship.svg +0 -1
- package/dist/IconsCatalog/transport.steering-wheel.svg +0 -1
- package/dist/IconsCatalog/transport.tractor.svg +0 -1
- package/dist/IconsCatalog/transport.train.svg +0 -1
- package/dist/IconsCatalog/transport.truck.svg +0 -1
|
@@ -27,13 +27,13 @@ class CborToValue {
|
|
|
27
27
|
/* Array */
|
|
28
28
|
if (Array.isArray(value))
|
|
29
29
|
return value.map((item) => this.convert(item));
|
|
30
|
-
/* bigint */
|
|
30
|
+
/* bigint: декодер отдаёт его для целых вне safe integer (uint64 устройства) */
|
|
31
31
|
if (typeof value === "bigint") {
|
|
32
|
-
/*
|
|
32
|
+
/* В пределах safe integer - число */
|
|
33
33
|
if (value >= BigInt(Number.MIN_SAFE_INTEGER) && value <= BigInt(Number.MAX_SAFE_INTEGER)) {
|
|
34
34
|
return Number(value);
|
|
35
35
|
}
|
|
36
|
-
/* Иначе
|
|
36
|
+
/* Иначе строка: число потеряло бы точность */
|
|
37
37
|
return value.toString();
|
|
38
38
|
}
|
|
39
39
|
/* Map -> Object (check native Map) */
|
|
@@ -6,7 +6,15 @@ export interface Dictionary {
|
|
|
6
6
|
code(name: string): number | undefined;
|
|
7
7
|
name(code: number): string;
|
|
8
8
|
header(code: number): string;
|
|
9
|
-
har(header: string, argument: string, reply?: boolean): number;
|
|
9
|
+
har(header: string, argument: string | number, reply?: boolean): number;
|
|
10
10
|
}
|
|
11
11
|
export declare const createDictionary: (codes: Record<string, number>) => Dictionary;
|
|
12
12
|
export declare const DEFAULT_DICTIONARY: Dictionary;
|
|
13
|
+
export interface HarParts {
|
|
14
|
+
header: string;
|
|
15
|
+
argument: string;
|
|
16
|
+
code: number;
|
|
17
|
+
reply: boolean;
|
|
18
|
+
}
|
|
19
|
+
export declare const encodeHar: (header: string, argument: string | number, reply?: boolean, dictionary?: Dictionary) => number;
|
|
20
|
+
export declare const decodeHar: (har: number, dictionary?: Dictionary) => HarParts;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/* Словарь заголовков и аргументов протокола - заголовок и аргумент поля HAR
|
|
1
|
+
/* Словарь заголовков и аргументов протокола - заголовок и аргумент поля HAR (makeHar/splitHar) на шине и в WebSocket-конверте {HAR, VAL}. Аргументы по умолчанию - из мастер-словаря dictionary.yaml рядом (единственный источник; .framework/Dictionary.yaml прошивок - его справочные копии), DEFAULT_ARGUMENT_CODES генерируется из него (dictionaryCodes.ts, npm run Dictionary); у устройства словарь может быть свой - его загружают из файла (parseArgumentDictionary) и передают в createDictionary, своих копий словаря в приложениях не держим */
|
|
2
2
|
import { DEFAULT_ARGUMENT_CODES } from "./dictionaryCodes.js";
|
|
3
|
-
import { makeHar } from "./packet.js";
|
|
3
|
+
import { makeHar, splitHar } from "./packet.js";
|
|
4
4
|
export { DEFAULT_ARGUMENT_CODES };
|
|
5
5
|
export const HEADER_CODES = {
|
|
6
6
|
GET: 0,
|
|
@@ -24,12 +24,19 @@ export const createDictionary = (codes) => {
|
|
|
24
24
|
header: (code) => HEADER_NAMES[code] ?? String(code),
|
|
25
25
|
har(header, argument, reply = true) {
|
|
26
26
|
const hdr = HEADER_NAMES.indexOf(header);
|
|
27
|
-
const arg = byName.get(argument);
|
|
27
|
+
const arg = typeof argument === "number" ? argument : byName.get(argument);
|
|
28
28
|
if (hdr < 0 || arg === undefined)
|
|
29
29
|
throw new Error(`Hdr/Arg отсутствует в словаре: ${header} ${argument}`);
|
|
30
30
|
return makeHar(hdr, arg, reply);
|
|
31
31
|
},
|
|
32
32
|
};
|
|
33
33
|
};
|
|
34
|
-
/* Встроенный словарь - по умолчанию для xPOE-Debug */
|
|
34
|
+
/* Встроенный словарь - по умолчанию для шины, xPOE-Debug и WebSocket */
|
|
35
35
|
export const DEFAULT_DICTIONARY = createDictionary(DEFAULT_ARGUMENT_CODES);
|
|
36
|
+
/* HAR из заголовка и аргумента (имя или код) через словарь; неизвестное имя или значение вне диапазона - ошибка */
|
|
37
|
+
export const encodeHar = (header, argument, reply = true, dictionary = DEFAULT_DICTIONARY) => dictionary.har(header, argument, reply);
|
|
38
|
+
/* HAR в слова по словарю: для таблиц, журналов и разбора конверта */
|
|
39
|
+
export const decodeHar = (har, dictionary = DEFAULT_DICTIONARY) => {
|
|
40
|
+
const { header, argument, reply } = splitHar(har);
|
|
41
|
+
return { header: dictionary.header(header), argument: dictionary.name(argument), code: argument, reply };
|
|
42
|
+
};
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
# Словарь аргументов протокола (поле arg в HAR, 0..8191) - единый для всех устройств, обоих фреймворков и
|
|
1
|
+
# Словарь аргументов протокола (поле arg в HAR, 0..8191) - единый для всех устройств, обоих фреймворков и приложений, на шине и в WebSocket-конверте {HAR, VAL}
|
|
2
|
+
# Строка: Строковое представление аргумента | Название в перечислении | Числовой код
|
|
3
|
+
# Диапазоны: 0..4095 - устройства (команды прошивок), 4096..6999 - резерв, 7000..7999 - облако DevCloud (команды самого облака, не устройств), 8000..8191 - резерв
|
|
4
|
+
# Источник - poe-svelte-ui-lib (src/lib/protocols/dictionary.yaml); .framework/Dictionary.yaml фреймворков - копии, не править
|
|
2
5
|
|
|
3
6
|
# 0 - отсутствие аргумента
|
|
4
7
|
- [Unknown, A_UNKNOWN, 0] # Аргумент отсутствует
|
|
@@ -63,3 +66,25 @@
|
|
|
63
66
|
- [OrOfs, A_ORIENTATION_OFFSET, 142] # Смещения ориентации
|
|
64
67
|
- [OrAccCal, A_ORIENTATION_ACC_CALIB, 143] # Калибровка акселерометра
|
|
65
68
|
- [OrMagCal, A_ORIENTATION_MAG_CALIB, 144] # Калибровка магнетометра
|
|
69
|
+
|
|
70
|
+
# Облако DevCloud (7000..7999): команды самого облака по /ws, устройства их не получают
|
|
71
|
+
# Чаты (7000..7099)
|
|
72
|
+
- [ChatMessage, A_CLOUD_CHAT_MESSAGE, 7000] # SET: новое сообщение в чат (браузер - облако - участники)
|
|
73
|
+
- [ChatMessages, A_CLOUD_CHAT_MESSAGES, 7001] # GET/OK!: страница истории чата
|
|
74
|
+
- [SystemMessage, A_CLOUD_SYSTEM_MESSAGE, 7002] # SET: сообщение в системный чат (администратор)
|
|
75
|
+
- [EditMessage, A_CLOUD_EDIT_MESSAGE, 7003] # SET/OK!: правка своего сообщения
|
|
76
|
+
- [DeleteMessage, A_CLOUD_DELETE_MESSAGE, 7004] # SET/OK!: удаление своего сообщения
|
|
77
|
+
- [UpdateLastRead, A_CLOUD_UPDATE_LAST_READ, 7005] # SET: чат прочитан, вкладка чата закрыта
|
|
78
|
+
- [JoinChat, A_CLOUD_JOIN_CHAT, 7006] # SET/OK!: вход в чат
|
|
79
|
+
- [UserConnected, A_CLOUD_USER_CONNECTED, 7007] # SET: собеседник открыл чат
|
|
80
|
+
- [ChatUnread, A_CLOUD_CHAT_UNREAD, 7008] # OK!: число непрочитанных в чате
|
|
81
|
+
- [ChatPins, A_CLOUD_CHAT_PINS, 7009] # OK!: закреплённые чаты пользователя
|
|
82
|
+
- [EditChatGroup, A_CLOUD_EDIT_CHAT_GROUP, 7010] # OK!: чат создан или изменён
|
|
83
|
+
- [RemoveFromChat, A_CLOUD_REMOVE_FROM_CHAT, 7011] # OK!: пользователь удалён из чата
|
|
84
|
+
|
|
85
|
+
# Устройства в облаке (7100..7199)
|
|
86
|
+
- [DeviceMessages, A_CLOUD_DEVICE_MESSAGES, 7100] # GET/OK!: страница журнала устройства
|
|
87
|
+
- [DeviceConnection, A_CLOUD_DEVICE_CONNECTION, 7101] # OK!: устройство в сети или ушло из сети
|
|
88
|
+
- [LeaveGroup, A_CLOUD_LEAVE_GROUP, 7102] # SET/OK!: выход из группы устройства
|
|
89
|
+
- [LeaveGroups, A_CLOUD_LEAVE_GROUPS, 7103] # SET: выход из групп всех устройств
|
|
90
|
+
- [ResetDevToken, A_CLOUD_RESET_DEV_TOKEN, 7104] # SET/OK!: сброс токена устройства (TOFU)
|
|
@@ -49,4 +49,21 @@ export const DEFAULT_ARGUMENT_CODES = {
|
|
|
49
49
|
OrOfs: 142,
|
|
50
50
|
OrAccCal: 143,
|
|
51
51
|
OrMagCal: 144,
|
|
52
|
+
ChatMessage: 7000,
|
|
53
|
+
ChatMessages: 7001,
|
|
54
|
+
SystemMessage: 7002,
|
|
55
|
+
EditMessage: 7003,
|
|
56
|
+
DeleteMessage: 7004,
|
|
57
|
+
UpdateLastRead: 7005,
|
|
58
|
+
JoinChat: 7006,
|
|
59
|
+
UserConnected: 7007,
|
|
60
|
+
ChatUnread: 7008,
|
|
61
|
+
ChatPins: 7009,
|
|
62
|
+
EditChatGroup: 7010,
|
|
63
|
+
RemoveFromChat: 7011,
|
|
64
|
+
DeviceMessages: 7100,
|
|
65
|
+
DeviceConnection: 7101,
|
|
66
|
+
LeaveGroup: 7102,
|
|
67
|
+
LeaveGroups: 7103,
|
|
68
|
+
ResetDevToken: 7104,
|
|
52
69
|
};
|
|
@@ -5,7 +5,9 @@ export { jsonToCbor } from "./cbor/json.js";
|
|
|
5
5
|
export { crc16Kermit, crc32 } from "./crc.js";
|
|
6
6
|
export { BUS_ID_REGEXP, parseBusId, formatBusId, makeHar, splitHar, packetObjectCrc, encodePacketBytesPayload, encodePacket, decodePacket, createPacketStreamParser, type PacketObject, type DecodedPacketObject, type PacketParse, } from "./packet.js";
|
|
7
7
|
export { createPlotGroups, debugPlotValues, DEBUG_PLOT_ARGUMENT, type PlotPoint } from "./plotGroups.js";
|
|
8
|
-
export { encodeXPoeDebugFrame, createXPoeDebugParser,
|
|
8
|
+
export { encodeXPoeDebugFrame, createXPoeDebugParser, xPoeDebugValueFromText, xPoeDebugRow, DEBUG_LOG_ARGUMENT, type XPoeDebugItem, type XPoeDebugRow, } from "./xPoeDebug.js";
|
|
9
9
|
export { formatXPoeDebugValue, formatXPoeDebugPretty } from "./xPoeDebugView.js";
|
|
10
10
|
export { CAN_FINAL_BIT, CAN_PACKET_ID_MASK, canFragments, encodeSlcanFrame, encodeCanPacket, createCanParser, slcanOpenCommands, type CanFrame, type CanMessage, } from "./can.js";
|
|
11
|
-
export { HEADER_CODES, DEFAULT_ARGUMENT_CODES, parseArgumentDictionary, createDictionary, type Dictionary } from "./dictionary.js";
|
|
11
|
+
export { HEADER_CODES, DEFAULT_ARGUMENT_CODES, DEFAULT_DICTIONARY, parseArgumentDictionary, createDictionary, encodeHar, decodeHar, type Dictionary, type HarParts, } from "./dictionary.js";
|
|
12
|
+
export { encodeWsEnvelope, decodeWsEnvelope, type WsEnvelope, type WsMessage } from "./wsEnvelope.js";
|
|
13
|
+
export { decodeLegacyWsEnvelope, encodeLegacyWsEnvelope, type LegacyWsEnvelope } from "./wsEnvelope.js";
|
package/dist/protocols/index.js
CHANGED
|
@@ -11,10 +11,14 @@ export { BUS_ID_REGEXP, parseBusId, formatBusId, makeHar, splitHar, packetObject
|
|
|
11
11
|
/* Графики отладки: пакет OK! DebugPlot (LOG_PLOT прошивки) - значения из CBOR-карты, график на группу, серии в порядке устройства */
|
|
12
12
|
export { createPlotGroups, debugPlotValues, DEBUG_PLOT_ARGUMENT } from "./plotGroups.js";
|
|
13
13
|
/* xPOE-Debug - UART-консоль как шина: пакеты вперемешку с текстом загрузчика, логи OK! DebugLog */
|
|
14
|
-
export { encodeXPoeDebugFrame, createXPoeDebugParser,
|
|
14
|
+
export { encodeXPoeDebugFrame, createXPoeDebugParser, xPoeDebugValueFromText, xPoeDebugRow, DEBUG_LOG_ARGUMENT, } from "./xPoeDebug.js";
|
|
15
15
|
/* Вид Payload xPOE-Debug: кратко для строки таблицы и развёрнуто для окна */
|
|
16
16
|
export { formatXPoeDebugValue, formatXPoeDebugPretty } from "./xPoeDebugView.js";
|
|
17
17
|
/* CAN/CAN FD через slcan-адаптер: нарезка пакета на кадры как в can_service прошивки, кадры slcan, потоковый разбор со сборкой фрагментов */
|
|
18
18
|
export { CAN_FINAL_BIT, CAN_PACKET_ID_MASK, canFragments, encodeSlcanFrame, encodeCanPacket, createCanParser, slcanOpenCommands, } from "./can.js";
|
|
19
|
-
/* Словарь заголовков и аргументов HAR - по умолчанию из мастер-словаря dictionary.yaml
|
|
20
|
-
export { HEADER_CODES, DEFAULT_ARGUMENT_CODES, parseArgumentDictionary, createDictionary } from "./dictionary.js";
|
|
19
|
+
/* Словарь заголовков и аргументов HAR - по умолчанию из мастер-словаря dictionary.yaml библиотеки (устройства и облако), разбор файла словаря, словарь устройства с обратным поиском; HAR из слов и обратно */
|
|
20
|
+
export { HEADER_CODES, DEFAULT_ARGUMENT_CODES, DEFAULT_DICTIONARY, parseArgumentDictionary, createDictionary, encodeHar, decodeHar, } from "./dictionary.js";
|
|
21
|
+
/* Конверт WebSocket {HAR, VAL} на всех соединениях: сборка из заголовка и аргумента (имя или код), разбор в слова по словарю */
|
|
22
|
+
export { encodeWsEnvelope, decodeWsEnvelope } from "./wsEnvelope.js";
|
|
23
|
+
/* ВРЕМЕННО, переход (удаляется в следующем выпуске): старый конверт {HDR, ARG, VAL} прошивок до {HAR, VAL} - разбор в ту же структуру и сборка ответа старому устройству */
|
|
24
|
+
export { decodeLegacyWsEnvelope, encodeLegacyWsEnvelope } from "./wsEnvelope.js";
|
|
@@ -33,6 +33,7 @@ export type PacketParse = {
|
|
|
33
33
|
} | {
|
|
34
34
|
status: "garbage";
|
|
35
35
|
};
|
|
36
|
+
export declare const packetStart: (bytes: Uint8Array) => number;
|
|
36
37
|
export declare const decodePacket: (bytes: Uint8Array, maxItemBytes?: number) => PacketParse;
|
|
37
38
|
export declare const createPacketStreamParser: (options?: FramerOptions) => {
|
|
38
39
|
push(chunk: Uint8Array, now?: number): {
|
package/dist/protocols/packet.js
CHANGED
|
@@ -91,34 +91,29 @@ const toObject = (value, rawRecord) => {
|
|
|
91
91
|
const payload = item.length === 1 && item[0] === 0xf6 ? new Uint8Array() : item;
|
|
92
92
|
return { trgBusID, srcBusID, har, payload, crc, crcOk: packetObjectCrc(prefix) === crc, ...splitHar(har) };
|
|
93
93
|
};
|
|
94
|
-
/*
|
|
94
|
+
/* Начало пакета - indefinite-массив 0x9F, за ним запись-массив из 5 полей 0x85 (как CBOR_PktStreamPush прошивки) */
|
|
95
|
+
const PACKET_START = 0x9f;
|
|
96
|
+
const PACKET_RECORD = 0x85;
|
|
97
|
+
/* Позиция начала пакета 0x9F 0x85 в буфере; 0x9F последним байтом - возможное начало; -1 - начала нет */
|
|
98
|
+
export const packetStart = (bytes) => {
|
|
99
|
+
for (let i = bytes.indexOf(PACKET_START); i >= 0; i = bytes.indexOf(PACKET_START, i + 1))
|
|
100
|
+
if (i + 1 >= bytes.length || bytes[i + 1] === PACKET_RECORD)
|
|
101
|
+
return i;
|
|
102
|
+
return -1;
|
|
103
|
+
};
|
|
104
|
+
/* Разбор пакета с начала буфера - и для целого кадра (CAN), и для потока (RS485: «incomplete» - ждать ещё байт, «garbage» - сдвинуться на байт); заявленная длина больше maxItemBytes - мусор, а не ожидание. Пакет - только indefinite-массив 0x9F ... 0xFF: definite-массивы прошивка (CBOR_PktDecInit) отвергает */
|
|
95
105
|
export const decodePacket = (bytes, maxItemBytes = Infinity) => {
|
|
96
106
|
if (bytes.length === 0)
|
|
97
107
|
return { status: "incomplete" };
|
|
98
|
-
|
|
99
|
-
if (first >> 5 !== 4)
|
|
108
|
+
if (bytes[0] !== PACKET_START)
|
|
100
109
|
return { status: "garbage" };
|
|
101
|
-
/* Число объектов: indefinite (0x9F, до BREAK) или definite - прямо в байте либо в следующих 1/2 байтах */
|
|
102
110
|
let offset = 1;
|
|
103
|
-
let count = null;
|
|
104
|
-
const info = first & 0x1f;
|
|
105
|
-
if (info < 24)
|
|
106
|
-
count = info;
|
|
107
|
-
else if (info === 24 || info === 25) {
|
|
108
|
-
const size = info === 24 ? 1 : 2;
|
|
109
|
-
if (bytes.length < 1 + size)
|
|
110
|
-
return { status: "incomplete" };
|
|
111
|
-
count = size === 1 ? bytes[1] : (bytes[1] << 8) | bytes[2];
|
|
112
|
-
offset += size;
|
|
113
|
-
}
|
|
114
|
-
else if (info !== 31)
|
|
115
|
-
return { status: "garbage" };
|
|
116
111
|
const objects = [];
|
|
117
112
|
try {
|
|
118
|
-
for (
|
|
113
|
+
for (;;) {
|
|
119
114
|
if (offset >= bytes.length)
|
|
120
115
|
return { status: "incomplete" };
|
|
121
|
-
if (
|
|
116
|
+
if (bytes[offset] === 0xff)
|
|
122
117
|
return { status: "complete", length: offset + 1, objects };
|
|
123
118
|
const value = readValue(bytes, offset, maxItemBytes);
|
|
124
119
|
if (!value)
|
|
@@ -132,19 +127,23 @@ export const decodePacket = (bytes, maxItemBytes = Infinity) => {
|
|
|
132
127
|
catch {
|
|
133
128
|
return { status: "garbage" };
|
|
134
129
|
}
|
|
135
|
-
return { status: "complete", length: offset, objects };
|
|
136
130
|
};
|
|
137
|
-
/* Потоковый разбор пакетов из сырого потока (RS485): пауза дольше gapMs обрывает недособранный
|
|
131
|
+
/* Потоковый разбор пакетов из сырого потока (RS485): пакет ищется по метке 0x9F 0x85, байты до неё - мусор; пакет без записей - тоже мусор (сдвиг на байт); пауза дольше gapMs обрывает недособранный пакет */
|
|
138
132
|
export const createPacketStreamParser = (options = {}) => {
|
|
139
133
|
const framer = createFramer(options);
|
|
140
134
|
return {
|
|
141
135
|
push(chunk, now = Date.now()) {
|
|
142
136
|
const packets = [];
|
|
143
137
|
framer.push(chunk, now, (bytes) => {
|
|
138
|
+
const start = packetStart(bytes);
|
|
139
|
+
if (start < 0)
|
|
140
|
+
return bytes.length;
|
|
141
|
+
if (start > 0)
|
|
142
|
+
return start;
|
|
144
143
|
const parsed = decodePacket(bytes, framer.maxBytes);
|
|
145
144
|
if (parsed.status === "incomplete")
|
|
146
145
|
return 0;
|
|
147
|
-
if (parsed.status === "garbage")
|
|
146
|
+
if (parsed.status === "garbage" || !parsed.objects.length)
|
|
148
147
|
return 1;
|
|
149
148
|
packets.push({ bytes: bytes.slice(0, parsed.length), objects: parsed.objects });
|
|
150
149
|
return parsed.length;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { type Dictionary, type HarParts } from "./dictionary.js";
|
|
2
|
+
export interface WsEnvelope<V = Record<string, unknown>> {
|
|
3
|
+
HAR: number;
|
|
4
|
+
VAL: V;
|
|
5
|
+
}
|
|
6
|
+
export interface WsMessage<V = Record<string, unknown>> extends HarParts {
|
|
7
|
+
VAL: V;
|
|
8
|
+
}
|
|
9
|
+
export declare const encodeWsEnvelope: <V>(header: string, argument: string | number, VAL: V, reply?: boolean, dictionary?: Dictionary) => WsEnvelope<V>;
|
|
10
|
+
export declare const decodeWsEnvelope: <V extends object = Record<string, unknown>>(packet: unknown, dictionary?: Dictionary) => WsMessage<V> | null;
|
|
11
|
+
export interface LegacyWsEnvelope<V = Record<string, unknown>> {
|
|
12
|
+
HDR: string;
|
|
13
|
+
ARG: string | number;
|
|
14
|
+
VAL: V;
|
|
15
|
+
}
|
|
16
|
+
export declare const decodeLegacyWsEnvelope: <V extends object = Record<string, unknown>>(packet: unknown, dictionary?: Dictionary) => WsMessage<V> | null;
|
|
17
|
+
export declare const encodeLegacyWsEnvelope: <V>(header: string, argument: string | number, VAL: V, dictionary?: Dictionary) => LegacyWsEnvelope<V>;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/* Конверт WebSocket {HAR, VAL} - на всех соединениях (браузер - облако, облако - устройство, WebApp - устройство): HAR - то же 16-битное число, что на шине (заголовок, код аргумента из словаря, флаг ответа), VAL - объект данных. Имена заголовка и аргумента по проводу не ходят, только для справки (интерфейсы, журналы) */
|
|
2
|
+
import { DEFAULT_DICTIONARY, decodeHar, encodeHar } from "./dictionary.js";
|
|
3
|
+
/* Флаг ответа по умолчанию: запросы GET и SET ждут ответа, ответы OK! и ER! - без флага */
|
|
4
|
+
const defaultReply = (header) => header === "GET" || header === "SET";
|
|
5
|
+
/* Исходящий конверт: аргумент - имя или код из словаря; неизвестное имя или значение вне диапазона - ошибка */
|
|
6
|
+
export const encodeWsEnvelope = (header, argument, VAL, reply = defaultReply(header), dictionary = DEFAULT_DICTIONARY) => ({ HAR: encodeHar(header, argument, reply, dictionary), VAL });
|
|
7
|
+
/* Входящий конверт: HAR - целое 0..65535, VAL - объект; иначе null (не конверт) */
|
|
8
|
+
export const decodeWsEnvelope = (packet, dictionary = DEFAULT_DICTIONARY) => {
|
|
9
|
+
if (!packet || typeof packet !== "object")
|
|
10
|
+
return null;
|
|
11
|
+
const { HAR, VAL } = packet;
|
|
12
|
+
if (typeof HAR !== "number" || !Number.isInteger(HAR) || HAR < 0 || HAR > 0xffff)
|
|
13
|
+
return null;
|
|
14
|
+
if (!VAL || typeof VAL !== "object" || Array.isArray(VAL))
|
|
15
|
+
return null;
|
|
16
|
+
return { ...decodeHar(HAR, dictionary), VAL: VAL };
|
|
17
|
+
};
|
|
18
|
+
/* ВРЕМЕННО: старый конверт в ту же структуру, что decodeWsEnvelope; reply - как у запроса (GET/SET) или ответа (OK!/ER!). Неизвестный заголовок, имя аргумента не из словаря, код вне 0..8191, VAL не объект - null */
|
|
19
|
+
export const decodeLegacyWsEnvelope = (packet, dictionary = DEFAULT_DICTIONARY) => {
|
|
20
|
+
if (!packet || typeof packet !== "object")
|
|
21
|
+
return null;
|
|
22
|
+
const { HDR, ARG, VAL } = packet;
|
|
23
|
+
if (typeof HDR !== "string" || !(typeof ARG === "string" || typeof ARG === "number"))
|
|
24
|
+
return null;
|
|
25
|
+
if (!VAL || typeof VAL !== "object" || Array.isArray(VAL))
|
|
26
|
+
return null;
|
|
27
|
+
try {
|
|
28
|
+
return decodeWsEnvelope({ HAR: encodeHar(HDR, ARG, defaultReply(HDR), dictionary), VAL }, dictionary);
|
|
29
|
+
}
|
|
30
|
+
catch {
|
|
31
|
+
return null;
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
/* ВРЕМЕННО: старый конверт для устройства на старой прошивке: ARG - имя по словарю, код без имени - числом; неизвестный заголовок или имя - ошибка */
|
|
35
|
+
export const encodeLegacyWsEnvelope = (header, argument, VAL, dictionary = DEFAULT_DICTIONARY) => {
|
|
36
|
+
const { header: HDR, argument: name, code } = decodeHar(encodeHar(header, argument, false, dictionary), dictionary);
|
|
37
|
+
return { HDR, ARG: name === String(code) ? code : name, VAL };
|
|
38
|
+
};
|
|
@@ -18,7 +18,6 @@ export type XPoeDebugItem = {
|
|
|
18
18
|
type: "raw";
|
|
19
19
|
text: string;
|
|
20
20
|
};
|
|
21
|
-
export declare const xPoeDebugHar: (header: string, argument: string, reply?: boolean, dictionary?: Dictionary) => number;
|
|
22
21
|
export declare const encodeXPoeDebugFrame: (header: string, argument: string, value: Uint8Array, srcId?: number, trgId?: number, reply?: boolean, dictionary?: Dictionary) => Uint8Array;
|
|
23
22
|
export interface XPoeDebugRow {
|
|
24
23
|
trgId: string;
|
|
@@ -5,14 +5,10 @@ import { DEFAULT_DICTIONARY } from "./dictionary.js";
|
|
|
5
5
|
import { createFramer } from "./framer.js";
|
|
6
6
|
import { hexToBytes } from "./hex.js";
|
|
7
7
|
import { formatXPoeDebugValue } from "./xPoeDebugView.js";
|
|
8
|
-
import { decodePacket, encodePacket, formatBusId } from "./packet.js";
|
|
8
|
+
import { decodePacket, encodePacket, formatBusId, packetStart } from "./packet.js";
|
|
9
9
|
export const DEBUG_LOG_ARGUMENT = "DebugLog";
|
|
10
10
|
const MAX_TEXT_TAIL = 4096;
|
|
11
|
-
const PACKET_START = 0x9f;
|
|
12
|
-
const RECORD = 0x85;
|
|
13
11
|
const decoder = new TextDecoder();
|
|
14
|
-
/* HAR по строкам словаря (по умолчанию встроенного); неизвестные заголовок или аргумент - ошибка */
|
|
15
|
-
export const xPoeDebugHar = (header, argument, reply = true, dictionary = DEFAULT_DICTIONARY) => dictionary.har(header, argument, reply);
|
|
16
12
|
/* Команда терминала - пакет из одной записи; value - CBOR item Payload, пустой - null */
|
|
17
13
|
export const encodeXPoeDebugFrame = (header, argument, value, srcId = 0, trgId = 0, reply = true, dictionary = DEFAULT_DICTIONARY) => encodePacket([{ trgBusID: trgId, srcBusID: srcId, har: dictionary.har(header, argument, reply), payload: value }]);
|
|
18
14
|
const textItems = (bytes) => decoder
|
|
@@ -64,13 +60,6 @@ export const xPoeDebugRow = (item) => item.type === "raw"
|
|
|
64
60
|
crc: item.crc,
|
|
65
61
|
freeHeap: item.freeHeap,
|
|
66
62
|
};
|
|
67
|
-
/* Начало пакета - 0x9F 0x85, 0x9F последним байтом - возможное начало */
|
|
68
|
-
const packetStart = (bytes) => {
|
|
69
|
-
for (let i = bytes.indexOf(PACKET_START); i >= 0; i = bytes.indexOf(PACKET_START, i + 1))
|
|
70
|
-
if (i + 1 >= bytes.length || bytes[i + 1] === RECORD)
|
|
71
|
-
return i;
|
|
72
|
-
return -1;
|
|
73
|
-
};
|
|
74
63
|
/* Потоковый разбор: пакеты в любом месте разреза, текст - построчно, мусор сдвигается по байту; пауза дольше gapMs обрывает недособранный пакет, а недописанную строку текста выдаёт как есть. Имена аргументов - из dictionary (по умолчанию встроенного) */
|
|
75
64
|
export const createXPoeDebugParser = ({ dictionary = DEFAULT_DICTIONARY, ...options } = {}) => {
|
|
76
65
|
const framer = createFramer(options);
|
|
@@ -103,19 +92,26 @@ export const createXPoeDebugParser = ({ dictionary = DEFAULT_DICTIONARY, ...opti
|
|
|
103
92
|
reset: framer.reset,
|
|
104
93
|
};
|
|
105
94
|
};
|
|
106
|
-
/*
|
|
95
|
+
/* Готовые байты Payload только явным синтаксисом: h'0A 1B' (как показывает formatXPoeDebugValue) или 0x0A1B */
|
|
96
|
+
const HEX_VALUE = /^(?:h'([0-9A-Fa-f\s]*)'|0[xX]([0-9A-Fa-f]+))$/;
|
|
97
|
+
/* Поле Value: h'..' или 0x.. - готовые байты Payload (CBOR) как есть, всё остальное - JSON в CBOR («12» - число 12), пусто - пустой Payload */
|
|
107
98
|
export const xPoeDebugValueFromText = (text) => {
|
|
108
99
|
const trimmed = (text ?? "").trim();
|
|
109
100
|
if (!trimmed)
|
|
110
101
|
return new Uint8Array();
|
|
111
|
-
|
|
112
|
-
|
|
102
|
+
const hex = HEX_VALUE.exec(trimmed);
|
|
103
|
+
if (hex) {
|
|
104
|
+
const bytes = hexToBytes(hex[1] ?? hex[2]);
|
|
105
|
+
if (!bytes)
|
|
106
|
+
throw new Error(`Value: нечётное число HEX-цифр: ${trimmed}`);
|
|
107
|
+
return bytes;
|
|
108
|
+
}
|
|
113
109
|
let parsed;
|
|
114
110
|
try {
|
|
115
111
|
parsed = JSON.parse(trimmed);
|
|
116
112
|
}
|
|
117
113
|
catch {
|
|
118
|
-
throw new Error(`Value не является ни
|
|
114
|
+
throw new Error(`Value не является ни HEX (h'..' или 0x..), ни JSON: ${trimmed}`);
|
|
119
115
|
}
|
|
120
116
|
return jsonToCbor(parsed);
|
|
121
117
|
};
|
package/dist/types.d.ts
CHANGED
|
@@ -170,6 +170,9 @@ export interface IGraphProps {
|
|
|
170
170
|
name?: string;
|
|
171
171
|
class?: string;
|
|
172
172
|
};
|
|
173
|
+
help?: {
|
|
174
|
+
info?: string;
|
|
175
|
+
};
|
|
173
176
|
streamingData?: {
|
|
174
177
|
data: IGraphDataObject[] | null;
|
|
175
178
|
};
|
|
@@ -191,6 +194,9 @@ export interface IPeriodChartProps {
|
|
|
191
194
|
name?: string;
|
|
192
195
|
class?: string;
|
|
193
196
|
};
|
|
197
|
+
help?: {
|
|
198
|
+
info?: string;
|
|
199
|
+
};
|
|
194
200
|
levels?: IPeriodChartLevel[];
|
|
195
201
|
unit?: string;
|
|
196
202
|
onLevelChange?: (index: number, level: IPeriodChartLevel) => void;
|
|
@@ -237,6 +243,9 @@ export interface IJoystickProps {
|
|
|
237
243
|
name?: string;
|
|
238
244
|
class?: string;
|
|
239
245
|
};
|
|
246
|
+
help?: {
|
|
247
|
+
info?: string;
|
|
248
|
+
};
|
|
240
249
|
value?: number[];
|
|
241
250
|
readonly?: boolean;
|
|
242
251
|
axes?: {
|
|
@@ -250,6 +259,13 @@ export interface IJoystickProps {
|
|
|
250
259
|
export interface IProgressBarProps {
|
|
251
260
|
id?: string;
|
|
252
261
|
accent?: AccentColor;
|
|
262
|
+
label?: {
|
|
263
|
+
name?: string;
|
|
264
|
+
class?: string;
|
|
265
|
+
};
|
|
266
|
+
help?: {
|
|
267
|
+
info?: string;
|
|
268
|
+
};
|
|
253
269
|
items?: {
|
|
254
270
|
name?: string;
|
|
255
271
|
accent?: AccentColor;
|
|
@@ -306,6 +322,9 @@ export interface ISliderProps {
|
|
|
306
322
|
name?: string;
|
|
307
323
|
class?: string;
|
|
308
324
|
};
|
|
325
|
+
help?: {
|
|
326
|
+
info?: string;
|
|
327
|
+
};
|
|
309
328
|
value?: number | [number, number];
|
|
310
329
|
type?: "single" | "range";
|
|
311
330
|
number?: {
|
|
@@ -415,6 +434,9 @@ export interface ITableProps<T extends object> {
|
|
|
415
434
|
name?: string;
|
|
416
435
|
class?: string;
|
|
417
436
|
};
|
|
437
|
+
help?: {
|
|
438
|
+
info?: string;
|
|
439
|
+
};
|
|
418
440
|
header?: ITableHeader<T>[];
|
|
419
441
|
body?: T[];
|
|
420
442
|
footer?: string;
|
|
@@ -454,6 +476,7 @@ export interface ITabsProps {
|
|
|
454
476
|
children?: Snippet<[any]>;
|
|
455
477
|
apiArray?: UIComponent[];
|
|
456
478
|
Components?: Snippet<[component: UIComponent, fixedHeight: boolean]>;
|
|
479
|
+
Content?: Snippet<[components: UIComponent[]]>;
|
|
457
480
|
}
|
|
458
481
|
export interface ITextFieldProps {
|
|
459
482
|
id?: string;
|
|
@@ -474,6 +497,9 @@ export interface IVideoViewerProps {
|
|
|
474
497
|
name?: string;
|
|
475
498
|
class?: string;
|
|
476
499
|
};
|
|
500
|
+
help?: {
|
|
501
|
+
info?: string;
|
|
502
|
+
};
|
|
477
503
|
showSelect?: boolean;
|
|
478
504
|
source?: "camera" | "remote";
|
|
479
505
|
streamKey?: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "poe-svelte-ui-lib",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.5.0",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/Oleg-Perevyshin/ElementsUI.git"
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"prepack": "node scripts/GenerateDictionary.mjs && svelte-kit sync && svelte-check --tsconfig ./tsconfig.json && svelte-package && tsc -p tests/dist-types.tsconfig.json && node --test tests/*.test.mjs && publint",
|
|
19
19
|
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
|
|
20
20
|
"CheckUpdate": "npx npm-check-updates -u && npm install",
|
|
21
|
-
"UpdateIconsLib": "tsx
|
|
21
|
+
"UpdateIconsLib": "tsx scripts/UpdateIconsLib.ts",
|
|
22
22
|
"Formatting": "prettier --write .",
|
|
23
23
|
"Dictionary": "node scripts/GenerateDictionary.mjs",
|
|
24
24
|
"TestProtocols": "node scripts/GenerateDictionary.mjs && svelte-package && node --test tests/*.test.mjs",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><!-- Icon from Material Symbols by Google - https://github.com/google/material-design-icons/blob/master/LICENSE --><path fill="currentColor" d="M4 18q-1.25 0-2.125-.875T1 15V9q0-1.25.875-2.125T4 6h13.5q1.25 0 2.125.875T20.5 9v6q0 1.25-.875 2.125T17.5 18zm0-2h13.5q.425 0 .713-.288T18.5 15V9q0-.425-.288-.712T17.5 8H4q-.425 0-.712.288T3 9v6q0 .425.288.713T4 16m17.5-1.5v-5h.5q.425 0 .713.288T23 10.5v3q0 .425-.288.713T22 14.5zM3 16V8z"/></svg>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><!-- Icon from Material Symbols by Google - https://github.com/google/material-design-icons/blob/master/LICENSE --><path fill="currentColor" d="M4 18q-1.25 0-2.125-.875T1 15V9q0-1.25.875-2.125T4 6h13.5q1.25 0 2.125.875T20.5 9v6q0 1.25-.875 2.125T17.5 18zm0-2h13.5q.425 0 .713-.288T18.5 15V9q0-.425-.288-.712T17.5 8H4q-.425 0-.712.288T3 9v6q0 .425.288.713T4 16m17.5-1.5v-5h.5q.425 0 .713.288T23 10.5v3q0 .425-.288.713T22 14.5zM5 15q-.425 0-.712-.288T4 14v-4q0-.425.288-.712T5 9t.713.288T6 10v4q0 .425-.288.713T5 15"/></svg>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><!-- Icon from Material Symbols by Google - https://github.com/google/material-design-icons/blob/master/LICENSE --><path fill="currentColor" d="M4 18q-1.25 0-2.125-.875T1 15V9q0-1.25.875-2.125T4 6h13.5q1.25 0 2.125.875T20.5 9v6q0 1.25-.875 2.125T17.5 18zm0-2h13.5q.425 0 .713-.288T18.5 15V9q0-.425-.288-.712T17.5 8H4q-.425 0-.712.288T3 9v6q0 .425.288.713T4 16m17.5-1.5v-5h.5q.425 0 .713.288T23 10.5v3q0 .425-.288.713T22 14.5zM4 14v-4q0-.425.288-.712T5 9h4q.425 0 .713.288T10 10v4q0 .425-.288.713T9 15H5q-.425 0-.712-.288T4 14"/></svg>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><!-- Icon from Material Symbols by Google - https://github.com/google/material-design-icons/blob/master/LICENSE --><path fill="currentColor" d="M4 18q-1.25 0-2.125-.875T1 15V9q0-1.25.875-2.125T4 6h13.5q1.25 0 2.125.875T20.5 9v6q0 1.25-.875 2.125T17.5 18zm0-2h13.5q.425 0 .713-.288T18.5 15V9q0-.425-.288-.712T17.5 8H4q-.425 0-.712.288T3 9v6q0 .425.288.713T4 16m17.5-1.5v-5h.5q.425 0 .713.288T23 10.5v3q0 .425-.288.713T22 14.5zM4 14v-4q0-.425.288-.712T5 9h8q.425 0 .713.288T14 10v4q0 .425-.288.713T13 15H5q-.425 0-.712-.288T4 14"/></svg>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><!-- Icon from Material Symbols by Google - https://github.com/google/material-design-icons/blob/master/LICENSE --><path fill="currentColor" d="M4 18q-1.25 0-2.125-.875T1 15V9q0-1.25.875-2.125T4 6h13.5q1.25 0 2.125.875T20.5 9v6q0 1.25-.875 2.125T17.5 18zm0-2h13.5q.425 0 .713-.288T18.5 15V9q0-.425-.288-.712T17.5 8H4q-.425 0-.712.288T3 9v6q0 .425.288.713T4 16m17.5-1.5v-5h.5q.425 0 .713.288T23 10.5v3q0 .425-.288.713T22 14.5zM4 14v-4q0-.425.288-.712T5 9h11.5q.425 0 .713.288T17.5 10v4q0 .425-.288.713T16.5 15H5q-.425 0-.712-.288T4 14"/></svg>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><path fill="currentColor" d="M20 11h3v2h-3zM1 11h3v2H1zM13 1v3h-2V1zM4.92 3.5l2.13 2.14l-1.42 1.41L3.5 4.93zm12.03 2.13l2.12-2.13l1.43 1.43l-2.13 2.12zM12 6a6 6 0 0 1 6 6c0 2.22-1.21 4.16-3 5.2V19a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-1v-1.8c-1.79-1.04-3-2.98-3-5.2a6 6 0 0 1 6-6m2 15v1a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1v-1zm-3-3h2v-2.13c1.73-.44 3-2.01 3-3.87a4 4 0 0 0-4-4a4 4 0 0 0-4 4c0 1.86 1.27 3.43 3 3.87z"/></svg>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><path fill="currentColor" d="M7 5.6L5.6 7L3.5 4.9l1.4-1.4zM1 13h3v-2H1zM13 1h-2v3h2zm5 11c0 2.2-1.2 4.2-3 5.2V19c0 .6-.4 1-1 1h-4c-.6 0-1-.4-1-1v-1.8c-1.8-1-3-3-3-5.2c0-3.3 2.7-6 6-6s6 2.7 6 6m-2 0c0-2.21-1.79-4-4-4s-4 1.79-4 4c0 1.2.54 2.27 1.38 3h5.24c.84-.73 1.38-1.8 1.38-3m-6 10c0 .6.4 1 1 1h2c.6 0 1-.4 1-1v-1h-4zm10-11v2h3v-2zm-.9-7.5L17 5.6L18.4 7l2.1-2.1z"/></svg>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><path fill="currentColor" d="M10 21h4v1c0 .6-.4 1-1 1h-2c-.6 0-1-.4-1-1zm-9-8h3v-2H1zm3.9-9.5L3.5 4.9L5.6 7L7 5.6zM13 1h-2v3h2zm7 10v2h3v-2zm-2 1c0 2.2-1.2 4.2-3 5.2V19c0 .6-.4 1-1 1h-4c-.6 0-1-.4-1-1v-1.8c-1.8-1-3-3-3-5.2c0-3.3 2.7-6 6-6s6 2.7 6 6M8 12h8c0-2.21-1.79-4-4-4s-4 1.79-4 4m11.1-8.5L17 5.6L18.4 7l2.1-2.1z"/></svg>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><path fill="currentColor" d="M7 5.6L5.6 7L3.5 4.9l1.4-1.4zM1 13h3v-2H1zM13 1h-2v3h2zm-3 21c0 .6.4 1 1 1h2c.6 0 1-.4 1-1v-1h-4zm10-11v2h3v-2zm-.9-7.5L17 5.6L18.4 7l2.1-2.1zM18 12c0 2.2-1.2 4.2-3 5.2V19c0 .6-.4 1-1 1h-4c-.6 0-1-.4-1-1v-1.8c-1.8-1-3-3-3-5.2c0-3.3 2.7-6 6-6s6 2.7 6 6m-9.44-2h6.88C14.75 8.81 13.5 8 12 8s-2.75.81-3.44 2"/></svg>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><path fill="currentColor" d="M12 6a6 6 0 0 1 6 6c0 2.22-1.21 4.16-3 5.2V19a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-1v-1.8c-1.79-1.04-3-2.98-3-5.2a6 6 0 0 1 6-6m2 15v1a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1v-1zm6-10h3v2h-3zM1 11h3v2H1zM13 1v3h-2V1zM4.92 3.5l2.13 2.14l-1.42 1.41L3.5 4.93zm12.03 2.13l2.12-2.13l1.43 1.43l-2.13 2.12z"/></svg>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M8 16a3 3 0 0 1 -3 3"/><path d="M16 16a3 3 0 0 0 3 3"/><path d="M12 16v4"/><path d="M3 7a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v4a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2l0 -4"/><path d="M7 13v-3a1 1 0 0 1 1 -1h8a1 1 0 0 1 1 1v3"/></svg>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M12 12v-9l4.912 1.914a1.7 1.7 0 0 1 .428 2.925l-5.34 4.161"/><path d="M12 12h9l-1.914 4.912a1.7 1.7 0 0 1 -2.925 .428l-4.161 -5.34"/><path d="M12 12h-9l1.914 -4.912a1.7 1.7 0 0 1 2.925 -.428l4.161 5.34"/><path d="M12 12v9l-4.912 -1.914a1.7 1.7 0 0 1 -.428 -2.925l5.34 -4.161"/></svg>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M7 18a4.6 4.4 0 0 1 0 -9a5 4.5 0 0 1 11 2h1a3.5 3.5 0 0 1 0 7"/><path d="M11 13v2m0 3v2m4 -5v2m0 3v2"/></svg>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M7.502 19.423c2.602 2.105 6.395 2.105 8.996 0c2.602 -2.105 3.262 -5.708 1.566 -8.546l-4.89 -7.26c-.42 -.625 -1.287 -.803 -1.936 -.397a1.376 1.376 0 0 0 -.41 .397l-4.893 7.26c-1.695 2.838 -1.035 6.441 1.567 8.546"/></svg>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M4.072 20.3a2.999 2.999 0 0 0 3.856 0a3.002 3.002 0 0 0 .67 -3.798l-2.095 -3.227a.6 .6 0 0 0 -1.005 0l-2.098 3.227a3.003 3.003 0 0 0 .671 3.798"/><path d="M16.072 20.3a2.999 2.999 0 0 0 3.856 0a3.002 3.002 0 0 0 .67 -3.798l-2.095 -3.227a.6 .6 0 0 0 -1.005 0l-2.098 3.227a3.003 3.003 0 0 0 .671 3.798"/><path d="M10.072 10.3a2.999 2.999 0 0 0 3.856 0a3.002 3.002 0 0 0 .67 -3.798l-2.095 -3.227a.6 .6 0 0 0 -1.005 0l-2.098 3.227a3.003 3.003 0 0 0 .671 3.798l.001 0"/></svg>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M12 10.941c2.333 -3.308 .167 -7.823 -1 -8.941c0 3.395 -2.235 5.299 -3.667 6.706c-1.43 1.408 -2.333 3.294 -2.333 5.588c0 3.704 3.134 6.706 7 6.706c3.866 0 7 -3.002 7 -6.706c0 -1.712 -1.232 -4.403 -2.333 -5.588c-2.084 3.353 -3.257 3.353 -4.667 2.235"/></svg>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M5 21c.5 -4.5 2.5 -8 7 -10"/><path d="M9 18c6.218 0 10.5 -3.288 11 -12v-2h-4.014c-9 0 -11.986 4 -12 9c0 1 0 3 2 5h3l.014 0"/></svg>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M5 5h3m4 0h9"/><path d="M3 10h11m4 0h1"/><path d="M5 15h5m4 0h7"/><path d="M3 20h9m4 0h3"/></svg>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M12 3c.132 0 .263 0 .393 0a7.5 7.5 0 0 0 7.92 12.446a9 9 0 1 1 -8.313 -12.454l0 .008"/></svg>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M7 15h10v4a2 2 0 0 1 -2 2h-6a2 2 0 0 1 -2 -2v-4"/><path d="M12 9a6 6 0 0 0 -6 -6h-3v2a6 6 0 0 0 6 6h3"/><path d="M12 11a6 6 0 0 1 6 -6h3v1a6 6 0 0 1 -6 6h-3"/><path d="M12 15l0 -6"/></svg>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M12 10a6 6 0 0 0 -6 -6h-3v2a6 6 0 0 0 6 6h3"/><path d="M12 14a6 6 0 0 1 6 -6h3v1a6 6 0 0 1 -6 6h-3"/><path d="M12 20l0 -10"/></svg>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M10 4l2 1l2 -1"/><path d="M12 2v6.5l3 1.72"/><path d="M17.928 6.268l.134 2.232l1.866 1.232"/><path d="M20.66 7l-5.629 3.25l.01 3.458"/><path d="M19.928 14.268l-1.866 1.232l-.134 2.232"/><path d="M20.66 17l-5.629 -3.25l-2.99 1.738"/><path d="M14 20l-2 -1l-2 1"/><path d="M12 22v-6.5l-3 -1.72"/><path d="M6.072 17.732l-.134 -2.232l-1.866 -1.232"/><path d="M3.34 17l5.629 -3.25l-.01 -3.458"/><path d="M4.072 9.732l1.866 -1.232l.134 -2.232"/><path d="M3.34 7l5.629 3.25l2.99 -1.738"/></svg>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M8 12a4 4 0 1 0 8 0a4 4 0 1 0 -8 0"/><path d="M3 12h1m8 -9v1m8 8h1m-9 8v1m-6.4 -15.4l.7 .7m12.1 -.7l-.7 .7m0 11.4l.7 .7m-12.1 -.7l-.7 .7"/></svg>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M4 13.5a4 4 0 1 0 4 0v-8.5a2 2 0 1 0 -4 0v8.5"/><path d="M4 9h4"/><path d="M13 16a4 4 0 1 0 0 -8a4.07 4.07 0 0 0 -1 .124"/><path d="M13 3v1"/><path d="M21 12h1"/><path d="M13 20v1"/><path d="M19.4 5.6l-.7 .7"/><path d="M18.7 17.7l.7 .7"/></svg>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M16 5l3 3l-2 1l4 4l-3 1l4 4h-9"/><path d="M15 21l0 -3"/><path d="M8 13l-2 -2"/><path d="M8 12l2 -2"/><path d="M8 21v-13"/><path d="M5.824 16a3 3 0 0 1 -2.743 -3.69a3 3 0 0 1 .304 -4.833a3 3 0 0 1 4.615 -3.707a3 3 0 0 1 4.614 3.707a3 3 0 0 1 .305 4.833a3 3 0 0 1 -2.919 3.695h-4l-.176 -.005"/></svg>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M5 8h8.5a2.5 2.5 0 1 0 -2.34 -3.24"/><path d="M3 12h15.5a2.5 2.5 0 1 1 -2.34 3.24"/><path d="M4 16h5.5a2.5 2.5 0 1 1 -2.34 3.24"/></svg>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M5 6a1 1 0 0 1 1 -1h12a1 1 0 0 1 1 1v12a1 1 0 0 1 -1 1h-12a1 1 0 0 1 -1 -1l0 -12"/><path d="M8 10v-2h2m6 6v2h-2m-4 0h-2v-2m8 -4v-2h-2"/><path d="M3 10h2"/><path d="M3 14h2"/><path d="M10 3v2"/><path d="M14 3v2"/><path d="M21 10h-2"/><path d="M21 14h-2"/><path d="M14 21v-2"/><path d="M10 21v-2"/></svg>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M5 6a1 1 0 0 1 1 -1h12a1 1 0 0 1 1 1v12a1 1 0 0 1 -1 1h-12a1 1 0 0 1 -1 -1l0 -12"/><path d="M9 9h6v6h-6l0 -6"/><path d="M3 10h2"/><path d="M3 14h2"/><path d="M10 3v2"/><path d="M14 3v2"/><path d="M21 10h-2"/><path d="M21 14h-2"/><path d="M14 21v-2"/><path d="M10 21v-2"/></svg>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M4 6a8 3 0 1 0 16 0a8 3 0 1 0 -16 0"/><path d="M4 6v6a8 3 0 0 0 16 0v-6"/><path d="M4 12v6a8 3 0 0 0 16 0v-6"/></svg>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M3 5a1 1 0 0 1 1 -1h16a1 1 0 0 1 1 1v10a1 1 0 0 1 -1 1h-16a1 1 0 0 1 -1 -1v-10"/><path d="M7 20h10"/><path d="M9 16v4"/><path d="M15 16v4"/></svg>
|