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,79 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* @class Ext.layout.component.Draw
|
3
|
-
* @private
|
4
|
-
*
|
5
|
-
*/
|
6
|
-
|
7
|
-
Ext.define('Ext.layout.component.Draw', {
|
8
|
-
|
9
|
-
/* Begin Definitions */
|
10
|
-
|
11
|
-
alias: 'layout.draw',
|
12
|
-
|
13
|
-
extend: 'Ext.layout.component.Auto',
|
14
|
-
|
15
|
-
/* End Definitions */
|
16
|
-
|
17
|
-
type: 'draw',
|
18
|
-
|
19
|
-
measureContentWidth : function (ownerContext) {
|
20
|
-
var target = ownerContext.target,
|
21
|
-
surface = target.surface,
|
22
|
-
paddingInfo = ownerContext.getPaddingInfo(),
|
23
|
-
bbox = ownerContext.surfaceBBox || (ownerContext.surfaceBBox = surface.items.getBBox());
|
24
|
-
if (!target.viewBox) {
|
25
|
-
if (target.autoSize) {
|
26
|
-
return bbox.width + paddingInfo.width;
|
27
|
-
} else {
|
28
|
-
return bbox.x + bbox.width + paddingInfo.width;
|
29
|
-
}
|
30
|
-
} else {
|
31
|
-
if (ownerContext.heightModel.shrinkWrap) {
|
32
|
-
return paddingInfo.width;
|
33
|
-
} else {
|
34
|
-
return bbox.width / bbox.height * (ownerContext.getProp('contentHeight') - paddingInfo.height) + paddingInfo.width;
|
35
|
-
}
|
36
|
-
}
|
37
|
-
},
|
38
|
-
|
39
|
-
measureContentHeight : function (ownerContext) {
|
40
|
-
var target = ownerContext.target,
|
41
|
-
surface = target.surface,
|
42
|
-
paddingInfo = ownerContext.getPaddingInfo(),
|
43
|
-
bbox = ownerContext.surfaceBBox || (ownerContext.surfaceBBox = surface.items.getBBox());
|
44
|
-
if (!ownerContext.target.viewBox) {
|
45
|
-
if (target.autoSize) {
|
46
|
-
return bbox.height + paddingInfo.height;
|
47
|
-
} else {
|
48
|
-
return bbox.y + bbox.height + paddingInfo.height;
|
49
|
-
}
|
50
|
-
} else {
|
51
|
-
if (ownerContext.widthModel.shrinkWrap) {
|
52
|
-
return paddingInfo.height;
|
53
|
-
} else {
|
54
|
-
return bbox.height / bbox.width * (ownerContext.getProp('contentWidth') - paddingInfo.width) + paddingInfo.height;
|
55
|
-
}
|
56
|
-
}
|
57
|
-
},
|
58
|
-
|
59
|
-
publishInnerWidth: function (ownerContext, width) {
|
60
|
-
ownerContext.setContentWidth(width - ownerContext.getFrameInfo().width, true);
|
61
|
-
},
|
62
|
-
|
63
|
-
publishInnerHeight: function (ownerContext, height) {
|
64
|
-
ownerContext.setContentHeight(height - ownerContext.getFrameInfo().height, true);
|
65
|
-
},
|
66
|
-
|
67
|
-
finishedLayout: function (ownerContext) {
|
68
|
-
// TODO: Is there a better way doing this?
|
69
|
-
var props = ownerContext.props,
|
70
|
-
paddingInfo = ownerContext.getPaddingInfo();
|
71
|
-
|
72
|
-
// We don't want the cost of getProps, so we just use the props data... this is ok
|
73
|
-
// because all the props have been calculated by this time
|
74
|
-
this.owner.setSurfaceSize(props.contentWidth - paddingInfo.width, props.contentHeight - paddingInfo.height);
|
75
|
-
|
76
|
-
// calls afterComponentLayout, so we want the surface to be sized before that:
|
77
|
-
this.callParent(arguments);
|
78
|
-
}
|
79
|
-
});
|
@@ -1,62 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* Component layout for Ext.form.FieldSet components
|
3
|
-
* @private
|
4
|
-
*/
|
5
|
-
Ext.define('Ext.layout.component.FieldSet', {
|
6
|
-
extend: 'Ext.layout.component.Body',
|
7
|
-
alias: ['layout.fieldset'],
|
8
|
-
|
9
|
-
type: 'fieldset',
|
10
|
-
|
11
|
-
/*beginLayout: function (ownerContext) {
|
12
|
-
this.callParent(arguments);
|
13
|
-
|
14
|
-
var legend = this.owner.legend;
|
15
|
-
if (legend) {
|
16
|
-
ownerContext.legendContext = ownerContext.context.getCmp(legend);
|
17
|
-
}
|
18
|
-
},*/
|
19
|
-
|
20
|
-
beginLayoutCycle: function (ownerContext) {
|
21
|
-
var target = ownerContext.target,
|
22
|
-
lastSize;
|
23
|
-
|
24
|
-
this.callParent(arguments);
|
25
|
-
|
26
|
-
// Each time we begin (2nd+ would be due to invalidate) we need to publish the
|
27
|
-
// known contentHeight if we are collapsed:
|
28
|
-
//
|
29
|
-
if (target.collapsed) {
|
30
|
-
ownerContext.heightModel = this.sizeModels.shrinkWrap;
|
31
|
-
ownerContext.setContentHeight(0);
|
32
|
-
|
33
|
-
// If we are also shrinkWrap width, we must provide a contentWidth (since the
|
34
|
-
// container layout is not going to run).
|
35
|
-
//
|
36
|
-
if (ownerContext.widthModel.shrinkWrap) {
|
37
|
-
lastSize = target.lastComponentSize;
|
38
|
-
ownerContext.setContentWidth((lastSize && lastSize.contentWidth) || 100);
|
39
|
-
}
|
40
|
-
}
|
41
|
-
},
|
42
|
-
|
43
|
-
calculateOwnerHeightFromContentHeight: function (ownerContext, contentHeight) {
|
44
|
-
// Height of fieldset is content height plus top border width (which is either the legend height or top border width) plus bottom border width
|
45
|
-
return ownerContext.getProp('contentHeight') + ownerContext.getPaddingInfo().height + (ownerContext.target.legend ? ownerContext.target.legend.getHeight() : ownerContext.getBorderInfo().top) + ownerContext.getBorderInfo().bottom;
|
46
|
-
},
|
47
|
-
|
48
|
-
publishInnerHeight: function (ownerContext, height) {
|
49
|
-
this.callParent(arguments);
|
50
|
-
if (ownerContext.target.legend) {
|
51
|
-
ownerContext.bodyContext.setHeight(ownerContext.bodyContext.getProp('height') - ownerContext.target.legend.getHeight(), !ownerContext.heightModel.natural);
|
52
|
-
}
|
53
|
-
},
|
54
|
-
|
55
|
-
getLayoutItems : function() {
|
56
|
-
var legend = this.owner.legend;
|
57
|
-
if (legend) {
|
58
|
-
return [ legend ];
|
59
|
-
}
|
60
|
-
return [];
|
61
|
-
}
|
62
|
-
});
|
@@ -1,54 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* @private
|
3
|
-
*/
|
4
|
-
Ext.define('Ext.layout.component.ProgressBar', {
|
5
|
-
|
6
|
-
/* Begin Definitions */
|
7
|
-
|
8
|
-
alias: ['layout.progressbar'],
|
9
|
-
|
10
|
-
extend: 'Ext.layout.component.Auto',
|
11
|
-
|
12
|
-
/* End Definitions */
|
13
|
-
|
14
|
-
type: 'progressbar',
|
15
|
-
|
16
|
-
beginLayout: function (ownerContext) {
|
17
|
-
var me = this,
|
18
|
-
i, textEls;
|
19
|
-
|
20
|
-
me.callParent(arguments);
|
21
|
-
|
22
|
-
if (!ownerContext.textEls) {
|
23
|
-
textEls = me.owner.textEl; // an Ext.Element or CompositeList (raw DOM el's)
|
24
|
-
|
25
|
-
if (textEls.isComposite) {
|
26
|
-
ownerContext.textEls = [];
|
27
|
-
textEls = textEls.elements;
|
28
|
-
for (i = textEls.length; i--; ) {
|
29
|
-
ownerContext.textEls[i] = ownerContext.getEl(Ext.get(textEls[i]));
|
30
|
-
}
|
31
|
-
} else {
|
32
|
-
ownerContext.textEls = [ ownerContext.getEl('textEl') ];
|
33
|
-
}
|
34
|
-
}
|
35
|
-
},
|
36
|
-
|
37
|
-
calculate: function(ownerContext) {
|
38
|
-
var me = this,
|
39
|
-
i, textEls, width;
|
40
|
-
|
41
|
-
me.callParent(arguments);
|
42
|
-
|
43
|
-
if (Ext.isNumber(width = ownerContext.getProp('width'))) {
|
44
|
-
width -= ownerContext.getBorderInfo().width;
|
45
|
-
textEls = ownerContext.textEls;
|
46
|
-
|
47
|
-
for (i = textEls.length; i--; ) {
|
48
|
-
textEls[i].setWidth(width);
|
49
|
-
}
|
50
|
-
} else {
|
51
|
-
me.done = false;
|
52
|
-
}
|
53
|
-
}
|
54
|
-
});
|
@@ -1,23 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* Component layout for tabs
|
3
|
-
* @private
|
4
|
-
*/
|
5
|
-
Ext.define('Ext.layout.component.Tab', {
|
6
|
-
|
7
|
-
extend: 'Ext.layout.component.Button',
|
8
|
-
alias: 'layout.tab',
|
9
|
-
|
10
|
-
beginLayout: function(ownerContext) {
|
11
|
-
var me = this,
|
12
|
-
closable = me.owner.closable;
|
13
|
-
|
14
|
-
// Changing the close button visibility causes our cached measurements to be wrong,
|
15
|
-
// so we must convince our base class to re-cache those adjustments...
|
16
|
-
if (me.lastClosable !== closable) {
|
17
|
-
me.lastClosable = closable;
|
18
|
-
me.clearTargetCache();
|
19
|
-
}
|
20
|
-
|
21
|
-
me.callParent(arguments);
|
22
|
-
}
|
23
|
-
});
|
@@ -1,52 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* Layout class for {@link Ext.form.field.ComboBox} fields. Handles sizing the input field.
|
3
|
-
* @private
|
4
|
-
*/
|
5
|
-
Ext.define('Ext.layout.component.field.ComboBox', {
|
6
|
-
extend: 'Ext.layout.component.field.Trigger',
|
7
|
-
alias: 'layout.combobox',
|
8
|
-
requires: ['Ext.util.TextMetrics'],
|
9
|
-
|
10
|
-
type: 'combobox',
|
11
|
-
|
12
|
-
startingWidth: null,
|
13
|
-
|
14
|
-
getTextWidth: function () {
|
15
|
-
var me = this,
|
16
|
-
owner = me.owner,
|
17
|
-
store = owner.store,
|
18
|
-
field = owner.displayField,
|
19
|
-
storeLn = store.data.length,
|
20
|
-
value = '',
|
21
|
-
i = 0, n = 0, ln, item, width;
|
22
|
-
|
23
|
-
for (; i < storeLn; i++) {
|
24
|
-
item = store.getAt(i).data[field];
|
25
|
-
ln = item.length;
|
26
|
-
// compare the current item's length with the current longest length and store the value
|
27
|
-
if (ln > n) {
|
28
|
-
n = ln;
|
29
|
-
value = item;
|
30
|
-
}
|
31
|
-
}
|
32
|
-
|
33
|
-
width = Math.max(me.callParent(arguments), owner.inputEl.getTextWidth(value + owner.growAppend));
|
34
|
-
|
35
|
-
// it's important to know the starting width else the inputEl could be resized smaller than the boundlist
|
36
|
-
// NOTE that when removing items from the store that the startingWidth needs to be recalculated
|
37
|
-
if (!me.startingWidth || owner.removingRecords) {
|
38
|
-
me.startingWidth = width;
|
39
|
-
|
40
|
-
// also, if the width is less than growMin reset the default boundlist width
|
41
|
-
// or it will appear wider than the component if the trigger is clicked
|
42
|
-
if (width < owner.growMin) {
|
43
|
-
owner.defaultListConfig.minWidth = owner.growMin;
|
44
|
-
}
|
45
|
-
|
46
|
-
owner.removingRecords = false;
|
47
|
-
}
|
48
|
-
|
49
|
-
// only resize if the new width is greater than the starting width
|
50
|
-
return (width < me.startingWidth) ? me.startingWidth : width;
|
51
|
-
}
|
52
|
-
});
|
@@ -1,372 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* Layout class for components with {@link Ext.form.Labelable field labeling}, handling the sizing and alignment of
|
3
|
-
* the form control, label, and error message treatment.
|
4
|
-
* @private
|
5
|
-
*/
|
6
|
-
Ext.define('Ext.layout.component.field.Field', {
|
7
|
-
|
8
|
-
/* Begin Definitions */
|
9
|
-
|
10
|
-
extend: 'Ext.layout.component.Auto',
|
11
|
-
|
12
|
-
alias: 'layout.field',
|
13
|
-
|
14
|
-
uses: ['Ext.tip.QuickTip', 'Ext.util.TextMetrics', 'Ext.util.CSS'],
|
15
|
-
|
16
|
-
/* End Definitions */
|
17
|
-
|
18
|
-
type: 'field',
|
19
|
-
|
20
|
-
beginLayout: function(ownerContext) {
|
21
|
-
var me = this,
|
22
|
-
owner = me.owner,
|
23
|
-
widthModel = ownerContext.widthModel,
|
24
|
-
width;
|
25
|
-
|
26
|
-
me.callParent(arguments);
|
27
|
-
|
28
|
-
ownerContext.labelStrategy = me.getLabelStrategy();
|
29
|
-
ownerContext.errorStrategy = me.getErrorStrategy();
|
30
|
-
|
31
|
-
ownerContext.labelContext = ownerContext.getEl('labelEl');
|
32
|
-
ownerContext.bodyCellContext = ownerContext.getEl('bodyEl');
|
33
|
-
ownerContext.inputContext = ownerContext.getEl('inputEl');
|
34
|
-
ownerContext.errorContext = ownerContext.getEl('errorEl');
|
35
|
-
ownerContext.inputRow = ownerContext.getEl('inputRow');
|
36
|
-
|
37
|
-
// width:100% on an element inside a table in IE6/7 "strict" sizes the content box.
|
38
|
-
// store the input element's border and padding info so that subclasses can take it into consideration if needed
|
39
|
-
if ((Ext.isIE6 || Ext.isIE7) && Ext.isStrict && ownerContext.inputContext) {
|
40
|
-
me.ieInputWidthAdjustment = ownerContext.inputContext.getPaddingInfo().width + ownerContext.inputContext.getBorderInfo().width;
|
41
|
-
}
|
42
|
-
|
43
|
-
// perform preparation on the label and error (setting css classes, qtips, etc.)
|
44
|
-
ownerContext.labelStrategy.prepare(ownerContext, owner);
|
45
|
-
ownerContext.errorStrategy.prepare(ownerContext, owner);
|
46
|
-
|
47
|
-
// Body cell must stretch to use up available width unless the field is auto width
|
48
|
-
if (widthModel.shrinkWrap) {
|
49
|
-
// When the width needs to be auto, table-layout cannot be fixed
|
50
|
-
me.beginLayoutShrinkWrap(ownerContext);
|
51
|
-
} else if (widthModel.natural) {
|
52
|
-
|
53
|
-
// When a size specified, natural becomes fixed width
|
54
|
-
if (typeof owner.size == 'number') {
|
55
|
-
me.beginLayoutFixed(ownerContext, (width = owner.size * 6.5 + 20), 'px');
|
56
|
-
}
|
57
|
-
|
58
|
-
// Otherwise it is the same as shrinkWrap
|
59
|
-
else {
|
60
|
-
me.beginLayoutShrinkWrap(ownerContext);
|
61
|
-
}
|
62
|
-
ownerContext.setWidth(width, false);
|
63
|
-
} else {
|
64
|
-
me.beginLayoutFixed(ownerContext, '100', '%');
|
65
|
-
}
|
66
|
-
},
|
67
|
-
|
68
|
-
beginLayoutFixed: function (ownerContext, width, suffix) {
|
69
|
-
var owner = ownerContext.target;
|
70
|
-
|
71
|
-
owner.el.setStyle('table-layout', 'fixed');
|
72
|
-
owner.bodyEl.setStyle('width', width + suffix);
|
73
|
-
},
|
74
|
-
|
75
|
-
beginLayoutShrinkWrap: function (ownerContext) {
|
76
|
-
var owner = ownerContext.target;
|
77
|
-
|
78
|
-
if (owner.inputEl && owner.inputEl.dom) {
|
79
|
-
owner.inputEl.dom.removeAttribute('size');
|
80
|
-
}
|
81
|
-
owner.el.setStyle('table-layout', 'auto');
|
82
|
-
owner.bodyEl.setStyle('width', '');
|
83
|
-
},
|
84
|
-
|
85
|
-
finishedLayout: function(ownerContext){
|
86
|
-
var owner = this.owner;
|
87
|
-
|
88
|
-
this.callParent(arguments);
|
89
|
-
ownerContext.labelStrategy.finishedLayout(ownerContext, owner);
|
90
|
-
ownerContext.errorStrategy.finishedLayout(ownerContext, owner);
|
91
|
-
},
|
92
|
-
|
93
|
-
calculateOwnerHeightFromContentHeight: function(ownerContext, contentHeight) {
|
94
|
-
return contentHeight;
|
95
|
-
},
|
96
|
-
|
97
|
-
measureContentHeight: function (ownerContext) {
|
98
|
-
return ownerContext.el.getHeight();
|
99
|
-
},
|
100
|
-
|
101
|
-
measureContentWidth: function (ownerContext) {
|
102
|
-
return ownerContext.el.getWidth();
|
103
|
-
},
|
104
|
-
|
105
|
-
measureLabelErrorHeight: function (ownerContext) {
|
106
|
-
return ownerContext.labelStrategy.getHeight(ownerContext) +
|
107
|
-
ownerContext.errorStrategy.getHeight(ownerContext);
|
108
|
-
},
|
109
|
-
|
110
|
-
onFocus: function() {
|
111
|
-
this.getErrorStrategy().onFocus(this.owner);
|
112
|
-
},
|
113
|
-
|
114
|
-
/**
|
115
|
-
* Return the set of strategy functions from the {@link #labelStrategies labelStrategies collection}
|
116
|
-
* that is appropriate for the field's {@link Ext.form.Labelable#labelAlign labelAlign} config.
|
117
|
-
*/
|
118
|
-
getLabelStrategy: function() {
|
119
|
-
var me = this,
|
120
|
-
strategies = me.labelStrategies,
|
121
|
-
labelAlign = me.owner.labelAlign;
|
122
|
-
return strategies[labelAlign] || strategies.base;
|
123
|
-
},
|
124
|
-
|
125
|
-
/**
|
126
|
-
* Return the set of strategy functions from the {@link #errorStrategies errorStrategies collection}
|
127
|
-
* that is appropriate for the field's {@link Ext.form.Labelable#msgTarget msgTarget} config.
|
128
|
-
*/
|
129
|
-
getErrorStrategy: function() {
|
130
|
-
var me = this,
|
131
|
-
owner = me.owner,
|
132
|
-
strategies = me.errorStrategies,
|
133
|
-
msgTarget = owner.msgTarget;
|
134
|
-
return !owner.preventMark && Ext.isString(msgTarget) ?
|
135
|
-
(strategies[msgTarget] || strategies.elementId) :
|
136
|
-
strategies.none;
|
137
|
-
},
|
138
|
-
|
139
|
-
/**
|
140
|
-
* Collection of named strategies for laying out and adjusting labels to accommodate error messages.
|
141
|
-
* An appropriate one will be chosen based on the owner field's {@link Ext.form.Labelable#labelAlign} config.
|
142
|
-
*/
|
143
|
-
labelStrategies: (function() {
|
144
|
-
var base = {
|
145
|
-
prepare: function(ownerContext, owner) {
|
146
|
-
var cls = owner.labelCls + '-' + owner.labelAlign,
|
147
|
-
labelEl = owner.labelEl;
|
148
|
-
|
149
|
-
if (labelEl) {
|
150
|
-
labelEl.addCls(cls);
|
151
|
-
}
|
152
|
-
},
|
153
|
-
|
154
|
-
getHeight: function () {
|
155
|
-
return 0;
|
156
|
-
},
|
157
|
-
|
158
|
-
finishedLayout: Ext.emptyFn
|
159
|
-
};
|
160
|
-
|
161
|
-
return {
|
162
|
-
base: base,
|
163
|
-
|
164
|
-
/**
|
165
|
-
* Label displayed above the bodyEl
|
166
|
-
*/
|
167
|
-
top: Ext.applyIf({
|
168
|
-
prepare: function(ownerContext, owner){
|
169
|
-
base.prepare(ownerContext, owner);
|
170
|
-
var labelEl = owner.labelEl;
|
171
|
-
ownerContext.hasHiddenLabel = labelEl && !owner.hideEmptyLabel && !owner.getFieldLabel();
|
172
|
-
|
173
|
-
if (ownerContext.hasHiddenLabel) {
|
174
|
-
labelEl.dom.innerHTML = ' ';
|
175
|
-
}
|
176
|
-
},
|
177
|
-
|
178
|
-
getHeight: function (ownerContext) {
|
179
|
-
var labelContext = ownerContext.labelContext,
|
180
|
-
height = labelContext.getProp('height'),
|
181
|
-
hasEmptyLabel = ownerContext.hasHiddenLabel;
|
182
|
-
|
183
|
-
if (height === undefined || hasEmptyLabel) {
|
184
|
-
height = labelContext.el.getHeight() + labelContext.getMarginInfo().height;
|
185
|
-
if (hasEmptyLabel) {
|
186
|
-
// only force the height if we'll be clearing it later
|
187
|
-
labelContext.setHeight(height);
|
188
|
-
}
|
189
|
-
}
|
190
|
-
|
191
|
-
return height;
|
192
|
-
},
|
193
|
-
|
194
|
-
finishedLayout: function(ownerContext, owner) {
|
195
|
-
if (ownerContext.hasHiddenLabel) {
|
196
|
-
owner.labelEl.dom.innerHTML = '';
|
197
|
-
}
|
198
|
-
}
|
199
|
-
}, base),
|
200
|
-
|
201
|
-
/**
|
202
|
-
* Label displayed to the left of the bodyEl
|
203
|
-
*/
|
204
|
-
left: base,
|
205
|
-
|
206
|
-
/**
|
207
|
-
* Same as left, only difference is text-align in CSS
|
208
|
-
*/
|
209
|
-
right: base
|
210
|
-
};
|
211
|
-
}()),
|
212
|
-
|
213
|
-
/**
|
214
|
-
* Collection of named strategies for laying out and adjusting insets to accommodate error messages.
|
215
|
-
* An appropriate one will be chosen based on the owner field's {@link Ext.form.Labelable#msgTarget} config.
|
216
|
-
*/
|
217
|
-
errorStrategies: (function() {
|
218
|
-
function showTip(owner) {
|
219
|
-
var tip = Ext.layout.component.field.Field.tip,
|
220
|
-
target;
|
221
|
-
|
222
|
-
if (tip && tip.isVisible()) {
|
223
|
-
target = tip.activeTarget;
|
224
|
-
if (target && target.el === owner.getActionEl().dom) {
|
225
|
-
tip.toFront(true);
|
226
|
-
}
|
227
|
-
}
|
228
|
-
}
|
229
|
-
|
230
|
-
var applyIf = Ext.applyIf,
|
231
|
-
emptyFn = Ext.emptyFn,
|
232
|
-
iconCls = Ext.baseCSSPrefix + 'form-invalid-icon',
|
233
|
-
iconWidth,
|
234
|
-
base = {
|
235
|
-
prepare: function(ownerContext, owner) {
|
236
|
-
var el = owner.errorEl;
|
237
|
-
if (el) {
|
238
|
-
el.setDisplayed(false);
|
239
|
-
}
|
240
|
-
},
|
241
|
-
getHeight: function () {
|
242
|
-
return 0;
|
243
|
-
},
|
244
|
-
onFocus: emptyFn,
|
245
|
-
finishedLayout: emptyFn
|
246
|
-
};
|
247
|
-
|
248
|
-
return {
|
249
|
-
none: base,
|
250
|
-
|
251
|
-
/**
|
252
|
-
* Error displayed as icon (with QuickTip on hover) to right of the bodyEl
|
253
|
-
*/
|
254
|
-
side: applyIf({
|
255
|
-
prepare: function(ownerContext, owner) {
|
256
|
-
var errorEl = owner.errorEl,
|
257
|
-
tempEl;
|
258
|
-
|
259
|
-
// Capture error icon width once
|
260
|
-
if (!iconWidth) {
|
261
|
-
iconWidth = (tempEl = Ext.getBody().createChild({style: 'position:absolute', cls: iconCls})).getWidth();
|
262
|
-
tempEl.remove();
|
263
|
-
}
|
264
|
-
|
265
|
-
errorEl.addCls(iconCls);
|
266
|
-
errorEl.set({'data-errorqtip': owner.getActiveError() || ''});
|
267
|
-
errorEl.setDisplayed(owner.hasActiveError());
|
268
|
-
owner.bodyEl.dom.colSpan = owner.getBodyColspan();
|
269
|
-
|
270
|
-
// TODO: defer the tip call until after the layout to avoid immediate DOM reads now
|
271
|
-
Ext.layout.component.field.Field.initTip();
|
272
|
-
},
|
273
|
-
onFocus: showTip
|
274
|
-
}, base),
|
275
|
-
|
276
|
-
/**
|
277
|
-
* Error message displayed underneath the bodyEl
|
278
|
-
*/
|
279
|
-
under: applyIf({
|
280
|
-
prepare: function(ownerContext, owner) {
|
281
|
-
var errorEl = owner.errorEl,
|
282
|
-
cls = Ext.baseCSSPrefix + 'form-invalid-under';
|
283
|
-
|
284
|
-
errorEl.addCls(cls);
|
285
|
-
errorEl.setDisplayed(owner.hasActiveError());
|
286
|
-
if (owner.labelAlign == 'left') {
|
287
|
-
// hide the under label placeholder td
|
288
|
-
errorEl.prev().setDisplayed(owner.hasVisibleLabel() ? 'block' : 'none');
|
289
|
-
}
|
290
|
-
},
|
291
|
-
getHeight: function (ownerContext) {
|
292
|
-
var height = 0,
|
293
|
-
errorContext, props;
|
294
|
-
|
295
|
-
if (ownerContext.target.hasActiveError()) {
|
296
|
-
errorContext = ownerContext.errorContext;
|
297
|
-
props = errorContext.props;
|
298
|
-
height = props.height;
|
299
|
-
|
300
|
-
if (height === undefined) {
|
301
|
-
props.height = height = errorContext.el.getHeight();
|
302
|
-
}
|
303
|
-
}
|
304
|
-
|
305
|
-
return height;
|
306
|
-
}
|
307
|
-
}, base),
|
308
|
-
|
309
|
-
/**
|
310
|
-
* Error displayed as QuickTip on hover of the field container
|
311
|
-
*/
|
312
|
-
qtip: applyIf({
|
313
|
-
prepare: function(ownerContext, owner) {
|
314
|
-
Ext.layout.component.field.Field.initTip();
|
315
|
-
owner.getActionEl().set({'data-errorqtip': owner.getActiveError() || ''});
|
316
|
-
},
|
317
|
-
onFocus: showTip
|
318
|
-
}, base),
|
319
|
-
|
320
|
-
/**
|
321
|
-
* Error displayed as title tip on hover of the field container
|
322
|
-
*/
|
323
|
-
title: applyIf({
|
324
|
-
prepare: function(ownerContext, owner) {
|
325
|
-
owner.el.set({'title': owner.getActiveError() || ''});
|
326
|
-
}
|
327
|
-
}, base),
|
328
|
-
|
329
|
-
/**
|
330
|
-
* Error message displayed as content of an element with a given id elsewhere in the app
|
331
|
-
*/
|
332
|
-
elementId: applyIf({
|
333
|
-
prepare: function(ownerContext, owner) {
|
334
|
-
var targetEl = Ext.fly(owner.msgTarget);
|
335
|
-
if (targetEl) {
|
336
|
-
targetEl.dom.innerHTML = owner.getActiveError() || '';
|
337
|
-
targetEl.setDisplayed(owner.hasActiveError());
|
338
|
-
}
|
339
|
-
}
|
340
|
-
}, base)
|
341
|
-
};
|
342
|
-
}()),
|
343
|
-
|
344
|
-
statics: {
|
345
|
-
/**
|
346
|
-
* Use a custom QuickTip instance separate from the main QuickTips singleton, so that we
|
347
|
-
* can give it a custom frame style. Responds to errorqtip rather than the qtip property.
|
348
|
-
* @static
|
349
|
-
*/
|
350
|
-
initTip: function() {
|
351
|
-
var tip = this.tip;
|
352
|
-
if (!tip) {
|
353
|
-
tip = this.tip = Ext.create('Ext.tip.QuickTip', {
|
354
|
-
baseCls: Ext.baseCSSPrefix + 'form-invalid-tip'
|
355
|
-
});
|
356
|
-
tip.tagConfig = Ext.apply({}, {attribute: 'errorqtip'}, tip.tagConfig);
|
357
|
-
}
|
358
|
-
},
|
359
|
-
|
360
|
-
/**
|
361
|
-
* Destroy the error tip instance.
|
362
|
-
* @static
|
363
|
-
*/
|
364
|
-
destroyTip: function() {
|
365
|
-
var tip = this.tip;
|
366
|
-
if (tip) {
|
367
|
-
tip.destroy();
|
368
|
-
delete this.tip;
|
369
|
-
}
|
370
|
-
}
|
371
|
-
}
|
372
|
-
});
|