alloy 2.0.2 → 3.0.0
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/.eslintignore +0 -1
- package/.eslintrc.js +2 -1
- package/.github/dependabot.yml +4 -0
- package/.github/workflows/build.yml +12 -9
- package/.github/workflows/cla.yaml +1 -1
- package/.github/workflows/publish.yml +44 -5
- package/Alloy/builtins/moment/lang/af.js +52 -42
- package/Alloy/builtins/moment/lang/ar-dz.js +151 -42
- package/Alloy/builtins/moment/lang/ar-kw.js +42 -34
- package/Alloy/builtins/moment/lang/ar-ly.js +142 -81
- package/Alloy/builtins/moment/lang/ar-ma.js +43 -34
- package/Alloy/builtins/moment/lang/ar-ps.js +123 -0
- package/Alloy/builtins/moment/lang/ar-sa.js +77 -64
- package/Alloy/builtins/moment/lang/ar-tn.js +17 -9
- package/Alloy/builtins/moment/lang/ar.js +161 -95
- package/Alloy/builtins/moment/lang/az.js +54 -45
- package/Alloy/builtins/moment/lang/be.js +73 -51
- package/Alloy/builtins/moment/lang/bg.js +50 -41
- package/Alloy/builtins/moment/lang/bm.js +43 -38
- package/Alloy/builtins/moment/lang/bn-bd.js +140 -0
- package/Alloy/builtins/moment/lang/bn.js +78 -66
- package/Alloy/builtins/moment/lang/bo.js +83 -66
- package/Alloy/builtins/moment/lang/br.js +119 -47
- package/Alloy/builtins/moment/lang/bs.js +64 -43
- package/Alloy/builtins/moment/lang/ca.js +80 -56
- package/Alloy/builtins/moment/lang/cs.js +89 -68
- package/Alloy/builtins/moment/lang/cv.js +47 -35
- package/Alloy/builtins/moment/lang/cy.js +44 -14
- package/Alloy/builtins/moment/lang/da.js +44 -39
- package/Alloy/builtins/moment/lang/de-at.js +57 -42
- package/Alloy/builtins/moment/lang/de-ch.js +54 -42
- package/Alloy/builtins/moment/lang/de.js +56 -42
- package/Alloy/builtins/moment/lang/dv.js +65 -62
- package/Alloy/builtins/moment/lang/el.js +67 -49
- package/Alloy/builtins/moment/lang/en-au.js +56 -43
- package/Alloy/builtins/moment/lang/en-ca.js +53 -40
- package/Alloy/builtins/moment/lang/en-gb.js +56 -43
- package/Alloy/builtins/moment/lang/en-ie.js +56 -43
- package/Alloy/builtins/moment/lang/en-il.js +53 -39
- package/Alloy/builtins/moment/lang/en-in.js +79 -0
- package/Alloy/builtins/moment/lang/en-nz.js +56 -43
- package/Alloy/builtins/moment/lang/en-sg.js +79 -0
- package/Alloy/builtins/moment/lang/eo.js +49 -40
- package/Alloy/builtins/moment/lang/es-do.js +81 -53
- package/Alloy/builtins/moment/lang/es-mx.js +121 -0
- package/Alloy/builtins/moment/lang/es-us.js +83 -53
- package/Alloy/builtins/moment/lang/es.js +88 -58
- package/Alloy/builtins/moment/lang/et.js +60 -50
- package/Alloy/builtins/moment/lang/eu.js +56 -45
- package/Alloy/builtins/moment/lang/fa.js +88 -69
- package/Alloy/builtins/moment/lang/fi.js +75 -48
- package/Alloy/builtins/moment/lang/fil.js +69 -0
- package/Alloy/builtins/moment/lang/fo.js +48 -39
- package/Alloy/builtins/moment/lang/fr-ca.js +46 -38
- package/Alloy/builtins/moment/lang/fr-ch.js +49 -41
- package/Alloy/builtins/moment/lang/fr.js +78 -41
- package/Alloy/builtins/moment/lang/fy.js +51 -39
- package/Alloy/builtins/moment/lang/ga.js +48 -18
- package/Alloy/builtins/moment/lang/gd.js +82 -51
- package/Alloy/builtins/moment/lang/gl.js +56 -46
- package/Alloy/builtins/moment/lang/gom-deva.js +137 -0
- package/Alloy/builtins/moment/lang/gom-latn.js +71 -58
- package/Alloy/builtins/moment/lang/gu.js +30 -20
- package/Alloy/builtins/moment/lang/he.js +52 -43
- package/Alloy/builtins/moment/lang/hi.js +120 -64
- package/Alloy/builtins/moment/lang/hr.js +57 -43
- package/Alloy/builtins/moment/lang/hu.js +64 -44
- package/Alloy/builtins/moment/lang/hy-am.js +47 -36
- package/Alloy/builtins/moment/lang/id.js +46 -40
- package/Alloy/builtins/moment/lang/is.js +63 -43
- package/Alloy/builtins/moment/lang/it-ch.js +42 -35
- package/Alloy/builtins/moment/lang/it.js +91 -42
- package/Alloy/builtins/moment/lang/ja.js +113 -45
- package/Alloy/builtins/moment/lang/jv.js +46 -40
- package/Alloy/builtins/moment/lang/ka.js +66 -51
- package/Alloy/builtins/moment/lang/kk.js +47 -40
- package/Alloy/builtins/moment/lang/km.js +37 -32
- package/Alloy/builtins/moment/lang/kn.js +74 -64
- package/Alloy/builtins/moment/lang/ko.js +50 -44
- package/Alloy/builtins/moment/lang/ku-kmr.js +125 -0
- package/Alloy/builtins/moment/lang/ku.js +94 -83
- package/Alloy/builtins/moment/lang/ky.js +49 -40
- package/Alloy/builtins/moment/lang/lb.js +43 -30
- package/Alloy/builtins/moment/lang/lo.js +46 -38
- package/Alloy/builtins/moment/lang/lt.js +82 -63
- package/Alloy/builtins/moment/lang/lv.js +60 -51
- package/Alloy/builtins/moment/lang/me.js +53 -36
- package/Alloy/builtins/moment/lang/mi.js +17 -9
- package/Alloy/builtins/moment/lang/mk.js +47 -39
- package/Alloy/builtins/moment/lang/ml.js +54 -41
- package/Alloy/builtins/moment/lang/mn.js +48 -40
- package/Alloy/builtins/moment/lang/mr.js +143 -88
- package/Alloy/builtins/moment/lang/ms-my.js +45 -39
- package/Alloy/builtins/moment/lang/ms.js +44 -39
- package/Alloy/builtins/moment/lang/mt.js +47 -39
- package/Alloy/builtins/moment/lang/my.js +40 -30
- package/Alloy/builtins/moment/lang/nb.js +46 -36
- package/Alloy/builtins/moment/lang/ne.js +75 -65
- package/Alloy/builtins/moment/lang/nl-be.js +73 -46
- package/Alloy/builtins/moment/lang/nl.js +75 -46
- package/Alloy/builtins/moment/lang/nn.js +45 -34
- package/Alloy/builtins/moment/lang/oc-lnc.js +96 -0
- package/Alloy/builtins/moment/lang/pa-in.js +73 -63
- package/Alloy/builtins/moment/lang/pl.js +69 -43
- package/Alloy/builtins/moment/lang/pt-br.js +43 -34
- package/Alloy/builtins/moment/lang/pt.js +48 -38
- package/Alloy/builtins/moment/lang/ro.js +52 -39
- package/Alloy/builtins/moment/lang/ru.js +104 -61
- package/Alloy/builtins/moment/lang/sd.js +57 -62
- package/Alloy/builtins/moment/lang/se.js +42 -33
- package/Alloy/builtins/moment/lang/si.js +50 -40
- package/Alloy/builtins/moment/lang/sk.js +54 -53
- package/Alloy/builtins/moment/lang/sl.js +51 -41
- package/Alloy/builtins/moment/lang/sq.js +50 -41
- package/Alloy/builtins/moment/lang/sr-cyrl.js +71 -43
- package/Alloy/builtins/moment/lang/sr.js +74 -44
- package/Alloy/builtins/moment/lang/ss.js +50 -42
- package/Alloy/builtins/moment/lang/sv.js +52 -41
- package/Alloy/builtins/moment/lang/sw.js +47 -39
- package/Alloy/builtins/moment/lang/ta.js +78 -64
- package/Alloy/builtins/moment/lang/te.js +54 -43
- package/Alloy/builtins/moment/lang/tet.js +51 -38
- package/Alloy/builtins/moment/lang/tg.js +51 -38
- package/Alloy/builtins/moment/lang/th.js +47 -37
- package/Alloy/builtins/moment/lang/tk.js +102 -0
- package/Alloy/builtins/moment/lang/tl-ph.js +41 -34
- package/Alloy/builtins/moment/lang/tlh.js +69 -55
- package/Alloy/builtins/moment/lang/tr.js +83 -59
- package/Alloy/builtins/moment/lang/tzl.js +67 -57
- package/Alloy/builtins/moment/lang/tzm-latn.js +41 -33
- package/Alloy/builtins/moment/lang/tzm.js +40 -32
- package/Alloy/builtins/moment/lang/ug-cn.js +13 -9
- package/Alloy/builtins/moment/lang/uk.js +82 -57
- package/Alloy/builtins/moment/lang/ur.js +58 -62
- package/Alloy/builtins/moment/lang/uz-latn.js +46 -38
- package/Alloy/builtins/moment/lang/uz.js +43 -38
- package/Alloy/builtins/moment/lang/vi.js +56 -43
- package/Alloy/builtins/moment/lang/x-pseudo.js +61 -44
- package/Alloy/builtins/moment/lang/yo.js +45 -40
- package/Alloy/builtins/moment/lang/zh-cn.js +68 -46
- package/Alloy/builtins/moment/lang/zh-hk.js +61 -51
- package/Alloy/builtins/moment/lang/zh-mo.js +111 -0
- package/Alloy/builtins/moment/lang/zh-tw.js +57 -49
- package/Alloy/builtins/moment.js +2587 -1501
- package/Alloy/commands/compile/ast/controller.js +6 -2
- package/Alloy/commands/compile/compilerUtils.js +6 -8
- package/Alloy/commands/compile/parsers/Alloy.Abstract.FixedSpace.js +2 -11
- package/Alloy/commands/compile/parsers/Alloy.Abstract.FlexSpace.js +2 -11
- package/Alloy/commands/compile/parsers/Alloy.Abstract.Option.js +2 -2
- package/Alloy/commands/compile/parsers/Alloy.Abstract._ItemContainer.js +9 -2
- package/Alloy/commands/compile/parsers/Ti.UI.Android.CollapseToolbar.ContentView.js +13 -0
- package/Alloy/commands/compile/parsers/Ti.UI.Android.CollapseToolbar._ProxyProperty.js +13 -0
- package/Alloy/commands/compile/parsers/Ti.UI.Android.CollapseToolbar.js +35 -0
- package/Alloy/commands/compile/parsers/Ti.UI.Android.DrawerLayout._ProxyProperty.js +0 -1
- package/Alloy/commands/compile/parsers/Ti.UI.AttributedString.js +0 -5
- package/Alloy/commands/compile/parsers/Ti.UI.Button.js +2 -11
- package/Alloy/commands/compile/parsers/Ti.UI.NavigationWindow.js +0 -15
- package/Alloy/commands/compile/parsers/Ti.UI.OptionBar.js +0 -5
- package/Alloy/commands/compile/parsers/Ti.UI.PickerColumn.js +1 -1
- package/Alloy/commands/compile/parsers/Ti.UI.TabbedBar.js +0 -9
- package/Alloy/commands/compile/parsers/Ti.UI.Toolbar.js +0 -6
- package/Alloy/commands/generate/targets/widget.js +1 -1
- package/Alloy/commands/info/index.js +2 -2
- package/Alloy/common/constants.js +5 -3
- package/Alloy/lib/alloy/backbone/1.6.0/backbone.js +2155 -0
- package/Alloy/lib/alloy/underscore.js +1722 -1372
- package/Alloy/template/README +3 -9
- package/Alloy/template/app.tss +5 -12
- package/Alloy/template/controller.js +1 -1
- package/Alloy/template/gitignore.txt +3 -0
- package/Alloy/template/lib/alloy.js +0 -17
- package/Alloy/template/style.tss +0 -3
- package/Alloy/template/view.xml +4 -3
- package/Alloy/template/widget/style.tss +1 -2
- package/Alloy/tiapp.js +1 -11
- package/Alloy/utils.js +1 -1
- package/CHANGELOG.md +16 -0
- package/README.md +16 -0
- package/package.json +23 -46
- package/samples/lib/testUtils.js +1 -1
- package/test/lib/testUtils.js +1 -1
- package/test/projects/HarnessTemplate/tiapp.xml +1 -15
- package/test/specs/compile.js +3 -2
- package/test/specs/compilefile.js +3 -3
- package/test/specs/new.js +1 -1
- package/test/specs/optimizer.js +10 -13
- package/Alloy/commands/compile/parsers/Ti.UI.iPhone.NavigationGroup.js +0 -58
- package/dangerfile.js +0 -20
- package/samples/apps/advanced/complex_styling/themes/mobileweb/styles/app.tss +0 -11
- package/samples/apps/advanced/complex_styling/themes/mobileweb/styles/requiredlabel.tss +0 -4
- package/samples/apps/advanced/complex_styling/views/mobileweb/label.xml +0 -3
- package/samples/apps/advanced/device_query/_generated/mobileweb/alloy/controllers/index.js +0 -60
- package/samples/apps/advanced/dynamic_styling/views/mobileweb/features/autoStyle.xml +0 -54
- package/samples/apps/advanced/form_factor/_generated/mobileweb/alloy/controllers/index.js +0 -121
- package/samples/apps/advanced/inheritance/_generated/mobileweb/alloy/controllers/animatedDialog.js +0 -44
- package/samples/apps/advanced/inheritance/_generated/mobileweb/alloy/controllers/baseDialog.js +0 -88
- package/samples/apps/advanced/inheritance/_generated/mobileweb/alloy/controllers/index.js +0 -59
- package/samples/apps/advanced/master_detail/_generated/mobileweb/alloy/controllers/detail.js +0 -102
- package/samples/apps/advanced/master_detail/_generated/mobileweb/alloy/controllers/index.js +0 -35
- package/samples/apps/advanced/master_detail/_generated/mobileweb/alloy/controllers/master.js +0 -53
- package/samples/apps/advanced/master_detail/_generated/mobileweb/alloy/controllers/row.js +0 -67
- package/samples/apps/advanced/native_modules/_generated/mobileweb/alloy/controllers/index.js +0 -37
- package/samples/apps/advanced/platform_folders/_generated/mobileweb/alloy/controllers/index.js +0 -60
- package/samples/apps/advanced/proxy_property_requires/_generated/mobileweb/alloy/controllers/index.js +0 -207
- package/samples/apps/advanced/proxy_property_requires/_generated/mobileweb/alloy/controllers/proxy.js +0 -51
- package/samples/apps/advanced/proxy_property_requires/_generated/mobileweb/alloy/controllers/window.js +0 -49
- package/samples/apps/advanced/proxy_property_requires/_generated/mobileweb/alloy/widgets/com.foo.widget/controllers/row.js +0 -46
- package/samples/apps/advanced/proxy_property_requires/_generated/mobileweb/alloy/widgets/com.foo.widget/controllers/row_bind.js +0 -46
- package/samples/apps/advanced/proxy_property_requires/_generated/mobileweb/alloy/widgets/com.foo.widget/controllers/section.js +0 -59
- package/samples/apps/advanced/proxy_property_requires/_generated/mobileweb/alloy/widgets/com.foo.widget/styles/row.js +0 -14
- package/samples/apps/advanced/proxy_property_requires/_generated/mobileweb/alloy/widgets/com.foo.widget/styles/row_bind.js +0 -14
- package/samples/apps/advanced/proxy_property_requires/_generated/mobileweb/alloy/widgets/com.foo.widget/styles/section.js +0 -14
- package/samples/apps/advanced/themes/_generated/mobileweb/alloy/controllers/dialog.js +0 -112
- package/samples/apps/advanced/themes/_generated/mobileweb/alloy/controllers/index.js +0 -118
- package/samples/apps/basics/builtins/_generated/mobileweb/alloy/controllers/index.js +0 -102
- package/samples/apps/basics/config_json/_generated/mobileweb/alloy/controllers/index.js +0 -49
- package/samples/apps/basics/controller_events/_generated/mobileweb/alloy/controllers/CustomView.js +0 -60
- package/samples/apps/basics/controller_events/_generated/mobileweb/alloy/controllers/index.js +0 -57
- package/samples/apps/basics/global_style/_generated/mobileweb/alloy/controllers/index.js +0 -40
- package/samples/apps/basics/global_style/_generated/mobileweb/alloy/controllers/item.js +0 -45
- package/samples/apps/basics/markup_events/_generated/mobileweb/alloy/controllers/index.js +0 -49
- package/samples/apps/basics/markup_require/_generated/mobileweb/alloy/controllers/bottom.js +0 -42
- package/samples/apps/basics/markup_require/_generated/mobileweb/alloy/controllers/index.js +0 -49
- package/samples/apps/basics/markup_require/_generated/mobileweb/alloy/controllers/middle.js +0 -45
- package/samples/apps/basics/markup_require/_generated/mobileweb/alloy/controllers/theRest.js +0 -41
- package/samples/apps/basics/simple/_generated/mobileweb/alloy/controllers/index.js +0 -49
- package/samples/apps/models/journal/views/mobileweb/index.xml +0 -19
- package/samples/apps/widgets/complex/widgets/com.appcelerator.loading/assets/mobileweb/images/00.png +0 -0
- package/samples/apps/widgets/complex/widgets/com.appcelerator.loading/assets/mobileweb/images/01.png +0 -0
- package/samples/apps/widgets/complex/widgets/com.appcelerator.loading/assets/mobileweb/images/02.png +0 -0
- package/samples/apps/widgets/complex/widgets/com.appcelerator.loading/assets/mobileweb/images/03.png +0 -0
- package/samples/apps/widgets/complex/widgets/com.appcelerator.loading/assets/mobileweb/images/04.png +0 -0
- package/samples/apps/widgets/complex/widgets/com.appcelerator.loading/assets/mobileweb/images/05.png +0 -0
- package/samples/apps/widgets/complex/widgets/com.appcelerator.loading/assets/mobileweb/images/06.png +0 -0
- package/samples/apps/widgets/complex/widgets/com.appcelerator.loading/assets/mobileweb/images/07.png +0 -0
- package/samples/apps/widgets/complex/widgets/com.appcelerator.loading/assets/mobileweb/images/08.png +0 -0
- package/samples/apps/widgets/complex/widgets/com.appcelerator.loading/assets/mobileweb/images/09.png +0 -0
- package/samples/apps/widgets/complex/widgets/com.appcelerator.loading/assets/mobileweb/images/10.png +0 -0
- package/samples/apps/widgets/complex/widgets/com.appcelerator.loading/assets/mobileweb/images/11.png +0 -0
- package/samples/apps/widgets/complex/widgets/com.appcelerator.loading/assets/mobileweb/images/spinner.png +0 -0
package/samples/apps/advanced/platform_folders/_generated/mobileweb/alloy/controllers/index.js
DELETED
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
function __processArg(obj, key) {
|
|
2
|
-
var arg = null;
|
|
3
|
-
if (obj) {
|
|
4
|
-
arg = obj[key] || null;
|
|
5
|
-
delete obj[key];
|
|
6
|
-
}
|
|
7
|
-
return arg;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
function Controller() {
|
|
11
|
-
require("/alloy/controllers/BaseController").apply(this, Array.prototype.slice.call(arguments));
|
|
12
|
-
this.__controllerPath = "index";
|
|
13
|
-
this.args = arguments[0] || {};
|
|
14
|
-
if (arguments[0]) {
|
|
15
|
-
__processArg(arguments[0], "__parentSymbol");
|
|
16
|
-
__processArg(arguments[0], "$model");
|
|
17
|
-
__processArg(arguments[0], "__itemTemplate");
|
|
18
|
-
}
|
|
19
|
-
var $ = this;
|
|
20
|
-
var exports = {};
|
|
21
|
-
$.__views.index = Ti.UI.createWindow({
|
|
22
|
-
backgroundColor: "#000",
|
|
23
|
-
id: "index"
|
|
24
|
-
});
|
|
25
|
-
$.__views.index && $.addTopLevelView($.__views.index);
|
|
26
|
-
$.__views.scroll = Ti.UI.createScrollView({
|
|
27
|
-
id: "scroll",
|
|
28
|
-
layout: "vertical"
|
|
29
|
-
});
|
|
30
|
-
$.__views.index.add($.__views.scroll);
|
|
31
|
-
$.__views.__alloyId0 = Ti.UI.createImageView({
|
|
32
|
-
image: "/appc1.png",
|
|
33
|
-
id: "__alloyId0"
|
|
34
|
-
});
|
|
35
|
-
$.__views.scroll.add($.__views.__alloyId0);
|
|
36
|
-
$.__views.__alloyId1 = Ti.UI.createImageView({
|
|
37
|
-
image: "/appc2.png",
|
|
38
|
-
id: "__alloyId1"
|
|
39
|
-
});
|
|
40
|
-
$.__views.scroll.add($.__views.__alloyId1);
|
|
41
|
-
$.__views.__alloyId2 = Ti.UI.createImageView({
|
|
42
|
-
image: "/appc3.png",
|
|
43
|
-
id: "__alloyId2"
|
|
44
|
-
});
|
|
45
|
-
$.__views.scroll.add($.__views.__alloyId2);
|
|
46
|
-
$.__views.__alloyId3 = Ti.UI.createImageView({
|
|
47
|
-
image: "/appc4.png",
|
|
48
|
-
id: "__alloyId3"
|
|
49
|
-
});
|
|
50
|
-
$.__views.scroll.add($.__views.__alloyId3);
|
|
51
|
-
exports.destroy = function() {};
|
|
52
|
-
_.extend($, $.__views);
|
|
53
|
-
$.index.open();
|
|
54
|
-
require("specs/index")($);
|
|
55
|
-
_.extend($, exports);
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
var Alloy = require("/alloy"), Backbone = Alloy.Backbone, _ = Alloy._;
|
|
59
|
-
|
|
60
|
-
module.exports = Controller;
|
|
@@ -1,207 +0,0 @@
|
|
|
1
|
-
function __processArg(obj, key) {
|
|
2
|
-
var arg = null;
|
|
3
|
-
if (obj) {
|
|
4
|
-
arg = obj[key] || null;
|
|
5
|
-
delete obj[key];
|
|
6
|
-
}
|
|
7
|
-
return arg;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
function Controller() {
|
|
11
|
-
function __alloyId23(e) {
|
|
12
|
-
if (e && e.fromAdapter) return;
|
|
13
|
-
__alloyId23.opts || {};
|
|
14
|
-
var models = __alloyId22.models;
|
|
15
|
-
var len = models.length;
|
|
16
|
-
var rows = [];
|
|
17
|
-
for (var i = 0; len > i; i++) {
|
|
18
|
-
var __alloyId19 = models[i];
|
|
19
|
-
__alloyId19.__transform = _.isFunction(__alloyId19.transform) ? __alloyId19.transform() : __alloyId19.toJSON();
|
|
20
|
-
var __alloyId21 = Alloy.createWidget("com.foo.widget", "row_bind", {
|
|
21
|
-
$model: __alloyId19
|
|
22
|
-
});
|
|
23
|
-
rows.push(__alloyId21.getViewEx({
|
|
24
|
-
recurse: true
|
|
25
|
-
}));
|
|
26
|
-
}
|
|
27
|
-
$.__views.bindingTable.setData(rows);
|
|
28
|
-
}
|
|
29
|
-
require("/alloy/controllers/BaseController").apply(this, Array.prototype.slice.call(arguments));
|
|
30
|
-
this.__controllerPath = "index";
|
|
31
|
-
this.args = arguments[0] || {};
|
|
32
|
-
if (arguments[0]) {
|
|
33
|
-
__processArg(arguments[0], "__parentSymbol");
|
|
34
|
-
__processArg(arguments[0], "$model");
|
|
35
|
-
__processArg(arguments[0], "__itemTemplate");
|
|
36
|
-
}
|
|
37
|
-
var $ = this;
|
|
38
|
-
var exports = {};
|
|
39
|
-
var __alloyId5 = [];
|
|
40
|
-
$.__views.staticWindow = Ti.UI.createWindow({
|
|
41
|
-
backgroundColor: "#fff",
|
|
42
|
-
id: "staticWindow",
|
|
43
|
-
title: "static"
|
|
44
|
-
});
|
|
45
|
-
var __alloyId6 = [];
|
|
46
|
-
$.__views.staticRow1 = Ti.UI.createTableViewRow({
|
|
47
|
-
height: "50dp",
|
|
48
|
-
id: "staticRow1",
|
|
49
|
-
title: "one"
|
|
50
|
-
});
|
|
51
|
-
__alloyId6.push($.__views.staticRow1);
|
|
52
|
-
$.__views.staticRow2 = Ti.UI.createTableViewRow({
|
|
53
|
-
height: "50dp",
|
|
54
|
-
id: "staticRow2",
|
|
55
|
-
title: "two"
|
|
56
|
-
});
|
|
57
|
-
__alloyId6.push($.__views.staticRow2);
|
|
58
|
-
$.__views.staticWidgetSection = Alloy.createWidget("com.foo.widget", "section", {
|
|
59
|
-
id: "staticWidgetSection"
|
|
60
|
-
});
|
|
61
|
-
__alloyId6.push($.__views.staticWidgetSection.getViewEx({
|
|
62
|
-
recurse: true
|
|
63
|
-
}));
|
|
64
|
-
$.__views.staticWidgetRow1 = Alloy.createWidget("com.foo.widget", "row", {
|
|
65
|
-
id: "staticWidgetRow1"
|
|
66
|
-
});
|
|
67
|
-
__alloyId6.push($.__views.staticWidgetRow1.getViewEx({
|
|
68
|
-
recurse: true
|
|
69
|
-
}));
|
|
70
|
-
$.__views.staticWidgetRow2 = Alloy.createWidget("com.foo.widget", "row", {
|
|
71
|
-
id: "staticWidgetRow2"
|
|
72
|
-
});
|
|
73
|
-
__alloyId6.push($.__views.staticWidgetRow2.getViewEx({
|
|
74
|
-
recurse: true
|
|
75
|
-
}));
|
|
76
|
-
$.__views.staticWidgetRow3 = Alloy.createWidget("com.foo.widget", "row", {
|
|
77
|
-
id: "staticWidgetRow3"
|
|
78
|
-
});
|
|
79
|
-
__alloyId6.push($.__views.staticWidgetRow3.getViewEx({
|
|
80
|
-
recurse: true
|
|
81
|
-
}));
|
|
82
|
-
$.__views.staticRow3 = Ti.UI.createTableViewRow({
|
|
83
|
-
height: "50dp",
|
|
84
|
-
id: "staticRow3",
|
|
85
|
-
title: "three"
|
|
86
|
-
});
|
|
87
|
-
__alloyId6.push($.__views.staticRow3);
|
|
88
|
-
$.__views.staticTable = Ti.UI.createTableView({
|
|
89
|
-
data: __alloyId6,
|
|
90
|
-
id: "staticTable"
|
|
91
|
-
});
|
|
92
|
-
$.__views.staticWindow.add($.__views.staticTable);
|
|
93
|
-
$.__views.staticTab = Ti.UI.createTab({
|
|
94
|
-
window: $.__views.staticWindow,
|
|
95
|
-
id: "staticTab",
|
|
96
|
-
title: "static"
|
|
97
|
-
});
|
|
98
|
-
__alloyId5.push($.__views.staticTab);
|
|
99
|
-
$.__views.bindingWindow = Ti.UI.createWindow({
|
|
100
|
-
backgroundColor: "#fff",
|
|
101
|
-
id: "bindingWindow",
|
|
102
|
-
title: "binding"
|
|
103
|
-
});
|
|
104
|
-
$.__views.bindingTable = Ti.UI.createTableView({
|
|
105
|
-
id: "bindingTable"
|
|
106
|
-
});
|
|
107
|
-
$.__views.bindingWindow.add($.__views.bindingTable);
|
|
108
|
-
var __alloyId22 = Alloy.Collections["dummy"] || dummy;
|
|
109
|
-
__alloyId22.on("fetch destroy change add remove reset", __alloyId23);
|
|
110
|
-
$.__views.bindingTab = Ti.UI.createTab({
|
|
111
|
-
window: $.__views.bindingWindow,
|
|
112
|
-
id: "bindingTab",
|
|
113
|
-
title: "binding"
|
|
114
|
-
});
|
|
115
|
-
__alloyId5.push($.__views.bindingTab);
|
|
116
|
-
$.__views.proxiesWindow = Ti.UI.createWindow({
|
|
117
|
-
backgroundColor: "#fff",
|
|
118
|
-
id: "proxiesWindow",
|
|
119
|
-
title: "proxy properties"
|
|
120
|
-
});
|
|
121
|
-
$.__views.__alloyId30 = Alloy.createController("proxy", {
|
|
122
|
-
id: "__alloyId30"
|
|
123
|
-
});
|
|
124
|
-
var __alloyId31 = [];
|
|
125
|
-
$.__views.__alloyId32 = Ti.UI.createTableViewRow({
|
|
126
|
-
height: "50dp",
|
|
127
|
-
title: "stuff",
|
|
128
|
-
id: "__alloyId32"
|
|
129
|
-
});
|
|
130
|
-
__alloyId31.push($.__views.__alloyId32);
|
|
131
|
-
$.__views.__alloyId33 = Ti.UI.createTableViewRow({
|
|
132
|
-
height: "50dp",
|
|
133
|
-
title: "stuff",
|
|
134
|
-
id: "__alloyId33"
|
|
135
|
-
});
|
|
136
|
-
__alloyId31.push($.__views.__alloyId33);
|
|
137
|
-
$.__views.__alloyId34 = Ti.UI.createTableViewRow({
|
|
138
|
-
height: "50dp",
|
|
139
|
-
title: "stuff",
|
|
140
|
-
id: "__alloyId34"
|
|
141
|
-
});
|
|
142
|
-
__alloyId31.push($.__views.__alloyId34);
|
|
143
|
-
$.__views.__alloyId35 = Ti.UI.createTableViewRow({
|
|
144
|
-
height: "50dp",
|
|
145
|
-
title: "stuff",
|
|
146
|
-
id: "__alloyId35"
|
|
147
|
-
});
|
|
148
|
-
__alloyId31.push($.__views.__alloyId35);
|
|
149
|
-
$.__views.proxiesTable = Ti.UI.createTableView({
|
|
150
|
-
data: __alloyId31,
|
|
151
|
-
headerPullView: $.__views.__alloyId30.getProxyPropertyEx("headerPullView", {
|
|
152
|
-
recurse: true
|
|
153
|
-
}),
|
|
154
|
-
headerView: $.__views.__alloyId30.getProxyPropertyEx("headerView", {
|
|
155
|
-
recurse: true
|
|
156
|
-
}),
|
|
157
|
-
footerView: $.__views.__alloyId30.getProxyPropertyEx("footerView", {
|
|
158
|
-
recurse: true
|
|
159
|
-
}),
|
|
160
|
-
id: "proxiesTable"
|
|
161
|
-
});
|
|
162
|
-
$.__views.proxiesWindow.add($.__views.proxiesTable);
|
|
163
|
-
$.__views.proxiesTab = Ti.UI.createTab({
|
|
164
|
-
window: $.__views.proxiesWindow,
|
|
165
|
-
id: "proxiesTab",
|
|
166
|
-
title: "proxies"
|
|
167
|
-
});
|
|
168
|
-
__alloyId5.push($.__views.proxiesTab);
|
|
169
|
-
$.__views.windowWindow = Ti.UI.createWindow({
|
|
170
|
-
backgroundColor: "#fff",
|
|
171
|
-
id: "windowWindow",
|
|
172
|
-
title: "window"
|
|
173
|
-
});
|
|
174
|
-
$.__views.__alloyId36 = Alloy.createController("window", {
|
|
175
|
-
id: "__alloyId36",
|
|
176
|
-
__parentSymbol: $.__views.windowWindow
|
|
177
|
-
});
|
|
178
|
-
$.__views.__alloyId36.setParent($.__views.windowWindow);
|
|
179
|
-
$.__views.__alloyId37 = Ti.UI.createLabel({
|
|
180
|
-
text: "This is a window",
|
|
181
|
-
id: "__alloyId37"
|
|
182
|
-
});
|
|
183
|
-
$.__views.windowWindow.add($.__views.__alloyId37);
|
|
184
|
-
$.__views.windowTab = Ti.UI.createTab({
|
|
185
|
-
window: $.__views.windowWindow,
|
|
186
|
-
id: "windowTab",
|
|
187
|
-
title: "window"
|
|
188
|
-
});
|
|
189
|
-
__alloyId5.push($.__views.windowTab);
|
|
190
|
-
$.__views.index = Ti.UI.createTabGroup({
|
|
191
|
-
tabs: __alloyId5,
|
|
192
|
-
id: "index"
|
|
193
|
-
});
|
|
194
|
-
$.__views.index && $.addTopLevelView($.__views.index);
|
|
195
|
-
exports.destroy = function() {
|
|
196
|
-
__alloyId22 && __alloyId22.off("fetch destroy change add remove reset", __alloyId23);
|
|
197
|
-
};
|
|
198
|
-
_.extend($, $.__views);
|
|
199
|
-
$.index.open();
|
|
200
|
-
Alloy.Collections.dummy.trigger("change");
|
|
201
|
-
require("specs/index")($);
|
|
202
|
-
_.extend($, exports);
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
var Alloy = require("/alloy"), Backbone = Alloy.Backbone, _ = Alloy._;
|
|
206
|
-
|
|
207
|
-
module.exports = Controller;
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
function __processArg(obj, key) {
|
|
2
|
-
var arg = null;
|
|
3
|
-
if (obj) {
|
|
4
|
-
arg = obj[key] || null;
|
|
5
|
-
delete obj[key];
|
|
6
|
-
}
|
|
7
|
-
return arg;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
function Controller() {
|
|
11
|
-
require("/alloy/controllers/BaseController").apply(this, Array.prototype.slice.call(arguments));
|
|
12
|
-
this.__controllerPath = "proxy";
|
|
13
|
-
this.args = arguments[0] || {};
|
|
14
|
-
if (arguments[0]) {
|
|
15
|
-
__processArg(arguments[0], "__parentSymbol");
|
|
16
|
-
__processArg(arguments[0], "$model");
|
|
17
|
-
__processArg(arguments[0], "__itemTemplate");
|
|
18
|
-
}
|
|
19
|
-
var $ = this;
|
|
20
|
-
var exports = {};
|
|
21
|
-
$.__views.headerView = Ti.UI.createView({
|
|
22
|
-
id: "headerView",
|
|
23
|
-
height: "60dp",
|
|
24
|
-
backgroundColor: "#0f0"
|
|
25
|
-
});
|
|
26
|
-
$.__views.headerText = Ti.UI.createLabel({
|
|
27
|
-
text: "I'm an ugly headerView",
|
|
28
|
-
id: "headerText"
|
|
29
|
-
});
|
|
30
|
-
$.__views.headerView.add($.__views.headerText);
|
|
31
|
-
$.__views.headerView && $.addProxyProperty("headerView", $.__views.headerView);
|
|
32
|
-
$.__views.footerView = Ti.UI.createView({
|
|
33
|
-
id: "footerView",
|
|
34
|
-
height: "60dp",
|
|
35
|
-
backgroundColor: "#0f0"
|
|
36
|
-
});
|
|
37
|
-
$.__views.footerText = Ti.UI.createLabel({
|
|
38
|
-
text: "I'm an equally ugly footerView",
|
|
39
|
-
id: "footerText"
|
|
40
|
-
});
|
|
41
|
-
$.__views.footerView.add($.__views.footerText);
|
|
42
|
-
$.__views.footerView && $.addProxyProperty("footerView", $.__views.footerView);
|
|
43
|
-
exports.destroy = function() {};
|
|
44
|
-
_.extend($, $.__views);
|
|
45
|
-
require("specs/proxy")($);
|
|
46
|
-
_.extend($, exports);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
var Alloy = require("/alloy"), Backbone = Alloy.Backbone, _ = Alloy._;
|
|
50
|
-
|
|
51
|
-
module.exports = Controller;
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
function __processArg(obj, key) {
|
|
2
|
-
var arg = null;
|
|
3
|
-
if (obj) {
|
|
4
|
-
arg = obj[key] || null;
|
|
5
|
-
delete obj[key];
|
|
6
|
-
}
|
|
7
|
-
return arg;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
function Controller() {
|
|
11
|
-
function showAlert(e) {
|
|
12
|
-
alert(e.source.title);
|
|
13
|
-
}
|
|
14
|
-
require("/alloy/controllers/BaseController").apply(this, Array.prototype.slice.call(arguments));
|
|
15
|
-
this.__controllerPath = "window";
|
|
16
|
-
this.args = arguments[0] || {};
|
|
17
|
-
if (arguments[0]) {
|
|
18
|
-
var __parentSymbol = __processArg(arguments[0], "__parentSymbol");
|
|
19
|
-
__processArg(arguments[0], "$model");
|
|
20
|
-
__processArg(arguments[0], "__itemTemplate");
|
|
21
|
-
}
|
|
22
|
-
var $ = this;
|
|
23
|
-
var exports = {};
|
|
24
|
-
var __defers = {};
|
|
25
|
-
$.__views.leftButton = Ti.UI.createButton({
|
|
26
|
-
id: "leftButton",
|
|
27
|
-
title: "left"
|
|
28
|
-
});
|
|
29
|
-
showAlert ? $.addListener($.__views.leftButton, "click", showAlert) : __defers["$.__views.leftButton!click!showAlert"] = true;
|
|
30
|
-
__parentSymbol.leftNavButton = $.__views.leftButton;
|
|
31
|
-
$.__views.window && $.addTopLevelView($.__views.window);
|
|
32
|
-
$.__views.rightButton = Ti.UI.createButton({
|
|
33
|
-
id: "rightButton",
|
|
34
|
-
title: "right"
|
|
35
|
-
});
|
|
36
|
-
showAlert ? $.addListener($.__views.rightButton, "click", showAlert) : __defers["$.__views.rightButton!click!showAlert"] = true;
|
|
37
|
-
__parentSymbol.rightNavButton = $.__views.rightButton;
|
|
38
|
-
$.__views.window && $.addTopLevelView($.__views.window);
|
|
39
|
-
exports.destroy = function() {};
|
|
40
|
-
_.extend($, $.__views);
|
|
41
|
-
require("specs/window")($);
|
|
42
|
-
__defers["$.__views.leftButton!click!showAlert"] && $.addListener($.__views.leftButton, "click", showAlert);
|
|
43
|
-
__defers["$.__views.rightButton!click!showAlert"] && $.addListener($.__views.rightButton, "click", showAlert);
|
|
44
|
-
_.extend($, exports);
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
var Alloy = require("/alloy"), Backbone = Alloy.Backbone, _ = Alloy._;
|
|
48
|
-
|
|
49
|
-
module.exports = Controller;
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
function WPATH(s) {
|
|
2
|
-
var index = s.lastIndexOf("/");
|
|
3
|
-
var path = -1 === index ? "com.foo.widget/" + s : s.substring(0, index) + "/com.foo.widget/" + s.substring(index + 1);
|
|
4
|
-
return path;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
function __processArg(obj, key) {
|
|
8
|
-
var arg = null;
|
|
9
|
-
if (obj) {
|
|
10
|
-
arg = obj[key] || null;
|
|
11
|
-
delete obj[key];
|
|
12
|
-
}
|
|
13
|
-
return arg;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
function Controller() {
|
|
17
|
-
new (require("/alloy/widget"))("com.foo.widget");
|
|
18
|
-
this.__widgetId = "com.foo.widget";
|
|
19
|
-
require("/alloy/controllers/BaseController").apply(this, Array.prototype.slice.call(arguments));
|
|
20
|
-
this.__controllerPath = "row";
|
|
21
|
-
this.args = arguments[0] || {};
|
|
22
|
-
if (arguments[0]) {
|
|
23
|
-
__processArg(arguments[0], "__parentSymbol");
|
|
24
|
-
__processArg(arguments[0], "$model");
|
|
25
|
-
__processArg(arguments[0], "__itemTemplate");
|
|
26
|
-
}
|
|
27
|
-
var $ = this;
|
|
28
|
-
var exports = {};
|
|
29
|
-
$.__views.row = Ti.UI.createTableViewRow({
|
|
30
|
-
height: "50dp",
|
|
31
|
-
id: "row"
|
|
32
|
-
});
|
|
33
|
-
$.__views.row && $.addTopLevelView($.__views.row);
|
|
34
|
-
$.__views.__alloyId0 = Ti.UI.createLabel({
|
|
35
|
-
text: "Hey, I'm a default row!",
|
|
36
|
-
id: "__alloyId0"
|
|
37
|
-
});
|
|
38
|
-
$.__views.row.add($.__views.__alloyId0);
|
|
39
|
-
exports.destroy = function() {};
|
|
40
|
-
_.extend($, $.__views);
|
|
41
|
-
_.extend($, exports);
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
var Alloy = require("/alloy"), Backbone = Alloy.Backbone, _ = Alloy._;
|
|
45
|
-
|
|
46
|
-
module.exports = Controller;
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
function WPATH(s) {
|
|
2
|
-
var index = s.lastIndexOf("/");
|
|
3
|
-
var path = -1 === index ? "com.foo.widget/" + s : s.substring(0, index) + "/com.foo.widget/" + s.substring(index + 1);
|
|
4
|
-
return path;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
function __processArg(obj, key) {
|
|
8
|
-
var arg = null;
|
|
9
|
-
if (obj) {
|
|
10
|
-
arg = obj[key] || null;
|
|
11
|
-
delete obj[key];
|
|
12
|
-
}
|
|
13
|
-
return arg;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
function Controller() {
|
|
17
|
-
new (require("/alloy/widget"))("com.foo.widget");
|
|
18
|
-
this.__widgetId = "com.foo.widget";
|
|
19
|
-
require("/alloy/controllers/BaseController").apply(this, Array.prototype.slice.call(arguments));
|
|
20
|
-
this.__controllerPath = "row_bind";
|
|
21
|
-
this.args = arguments[0] || {};
|
|
22
|
-
if (arguments[0]) {
|
|
23
|
-
__processArg(arguments[0], "__parentSymbol");
|
|
24
|
-
var $model = __processArg(arguments[0], "$model");
|
|
25
|
-
__processArg(arguments[0], "__itemTemplate");
|
|
26
|
-
}
|
|
27
|
-
var $ = this;
|
|
28
|
-
var exports = {};
|
|
29
|
-
$.__views.row_bind = Ti.UI.createTableViewRow({
|
|
30
|
-
height: "50dp",
|
|
31
|
-
id: "row_bind"
|
|
32
|
-
});
|
|
33
|
-
$.__views.row_bind && $.addTopLevelView($.__views.row_bind);
|
|
34
|
-
$.__views.__alloyId1 = Ti.UI.createLabel({
|
|
35
|
-
text: $model.__transform.title,
|
|
36
|
-
id: "__alloyId1"
|
|
37
|
-
});
|
|
38
|
-
$.__views.row_bind.add($.__views.__alloyId1);
|
|
39
|
-
exports.destroy = function() {};
|
|
40
|
-
_.extend($, $.__views);
|
|
41
|
-
_.extend($, exports);
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
var Alloy = require("/alloy"), Backbone = Alloy.Backbone, _ = Alloy._;
|
|
45
|
-
|
|
46
|
-
module.exports = Controller;
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
function WPATH(s) {
|
|
2
|
-
var index = s.lastIndexOf("/");
|
|
3
|
-
var path = -1 === index ? "com.foo.widget/" + s : s.substring(0, index) + "/com.foo.widget/" + s.substring(index + 1);
|
|
4
|
-
return path;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
function __processArg(obj, key) {
|
|
8
|
-
var arg = null;
|
|
9
|
-
if (obj) {
|
|
10
|
-
arg = obj[key] || null;
|
|
11
|
-
delete obj[key];
|
|
12
|
-
}
|
|
13
|
-
return arg;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
function Controller() {
|
|
17
|
-
new (require("/alloy/widget"))("com.foo.widget");
|
|
18
|
-
this.__widgetId = "com.foo.widget";
|
|
19
|
-
require("/alloy/controllers/BaseController").apply(this, Array.prototype.slice.call(arguments));
|
|
20
|
-
this.__controllerPath = "section";
|
|
21
|
-
this.args = arguments[0] || {};
|
|
22
|
-
if (arguments[0]) {
|
|
23
|
-
__processArg(arguments[0], "__parentSymbol");
|
|
24
|
-
__processArg(arguments[0], "$model");
|
|
25
|
-
__processArg(arguments[0], "__itemTemplate");
|
|
26
|
-
}
|
|
27
|
-
var $ = this;
|
|
28
|
-
var exports = {};
|
|
29
|
-
$.__views.section = Ti.UI.createTableViewSection({
|
|
30
|
-
headerTitle: "Test",
|
|
31
|
-
id: "section"
|
|
32
|
-
});
|
|
33
|
-
$.__views.__alloyId2 = Ti.UI.createTableViewRow({
|
|
34
|
-
height: "50dp",
|
|
35
|
-
title: "table row",
|
|
36
|
-
id: "__alloyId2"
|
|
37
|
-
});
|
|
38
|
-
$.__views.section.add($.__views.__alloyId2);
|
|
39
|
-
$.__views.__alloyId3 = Ti.UI.createTableViewRow({
|
|
40
|
-
height: "50dp",
|
|
41
|
-
title: "table row",
|
|
42
|
-
id: "__alloyId3"
|
|
43
|
-
});
|
|
44
|
-
$.__views.section.add($.__views.__alloyId3);
|
|
45
|
-
$.__views.__alloyId4 = Ti.UI.createTableViewRow({
|
|
46
|
-
height: "50dp",
|
|
47
|
-
title: "table row",
|
|
48
|
-
id: "__alloyId4"
|
|
49
|
-
});
|
|
50
|
-
$.__views.section.add($.__views.__alloyId4);
|
|
51
|
-
$.__views.section && $.addTopLevelView($.__views.section);
|
|
52
|
-
exports.destroy = function() {};
|
|
53
|
-
_.extend($, $.__views);
|
|
54
|
-
_.extend($, exports);
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
var Alloy = require("/alloy"), Backbone = Alloy.Backbone, _ = Alloy._;
|
|
58
|
-
|
|
59
|
-
module.exports = Controller;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
function WPATH(s) {
|
|
2
|
-
var index = s.lastIndexOf("/");
|
|
3
|
-
var path = -1 === index ? "com.foo.widget/" + s : s.substring(0, index) + "/com.foo.widget/" + s.substring(index + 1);
|
|
4
|
-
return path;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
module.exports = [ {
|
|
8
|
-
isApi: true,
|
|
9
|
-
priority: 1000.0001,
|
|
10
|
-
key: "TableViewRow",
|
|
11
|
-
style: {
|
|
12
|
-
height: "50dp"
|
|
13
|
-
}
|
|
14
|
-
} ];
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
function WPATH(s) {
|
|
2
|
-
var index = s.lastIndexOf("/");
|
|
3
|
-
var path = -1 === index ? "com.foo.widget/" + s : s.substring(0, index) + "/com.foo.widget/" + s.substring(index + 1);
|
|
4
|
-
return path;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
module.exports = [ {
|
|
8
|
-
isApi: true,
|
|
9
|
-
priority: 1000.0001,
|
|
10
|
-
key: "TableViewRow",
|
|
11
|
-
style: {
|
|
12
|
-
height: "50dp"
|
|
13
|
-
}
|
|
14
|
-
} ];
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
function WPATH(s) {
|
|
2
|
-
var index = s.lastIndexOf("/");
|
|
3
|
-
var path = -1 === index ? "com.foo.widget/" + s : s.substring(0, index) + "/com.foo.widget/" + s.substring(index + 1);
|
|
4
|
-
return path;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
module.exports = [ {
|
|
8
|
-
isApi: true,
|
|
9
|
-
priority: 1000.0001,
|
|
10
|
-
key: "TableViewRow",
|
|
11
|
-
style: {
|
|
12
|
-
height: "50dp"
|
|
13
|
-
}
|
|
14
|
-
} ];
|
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
function __processArg(obj, key) {
|
|
2
|
-
var arg = null;
|
|
3
|
-
if (obj) {
|
|
4
|
-
arg = obj[key] || null;
|
|
5
|
-
delete obj[key];
|
|
6
|
-
}
|
|
7
|
-
return arg;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
function Controller() {
|
|
11
|
-
function handleAnimation(e) {
|
|
12
|
-
anim.removeEventListener("complete", handleAnimation);
|
|
13
|
-
$.button.title = "You made it!";
|
|
14
|
-
}
|
|
15
|
-
function closeDialog(e) {
|
|
16
|
-
anim.removeEventListener("complete", handleAnimation);
|
|
17
|
-
$.progressFront.animate();
|
|
18
|
-
$.dialog.close();
|
|
19
|
-
}
|
|
20
|
-
require("/alloy/controllers/BaseController").apply(this, Array.prototype.slice.call(arguments));
|
|
21
|
-
this.__controllerPath = "dialog";
|
|
22
|
-
this.args = arguments[0] || {};
|
|
23
|
-
if (arguments[0]) {
|
|
24
|
-
__processArg(arguments[0], "__parentSymbol");
|
|
25
|
-
__processArg(arguments[0], "$model");
|
|
26
|
-
__processArg(arguments[0], "__itemTemplate");
|
|
27
|
-
}
|
|
28
|
-
var $ = this;
|
|
29
|
-
var exports = {};
|
|
30
|
-
var __defers = {};
|
|
31
|
-
$.__views.dialog = Ti.UI.createWindow({
|
|
32
|
-
backgroundColor: "transparent",
|
|
33
|
-
id: "dialog"
|
|
34
|
-
});
|
|
35
|
-
$.__views.dialog && $.addTopLevelView($.__views.dialog);
|
|
36
|
-
$.__views.cover = Ti.UI.createView({
|
|
37
|
-
backgroundColor: "#000",
|
|
38
|
-
opacity: .65,
|
|
39
|
-
id: "cover"
|
|
40
|
-
});
|
|
41
|
-
$.__views.dialog.add($.__views.cover);
|
|
42
|
-
$.__views.mainView = Ti.UI.createView({
|
|
43
|
-
height: 155,
|
|
44
|
-
width: "85%",
|
|
45
|
-
borderWidth: 2,
|
|
46
|
-
borderRadius: 8,
|
|
47
|
-
backgroundColor: "#fff",
|
|
48
|
-
backgroundImage: "/bg_gray.png",
|
|
49
|
-
borderColor: "#1e99fd",
|
|
50
|
-
id: "mainView",
|
|
51
|
-
layout: "vertical"
|
|
52
|
-
});
|
|
53
|
-
$.__views.dialog.add($.__views.mainView);
|
|
54
|
-
$.__views.patienceLabel = Ti.UI.createLabel({
|
|
55
|
-
color: "#fff",
|
|
56
|
-
top: 10,
|
|
57
|
-
text: "Testing your patience...",
|
|
58
|
-
id: "patienceLabel"
|
|
59
|
-
});
|
|
60
|
-
$.__views.mainView.add($.__views.patienceLabel);
|
|
61
|
-
$.__views.progressBack = Ti.UI.createView({
|
|
62
|
-
width: 200,
|
|
63
|
-
height: 30,
|
|
64
|
-
top: 15,
|
|
65
|
-
backgroundColor: "#333",
|
|
66
|
-
id: "progressBack"
|
|
67
|
-
});
|
|
68
|
-
$.__views.mainView.add($.__views.progressBack);
|
|
69
|
-
$.__views.progressFront = Ti.UI.createView({
|
|
70
|
-
width: 50,
|
|
71
|
-
left: 1,
|
|
72
|
-
top: 1,
|
|
73
|
-
height: 28,
|
|
74
|
-
backgroundColor: "#00f",
|
|
75
|
-
backgroundImage: "/title_blue.png",
|
|
76
|
-
id: "progressFront"
|
|
77
|
-
});
|
|
78
|
-
$.__views.progressBack.add($.__views.progressFront);
|
|
79
|
-
$.__views.button = Ti.UI.createButton({
|
|
80
|
-
color: "#fff",
|
|
81
|
-
backgroundImage: "/button_blue.png",
|
|
82
|
-
top: 15,
|
|
83
|
-
height: 50,
|
|
84
|
-
width: 120,
|
|
85
|
-
title: "I quit!",
|
|
86
|
-
id: "button"
|
|
87
|
-
});
|
|
88
|
-
$.__views.mainView.add($.__views.button);
|
|
89
|
-
closeDialog ? $.addListener($.__views.button, "click", closeDialog) : __defers["$.__views.button!click!closeDialog"] = true;
|
|
90
|
-
exports.destroy = function() {};
|
|
91
|
-
_.extend($, $.__views);
|
|
92
|
-
var anim;
|
|
93
|
-
exports.show = function(duration) {
|
|
94
|
-
$.button.title = "I quit!";
|
|
95
|
-
$.progressFront.width = 20;
|
|
96
|
-
$.dialog.open();
|
|
97
|
-
anim = Ti.UI.createAnimation({
|
|
98
|
-
duration: duration,
|
|
99
|
-
width: 198,
|
|
100
|
-
height: 28
|
|
101
|
-
});
|
|
102
|
-
anim.addEventListener("complete", handleAnimation);
|
|
103
|
-
$.progressFront.animate(anim);
|
|
104
|
-
require("specs/dialog")($);
|
|
105
|
-
};
|
|
106
|
-
__defers["$.__views.button!click!closeDialog"] && $.addListener($.__views.button, "click", closeDialog);
|
|
107
|
-
_.extend($, exports);
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
var Alloy = require("/alloy"), Backbone = Alloy.Backbone, _ = Alloy._;
|
|
111
|
-
|
|
112
|
-
module.exports = Controller;
|