poe-svelte-ui-lib 1.6.3 → 1.6.5

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.
@@ -0,0 +1,68 @@
1
+ <script lang="ts">
2
+ import { twMerge } from "tailwind-merge"
3
+ import ArrowIcon from "../libIcons/ArrowIcon.svelte"
4
+ import { slide } from "svelte/transition"
5
+ import type { ICarouselProps } from "../types"
6
+
7
+ let { id = crypto.randomUUID(), wrapperClass = "", label = { name: "", class: "text-left" }, scrollValue = 200, children }: ICarouselProps = $props()
8
+
9
+ let carouselRef: HTMLDivElement | null = $state(null)
10
+ let isAtStart = $state(true)
11
+ let isAtEnd = $state(true)
12
+
13
+ function scrollCarousel(delta: number) {
14
+ if (carouselRef) carouselRef.scrollBy({ left: delta, behavior: "smooth" })
15
+ }
16
+
17
+ function updateScrollState() {
18
+ if (!carouselRef) return
19
+ isAtStart = carouselRef.scrollLeft === 0
20
+ isAtEnd = carouselRef.scrollLeft + carouselRef.clientWidth >= carouselRef.scrollWidth - 1
21
+ }
22
+
23
+ $effect(() => {
24
+ if (!carouselRef) return
25
+ updateScrollState()
26
+
27
+ const onScroll = () => updateScrollState()
28
+ carouselRef.addEventListener("scroll", onScroll)
29
+
30
+ const resizeObserver = new ResizeObserver(() => updateScrollState())
31
+ resizeObserver.observe(carouselRef)
32
+
33
+ return () => {
34
+ carouselRef?.removeEventListener("scroll", onScroll)
35
+ resizeObserver.disconnect()
36
+ }
37
+ })
38
+ </script>
39
+
40
+ <div class={twMerge(`flex flex-col items-center`, wrapperClass)}>
41
+ {#if label.name}
42
+ <h5 class={`${label.class}`}>{label.name}</h5>
43
+ {/if}
44
+ <!-- Карусель -->
45
+ <div class="relative w-full overflow-hidden rounded-2xl bg-(--back-color)/50">
46
+ <!-- Кнопки навигации -->
47
+ {#if !isAtStart}
48
+ <button
49
+ transition:slide={{ axis: "x" }}
50
+ class="absolute z-10 size-10 translate-y-1/2 cursor-pointer left-1 p-2 rounded-full bg-(--field-color) [&_svg]:h-full [&_svg]:max-h-full [&_svg]:w-full shadow-[0_0_6px_var(--shadow-color)] rotate-180"
51
+ onclick={() => scrollCarousel(-scrollValue)}>
52
+ <ArrowIcon />
53
+ </button>
54
+ {/if}
55
+ {#if !isAtEnd}
56
+ <button
57
+ transition:slide={{ axis: "x" }}
58
+ class="absolute z-10 size-10 translate-y-1/2 cursor-pointer right-1 p-2 rounded-full bg-(--field-color) [&_svg]:h-full [&_svg]:max-h-full [&_svg]:w-full shadow-[0_0_6px_var(--shadow-color)]"
59
+ onclick={() => scrollCarousel(scrollValue)}>
60
+ <ArrowIcon />
61
+ </button>
62
+ {/if}
63
+
64
+ <div {id} bind:this={carouselRef} class="flex overflow-y-hidden gap-2 p-2 h-24">
65
+ {@render children?.()}
66
+ </div>
67
+ </div>
68
+ </div>
@@ -0,0 +1,4 @@
1
+ import type { ICarouselProps } from "../types";
2
+ declare const Carousel: import("svelte").Component<ICarouselProps, {}, "">;
3
+ type Carousel = ReturnType<typeof Carousel>;
4
+ export default Carousel;
@@ -95,11 +95,33 @@
95
95
 
96
96
  const removeButtonFromColumn = (columnIndex: number, buttonIndex: number) => {
97
97
  const headers = [...component.properties.header]
98
- const buttons = [...headers[columnIndex].buttons]
98
+ const buttons = [...headers[columnIndex].action.buttons]
99
+
99
100
  buttons.splice(buttonIndex, 1)
100
- headers[columnIndex].buttons = buttons.length ? buttons : undefined
101
+ headers[columnIndex].action.buttons = buttons.length ? buttons : undefined
101
102
  updateProperty("header", headers, component, onPropertyChange)
102
103
  }
104
+
105
+ const addNewButton = (columnIndex: number) => {
106
+ const newButton = {
107
+ name: `button${(component.properties.header[columnIndex].action.buttons ? component.properties.header[columnIndex].action.buttons.length : 0) + 1}`,
108
+ class: "bg-blue",
109
+ eventHandler: { Header: "SET", Argument: "Save", Variables: [] },
110
+ onClick: () => {},
111
+ }
112
+ let action = { ...component.properties.header[columnIndex].action }
113
+
114
+ if (!action) {
115
+ action = { type: "buttons", buttons: [newButton], select: { key: "", onChange: () => {} } }
116
+ } else if (action.type === "buttons") {
117
+ const buttons = [...(action.buttons || []), newButton]
118
+ action = { ...action, buttons }
119
+ } else {
120
+ action = { type: "buttons", buttons: [newButton], select: action.select }
121
+ }
122
+
123
+ updateTableHeader(columnIndex, "action", action)
124
+ }
103
125
  </script>
104
126
 
105
127
  {#if forConstructor}
@@ -281,8 +303,9 @@
281
303
  wrapperClass="w-8 {column.action && column.action.type != 'none' ? 'invisible' : ''}"
282
304
  content={{ icon: ButtonAdd, info: { text: $t("constructor.props.table.addaction"), side: "top" } }}
283
305
  onClick={() => {
284
- column.action = { type: "buttons", select: { key: "" } }
285
- if (!(column.action && column.action.buttons)) {
306
+ updateTableHeader(columnIndex, "action", { type: "buttons", select: { key: "" } })
307
+ if (!column.action || column.action.buttons.length == 0) {
308
+ addNewButton(columnIndex)
286
309
  }
287
310
  }} />
288
311
  <UI.Button
@@ -313,24 +336,7 @@
313
336
  wrapperClass="w-8 {column.action.type == 'select' ? 'invisible' : ''}"
314
337
  content={{ icon: ButtonAdd, info: { text: $t("constructor.props.table.addbutton"), side: "top" } }}
315
338
  onClick={() => {
316
- const newButton = {
317
- name: `button${(component.properties.header[columnIndex].action.buttons ? component.properties.header[columnIndex].action.buttons.length : 0) + 1}`,
318
- class: "bg-blue",
319
- eventHandler: { Header: "SET", Argument: "Save", Variables: [] },
320
- onClick: () => {},
321
- }
322
- let action = { ...component.properties.header[columnIndex].action }
323
-
324
- if (!action) {
325
- action = { type: "buttons", buttons: [newButton], select: { key: "", onChange: () => {} } }
326
- } else if (action.type === "buttons") {
327
- const buttons = [...(action.buttons || []), newButton]
328
- action = { ...action, buttons }
329
- } else {
330
- action = { type: "buttons", buttons: [newButton], select: action.select }
331
- }
332
-
333
- updateTableHeader(columnIndex, "action", action)
339
+ addNewButton(columnIndex)
334
340
  }} />
335
341
 
336
342
  <UI.Button
@@ -385,14 +391,14 @@
385
391
  </div>
386
392
  {/each}
387
393
  {:else if column.action.type == "select"}
388
- <div class="ml-14 flex items-end justify-between gap-2">
389
- <UI.Select
390
- label={{ name: $t("constructor.props.variable") }}
391
- options={VARIABLE_OPTIONS}
392
- value={VARIABLE_OPTIONS.find(opt => opt.value === column.action.select.key)}
394
+ <div class="flex items-end justify-between gap-2">
395
+ <UI.Input
396
+ label={{ name: $t("constructor.props.table.select.keys") }}
397
+ value={column.action.select.key ?? ""}
398
+ maxlength={500}
399
+ help={{ info: $t("constructor.props.table.select.keys.info"), regExp: /^[a-zA-Z0-9\-_ ]{0,500}$/ }}
393
400
  onUpdate={value => {
394
- updateSelectProperty(columnIndex, "key", value.value as string)
395
- onPropertyChange({ name: value.name?.split("—")[1].trim(), eventHandler: { Variables: [value.value as string] } })
401
+ updateSelectProperty(columnIndex, "key", value as string)
396
402
  }} />
397
403
  </div>
398
404
  {/if}
@@ -556,6 +562,7 @@
556
562
  updateTableBody()
557
563
  }} />
558
564
  </div>
565
+
559
566
  <div class="flex flex-col gap-2">
560
567
  {#each component.properties.header as column, columnIndex (columnIndex)}
561
568
  <div class="rounded-2xl border border-(--border-color) p-2">
@@ -601,8 +608,9 @@
601
608
  wrapperClass="w-8 {column.action && column.action.type != 'none' ? 'invisible' : ''}"
602
609
  content={{ icon: ButtonAdd, info: { text: $t("constructor.props.table.addaction"), side: "top" } }}
603
610
  onClick={() => {
604
- column.action = { type: "buttons", select: { key: "" } }
605
- if (!(column.action && column.action.buttons)) {
611
+ updateTableHeader(columnIndex, "action", { type: "buttons", select: { key: "" } })
612
+ if (!column.action || column.action.buttons.length == 0) {
613
+ addNewButton(columnIndex)
606
614
  }
607
615
  }} />
608
616
 
@@ -699,24 +707,7 @@
699
707
  wrapperClass="w-8 {column.action.type == 'select' ? 'invisible' : ''}"
700
708
  content={{ icon: ButtonAdd, info: { text: $t("constructor.props.table.addbutton"), side: "top" } }}
701
709
  onClick={() => {
702
- const newButton = {
703
- name: `button${(component.properties.header[columnIndex].action.buttons ? component.properties.header[columnIndex].action.buttons.length : 0) + 1}`,
704
- class: "bg-blue",
705
- eventHandler: { Header: "SET", Argument: "Save", Variables: [] },
706
- onClick: () => {},
707
- }
708
- let action = { ...component.properties.header[columnIndex].action }
709
-
710
- if (!action) {
711
- action = { type: "buttons", buttons: [newButton], select: { key: "", onChange: () => {} } }
712
- } else if (action.type === "buttons") {
713
- const buttons = [...(action.buttons || []), newButton]
714
- action = { ...action, buttons }
715
- } else {
716
- action = { type: "buttons", buttons: [newButton], select: action.select }
717
- }
718
-
719
- updateTableHeader(columnIndex, "action", action)
710
+ addNewButton(columnIndex)
720
711
  }} />
721
712
 
722
713
  <UI.Button
@@ -771,14 +762,14 @@
771
762
  </div>
772
763
  {/each}
773
764
  {:else if column.action.type == "select"}
774
- <div class="ml-14 flex items-end justify-between gap-2">
775
- <UI.Select
776
- label={{ name: $t("constructor.props.variable") }}
777
- options={VARIABLE_OPTIONS}
778
- value={VARIABLE_OPTIONS.find(opt => opt.value === column.action.select.key)}
765
+ <div class="flex items-end justify-between gap-2">
766
+ <UI.Input
767
+ label={{ name: $t("constructor.props.table.select.keys") }}
768
+ value={column.action.select.key ?? ""}
769
+ maxlength={500}
770
+ help={{ info: $t("constructor.props.table.select.keys.info"), regExp: /^[a-zA-Z0-9\-_ ]{0,500}$/ }}
779
771
  onUpdate={value => {
780
- updateSelectProperty(columnIndex, "key", value.value as string)
781
- onPropertyChange({ name: value.name?.split("—")[1].trim(), eventHandler: { Variables: [value.value as string] } })
772
+ updateSelectProperty(columnIndex, "key", value as string)
782
773
  }} />
783
774
  </div>{/if}
784
775
  </div>
package/dist/index.d.ts CHANGED
@@ -1,34 +1,35 @@
1
- export { default as Accordion } from './Accordion/Accordion.svelte';
2
- export { default as AccordionProps } from './Accordion/AccordionProps.svelte';
3
- export { default as Button } from './Button/Button.svelte';
4
- export { default as ButtonProps } from './Button/ButtonProps.svelte';
5
- export { default as ColorPicker } from './ColorPicker/ColorPicker.svelte';
6
- export { default as ColorPickerProps } from './ColorPicker/ColorPickerProps.svelte';
7
- export { default as FileAttach } from './FileAttach/FileAttach.svelte';
8
- export { default as FileAttachProps } from './FileAttach/FileAttachProps.svelte';
9
- export { default as Graph } from './Graph/Graph.svelte';
10
- export { default as GraphProps } from './Graph/GraphProps.svelte';
11
- export { default as Input } from './Input/Input.svelte';
12
- export { default as InputProps } from './Input/InputProps.svelte';
13
- export { default as Joystick } from './Joystick/Joystick.svelte';
14
- export { default as JoystickProps } from './Joystick/JoystickProps.svelte';
15
- export { default as Modal } from './Modal.svelte';
16
- export { default as Map } from './Map/Map.svelte';
17
- export { default as MapProps } from './Map/MapProps.svelte';
18
- export { default as ProgressBar } from './ProgressBar/ProgressBar.svelte';
19
- export { default as ProgressBarProps } from './ProgressBar/ProgressBarProps.svelte';
20
- export { default as Select } from './Select/Select.svelte';
21
- export { default as SelectProps } from './Select/SelectProps.svelte';
22
- export { default as Slider } from './Slider/Slider.svelte';
23
- export { default as SliderProps } from './Slider/SliderProps.svelte';
24
- export { default as Switch } from './Switch/Switch.svelte';
25
- export { default as SwitchProps } from './Switch/SwitchProps.svelte';
26
- export { default as Table } from './Table/Table.svelte';
27
- export { default as TableProps } from './Table/TableProps.svelte';
28
- export { default as Tabs } from './Tabs/Tabs.svelte';
29
- export { default as TabsProps } from './Tabs/TabsProps.svelte';
30
- export { default as TextField } from './TextField/TextField.svelte';
31
- export { default as TextFieldProps } from './TextField/TextFieldProps.svelte';
32
- export * from './locales/i18n';
33
- export * from './locales/translations';
34
- export { type UIComponent, type Position, type IUIComponentHandler, type IButtonProps, type IAccordionProps, type IInputProps, type ISelectProps, type ISelectOption, type ISwitchProps, type IColorPickerProps, type ISliderProps, type ITextFieldProps, type IMapProps, type IProgressBarProps, type IGraphProps, type IGraphDataObject, type ITableHeader, type ITableProps, type ITabsProps, type IJoystickProps, type IFileAttachProps, type IDeviceGNSS, } from './types';
1
+ export { default as Accordion } from "./Accordion/Accordion.svelte";
2
+ export { default as AccordionProps } from "./Accordion/AccordionProps.svelte";
3
+ export { default as Button } from "./Button/Button.svelte";
4
+ export { default as ButtonProps } from "./Button/ButtonProps.svelte";
5
+ export { default as Carousel } from "./Carousel/Carousel.svelte";
6
+ export { default as ColorPicker } from "./ColorPicker/ColorPicker.svelte";
7
+ export { default as ColorPickerProps } from "./ColorPicker/ColorPickerProps.svelte";
8
+ export { default as FileAttach } from "./FileAttach/FileAttach.svelte";
9
+ export { default as FileAttachProps } from "./FileAttach/FileAttachProps.svelte";
10
+ export { default as Graph } from "./Graph/Graph.svelte";
11
+ export { default as GraphProps } from "./Graph/GraphProps.svelte";
12
+ export { default as Input } from "./Input/Input.svelte";
13
+ export { default as InputProps } from "./Input/InputProps.svelte";
14
+ export { default as Joystick } from "./Joystick/Joystick.svelte";
15
+ export { default as JoystickProps } from "./Joystick/JoystickProps.svelte";
16
+ export { default as Modal } from "./Modal.svelte";
17
+ export { default as Map } from "./Map/Map.svelte";
18
+ export { default as MapProps } from "./Map/MapProps.svelte";
19
+ export { default as ProgressBar } from "./ProgressBar/ProgressBar.svelte";
20
+ export { default as ProgressBarProps } from "./ProgressBar/ProgressBarProps.svelte";
21
+ export { default as Select } from "./Select/Select.svelte";
22
+ export { default as SelectProps } from "./Select/SelectProps.svelte";
23
+ export { default as Slider } from "./Slider/Slider.svelte";
24
+ export { default as SliderProps } from "./Slider/SliderProps.svelte";
25
+ export { default as Switch } from "./Switch/Switch.svelte";
26
+ export { default as SwitchProps } from "./Switch/SwitchProps.svelte";
27
+ export { default as Table } from "./Table/Table.svelte";
28
+ export { default as TableProps } from "./Table/TableProps.svelte";
29
+ export { default as Tabs } from "./Tabs/Tabs.svelte";
30
+ export { default as TabsProps } from "./Tabs/TabsProps.svelte";
31
+ export { default as TextField } from "./TextField/TextField.svelte";
32
+ export { default as TextFieldProps } from "./TextField/TextFieldProps.svelte";
33
+ export * from "./locales/i18n";
34
+ export * from "./locales/translations";
35
+ export { type UIComponent, type Position, type IUIComponentHandler, type IButtonProps, type IAccordionProps, type IInputProps, type ISelectProps, type ISelectOption, type ISwitchProps, type IColorPickerProps, type ISliderProps, type ITextFieldProps, type IMapProps, type IProgressBarProps, type IGraphProps, type IGraphDataObject, type ITableHeader, type ITableProps, type ITabsProps, type IJoystickProps, type IFileAttachProps, type IDeviceGNSS, type ICarouselProps, } from "./types";
package/dist/index.js CHANGED
@@ -1,35 +1,36 @@
1
1
  /* Реэкспорт всех UI компонентов для удобного импорта */
2
- export { default as Accordion } from './Accordion/Accordion.svelte';
3
- export { default as AccordionProps } from './Accordion/AccordionProps.svelte';
4
- export { default as Button } from './Button/Button.svelte';
5
- export { default as ButtonProps } from './Button/ButtonProps.svelte';
6
- export { default as ColorPicker } from './ColorPicker/ColorPicker.svelte';
7
- export { default as ColorPickerProps } from './ColorPicker/ColorPickerProps.svelte';
8
- export { default as FileAttach } from './FileAttach/FileAttach.svelte';
9
- export { default as FileAttachProps } from './FileAttach/FileAttachProps.svelte';
10
- export { default as Graph } from './Graph/Graph.svelte';
11
- export { default as GraphProps } from './Graph/GraphProps.svelte';
12
- export { default as Input } from './Input/Input.svelte';
13
- export { default as InputProps } from './Input/InputProps.svelte';
14
- export { default as Joystick } from './Joystick/Joystick.svelte';
15
- export { default as JoystickProps } from './Joystick/JoystickProps.svelte';
16
- export { default as Modal } from './Modal.svelte';
17
- export { default as Map } from './Map/Map.svelte';
18
- export { default as MapProps } from './Map/MapProps.svelte';
19
- export { default as ProgressBar } from './ProgressBar/ProgressBar.svelte';
20
- export { default as ProgressBarProps } from './ProgressBar/ProgressBarProps.svelte';
21
- export { default as Select } from './Select/Select.svelte';
22
- export { default as SelectProps } from './Select/SelectProps.svelte';
23
- export { default as Slider } from './Slider/Slider.svelte';
24
- export { default as SliderProps } from './Slider/SliderProps.svelte';
25
- export { default as Switch } from './Switch/Switch.svelte';
26
- export { default as SwitchProps } from './Switch/SwitchProps.svelte';
27
- export { default as Table } from './Table/Table.svelte';
28
- export { default as TableProps } from './Table/TableProps.svelte';
29
- export { default as Tabs } from './Tabs/Tabs.svelte';
30
- export { default as TabsProps } from './Tabs/TabsProps.svelte';
31
- export { default as TextField } from './TextField/TextField.svelte';
32
- export { default as TextFieldProps } from './TextField/TextFieldProps.svelte';
33
- export * from './locales/i18n';
34
- export * from './locales/translations';
35
- export {} from './types';
2
+ export { default as Accordion } from "./Accordion/Accordion.svelte";
3
+ export { default as AccordionProps } from "./Accordion/AccordionProps.svelte";
4
+ export { default as Button } from "./Button/Button.svelte";
5
+ export { default as ButtonProps } from "./Button/ButtonProps.svelte";
6
+ export { default as Carousel } from "./Carousel/Carousel.svelte";
7
+ export { default as ColorPicker } from "./ColorPicker/ColorPicker.svelte";
8
+ export { default as ColorPickerProps } from "./ColorPicker/ColorPickerProps.svelte";
9
+ export { default as FileAttach } from "./FileAttach/FileAttach.svelte";
10
+ export { default as FileAttachProps } from "./FileAttach/FileAttachProps.svelte";
11
+ export { default as Graph } from "./Graph/Graph.svelte";
12
+ export { default as GraphProps } from "./Graph/GraphProps.svelte";
13
+ export { default as Input } from "./Input/Input.svelte";
14
+ export { default as InputProps } from "./Input/InputProps.svelte";
15
+ export { default as Joystick } from "./Joystick/Joystick.svelte";
16
+ export { default as JoystickProps } from "./Joystick/JoystickProps.svelte";
17
+ export { default as Modal } from "./Modal.svelte";
18
+ export { default as Map } from "./Map/Map.svelte";
19
+ export { default as MapProps } from "./Map/MapProps.svelte";
20
+ export { default as ProgressBar } from "./ProgressBar/ProgressBar.svelte";
21
+ export { default as ProgressBarProps } from "./ProgressBar/ProgressBarProps.svelte";
22
+ export { default as Select } from "./Select/Select.svelte";
23
+ export { default as SelectProps } from "./Select/SelectProps.svelte";
24
+ export { default as Slider } from "./Slider/Slider.svelte";
25
+ export { default as SliderProps } from "./Slider/SliderProps.svelte";
26
+ export { default as Switch } from "./Switch/Switch.svelte";
27
+ export { default as SwitchProps } from "./Switch/SwitchProps.svelte";
28
+ export { default as Table } from "./Table/Table.svelte";
29
+ export { default as TableProps } from "./Table/TableProps.svelte";
30
+ export { default as Tabs } from "./Tabs/Tabs.svelte";
31
+ export { default as TabsProps } from "./Tabs/TabsProps.svelte";
32
+ export { default as TextField } from "./TextField/TextField.svelte";
33
+ export { default as TextFieldProps } from "./TextField/TextFieldProps.svelte";
34
+ export * from "./locales/i18n";
35
+ export * from "./locales/translations";
36
+ export {} from "./types";
@@ -0,0 +1,6 @@
1
+ <script lang="ts"></script>
2
+
3
+ <svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"
4
+ ><path
5
+ fill="currentColor"
6
+ d="M12.6 12L8.7 8.1q-.275-.275-.275-.7t.275-.7t.7-.275t.7.275l4.6 4.6q.15.15.213.325t.062.375t-.062.375t-.213.325l-4.6 4.6q-.275.275-.7.275t-.7-.275t-.275-.7t.275-.7z" /></svg>
@@ -0,0 +1,18 @@
1
+ interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
2
+ new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
3
+ $$bindings?: Bindings;
4
+ } & Exports;
5
+ (internal: unknown, props: {
6
+ $$events?: Events;
7
+ $$slots?: Slots;
8
+ }): Exports & {
9
+ $set?: any;
10
+ $on?: any;
11
+ };
12
+ z_$$bindings?: Bindings;
13
+ }
14
+ declare const ArrowIcon: $$__sveltets_2_IsomorphicComponent<Record<string, never>, {
15
+ [evt: string]: CustomEvent<any>;
16
+ }, {}, {}, string>;
17
+ type ArrowIcon = InstanceType<typeof ArrowIcon>;
18
+ export default ArrowIcon;
@@ -152,6 +152,8 @@ const translations = {
152
152
  "constructor.props.table.addbutton": "Добавить кнопку",
153
153
  "constructor.props.table.keys": "Перечень ключей",
154
154
  "constructor.props.table.keys.info": "Ключи таблицы, значения которых будут возвращаться",
155
+ "constructor.props.table.select.keys": "Ключ строки",
156
+ "constructor.props.table.select.keys.info": "Ключ, по которому будет находиться значение поля для текущей строки",
155
157
  "constructor.props.table.stashData": "Накопление данных",
156
158
  "constructor.props.table.buffersize": "Размер буфера",
157
159
  "constructor.props.table.clearButton": "Кнопка очистки",
package/dist/types.d.ts CHANGED
@@ -363,3 +363,13 @@ export interface IFileAttachProps {
363
363
  currentImage?: string | null;
364
364
  onChange?: (event: Event, file: File | null) => void;
365
365
  }
366
+ export interface ICarouselProps {
367
+ id?: string;
368
+ wrapperClass?: string;
369
+ label?: {
370
+ name?: string;
371
+ class?: string;
372
+ };
373
+ scrollValue?: number;
374
+ children?: Snippet;
375
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "poe-svelte-ui-lib",
3
- "version": "1.6.3",
3
+ "version": "1.6.5",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -36,7 +36,7 @@
36
36
  "prettier": "^3.7.4",
37
37
  "prettier-plugin-svelte": "^3.4.1",
38
38
  "prettier-plugin-tailwindcss": "^0.7.2",
39
- "svelte-maplibre-gl": "^1.0.2",
39
+ "svelte-maplibre-gl": "^1.0.3",
40
40
  "tailwind-merge": "^3.4.0",
41
41
  "tailwindcss": "^4.1.18",
42
42
  "tsx": "^4.21.0",
@@ -44,7 +44,7 @@
44
44
  },
45
45
  "devDependencies": {
46
46
  "@sveltejs/adapter-static": "^3.0.10",
47
- "@sveltejs/kit": "^2.49.2",
47
+ "@sveltejs/kit": "^2.49.3",
48
48
  "@sveltejs/package": "^2.5.7",
49
49
  "@sveltejs/vite-plugin-svelte": "^6.2.1",
50
50
  "@types/node": "^25.0.3",