Commit graph

2145 commits

Author SHA1 Message Date
Evan Czaplicki
92af8a4f0d Bump year for elm-server 2014-03-21 15:28:57 -07:00
Evan Czaplicki
3a036d9621 Bump version number to 0.12 2014-03-21 15:28:35 -07:00
Evan Czaplicki
e2aa6087bc Fix opacity issue discovered by @halacsy 2014-03-21 00:54:31 -07:00
Evan Czaplicki
ef19d7146d Switch isFinite to isInfinite and improve documentation 2014-03-20 18:26:43 -07:00
Evan Czaplicki
804d895362 Merge branch 'pr/528' into dev 2014-03-20 15:41:27 -07:00
Evan Czaplicki
34c3112f68 add isNaN and isFinite as native functions 2014-03-20 15:37:10 -07:00
Evan Czaplicki
fa202eee2a Use full names 2014-03-20 12:49:01 -07:00
Evan Czaplicki
4bcae02c7d Switch to using the Helpers.prop instead of PropId directly 2014-03-20 12:47:12 -07:00
Evan Czaplicki
caf6fe480a Fix #527
When language-ecmascript upgraded from 0.15 to 0.16 they added more
validation of what values are valid variables. This adds in protections
to make sure that qualified variables like List.map generate valid
JavaScript.
2014-03-20 12:46:28 -07:00
Evan Czaplicki
3b3ee156f2 Fix #524
It seems that .test mutates the regular expression, whereas .match does
not. Whoo JavaScript!
2014-03-16 14:09:25 -07:00
Evan Czaplicki
154187c8f6 Format code to be a bit more readable 2014-03-13 11:43:29 -07:00
Evan Czaplicki
b65090173b Fix bug reported by @Dandandan in which a runtime error leads to a crash 2014-03-13 11:43:29 -07:00
Evan Czaplicki
b5f96fda15 Merge pull request #518 from mg50/patch-1
Fix accidentally non-local variables
2014-03-12 09:08:17 -07:00
Mark Grant
898f3f8361 Fix accidentally non-local variables 2014-03-12 02:23:25 -05:00
Evan Czaplicki
5c3ec5fae5 Get rid of non-standard function (not in Safari)
Thanks to @mgold for reporting!
2014-03-11 17:27:44 -07:00
Evan Czaplicki
1738a0821f Fix #512
Using -= permanently changed the value. I guess I forgot to think about
mutation :P
2014-03-09 12:56:50 -07:00
Evan Czaplicki
03b11dc0cb Fix #511
Thanks to @aforemny for discovering and reporting the issue!
2014-03-09 11:50:00 -07:00
Evan Czaplicki
eaee1370a4 Fix bug rendering text fields positioned in a container 2014-03-08 10:10:13 -08:00
Evan Czaplicki
0eae99a737 Fix bug from [Char] to native string switch. Empty strings are ignored again. 2014-03-08 09:02:13 -08:00
Evan Czaplicki
f1e2481641 cosmetic: adjust spacing 2014-03-08 08:48:08 -08:00
Evan Czaplicki
1f6fdd808b Finally remove unused files from source control 2014-03-08 08:33:37 -08:00
Evan Czaplicki
142c2c0261 Fix bug with log function 2014-03-08 07:37:06 -08:00
Evan Czaplicki
c920e0063d Fix error in which Keyboard.enter does not propagate correctly out of text fields. 2014-03-08 07:37:06 -08:00
Evan Czaplicki
fc8c3e03d3 Merge pull request #510 from mgold/patch-1
Docs: Use Maybe in annotation
2014-03-07 19:22:04 -10:00
Max Goldstein
c65bf4c17f Docs: Use Maybe in annotation
I caught this one just by reading, but it wouldn't be the worst idea to systematically make sure each example compiles.
2014-03-07 22:15:22 -05:00
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
b6ff387fd5 Update for changes to Graphics.Input.Field and Text libraries 2014-03-07 14:36:47 -10:00
Evan Czaplicki
1bec0cada0 Add more documentation 2014-03-07 14:28:36 -10:00
Evan Czaplicki
ed0380ef78 Try to improve documentation 2014-03-07 01:03:50 -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
0dcee3ec46 Fix errors pointed out by @mgold 2014-03-02 17:16:21 -10:00
Evan Czaplicki
9716a98403 Merge pull request #507 from mgold/string-docs
Docs cosmetic: format some examples in String
2014-03-02 17:01:00 -10:00
Max Goldstein
dcbbb3bf78 Move examples onto new line to match rest of library 2014-03-02 18:59:51 -05:00
Evan Czaplicki
5e7ed2bec5 Merge branch 'text' into dev 2014-03-02 12:43:45 -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
9423af410f Use Text.leftAligned instead of old Text.text in the runtime 2014-03-01 21:04:33 -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
e53ebfca30 Add a defaultStyle 2014-03-01 20:23:01 -08:00
Evan Czaplicki
0cf6ad25e1 Properly import show from the String library 2014-03-01 20:09:30 -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