uicore-ts 1.0.2 → 1.0.7
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/.jshintrc +4 -0
- package/README.md +1 -1
- package/compiledScripts/ClientCheckers.d.ts +2 -0
- package/compiledScripts/ClientCheckers.js +31 -0
- package/compiledScripts/ClientCheckers.js.map +7 -0
- package/compiledScripts/UIActionIndicator.js +70 -52
- package/compiledScripts/UIActionIndicator.js.map +7 -1
- package/compiledScripts/UIBaseButton.js +262 -257
- package/compiledScripts/UIBaseButton.js.map +7 -1
- package/compiledScripts/UIButton.js +249 -231
- package/compiledScripts/UIButton.js.map +7 -1
- package/compiledScripts/UIColor.js +292 -280
- package/compiledScripts/UIColor.js.map +7 -1
- package/compiledScripts/UICore.d.ts +6 -17
- package/compiledScripts/UICore.js +114 -100
- package/compiledScripts/UICore.js.map +7 -1
- package/compiledScripts/UICoreExtensionValueObject.d.ts +5 -0
- package/compiledScripts/UICoreExtensionValueObject.js +33 -0
- package/compiledScripts/UICoreExtensionValueObject.js.map +7 -0
- package/compiledScripts/UICoreExtensions.d.ts +4 -7
- package/compiledScripts/UICoreExtensions.js +382 -499
- package/compiledScripts/UICoreExtensions.js.map +7 -1
- package/compiledScripts/UICoreValues.d.ts +11 -0
- package/compiledScripts/UICoreValues.js +35 -0
- package/compiledScripts/UICoreValues.js.map +7 -0
- package/compiledScripts/UIDateTimeInput.js +54 -33
- package/compiledScripts/UIDateTimeInput.js.map +7 -1
- package/compiledScripts/UIDialogView.d.ts +1 -0
- package/compiledScripts/UIDialogView.js +142 -109
- package/compiledScripts/UIDialogView.js.map +7 -1
- package/compiledScripts/UIImageView.js +166 -168
- package/compiledScripts/UIImageView.js.map +7 -1
- package/compiledScripts/UIInterfaces.d.ts +11 -0
- package/compiledScripts/UIInterfaces.js +16 -0
- package/compiledScripts/UIInterfaces.js.map +7 -0
- package/compiledScripts/UIKeyValueStringFilter.d.ts +1 -1
- package/compiledScripts/UIKeyValueStringFilter.js +114 -88
- package/compiledScripts/UIKeyValueStringFilter.js.map +7 -1
- package/compiledScripts/{UIKeyValueStringFilterWebWorker.d.ts → UIKeyValueStringFilterWebWorker.worker.d.ts} +0 -0
- package/compiledScripts/UIKeyValueStringFilterWebWorker.worker.js +69 -0
- package/compiledScripts/UIKeyValueStringFilterWebWorker.worker.js.map +7 -0
- package/compiledScripts/UIKeyValueStringSorter.d.ts +1 -1
- package/compiledScripts/UIKeyValueStringSorter.js +128 -102
- package/compiledScripts/UIKeyValueStringSorter.js.map +7 -1
- package/compiledScripts/{UIKeyValueStringSorterWebWorker.d.ts → UIKeyValueStringSorterWebWorker.worker.d.ts} +0 -0
- package/compiledScripts/UIKeyValueStringSorterWebWorker.worker.js +77 -0
- package/compiledScripts/UIKeyValueStringSorterWebWorker.worker.js.map +7 -0
- package/compiledScripts/UILayoutGrid.js +40 -20
- package/compiledScripts/UILayoutGrid.js.map +7 -1
- package/compiledScripts/UILink.js +97 -80
- package/compiledScripts/UILink.js.map +7 -1
- package/compiledScripts/UILinkButton.js +74 -59
- package/compiledScripts/UILinkButton.js.map +7 -1
- package/compiledScripts/UINativeScrollView.js +131 -116
- package/compiledScripts/UINativeScrollView.js.map +7 -1
- package/compiledScripts/UIObject.d.ts +3 -4
- package/compiledScripts/UIObject.js +405 -378
- package/compiledScripts/UIObject.js.map +7 -1
- package/compiledScripts/UIPoint.js +86 -67
- package/compiledScripts/UIPoint.js.map +7 -1
- package/compiledScripts/UIRectangle.js +432 -420
- package/compiledScripts/UIRectangle.js.map +7 -1
- package/compiledScripts/UIRootViewController.d.ts +38 -0
- package/compiledScripts/UIRootViewController.js +258 -0
- package/compiledScripts/UIRootViewController.js.map +7 -0
- package/compiledScripts/UIRoute.d.ts +0 -7
- package/compiledScripts/UIRoute.js +178 -198
- package/compiledScripts/UIRoute.js.map +7 -1
- package/compiledScripts/UIScrollView.js +117 -119
- package/compiledScripts/UIScrollView.js.map +7 -1
- package/compiledScripts/UISlideScrollerView.js +246 -239
- package/compiledScripts/UISlideScrollerView.js.map +7 -1
- package/compiledScripts/UIStringFilter.d.ts +1 -1
- package/compiledScripts/UIStringFilter.js +130 -96
- package/compiledScripts/UIStringFilter.js.map +7 -1
- package/compiledScripts/{UIStringFilterWebWorker.d.ts → UIStringFilterWebWorker.worker.d.ts} +0 -0
- package/compiledScripts/UIStringFilterWebWorker.worker.js +55 -0
- package/compiledScripts/UIStringFilterWebWorker.worker.js.map +7 -0
- package/compiledScripts/UITableView.js +366 -360
- package/compiledScripts/UITableView.js.map +7 -1
- package/compiledScripts/UITextArea.d.ts +1 -1
- package/compiledScripts/UITextArea.js +44 -26
- package/compiledScripts/UITextArea.js.map +7 -1
- package/compiledScripts/UITextField.js +99 -79
- package/compiledScripts/UITextField.js.map +7 -1
- package/compiledScripts/UITextView.d.ts +1 -1
- package/compiledScripts/UITextView.js +244 -232
- package/compiledScripts/UITextView.js.map +7 -1
- package/compiledScripts/UITimer.d.ts +1 -2
- package/compiledScripts/UITimer.js +61 -41
- package/compiledScripts/UITimer.js.map +7 -1
- package/compiledScripts/UIView.d.ts +29 -6
- package/compiledScripts/UIView.js +1441 -1519
- package/compiledScripts/UIView.js.map +7 -1
- package/compiledScripts/UIViewController.d.ts +7 -11
- package/compiledScripts/UIViewController.js +169 -151
- package/compiledScripts/UIViewController.js.map +7 -1
- package/compiledScripts/index.d.ts +5 -0
- package/compiledScripts/index.js +50 -45
- package/compiledScripts/index.js.map +7 -1
- package/etsc.config.mjs +23 -0
- package/package.json +12 -3
- package/rollup.config.js +49 -0
- package/scripts/ClientCheckers.ts +2 -0
- package/scripts/UIActionIndicator.ts +1 -7
- package/scripts/UIBaseButton.ts +0 -4
- package/scripts/UIButton.ts +0 -4
- package/scripts/UIColor.ts +0 -5
- package/scripts/UICore.ts +49 -94
- package/scripts/UICoreExtensionValueObject.ts +12 -0
- package/scripts/UICoreExtensions.ts +76 -44
- package/scripts/UIDateTimeInput.ts +0 -8
- package/scripts/UIDialogView.ts +6 -5
- package/scripts/UIImageView.ts +0 -2
- package/scripts/UIInterfaces.ts +25 -0
- package/scripts/UIKeyValueStringFilter.ts +5 -7
- package/scripts/{UIKeyValueStringFilterWebWorker.ts → UIKeyValueStringFilterWebWorker.worker.ts} +45 -45
- package/scripts/UIKeyValueStringSorter.ts +5 -7
- package/scripts/{UIKeyValueStringSorterWebWorker.ts → UIKeyValueStringSorterWebWorker.worker.ts} +42 -54
- package/scripts/UILayoutGrid.ts +0 -3
- package/scripts/UILink.ts +0 -11
- package/scripts/UILinkButton.ts +0 -7
- package/scripts/UINativeScrollView.ts +0 -4
- package/scripts/UIObject.ts +19 -99
- package/scripts/UIPoint.ts +0 -3
- package/scripts/UIRectangle.ts +0 -4
- package/scripts/UIRootViewController.ts +320 -0
- package/scripts/UIRoute.ts +3 -77
- package/scripts/UIScrollView.ts +0 -5
- package/scripts/UISlideScrollerView.ts +0 -4
- package/scripts/UIStringFilter.ts +43 -43
- package/scripts/{UIStringFilterWebWorker.ts → UIStringFilterWebWorker.worker.ts} +36 -41
- package/scripts/UITableView.ts +0 -3
- package/scripts/UITextArea.ts +4 -8
- package/scripts/UITextField.ts +12 -19
- package/scripts/UITextView.ts +9 -13
- package/scripts/UITimer.ts +3 -9
- package/scripts/UIView.ts +87 -50
- package/scripts/UIViewController.ts +45 -87
- package/scripts/index.ts +6 -0
- package/tsconfig.json +20 -10
- package/compiledScripts/UIKeyValueStringFilterWebWorker.js +0 -76
- package/compiledScripts/UIKeyValueStringFilterWebWorker.js.map +0 -1
- package/compiledScripts/UIKeyValueStringSorterWebWorker.js +0 -81
- package/compiledScripts/UIKeyValueStringSorterWebWorker.js.map +0 -1
- package/compiledScripts/UIStringFilterWebWorker.js +0 -67
- package/compiledScripts/UIStringFilterWebWorker.js.map +0 -1
package/.jshintrc
ADDED
package/README.md
CHANGED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
var ClientCheckers_exports = {};
|
|
19
|
+
__export(ClientCheckers_exports, {
|
|
20
|
+
IS_FIREFOX: () => IS_FIREFOX,
|
|
21
|
+
IS_SAFARI: () => IS_SAFARI
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(ClientCheckers_exports);
|
|
24
|
+
const IS_FIREFOX = navigator.userAgent.toLowerCase().indexOf("firefox") > -1;
|
|
25
|
+
const IS_SAFARI = /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
|
|
26
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
27
|
+
0 && (module.exports = {
|
|
28
|
+
IS_FIREFOX,
|
|
29
|
+
IS_SAFARI
|
|
30
|
+
});
|
|
31
|
+
//# sourceMappingURL=ClientCheckers.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../scripts/ClientCheckers.ts"],
|
|
4
|
+
"sourcesContent": ["export const IS_FIREFOX = navigator.userAgent.toLowerCase().indexOf(\"firefox\") > -1\nexport const IS_SAFARI = /^((?!chrome|android).)*safari/i.test(navigator.userAgent)\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,MAAM,aAAa,UAAU,UAAU,YAAY,EAAE,QAAQ,SAAS,IAAI;AAC1E,MAAM,YAAY,iCAAiC,KAAK,UAAU,SAAS;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -1,54 +1,72 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
this.indicatorView.style.maxWidth = "" + minSize.integerValue + "px";
|
|
48
|
-
const size = Math.min(this._size, minSize);
|
|
49
|
-
this.indicatorView.style.left = "" + ((bounds.width - size) * 0.5 - 11).integerValue + "px";
|
|
50
|
-
this.indicatorView.style.top = "" + ((bounds.height - size) * 0.5 - 11).integerValue + "px";
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
var UIActionIndicator_exports = {};
|
|
19
|
+
__export(UIActionIndicator_exports, {
|
|
20
|
+
UIActionIndicator: () => UIActionIndicator
|
|
21
|
+
});
|
|
22
|
+
module.exports = __toCommonJS(UIActionIndicator_exports);
|
|
23
|
+
var import_UIObject = require("./UIObject");
|
|
24
|
+
var import_UIView = require("./UIView");
|
|
25
|
+
class UIActionIndicator extends import_UIView.UIView {
|
|
26
|
+
constructor(elementID) {
|
|
27
|
+
super(elementID);
|
|
28
|
+
this._size = 50;
|
|
29
|
+
this.indicatorView = new import_UIView.UIView(this.elementID + "IndicatorView");
|
|
30
|
+
this.indicatorView.viewHTMLElement.classList.add("LukeHaasLoader");
|
|
31
|
+
this.addSubview(this.indicatorView);
|
|
32
|
+
this.hidden = import_UIObject.YES;
|
|
33
|
+
}
|
|
34
|
+
set size(size) {
|
|
35
|
+
this._size = size;
|
|
36
|
+
this.setNeedsLayoutUpToRootView();
|
|
37
|
+
}
|
|
38
|
+
get size() {
|
|
39
|
+
return this._size;
|
|
40
|
+
}
|
|
41
|
+
set hidden(hidden) {
|
|
42
|
+
super.hidden = hidden;
|
|
43
|
+
if (hidden) {
|
|
44
|
+
this.indicatorView.removeFromSuperview();
|
|
45
|
+
} else {
|
|
46
|
+
this.addSubview(this.indicatorView);
|
|
51
47
|
}
|
|
48
|
+
}
|
|
49
|
+
start() {
|
|
50
|
+
this.hidden = import_UIObject.NO;
|
|
51
|
+
}
|
|
52
|
+
stop() {
|
|
53
|
+
this.hidden = import_UIObject.YES;
|
|
54
|
+
}
|
|
55
|
+
layoutSubviews() {
|
|
56
|
+
super.layoutSubviews();
|
|
57
|
+
const bounds = this.bounds;
|
|
58
|
+
this.indicatorView.style.height = "" + this._size.integerValue + "px";
|
|
59
|
+
this.indicatorView.style.width = "" + this._size.integerValue + "px";
|
|
60
|
+
const minSize = Math.min(this.bounds.height, this.bounds.width);
|
|
61
|
+
this.indicatorView.style.maxHeight = "" + minSize.integerValue + "px";
|
|
62
|
+
this.indicatorView.style.maxWidth = "" + minSize.integerValue + "px";
|
|
63
|
+
const size = Math.min(this._size, minSize);
|
|
64
|
+
this.indicatorView.style.left = "" + ((bounds.width - size) * 0.5 - 11).integerValue + "px";
|
|
65
|
+
this.indicatorView.style.top = "" + ((bounds.height - size) * 0.5 - 11).integerValue + "px";
|
|
66
|
+
}
|
|
52
67
|
}
|
|
53
|
-
|
|
54
|
-
|
|
68
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
69
|
+
0 && (module.exports = {
|
|
70
|
+
UIActionIndicator
|
|
71
|
+
});
|
|
72
|
+
//# sourceMappingURL=UIActionIndicator.js.map
|
|
@@ -1 +1,7 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../scripts/UIActionIndicator.ts"],
|
|
4
|
+
"sourcesContent": ["import { NO, YES } from \"./UIObject\"\nimport { UIView } from \"./UIView\"\n\n\nexport class UIActionIndicator extends UIView {\n \n \n indicatorView: UIView\n \n _size: number = 50\n \n constructor(elementID?: string) {\n \n super(elementID)\n \n this.indicatorView = new UIView(this.elementID + \"IndicatorView\")\n this.indicatorView.viewHTMLElement.classList.add(\"LukeHaasLoader\")\n this.addSubview(this.indicatorView)\n \n this.hidden = YES\n \n }\n \n \n \n \n \n set size(size: number) {\n \n this._size = size\n \n this.setNeedsLayoutUpToRootView()\n \n }\n \n get size() {\n \n return this._size\n \n }\n \n \n \n set hidden(hidden: boolean) {\n \n super.hidden = hidden\n \n if (hidden) {\n \n this.indicatorView.removeFromSuperview()\n \n }\n else {\n \n this.addSubview(this.indicatorView)\n \n }\n \n }\n \n start() {\n \n this.hidden = NO\n \n }\n \n stop() {\n \n this.hidden = YES\n \n }\n \n \n \n layoutSubviews() {\n \n super.layoutSubviews()\n \n const bounds = this.bounds\n \n //this.indicatorView.centerInContainer();\n \n this.indicatorView.style.height = \"\" + this._size.integerValue + \"px\"\n this.indicatorView.style.width = \"\" + this._size.integerValue + \"px\"\n \n const minSize = Math.min(this.bounds.height, this.bounds.width)\n \n this.indicatorView.style.maxHeight = \"\" + minSize.integerValue + \"px\"\n this.indicatorView.style.maxWidth = \"\" + minSize.integerValue + \"px\"\n \n const size = Math.min(this._size, minSize)\n \n this.indicatorView.style.left = \"\" + ((bounds.width - size) * 0.5 - 11).integerValue + \"px\"\n this.indicatorView.style.top = \"\" + ((bounds.height - size) * 0.5 - 11).integerValue + \"px\"\n \n \n \n \n }\n \n \n \n \n \n}\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAAwB;AACxB,oBAAuB;AAGhB,MAAM,0BAA0B,qBAAO;AAAA,EAO1C,YAAY,WAAoB;AAE5B,UAAM,SAAS;AAJnB,iBAAgB;AAMZ,SAAK,gBAAgB,IAAI,qBAAO,KAAK,YAAY,eAAe;AAChE,SAAK,cAAc,gBAAgB,UAAU,IAAI,gBAAgB;AACjE,SAAK,WAAW,KAAK,aAAa;AAElC,SAAK,SAAS;AAAA,EAElB;AAAA,EAMA,IAAI,KAAK,MAAc;AAEnB,SAAK,QAAQ;AAEb,SAAK,2BAA2B;AAAA,EAEpC;AAAA,EAEA,IAAI,OAAO;AAEP,WAAO,KAAK;AAAA,EAEhB;AAAA,EAIA,IAAI,OAAO,QAAiB;AAExB,UAAM,SAAS;AAEf,QAAI,QAAQ;AAER,WAAK,cAAc,oBAAoB;AAAA,IAE3C,OACK;AAED,WAAK,WAAW,KAAK,aAAa;AAAA,IAEtC;AAAA,EAEJ;AAAA,EAEA,QAAQ;AAEJ,SAAK,SAAS;AAAA,EAElB;AAAA,EAEA,OAAO;AAEH,SAAK,SAAS;AAAA,EAElB;AAAA,EAIA,iBAAiB;AAEb,UAAM,eAAe;AAErB,UAAM,SAAS,KAAK;AAIpB,SAAK,cAAc,MAAM,SAAS,KAAK,KAAK,MAAM,eAAe;AACjE,SAAK,cAAc,MAAM,QAAQ,KAAK,KAAK,MAAM,eAAe;AAEhE,UAAM,UAAU,KAAK,IAAI,KAAK,OAAO,QAAQ,KAAK,OAAO,KAAK;AAE9D,SAAK,cAAc,MAAM,YAAY,KAAK,QAAQ,eAAe;AACjE,SAAK,cAAc,MAAM,WAAW,KAAK,QAAQ,eAAe;AAEhE,UAAM,OAAO,KAAK,IAAI,KAAK,OAAO,OAAO;AAEzC,SAAK,cAAc,MAAM,OAAO,OAAO,OAAO,QAAQ,QAAQ,MAAM,IAAI,eAAe;AACvF,SAAK,cAAc,MAAM,MAAM,OAAO,OAAO,SAAS,QAAQ,MAAM,IAAI,eAAe;AAAA,EAK3F;AAMJ;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|