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,426 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* This animation class is a mixin.
|
3
|
-
*
|
4
|
-
* Ext.util.Animate provides an API for the creation of animated transitions of properties and styles.
|
5
|
-
* This class is used as a mixin and currently applied to {@link Ext.Element}, {@link Ext.CompositeElement},
|
6
|
-
* {@link Ext.draw.Sprite}, {@link Ext.draw.CompositeSprite}, and {@link Ext.Component}. Note that Components
|
7
|
-
* have a limited subset of what attributes can be animated such as top, left, x, y, height, width, and
|
8
|
-
* opacity (color, paddings, and margins can not be animated).
|
9
|
-
*
|
10
|
-
* ## Animation Basics
|
11
|
-
*
|
12
|
-
* All animations require three things - `easing`, `duration`, and `to` (the final end value for each property)
|
13
|
-
* you wish to animate. Easing and duration are defaulted values specified below.
|
14
|
-
* Easing describes how the intermediate values used during a transition will be calculated.
|
15
|
-
* {@link Ext.fx.Anim#easing Easing} allows for a transition to change speed over its duration.
|
16
|
-
* You may use the defaults for easing and duration, but you must always set a
|
17
|
-
* {@link Ext.fx.Anim#to to} property which is the end value for all animations.
|
18
|
-
*
|
19
|
-
* Popular element 'to' configurations are:
|
20
|
-
*
|
21
|
-
* - opacity
|
22
|
-
* - x
|
23
|
-
* - y
|
24
|
-
* - color
|
25
|
-
* - height
|
26
|
-
* - width
|
27
|
-
*
|
28
|
-
* Popular sprite 'to' configurations are:
|
29
|
-
*
|
30
|
-
* - translation
|
31
|
-
* - path
|
32
|
-
* - scale
|
33
|
-
* - stroke
|
34
|
-
* - rotation
|
35
|
-
*
|
36
|
-
* The default duration for animations is 250 (which is a 1/4 of a second). Duration is denoted in
|
37
|
-
* milliseconds. Therefore 1 second is 1000, 1 minute would be 60000, and so on. The default easing curve
|
38
|
-
* used for all animations is 'ease'. Popular easing functions are included and can be found in {@link Ext.fx.Anim#easing Easing}.
|
39
|
-
*
|
40
|
-
* For example, a simple animation to fade out an element with a default easing and duration:
|
41
|
-
*
|
42
|
-
* var p1 = Ext.get('myElementId');
|
43
|
-
*
|
44
|
-
* p1.animate({
|
45
|
-
* to: {
|
46
|
-
* opacity: 0
|
47
|
-
* }
|
48
|
-
* });
|
49
|
-
*
|
50
|
-
* To make this animation fade out in a tenth of a second:
|
51
|
-
*
|
52
|
-
* var p1 = Ext.get('myElementId');
|
53
|
-
*
|
54
|
-
* p1.animate({
|
55
|
-
* duration: 100,
|
56
|
-
* to: {
|
57
|
-
* opacity: 0
|
58
|
-
* }
|
59
|
-
* });
|
60
|
-
*
|
61
|
-
* ## Animation Queues
|
62
|
-
*
|
63
|
-
* By default all animations are added to a queue which allows for animation via a chain-style API.
|
64
|
-
* For example, the following code will queue 4 animations which occur sequentially (one right after the other):
|
65
|
-
*
|
66
|
-
* p1.animate({
|
67
|
-
* to: {
|
68
|
-
* x: 500
|
69
|
-
* }
|
70
|
-
* }).animate({
|
71
|
-
* to: {
|
72
|
-
* y: 150
|
73
|
-
* }
|
74
|
-
* }).animate({
|
75
|
-
* to: {
|
76
|
-
* backgroundColor: '#f00' //red
|
77
|
-
* }
|
78
|
-
* }).animate({
|
79
|
-
* to: {
|
80
|
-
* opacity: 0
|
81
|
-
* }
|
82
|
-
* });
|
83
|
-
*
|
84
|
-
* You can change this behavior by calling the {@link Ext.util.Animate#syncFx syncFx} method and all
|
85
|
-
* subsequent animations for the specified target will be run concurrently (at the same time).
|
86
|
-
*
|
87
|
-
* p1.syncFx(); //this will make all animations run at the same time
|
88
|
-
*
|
89
|
-
* p1.animate({
|
90
|
-
* to: {
|
91
|
-
* x: 500
|
92
|
-
* }
|
93
|
-
* }).animate({
|
94
|
-
* to: {
|
95
|
-
* y: 150
|
96
|
-
* }
|
97
|
-
* }).animate({
|
98
|
-
* to: {
|
99
|
-
* backgroundColor: '#f00' //red
|
100
|
-
* }
|
101
|
-
* }).animate({
|
102
|
-
* to: {
|
103
|
-
* opacity: 0
|
104
|
-
* }
|
105
|
-
* });
|
106
|
-
*
|
107
|
-
* This works the same as:
|
108
|
-
*
|
109
|
-
* p1.animate({
|
110
|
-
* to: {
|
111
|
-
* x: 500,
|
112
|
-
* y: 150,
|
113
|
-
* backgroundColor: '#f00' //red
|
114
|
-
* opacity: 0
|
115
|
-
* }
|
116
|
-
* });
|
117
|
-
*
|
118
|
-
* The {@link Ext.util.Animate#stopAnimation stopAnimation} method can be used to stop any
|
119
|
-
* currently running animations and clear any queued animations.
|
120
|
-
*
|
121
|
-
* ## Animation Keyframes
|
122
|
-
*
|
123
|
-
* You can also set up complex animations with {@link Ext.fx.Anim#keyframes keyframes} which follow the
|
124
|
-
* CSS3 Animation configuration pattern. Note rotation, translation, and scaling can only be done for sprites.
|
125
|
-
* The previous example can be written with the following syntax:
|
126
|
-
*
|
127
|
-
* p1.animate({
|
128
|
-
* duration: 1000, //one second total
|
129
|
-
* keyframes: {
|
130
|
-
* 25: { //from 0 to 250ms (25%)
|
131
|
-
* x: 0
|
132
|
-
* },
|
133
|
-
* 50: { //from 250ms to 500ms (50%)
|
134
|
-
* y: 0
|
135
|
-
* },
|
136
|
-
* 75: { //from 500ms to 750ms (75%)
|
137
|
-
* backgroundColor: '#f00' //red
|
138
|
-
* },
|
139
|
-
* 100: { //from 750ms to 1sec
|
140
|
-
* opacity: 0
|
141
|
-
* }
|
142
|
-
* }
|
143
|
-
* });
|
144
|
-
*
|
145
|
-
* ## Animation Events
|
146
|
-
*
|
147
|
-
* Each animation you create has events for {@link Ext.fx.Anim#beforeanimate beforeanimate},
|
148
|
-
* {@link Ext.fx.Anim#afteranimate afteranimate}, and {@link Ext.fx.Anim#lastframe lastframe}.
|
149
|
-
* Keyframed animations adds an additional {@link Ext.fx.Animator#keyframe keyframe} event which
|
150
|
-
* fires for each keyframe in your animation.
|
151
|
-
*
|
152
|
-
* All animations support the {@link Ext.util.Observable#listeners listeners} configuration to attact functions to these events.
|
153
|
-
*
|
154
|
-
* startAnimate: function() {
|
155
|
-
* var p1 = Ext.get('myElementId');
|
156
|
-
* p1.animate({
|
157
|
-
* duration: 100,
|
158
|
-
* to: {
|
159
|
-
* opacity: 0
|
160
|
-
* },
|
161
|
-
* listeners: {
|
162
|
-
* beforeanimate: function() {
|
163
|
-
* // Execute my custom method before the animation
|
164
|
-
* this.myBeforeAnimateFn();
|
165
|
-
* },
|
166
|
-
* afteranimate: function() {
|
167
|
-
* // Execute my custom method after the animation
|
168
|
-
* this.myAfterAnimateFn();
|
169
|
-
* },
|
170
|
-
* scope: this
|
171
|
-
* });
|
172
|
-
* },
|
173
|
-
* myBeforeAnimateFn: function() {
|
174
|
-
* // My custom logic
|
175
|
-
* },
|
176
|
-
* myAfterAnimateFn: function() {
|
177
|
-
* // My custom logic
|
178
|
-
* }
|
179
|
-
*
|
180
|
-
* Due to the fact that animations run asynchronously, you can determine if an animation is currently
|
181
|
-
* running on any target by using the {@link Ext.util.Animate#getActiveAnimation getActiveAnimation}
|
182
|
-
* method. This method will return false if there are no active animations or return the currently
|
183
|
-
* running {@link Ext.fx.Anim} instance.
|
184
|
-
*
|
185
|
-
* In this example, we're going to wait for the current animation to finish, then stop any other
|
186
|
-
* queued animations before we fade our element's opacity to 0:
|
187
|
-
*
|
188
|
-
* var curAnim = p1.getActiveAnimation();
|
189
|
-
* if (curAnim) {
|
190
|
-
* curAnim.on('afteranimate', function() {
|
191
|
-
* p1.stopAnimation();
|
192
|
-
* p1.animate({
|
193
|
-
* to: {
|
194
|
-
* opacity: 0
|
195
|
-
* }
|
196
|
-
* });
|
197
|
-
* });
|
198
|
-
* }
|
199
|
-
*/
|
200
|
-
Ext.define('Ext.util.Animate', {
|
201
|
-
|
202
|
-
uses: ['Ext.fx.Manager', 'Ext.fx.Anim'],
|
203
|
-
|
204
|
-
/**
|
205
|
-
* Perform custom animation on this object.
|
206
|
-
*
|
207
|
-
* This method is applicable to both the {@link Ext.Component Component} class and the {@link Ext.Element Element}
|
208
|
-
* class. It performs animated transitions of certain properties of this object over a specified timeline.
|
209
|
-
*
|
210
|
-
* The sole parameter is an object which specifies start property values, end property values, and properties which
|
211
|
-
* describe the timeline.
|
212
|
-
*
|
213
|
-
* ### Animating an {@link Ext.Element Element}
|
214
|
-
*
|
215
|
-
* When animating an Element, the following properties may be specified in `from`, `to`, and `keyframe` objects:
|
216
|
-
*
|
217
|
-
* - `x` - The page X position in pixels.
|
218
|
-
*
|
219
|
-
* - `y` - The page Y position in pixels
|
220
|
-
*
|
221
|
-
* - `left` - The element's CSS `left` value. Units must be supplied.
|
222
|
-
*
|
223
|
-
* - `top` - The element's CSS `top` value. Units must be supplied.
|
224
|
-
*
|
225
|
-
* - `width` - The element's CSS `width` value. Units must be supplied.
|
226
|
-
*
|
227
|
-
* - `height` - The element's CSS `height` value. Units must be supplied.
|
228
|
-
*
|
229
|
-
* - `scrollLeft` - The element's `scrollLeft` value.
|
230
|
-
*
|
231
|
-
* - `scrollTop` - The element's `scrollLeft` value.
|
232
|
-
*
|
233
|
-
* - `opacity` - The element's `opacity` value. This must be a value between `0` and `1`.
|
234
|
-
*
|
235
|
-
* **Be aware than animating an Element which is being used by an Ext Component without in some way informing the
|
236
|
-
* Component about the changed element state will result in incorrect Component behaviour. This is because the
|
237
|
-
* Component will be using the old state of the element. To avoid this problem, it is now possible to directly
|
238
|
-
* animate certain properties of Components.**
|
239
|
-
*
|
240
|
-
* ### Animating a {@link Ext.Component Component}
|
241
|
-
*
|
242
|
-
* When animating a Component, the following properties may be specified in `from`, `to`, and `keyframe` objects:
|
243
|
-
*
|
244
|
-
* - `x` - The Component's page X position in pixels.
|
245
|
-
*
|
246
|
-
* - `y` - The Component's page Y position in pixels
|
247
|
-
*
|
248
|
-
* - `left` - The Component's `left` value in pixels.
|
249
|
-
*
|
250
|
-
* - `top` - The Component's `top` value in pixels.
|
251
|
-
*
|
252
|
-
* - `width` - The Component's `width` value in pixels.
|
253
|
-
*
|
254
|
-
* - `width` - The Component's `width` value in pixels.
|
255
|
-
*
|
256
|
-
* - `dynamic` - Specify as true to update the Component's layout (if it is a Container) at every frame of the animation.
|
257
|
-
* *Use sparingly as laying out on every intermediate size change is an expensive operation.*
|
258
|
-
*
|
259
|
-
* For example, to animate a Window to a new size, ensuring that its internal layout, and any shadow is correct:
|
260
|
-
*
|
261
|
-
* myWindow = Ext.create('Ext.window.Window', {
|
262
|
-
* title: 'Test Component animation',
|
263
|
-
* width: 500,
|
264
|
-
* height: 300,
|
265
|
-
* layout: {
|
266
|
-
* type: 'hbox',
|
267
|
-
* align: 'stretch'
|
268
|
-
* },
|
269
|
-
* items: [{
|
270
|
-
* title: 'Left: 33%',
|
271
|
-
* margins: '5 0 5 5',
|
272
|
-
* flex: 1
|
273
|
-
* }, {
|
274
|
-
* title: 'Left: 66%',
|
275
|
-
* margins: '5 5 5 5',
|
276
|
-
* flex: 2
|
277
|
-
* }]
|
278
|
-
* });
|
279
|
-
* myWindow.show();
|
280
|
-
* myWindow.header.el.on('click', function() {
|
281
|
-
* myWindow.animate({
|
282
|
-
* to: {
|
283
|
-
* width: (myWindow.getWidth() == 500) ? 700 : 500,
|
284
|
-
* height: (myWindow.getHeight() == 300) ? 400 : 300,
|
285
|
-
* }
|
286
|
-
* });
|
287
|
-
* });
|
288
|
-
*
|
289
|
-
* For performance reasons, by default, the internal layout is only updated when the Window reaches its final `"to"`
|
290
|
-
* size. If dynamic updating of the Window's child Components is required, then configure the animation with
|
291
|
-
* `dynamic: true` and the two child items will maintain their proportions during the animation.
|
292
|
-
*
|
293
|
-
* @param {Object} config An object containing properties which describe the animation's start and end states, and
|
294
|
-
* the timeline of the animation. Of the properties listed below, only **`to`** is mandatory.
|
295
|
-
*
|
296
|
-
* Properties include:
|
297
|
-
*
|
298
|
-
* @param {Object} config.from
|
299
|
-
* An object which specifies start values for the properties being animated. If not supplied, properties are
|
300
|
-
* animated from current settings. The actual properties which may be animated depend upon ths object being
|
301
|
-
* animated. See the sections below on Element and Component animation.
|
302
|
-
*
|
303
|
-
* @param {Object} config.to
|
304
|
-
* An object which specifies end values for the properties being animated.
|
305
|
-
*
|
306
|
-
* @param {Number} config.duration
|
307
|
-
* The duration **in milliseconds** for which the animation will run.
|
308
|
-
*
|
309
|
-
* @param {String} config.easing
|
310
|
-
* A string value describing an easing type to modify the rate of change from the default linear to non-linear.
|
311
|
-
* Values may be one of:
|
312
|
-
*
|
313
|
-
* - ease
|
314
|
-
* - easeIn
|
315
|
-
* - easeOut
|
316
|
-
* - easeInOut
|
317
|
-
* - backIn
|
318
|
-
* - backOut
|
319
|
-
* - elasticIn
|
320
|
-
* - elasticOut
|
321
|
-
* - bounceIn
|
322
|
-
* - bounceOut
|
323
|
-
*
|
324
|
-
* @param {Object} config.keyframes
|
325
|
-
* This is an object which describes the state of animated properties at certain points along the timeline. it is an
|
326
|
-
* object containing properties who's names are the percentage along the timeline being described and who's values
|
327
|
-
* specify the animation state at that point.
|
328
|
-
*
|
329
|
-
* @param {Object} config.listeners
|
330
|
-
* This is a standard {@link Ext.util.Observable#listeners listeners} configuration object which may be used to
|
331
|
-
* inject behaviour at either the `beforeanimate` event or the `afteranimate` event.
|
332
|
-
*
|
333
|
-
* @return {Object} this
|
334
|
-
*/
|
335
|
-
animate: function(animObj) {
|
336
|
-
var me = this;
|
337
|
-
if (Ext.fx.Manager.hasFxBlock(me.id)) {
|
338
|
-
return me;
|
339
|
-
}
|
340
|
-
Ext.fx.Manager.queueFx(new Ext.fx.Anim(me.anim(animObj)));
|
341
|
-
return this;
|
342
|
-
},
|
343
|
-
|
344
|
-
// @private - process the passed fx configuration.
|
345
|
-
anim: function(config) {
|
346
|
-
if (!Ext.isObject(config)) {
|
347
|
-
return (config) ? {} : false;
|
348
|
-
}
|
349
|
-
|
350
|
-
var me = this;
|
351
|
-
|
352
|
-
if (config.stopAnimation) {
|
353
|
-
me.stopAnimation();
|
354
|
-
}
|
355
|
-
|
356
|
-
Ext.applyIf(config, Ext.fx.Manager.getFxDefaults(me.id));
|
357
|
-
|
358
|
-
return Ext.apply({
|
359
|
-
target: me,
|
360
|
-
paused: true
|
361
|
-
}, config);
|
362
|
-
},
|
363
|
-
|
364
|
-
/**
|
365
|
-
* Stops any running effects and clears this object's internal effects queue if it contains any additional effects
|
366
|
-
* that haven't started yet.
|
367
|
-
* @deprecated 4.0 Replaced by {@link #stopAnimation}
|
368
|
-
* @return {Ext.Element} The Element
|
369
|
-
* @method
|
370
|
-
*/
|
371
|
-
stopFx: Ext.Function.alias(Ext.util.Animate, 'stopAnimation'),
|
372
|
-
|
373
|
-
/**
|
374
|
-
* Stops any running effects and clears this object's internal effects queue if it contains any additional effects
|
375
|
-
* that haven't started yet.
|
376
|
-
* @return {Ext.Element} The Element
|
377
|
-
*/
|
378
|
-
stopAnimation: function() {
|
379
|
-
Ext.fx.Manager.stopAnimation(this.id);
|
380
|
-
return this;
|
381
|
-
},
|
382
|
-
|
383
|
-
/**
|
384
|
-
* Ensures that all effects queued after syncFx is called on this object are run concurrently. This is the opposite
|
385
|
-
* of {@link #sequenceFx}.
|
386
|
-
* @return {Object} this
|
387
|
-
*/
|
388
|
-
syncFx: function() {
|
389
|
-
Ext.fx.Manager.setFxDefaults(this.id, {
|
390
|
-
concurrent: true
|
391
|
-
});
|
392
|
-
return this;
|
393
|
-
},
|
394
|
-
|
395
|
-
/**
|
396
|
-
* Ensures that all effects queued after sequenceFx is called on this object are run in sequence. This is the
|
397
|
-
* opposite of {@link #syncFx}.
|
398
|
-
* @return {Object} this
|
399
|
-
*/
|
400
|
-
sequenceFx: function() {
|
401
|
-
Ext.fx.Manager.setFxDefaults(this.id, {
|
402
|
-
concurrent: false
|
403
|
-
});
|
404
|
-
return this;
|
405
|
-
},
|
406
|
-
|
407
|
-
/**
|
408
|
-
* @deprecated 4.0 Replaced by {@link #getActiveAnimation}
|
409
|
-
* @inheritdoc Ext.util.Animate#getActiveAnimation
|
410
|
-
* @method
|
411
|
-
*/
|
412
|
-
hasActiveFx: Ext.Function.alias(Ext.util.Animate, 'getActiveAnimation'),
|
413
|
-
|
414
|
-
/**
|
415
|
-
* Returns the current animation if this object has any effects actively running or queued, else returns false.
|
416
|
-
* @return {Ext.fx.Anim/Boolean} Anim if element has active effects, else false
|
417
|
-
*/
|
418
|
-
getActiveAnimation: function() {
|
419
|
-
return Ext.fx.Manager.getActiveAnimation(this.id);
|
420
|
-
}
|
421
|
-
}, function(){
|
422
|
-
// Apply Animate mixin manually until Element is defined in the proper 4.x way
|
423
|
-
Ext.applyIf(Ext.Element.prototype, this.prototype);
|
424
|
-
// We need to call this again so the animation methods get copied over to CE
|
425
|
-
Ext.CompositeElementLite.importElementMethods();
|
426
|
-
});
|
@@ -1,102 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* This class is used as a mixin.
|
3
|
-
*
|
4
|
-
* This class is to be used to provide basic methods for binding/unbinding stores to other
|
5
|
-
* classes. In general it will not be used directly.
|
6
|
-
*/
|
7
|
-
Ext.define('Ext.util.Bindable', {
|
8
|
-
|
9
|
-
/**
|
10
|
-
* Binds a store to this instance.
|
11
|
-
* @param {Ext.data.AbstractStore} store The store to bind (may be null to unbind the existing store).
|
12
|
-
* @param {Boolean} initial (Optional) true to not remove listeners
|
13
|
-
*/
|
14
|
-
bindStore: function(store, initial){
|
15
|
-
var me = this,
|
16
|
-
oldStore = me.store;
|
17
|
-
|
18
|
-
if (!initial && me.store) {
|
19
|
-
if (store !== oldStore && oldStore.autoDestroy) {
|
20
|
-
oldStore.destroyStore();
|
21
|
-
} else {
|
22
|
-
me.unbindStoreListeners(oldStore);
|
23
|
-
}
|
24
|
-
me.onUnbindStore(oldStore, initial);
|
25
|
-
}
|
26
|
-
if (store) {
|
27
|
-
store = Ext.data.StoreManager.lookup(store);
|
28
|
-
me.bindStoreListeners(store);
|
29
|
-
me.onBindStore(store, initial);
|
30
|
-
}
|
31
|
-
me.store = store || null;
|
32
|
-
return me;
|
33
|
-
},
|
34
|
-
|
35
|
-
/**
|
36
|
-
* Gets the current store instance.
|
37
|
-
* @return {Ext.data.AbstractStore} The store, null if one does not exist.
|
38
|
-
*/
|
39
|
-
getStore: function(){
|
40
|
-
return this.store;
|
41
|
-
},
|
42
|
-
|
43
|
-
/**
|
44
|
-
* Unbinds listeners from this component to the store. By default it will remove
|
45
|
-
* anything bound by the bindStoreListeners method, however it can be overridden
|
46
|
-
* in a subclass to provide any more complicated handling.
|
47
|
-
* @protected
|
48
|
-
* @param {Ext.data.AbstractStore} store The store to unbind from
|
49
|
-
*/
|
50
|
-
unbindStoreListeners: function(store) {
|
51
|
-
// Can be overridden in the subclass for more complex removal
|
52
|
-
var listeners = this.storeListeners;
|
53
|
-
if (listeners) {
|
54
|
-
store.un(listeners);
|
55
|
-
}
|
56
|
-
},
|
57
|
-
|
58
|
-
/**
|
59
|
-
* Binds listeners for this component to the store. By default it will add
|
60
|
-
* anything bound by the getStoreListeners method, however it can be overridden
|
61
|
-
* in a subclass to provide any more complicated handling.
|
62
|
-
* @protected
|
63
|
-
* @param {Ext.data.AbstractStore} store The store to bind to
|
64
|
-
*/
|
65
|
-
bindStoreListeners: function(store) {
|
66
|
-
// Can be overridden in the subclass for more complex binding
|
67
|
-
var me = this,
|
68
|
-
listeners = Ext.apply({}, me.getStoreListeners());
|
69
|
-
|
70
|
-
if (!listeners.scope) {
|
71
|
-
listeners.scope = me;
|
72
|
-
}
|
73
|
-
me.storeListeners = listeners;
|
74
|
-
store.on(listeners);
|
75
|
-
},
|
76
|
-
|
77
|
-
/**
|
78
|
-
* Gets the listeners to bind to a new store.
|
79
|
-
* @protected
|
80
|
-
* @return {Object} The listeners to be bound to the store in object literal form. The scope
|
81
|
-
* may be omitted, it is assumed to be the current instance.
|
82
|
-
*/
|
83
|
-
getStoreListeners: Ext.emptyFn,
|
84
|
-
|
85
|
-
/**
|
86
|
-
* Template method, it is called when an existing store is unbound
|
87
|
-
* from the current instance.
|
88
|
-
* @protected
|
89
|
-
* @param {Ext.data.AbstractStore} store The store being unbound
|
90
|
-
* @param {Boolean} initial True if this store is being bound as initialization of the instance.
|
91
|
-
*/
|
92
|
-
onUnbindStore: Ext.emptyFn,
|
93
|
-
|
94
|
-
/**
|
95
|
-
* Template method, it is called when a new store is bound
|
96
|
-
* to the current instance.
|
97
|
-
* @protected
|
98
|
-
* @param {Ext.data.AbstractStore} store The store being bound
|
99
|
-
* @param {Boolean} initial True if this store is being bound as initialization of the instance.
|
100
|
-
*/
|
101
|
-
onBindStore: Ext.emptyFn
|
102
|
-
});
|