@nstudio/nativescript-loading-indicator 3.0.4 → 4.1.2

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/index.d.ts CHANGED
@@ -1,103 +1,104 @@
1
1
  export class LoadingIndicator {
2
- show(options?: OptionsCommon): any;
3
- hide(targetView?: any, attemptTimeout?: number): void;
4
- }
5
-
6
- export interface OptionsCommon {
7
- /**
8
- * Message in the loading indicator.
9
- */
10
- message?: string;
11
-
12
- /**
13
- * Details message in the loading indicator.
14
- */
15
- details?: string;
16
-
17
- /**
18
- * Color of the message text.
19
- */
20
- color?: string;
21
-
22
- /**
23
- * Background color of the loading indicator.
24
- */
25
- backgroundColor?: string;
26
-
27
- /**
28
- * Progress of the indicator when not using CustomView or Text Mode.
29
- */
30
- progress?: number;
31
-
32
- /**
33
- * Margin for the message/indicator to the edge of the bezel.
34
- */
35
- margin?: number;
36
-
37
- /**
38
- * Set true to allow user interaction.
39
- */
40
- userInteractionEnabled?: boolean;
41
-
42
- /**
43
- * Dim the background behind the indicator.
44
- */
45
- dimBackground?: boolean;
46
-
47
- /**
48
- * Hide bezel around indicator
49
- */
50
- hideBezel?: boolean;
51
-
52
- /**
53
- * The mode of the loading indicator.
54
- */
55
- mode?: Mode;
56
-
57
- /**
58
- * If `mode` is set to CustomView, then you can pass an image or view to show in the loading indicator.
59
- */
60
- customView?: any;
61
-
62
- /**
63
- * iOS specific configuration options.
64
- */
65
- ios?: OptionsIOS;
66
-
67
- /**
68
- * Android specific configuration options.
69
- */
70
- android?: OptionsAndroid;
71
- }
72
-
73
- export interface OptionsIOS {
74
- /**
75
- * Native View instance to anchor the loading indicator to.
76
- */
77
- view?: UIView;
78
- square?: boolean;
79
- }
80
-
81
- export interface OptionsAndroid {
82
- /**
83
- * Native View instance to anchor the loading indicator to.
84
- */
85
- view?: android.view.View;
86
- max?: number;
87
- progressNumberFormat?: string;
88
- progressPercentFormat?: number;
89
- progressStyle?: number;
90
- secondaryProgress?: number;
91
- cancelable?: boolean;
92
- cancelListener?: (dialog: any) => void;
93
- elevation?: number;
94
- }
95
-
96
- export enum Mode {
97
- Indeterminate = 0,
98
- Determinate = 1,
99
- DeterminateHorizontalBar = 2,
100
- AnnularDeterminate = 3,
101
- CustomView = 4,
102
- Text = 5
103
- }
2
+ show(options?: OptionsCommon): any;
3
+ hide(targetView?: any, attemptTimeout?: number): void;
4
+ }
5
+
6
+ export interface OptionsCommon {
7
+ /**
8
+ * Message in the loading indicator.
9
+ */
10
+ message?: string;
11
+
12
+ /**
13
+ * Details message in the loading indicator.
14
+ */
15
+ details?: string;
16
+
17
+ /**
18
+ * Color of the message text.
19
+ */
20
+ color?: string;
21
+
22
+ /**
23
+ * Background color of the loading indicator.
24
+ */
25
+ backgroundColor?: string;
26
+
27
+ /**
28
+ * Progress of the indicator when not using CustomView or Text Mode.
29
+ */
30
+ progress?: number;
31
+
32
+ /**
33
+ * Margin for the message/indicator to the edge of the bezel.
34
+ */
35
+ margin?: number;
36
+
37
+ /**
38
+ * Set true to allow user interaction.
39
+ */
40
+ userInteractionEnabled?: boolean;
41
+
42
+ /**
43
+ * Dim the background behind the indicator.
44
+ */
45
+ dimBackground?: boolean;
46
+
47
+ /**
48
+ * Hide bezel around indicator
49
+ */
50
+ hideBezel?: boolean;
51
+
52
+ /**
53
+ * The mode of the loading indicator.
54
+ */
55
+ mode?: Mode;
56
+
57
+ /**
58
+ * If `mode` is set to CustomView, then you can pass an image or view to show in the loading indicator.
59
+ */
60
+ customView?: any;
61
+
62
+ /**
63
+ * iOS specific configuration options.
64
+ */
65
+ ios?: OptionsIOS;
66
+
67
+ /**
68
+ * Android specific configuration options.
69
+ */
70
+ android?: OptionsAndroid;
71
+ }
72
+
73
+ export interface OptionsIOS {
74
+ /**
75
+ * Native View instance to anchor the loading indicator to.
76
+ */
77
+ view?: UIView;
78
+ square?: boolean;
79
+ }
80
+
81
+ export interface OptionsAndroid {
82
+ /**
83
+ * Native View instance to anchor the loading indicator to.
84
+ */
85
+ view?: android.view.View;
86
+ max?: number;
87
+ progressNumberFormat?: string;
88
+ progressPercentFormat?: number;
89
+ progressStyle?: number;
90
+ secondaryProgress?: number;
91
+ cancelable?: boolean;
92
+ cancelListener?: (dialog: any) => void;
93
+ elevation?: number;
94
+ }
95
+
96
+ export enum Mode {
97
+ Indeterminate = 0,
98
+ Determinate = 1,
99
+ DeterminateHorizontalBar = 2,
100
+ AnnularDeterminate = 3,
101
+ CustomView = 4,
102
+ Text = 5,
103
+ }
104
+
@@ -1,5 +1,5 @@
1
- import { OptionsCommon } from './loading-indicator.common';
2
- export * from './loading-indicator.common';
1
+ import { OptionsCommon } from './common';
2
+ export * from './common';
3
3
  export declare class LoadingIndicator {
4
4
  private _hud;
5
5
  private _targetView;
@@ -1,42 +1,39 @@
1
- "use strict";
2
- function __export(m) {
3
- for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
4
- }
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- var color_1 = require("@nativescript/core/color");
7
- var loading_indicator_common_1 = require("./loading-indicator.common");
8
- __export(require("./loading-indicator.common"));
9
- var LoadingIndicator = (function () {
10
- function LoadingIndicator() {
11
- }
12
- LoadingIndicator.prototype.show = function (options) {
1
+ import { Color } from '@nativescript/core';
2
+ import { Mode } from './common';
3
+ export * from './common';
4
+ export class LoadingIndicator {
5
+ show(options) {
13
6
  if (typeof options === 'undefined')
14
7
  options = {};
15
8
  if (typeof this._hud === 'undefined') {
9
+ // use specific target, fallback to entire window
16
10
  this._targetView =
17
11
  options.ios && options.ios.view
18
12
  ? options.ios.view
19
13
  : this._getRootWindow();
20
14
  this._hud = MBProgressHUD.showHUDAddedToAnimated(this._targetView, true);
21
15
  }
16
+ // ios specific
22
17
  if (options.ios && options.ios.square)
23
18
  this._hud.square = true;
19
+ // options
24
20
  if (options.message) {
25
21
  this._hud.label.text = options.message;
22
+ // allow line breaking
26
23
  this._hud.label.numberOfLines = 0;
27
24
  }
28
25
  if (options.progress) {
29
26
  this._hud.progress = options.progress;
30
27
  }
31
28
  if (options.mode) {
32
- this._hud.mode = options.mode;
29
+ this._hud.mode = options.mode; // casting bc we use a custom enum and not MBProgessHUD enum for mode
33
30
  }
34
31
  else {
35
- this._hud.mode = loading_indicator_common_1.Mode.Indeterminate;
32
+ this._hud.mode = Mode.Indeterminate;
36
33
  }
37
34
  if (options.dimBackground) {
38
- this._hud.backgroundView.style = 0;
39
- this._hud.backgroundView.color = new color_1.Color('#000').ios;
35
+ this._hud.backgroundView.style = 0 /* SolidColor */;
36
+ this._hud.backgroundView.color = new Color('#000').ios;
40
37
  this._hud.backgroundView.alpha = 0.3;
41
38
  }
42
39
  if (options.margin)
@@ -44,28 +41,32 @@ var LoadingIndicator = (function () {
44
41
  if (options.userInteractionEnabled)
45
42
  this._hud.userInteractionEnabled = options.userInteractionEnabled;
46
43
  if (options.backgroundColor) {
47
- this._hud.bezelView.blurEffectStyle = 4;
48
- this._hud.bezelView.backgroundColor = new color_1.Color(options.backgroundColor).ios;
44
+ this._hud.bezelView.blurEffectStyle = 4 /* Regular */;
45
+ this._hud.bezelView.backgroundColor = new Color(options.backgroundColor).ios;
49
46
  }
50
47
  if (options.color) {
51
- this._hud.contentColor = new color_1.Color(options.color).ios;
52
- this._hud.label.textColor = new color_1.Color(options.color).ios;
48
+ // make activity and main label same color
49
+ this._hud.contentColor = new Color(options.color).ios; // setting this seems to enforce coloring the activity indicator correctly
50
+ this._hud.label.textColor = new Color(options.color).ios;
53
51
  }
54
52
  if (options.details) {
55
53
  this._hud.detailsLabel.text = options.details;
54
+ // detail label same color with 80% opacity of that color
55
+ // TODO: allow specific control
56
56
  this._hud.detailsLabel.textColor =
57
57
  options && options.color
58
- ? new color_1.Color(options.color).ios
59
- : new color_1.Color('#333').ios;
58
+ ? new Color(options.color).ios
59
+ : new Color('#333').ios;
60
60
  this._hud.detailsLabel.alpha = 0.8;
61
61
  }
62
62
  if (options.hideBezel) {
63
63
  this._hud.backgroundColor = UIColor.clearColor;
64
- this._hud.bezelView.style = 0;
64
+ this._hud.bezelView.style = 0 /* SolidColor */;
65
65
  this._hud.bezelView.backgroundColor = UIColor.clearColor;
66
66
  }
67
+ // handle mode setting for custom view Mode
67
68
  if (this._hud.mode &&
68
- this._hud.mode === loading_indicator_common_1.Mode.CustomView &&
69
+ this._hud.mode === Mode.CustomView && // casting to any for custom enum we map to
69
70
  options.customView) {
70
71
  if (options.customView instanceof UIImage) {
71
72
  this._hud.customView = UIImageView.alloc().initWithImage(options.customView);
@@ -78,16 +79,14 @@ var LoadingIndicator = (function () {
78
79
  }
79
80
  }
80
81
  return this._hud;
81
- };
82
- LoadingIndicator.prototype.hide = function (targetView) {
82
+ }
83
+ hide(targetView) {
83
84
  targetView = targetView || this._targetView || this._getRootWindow();
84
85
  MBProgressHUD.hideHUDForViewAnimated(targetView, true);
85
86
  this._hud = undefined;
86
- };
87
- LoadingIndicator.prototype._getRootWindow = function () {
87
+ }
88
+ _getRootWindow() {
88
89
  return UIApplication.sharedApplication.windows[0];
89
- };
90
- return LoadingIndicator;
91
- }());
92
- exports.LoadingIndicator = LoadingIndicator;
93
- //# sourceMappingURL=loading-indicator.ios.js.map
90
+ }
91
+ }
92
+ //# sourceMappingURL=index.ios.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.ios.js","sourceRoot":"","sources":["../../../packages/nativescript-loading-indicator/index.ios.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,IAAI,EAAiB,MAAM,UAAU,CAAC;AAE/C,cAAc,UAAU,CAAC;AAEzB,MAAM,OAAO,gBAAgB;IAM3B,IAAI,CAAC,OAAuB;QAC1B,IAAI,OAAO,OAAO,KAAK,WAAW;YAAE,OAAO,GAAG,EAAE,CAAC;QAEjD,IAAI,OAAO,IAAI,CAAC,IAAI,KAAK,WAAW,EAAE;YACpC,iDAAiD;YACjD,IAAI,CAAC,WAAW;gBACd,OA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indicator",
3
- "version": "3.0.4",
3
+ "version": "4.1.2",
4
4
  "description": "A NativeScript plugin for showing an overlayed loading indicator.",
5
- "main": "loading-indicator",
5
+ "main": "index",
6
6
  "typings": "index.d.ts",
7
7
  "nativescript": {
8
8
  "platforms": {
9
- "android": "2.5.0",
10
- "ios": "2.5.0"
9
+ "ios": "6.0.0",
10
+ "android": "6.0.0"
11
11
  }
12
12
  },
13
13
  "repository": {
14
14
  "type": "git",
15
- "url": "https://github.com/nstudio/nativescript-loading-indicator.git"
16
- },
17
- "scripts": {
18
- "tsc": "tsc -skipLibCheck",
19
- "build": "npm run tsc && npm run build.native",
20
- "build.native": "node scripts/build-native.js",
21
- "postclone": "npm i && node scripts/postclone.js && cd ../demo && npm i && npx rimraf -- package-lock.json && cd ../src",
22
- "test.android": "npm run tsc && npm run tslint && cd ../demo && tns build android && tns test android --justlaunch",
23
- "test.ios": "npm run tsc && npm run tslint && cd ../demo && tns build ios && tns test ios --justlaunch",
24
- "tslint": "cd .. && tslint \"**/*.ts\" --config tslint.json --exclude \"**/node_modules/**\" --exclude '**/platforms/**' --exclude \"**/typings/**\"",
25
- "plugin.tscwatch": "npm run tsc -- -w",
26
- "demo.ios": "npm run tsc && cd ../demo && tns run ios",
27
- "demo.android": "npm run tsc && cd ../demo && tns run android",
28
- "demo.reset": "cd ../demo && npx rimraf -- hooks node_modules platforms package-lock.json",
29
- "demo-angular.ios": "npm i && cd ../demo-angular && tns run ios",
30
- "demo-angular.android": "npm i && cd ../demo-angular && tns run android",
31
- "demo-angular.reset": "cd ../demo-angular && npx rimraf -- hooks node_modules platforms package-lock.json",
32
- "plugin.prepare": "npm run build && cd ../demo && tns plugin remove nativescript-loading-indicator && tns plugin add ../src",
33
- "clean": "npm run demo.reset && npx rimraf -- node_modules package-lock.json && npm i",
34
- "ci.tslint": "npm i && tslint '**/*.ts' --config '../tslint.json' --exclude '**/node_modules/**' --exclude '**/platforms/**' --exclude '**/typings/**'",
35
- "prepack": "npm run build.native",
36
- "generate.typings.ios": "cd ../demo && TNS_DEBUG_METADATA_PATH=\"$(pwd)/metadata\" tns build ios && TNS_TYPESCRIPT_DECLARATIONS_PATH=\"$(pwd)/typings\" tns build ios && echo 'Now look for your library typings in demo/typings!'"
37
- },
38
- "lint-staged": {
39
- "**/*.{js, css, ts, json, scss, html, xml, md}": [
40
- "prettier --write",
41
- "git add"
42
- ]
43
- },
44
- "husky": {
45
- "hooks": {
46
- "pre-commit": "lint-staged",
47
- "pre-push": "npm run tslint"
48
- }
15
+ "url": "https://github.com/nstudio/nativescript-plugins.git"
49
16
  },
50
17
  "keywords": [
51
18
  "NativeScript",
52
19
  "JavaScript",
53
- "Android",
20
+ "TypeScript",
54
21
  "iOS",
55
- "loading-indicator",
56
- "Loading",
57
- "Progress",
58
- "MBProgressHUD",
59
- "nStudio",
60
- "ProgressDialog"
22
+ "Android"
61
23
  ],
62
24
  "author": {
63
- "name": "Nathan Walker",
64
- "email": "walkerrunpdx@gmail.com"
25
+ "name": "nstudio",
26
+ "email": "oss@nstudio.io"
65
27
  },
66
28
  "contributors": [
29
+ {
30
+ "name": "Nathan Walker",
31
+ "email": "walkerrunpdx@gmail.com"
32
+ },
67
33
  {
68
34
  "name": "Osei Fortune",
69
35
  "email": "fortune.osei@yahoo.com"
@@ -74,22 +40,10 @@
74
40
  }
75
41
  ],
76
42
  "bugs": {
77
- "url": "https://github.com/nstudio/nativescript-loading-indicator/issues"
43
+ "url": "https://github.com/nstudio/nativescript-plugins/issues"
78
44
  },
79
45
  "license": "Apache-2.0",
80
- "homepage": "https://github.com/nstudio/nativescript-loading-indicator",
46
+ "homepage": "https://github.com/nstudio/nativescript-plugins",
81
47
  "readmeFilename": "README.md",
82
- "devDependencies": {
83
- "husky": "^4.2.0",
84
- "lint-staged": "^10.0.2",
85
- "prettier": "^1.19.1",
86
- "@nativescript/core": "^6.3.2",
87
- "tns-platform-declarations": "^6.3.2",
88
- "typescript": "~3.7.4",
89
- "prompt": "^1.0.0",
90
- "rimraf": "^2.6.3",
91
- "tslint": "^5.20.1",
92
- "semver": "^5.6.0"
93
- },
94
- "dependencies": {}
48
+ "bootstrapper": "@nativescript/plugin-seed"
95
49
  }
@@ -0,0 +1,2 @@
1
+ <manifest xmlns:android="http://schemas.android.com/apk/res/android"
2
+ package="com.github.triniwiz.ns.loading.indicator"/>
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="ring" android:innerRadiusRatio="2.5" android:thickness="1dp" android:useLevel="false">
3
+
4
+ <solid android:color="#CCC" />
5
+
6
+ </shape>
@@ -0,0 +1,18 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <rotate xmlns:android="http://schemas.android.com/apk/res/android"
3
+ android:fromDegrees="270"
4
+ android:toDegrees="270">
5
+ <shape
6
+ android:innerRadiusRatio="2.5"
7
+ android:shape="ring"
8
+ android:thickness="1dp"
9
+ android:useLevel="true">
10
+
11
+ <gradient
12
+ android:angle="0"
13
+ android:endColor="#007DD6"
14
+ android:startColor="#007DD6"
15
+ android:type="sweep"
16
+ android:useLevel="false" />
17
+ </shape>
18
+ </rotate>
@@ -0,0 +1,18 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <rotate xmlns:android="http://schemas.android.com/apk/res/android"
3
+ android:fromDegrees="270"
4
+ android:toDegrees="270">
5
+ <shape
6
+ android:innerRadiusRatio="2.5"
7
+ android:shape="ring"
8
+ android:thickness="3dp"
9
+ android:useLevel="true">
10
+
11
+ <gradient
12
+ android:angle="0"
13
+ android:endColor="#007DD6"
14
+ android:startColor="#007DD6"
15
+ android:type="sweep"
16
+ android:useLevel="false" />
17
+ </shape>
18
+ </rotate>