Commit graph

1326 commits

Author SHA1 Message Date
James D. Forrester 957a2cb82a Update VE core submodule to master (f1dd298)
New changes:
f1dd298 Clear the surface observer when blurring

Change-Id: Ibb5a1020f4d4d9de68188cabde7615f9e181a37a
2014-04-15 16:45:52 -07:00
James D. Forrester aa3c520c1c Update VE core submodule to master (bb7124b)
New changes:
a997cc1 Debounce ce.Surface#onFocusChange
ef24608 Use document direction when a fragment has a null range
644243a Don't call select on a fragment if it's null

Change-Id: I22d00fd360539f286d815e747dd904bed87276c4
2014-04-15 15:42:37 -07:00
James D. Forrester 42f9d3e45b Update VE core submodule to master (d1f5386)
New changes:
2909ff9 Update OOjs UI to v0.1.0-pre (eba79af989)
1737a76 Add .focus() to SurfaceWidget
6fc4026 Code style typos
d1f5386 Update OOjs UI to v0.1.0-pre (8197f2cd2e)

Change-Id: Ia8edc2319ed0a4578652fb7e5b257061edd0a7c0
2014-04-15 15:23:30 -07:00
James D. Forrester 318f60365c Update VE core submodule to master (5aa55c5)
New changes:
f8a0e73 Followup 7e39f497: call parent method in DialogTool so disabling works
185a00f Fix typo in ve.dm.Scalable
63390ab Update OOjs UI to v0.1.0-pre (eca1fc20e7)
1f636cf Detect document focus properly and allow null selection in model
82ad081 Event sequencer cleanup
1b6a622 Create ve#contains
07132bc Prevent pasteTarget selection while already selected
32b7f47 Make the DOM hash ignore text node splitting
5243788 Revert "Make the DOM hash ignore text node splitting"
5aa55c5 Re-apply "Make the DOM hash ignore text node splitting"

Change-Id: I8c4ab05a0ff206fdca470c42008768626449e2bc
2014-04-14 16:16:22 -07:00
James D. Forrester dc5ec4f256 Update VE core submodule to master (1064150)
New changes:
de81534 Put CommandHelpDialog keyboard shortcuts in kbd not div elements

Change-Id: I1070e824814f92ef322a58af9552e64fa3018d05
2014-04-11 12:06:45 -07:00
James D. Forrester aeec009c14 Update VE core submodule to master (74353d9)
New changes:
af131d3 Clean up ve.dm.SurfaceFragment#isolateAndUnwrap a bit
b064ae8 Convert language name to lower case when looking for i18n file
f16dcac Fix ve.dm.SurfaceFragment#getSelectedNode
0fe1152 Clean up lots of minor things in SurfaceFragment
aec3043 Add excludeInsertion to translateRange()
f930950 Add excludeInsertion property to SurfaceFragment
a7ddd89 Exclude insertions in ve.dm.SurfaceFragment#isolateAndUnwrap
8108a0f Remove zh-[hk|tw] in favour of zh-han[s|t]
74353d9 Update OOjs UI to v0.1.0-pre (729c7bbe31)

Change-Id: I7aaebb071d544aec069d5ddab68740d93aed5bf4
2014-04-10 10:25:28 -07:00
Ed Sanders 0e51180709 Update VE core submodule to master (55a5cdc): use new ve.ui.Dialogs and ve.ui.Inspectors
Move various bits of code from initialize to setup as required.

MWDialog is now useless so use ve.ui.Dialog directly.

New changes:
0b2d03f [BREAKING CHANGE] Pass fragments, not surfaces, to windows (reprise)
0101ac4 Update OOjs UI to v0.1.0-pre (ac6848398c)

Change-Id: I0fae3e5ff2bd0da5b74c244af226b07b1f5883bd
2014-04-09 20:28:30 -07:00
Roan Kattouw f2422d916c Update VE core submodule to master (c150259) for scalable changes
ve.dm.Scalable is now a computational model for image scaling and
size manipulation. This commit adjusts the nodes and the edit and
insertion dialog to handle the new scalable model, and by that
use a centralized computational engine for all scaling and size
changes.

New changes:
3ec19fb8 Refactor Scalable functionality

Change-Id: I017a017924f544cc8bc9b7d8245335759ae0e890
2014-04-09 17:29:49 -07:00
James D. Forrester 273759a657 Update VE core submodule to master (b1f8fe2)
New changes:
9c716a6 Fix covering annotations logic
b1f8fe2 Prevent context flashing on window resize

Change-Id: Ib0e6fbf440944a2b12072c32813794fe759ea917
2014-04-09 16:44:33 -07:00
Roan Kattouw ca6a9da129 Update VE core submodule to master (35c09bf)
New changes:
33e6dcd Update OOjs UI to v0.1.0-pre (98570355f6)
a90eb8c Inspectors should only hide on blur if the selection has been cleared
d6feda2 grunt: Run grunt-build as part of grunt-test and grunt-watch
3972dce Apply annotations to partially annotated selections
5b157e2 Debug bar fixes
8907f17 Use new banana checker as a linter to avoid lacking qqq messages
a6bdc7a Re-sync generated files output from `grunt`
cf31d70 Localisation updates from https://translatewiki.net.
4c2e83a Listen to close events on window sets to give focus back to the surface
290d593 Set content directionality on the model
9772a50 Use #isContentOffset instead of slug detection for word expansion
7203025 'The great ' + getRandom(classList) + ' rewrite of ' + new Date().getFullYear();
4964b82 Localisation updates from https://translatewiki.net.
957d81c Revert "'The great ' + getRandom(classList) + ' rewrite of ' + new Date().getFullYear();"
35c09bf Update OOjs UI to v0.1.0-pre (70932872ba)

Change-Id: I205604fb8bd93948b7de84498da7fdf30fc70c1d
2014-04-09 11:20:33 -07:00
James D. Forrester a29e447e1c Update VE core submodule to 58c01b5
New changes:
58c01b5 Fix debug bar margins

Change-Id: I07ef4d9da5c325bd7a9918bcd1738f80bafe39ba
2014-04-04 12:33:48 -07:00
James D. Forrester 33e21197ca Update VE core submodule to master (7f97fd8)
New changes:
7f97fd8 Update OOjs UI to v0.1.0-pre (eaa1b7f06d)

Change-Id: Icd448a81fe6330e264de58f3f1a83b7bd36339d2
2014-04-04 10:41:51 -07:00
Roan Kattouw 1a092a604e Update VE core submodule to master (8dd6a63)
New changes:
acdd445 Minor documentation fixes
79cd956 Update OOjs to v1.0.9
d5c53e1 Restore selection after ListAction too
4df22a0 Separate out debug bar for use outside the demo

Change-Id: Iba582a7f1027172828a7cf88976d1d37d05cd7e7
2014-04-02 17:33:29 -07:00
Roan Kattouw 03c5822b6b Update VE core submodule to master (c5f4f78)
Also update tools for changes in VE core.

New changes:
e4de14b Make tools use commands
e029817 Make getToolsForNode place primary commands first

Change-Id: I66575ee6d49e6b2f5a5f789978da98bb55e6dc5e
2014-04-02 16:30:12 -07:00
Roan Kattouw 39f8019c47 Update VE core submodule to master (9484b81)
New changes:
b045c0c Localisation updates from https://translatewiki.net.
3221c45 Introduce ve.ui.Tool
c3a2a85 Detect document focus properly and allow null selection in model
03fed20 Localisation updates from https://translatewiki.net.
07dfc7d Actually use getRelative[Content|Structural]Offset wrappers
8fced5f Show VE demo error in VE
547e3d2 Localisation updates from https://translatewiki.net.
d6316f5 Fix handlesOwnChildren check in getRelativeOffset
e23f1ab Style link inspector on mobile
5968559 Localisation updates from https://translatewiki.net.
4bce90c Bump jscs to 0.4.1
7e39f49 Disable certain tools when surface has no range
edde8ca Emit event when insertion annotations change
2a89173 Update OOjs UI to v0.1.0-pre (8986c46d35)
103c4b9 Support null ranges in the demo debug bar
9eb3810 Adjust loop counters in word break detection when removing item
914e002 Skip over handlesOwnChildren nodes in newFromAnnotation
ef6096a Improve hasFocus check to compare the anchorNode to the parent
18171bf Revert "Improve hasFocus check to compare the anchorNode to the parent"
3950cef Revert "Detect document focus properly and allow null selection in model"
1c4cac4 Revert "Fix handlesOwnChildren check in getRelativeOffset"

Change-Id: Ic3054c668866307a5cfbb74f23efd82ceb2f0ee3
2014-04-02 16:15:01 -07:00
James D. Forrester e56b425120 Update VE core submodule to master (e972bb7)
New changes:
e972bb7 Split-up theme-specific styles

Local changes:
* Split-up theme-specific styles

Change-Id: I4af6c03413d49cb05031d439caf340ddef996355
2014-03-28 12:56:19 -07:00
James D. Forrester 6acac41490 Update VE core submodule to master (5a86ff9)
New changes:
6b1d082 Update OOjs UI to v0.1.0-pre (e9e435be5e)
24eec6f Fix ClickableNode documentation comment to add a missing period
d2fb10f Localisation updates from https://translatewiki.net.
5a86ff9 Update OOjs UI to v0.1.0-pre (23fb1b6144)

Change-Id: I167138e92ca502ca198692fcdd443b42d19ec1f0
2014-03-27 14:51:28 -07:00
James D. Forrester c149b1c071 Update VE core submodule to master (9c19df0)
New changes:
0318f64 Fix copyright year range for one file not updated to 2011-2014
4dbd57e Add <base> for relative URLs in tests
554cde9 Localisation updates from https://translatewiki.net.
c32448a Update OOjs UI to v0.1.0-pre (1c7875205a)
8f675c8 Localisation updates from https://translatewiki.net.
4fb929c Add a <base> to every test document by default
09c404c Protect against invalid/absent <base> in ve.resolveUrl()
05924db Use DOMParser in ve.createDocumentFromHtml() if available
9c19df0 Update OOjs UI to v0.1.0-pre (e697490c9b)

Local changes:
Use ve.dm.example.base for link tests in mwExample

Change-Id: I384e2a2edeebe9379de4910889a61670d9f734f5
2014-03-26 21:33:52 -07:00
James D. Forrester aa6983f9ab Update VE core submodule to master (f127451)
New changes:
e9cb138 Localisation updates from https://translatewiki.net.
bfae5fb Fix typo in documentation
54e688c Localisation updates from https://translatewiki.net.
f69bdbe Shut up warnings about calling cloneNode() with no parameters
f127451 Update OOjs UI to v0.1.0-pre (3db4b6974d)

Change-Id: Ie07c7c4cf023319e41025c11ab02dfc55f8d3145
2014-03-24 17:42:23 -07:00
Trevor Parscal 46e7f55ba5 Update VE core submodule to master (1adc9f5)
New changes:
e02cb87 Fix left-over autoAdd property that didn't get fixed with Idaf3041
74037b0 Split up omnibus CSS files into per-item ones
1adc9f5 Localisation updates from https://translatewiki.net.

Change-Id: I71498cd0b990aebd85dabb68afb3485350b8ac36
2014-03-21 16:42:33 -07:00
James D. Forrester 3ce49146fe Update VE core submodule to master (5003907)
New changes:
7b68782 Update OOjs UI to v0.1.0-pre (3b434d5388)
ecb194d Remove border-radius prefixes
993220a Fix invalid use of border shorthand syntax
580473e build: Clean up repo split left overs in Gruntfile

Incidental change:
* The OOjs UI-provided 'autoAdd' configuration option for tools has been
  replaced with 'autoAddToCatchall' and 'autoAddToGroup'.

Change-Id: Ie7646ae867e5c6ca616c3f9045c79b886e78475c
2014-03-21 19:08:04 +00:00
James D. Forrester 8931e97cc3 Update VE core submodule to 04d67d2ec817e6f9d8c983570f6080ee7acd1110
New changes:
bac2081 Update OOjs UI to v0.1.0-pre (0f50cdc46c)
08eaf66 Update context on transact, in addition to select
6151ffb Add class to internal item nodes
7d0062d Propagate destroy calls down to children of branch nodes
04d67d2 Use transaction comparison to decide to render or not

Change-Id: I86fb35b5863ed6d0d0ecd884df05b7dc8ff3756d
2014-03-21 11:45:24 -07:00
James D. Forrester a55b94a73c Update VE core submodule to master (8c7b4e2)
New changes:
f5d1e2a Create mixin that tries to execute primary node command
8c7b4e2 Actually add ClickableNode places

Change-Id: I7b641c620fbf28a4e98865c7d4e152d554017e70
2014-03-19 17:25:23 -07:00
James D. Forrester 6622093947 Update VE core submodule to master (afbe6b5)
New changes:
1787e33 Fix ContentBranchNode echo suppression at the ends of text nodes
8e8a6be Refactor getToolsForNode and getToolsForAnnotation
f967be6 Localisation updates from https://translatewiki.net.
8f14d05 Prevent comparable annotations from being applied twice
f37887a Check if newly focused slug is different to previous slug
d13bb36 Localisation updates from https://translatewiki.net.
afbe6b5 Update OOjs UI to v0.1.0-pre (53f2410336)

Change-Id: I4836f8df2d2cafa313f54e127f2445f7d8cd445d
2014-03-19 15:58:13 -07:00
Roan Kattouw 99de3f2e31 Update VE core submodule to master (f1249ec)
Update MWMediaDialog for .static.config -> .static.dialogData
rename in VE core.

New changes:
61e34f3 Only insert slugs where paragraphs are allowed
f65983d Don't try to return the document in getCoveredNodes
b9313ba Remove incorrect documentation for the .static containers
16874e2 ve.ui.Trigger: Clean up indentation and documentation
0eeba06 Cleanup docs and method of tools

Change-Id: I7bfb500ace1acc360cc24de2763e3f52fbb82a0e
2014-03-17 18:45:00 +00:00
James D. Forrester 5e4af875c1 Update VE core submodule to master (aaad03a)
Also update ContentBranchNode test for changes in VE core

New changes:
bdf9a9f Merge two Properties blocks in DesktopContext
d3c22bb Make ContentBranchNode echo suppression work in CBNs that contain inline nodes
aaad03a Localisation updates from https://translatewiki.net.

Change-Id: I3e1757b42307c3bd52ba0571068eb1c6bfb5ab89
2014-03-16 16:53:53 -07:00
James D. Forrester 7f088cbc60 Update VE core submodule to master (cd00a93)
New changes:
a651f19 Style MobileContext as a dropdown drawer
cd00a93 Bring back localOverlayMenus, but only in DesktopSurface

Change-Id: Iec87b5b48f5441ef4ceec5a6e20fd4d407e18f60
2014-03-14 13:48:29 -07:00
Trevor Parscal 42ba981e27 Update VE core submodule to master (520299e)
New changes:
dd15f23 Split ve.ui.Surface into DesktopSurface and MobileSurface
16283f4 Add OOjs UI's sco.json i18n file
ef94038 Split ve.ui.Context into DesktopContext and MobileContext

Minor adjustments to point to desktop and mobile Surface or Context.

Change-Id: I7cf6f99a5a1216a28a7146afcd4deb68c7eac38e
2014-03-14 13:13:02 -07:00
James D. Forrester 9d7eeddb7c Update VE core submodule to master (07923f7)
New changes:
05f775d Update OOjs UI to v0.1.0-pre (46ccd5b3a7)
2fc4673 Localisation updates from https://translatewiki.net.
07923f7 Update OOjs UI to v0.1.0-pre (ac0cc69508)

Change-Id: I7a959bc500a7dbf69305985de43b7814cd010838
2014-03-14 11:24:30 -07:00
Roan Kattouw 0072aeb9a1 Update VE core submodule to master (8c017ae)
Also update VE-MW for the comment changes in VE core

New changes:
4ad6a3d Add text direction to SA demo
89503e8 ve.ce.Node: Emphasise slug transition with increasing outline offset
864046e Update oojs to v1.0.8
65d1338 Localisation updates from https://translatewiki.net.
b66d482 Stop special-casing comments and recognize them as tagName='#comment' instead
09dda12 ve.ce.getDomText: Document node types and use .data instead of .nodeValue
b0a3b2a Make ve.dm.Converter assertions actually display message
ef791cc Make 'comment' its own metaitem type
d5ef0d7 ve.dm.Converter: Refer to nodes instead of elements where appropiate
c22c8af Fix JS error when pressing Enter with selection across multiple paragraphs
a26a708 Add ve.dm.Transaction.newFromReplacement
a9e136e Don't cause needless surface refreshes on overwriting.
6fd35ee Split part of getOpeningHtmlTag out to getHtmlAttributes
2c31f67 ve.ce.Surface: Document version number in focus workaround for Opera
e069e74 Add some more characters to the special character inserter

Change-Id: I859805fb261468e8fae9454c4992115369066b49
2014-03-12 16:15:54 -07:00
Roan Kattouw d75e31ac0b Update VE core submodule to master (a2ac637)
New changes:
2074a5d Fix application of slug focus classes
9f4ab6a Have Protected/ResizableNode respond to rerender event
9d7a290 Rerender focusedNode after slug collapse
de7d9ab Use en-us spelling 'focused'
7fae4c2 Add missing returns documentation to getSurfaceFragment
5177898 Remove unneeded assignment
a1c12c2 Localisation updates from https://translatewiki.net.
5648139 Localisation updates from https://translatewiki.net.
548728a Restore error box to VE demo page
684e55d Localisation updates from https://translatewiki.net.
3c4a081 ve.ce.Node: Change slug color from darker grey to lighter blue/grey

Change-Id: Icb20d78bb1fe65dd9107e43317148d4990bcfc6b
2014-03-10 13:48:33 -07:00
James D. Forrester 763c203821 Update VE core submodule to master (beb5e43)
New changes:
3349216 Bold/italic icons for fa
e1d8ebd Add oojs-ui-apex.css to modules.json
beb5e43 Update OOjs UI to v0.1.0-pre (8b13d2b7f7)

Change-Id: I6f46569ed7a95273c72f9629e02f7d7a3fbf4870
2014-03-06 14:45:00 -08:00
James D. Forrester 44352e675d Update VE core submodule to master (c81252c)
New changes:
08d1b0b Alignment icons
0e418e8 Update constructors of inspectors and dialogs as per changes in I345d6e6
c81252c Update OOjs UI to v0.1.0-pre (e1b23620c0)

Change-Id: I6e904dcce0116c34373fda4a8fe86f7603bfea59
2014-03-05 17:24:22 -08:00
Trevor Parscal 27cda86183 Update VE core submodule to master (ab70193)
Also update for dialog size changes on oojs-ui, and make the
save dialog grow from 'medium' to 'large' when viewing a diff.

New changes:
ae195ac Update OOjs UI to v0.1.0-pre (e4f6ce0156)
ab70193 Pass surface set into ve.ui.Dialog and ve.ui.Inspector

Bug: 60494
Change-Id: Ib3065e228459aa00f18c309d234f3324fdb34059
2014-03-05 16:34:14 -08:00
Roan Kattouw 19f7afb70e Update VE core submodule to master (165594b)
Remove GroupButtonWidget since it was removed in VE core.

New changes:
22edcd9 Special character inspector styling

Change-Id: I385d6b655686c753262258714dec06f8b1e5fc10
2014-03-05 15:39:10 -08:00
Roan Kattouw 809a16701c Update VE core submodule to master (e64d6e7)
New changes:
c0fa88a Cleanup SpecialCharacterInspector
50fe498 Store previous range in breakpoint for undo
1333306 Support platform specific message in keyboard shortcuts dialog
6bfbf53 Collapse block slugs and expand on hover/focus
ed33efb Slightly strong shading on slug hover target
4513d9c ve.ce.Node: Clean up whitespace in rgba?() syntax
8a4da8e Make the 'full size' button optional
3530f8d ve.ce.Node: Don't use padding or height in the slug transition
d3423df Support multiple shortcuts per trigger
3521fa3 Add cmd/ctrl+y as alternative shortcut for redo
873bfef Add cmd/ctrl+m as alternative shortcut for clear formatting
00b0e63 Fix rendering of multi-shortcut actions in shortcut dialog
a010dea Add Ctrl+Shift+/ shortcut for the shortcuts dialog

Change-Id: I208fba38cf6338bfc1fad2683406931071cf5f32
2014-03-05 14:25:53 -08:00
James D. Forrester a78a8b458e Update VE core submodule to master (48dd09a)
New changes:
48dd09a Update OOjs UI to v0.1.0-pre (8ac38a5c31)

Add OOjs UI's new Apex theme to the module definition (for users on
older versions of MediaWiki that do not have it available).

Change-Id: Ia79c2380aa2368d58e5980131cf70c91576dfd49
2014-03-04 11:45:12 -08:00
James D. Forrester 73f7707f4e Update VE core submodule to master (f93e960)
New changes:
5bde356 Update OOjs UI to v0.1.0-pre (f3bc5c6c1c)

Change-Id: Ic7114ffef63c26d4d73a6c86b7e3d62330f7641f
2014-03-03 18:52:11 -08:00
James D. Forrester 5823976fff Update VE core submodule to master (674b245)
New changes:
7c5b7be Increase keyboard shortcut height hack to work in FF
c9fb99d Changeable UI language in SA demo
6a885bf Localisation updates from https://translatewiki.net.
674b245 Update scripts: Ensure clean master, latest npm dependencies, abort on grunt error

Change-Id: I0648d6ea531fbfbab5a5230911a5e98819538158
2014-03-03 18:34:48 -08:00
Roan Kattouw 810fc7df16 Update VE core submodule to master (74be717)
Also add MW configuration for ModelRegistry back, was removed in core.

New changes:
564c459 Localisation updates from https://translatewiki.net.
f30e061 Consistency in test header comments
74be717 Remove MW-specific config and genericise tests in ModelRegistry

Bug: 53148
Change-Id: I67e77bd41bbff52f88632ff9e4cf5e4c48251174
2014-03-03 11:24:56 -08:00
Trevor Parscal cbd3419dfb Update VE core submodule to master (ac4b49a)
Also update template/transclusion code for OOJS UI
OutlineControlWidget changes, and uses some of the new
functionality.

New changes:
ac4b49a Update OOjs UI to v0.1.0-pre (51f922ba17)

Change-Id: Id7a1f60cd6ce3bdaba7ccb8774563b9e81c75cad
2014-02-28 16:41:42 -08:00
Roan Kattouw be096d8c9e Update VE core submodule to master (74a059a)
New changes:
da51da3 ve.ui.MediaSizeWidget: Use lowercase types hint for primitive value
54a8606 Blur the surface when a dialog is opened
3c3234f Don't show phantoms for hidden protected items
0fb119b Fix handleEnter in nodes that don't split
74a059a Don't allow getNearestCorrectOffset to return -1

Change-Id: I7c5669eb780d4b73b056ce1ca5daed453e7398df
2014-02-28 16:23:21 -08:00
Roan Kattouw a1a5588aa8 Update VE core submodule to master (238c961)
New changes:
9426fe0 Check indentation was successful before trying again
a30d192 Add special case to de-indentation for slugs in listItems
91a275d Bold/italic icons for ar
523bbdb ve.js: Remove unused hasOwnProperty reference
016faa6 Add italic S icon, and set bold/italic for ksh
0910113 A strikethrough Y icon, and set bold/italic/strikethrough for fi
0c1c35d Allow annotations to remove other annotations
4305ccb Restore focus after node-destroying actions
55634da Localisation updates from https://translatewiki.net.

Change-Id: I8b390061fd7209245b3eff429954e6ec4271d8a3
2014-02-26 15:01:44 -08:00
James D. Forrester a8faf695b1 Update VE core submodule to master (f173ff2)
New changes:
0d7ee1a Resize handle images
83bbf97 doc: Use lowercase types where primitives (not objects) are expected
2808b15 Localisation updates from https://translatewiki.net.
010038c Update OOjs UI to v0.1.0-pre (68c91ae065)
76d7500 Localisation updates from https://translatewiki.net.
d787eb7 Add placeholders to MediaSizeWidget
baa64db Allow enforce(Min|Max)Dimensions to be changed
3afe645 Add 'change' event to MediaSizeWidget
0886f67 Localisation updates from https://translatewiki.net.

Change-Id: I5cb88b1cbf1b64de979fb393dcbb3e6b304766bc
2014-02-25 12:34:57 -08:00
Ed Sanders b9fe976145 Update VE core submodule to master (31fb320)
New changes:
ccdb9db Update OOjs UI to v0.1.0-pre (93f94e059f)
191d9d8 jsduck: Have a default --meta-tags setting
6f9b262 CONTRIBUTING: Refer to MediaWiki conventions for jsduck

Change-Id: Ibb135f587e35ef6751759faac5b3372153ad6c82
2014-02-21 13:35:11 +00:00
Ed Sanders ed0637a016 Update MWLanguageInputWidget to new API
As per changes in core:
* Use new #this.setAnnotationFromValues method.
* Inline 'initialize' in constructor.
* Bring over 'Change language' button.
* Rename 'Change language' button to 'Find language' and
  move to top of form so that it's obvious it's not just a submit
  button for the form.
* Properties -> local vairables.

Depends on If121603b5637 in core.

Change-Id: I059acea7258fc5097b747595e09fae394ab066ec
2014-02-20 15:30:09 -08:00
James D. Forrester fdabedf117 Update VE core submodule to master (b6b80c2)
New changes:
1dceca8 Fix shadow position in standalone toolbar
8f3f1b1 Localisation updates from https://translatewiki.net.
1a52e71 Localisation updates from https://translatewiki.net.
f53e80a Localisation updates from https://translatewiki.net.
4395f26 InputLabelWidget -> LabelWidget
d7ecba8 Localisation updates from https://translatewiki.net.
aa79a89 Fix SurfaceWidget documentation
c6ba29c Fix layout of keyboard shortcuts page
d871d48 Allow getAnnotationsFromOffset to ignore close elements,
627ced3 Fix ce#getOffset when cursor is to the left of an annotation.
b6b80c2 Dialog: Fix inline comment to use /* instead of /**.

Change-Id: I78a3d992660040281790d303b447de8cd7ee9acc
2014-02-19 18:43:18 -08:00
Roan Kattouw 88269996b3 Update VE core submodule to master (50ef8e8)
New changes:
71145fe Move commands into static getter so they can be overridden.

Change-Id: I47f0f1fc13c69c0c46ea54e2a1db5a48e1cacbe3
2014-02-14 18:05:32 -08:00
Trevor Parscal 4c2d4c14ea Update VE core submodule to master (8b545f4)
Also update use of OO.ui.PageLayout to work with changes in OOUI.

See: I58a279dd949a867a4698a791103d5a6f2bd4b67f

New changes:
8b545f4 Update OOjs UI to v0.1.0-pre (3a9a4c1da8)

Change-Id: Ib5063db055a63082d08b2858bffb9f854d76c01b
2014-02-14 17:53:59 -08:00
Roan Kattouw 5cdb3d3f4a Update VE core submodule to 72788ab0670bdc4343baa75f907b1a689bddecec
New changes:
fd9babf Localisation updates from https://translatewiki.net.
edd0561 Only allow pointer events on shields inside generated content nodes
d475984 Actually hide the size label when not in use
2d04297 Update OOjs UI to v0.1.0-pre (7d3223b8f4)
cca13e0 Update OOjs to v1.0.7-pre (9c04f3e917)
72788ab Localisation updates from https://translatewiki.net.

Change-Id: Ida75926ed2303c410a52141d1c1bb6a99b3e78f7
2014-02-14 17:36:37 -08:00
James D. Forrester fee4209d14 Update VE core submodule to master (43787a8)
Also run grunt locally to apply fix.

New changes:
43787a8 Add ve.Scalable to documentation listing

Change-Id: I3915272768d43aa12bdd932e4035d9bad48a09d9
2014-02-12 16:06:51 -08:00
Sam Smith 5ebacd389d Include edit status in the ve.deactivationComplete event
Rather than setting the wgPostEdit configuration variable when the
user uses VisualEditor, i.e. communicating via mutable global
state, include whether or not the user edited the page in the
ve.deactivationComplete event.

Bug: 52955
Change-Id: I0f5067550921008f74221d6c92882adfe404b3a5
2014-02-12 13:59:04 -08:00
Roan Kattouw d8c9c30999 Update VE core submodule to master (08083de)
New changes:
116dec8 Localisation updates from https://translatewiki.net.
a241e46 Make globalOverlay really global

Change-Id: Ic288779c99a30157e1b20f37bb8aed973b1e9afc
2014-02-05 17:27:57 -08:00
Ed Sanders fb4f7d3e24 The great image scaling rewrite of 2014 (MW)
Implement new logic in ve.Scalable from I5b4f0f91b.

Also update VE core submodule to master (57ed8d3).

New changes:
59a0afe The great image scaling rewrite of 2014

Change-Id: I24a2976036310d3814cc7d1853a68745e0499bd5
2014-02-05 12:55:11 -08:00
Roan Kattouw ba45289fb8 Update VE core submodule to master (b9598c6)
New changes:
0612b31 Allow style attributes to be pasted from other VE instances
aa02be3 Add 'forClipboard' mode to converter

Change-Id: I525584f06be4c13db0373d6d6e94a8f532a888fe
2014-02-05 12:41:00 -08:00
Ed Sanders 1e6daf1ee6 Implement surface paste rules for media/ref dialogs
Extend default paste rules to prevent lists/tables/references/headings
as applicable.

Also update submodule to master (76ff210).

New changes:
f1a927f Internal paste rules and type conversions

Bug: 59603
Change-Id: I952f98477219a55d25a2bd817344bde58a4862d4
2014-02-05 11:17:33 -08:00
Roan Kattouw db2661d020 Update VE core submodule to master (bb8d19c)
New changes:
9e674cb Add paste rules to surface widget config
57a1825 Localisation updates from https://translatewiki.net.
e3d279b Localisation updates from https://translatewiki.net.

Change-Id: I17539f856589e9c50c60ee737c8b16da63a41d6b
2014-02-05 10:52:58 -08:00
James D. Forrester 4cd9ab2b88 Update VE core submodule to master (54ab0cd)
New changes:
256fa43 A better label for the original size button

Change-Id: I828025ac0718f1908089d59a948e1a779da7b915
2014-02-03 20:50:31 -08:00
James D. Forrester 7b54c6d7a2 Update VE core submodule to master (5092503)
New changes:
2bd4437 Check target container is attached to ownerDocument
9620ea1 Localisation updates from https://translatewiki.net.
816e5df Update oojs to v1.0.7
975183e Upgrade UnicodeJS to Unicode 6.3 spec
0eedc9b Localisation updates from https://translatewiki.net.
1fc0d04 unicodejs: Make tool executable, fix path
5092503 Use new jscs options, disable deprecated JSHint checkstyle options

Change-Id: Ic549221c86a83c88c2c15c49ec969abe30e2dd17
2014-02-01 19:35:17 -08:00
Roan Kattouw c768b22bdd Update VE core submodule to master
New changes:
d4a0fef Simplify toDataElement
fc5046d Simplify toDomElements
d81e542 Tests for RDFa attribute preservation
674ab3e Make keyboard shortcuts dialog footless
3282caf Localisation updates from https://translatewiki.net.
9b4354b Fix balancing of data in cloneSliceFromRange
9ea3f42 Attach container to DOM before initialising target in demo
e7f2b68 Only call setOriginalDimensions when non-null values are provided
815d5e9 Localisation updates from https://translatewiki.net.
8834bbb Minor clean up and doc fixes
b6bd0e9 Fix typo in ve.ce.Surface test message
2ea4ca9 Show % scale on ResizableNodes

Change-Id: I1619b9c950ef7ff26e54df6444e61fff405fdef0
2014-01-27 18:39:47 -08:00
Ed Sanders 06afe0920e Update VE core submodule to master
New changes:
49d2fe6 Fixing ButtonWidget call in MediaSizeWidget
d9f39ee Fix RDFa attribute protection loop

Change-Id: I31e6486e9ec90626164c3920e58ffc484f8b2ae5
2014-01-24 18:42:03 +00:00
Roan Kattouw 98c101e56d Update VE core submodule to master
New changes:
16eb2e2 Script to update the oojs-ui and oojs distributions
b20be0b Fix exception thrown by findEndOfNode
af4f8f1 Fix Document#selectNodes error documentation
37ace2e Update OOjs to v1.0.6-pre (e284c5fed7)
2eb5927 Add internalList nodes to example data
461deca Fix up result of selectNodes
34fe23e Protect RDFa attributes from obliteration
4d562ec Resolve URLs against correct document when copying.
bc5be2a Adding a MediaSizeWidget

Change-Id: I903cd23a5244766df714ffd3232de1a031472c2a
2014-01-22 18:29:54 -08:00
Trevor Parscal 49471fc9b5 Update VE core submodule to master
Also update for indicator changes in Iaf7726150

New changes:
f981943 Fix toolbar indicators in demo
e849941 Update OOjs UI to v0.1.0-pre (11632fcada)

Change-Id: I16c38259ccedbfba8260f8a508b572cee6389517
2014-01-17 18:30:00 -08:00
Trevor Parscal 7994eae8c2 MediaWiki language inspector updates
* Add ULS, which was removed from VE core
* Add experimental mwlanguage module which adds ULS integration
* Hook in ULS to the existing language widget

Also update VE core submodule with changes:
* 1e92abe Generic language inspector

Bug: 47759
Change-Id: I325a4dcc316d0334fadfcaa46ad3acd45c6bf84b
2014-01-18 01:02:23 +00:00
Roan Kattouw 2817094781 Update VE core submodule to eb595b06
New changes:
93e0069 Fix JS error when closing autonumbered link inspector with invalid title
a6eaa05 Prevent newFromAttributeChanges() from creating no-op transactions

Change-Id: I76bff5951153e1645c84e247119aab34bdb8c33b
2014-01-17 16:22:29 -08:00
Trevor Parscal f4156bd09f Update VE core submodule to master (e7e2833)
New changes:
* e7e2833 - Update uses of Push/IconButtonWidget to ButtonWidget
* d9d9eb5 - Update OOjs UI to v0.1.0-pre (d9bab13)
  * d9bab13 - The Great Button Refactor of 2014
* 22b93ef - Update OOjs UI build (88b2871)
  * 88b2871 - Fix png transparency on required.png
  * 670c468 - Add i18n

Also:
* Update uses of Push/IconButtonWidget to ButtonWidget as there
  is a breaking change in new OOjs UI version.
  This was separated from commit I325a4dcc316d0.

Change-Id: I82220d15221c52be03feafcfc85c2bd6c12ba462
2014-01-17 16:29:36 +01:00
James D. Forrester cab709f590 Update VE core submodule to master (6645b10)
6645b10 Merge "Clean up CONTRIBUTING.md and README.md for VE core"
c10a2b5 ve.init.Target: Fix $document property documentation
0bce7f6 Clean up CONTRIBUTING.md and README.md for VE core

Change-Id: Ib24672d322e90b6264f0cf08855d9ce53a7225fa
2014-01-16 17:37:38 +00:00
Roan Kattouw e31b28527e Update VE core submodule to master
New changes:
e699956 Add method to show only specified resize handles

Change-Id: I12abb945163f793e5f9e5fd3526edf6cbc96c687
2014-01-15 18:39:21 -08:00
Roan Kattouw 66d2d3da54 Update VE core submodule to master
New changes:
b19c86d Make config default to an empty object in ResizableNode
b95c184 Make min/max dimensions configurable on ResizableNode
35ed00d Keyboard shortcuts dialog

Change-Id: Ic442a48a95ff18522cd049d3a19b01a3ea263e1d
2014-01-15 13:54:04 -08:00
Roan Kattouw b0cfb82369 Update VE core submodule to master
Also update MWConverter.test.js for test util changes.

New changes:
863288b Update OOjs UI to v0.1.0-pre (af97c1caec)
0bb2404 Refactor converter test utils to run single test cases

Change-Id: I90273786ac186df3eec13270f94d655b605bfdc4
2014-01-14 19:29:58 -08:00
Trevor Parscal 278bcd9a20 Added indicators to toolbars
The down arrow is no longer default, so it needs to be specified
explicitly.

Updates submodule to include indicator changes
(see I0a1faef11a1e7e6ea3e44275c85f2efafae4dc9a)

Change-Id: I32aef3ea2e66fd823aeb07dac06cfefba9954270
2014-01-13 18:32:01 -08:00
Roan Kattouw 966f50164a Update to master of VE core
New changes:
d89cc15 Add sticky static property to inspector tools
5d8e3fd Fix more copyright headers not updated to 2014
e97f100 Always use absolute URLs in external links in the clipboard
9cc0a8d Fix descriptions of ve.dm.Surface#change tests
16fda03 Check for valid offset when calculating insertion annotations
a156f76 Add 'get range on change' toggle button to standalone demo
eca979d Move initial selection to first content offset

Change-Id: Ibdc130775613af50014d9effe0f2e39bba501e87
2014-01-13 15:55:44 -08:00
Roan Kattouw 5cdc457e14 Update to master of VE core
New changes:
1f7e944 Add method to fully destroy a target
6cda4b7 Fix scrolling back and forth on copy/paste in Firefox
34d2c79 demos: Support back/forward navigation
787deba Replace dump model loop with event triggered dump
94b1b40 Do not use global document
5cd4227 Always use current surface on demo page
f74f6d8 Make DefinitionListItemNodes splittable

Change-Id: If0a7beed97c4fa6759fbbb989d7ef979c0a1e4e2
2014-01-11 00:59:30 +08:00
James D. Forrester 0ffd654bed Bump copyright like it's 2014
Change-Id: Ic469ebda2c061dc7da0b4c1625f43a7be55da4fa
2014-01-05 20:06:50 +08:00
Roan Kattouw ee743f869d Use submodule for VisualEditor core
* Add lib/ve.
* Remove modules provided by VisualEditor core.
* Update paths.
* Remove VisualEditor core specific things from Gruntfile.
* Remove entries from external.js already in lib/ve/.docs/external.js.
* Implement build script to compose a jsduck index that includes
  all of VisualEditor core. Right now it includes VisualEditor's
  index as-is, and because those patterns (e.g. ve.dm.*Node) will
  also MW subclasses this means our category page will include
  MW classes under "VisualEditor (core)" (before the repo split,
  this was intentional).
  This is inevitable unless we list every class individually, or
  (the plan) until we move the MW subclasses out of the ve.*
  namespace and into mw.* somewhere.

Bug: 45342
Change-Id: Iff45cd555430634c9fc341fd3b177c1e0625300b
2013-12-20 09:18:41 +00:00
Roan Kattouw c41b60021d Move libraries to the lib/ directory
Didn't move unicodejs because it doesn't have its own repo
and is currently mastered in this repo

Change-Id: I14ab4bd641077d993ac235d8bcdcf8e50a1a72a7
2013-12-19 23:02:52 +01:00