Commit Graph

54 Commits

Author SHA1 Message Date
northsqrd
24cedb07ae feat(interface/multi-select): add maxSelectedValues (#563) 2024-05-08 04:28:52 +10:00
Lily
71b30b928d feat(web/select): searchable option (#513) 2024-03-10 14:06:11 +01:00
Luke
36662050ff chore: optimize imports 2023-11-15 15:32:04 +01:00
Luke
882e372895 feat(web): font awesome icon animations 2023-11-15 15:28:21 +01:00
BerkieBb
3c0136afd8 feat(web/input): returnString for date inputs (#411)
* feat(interface/input): useFormat field

* feat(interface/input): useFormat field

* feat(types/dialog): useFormat field

* feat(components/date): format date conversion

* tweak(components/date): forgot other data type

* chore(interface/input): more descriptive name

* chore(interface/input): more descriptive name

* chore(types/dialog): more descriptive name

* tweak(components/date): reset things

* feat(dialog/input): date conversion with returnString

* refactor(web/input): remove unnecessary state

---------

Co-authored-by: Luke <39926192+LukeWasTakenn@users.noreply.github.com>
2023-09-11 23:17:35 +02:00
Lunar-Scripts
2393a64e50 Add step property to NumberInput. (#401) 2023-09-01 20:14:13 +02:00
daZepelin
99519d3d8e feat(web/dialog): precision prop for number input (#372)
* feat(web/input): added precision prop for number input

* fix(web/input): added missing disabled prop to checkbox

* fix(web/input): correct icon for debug data

* fix(web/input): remove step prop from typings

* fix(web/debug): remove step prop
2023-07-27 11:44:08 +02:00
RIOT
78e0e52656 fix(web/input): block form submission with unclamped numbers (#360) 2023-06-25 11:41:35 +02:00
Luke
45e9588d48 fix(web/input): don't allow user to submit form with unclamped numbers 2023-06-25 00:15:37 +02:00
Lockwood
9a0fc24e69 feat(interface/input): minLength & maxLength option (#286) 2023-05-09 00:00:47 +02:00
Luke
c011d51184 fix(web/input): fix select throwing error when there's no options sent 2023-03-10 20:02:13 +01:00
Luke
829bec2592 refactor(web): move all types into typings folder 2023-02-15 13:25:44 +01:00
Luke
59a495a541 refactor(web/input): improve typings 2023-02-14 11:17:39 +01:00
Luke
7bb2eb2ea7 refactor(web/input): separate date and time fields 2023-02-14 10:54:53 +01:00
Luke
14341a0343 chore(web): remove unused code 2023-02-13 21:24:33 +01:00
masonschafercodes
8a7e0f89d2 feat(web/input): time input field (#206)
* feat(web/input): time input
2023-01-31 18:41:42 +01:00
Luke
fcf33dbdfe refactor(web/input): add missing icon prop to color type 2023-01-20 10:30:42 +01:00
Luke
779ed8dd07 feat(web/input): multi-select row 2023-01-15 11:54:15 +01:00
Luke
8c4d770e46 feat(web/input): textarea row 2023-01-15 11:44:14 +01:00
Luke
b671181402 refactor(web/input): use date timestamp instead of object 2023-01-14 19:02:25 +01:00
Luke
f21b79786a feat(web/input): date range picker 2023-01-14 14:15:38 +01:00
Luke
a23b94ceb1 refactor(web/input): add icon to date picker 2023-01-14 13:56:05 +01:00
Luke
ec57d03791 refactor(web/input): set date to current if default is set to true 2023-01-14 13:55:43 +01:00
Luke
5245e27a75 feat(web/input): min and max date 2023-01-14 13:36:30 +01:00
Luke
d621aca29f feat(web/input): date input 2023-01-13 19:09:07 +01:00
Luke
d337bc096d feat(web/input): select row icon 2023-01-09 14:39:49 +01:00
Luke
8936191f2e feat(web/input): allow select to be cleared 2023-01-09 14:34:41 +01:00
Luke
c88ed6b299 refactor(web/input): default select to first option 2023-01-09 14:32:11 +01:00
Luke
f6e2d54bdb refactor(web/input): select backwards compat with no label 2023-01-08 11:50:44 +01:00
Luke
d5a9a3fb90 feat(web/input): required fields 2023-01-08 11:40:35 +01:00
Luke
6c4485b570 feat(web/input): color input field 2023-01-08 11:23:50 +01:00
Luke
855405da77 refactor(web/input): use mantine password field component 2023-01-04 13:51:24 +01:00
Luke
d0811be0ce refactor(web/input): use form control instead of controlled state 2023-01-03 18:55:02 +01:00
Luke
9f1ae6184a chore(web): remove chakra packages 2023-01-02 14:02:07 +01:00
Luke
c419474969 refactor(web/input): input dialog mantine rewrite 2022-12-16 15:00:01 +01:00
Luke
abff60d4ed fix(web): fix values persisting across input dialogs opened quickly 2022-12-16 09:40:28 +01:00
Luke
7cde7e0581 fix(web/input): ensure select rerender between dialogs
If opening another input dialog with select in the same row it would cause the value to be the same as the previous one as there was no rerender being forced because their keys were the same
2022-11-19 12:11:02 +01:00
Luke
d5e0305df9 fix(web/input): ensure number type input is max length 2022-11-19 11:04:34 +01:00
Luke
a1d2607286 chore(web): update react and chakra versions
hopefully nothing broke that I didn't notice prayge
2022-10-27 16:44:47 +02:00
Luke
8ad04de0bc refactor(web/input): move field components into fields folder 2022-10-27 14:22:15 +02:00
Luke
d4dc68f21e fix(web/input): remove unused isReadOnly property 2022-10-27 13:46:45 +02:00
Luke
a6a0e4905f feat(web/input): description tooltip on fields 2022-10-27 13:45:27 +02:00
davidxd33
4f69c7c5c1 feat(interface/dialog): disabled row property (#142)
* feat(interface/dialog): readonly, disabled flags

* Update TS prop types

* refactor(web/input): remove read only property

Co-authored-by: davidxd33 <dponce@gmail.com>
2022-10-27 09:17:53 +02:00
Luke
39f7b6d78a fix(web/dialog): set slider value to min if default is not defined 2022-10-05 16:16:39 +02:00
Luke
b638e435ea feat(web/input): allow defining icon for number row field 2022-09-08 12:00:41 +02:00
Luke
4a5251b60b chore(web): add prettier and format 2022-08-27 15:58:36 +02:00
Luke
52ce1c53ae feat(web): support min and max value for number input type 2022-08-27 15:54:43 +02:00
ANTOND
f3ca6ee504 feat(web/dialog): add slider input type (#69) 2022-08-10 21:05:27 +02:00
ANTOND
cb5dac6151 refactor(web/dialog): split interfaces (#68)
* tweak(interface/menu): SetNuiFocusKeepInput

Default to allow input; disable with "disableInput = false" during registration.

* refactor(web/dialog): Split interfaces

for better typing of row options for different input types

* fix(web/dialog): Use proper type for onChange event

Co-authored-by: Linden <65407488+thelindat@users.noreply.github.com>
2022-08-09 23:50:14 +02:00
ANTOND
de8fb447a9 fix(web/dialog): setting non-selectable placeholder (#67)
* tweak(interface/menu): SetNuiFocusKeepInput

Default to allow input; disable with "disableInput = false" during registration.

* fix(web/dialog): Setting non-selectable placeholder

React doesn't like the 'selected' attribute (causing a warning in web console - not in-game).

'defaultValue' should be used instead so there is no need to create placeholder option if 'defaultValue' is already defined by row options.

* fix(web/dialog): Use proper type for onChange event

Co-authored-by: Linden <65407488+thelindat@users.noreply.github.com>
2022-08-09 23:37:31 +02:00