@qooxdoo/framework 7.9.1 → 8.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +191 -33
- package/Manifest.json +3 -3
- package/bin/tools/utils.js +50 -13
- package/lib/compiler/compile-info.json +295 -225
- package/lib/compiler/index.js +56729 -44017
- package/lib/resource/qx/tool/{cli → compiler/cli}/templates/loader/loader-node.tmpl.js +1 -0
- package/lib/resource/qx/tool/compiler/cli/templates/skeleton/mobile/source/theme/custom/css/custom.css.map +1 -0
- package/{source/resource/qx/tool → lib/resource/qx/tool/compiler}/cli/templates/template_vars.js +12 -9
- package/{source/resource/qx/tool → lib/resource/qx/tool/compiler}/schema/Manifest-1-0-0.json +2 -2
- package/lib/resource/qx/tool/{schema → compiler/schema}/Manifest-2-0-0.json +2 -2
- package/lib/resource/qx/tool/{schema → compiler/schema}/compile-1-0-0.json +15 -3
- package/{source/resource/qx/tool → lib/resource/qx/tool/compiler}/schema/qooxdoo-1-0-0.json +1 -1
- package/lib/resource/qx/tool/website/build/404.html +22 -22
- package/lib/resource/qx/tool/website/build/about.html +23 -23
- package/lib/resource/qx/tool/website/build/assets/common.js +30 -18
- package/lib/resource/qx/tool/website/build/assets/custom.css +290 -0
- package/lib/resource/qx/tool/website/build/assets/qxWeb.js +28 -0
- package/lib/resource/qx/tool/website/build/diagnostics/dependson.html +30 -30
- package/lib/resource/qx/tool/website/build/diagnostics/dependson.js +49 -40
- package/lib/resource/qx/tool/website/build/diagnostics/requiredby.html +20 -23
- package/lib/resource/qx/tool/website/build/diagnostics/requiredby.js +38 -31
- package/lib/resource/qx/tool/website/build/index.html +24 -24
- package/lib/resource/qx/tool/website/build/scripts/serve.js +63 -65
- package/lib/resource/qx/tool/website/partials/footer.html +8 -13
- package/lib/resource/qx/tool/website/partials/head.html +9 -7
- package/lib/resource/qx/tool/website/partials/header.html +3 -3
- package/lib/resource/qx/tool/website/src/assets/common.js +32 -0
- package/lib/resource/qx/tool/website/src/assets/custom.css +290 -0
- package/lib/resource/qx/tool/website/src/assets/qxWeb.js +28 -0
- package/lib/resource/qx/tool/website/src/diagnostics/dependson.js +49 -40
- package/lib/resource/qx/tool/website/src/diagnostics/requiredby.js +38 -31
- package/lib/resource/qx/tool/website/src/index.html +2 -2
- package/lib/resource/qx/tool/website/src/scripts/serve.js +63 -65
- package/package.json +20 -19
- package/source/boot/index.html +2 -2
- package/source/class/qx/Bootstrap.js +931 -705
- package/source/class/qx/Class.js +1476 -1451
- package/source/class/qx/Interface.js +40 -107
- package/source/class/qx/Mixin.js +58 -116
- package/source/class/qx/Promise.js +1 -0
- package/source/class/qx/Theme.js +1 -1
- package/source/class/qx/application/Routing.js +2 -0
- package/source/class/qx/bom/Font.js +3 -0
- package/source/class/qx/bom/client/Locale.js +5 -0
- package/source/class/qx/bom/request/Jsonp.js +5 -13
- package/source/class/qx/bom/request/Script.js +11 -35
- package/source/class/qx/bom/request/SimpleXhr.js +13 -41
- package/source/class/qx/bom/request/Xhr.js +19 -80
- package/source/class/qx/bom/storage/Memory.js +2 -0
- package/source/class/qx/bom/storage/UserData.js +2 -0
- package/source/class/qx/bom/storage/Web.js +2 -0
- package/source/class/qx/bom/webfonts/Validator.js +13 -5
- package/source/class/qx/core/Assert.js +14 -0
- package/source/class/qx/core/BaseInit.js +19 -20
- package/source/class/qx/core/Environment.js +23 -20
- package/source/class/qx/core/MEvent.js +1 -1
- package/source/class/qx/core/MObjectId.js +8 -6
- package/source/class/qx/core/MProperty.js +172 -136
- package/source/class/qx/core/Object.js +88 -102
- package/source/class/qx/core/check/AbstractCheck.js +111 -0
- package/source/class/qx/core/check/Any.js +63 -0
- package/source/class/qx/core/check/CheckFactory.js +151 -0
- package/source/class/qx/core/check/DynamicTypeCheck.js +90 -0
- package/source/class/qx/core/check/ICheck.js +75 -0
- package/source/class/qx/core/check/IsOneOfCheck.js +63 -0
- package/source/class/qx/core/check/JsDocCheck.js +71 -0
- package/source/class/qx/core/check/SimpleCheck.js +42 -0
- package/source/class/qx/core/check/standard/ArrayCheck.js +49 -0
- package/source/class/qx/core/check/standard/BooleanCheck.js +47 -0
- package/source/class/qx/core/check/standard/ClassCheck.js +33 -0
- package/source/class/qx/core/check/standard/ColorCheck.js +33 -0
- package/source/class/qx/core/check/standard/DateCheck.js +49 -0
- package/source/class/qx/core/check/standard/DecoratorCheck.js +33 -0
- package/source/class/qx/core/check/standard/DocumentCheck.js +40 -0
- package/source/class/qx/core/check/standard/ElementCheck.js +40 -0
- package/source/class/qx/core/check/standard/ErrorCheck.js +46 -0
- package/source/class/qx/core/check/standard/EventCheck.js +40 -0
- package/source/class/qx/core/check/standard/FontCheck.js +33 -0
- package/source/class/qx/core/check/standard/FunctionCheck.js +49 -0
- package/source/class/qx/core/check/standard/IntegerCheck.js +54 -0
- package/source/class/qx/core/check/standard/InterfaceCheck.js +33 -0
- package/source/class/qx/core/check/standard/MapCheck.js +33 -0
- package/source/class/qx/core/check/standard/MixinCheck.js +33 -0
- package/source/class/qx/core/check/standard/NodeCheck.js +40 -0
- package/source/class/qx/core/check/standard/NumberCheck.js +48 -0
- package/source/class/qx/core/check/standard/ObjectCheck.js +33 -0
- package/source/class/qx/core/check/standard/PositiveIntegerCheck.js +45 -0
- package/source/class/qx/core/check/standard/PositiveNumberCheck.js +45 -0
- package/source/class/qx/core/check/standard/PromiseCheck.js +33 -0
- package/source/class/qx/core/check/standard/RegExpCheck.js +46 -0
- package/source/class/qx/core/check/standard/StringCheck.js +43 -0
- package/source/class/qx/core/check/standard/ThemeCheck.js +33 -0
- package/source/class/qx/core/check/standard/WindowCheck.js +40 -0
- package/source/class/qx/core/property/ExplicitPropertyStorage.js +87 -0
- package/source/class/qx/core/property/GroupProperty.js +262 -0
- package/source/class/qx/core/property/IProperty.js +46 -0
- package/source/class/qx/core/property/IPropertyStorage.js +83 -0
- package/source/class/qx/core/property/ImmutableArrayStorage.js +38 -0
- package/source/class/qx/core/property/ImmutableDataArrayStorage.js +38 -0
- package/source/class/qx/core/property/ImmutableObjectStorage.js +39 -0
- package/source/class/qx/core/property/Property.js +1481 -0
- package/source/class/qx/core/property/PropertyStorageFactory.js +22 -0
- package/source/class/qx/core/property/SimplePropertyStorage.js +105 -0
- package/source/class/qx/data/Array.js +102 -57
- package/source/class/qx/data/MBinding.js +4 -29
- package/source/class/qx/data/SingleValueBinding.js +596 -1495
- package/source/class/qx/data/binding/AbstractSegment.js +197 -0
- package/source/class/qx/data/binding/ArrayIndexSegment.js +148 -0
- package/source/class/qx/data/binding/IInputReceiver.js +14 -0
- package/source/class/qx/data/binding/PropNameSegment.js +150 -0
- package/source/class/qx/data/controller/CheckedList.js +1 -1
- package/source/class/qx/data/controller/Form.js +78 -8
- package/source/class/qx/data/controller/Tree.js +27 -117
- package/source/class/qx/data/marshal/Json.js +46 -149
- package/source/class/qx/data/store/Json.js +0 -2
- package/source/class/qx/dev/Debug.js +1 -1
- package/source/class/qx/dev/LeakDetector.js +144 -0
- package/source/class/qx/dev/unit/AsyncWrapper.js +1 -0
- package/source/class/qx/dev/unit/MMock.js +7 -2
- package/source/class/qx/dev/unit/Sinon.js +0 -4
- package/source/class/qx/dev/unit/TestClass.js +2 -2
- package/source/class/qx/dev/unit/TestFunction.js +1 -0
- package/source/class/qx/dev/unit/TestLoaderBasic.js +1 -0
- package/source/class/qx/dev/unit/TestRunner.js +106 -0
- package/source/class/qx/event/IEventDispatcher.js +8 -4
- package/source/class/qx/event/Manager.js +4 -0
- package/source/class/qx/event/Messaging.js +2 -0
- package/source/class/qx/event/Pool.js +7 -0
- package/source/class/qx/event/Registration.js +33 -55
- package/source/class/qx/event/Timer.js +2 -0
- package/source/class/qx/event/Utils.js +25 -8
- package/source/class/qx/event/dispatch/AbstractBubbling.js +98 -194
- package/source/class/qx/event/dispatch/Direct.js +18 -13
- package/source/class/qx/event/handler/Appear.js +20 -24
- package/source/class/qx/event/handler/Application.js +4 -0
- package/source/class/qx/event/handler/DragDrop.js +182 -385
- package/source/class/qx/event/handler/Element.js +3 -0
- package/source/class/qx/event/handler/Focus.js +36 -30
- package/source/class/qx/event/handler/Input.js +5 -0
- package/source/class/qx/event/handler/Keyboard.js +107 -165
- package/source/class/qx/event/handler/Pointer.js +39 -68
- package/source/class/qx/event/handler/PointerCore.js +7 -25
- package/source/class/qx/event/handler/Window.js +5 -0
- package/source/class/qx/event/type/Event.js +12 -0
- package/source/class/qx/event/type/KeySequence.js +3 -0
- package/source/class/qx/event/type/Native.js +3 -0
- package/source/class/qx/html/Element.js +26 -91
- package/source/class/qx/io/jsonrpc/Client.js +1 -1
- package/source/class/qx/io/jsonrpc/protocol/Error.js +2 -2
- package/source/class/qx/io/jsonrpc/protocol/Parser.js +1 -0
- package/source/class/qx/io/jsonrpc/protocol/Result.js +2 -2
- package/source/class/qx/io/request/Xhr.js +3 -8
- package/source/class/qx/lang/normalize/Array.js +23 -1
- package/source/class/qx/locale/Date.js +520 -113
- package/source/class/qx/locale/LocalizedString.js +3 -0
- package/source/class/qx/locale/Manager.js +14 -3
- package/source/class/qx/locale/Number.js +60 -7
- package/source/class/qx/log/Logger.js +1 -1
- package/source/class/qx/module/Animation.js +2 -0
- package/source/class/qx/module/Attribute.js +2 -0
- package/source/class/qx/module/Css.js +7 -24
- package/source/class/qx/module/Event.js +2 -0
- package/source/class/qx/module/Manipulating.js +2 -0
- package/source/class/qx/module/Traversing.js +2 -0
- package/source/class/qx/test/Bootstrap.js +68 -53
- package/source/class/qx/test/Class.js +310 -2
- package/source/class/qx/test/Mixin.js +192 -42
- package/source/class/qx/test/Promise.js +129 -331
- package/source/class/qx/test/Theme.js +11 -0
- package/source/class/qx/test/bom/Font.js +2 -5
- package/source/class/qx/test/bom/Template.js +1 -1
- package/source/class/qx/test/compiler/ClassFile.js +14 -0
- package/source/class/qx/test/core/Assert.js +12 -0
- package/source/class/qx/test/core/Environment.js +17 -3
- package/source/class/qx/test/core/InheritanceDummy.js +10 -1
- package/source/class/qx/test/core/Object.js +51 -24
- package/source/class/qx/test/core/ObjectId.js +10 -1
- package/source/class/qx/test/core/Property.js +1338 -121
- package/source/class/qx/test/core/PropertyHelper.js +12 -0
- package/source/class/qx/test/core/Target.js +1 -0
- package/source/class/qx/test/core/Validation.js +2 -0
- package/source/class/qx/test/data/DataArray.js +218 -639
- package/source/class/qx/test/data/DataArrayWithChangeBubble.js +45 -215
- package/source/class/qx/test/data/MultiBinding.js +42 -0
- package/source/class/qx/test/data/async/__init__.js +4 -0
- package/source/class/qx/test/data/controller/Form.js +523 -14
- package/source/class/qx/test/data/controller/List.js +94 -426
- package/source/class/qx/test/data/controller/ListReverse.js +5 -20
- package/source/class/qx/test/data/controller/ListWithObjects.js +49 -225
- package/source/class/qx/test/data/controller/Object.js +54 -222
- package/source/class/qx/test/data/controller/Tree.js +195 -934
- package/source/class/qx/test/data/marshal/Json.js +74 -312
- package/source/class/qx/test/data/singlevalue/Array.js +55 -279
- package/source/class/qx/test/data/singlevalue/Async.js +173 -0
- package/source/class/qx/test/data/singlevalue/Deep.js +148 -327
- package/source/class/qx/test/data/singlevalue/Resolve.js +8 -28
- package/source/class/qx/test/data/singlevalue/Simple.js +124 -359
- package/source/class/qx/test/data/store/Json.js +86 -254
- package/source/class/qx/test/data/store/Jsonp.js +9 -29
- package/source/class/qx/test/data/store/Offline.js +2 -8
- package/source/class/qx/test/data/store/Rest.js +3 -3
- package/source/class/qx/test/dev/unit/Requirements.js +26 -10
- package/source/class/qx/test/event/GlobalError.js +2 -2
- package/source/class/qx/test/html/Iframe.js +1 -1
- package/source/class/qx/test/io/graphql/Client.js +2 -0
- package/source/class/qx/test/io/jsonrpc/Protocol.js +4 -2
- package/source/class/qx/test/io/request/MRequest.js +2 -8
- package/source/class/qx/test/io/request/Xhr.js +27 -117
- package/source/class/qx/test/lang/Function.js +6 -25
- package/source/class/qx/test/lang/Type.js +31 -13
- package/source/class/qx/test/locale/Date.js +173 -2
- package/source/class/qx/test/locale/Locale.js +23 -28
- package/source/class/qx/test/locale/Number.js +71 -0
- package/source/class/qx/test/log/Logger.js +7 -1
- package/source/class/qx/test/log/fixture/ClassA.js +2 -5
- package/source/class/qx/test/mobile/basic/Atom.js +3 -3
- package/source/class/qx/test/mobile/container/Scroll.js +4 -4
- package/source/class/qx/test/mobile/form/CheckBox.js +6 -12
- package/source/class/qx/test/performance/Property.js +5 -4
- package/source/class/qx/test/performance/widget/WidgetWithDecorator.js +2 -0
- package/source/class/qx/test/theme/Simple.js +34 -0
- package/source/class/qx/test/{MAppearance.js → theme/SimpleAppearance.js} +5 -4
- package/source/class/qx/test/{MDecoration.js → theme/SimpleDecoration.js} +6 -4
- package/source/class/qx/test/theme/manager/Color.js +23 -15
- package/source/class/qx/test/theme/manager/Decoration.js +23 -15
- package/source/class/qx/test/theme/manager/Font.js +23 -15
- package/source/class/qx/test/theme/manager/Icon.js +23 -15
- package/source/class/qx/test/theme/manager/Meta.js +33 -20
- package/source/class/qx/test/tool/__init__.js +3 -0
- package/source/class/qx/test/tool/cli/AbstractValue.js +274 -0
- package/source/class/qx/test/tool/cli/Argument.js +384 -0
- package/source/class/qx/test/tool/cli/Command.js +387 -0
- package/source/class/qx/test/tool/cli/Flag.js +413 -0
- package/source/class/qx/test/tool/cli/__init__.js +3 -0
- package/source/class/qx/test/ui/LayoutTestCase.js +1 -14
- package/source/class/qx/test/ui/basic/Label.js +106 -0
- package/source/class/qx/test/ui/core/Blocker.js +125 -3
- package/source/class/qx/test/ui/form/Form.js +106 -0
- package/source/class/qx/test/ui/form/FormManager.js +6 -5
- package/source/class/qx/test/ui/form/SplitButton.js +1 -1
- package/source/class/qx/test/ui/toolbar/OverflowHandling.js +13 -14
- package/source/class/qx/test/ui/toolbar/ToolBar.js +16 -16
- package/source/class/qx/test/ui/tree/TreeFolder.js +5 -7
- package/source/class/qx/test/ui/tree/virtual/AbstractTreeTest.js +2 -0
- package/source/class/qx/test/ui/tree/virtual/Tree.js +36 -0
- package/source/class/qx/test/util/DateFormat.js +1 -1
- package/source/class/qx/test/util/PropertyUtil.js +0 -36
- package/source/class/qx/theme/classic/Appearance.js +1 -1
- package/source/class/qx/theme/indigo/ColorDark.js +2 -0
- package/source/class/qx/theme/manager/Font.js +6 -1
- package/source/class/qx/theme/manager/Meta.js +2 -1
- package/source/class/qx/theme/simple/Appearance.js +31 -95
- package/source/class/qx/theme/simple/Decoration.js +0 -1
- package/source/class/qx/theme/tangible/Appearance.js +1 -1
- package/source/class/qx/tool/cli/AbstractCliApp.js +72 -0
- package/source/class/qx/tool/cli/AbstractValue.js +186 -0
- package/source/class/qx/tool/cli/Argument.js +155 -0
- package/source/class/qx/tool/cli/Command.js +518 -0
- package/source/class/qx/tool/cli/Flag.js +202 -0
- package/source/class/qx/tool/cli/Parser.js +39 -0
- package/source/class/qx/tool/cli/__init__.js +26 -1
- package/source/class/qx/tool/compiler/Analyser.js +41 -13
- package/source/class/qx/tool/compiler/ClassFile.js +37 -9
- package/source/class/qx/tool/compiler/Console.js +2 -0
- package/source/class/qx/tool/compiler/MetaExtraction.js +53 -33
- package/source/class/qx/tool/compiler/app/Library.js +1 -1
- package/source/class/qx/tool/compiler/app/WebFont.js +2 -0
- package/source/class/qx/tool/compiler/cli/Application.js +58 -0
- package/source/class/qx/tool/{cli/commands → compiler/cli}/Command.js +99 -45
- package/source/class/qx/tool/{cli → compiler/cli}/ConfigDb.js +7 -7
- package/source/class/qx/tool/compiler/cli/ConfigLoader.js +272 -0
- package/source/class/qx/tool/{cli → compiler/cli}/LibraryApplication.js +3 -3
- package/source/class/qx/tool/compiler/cli/RootCommand.js +63 -0
- package/source/class/qx/tool/{cli → compiler/cli}/Watch.js +49 -24
- package/source/class/qx/tool/compiler/cli/__init__.js +3 -0
- package/source/class/qx/tool/{cli → compiler/cli}/api/AbstractApi.js +2 -11
- package/source/class/qx/tool/{cli → compiler/cli}/api/CompilerApi.js +11 -10
- package/source/class/qx/tool/{cli → compiler/cli}/api/LibraryApi.js +13 -4
- package/source/class/qx/tool/{cli → compiler/cli}/api/Test.js +1 -1
- package/source/class/qx/tool/compiler/cli/commands/Add.js +49 -0
- package/source/class/qx/tool/{cli → compiler/cli}/commands/Clean.js +12 -25
- package/source/class/qx/tool/{cli → compiler/cli}/commands/Compile.js +524 -615
- package/source/class/qx/tool/{cli → compiler/cli}/commands/Config.js +22 -20
- package/source/class/qx/tool/{cli → compiler/cli}/commands/Create.js +77 -54
- package/source/class/qx/tool/{cli → compiler/cli}/commands/Deploy.js +45 -60
- package/source/class/qx/tool/{cli → compiler/cli}/commands/Es6ify.js +57 -41
- package/source/class/qx/tool/{cli → compiler/cli}/commands/ExportGlyphs.js +26 -7
- package/source/class/qx/tool/compiler/cli/commands/Lint.js +420 -0
- package/source/class/qx/tool/{cli → compiler/cli}/commands/Migrate.js +40 -20
- package/source/class/qx/tool/{cli → compiler/cli}/commands/Package.js +20 -32
- package/source/class/qx/tool/compiler/cli/commands/Pkg.js +36 -0
- package/source/class/qx/tool/compiler/cli/commands/Prettier.js +278 -0
- package/source/class/qx/tool/{cli → compiler/cli}/commands/Run.js +43 -39
- package/source/class/qx/tool/{cli → compiler/cli}/commands/Serve.js +63 -61
- package/source/class/qx/tool/{cli → compiler/cli}/commands/Test.js +49 -52
- package/source/class/qx/tool/{cli → compiler/cli}/commands/Typescript.js +51 -30
- package/source/class/qx/tool/{cli → compiler/cli}/commands/add/Class.js +54 -31
- package/source/class/qx/tool/{cli → compiler/cli}/commands/add/Script.js +56 -32
- package/source/class/qx/tool/{cli → compiler/cli}/commands/config/Delete.js +19 -13
- package/source/class/qx/tool/{cli → compiler/cli}/commands/config/Get.js +19 -13
- package/source/class/qx/tool/{cli → compiler/cli}/commands/config/List.js +20 -20
- package/source/class/qx/tool/{cli → compiler/cli}/commands/config/Set.js +28 -20
- package/source/class/qx/tool/{cli → compiler/cli}/commands/package/Install.js +140 -75
- package/source/class/qx/tool/{cli → compiler/cli}/commands/package/List.js +119 -80
- package/source/class/qx/tool/{cli → compiler/cli}/commands/package/Publish.js +194 -178
- package/source/class/qx/tool/{cli → compiler/cli}/commands/package/Remove.js +18 -21
- package/source/class/qx/tool/{cli → compiler/cli}/commands/package/Update.js +90 -69
- package/source/class/qx/tool/{cli → compiler/cli}/commands/package/Upgrade.js +67 -54
- package/source/class/qx/tool/compiler/makers/AbstractAppMaker.js +2 -1
- package/source/class/qx/tool/compiler/resources/Manager.js +2 -0
- package/source/class/qx/tool/compiler/resources/ScssConverter.js +1 -1
- package/source/class/qx/tool/compiler/resources/ScssFile.js +1 -1
- package/source/class/qx/tool/compiler/targets/Target.js +5 -10
- package/source/class/qx/tool/compiler/targets/TypeScriptWriter.js +6 -2
- package/source/class/qx/tool/compiler/targets/meta/ApplicationMeta.js +2 -4
- package/source/class/qx/tool/compiler/targets/meta/BootJs.js +2 -0
- package/source/class/qx/tool/compiler/targets/meta/PackageJavascript.js +2 -0
- package/source/class/qx/tool/config/Abstract.js +5 -5
- package/source/class/qx/tool/config/Lockfile.js +1 -1
- package/source/class/qx/tool/migration/BaseMigration.js +9 -7
- package/source/class/qx/tool/migration/M6_0_0.js +3 -3
- package/source/class/qx/tool/migration/M8_0_0.js +958 -0
- package/source/class/qx/tool/utils/Debounce.js +0 -1
- package/source/class/qx/tool/utils/Http.js +109 -21
- package/source/class/qx/tool/utils/LogManager.js +7 -0
- package/source/class/qx/tool/utils/Promisify.js +12 -1
- package/source/class/qx/tool/utils/QooxdooVersions.js +193 -0
- package/source/class/qx/tool/utils/Utils.js +8 -5
- package/source/class/qx/tool/utils/Website.js +9 -222
- package/source/class/qx/tool/utils/Zip.js +47 -0
- package/source/class/qx/tool/utils/files/Utils.js +3 -11
- package/source/class/qx/tool/utils/json/Tokenizer.js +5 -0
- package/source/class/qx/ui/basic/Atom.js +8 -8
- package/source/class/qx/ui/core/Blocker.js +17 -4
- package/source/class/qx/ui/core/DragDropCursor.js +2 -1
- package/source/class/qx/ui/core/EventHandler.js +13 -21
- package/source/class/qx/ui/core/LayoutItem.js +8 -31
- package/source/class/qx/ui/core/MExecutable.js +21 -43
- package/source/class/qx/ui/core/MNativeOverflow.js +4 -2
- package/source/class/qx/ui/core/Widget.js +50 -165
- package/source/class/qx/ui/core/scroll/IScrollBar.js +9 -3
- package/source/class/qx/ui/core/scroll/ScrollBar.js +7 -1
- package/source/class/qx/ui/core/scroll/ScrollPane.js +12 -4
- package/source/class/qx/ui/embed/Html.js +6 -2
- package/source/class/qx/ui/form/AbstractField.js +4 -12
- package/source/class/qx/ui/form/Button.js +6 -4
- package/source/class/qx/ui/form/CheckedSelectBox.js +8 -8
- package/source/class/qx/ui/form/FileSelectorButton.js +1 -1
- package/source/class/qx/ui/form/Form.js +3 -0
- package/source/class/qx/ui/form/IListItem.js +3 -1
- package/source/class/qx/ui/form/IRadioItem.js +3 -1
- package/source/class/qx/ui/form/MForm.js +3 -1
- package/source/class/qx/ui/form/Slider.js +6 -2
- package/source/class/qx/ui/form/SplitButton.js +5 -5
- package/source/class/qx/ui/form/TextField.js +1 -2
- package/source/class/qx/ui/form/validation/Manager.js +6 -2
- package/source/class/qx/ui/menubar/Button.js +1 -1
- package/source/class/qx/ui/mobile/basic/Atom.js +5 -5
- package/source/class/qx/ui/mobile/dialog/Menu.js +9 -31
- package/source/class/qx/ui/mobile/dialog/Popup.js +13 -1
- package/source/class/qx/ui/table/pane/FocusIndicator.js +5 -2
- package/source/class/qx/ui/table/pane/Scroller.js +11 -28
- package/source/class/qx/ui/table/selection/Model.js +1 -0
- package/source/class/qx/ui/toolbar/Button.js +1 -1
- package/source/class/qx/ui/toolbar/CheckBox.js +1 -1
- package/source/class/qx/ui/toolbar/FileSelectorButton.js +1 -2
- package/source/class/qx/ui/toolbar/Part.js +2 -2
- package/source/class/qx/ui/toolbar/PartContainer.js +2 -2
- package/source/class/qx/ui/toolbar/ToolBar.js +24 -49
- package/source/class/qx/ui/tree/VirtualTree.js +6 -4
- package/source/class/qx/ui/tree/core/AbstractItem.js +10 -17
- package/source/class/qx/ui/tree/core/IVirtualTree.js +4 -2
- package/source/class/qx/ui/tree/provider/IVirtualTreeProvider.js +20 -10
- package/source/class/qx/ui/treevirtual/SimpleTreeDataModel.js +4 -1
- package/source/class/qx/ui/virtual/cell/Cell.js +20 -48
- package/source/class/qx/ui/virtual/cell/WidgetCell.js +2 -4
- package/source/class/qx/ui/virtual/core/Axis.js +4 -0
- package/source/class/qx/ui/virtual/core/ILayer.js +14 -10
- package/source/class/qx/ui/virtual/core/Scroller.js +4 -4
- package/source/class/qx/ui/virtual/layer/WidgetCell.js +4 -0
- package/source/class/qx/ui/virtual/selection/Abstract.js +3 -0
- package/source/class/qx/ui/virtual/selection/MModel.js +1 -1
- package/source/class/qx/ui/window/IDesktop.js +6 -2
- package/source/class/qx/ui/window/IWindowManager.js +10 -4
- package/source/class/qx/ui/window/MDesktop.js +2 -1
- package/source/class/qx/ui/window/Manager.js +1 -1
- package/source/class/qx/ui/window/Window.js +6 -4
- package/source/class/qx/util/OOUtil.js +8 -9
- package/source/class/qx/util/PropertyUtil.js +34 -154
- package/source/class/qx/util/ResponseParser.js +2 -0
- package/source/class/qx/util/Serializer.js +69 -114
- package/source/class/qx/util/format/DateFormat.js +3 -2
- package/source/global.d.ts +4 -0
- package/source/resource/qx/tool/bin/download-assets +0 -2
- package/source/resource/qx/tool/{cli → compiler/cli}/templates/loader/loader-node.tmpl.js +1 -0
- package/{lib/resource/qx/tool → source/resource/qx/tool/compiler}/cli/templates/template_vars.js +12 -9
- package/{lib/resource/qx/tool → source/resource/qx/tool/compiler}/schema/Manifest-1-0-0.json +2 -2
- package/source/resource/qx/tool/{schema → compiler/schema}/Manifest-2-0-0.json +2 -2
- package/source/resource/qx/tool/{schema → compiler/schema}/compile-1-0-0.json +15 -3
- package/{lib/resource/qx/tool → source/resource/qx/tool/compiler}/schema/qooxdoo-1-0-0.json +1 -1
- package/source/resource/qx/tool/website/build/404.html +22 -22
- package/source/resource/qx/tool/website/build/about.html +23 -23
- package/source/resource/qx/tool/website/build/assets/common.js +30 -18
- package/source/resource/qx/tool/website/build/assets/custom.css +290 -0
- package/source/resource/qx/tool/website/build/assets/qxWeb.js +28 -0
- package/source/resource/qx/tool/website/build/diagnostics/dependson.html +30 -30
- package/source/resource/qx/tool/website/build/diagnostics/dependson.js +49 -40
- package/source/resource/qx/tool/website/build/diagnostics/requiredby.html +20 -23
- package/source/resource/qx/tool/website/build/diagnostics/requiredby.js +38 -31
- package/source/resource/qx/tool/website/build/index.html +24 -24
- package/source/resource/qx/tool/website/build/scripts/serve.js +63 -65
- package/source/resource/qx/tool/website/partials/footer.html +8 -13
- package/source/resource/qx/tool/website/partials/head.html +9 -7
- package/source/resource/qx/tool/website/partials/header.html +3 -3
- package/source/resource/qx/tool/website/src/assets/common.js +32 -0
- package/source/resource/qx/tool/website/src/assets/custom.css +290 -0
- package/source/resource/qx/tool/website/src/assets/qxWeb.js +28 -0
- package/source/resource/qx/tool/website/src/diagnostics/dependson.js +49 -40
- package/source/resource/qx/tool/website/src/diagnostics/requiredby.js +38 -31
- package/source/resource/qx/tool/website/src/index.html +2 -2
- package/source/resource/qx/tool/website/src/scripts/serve.js +63 -65
- package/lib/resource/qx/tool/bin/build-devtools +0 -13
- package/lib/resource/qx/tool/bin/build-website +0 -15
- package/lib/resource/qx/tool/bin/download-assets +0 -23
- package/lib/resource/qx/tool/cli/templates/skeleton/mobile/source/theme/custom/css/custom.css.map +0 -1
- package/lib/resource/qx/tool/website/build/assets/bootstrap.css +0 -7
- package/lib/resource/qx/tool/website/build/assets/bootstrap.min.css +0 -7
- package/lib/resource/qx/tool/website/build/assets/bootstrap.min.css.map +0 -1
- package/lib/resource/qx/tool/website/build/assets/jquery.js +0 -5453
- package/lib/resource/qx/tool/website/build/qooxdoo.css +0 -21
- package/lib/resource/qx/tool/website/sass/qooxdoo.css +0 -3
- package/lib/resource/qx/tool/website/sass/qooxdoo.css.map +0 -1
- package/lib/resource/qx/tool/website/src/assets/bootstrap.css +0 -7
- package/lib/resource/qx/tool/website/src/assets/bootstrap.min.css +0 -7
- package/lib/resource/qx/tool/website/src/assets/bootstrap.min.css.map +0 -1
- package/lib/resource/qx/tool/website/src/assets/jquery.js +0 -5453
- package/source/class/qx/core/Property.js +0 -2100
- package/source/class/qx/tool/cli/Application.js +0 -47
- package/source/class/qx/tool/cli/Cli.js +0 -713
- package/source/class/qx/tool/cli/commands/Add.js +0 -46
- package/source/class/qx/tool/cli/commands/Lint.js +0 -255
- package/source/class/qx/tool/cli/commands/Pkg.js +0 -56
- package/source/class/qx/tool/cli/commands/package/Migrate.js +0 -37
- package/source/class/qx/tool/compiler/app/Cldr.js +0 -725
- package/source/resource/qx/tool/bin/build-devtools +0 -13
- package/source/resource/qx/tool/bin/build-website +0 -15
- package/source/resource/qx/tool/website/build/assets/bootstrap.css +0 -7
- package/source/resource/qx/tool/website/build/assets/bootstrap.min.css +0 -7
- package/source/resource/qx/tool/website/build/assets/bootstrap.min.css.map +0 -1
- package/source/resource/qx/tool/website/build/assets/jquery.js +0 -5453
- package/source/resource/qx/tool/website/build/qooxdoo.css +0 -21
- package/source/resource/qx/tool/website/sass/qooxdoo.scss +0 -31
- package/source/resource/qx/tool/website/src/assets/bootstrap.css +0 -7
- package/source/resource/qx/tool/website/src/assets/bootstrap.min.css +0 -7
- package/source/resource/qx/tool/website/src/assets/bootstrap.min.css.map +0 -1
- package/source/resource/qx/tool/website/src/assets/jquery.js +0 -5453
- /package/lib/resource/qx/tool/{cli → compiler/cli}/templates/TypeScriptWriter-base_declaration.d.ts +0 -0
- /package/lib/resource/qx/tool/{cli → compiler/cli}/templates/class/default.tmpl.js +0 -0
- /package/lib/resource/qx/tool/{cli → compiler/cli}/templates/class/header.tmpl.js +0 -0
- /package/lib/resource/qx/tool/{cli → compiler/cli}/templates/class/interface.tmpl.js +0 -0
- /package/lib/resource/qx/tool/{cli → compiler/cli}/templates/class/mixin.tmpl.js +0 -0
- /package/lib/resource/qx/tool/{cli → compiler/cli}/templates/class/singleton.tmpl.js +0 -0
- /package/lib/resource/qx/tool/{cli → compiler/cli}/templates/loader/loader-browser.tmpl.js +0 -0
- /package/lib/resource/qx/tool/{cli → compiler/cli}/templates/loader/loader-rhino.tmpl.js +0 -0
- /package/lib/resource/qx/tool/{cli → compiler/cli}/templates/skeleton/desktop/.gitignore.tmpl +0 -0
- /package/lib/resource/qx/tool/{cli → compiler/cli}/templates/skeleton/desktop/Manifest.tmpl.json +0 -0
- /package/lib/resource/qx/tool/{cli → compiler/cli}/templates/skeleton/desktop/compile.tmpl.json +0 -0
- /package/lib/resource/qx/tool/{cli → compiler/cli}/templates/skeleton/desktop/readme.tmpl.md +0 -0
- /package/lib/resource/qx/tool/{cli → compiler/cli}/templates/skeleton/desktop/source/boot/index.tmpl.html +0 -0
- /package/lib/resource/qx/tool/{cli → compiler/cli}/templates/skeleton/desktop/source/boot/nojs.tmpl.html +0 -0
- /package/lib/resource/qx/tool/{cli → compiler/cli}/templates/skeleton/desktop/source/class/custom/Application.tmpl.js +0 -0
- /package/lib/resource/qx/tool/{cli → compiler/cli}/templates/skeleton/desktop/source/class/custom/__init__.tmpl.js +0 -0
- /package/lib/resource/qx/tool/{cli → compiler/cli}/templates/skeleton/desktop/source/class/custom/test/DemoTest.tmpl.js +0 -0
- /package/lib/resource/qx/tool/{cli → compiler/cli}/templates/skeleton/desktop/source/class/custom/theme/Appearance.tmpl.js +0 -0
- /package/lib/resource/qx/tool/{cli → compiler/cli}/templates/skeleton/desktop/source/class/custom/theme/Color.tmpl.js +0 -0
- /package/lib/resource/qx/tool/{cli → compiler/cli}/templates/skeleton/desktop/source/class/custom/theme/Decoration.tmpl.js +0 -0
- /package/lib/resource/qx/tool/{cli → compiler/cli}/templates/skeleton/desktop/source/class/custom/theme/Font.tmpl.js +0 -0
- /package/lib/resource/qx/tool/{cli → compiler/cli}/templates/skeleton/desktop/source/class/custom/theme/Theme.tmpl.js +0 -0
- /package/lib/resource/qx/tool/{cli → compiler/cli}/templates/skeleton/desktop/source/resource/custom/app.png +0 -0
- /package/lib/resource/qx/tool/{cli → compiler/cli}/templates/skeleton/desktop/source/resource/custom/favicon.png +0 -0
- /package/lib/resource/qx/tool/{cli → compiler/cli}/templates/skeleton/desktop/source/resource/custom/js_256x256.png +0 -0
- /package/lib/resource/qx/tool/{cli → compiler/cli}/templates/skeleton/desktop/source/resource/custom/test.png +0 -0
- /package/lib/resource/qx/tool/{cli → compiler/cli}/templates/skeleton/desktop/source/translation/readme.txt +0 -0
- /package/lib/resource/qx/tool/{cli → compiler/cli}/templates/skeleton/mobile/.gitignore.tmpl +0 -0
- /package/lib/resource/qx/tool/{cli → compiler/cli}/templates/skeleton/mobile/Manifest.tmpl.json +0 -0
- /package/lib/resource/qx/tool/{cli → compiler/cli}/templates/skeleton/mobile/compile.tmpl.json +0 -0
- /package/lib/resource/qx/tool/{cli → compiler/cli}/templates/skeleton/mobile/readme.tmpl.md +0 -0
- /package/lib/resource/qx/tool/{cli → compiler/cli}/templates/skeleton/mobile/source/boot/index.tmpl.html +0 -0
- /package/lib/resource/qx/tool/{cli → compiler/cli}/templates/skeleton/mobile/source/boot/nojs.tmpl.html +0 -0
- /package/lib/resource/qx/tool/{cli → compiler/cli}/templates/skeleton/mobile/source/class/custom/Application.tmpl.js +0 -0
- /package/lib/resource/qx/tool/{cli → compiler/cli}/templates/skeleton/mobile/source/class/custom/__init__.tmpl.js +0 -0
- /package/lib/resource/qx/tool/{cli → compiler/cli}/templates/skeleton/mobile/source/class/custom/page/Login.tmpl.js +0 -0
- /package/lib/resource/qx/tool/{cli → compiler/cli}/templates/skeleton/mobile/source/class/custom/page/Overview.tmpl.js +0 -0
- /package/lib/resource/qx/tool/{cli → compiler/cli}/templates/skeleton/mobile/source/class/custom/page/__init__.tmpl.js +0 -0
- /package/lib/resource/qx/tool/{cli → compiler/cli}/templates/skeleton/mobile/source/resource/custom/app.png +0 -0
- /package/lib/resource/qx/tool/{cli → compiler/cli}/templates/skeleton/mobile/source/resource/custom/css/.gitignore.tmpl +0 -0
- /package/lib/resource/qx/tool/{cli → compiler/cli}/templates/skeleton/mobile/source/resource/custom/favicon.png +0 -0
- /package/lib/resource/qx/tool/{cli → compiler/cli}/templates/skeleton/mobile/source/resource/custom/js_256x256.png +0 -0
- /package/lib/resource/qx/tool/{cli → compiler/cli}/templates/skeleton/mobile/source/theme/custom/css/custom.css +0 -0
- /package/lib/resource/qx/tool/{cli → compiler/cli}/templates/skeleton/mobile/source/translation/readme.txt +0 -0
- /package/lib/resource/qx/tool/{cli → compiler/cli}/templates/skeleton/package/.gitignore.tmpl +0 -0
- /package/lib/resource/qx/tool/{cli → compiler/cli}/templates/skeleton/package/Manifest.tmpl.json +0 -0
- /package/lib/resource/qx/tool/{cli → compiler/cli}/templates/skeleton/package/compile.tmpl.json +0 -0
- /package/lib/resource/qx/tool/{cli → compiler/cli}/templates/skeleton/package/readme.tmpl.md +0 -0
- /package/lib/resource/qx/tool/{cli → compiler/cli}/templates/skeleton/package/source/class/custom/Button.tmpl.js +0 -0
- /package/lib/resource/qx/tool/{cli → compiler/cli}/templates/skeleton/package/source/class/custom/__init__.tmpl.js +0 -0
- /package/lib/resource/qx/tool/{cli → compiler/cli}/templates/skeleton/package/source/class/custom/demo/Application.tmpl.js +0 -0
- /package/lib/resource/qx/tool/{cli → compiler/cli}/templates/skeleton/package/source/class/custom/resource/custom/test.png +0 -0
- /package/lib/resource/qx/tool/{cli → compiler/cli}/templates/skeleton/package/source/class/custom/test/DemoTest.tmpl.js +0 -0
- /package/lib/resource/qx/tool/{cli → compiler/cli}/templates/skeleton/package/source/class/custom/theme/Appearance.tmpl.js +0 -0
- /package/lib/resource/qx/tool/{cli → compiler/cli}/templates/skeleton/package/source/class/custom/theme/Color.tmpl.js +0 -0
- /package/lib/resource/qx/tool/{cli → compiler/cli}/templates/skeleton/package/source/class/custom/theme/Decoration.tmpl.js +0 -0
- /package/lib/resource/qx/tool/{cli → compiler/cli}/templates/skeleton/package/source/class/custom/theme/Font.tmpl.js +0 -0
- /package/lib/resource/qx/tool/{cli → compiler/cli}/templates/skeleton/package/source/class/custom/theme/Theme.tmpl.js +0 -0
- /package/lib/resource/qx/tool/{cli → compiler/cli}/templates/skeleton/package/source/resource/custom/test.png +0 -0
- /package/lib/resource/qx/tool/{cli → compiler/cli}/templates/skeleton/package/source/translation/readme.txt +0 -0
- /package/lib/resource/qx/tool/{cli → compiler/cli}/templates/skeleton/server/.gitignore.tmpl +0 -0
- /package/lib/resource/qx/tool/{cli → compiler/cli}/templates/skeleton/server/Manifest.tmpl.json +0 -0
- /package/lib/resource/qx/tool/{cli → compiler/cli}/templates/skeleton/server/compile.tmpl.json +0 -0
- /package/lib/resource/qx/tool/{cli → compiler/cli}/templates/skeleton/server/readme.tmpl.txt +0 -0
- /package/lib/resource/qx/tool/{cli → compiler/cli}/templates/skeleton/server/source/class/custom/Application.tmpl.js +0 -0
- /package/lib/resource/qx/tool/{cli → compiler/cli}/templates/skeleton/server/source/class/custom/__init__.tmpl.js +0 -0
- /package/lib/resource/qx/tool/{cli → compiler/cli}/templates/skeleton/server/source/class/custom/test/DemoTest.tmpl.js +0 -0
- /package/lib/resource/qx/tool/{cli → compiler/cli}/templates/skeleton/server/source/resource/custom/.gitignore.tmpl +0 -0
- /package/lib/resource/qx/tool/{cli → compiler/cli}/templates/skeleton/server/source/translation/readme.txt +0 -0
- /package/lib/resource/qx/tool/{loadsass.js → compiler/loadsass.js} +0 -0
- /package/source/resource/qx/tool/{cli → compiler/cli}/templates/TypeScriptWriter-base_declaration.d.ts +0 -0
- /package/source/resource/qx/tool/{cli → compiler/cli}/templates/class/default.tmpl.js +0 -0
- /package/source/resource/qx/tool/{cli → compiler/cli}/templates/class/header.tmpl.js +0 -0
- /package/source/resource/qx/tool/{cli → compiler/cli}/templates/class/interface.tmpl.js +0 -0
- /package/source/resource/qx/tool/{cli → compiler/cli}/templates/class/mixin.tmpl.js +0 -0
- /package/source/resource/qx/tool/{cli → compiler/cli}/templates/class/singleton.tmpl.js +0 -0
- /package/source/resource/qx/tool/{cli → compiler/cli}/templates/loader/loader-browser.tmpl.js +0 -0
- /package/source/resource/qx/tool/{cli → compiler/cli}/templates/loader/loader-rhino.tmpl.js +0 -0
- /package/source/resource/qx/tool/{cli → compiler/cli}/templates/skeleton/desktop/.gitignore.tmpl +0 -0
- /package/source/resource/qx/tool/{cli → compiler/cli}/templates/skeleton/desktop/Manifest.tmpl.json +0 -0
- /package/source/resource/qx/tool/{cli → compiler/cli}/templates/skeleton/desktop/compile.tmpl.json +0 -0
- /package/source/resource/qx/tool/{cli → compiler/cli}/templates/skeleton/desktop/readme.tmpl.md +0 -0
- /package/source/resource/qx/tool/{cli → compiler/cli}/templates/skeleton/desktop/source/boot/index.tmpl.html +0 -0
- /package/source/resource/qx/tool/{cli → compiler/cli}/templates/skeleton/desktop/source/boot/nojs.tmpl.html +0 -0
- /package/source/resource/qx/tool/{cli → compiler/cli}/templates/skeleton/desktop/source/class/custom/Application.tmpl.js +0 -0
- /package/source/resource/qx/tool/{cli → compiler/cli}/templates/skeleton/desktop/source/class/custom/__init__.tmpl.js +0 -0
- /package/source/resource/qx/tool/{cli → compiler/cli}/templates/skeleton/desktop/source/class/custom/test/DemoTest.tmpl.js +0 -0
- /package/source/resource/qx/tool/{cli → compiler/cli}/templates/skeleton/desktop/source/class/custom/theme/Appearance.tmpl.js +0 -0
- /package/source/resource/qx/tool/{cli → compiler/cli}/templates/skeleton/desktop/source/class/custom/theme/Color.tmpl.js +0 -0
- /package/source/resource/qx/tool/{cli → compiler/cli}/templates/skeleton/desktop/source/class/custom/theme/Decoration.tmpl.js +0 -0
- /package/source/resource/qx/tool/{cli → compiler/cli}/templates/skeleton/desktop/source/class/custom/theme/Font.tmpl.js +0 -0
- /package/source/resource/qx/tool/{cli → compiler/cli}/templates/skeleton/desktop/source/class/custom/theme/Theme.tmpl.js +0 -0
- /package/source/resource/qx/tool/{cli → compiler/cli}/templates/skeleton/desktop/source/resource/custom/app.png +0 -0
- /package/source/resource/qx/tool/{cli → compiler/cli}/templates/skeleton/desktop/source/resource/custom/favicon.png +0 -0
- /package/source/resource/qx/tool/{cli → compiler/cli}/templates/skeleton/desktop/source/resource/custom/js_256x256.png +0 -0
- /package/source/resource/qx/tool/{cli → compiler/cli}/templates/skeleton/desktop/source/resource/custom/test.png +0 -0
- /package/source/resource/qx/tool/{cli → compiler/cli}/templates/skeleton/desktop/source/translation/readme.txt +0 -0
- /package/source/resource/qx/tool/{cli → compiler/cli}/templates/skeleton/mobile/.gitignore.tmpl +0 -0
- /package/source/resource/qx/tool/{cli → compiler/cli}/templates/skeleton/mobile/Manifest.tmpl.json +0 -0
- /package/source/resource/qx/tool/{cli → compiler/cli}/templates/skeleton/mobile/compile.tmpl.json +0 -0
- /package/source/resource/qx/tool/{cli → compiler/cli}/templates/skeleton/mobile/readme.tmpl.md +0 -0
- /package/source/resource/qx/tool/{cli → compiler/cli}/templates/skeleton/mobile/source/boot/index.tmpl.html +0 -0
- /package/source/resource/qx/tool/{cli → compiler/cli}/templates/skeleton/mobile/source/boot/nojs.tmpl.html +0 -0
- /package/source/resource/qx/tool/{cli → compiler/cli}/templates/skeleton/mobile/source/class/custom/Application.tmpl.js +0 -0
- /package/source/resource/qx/tool/{cli → compiler/cli}/templates/skeleton/mobile/source/class/custom/__init__.tmpl.js +0 -0
- /package/source/resource/qx/tool/{cli → compiler/cli}/templates/skeleton/mobile/source/class/custom/page/Login.tmpl.js +0 -0
- /package/source/resource/qx/tool/{cli → compiler/cli}/templates/skeleton/mobile/source/class/custom/page/Overview.tmpl.js +0 -0
- /package/source/resource/qx/tool/{cli → compiler/cli}/templates/skeleton/mobile/source/class/custom/page/__init__.tmpl.js +0 -0
- /package/source/resource/qx/tool/{cli → compiler/cli}/templates/skeleton/mobile/source/resource/custom/app.png +0 -0
- /package/source/resource/qx/tool/{cli → compiler/cli}/templates/skeleton/mobile/source/resource/custom/css/.gitignore.tmpl +0 -0
- /package/source/resource/qx/tool/{cli → compiler/cli}/templates/skeleton/mobile/source/resource/custom/favicon.png +0 -0
- /package/source/resource/qx/tool/{cli → compiler/cli}/templates/skeleton/mobile/source/resource/custom/js_256x256.png +0 -0
- /package/source/resource/qx/tool/{cli → compiler/cli}/templates/skeleton/mobile/source/theme/custom/scss/_styles.scss +0 -0
- /package/source/resource/qx/tool/{cli → compiler/cli}/templates/skeleton/mobile/source/theme/custom/scss/custom.scss +0 -0
- /package/source/resource/qx/tool/{cli → compiler/cli}/templates/skeleton/mobile/source/translation/readme.txt +0 -0
- /package/source/resource/qx/tool/{cli → compiler/cli}/templates/skeleton/package/.gitignore.tmpl +0 -0
- /package/source/resource/qx/tool/{cli → compiler/cli}/templates/skeleton/package/Manifest.tmpl.json +0 -0
- /package/source/resource/qx/tool/{cli → compiler/cli}/templates/skeleton/package/compile.tmpl.json +0 -0
- /package/source/resource/qx/tool/{cli → compiler/cli}/templates/skeleton/package/readme.tmpl.md +0 -0
- /package/source/resource/qx/tool/{cli → compiler/cli}/templates/skeleton/package/source/class/custom/Button.tmpl.js +0 -0
- /package/source/resource/qx/tool/{cli → compiler/cli}/templates/skeleton/package/source/class/custom/__init__.tmpl.js +0 -0
- /package/source/resource/qx/tool/{cli → compiler/cli}/templates/skeleton/package/source/class/custom/demo/Application.tmpl.js +0 -0
- /package/source/resource/qx/tool/{cli → compiler/cli}/templates/skeleton/package/source/class/custom/resource/custom/test.png +0 -0
- /package/source/resource/qx/tool/{cli → compiler/cli}/templates/skeleton/package/source/class/custom/test/DemoTest.tmpl.js +0 -0
- /package/source/resource/qx/tool/{cli → compiler/cli}/templates/skeleton/package/source/class/custom/theme/Appearance.tmpl.js +0 -0
- /package/source/resource/qx/tool/{cli → compiler/cli}/templates/skeleton/package/source/class/custom/theme/Color.tmpl.js +0 -0
- /package/source/resource/qx/tool/{cli → compiler/cli}/templates/skeleton/package/source/class/custom/theme/Decoration.tmpl.js +0 -0
- /package/source/resource/qx/tool/{cli → compiler/cli}/templates/skeleton/package/source/class/custom/theme/Font.tmpl.js +0 -0
- /package/source/resource/qx/tool/{cli → compiler/cli}/templates/skeleton/package/source/class/custom/theme/Theme.tmpl.js +0 -0
- /package/source/resource/qx/tool/{cli → compiler/cli}/templates/skeleton/package/source/resource/custom/test.png +0 -0
- /package/source/resource/qx/tool/{cli → compiler/cli}/templates/skeleton/package/source/translation/readme.txt +0 -0
- /package/source/resource/qx/tool/{cli → compiler/cli}/templates/skeleton/server/.gitignore.tmpl +0 -0
- /package/source/resource/qx/tool/{cli → compiler/cli}/templates/skeleton/server/Manifest.tmpl.json +0 -0
- /package/source/resource/qx/tool/{cli → compiler/cli}/templates/skeleton/server/compile.tmpl.json +0 -0
- /package/source/resource/qx/tool/{cli → compiler/cli}/templates/skeleton/server/readme.tmpl.txt +0 -0
- /package/source/resource/qx/tool/{cli → compiler/cli}/templates/skeleton/server/source/class/custom/Application.tmpl.js +0 -0
- /package/source/resource/qx/tool/{cli → compiler/cli}/templates/skeleton/server/source/class/custom/__init__.tmpl.js +0 -0
- /package/source/resource/qx/tool/{cli → compiler/cli}/templates/skeleton/server/source/class/custom/test/DemoTest.tmpl.js +0 -0
- /package/source/resource/qx/tool/{cli → compiler/cli}/templates/skeleton/server/source/resource/custom/.gitignore.tmpl +0 -0
- /package/source/resource/qx/tool/{cli → compiler/cli}/templates/skeleton/server/source/translation/readme.txt +0 -0
- /package/source/resource/qx/tool/{loadsass.js → compiler/loadsass.js} +0 -0
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
qx.Bootstrap.define("qx.core.property.PropertyStorageFactory", {
|
|
2
|
+
extend: Object,
|
|
3
|
+
|
|
4
|
+
statics: {
|
|
5
|
+
/** @type {Object<String,qx.core.property.IPropertyStorage} the cached instances */
|
|
6
|
+
__instances: {},
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Returns the storage instance for the given class, creating it if necessary
|
|
10
|
+
*
|
|
11
|
+
* @param {qx.Class} clazz the storage class to get
|
|
12
|
+
* @return {qx.core.property.IPropertyStorage}
|
|
13
|
+
*/
|
|
14
|
+
getStorage(clazz, ...args) {
|
|
15
|
+
let storage = this.__instances[clazz.classname];
|
|
16
|
+
if (!storage) {
|
|
17
|
+
storage = this.__instances[clazz.classname] = new clazz(...args);
|
|
18
|
+
}
|
|
19
|
+
return storage;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
});
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
/* ************************************************************************
|
|
2
|
+
|
|
3
|
+
qooxdoo - the new era of web development
|
|
4
|
+
|
|
5
|
+
http://qooxdoo.org
|
|
6
|
+
|
|
7
|
+
Copyright:
|
|
8
|
+
2023-24 Zenesis Limited (https://www.zenesis.com)
|
|
9
|
+
|
|
10
|
+
License:
|
|
11
|
+
MIT: https://opensource.org/licenses/MIT
|
|
12
|
+
See the LICENSE file in the project's top-level directory for details.
|
|
13
|
+
|
|
14
|
+
Authors:
|
|
15
|
+
* John Spackman (github.com/johnspackman)
|
|
16
|
+
|
|
17
|
+
************************************************************************ */
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Implementation of property storage for ordinary, non-async properties
|
|
21
|
+
*/
|
|
22
|
+
qx.Bootstrap.define("qx.core.property.SimplePropertyStorage", {
|
|
23
|
+
extend: Object,
|
|
24
|
+
implement: qx.core.property.IPropertyStorage,
|
|
25
|
+
|
|
26
|
+
members: {
|
|
27
|
+
/**
|
|
28
|
+
* @Override
|
|
29
|
+
*/
|
|
30
|
+
get(thisObj, property) {
|
|
31
|
+
this.__checkPropertyValues(thisObj);
|
|
32
|
+
let value = thisObj["$$propertyValues"][property.getPropertyName()]?.value;
|
|
33
|
+
return value;
|
|
34
|
+
},
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* @Override
|
|
38
|
+
*/
|
|
39
|
+
async getAsync(thisObj, property) {
|
|
40
|
+
return this.get(thisObj, property);
|
|
41
|
+
},
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* @Override
|
|
45
|
+
*/
|
|
46
|
+
set(thisObj, property, value) {
|
|
47
|
+
this.__checkPropertyValues(thisObj);
|
|
48
|
+
let data = thisObj["$$propertyValues"][property.getPropertyName()];
|
|
49
|
+
if (data == undefined) {
|
|
50
|
+
thisObj["$$propertyValues"][property.getPropertyName()] = data = {};
|
|
51
|
+
}
|
|
52
|
+
data.value = value;
|
|
53
|
+
},
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* @Override
|
|
57
|
+
*/
|
|
58
|
+
async setAsync(thisObj, property, value) {
|
|
59
|
+
return qx.Promise.resolve(value).then(value => {
|
|
60
|
+
this.set(thisObj, property, value);
|
|
61
|
+
});
|
|
62
|
+
},
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* @Override
|
|
66
|
+
*/
|
|
67
|
+
reset(thisObj, property, value) {
|
|
68
|
+
this.set(thisObj, property, value);
|
|
69
|
+
},
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* @Override
|
|
73
|
+
*/
|
|
74
|
+
dereference(thisObj, property) {
|
|
75
|
+
delete thisObj["$$propertyValues"][property.getPropertyName()];
|
|
76
|
+
},
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* @Override
|
|
80
|
+
*/
|
|
81
|
+
isAsyncStorage() {
|
|
82
|
+
return false;
|
|
83
|
+
},
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* Outputs a warning; the logging system is probably not loaded and working yet, so we
|
|
87
|
+
* have to implement our own
|
|
88
|
+
*
|
|
89
|
+
* @param {...any} args
|
|
90
|
+
*/
|
|
91
|
+
warn(...args) {
|
|
92
|
+
if (qx.core.Environment.get("qx.debug")) {
|
|
93
|
+
console.warn(...args);
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
|
|
97
|
+
__checkPropertyValues(thisObj) {
|
|
98
|
+
let $$propertyValues = thisObj["$$propertyValues"];
|
|
99
|
+
if ($$propertyValues == undefined) {
|
|
100
|
+
this.warn("No $$propertyValues on " + thisObj.classname + ": possibly missing call to super() in the constructor");
|
|
101
|
+
$$propertyValues = thisObj["$$propertyValues"] = {};
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
});
|
|
@@ -31,6 +31,49 @@ qx.Class.define("qx.data.Array", {
|
|
|
31
31
|
include: qx.data.marshal.MEventBubbling,
|
|
32
32
|
implement: [qx.data.IListData],
|
|
33
33
|
|
|
34
|
+
/**
|
|
35
|
+
* Allow a `qx.data.Array` instance to be indexed as if it were an ordinary
|
|
36
|
+
* array. Instead of using the provided API to retrieve an indexed item
|
|
37
|
+
* (`getItem()`), store a value in an indexed item (`setItem()`), or remove
|
|
38
|
+
* an indexed item (`removeAt()`), this delegate allows those operations to
|
|
39
|
+
* use normal array operators, e.g., `value = arr[2]`, `arr[2] = 42;`,
|
|
40
|
+
* `delete arr[2]`.
|
|
41
|
+
*
|
|
42
|
+
*/
|
|
43
|
+
delegate: {
|
|
44
|
+
get(property) {
|
|
45
|
+
// If the property is a number or string representing a number...
|
|
46
|
+
if (typeof property != "symbol" && +property === +property) {
|
|
47
|
+
// ... then use the method for retrieving an item
|
|
48
|
+
return this.getItem(property);
|
|
49
|
+
} else {
|
|
50
|
+
// otherwise, use the default action
|
|
51
|
+
return this[property];
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
|
|
55
|
+
set(property, value) {
|
|
56
|
+
// If the property is a number or string representing a number...
|
|
57
|
+
if (typeof property != "symbol" && +property === +property) {
|
|
58
|
+
// ... then use the method for modifying an item
|
|
59
|
+
this.setItem(property, value);
|
|
60
|
+
} else {
|
|
61
|
+
// otherwise, use the default action
|
|
62
|
+
this[property] = value;
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
|
|
66
|
+
delete(property) {
|
|
67
|
+
// If the property is a number or string representing a number...
|
|
68
|
+
if (typeof property != "symbol" && +property === +property) {
|
|
69
|
+
this.setItem(property, undefined);
|
|
70
|
+
} else {
|
|
71
|
+
// otherwise, use the default action
|
|
72
|
+
delete this[property];
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
|
|
34
77
|
/**
|
|
35
78
|
* Creates a new instance of an array.
|
|
36
79
|
*
|
|
@@ -78,11 +121,6 @@ qx.Class.define("qx.data.Array", {
|
|
|
78
121
|
|
|
79
122
|
// update the length at startup
|
|
80
123
|
this.__updateLength();
|
|
81
|
-
|
|
82
|
-
// work against the console printout of the array
|
|
83
|
-
if (qx.core.Environment.get("qx.debug")) {
|
|
84
|
-
this[0] = "Please use 'toArray()' to see the content.";
|
|
85
|
-
}
|
|
86
124
|
},
|
|
87
125
|
|
|
88
126
|
/*
|
|
@@ -129,6 +167,8 @@ qx.Class.define("qx.data.Array", {
|
|
|
129
167
|
},
|
|
130
168
|
|
|
131
169
|
members: {
|
|
170
|
+
__length: undefined,
|
|
171
|
+
|
|
132
172
|
// private members
|
|
133
173
|
__array: null,
|
|
134
174
|
|
|
@@ -195,11 +235,11 @@ qx.Class.define("qx.data.Array", {
|
|
|
195
235
|
var item = this.__array.pop();
|
|
196
236
|
this.__updateLength();
|
|
197
237
|
// remove the possible added event listener
|
|
198
|
-
this._registerEventChaining(null, item, this.
|
|
238
|
+
this._registerEventChaining(null, item, this.__length - 1);
|
|
199
239
|
// fire change bubble event
|
|
200
240
|
this.fireDataEvent("changeBubble", {
|
|
201
241
|
value: [],
|
|
202
|
-
name: this.
|
|
242
|
+
name: this.__length + "",
|
|
203
243
|
old: [item],
|
|
204
244
|
item: this
|
|
205
245
|
});
|
|
@@ -207,8 +247,8 @@ qx.Class.define("qx.data.Array", {
|
|
|
207
247
|
this.fireDataEvent(
|
|
208
248
|
"change",
|
|
209
249
|
{
|
|
210
|
-
start: this.
|
|
211
|
-
end: this.
|
|
250
|
+
start: this.__length - 1,
|
|
251
|
+
end: this.__length - 1,
|
|
212
252
|
type: "remove",
|
|
213
253
|
removed: [item],
|
|
214
254
|
added: []
|
|
@@ -233,12 +273,12 @@ qx.Class.define("qx.data.Array", {
|
|
|
233
273
|
this.__array.push(arguments[i]);
|
|
234
274
|
this.__updateLength();
|
|
235
275
|
// apply to every pushed item an event listener for the bubbling
|
|
236
|
-
this._registerEventChaining(arguments[i], null, this.
|
|
276
|
+
this._registerEventChaining(arguments[i], null, this.__length - 1);
|
|
237
277
|
|
|
238
278
|
// fire change bubbles event
|
|
239
279
|
this.fireDataEvent("changeBubble", {
|
|
240
280
|
value: [arguments[i]],
|
|
241
|
-
name: this.
|
|
281
|
+
name: this.__length - 1 + "",
|
|
242
282
|
old: [],
|
|
243
283
|
item: this
|
|
244
284
|
});
|
|
@@ -247,8 +287,8 @@ qx.Class.define("qx.data.Array", {
|
|
|
247
287
|
this.fireDataEvent(
|
|
248
288
|
"change",
|
|
249
289
|
{
|
|
250
|
-
start: this.
|
|
251
|
-
end: this.
|
|
290
|
+
start: this.__length - 1,
|
|
291
|
+
end: this.__length - 1,
|
|
252
292
|
type: "add",
|
|
253
293
|
added: [arguments[i]],
|
|
254
294
|
removed: []
|
|
@@ -257,7 +297,7 @@ qx.Class.define("qx.data.Array", {
|
|
|
257
297
|
null
|
|
258
298
|
);
|
|
259
299
|
}
|
|
260
|
-
return this.
|
|
300
|
+
return this.__length;
|
|
261
301
|
},
|
|
262
302
|
|
|
263
303
|
/**
|
|
@@ -265,20 +305,20 @@ qx.Class.define("qx.data.Array", {
|
|
|
265
305
|
*/
|
|
266
306
|
reverse() {
|
|
267
307
|
// ignore on empty arrays
|
|
268
|
-
if (this.
|
|
308
|
+
if (this.__length == 0) {
|
|
269
309
|
return;
|
|
270
310
|
}
|
|
271
311
|
|
|
272
312
|
var oldArray = this.__array.concat();
|
|
273
313
|
this.__array.reverse();
|
|
274
314
|
|
|
275
|
-
this.__updateEventPropagation(0, this.
|
|
315
|
+
this.__updateEventPropagation(0, this.__length);
|
|
276
316
|
|
|
277
317
|
this.fireDataEvent(
|
|
278
318
|
"change",
|
|
279
319
|
{
|
|
280
320
|
start: 0,
|
|
281
|
-
end: this.
|
|
321
|
+
end: this.__length - 1,
|
|
282
322
|
type: "order",
|
|
283
323
|
added: [],
|
|
284
324
|
removed: []
|
|
@@ -304,16 +344,16 @@ qx.Class.define("qx.data.Array", {
|
|
|
304
344
|
*/
|
|
305
345
|
shift() {
|
|
306
346
|
// ignore on empty arrays
|
|
307
|
-
if (this.
|
|
347
|
+
if (this.__length == 0) {
|
|
308
348
|
return;
|
|
309
349
|
}
|
|
310
350
|
|
|
311
351
|
var item = this.__array.shift();
|
|
312
352
|
this.__updateLength();
|
|
313
353
|
// remove the possible added event listener
|
|
314
|
-
this._registerEventChaining(null, item, this.
|
|
354
|
+
this._registerEventChaining(null, item, this.__length - 1);
|
|
315
355
|
// as every item has changed its position, we need to update the event bubbling
|
|
316
|
-
this.__updateEventPropagation(0, this.
|
|
356
|
+
this.__updateEventPropagation(0, this.__length);
|
|
317
357
|
|
|
318
358
|
// fire change bubbles event
|
|
319
359
|
this.fireDataEvent("changeBubble", {
|
|
@@ -328,7 +368,7 @@ qx.Class.define("qx.data.Array", {
|
|
|
328
368
|
"change",
|
|
329
369
|
{
|
|
330
370
|
start: 0,
|
|
331
|
-
end: this.
|
|
371
|
+
end: this.__length - 1,
|
|
332
372
|
type: "remove",
|
|
333
373
|
removed: [item],
|
|
334
374
|
added: []
|
|
@@ -405,11 +445,10 @@ qx.Class.define("qx.data.Array", {
|
|
|
405
445
|
end = startIndex + addedItems.length;
|
|
406
446
|
} else if (addedItems.length == 0) {
|
|
407
447
|
type = "remove";
|
|
408
|
-
end = this.
|
|
448
|
+
end = this.__length - 1;
|
|
409
449
|
} else {
|
|
410
450
|
type = "add/remove";
|
|
411
|
-
end =
|
|
412
|
-
startIndex + Math.max(addedItems.length, returnArray.length) - 1;
|
|
451
|
+
end = startIndex + Math.max(addedItems.length, returnArray.length) - 1;
|
|
413
452
|
}
|
|
414
453
|
|
|
415
454
|
this.fireDataEvent(
|
|
@@ -436,10 +475,7 @@ qx.Class.define("qx.data.Array", {
|
|
|
436
475
|
this._registerEventChaining(arguments[i], null, startIndex + (i - 2));
|
|
437
476
|
}
|
|
438
477
|
// apply event chaining for every item moved
|
|
439
|
-
this.__updateEventPropagation(
|
|
440
|
-
startIndex + (arguments.length - 2) - amount,
|
|
441
|
-
this.length
|
|
442
|
-
);
|
|
478
|
+
this.__updateEventPropagation(startIndex + (arguments.length - 2) - amount, this.__length);
|
|
443
479
|
|
|
444
480
|
// fire the changeBubble event
|
|
445
481
|
if (removed || added) {
|
|
@@ -448,8 +484,7 @@ qx.Class.define("qx.data.Array", {
|
|
|
448
484
|
value[i - 2] = arguments[i];
|
|
449
485
|
}
|
|
450
486
|
var endIndex = startIndex + Math.max(arguments.length - 3, amount - 1);
|
|
451
|
-
var name =
|
|
452
|
-
startIndex == endIndex ? endIndex : startIndex + "-" + endIndex;
|
|
487
|
+
var name = startIndex == endIndex ? endIndex : startIndex + "-" + endIndex;
|
|
453
488
|
|
|
454
489
|
var eventData = {
|
|
455
490
|
value: value,
|
|
@@ -492,7 +527,7 @@ qx.Class.define("qx.data.Array", {
|
|
|
492
527
|
*/
|
|
493
528
|
sort(func) {
|
|
494
529
|
// ignore if the array is empty
|
|
495
|
-
if (this.
|
|
530
|
+
if (this.__length == 0) {
|
|
496
531
|
return;
|
|
497
532
|
}
|
|
498
533
|
var oldArray = this.__array.concat();
|
|
@@ -504,13 +539,13 @@ qx.Class.define("qx.data.Array", {
|
|
|
504
539
|
return;
|
|
505
540
|
}
|
|
506
541
|
|
|
507
|
-
this.__updateEventPropagation(0, this.
|
|
542
|
+
this.__updateEventPropagation(0, this.__length);
|
|
508
543
|
|
|
509
544
|
this.fireDataEvent(
|
|
510
545
|
"change",
|
|
511
546
|
{
|
|
512
547
|
start: 0,
|
|
513
|
-
end: this.
|
|
548
|
+
end: this.__length - 1,
|
|
514
549
|
type: "order",
|
|
515
550
|
added: [],
|
|
516
551
|
removed: []
|
|
@@ -522,7 +557,7 @@ qx.Class.define("qx.data.Array", {
|
|
|
522
557
|
// fire change bubbles event
|
|
523
558
|
this.fireDataEvent("changeBubble", {
|
|
524
559
|
value: this.__array,
|
|
525
|
-
name: "0-" + (this.
|
|
560
|
+
name: "0-" + (this.__length - 1),
|
|
526
561
|
old: oldArray,
|
|
527
562
|
item: this
|
|
528
563
|
});
|
|
@@ -540,7 +575,7 @@ qx.Class.define("qx.data.Array", {
|
|
|
540
575
|
this.__array.unshift(arguments[i]);
|
|
541
576
|
this.__updateLength();
|
|
542
577
|
// apply to every item an event listener for the bubbling
|
|
543
|
-
this.__updateEventPropagation(0, this.
|
|
578
|
+
this.__updateEventPropagation(0, this.__length);
|
|
544
579
|
|
|
545
580
|
// fire change bubbles event
|
|
546
581
|
this.fireDataEvent("changeBubble", {
|
|
@@ -555,7 +590,7 @@ qx.Class.define("qx.data.Array", {
|
|
|
555
590
|
"change",
|
|
556
591
|
{
|
|
557
592
|
start: 0,
|
|
558
|
-
end: this.
|
|
593
|
+
end: this.__length - 1,
|
|
559
594
|
type: "add",
|
|
560
595
|
added: [arguments[i]],
|
|
561
596
|
removed: []
|
|
@@ -564,7 +599,7 @@ qx.Class.define("qx.data.Array", {
|
|
|
564
599
|
null
|
|
565
600
|
);
|
|
566
601
|
}
|
|
567
|
-
return this.
|
|
602
|
+
return this.__length;
|
|
568
603
|
},
|
|
569
604
|
|
|
570
605
|
/**
|
|
@@ -610,7 +645,7 @@ qx.Class.define("qx.data.Array", {
|
|
|
610
645
|
// set an event listener for the bubbling
|
|
611
646
|
this._registerEventChaining(item, oldItem, index);
|
|
612
647
|
// only update the length if its changed
|
|
613
|
-
if (this.
|
|
648
|
+
if (this.__length != this.__array.length) {
|
|
614
649
|
this.__updateLength();
|
|
615
650
|
}
|
|
616
651
|
|
|
@@ -644,7 +679,7 @@ qx.Class.define("qx.data.Array", {
|
|
|
644
679
|
* @return {Number} The current length of the array.
|
|
645
680
|
*/
|
|
646
681
|
getLength() {
|
|
647
|
-
return this.
|
|
682
|
+
return this.__length;
|
|
648
683
|
},
|
|
649
684
|
|
|
650
685
|
/**
|
|
@@ -751,7 +786,7 @@ qx.Class.define("qx.data.Array", {
|
|
|
751
786
|
insertAfter(after, item) {
|
|
752
787
|
var index = this.indexOf(after);
|
|
753
788
|
|
|
754
|
-
if (index == -1 || index == this.
|
|
789
|
+
if (index == -1 || index == this.__length - 1) {
|
|
755
790
|
this.push(item);
|
|
756
791
|
} else {
|
|
757
792
|
this.splice(index + 1, 0, item).dispose();
|
|
@@ -845,14 +880,11 @@ qx.Class.define("qx.data.Array", {
|
|
|
845
880
|
this._registerEventChaining(array[i], null, oldLength + i);
|
|
846
881
|
}
|
|
847
882
|
|
|
848
|
-
var oldLength = this.
|
|
883
|
+
var oldLength = this.__length;
|
|
849
884
|
this.__updateLength();
|
|
850
885
|
|
|
851
886
|
// fire change bubbles
|
|
852
|
-
var name =
|
|
853
|
-
oldLength == this.length - 1
|
|
854
|
-
? oldLength
|
|
855
|
-
: oldLength + "-" + (this.length - 1);
|
|
887
|
+
var name = oldLength == this.__length - 1 ? oldLength : oldLength + "-" + (this.__length - 1);
|
|
856
888
|
this.fireDataEvent("changeBubble", {
|
|
857
889
|
value: array,
|
|
858
890
|
name: name + "",
|
|
@@ -865,7 +897,7 @@ qx.Class.define("qx.data.Array", {
|
|
|
865
897
|
"change",
|
|
866
898
|
{
|
|
867
899
|
start: oldLength,
|
|
868
|
-
end: this.
|
|
900
|
+
end: this.__length - 1,
|
|
869
901
|
type: "add",
|
|
870
902
|
added: array,
|
|
871
903
|
removed: []
|
|
@@ -910,12 +942,12 @@ qx.Class.define("qx.data.Array", {
|
|
|
910
942
|
* @return {Boolean} Whether the two arrays are equal.
|
|
911
943
|
*/
|
|
912
944
|
equals(array) {
|
|
913
|
-
if (this.
|
|
945
|
+
if (this.__length !== array.length) {
|
|
914
946
|
return false;
|
|
915
947
|
}
|
|
916
948
|
|
|
917
949
|
array = qx.lang.Array.toNativeArray(array);
|
|
918
|
-
for (var i = 0; i < this.
|
|
950
|
+
for (var i = 0; i < this.__length; i++) {
|
|
919
951
|
if (this.getItem(i) !== array[i]) {
|
|
920
952
|
return false;
|
|
921
953
|
}
|
|
@@ -932,7 +964,7 @@ qx.Class.define("qx.data.Array", {
|
|
|
932
964
|
*/
|
|
933
965
|
sum() {
|
|
934
966
|
var result = 0;
|
|
935
|
-
for (var i = 0; i < this.
|
|
967
|
+
for (var i = 0; i < this.__length; i++) {
|
|
936
968
|
result += this.getItem(i);
|
|
937
969
|
}
|
|
938
970
|
|
|
@@ -949,7 +981,7 @@ qx.Class.define("qx.data.Array", {
|
|
|
949
981
|
max() {
|
|
950
982
|
var result = this.getItem(0);
|
|
951
983
|
|
|
952
|
-
for (var i = 1; i < this.
|
|
984
|
+
for (var i = 1; i < this.__length; i++) {
|
|
953
985
|
if (this.getItem(i) > result) {
|
|
954
986
|
result = this.getItem(i);
|
|
955
987
|
}
|
|
@@ -968,7 +1000,7 @@ qx.Class.define("qx.data.Array", {
|
|
|
968
1000
|
min() {
|
|
969
1001
|
var result = this.getItem(0);
|
|
970
1002
|
|
|
971
|
-
for (var i = 1; i < this.
|
|
1003
|
+
for (var i = 1; i < this.__length; i++) {
|
|
972
1004
|
if (this.getItem(i) < result) {
|
|
973
1005
|
result = this.getItem(i);
|
|
974
1006
|
}
|
|
@@ -986,9 +1018,22 @@ qx.Class.define("qx.data.Array", {
|
|
|
986
1018
|
* @param context {var?} The context in which the callback will be invoked.
|
|
987
1019
|
*/
|
|
988
1020
|
forEach(callback, context) {
|
|
989
|
-
this.__array.forEach((element, index) =>
|
|
990
|
-
|
|
991
|
-
|
|
1021
|
+
this.__array.forEach((element, index) => callback.call(context, element, index, this));
|
|
1022
|
+
},
|
|
1023
|
+
|
|
1024
|
+
/**
|
|
1025
|
+
* Invokes the given function for every item in the array, using await to wait for the result
|
|
1026
|
+
*
|
|
1027
|
+
* @param callback {Function} The function which will be call for every
|
|
1028
|
+
* item in the array. It will be invoked with three parameters:
|
|
1029
|
+
* the item, the index and the array itself.
|
|
1030
|
+
* @param context {var?} The context in which the callback will be invoked.
|
|
1031
|
+
*/
|
|
1032
|
+
async forEachAsync(callback, context) {
|
|
1033
|
+
for (var index = 0; index < this.__array.length; index++) {
|
|
1034
|
+
var element = this.__array[index];
|
|
1035
|
+
await callback.call(context, element, index, this);
|
|
1036
|
+
}
|
|
992
1037
|
},
|
|
993
1038
|
|
|
994
1039
|
/*
|
|
@@ -1119,9 +1164,9 @@ qx.Class.define("qx.data.Array", {
|
|
|
1119
1164
|
* event will be fired.
|
|
1120
1165
|
*/
|
|
1121
1166
|
__updateLength() {
|
|
1122
|
-
var oldLength = this.
|
|
1123
|
-
this.
|
|
1124
|
-
this.fireDataEvent("changeLength", this.
|
|
1167
|
+
var oldLength = this.__length;
|
|
1168
|
+
this.__length = this.__array.length;
|
|
1169
|
+
this.fireDataEvent("changeLength", this.__length, oldLength);
|
|
1125
1170
|
},
|
|
1126
1171
|
|
|
1127
1172
|
/**
|
|
@@ -47,13 +47,7 @@ qx.Mixin.define("qx.data.MBinding", {
|
|
|
47
47
|
* target).
|
|
48
48
|
*/
|
|
49
49
|
bind(sourcePropertyChain, targetObject, targetProperty, options) {
|
|
50
|
-
return qx.data.SingleValueBinding.bind(
|
|
51
|
-
this,
|
|
52
|
-
sourcePropertyChain,
|
|
53
|
-
targetObject,
|
|
54
|
-
targetProperty || "value",
|
|
55
|
-
options
|
|
56
|
-
);
|
|
50
|
+
return qx.data.SingleValueBinding.bind(this, sourcePropertyChain, targetObject, targetProperty || "value", options);
|
|
57
51
|
},
|
|
58
52
|
|
|
59
53
|
/**
|
|
@@ -83,30 +77,11 @@ qx.Mixin.define("qx.data.MBinding", {
|
|
|
83
77
|
*/
|
|
84
78
|
bindAsync: qx.core.Environment.select("qx.promise", {
|
|
85
79
|
true(sourcePropertyChain, targetObject, targetProperty, options) {
|
|
86
|
-
var
|
|
87
|
-
|
|
88
|
-
sourcePropertyChain,
|
|
89
|
-
targetObject,
|
|
90
|
-
targetProperty || "value",
|
|
91
|
-
options
|
|
92
|
-
);
|
|
93
|
-
|
|
94
|
-
if (id.initialPromise) {
|
|
95
|
-
return id.initialPromise.then(function () {
|
|
96
|
-
id.initialPromise = null;
|
|
97
|
-
return id;
|
|
98
|
-
});
|
|
99
|
-
} else {
|
|
100
|
-
return qx.Promise.resolve(id);
|
|
101
|
-
}
|
|
80
|
+
var binding = qx.data.SingleValueBinding.bind(this, sourcePropertyChain, targetObject, targetProperty || "value", options);
|
|
81
|
+
return binding.getInitPromise().then(() => binding);
|
|
102
82
|
},
|
|
103
83
|
false(sourcePropertyChain, targetObject, targetProperty, options) {
|
|
104
|
-
return this.bind(
|
|
105
|
-
sourcePropertyChain,
|
|
106
|
-
targetObject,
|
|
107
|
-
targetProperty,
|
|
108
|
-
options
|
|
109
|
-
);
|
|
84
|
+
return this.bind(sourcePropertyChain, targetObject, targetProperty, options);
|
|
110
85
|
}
|
|
111
86
|
}),
|
|
112
87
|
|