poe-svelte-ui-lib 2.3.7 → 2.4.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 +79 -16
- package/dist/Button/ButtonProps.svelte +3 -3
- package/dist/Button/README.md +1 -1
- package/dist/FieldLabel.svelte +20 -4
- package/dist/FieldLabel.svelte.d.ts +1 -0
- package/dist/GUIRenderer/GUIRenderer.svelte +25 -10
- package/dist/Graph/Graph.svelte +3 -3
- package/dist/Graph/README.md +10 -8
- package/dist/InfoHint.svelte +55 -0
- package/dist/InfoHint.svelte.d.ts +6 -0
- 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 +2 -1
- package/dist/Select/Select.svelte +2 -1
- package/dist/Select/SelectProps.svelte +3 -3
- package/dist/Slider/README.md +15 -13
- package/dist/Slider/Slider.svelte +2 -1
- package/dist/Switch/README.md +16 -15
- package/dist/Switch/Switch.svelte +6 -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 +9 -1
- 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 +10 -7
- package/dist/fsTransfer.d.ts +11 -0
- package/dist/fsTransfer.js +33 -8
- package/dist/gui.d.ts +3 -1
- package/dist/gui.js +4 -2
- package/dist/html.js +34 -9
- package/dist/icons.js +2 -2
- package/dist/index.d.ts +3 -1
- package/dist/index.js +3 -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 +4 -0
- package/dist/protocols/PROTOCOL.md +67 -9
- 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/index.d.ts +2 -1
- package/dist/protocols/index.js +3 -1
- package/dist/protocols/packet.d.ts +1 -0
- package/dist/protocols/packet.js +21 -22
- package/dist/protocols/wsEnvelope.d.ts +16 -0
- package/dist/protocols/wsEnvelope.js +24 -0
- package/dist/protocols/xPoeDebug.js +12 -14
- package/dist/types.d.ts +32 -0
- package/package.json +4 -3
- 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
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/* Конверт WebSocket {HDR, ARG, VAL}: HDR - имя заголовка, ARG - имя аргумента или его код из словаря (число 0..8191, те же биты 13-1 HAR без заголовка и флага ответа). Команда модулю за хабом (ModSN не равен DevSN) уходит с кодом - хаб пересылает его модулю без перевода; входящий числовой ARG переводится в имя до разбора */
|
|
2
|
+
import { DEFAULT_DICTIONARY } from "./dictionary.js";
|
|
3
|
+
/* Адресат - модуль за хабом: ModSN задан и не равен DevSN */
|
|
4
|
+
export const isModuleTarget = (val) => {
|
|
5
|
+
if (!val || typeof val !== "object")
|
|
6
|
+
return false;
|
|
7
|
+
const { DevSN, ModSN } = val;
|
|
8
|
+
return typeof ModSN === "string" && ModSN !== "" && ModSN !== DevSN;
|
|
9
|
+
};
|
|
10
|
+
/* Имя → код по словарю; неизвестное имя остаётся строкой */
|
|
11
|
+
export const wsArgumentCode = (argument, dictionary = DEFAULT_DICTIONARY) => typeof argument === "number" ? argument : (dictionary.code(argument) ?? argument);
|
|
12
|
+
/* Код → имя по словарю; неизвестный код - строкой из числа ("4097"), имя - как есть */
|
|
13
|
+
export const wsArgumentName = (argument, dictionary = DEFAULT_DICTIONARY) => typeof argument === "number" ? dictionary.name(argument) : argument;
|
|
14
|
+
/* Исходящий конверт: модулю за хабом ARG - код из словаря, хабу и облаку - имя */
|
|
15
|
+
export const wsEnvelope = (header, argument, val, dictionary = DEFAULT_DICTIONARY) => ({
|
|
16
|
+
HDR: header,
|
|
17
|
+
ARG: isModuleTarget(val) ? wsArgumentCode(argument, dictionary) : argument,
|
|
18
|
+
VAL: val,
|
|
19
|
+
});
|
|
20
|
+
/* Входящий конверт с ARG-именем: числовой ARG переводится по словарю, остальное как есть */
|
|
21
|
+
export const readWsEnvelope = (packet, dictionary = DEFAULT_DICTIONARY) => ({
|
|
22
|
+
...packet,
|
|
23
|
+
ARG: wsArgumentName(packet.ARG, dictionary),
|
|
24
|
+
});
|
|
@@ -5,11 +5,9 @@ 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
12
|
/* HAR по строкам словаря (по умолчанию встроенного); неизвестные заголовок или аргумент - ошибка */
|
|
15
13
|
export const xPoeDebugHar = (header, argument, reply = true, dictionary = DEFAULT_DICTIONARY) => dictionary.har(header, argument, reply);
|
|
@@ -64,13 +62,6 @@ export const xPoeDebugRow = (item) => item.type === "raw"
|
|
|
64
62
|
crc: item.crc,
|
|
65
63
|
freeHeap: item.freeHeap,
|
|
66
64
|
};
|
|
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
65
|
/* Потоковый разбор: пакеты в любом месте разреза, текст - построчно, мусор сдвигается по байту; пауза дольше gapMs обрывает недособранный пакет, а недописанную строку текста выдаёт как есть. Имена аргументов - из dictionary (по умолчанию встроенного) */
|
|
75
66
|
export const createXPoeDebugParser = ({ dictionary = DEFAULT_DICTIONARY, ...options } = {}) => {
|
|
76
67
|
const framer = createFramer(options);
|
|
@@ -103,19 +94,26 @@ export const createXPoeDebugParser = ({ dictionary = DEFAULT_DICTIONARY, ...opti
|
|
|
103
94
|
reset: framer.reset,
|
|
104
95
|
};
|
|
105
96
|
};
|
|
106
|
-
/*
|
|
97
|
+
/* Готовые байты Payload только явным синтаксисом: h'0A 1B' (как показывает formatXPoeDebugValue) или 0x0A1B */
|
|
98
|
+
const HEX_VALUE = /^(?:h'([0-9A-Fa-f\s]*)'|0[xX]([0-9A-Fa-f]+))$/;
|
|
99
|
+
/* Поле Value: h'..' или 0x.. - готовые байты Payload (CBOR) как есть, всё остальное - JSON в CBOR («12» - число 12), пусто - пустой Payload */
|
|
107
100
|
export const xPoeDebugValueFromText = (text) => {
|
|
108
101
|
const trimmed = (text ?? "").trim();
|
|
109
102
|
if (!trimmed)
|
|
110
103
|
return new Uint8Array();
|
|
111
|
-
|
|
112
|
-
|
|
104
|
+
const hex = HEX_VALUE.exec(trimmed);
|
|
105
|
+
if (hex) {
|
|
106
|
+
const bytes = hexToBytes(hex[1] ?? hex[2]);
|
|
107
|
+
if (!bytes)
|
|
108
|
+
throw new Error(`Value: нечётное число HEX-цифр: ${trimmed}`);
|
|
109
|
+
return bytes;
|
|
110
|
+
}
|
|
113
111
|
let parsed;
|
|
114
112
|
try {
|
|
115
113
|
parsed = JSON.parse(trimmed);
|
|
116
114
|
}
|
|
117
115
|
catch {
|
|
118
|
-
throw new Error(`Value не является ни
|
|
116
|
+
throw new Error(`Value не является ни HEX (h'..' или 0x..), ни JSON: ${trimmed}`);
|
|
119
117
|
}
|
|
120
118
|
return jsonToCbor(parsed);
|
|
121
119
|
};
|
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;
|
|
@@ -273,6 +289,9 @@ export interface ISelectProps<T = unknown, M extends boolean = false> {
|
|
|
273
289
|
name?: string;
|
|
274
290
|
class?: string;
|
|
275
291
|
};
|
|
292
|
+
help?: {
|
|
293
|
+
info?: string;
|
|
294
|
+
};
|
|
276
295
|
type?: "select" | "buttons" | "input";
|
|
277
296
|
multiSelect?: M;
|
|
278
297
|
fitContent?: boolean;
|
|
@@ -303,6 +322,9 @@ export interface ISliderProps {
|
|
|
303
322
|
name?: string;
|
|
304
323
|
class?: string;
|
|
305
324
|
};
|
|
325
|
+
help?: {
|
|
326
|
+
info?: string;
|
|
327
|
+
};
|
|
306
328
|
value?: number | [number, number];
|
|
307
329
|
type?: "single" | "range";
|
|
308
330
|
number?: {
|
|
@@ -325,6 +347,9 @@ export interface ISwitchProps {
|
|
|
325
347
|
captionLeft?: string;
|
|
326
348
|
captionRight?: string;
|
|
327
349
|
};
|
|
350
|
+
help?: {
|
|
351
|
+
info?: string;
|
|
352
|
+
};
|
|
328
353
|
hiddenInfo?: string;
|
|
329
354
|
accent?: AccentColor;
|
|
330
355
|
options?: IOption<number>[];
|
|
@@ -409,6 +434,9 @@ export interface ITableProps<T extends object> {
|
|
|
409
434
|
name?: string;
|
|
410
435
|
class?: string;
|
|
411
436
|
};
|
|
437
|
+
help?: {
|
|
438
|
+
info?: string;
|
|
439
|
+
};
|
|
412
440
|
header?: ITableHeader<T>[];
|
|
413
441
|
body?: T[];
|
|
414
442
|
footer?: string;
|
|
@@ -448,6 +476,7 @@ export interface ITabsProps {
|
|
|
448
476
|
children?: Snippet<[any]>;
|
|
449
477
|
apiArray?: UIComponent[];
|
|
450
478
|
Components?: Snippet<[component: UIComponent, fixedHeight: boolean]>;
|
|
479
|
+
Content?: Snippet<[components: UIComponent[]]>;
|
|
451
480
|
}
|
|
452
481
|
export interface ITextFieldProps {
|
|
453
482
|
id?: string;
|
|
@@ -468,6 +497,9 @@ export interface IVideoViewerProps {
|
|
|
468
497
|
name?: string;
|
|
469
498
|
class?: string;
|
|
470
499
|
};
|
|
500
|
+
help?: {
|
|
501
|
+
info?: string;
|
|
502
|
+
};
|
|
471
503
|
showSelect?: boolean;
|
|
472
504
|
source?: "camera" | "remote";
|
|
473
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.4.0",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/Oleg-Perevyshin/ElementsUI.git"
|
|
@@ -18,10 +18,11 @@
|
|
|
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
|
-
"TestProtocols": "node scripts/GenerateDictionary.mjs && svelte-package && node --test tests/*.test.mjs"
|
|
24
|
+
"TestProtocols": "node scripts/GenerateDictionary.mjs && svelte-package && node --test tests/*.test.mjs",
|
|
25
|
+
"prepare": "node -e \"try{require('child_process').execSync('git config core.hooksPath .githooks',{stdio:'ignore'})}catch{}\""
|
|
25
26
|
},
|
|
26
27
|
"svelte": "./dist/index.js",
|
|
27
28
|
"types": "./dist/index.d.ts",
|
|
@@ -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>
|
|
@@ -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="M2 8a2 2 0 0 1 2 -2h16a2 2 0 0 1 2 2v8a2 2 0 0 1 -2 2h-16a2 2 0 0 1 -2 -2l0 -8"/><path d="M6 12h4m-2 -2v4"/><path d="M15 11l0 .01"/><path d="M18 13l0 .01"/></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 19l18 0"/><path d="M5 7a1 1 0 0 1 1 -1h12a1 1 0 0 1 1 1v8a1 1 0 0 1 -1 1h-12a1 1 0 0 1 -1 -1l0 -8"/></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="M6 5a2 2 0 0 1 2 -2h8a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-8a2 2 0 0 1 -2 -2v-14"/><path d="M11 4h2"/><path d="M12 17v.01"/></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 21h10a2 2 0 0 0 2 -2v-14a2 2 0 0 0 -2 -2h-6.172a2 2 0 0 0 -1.414 .586l-3.828 3.828a2 2 0 0 0 -.586 1.414v10.172a2 2 0 0 0 2 2"/><path d="M13 6v2"/><path d="M16 6v2"/><path d="M10 7v1"/></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 4a1 1 0 0 1 1 -1h12a1 1 0 0 1 1 1v16a1 1 0 0 1 -1 1h-12a1 1 0 0 1 -1 -1v-16"/><path d="M11 17a1 1 0 1 0 2 0a1 1 0 0 0 -2 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="M3 9a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v9a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2l0 -9"/><path d="M16 3l-4 4l-4 -4"/></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="M6 9a3 3 0 0 1 3 -3h6a3 3 0 0 1 3 3v6a3 3 0 0 1 -3 3h-6a3 3 0 0 1 -3 -3v-6"/><path d="M9 18v3h6v-3"/><path d="M9 6v-3h6v3"/></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="M2 8a2 2 0 0 1 2 -2h16a2 2 0 0 1 2 2v8a2 2 0 0 1 -2 2h-16a2 2 0 0 1 -2 -2l0 -8"/><path d="M6 10l0 .01"/><path d="M10 10l0 .01"/><path d="M14 10l0 .01"/><path d="M18 10l0 .01"/><path d="M6 14l0 .01"/><path d="M18 14l0 .01"/><path d="M10 14l4 .01"/></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="M17 17h2a2 2 0 0 0 2 -2v-4a2 2 0 0 0 -2 -2h-14a2 2 0 0 0 -2 2v4a2 2 0 0 0 2 2h2"/><path d="M17 9v-4a2 2 0 0 0 -2 -2h-6a2 2 0 0 0 -2 2v4"/><path d="M7 15a2 2 0 0 1 2 -2h6a2 2 0 0 1 2 2v4a2 2 0 0 1 -2 2h-6a2 2 0 0 1 -2 -2l0 -4"/></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 7a3 3 0 0 1 3 -3h12a3 3 0 0 1 3 3v2a3 3 0 0 1 -3 3h-12a3 3 0 0 1 -3 -3v-2"/><path d="M3 15a3 3 0 0 1 3 -3h12a3 3 0 0 1 3 3v2a3 3 0 0 1 -3 3h-12a3 3 0 0 1 -3 -3l0 -2"/><path d="M7 8l0 .01"/><path d="M7 16l0 .01"/></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 9l3 3l-3 3"/><path d="M13 15l3 0"/><path d="M3 6a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2l0 -12"/></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 19a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"/><path d="M12 17v-11.5"/><path d="M7 10v3l5 3"/><path d="M12 14.5l5 -2v-2.5"/><path d="M16 10h2v-2h-2l0 2"/><path d="M6 9a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"/><path d="M10 5.5h4l-2 -2.5l-2 2.5"/></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 9a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"/><path d="M22 17v-3h-20"/><path d="M2 8v9"/><path d="M12 14h10v-2a3 3 0 0 0 -3 -3h-7v5"/></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 21l18 0"/><path d="M9 8l1 0"/><path d="M9 12l1 0"/><path d="M9 16l1 0"/><path d="M14 8l1 0"/><path d="M14 12l1 0"/><path d="M14 16l1 0"/><path d="M5 21v-16a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v16"/></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 20a2 2 0 1 0 4 0a2 2 0 0 0 -4 0"/><path d="M15 20a2 2 0 1 0 4 0a2 2 0 0 0 -4 0"/><path d="M5 20h-2v-6l2 -5h9l4 5h1a2 2 0 0 1 2 2v4h-2m-4 0h-6m-6 -6h15m-6 0v-5"/><path d="M3 6l9 -4l9 4"/></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="M14 12v.01"/><path d="M3 21h18"/><path d="M6 21v-16a2 2 0 0 1 2 -2h8a2 2 0 0 1 2 2v16"/></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 5a1 1 0 0 1 1 -1h12a1 1 0 0 1 1 1v14a1 1 0 0 1 -1 1h-12a1 1 0 0 1 -1 -1l0 -14"/><path d="M10 10l2 -2l2 2"/><path d="M10 14l2 2l2 -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 12v4h16v-4l-16 0"/><path d="M6 16v4h4v-4m0 -4v-6l-2 -2l-2 2v6"/><path d="M14 16v4h4v-4m0 -4v-6l-2 -2l-2 2v6"/></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="M18.9 7a8 8 0 0 1 1.1 5v1a6 6 0 0 0 .8 3"/><path d="M8 11a4 4 0 0 1 8 0v1a10 10 0 0 0 2 6"/><path d="M12 11v2a14 14 0 0 0 2.5 8"/><path d="M8 15a18 18 0 0 0 1.8 6"/><path d="M4.9 19a22 22 0 0 1 -.9 -7v-1a8 8 0 0 1 12 -6.95"/></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 5a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2l0 -14"/><path d="M5 10h14"/><path d="M9 13v3"/><path d="M9 6v1"/></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 12l-2 0l9 -9l9 9l-2 0"/><path d="M5 12v7a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-7"/><path d="M9 21v-6a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v6"/></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 12h3v4h-3l0 -4"/><path d="M10 6h-6a1 1 0 0 0 -1 1v12a1 1 0 0 0 1 1h16a1 1 0 0 0 1 -1v-12a1 1 0 0 0 -1 -1h-6"/><path d="M10 4a1 1 0 0 1 1 -1h2a1 1 0 0 1 1 1v3a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1l0 -3"/><path d="M14 16h2"/><path d="M14 12h4"/></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.555 3.843l3.602 3.602a2.877 2.877 0 0 1 0 4.069l-2.643 2.643a2.877 2.877 0 0 1 -4.069 0l-.301 -.301l-6.558 6.558a2 2 0 0 1 -1.239 .578l-.175 .008h-1.172a1 1 0 0 1 -.993 -.883l-.007 -.117v-1.172a2 2 0 0 1 .467 -1.284l.119 -.13l.414 -.414h2v-2h2v-2l2.144 -2.144l-.301 -.301a2.877 2.877 0 0 1 0 -4.069l2.643 -2.643a2.877 2.877 0 0 1 4.069 0"/><path d="M15 9h.01"/></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 13a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v6a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2v-6"/><path d="M11 16a1 1 0 1 0 2 0a1 1 0 0 0 -2 0"/><path d="M8 11v-4a4 4 0 1 1 8 0v4"/></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 3a12 12 0 0 0 8.5 3a12 12 0 0 1 -8.5 15a12 12 0 0 1 -8.5 -15a12 12 0 0 0 8.5 -3"/></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 11a2 2 0 0 1 2 2v1h12v-1a2 2 0 1 1 4 0v5a1 1 0 0 1 -1 1h-18a1 1 0 0 1 -1 -1v-5a2 2 0 0 1 2 -2"/><path d="M4 11v-3a3 3 0 0 1 3 -3h10a3 3 0 0 1 3 3v3"/><path d="M12 5v9"/></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 7a4 4 0 1 0 8 0a4 4 0 1 0 -8 0"/><path d="M3 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2"/><path d="M16 3.13a4 4 0 0 1 0 7.75"/><path d="M21 21v-2a4 4 0 0 0 -3 -3.85"/></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-3.866 0 -7 3.272 -7 7v10a1 1 0 0 0 1 1h12a1 1 0 0 0 1 -1v-10c0 -3.728 -3.134 -7 -7 -7"/><path d="M5 13l14 0"/><path d="M12 3l0 18"/></svg>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
/* $lib/IconsCatalog/iconsLib.ts - сборка icons.ts из файлов каталога: «категория.имя.svg» (Tabler Icons, MIT) и папки наборов состояний (battery, bulb, propeller). Запуск: npm run UpdateIconsLib */
|
|
2
|
-
import fs from "fs";
|
|
3
|
-
import { join } from "path";
|
|
4
|
-
/* Порядок 12 категорий по 16 иконок (матрица 4×3 в пикере, в клетке сетка 4×4): темы и подсистемы устройства для заголовков аккордеонов, от простого оборудования к сложному, настройки и данные в конце */
|
|
5
|
-
const CATEGORY_ORDER = ["power", "electronics", "network", "sensors", "climate", "light", "industry", "transport", "space", "media", "home", "settings"];
|
|
6
|
-
const dirPath = "src/lib/IconsCatalog";
|
|
7
|
-
const files = fs.readdirSync(dirPath).sort();
|
|
8
|
-
/* Наборы состояний: папка - один набор иконок, которые виджет переключает по значению */
|
|
9
|
-
const stateSets = files
|
|
10
|
-
.filter((file) => !file.includes("."))
|
|
11
|
-
.map((dir) => [
|
|
12
|
-
dir,
|
|
13
|
-
fs
|
|
14
|
-
.readdirSync(join(dirPath, dir))
|
|
15
|
-
.sort()
|
|
16
|
-
.map((file) => fs.readFileSync(join(dirPath, dir, file), "utf8").trim()),
|
|
17
|
-
]);
|
|
18
|
-
const categories = new Map();
|
|
19
|
-
for (const file of files) {
|
|
20
|
-
const parts = file.split(".");
|
|
21
|
-
if (parts.length !== 3 || parts[2] !== "svg")
|
|
22
|
-
continue;
|
|
23
|
-
const [category, name] = parts;
|
|
24
|
-
if (!CATEGORY_ORDER.includes(category))
|
|
25
|
-
throw new Error(`Категория ${category} не указана в CATEGORY_ORDER`);
|
|
26
|
-
const entry = categories.get(category) ?? { names: [], svgs: [] };
|
|
27
|
-
entry.names.push(name);
|
|
28
|
-
entry.svgs.push(fs.readFileSync(join(dirPath, file), "utf8").trim());
|
|
29
|
-
categories.set(category, entry);
|
|
30
|
-
}
|
|
31
|
-
const ordered = CATEGORY_ORDER.filter((category) => categories.has(category)).map((category) => [category, categories.get(category)]);
|
|
32
|
-
const content = `/* $lib/icons.ts - собран из IconsCatalog скриптом npm run UpdateIconsLib, вручную не править */
|
|
33
|
-
/* Иконки по категориям: [категория, SVG[]], порядок категорий - CATEGORY_ORDER в iconsLib.ts */
|
|
34
|
-
export const ICONS: [string, string[]][] = ${JSON.stringify(ordered.map(([category, entry]) => [category, entry.svgs]), null, 2)}
|
|
35
|
-
|
|
36
|
-
/* Имена иконок (Tabler) в том же порядке, что и в ICONS: для поиска в пикере и подписей на витрине */
|
|
37
|
-
export const ICON_NAMES: Record<string, string[]> = ${JSON.stringify(Object.fromEntries(ordered.map(([category, entry]) => [category, entry.names])), null, 2)}
|
|
38
|
-
|
|
39
|
-
/* Наборы состояний: [набор, SVG[]] */
|
|
40
|
-
export const ICONS_ARRAY: [string, string[]][] = ${JSON.stringify(stateSets, null, 2)}
|
|
41
|
-
`;
|
|
42
|
-
fs.writeFileSync("src/lib/icons.ts", content);
|
|
43
|
-
console.log(`icons.ts создан: ${ordered.reduce((sum, [, entry]) => sum + entry.svgs.length, 0)} иконок в ${ordered.length} категориях, наборов состояний ${stateSets.length}`);
|
|
@@ -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="M19.875 6.27c.7 .398 1.13 1.143 1.125 1.948v7.284c0 .809 -.443 1.555 -1.158 1.948l-6.75 4.27a2.27 2.27 0 0 1 -2.184 0l-6.75 -4.27a2.23 2.23 0 0 1 -1.158 -1.948v-7.285c0 -.809 .443 -1.554 1.158 -1.947l6.75 -3.98a2.33 2.33 0 0 1 2.25 0l6.75 3.98l-.033 0"/><path d="M15.5 9.422c.312 .18 .503 .515 .5 .876v3.277c0 .364 -.197 .7 -.515 .877l-3 1.922a1 1 0 0 1 -.97 0l-3 -1.922a1 1 0 0 1 -.515 -.876v-3.278c0 -.364 .197 -.7 .514 -.877l3 -1.79c.311 -.174 .69 -.174 1 0l3 1.79h-.014l0 .001"/></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.278 4h9.444a2 2 0 0 1 1.841 1.22c.958 2.26 1.437 4.52 1.437 6.78c0 2.26 -.479 4.52 -1.437 6.78a2 2 0 0 1 -1.841 1.22h-9.444a2 2 0 0 1 -1.841 -1.22c-.958 -2.26 -1.437 -4.52 -1.437 -6.78c0 -2.26 .479 -4.52 1.437 -6.78a2 2 0 0 1 1.841 -1.22"/><path d="M14 4c.667 2.667 1 5.333 1 8s-.333 5.333 -1 8"/><path d="M10 4c-.667 2.667 -1 5.333 -1 8s.333 5.333 1 8"/><path d="M4.5 16h15"/><path d="M19.5 8h-15"/></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 3l8 4.5l0 9l-8 4.5l-8 -4.5l0 -9l8 -4.5"/><path d="M12 12l8 -4.5"/><path d="M12 12l0 9"/><path d="M12 12l-8 -4.5"/></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 21c1.147 -4.02 1.983 -8.027 2 -12h6c.017 3.973 .853 7.98 2 12"/><path d="M12.5 13h4.5c.025 2.612 .894 5.296 2 8"/><path d="M9 5a2.4 2.4 0 0 1 2 -1a2.4 2.4 0 0 1 2 1a2.4 2.4 0 0 0 2 1a2.4 2.4 0 0 0 2 -1a2.4 2.4 0 0 1 2 -1a2.4 2.4 0 0 1 2 1"/><path d="M3 21l19 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="M6 21h6"/><path d="M9 21v-18l-6 6h18"/><path d="M9 3l10 6"/><path d="M17 9v4a2 2 0 1 1 -2 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="M3 10v6"/><path d="M12 5v3"/><path d="M10 5h4"/><path d="M5 13h-2"/><path d="M6 10h2l2 -2h3.382a1 1 0 0 1 .894 .553l1.448 2.894a1 1 0 0 0 .894 .553h1.382v-2h2a1 1 0 0 1 1 1v6a1 1 0 0 1 -1 1h-2v-2h-3v2a1 1 0 0 1 -1 1h-3.465a1 1 0 0 1 -.832 -.445l-1.703 -2.555h-2v-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 7a4 4 0 0 1 4 4v9a1 1 0 0 1 -1 1h-6a1 1 0 0 1 -1 -1v-9a4 4 0 0 1 4 -4"/><path d="M9 16h6"/><path d="M12 7v-3"/><path d="M16 5l-4 -1l4 -1"/><path d="M12 4h-3a3 3 0 0 0 -3 3"/></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 17a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"/><path d="M12 17a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"/><path d="M7 17l5 0"/><path d="M3 17v-6h13v6"/><path d="M5 11v-4h4"/><path d="M9 11v-6h4l3 6"/><path d="M22 15h-3v-10"/><path d="M16 13l3 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="M14 11h1a2 2 0 0 1 2 2v3a1.5 1.5 0 0 0 3 0v-7l-3 -3"/><path d="M4 20v-14a2 2 0 0 1 2 -2h6a2 2 0 0 1 2 2v14"/><path d="M3 20l12 0"/><path d="M18 7v1a1 1 0 0 0 1 1h1"/><path d="M4 11l10 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="M11.414 10l-7.383 7.418a2.091 2.091 0 0 0 0 2.967a2.11 2.11 0 0 0 2.976 0l7.407 -7.385"/><path d="M18.121 15.293l2.586 -2.586a1 1 0 0 0 0 -1.414l-7.586 -7.586a1 1 0 0 0 -1.414 0l-2.586 2.586a1 1 0 0 0 0 1.414l7.586 7.586a1 1 0 0 0 1.414 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 3l8 4.5l0 9l-8 4.5l-8 -4.5l0 -9l8 -4.5"/><path d="M12 12l8 -4.5"/><path d="M12 12l0 9"/><path d="M12 12l-8 -4.5"/><path d="M16 5.25l-8 4.5"/></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 17l-2 2l2 2"/><path d="M10 19h9a2 2 0 0 0 1.75 -2.75l-.55 -1"/><path d="M8.536 11l-.732 -2.732l-2.732 .732"/><path d="M7.804 8.268l-4.5 7.794a2 2 0 0 0 1.506 2.89l1.141 .024"/><path d="M15.464 11l2.732 .732l.732 -2.732"/><path d="M18.196 11.732l-4.5 -7.794a2 2 0 0 0 -3.256 -.14l-.591 .976"/></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="M6 6a2 2 0 0 1 2 -2h8a2 2 0 0 1 2 2v4a2 2 0 0 1 -2 2h-8a2 2 0 0 1 -2 -2l0 -4"/><path d="M12 2v2"/><path d="M9 12v9"/><path d="M15 12v9"/><path d="M5 16l4 -2"/><path d="M15 14l4 2"/><path d="M9 18h6"/><path d="M10 8v.01"/><path d="M14 8v.01"/></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 10h3v-3l-3.5 -3.5a6 6 0 0 1 8 8l6 6a2 2 0 0 1 -3 3l-6 -6a6 6 0 0 1 -8 -8l3.5 3.5"/></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 21h4l13 -13a1.5 1.5 0 0 0 -4 -4l-13 13v4"/><path d="M14.5 5.5l4 4"/><path d="M12 8l-5 -5l-4 4l5 5"/><path d="M7 8l-1.5 1.5"/><path d="M16 12l5 5l-4 4l-5 -5"/><path d="M16 17l-1.5 1.5"/></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 12a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"/><path d="M9 12a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"/><path d="M3 12h6"/><path d="M15 12h6"/><path d="M13.6 9.4l3.4 -4.8"/><path d="M10.4 14.6l-3.4 4.8"/><path d="M7 4.6l3.4 4.8"/><path d="M13.6 14.6l3.4 4.8"/></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 12a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"/><path d="M12 3l0 18"/><path d="M12 9l4.65 -4.65"/><path d="M12 14.3l7.37 -7.37"/><path d="M12 19.6l8.85 -8.85"/></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 3l2 3l2 15h-8l2 -15l2 -3"/><path d="M8 9l8 0"/><path d="M3 11l2 -2l-2 -2"/><path d="M21 11l-2 -2l2 -2"/></svg>
|