Commit Graph

21 Commits

Author SHA1 Message Date
Quincy Morgan
d01bb78707 Reduce circular dependencies caused by importing from indexes, the location of the validation models, and the location of areaKeys (close #6237) 2019-04-24 13:45:59 -07:00
Bryan Housel
5e1ff74199 Replace lodash difference, intersects, union
(re: 6087)
2019-03-27 01:22:11 -04:00
Quincy Morgan
9f7ef21e5c The additional fields dropdown now mixes universal and moreFields and is sorted alphabetically 2019-01-17 11:37:05 -05:00
Bryan Housel
09e574983f Don't call formFields.tagsChanged() when presetEditor.tags change
(closes #5690)

This change also makes sure to use the latest copy of the entity in
field.isAllowed() to ensure the prerequisite field check works
and fieldsArr is filtered properly for #5583
2019-01-11 17:42:34 -05:00
Bryan Housel
b575ee8500 Move formFields klass from an argument to a state variable
(maybe needed in case render can get called different ways)
2019-01-11 13:56:16 -05:00
Quincy Morgan
a4b2924e4e Merge branch 'master' into field-prerequisite-tags 2018-12-13 17:23:54 -08:00
Bryan Housel
39b3f1df68 Avoid creating comboboxes
(closes #5568)

Several strategies in here:
- Move uiCombobox() from inside the render function to class variable
- Don't render stuff like the raw tag editor when it's collapsed
- Don't show as many fields/combos on hover
- Don't instantiate fields (like universal/more) until they're actually shown
- Bind the combo on enter selection not on update selection
2018-12-11 16:07:00 -05:00
Quincy Morgan
5471b909e2 Added mechanism for displaying fields conditionally based on tags 2018-12-09 20:11:31 -08:00
Quincy Morgan
4285f2f5c0 Added "moreFields" property to the field schema
The "Add field" dropdown can now be used to add preset-specific fields in addition to universal fields
2018-12-09 13:51:57 -08:00
Bryan Housel
ef0636ad01 For fields that use entityID, recreate field if entityID changes
(closes #5229, closes #4898)
2018-08-16 11:07:38 -04:00
Bryan Housel
34cdab9197 uiDisclosure now handles expanded state in localStorage
Now all the places that use a uiDisclosure won't have to do that
2017-11-27 17:13:57 -05:00
Bryan Housel
3d13620705 Convert lodah-es and d3 to named imports for ui 2017-09-26 11:22:43 -04:00
Bryan Housel
7563f3ac16 Refactor duplicate form-field code to uiFormFields 2017-08-15 09:35:57 -04:00
Bryan Housel
8a399096b2 Add options for fields, allow unwrapped fields (no label, buttons, etc) 2017-08-05 00:33:20 -04:00
Bryan Housel
216a04d962 Restore code to set state=hover (not sure if actually needed)
Also, fix hover style for textarea
2017-08-03 13:32:08 -04:00
Bryan Housel
6950220ced Update the tags before rendering 2017-08-03 13:04:17 -04:00
Bryan Housel
7076bcef16 uiField now dispatches own events 2017-08-03 11:28:10 -04:00
Bryan Housel
6fe1efaf35 Some variables and formatting 2017-08-03 11:13:07 -04:00
Bryan Housel
2e278ba5ef Fix "Add Field" combo 2017-08-03 10:28:07 -04:00
Bryan Housel
1bf514b7fc Move field rendering code from preset_editor to field.js 2017-08-03 01:10:59 -04:00
Bryan Housel
f6e76665a0 Rename uiPreset -> uiPresetEditor
(consistent with raw tag editor, raw member editor, etc)
2017-08-02 17:58:43 -04:00