mirror of
https://github.com/we-promise/sure.git
synced 2026-05-12 15:15:01 +00:00
* feat: add new UI component to display dropdown select with filter * feat: use new dropdown componet for category selection in transactions * feat: improve dropdown controller * feat: Add checkbox indicator to highlight selected element in list * feat: add possibility to define dropdown without search * feat: initial implementation of variants * feat: Add default color for dropdown menu * feat: add "icon" variant for dropdown * refactor: component + controller refactoring * refactor: view + component * fix: adjust min width in selection for mobile * feat: refactor collection_select method to use new filter dropdown component * fix: compute fixed position for dropdown * feat: controller improvements * lint issues * feat: add dot color if no icon is available * refactor: controller refactor + update naming for variant from icon to logo * fix: set width to 100% for select dropdown * feat: add variant to collection_select in new transaction form * fix: typo in placeholder value * fix: add back include_blank property * refactor: rename component from FilterDropdown to Select * fix: translate placeholder and keep value_method and text_method * fix: remove duplicate variable assignment * fix: translate placeholder * fix: verify color format * fix: use right autocomplete value * fix: selection issue + controller adjustments * fix: move calls to startAutoUpdate and stopAutoUpdate * Update app/javascript/controllers/select_controller.js Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> Signed-off-by: Alessio Cappa <104093777+alessiocappa@users.noreply.github.com> * fix: add aria-labels * fix: pass html_options to DS::Select * fix: unnecessary closing tag * fix: use offsetvalue for position checks * fix: use right classes for dropdown transitions * include options[:prompt] in placeholder init * fix: remove unused locale key * fix: Emit a native change event after updating the input value. * fix: Guard against negative maxHeight in constrained layouts. * fix: Update test * fix: lint issues * Update test/system/transfers_test.rb Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> Signed-off-by: Alessio Cappa <104093777+alessiocappa@users.noreply.github.com> * Update test/system/transfers_test.rb Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> Signed-off-by: Alessio Cappa <104093777+alessiocappa@users.noreply.github.com> * refactor: move CSS class for button select form in maybe-design-system.css --------- Signed-off-by: Alessio Cappa <104093777+alessiocappa@users.noreply.github.com> Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
224 lines
5.3 KiB
YAML
224 lines
5.3 KiB
YAML
---
|
|
en:
|
|
defaults:
|
|
brand_name: "%{brand_name}"
|
|
product_name: "%{product_name}"
|
|
global:
|
|
expand: "Expand"
|
|
activerecord:
|
|
errors:
|
|
messages:
|
|
record_invalid: 'Validation failed: %{errors}'
|
|
restrict_dependent_destroy:
|
|
has_many: Cannot delete record because dependent %{record} exist
|
|
has_one: Cannot delete record because a dependent %{record} exists
|
|
date:
|
|
abbr_day_names:
|
|
- Sun
|
|
- Mon
|
|
- Tue
|
|
- Wed
|
|
- Thu
|
|
- Fri
|
|
- Sat
|
|
abbr_month_names:
|
|
-
|
|
- Jan
|
|
- Feb
|
|
- Mar
|
|
- Apr
|
|
- May
|
|
- Jun
|
|
- Jul
|
|
- Aug
|
|
- Sep
|
|
- Oct
|
|
- Nov
|
|
- Dec
|
|
day_names:
|
|
- Sunday
|
|
- Monday
|
|
- Tuesday
|
|
- Wednesday
|
|
- Thursday
|
|
- Friday
|
|
- Saturday
|
|
formats:
|
|
default: "%Y-%m-%d"
|
|
long: "%B %d, %Y"
|
|
short: "%b %d"
|
|
month_names:
|
|
-
|
|
- January
|
|
- February
|
|
- March
|
|
- April
|
|
- May
|
|
- June
|
|
- July
|
|
- August
|
|
- September
|
|
- October
|
|
- November
|
|
- December
|
|
order:
|
|
- :year
|
|
- :month
|
|
- :day
|
|
datetime:
|
|
distance_in_words:
|
|
about_x_hours:
|
|
one: about %{count} hour
|
|
other: about %{count} hours
|
|
about_x_months:
|
|
one: about %{count} month
|
|
other: about %{count} months
|
|
about_x_years:
|
|
one: about %{count} year
|
|
other: about %{count} years
|
|
almost_x_years:
|
|
one: almost %{count} year
|
|
other: almost %{count} years
|
|
half_a_minute: half a minute
|
|
less_than_x_minutes:
|
|
one: less than a minute
|
|
other: less than %{count} minutes
|
|
less_than_x_seconds:
|
|
one: less than %{count} second
|
|
other: less than %{count} seconds
|
|
over_x_years:
|
|
one: over %{count} year
|
|
other: over %{count} years
|
|
x_days:
|
|
one: "%{count} day"
|
|
other: "%{count} days"
|
|
x_minutes:
|
|
one: "%{count} minute"
|
|
other: "%{count} minutes"
|
|
x_months:
|
|
one: "%{count} month"
|
|
other: "%{count} months"
|
|
x_seconds:
|
|
one: "%{count} second"
|
|
other: "%{count} seconds"
|
|
x_years:
|
|
one: "%{count} year"
|
|
other: "%{count} years"
|
|
prompts:
|
|
day: Day
|
|
hour: Hour
|
|
minute: Minute
|
|
month: Month
|
|
second: Second
|
|
year: Year
|
|
errors:
|
|
format: "%{attribute} %{message}"
|
|
messages:
|
|
accepted: must be accepted
|
|
blank: can't be blank
|
|
confirmation: doesn't match %{attribute}
|
|
empty: can't be empty
|
|
equal_to: must be equal to %{count}
|
|
even: must be even
|
|
exclusion: is reserved
|
|
greater_than: must be greater than %{count}
|
|
greater_than_or_equal_to: must be greater than or equal to %{count}
|
|
in: must be in %{count}
|
|
inclusion: is not included in the list
|
|
invalid: is invalid
|
|
less_than: must be less than %{count}
|
|
less_than_or_equal_to: must be less than or equal to %{count}
|
|
model_invalid: 'Validation failed: %{errors}'
|
|
not_a_number: is not a number
|
|
not_an_integer: must be an integer
|
|
odd: must be odd
|
|
other_than: must be other than %{count}
|
|
present: must be blank
|
|
required: must exist
|
|
taken: has already been taken
|
|
too_long:
|
|
one: is too long (maximum is %{count} character)
|
|
other: is too long (maximum is %{count} characters)
|
|
too_short:
|
|
one: is too short (minimum is %{count} character)
|
|
other: is too short (minimum is %{count} characters)
|
|
wrong_length:
|
|
one: is the wrong length (should be %{count} character)
|
|
other: is the wrong length (should be %{count} characters)
|
|
template:
|
|
body: 'There were problems with the following fields:'
|
|
header:
|
|
one: "%{count} error prohibited this %{model} from being saved"
|
|
other: "%{count} errors prohibited this %{model} from being saved"
|
|
helpers:
|
|
select:
|
|
prompt: Please select
|
|
search_placeholder: "Search"
|
|
default_label: "Select..."
|
|
submit:
|
|
create: Create %{model}
|
|
submit: Save %{model}
|
|
update: Update %{model}
|
|
number:
|
|
currency:
|
|
format:
|
|
significant: false
|
|
strip_insignificant_zeros: false
|
|
format:
|
|
delimiter: ","
|
|
precision: 3
|
|
round_mode: default
|
|
separator: "."
|
|
significant: false
|
|
strip_insignificant_zeros: false
|
|
human:
|
|
decimal_units:
|
|
format: "%n %u"
|
|
units:
|
|
billion: Billion
|
|
million:
|
|
one: Million
|
|
other: Million
|
|
quadrillion: Quadrillion
|
|
thousand: Thousand
|
|
trillion:
|
|
one: Trillion
|
|
other: Trillion
|
|
unit: ''
|
|
format:
|
|
delimiter: ''
|
|
precision: 3
|
|
significant: true
|
|
strip_insignificant_zeros: true
|
|
storage_units:
|
|
format: "%n %u"
|
|
units:
|
|
byte:
|
|
one: Byte
|
|
other: Bytes
|
|
eb: EB
|
|
gb: GB
|
|
kb: KB
|
|
mb: MB
|
|
pb: PB
|
|
tb: TB
|
|
percentage:
|
|
format:
|
|
delimiter: ''
|
|
format: "%n%"
|
|
precision:
|
|
format:
|
|
delimiter: ''
|
|
support:
|
|
array:
|
|
last_word_connector: ", and "
|
|
two_words_connector: " and "
|
|
words_connector: ", "
|
|
time:
|
|
am: am
|
|
formats:
|
|
default: "%a, %d %b %Y %H:%M:%S %z"
|
|
long: "%B %d, %Y %H:%M"
|
|
short: "%d %b %H:%M"
|
|
pm: pm
|