Luke
fd8b3c9862
fix(web/menu): fix scrolling clipping menu items
2022-08-04 15:04:49 +02:00
Luke
ed3e7ac733
feat(web/menu): include backspace in close keys
2022-08-04 15:04:49 +02:00
Luke
ce0bea3259
fix(web/menu): set selected index to 0 on menu open
2022-08-04 15:04:49 +02:00
Luke
7b147b04fc
feat(web/menu): tooltip description support
2022-08-04 15:04:49 +02:00
Luke
4236dd2bfd
feat(web/menu): exit listener and onClose function
2022-08-04 15:04:49 +02:00
Luke
6ef17e83f5
feat(web/menu): visibility handling
2022-08-04 15:04:49 +02:00
Luke
e97bd98726
fix(web/menu): fix selected value focus getting stuck on another menu
2022-08-04 15:04:49 +02:00
Luke
31d582df9c
fix(web/menu): fix not being able to press enter on first button index
2022-08-04 15:04:49 +02:00
Luke
bde843f803
feat(web/menu): enter callback function
2022-08-04 15:04:49 +02:00
Luke
d48ca25c7b
feat(web/menu): initial list menu Lua api
2022-08-04 15:04:49 +02:00
Luke
aa9b1334f2
fix(web/menu): debounce menu item selected callback
2022-08-04 15:04:49 +02:00
Luke
a2b5ccb354
feat(web/menu): confirm on enter callback
2022-08-04 15:04:49 +02:00
Luke
6d52ecf985
feat(web/menu): fetchnui on item change
2022-08-04 15:04:49 +02:00
Luke
4744df337f
feat(web/menu): add current and max option count into the list button
2022-08-04 15:04:49 +02:00
Luke
fd45418a5d
style(web/menu): change menu header font and weight
2022-08-04 15:04:49 +02:00
Luke
e81a05aa2d
fix(web/menu): set pointer events to none on body div
...
Fixes and issue where you could click the menu to take away focus and make it non interactable
2022-08-04 15:04:49 +02:00
Luke
700fdbc3fe
refactor(web/menu): separate header and body divs
...
This allows for the header to be visible even when scrolling through the menu items
2022-08-04 15:04:49 +02:00
Luke
a43b5eee04
feat(web/menu): list menu icon support
2022-08-04 15:04:49 +02:00
Luke
43ffa86387
refactor(web/menu): improve list menu text alignment
2022-08-04 15:04:49 +02:00
Luke
3f33b690e1
feat(web/menu): array side scrolling
2022-08-04 15:04:49 +02:00
Luke
3b9c8c5534
fix(web/menu): focus on first menu item on load
2022-08-04 15:04:49 +02:00
Luke
196d400c56
feat(web/menu): menu list focus trapping
2022-08-04 15:04:49 +02:00
Luke
98b9e224ef
refactor(web/menu): list menu component split
2022-08-04 15:04:49 +02:00
Luke
933acd2852
refactor(web/menu): improve menu focus handling
2022-08-04 15:04:49 +02:00
Luke
303d81c196
feat(web/menu): initial list menu design
...
Highly subject to change
2022-08-04 15:04:49 +02:00
Luke
c76147ecae
feat(web/context): context menu exit button
2022-07-25 21:32:11 +02:00
Luke
26f20adf58
chore(manifest): bump version
2022-07-12 19:35:49 +02:00
Luke
4fc6366801
feat(web/context): allow displaying icons in context menu items
2022-07-07 14:53:36 +02:00
Luke
92023227cd
fix(web/context): allow displaying image without any metadata defined
2022-07-07 14:36:20 +02:00
Luke
77652c8173
fix(web/context): stretch back arrow to height of the title
2022-07-07 14:33:55 +02:00
Luke
6fdbca0cb3
chore(manifest): bump version
2022-07-03 23:32:12 +02:00
Luke
0a1b465f52
Merge remote-tracking branch 'origin/master'
2022-06-30 11:11:32 +02:00
Luke
e34fb2855d
feat(web): vite
2022-06-30 11:10:02 +02:00
Luke
c4617f1f57
fix(web/settings): run the close function when exiting with ESC
...
Apparently no one notices the focus was being trapped if you were to exit with ESC
2022-06-29 15:39:12 +02:00
Luke
a3b8154b3e
feat(web/input): submit on enter press
2022-06-19 15:13:43 +02:00
Luke
5183607279
feat(web/input): number input type
2022-06-19 14:57:03 +02:00
Luke
038d27089c
chore(manifest): bump version
2022-06-17 20:48:07 +02:00
Luke
3034a32955
refactor(dialog/alert): allow defining cancel button
...
Using the same promise type of API that the input dialog is using, if the user closes the dialog via esc or the cancel button the promise will resolve `cancel` otherwise the promise will resolve `confirm`
2022-06-17 20:30:33 +02:00
Luke
4a20a0c3ff
chore(locales): add cancel string
2022-06-17 20:27:38 +02:00
Luke
de03da1204
chore(manifest): version bump
2022-06-16 16:31:23 +02:00
Luke
923a76896b
fix(web/progress): remove cancelled timeout animation
...
This is not a fix, it's a workaround, removes the red animation when cancelling due to it causing the progress bar/circle to be permanently stuck
2022-06-14 19:18:28 +02:00
Luke
835151162f
refactor(web/dialog): use locale for alert confirm button
2022-06-12 12:29:48 +02:00
Luke
7b6cf6682f
feat(web/input): display value when no label is provided for select
2022-06-11 11:59:00 +02:00
Luke
a7e2dc0067
feat(web/context): images in metadata
2022-06-11 11:49:25 +02:00
Luke
186014f95e
feat(web/dialog): alert dialog
2022-06-11 11:33:15 +02:00
Luke
780371f644
feat(interface/context): onExit function
...
Allows defining a function in the menu that must be called onExit which is going to execute every time the user exits the context menu with ESC
2022-06-04 14:42:35 +02:00
Luke
6108016796
feat(interface/context): ability to forcefully hide the context menu
2022-05-30 16:39:02 +02:00
Luke
f6c1871e54
fix(interface/context): set openContextMenu to nil when closing a menu
2022-05-30 16:34:13 +02:00
Luke
d872f5fa5f
fix(interface/context): don't hide menu when there is no event
2022-05-29 15:32:38 +02:00
Luke
df0750759f
fix(web/circleprogress): remove transition
...
Same as the progress bar, it was causing issues with rerendering when triggering fast
2022-05-29 15:26:25 +02:00
Luke
6194b2cc2c
fix(interface/context): increment received option id by one
2022-05-29 15:13:29 +02:00
Luke
d3ab996204
chore(web/dialog): remove leftover print
2022-05-21 20:55:52 +02:00
Luke
9c7d9c44b7
fix(web/progressbar): fix progressbar getting stuck on screen
...
Chakra's ScaleFade transition was causing the progress bar not to rerender properly
2022-05-10 16:39:05 +02:00
Luke
a784726267
feat(web/context): allow custom metadata order
2022-05-08 13:18:09 +02:00
Luke
62d4812f24
feat(web/context): allow manually sorting the options
...
In order to have the options in the same order as defined, you need to not use keys, instead a normal index table and define the title for the option
2022-05-08 13:00:23 +02:00
Luke
712a6763e8
fix(client): Missing event for defaultNotify
2022-05-03 21:57:41 +02:00
Luke
48dae99cc0
refactor(web/dialog): Separate fields into individual components
2022-05-03 15:08:28 +02:00
Luke
64a1ad9343
feat(web/dialog): Add option for left icon on input field
2022-05-03 14:36:33 +02:00
Luke
56f178af79
feat(web/dialog): Add Select input type
2022-05-02 20:18:16 +02:00
Luke
adafbce79f
fix(web/dialog): Use locales for buttons
2022-05-02 14:45:06 +02:00
Luke
0259de8dfe
feat(web/dialog): Add checkbox type
2022-05-02 13:51:08 +02:00
Luke
40a1c15339
chore(web): Fix eslint warnings
2022-05-01 11:09:25 +02:00
Luke
fdb330a38f
fix(client): Move loadLocale function out of init
...
Setting a locale causes the whole application to be rerendered, meaning that the fetch for init would also run every time when locale is set
2022-05-01 11:07:44 +02:00
Luke
4db4c79d8a
feat(web): Settings modal, locale state provider
2022-04-30 14:49:49 +02:00
Luke
b4efb510ef
chore(manifest): Bump version
2022-04-21 11:24:01 +02:00
Luke
08d2234484
feat(web/context): Allow manually displaying an arrow
2022-04-19 15:08:02 +02:00
Luke
f74a16d2c2
fix(web/input): Reset input data state on open
...
When putting data in the fields, after closing the dialog and opening it again the data wouldn't be visible but if you were to press confirm again then it would send the previous data
2022-04-19 10:44:17 +02:00
Luke
96d1f74f14
feat(client/web): Set clipboard export
2022-04-17 18:22:19 +02:00
Luke
e00ef6cbf5
refactor(web/progress): Rewrite progressbar component
...
Using chakra's built in progress component was causing weird container stretching when the progress bar would become active
2022-04-16 13:04:22 +02:00
Luke
e46fa203ca
fix(web): Ensure font awesome icons have fixed width
2022-04-16 12:08:55 +02:00
Luke
66f9460729
feat(client/notifications): Add default chakra notification functions
2022-04-16 12:03:50 +02:00
Luke
caa0b8284f
fix(client/context): Ensure is ordered correctly
...
Previously the menu items would be randomly ordered, now they are the order you wrote them to be in.
2022-04-16 11:48:24 +02:00
Luke
66694c4ce3
fix(web/context): Properly align text
...
When there was no description the key for the text wasn't properly centered vertically
2022-04-15 11:41:06 +02:00
Luke
282d81500c
fix(client/context): Throw error when context id doesn't exist
...
Opening a context menu before registering it would previously result in the script completely erroring out and having stuck nui focus
2022-04-15 11:27:08 +02:00
Luke
c21054280c
fix(client/context): Allow using events to open context menus
...
There was an issue where if you wanted to open a second context menu using args from the first context menu's item with events, the nui focus would get stuck beacuse it would get set by the event.
2022-04-15 11:26:11 +02:00
Luke
8ef1b876e1
fix(web/context): Don't close menu when clicking item without events
2022-04-15 11:01:17 +02:00
Luke
50b1ddd167
feat(web/context): Get open context menu function
2022-04-15 10:22:31 +02:00
Luke
7996e913dc
fix(nui): Update input dialog font
2022-04-12 14:38:01 +02:00
Luke
128fb86954
fix(client): Add missing NUI callbacks
2022-04-11 16:14:32 +02:00
Luke
ed75b683d5
feat(client): Text UI functions
2022-04-11 15:59:18 +02:00
Luke
ff71a7d033
feat(client): Input dialog function
2022-04-11 15:26:10 +02:00
Luke
3d3a7075d2
fix(nui): Make description optional
2022-04-11 14:51:28 +02:00
Luke
8d375569ab
fix(nui): Fix incorrect string typing and remove tsignore
2022-04-11 14:41:07 +02:00
Luke
285f30f8fe
feat(nui): TextUI icon support
2022-04-01 22:04:14 +02:00
Luke
993b06e880
refactor(nui): Better organize components
2022-04-01 21:41:53 +02:00
Luke
c31fed2c41
chore(nui): Get rid of linting warnings
2022-04-01 21:23:45 +02:00
Luke
d6b21a0481
feat(nui): Context menu Lua callbacks
2022-04-01 21:22:14 +02:00
Luke
8156a123f7
fix(nui): Set frame visibility to true by default
2022-04-01 20:25:19 +02:00
Luke
a7dd713b6b
feat(nui): Context menu sub menus
2022-03-28 16:49:07 +02:00
Luke
edce4b4a82
fix(nui): Don't display metadata popover if there is no metadata
2022-03-27 19:10:44 +02:00
Luke
ac832d4840
refactor(nui): Move context items into separate files
2022-03-27 18:17:26 +02:00
Luke
ccf00a6a9e
feat(nui): Add markdown support to text ui
...
Also changed the font to be a monospaced font, avoids weird alignment issues
2022-03-26 11:02:38 +01:00
Luke
a3874965bc
feat(nui): Add scale fade transition to context menu
2022-03-26 09:59:26 +01:00
Luke
331fb890c9
feat(nui): Display an arrow if an item goes into a sub menu
2022-03-26 09:55:05 +01:00
Luke
f346d2ad99
refactor(nui): Context menu style adjustments
2022-03-25 23:56:50 +01:00
Luke
e3ef55b999
feat(nui): Metadata popover
2022-03-24 20:00:09 +01:00
Luke
637d6d8e99
feat(nui): Context menu metadata mapping
2022-03-23 17:52:30 +01:00
Luke
87df1afbe2
feat(nui): WIP Context menu
2022-03-22 21:41:56 +01:00
Luke
d716cc7326
feat(nui): Use pnpm instead of Yarn
2022-03-20 22:11:45 +01:00
Luke
3148ef6b1f
refactor(nui): Styling and sizing changes
2022-03-20 19:58:52 +01:00