poe-svelte-ui-lib 1.0.5 → 1.0.7
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/Accordion/Accordion.svelte +56 -34
- package/dist/Accordion/AccordionProps.svelte +76 -0
- package/dist/Accordion/AccordionProps.svelte.d.ts +10 -0
- package/dist/Button/Button.svelte +28 -34
- package/dist/Button/ButtonProps.svelte +113 -0
- package/dist/Button/ButtonProps.svelte.d.ts +10 -0
- package/dist/ColorPicker/ColorPicker.svelte +27 -14
- package/dist/ColorPicker/ColorPickerProps.svelte +71 -0
- package/dist/ColorPicker/ColorPickerProps.svelte.d.ts +10 -0
- package/dist/{FileAttach/FileAttach.svelte → FileAttach.svelte} +3 -11
- package/dist/{FileAttach/FileAttach.svelte.d.ts → FileAttach.svelte.d.ts} +1 -1
- package/dist/Graph/Graph.svelte +4 -6
- package/dist/Graph/GraphProps.svelte +41 -0
- package/dist/Graph/GraphProps.svelte.d.ts +10 -0
- package/dist/Input/Input.svelte +42 -48
- package/dist/Input/InputProps.svelte +205 -0
- package/dist/Input/InputProps.svelte.d.ts +10 -0
- package/dist/Modal.svelte +54 -0
- package/dist/Modal.svelte.d.ts +12 -0
- package/dist/ProgressBar/ProgressBar.svelte +23 -21
- package/dist/ProgressBar/ProgressBarProps.svelte +114 -0
- package/dist/ProgressBar/ProgressBarProps.svelte.d.ts +10 -0
- package/dist/Select/Select.svelte +38 -23
- package/dist/Select/SelectProps.svelte +216 -0
- package/dist/Select/SelectProps.svelte.d.ts +10 -0
- package/dist/Slider/Slider.svelte +74 -28
- package/dist/Slider/SliderProps.svelte +113 -0
- package/dist/Slider/SliderProps.svelte.d.ts +10 -0
- package/dist/Switch/Switch.svelte +22 -16
- package/dist/Switch/SwitchProps.svelte +99 -0
- package/dist/Switch/SwitchProps.svelte.d.ts +10 -0
- package/dist/Table/Table.svelte +58 -39
- package/dist/Table/Table.svelte.d.ts +1 -1
- package/dist/Table/TableProps.svelte +233 -0
- package/dist/Table/TableProps.svelte.d.ts +10 -0
- package/dist/TextField/TextField.svelte +18 -14
- package/dist/TextField/TextFieldProps.svelte +92 -0
- package/dist/TextField/TextFieldProps.svelte.d.ts +10 -0
- package/dist/index.d.ts +3 -3
- package/dist/index.js +3 -3
- package/dist/libIcons/ButtonAdd.svelte +5 -2
- package/dist/libIcons/ButtonDelete.svelte +1 -1
- package/dist/libIcons/CrossIcon.svelte +9 -0
- package/dist/libIcons/CrossIcon.svelte.d.ts +18 -0
- package/dist/libIcons/IconGripVerticalDual.svelte +12 -0
- package/dist/libIcons/IconGripVerticalDual.svelte.d.ts +18 -0
- package/dist/libIcons/IconGripVerticalLeft.svelte +9 -0
- package/dist/libIcons/IconGripVerticalLeft.svelte.d.ts +18 -0
- package/dist/libIcons/IconGripVerticalRight.svelte +9 -0
- package/dist/libIcons/IconGripVerticalRight.svelte.d.ts +18 -0
- package/dist/locales/i18n.d.ts +9 -0
- package/dist/locales/i18n.js +33 -0
- package/dist/locales/translations.d.ts +7 -0
- package/dist/locales/translations.js +93 -0
- package/dist/options.d.ts +18 -23
- package/dist/options.js +44 -33
- package/dist/types.d.ts +50 -91
- package/dist/types.js +13 -1
- package/package.json +10 -5
- package/dist/Loader.svelte +0 -12
- package/dist/Loader.svelte.d.ts +0 -5
- package/dist/MessageModal.svelte +0 -54
- package/dist/MessageModal.svelte.d.ts +0 -10
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<script lang="ts"></script>
|
|
2
|
+
|
|
3
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 24 24"
|
|
4
|
+
><g fill="currentColor" fill-rule="evenodd" clip-rule="evenodd"
|
|
5
|
+
><path d="M5.47 5.47a.75.75 0 0 1 1.06 0l12 12a.75.75 0 1 1-1.06 1.06l-12-12a.75.75 0 0 1 0-1.06" /><path
|
|
6
|
+
d="M18.53 5.47a.75.75 0 0 1 0 1.06l-12 12a.75.75 0 0 1-1.06-1.06l12-12a.75.75 0 0 1 1.06 0"
|
|
7
|
+
/></g
|
|
8
|
+
></svg
|
|
9
|
+
>
|
|
@@ -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 CrossIcon: $$__sveltets_2_IsomorphicComponent<Record<string, never>, {
|
|
15
|
+
[evt: string]: CustomEvent<any>;
|
|
16
|
+
}, {}, {}, string>;
|
|
17
|
+
type CrossIcon = InstanceType<typeof CrossIcon>;
|
|
18
|
+
export default CrossIcon;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<!-- appIcons/IconGripVerticalDual.svelte -->
|
|
2
|
+
<script lang="ts"></script>
|
|
3
|
+
|
|
4
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="2rem" height="2rem" viewBox="0 0 24 24">
|
|
5
|
+
<g stroke="currentColor" stroke-linecap="round" stroke-width="1.5" fill="none">
|
|
6
|
+
<line x1="4" y1="11" x2="4" y2="13" />
|
|
7
|
+
<line x1="8" y1="9" x2="8" y2="15" />
|
|
8
|
+
<line x1="12" y1="6" x2="12" y2="18" />
|
|
9
|
+
<line x1="16" y1="9" x2="16" y2="15" />
|
|
10
|
+
<line x1="20" y1="11" x2="20" y2="13" />
|
|
11
|
+
</g>
|
|
12
|
+
</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 IconGripVerticalDual: $$__sveltets_2_IsomorphicComponent<Record<string, never>, {
|
|
15
|
+
[evt: string]: CustomEvent<any>;
|
|
16
|
+
}, {}, {}, string>;
|
|
17
|
+
type IconGripVerticalDual = InstanceType<typeof IconGripVerticalDual>;
|
|
18
|
+
export default IconGripVerticalDual;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<script lang="ts"></script>
|
|
2
|
+
|
|
3
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="2rem" height="2rem" viewBox="0 0 24 24">
|
|
4
|
+
<g stroke="currentColor" stroke-linecap="round" stroke-width="1.5" fill="none">
|
|
5
|
+
<line x1="8" y1="11" x2="8" y2="13" />
|
|
6
|
+
<line x1="12" y1="9" x2="12" y2="15" />
|
|
7
|
+
<line x1="16" y1="6" x2="16" y2="18" />
|
|
8
|
+
</g>
|
|
9
|
+
</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 IconGripVerticalLeft: $$__sveltets_2_IsomorphicComponent<Record<string, never>, {
|
|
15
|
+
[evt: string]: CustomEvent<any>;
|
|
16
|
+
}, {}, {}, string>;
|
|
17
|
+
type IconGripVerticalLeft = InstanceType<typeof IconGripVerticalLeft>;
|
|
18
|
+
export default IconGripVerticalLeft;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<script lang="ts"></script>
|
|
2
|
+
|
|
3
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="2rem" height="2rem" viewBox="0 0 24 24">
|
|
4
|
+
<g stroke="currentColor" stroke-linecap="round" stroke-width="1.5" fill="none">
|
|
5
|
+
<line x1="8" y1="6" x2="8" y2="18" />
|
|
6
|
+
<line x1="12" y1="9" x2="12" y2="15" />
|
|
7
|
+
<line x1="16" y1="11" x2="16" y2="13" />
|
|
8
|
+
</g>
|
|
9
|
+
</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 IconGripVerticalRight: $$__sveltets_2_IsomorphicComponent<Record<string, never>, {
|
|
15
|
+
[evt: string]: CustomEvent<any>;
|
|
16
|
+
}, {}, {}, string>;
|
|
17
|
+
type IconGripVerticalRight = InstanceType<typeof IconGripVerticalRight>;
|
|
18
|
+
export default IconGripVerticalRight;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type Readable } from 'svelte/store';
|
|
2
|
+
export declare const Language: import("svelte/store").Writable<string>;
|
|
3
|
+
export declare function setLanguage(newLang: string): void;
|
|
4
|
+
export declare const LOCALES: {
|
|
5
|
+
id: string;
|
|
6
|
+
name: string;
|
|
7
|
+
value: string;
|
|
8
|
+
}[];
|
|
9
|
+
export declare const t: Readable<(key: string) => string>;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { derived } from 'svelte/store';
|
|
2
|
+
import { writable } from 'svelte/store';
|
|
3
|
+
import translations from './translations';
|
|
4
|
+
/* Язык по умолчанию */
|
|
5
|
+
let initialLanguage = 'ru';
|
|
6
|
+
/* Проверяем, доступен ли localStorage */
|
|
7
|
+
if (typeof window !== 'undefined') {
|
|
8
|
+
initialLanguage = localStorage.getItem('AppLanguage') || navigator.language?.split('-')[0]?.toLowerCase() || 'ru';
|
|
9
|
+
const supported = ['ru', 'en', 'zh'];
|
|
10
|
+
if (!supported.includes(initialLanguage)) {
|
|
11
|
+
initialLanguage = 'ru';
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
/* Создаем хранилище с начальным значением языка */
|
|
15
|
+
export const Language = writable(initialLanguage);
|
|
16
|
+
/* Функция для изменения языка */
|
|
17
|
+
export function setLanguage(newLang) {
|
|
18
|
+
if (typeof window !== 'undefined') {
|
|
19
|
+
localStorage.setItem('AppLanguage', newLang);
|
|
20
|
+
}
|
|
21
|
+
Language.set(newLang);
|
|
22
|
+
}
|
|
23
|
+
/* Поддерживаемые языки (код, название языка, флаг) */
|
|
24
|
+
export const LOCALES = [
|
|
25
|
+
{ id: 'app-language-ru', name: 'РУС', value: 'ru' },
|
|
26
|
+
{ id: 'app-language-en', name: 'ENG', value: 'en' },
|
|
27
|
+
{ id: 'app-language-zh', name: '中文', value: 'zh' },
|
|
28
|
+
];
|
|
29
|
+
/* Функция для перевода для текущего языка */
|
|
30
|
+
function translate(locale, key) {
|
|
31
|
+
return translations[locale]?.[key] || key;
|
|
32
|
+
}
|
|
33
|
+
export const t = derived(Language, ($lang) => (key) => translate($lang, key));
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
const translations = {
|
|
2
|
+
ru: {
|
|
3
|
+
'common.select_tag': 'Сделайте выбор',
|
|
4
|
+
'debug.baud_rate_data': 'Данные',
|
|
5
|
+
/* Опции рeдактора свойств */
|
|
6
|
+
'constructor.props.action.update': 'Обновить',
|
|
7
|
+
'constructor.props.action.save': 'Сохранить',
|
|
8
|
+
'constructor.props.action.nosend': 'Без отправки',
|
|
9
|
+
'constructor.props.action.custom': 'Свой аргумент',
|
|
10
|
+
'constructor.props.height.small': 'Авто',
|
|
11
|
+
'constructor.props.height.medium': 'Средняя',
|
|
12
|
+
'constructor.props.height.large': 'Большая',
|
|
13
|
+
'constructor.props.align.left': 'Слева',
|
|
14
|
+
'constructor.props.align.center': 'По центру',
|
|
15
|
+
'constructor.props.align.right': 'Справа',
|
|
16
|
+
'constructor.props.type.main': 'Основной',
|
|
17
|
+
'constructor.props.type.sub': 'Вложенный',
|
|
18
|
+
'constructor.props.type.text': 'Текст',
|
|
19
|
+
'constructor.props.type.password': 'Пароль',
|
|
20
|
+
'constructor.props.type.number': 'Число',
|
|
21
|
+
'constructor.props.type.textarea': 'Область ',
|
|
22
|
+
'constructor.props.type.single': 'Простой',
|
|
23
|
+
'constructor.props.type.range': 'Диапазон',
|
|
24
|
+
'constructor.props.type.small': 'XS',
|
|
25
|
+
'constructor.props.type.base': 'S',
|
|
26
|
+
'constructor.props.type.large': 'M',
|
|
27
|
+
'constructor.props.type.huge': 'L',
|
|
28
|
+
'constructor.props.type.massive': 'XL',
|
|
29
|
+
'constructor.props.type.select': 'Список',
|
|
30
|
+
'constructor.props.type.buttons': 'Группа кнопок',
|
|
31
|
+
'constructor.props.type.selectput': 'Список+ввод',
|
|
32
|
+
'constructor.props.valuetype.text': 'Строка',
|
|
33
|
+
'constructor.props.valuetype.number': 'Число',
|
|
34
|
+
/* Общие для редактора свойств */
|
|
35
|
+
'constructor.props.label': 'Текст надписи',
|
|
36
|
+
'constructor.props.type': 'Тип',
|
|
37
|
+
'constructor.props.size': 'Размер',
|
|
38
|
+
'constructor.props.header': 'Заголовок пакета',
|
|
39
|
+
'constructor.props.argument': 'Аргумент',
|
|
40
|
+
'constructor.props.argument.info': 'Пользовтельский аргумент (a-z, A-Z, 0-9, -_!)',
|
|
41
|
+
'constructor.props.variables': 'Перечень переменных',
|
|
42
|
+
'constructor.props.variables.info': 'Поле для ввода имён переменных, разделенных пробелами',
|
|
43
|
+
'constructor.props.value': 'Значение',
|
|
44
|
+
'constructor.props.value.info': 'Поле для ввода Value пакета',
|
|
45
|
+
'constructor.props.align': 'Выравнивание',
|
|
46
|
+
'constructor.props.image': 'Фоновое изображение',
|
|
47
|
+
'constructor.props.removeimage': 'Удалить изображение',
|
|
48
|
+
'constructor.props.name': 'Текст',
|
|
49
|
+
'constructor.props.height': 'Высота',
|
|
50
|
+
'constructor.props.colors': 'Цвет фона',
|
|
51
|
+
'constructor.props.maxlenght': 'Максимальная длина',
|
|
52
|
+
'constructor.props.regexp': 'Выражение валидации',
|
|
53
|
+
'constructor.props.regexp.info': 'Введите RegExp без /.../ (например: ^\\d+$)',
|
|
54
|
+
'constructor.props.minnum': 'Минимальное значение',
|
|
55
|
+
'constructor.props.maxnum': 'Максимальное значение',
|
|
56
|
+
'constructor.props.step': 'Шаг',
|
|
57
|
+
'constructor.props.rows': 'Количество строк',
|
|
58
|
+
'constructor.props.placeholder': 'Заполнитель',
|
|
59
|
+
'constructor.props.info': 'Подсказка',
|
|
60
|
+
'constructor.props.disabled': 'Отключить',
|
|
61
|
+
'constructor.props.readonly': 'Только для чтения',
|
|
62
|
+
'constructor.props.variable': 'Имя переменной',
|
|
63
|
+
'constructor.props.widthMode': 'Ширина кнопок',
|
|
64
|
+
'constructor.props.options.title': 'Опции компонента',
|
|
65
|
+
'constructor.props.valuetype': 'Тип значения',
|
|
66
|
+
'constructor.props.action': 'Действие при переключении',
|
|
67
|
+
'constructor.props.caption.left': 'Надпись слева',
|
|
68
|
+
'constructor.props.caption.right': 'Надпись справа',
|
|
69
|
+
'constructor.props.bold': 'Жирный',
|
|
70
|
+
'constructor.props.italic': 'Курсив',
|
|
71
|
+
'constructor.props.background': 'Фон',
|
|
72
|
+
'constructor.props.min': 'Минимальное значение',
|
|
73
|
+
'constructor.props.max': 'Максимальное значение',
|
|
74
|
+
'constructor.props.units': 'Единица измерения',
|
|
75
|
+
'constructor.props.optionclass': 'Стили кнопки',
|
|
76
|
+
'constructor.props.optionvalue': 'Значение',
|
|
77
|
+
'constructor.props.optionname': 'Текст',
|
|
78
|
+
'constructor.props.copy': 'Копирование',
|
|
79
|
+
'constructor.props.table.columns': 'Колонки таблицы',
|
|
80
|
+
'constructor.props.table.columns.key': 'Имя ключа',
|
|
81
|
+
'constructor.props.table.columns.label': 'Название',
|
|
82
|
+
'constructor.props.table.columns.width': 'Ширина',
|
|
83
|
+
'constructor.props.table.columns.sortable': 'Сортировка',
|
|
84
|
+
'constructor.props.table.deletecolumn': 'Удалить колонку',
|
|
85
|
+
'constructor.props.table.deletebutton': 'Удалить кнопку',
|
|
86
|
+
'constructor.props.table.addaction': 'Добавить кнопку',
|
|
87
|
+
'constructor.props.table.keys': 'Перечень ключей',
|
|
88
|
+
'constructor.props.table.keys.info': 'Ключи таблицы, значения которых будут возвращаться',
|
|
89
|
+
},
|
|
90
|
+
en: {},
|
|
91
|
+
zh: {},
|
|
92
|
+
};
|
|
93
|
+
export default translations;
|
package/dist/options.d.ts
CHANGED
|
@@ -3,53 +3,45 @@ export declare const optionsStore: import("svelte/store").Readable<{
|
|
|
3
3
|
id: string;
|
|
4
4
|
name: string;
|
|
5
5
|
value: string;
|
|
6
|
-
class: string;
|
|
7
6
|
}[];
|
|
8
7
|
SHORT_ARGUMENT_OPTION: {
|
|
9
8
|
id: string;
|
|
10
9
|
value: string;
|
|
11
|
-
name:
|
|
12
|
-
class: string;
|
|
10
|
+
name: string;
|
|
13
11
|
}[];
|
|
14
12
|
FULL_ARGUMENT_OPTION: {
|
|
15
13
|
id: string;
|
|
16
14
|
value: string;
|
|
17
|
-
name:
|
|
18
|
-
class: string;
|
|
15
|
+
name: string;
|
|
19
16
|
}[];
|
|
20
17
|
INPUT_TYPE_OPTIONS: {
|
|
21
18
|
id: string;
|
|
22
19
|
value: string;
|
|
23
|
-
name:
|
|
20
|
+
name: string;
|
|
24
21
|
}[];
|
|
25
22
|
SELECT_TYPE_OPTIONS: {
|
|
26
23
|
id: string;
|
|
27
24
|
value: string;
|
|
28
|
-
name:
|
|
29
|
-
class: string;
|
|
25
|
+
name: string;
|
|
30
26
|
}[];
|
|
31
27
|
SELECT_VALUE_TYPE_OPTIONS: ({
|
|
32
28
|
id: string;
|
|
33
29
|
value: "text";
|
|
34
|
-
name:
|
|
35
|
-
class: string;
|
|
30
|
+
name: string;
|
|
36
31
|
} | {
|
|
37
32
|
id: string;
|
|
38
33
|
value: "number";
|
|
39
|
-
name:
|
|
40
|
-
class: string;
|
|
34
|
+
name: string;
|
|
41
35
|
})[];
|
|
42
36
|
SLIDER_TYPE_OPTIONS: {
|
|
43
37
|
id: string;
|
|
44
38
|
value: string;
|
|
45
|
-
name:
|
|
46
|
-
class: string;
|
|
39
|
+
name: string;
|
|
47
40
|
}[];
|
|
48
41
|
TEXTFIELD_SIZE_OPTIONS: {
|
|
49
42
|
id: string;
|
|
50
43
|
value: string;
|
|
51
|
-
name:
|
|
52
|
-
class: string;
|
|
44
|
+
name: string;
|
|
53
45
|
}[];
|
|
54
46
|
COLOR_OPTIONS: {
|
|
55
47
|
id: string;
|
|
@@ -57,22 +49,25 @@ export declare const optionsStore: import("svelte/store").Readable<{
|
|
|
57
49
|
value: string;
|
|
58
50
|
class: string;
|
|
59
51
|
}[];
|
|
60
|
-
|
|
52
|
+
TEXT_COLOR_OPTIONS: {
|
|
61
53
|
id: string;
|
|
54
|
+
name: string;
|
|
62
55
|
value: string;
|
|
63
|
-
name: any;
|
|
64
56
|
class: string;
|
|
65
57
|
}[];
|
|
58
|
+
ALIGN_OPTIONS: {
|
|
59
|
+
id: string;
|
|
60
|
+
value: string;
|
|
61
|
+
name: string;
|
|
62
|
+
}[];
|
|
66
63
|
HEIGHT_OPTIONS: {
|
|
67
64
|
id: string;
|
|
68
65
|
value: string;
|
|
69
|
-
name:
|
|
70
|
-
class: string;
|
|
66
|
+
name: string;
|
|
71
67
|
}[];
|
|
72
68
|
ACCORDION_TYPE_OPTIONS: {
|
|
73
69
|
id: string;
|
|
74
|
-
value:
|
|
75
|
-
name:
|
|
76
|
-
class: string;
|
|
70
|
+
value: boolean;
|
|
71
|
+
name: string;
|
|
77
72
|
}[];
|
|
78
73
|
}>;
|
package/dist/options.js
CHANGED
|
@@ -7,20 +7,20 @@ function id() {
|
|
|
7
7
|
export const optionsStore = derived(t, ($t) => {
|
|
8
8
|
return {
|
|
9
9
|
HEADER_OPTIONS: [
|
|
10
|
-
{ id: id(), name: 'GET', value: 'GET'
|
|
11
|
-
{ id: id(), name: 'SET', value: 'SET'
|
|
12
|
-
{ id: id(), name: 'OK!', value: 'OK!'
|
|
13
|
-
{ id: id(), name: 'ER!', value: 'ER!'
|
|
10
|
+
{ id: id(), name: 'GET', value: 'GET' },
|
|
11
|
+
{ id: id(), name: 'SET', value: 'SET' },
|
|
12
|
+
{ id: id(), name: 'OK!', value: 'OK!' },
|
|
13
|
+
{ id: id(), name: 'ER!', value: 'ER!' },
|
|
14
14
|
],
|
|
15
15
|
SHORT_ARGUMENT_OPTION: [
|
|
16
|
-
{ id: id(), value: 'NoSave', name: $t('constructor.props.action.update')
|
|
17
|
-
{ id: id(), value: 'Save', name: $t('constructor.props.action.save')
|
|
18
|
-
{ id: id(), value: 'NoSend', name: $t('constructor.props.action.nosend')
|
|
16
|
+
{ id: id(), value: 'NoSave', name: $t('constructor.props.action.update') },
|
|
17
|
+
{ id: id(), value: 'Save', name: $t('constructor.props.action.save') },
|
|
18
|
+
{ id: id(), value: 'NoSend', name: $t('constructor.props.action.nosend') },
|
|
19
19
|
],
|
|
20
20
|
FULL_ARGUMENT_OPTION: [
|
|
21
|
-
{ id: id(), value: 'NoSave', name: $t('constructor.props.action.update')
|
|
22
|
-
{ id: id(), value: 'Save', name: $t('constructor.props.action.save')
|
|
23
|
-
{ id: id(), value: '', name: $t('constructor.props.action.custom')
|
|
21
|
+
{ id: id(), value: 'NoSave', name: $t('constructor.props.action.update') },
|
|
22
|
+
{ id: id(), value: 'Save', name: $t('constructor.props.action.save') },
|
|
23
|
+
{ id: id(), value: '', name: $t('constructor.props.action.custom') },
|
|
24
24
|
],
|
|
25
25
|
INPUT_TYPE_OPTIONS: [
|
|
26
26
|
{ id: id(), value: 'text', name: $t('constructor.props.type.text') },
|
|
@@ -29,43 +29,54 @@ export const optionsStore = derived(t, ($t) => {
|
|
|
29
29
|
{ id: id(), value: 'text-area', name: $t('constructor.props.type.textarea') },
|
|
30
30
|
],
|
|
31
31
|
SELECT_TYPE_OPTIONS: [
|
|
32
|
-
{ id: id(), value: 'select', name: $t('constructor.props.type.select')
|
|
33
|
-
{ id: id(), value: 'buttons', name: $t('constructor.props.type.buttons')
|
|
32
|
+
{ id: id(), value: 'select', name: $t('constructor.props.type.select') },
|
|
33
|
+
{ id: id(), value: 'buttons', name: $t('constructor.props.type.buttons') },
|
|
34
|
+
{ id: id(), value: 'input', name: $t('constructor.props.type.selectput') },
|
|
34
35
|
],
|
|
35
36
|
SELECT_VALUE_TYPE_OPTIONS: [
|
|
36
|
-
{ id: id(), value: 'text', name: $t('constructor.props.valuetype.text')
|
|
37
|
-
{ id: id(), value: 'number', name: $t('constructor.props.valuetype.number')
|
|
37
|
+
{ id: id(), value: 'text', name: $t('constructor.props.valuetype.text') },
|
|
38
|
+
{ id: id(), value: 'number', name: $t('constructor.props.valuetype.number') },
|
|
38
39
|
],
|
|
39
40
|
SLIDER_TYPE_OPTIONS: [
|
|
40
|
-
{ id: id(), value: 'single', name: $t('constructor.props.type.single')
|
|
41
|
-
{ id: id(), value: 'range', name: $t('constructor.props.type.range')
|
|
41
|
+
{ id: id(), value: 'single', name: $t('constructor.props.type.single') },
|
|
42
|
+
{ id: id(), value: 'range', name: $t('constructor.props.type.range') },
|
|
42
43
|
],
|
|
43
44
|
TEXTFIELD_SIZE_OPTIONS: [
|
|
44
|
-
{ id: id(), value: 'small', name: $t('constructor.props.type.small')
|
|
45
|
-
{ id: id(), value: '
|
|
46
|
-
{ id: id(), value: '
|
|
45
|
+
{ id: id(), value: 'small', name: $t('constructor.props.type.small') },
|
|
46
|
+
{ id: id(), value: 'base', name: $t('constructor.props.type.base') },
|
|
47
|
+
{ id: id(), value: 'large', name: $t('constructor.props.type.large') },
|
|
48
|
+
{ id: id(), value: 'huge', name: $t('constructor.props.type.huge') },
|
|
49
|
+
{ id: id(), value: 'massive', name: $t('constructor.props.type.massive') },
|
|
47
50
|
],
|
|
48
51
|
COLOR_OPTIONS: [
|
|
49
|
-
{ id: id(), name: '', value: 'bg-gray', class: '
|
|
50
|
-
{ id: id(), name: '', value: 'bg-max', class: '
|
|
51
|
-
{ id: id(), name: '', value: 'bg-red', class: '
|
|
52
|
-
{ id: id(), name: '', value: 'bg-yellow', class: '
|
|
53
|
-
{ id: id(), name: '', value: 'bg-green', class: '
|
|
54
|
-
{ id: id(), name: '', value: 'bg-blue', class: '
|
|
52
|
+
{ id: id(), name: '', value: 'bg-gray', class: 'bg-gray' },
|
|
53
|
+
{ id: id(), name: '', value: 'bg-max', class: 'bg-max' },
|
|
54
|
+
{ id: id(), name: '', value: 'bg-red', class: 'bg-red' },
|
|
55
|
+
{ id: id(), name: '', value: 'bg-yellow', class: 'bg-yellow' },
|
|
56
|
+
{ id: id(), name: '', value: 'bg-green', class: 'bg-green' },
|
|
57
|
+
{ id: id(), name: '', value: 'bg-blue', class: 'bg-blue' },
|
|
58
|
+
],
|
|
59
|
+
TEXT_COLOR_OPTIONS: [
|
|
60
|
+
{ id: id(), name: '', value: 'text-[#333] dark:text-[#e2e3e7]', class: 'bg-[var(--shadow-color)] dark:bg-[#e2e3e7] ' },
|
|
61
|
+
{ id: id(), name: '', value: 'text-red-500 dark:text-red-400', class: 'bg-red-500 dark:bg-red-400' },
|
|
62
|
+
{ id: id(), name: '', value: 'text-yellow-500 dark:text-yellow-400', class: 'bg-yellow-500 dark:bg-yellow-400' },
|
|
63
|
+
{ id: id(), name: '', value: 'text-green-500 dark:text-green-400', class: 'bg-green-500 dark:bg-green-400' },
|
|
64
|
+
{ id: id(), name: '', value: 'text-blue-500 dark:text-blue-400', class: 'bg-blue-500 dark:bg-blue-400' },
|
|
65
|
+
{ id: id(), name: '', value: 'text-gray-500 dark:text-gray-400', class: 'bg-gray-500 dark:bg-gray-400' },
|
|
55
66
|
],
|
|
56
67
|
ALIGN_OPTIONS: [
|
|
57
|
-
{ id: id(), value: 'text-left', name: $t('constructor.props.align.left')
|
|
58
|
-
{ id: id(), value: 'text-center', name: $t('constructor.props.align.center')
|
|
59
|
-
{ id: id(), value: 'text-right', name: $t('constructor.props.align.right')
|
|
68
|
+
{ id: id(), value: 'text-left', name: $t('constructor.props.align.left') },
|
|
69
|
+
{ id: id(), value: 'text-center', name: $t('constructor.props.align.center') },
|
|
70
|
+
{ id: id(), value: 'text-right', name: $t('constructor.props.align.right') },
|
|
60
71
|
],
|
|
61
72
|
HEIGHT_OPTIONS: [
|
|
62
|
-
{ id: id(), value: 'py-1', name: $t('constructor.props.height.small')
|
|
63
|
-
{ id: id(), value: 'py-2', name: $t('constructor.props.height.medium')
|
|
64
|
-
{ id: id(), value: 'py-3', name: $t('constructor.props.height.large')
|
|
73
|
+
{ id: id(), value: 'py-1', name: $t('constructor.props.height.small') },
|
|
74
|
+
{ id: id(), value: 'py-2', name: $t('constructor.props.height.medium') },
|
|
75
|
+
{ id: id(), value: 'py-3', name: $t('constructor.props.height.large') },
|
|
65
76
|
],
|
|
66
77
|
ACCORDION_TYPE_OPTIONS: [
|
|
67
|
-
{ id: id(), value:
|
|
68
|
-
{ id: id(), value:
|
|
78
|
+
{ id: id(), value: false, name: $t('constructor.props.type.main') },
|
|
79
|
+
{ id: id(), value: true, name: $t('constructor.props.type.sub') },
|
|
69
80
|
],
|
|
70
81
|
};
|
|
71
82
|
});
|