« get me outta code hell

tui-lib - Pure Node.js library for making visual command-line programs (ala vim, ncdu)
about summary refs log tree commit diff
path: root/ui
AgeCommit message (Collapse)Author
2018-08-15Save/restore selection on Dialog open/closeFlorrie
2018-08-05(perf) Cache scrollItemsLengthFlorrie
2018-08-05(perf) Make sizeProp not a getterFlorrie
2018-07-25New fitToParent functionFlorrie
2018-07-25Fix ListScrollForm.firstInput not having an effect immediatelyFlorrie
2018-07-05addChild(child, afterIndex)Florrie
2018-07-05ListScrollForm - fixLayout before checking dimensionsFlorrie
2018-07-04An assortment of changes to how selected/unselected worksFlorrie
2018-07-04Remove FocusElement.isFocused, add isSelectedFlorrie
FocusElement.isSelected behaves a little bit differently - basically it's true if the current selected element is that element, OR any of the ancestors of the current selected element is that element. It's also a getter, so you can't directly override it (assigning to el.isSelected won't work).
2018-07-03Handy functions on DialogFlorrie
2018-06-29Remove unused iac dependencyFlorrie
Also removed yarn.lock since I don't use yarn for this anymore.
2018-06-12Add WrapLabel UI elementFlorrie
2018-06-12Be a little careful in Form.updateSelectedElementFlorrie
2018-06-07Scroll bar for ListScrollFormFlorrie
2018-06-07Remove page up/down controls from ListScrollFormFlorrie
These are unfortunately based on the assumption that every input is exactly one character tall, and definitely don't work with horizontal scrollers, so I had to remove them.
2018-06-04Form.selectInput functionFlorrie
2018-06-04ListScrollForm.scrollToBeginning functionFlorrie
2018-06-04ListScrollForm.scrollToEnd functionFlorrie
2018-06-04ListScrollForm - don't bubble key pressesFlorrie
E.g. if up is pressed in a ListScrollForm, don't tell the parent element that up was pressed.
2018-06-03Page up/down controls in ListScrollFormFlorrie
2018-06-01Add scrollSelectedElementIntoView functionFlorrie
2018-05-31fillParent utilFlorrie
2018-05-31Let-const nitpicksFlorrie
2018-05-30Un-selectable inputsFlorrie
2018-01-19Pass false to firstInput to not select the form if it wasn't already selectedFlorrie
2017-12-09Add setValue and moveToEnd methods to TextInputFlorrie
2017-12-09Add Dialog.js file, apparentlyFlorrie
2017-12-09Make firstInput reset scrollItems in ListScrollFormFlorrie
2017-12-09Add removeInput method and captureTab property to FormFlorrie
2017-12-09Hide items which are scrolled past in ListScrollFormFlorrie
2017-07-03Fix the Act of Evil related to real-cursor visibilityliam4
2017-07-03Improve cursor displayliam4
- Whether the cursor is displayed or not is now based on the cursorVisible property rather than whether cursorX and cursorY are set or not. - The actual shell cursor is now invisible... this is objectively an act of Evil, though! This doesn't look like too hard to fix, thankfully. - A new cleanCursor function has been added to ansi.js.
2017-07-03Buttons and listsliam4
- Button class name changed to Button, from ButtonInput - Button layouts are now updated with fixLayout, rather than automatically when the text property is changed - Buttons now have a height of 1, so they can generally actually be used in layouts - New example for list form elements - List form elements let you navigate with up/down (or left/right, for horizontal lists) - List forms now have nextInput and previousInput methods
2017-07-03A long-due cleanup + examples + thingsliam4
..Obviously this breaks old things (particularly, see changes in FocusElement).
2017-01-07Initial commitLiam