poe-svelte-ui-lib 1.6.2 → 1.6.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Carousel/Carousel.svelte +68 -0
- package/dist/Carousel/Carousel.svelte.d.ts +4 -0
- package/dist/Input/Input.svelte +68 -77
- package/dist/Input/Input.svelte.d.ts +1 -1
- package/dist/Table/Table.svelte +154 -117
- package/dist/Table/Table.svelte.d.ts +1 -1
- package/dist/Table/TableProps.svelte +442 -399
- package/dist/Table/TableProps.svelte.d.ts +1 -1
- package/dist/Tabs/TabsProps.svelte +18 -16
- package/dist/index.d.ts +35 -34
- package/dist/index.js +35 -34
- package/dist/libIcons/ArrowIcon.svelte +6 -0
- package/dist/libIcons/ArrowIcon.svelte.d.ts +18 -0
- package/dist/libIcons/ButtonAdd.svelte +2 -7
- package/dist/libIcons/ButtonRemove.svelte +8 -0
- package/dist/libIcons/ButtonRemove.svelte.d.ts +18 -0
- package/dist/locales/translations.js +221 -218
- package/dist/options.d.ts +5 -0
- package/dist/options.js +161 -157
- package/dist/types.d.ts +40 -23
- package/dist/types.js +1 -1
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type UIComponent, type ITableProps, type IUIComponentHandler } from
|
|
1
|
+
import { type UIComponent, type ITableProps, type IUIComponentHandler } from "../types";
|
|
2
2
|
type $$ComponentProps = {
|
|
3
3
|
component: UIComponent & {
|
|
4
4
|
properties: Partial<ITableProps<object>>;
|
|
@@ -121,22 +121,24 @@
|
|
|
121
121
|
<div class="space-y-4">
|
|
122
122
|
<div class="m-0 flex items-center justify-center gap-2">
|
|
123
123
|
<h4>{$t('constructor.props.tabs.title')}</h4>
|
|
124
|
-
<
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
name:
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
items
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
124
|
+
{#if component.properties?.items.length < 10}
|
|
125
|
+
<UI.Button
|
|
126
|
+
wrapperClass="w-8"
|
|
127
|
+
content={{ icon: ButtonAdd }}
|
|
128
|
+
onClick={() => {
|
|
129
|
+
const newItem: { name: string; icon: string; class: string } = {
|
|
130
|
+
name: `Tab ${component.properties?.items.length + 1}`,
|
|
131
|
+
class: `text-${initialColor?.value.slice(3)}-500 ${initialPosition?.value}`,
|
|
132
|
+
icon: '',
|
|
133
|
+
}
|
|
134
|
+
const items = [...(component.properties?.items || []), newItem]
|
|
135
|
+
items.forEach((_item: any, index: number) => {
|
|
136
|
+
items[index]['class'] = twMerge(items[index].class, initialWidth() ? `w-[${(1 / items.length) * 100}%]` : 'w-auto')
|
|
137
|
+
updateProperty('items', items, component, onPropertyChange)
|
|
138
|
+
})
|
|
139
|
+
}}
|
|
140
|
+
/>
|
|
141
|
+
{/if}
|
|
140
142
|
</div>
|
|
141
143
|
|
|
142
144
|
{#each component.properties.items || [] as tab, index}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,34 +1,35 @@
|
|
|
1
|
-
export { default as Accordion } from
|
|
2
|
-
export { default as AccordionProps } from
|
|
3
|
-
export { default as Button } from
|
|
4
|
-
export { default as ButtonProps } from
|
|
5
|
-
export { default as
|
|
6
|
-
export { default as
|
|
7
|
-
export { default as
|
|
8
|
-
export { default as
|
|
9
|
-
export { default as
|
|
10
|
-
export { default as
|
|
11
|
-
export { default as
|
|
12
|
-
export { default as
|
|
13
|
-
export { default as
|
|
14
|
-
export { default as
|
|
15
|
-
export { default as
|
|
16
|
-
export { default as
|
|
17
|
-
export { default as
|
|
18
|
-
export { default as
|
|
19
|
-
export { default as
|
|
20
|
-
export { default as
|
|
21
|
-
export { default as
|
|
22
|
-
export { default as
|
|
23
|
-
export { default as
|
|
24
|
-
export { default as
|
|
25
|
-
export { default as
|
|
26
|
-
export { default as
|
|
27
|
-
export { default as
|
|
28
|
-
export { default as
|
|
29
|
-
export { default as
|
|
30
|
-
export { default as
|
|
31
|
-
export { default as
|
|
32
|
-
export
|
|
33
|
-
export * from
|
|
34
|
-
export
|
|
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
|
|
3
|
-
export { default as AccordionProps } from
|
|
4
|
-
export { default as Button } from
|
|
5
|
-
export { default as ButtonProps } from
|
|
6
|
-
export { default as
|
|
7
|
-
export { default as
|
|
8
|
-
export { default as
|
|
9
|
-
export { default as
|
|
10
|
-
export { default as
|
|
11
|
-
export { default as
|
|
12
|
-
export { default as
|
|
13
|
-
export { default as
|
|
14
|
-
export { default as
|
|
15
|
-
export { default as
|
|
16
|
-
export { default as
|
|
17
|
-
export { default as
|
|
18
|
-
export { default as
|
|
19
|
-
export { default as
|
|
20
|
-
export { default as
|
|
21
|
-
export { default as
|
|
22
|
-
export { default as
|
|
23
|
-
export { default as
|
|
24
|
-
export { default as
|
|
25
|
-
export { default as
|
|
26
|
-
export { default as
|
|
27
|
-
export { default as
|
|
28
|
-
export { default as
|
|
29
|
-
export { default as
|
|
30
|
-
export { default as
|
|
31
|
-
export { default as
|
|
32
|
-
export { default as
|
|
33
|
-
export
|
|
34
|
-
export * from
|
|
35
|
-
export
|
|
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;
|
|
@@ -1,13 +1,8 @@
|
|
|
1
1
|
<script lang="ts"></script>
|
|
2
2
|
|
|
3
3
|
<svg xmlns="http://www.w3.org/2000/svg" width="1.5em" height="1.5em" viewBox="0 0 24 24"
|
|
4
|
-
><path
|
|
5
|
-
fill="currentColor"
|
|
6
|
-
d="M12.75 9a.75.75 0 0 0-1.5 0v2.25H9a.75.75 0 0 0 0 1.5h2.25V15a.75.75 0 0 0 1.5 0v-2.25H15a.75.75 0 0 0 0-1.5h-2.25z"
|
|
7
|
-
/><path
|
|
4
|
+
><path fill="currentColor" d="M12.75 9a.75.75 0 0 0-1.5 0v2.25H9a.75.75 0 0 0 0 1.5h2.25V15a.75.75 0 0 0 1.5 0v-2.25H15a.75.75 0 0 0 0-1.5h-2.25z" /><path
|
|
8
5
|
fill="currentColor"
|
|
9
6
|
fill-rule="evenodd"
|
|
10
7
|
d="M12.057 1.25h-.114c-2.309 0-4.118 0-5.53.19c-1.444.194-2.584.6-3.479 1.494c-.895.895-1.3 2.035-1.494 3.48c-.19 1.411-.19 3.22-.19 5.529v.114c0 2.309 0 4.118.19 5.53c.194 1.444.6 2.584 1.494 3.479c.895.895 2.035 1.3 3.48 1.494c1.411.19 3.22.19 5.529.19h.114c2.309 0 4.118 0 5.53-.19c1.444-.194 2.584-.6 3.479-1.494c.895-.895 1.3-2.035 1.494-3.48c.19-1.411.19-3.22.19-5.529v-.114c0-2.309 0-4.118-.19-5.53c-.194-1.444-.6-2.584-1.494-3.479c-.895-.895-2.035-1.3-3.48-1.494c-1.411-.19-3.22-.19-5.529-.19M3.995 3.995c.57-.57 1.34-.897 2.619-1.069c1.3-.174 3.008-.176 5.386-.176s4.086.002 5.386.176c1.279.172 2.05.5 2.62 1.069c.569.57.896 1.34 1.068 2.619c.174 1.3.176 3.008.176 5.386s-.002 4.086-.176 5.386c-.172 1.279-.5 2.05-1.069 2.62c-.57.569-1.34.896-2.619 1.068c-1.3.174-3.008.176-5.386.176s-4.086-.002-5.386-.176c-1.279-.172-2.05-.5-2.62-1.069c-.569-.57-.896-1.34-1.068-2.619c-.174-1.3-.176-3.008-.176-5.386s.002-4.086.176-5.386c.172-1.279.5-2.05 1.069-2.62"
|
|
11
|
-
clip-rule="evenodd"
|
|
12
|
-
/></svg
|
|
13
|
-
>
|
|
8
|
+
clip-rule="evenodd" /></svg>
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
<script lang="ts"></script>
|
|
2
|
+
|
|
3
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="1.5em" height="1.5em" viewBox="0 0 24 24"
|
|
4
|
+
><path fill="currentColor" d="M12.75 9a.75.75 0 0 0-1.5 0v2.25H9a.75.75 0 0 0 0 1.5h2.25V15a.75.75 0 0 0 1.5 0v-2.25H15a.75.75 0 0 0 0-1.5h-2.25z" /><path
|
|
5
|
+
fill="currentColor"
|
|
6
|
+
fill-rule="evenodd"
|
|
7
|
+
d="M12.057 1.25h-.114c-2.309 0-4.118 0-5.53.19c-1.444.194-2.584.6-3.479 1.494c-.895.895-1.3 2.035-1.494 3.48c-.19 1.411-.19 3.22-.19 5.529v.114c0 2.309 0 4.118.19 5.53c.194 1.444.6 2.584 1.494 3.479c.895.895 2.035 1.3 3.48 1.494c1.411.19 3.22.19 5.529.19h.114c2.309 0 4.118 0 5.53-.19c1.444-.194 2.584-.6 3.479-1.494c.895-.895 1.3-2.035 1.494-3.48c.19-1.411.19-3.22.19-5.529v-.114c0-2.309 0-4.118-.19-5.53c-.194-1.444-.6-2.584-1.494-3.479c-.895-.895-2.035-1.3-3.48-1.494c-1.411-.19-3.22-.19-5.529-.19M3.995 3.995c.57-.57 1.34-.897 2.619-1.069c1.3-.174 3.008-.176 5.386-.176s4.086.002 5.386.176c1.279.172 2.05.5 2.62 1.069c.569.57.896 1.34 1.068 2.619c.174 1.3.176 3.008.176 5.386s-.002 4.086-.176 5.386c-.172 1.279-.5 2.05-1.069 2.62c-.57.569-1.34.896-2.619 1.068c-1.3.174-3.008.176-5.386.176s-4.086-.002-5.386-.176c-1.279-.172-2.05-.5-2.62-1.069c-.569-.57-.896-1.34-1.068-2.619c-.174-1.3-.176-3.008-.176-5.386s.002-4.086.176-5.386c.172-1.279.5-2.05 1.069-2.62"
|
|
8
|
+
clip-rule="evenodd" /></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 ButtonRemove: $$__sveltets_2_IsomorphicComponent<Record<string, never>, {
|
|
15
|
+
[evt: string]: CustomEvent<any>;
|
|
16
|
+
}, {}, {}, string>;
|
|
17
|
+
type ButtonRemove = InstanceType<typeof ButtonRemove>;
|
|
18
|
+
export default ButtonRemove;
|