@lion/ui 0.11.3 → 0.11.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/calendar/src/LionCalendar.js +3 -0
- package/components/calendar/translations/tr.js +11 -0
- package/components/form-core/src/FormControlMixin.js +2 -2
- package/components/form-core/src/localizeNamespaceLoader.js +4 -0
- package/components/form-core/src/validate/ValidateMixin.js +6 -6
- package/components/form-core/test/FormControlMixin.test.js +10 -2
- package/components/form-core/test-suites/ValidateMixin.suite.js +116 -1
- package/components/form-core/translations/tr-TR.js +5 -0
- package/components/form-core/translations/tr.js +6 -0
- package/components/input-datepicker/src/localizeNamespaceLoader.js +7 -1
- package/components/input-datepicker/translations/tr-TR.js +5 -0
- package/components/input-datepicker/translations/tr.js +3 -0
- package/components/input-file/src/LionInputFile.js +39 -11
- package/components/input-file/src/LionSelectedFileList.js +0 -1
- package/components/input-file/test/lion-input-file.test.js +98 -4
- package/components/input-file/translations/bg.js +1 -1
- package/components/input-file/translations/cs.js +1 -1
- package/components/input-file/translations/de.js +6 -1
- package/components/input-file/translations/en.js +6 -2
- package/components/input-file/translations/es.js +1 -1
- package/components/input-file/translations/fr.js +1 -1
- package/components/input-file/translations/hu.js +1 -1
- package/components/input-file/translations/it.js +1 -1
- package/components/input-file/translations/nl.js +6 -1
- package/components/input-file/translations/pl.js +1 -1
- package/components/input-file/translations/ro.js +1 -1
- package/components/input-file/translations/ru.js +7 -3
- package/components/input-file/translations/sk.js +1 -1
- package/components/input-file/translations/uk.js +1 -1
- package/components/input-file/translations/zh.js +1 -1
- package/components/input-stepper/src/LionInputStepper.js +19 -3
- package/components/input-stepper/test/lion-input-stepper.test.js +94 -0
- package/components/overlays/translations/tr-TR.js +5 -0
- package/components/overlays/translations/tr.js +4 -0
- package/components/pagination/src/LionPagination.js +2 -0
- package/components/pagination/translations/tr.js +6 -0
- package/components/validate-messages/src/getLocalizedMessage.js +4 -0
- package/components/validate-messages/translations/tr-TR.js +13 -0
- package/components/validate-messages/translations/tr.js +56 -0
- package/custom-elements.json +112 -89
- package/dist-types/components/calendar/src/LionCalendar.d.ts.map +1 -1
- package/dist-types/components/calendar/translations/tr.d.ts +11 -0
- package/dist-types/components/calendar/translations/tr.d.ts.map +1 -0
- package/dist-types/components/form-core/src/localizeNamespaceLoader.d.ts.map +1 -1
- package/dist-types/components/form-core/test-suites/ValidateMixin.suite.d.ts.map +1 -1
- package/dist-types/components/form-core/translations/tr-TR.d.ts +8 -0
- package/dist-types/components/form-core/translations/tr-TR.d.ts.map +1 -0
- package/dist-types/components/form-core/translations/tr.d.ts +8 -0
- package/dist-types/components/form-core/translations/tr.d.ts.map +1 -0
- package/dist-types/components/input-datepicker/src/localizeNamespaceLoader.d.ts.map +1 -1
- package/dist-types/components/input-datepicker/translations/tr-TR.d.ts +5 -0
- package/dist-types/components/input-datepicker/translations/tr-TR.d.ts.map +1 -0
- package/dist-types/components/input-datepicker/translations/tr.d.ts +5 -0
- package/dist-types/components/input-datepicker/translations/tr.d.ts.map +1 -0
- package/dist-types/components/input-file/src/LionInputFile.d.ts +1 -0
- package/dist-types/components/input-file/src/LionInputFile.d.ts.map +1 -1
- package/dist-types/components/input-file/src/LionSelectedFileList.d.ts.map +1 -1
- package/dist-types/components/input-file/src/localizeNamespaceLoader.d.ts +1 -1
- package/dist-types/components/input-file/src/localizeNamespaceLoader.d.ts.map +1 -1
- package/dist-types/components/input-file/test/lion-input-file.test.d.ts.map +1 -1
- package/dist-types/components/input-file/translations/de-DE.d.ts +5 -0
- package/dist-types/components/input-file/translations/de.d.ts +5 -0
- package/dist-types/components/input-file/translations/en-AU.d.ts +5 -1
- package/dist-types/components/input-file/translations/en-GB.d.ts +5 -1
- package/dist-types/components/input-file/translations/en-PH.d.ts +5 -1
- package/dist-types/components/input-file/translations/en-US.d.ts +5 -1
- package/dist-types/components/input-file/translations/en.d.ts +5 -1
- package/dist-types/components/input-file/translations/nl-BE.d.ts +5 -0
- package/dist-types/components/input-file/translations/nl-NL.d.ts +5 -0
- package/dist-types/components/input-file/translations/nl.d.ts +5 -0
- package/dist-types/components/input-file/translations/ru-RU.d.ts +5 -1
- package/dist-types/components/input-file/translations/ru.d.ts +5 -1
- package/dist-types/components/input-stepper/src/LionInputStepper.d.ts.map +1 -1
- package/dist-types/components/overlays/translations/tr-TR.d.ts +6 -0
- package/dist-types/components/overlays/translations/tr-TR.d.ts.map +1 -0
- package/dist-types/components/overlays/translations/tr.d.ts +6 -0
- package/dist-types/components/overlays/translations/tr.d.ts.map +1 -0
- package/dist-types/components/pagination/src/LionPagination.d.ts.map +1 -1
- package/dist-types/components/pagination/translations/tr.d.ts +8 -0
- package/dist-types/components/pagination/translations/tr.d.ts.map +1 -0
- package/dist-types/components/validate-messages/src/getLocalizedMessage.d.ts.map +1 -1
- package/dist-types/components/validate-messages/translations/tr-TR.d.ts +55 -0
- package/dist-types/components/validate-messages/translations/tr-TR.d.ts.map +1 -0
- package/dist-types/components/validate-messages/translations/tr.d.ts +73 -0
- package/dist-types/components/validate-messages/translations/tr.d.ts.map +1 -0
- package/dist-types/tsconfig.tsbuildinfo +1 -1
- package/docs/components/checkbox-group/api-table.md +3 -3
- package/docs/components/checkbox-group/overview.md +2 -2
- package/docs/components/collapsible/overview.md +1 -1
- package/docs/components/combobox/api-table.md +1 -1
- package/docs/components/combobox/overview.md +1 -1
- package/docs/components/combobox/use-cases.md +1 -1
- package/docs/components/dialog/overview.md +1 -1
- package/docs/components/fieldset/api-table.md +1 -1
- package/docs/components/fieldset/overview.md +5 -5
- package/docs/components/form/overview.md +3 -3
- package/docs/components/form/use-cases.md +2 -2
- package/docs/components/icon/use-cases.md +1 -1
- package/docs/components/input/api-table.md +1 -1
- package/docs/components/input/overview.md +1 -1
- package/docs/components/input-amount/api-table.md +1 -1
- package/docs/components/input-amount/overview.md +3 -3
- package/docs/components/input-date/api-table.md +1 -1
- package/docs/components/input-date/overview.md +3 -3
- package/docs/components/input-datepicker/api-table.md +1 -1
- package/docs/components/input-datepicker/overview.md +5 -5
- package/docs/components/input-email/api-table.md +1 -1
- package/docs/components/input-email/overview.md +2 -2
- package/docs/components/input-file/api-table.md +3 -2
- package/docs/components/input-file/overview.md +1 -1
- package/docs/components/input-iban/api-table.md +1 -1
- package/docs/components/input-iban/overview.md +2 -2
- package/docs/components/input-range/api-table.md +1 -1
- package/docs/components/input-range/overview.md +2 -2
- package/docs/components/input-stepper/api-table.md +1 -1
- package/docs/components/input-stepper/overview.md +1 -1
- package/docs/components/input-stepper/use-cases.md +16 -0
- package/docs/components/input-tel/api-table.md +1 -1
- package/docs/components/input-tel/overview.md +1 -1
- package/docs/components/input-tel/use-cases.md +6 -6
- package/docs/components/input-tel-dropdown/api-table.md +1 -1
- package/docs/components/input-tel-dropdown/overview.md +1 -1
- package/docs/components/listbox/api-table.md +1 -1
- package/docs/components/listbox/use-cases.md +1 -1
- package/docs/components/radio-group/api-table.md +2 -2
- package/docs/components/radio-group/overview.md +3 -3
- package/docs/components/select/api-table.md +1 -1
- package/docs/components/select/use-cases.md +1 -1
- package/docs/components/select-rich/api-table.md +1 -1
- package/docs/components/select-rich/use-cases.md +1 -1
- package/docs/components/switch/api-table.md +1 -1
- package/docs/components/tabs/examples.md +1 -1
- package/docs/components/textarea/api-table.md +1 -1
- package/docs/fundamentals/index.md +4 -4
- package/docs/fundamentals/node-tools/publish-docs/overview.md +3 -3
- package/docs/fundamentals/node-tools/rocket-preset-extend-lion-docs/overview.md +2 -2
- package/docs/fundamentals/rationales/accessibility.md +1 -1
- package/docs/fundamentals/systems/core/SlotMixin.md +1 -1
- package/docs/fundamentals/systems/core/overview.md +1 -1
- package/docs/fundamentals/systems/form/api-table.md +1 -1
- package/docs/fundamentals/systems/form/formatting-and-parsing.md +4 -4
- package/docs/fundamentals/systems/form/model-value.md +1 -1
- package/docs/fundamentals/systems/form/overview.md +28 -28
- package/docs/fundamentals/systems/form/validate.md +2 -2
- package/docs/fundamentals/systems/localize/overview.md +4 -4
- package/docs/fundamentals/systems/overlays/configuration.md +2 -2
- package/docs/fundamentals/systems/overlays/overview.md +5 -5
- package/docs/fundamentals/systems/overlays/use-cases.md +2 -2
- package/docs/fundamentals/tools/helpers/overview.md +1 -1
- package/docs/fundamentals/tools/singleton-manager/overview.md +4 -4
- package/docs/guides/how-to/create-a-custom-field.md +5 -5
- package/docs/guides/how-to/create-a-form.md +4 -4
- package/docs/guides/how-to/extend-a-native-input.md +2 -2
- package/docs/guides/index.md +8 -8
- package/docs/guides/principles/index.md +5 -5
- package/docs/guides/principles/styling.md +1 -1
- package/package.json +1 -1
|
@@ -4,10 +4,15 @@ export default {
|
|
|
4
4
|
allowedFileValidatorComplex:
|
|
5
5
|
'Upload een {allowedTypesArray} of {allowedTypesLastItem}-bestand van maximaal {maxSize}.',
|
|
6
6
|
dragAndDropText: 'Sleep uw bestanden hierheen of',
|
|
7
|
-
fileNameDescriptionLabel: 'Bestandsnaam:
|
|
7
|
+
fileNameDescriptionLabel: 'Bestandsnaam: ',
|
|
8
8
|
generalValidatorMessage: '"{validatorMessage}", voor {listOfErroneousFiles}.',
|
|
9
9
|
noFilesSelected: 'Geen bestanden geselecteerd.',
|
|
10
10
|
numberOfFiles: '{numberOfFiles} bestanden.',
|
|
11
|
+
noFilesUploaded: 'Geen bestanden geüpload.',
|
|
12
|
+
fileSelected: 'Geselecteerd bestand: ',
|
|
13
|
+
fileUploaded: 'Geüpload bestand: ',
|
|
14
|
+
filesSelected: 'Geselecteerde bestanden: {numberOfFiles} bestanden.',
|
|
15
|
+
filesUploaded: 'Geüploade bestanden: {numberOfFiles} bestanden.',
|
|
11
16
|
removeButtonLabel: 'Verwijder het bestand {fileName}',
|
|
12
17
|
selectTextDuplicateFileName: 'Er bestaat al een bestand met dezelfde bestandsnaam.',
|
|
13
18
|
selectTextMultipleFile: 'Selecteer bestanden',
|
|
@@ -4,7 +4,7 @@ export default {
|
|
|
4
4
|
allowedFileValidatorComplex:
|
|
5
5
|
'Prześlij plik {allowedTypesArray} lub {allowedTypesLastItem} o maks. rozmiarze {maxSize}.',
|
|
6
6
|
dragAndDropText: 'Przeciągnij i upuść pliki tutaj lub',
|
|
7
|
-
fileNameDescriptionLabel: 'Nazwa pliku:
|
|
7
|
+
fileNameDescriptionLabel: 'Nazwa pliku: ',
|
|
8
8
|
generalValidatorMessage: '"{validatorMessage}", dla {listOfErroneousFiles}.',
|
|
9
9
|
noFilesSelected: 'Nie wybrano żadnych plików.',
|
|
10
10
|
numberOfFiles: 'Liczba plików: {numberOfFiles}.',
|
|
@@ -4,7 +4,7 @@ export default {
|
|
|
4
4
|
allowedFileValidatorComplex:
|
|
5
5
|
'Încărcaţi un fişier {allowedTypesArray} sau {allowedTypesLastItem} de max. {maxSize}.',
|
|
6
6
|
dragAndDropText: 'Glisaţi şi fixaţi fişierele aici sau',
|
|
7
|
-
fileNameDescriptionLabel: 'Nume fişier:
|
|
7
|
+
fileNameDescriptionLabel: 'Nume fişier: ',
|
|
8
8
|
generalValidatorMessage: '"{validatorMessage}", pentru {listOfErroneousFiles}.',
|
|
9
9
|
noFilesSelected: 'Niciun fișier selectat.',
|
|
10
10
|
numberOfFiles: '{numberOfFiles} fișiere.',
|
|
@@ -4,10 +4,14 @@ export default {
|
|
|
4
4
|
allowedFileValidatorComplex:
|
|
5
5
|
'Загрузите файл {allowedTypesArray} или {allowedTypesLastItem} размером не более {maxSize}.',
|
|
6
6
|
dragAndDropText: 'Перетащите файлы сюда или',
|
|
7
|
-
fileNameDescriptionLabel: 'Название файла:
|
|
7
|
+
fileNameDescriptionLabel: 'Название файла: ',
|
|
8
8
|
generalValidatorMessage: '"{validatorMessage}", для {listOfErroneousFiles}.',
|
|
9
|
-
noFilesSelected: '
|
|
10
|
-
|
|
9
|
+
noFilesSelected: 'Не выбрано ни одного файла.',
|
|
10
|
+
noFilesUploaded: 'Не загружено ни одного файла.',
|
|
11
|
+
fileSelected: 'Выбранный файл: ',
|
|
12
|
+
fileUploaded: 'Загруженный файл: ',
|
|
13
|
+
filesSelected: 'Выбранные файлы: {numberOfFiles} файлов.',
|
|
14
|
+
filesUploaded: 'Загруженные файлы: {numberOfFiles} файлов.',
|
|
11
15
|
removeButtonLabel: 'Удалить файл {fileName}',
|
|
12
16
|
selectTextDuplicateFileName: 'Файл с таким названием уже существует.',
|
|
13
17
|
selectTextMultipleFile: 'Выберите файлы',
|
|
@@ -4,7 +4,7 @@ export default {
|
|
|
4
4
|
allowedFileValidatorComplex:
|
|
5
5
|
'Nahrajte súbor {allowedTypesArray} alebo {allowedTypesLastItem} s maximálnou veľkosťou {maxSize}.',
|
|
6
6
|
dragAndDropText: 'Súbory presuňte sem alebo',
|
|
7
|
-
fileNameDescriptionLabel: 'Názov súboru:
|
|
7
|
+
fileNameDescriptionLabel: 'Názov súboru: ',
|
|
8
8
|
generalValidatorMessage: '"{validatorMessage}", pre {listOfErroneousFiles}.',
|
|
9
9
|
noFilesSelected: 'Neboli vybrané žiadne súbory.',
|
|
10
10
|
numberOfFiles: 'Počet súborov: {numberOfFiles}.',
|
|
@@ -4,7 +4,7 @@ export default {
|
|
|
4
4
|
allowedFileValidatorComplex:
|
|
5
5
|
'Завантажте файл {allowedTypesArray} або {allowedTypesLastItem} розміром до {maxSize}.',
|
|
6
6
|
dragAndDropText: 'Перетягніть файли сюди або',
|
|
7
|
-
fileNameDescriptionLabel: 'Ім’я файлу:
|
|
7
|
+
fileNameDescriptionLabel: 'Ім’я файлу: ',
|
|
8
8
|
generalValidatorMessage: '"{validatorMessage}", для {listOfErroneousFiles}.',
|
|
9
9
|
noFilesSelected: 'Не вибрано жодного файлу.',
|
|
10
10
|
numberOfFiles: '{numberOfFiles} файли(-ів).',
|
|
@@ -4,7 +4,7 @@ export default {
|
|
|
4
4
|
allowedFileValidatorComplex:
|
|
5
5
|
'请上传最大 {maxSize} 的 {allowedTypesArray} 或 {allowedTypesLastItem} 文件。',
|
|
6
6
|
dragAndDropText: '将您的文件拖放到此处,或',
|
|
7
|
-
fileNameDescriptionLabel: '文件名:
|
|
7
|
+
fileNameDescriptionLabel: '文件名: ',
|
|
8
8
|
generalValidatorMessage: '"{validatorMessage}", 例如 {listOfErroneousFiles}。',
|
|
9
9
|
noFilesSelected: '未选择任何文件。',
|
|
10
10
|
numberOfFiles: '{numberOfFiles} 个文件。',
|
|
@@ -266,7 +266,15 @@ export class LionInputStepper extends LocalizeMixin(LionInput) {
|
|
|
266
266
|
*/
|
|
267
267
|
__increment() {
|
|
268
268
|
const { step, min, max } = this.values;
|
|
269
|
-
const
|
|
269
|
+
const stepMin = min !== Infinity ? min : 0;
|
|
270
|
+
|
|
271
|
+
let newValue = this.currentValue + step;
|
|
272
|
+
|
|
273
|
+
if ((this.currentValue + stepMin) % step !== 0) {
|
|
274
|
+
// If the value is not aligned to step, align it to the nearest step
|
|
275
|
+
newValue = Math.floor(this.currentValue / step) * step + step + (stepMin % step);
|
|
276
|
+
}
|
|
277
|
+
|
|
270
278
|
if (newValue <= max || max === Infinity) {
|
|
271
279
|
this.modelValue = newValue < min && min !== Infinity ? `${min}` : `${newValue}`;
|
|
272
280
|
this.__toggleSpinnerButtonsState();
|
|
@@ -279,8 +287,16 @@ export class LionInputStepper extends LocalizeMixin(LionInput) {
|
|
|
279
287
|
* @private
|
|
280
288
|
*/
|
|
281
289
|
__decrement() {
|
|
282
|
-
const { step,
|
|
283
|
-
const
|
|
290
|
+
const { step, max, min } = this.values;
|
|
291
|
+
const stepMin = min !== Infinity ? min : 0;
|
|
292
|
+
|
|
293
|
+
let newValue = this.currentValue - step;
|
|
294
|
+
|
|
295
|
+
if ((this.currentValue + stepMin) % step !== 0) {
|
|
296
|
+
// If the value is not aligned to step, align it to the nearest step
|
|
297
|
+
newValue = Math.floor(this.currentValue / step) * step + (stepMin % step);
|
|
298
|
+
}
|
|
299
|
+
|
|
284
300
|
if (newValue >= min || min === Infinity) {
|
|
285
301
|
this.modelValue = newValue > max && max !== Infinity ? `${max}` : `${newValue}`;
|
|
286
302
|
this.__toggleSpinnerButtonsState();
|
|
@@ -265,6 +265,100 @@ describe('<lion-input-stepper>', () => {
|
|
|
265
265
|
await nextFrame();
|
|
266
266
|
expect(incrementButton?.getAttribute('disabled')).to.equal('true');
|
|
267
267
|
});
|
|
268
|
+
|
|
269
|
+
describe('It align to steps', () => {
|
|
270
|
+
it('aligns the value to the nearest step when incrementing', async () => {
|
|
271
|
+
let el = await fixture(
|
|
272
|
+
html`<lion-input-stepper step="10" min="0" max="100" value="55"></lion-input-stepper>`,
|
|
273
|
+
);
|
|
274
|
+
let incrementButton = el.querySelector('[slot=suffix]');
|
|
275
|
+
incrementButton?.dispatchEvent(new Event('click'));
|
|
276
|
+
await el.updateComplete;
|
|
277
|
+
expect(el.modelValue).to.equal(60, 'Fail + : (0 > 100 by 10; val 55)');
|
|
278
|
+
|
|
279
|
+
// min 1
|
|
280
|
+
el = await fixture(
|
|
281
|
+
html`<lion-input-stepper step="10" min="1" max="100" value="55"></lion-input-stepper>`,
|
|
282
|
+
);
|
|
283
|
+
incrementButton = el.querySelector('[slot=suffix]');
|
|
284
|
+
incrementButton?.dispatchEvent(new Event('click'));
|
|
285
|
+
await el.updateComplete;
|
|
286
|
+
expect(el.modelValue).to.equal(61, 'Fail + : (1 > 100 by 10; val 55)');
|
|
287
|
+
|
|
288
|
+
// min 34
|
|
289
|
+
el = await fixture(
|
|
290
|
+
html`<lion-input-stepper step="10" min="34" max="100" value="55"></lion-input-stepper>`,
|
|
291
|
+
);
|
|
292
|
+
incrementButton = el.querySelector('[slot=suffix]');
|
|
293
|
+
incrementButton?.dispatchEvent(new Event('click'));
|
|
294
|
+
await el.updateComplete;
|
|
295
|
+
expect(el.modelValue).to.equal(64, 'Fail + : (34 > 100 by 10; val 55)');
|
|
296
|
+
|
|
297
|
+
// min -23
|
|
298
|
+
el = await fixture(
|
|
299
|
+
html`<lion-input-stepper step="10" min="-23" max="100" value="55"></lion-input-stepper>`,
|
|
300
|
+
);
|
|
301
|
+
incrementButton = el.querySelector('[slot=suffix]');
|
|
302
|
+
incrementButton?.dispatchEvent(new Event('click'));
|
|
303
|
+
await el.updateComplete;
|
|
304
|
+
expect(el.modelValue).to.equal(57, 'Fail + : (-23 > 100 by 10; val 55)'); // -23 > -13 > -3 > 7 > ... > 57
|
|
305
|
+
|
|
306
|
+
// min -23
|
|
307
|
+
el = await fixture(
|
|
308
|
+
html`<lion-input-stepper step="10" min="-23" max="100" value="-9"></lion-input-stepper>`,
|
|
309
|
+
);
|
|
310
|
+
incrementButton = el.querySelector('[slot=suffix]');
|
|
311
|
+
incrementButton?.dispatchEvent(new Event('click'));
|
|
312
|
+
await el.updateComplete;
|
|
313
|
+
expect(el.modelValue).to.equal(-3, 'Fail + : (-23 > 100 by 10; val 55)'); // -23 > -13 > -3 > 7
|
|
314
|
+
});
|
|
315
|
+
|
|
316
|
+
it('aligns the value to the nearest step when decrementing', async () => {
|
|
317
|
+
let el = await fixture(
|
|
318
|
+
html`<lion-input-stepper step="10" min="0" max="100" value="55"></lion-input-stepper>`,
|
|
319
|
+
);
|
|
320
|
+
let decrementButton = el.querySelector('[slot=prefix]');
|
|
321
|
+
decrementButton?.dispatchEvent(new Event('click'));
|
|
322
|
+
await el.updateComplete;
|
|
323
|
+
expect(el.modelValue).to.equal(50, 'Fail - : (0 > 100 by 10; val 55)');
|
|
324
|
+
|
|
325
|
+
// min 1
|
|
326
|
+
el = await fixture(
|
|
327
|
+
html`<lion-input-stepper step="10" min="1" max="100" value="55"></lion-input-stepper>`,
|
|
328
|
+
);
|
|
329
|
+
decrementButton = el.querySelector('[slot=prefix]');
|
|
330
|
+
decrementButton?.dispatchEvent(new Event('click'));
|
|
331
|
+
await el.updateComplete;
|
|
332
|
+
expect(el.modelValue).to.equal(51, 'Fail - : (1 > 100 by 10; val 55)');
|
|
333
|
+
|
|
334
|
+
// min 34
|
|
335
|
+
el = await fixture(
|
|
336
|
+
html`<lion-input-stepper step="10" min="34" max="100" value="55"></lion-input-stepper>`,
|
|
337
|
+
);
|
|
338
|
+
decrementButton = el.querySelector('[slot=prefix]');
|
|
339
|
+
decrementButton?.dispatchEvent(new Event('click'));
|
|
340
|
+
await el.updateComplete;
|
|
341
|
+
expect(el.modelValue).to.equal(54, 'Fail - : (34 > 100 by 10; val 55)');
|
|
342
|
+
|
|
343
|
+
// min -23
|
|
344
|
+
el = await fixture(
|
|
345
|
+
html`<lion-input-stepper step="10" min="-23" max="100" value="55"></lion-input-stepper>`,
|
|
346
|
+
);
|
|
347
|
+
decrementButton = el.querySelector('[slot=prefix]');
|
|
348
|
+
decrementButton?.dispatchEvent(new Event('click'));
|
|
349
|
+
await el.updateComplete;
|
|
350
|
+
expect(el.modelValue).to.equal(47, 'Fail - : (-23 > 100 by 10; val 55)'); // -23 > -13 > -3 > 7 > ... > 47
|
|
351
|
+
|
|
352
|
+
// min -23
|
|
353
|
+
el = await fixture(
|
|
354
|
+
html`<lion-input-stepper step="10" min="-23" max="100" value="-9"></lion-input-stepper>`,
|
|
355
|
+
);
|
|
356
|
+
decrementButton = el.querySelector('[slot=prefix]');
|
|
357
|
+
decrementButton?.dispatchEvent(new Event('click'));
|
|
358
|
+
await el.updateComplete;
|
|
359
|
+
expect(el.modelValue).to.equal(-13, 'Fail - : (-23 > 100 by 10; val 55)'); // -23 > -13 > -3 > 7
|
|
360
|
+
});
|
|
361
|
+
});
|
|
268
362
|
});
|
|
269
363
|
|
|
270
364
|
describe('Accessibility', () => {
|
|
@@ -73,6 +73,8 @@ export class LionPagination extends LocalizeMixin(LitElement) {
|
|
|
73
73
|
return import('@lion/ui/pagination-translations/ru.js');
|
|
74
74
|
case 'sk-SK':
|
|
75
75
|
return import('@lion/ui/pagination-translations/sk.js');
|
|
76
|
+
case 'tr-TR':
|
|
77
|
+
return import('@lion/ui/pagination-translations/tr.js');
|
|
76
78
|
case 'uk-UA':
|
|
77
79
|
return import('@lion/ui/pagination-translations/uk.js');
|
|
78
80
|
case 'zh-CN':
|
|
@@ -85,6 +85,10 @@ export async function loadValidateNamespace({ localize }) {
|
|
|
85
85
|
return import('@lion/ui/validate-messages-translations/sk-SK.js');
|
|
86
86
|
case 'sk':
|
|
87
87
|
return import('@lion/ui/validate-messages-translations/sk.js');
|
|
88
|
+
case 'tr-TR':
|
|
89
|
+
return import('@lion/ui/validate-messages-translations/tr-TR.js');
|
|
90
|
+
case 'tr':
|
|
91
|
+
return import('@lion/ui/validate-messages-translations/tr.js');
|
|
88
92
|
case 'uk-UA':
|
|
89
93
|
return import('@lion/ui/validate-messages-translations/uk-UA.js');
|
|
90
94
|
case 'uk':
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
error: {
|
|
3
|
+
Required: '{fieldName} alanını doldurun.',
|
|
4
|
+
_RequiredUpload: '{fieldName} dosyasını yükleyin.',
|
|
5
|
+
_RequiredSelect: '{fieldName} seçin.',
|
|
6
|
+
EqualsLength: '{fieldName} alanı tam olarak {params} karakter olmalıdır.',
|
|
7
|
+
MinLength: '{fieldName} alanı en az {params} karakter olmalıdır.',
|
|
8
|
+
MaxLength: '{fieldName} alanı en fazla {params} karakter olmalıdır.',
|
|
9
|
+
MinMaxLength: '{fieldName} alanı {params.min} ile {params.max} karakter arasında olmalıdır.',
|
|
10
|
+
Pattern: 'Geçerli bir {fieldName} girin.',
|
|
11
|
+
IsNumber: 'Geçerli bir {fieldName} girin.',
|
|
12
|
+
MinNumber: '{fieldName}, {params} veya daha büyük olmalıdır.',
|
|
13
|
+
MaxNumber: '{fieldName}, {params} veya daha küçük olmalıdır.',
|
|
14
|
+
MinMaxNumber: '{fieldName}, {params.min} ile {params.max} arasında olmalıdır.',
|
|
15
|
+
IsDate: 'Geçerli bir tarih girin (GG/AA/YYYY).',
|
|
16
|
+
MinDate: '{fieldName}, {params, date, YYYYMMDD} veya daha sonraki bir tarih olmalıdır.',
|
|
17
|
+
MaxDate: '{fieldName}, {params, date, YYYYMMDD} veya daha önceki bir tarih olmalıdır.',
|
|
18
|
+
MinMaxDate:
|
|
19
|
+
'{fieldName}, {params.min, date, YYYYMMDD} ile {params.max, date, YYYYMMDD} arasında olmalıdır.',
|
|
20
|
+
IsDateDisabled: 'Bu tarih kullanılamaz. Lütfen başka bir tarih seçin.',
|
|
21
|
+
IsEmail: 'Geçerli bir {fieldName} girin ("ad@örnek.com" formatında).',
|
|
22
|
+
MatchesOption: 'Eşleşen sonuç bulunamadı. Farklı bir anahtar kelime ya da kategori deneyin.',
|
|
23
|
+
},
|
|
24
|
+
warning: {
|
|
25
|
+
Required: '{fieldName} alanını doldurun.',
|
|
26
|
+
_RequiredUpload: '{fieldName} dosyasını yükleyin.',
|
|
27
|
+
_RequiredSelect: '{fieldName} seçin.',
|
|
28
|
+
EqualsLength: '{fieldName} alanı tam olarak {params} karakter olmalıdır.',
|
|
29
|
+
MinLength: '{fieldName} alanı en az {params} karakter olmalıdır.',
|
|
30
|
+
MaxLength: '{fieldName} alanı en fazla {params} karakter olmalıdır.',
|
|
31
|
+
MinMaxLength: '{fieldName} alanı {params.min} ile {params.max} karakter arasında olmalıdır.',
|
|
32
|
+
IsNumber: 'Geçerli bir {fieldName} girin.',
|
|
33
|
+
MinNumber: '{fieldName}, {params} veya daha büyük olmalıdır.',
|
|
34
|
+
MaxNumber: '{fieldName}, {params} veya daha küçük olmalıdır.',
|
|
35
|
+
MinMaxNumber: '{fieldName}, {params.min} ile {params.max} arasında olmalıdır.',
|
|
36
|
+
IsDate: 'Geçerli bir tarih girin (GG/AA/YYYY).',
|
|
37
|
+
MinDate: '{fieldName}, {params, date, YYYYMMDD} veya daha sonraki bir tarih olmalıdır.',
|
|
38
|
+
MaxDate: '{fieldName}, {params, date, YYYYMMDD} veya daha önceki bir tarih olmalıdır.',
|
|
39
|
+
MinMaxDate:
|
|
40
|
+
'{fieldName}, {params.min, date, YYYYMMDD} ile {params.max, date, YYYYMMDD} arasında olmalıdır.',
|
|
41
|
+
IsDateDisabled: 'Bu tarih kullanılamaz. Lütfen başka bir tarih seçin.',
|
|
42
|
+
IsEmail: 'Geçerli bir {fieldName} girin ("ad@örnek.com" formatında).',
|
|
43
|
+
MatchesOption: 'Eşleşen sonuç bulunamadı. Farklı bir anahtar kelime ya da kategori deneyin.',
|
|
44
|
+
},
|
|
45
|
+
success: {
|
|
46
|
+
DefaultOk: 'Tamam',
|
|
47
|
+
RandomOk:
|
|
48
|
+
'success.DefaultOk,success.Correct,success.Succeeded,success.Ok,success.ThisIsRight,success.Changed,success.OkCorrect',
|
|
49
|
+
Correct: 'Doğru',
|
|
50
|
+
Succeeded: 'Başarılı',
|
|
51
|
+
Ok: 'Tamam!',
|
|
52
|
+
ThisIsRight: 'Bu doğru.',
|
|
53
|
+
Changed: 'Değiştirildi!',
|
|
54
|
+
OkCorrect: 'Tamam, doğru.',
|
|
55
|
+
},
|
|
56
|
+
};
|