poe-svelte-ui-lib 1.1.19 → 1.1.21

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/options.js CHANGED
@@ -103,22 +103,91 @@ export const optionsStore = derived(t, ($t) => {
103
103
  { id: id(), value: 'square', name: $t('constructor.props.type.square') },
104
104
  { id: id(), value: 'circle', name: $t('constructor.props.type.circle') },
105
105
  ],
106
- AUTOCOMPLETE_OPTIONS: [
106
+ AUTOCOMPLETE_CONSTRUCTOR_OPTIONS: [
107
107
  { id: id(), value: 'on', name: $t('constructor.props.autocomplete.on') },
108
108
  { id: id(), value: 'off', name: $t('constructor.props.autocomplete.off') },
109
109
  { id: id(), value: 'given-name', name: $t('constructor.props.autocomplete.given-name') },
110
110
  { id: id(), value: 'family-name', name: $t('constructor.props.autocomplete.family-name') },
111
- { id: id(), value: 'name', name: $t('constructor.props.autocomplete.name') },
112
- { id: id(), value: 'email', name: $t('constructor.props.autocomplete.email') },
111
+ { id: id(), value: 'nickname', name: $t('constructor.props.autocomplete.nickname') },
113
112
  { id: id(), value: 'username', name: $t('constructor.props.autocomplete.username') },
114
113
  { id: id(), value: 'new-password', name: $t('constructor.props.autocomplete.new-password') },
115
114
  { id: id(), value: 'current-password', name: $t('constructor.props.autocomplete.current-password') },
116
- { id: id(), value: 'tel', name: $t('constructor.props.autocomplete.tel') },
115
+ { id: id(), value: 'organization-title', name: $t('constructor.props.autocomplete.organization-title') },
117
116
  { id: id(), value: 'country-name', name: $t('constructor.props.autocomplete.country-name') },
118
117
  { id: id(), value: 'address-level1', name: $t('constructor.props.autocomplete.address-level1') },
119
118
  { id: id(), value: 'address-level2', name: $t('constructor.props.autocomplete.address-level2') },
120
119
  { id: id(), value: 'street-address', name: $t('constructor.props.autocomplete.street-address') },
121
120
  { id: id(), value: 'postal-code', name: $t('constructor.props.autocomplete.postal-code') },
121
+ { id: id(), value: 'email', name: $t('constructor.props.autocomplete.email') },
122
+ { id: id(), value: 'tel', name: $t('constructor.props.autocomplete.tel') },
123
+ ],
124
+ AUTOCOMPLETE_OPTIONS: [
125
+ // Основные значения
126
+ { id: id(), value: 'on', name: $t('constructor.props.autocomplete.on') },
127
+ { id: id(), value: 'off', name: $t('constructor.props.autocomplete.off') },
128
+ // Имя и фамилия
129
+ { id: id(), value: 'name', name: $t('constructor.props.autocomplete.name') },
130
+ { id: id(), value: 'honorific-prefix', name: $t('constructor.props.autocomplete.honorific-prefix') },
131
+ { id: id(), value: 'given-name', name: $t('constructor.props.autocomplete.given-name') },
132
+ { id: id(), value: 'additional-name', name: $t('constructor.props.autocomplete.additional-name') },
133
+ { id: id(), value: 'family-name', name: $t('constructor.props.autocomplete.family-name') },
134
+ { id: id(), value: 'honorific-suffix', name: $t('constructor.props.autocomplete.honorific-suffix') },
135
+ { id: id(), value: 'nickname', name: $t('constructor.props.autocomplete.nickname') },
136
+ // Пользовательская информация
137
+ { id: id(), value: 'username', name: $t('constructor.props.autocomplete.username') },
138
+ { id: id(), value: 'new-password', name: $t('constructor.props.autocomplete.new-password') },
139
+ { id: id(), value: 'current-password', name: $t('constructor.props.autocomplete.current-password') },
140
+ { id: id(), value: 'one-time-code', name: $t('constructor.props.autocomplete.one-time-code') },
141
+ // Организация
142
+ { id: id(), value: 'organization-title', name: $t('constructor.props.autocomplete.organization-title') },
143
+ { id: id(), value: 'organization', name: $t('constructor.props.autocomplete.organization') },
144
+ // Адрес
145
+ { id: id(), value: 'street-address', name: $t('constructor.props.autocomplete.street-address') },
146
+ { id: id(), value: 'address-line1', name: $t('constructor.props.autocomplete.address-line1') },
147
+ { id: id(), value: 'address-line2', name: $t('constructor.props.autocomplete.address-line2') },
148
+ { id: id(), value: 'address-line3', name: $t('constructor.props.autocomplete.address-line3') },
149
+ { id: id(), value: 'address-level4', name: $t('constructor.props.autocomplete.address-level4') },
150
+ { id: id(), value: 'address-level3', name: $t('constructor.props.autocomplete.address-level3') },
151
+ { id: id(), value: 'address-level2', name: $t('constructor.props.autocomplete.address-level2') },
152
+ { id: id(), value: 'address-level1', name: $t('constructor.props.autocomplete.address-level1') },
153
+ { id: id(), value: 'country', name: $t('constructor.props.autocomplete.country') },
154
+ { id: id(), value: 'country-name', name: $t('constructor.props.autocomplete.country-name') },
155
+ { id: id(), value: 'postal-code', name: $t('constructor.props.autocomplete.postal-code') },
156
+ // Контактная информация
157
+ { id: id(), value: 'cc-name', name: $t('constructor.props.autocomplete.cc-name') },
158
+ { id: id(), value: 'cc-given-name', name: $t('constructor.props.autocomplete.cc-given-name') },
159
+ { id: id(), value: 'cc-additional-name', name: $t('constructor.props.autocomplete.cc-additional-name') },
160
+ { id: id(), value: 'cc-family-name', name: $t('constructor.props.autocomplete.cc-family-name') },
161
+ { id: id(), value: 'cc-number', name: $t('constructor.props.autocomplete.cc-number') },
162
+ { id: id(), value: 'cc-exp', name: $t('constructor.props.autocomplete.cc-exp') },
163
+ { id: id(), value: 'cc-exp-month', name: $t('constructor.props.autocomplete.cc-exp-month') },
164
+ { id: id(), value: 'cc-exp-year', name: $t('constructor.props.autocomplete.cc-exp-year') },
165
+ { id: id(), value: 'cc-csc', name: $t('constructor.props.autocomplete.cc-csc') },
166
+ { id: id(), value: 'cc-type', name: $t('constructor.props.autocomplete.cc-type') },
167
+ // Контакт
168
+ { id: id(), value: 'transaction-currency', name: $t('constructor.props.autocomplete.transaction-currency') },
169
+ { id: id(), value: 'transaction-amount', name: $t('constructor.props.autocomplete.transaction-amount') },
170
+ { id: id(), value: 'language', name: $t('constructor.props.autocomplete.language') },
171
+ { id: id(), value: 'bday', name: $t('constructor.props.autocomplete.bday') },
172
+ { id: id(), value: 'bday-day', name: $t('constructor.props.autocomplete.bday-day') },
173
+ { id: id(), value: 'bday-month', name: $t('constructor.props.autocomplete.bday-month') },
174
+ { id: id(), value: 'bday-year', name: $t('constructor.props.autocomplete.bday-year') },
175
+ // Связь
176
+ { id: id(), value: 'sex', name: $t('constructor.props.autocomplete.sex') },
177
+ { id: id(), value: 'url', name: $t('constructor.props.autocomplete.url') },
178
+ { id: id(), value: 'photo', name: $t('constructor.props.autocomplete.photo') },
179
+ // Email и телефон
180
+ { id: id(), value: 'email', name: $t('constructor.props.autocomplete.email') },
181
+ { id: id(), value: 'tel', name: $t('constructor.props.autocomplete.tel') },
182
+ { id: id(), value: 'tel-country-code', name: $t('constructor.props.autocomplete.tel-country-code') },
183
+ { id: id(), value: 'tel-national', name: $t('constructor.props.autocomplete.tel-national') },
184
+ { id: id(), value: 'tel-area-code', name: $t('constructor.props.autocomplete.tel-area-code') },
185
+ { id: id(), value: 'tel-local', name: $t('constructor.props.autocomplete.tel-local') },
186
+ { id: id(), value: 'tel-local-prefix', name: $t('constructor.props.autocomplete.tel-local-prefix') },
187
+ { id: id(), value: 'tel-local-suffix', name: $t('constructor.props.autocomplete.tel-local-suffix') },
188
+ { id: id(), value: 'tel-extension', name: $t('constructor.props.autocomplete.tel-extension') },
189
+ { id: id(), value: 'impp', name: $t('constructor.props.autocomplete.impp') },
190
+ { id: id(), value: 'fax', name: $t('constructor.props.autocomplete.fax') },
122
191
  ],
123
192
  };
124
193
  });
package/dist/types.d.ts CHANGED
@@ -89,7 +89,7 @@ export interface IInputProps {
89
89
  info?: string;
90
90
  copyButton?: boolean;
91
91
  regExp?: string | RegExp;
92
- autocomplete?: 'on' | 'off' | 'given-name' | 'family-name' | 'name' | 'email' | 'username' | 'new-password' | 'current-password' | 'tel' | 'country-name' | 'address-level1' | 'address-level2' | 'street-address' | 'postal-code' | null;
92
+ autocomplete?: 'on' | 'off' | 'given-name' | 'family-name' | 'nickname' | 'username' | 'new-password' | 'current-password' | 'organization-title' | 'country-name' | 'address-level1' | 'address-level2' | 'street-address' | 'postal-code' | 'email' | 'tel' | null;
93
93
  };
94
94
  eventHandler?: IUIComponentHandler;
95
95
  onUpdate?: (value: string | number) => void;
@@ -123,6 +123,7 @@ export interface ISwitchProps {
123
123
  disabled?: boolean;
124
124
  label?: {
125
125
  name?: string;
126
+ class?: string;
126
127
  captionLeft?: string;
127
128
  captionRight?: string;
128
129
  };
@@ -209,7 +210,10 @@ export interface ITableHeader<T extends object> {
209
210
  key: keyof T;
210
211
  sortable?: boolean;
211
212
  width?: string;
212
- align?: 'left' | 'center' | 'right';
213
+ align?: {
214
+ header?: 'left' | 'center' | 'right';
215
+ content?: 'left' | 'center' | 'right';
216
+ };
213
217
  overflow?: {
214
218
  truncated?: boolean;
215
219
  formatting?: (text: string) => string;
@@ -226,8 +230,8 @@ export interface ITableHeader<T extends object> {
226
230
  src: string | ((row: T) => string);
227
231
  alt?: string;
228
232
  class?: string;
229
- width?: number | string;
230
- height?: number | string;
233
+ width?: string;
234
+ height?: string;
231
235
  defaultIcon?: ConstructorOfATypedSvelteComponent;
232
236
  };
233
237
  }
@@ -241,6 +245,7 @@ export interface ITableProps<T extends object> {
241
245
  header: ITableHeader<T>[];
242
246
  body: T[];
243
247
  footer?: string;
248
+ outline?: boolean;
244
249
  cursor?: string | null;
245
250
  loader?: Writable<boolean>;
246
251
  getData?: () => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "poe-svelte-ui-lib",
3
- "version": "1.1.19",
3
+ "version": "1.1.21",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -9,7 +9,7 @@
9
9
  "preview": "vite preview",
10
10
  "prepack": "svelte-kit sync && svelte-package && publint",
11
11
  "CheckUpdate": "npx npm-check-updates -u && npm install",
12
- "FiLeS": "tsx src/lib/Accordion/IconsLib/iconsLib.ts"
12
+ "UpdateIconsLib": "tsx src/lib/Accordion/IconsLib/iconsLib.ts"
13
13
  },
14
14
  "svelte": "./dist/index.js",
15
15
  "types": "./dist/index.d.ts",
@@ -43,12 +43,12 @@
43
43
  "typescript": "^5.9.3"
44
44
  },
45
45
  "devDependencies": {
46
- "@sveltejs/kit": "^2.47.3",
46
+ "@sveltejs/kit": "^2.48.0",
47
47
  "@sveltejs/package": "^2.5.4",
48
48
  "@sveltejs/vite-plugin-svelte": "^6.2.1",
49
49
  "@types/node": "^24.9.1",
50
50
  "publint": "^0.3.15",
51
- "svelte": "^5.41.3",
51
+ "svelte": "^5.42.2",
52
52
  "svelte-preprocess": "^6.0.3",
53
53
  "vite": "^7.1.12",
54
54
  "vite-plugin-compression": "^0.5.1"