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,321 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* A mixin to add floating capability to a Component.
|
3
|
-
*/
|
4
|
-
Ext.define('Ext.util.Floating', {
|
5
|
-
|
6
|
-
uses: ['Ext.Layer', 'Ext.window.Window'],
|
7
|
-
|
8
|
-
/**
|
9
|
-
* @cfg {Boolean} focusOnToFront
|
10
|
-
* Specifies whether the floated component should be automatically {@link Ext.Component#method-focus focused} when
|
11
|
-
* it is {@link #toFront brought to the front}.
|
12
|
-
*/
|
13
|
-
focusOnToFront: true,
|
14
|
-
|
15
|
-
/**
|
16
|
-
* @cfg {String/Boolean} shadow
|
17
|
-
* Specifies whether the floating component should be given a shadow. Set to true to automatically create an
|
18
|
-
* {@link Ext.Shadow}, or a string indicating the shadow's display {@link Ext.Shadow#mode}. Set to false to
|
19
|
-
* disable the shadow.
|
20
|
-
*/
|
21
|
-
shadow: 'sides',
|
22
|
-
|
23
|
-
/**
|
24
|
-
* @cfg {String/Boolean} shadowOffset
|
25
|
-
* Number of pixels to offset the shadow.
|
26
|
-
*/
|
27
|
-
|
28
|
-
constructor: function (dom) {
|
29
|
-
var me = this;
|
30
|
-
|
31
|
-
me.el = new Ext.Layer(Ext.apply({
|
32
|
-
hideMode : me.hideMode,
|
33
|
-
hidden : me.hidden,
|
34
|
-
shadow : (typeof me.shadow != 'undefined') ? me.shadow : 'sides',
|
35
|
-
shadowOffset : me.shadowOffset,
|
36
|
-
constrain : false,
|
37
|
-
shim : (me.shim === false) ? false : undefined
|
38
|
-
}, me.floating), dom);
|
39
|
-
|
40
|
-
// release config object (if it was one)
|
41
|
-
me.floating = true;
|
42
|
-
|
43
|
-
// Register with the configured ownerCt.
|
44
|
-
// With this we acquire a floatParent for relative positioning, and a zIndexParent which is an
|
45
|
-
// ancestor floater which provides zIndex management.
|
46
|
-
me.registerWithOwnerCt();
|
47
|
-
},
|
48
|
-
|
49
|
-
registerWithOwnerCt: function() {
|
50
|
-
var me = this;
|
51
|
-
|
52
|
-
if (me.zIndexParent) {
|
53
|
-
me.zIndexParent.unregisterFloatingItem(me);
|
54
|
-
}
|
55
|
-
|
56
|
-
// Acquire a zIndexParent by traversing the ownerCt axis for the nearest floating ancestor
|
57
|
-
me.zIndexParent = me.up('[floating]');
|
58
|
-
me.setFloatParent(me.ownerCt);
|
59
|
-
delete me.ownerCt;
|
60
|
-
|
61
|
-
if (me.zIndexParent) {
|
62
|
-
me.zIndexParent.registerFloatingItem(me);
|
63
|
-
} else {
|
64
|
-
Ext.WindowManager.register(me);
|
65
|
-
}
|
66
|
-
},
|
67
|
-
|
68
|
-
setFloatParent: function(floatParent) {
|
69
|
-
var me = this;
|
70
|
-
|
71
|
-
// Remove listeners from previous floatParent
|
72
|
-
if (me.floatParent) {
|
73
|
-
me.mun(me.floatParent, {
|
74
|
-
hide: me.onFloatParentHide,
|
75
|
-
show: me.onFloatParentShow,
|
76
|
-
scope: me
|
77
|
-
});
|
78
|
-
}
|
79
|
-
|
80
|
-
me.floatParent = floatParent;
|
81
|
-
|
82
|
-
// Floating Components as children of Containers must hide when their parent hides.
|
83
|
-
if (floatParent) {
|
84
|
-
me.mon(me.floatParent, {
|
85
|
-
hide: me.onFloatParentHide,
|
86
|
-
show: me.onFloatParentShow,
|
87
|
-
scope: me
|
88
|
-
});
|
89
|
-
}
|
90
|
-
|
91
|
-
// If a floating Component is configured to be constrained, but has no configured
|
92
|
-
// constrainTo setting, set its constrainTo to be it's ownerCt before rendering.
|
93
|
-
if ((me.constrain || me.constrainHeader) && !me.constrainTo) {
|
94
|
-
me.constrainTo = floatParent ? floatParent.getTargetEl() : me.container;
|
95
|
-
}
|
96
|
-
},
|
97
|
-
|
98
|
-
onAfterFloatLayout: function(){
|
99
|
-
this.syncShadow();
|
100
|
-
},
|
101
|
-
|
102
|
-
onFloatParentHide: function() {
|
103
|
-
var me = this;
|
104
|
-
|
105
|
-
if (me.hideOnParentHide !== false && me.isVisible()) {
|
106
|
-
me.hide();
|
107
|
-
me.showOnParentShow = true;
|
108
|
-
}
|
109
|
-
},
|
110
|
-
|
111
|
-
onFloatParentShow: function() {
|
112
|
-
if (this.showOnParentShow) {
|
113
|
-
delete this.showOnParentShow;
|
114
|
-
this.show();
|
115
|
-
}
|
116
|
-
},
|
117
|
-
|
118
|
-
// private
|
119
|
-
// z-index is managed by the zIndexManager and may be overwritten at any time.
|
120
|
-
// Returns the next z-index to be used.
|
121
|
-
// If this is a Container, then it will have rebased any managed floating Components,
|
122
|
-
// and so the next available z-index will be approximately 10000 above that.
|
123
|
-
setZIndex: function(index) {
|
124
|
-
var me = this;
|
125
|
-
|
126
|
-
me.el.setZIndex(index);
|
127
|
-
|
128
|
-
// Next item goes 10 above;
|
129
|
-
index += 10;
|
130
|
-
|
131
|
-
// When a Container with floating items has its z-index set, it rebases any floating items it is managing.
|
132
|
-
// The returned value is a round number approximately 10000 above the last z-index used.
|
133
|
-
if (me.floatingItems) {
|
134
|
-
index = Math.floor(me.floatingItems.setBase(index) / 100) * 100 + 10000;
|
135
|
-
}
|
136
|
-
return index;
|
137
|
-
},
|
138
|
-
|
139
|
-
/**
|
140
|
-
* Moves this floating Component into a constrain region.
|
141
|
-
*
|
142
|
-
* By default, this Component is constrained to be within the container it was added to, or the element it was
|
143
|
-
* rendered to.
|
144
|
-
*
|
145
|
-
* An alternative constraint may be passed.
|
146
|
-
* @param {String/HTMLElement/Ext.Element/Ext.util.Region} [constrainTo] The Element or {@link Ext.util.Region Region}
|
147
|
-
* into which this Component is to be constrained. Defaults to the element into which this floating Component
|
148
|
-
* was rendered.
|
149
|
-
*/
|
150
|
-
doConstrain: function(constrainTo) {
|
151
|
-
var me = this,
|
152
|
-
|
153
|
-
// Calculate the constrain vector to coerce our position to within our
|
154
|
-
// constrainTo setting. getConstrainVector will provide a default constraint
|
155
|
-
// region if there is no explicit constrainTo, *and* there is no floatParent owner Component.
|
156
|
-
vector = me.getConstrainVector(constrainTo),
|
157
|
-
xy;
|
158
|
-
|
159
|
-
if (vector) {
|
160
|
-
xy = me.getPosition();
|
161
|
-
xy[0] += vector[0];
|
162
|
-
xy[1] += vector[1];
|
163
|
-
me.setPosition(xy);
|
164
|
-
}
|
165
|
-
},
|
166
|
-
|
167
|
-
|
168
|
-
/**
|
169
|
-
* Gets the x/y offsets to constrain this float
|
170
|
-
* @private
|
171
|
-
* @param {String/HTMLElement/Ext.Element/Ext.util.Region} [constrainTo] The Element or {@link Ext.util.Region Region}
|
172
|
-
* into which this Component is to be constrained.
|
173
|
-
* @return {Number[]} The x/y constraints
|
174
|
-
*/
|
175
|
-
getConstrainVector: function(constrainTo){
|
176
|
-
var me = this;
|
177
|
-
|
178
|
-
if (me.constrain || me.constrainHeader) {
|
179
|
-
constrainTo = constrainTo || (me.floatParent && me.floatParent.getTargetEl()) || me.container || me.el.getScopeParent();
|
180
|
-
return (me.constrainHeader ? me.header.el : me.el).getConstrainVector(constrainTo);
|
181
|
-
}
|
182
|
-
},
|
183
|
-
|
184
|
-
/**
|
185
|
-
* Aligns this floating Component to the specified element
|
186
|
-
*
|
187
|
-
* @param {Ext.Component/Ext.Element/HTMLElement/String} element
|
188
|
-
* The element or {@link Ext.Component} to align to. If passing a component, it must be a
|
189
|
-
* component instance. If a string id is passed, it will be used as an element id.
|
190
|
-
* @param {String} [position="tl-bl?"] The position to align to
|
191
|
-
* (see {@link Ext.Element#alignTo} for more details).
|
192
|
-
* @param {Number[]} [offsets] Offset the positioning by [x, y]
|
193
|
-
* @return {Ext.Component} this
|
194
|
-
*/
|
195
|
-
alignTo: function(element, position, offsets) {
|
196
|
-
|
197
|
-
// element may be a Component, so first attempt to use its el to align to.
|
198
|
-
// When aligning to an Element's X,Y position, we must use setPagePosition which disregards any floatParent
|
199
|
-
this.setPagePosition(this.el.getAlignToXY(element.el || element, position, offsets));
|
200
|
-
return this;
|
201
|
-
},
|
202
|
-
|
203
|
-
/**
|
204
|
-
* Brings this floating Component to the front of any other visible, floating Components managed by the same
|
205
|
-
* {@link Ext.ZIndexManager ZIndexManager}
|
206
|
-
*
|
207
|
-
* If this Component is modal, inserts the modal mask just below this Component in the z-index stack.
|
208
|
-
*
|
209
|
-
* @param {Boolean} [preventFocus=false] Specify `true` to prevent the Component from being focused.
|
210
|
-
* @return {Ext.Component} this
|
211
|
-
*/
|
212
|
-
toFront: function(preventFocus) {
|
213
|
-
var me = this;
|
214
|
-
|
215
|
-
// Find the floating Component which provides the base for this Component's zIndexing.
|
216
|
-
// That must move to front to then be able to rebase its zIndex stack and move this to the front
|
217
|
-
if (me.zIndexParent && me.bringParentToFront !== false) {
|
218
|
-
me.zIndexParent.toFront(true);
|
219
|
-
}
|
220
|
-
|
221
|
-
if (!Ext.isDefined(preventFocus)) {
|
222
|
-
preventFocus = !me.focusOnToFront;
|
223
|
-
}
|
224
|
-
|
225
|
-
if (preventFocus) {
|
226
|
-
me.preventFocusOnActivate = true;
|
227
|
-
}
|
228
|
-
if (me.zIndexManager.bringToFront(me)) {
|
229
|
-
if (!preventFocus) {
|
230
|
-
// Kick off a delayed focus request.
|
231
|
-
// If another floating Component is toFronted before the delay expires
|
232
|
-
// this will not receive focus.
|
233
|
-
me.focus(false, true);
|
234
|
-
}
|
235
|
-
}
|
236
|
-
delete me.preventFocusOnActivate;
|
237
|
-
return me;
|
238
|
-
},
|
239
|
-
|
240
|
-
/**
|
241
|
-
* This method is called internally by {@link Ext.ZIndexManager} to signal that a floating Component has either been
|
242
|
-
* moved to the top of its zIndex stack, or pushed from the top of its zIndex stack.
|
243
|
-
*
|
244
|
-
* If a _Window_ is superceded by another Window, deactivating it hides its shadow.
|
245
|
-
*
|
246
|
-
* This method also fires the {@link Ext.Component#activate activate} or
|
247
|
-
* {@link Ext.Component#deactivate deactivate} event depending on which action occurred.
|
248
|
-
*
|
249
|
-
* @param {Boolean} [active=false] True to activate the Component, false to deactivate it.
|
250
|
-
* @param {Ext.Component} [newActive] The newly active Component which is taking over topmost zIndex position.
|
251
|
-
*/
|
252
|
-
setActive: function(active, newActive) {
|
253
|
-
var me = this;
|
254
|
-
|
255
|
-
if (active) {
|
256
|
-
if (me.el.shadow && !me.maximized) {
|
257
|
-
me.el.enableShadow(true);
|
258
|
-
}
|
259
|
-
if (me.modal && !me.preventFocusOnActivate) {
|
260
|
-
me.focus(false, true);
|
261
|
-
}
|
262
|
-
me.fireEvent('activate', me);
|
263
|
-
} else {
|
264
|
-
// Only the *Windows* in a zIndex stack share a shadow. All other types of floaters
|
265
|
-
// can keep their shadows all the time
|
266
|
-
if (me.isWindow && (newActive && newActive.isWindow)) {
|
267
|
-
me.el.disableShadow();
|
268
|
-
}
|
269
|
-
me.fireEvent('deactivate', me);
|
270
|
-
}
|
271
|
-
},
|
272
|
-
|
273
|
-
/**
|
274
|
-
* Sends this Component to the back of (lower z-index than) any other visible windows
|
275
|
-
* @return {Ext.Component} this
|
276
|
-
*/
|
277
|
-
toBack: function() {
|
278
|
-
this.zIndexManager.sendToBack(this);
|
279
|
-
return this;
|
280
|
-
},
|
281
|
-
|
282
|
-
/**
|
283
|
-
* Center this Component in its container.
|
284
|
-
* @return {Ext.Component} this
|
285
|
-
*/
|
286
|
-
center: function() {
|
287
|
-
var me = this,
|
288
|
-
xy;
|
289
|
-
|
290
|
-
if (me.isVisible()) {
|
291
|
-
xy = me.el.getAlignToXY(me.container, 'c-c');
|
292
|
-
me.setPagePosition(xy);
|
293
|
-
} else {
|
294
|
-
me.needsCenter = true;
|
295
|
-
}
|
296
|
-
return me;
|
297
|
-
},
|
298
|
-
|
299
|
-
onFloatShow: function(){
|
300
|
-
if (this.needsCenter) {
|
301
|
-
this.center();
|
302
|
-
}
|
303
|
-
delete this.needsCenter;
|
304
|
-
},
|
305
|
-
|
306
|
-
// private
|
307
|
-
syncShadow : function(){
|
308
|
-
if (this.floating) {
|
309
|
-
this.el.sync(true);
|
310
|
-
}
|
311
|
-
},
|
312
|
-
|
313
|
-
// private
|
314
|
-
fitContainer: function() {
|
315
|
-
var parent = this.floatParent,
|
316
|
-
container = parent ? parent.getTargetEl() : this.container,
|
317
|
-
size = container.getViewSize(false);
|
318
|
-
|
319
|
-
this.setSize(size);
|
320
|
-
}
|
321
|
-
});
|
@@ -1,26 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* @class Ext.util.Grouper
|
3
|
-
|
4
|
-
Represents a single grouper that can be applied to a Store. The grouper works
|
5
|
-
in the same fashion as the {@link Ext.util.Sorter}.
|
6
|
-
|
7
|
-
* @markdown
|
8
|
-
*/
|
9
|
-
|
10
|
-
Ext.define('Ext.util.Grouper', {
|
11
|
-
|
12
|
-
/* Begin Definitions */
|
13
|
-
|
14
|
-
extend: 'Ext.util.Sorter',
|
15
|
-
|
16
|
-
/* End Definitions */
|
17
|
-
|
18
|
-
/**
|
19
|
-
* Returns the value for grouping to be used.
|
20
|
-
* @param {Ext.data.Model} instance The Model instance
|
21
|
-
* @return {String} The group string for this model
|
22
|
-
*/
|
23
|
-
getGroupString: function(instance) {
|
24
|
-
return instance.get(this.property);
|
25
|
-
}
|
26
|
-
});
|
@@ -1,356 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* @class Ext.util.HashMap
|
3
|
-
* <p>
|
4
|
-
* Represents a collection of a set of key and value pairs. Each key in the HashMap
|
5
|
-
* must be unique, the same key cannot exist twice. Access to items is provided via
|
6
|
-
* the key only. Sample usage:
|
7
|
-
* <pre><code>
|
8
|
-
var map = new Ext.util.HashMap();
|
9
|
-
map.add('key1', 1);
|
10
|
-
map.add('key2', 2);
|
11
|
-
map.add('key3', 3);
|
12
|
-
|
13
|
-
map.each(function(key, value, length){
|
14
|
-
console.log(key, value, length);
|
15
|
-
});
|
16
|
-
* </code></pre>
|
17
|
-
* </p>
|
18
|
-
*
|
19
|
-
* <p>The HashMap is an unordered class,
|
20
|
-
* there is no guarantee when iterating over the items that they will be in any particular
|
21
|
-
* order. If this is required, then use a {@link Ext.util.MixedCollection}.
|
22
|
-
* </p>
|
23
|
-
*/
|
24
|
-
Ext.define('Ext.util.HashMap', {
|
25
|
-
mixins: {
|
26
|
-
observable: 'Ext.util.Observable'
|
27
|
-
},
|
28
|
-
|
29
|
-
/**
|
30
|
-
* @cfg {Function} keyFn A function that is used to retrieve a default key for a passed object.
|
31
|
-
* A default is provided that returns the <b>id</b> property on the object. This function is only used
|
32
|
-
* if the add method is called with a single argument.
|
33
|
-
*/
|
34
|
-
|
35
|
-
/**
|
36
|
-
* Creates new HashMap.
|
37
|
-
* @param {Object} config (optional) Config object.
|
38
|
-
*/
|
39
|
-
constructor: function(config) {
|
40
|
-
config = config || {};
|
41
|
-
|
42
|
-
var me = this,
|
43
|
-
keyFn = config.keyFn;
|
44
|
-
|
45
|
-
me.addEvents(
|
46
|
-
/**
|
47
|
-
* @event add
|
48
|
-
* Fires when a new item is added to the hash
|
49
|
-
* @param {Ext.util.HashMap} this.
|
50
|
-
* @param {String} key The key of the added item.
|
51
|
-
* @param {Object} value The value of the added item.
|
52
|
-
*/
|
53
|
-
'add',
|
54
|
-
/**
|
55
|
-
* @event clear
|
56
|
-
* Fires when the hash is cleared.
|
57
|
-
* @param {Ext.util.HashMap} this.
|
58
|
-
*/
|
59
|
-
'clear',
|
60
|
-
/**
|
61
|
-
* @event remove
|
62
|
-
* Fires when an item is removed from the hash.
|
63
|
-
* @param {Ext.util.HashMap} this.
|
64
|
-
* @param {String} key The key of the removed item.
|
65
|
-
* @param {Object} value The value of the removed item.
|
66
|
-
*/
|
67
|
-
'remove',
|
68
|
-
/**
|
69
|
-
* @event replace
|
70
|
-
* Fires when an item is replaced in the hash.
|
71
|
-
* @param {Ext.util.HashMap} this.
|
72
|
-
* @param {String} key The key of the replaced item.
|
73
|
-
* @param {Object} value The new value for the item.
|
74
|
-
* @param {Object} old The old value for the item.
|
75
|
-
*/
|
76
|
-
'replace'
|
77
|
-
);
|
78
|
-
|
79
|
-
me.mixins.observable.constructor.call(me, config);
|
80
|
-
me.clear(true);
|
81
|
-
|
82
|
-
if (keyFn) {
|
83
|
-
me.getKey = keyFn;
|
84
|
-
}
|
85
|
-
},
|
86
|
-
|
87
|
-
/**
|
88
|
-
* Gets the number of items in the hash.
|
89
|
-
* @return {Number} The number of items in the hash.
|
90
|
-
*/
|
91
|
-
getCount: function() {
|
92
|
-
return this.length;
|
93
|
-
},
|
94
|
-
|
95
|
-
/**
|
96
|
-
* Implementation for being able to extract the key from an object if only
|
97
|
-
* a single argument is passed.
|
98
|
-
* @private
|
99
|
-
* @param {String} key The key
|
100
|
-
* @param {Object} value The value
|
101
|
-
* @return {Array} [key, value]
|
102
|
-
*/
|
103
|
-
getData: function(key, value) {
|
104
|
-
// if we have no value, it means we need to get the key from the object
|
105
|
-
if (value === undefined) {
|
106
|
-
value = key;
|
107
|
-
key = this.getKey(value);
|
108
|
-
}
|
109
|
-
|
110
|
-
return [key, value];
|
111
|
-
},
|
112
|
-
|
113
|
-
/**
|
114
|
-
* Extracts the key from an object. This is a default implementation, it may be overridden
|
115
|
-
* @param {Object} o The object to get the key from
|
116
|
-
* @return {String} The key to use.
|
117
|
-
*/
|
118
|
-
getKey: function(o) {
|
119
|
-
return o.id;
|
120
|
-
},
|
121
|
-
|
122
|
-
/**
|
123
|
-
* Adds an item to the collection. Fires the {@link #event-add} event when complete.
|
124
|
-
* @param {String} key <p>The key to associate with the item, or the new item.</p>
|
125
|
-
* <p>If a {@link #getKey} implementation was specified for this HashMap,
|
126
|
-
* or if the key of the stored items is in a property called <tt><b>id</b></tt>,
|
127
|
-
* the HashMap will be able to <i>derive</i> the key for the new item.
|
128
|
-
* In this case just pass the new item in this parameter.</p>
|
129
|
-
* @param {Object} o The item to add.
|
130
|
-
* @return {Object} The item added.
|
131
|
-
*/
|
132
|
-
add: function(key, value) {
|
133
|
-
var me = this;
|
134
|
-
|
135
|
-
if (value === undefined) {
|
136
|
-
value = key;
|
137
|
-
key = me.getKey(value);
|
138
|
-
}
|
139
|
-
|
140
|
-
if (me.containsKey(key)) {
|
141
|
-
return me.replace(key, value);
|
142
|
-
}
|
143
|
-
|
144
|
-
me.map[key] = value;
|
145
|
-
++me.length;
|
146
|
-
if (me.hasListeners.add) {
|
147
|
-
me.fireEvent('add', me, key, value);
|
148
|
-
}
|
149
|
-
return value;
|
150
|
-
},
|
151
|
-
|
152
|
-
/**
|
153
|
-
* Replaces an item in the hash. If the key doesn't exist, the
|
154
|
-
* {@link #method-add} method will be used.
|
155
|
-
* @param {String} key The key of the item.
|
156
|
-
* @param {Object} value The new value for the item.
|
157
|
-
* @return {Object} The new value of the item.
|
158
|
-
*/
|
159
|
-
replace: function(key, value) {
|
160
|
-
var me = this,
|
161
|
-
map = me.map,
|
162
|
-
old;
|
163
|
-
|
164
|
-
if (value === undefined) {
|
165
|
-
value = key;
|
166
|
-
key = me.getKey(value);
|
167
|
-
}
|
168
|
-
|
169
|
-
if (!me.containsKey(key)) {
|
170
|
-
me.add(key, value);
|
171
|
-
}
|
172
|
-
old = map[key];
|
173
|
-
map[key] = value;
|
174
|
-
if (me.hasListeners.replace) {
|
175
|
-
me.fireEvent('replace', me, key, value, old);
|
176
|
-
}
|
177
|
-
return value;
|
178
|
-
},
|
179
|
-
|
180
|
-
/**
|
181
|
-
* Remove an item from the hash.
|
182
|
-
* @param {Object} o The value of the item to remove.
|
183
|
-
* @return {Boolean} True if the item was successfully removed.
|
184
|
-
*/
|
185
|
-
remove: function(o) {
|
186
|
-
var key = this.findKey(o);
|
187
|
-
if (key !== undefined) {
|
188
|
-
return this.removeAtKey(key);
|
189
|
-
}
|
190
|
-
return false;
|
191
|
-
},
|
192
|
-
|
193
|
-
/**
|
194
|
-
* Remove an item from the hash.
|
195
|
-
* @param {String} key The key to remove.
|
196
|
-
* @return {Boolean} True if the item was successfully removed.
|
197
|
-
*/
|
198
|
-
removeAtKey: function(key) {
|
199
|
-
var me = this,
|
200
|
-
value;
|
201
|
-
|
202
|
-
if (me.containsKey(key)) {
|
203
|
-
value = me.map[key];
|
204
|
-
delete me.map[key];
|
205
|
-
--me.length;
|
206
|
-
if (me.hasListeners.remove) {
|
207
|
-
me.fireEvent('remove', me, key, value);
|
208
|
-
}
|
209
|
-
return true;
|
210
|
-
}
|
211
|
-
return false;
|
212
|
-
},
|
213
|
-
|
214
|
-
/**
|
215
|
-
* Retrieves an item with a particular key.
|
216
|
-
* @param {String} key The key to lookup.
|
217
|
-
* @return {Object} The value at that key. If it doesn't exist, <tt>undefined</tt> is returned.
|
218
|
-
*/
|
219
|
-
get: function(key) {
|
220
|
-
return this.map[key];
|
221
|
-
},
|
222
|
-
|
223
|
-
/**
|
224
|
-
* Removes all items from the hash.
|
225
|
-
* @return {Ext.util.HashMap} this
|
226
|
-
*/
|
227
|
-
clear: function(/* private */ initial) {
|
228
|
-
var me = this;
|
229
|
-
me.map = {};
|
230
|
-
me.length = 0;
|
231
|
-
if (initial !== true && me.hasListeners.clear) {
|
232
|
-
me.fireEvent('clear', me);
|
233
|
-
}
|
234
|
-
return me;
|
235
|
-
},
|
236
|
-
|
237
|
-
/**
|
238
|
-
* Checks whether a key exists in the hash.
|
239
|
-
* @param {String} key The key to check for.
|
240
|
-
* @return {Boolean} True if they key exists in the hash.
|
241
|
-
*/
|
242
|
-
containsKey: function(key) {
|
243
|
-
return this.map[key] !== undefined;
|
244
|
-
},
|
245
|
-
|
246
|
-
/**
|
247
|
-
* Checks whether a value exists in the hash.
|
248
|
-
* @param {Object} value The value to check for.
|
249
|
-
* @return {Boolean} True if the value exists in the dictionary.
|
250
|
-
*/
|
251
|
-
contains: function(value) {
|
252
|
-
return this.containsKey(this.findKey(value));
|
253
|
-
},
|
254
|
-
|
255
|
-
/**
|
256
|
-
* Return all of the keys in the hash.
|
257
|
-
* @return {Array} An array of keys.
|
258
|
-
*/
|
259
|
-
getKeys: function() {
|
260
|
-
return this.getArray(true);
|
261
|
-
},
|
262
|
-
|
263
|
-
/**
|
264
|
-
* Return all of the values in the hash.
|
265
|
-
* @return {Array} An array of values.
|
266
|
-
*/
|
267
|
-
getValues: function() {
|
268
|
-
return this.getArray(false);
|
269
|
-
},
|
270
|
-
|
271
|
-
/**
|
272
|
-
* Gets either the keys/values in an array from the hash.
|
273
|
-
* @private
|
274
|
-
* @param {Boolean} isKey True to extract the keys, otherwise, the value
|
275
|
-
* @return {Array} An array of either keys/values from the hash.
|
276
|
-
*/
|
277
|
-
getArray: function(isKey) {
|
278
|
-
var arr = [],
|
279
|
-
key,
|
280
|
-
map = this.map;
|
281
|
-
for (key in map) {
|
282
|
-
if (map.hasOwnProperty(key)) {
|
283
|
-
arr.push(isKey ? key: map[key]);
|
284
|
-
}
|
285
|
-
}
|
286
|
-
return arr;
|
287
|
-
},
|
288
|
-
|
289
|
-
/**
|
290
|
-
* Executes the specified function once for each item in the hash.
|
291
|
-
* Returning false from the function will cease iteration.
|
292
|
-
*
|
293
|
-
* The paramaters passed to the function are:
|
294
|
-
* <div class="mdetail-params"><ul>
|
295
|
-
* <li><b>key</b> : String<p class="sub-desc">The key of the item</p></li>
|
296
|
-
* <li><b>value</b> : Number<p class="sub-desc">The value of the item</p></li>
|
297
|
-
* <li><b>length</b> : Number<p class="sub-desc">The total number of items in the hash</p></li>
|
298
|
-
* </ul></div>
|
299
|
-
* @param {Function} fn The function to execute.
|
300
|
-
* @param {Object} scope The scope to execute in. Defaults to <tt>this</tt>.
|
301
|
-
* @return {Ext.util.HashMap} this
|
302
|
-
*/
|
303
|
-
each: function(fn, scope) {
|
304
|
-
// copy items so they may be removed during iteration.
|
305
|
-
var items = Ext.apply({}, this.map),
|
306
|
-
key,
|
307
|
-
length = this.length;
|
308
|
-
|
309
|
-
scope = scope || this;
|
310
|
-
for (key in items) {
|
311
|
-
if (items.hasOwnProperty(key)) {
|
312
|
-
if (fn.call(scope, key, items[key], length) === false) {
|
313
|
-
break;
|
314
|
-
}
|
315
|
-
}
|
316
|
-
}
|
317
|
-
return this;
|
318
|
-
},
|
319
|
-
|
320
|
-
/**
|
321
|
-
* Performs a shallow copy on this hash.
|
322
|
-
* @return {Ext.util.HashMap} The new hash object.
|
323
|
-
*/
|
324
|
-
clone: function() {
|
325
|
-
var hash = new this.self(),
|
326
|
-
map = this.map,
|
327
|
-
key;
|
328
|
-
|
329
|
-
hash.suspendEvents();
|
330
|
-
for (key in map) {
|
331
|
-
if (map.hasOwnProperty(key)) {
|
332
|
-
hash.add(key, map[key]);
|
333
|
-
}
|
334
|
-
}
|
335
|
-
hash.resumeEvents();
|
336
|
-
return hash;
|
337
|
-
},
|
338
|
-
|
339
|
-
/**
|
340
|
-
* @private
|
341
|
-
* Find the key for a value.
|
342
|
-
* @param {Object} value The value to find.
|
343
|
-
* @return {Object} The value of the item. Returns <tt>undefined</tt> if not found.
|
344
|
-
*/
|
345
|
-
findKey: function(value) {
|
346
|
-
var key,
|
347
|
-
map = this.map;
|
348
|
-
|
349
|
-
for (key in map) {
|
350
|
-
if (map.hasOwnProperty(key) && map[key] === value) {
|
351
|
-
return key;
|
352
|
-
}
|
353
|
-
}
|
354
|
-
return undefined;
|
355
|
-
}
|
356
|
-
});
|