Skip to content

Commit

Permalink
feat(auto-complete): add empty state messages and styles for various …
Browse files Browse the repository at this point in the history
…locales
  • Loading branch information
betavs committed Jan 8, 2025
1 parent 09b27b5 commit 58c16b9
Show file tree
Hide file tree
Showing 10 changed files with 35 additions and 0 deletions.
3 changes: 3 additions & 0 deletions js/global-config/locale/ar_KW.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
import 'dayjs/locale/ar';

export default {
autoComplete: {
empty: 'لا تتوافر بيانات',
},
pagination: {
itemsPerPage: '{size} / الصفحة',
jumpTo: 'القفز إلى',
Expand Down
3 changes: 3 additions & 0 deletions js/global-config/locale/en_US.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
import 'dayjs/locale/en';

export default {
autoComplete: {
empty: 'Empty Data',
},
pagination: {
itemsPerPage: '{size} / page',
jumpTo: 'Jump to',
Expand Down
3 changes: 3 additions & 0 deletions js/global-config/locale/it_IT.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
import 'dayjs/locale/it';

export default {
autoComplete: {
empty: 'Nessun dato',
},
pagination: {
itemsPerPage: '{size} articoli/pagina',
jumpTo: 'Vai a',
Expand Down
3 changes: 3 additions & 0 deletions js/global-config/locale/ja_JP.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
import 'dayjs/locale/ja';

export default {
autoComplete: {
empty: 'データなし',
},
pagination: {
itemsPerPage: '{size} /ページ',
jumpTo: 'ジャンプする',
Expand Down
3 changes: 3 additions & 0 deletions js/global-config/locale/ko_KR.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
import 'dayjs/locale/ko';

export default {
autoComplete: {
empty: '데이터 없음',
},
pagination: {
itemsPerPage: '{size} /페이지',
jumpTo: '건너뛰다',
Expand Down
3 changes: 3 additions & 0 deletions js/global-config/locale/ru_RU.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
import 'dayjs/locale/ru';

export default {
autoComplete: {
empty: 'Нет данных',
},
pagination: {
itemsPerPage: '{size} шт./стр.',
jumpTo: 'Перейти к',
Expand Down
3 changes: 3 additions & 0 deletions js/global-config/locale/zh_CN.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
import 'dayjs/locale/zh-cn';

export default {
autoComplete: {
empty: '暂无数据',
},
pagination: {
itemsPerPage: '{size} 条/页',
jumpTo: '跳至',
Expand Down
3 changes: 3 additions & 0 deletions js/global-config/locale/zh_TW.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
import 'dayjs/locale/zh-tw';

export default {
autoComplete: {
empty: '暫無數據',
},
pagination: {
itemsPerPage: '{size} 項/頁',
jumpTo: '跳至',
Expand Down
9 changes: 9 additions & 0 deletions style/web/components/auto-complete/_index.less
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,13 @@
display: inline-block;
}
}

&__panel {
&--empty {
height: @auto-complete-empty-height-default;
line-height: @auto-complete-empty-height-default;
color: @auto-complete-color-empty;
text-align: center;
}
}
}
2 changes: 2 additions & 0 deletions style/web/components/auto-complete/_var.less
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
@auto-complete-option-highlight-color: @brand-color;
@auto-complete-color-empty: @text-color-disabled;
@auto-complete-empty-height-default: @comp-size-m;

0 comments on commit 58c16b9

Please sign in to comment.