@itfin/components 1.2.51 → 1.2.53

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itfin/components",
3
- "version": "1.2.51",
3
+ "version": "1.2.53",
4
4
  "author": "Vitalii Savchuk <esvit666@gmail.com>",
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -21,6 +21,19 @@
21
21
  &.itf-tabs__simple > .itf-tabs-panel {
22
22
  padding-left: 0 !important;
23
23
  }
24
+ .itf-tab__simple {
25
+ text-decoration: none;
26
+ padding-right: 2rem;
27
+ color: var(--bs-gray-500);
28
+
29
+ [data-theme="dark"] & {
30
+ color: var(--bs-gray-700);
31
+ }
32
+
33
+ &.active {
34
+ color: var(--bs-body-color);
35
+ }
36
+ }
24
37
  &.itf-tabs__vertical {
25
38
  display: flex;
26
39
  flex-direction: row-reverse;
@@ -84,7 +97,7 @@
84
97
  flex-grow: 1;
85
98
  z-index: 1;
86
99
  margin-right: -1px;
87
-
100
+
88
101
  @include media-breakpoint-up(lg) {
89
102
  max-width: calc(100% - var(--itf-tabs-panel-width));
90
103
  }
@@ -12,7 +12,7 @@
12
12
  </slot>
13
13
  </strong>
14
14
  <!-- <small>11 mins ago</small>-->
15
- <button type="button" class="btn-close" :class="{'btn-close-white': type}" data-bs-dismiss="toast" aria-label="Close" @click="close"></button>
15
+ <button type="button" class="btn-close" :class="{'btn-close-white': type}" data-bs-dismiss="toast" :aria-label="$t('components.close')" @click="close"></button>
16
16
  </div>
17
17
  <div class="d-flex" v-if="!collapsed">
18
18
  <div class="toast-body flex-shrink-1 w-100">
@@ -20,10 +20,10 @@
20
20
  <slot />
21
21
  </div>
22
22
  <slot v-else>{{ content }}</slot>
23
- <itf-button small primary block v-if="button" @click="onClick" class="mt-3">{{button}}</itf-button>
23
+ <itf-button small primary block v-if="button" @click="onClick" class="mt-3 text-black">{{button}}</itf-button>
24
24
  </div>
25
25
  <div class="me-2 m-auto" v-if="!title && !$slots.title">
26
- <button type="button" class="btn-close" :class="{'btn-close-white': type}" data-bs-dismiss="toast" aria-label="Close" @click="close"></button>
26
+ <button type="button" class="btn-close" :class="{'btn-close-white': type}" data-bs-dismiss="toast" :aria-label="$t('components.close')" @click="close"></button>
27
27
  </div>
28
28
  </div>
29
29
  </div>
@@ -30,7 +30,7 @@ export default @Component({
30
30
  })
31
31
  class itfDatePickerInline extends Vue {
32
32
  @Prop({ type: String }) value;
33
- @Prop({ type: String, default: 'ISO' }) valueFormat;
33
+ @Prop({ type: String, default: 'yyyy-MM-dd' }) valueFormat;
34
34
  @Prop({ type: String, default: ITFSettings.defaultDisplayDateFormat }) displayFormat;
35
35
  @Prop({ type: String, default: 'days', validator: (value) => ['days', 'months', 'years'].includes(value) }) startView;
36
36
  @Prop({ type: String, default: 'days', validator: (value) => ['days', 'months', 'years'].includes(value) }) minView;
@@ -76,6 +76,7 @@ class itfDatePickerInline extends Vue {
76
76
  this.calendar = new AirDatepicker(this.$refs.calendar, {
77
77
  locale: this.$i18n.locale === 'en' ? localeEn : localeUk,
78
78
  firstDay: 1,
79
+ altFieldDateFormat: this.valueFormat,
79
80
  range: this.range,
80
81
  view: (this.valueAsLuxon && !this.minView) ? 'days' : this.startView,
81
82
  minView: this.minView,
@@ -30,7 +30,7 @@ export default @Component({
30
30
  })
31
31
  class itfDatePickerInline extends Vue {
32
32
  @Prop() value;
33
- @Prop({ type: String, default: 'ISO' }) valueFormat;
33
+ @Prop({ type: String, default: 'yyyy-MM-dd' }) valueFormat;
34
34
  @Prop({ type: String, default: ITFSettings.defaultDisplayDateFormat }) displayFormat;
35
35
  @Prop({ type: Boolean, default: false }) onlyCalendar;
36
36
  @Prop({ type: Object, default: () => ({}) }) customDays;
@@ -72,6 +72,7 @@ class itfDatePickerInline extends Vue {
72
72
 
73
73
  this.calendar = new AirDatepicker(this.$refs.calendar, {
74
74
  firstDay: 1,
75
+ altFieldDateFormat: this.valueFormat,
75
76
  locale: this.$i18n.locale === 'en' ? localeEn : localeUk,
76
77
  range: true,
77
78
  toggleSelected: false,
@@ -10,7 +10,7 @@
10
10
  <slot name="title">
11
11
  <h5 class="modal-title" :id="modalId">{{title}}</h5>
12
12
  </slot>
13
- <itf-button icon data-bs-dismiss="modal" aria-label="Close" class="btn-close"></itf-button>
13
+ <itf-button icon data-bs-dismiss="modal" :aria-label="$t('components.close')" class="btn-close"></itf-button>
14
14
  </div>
15
15
  <div class="modal-body" v-if="value">
16
16
  <slot></slot>
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <div
3
3
  v-if="active || (tabsManager && tabsManager.getValue() === id)"
4
- :class="{ filled, 'itf-tab-content': !simple }"
4
+ :class="{ filled }"
5
5
  :data-test="`itf-tab-content-${id || _uid}`">
6
6
  <slot />
7
7
  </div>
@@ -19,9 +19,5 @@ class itfTabContent extends Vue {
19
19
  @Prop() id;
20
20
  @Prop(Boolean) filled;
21
21
  @Prop(Boolean) active;
22
-
23
- get simple() {
24
- return this.tabsManager && this.tabsManager.simple;
25
- }
26
22
  }
27
23
  </script>
@@ -90,7 +90,7 @@ class itfTabs extends Vue {
90
90
  }
91
91
 
92
92
  return {
93
- staticClass: this.simple ? 'text-decoration-none pe-3' : 'itf-tab',
93
+ staticClass: this.simple ? 'itf-tab__simple' : 'itf-tab',
94
94
  class: {
95
95
  'active': this.isActive(node)
96
96
  },
@@ -0,0 +1,59 @@
1
+ /* eslint-disable comma-dangle */
2
+ export default {
3
+ today: 'Today',
4
+ tomorrow: 'Tomorrow',
5
+ inAWeek: 'In a week',
6
+ inAMonth: 'In a month',
7
+ inAHalfYear: 'In a half-year',
8
+ inAYear: 'In a year',
9
+ relativeDates: 'Relative dates',
10
+ thisWeek: 'This week',
11
+ lastWeek: 'Last week',
12
+ thisMonth: 'This month',
13
+ lastMonth: 'Last month',
14
+ thisQuarter: 'This quarter',
15
+ lastQuarter: 'Last quarter',
16
+ thisYear: 'This year',
17
+ lastYear: 'Last year',
18
+ quarter: 'Quarter',
19
+ areYouSureToDeleteThis: 'Are you sure<br/> to delete this?',
20
+ noKeepIt: 'No,&nbsp;keep it',
21
+ yesDelete: 'Yes,&nbsp;delete',
22
+ pleaseFixTheErrorsBelowToProceed: 'Please fix the errors below to proceed.',
23
+ thisFieldIsRequired: 'This field is required',
24
+ theValueMustBeDifferent: 'The value must be different',
25
+ mustBeLessThanLengthCharacters: 'Must be less than {length} characters',
26
+ mustBeMoreThanLengthCharacters: 'Must be more than {length} characters',
27
+ pleaseEnterAValidEmail: 'Please enter a valid email',
28
+ pleaseEnterValidURL: 'Please enter valid URL',
29
+ pleaseEnteraValidHex: 'Please enter a valid color code',
30
+ passwordsDontMatch: 'Passwords don\'t match',
31
+ thisFieldMustBeANumberFormatZero: 'This field must be a number (format 0.00)',
32
+ theValueMustBeGreaterThanOrEqualToMinAndMax: 'The value must be greater than or equal to {min} and lower or equal than {max}',
33
+ theValueMustBeGreaterThanOrEqualToMin: 'The value must be greater than or equal to {min}',
34
+ mustBeLessThanMax: 'Must be less than {max}',
35
+ thisIsntABalidDescription: 'This isn\'t a valid description',
36
+ linksAreNotAllowedInThisField: 'Links are not allowed in this field',
37
+ theValueMustBeginAndEndWithANumberAndContainOnlyNumbersOrDots: 'The value must begin and end with a number and contain only numbers or dots(.)',
38
+ pleaseDontUseHTMLMarkup: 'Please don\'t use HTML markup',
39
+ beforeYouContinueMakeSureYourProfileDoesNotIncludeYourLinkedInContactInformation: 'Before you continue, make sure your profile does not include your LinkedIn contact information',
40
+ tooManyCapitalLetters: 'Too many capital letters',
41
+ yourtitleCannotIncludeSpecialCharactersLike: 'Your title cannot include special characters like >, ;, !, @, $, %, ^, =, {, }',
42
+ pleaseRemoveAnyPhoneNumberFromThisField: 'Please remove any phone number from this field. Potential clients will be able to contact you through Upwork',
43
+ thisFieldMustContainsDigits: 'This field must contains digits',
44
+ thedateShouldBeSameOrBefore: 'The date should be same or before {date}',
45
+ thedateShouldBeSameOrAfter: 'The date should be after {date}',
46
+ invalidTimeValueShouldBeInFormat: 'Invalid time value. Should be in format 0d 0h 0m',
47
+ yourTitleShouldDescribeTheWorkYouDo: 'Your title should describe the work you do',
48
+ pleaseEnterValidCommaSeparatedEmailAddressesToSendInvoicing: 'Please enter valid, comma separated (,) email addresses to send invoicing',
49
+ sorrySomethingWentWrongPleaseTryAgainOrContactSupport: 'Sorry, something went wrong. Please try again or contact support. Include a screenshot of this entire page so we can troubleshoot this issue faster.',
50
+ noResults: 'No results',
51
+ search: 'Search',
52
+ dateBefore: 'The date should be before {date}',
53
+ dateAfter: 'The date should be after {date}',
54
+ dateSameOrBefore: 'The date should be same or before {date}',
55
+ dateSameOrAfter: 'The date should be same or after {date}',
56
+ mediumTextLength: 'Text too large, maximum length 16Mb',
57
+ addMore: 'Add more',
58
+ close: 'Close'
59
+ };
@@ -0,0 +1,59 @@
1
+ /* eslint-disable comma-dangle */
2
+ export default {
3
+ today: 'Сьогодні',
4
+ tomorrow: 'Завтра',
5
+ inAWeek: 'Через тиждень',
6
+ inAMonth: 'Через місяць',
7
+ inAHalfYear: 'Через півроку',
8
+ inAYear: 'Через рік',
9
+ relativeDates: 'Відносні дати',
10
+ thisWeek: 'Поточний тиждень',
11
+ lastWeek: 'Минулий тиждень',
12
+ thisMonth: 'Поточний місяць',
13
+ lastMonth: 'Минулий місяць',
14
+ thisQuarter: 'Поточний квартал',
15
+ lastQuarter: 'Минулий квартал',
16
+ thisYear: 'Поточний рік',
17
+ lastYear: 'Минулий рік',
18
+ quarter: 'Квартал',
19
+ areYouSureToDeleteThis: 'Ви впевнені, що хочете видалити це?',
20
+ noKeepIt: 'Ні,&nbsp;залишити',
21
+ yesDelete: 'Так,&nbsp;видалити',
22
+ pleaseFixTheErrorsBelowToProceed: 'Щоб продовжити, виправте помилки у формі.',
23
+ thisFieldIsRequired: 'Це поле є обовʼязковим',
24
+ theValueMustBeDifferent: 'Значення має відрізнятися',
25
+ mustBeLessThanLengthCharacters: 'Має бути менше ніж {length} символів',
26
+ mustBeMoreThanLengthCharacters: 'Має бути більше {length} символів',
27
+ pleaseEnterAValidEmail: 'Будь ласка, введіть дійсну електронну адресу',
28
+ pleaseEnterValidURL: 'Будь ласка, введіть дійсний URL',
29
+ pleaseEnteraValidHex: 'Будь ласка, введіть дійсний код кольору',
30
+ passwordsDontMatch: 'Паролі не збігаються',
31
+ thisFieldMustBeANumberFormatZero: 'Це поле має містити числом (формат 0.00)',
32
+ theValueMustBeGreaterThanOrEqualToMinAndMax: 'Значення має бути більше або дорівнювати {min} і менше або дорівнювати {max}',
33
+ theValueMustBeGreaterThanOrEqualToMin: 'Значення має бути більше або дорівнювати {min}',
34
+ mustBeLessThanMax: 'Має бути менше ніж {max}',
35
+ thisIsntABalidDescription: 'Це недійсний опис',
36
+ linksAreNotAllowedInThisField: 'Посилання заборонені в цьому полі',
37
+ theValueMustBeginAndEndWithANumberAndContainOnlyNumbersOrDots: 'Значення має починатися і закінчуватися числом і містити лише цифри або крапки(.)',
38
+ pleaseDontUseHTMLMarkup: 'Будь ласка, не використовуйте розмітку HTML',
39
+ beforeYouContinueMakeSureYourProfileDoesNotIncludeYourLinkedInContactInformation: 'Перш ніж продовжити, переконайтеся, що ваш профіль не містить вашої контактної інформації LinkedIn',
40
+ tooManyCapitalLetters: 'Занадто багато великих літер',
41
+ yourtitleCannotIncludeSpecialCharactersLike: 'Ваша назва не може містити спеціальні символи, такі як >, ;, !, @, $, %, ^, =, {, }',
42
+ pleaseRemoveAnyPhoneNumberFromThisField: 'Будь ласка, видаліть будь-який номер телефону з цього поля. Потенційні клієнти зможуть звʼязатися з вами через Upwork',
43
+ thisFieldMustContainsDigits: 'Це поле має містити цифри',
44
+ thedateShouldBeSameOrBefore: 'Дата має бути такою ж або передувати {date}',
45
+ thedateShouldBeSameOrAfter: 'Дата має бути після {date}',
46
+ invalidTimeValueShouldBeInFormat: 'Недійсне значення часу. Має бути у форматі 0d 0h 0m',
47
+ yourTitleShouldDescribeTheWorkYouDo: 'Ваша назва має описувати роботу, яку ви виконуєте',
48
+ pleaseEnterValidCommaSeparatedEmailAddressesToSendInvoicing: 'Будь ласка, введіть дійсні адреси електронної пошти, розділені комами (,)',
49
+ sorrySomethingWentWrongPleaseTryAgainOrContactSupport: 'Вибачте, щось пішло не так. Спробуйте ще раз або зверніться до служби підтримки. Додайте знімок екрана всієї сторінки, щоб ми могли швидше вирішити цю проблему.',
50
+ noResults: 'Немає результатів',
51
+ search: 'Пошук',
52
+ dateBefore: 'Дата має бути раніше {date}',
53
+ dateAfter: 'Дата має бути після {date}',
54
+ dateSameOrBefore: 'Дата має бути такою ж або ранішою {date}',
55
+ dateSameOrAfter: 'Дата має бути такою ж або пізнішою {date}',
56
+ mediumTextLength: 'Текст завеликий, максимальна довжина 16Mb',
57
+ addMore: 'Додати ще',
58
+ close: 'Закрити'
59
+ };