Skip to content

Conversation

mrflix
Copy link
Contributor

@mrflix mrflix commented Sep 9, 2016

First design steps

martinrode and others added 17 commits September 1, 2016 17:02
- removed jQuery and added jQueryCompat.coffee CUI.DOM - new: children, width, height, append, prepend, empty insertBefore, insertAfter, is, getRelativePosition, setDimension, getDimension - removed: setStylePx, use setStyle instead - getDimensions: new values, borderTop* and offsetTopScrolled, offsetLeftScrolled
- More work for jQuery removal, improved compat layer - copyObject can now copy CUI objects (using CUI.Element::copy) CUI.DOM - New Functions "removeChildren", "replaceWith" - Improved "append", "prepend": they also accept boolean and number now. - Fixed "parents" to really filter parents
- new: "htmlToNodes", turns HTML into a list of Nodes. jQueryCompat - Fixed appendTo and prependTo to return the node the function was called on, not the argument. DateTime - Open Popover with the Button as Positioner, not the Input. Sometimes the Inputs are so wide, that the Popover would be too many mouse miles away from the click. Label - Fixed "markdown" rendering. Uses CUI.DOM.htmlToNodes. - Added a markdown: true demo. Themes.ng - Make cui-label-content flex-direction: column. This fixes various problem we had with flex-direction: row. Our predominant direction is column, so I think this is the better choice. This also allows us to use less "align-self: flex-start" directives.
Conflicts:	src/elements/Button/Buttonbar.coffee	src/elements/Button/demo/ButtonDemo.coffee
- CUI.Label refinements: with mulitline: true use flex-direction: column, with multline: false, use flex-direction: row. This seems a natural choice and the right default. - Avoid text select cursor in ListViews
…sed Templates - Improved Internet Explorer compability: Turns out that classList.add|remove only takes one argument on IE. DOM - Have "remove" return the element passed. jQueryCompat - Added "remove" to the compat functions, if not exists (IE does not support "remove") - Pseudo-support "length" on wrapped nodes: this fixes code which does "closest(...).length > 0". - Suppot "attr" like jQuery: set on Array, get on first node only.
- Renamed Element to CUI.Element, Dummy to CUI.Dummy, Layer to CUI.Layer in many places. - copyObject: Copy CUI.Dummy and HTMLElemnts by reference. - copyObject: Output improved error message when Object keys could not be copied. jQueryCompat - Added "parent" to the compat functions - Moved compat warnings to $ and jQuery, no compat warning is issued when jQueryCompat is called directly. - Renamed all $.* calls to CUI.* calls (isFunction, isPlainObject, isEmptyObject) - Added "scrollIntoView" to node-Array supported functions
- More renaming Element -> CUI.Element CUI.Options - Set Sortable to axis: "y" Theme.ng - Set default font on TD.
- improved setAttribute: if value is null, undefined, or false, remove attribute, if value is true, set key == value. jQueryCompat - implement "find" for Array wrapper
- Added "Playground", a demo supposed to show all element necessary for design - Added icons to MenuDemo CUI - moved Button, DataField, Options into CUI namespace jQueryCompat - support "remove" on node Array
@mrflix mrflix closed this Sep 9, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants