Commit graph

266 commits

Author SHA1 Message Date
Evan Czaplicki
4fcc11a785 Move Field.Style to be the first argument to field, password, and email.
Sites are likely to use a uniform field style across each page or
website, so moving this argument to the front makes it easier to create
custom functions (myField = field myStyle).
2014-03-07 14:46:46 -10:00
Evan Czaplicki
3cd940f747 Merge pull request #508 from shashi/dev
Fix wrong return value in String.endsWith when sub.length > str.length
2014-03-04 08:12:46 -10:00
Evan Czaplicki
284438d494 Fix so that focus is still handled by the browser, not Elm.
This resolves the issue observed by Max and me in which focus always
jumped to the first text field on the page.

https://groups.google.com/forum/#!topic/elm-discuss/du9x7E9AkDE
2014-03-04 07:56:44 -10:00
Shashi Gowda
50b1a51029 Fix wrong return value in String.endsWith when sub.length > str.length 2014-03-04 02:05:50 +05:30
Evan Czaplicki
cbf7a8633b Revert "Get rid of Selection, simplifying the field API"
This reverts commit 8e2c6989b4.
2014-03-03 00:12:02 -10:00
Evan Czaplicki
8e2c6989b4 Get rid of Selection, simplifying the field API
Real reason is that setSelectionRange also sets the focus. This
behavior makes sense, so the underlying issue is that setting the
selection for two fields is not meaningful because only one can have
focus.

How to set focus (for fields or inputs in general) is not really
answered yet, so I think it makes the most sense to leave it out for
now.
2014-03-03 00:08:58 -10:00
Evan Czaplicki
4c43439cdb Fix typo that caused runtime error with buttons 2014-03-02 12:43:32 -10:00
Evan Czaplicki
093d7afb34 Move all field related stuff to Graphics.Input.Field and add the ability to style fields 2014-03-01 22:43:21 -08:00
Evan Czaplicki
10506b5663 Rely directly on Native.Show.show when needed 2014-03-01 22:07:48 -08:00
Evan Czaplicki
ae513a7f6e Remove dead code 2014-03-01 22:07:17 -08:00
Evan Czaplicki
61aab6292f Properly refer to the new Color.toCss function 2014-03-01 21:04:10 -08:00
Evan Czaplicki
9df2eac7c1 Expose toTypefaces and toLine for use within the core libraries 2014-03-01 20:23:08 -08:00
Evan Czaplicki
7e901a668f Move conversion from colors to CSS to the Color library 2014-03-01 20:08:38 -08:00
Evan Czaplicki
41aa1991ff Merge branch 'dev' into text 2014-03-01 19:26:55 -08:00
Evan Czaplicki
9723d2d41c Revamp the Text library so that there is an explicit Text.Style record
The Style record is needed to allow formatting of text fields!
2014-03-01 17:26:19 -05:00
Evan Czaplicki
74d0482ace Move show function to String library and get rid of Prelude library 2014-03-01 13:58:02 -05:00
Evan Czaplicki
d7e0f254fe Remove unused dependencies 2014-02-24 10:30:07 -05:00
Evan Czaplicki
1b098b9a21 Handle cut, paste, undo, and other changes that avoid onkeypress 2014-02-22 17:18:46 -05:00
Evan Czaplicki
162141b5bd Improve behavior of text field updates, but not entirely
Still need to fix behavior of copy/paste and undo.
2014-02-22 15:55:27 -05:00
Evan Czaplicki
fea6361da5 Fix silly naming bug with coverable and clickable 2014-02-21 12:28:16 -05:00
Evan Czaplicki
7d882ac01b Add library for simple logging, specifically for debugging. 2014-02-21 11:57:18 -05:00
Evan Czaplicki
5a39ddf7ac cosmetic: mess with style 2014-02-19 16:03:52 -05:00
Timothy Hobbs
c0d4c4de4b Declare the trampoline variable before using it.
This makes the trampoline "module" work in strict mode which you are now using everywhere.
2014-02-19 19:56:05 +00:00
Evan Czaplicki
ea28a87b7b Merge branch 'input' into dev
Conflicts:
	libraries/Native/Graphics/Input.js
	runtime/Render/Element.js
2014-02-19 08:00:33 -05:00
Evan Czaplicki
86436d7280 Merge pull request #502 from Xashili/dev
Added support for .pointer-events.
2014-02-19 07:50:38 -05:00
Evan Czaplicki
6a2d21fbdb Fix bug revealed by TodoFRP 2014-02-18 13:18:20 -05:00
Evan Czaplicki
0018d32627 Start using new Input type everywhere!
Whoo! :D
2014-02-18 12:14:10 -05:00
Evan Czaplicki
0c805d8c4f Get drop down menus rendering 2014-02-17 21:28:15 +01:00
Evan Czaplicki
49901dc5d3 Fix bugs in fields 2014-02-17 20:57:57 +01:00
Evan Czaplicki
1c832af6b0 Attempt to revamp the Graphics.Input library, much testing still needed 2014-02-17 17:38:37 +01:00
Evan Czaplicki
8fbb9c799d Cosmetic: adjust indentation 2014-02-17 10:42:13 +01:00
Evan Czaplicki
f0f84cbb54 Introduce the HowMany type to simplify API 2014-02-10 20:08:40 +01:00
Evan Czaplicki
f51ddf9e4e Fix stupid error in Bitwise library 2014-02-08 19:42:44 +01:00
Evan Czaplicki
f5c612f13c Add Date.fromTime function, based on PR #357 2014-01-28 23:56:24 +01:00
Evan Czaplicki
f636b7576f Merge pull request #409 from maxsnew/keepWhen
Change semantics of keepWhen/dropWhen.
2014-01-28 06:18:04 -08:00
Evan Czaplicki
007ea7126f Get rid of isClicked
It can be argued that everything should be derived from isDown and
position (the two real facts about the mouse), so maybe that is a
direction to go from here.
2014-01-27 12:29:52 +01:00
Evan Czaplicki
4ef397c3dc Get rid of dead code, cannot be called because of the type checker 2014-01-24 18:07:07 +01:00
Evan Czaplicki
5d5b01cb2d Merge pull request #456 from maxsnew/trampoline
Trampoline
2014-01-24 08:31:58 -08:00
Max New
b47166144d Simplify Trampoline datatype. 2014-01-20 14:38:12 -06:00
Evan Czaplicki
df95c68c56 Fix problem with Text alignment! 2014-01-20 20:54:16 +01:00
Max New
50bc5a493f Remove old JS dropWhen/keepWhen 2014-01-20 11:22:06 -06:00
Evan Czaplicki
4e5ba54934 Revert "Merge pull request #462 from jvoigtlaender/Mouse.isClicked-correction"
This reverts commit 26b7fc617f, reversing
changes made to 9be0abd018.
2014-01-20 17:09:34 +01:00
jvoigtlaender
c3c12b929b change Mouse.isClicked to adhere to its documentation 2014-01-20 07:46:49 +01:00
Max New
8ae1c1c246 Add native Trampoline support for unbounded recursion 2014-01-18 13:41:19 -06:00
Evan Czaplicki
996848ce86 Simplify the JS API for sending values to signal ports, making error handling more reasonable 2014-01-16 18:30:44 +01:00
Christian Widera
62540a9065 Added support for .pointer-events. 2014-01-15 23:01:32 +01:00
Evan Czaplicki
2f38eec8f8 Show nicer error messages when module initialization fails due to invalid port values 2014-01-14 11:49:33 +01:00
Evan Czaplicki
32fbbca5b2 Generate conversion code for ports 2014-01-13 19:32:54 +01:00
Evan Czaplicki
e2aff93df9 Make the fix from #435 2014-01-13 11:01:10 +01:00
Evan Czaplicki
d81941d9c0 Move JS code for ports to their own module 2014-01-06 07:47:05 +01:00