vuesp-components 5.2.1 → 5.3.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.
Files changed (29) hide show
  1. package/CHANGELOG.md +34 -0
  2. package/README.md +1 -0
  3. package/dist/{VDialog.vue_vue_type_script_setup_true_lang-CvNEU_qY.js → VDialog.vue_vue_type_script_setup_true_lang-Bh-tnwGM.js} +1 -1
  4. package/dist/components/dashboard/cards/CardDimmer.vue.d.ts.map +1 -1
  5. package/dist/components/dashboard/cards/CardPalette.vue.d.ts +48 -0
  6. package/dist/components/dashboard/cards/CardPalette.vue.d.ts.map +1 -0
  7. package/dist/components/dashboard/index.d.ts +2 -1
  8. package/dist/components/dashboard/index.d.ts.map +1 -1
  9. package/dist/components/index.d.ts +1 -0
  10. package/dist/components/index.d.ts.map +1 -1
  11. package/dist/components/index.es.js +3283 -2479
  12. package/dist/components/script/editor/suggestions.d.ts.map +1 -1
  13. package/dist/components/serial/SerialConsole.vue.d.ts +41 -0
  14. package/dist/components/serial/SerialConsole.vue.d.ts.map +1 -0
  15. package/dist/components/serial/index.d.ts +5 -0
  16. package/dist/components/serial/index.d.ts.map +1 -0
  17. package/dist/components/serial/labels.d.ts +3 -0
  18. package/dist/components/serial/labels.d.ts.map +1 -0
  19. package/dist/components/serial/types.d.ts +123 -0
  20. package/dist/components/serial/types.d.ts.map +1 -0
  21. package/dist/composables/index.d.ts +2 -0
  22. package/dist/composables/index.d.ts.map +1 -1
  23. package/dist/composables/index.es.js +306 -91
  24. package/dist/composables/useSerialConsole.d.ts +75 -0
  25. package/dist/composables/useSerialConsole.d.ts.map +1 -0
  26. package/dist/index.es.js +1 -1
  27. package/dist/pages/kit/KitShowcase.vue.d.ts.map +1 -1
  28. package/dist/style.css +1 -1
  29. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,39 @@
1
1
  # Changelog
2
2
 
3
+ ## 5.3.0 — 2026-11-25
4
+
5
+ ### Added
6
+
7
+ - `SerialConsole`: ready-made serial terminal block — connection header, RX/TX log with time and counters, text/HEX view, search with highlighting, follow output, clear/copy/download, text and HEX sending, command history, quick commands editor.
8
+ - `SerialConsole` display options: text encoding (UTF-8 / CP1251), frame splitting by newline or by idle gap (10–100 ms), pause capture.
9
+ - `SerialConsole` is transport-agnostic: pass `start` / `stop` / `send` / `subscribe` callbacks, so the same block works with Web Serial or a device WebSocket.
10
+ - `SerialConsole` ships its own `ru`/`en` dictionary (`locale` + `labels` props) and does not require host i18n keys.
11
+ - `SerialConsole` slots: `#header-actions` (e.g. baud select) and `#settings` (host port settings).
12
+ - `useSerialConsole`: composable with the log state machine, framing, encodings, pause buffering, counters and rates; settings persist to `localStorage` when `storageKey` is provided.
13
+
14
+ ## 5.2.2 — 2026-11-24
15
+
16
+ ### Added
17
+
18
+ - `CardPalette`: dashboard card for choosing a preset or custom color. The disabled state is an empty string, matching the device contract.
19
+ - `udp()` and `fade()` suggestions now include a `description` tooltip, so device projects inherit the explanation from the shared package.
20
+
21
+ ### Changed
22
+
23
+ - `VButton`: the slot wrapper is now `display: contents`, so `flex`, `block`, `gap` and alignment classes on the button apply directly to slotted content. The loading state hides text with `text-transparent` and elements with `opacity-0` while keeping the original size and loader color.
24
+ - `CardDimmer`: removed a redundant nested wrapper around the dimmer control.
25
+
26
+ ### Fixed
27
+
28
+ - The `udp()` suggestion inserted a literal `call(1)` argument and an empty first argument; it now inserts both arguments as placeholders.
29
+ - The `if` and `while` suggestion templates used the removed `$v0` variable; they now use `$u0`.
30
+
31
+ ## 5.2.1 — 2026-11-22
32
+
33
+ ### Fixed
34
+
35
+ - `VPopup`: increased the top padding of the mobile handle and moved the close buttons up so they no longer overlap the handle.
36
+
3
37
  ## 5.2.0 — 2026-11-22
4
38
 
5
39
  ### Added
package/README.md CHANGED
@@ -204,6 +204,7 @@ app.use(i18nPlugin, {
204
204
  - `CardInfo` - Info card
205
205
  - `CardInput` - Input card
206
206
  - `CardList` - List card
207
+ - `CardPalette` - Color palette card
207
208
  - `ItemEdit` - Edit item component
208
209
  - `ItemOptions` - Options component
209
210
 
@@ -309,7 +309,7 @@ const Ge = /* @__PURE__ */ Y(ge, [["render", fe]]), Je = ["bulb", "lamp", "lamp-
309
309
  }), {
310
310
  default: L(() => [
311
311
  h("span", {
312
- class: f(e.loading ? "opacity-0" : "")
312
+ class: f(e.loading ? "contents text-transparent [&>*]:opacity-0" : "contents")
313
313
  }, [
314
314
  x(v.$slots, "default")
315
315
  ], 2),
@@ -1 +1 @@
1
- {"version":3,"file":"CardDimmer.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/dashboard/cards/CardDimmer.vue"],"names":[],"mappings":"AAiFA,OAAO,KAAK,EAAE,cAAc,EAAkB,MAAM,oCAAoC,CAAC;AAkCzF,iBAAS,cAAc;WAsJT,OAAO,IAA6B;;;;;;;;;;;;;;;;;YAVvB,GAAG;;;;EAe7B;AAiBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;6FAQnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAQpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"CardDimmer.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/dashboard/cards/CardDimmer.vue"],"names":[],"mappings":"AAqEA,OAAO,KAAK,EAAE,cAAc,EAAkB,MAAM,oCAAoC,CAAC;AAkCzF,iBAAS,cAAc;WAmJT,OAAO,IAA6B;;;;;;;;;;;;;;;;;YAVvB,GAAG;;;;EAe7B;AAiBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;6FAQnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAQpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -0,0 +1,48 @@
1
+ import { ICardBaseProps } from './types';
2
+ declare function __VLS_template(): {
3
+ attrs: Partial<{}>;
4
+ slots: {
5
+ icon?(_: {
6
+ size: "sm" | "md" | "lg" | "full";
7
+ id: string;
8
+ name: string;
9
+ type: string;
10
+ entityType: string;
11
+ icon: string;
12
+ opts: import('vuesp-dashboard-core').IDashboardItemOptions;
13
+ args: string[];
14
+ get: string;
15
+ getTo: string;
16
+ set: string;
17
+ meta: Record<string, unknown>;
18
+ value: string | number;
19
+ valueTo: string | number;
20
+ }): any;
21
+ };
22
+ refs: {};
23
+ rootEl: HTMLDivElement;
24
+ };
25
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
26
+ declare const __VLS_component: import('vue').DefineComponent<ICardBaseProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
27
+ click: (event: Event) => any;
28
+ close: (event: Event) => any;
29
+ edit: (event: Event) => any;
30
+ open: (event: boolean) => any;
31
+ clone: (event: Event) => any;
32
+ setState: (item: string | number | boolean) => any;
33
+ }, string, import('vue').PublicProps, Readonly<ICardBaseProps> & Readonly<{
34
+ onClick?: ((event: Event) => any) | undefined;
35
+ onClose?: ((event: Event) => any) | undefined;
36
+ onEdit?: ((event: Event) => any) | undefined;
37
+ onOpen?: ((event: boolean) => any) | undefined;
38
+ onClone?: ((event: Event) => any) | undefined;
39
+ onSetState?: ((item: string | number | boolean) => any) | undefined;
40
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
41
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
42
+ export default _default;
43
+ type __VLS_WithTemplateSlots<T, S> = T & {
44
+ new (): {
45
+ $slots: S;
46
+ };
47
+ };
48
+ //# sourceMappingURL=CardPalette.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CardPalette.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/dashboard/cards/CardPalette.vue"],"names":[],"mappings":"AAgGA,OAAO,KAAK,EAAkB,cAAc,EAAE,MAAM,oCAAoC,CAAC;AA8CzF,iBAAS,cAAc;WA8JT,OAAO,IAA6B;;;;;;;;;;;;;;;;;YAVvB,GAAG;;;;EAe7B;AAoBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;6FAQnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAQpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -5,6 +5,7 @@ import { default as CardDimmer } from './cards/CardDimmer.vue';
5
5
  import { default as CardInfo } from './cards/CardInfo.vue';
6
6
  import { default as CardInput } from './cards/CardInput.vue';
7
7
  import { default as CardList } from './cards/CardList.vue';
8
+ import { default as CardPalette } from './cards/CardPalette.vue';
8
9
  import { default as ItemEdit } from './edit/ItemEdit.vue';
9
- export { CardBase, CardButton, CardDate, CardDimmer, CardInfo, CardInput, CardList, ItemEdit };
10
+ export { CardBase, CardButton, CardDate, CardDimmer, CardInfo, CardInput, CardList, CardPalette, ItemEdit };
10
11
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/dashboard/index.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,2CAA2C,CAAC;AACjE,OAAO,UAAU,MAAM,6CAA6C,CAAC;AACrE,OAAO,QAAQ,MAAM,2CAA2C,CAAC;AACjE,OAAO,UAAU,MAAM,6CAA6C,CAAC;AACrE,OAAO,QAAQ,MAAM,2CAA2C,CAAC;AACjE,OAAO,SAAS,MAAM,4CAA4C,CAAC;AACnE,OAAO,QAAQ,MAAM,2CAA2C,CAAC;AACjE,OAAO,QAAQ,MAAM,0CAA0C,CAAC;AAEhE,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/dashboard/index.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,2CAA2C,CAAC;AACjE,OAAO,UAAU,MAAM,6CAA6C,CAAC;AACrE,OAAO,QAAQ,MAAM,2CAA2C,CAAC;AACjE,OAAO,UAAU,MAAM,6CAA6C,CAAC;AACrE,OAAO,QAAQ,MAAM,2CAA2C,CAAC;AACjE,OAAO,SAAS,MAAM,4CAA4C,CAAC;AACnE,OAAO,QAAQ,MAAM,2CAA2C,CAAC;AACjE,OAAO,WAAW,MAAM,8CAA8C,CAAC;AACvE,OAAO,QAAQ,MAAM,0CAA0C,CAAC;AAEhE,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE,CAAC"}
@@ -3,5 +3,6 @@ export * from './block';
3
3
  export * from './card';
4
4
  export * from './dashboard';
5
5
  export * from './script';
6
+ export * from './serial';
6
7
  export * from './ui';
7
8
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAC;AACxC,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAC;AACxC,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC"}