@sveltia/ui 0.80.4 → 0.81.1
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/components/scroll/infinite-scroll.svelte +33 -5
- package/dist/components/text-editor/constants.d.ts +2 -1
- package/dist/components/text-editor/constants.js +2 -1
- package/dist/components/text-editor/shiki/version.d.ts +1 -1
- package/dist/components/text-editor/shiki/version.js +1 -1
- package/dist/components/text-field/number-input.d.ts +13 -0
- package/dist/components/text-field/number-input.js +30 -0
- package/dist/components/text-field/number-input.svelte +93 -46
- package/dist/components/text-field/number-input.svelte.d.ts +30 -2
- package/dist/components/util/font-links.svelte +2 -2
- package/dist/components/util/fonts.js +2 -2
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/locales/ar.yaml +6 -0
- package/dist/locales/bg.yaml +6 -0
- package/dist/locales/ca.yaml +6 -0
- package/dist/locales/cs.yaml +6 -0
- package/dist/locales/da.yaml +6 -0
- package/dist/locales/de.yaml +6 -0
- package/dist/locales/el.yaml +6 -0
- package/dist/locales/en-CA.yaml +6 -0
- package/dist/locales/en-GB.yaml +6 -0
- package/dist/locales/en-US.yaml +6 -0
- package/dist/locales/es-CO.yaml +6 -0
- package/dist/locales/fa.yaml +6 -0
- package/dist/locales/fi.yaml +6 -0
- package/dist/locales/fr.yaml +6 -0
- package/dist/locales/he.yaml +6 -0
- package/dist/locales/hr.yaml +6 -0
- package/dist/locales/it.yaml +6 -0
- package/dist/locales/ja.yaml +6 -0
- package/dist/locales/ko.yaml +6 -0
- package/dist/locales/nl.yaml +6 -0
- package/dist/locales/pl.yaml +6 -0
- package/dist/locales/pt-BR.yaml +6 -0
- package/dist/locales/pt-PT.yaml +6 -0
- package/dist/locales/ru.yaml +6 -0
- package/dist/locales/sk.yaml +6 -0
- package/dist/locales/sv.yaml +6 -0
- package/dist/locales/tr.yaml +6 -0
- package/dist/locales/uk.yaml +6 -0
- package/dist/locales/vi.yaml +6 -0
- package/dist/locales/zh-CN.yaml +6 -0
- package/dist/locales/zh-TW.yaml +6 -0
- package/dist/self-hosted/fonts/material-symbols-outlined-latin-wght-normal.woff2 +0 -0
- package/dist/self-hosted/fonts/source-sans-3-latin-wght-normal.woff2 +0 -0
- package/package.json +5 -5
|
@@ -35,11 +35,36 @@
|
|
|
35
35
|
|
|
36
36
|
const loading = $derived(items.length > loadedItemSize);
|
|
37
37
|
|
|
38
|
+
/**
|
|
39
|
+
* Get the nearest ancestor of the given element that scrolls vertically. An ancestor that can
|
|
40
|
+
* scroll but whose content fits, like one growing with the list or a horizontal scroller, doesn’t
|
|
41
|
+
* clip the element, and as the observer’s root it would let every chunk load at once. The heights
|
|
42
|
+
* are rounded separately, so a 1px difference doesn’t count as scrolling.
|
|
43
|
+
* @param {HTMLElement} element Element.
|
|
44
|
+
* @returns {HTMLElement | null} Scroll container, or `null` if the document itself scrolls.
|
|
45
|
+
*/
|
|
46
|
+
const getScrollContainer = (element) => {
|
|
47
|
+
for (let parent = element.parentElement; parent; parent = parent.parentElement) {
|
|
48
|
+
if (
|
|
49
|
+
parent.scrollHeight - parent.clientHeight > 1 &&
|
|
50
|
+
/^(auto|scroll)$/.test(getComputedStyle(parent).overflowY)
|
|
51
|
+
) {
|
|
52
|
+
return parent;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
return null;
|
|
57
|
+
};
|
|
58
|
+
|
|
38
59
|
// Observe the spinner anew once each chunk is rendered: the observer only reports changes, so a
|
|
39
60
|
// spinner that stays in view because the chunk didn’t fill the viewport would stall the loading.
|
|
40
61
|
// Observing an element always reports its current state first. The observer is created here
|
|
41
62
|
// rather than when the component is set up, since `IntersectionObserver` doesn’t exist during
|
|
42
63
|
// server-side rendering, and it’s disconnected before the next chunk and on unmount.
|
|
64
|
+
// The next chunk starts loading while the spinner is still a little below the visible area, so
|
|
65
|
+
// the scrolling doesn’t stop at the end of each chunk. The margin only applies to the observer’s
|
|
66
|
+
// root, which has to be the scroll container: the viewport margin wouldn’t reveal a spinner
|
|
67
|
+
// clipped by a scrolling ancestor.
|
|
43
68
|
$effect(() => {
|
|
44
69
|
void loadedItemSize;
|
|
45
70
|
|
|
@@ -47,11 +72,14 @@
|
|
|
47
72
|
return undefined;
|
|
48
73
|
}
|
|
49
74
|
|
|
50
|
-
const observer = new IntersectionObserver(
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
75
|
+
const observer = new IntersectionObserver(
|
|
76
|
+
([{ isIntersecting }]) => {
|
|
77
|
+
if (isIntersecting && loading) {
|
|
78
|
+
loadedItemSize += itemChunkSize;
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
{ root: getScrollContainer(spinner), rootMargin: '0px 0px 500px 0px' },
|
|
82
|
+
);
|
|
55
83
|
|
|
56
84
|
observer.observe(spinner);
|
|
57
85
|
|
|
@@ -58,7 +58,8 @@ export const TRANSFORMER_MAP: Record<Exclude<TextEditorNodeType, "paragraph">, T
|
|
|
58
58
|
export const DISABLED_MARKDOWN_TAGS: string[];
|
|
59
59
|
/**
|
|
60
60
|
* Tag of the Lexical update that imports a value set from outside, so the editor can tell it from a
|
|
61
|
-
* change made by the user.
|
|
61
|
+
* change made by the user. A custom node can check it with `$hasUpdateTag()` in its `createDOM()`
|
|
62
|
+
* method to tell whether it’s being rendered for an imported value.
|
|
62
63
|
*/
|
|
63
64
|
export const IMPORT_UPDATE_TAG: "sui-import";
|
|
64
65
|
/**
|
|
@@ -235,7 +235,8 @@ export const DISABLED_MARKDOWN_TAGS = ['*', '__', '***', '___'];
|
|
|
235
235
|
|
|
236
236
|
/**
|
|
237
237
|
* Tag of the Lexical update that imports a value set from outside, so the editor can tell it from a
|
|
238
|
-
* change made by the user.
|
|
238
|
+
* change made by the user. A custom node can check it with `$hasUpdateTag()` in its `createDOM()`
|
|
239
|
+
* method to tell whether it’s being rendered for an imported value.
|
|
239
240
|
*/
|
|
240
241
|
export const IMPORT_UPDATE_TAG = 'sui-import';
|
|
241
242
|
|
|
@@ -1,4 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Logic behind `<NumberInput>`, kept apart from the component so the number handling can be tested
|
|
3
|
+
* without rendering anything.
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Step value that turns stepping off: the spin buttons are hidden and the arrow keys are ignored.
|
|
7
|
+
*/
|
|
8
|
+
export const STEP_DISABLED: -1;
|
|
9
|
+
export function normalizeStep(step: number | null | undefined): number;
|
|
1
10
|
export function getMaximumFractionDigits(step: number): number;
|
|
11
|
+
export function getInputMode({ fractional, min }: {
|
|
12
|
+
fractional: boolean;
|
|
13
|
+
min?: number | undefined;
|
|
14
|
+
}): "text" | "decimal" | "numeric";
|
|
2
15
|
export function getDecimalSeparator(locale: string | undefined): string;
|
|
3
16
|
export function normalizeNumber(inputValue: string, locale: string | undefined): string;
|
|
4
17
|
export function parseNumber(inputValue: string): number | undefined;
|
|
@@ -3,6 +3,20 @@
|
|
|
3
3
|
* without rendering anything.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
+
/**
|
|
7
|
+
* Step value that turns stepping off: the spin buttons are hidden and the arrow keys are ignored.
|
|
8
|
+
*/
|
|
9
|
+
export const STEP_DISABLED = -1;
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Get the step to use, falling back to `1` for a value that isn’t a positive number, like `0`,
|
|
13
|
+
* `null` or `NaN`, which would leave the spin buttons and the arrow keys with nowhere to go.
|
|
14
|
+
* @param {number | null | undefined} step Step value.
|
|
15
|
+
* @returns {number} Positive step.
|
|
16
|
+
*/
|
|
17
|
+
export const normalizeStep = (step) =>
|
|
18
|
+
typeof step === 'number' && Number.isFinite(step) && step > 0 ? step : 1;
|
|
19
|
+
|
|
6
20
|
/**
|
|
7
21
|
* Get the number of fraction digits a value should be formatted with, so stepping by `0.1` yields
|
|
8
22
|
* `0.3` rather than `0.30000000000000004`.
|
|
@@ -17,6 +31,22 @@ export const getMaximumFractionDigits = (step) => {
|
|
|
17
31
|
return Math.max(digits, 0);
|
|
18
32
|
};
|
|
19
33
|
|
|
34
|
+
/**
|
|
35
|
+
* Get the `inputmode` attribute for the field. The numeric and decimal keypads on iOS have no minus
|
|
36
|
+
* key, so a field that accepts a negative number gets the full keyboard instead.
|
|
37
|
+
* @param {object} options Options.
|
|
38
|
+
* @param {boolean} options.fractional Whether the number can have a fraction.
|
|
39
|
+
* @param {number} [options.min] Minimum allowed value.
|
|
40
|
+
* @returns {'text' | 'decimal' | 'numeric'} Input mode.
|
|
41
|
+
*/
|
|
42
|
+
export const getInputMode = ({ fractional, min }) => {
|
|
43
|
+
if (!(typeof min === 'number' && min >= 0)) {
|
|
44
|
+
return 'text';
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
return fractional ? 'decimal' : 'numeric';
|
|
48
|
+
};
|
|
49
|
+
|
|
20
50
|
/**
|
|
21
51
|
* Decimal separators of the locales looked up, keyed by locale. The separator is read on every
|
|
22
52
|
* keystroke, while creating an `Intl.NumberFormat` is comparatively expensive.
|
|
@@ -10,11 +10,14 @@
|
|
|
10
10
|
import Button from '../button/button.svelte';
|
|
11
11
|
import Icon from '../icon/icon.svelte';
|
|
12
12
|
import {
|
|
13
|
+
STEP_DISABLED,
|
|
14
|
+
getInputMode,
|
|
13
15
|
getMaximumFractionDigits,
|
|
14
16
|
isAtMax,
|
|
15
17
|
isAtMin,
|
|
16
18
|
isInvalidNumber,
|
|
17
19
|
normalizeNumber,
|
|
20
|
+
normalizeStep,
|
|
18
21
|
parseNumber,
|
|
19
22
|
stepNumber,
|
|
20
23
|
} from './number-input.js';
|
|
@@ -31,7 +34,15 @@
|
|
|
31
34
|
* @property {number} [min] Minimum allowed value.
|
|
32
35
|
* @property {number} [max] Maximum allowed value.
|
|
33
36
|
* @property {number} [step] Value to be added or removed when using the up/down arrow key or
|
|
34
|
-
* button.
|
|
37
|
+
* button. Set to `-1` to hide the buttons and disable stepping with the arrow keys, for a number
|
|
38
|
+
* that isn’t meant to be stepped, like an ID. Any other value that isn’t a positive number falls
|
|
39
|
+
* back to `1`.
|
|
40
|
+
* @property {boolean} [fractional] Whether the number can have a fraction, which brings up the
|
|
41
|
+
* decimal keypad rather than the numeric one on mobile. If omitted, it’s inferred from `step`:
|
|
42
|
+
* `true` for a fractional step or with stepping turned off, `false` for an integer step.
|
|
43
|
+
* @property {'text' | 'decimal' | 'numeric'} [inputmode] The `inputmode` attribute on the
|
|
44
|
+
* `<input>`. If omitted, it’s `text` if a negative number is allowed, as the numeric and decimal
|
|
45
|
+
* keypads on iOS have no minus key, otherwise `decimal` or `numeric` depending on `fractional`.
|
|
35
46
|
* @property {Snippet} [increaseIcon] Increase icon slot content.
|
|
36
47
|
* @property {Snippet} [decreaseIcon] Decrease icon slot content.
|
|
37
48
|
*/
|
|
@@ -47,6 +58,8 @@
|
|
|
47
58
|
min = undefined,
|
|
48
59
|
max = undefined,
|
|
49
60
|
step = 1,
|
|
61
|
+
fractional = undefined,
|
|
62
|
+
inputmode = undefined,
|
|
50
63
|
class: className,
|
|
51
64
|
hidden = false,
|
|
52
65
|
disabled = false,
|
|
@@ -67,7 +80,36 @@
|
|
|
67
80
|
let edited = $state(false);
|
|
68
81
|
let inputValue = $state('');
|
|
69
82
|
|
|
70
|
-
|
|
83
|
+
// `-1` turns stepping off altogether, leaving a plain text box: a spin button promises the arrow
|
|
84
|
+
// keys step the value
|
|
85
|
+
const stepEnabled = $derived(step !== STEP_DISABLED);
|
|
86
|
+
const stepSize = $derived(normalizeStep(step));
|
|
87
|
+
const isFractional = $derived(
|
|
88
|
+
fractional ?? (!stepEnabled || getMaximumFractionDigits(stepSize) > 0),
|
|
89
|
+
);
|
|
90
|
+
// A plain text box can’t expose the range with `aria-valuemin` and `aria-valuemax`, so it’s
|
|
91
|
+
// described instead, by a hidden element: `aria-description` isn’t supported everywhere
|
|
92
|
+
const rangeDescription = $derived.by(() => {
|
|
93
|
+
const hasMin = typeof min === 'number';
|
|
94
|
+
const hasMax = typeof max === 'number';
|
|
95
|
+
|
|
96
|
+
if (stepEnabled || (!hasMin && !hasMax)) {
|
|
97
|
+
return undefined;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
if (hasMin && hasMax) {
|
|
101
|
+
return _('_sui.number_input.range', { values: { min, max } });
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
return hasMin
|
|
105
|
+
? _('_sui.number_input.min', { values: { min } })
|
|
106
|
+
: _('_sui.number_input.max', { values: { max } });
|
|
107
|
+
});
|
|
108
|
+
const describedBy = $derived(
|
|
109
|
+
[restProps['aria-describedby'], rangeDescription ? `${id}-range` : undefined]
|
|
110
|
+
.filter(Boolean)
|
|
111
|
+
.join(' ') || undefined,
|
|
112
|
+
);
|
|
71
113
|
// Accept the decimal separator of the field’s language, or that of the UI, like `,` in German
|
|
72
114
|
const numberValue = $derived(normalizeNumber(inputValue, restProps.lang ?? locale.current));
|
|
73
115
|
const isMin = $derived(isAtMin(numberValue, min));
|
|
@@ -100,7 +142,7 @@
|
|
|
100
142
|
* @param {1 | -1} direction `1` to increase, `-1` to decrease.
|
|
101
143
|
*/
|
|
102
144
|
const stepValue = (direction) => {
|
|
103
|
-
const newInputValue = stepNumber(numberValue, { step, direction, min, max });
|
|
145
|
+
const newInputValue = stepNumber(numberValue, { step: stepSize, direction, min, max });
|
|
104
146
|
|
|
105
147
|
if (newInputValue !== undefined) {
|
|
106
148
|
inputValue = newInputValue;
|
|
@@ -130,46 +172,50 @@
|
|
|
130
172
|
class:readonly
|
|
131
173
|
{hidden}
|
|
132
174
|
>
|
|
133
|
-
|
|
134
|
-
<
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
{#
|
|
145
|
-
{
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
{#
|
|
162
|
-
{
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
175
|
+
{#if stepEnabled}
|
|
176
|
+
<div role="none" class="buttons">
|
|
177
|
+
<Button
|
|
178
|
+
iconic
|
|
179
|
+
disabled={disabled || readonly || Number.isNaN(Number(numberValue)) || isMax}
|
|
180
|
+
aria-label={_('_sui.number_input.increase')}
|
|
181
|
+
aria-controls={id}
|
|
182
|
+
onclick={() => {
|
|
183
|
+
increase();
|
|
184
|
+
}}
|
|
185
|
+
>
|
|
186
|
+
{#snippet startIcon()}
|
|
187
|
+
{#if increaseIcon}
|
|
188
|
+
{@render increaseIcon()}
|
|
189
|
+
{:else}
|
|
190
|
+
<Icon name="expand_less" />
|
|
191
|
+
{/if}
|
|
192
|
+
{/snippet}
|
|
193
|
+
</Button>
|
|
194
|
+
<Button
|
|
195
|
+
iconic
|
|
196
|
+
disabled={disabled || readonly || Number.isNaN(Number(numberValue)) || isMin}
|
|
197
|
+
aria-label={_('_sui.number_input.decrease')}
|
|
198
|
+
aria-controls={id}
|
|
199
|
+
onclick={() => {
|
|
200
|
+
decrease();
|
|
201
|
+
}}
|
|
202
|
+
>
|
|
203
|
+
{#snippet startIcon()}
|
|
204
|
+
{#if decreaseIcon}
|
|
205
|
+
{@render decreaseIcon()}
|
|
206
|
+
{:else}
|
|
207
|
+
<Icon name="expand_more" />
|
|
208
|
+
{/if}
|
|
209
|
+
{/snippet}
|
|
210
|
+
</Button>
|
|
211
|
+
</div>
|
|
212
|
+
{:else if rangeDescription}
|
|
213
|
+
<span id="{id}-range" hidden>{rangeDescription}</span>
|
|
214
|
+
{/if}
|
|
169
215
|
<TextInput
|
|
170
216
|
dir="ltr"
|
|
171
217
|
{...restProps}
|
|
172
|
-
role=
|
|
218
|
+
role={stepEnabled ? 'spinbutton' : 'textbox'}
|
|
173
219
|
{id}
|
|
174
220
|
bind:value={inputValue}
|
|
175
221
|
spellcheck="false"
|
|
@@ -179,15 +225,16 @@
|
|
|
179
225
|
{readonly}
|
|
180
226
|
{required}
|
|
181
227
|
{invalid}
|
|
182
|
-
aria-valuenow={Number.isFinite(value) ? value : undefined}
|
|
183
|
-
aria-valuemin={min}
|
|
184
|
-
aria-valuemax={max}
|
|
185
|
-
inputmode={
|
|
228
|
+
aria-valuenow={stepEnabled && Number.isFinite(value) ? value : undefined}
|
|
229
|
+
aria-valuemin={stepEnabled ? min : undefined}
|
|
230
|
+
aria-valuemax={stepEnabled ? max : undefined}
|
|
231
|
+
inputmode={inputmode ?? getInputMode({ fractional: isFractional, min })}
|
|
232
|
+
aria-describedby={describedBy}
|
|
186
233
|
onkeydown={(event) => {
|
|
187
234
|
const { key, ctrlKey, metaKey, altKey, shiftKey } = event;
|
|
188
235
|
const hasModifier = shiftKey || altKey || ctrlKey || metaKey;
|
|
189
236
|
// A read-only field can’t be stepped, just like the spin buttons
|
|
190
|
-
const canStep = !disabled && !readonly && !hasModifier;
|
|
237
|
+
const canStep = stepEnabled && !disabled && !readonly && !hasModifier;
|
|
191
238
|
|
|
192
239
|
if (key === 'ArrowDown' && canStep) {
|
|
193
240
|
event.preventDefault();
|
|
@@ -235,7 +282,7 @@
|
|
|
235
282
|
.number-input:not(.disabled) :global(button[aria-disabled='true']) :global(*) {
|
|
236
283
|
filter: grayscale(1) opacity(var(--sui-disabled-opacity, 0.35));
|
|
237
284
|
}
|
|
238
|
-
.number-input :global(:
|
|
285
|
+
.number-input :global(.buttons) + :global(*) :global(input) {
|
|
239
286
|
border-start-start-radius: 0;
|
|
240
287
|
border-end-start-radius: 0;
|
|
241
288
|
}
|
|
@@ -23,9 +23,23 @@ declare const NumberInput: import("svelte").Component<TextInputProps & import(".
|
|
|
23
23
|
max?: number | undefined;
|
|
24
24
|
/**
|
|
25
25
|
* Value to be added or removed when using the up/down arrow key or
|
|
26
|
-
* button.
|
|
26
|
+
* button. Set to `-1` to hide the buttons and disable stepping with the arrow keys, for a number
|
|
27
|
+
* that isn’t meant to be stepped, like an ID. Any other value that isn’t a positive number falls
|
|
28
|
+
* back to `1`.
|
|
27
29
|
*/
|
|
28
30
|
step?: number | undefined;
|
|
31
|
+
/**
|
|
32
|
+
* Whether the number can have a fraction, which brings up the
|
|
33
|
+
* decimal keypad rather than the numeric one on mobile. If omitted, it’s inferred from `step`:
|
|
34
|
+
* `true` for a fractional step or with stepping turned off, `false` for an integer step.
|
|
35
|
+
*/
|
|
36
|
+
fractional?: boolean | undefined;
|
|
37
|
+
/**
|
|
38
|
+
* The `inputmode` attribute on the
|
|
39
|
+
* `<input>`. If omitted, it’s `text` if a negative number is allowed, as the numeric and decimal
|
|
40
|
+
* keypads on iOS have no minus key, otherwise `decimal` or `numeric` depending on `fractional`.
|
|
41
|
+
*/
|
|
42
|
+
inputmode?: "text" | "decimal" | "numeric" | undefined;
|
|
29
43
|
/**
|
|
30
44
|
* Increase icon slot content.
|
|
31
45
|
*/
|
|
@@ -50,9 +64,23 @@ type Props = {
|
|
|
50
64
|
max?: number | undefined;
|
|
51
65
|
/**
|
|
52
66
|
* Value to be added or removed when using the up/down arrow key or
|
|
53
|
-
* button.
|
|
67
|
+
* button. Set to `-1` to hide the buttons and disable stepping with the arrow keys, for a number
|
|
68
|
+
* that isn’t meant to be stepped, like an ID. Any other value that isn’t a positive number falls
|
|
69
|
+
* back to `1`.
|
|
54
70
|
*/
|
|
55
71
|
step?: number | undefined;
|
|
72
|
+
/**
|
|
73
|
+
* Whether the number can have a fraction, which brings up the
|
|
74
|
+
* decimal keypad rather than the numeric one on mobile. If omitted, it’s inferred from `step`:
|
|
75
|
+
* `true` for a fractional step or with stepping turned off, `false` for an integer step.
|
|
76
|
+
*/
|
|
77
|
+
fractional?: boolean | undefined;
|
|
78
|
+
/**
|
|
79
|
+
* The `inputmode` attribute on the
|
|
80
|
+
* `<input>`. If omitted, it’s `text` if a negative number is allowed, as the numeric and decimal
|
|
81
|
+
* keypads on iOS have no minus key, otherwise `decimal` or `numeric` depending on `fractional`.
|
|
82
|
+
*/
|
|
83
|
+
inputmode?: "text" | "decimal" | "numeric" | undefined;
|
|
56
84
|
/**
|
|
57
85
|
* Increase icon slot content.
|
|
58
86
|
*/
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
font-style: normal;
|
|
14
14
|
font-display: swap;
|
|
15
15
|
font-weight: 200 900;
|
|
16
|
-
src: url(https://cdn.jsdelivr.net/fontsource/fonts/source-sans-3:vf@5.3.
|
|
16
|
+
src: url(https://cdn.jsdelivr.net/fontsource/fonts/source-sans-3:vf@5.3.1/latin-wght-normal.woff2)
|
|
17
17
|
format('woff2-variations');
|
|
18
18
|
unicode-range:
|
|
19
19
|
U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
font-style: normal;
|
|
38
38
|
font-display: block;
|
|
39
39
|
font-weight: 400;
|
|
40
|
-
src: url(https://cdn.jsdelivr.net/fontsource/fonts/material-symbols-outlined:vf@5.3.
|
|
40
|
+
src: url(https://cdn.jsdelivr.net/fontsource/fonts/material-symbols-outlined:vf@5.3.9/latin-wght-normal.woff2)
|
|
41
41
|
format('woff2-variations');
|
|
42
42
|
unicode-range:
|
|
43
43
|
U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
|
|
@@ -47,7 +47,7 @@ export const FONTS = [
|
|
|
47
47
|
{
|
|
48
48
|
family: 'Source Sans 3',
|
|
49
49
|
packageName: '@fontsource-variable/source-sans-3',
|
|
50
|
-
version: '5.3.
|
|
50
|
+
version: '5.3.1',
|
|
51
51
|
cdnId: 'source-sans-3:vf',
|
|
52
52
|
subset: 'latin-wght-normal',
|
|
53
53
|
format: 'woff2-variations',
|
|
@@ -69,7 +69,7 @@ export const FONTS = [
|
|
|
69
69
|
{
|
|
70
70
|
family: 'Material Symbols Outlined',
|
|
71
71
|
packageName: '@fontsource-variable/material-symbols-outlined',
|
|
72
|
-
version: '5.3.
|
|
72
|
+
version: '5.3.9',
|
|
73
73
|
cdnId: 'material-symbols-outlined:vf',
|
|
74
74
|
subset: 'latin-wght-normal',
|
|
75
75
|
format: 'woff2-variations',
|
package/dist/index.d.ts
CHANGED
|
@@ -82,6 +82,7 @@ export { default as Modal } from "./components/util/modal.svelte";
|
|
|
82
82
|
export { default as Placeholder } from "./components/util/placeholder.svelte";
|
|
83
83
|
export { default as Popup } from "./components/util/popup.svelte";
|
|
84
84
|
export { default as VisibilityObserver } from "./components/util/visibility-observer.svelte";
|
|
85
|
+
export { IMPORT_UPDATE_TAG } from "./components/text-editor/constants.js";
|
|
85
86
|
export { loadCodeHighlighter } from "./components/text-editor/core.js";
|
|
86
87
|
export { setCodeHighlighterCacheEnabled } from "./components/text-editor/shiki/cache.js";
|
|
87
88
|
export { highlightCodeToHTML } from "./components/text-editor/shiki/facade.js";
|
package/dist/index.js
CHANGED
|
@@ -82,6 +82,7 @@ export { default as Modal } from './components/util/modal.svelte';
|
|
|
82
82
|
export { default as Placeholder } from './components/util/placeholder.svelte';
|
|
83
83
|
export { default as Popup } from './components/util/popup.svelte';
|
|
84
84
|
export { default as VisibilityObserver } from './components/util/visibility-observer.svelte';
|
|
85
|
+
export { IMPORT_UPDATE_TAG } from './components/text-editor/constants.js';
|
|
85
86
|
export { loadCodeHighlighter } from './components/text-editor/core.js';
|
|
86
87
|
export { setCodeHighlighterCacheEnabled } from './components/text-editor/shiki/cache.js';
|
|
87
88
|
export { highlightCodeToHTML } from './components/text-editor/shiki/facade.js';
|
package/dist/locales/ar.yaml
CHANGED
|
@@ -74,6 +74,12 @@ number_input:
|
|
|
74
74
|
# Spin button aria-labels for incrementing/decrementing the number value
|
|
75
75
|
increase: زيادة
|
|
76
76
|
decrease: نقصان
|
|
77
|
+
# Description of the allowed range when the number can’t be stepped, e.g. “From 1 to 10”
|
|
78
|
+
range: من {$min} إلى {$max}
|
|
79
|
+
# Description of the minimum value when the number can’t be stepped
|
|
80
|
+
min: الحد الأدنى {$min}
|
|
81
|
+
# Description of the maximum value when the number can’t be stepped
|
|
82
|
+
max: الحد الأقصى {$max}
|
|
77
83
|
|
|
78
84
|
# Password input component
|
|
79
85
|
password_input:
|
package/dist/locales/bg.yaml
CHANGED
|
@@ -74,6 +74,12 @@ number_input:
|
|
|
74
74
|
# Spin button aria-labels for incrementing/decrementing the number value
|
|
75
75
|
increase: Увеличаване
|
|
76
76
|
decrease: Намаляване
|
|
77
|
+
# Description of the allowed range when the number can’t be stepped, e.g. “From 1 to 10”
|
|
78
|
+
range: От {$min} до {$max}
|
|
79
|
+
# Description of the minimum value when the number can’t be stepped
|
|
80
|
+
min: Минимум {$min}
|
|
81
|
+
# Description of the maximum value when the number can’t be stepped
|
|
82
|
+
max: Максимум {$max}
|
|
77
83
|
|
|
78
84
|
# Password input component
|
|
79
85
|
password_input:
|
package/dist/locales/ca.yaml
CHANGED
|
@@ -74,6 +74,12 @@ number_input:
|
|
|
74
74
|
# Spin button aria-labels for incrementing/decrementing the number value
|
|
75
75
|
increase: Augmenta
|
|
76
76
|
decrease: Redueix
|
|
77
|
+
# Description of the allowed range when the number can’t be stepped, e.g. “From 1 to 10”
|
|
78
|
+
range: De {$min} a {$max}
|
|
79
|
+
# Description of the minimum value when the number can’t be stepped
|
|
80
|
+
min: Mínim {$min}
|
|
81
|
+
# Description of the maximum value when the number can’t be stepped
|
|
82
|
+
max: Màxim {$max}
|
|
77
83
|
|
|
78
84
|
# Password input component
|
|
79
85
|
password_input:
|
package/dist/locales/cs.yaml
CHANGED
|
@@ -74,6 +74,12 @@ number_input:
|
|
|
74
74
|
# Spin button aria-labels for incrementing/decrementing the number value
|
|
75
75
|
increase: Zvýšit
|
|
76
76
|
decrease: Snížit
|
|
77
|
+
# Description of the allowed range when the number can’t be stepped, e.g. “From 1 to 10”
|
|
78
|
+
range: Od {$min} do {$max}
|
|
79
|
+
# Description of the minimum value when the number can’t be stepped
|
|
80
|
+
min: Minimum {$min}
|
|
81
|
+
# Description of the maximum value when the number can’t be stepped
|
|
82
|
+
max: Maximum {$max}
|
|
77
83
|
|
|
78
84
|
# Password input component
|
|
79
85
|
password_input:
|
package/dist/locales/da.yaml
CHANGED
|
@@ -74,6 +74,12 @@ number_input:
|
|
|
74
74
|
# Spin button aria-labels for incrementing/decrementing the number value
|
|
75
75
|
increase: Forøg
|
|
76
76
|
decrease: Formindsk
|
|
77
|
+
# Description of the allowed range when the number can’t be stepped, e.g. “From 1 to 10”
|
|
78
|
+
range: Fra {$min} til {$max}
|
|
79
|
+
# Description of the minimum value when the number can’t be stepped
|
|
80
|
+
min: Minimum {$min}
|
|
81
|
+
# Description of the maximum value when the number can’t be stepped
|
|
82
|
+
max: Maksimum {$max}
|
|
77
83
|
|
|
78
84
|
# Password input component
|
|
79
85
|
password_input:
|
package/dist/locales/de.yaml
CHANGED
|
@@ -74,6 +74,12 @@ number_input:
|
|
|
74
74
|
# Spin button aria-labels for incrementing/decrementing the number value
|
|
75
75
|
increase: Erhöhen
|
|
76
76
|
decrease: Verringern
|
|
77
|
+
# Description of the allowed range when the number can’t be stepped, e.g. “From 1 to 10”
|
|
78
|
+
range: Von {$min} bis {$max}
|
|
79
|
+
# Description of the minimum value when the number can’t be stepped
|
|
80
|
+
min: Minimum {$min}
|
|
81
|
+
# Description of the maximum value when the number can’t be stepped
|
|
82
|
+
max: Maximum {$max}
|
|
77
83
|
|
|
78
84
|
# Password input component
|
|
79
85
|
password_input:
|
package/dist/locales/el.yaml
CHANGED
|
@@ -74,6 +74,12 @@ number_input:
|
|
|
74
74
|
# Spin button aria-labels for incrementing/decrementing the number value
|
|
75
75
|
increase: Αύξηση
|
|
76
76
|
decrease: Μείωση
|
|
77
|
+
# Description of the allowed range when the number can’t be stepped, e.g. “From 1 to 10”
|
|
78
|
+
range: Από {$min} έως {$max}
|
|
79
|
+
# Description of the minimum value when the number can’t be stepped
|
|
80
|
+
min: Ελάχιστο {$min}
|
|
81
|
+
# Description of the maximum value when the number can’t be stepped
|
|
82
|
+
max: Μέγιστο {$max}
|
|
77
83
|
|
|
78
84
|
# Password input component
|
|
79
85
|
password_input:
|
package/dist/locales/en-CA.yaml
CHANGED
|
@@ -74,6 +74,12 @@ number_input:
|
|
|
74
74
|
# Spin button aria-labels for incrementing/decrementing the number value
|
|
75
75
|
increase: Increase
|
|
76
76
|
decrease: Decrease
|
|
77
|
+
# Description of the allowed range when the number can’t be stepped, e.g. “From 1 to 10”
|
|
78
|
+
range: From {$min} to {$max}
|
|
79
|
+
# Description of the minimum value when the number can’t be stepped
|
|
80
|
+
min: Minimum {$min}
|
|
81
|
+
# Description of the maximum value when the number can’t be stepped
|
|
82
|
+
max: Maximum {$max}
|
|
77
83
|
|
|
78
84
|
# Password input component
|
|
79
85
|
password_input:
|
package/dist/locales/en-GB.yaml
CHANGED
|
@@ -74,6 +74,12 @@ number_input:
|
|
|
74
74
|
# Spin button aria-labels for incrementing/decrementing the number value
|
|
75
75
|
increase: Increase
|
|
76
76
|
decrease: Decrease
|
|
77
|
+
# Description of the allowed range when the number can’t be stepped, e.g. “From 1 to 10”
|
|
78
|
+
range: From {$min} to {$max}
|
|
79
|
+
# Description of the minimum value when the number can’t be stepped
|
|
80
|
+
min: Minimum {$min}
|
|
81
|
+
# Description of the maximum value when the number can’t be stepped
|
|
82
|
+
max: Maximum {$max}
|
|
77
83
|
|
|
78
84
|
# Password input component
|
|
79
85
|
password_input:
|
package/dist/locales/en-US.yaml
CHANGED
|
@@ -74,6 +74,12 @@ number_input:
|
|
|
74
74
|
# Spin button aria-labels for incrementing/decrementing the number value
|
|
75
75
|
increase: Increase
|
|
76
76
|
decrease: Decrease
|
|
77
|
+
# Description of the allowed range when the number can’t be stepped, e.g. “From 1 to 10”
|
|
78
|
+
range: From {$min} to {$max}
|
|
79
|
+
# Description of the minimum value when the number can’t be stepped
|
|
80
|
+
min: Minimum {$min}
|
|
81
|
+
# Description of the maximum value when the number can’t be stepped
|
|
82
|
+
max: Maximum {$max}
|
|
77
83
|
|
|
78
84
|
# Password input component
|
|
79
85
|
password_input:
|
package/dist/locales/es-CO.yaml
CHANGED
|
@@ -74,6 +74,12 @@ number_input:
|
|
|
74
74
|
# Spin button aria-labels for incrementing/decrementing the number value
|
|
75
75
|
increase: Aumentar
|
|
76
76
|
decrease: Disminuir
|
|
77
|
+
# Description of the allowed range when the number can’t be stepped, e.g. “From 1 to 10”
|
|
78
|
+
range: De {$min} a {$max}
|
|
79
|
+
# Description of the minimum value when the number can’t be stepped
|
|
80
|
+
min: Mínimo {$min}
|
|
81
|
+
# Description of the maximum value when the number can’t be stepped
|
|
82
|
+
max: Máximo {$max}
|
|
77
83
|
|
|
78
84
|
# Password input component
|
|
79
85
|
password_input:
|
package/dist/locales/fa.yaml
CHANGED
|
@@ -74,6 +74,12 @@ number_input:
|
|
|
74
74
|
# Spin button aria-labels for incrementing/decrementing the number value
|
|
75
75
|
increase: افزایش
|
|
76
76
|
decrease: کاهش
|
|
77
|
+
# Description of the allowed range when the number can’t be stepped, e.g. “From 1 to 10”
|
|
78
|
+
range: از {$min} تا {$max}
|
|
79
|
+
# Description of the minimum value when the number can’t be stepped
|
|
80
|
+
min: حداقل {$min}
|
|
81
|
+
# Description of the maximum value when the number can’t be stepped
|
|
82
|
+
max: حداکثر {$max}
|
|
77
83
|
|
|
78
84
|
# Password input component
|
|
79
85
|
password_input:
|
package/dist/locales/fi.yaml
CHANGED
|
@@ -74,6 +74,12 @@ number_input:
|
|
|
74
74
|
# Spin button aria-labels for incrementing/decrementing the number value
|
|
75
75
|
increase: Lisää
|
|
76
76
|
decrease: Vähennä
|
|
77
|
+
# Description of the allowed range when the number can’t be stepped, e.g. “From 1 to 10”
|
|
78
|
+
range: Välillä {$min}–{$max}
|
|
79
|
+
# Description of the minimum value when the number can’t be stepped
|
|
80
|
+
min: Vähintään {$min}
|
|
81
|
+
# Description of the maximum value when the number can’t be stepped
|
|
82
|
+
max: Enintään {$max}
|
|
77
83
|
|
|
78
84
|
# Password input component
|
|
79
85
|
password_input:
|
package/dist/locales/fr.yaml
CHANGED
|
@@ -74,6 +74,12 @@ number_input:
|
|
|
74
74
|
# Spin button aria-labels for incrementing/decrementing the number value
|
|
75
75
|
increase: Augmenter
|
|
76
76
|
decrease: Diminuer
|
|
77
|
+
# Description of the allowed range when the number can’t be stepped, e.g. “From 1 to 10”
|
|
78
|
+
range: De {$min} à {$max}
|
|
79
|
+
# Description of the minimum value when the number can’t be stepped
|
|
80
|
+
min: Minimum {$min}
|
|
81
|
+
# Description of the maximum value when the number can’t be stepped
|
|
82
|
+
max: Maximum {$max}
|
|
77
83
|
|
|
78
84
|
# Password input component
|
|
79
85
|
password_input:
|
package/dist/locales/he.yaml
CHANGED
|
@@ -79,6 +79,12 @@ number_input:
|
|
|
79
79
|
# Spin button aria-labels for incrementing/decrementing the number value
|
|
80
80
|
increase: הגדלה
|
|
81
81
|
decrease: הקטנה
|
|
82
|
+
# Description of the allowed range when the number can’t be stepped, e.g. “From 1 to 10”
|
|
83
|
+
range: מ־{$min} עד {$max}
|
|
84
|
+
# Description of the minimum value when the number can’t be stepped
|
|
85
|
+
min: מינימום {$min}
|
|
86
|
+
# Description of the maximum value when the number can’t be stepped
|
|
87
|
+
max: מקסימום {$max}
|
|
82
88
|
|
|
83
89
|
# Password input component
|
|
84
90
|
password_input:
|
package/dist/locales/hr.yaml
CHANGED
|
@@ -74,6 +74,12 @@ number_input:
|
|
|
74
74
|
# Spin button aria-labels for incrementing/decrementing the number value
|
|
75
75
|
increase: Povećaj
|
|
76
76
|
decrease: Smanji
|
|
77
|
+
# Description of the allowed range when the number can’t be stepped, e.g. “From 1 to 10”
|
|
78
|
+
range: Od {$min} do {$max}
|
|
79
|
+
# Description of the minimum value when the number can’t be stepped
|
|
80
|
+
min: Najmanje {$min}
|
|
81
|
+
# Description of the maximum value when the number can’t be stepped
|
|
82
|
+
max: Najviše {$max}
|
|
77
83
|
|
|
78
84
|
# Password input component
|
|
79
85
|
password_input:
|
package/dist/locales/it.yaml
CHANGED
|
@@ -74,6 +74,12 @@ number_input:
|
|
|
74
74
|
# Spin button aria-labels for incrementing/decrementing the number value
|
|
75
75
|
increase: Aumenta
|
|
76
76
|
decrease: Diminuisci
|
|
77
|
+
# Description of the allowed range when the number can’t be stepped, e.g. “From 1 to 10”
|
|
78
|
+
range: Da {$min} a {$max}
|
|
79
|
+
# Description of the minimum value when the number can’t be stepped
|
|
80
|
+
min: Minimo {$min}
|
|
81
|
+
# Description of the maximum value when the number can’t be stepped
|
|
82
|
+
max: Massimo {$max}
|
|
77
83
|
|
|
78
84
|
# Password input component
|
|
79
85
|
password_input:
|
package/dist/locales/ja.yaml
CHANGED
|
@@ -74,6 +74,12 @@ number_input:
|
|
|
74
74
|
# Spin button aria-labels for incrementing/decrementing the number value
|
|
75
75
|
increase: 増やす
|
|
76
76
|
decrease: 減らす
|
|
77
|
+
# Description of the allowed range when the number can't be stepped, e.g. "From 1 to 10"
|
|
78
|
+
range: '{$min} から {$max} まで'
|
|
79
|
+
# Description of the minimum value when the number can't be stepped
|
|
80
|
+
min: 最小値 {$min}
|
|
81
|
+
# Description of the maximum value when the number can't be stepped
|
|
82
|
+
max: 最大値 {$max}
|
|
77
83
|
|
|
78
84
|
# Password input component
|
|
79
85
|
password_input:
|
package/dist/locales/ko.yaml
CHANGED
|
@@ -74,6 +74,12 @@ number_input:
|
|
|
74
74
|
# Spin button aria-labels for incrementing/decrementing the number value
|
|
75
75
|
increase: 증가
|
|
76
76
|
decrease: 감소
|
|
77
|
+
# Description of the allowed range when the number can’t be stepped, e.g. “From 1 to 10”
|
|
78
|
+
range: '{$min}부터 {$max}까지'
|
|
79
|
+
# Description of the minimum value when the number can’t be stepped
|
|
80
|
+
min: 최솟값 {$min}
|
|
81
|
+
# Description of the maximum value when the number can’t be stepped
|
|
82
|
+
max: 최댓값 {$max}
|
|
77
83
|
|
|
78
84
|
# Password input component
|
|
79
85
|
password_input:
|
package/dist/locales/nl.yaml
CHANGED
|
@@ -74,6 +74,12 @@ number_input:
|
|
|
74
74
|
# Spin button aria-labels for incrementing/decrementing the number value
|
|
75
75
|
increase: Verhogen
|
|
76
76
|
decrease: Verlagen
|
|
77
|
+
# Description of the allowed range when the number can’t be stepped, e.g. “From 1 to 10”
|
|
78
|
+
range: Van {$min} tot {$max}
|
|
79
|
+
# Description of the minimum value when the number can’t be stepped
|
|
80
|
+
min: Minimaal {$min}
|
|
81
|
+
# Description of the maximum value when the number can’t be stepped
|
|
82
|
+
max: Maximaal {$max}
|
|
77
83
|
|
|
78
84
|
# Password input component
|
|
79
85
|
password_input:
|
package/dist/locales/pl.yaml
CHANGED
|
@@ -74,6 +74,12 @@ number_input:
|
|
|
74
74
|
# Spin button aria-labels for incrementing/decrementing the number value
|
|
75
75
|
increase: Zwiększ
|
|
76
76
|
decrease: Zmniejsz
|
|
77
|
+
# Description of the allowed range when the number can’t be stepped, e.g. “From 1 to 10”
|
|
78
|
+
range: Od {$min} do {$max}
|
|
79
|
+
# Description of the minimum value when the number can’t be stepped
|
|
80
|
+
min: Minimum {$min}
|
|
81
|
+
# Description of the maximum value when the number can’t be stepped
|
|
82
|
+
max: Maksimum {$max}
|
|
77
83
|
|
|
78
84
|
# Password input component
|
|
79
85
|
password_input:
|
package/dist/locales/pt-BR.yaml
CHANGED
|
@@ -74,6 +74,12 @@ number_input:
|
|
|
74
74
|
# Spin button aria-labels for incrementing/decrementing the number value
|
|
75
75
|
increase: Aumentar
|
|
76
76
|
decrease: Diminuir
|
|
77
|
+
# Description of the allowed range when the number can’t be stepped, e.g. “From 1 to 10”
|
|
78
|
+
range: De {$min} a {$max}
|
|
79
|
+
# Description of the minimum value when the number can’t be stepped
|
|
80
|
+
min: Mínimo {$min}
|
|
81
|
+
# Description of the maximum value when the number can’t be stepped
|
|
82
|
+
max: Máximo {$max}
|
|
77
83
|
|
|
78
84
|
# Password input component
|
|
79
85
|
password_input:
|
package/dist/locales/pt-PT.yaml
CHANGED
|
@@ -74,6 +74,12 @@ number_input:
|
|
|
74
74
|
# Spin button aria-labels for incrementing/decrementing the number value
|
|
75
75
|
increase: Aumentar
|
|
76
76
|
decrease: Diminuir
|
|
77
|
+
# Description of the allowed range when the number can’t be stepped, e.g. “From 1 to 10”
|
|
78
|
+
range: De {$min} a {$max}
|
|
79
|
+
# Description of the minimum value when the number can’t be stepped
|
|
80
|
+
min: Mínimo {$min}
|
|
81
|
+
# Description of the maximum value when the number can’t be stepped
|
|
82
|
+
max: Máximo {$max}
|
|
77
83
|
|
|
78
84
|
# Password input component
|
|
79
85
|
password_input:
|
package/dist/locales/ru.yaml
CHANGED
|
@@ -74,6 +74,12 @@ number_input:
|
|
|
74
74
|
# Spin button aria-labels for incrementing/decrementing the number value
|
|
75
75
|
increase: Увеличить
|
|
76
76
|
decrease: Уменьшить
|
|
77
|
+
# Description of the allowed range when the number can’t be stepped, e.g. “From 1 to 10”
|
|
78
|
+
range: От {$min} до {$max}
|
|
79
|
+
# Description of the minimum value when the number can’t be stepped
|
|
80
|
+
min: Минимум {$min}
|
|
81
|
+
# Description of the maximum value when the number can’t be stepped
|
|
82
|
+
max: Максимум {$max}
|
|
77
83
|
|
|
78
84
|
# Password input component
|
|
79
85
|
password_input:
|
package/dist/locales/sk.yaml
CHANGED
|
@@ -74,6 +74,12 @@ number_input:
|
|
|
74
74
|
# Spin button aria-labels for incrementing/decrementing the number value
|
|
75
75
|
increase: Zvýšiť
|
|
76
76
|
decrease: Znížiť
|
|
77
|
+
# Description of the allowed range when the number can’t be stepped, e.g. “From 1 to 10”
|
|
78
|
+
range: Od {$min} do {$max}
|
|
79
|
+
# Description of the minimum value when the number can’t be stepped
|
|
80
|
+
min: Minimum {$min}
|
|
81
|
+
# Description of the maximum value when the number can’t be stepped
|
|
82
|
+
max: Maximum {$max}
|
|
77
83
|
|
|
78
84
|
# Password input component
|
|
79
85
|
password_input:
|
package/dist/locales/sv.yaml
CHANGED
|
@@ -74,6 +74,12 @@ number_input:
|
|
|
74
74
|
# Spin button aria-labels for incrementing/decrementing the number value
|
|
75
75
|
increase: Öka
|
|
76
76
|
decrease: Minska
|
|
77
|
+
# Description of the allowed range when the number can’t be stepped, e.g. “From 1 to 10”
|
|
78
|
+
range: Från {$min} till {$max}
|
|
79
|
+
# Description of the minimum value when the number can’t be stepped
|
|
80
|
+
min: Minst {$min}
|
|
81
|
+
# Description of the maximum value when the number can’t be stepped
|
|
82
|
+
max: Högst {$max}
|
|
77
83
|
|
|
78
84
|
# Password input component
|
|
79
85
|
password_input:
|
package/dist/locales/tr.yaml
CHANGED
|
@@ -74,6 +74,12 @@ number_input:
|
|
|
74
74
|
# Spin button aria-labels for incrementing/decrementing the number value
|
|
75
75
|
increase: Artır
|
|
76
76
|
decrease: Azalt
|
|
77
|
+
# Description of the allowed range when the number can’t be stepped, e.g. “From 1 to 10”
|
|
78
|
+
range: '{$min} ile {$max} arası'
|
|
79
|
+
# Description of the minimum value when the number can’t be stepped
|
|
80
|
+
min: En az {$min}
|
|
81
|
+
# Description of the maximum value when the number can’t be stepped
|
|
82
|
+
max: En fazla {$max}
|
|
77
83
|
|
|
78
84
|
# Password input component
|
|
79
85
|
password_input:
|
package/dist/locales/uk.yaml
CHANGED
|
@@ -74,6 +74,12 @@ number_input:
|
|
|
74
74
|
# Spin button aria-labels for incrementing/decrementing the number value
|
|
75
75
|
increase: Збільшити
|
|
76
76
|
decrease: Зменшити
|
|
77
|
+
# Description of the allowed range when the number can’t be stepped, e.g. “From 1 to 10”
|
|
78
|
+
range: Від {$min} до {$max}
|
|
79
|
+
# Description of the minimum value when the number can’t be stepped
|
|
80
|
+
min: Мінімум {$min}
|
|
81
|
+
# Description of the maximum value when the number can’t be stepped
|
|
82
|
+
max: Максимум {$max}
|
|
77
83
|
|
|
78
84
|
# Password input component
|
|
79
85
|
password_input:
|
package/dist/locales/vi.yaml
CHANGED
|
@@ -74,6 +74,12 @@ number_input:
|
|
|
74
74
|
# Spin button aria-labels for incrementing/decrementing the number value
|
|
75
75
|
increase: Tăng
|
|
76
76
|
decrease: Giảm
|
|
77
|
+
# Description of the allowed range when the number can’t be stepped, e.g. “From 1 to 10”
|
|
78
|
+
range: Từ {$min} đến {$max}
|
|
79
|
+
# Description of the minimum value when the number can’t be stepped
|
|
80
|
+
min: Tối thiểu {$min}
|
|
81
|
+
# Description of the maximum value when the number can’t be stepped
|
|
82
|
+
max: Tối đa {$max}
|
|
77
83
|
|
|
78
84
|
# Password input component
|
|
79
85
|
password_input:
|
package/dist/locales/zh-CN.yaml
CHANGED
|
@@ -74,6 +74,12 @@ number_input:
|
|
|
74
74
|
# Spin button aria-labels for incrementing/decrementing the number value
|
|
75
75
|
increase: 增加
|
|
76
76
|
decrease: 减少
|
|
77
|
+
# Description of the allowed range when the number can’t be stepped, e.g. “From 1 to 10”
|
|
78
|
+
range: '{$min} 至 {$max}'
|
|
79
|
+
# Description of the minimum value when the number can’t be stepped
|
|
80
|
+
min: 最小值 {$min}
|
|
81
|
+
# Description of the maximum value when the number can’t be stepped
|
|
82
|
+
max: 最大值 {$max}
|
|
77
83
|
|
|
78
84
|
# Password input component
|
|
79
85
|
password_input:
|
package/dist/locales/zh-TW.yaml
CHANGED
|
@@ -74,6 +74,12 @@ number_input:
|
|
|
74
74
|
# Spin button aria-labels for incrementing/decrementing the number value
|
|
75
75
|
increase: 增加
|
|
76
76
|
decrease: 減少
|
|
77
|
+
# Description of the allowed range when the number can’t be stepped, e.g. “From 1 to 10”
|
|
78
|
+
range: '{$min} 至 {$max}'
|
|
79
|
+
# Description of the minimum value when the number can’t be stepped
|
|
80
|
+
min: 最小值 {$min}
|
|
81
|
+
# Description of the maximum value when the number can’t be stepped
|
|
82
|
+
max: 最大值 {$max}
|
|
77
83
|
|
|
78
84
|
# Password input component
|
|
79
85
|
password_input:
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sveltia/ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.81.1",
|
|
4
4
|
"description": "A collection of Svelte components and utilities for building user interfaces.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -66,8 +66,8 @@
|
|
|
66
66
|
"lexical": "^0.52.0"
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
69
|
-
"@fontsource-variable/material-symbols-outlined": "5.3.
|
|
70
|
-
"@fontsource-variable/source-sans-3": "5.3.
|
|
69
|
+
"@fontsource-variable/material-symbols-outlined": "5.3.9",
|
|
70
|
+
"@fontsource-variable/source-sans-3": "5.3.1",
|
|
71
71
|
"@fontsource/noto-mono": "5.3.0",
|
|
72
72
|
"@rollup/plugin-yaml": "^5.0.0",
|
|
73
73
|
"@sveltejs/adapter-auto": "^8.0.0",
|
|
@@ -81,11 +81,11 @@
|
|
|
81
81
|
"eslint-config-airbnb-extended": "^3.3.0",
|
|
82
82
|
"eslint-config-prettier": "^10.1.8",
|
|
83
83
|
"eslint-plugin-import": "^2.32.0",
|
|
84
|
-
"eslint-plugin-jsdoc": "^65.
|
|
84
|
+
"eslint-plugin-jsdoc": "^65.3.0",
|
|
85
85
|
"eslint-plugin-package-json": "^1.10.1",
|
|
86
86
|
"eslint-plugin-svelte": "^3.23.1",
|
|
87
87
|
"globals": "^17.13.0",
|
|
88
|
-
"happy-dom": "^
|
|
88
|
+
"happy-dom": "^21.0.1",
|
|
89
89
|
"oxlint": "^1.87.0",
|
|
90
90
|
"playwright": "^1.64.0",
|
|
91
91
|
"postcss": "^8.5.29",
|