extjs-rails 4.1.0.alpha5 → 4.1.0.alpha6
Sign up to get free protection for your applications and to get access to all the features.
- data/app/assets/javascripts/extjs-rails.js +95613 -11000
- data/lib/extjs-rails/version.rb +1 -1
- metadata +2 -509
- data/app/assets/javascripts/src/AbstractComponent.js +0 -3290
- data/app/assets/javascripts/src/AbstractManager.js +0 -144
- data/app/assets/javascripts/src/AbstractPlugin.js +0 -72
- data/app/assets/javascripts/src/Action.js +0 -276
- data/app/assets/javascripts/src/Ajax.js +0 -99
- data/app/assets/javascripts/src/Component.js +0 -1344
- data/app/assets/javascripts/src/ComponentLoader.js +0 -202
- data/app/assets/javascripts/src/ComponentManager.js +0 -47
- data/app/assets/javascripts/src/ComponentQuery.js +0 -521
- data/app/assets/javascripts/src/Editor.js +0 -494
- data/app/assets/javascripts/src/ElementLoader.js +0 -404
- data/app/assets/javascripts/src/FocusManager.js +0 -712
- data/app/assets/javascripts/src/Img.js +0 -111
- data/app/assets/javascripts/src/Layer.js +0 -543
- data/app/assets/javascripts/src/LoadMask.js +0 -432
- data/app/assets/javascripts/src/ModelManager.js +0 -186
- data/app/assets/javascripts/src/PluginManager.js +0 -110
- data/app/assets/javascripts/src/ProgressBar.js +0 -336
- data/app/assets/javascripts/src/Shadow.js +0 -233
- data/app/assets/javascripts/src/ShadowPool.js +0 -43
- data/app/assets/javascripts/src/Template.js +0 -331
- data/app/assets/javascripts/src/XTemplate.js +0 -365
- data/app/assets/javascripts/src/XTemplateCompiler.js +0 -450
- data/app/assets/javascripts/src/XTemplateParser.js +0 -249
- data/app/assets/javascripts/src/ZIndexManager.js +0 -519
- data/app/assets/javascripts/src/app/Application.js +0 -271
- data/app/assets/javascripts/src/app/Controller.js +0 -458
- data/app/assets/javascripts/src/app/EventBus.js +0 -112
- data/app/assets/javascripts/src/button/Button.js +0 -1483
- data/app/assets/javascripts/src/button/Cycle.js +0 -215
- data/app/assets/javascripts/src/button/Split.js +0 -99
- data/app/assets/javascripts/src/chart/Callout.js +0 -140
- data/app/assets/javascripts/src/chart/Chart.js +0 -966
- data/app/assets/javascripts/src/chart/Highlight.js +0 -172
- data/app/assets/javascripts/src/chart/Label.js +0 -241
- data/app/assets/javascripts/src/chart/Legend.js +0 -474
- data/app/assets/javascripts/src/chart/LegendItem.js +0 -217
- data/app/assets/javascripts/src/chart/Mask.js +0 -230
- data/app/assets/javascripts/src/chart/MaskLayer.js +0 -48
- data/app/assets/javascripts/src/chart/Navigation.js +0 -79
- data/app/assets/javascripts/src/chart/Shape.js +0 -106
- data/app/assets/javascripts/src/chart/Tip.js +0 -98
- data/app/assets/javascripts/src/chart/TipSurface.js +0 -42
- data/app/assets/javascripts/src/chart/axis/Abstract.js +0 -73
- data/app/assets/javascripts/src/chart/axis/Axis.js +0 -961
- data/app/assets/javascripts/src/chart/axis/Category.js +0 -130
- data/app/assets/javascripts/src/chart/axis/Gauge.js +0 -203
- data/app/assets/javascripts/src/chart/axis/Numeric.js +0 -235
- data/app/assets/javascripts/src/chart/axis/Radial.js +0 -204
- data/app/assets/javascripts/src/chart/axis/Time.js +0 -135
- data/app/assets/javascripts/src/chart/series/Area.js +0 -803
- data/app/assets/javascripts/src/chart/series/Bar.js +0 -853
- data/app/assets/javascripts/src/chart/series/Cartesian.js +0 -328
- data/app/assets/javascripts/src/chart/series/Column.js +0 -104
- data/app/assets/javascripts/src/chart/series/Gauge.js +0 -490
- data/app/assets/javascripts/src/chart/series/Line.js +0 -1104
- data/app/assets/javascripts/src/chart/series/Pie.js +0 -1072
- data/app/assets/javascripts/src/chart/series/Radar.js +0 -440
- data/app/assets/javascripts/src/chart/series/Scatter.js +0 -668
- data/app/assets/javascripts/src/chart/series/Series.js +0 -443
- data/app/assets/javascripts/src/chart/theme/Base.js +0 -175
- data/app/assets/javascripts/src/chart/theme/Theme.js +0 -253
- data/app/assets/javascripts/src/container/AbstractContainer.js +0 -1062
- data/app/assets/javascripts/src/container/ButtonGroup.js +0 -143
- data/app/assets/javascripts/src/container/Container.js +0 -212
- data/app/assets/javascripts/src/container/DockingContainer.js +0 -265
- data/app/assets/javascripts/src/container/Viewport.js +0 -184
- data/app/assets/javascripts/src/core/dom/Element.form.js +0 -50
- data/app/assets/javascripts/src/core/dom/Element.static-more.js +0 -159
- data/app/assets/javascripts/src/core/examples/index.html +0 -321
- data/app/assets/javascripts/src/core/examples/index.js +0 -6
- data/app/assets/javascripts/src/core/examples/src/Sample/CTO.js +0 -25
- data/app/assets/javascripts/src/core/examples/src/Sample/CoolGuy.js +0 -20
- data/app/assets/javascripts/src/core/examples/src/Sample/Developer.js +0 -43
- data/app/assets/javascripts/src/core/examples/src/Sample/Gun.js +0 -3
- data/app/assets/javascripts/src/core/examples/src/Sample/HumanResource.js +0 -23
- data/app/assets/javascripts/src/core/examples/src/Sample/Musician.js +0 -20
- data/app/assets/javascripts/src/core/examples/src/Sample/Person.js +0 -50
- data/app/assets/javascripts/src/core/examples/src/Sample/ability/CanComposeSongs.js +0 -9
- data/app/assets/javascripts/src/core/examples/src/Sample/ability/CanPlayGuitar.js +0 -9
- data/app/assets/javascripts/src/core/examples/src/Sample/ability/CanSing.js +0 -18
- data/app/assets/javascripts/src/core/examples/src/Sample/deadlock/A.js +0 -3
- data/app/assets/javascripts/src/core/examples/src/Sample/deadlock/B.js +0 -3
- data/app/assets/javascripts/src/core/examples/src/Sample/deadlock/C.js +0 -3
- data/app/assets/javascripts/src/core/examples/src/Sample/deadlock/D.js +0 -3
- data/app/assets/javascripts/src/core/examples/src/Sample/deadlock/E.js +0 -3
- data/app/assets/javascripts/src/core/examples/src/Sample/notdeadlock/A.js +0 -3
- data/app/assets/javascripts/src/core/examples/src/Sample/notdeadlock/B.js +0 -4
- data/app/assets/javascripts/src/core/examples/src/Sample/notdeadlock/C.js +0 -3
- data/app/assets/javascripts/src/core/src/EventManager.js +0 -1167
- data/app/assets/javascripts/src/core/src/EventObject.js +0 -883
- data/app/assets/javascripts/src/core/src/Ext-more.js +0 -1283
- data/app/assets/javascripts/src/core/src/Ext.js +0 -736
- data/app/assets/javascripts/src/core/src/Support.js +0 -662
- data/app/assets/javascripts/src/core/src/class/Base.js +0 -1085
- data/app/assets/javascripts/src/core/src/class/Class.js +0 -676
- data/app/assets/javascripts/src/core/src/class/ClassManager.js +0 -1591
- data/app/assets/javascripts/src/core/src/class/Loader.js +0 -1423
- data/app/assets/javascripts/src/core/src/dom/AbstractElement.alignment.js +0 -173
- data/app/assets/javascripts/src/core/src/dom/AbstractElement.insertion.js +0 -193
- data/app/assets/javascripts/src/core/src/dom/AbstractElement.js +0 -681
- data/app/assets/javascripts/src/core/src/dom/AbstractElement.position.js +0 -356
- data/app/assets/javascripts/src/core/src/dom/AbstractElement.static.js +0 -474
- data/app/assets/javascripts/src/core/src/dom/AbstractElement.style.js +0 -851
- data/app/assets/javascripts/src/core/src/dom/AbstractElement.traversal.js +0 -180
- data/app/assets/javascripts/src/core/src/dom/AbstractHelper.js +0 -291
- data/app/assets/javascripts/src/core/src/dom/AbstractQuery.js +0 -72
- data/app/assets/javascripts/src/core/src/dom/CompositeElement.js +0 -75
- data/app/assets/javascripts/src/core/src/dom/CompositeElementLite.js +0 -436
- data/app/assets/javascripts/src/core/src/dom/DomQuery-aria.js +0 -1049
- data/app/assets/javascripts/src/core/src/env/Browser.js +0 -186
- data/app/assets/javascripts/src/core/src/env/FeatureDetector.js +0 -274
- data/app/assets/javascripts/src/core/src/env/OS.js +0 -141
- data/app/assets/javascripts/src/core/src/lang/Array.js +0 -1205
- data/app/assets/javascripts/src/core/src/lang/Date.js +0 -1463
- data/app/assets/javascripts/src/core/src/lang/Error.js +0 -326
- data/app/assets/javascripts/src/core/src/lang/Function.js +0 -485
- data/app/assets/javascripts/src/core/src/lang/Number.js +0 -175
- data/app/assets/javascripts/src/core/src/lang/Object.js +0 -606
- data/app/assets/javascripts/src/core/src/lang/String.js +0 -333
- data/app/assets/javascripts/src/core/src/misc/JSON.js +0 -236
- data/app/assets/javascripts/src/core/src/perf/Accumulator.js +0 -244
- data/app/assets/javascripts/src/core/src/perf/Monitor.js +0 -197
- data/app/assets/javascripts/src/core/src/util/DelayedTask.js +0 -71
- data/app/assets/javascripts/src/core/src/util/Event.js +0 -215
- data/app/assets/javascripts/src/core/src/util/Format.js +0 -551
- data/app/assets/javascripts/src/core/src/util/TaskManager.js +0 -417
- data/app/assets/javascripts/src/core/src/version/Version.js +0 -364
- data/app/assets/javascripts/src/core/test/unit/README.MD +0 -91
- data/app/assets/javascripts/src/core/test/unit/bootstrap.js +0 -39
- data/app/assets/javascripts/src/core/test/unit/build/build-data.js +0 -34
- data/app/assets/javascripts/src/core/test/unit/build/build.sh +0 -2
- data/app/assets/javascripts/src/core/test/unit/data.js +0 -27
- data/app/assets/javascripts/src/core/test/unit/index.html +0 -15
- data/app/assets/javascripts/src/core/test/unit/other_specs/dom.html +0 -40
- data/app/assets/javascripts/src/core/test/unit/other_specs/dom/extjs-api.js +0 -12
- data/app/assets/javascripts/src/core/test/unit/other_specs/dom/platform-api.js +0 -134
- data/app/assets/javascripts/src/core/test/unit/other_specs/dom/sanity.js +0 -4
- data/app/assets/javascripts/src/core/test/unit/other_specs/dom/touch-api-out.js +0 -128
- data/app/assets/javascripts/src/core/test/unit/other_specs/dom/touch-api.js +0 -89
- data/app/assets/javascripts/src/core/test/unit/other_specs/env/Environment.js +0 -357
- data/app/assets/javascripts/src/core/test/unit/resources/APITest.js +0 -37
- data/app/assets/javascripts/src/core/test/unit/resources/jsb3.js +0 -14
- data/app/assets/javascripts/src/core/test/unit/resources/test-setup.js +0 -137
- data/app/assets/javascripts/src/core/test/unit/spec/EventManager.js +0 -629
- data/app/assets/javascripts/src/core/test/unit/spec/Ext-mess.backup +0 -198
- data/app/assets/javascripts/src/core/test/unit/spec/Ext-more.js +0 -520
- data/app/assets/javascripts/src/core/test/unit/spec/Ext.js +0 -1550
- data/app/assets/javascripts/src/core/test/unit/spec/Support.js +0 -250
- data/app/assets/javascripts/src/core/test/unit/spec/class/Base.js +0 -47
- data/app/assets/javascripts/src/core/test/unit/spec/class/Class.js +0 -561
- data/app/assets/javascripts/src/core/test/unit/spec/class/ClassManager.js +0 -555
- data/app/assets/javascripts/src/core/test/unit/spec/dom/CompositeElementLite.js +0 -409
- data/app/assets/javascripts/src/core/test/unit/spec/dom/DomHelper.js +0 -444
- data/app/assets/javascripts/src/core/test/unit/spec/dom/Element.insertion.js +0 -342
- data/app/assets/javascripts/src/core/test/unit/spec/dom/Element.js +0 -731
- data/app/assets/javascripts/src/core/test/unit/spec/dom/Element.static.js +0 -201
- data/app/assets/javascripts/src/core/test/unit/spec/dom/Element.style.js +0 -118
- data/app/assets/javascripts/src/core/test/unit/spec/dom/Element.traversal.js +0 -336
- data/app/assets/javascripts/src/core/test/unit/spec/lang/Array.js +0 -1229
- data/app/assets/javascripts/src/core/test/unit/spec/lang/Date.js +0 -697
- data/app/assets/javascripts/src/core/test/unit/spec/lang/Error.js +0 -277
- data/app/assets/javascripts/src/core/test/unit/spec/lang/Function.js +0 -536
- data/app/assets/javascripts/src/core/test/unit/spec/lang/Number.js +0 -323
- data/app/assets/javascripts/src/core/test/unit/spec/lang/Object.js +0 -591
- data/app/assets/javascripts/src/core/test/unit/spec/lang/String.js +0 -451
- data/app/assets/javascripts/src/core/test/unit/spec/misc/JSON.js +0 -252
- data/app/assets/javascripts/src/core/test/unit/spec/util/Format.js +0 -521
- data/app/assets/javascripts/src/core/test/unit/spec/version/Version.js +0 -148
- data/app/assets/javascripts/src/core/test/unit/specs.html +0 -19
- data/app/assets/javascripts/src/data/AbstractStore.js +0 -887
- data/app/assets/javascripts/src/data/ArrayStore.js +0 -74
- data/app/assets/javascripts/src/data/Batch.js +0 -236
- data/app/assets/javascripts/src/data/BufferStore.js +0 -13
- data/app/assets/javascripts/src/data/Connection.js +0 -969
- data/app/assets/javascripts/src/data/DirectStore.js +0 -50
- data/app/assets/javascripts/src/data/Errors.js +0 -52
- data/app/assets/javascripts/src/data/Field.js +0 -341
- data/app/assets/javascripts/src/data/IdGenerator.js +0 -198
- data/app/assets/javascripts/src/data/JsonP.js +0 -253
- data/app/assets/javascripts/src/data/JsonPStore.js +0 -51
- data/app/assets/javascripts/src/data/JsonStore.js +0 -60
- data/app/assets/javascripts/src/data/Model.js +0 -1673
- data/app/assets/javascripts/src/data/NodeInterface.js +0 -1294
- data/app/assets/javascripts/src/data/NodeStore.js +0 -254
- data/app/assets/javascripts/src/data/Operation.js +0 -331
- data/app/assets/javascripts/src/data/Request.js +0 -40
- data/app/assets/javascripts/src/data/ResultSet.js +0 -56
- data/app/assets/javascripts/src/data/SequentialIdGenerator.js +0 -61
- data/app/assets/javascripts/src/data/SortTypes.js +0 -125
- data/app/assets/javascripts/src/data/Store.js +0 -2609
- data/app/assets/javascripts/src/data/StoreManager.js +0 -156
- data/app/assets/javascripts/src/data/Tree.js +0 -290
- data/app/assets/javascripts/src/data/TreeStore.js +0 -655
- data/app/assets/javascripts/src/data/Types.js +0 -190
- data/app/assets/javascripts/src/data/UuidGenerator.js +0 -215
- data/app/assets/javascripts/src/data/XmlStore.js +0 -76
- data/app/assets/javascripts/src/data/association/Association.js +0 -243
- data/app/assets/javascripts/src/data/association/BelongsTo.js +0 -291
- data/app/assets/javascripts/src/data/association/HasMany.js +0 -289
- data/app/assets/javascripts/src/data/association/HasOne.js +0 -304
- data/app/assets/javascripts/src/data/proxy/Ajax.js +0 -282
- data/app/assets/javascripts/src/data/proxy/Client.js +0 -21
- data/app/assets/javascripts/src/data/proxy/Direct.js +0 -181
- data/app/assets/javascripts/src/data/proxy/JsonP.js +0 -313
- data/app/assets/javascripts/src/data/proxy/LocalStorage.js +0 -69
- data/app/assets/javascripts/src/data/proxy/Memory.js +0 -156
- data/app/assets/javascripts/src/data/proxy/Proxy.js +0 -433
- data/app/assets/javascripts/src/data/proxy/Rest.js +0 -173
- data/app/assets/javascripts/src/data/proxy/Server.js +0 -460
- data/app/assets/javascripts/src/data/proxy/SessionStorage.js +0 -39
- data/app/assets/javascripts/src/data/proxy/WebStorage.js +0 -546
- data/app/assets/javascripts/src/data/reader/Array.js +0 -68
- data/app/assets/javascripts/src/data/reader/Json.js +0 -383
- data/app/assets/javascripts/src/data/reader/Reader.js +0 -735
- data/app/assets/javascripts/src/data/reader/Xml.js +0 -292
- data/app/assets/javascripts/src/data/validations.js +0 -149
- data/app/assets/javascripts/src/data/writer/Json.js +0 -81
- data/app/assets/javascripts/src/data/writer/Writer.js +0 -147
- data/app/assets/javascripts/src/data/writer/Xml.js +0 -88
- data/app/assets/javascripts/src/dd/DD.js +0 -300
- data/app/assets/javascripts/src/dd/DDProxy.js +0 -204
- data/app/assets/javascripts/src/dd/DDTarget.js +0 -171
- data/app/assets/javascripts/src/dd/DragDrop.js +0 -1101
- data/app/assets/javascripts/src/dd/DragDropManager.js +0 -1264
- data/app/assets/javascripts/src/dd/DragSource.js +0 -392
- data/app/assets/javascripts/src/dd/DragTracker.js +0 -562
- data/app/assets/javascripts/src/dd/DragZone.js +0 -137
- data/app/assets/javascripts/src/dd/DropTarget.js +0 -118
- data/app/assets/javascripts/src/dd/DropZone.js +0 -254
- data/app/assets/javascripts/src/dd/Registry.js +0 -117
- data/app/assets/javascripts/src/dd/ScrollManager.js +0 -218
- data/app/assets/javascripts/src/dd/StatusProxy.js +0 -179
- data/app/assets/javascripts/src/diag/layout/Context.js +0 -523
- data/app/assets/javascripts/src/diag/layout/ContextItem.js +0 -179
- data/app/assets/javascripts/src/direct/Event.js +0 -35
- data/app/assets/javascripts/src/direct/ExceptionEvent.js +0 -16
- data/app/assets/javascripts/src/direct/JsonProvider.js +0 -82
- data/app/assets/javascripts/src/direct/Manager.js +0 -263
- data/app/assets/javascripts/src/direct/PollingProvider.js +0 -156
- data/app/assets/javascripts/src/direct/Provider.js +0 -96
- data/app/assets/javascripts/src/direct/RemotingEvent.js +0 -24
- data/app/assets/javascripts/src/direct/RemotingMethod.js +0 -100
- data/app/assets/javascripts/src/direct/RemotingProvider.js +0 -510
- data/app/assets/javascripts/src/direct/Transaction.js +0 -41
- data/app/assets/javascripts/src/dom/Element.alignment.js +0 -378
- data/app/assets/javascripts/src/dom/Element.anim.js +0 -962
- data/app/assets/javascripts/src/dom/Element.dd.js +0 -40
- data/app/assets/javascripts/src/dom/Element.fx.js +0 -194
- data/app/assets/javascripts/src/dom/Element.js +0 -1407
- data/app/assets/javascripts/src/dom/Element.position.js +0 -501
- data/app/assets/javascripts/src/dom/Element.scroll.js +0 -214
- data/app/assets/javascripts/src/dom/Element.style.js +0 -792
- data/app/assets/javascripts/src/dom/Element.traversal.js +0 -8
- data/app/assets/javascripts/src/dom/Helper.js +0 -466
- data/app/assets/javascripts/src/dom/Query.js +0 -1067
- data/app/assets/javascripts/src/draw/Color.js +0 -303
- data/app/assets/javascripts/src/draw/Component.js +0 -245
- data/app/assets/javascripts/src/draw/CompositeSprite.js +0 -299
- data/app/assets/javascripts/src/draw/Draw.js +0 -1217
- data/app/assets/javascripts/src/draw/Matrix.js +0 -183
- data/app/assets/javascripts/src/draw/Sprite.js +0 -554
- data/app/assets/javascripts/src/draw/SpriteDD.js +0 -87
- data/app/assets/javascripts/src/draw/Surface.js +0 -1001
- data/app/assets/javascripts/src/draw/Text.js +0 -175
- data/app/assets/javascripts/src/draw/engine/ImageExporter.js +0 -106
- data/app/assets/javascripts/src/draw/engine/Svg.js +0 -734
- data/app/assets/javascripts/src/draw/engine/SvgExporter.js +0 -280
- data/app/assets/javascripts/src/draw/engine/Vml.js +0 -916
- data/app/assets/javascripts/src/flash/Component.js +0 -248
- data/app/assets/javascripts/src/form/Basic.js +0 -1018
- data/app/assets/javascripts/src/form/CheckboxGroup.js +0 -441
- data/app/assets/javascripts/src/form/CheckboxManager.js +0 -26
- data/app/assets/javascripts/src/form/FieldAncestor.js +0 -210
- data/app/assets/javascripts/src/form/FieldContainer.js +0 -290
- data/app/assets/javascripts/src/form/FieldSet.js +0 -506
- data/app/assets/javascripts/src/form/Label.js +0 -110
- data/app/assets/javascripts/src/form/Labelable.js +0 -764
- data/app/assets/javascripts/src/form/Panel.js +0 -335
- data/app/assets/javascripts/src/form/RadioGroup.js +0 -124
- data/app/assets/javascripts/src/form/RadioManager.js +0 -26
- data/app/assets/javascripts/src/form/action/Action.js +0 -307
- data/app/assets/javascripts/src/form/action/DirectLoad.js +0 -107
- data/app/assets/javascripts/src/form/action/DirectSubmit.js +0 -119
- data/app/assets/javascripts/src/form/action/Load.js +0 -120
- data/app/assets/javascripts/src/form/action/StandardSubmit.js +0 -34
- data/app/assets/javascripts/src/form/action/Submit.js +0 -257
- data/app/assets/javascripts/src/form/field/Base.js +0 -813
- data/app/assets/javascripts/src/form/field/Checkbox.js +0 -505
- data/app/assets/javascripts/src/form/field/ComboBox.js +0 -1427
- data/app/assets/javascripts/src/form/field/Date.js +0 -578
- data/app/assets/javascripts/src/form/field/Display.js +0 -155
- data/app/assets/javascripts/src/form/field/Field.js +0 -430
- data/app/assets/javascripts/src/form/field/File.js +0 -265
- data/app/assets/javascripts/src/form/field/Hidden.js +0 -75
- data/app/assets/javascripts/src/form/field/HtmlEditor.js +0 -1439
- data/app/assets/javascripts/src/form/field/Number.js +0 -380
- data/app/assets/javascripts/src/form/field/Picker.js +0 -321
- data/app/assets/javascripts/src/form/field/Radio.js +0 -279
- data/app/assets/javascripts/src/form/field/Spinner.js +0 -321
- data/app/assets/javascripts/src/form/field/Text.js +0 -727
- data/app/assets/javascripts/src/form/field/TextArea.js +0 -228
- data/app/assets/javascripts/src/form/field/Time.js +0 -459
- data/app/assets/javascripts/src/form/field/Trigger.js +0 -469
- data/app/assets/javascripts/src/form/field/VTypes.js +0 -172
- data/app/assets/javascripts/src/fx/Anim.js +0 -472
- data/app/assets/javascripts/src/fx/Animator.js +0 -410
- data/app/assets/javascripts/src/fx/CubicBezier.js +0 -77
- data/app/assets/javascripts/src/fx/Easing.js +0 -136
- data/app/assets/javascripts/src/fx/Manager.js +0 -353
- data/app/assets/javascripts/src/fx/PropertyHandler.js +0 -381
- data/app/assets/javascripts/src/fx/Queue.js +0 -123
- data/app/assets/javascripts/src/fx/target/Component.js +0 -118
- data/app/assets/javascripts/src/fx/target/CompositeElement.js +0 -46
- data/app/assets/javascripts/src/fx/target/CompositeElementCSS.js +0 -22
- data/app/assets/javascripts/src/fx/target/CompositeSprite.js +0 -34
- data/app/assets/javascripts/src/fx/target/Element.js +0 -83
- data/app/assets/javascripts/src/fx/target/ElementCSS.js +0 -77
- data/app/assets/javascripts/src/fx/target/Sprite.js +0 -128
- data/app/assets/javascripts/src/fx/target/Target.js +0 -36
- data/app/assets/javascripts/src/grid/CellEditor.js +0 -172
- data/app/assets/javascripts/src/grid/ColumnComponentLayout.js +0 -34
- data/app/assets/javascripts/src/grid/ColumnLayout.js +0 -201
- data/app/assets/javascripts/src/grid/Lockable.js +0 -863
- data/app/assets/javascripts/src/grid/LockingView.js +0 -169
- data/app/assets/javascripts/src/grid/PagingScroller.js +0 -539
- data/app/assets/javascripts/src/grid/Panel.js +0 -393
- data/app/assets/javascripts/src/grid/RowEditor.js +0 -731
- data/app/assets/javascripts/src/grid/RowNumberer.js +0 -76
- data/app/assets/javascripts/src/grid/Scroller.js +0 -5
- data/app/assets/javascripts/src/grid/View.js +0 -44
- data/app/assets/javascripts/src/grid/ViewDropZone.js +0 -41
- data/app/assets/javascripts/src/grid/column/Action.js +0 -318
- data/app/assets/javascripts/src/grid/column/Boolean.js +0 -82
- data/app/assets/javascripts/src/grid/column/Column.js +0 -835
- data/app/assets/javascripts/src/grid/column/Date.js +0 -63
- data/app/assets/javascripts/src/grid/column/Number.js +0 -52
- data/app/assets/javascripts/src/grid/column/Template.js +0 -58
- data/app/assets/javascripts/src/grid/feature/AbstractSummary.js +0 -154
- data/app/assets/javascripts/src/grid/feature/Chunking.js +0 -77
- data/app/assets/javascripts/src/grid/feature/Feature.js +0 -158
- data/app/assets/javascripts/src/grid/feature/Grouping.js +0 -822
- data/app/assets/javascripts/src/grid/feature/GroupingSummary.js +0 -243
- data/app/assets/javascripts/src/grid/feature/RowBody.js +0 -116
- data/app/assets/javascripts/src/grid/feature/RowWrap.js +0 -120
- data/app/assets/javascripts/src/grid/feature/Summary.js +0 -167
- data/app/assets/javascripts/src/grid/header/Container.js +0 -965
- data/app/assets/javascripts/src/grid/header/DragZone.js +0 -69
- data/app/assets/javascripts/src/grid/header/DropZone.js +0 -265
- data/app/assets/javascripts/src/grid/plugin/CellEditing.js +0 -453
- data/app/assets/javascripts/src/grid/plugin/DragDrop.js +0 -254
- data/app/assets/javascripts/src/grid/plugin/Editing.js +0 -561
- data/app/assets/javascripts/src/grid/plugin/HeaderReorderer.js +0 -49
- data/app/assets/javascripts/src/grid/plugin/HeaderResizer.js +0 -292
- data/app/assets/javascripts/src/grid/plugin/RowEditing.js +0 -339
- data/app/assets/javascripts/src/grid/property/Grid.js +0 -351
- data/app/assets/javascripts/src/grid/property/HeaderContainer.js +0 -109
- data/app/assets/javascripts/src/grid/property/Property.js +0 -36
- data/app/assets/javascripts/src/grid/property/Store.js +0 -141
- data/app/assets/javascripts/src/layout/ClassList.js +0 -90
- data/app/assets/javascripts/src/layout/Context.js +0 -1232
- data/app/assets/javascripts/src/layout/ContextItem.js +0 -1470
- data/app/assets/javascripts/src/layout/Layout.js +0 -761
- data/app/assets/javascripts/src/layout/component/Auto.js +0 -220
- data/app/assets/javascripts/src/layout/component/Body.js +0 -80
- data/app/assets/javascripts/src/layout/component/BoundList.js +0 -95
- data/app/assets/javascripts/src/layout/component/Button.js +0 -261
- data/app/assets/javascripts/src/layout/component/Component.js +0 -427
- data/app/assets/javascripts/src/layout/component/Dock.js +0 -1132
- data/app/assets/javascripts/src/layout/component/Draw.js +0 -79
- data/app/assets/javascripts/src/layout/component/FieldSet.js +0 -62
- data/app/assets/javascripts/src/layout/component/ProgressBar.js +0 -54
- data/app/assets/javascripts/src/layout/component/Tab.js +0 -23
- data/app/assets/javascripts/src/layout/component/field/ComboBox.js +0 -52
- data/app/assets/javascripts/src/layout/component/field/Field.js +0 -372
- data/app/assets/javascripts/src/layout/component/field/FieldContainer.js +0 -48
- data/app/assets/javascripts/src/layout/component/field/HtmlEditor.js +0 -54
- data/app/assets/javascripts/src/layout/component/field/Slider.js +0 -58
- data/app/assets/javascripts/src/layout/component/field/Text.js +0 -75
- data/app/assets/javascripts/src/layout/component/field/TextArea.js +0 -51
- data/app/assets/javascripts/src/layout/component/field/Trigger.js +0 -132
- data/app/assets/javascripts/src/layout/container/Absolute.js +0 -121
- data/app/assets/javascripts/src/layout/container/Accordion.js +0 -308
- data/app/assets/javascripts/src/layout/container/Anchor.js +0 -403
- data/app/assets/javascripts/src/layout/container/Auto.js +0 -70
- data/app/assets/javascripts/src/layout/container/Border-old-js +0 -1079
- data/app/assets/javascripts/src/layout/container/Border.js +0 -816
- data/app/assets/javascripts/src/layout/container/Box.js +0 -929
- data/app/assets/javascripts/src/layout/container/Card.js +0 -361
- data/app/assets/javascripts/src/layout/container/CheckboxGroup.js +0 -376
- data/app/assets/javascripts/src/layout/container/Column.js +0 -234
- data/app/assets/javascripts/src/layout/container/Container.js +0 -961
- data/app/assets/javascripts/src/layout/container/Editor.js +0 -74
- data/app/assets/javascripts/src/layout/container/Fit.js +0 -287
- data/app/assets/javascripts/src/layout/container/Form.js +0 -157
- data/app/assets/javascripts/src/layout/container/HBox.js +0 -134
- data/app/assets/javascripts/src/layout/container/Table.js +0 -412
- data/app/assets/javascripts/src/layout/container/VBox.js +0 -139
- data/app/assets/javascripts/src/layout/container/boxOverflow/Menu.js +0 -365
- data/app/assets/javascripts/src/layout/container/boxOverflow/None.js +0 -83
- data/app/assets/javascripts/src/layout/container/boxOverflow/Scroller.js +0 -475
- data/app/assets/javascripts/src/menu/CheckItem.js +0 -169
- data/app/assets/javascripts/src/menu/ColorPicker.js +0 -110
- data/app/assets/javascripts/src/menu/DatePicker.js +0 -100
- data/app/assets/javascripts/src/menu/Item.js +0 -553
- data/app/assets/javascripts/src/menu/KeyNav.js +0 -134
- data/app/assets/javascripts/src/menu/Manager.js +0 -219
- data/app/assets/javascripts/src/menu/Menu.js +0 -579
- data/app/assets/javascripts/src/menu/Separator.js +0 -126
- data/app/assets/javascripts/src/panel/AbstractPanel.js +0 -323
- data/app/assets/javascripts/src/panel/DD.js +0 -99
- data/app/assets/javascripts/src/panel/Header.js +0 -518
- data/app/assets/javascripts/src/panel/Panel.js +0 -2150
- data/app/assets/javascripts/src/panel/Proxy.js +0 -131
- data/app/assets/javascripts/src/panel/Table.js +0 -1018
- data/app/assets/javascripts/src/panel/Tool.js +0 -304
- data/app/assets/javascripts/src/picker/Color.js +0 -219
- data/app/assets/javascripts/src/picker/Date.js +0 -1140
- data/app/assets/javascripts/src/picker/Month.js +0 -490
- data/app/assets/javascripts/src/picker/Time.js +0 -165
- data/app/assets/javascripts/src/resizer/BorderSplitter.js +0 -22
- data/app/assets/javascripts/src/resizer/BorderSplitterTracker.js +0 -210
- data/app/assets/javascripts/src/resizer/Handle.js +0 -29
- data/app/assets/javascripts/src/resizer/ResizeTracker.js +0 -346
- data/app/assets/javascripts/src/resizer/Resizer.js +0 -477
- data/app/assets/javascripts/src/resizer/Splitter.js +0 -242
- data/app/assets/javascripts/src/resizer/SplitterTracker.js +0 -230
- data/app/assets/javascripts/src/selection/CellModel.js +0 -395
- data/app/assets/javascripts/src/selection/CheckboxModel.js +0 -234
- data/app/assets/javascripts/src/selection/DataViewModel.js +0 -160
- data/app/assets/javascripts/src/selection/Model.js +0 -646
- data/app/assets/javascripts/src/selection/RowModel.js +0 -499
- data/app/assets/javascripts/src/selection/TreeModel.js +0 -78
- data/app/assets/javascripts/src/slider/Multi.js +0 -835
- data/app/assets/javascripts/src/slider/Single.js +0 -56
- data/app/assets/javascripts/src/slider/Thumb.js +0 -259
- data/app/assets/javascripts/src/slider/Tip.js +0 -130
- data/app/assets/javascripts/src/state/CookieProvider.js +0 -120
- data/app/assets/javascripts/src/state/LocalStorageProvider.js +0 -72
- data/app/assets/javascripts/src/state/Manager.js +0 -70
- data/app/assets/javascripts/src/state/Provider.js +0 -182
- data/app/assets/javascripts/src/state/Stateful.js +0 -364
- data/app/assets/javascripts/src/tab/Bar.js +0 -258
- data/app/assets/javascripts/src/tab/Panel.js +0 -654
- data/app/assets/javascripts/src/tab/Tab.js +0 -358
- data/app/assets/javascripts/src/tail.js +0 -10
- data/app/assets/javascripts/src/tip/QuickTip.js +0 -335
- data/app/assets/javascripts/src/tip/QuickTipManager.js +0 -239
- data/app/assets/javascripts/src/tip/Tip.js +0 -160
- data/app/assets/javascripts/src/tip/ToolTip.js +0 -691
- data/app/assets/javascripts/src/toolbar/Fill.js +0 -28
- data/app/assets/javascripts/src/toolbar/Item.js +0 -16
- data/app/assets/javascripts/src/toolbar/Paging.js +0 -600
- data/app/assets/javascripts/src/toolbar/Separator.js +0 -23
- data/app/assets/javascripts/src/toolbar/Spacer.js +0 -33
- data/app/assets/javascripts/src/toolbar/TextItem.js +0 -57
- data/app/assets/javascripts/src/toolbar/Toolbar-legacy.js +0 -123
- data/app/assets/javascripts/src/toolbar/Toolbar.js +0 -447
- data/app/assets/javascripts/src/tree/Column.js +0 -90
- data/app/assets/javascripts/src/tree/Panel.js +0 -505
- data/app/assets/javascripts/src/tree/View.js +0 -658
- data/app/assets/javascripts/src/tree/ViewDragZone.js +0 -49
- data/app/assets/javascripts/src/tree/ViewDropZone.js +0 -287
- data/app/assets/javascripts/src/tree/plugin/TreeViewDragDrop.js +0 -244
- data/app/assets/javascripts/src/util/AbstractMixedCollection.js +0 -772
- data/app/assets/javascripts/src/util/Animate.js +0 -426
- data/app/assets/javascripts/src/util/Bindable.js +0 -102
- data/app/assets/javascripts/src/util/CSS.js +0 -185
- data/app/assets/javascripts/src/util/ClickRepeater.js +0 -238
- data/app/assets/javascripts/src/util/ComponentDragger.js +0 -126
- data/app/assets/javascripts/src/util/Cookies.js +0 -91
- data/app/assets/javascripts/src/util/ElementContainer.js +0 -293
- data/app/assets/javascripts/src/util/Filter.js +0 -159
- data/app/assets/javascripts/src/util/Floating.js +0 -321
- data/app/assets/javascripts/src/util/Grouper.js +0 -26
- data/app/assets/javascripts/src/util/HashMap.js +0 -356
- data/app/assets/javascripts/src/util/History.js +0 -285
- data/app/assets/javascripts/src/util/Inflector.js +0 -297
- data/app/assets/javascripts/src/util/KeyMap.js +0 -427
- data/app/assets/javascripts/src/util/KeyNav.js +0 -239
- data/app/assets/javascripts/src/util/LruCache.js +0 -257
- data/app/assets/javascripts/src/util/Memento.js +0 -131
- data/app/assets/javascripts/src/util/MixedCollection.js +0 -239
- data/app/assets/javascripts/src/util/Observable.js +0 -1003
- data/app/assets/javascripts/src/util/Offset.js +0 -60
- data/app/assets/javascripts/src/util/Point.js +0 -93
- data/app/assets/javascripts/src/util/ProtoElement.js +0 -205
- data/app/assets/javascripts/src/util/Queue.js +0 -76
- data/app/assets/javascripts/src/util/Region.js +0 -388
- data/app/assets/javascripts/src/util/Renderable.js +0 -1079
- data/app/assets/javascripts/src/util/Sortable.js +0 -248
- data/app/assets/javascripts/src/util/Sorter.js +0 -179
- data/app/assets/javascripts/src/util/TextMetrics.js +0 -148
- data/app/assets/javascripts/src/view/AbstractView.js +0 -1103
- data/app/assets/javascripts/src/view/BoundList.js +0 -207
- data/app/assets/javascripts/src/view/BoundListKeyNav.js +0 -92
- data/app/assets/javascripts/src/view/DragZone.js +0 -106
- data/app/assets/javascripts/src/view/DropZone.js +0 -240
- data/app/assets/javascripts/src/view/Table.js +0 -1229
- data/app/assets/javascripts/src/view/TableChunker.js +0 -139
- data/app/assets/javascripts/src/view/View.js +0 -636
- data/app/assets/javascripts/src/window/MessageBox.js +0 -880
- data/app/assets/javascripts/src/window/Window-legacy.js +0 -56
- data/app/assets/javascripts/src/window/Window.js +0 -793
@@ -1,69 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* @private
|
3
|
-
*/
|
4
|
-
Ext.define('Ext.grid.header.DragZone', {
|
5
|
-
extend: 'Ext.dd.DragZone',
|
6
|
-
colHeaderCls: Ext.baseCSSPrefix + 'column-header',
|
7
|
-
maxProxyWidth: 120,
|
8
|
-
|
9
|
-
constructor: function(headerCt) {
|
10
|
-
this.headerCt = headerCt;
|
11
|
-
this.ddGroup = this.getDDGroup();
|
12
|
-
this.callParent([headerCt.el]);
|
13
|
-
this.proxy.el.addCls(Ext.baseCSSPrefix + 'grid-col-dd');
|
14
|
-
},
|
15
|
-
|
16
|
-
getDDGroup: function() {
|
17
|
-
return 'header-dd-zone-' + this.headerCt.up('[scrollerOwner]').id;
|
18
|
-
},
|
19
|
-
|
20
|
-
getDragData: function(e) {
|
21
|
-
var header = e.getTarget('.'+this.colHeaderCls),
|
22
|
-
headerCmp,
|
23
|
-
ddel;
|
24
|
-
|
25
|
-
if (header) {
|
26
|
-
headerCmp = Ext.getCmp(header.id);
|
27
|
-
if (!this.headerCt.dragging && headerCmp.draggable && !(headerCmp.isOnLeftEdge(e) || headerCmp.isOnRightEdge(e))) {
|
28
|
-
ddel = document.createElement('div');
|
29
|
-
ddel.innerHTML = Ext.getCmp(header.id).text;
|
30
|
-
return {
|
31
|
-
ddel: ddel,
|
32
|
-
header: headerCmp
|
33
|
-
};
|
34
|
-
}
|
35
|
-
}
|
36
|
-
return false;
|
37
|
-
},
|
38
|
-
|
39
|
-
onBeforeDrag: function() {
|
40
|
-
return !(this.headerCt.dragging || this.disabled);
|
41
|
-
},
|
42
|
-
|
43
|
-
onInitDrag: function() {
|
44
|
-
this.headerCt.dragging = true;
|
45
|
-
this.callParent(arguments);
|
46
|
-
},
|
47
|
-
|
48
|
-
onDragDrop: function() {
|
49
|
-
this.headerCt.dragging = false;
|
50
|
-
this.callParent(arguments);
|
51
|
-
},
|
52
|
-
|
53
|
-
afterRepair: function() {
|
54
|
-
this.callParent();
|
55
|
-
this.headerCt.dragging = false;
|
56
|
-
},
|
57
|
-
|
58
|
-
getRepairXY: function() {
|
59
|
-
return this.dragData.header.el.getXY();
|
60
|
-
},
|
61
|
-
|
62
|
-
disable: function() {
|
63
|
-
this.disabled = true;
|
64
|
-
},
|
65
|
-
|
66
|
-
enable: function() {
|
67
|
-
this.disabled = false;
|
68
|
-
}
|
69
|
-
});
|
@@ -1,265 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* @private
|
3
|
-
*/
|
4
|
-
Ext.define('Ext.grid.header.DropZone', {
|
5
|
-
extend: 'Ext.dd.DropZone',
|
6
|
-
colHeaderCls: Ext.baseCSSPrefix + 'column-header',
|
7
|
-
proxyOffsets: [-4, -9],
|
8
|
-
|
9
|
-
constructor: function(headerCt){
|
10
|
-
this.headerCt = headerCt;
|
11
|
-
this.ddGroup = this.getDDGroup();
|
12
|
-
this.callParent([headerCt.el]);
|
13
|
-
},
|
14
|
-
|
15
|
-
getDDGroup: function() {
|
16
|
-
return 'header-dd-zone-' + this.headerCt.up('[scrollerOwner]').id;
|
17
|
-
},
|
18
|
-
|
19
|
-
getTargetFromEvent : function(e){
|
20
|
-
return e.getTarget('.' + this.colHeaderCls);
|
21
|
-
},
|
22
|
-
|
23
|
-
getTopIndicator: function() {
|
24
|
-
if (!this.topIndicator) {
|
25
|
-
this.topIndicator = Ext.DomHelper.append(Ext.getBody(), {
|
26
|
-
cls: "col-move-top",
|
27
|
-
html: " "
|
28
|
-
}, true);
|
29
|
-
}
|
30
|
-
return this.topIndicator;
|
31
|
-
},
|
32
|
-
|
33
|
-
getBottomIndicator: function() {
|
34
|
-
if (!this.bottomIndicator) {
|
35
|
-
this.bottomIndicator = Ext.DomHelper.append(Ext.getBody(), {
|
36
|
-
cls: "col-move-bottom",
|
37
|
-
html: " "
|
38
|
-
}, true);
|
39
|
-
}
|
40
|
-
return this.bottomIndicator;
|
41
|
-
},
|
42
|
-
|
43
|
-
getLocation: function(e, t) {
|
44
|
-
var x = e.getXY()[0],
|
45
|
-
region = Ext.fly(t).getRegion(),
|
46
|
-
pos, header;
|
47
|
-
|
48
|
-
if ((region.right - x) <= (region.right - region.left) / 2) {
|
49
|
-
pos = "after";
|
50
|
-
} else {
|
51
|
-
pos = "before";
|
52
|
-
}
|
53
|
-
return {
|
54
|
-
pos: pos,
|
55
|
-
header: Ext.getCmp(t.id),
|
56
|
-
node: t
|
57
|
-
};
|
58
|
-
},
|
59
|
-
|
60
|
-
positionIndicator: function(draggedHeader, node, e){
|
61
|
-
var location = this.getLocation(e, node),
|
62
|
-
header = location.header,
|
63
|
-
pos = location.pos,
|
64
|
-
nextHd = draggedHeader.nextSibling('gridcolumn:not([hidden])'),
|
65
|
-
prevHd = draggedHeader.previousSibling('gridcolumn:not([hidden])'),
|
66
|
-
region, topIndicator, bottomIndicator, topAnchor, bottomAnchor,
|
67
|
-
topXY, bottomXY, headerCtEl, minX, maxX,
|
68
|
-
allDropZones, ln, i, dropZone;
|
69
|
-
|
70
|
-
// Cannot drag beyond non-draggable start column
|
71
|
-
if (!header.draggable && header.getIndex() === 0) {
|
72
|
-
return false;
|
73
|
-
}
|
74
|
-
|
75
|
-
this.lastLocation = location;
|
76
|
-
|
77
|
-
if ((draggedHeader !== header) &&
|
78
|
-
((pos === "before" && nextHd !== header) ||
|
79
|
-
(pos === "after" && prevHd !== header)) &&
|
80
|
-
!header.isDescendantOf(draggedHeader)) {
|
81
|
-
|
82
|
-
// As we move in between different DropZones that are in the same
|
83
|
-
// group (such as the case when in a locked grid), invalidateDrop
|
84
|
-
// on the other dropZones.
|
85
|
-
allDropZones = Ext.dd.DragDropManager.getRelated(this);
|
86
|
-
ln = allDropZones.length;
|
87
|
-
i = 0;
|
88
|
-
|
89
|
-
for (; i < ln; i++) {
|
90
|
-
dropZone = allDropZones[i];
|
91
|
-
if (dropZone !== this && dropZone.invalidateDrop) {
|
92
|
-
dropZone.invalidateDrop();
|
93
|
-
}
|
94
|
-
}
|
95
|
-
|
96
|
-
|
97
|
-
this.valid = true;
|
98
|
-
topIndicator = this.getTopIndicator();
|
99
|
-
bottomIndicator = this.getBottomIndicator();
|
100
|
-
if (pos === 'before') {
|
101
|
-
topAnchor = 'tl';
|
102
|
-
bottomAnchor = 'bl';
|
103
|
-
} else {
|
104
|
-
topAnchor = 'tr';
|
105
|
-
bottomAnchor = 'br';
|
106
|
-
}
|
107
|
-
topXY = header.el.getAnchorXY(topAnchor);
|
108
|
-
bottomXY = header.el.getAnchorXY(bottomAnchor);
|
109
|
-
|
110
|
-
// constrain the indicators to the viewable section
|
111
|
-
headerCtEl = this.headerCt.el;
|
112
|
-
minX = headerCtEl.getLeft();
|
113
|
-
maxX = headerCtEl.getRight();
|
114
|
-
|
115
|
-
topXY[0] = Ext.Number.constrain(topXY[0], minX, maxX);
|
116
|
-
bottomXY[0] = Ext.Number.constrain(bottomXY[0], minX, maxX);
|
117
|
-
|
118
|
-
// adjust by offsets, this is to center the arrows so that they point
|
119
|
-
// at the split point
|
120
|
-
topXY[0] -= 4;
|
121
|
-
topXY[1] -= 9;
|
122
|
-
bottomXY[0] -= 4;
|
123
|
-
|
124
|
-
// position and show indicators
|
125
|
-
topIndicator.setXY(topXY);
|
126
|
-
bottomIndicator.setXY(bottomXY);
|
127
|
-
topIndicator.show();
|
128
|
-
bottomIndicator.show();
|
129
|
-
// invalidate drop operation and hide indicators
|
130
|
-
} else {
|
131
|
-
this.invalidateDrop();
|
132
|
-
}
|
133
|
-
},
|
134
|
-
|
135
|
-
invalidateDrop: function() {
|
136
|
-
this.valid = false;
|
137
|
-
this.hideIndicators();
|
138
|
-
},
|
139
|
-
|
140
|
-
onNodeOver: function(node, dragZone, e, data) {
|
141
|
-
var me = this,
|
142
|
-
header = me.headerCt,
|
143
|
-
doPosition = true,
|
144
|
-
from = data.header,
|
145
|
-
to;
|
146
|
-
|
147
|
-
if (data.header.el.dom === node) {
|
148
|
-
doPosition = false;
|
149
|
-
} else {
|
150
|
-
to = me.getLocation(e, node).header;
|
151
|
-
doPosition = (from.ownerCt === to.ownerCt) || (!from.ownerCt.sealed && !to.ownerCt.sealed);
|
152
|
-
}
|
153
|
-
|
154
|
-
if (doPosition) {
|
155
|
-
me.positionIndicator(data.header, node, e);
|
156
|
-
} else {
|
157
|
-
me.valid = false;
|
158
|
-
}
|
159
|
-
return me.valid ? me.dropAllowed : me.dropNotAllowed;
|
160
|
-
},
|
161
|
-
|
162
|
-
hideIndicators: function() {
|
163
|
-
this.getTopIndicator().hide();
|
164
|
-
this.getBottomIndicator().hide();
|
165
|
-
},
|
166
|
-
|
167
|
-
onNodeOut: function() {
|
168
|
-
this.hideIndicators();
|
169
|
-
},
|
170
|
-
|
171
|
-
onNodeDrop: function(node, dragZone, e, data) {
|
172
|
-
if (this.valid) {
|
173
|
-
this.invalidateDrop();
|
174
|
-
var dragHeader = data.header,
|
175
|
-
lastLocation = this.lastLocation,
|
176
|
-
targetHeader = lastLocation.header,
|
177
|
-
fromCt = dragHeader.ownerCt,
|
178
|
-
localFromIdx = fromCt.items.indexOf(dragHeader), // Container.items is a MixedCollection
|
179
|
-
toCt = targetHeader.ownerCt,
|
180
|
-
localToIdx = toCt.items.indexOf(targetHeader),
|
181
|
-
headerCt = this.headerCt,
|
182
|
-
fromIdx = headerCt.getHeaderIndex(dragHeader),
|
183
|
-
colsToMove = dragHeader.isGroupHeader ? dragHeader.query(':not([isGroupHeader])').length : 1,
|
184
|
-
toIdx = headerCt.getHeaderIndex(targetHeader),
|
185
|
-
groupCt,
|
186
|
-
scrollerOwner;
|
187
|
-
|
188
|
-
// Drop position is to the right of the targetHeader, increment the toIdx correctly
|
189
|
-
if (lastLocation.pos === 'after') {
|
190
|
-
localToIdx++;
|
191
|
-
toIdx += targetHeader.isGroupHeader ? targetHeader.query(':not([isGroupHeader])').length : 1;
|
192
|
-
}
|
193
|
-
|
194
|
-
// If we are dragging in between two HeaderContainers that have had the lockable
|
195
|
-
// mixin injected we will lock/unlock headers in between sections. Note that lockable
|
196
|
-
// does NOT currently support grouped headers.
|
197
|
-
if (fromCt !== toCt && fromCt.lockableInjected && toCt.lockableInjected && toCt.lockedCt) {
|
198
|
-
scrollerOwner = fromCt.up('[scrollerOwner]');
|
199
|
-
scrollerOwner.lock(dragHeader, localToIdx);
|
200
|
-
} else if (fromCt !== toCt && fromCt.lockableInjected && toCt.lockableInjected && fromCt.lockedCt) {
|
201
|
-
scrollerOwner = fromCt.up('[scrollerOwner]');
|
202
|
-
scrollerOwner.unlock(dragHeader, localToIdx);
|
203
|
-
} else {
|
204
|
-
// If dragging rightwards, then after removal, the insertion index will be less when moving
|
205
|
-
// within the same container.
|
206
|
-
if ((fromCt === toCt) && (localToIdx > localFromIdx)) {
|
207
|
-
|
208
|
-
// Wer're dragging whole headers, so locally, the adjustment is only one
|
209
|
-
localToIdx -= 1;
|
210
|
-
}
|
211
|
-
|
212
|
-
// Suspend layouts while we sort all this out.
|
213
|
-
Ext.suspendLayouts();
|
214
|
-
|
215
|
-
// Remove dragged header from where it was.
|
216
|
-
if (fromCt !== toCt) {
|
217
|
-
fromCt.remove(dragHeader, false);
|
218
|
-
|
219
|
-
// Dragged the last header out of the fromCt group... The fromCt group must die
|
220
|
-
if (fromCt.isGroupHeader) {
|
221
|
-
if (!fromCt.items.getCount()) {
|
222
|
-
groupCt = fromCt.ownerCt;
|
223
|
-
groupCt.remove(fromCt, false);
|
224
|
-
fromCt.el.dom.parentNode.removeChild(fromCt.el.dom);
|
225
|
-
}
|
226
|
-
}
|
227
|
-
}
|
228
|
-
|
229
|
-
// Move dragged header into its drop position
|
230
|
-
if (fromCt === toCt) {
|
231
|
-
toCt.move(localFromIdx, localToIdx);
|
232
|
-
} else {
|
233
|
-
toCt.insert(localToIdx, dragHeader);
|
234
|
-
}
|
235
|
-
|
236
|
-
// Group headers acquire the aggregate width of their child headers
|
237
|
-
// Therefore a child header may not flex; it must contribute a fixed width.
|
238
|
-
// But we restore the flex value when moving back into the main header container
|
239
|
-
if (toCt.isGroupHeader) {
|
240
|
-
// Adjust the width of the "to" group header only if we dragged in from somewhere else.
|
241
|
-
if (toCt !== fromCt) {
|
242
|
-
dragHeader.savedFlex = dragHeader.flex;
|
243
|
-
delete dragHeader.flex;
|
244
|
-
dragHeader.width = dragHeader.getWidth();
|
245
|
-
}
|
246
|
-
} else {
|
247
|
-
if (dragHeader.savedFlex) {
|
248
|
-
dragHeader.flex = dragHeader.savedFlex;
|
249
|
-
delete dragHeader.width;
|
250
|
-
}
|
251
|
-
}
|
252
|
-
|
253
|
-
// Refresh columns cache in case we remove an emptied group column
|
254
|
-
headerCt.purgeCache();
|
255
|
-
Ext.resumeLayouts(true);
|
256
|
-
headerCt.onHeaderMoved(dragHeader, colsToMove, fromIdx, toIdx);
|
257
|
-
|
258
|
-
// Emptied group header can only be destroyed after the header and grid have been refreshed
|
259
|
-
if (!fromCt.items.getCount()) {
|
260
|
-
fromCt.destroy();
|
261
|
-
}
|
262
|
-
}
|
263
|
-
}
|
264
|
-
}
|
265
|
-
});
|
@@ -1,453 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* The Ext.grid.plugin.CellEditing plugin injects editing at a cell level for a Grid. Only a single
|
3
|
-
* cell will be editable at a time. The field that will be used for the editor is defined at the
|
4
|
-
* {@link Ext.grid.column.Column#editor editor}. The editor can be a field instance or a field configuration.
|
5
|
-
*
|
6
|
-
* If an editor is not specified for a particular column then that cell will not be editable and it will
|
7
|
-
* be skipped when activated via the mouse or the keyboard.
|
8
|
-
*
|
9
|
-
* The editor may be shared for each column in the grid, or a different one may be specified for each column.
|
10
|
-
* An appropriate field type should be chosen to match the data structure that it will be editing. For example,
|
11
|
-
* to edit a date, it would be useful to specify {@link Ext.form.field.Date} as the editor.
|
12
|
-
*
|
13
|
-
* @example
|
14
|
-
* Ext.create('Ext.data.Store', {
|
15
|
-
* storeId:'simpsonsStore',
|
16
|
-
* fields:['name', 'email', 'phone'],
|
17
|
-
* data:{'items':[
|
18
|
-
* {"name":"Lisa", "email":"lisa@simpsons.com", "phone":"555-111-1224"},
|
19
|
-
* {"name":"Bart", "email":"bart@simpsons.com", "phone":"555-222-1234"},
|
20
|
-
* {"name":"Homer", "email":"home@simpsons.com", "phone":"555-222-1244"},
|
21
|
-
* {"name":"Marge", "email":"marge@simpsons.com", "phone":"555-222-1254"}
|
22
|
-
* ]},
|
23
|
-
* proxy: {
|
24
|
-
* type: 'memory',
|
25
|
-
* reader: {
|
26
|
-
* type: 'json',
|
27
|
-
* root: 'items'
|
28
|
-
* }
|
29
|
-
* }
|
30
|
-
* });
|
31
|
-
*
|
32
|
-
* Ext.create('Ext.grid.Panel', {
|
33
|
-
* title: 'Simpsons',
|
34
|
-
* store: Ext.data.StoreManager.lookup('simpsonsStore'),
|
35
|
-
* columns: [
|
36
|
-
* {header: 'Name', dataIndex: 'name', editor: 'textfield'},
|
37
|
-
* {header: 'Email', dataIndex: 'email', flex:1,
|
38
|
-
* editor: {
|
39
|
-
* xtype: 'textfield',
|
40
|
-
* allowBlank: false
|
41
|
-
* }
|
42
|
-
* },
|
43
|
-
* {header: 'Phone', dataIndex: 'phone'}
|
44
|
-
* ],
|
45
|
-
* selType: 'cellmodel',
|
46
|
-
* plugins: [
|
47
|
-
* Ext.create('Ext.grid.plugin.CellEditing', {
|
48
|
-
* clicksToEdit: 1
|
49
|
-
* })
|
50
|
-
* ],
|
51
|
-
* height: 200,
|
52
|
-
* width: 400,
|
53
|
-
* renderTo: Ext.getBody()
|
54
|
-
* });
|
55
|
-
*/
|
56
|
-
Ext.define('Ext.grid.plugin.CellEditing', {
|
57
|
-
alias: 'plugin.cellediting',
|
58
|
-
extend: 'Ext.grid.plugin.Editing',
|
59
|
-
requires: ['Ext.grid.CellEditor', 'Ext.util.DelayedTask'],
|
60
|
-
|
61
|
-
constructor: function() {
|
62
|
-
/**
|
63
|
-
* @event beforeedit
|
64
|
-
* Fires before cell editing is triggered. Return false from event handler to stop the editing.
|
65
|
-
*
|
66
|
-
* @param {Ext.grid.plugin.CellEditing} editor
|
67
|
-
* @param {Object} e An edit event with the following properties:
|
68
|
-
*
|
69
|
-
* - grid - The grid
|
70
|
-
* - record - The record being edited
|
71
|
-
* - field - The field name being edited
|
72
|
-
* - value - The value for the field being edited.
|
73
|
-
* - row - The grid table row
|
74
|
-
* - column - The grid {@link Ext.grid.column.Column Column} defining the column that is being edited.
|
75
|
-
* - rowIdx - The row index that is being edited
|
76
|
-
* - colIdx - The column index that is being edited
|
77
|
-
* - cancel - Set this to true to cancel the edit or return false from your handler.
|
78
|
-
*/
|
79
|
-
/**
|
80
|
-
* @event edit
|
81
|
-
* Fires after a cell is edited. Usage example:
|
82
|
-
*
|
83
|
-
* grid.on('edit', function(editor, e) {
|
84
|
-
* // commit the changes right after editing finished
|
85
|
-
* e.record.commit();
|
86
|
-
* };
|
87
|
-
*
|
88
|
-
* @param {Ext.grid.plugin.CellEditing} editor
|
89
|
-
* @param {Object} e An edit event with the following properties:
|
90
|
-
*
|
91
|
-
* - grid - The grid
|
92
|
-
* - record - The record that was edited
|
93
|
-
* - field - The field name that was edited
|
94
|
-
* - value - The value being set
|
95
|
-
* - originalValue - The original value for the field, before the edit.
|
96
|
-
* - row - The grid table row
|
97
|
-
* - column - The grid {@link Ext.grid.column.Column Column} defining the column that was edited.
|
98
|
-
* - rowIdx - The row index that was edited
|
99
|
-
* - colIdx - The column index that was edited
|
100
|
-
*/
|
101
|
-
/**
|
102
|
-
* @event validateedit
|
103
|
-
* Fires after a cell is edited, but before the value is set in the record. Return false from event handler to
|
104
|
-
* cancel the change.
|
105
|
-
*
|
106
|
-
* Usage example showing how to remove the red triangle (dirty record indicator) from some records (not all). By
|
107
|
-
* observing the grid's validateedit event, it can be cancelled if the edit occurs on a targeted row (for
|
108
|
-
* example) and then setting the field's new value in the Record directly:
|
109
|
-
*
|
110
|
-
* grid.on('validateedit', function(editor, e) {
|
111
|
-
* var myTargetRow = 6;
|
112
|
-
*
|
113
|
-
* if (e.row == myTargetRow) {
|
114
|
-
* e.cancel = true;
|
115
|
-
* e.record.data[e.field] = e.value;
|
116
|
-
* }
|
117
|
-
* });
|
118
|
-
*
|
119
|
-
* @param {Ext.grid.plugin.CellEditing} editor
|
120
|
-
* @param {Object} e An edit event with the following properties:
|
121
|
-
*
|
122
|
-
* - grid - The grid
|
123
|
-
* - record - The record being edited
|
124
|
-
* - field - The field name being edited
|
125
|
-
* - value - The value being set
|
126
|
-
* - originalValue - The original value for the field, before the edit.
|
127
|
-
* - row - The grid table row
|
128
|
-
* - column - The grid {@link Ext.grid.column.Column Column} defining the column that is being edited.
|
129
|
-
* - rowIdx - The row index that is being edited
|
130
|
-
* - colIdx - The column index that is being edited
|
131
|
-
* - cancel - Set this to true to cancel the edit or return false from your handler.
|
132
|
-
*/
|
133
|
-
/**
|
134
|
-
* @event canceledit
|
135
|
-
* Fires when the user started editing a cell but then cancelled the edit.
|
136
|
-
* @param {Ext.grid.plugin.CellEditing} editor
|
137
|
-
* @param {Object} e An edit event with the following properties:
|
138
|
-
*
|
139
|
-
* - grid - The grid
|
140
|
-
* - record - The record that was edited
|
141
|
-
* - field - The field name that was edited
|
142
|
-
* - value - The value being set
|
143
|
-
* - row - The grid table row
|
144
|
-
* - column - The grid {@link Ext.grid.column.Column Column} defining the column that was edited.
|
145
|
-
* - rowIdx - The row index that was edited
|
146
|
-
* - colIdx - The column index that was edited
|
147
|
-
*/
|
148
|
-
|
149
|
-
this.callParent(arguments);
|
150
|
-
this.editors = new Ext.util.MixedCollection(false, function(editor) {
|
151
|
-
return editor.editorId;
|
152
|
-
});
|
153
|
-
this.editTask = new Ext.util.DelayedTask();
|
154
|
-
},
|
155
|
-
|
156
|
-
onReconfigure: function(){
|
157
|
-
this.editors.clear();
|
158
|
-
this.callParent();
|
159
|
-
},
|
160
|
-
|
161
|
-
/**
|
162
|
-
* @private
|
163
|
-
* AbstractComponent calls destroy on all its plugins at destroy time.
|
164
|
-
*/
|
165
|
-
destroy: function() {
|
166
|
-
var me = this;
|
167
|
-
me.editTask.cancel();
|
168
|
-
me.editors.each(Ext.destroy, Ext);
|
169
|
-
me.editors.clear();
|
170
|
-
me.callParent(arguments);
|
171
|
-
},
|
172
|
-
|
173
|
-
onBodyScroll: function() {
|
174
|
-
var me = this,
|
175
|
-
ed = me.getActiveEditor(),
|
176
|
-
scroll = me.view.el.getScroll();
|
177
|
-
|
178
|
-
// Scroll happened during editing...
|
179
|
-
if (ed && ed.editing) {
|
180
|
-
// Terminate editing only on vertical scroll. Horiz scroll can be caused by tabbing between cells.
|
181
|
-
if (scroll.top !== me.scroll.top) {
|
182
|
-
if (ed.field) {
|
183
|
-
if (ed.field.triggerBlur) {
|
184
|
-
ed.field.triggerBlur();
|
185
|
-
} else {
|
186
|
-
ed.field.blur();
|
187
|
-
}
|
188
|
-
}
|
189
|
-
}
|
190
|
-
// Horiz scroll just requires that the editor be realigned.
|
191
|
-
else {
|
192
|
-
ed.realign();
|
193
|
-
}
|
194
|
-
}
|
195
|
-
me.scroll = scroll;
|
196
|
-
},
|
197
|
-
|
198
|
-
// private
|
199
|
-
// Template method called from base class's initEvents
|
200
|
-
initCancelTriggers: function() {
|
201
|
-
var me = this,
|
202
|
-
grid = me.grid,
|
203
|
-
view = grid.view;
|
204
|
-
|
205
|
-
view.addElListener('mousewheel', me.cancelEdit, me);
|
206
|
-
me.mon(view, 'bodyscroll', me.onBodyScroll, me);
|
207
|
-
me.mon(grid, {
|
208
|
-
columnresize: me.cancelEdit,
|
209
|
-
columnmove: me.cancelEdit,
|
210
|
-
scope: me
|
211
|
-
});
|
212
|
-
},
|
213
|
-
|
214
|
-
isCellEditable: function(record, columnHeader) {
|
215
|
-
var me = this,
|
216
|
-
context = me.getEditingContext(record, columnHeader);
|
217
|
-
|
218
|
-
if (me.grid.view.isVisible(true) && context) {
|
219
|
-
columnHeader = context.column;
|
220
|
-
record = context.record;
|
221
|
-
if (columnHeader && me.getEditor(record, columnHeader)) {
|
222
|
-
return true;
|
223
|
-
}
|
224
|
-
}
|
225
|
-
},
|
226
|
-
|
227
|
-
/**
|
228
|
-
* Starts editing the specified record, using the specified Column definition to define which field is being edited.
|
229
|
-
* @param {Ext.data.Model} record The Store data record which backs the row to be edited.
|
230
|
-
* @param {Ext.grid.column.Column} columnHeader The Column object defining the column to be edited.
|
231
|
-
* @return `true` if editing was started, `false` otherwise.
|
232
|
-
*/
|
233
|
-
startEdit: function(record, columnHeader) {
|
234
|
-
var me = this,
|
235
|
-
context = me.getEditingContext(record, columnHeader),
|
236
|
-
value, ed;
|
237
|
-
|
238
|
-
// Complete the edit now, before getting the editor's target
|
239
|
-
// cell DOM element. Completing the edit causes a row refresh.
|
240
|
-
// Also allows any post-edit events to take effect before continuing
|
241
|
-
me.completeEdit();
|
242
|
-
|
243
|
-
// Cancel editing if EditingContext could not be found (possibly because record has been deleted by an intervening listener), or if the grid view is not currently visible
|
244
|
-
if (!context || !me.grid.view.isVisible(true)) {
|
245
|
-
return false;
|
246
|
-
}
|
247
|
-
|
248
|
-
record = context.record;
|
249
|
-
columnHeader = context.column;
|
250
|
-
|
251
|
-
// See if the field is editable for the requested record
|
252
|
-
if (columnHeader && !columnHeader.getEditor(record)) {
|
253
|
-
return false;
|
254
|
-
}
|
255
|
-
|
256
|
-
value = record.get(columnHeader.dataIndex);
|
257
|
-
context.originalValue = context.value = value;
|
258
|
-
if (me.beforeEdit(context) === false || me.fireEvent('beforeedit', me, context) === false || context.cancel) {
|
259
|
-
return false;
|
260
|
-
}
|
261
|
-
|
262
|
-
ed = me.getEditor(record, columnHeader);
|
263
|
-
|
264
|
-
// Whether we are going to edit or not, ensure the edit cell is scrolled into view
|
265
|
-
me.grid.view.cancelFocus();
|
266
|
-
me.view.focusCell({
|
267
|
-
row: context.row,
|
268
|
-
column: context.colIdx
|
269
|
-
});
|
270
|
-
if (ed) {
|
271
|
-
me.context = context;
|
272
|
-
me.setActiveEditor(ed);
|
273
|
-
me.setActiveRecord(record);
|
274
|
-
me.setActiveColumn(columnHeader);
|
275
|
-
|
276
|
-
// Defer, so we have some time between view scroll to sync up the editor
|
277
|
-
me.editTask.delay(15, ed.startEdit, ed, [me.getCell(record, columnHeader), value]);
|
278
|
-
me.editing = true;
|
279
|
-
me.scroll = me.view.el.getScroll();
|
280
|
-
return true;
|
281
|
-
}
|
282
|
-
return false;
|
283
|
-
},
|
284
|
-
|
285
|
-
completeEdit: function() {
|
286
|
-
var activeEd = this.getActiveEditor();
|
287
|
-
if (activeEd) {
|
288
|
-
activeEd.completeEdit();
|
289
|
-
this.editing = false;
|
290
|
-
}
|
291
|
-
},
|
292
|
-
|
293
|
-
// internal getters/setters
|
294
|
-
setActiveEditor: function(ed) {
|
295
|
-
this.activeEditor = ed;
|
296
|
-
},
|
297
|
-
|
298
|
-
getActiveEditor: function() {
|
299
|
-
return this.activeEditor;
|
300
|
-
},
|
301
|
-
|
302
|
-
setActiveColumn: function(column) {
|
303
|
-
this.activeColumn = column;
|
304
|
-
},
|
305
|
-
|
306
|
-
getActiveColumn: function() {
|
307
|
-
return this.activeColumn;
|
308
|
-
},
|
309
|
-
|
310
|
-
setActiveRecord: function(record) {
|
311
|
-
this.activeRecord = record;
|
312
|
-
},
|
313
|
-
|
314
|
-
getActiveRecord: function() {
|
315
|
-
return this.activeRecord;
|
316
|
-
},
|
317
|
-
|
318
|
-
getEditor: function(record, column) {
|
319
|
-
var me = this,
|
320
|
-
editors = me.editors,
|
321
|
-
editorId = column.getItemId(),
|
322
|
-
editor = editors.getByKey(editorId);
|
323
|
-
|
324
|
-
if (editor) {
|
325
|
-
return editor;
|
326
|
-
} else {
|
327
|
-
editor = column.getEditor(record);
|
328
|
-
if (!editor) {
|
329
|
-
return false;
|
330
|
-
}
|
331
|
-
|
332
|
-
// Allow them to specify a CellEditor in the Column
|
333
|
-
if (!(editor instanceof Ext.grid.CellEditor)) {
|
334
|
-
editor = new Ext.grid.CellEditor({
|
335
|
-
editorId: editorId,
|
336
|
-
field: editor,
|
337
|
-
ownerCt: me.grid
|
338
|
-
});
|
339
|
-
}
|
340
|
-
editor.editingPlugin = me;
|
341
|
-
editor.isForTree = me.grid.isTree;
|
342
|
-
editor.on({
|
343
|
-
scope: me,
|
344
|
-
specialkey: me.onSpecialKey,
|
345
|
-
complete: me.onEditComplete,
|
346
|
-
canceledit: me.cancelEdit
|
347
|
-
});
|
348
|
-
editors.add(editor);
|
349
|
-
return editor;
|
350
|
-
}
|
351
|
-
},
|
352
|
-
|
353
|
-
// inherit docs
|
354
|
-
setColumnField: function(column, field) {
|
355
|
-
var ed = this.editors.getByKey(column.getItemId());
|
356
|
-
Ext.destroy(ed, column.field);
|
357
|
-
this.editors.removeAtKey(column.getItemId());
|
358
|
-
this.callParent(arguments);
|
359
|
-
},
|
360
|
-
|
361
|
-
/**
|
362
|
-
* Gets the cell (td) for a particular record and column.
|
363
|
-
* @param {Ext.data.Model} record
|
364
|
-
* @param {Ext.grid.column.Column} column
|
365
|
-
* @private
|
366
|
-
*/
|
367
|
-
getCell: function(record, column) {
|
368
|
-
return this.grid.getView().getCell(record, column);
|
369
|
-
},
|
370
|
-
|
371
|
-
onSpecialKey: function(ed, field, e) {
|
372
|
-
var me = this,
|
373
|
-
grid = me.grid,
|
374
|
-
sm;
|
375
|
-
|
376
|
-
if (e.getKey() === e.TAB) {
|
377
|
-
e.stopEvent();
|
378
|
-
|
379
|
-
if (ed) {
|
380
|
-
// Allow the field to act on tabs before onEditorTab, which ends
|
381
|
-
// up calling completeEdit. This is useful for picker type fields.
|
382
|
-
ed.onEditorTab(e);
|
383
|
-
}
|
384
|
-
|
385
|
-
sm = grid.getSelectionModel();
|
386
|
-
if (sm.onEditorTab) {
|
387
|
-
sm.onEditorTab(me, e);
|
388
|
-
}
|
389
|
-
}
|
390
|
-
},
|
391
|
-
|
392
|
-
onEditComplete : function(ed, value, startValue) {
|
393
|
-
var me = this,
|
394
|
-
grid = me.grid,
|
395
|
-
activeColumn = me.getActiveColumn(),
|
396
|
-
record;
|
397
|
-
|
398
|
-
if (activeColumn) {
|
399
|
-
record = me.context.record;
|
400
|
-
|
401
|
-
me.setActiveEditor(null);
|
402
|
-
me.setActiveColumn(null);
|
403
|
-
me.setActiveRecord(null);
|
404
|
-
|
405
|
-
if (!me.validateEdit()) {
|
406
|
-
return;
|
407
|
-
}
|
408
|
-
// Only update the record if the new value is different than the
|
409
|
-
// startValue. When the view refreshes its el will gain focus
|
410
|
-
if (!record.isEqual(value, startValue)) {
|
411
|
-
record.set(activeColumn.dataIndex, value);
|
412
|
-
// Restore focus back to the view's element.
|
413
|
-
} else {
|
414
|
-
grid.getView().getEl(activeColumn).focus();
|
415
|
-
}
|
416
|
-
me.context.value = value;
|
417
|
-
me.fireEvent('edit', me, me.context);
|
418
|
-
}
|
419
|
-
},
|
420
|
-
|
421
|
-
/**
|
422
|
-
* Cancels any active editing.
|
423
|
-
*/
|
424
|
-
cancelEdit: function() {
|
425
|
-
var me = this,
|
426
|
-
activeEd = me.getActiveEditor(),
|
427
|
-
viewEl = me.grid.getView().getEl(me.getActiveColumn());
|
428
|
-
|
429
|
-
me.setActiveEditor(null);
|
430
|
-
me.setActiveColumn(null);
|
431
|
-
me.setActiveRecord(null);
|
432
|
-
if (activeEd) {
|
433
|
-
activeEd.cancelEdit();
|
434
|
-
viewEl.focus();
|
435
|
-
me.callParent(arguments);
|
436
|
-
}
|
437
|
-
},
|
438
|
-
|
439
|
-
/**
|
440
|
-
* Starts editing by position (row/column)
|
441
|
-
* @param {Object} position A position with keys of row and column.
|
442
|
-
*/
|
443
|
-
startEditByPosition: function(position) {
|
444
|
-
var sm = this.grid.getSelectionModel();
|
445
|
-
|
446
|
-
// Coerce the column position to the closest visible column
|
447
|
-
position.column = this.view.getHeaderCt().getVisibleHeaderClosestToIndex(position.column).getIndex();
|
448
|
-
if (sm.selectByPosition) {
|
449
|
-
sm.selectByPosition(position);
|
450
|
-
}
|
451
|
-
return this.startEdit(position.row, position.column);
|
452
|
-
}
|
453
|
-
});
|