@nstudio/nativescript-loading-indicator 4.1.0 → 4.1.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/LICENSE +201 -0
- package/README.md +261 -0
- package/{loading-indicator.common.d.ts → common.d.ts} +0 -0
- package/{loading-indicator.common.js → common.js} +1 -1
- package/common.js.map +1 -0
- package/{loading-indicator.android.d.ts → index.android.d.ts} +2 -2
- package/{loading-indicator.android.js → index.android.js} +6 -6
- package/index.android.js.map +1 -0
- package/index.d.ts +103 -102
- package/{loading-indicator.ios.d.ts → index.ios.d.ts} +2 -2
- package/{loading-indicator.ios.js → index.ios.js} +3 -3
- package/index.ios.js.map +1 -0
- package/package.json +16 -62
- package/platforms/android/AndroidManifest.xml +2 -0
- package/platforms/android/res/drawable/circle_shape.xml +6 -0
- package/platforms/android/res/drawable/circular_progress_bar.xml +18 -0
- package/platforms/android/res/drawable/circular_progress_bar_thick.xml +18 -0
- package/references.d.ts +0 -3
- package/typings/objc!MBProgressHUD.d.ts +0 -240
package/LICENSE
ADDED
@@ -0,0 +1,201 @@
|
|
1
|
+
Apache License
|
2
|
+
Version 2.0, January 2004
|
3
|
+
http://www.apache.org/licenses/
|
4
|
+
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
6
|
+
|
7
|
+
1. Definitions.
|
8
|
+
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
11
|
+
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
13
|
+
the copyright owner that is granting the License.
|
14
|
+
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
16
|
+
other entities that control, are controlled by, or are under common
|
17
|
+
control with that entity. For the purposes of this definition,
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
19
|
+
direction or management of such entity, whether by contract or
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
22
|
+
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
24
|
+
exercising permissions granted by this License.
|
25
|
+
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
27
|
+
including but not limited to software source code, documentation
|
28
|
+
source, and configuration files.
|
29
|
+
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
31
|
+
transformation or translation of a Source form, including but
|
32
|
+
not limited to compiled object code, generated documentation,
|
33
|
+
and conversions to other media types.
|
34
|
+
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
36
|
+
Object form, made available under the License, as indicated by a
|
37
|
+
copyright notice that is included in or attached to the work
|
38
|
+
(an example is provided in the Appendix below).
|
39
|
+
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
46
|
+
the Work and Derivative Works thereof.
|
47
|
+
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
49
|
+
the original version of the Work and any modifications or additions
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
61
|
+
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
64
|
+
subsequently incorporated within the Work.
|
65
|
+
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
72
|
+
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
78
|
+
where such license applies only to those patent claims licensable
|
79
|
+
by such Contributor that are necessarily infringed by their
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
82
|
+
institute patent litigation against any entity (including a
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
85
|
+
or contributory patent infringement, then any patent licenses
|
86
|
+
granted to You under this License for that Work shall terminate
|
87
|
+
as of the date such litigation is filed.
|
88
|
+
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
91
|
+
modifications, and in Source or Object form, provided that You
|
92
|
+
meet the following conditions:
|
93
|
+
|
94
|
+
(a) You must give any other recipients of the Work or
|
95
|
+
Derivative Works a copy of this License; and
|
96
|
+
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
98
|
+
stating that You changed the files; and
|
99
|
+
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
102
|
+
attribution notices from the Source form of the Work,
|
103
|
+
excluding those notices that do not pertain to any part of
|
104
|
+
the Derivative Works; and
|
105
|
+
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
108
|
+
include a readable copy of the attribution notices contained
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
111
|
+
of the following places: within a NOTICE text file distributed
|
112
|
+
as part of the Derivative Works; within the Source form or
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
114
|
+
within a display generated by the Derivative Works, if and
|
115
|
+
wherever such third-party notices normally appear. The contents
|
116
|
+
of the NOTICE file are for informational purposes only and
|
117
|
+
do not modify the License. You may add Your own attribution
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
120
|
+
that such additional attribution notices cannot be construed
|
121
|
+
as modifying the License.
|
122
|
+
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
124
|
+
may provide additional or different license terms and conditions
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
128
|
+
the conditions stated in this License.
|
129
|
+
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
133
|
+
this License, without any additional terms or conditions.
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
135
|
+
the terms of any separate license agreement you may have executed
|
136
|
+
with Licensor regarding such Contributions.
|
137
|
+
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
140
|
+
except as required for reasonable and customary use in describing the
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
142
|
+
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
152
|
+
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
158
|
+
incidental, or consequential damages of any character arising as a
|
159
|
+
result of this License or out of the use or inability to use the
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
162
|
+
other commercial damages or losses), even if such Contributor
|
163
|
+
has been advised of the possibility of such damages.
|
164
|
+
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
168
|
+
or other liability obligations and/or rights consistent with this
|
169
|
+
License. However, in accepting such obligations, You may act only
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
174
|
+
of your accepting any such warranty or additional liability.
|
175
|
+
|
176
|
+
END OF TERMS AND CONDITIONS
|
177
|
+
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
179
|
+
|
180
|
+
To apply the Apache License to your work, attach the following
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "{}"
|
182
|
+
replaced with your own identifying information. (Don't include
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
184
|
+
comment syntax for the file format. We also recommend that a
|
185
|
+
file or class name and description of purpose be included on the
|
186
|
+
same "printed page" as the copyright notice for easier
|
187
|
+
identification within third-party archives.
|
188
|
+
|
189
|
+
Copyright (c) 2015-2019 Progress Software Corporation
|
190
|
+
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
192
|
+
you may not use this file except in compliance with the License.
|
193
|
+
You may obtain a copy of the License at
|
194
|
+
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
196
|
+
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
200
|
+
See the License for the specific language governing permissions and
|
201
|
+
limitations under the License.
|
package/README.md
ADDED
@@ -0,0 +1,261 @@
|
|
1
|
+
<a align="center" href="https://www.npmjs.com/package/@nstudio/nativescript-loading-indicator">
|
2
|
+
<h3 align="center">NativeScript Loading Indicator</h3>
|
3
|
+
</a>
|
4
|
+
<h4 align="center">
|
5
|
+
NativeScript-Loading-Indicator is a plugin for NativeScript which overlays a loading indicator on the current page. Can be used, for example, to prevent the UI being interacted with while data is being fetched from an API, while informing the user that something is happening.
|
6
|
+
</h4>
|
7
|
+
|
8
|
+
<p align="center">
|
9
|
+
<a href="https://www.npmjs.com/package/@nstudio/nativescript-loading-indicator">
|
10
|
+
<img src="https://img.shields.io/npm/v/@nstudio/nativescript-loading-indicator.svg" alt="npm">
|
11
|
+
</a>
|
12
|
+
<a href="https://www.npmjs.com/package/@nstudio/nativescript-loading-indicator">
|
13
|
+
<img src="https://img.shields.io/npm/dt/@nstudio/nativescript-loading-indicator.svg?label=npm%20downloads" alt="npm">
|
14
|
+
</a>
|
15
|
+
</p>
|
16
|
+
|
17
|
+
---
|
18
|
+
|
19
|
+
## Installation
|
20
|
+
|
21
|
+
## NativeScript 7+:
|
22
|
+
|
23
|
+
```bash
|
24
|
+
npm install @nstudio/nativescript-loading-indicator
|
25
|
+
```
|
26
|
+
|
27
|
+
## NativeScript lower than 7:
|
28
|
+
|
29
|
+
```bash
|
30
|
+
npm install @nstudio/nativescript-loading-indicator@3.0.x
|
31
|
+
```
|
32
|
+
|
33
|
+
## Screenshots
|
34
|
+
|
35
|
+
### iOS
|
36
|
+
|
37
|
+
<p align="center">
|
38
|
+
|
39
|
+
| | | | |
|
40
|
+
| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- |
|
41
|
+
| <img src="https://raw.githubusercontent.com/nstudio/nativescript-loading-indicator/master/screenshots/ios/1.png" style="max-width:200px" alt="iOS"> | <img src="https://raw.githubusercontent.com/nstudio/nativescript-loading-indicator/master/screenshots/ios/2.png" style="max-width:200px" alt="iOS"> | <img src="./screenshots/ios/3.png" style="max-width:200px" alt="iOS"> | <img src="./screenshots/ios/4.png" style="max-width:200px" alt="iOS"> |
|
42
|
+
|
43
|
+
<!-- <img src="./screenshots/ios/1.png" style="max-width:200px" alt="iOS Example 1">
|
44
|
+
<img src="./screenshots/ios/2.png" style="max-width:200px" alt="iOS Example 2">
|
45
|
+
<img src="./screenshots/ios/3.png" style="max-width:200px" alt="iOS Example 3">
|
46
|
+
<img src="./screenshots/ios/4.png" style="max-width:200px" alt="iOS Example 4"> -->
|
47
|
+
|
48
|
+
</p>
|
49
|
+
|
50
|
+
### Android
|
51
|
+
|
52
|
+
<p align="center">
|
53
|
+
|
54
|
+
| | | | |
|
55
|
+
| ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- |
|
56
|
+
| <img src="https://raw.githubusercontent.com/nstudio/nativescript-loading-indicator/master/screenshots/android/1.png" style="max-width:200px" alt="Android"> | <img src="https://raw.githubusercontent.com/nstudio/nativescript-loading-indicator/master/screenshots/android/2.png" style="max-width:200px" alt="Android"> | <img src="https://raw.githubusercontent.com/nstudio/nativescript-loading-indicator/master/screenshots/android/3.png" style="max-width:200px" alt="Android"> | <img src="https://raw.githubusercontent.com/nstudio/nativescript-loading-indicator/master/screenshots/android/4.png" style="max-width:200px" alt="Android"> |
|
57
|
+
|
58
|
+
</p>
|
59
|
+
|
60
|
+
## Example
|
61
|
+
|
62
|
+
#### TypeScript
|
63
|
+
|
64
|
+
```typescript
|
65
|
+
import {
|
66
|
+
LoadingIndicator,
|
67
|
+
Mode,
|
68
|
+
OptionsCommon,
|
69
|
+
} from '@nstudio/nativescript-loading-indicator';
|
70
|
+
|
71
|
+
const indicator = new LoadingIndicator();
|
72
|
+
|
73
|
+
const options: OptionsCommon = {
|
74
|
+
message: 'Loading...',
|
75
|
+
details: 'Additional detail note!',
|
76
|
+
progress: 0.65,
|
77
|
+
margin: 10,
|
78
|
+
dimBackground: true,
|
79
|
+
color: '#4B9ED6', // color of indicator and labels
|
80
|
+
// background box around indicator
|
81
|
+
// hideBezel will override this if true
|
82
|
+
backgroundColor: 'yellow',
|
83
|
+
userInteractionEnabled: false, // default true. Set false so that the touches will fall through it.
|
84
|
+
hideBezel: true, // default false, can hide the surrounding bezel
|
85
|
+
mode: Mode.AnnularDeterminate, // see options below
|
86
|
+
android: {
|
87
|
+
view: someStackLayout.android, // Target view to show on top of (Defaults to entire window)
|
88
|
+
cancelable: true,
|
89
|
+
cancelListener: function (dialog) {
|
90
|
+
console.log('Loading cancelled');
|
91
|
+
},
|
92
|
+
},
|
93
|
+
ios: {
|
94
|
+
view: someButton.ios, // Target view to show on top of (Defaults to entire window)
|
95
|
+
square: false,
|
96
|
+
},
|
97
|
+
};
|
98
|
+
|
99
|
+
indicator.show(options);
|
100
|
+
|
101
|
+
// after some async event maybe or a timeout hide the indicator
|
102
|
+
indicator.hide();
|
103
|
+
```
|
104
|
+
|
105
|
+
#### javascript
|
106
|
+
|
107
|
+
```js
|
108
|
+
const LoadingIndicator = require('@nstudio/nativescript-loading-indicator')
|
109
|
+
.LoadingIndicator;
|
110
|
+
const Mode = require('@nstudio/nativescript-loading-indicator').Mode;
|
111
|
+
|
112
|
+
const loader = new LoadingIndicator();
|
113
|
+
|
114
|
+
// optional options
|
115
|
+
// android and ios have some platform specific options
|
116
|
+
const options = {
|
117
|
+
message: 'Loading...',
|
118
|
+
details: 'Additional detail note!',
|
119
|
+
progress: 0.65,
|
120
|
+
margin: 10,
|
121
|
+
dimBackground: true,
|
122
|
+
color: '#4B9ED6', // color of indicator and labels
|
123
|
+
// background box around indicator
|
124
|
+
// hideBezel will override this if true
|
125
|
+
backgroundColor: 'yellow',
|
126
|
+
userInteractionEnabled: false, // default true. Set false so that the touches will fall through it.
|
127
|
+
hideBezel: true, // default false, can hide the surrounding bezel
|
128
|
+
mode: Mode.AnnularDeterminate, // see options below
|
129
|
+
android: {
|
130
|
+
view: android.view.View, // Target view to show on top of (Defaults to entire window)
|
131
|
+
cancelable: true,
|
132
|
+
cancelListener: function (dialog) {
|
133
|
+
console.log('Loading cancelled');
|
134
|
+
},
|
135
|
+
},
|
136
|
+
ios: {
|
137
|
+
view: UIView, // Target view to show on top of (Defaults to entire window)
|
138
|
+
},
|
139
|
+
};
|
140
|
+
|
141
|
+
loader.show(options); // options is optional
|
142
|
+
|
143
|
+
// Do whatever it is you want to do while the loader is showing, then
|
144
|
+
|
145
|
+
loader.hide();
|
146
|
+
```
|
147
|
+
|
148
|
+
### Common Options
|
149
|
+
|
150
|
+
```typescript
|
151
|
+
export interface OptionsCommon {
|
152
|
+
/**
|
153
|
+
* Message in the loading indicator.
|
154
|
+
*/
|
155
|
+
message?: string;
|
156
|
+
|
157
|
+
/**
|
158
|
+
* Details message in the loading indicator.
|
159
|
+
*/
|
160
|
+
details?: string;
|
161
|
+
|
162
|
+
/**
|
163
|
+
* Color of the message text.
|
164
|
+
*/
|
165
|
+
color?: string;
|
166
|
+
|
167
|
+
/**
|
168
|
+
* Background color of the loading indicator.
|
169
|
+
*/
|
170
|
+
backgroundColor?: string;
|
171
|
+
|
172
|
+
/**
|
173
|
+
* Progress of the indicator when not using CustomView or Text Mode.
|
174
|
+
*/
|
175
|
+
progress?: number;
|
176
|
+
|
177
|
+
/**
|
178
|
+
* Margin for the message/indicator to the edge of the bezel.
|
179
|
+
*/
|
180
|
+
margin?: number;
|
181
|
+
|
182
|
+
/**
|
183
|
+
* Set true to allow user interaction.
|
184
|
+
*/
|
185
|
+
userInteractionEnabled?: boolean;
|
186
|
+
|
187
|
+
/**
|
188
|
+
* Dim the background behind the indicator.
|
189
|
+
*/
|
190
|
+
dimBackground?: boolean;
|
191
|
+
|
192
|
+
/**
|
193
|
+
* Hide bezel around indicator
|
194
|
+
*/
|
195
|
+
hideBezel?: boolean;
|
196
|
+
|
197
|
+
/**
|
198
|
+
* The mode of the loading indicator.
|
199
|
+
*/
|
200
|
+
mode?: Mode;
|
201
|
+
|
202
|
+
/**
|
203
|
+
* If `mode` is set to CustomView, then you can pass an image or view to show in the loading indicator.
|
204
|
+
*/
|
205
|
+
customView?: any;
|
206
|
+
|
207
|
+
/**
|
208
|
+
* iOS specific configuration options.
|
209
|
+
*/
|
210
|
+
ios?: OptionsIOS;
|
211
|
+
|
212
|
+
/**
|
213
|
+
* Android specific configuration options.
|
214
|
+
*/
|
215
|
+
android?: OptionsAndroid;
|
216
|
+
}
|
217
|
+
```
|
218
|
+
|
219
|
+
#### Android Specific
|
220
|
+
|
221
|
+
```typescript
|
222
|
+
export interface OptionsAndroid {
|
223
|
+
/**
|
224
|
+
* Native View instance to anchor the loading indicator to.
|
225
|
+
*/
|
226
|
+
view?: android.view.View;
|
227
|
+
max?: number;
|
228
|
+
progressNumberFormat?: string;
|
229
|
+
progressPercentFormat?: number;
|
230
|
+
progressStyle?: number;
|
231
|
+
secondaryProgress?: number;
|
232
|
+
cancelable?: boolean;
|
233
|
+
cancelListener?: (dialog: any) => void;
|
234
|
+
elevation?: number;
|
235
|
+
}
|
236
|
+
```
|
237
|
+
|
238
|
+
#### iOS Specific
|
239
|
+
|
240
|
+
```typescript
|
241
|
+
export interface OptionsIOS {
|
242
|
+
/**
|
243
|
+
* Native View instance to anchor the loading indicator to.
|
244
|
+
*/
|
245
|
+
view?: UIView;
|
246
|
+
square?: boolean;
|
247
|
+
}
|
248
|
+
```
|
249
|
+
|
250
|
+
### Mode Enum
|
251
|
+
|
252
|
+
```typescript
|
253
|
+
export enum Mode {
|
254
|
+
Indeterminate = 0,
|
255
|
+
Determinate = 1,
|
256
|
+
DeterminateHorizontalBar = 2,
|
257
|
+
AnnularDeterminate = 3,
|
258
|
+
CustomView = 4,
|
259
|
+
Text = 5,
|
260
|
+
}
|
261
|
+
```
|
File without changes
|
package/common.js.map
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../../packages/nativescript-loading-indicator/common.ts"],"names":[],"mappings":"AA0FE,MAAM,CAAN,IAAY,IAOX;AAPD,WAAY,IAAI;IACd,iDAAiB,CAAA;IACjB,6CAAe,CAAA;IACf,uEAA4B,CAAA;IAC5B,2DAAsB,CAAA;IACtB,2CAAc,CAAA;IACd,+BAAQ,CAAA;AACV,CAAC,EAPW,IAAI,KAAJ,IAAI,QAOf"}
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { OptionsCommon } from './
|
2
|
-
export * from './
|
1
|
+
import { OptionsCommon } from './common';
|
2
|
+
export * from './common';
|
3
3
|
export declare class LoadingIndicator {
|
4
4
|
private _popOver;
|
5
5
|
private _currentProgressColor;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { Application, Color, Frame, ImageSource, Screen, } from '@nativescript/core';
|
2
|
-
import { Mode } from './
|
3
|
-
export * from './
|
2
|
+
import { Mode } from './common';
|
3
|
+
export * from './common';
|
4
4
|
const R_ATTR_PROGRESS_BAR_STYLE_HORIZONTAL = 0x01010078;
|
5
5
|
const PACKAGE = 'com.github.triniwiz.ns.loading.indicator';
|
6
6
|
const ViewCompatNamespace = useAndroidX()
|
@@ -263,8 +263,6 @@ export class LoadingIndicator {
|
|
263
263
|
}
|
264
264
|
contentView.addView(parentView);
|
265
265
|
this._popOver.setContentView(contentView);
|
266
|
-
const view = Frame.topmost().android.rootViewGroup ||
|
267
|
-
Frame.topmost().currentPage.android;
|
268
266
|
// handle anchoring target view
|
269
267
|
if (options.android && options.android.view) {
|
270
268
|
const nativeView = options.android.view;
|
@@ -272,7 +270,9 @@ export class LoadingIndicator {
|
|
272
270
|
this._popOver.setHeight(nativeView.getHeight());
|
273
271
|
this._popOver.showAtLocation(nativeView, android.view.Gravity.CENTER, 0, 0);
|
274
272
|
}
|
275
|
-
else {
|
273
|
+
else if (Frame.topmost() && (Frame.topmost().android || (Frame.topmost().currentPage && Frame.topmost().currentPage.android))) {
|
274
|
+
const view = Frame.topmost().android.rootViewGroup ||
|
275
|
+
Frame.topmost().currentPage.android;
|
276
276
|
this._popOver.setWidth(Screen.mainScreen.widthPixels);
|
277
277
|
this._popOver.setHeight(Screen.mainScreen.heightPixels);
|
278
278
|
this._popOver.showAtLocation(view, android.view.Gravity.CENTER, 0, 0);
|
@@ -526,4 +526,4 @@ export class LoadingIndicator {
|
|
526
526
|
.circular_progress_bar_thick);
|
527
527
|
}
|
528
528
|
}
|
529
|
-
//# sourceMappingURL=
|
529
|
+
//# sourceMappingURL=index.android.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.android.js","sourceRoot":"","sources":["../../../packages/nativescript-loading-indicator/index.android.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,WAAW,EACX,KAAK,EACL,KAAK,EACL,WAAW,EACX,MAAM,GAEP,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,IAAI,EAAiB,MAAM,UAAU,CAAC;AAE/C,cAAc,UAAU,CAAC;AAIzB,MAAM,oCAAoC,GAAG,UAAU,CAAC;AACxD,MAAM,OAAO,GAAG,0CAA0C,CAAC;AAE3D,MAAM,mBAAmB,GAAG,WAAW,EAAE;IACvC,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI;IACpB,CAAC,CAAE,OAAO,CAAC,OAAO,CA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AAC,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC,QAAQ,CAAC,YAAY,CACjE,CAAC;IACJ,CAAC;IAEO,oBAAoB;QAC1B,OAAO,IAAI,CAAC,aAAa,EAAE,CAAC,WAAW,CACrC,GAAG,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC,QAAQ,CAAC,qBAAqB,CAC1E,CAAC;IACJ,CAAC;IAEO,yBAAyB;QAC/B,OAAO,IAAI,CAAC,aAAa,EAAE,CAAC,WAAW,CACrC,GAAG,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC,QAAQ;aAChD,2BAA2B,CAC/B,CAAC;IACJ,CAAC;CACF"}
|
package/index.d.ts
CHANGED
@@ -1,103 +1,104 @@
|
|
1
1
|
export class LoadingIndicator {
|
2
|
-
|
3
|
-
|
4
|
-
}
|
5
|
-
|
6
|
-
export interface OptionsCommon {
|
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
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
}
|
72
|
-
|
73
|
-
export interface OptionsIOS {
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
}
|
80
|
-
|
81
|
-
export interface OptionsAndroid {
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
}
|
95
|
-
|
96
|
-
export enum Mode {
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
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,6 +1,6 @@
|
|
1
1
|
import { Color } from '@nativescript/core';
|
2
|
-
import { Mode } from './
|
3
|
-
export * from './
|
2
|
+
import { Mode } from './common';
|
3
|
+
export * from './common';
|
4
4
|
export class LoadingIndicator {
|
5
5
|
show(options) {
|
6
6
|
if (typeof options === 'undefined')
|
@@ -89,4 +89,4 @@ export class LoadingIndicator {
|
|
89
89
|
return UIApplication.sharedApplication.windows[0];
|
90
90
|
}
|
91
91
|
}
|
92
|
-
//# sourceMappingURL=
|
92
|
+
//# sourceMappingURL=index.ios.js.map
|
package/index.ios.js.map
ADDED
@@ -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,OAAO,CAAC,GAAG,IAAI,OAAO,CAAC,GAAG,CAAC,IAAI;oBAC7B,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI;oBAClB,CAAC,CAAC,IAAI,CAAC,cAAc,EAAE,CAAC;YAC5B,IAAI,CAAC,IAAI,GAAG,aAAa,CAAC,sBAAsB,CAAC,IAAI,CAAC,WAAW,EAAE,IAAI,CAAC,CAAC;SAC1E;QACD,eAAe;QACf,IAAI,OAAO,CAAC,GAAG,IAAI,OAAO,CAAC,GAAG,CAAC,MAAM;YAAE,IAAI,CAAC,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC;QAE/D,UAAU;QACV,IAAI,OAAO,CAAC,OAAO,EAAE;YACnB,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,GAAG,OAAO,CAAC,OAAO,CAAC;YACvC,sBAAsB;YACtB,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,aAAa,GAAG,CAAC,CAAC;SACnC;QAED,IAA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,UAAU,KAAK,QAAQ,EAAE;gBACjD,IAAI,CAAC,IAAI,CAAC,UAAU,GAAG,WAAW,CAAC,KAAK,EAAE,CAAC,aAAa,CACtD,OAAO,CAAC,UAAU,CAAC,OAAO,CAAC,UAAU,CAAC,CACvC,CAAC;aACH;SACF;QAED,OAAO,IAAI,CAAC,IAAI,CAAC;IACnB,CAAC;IAED,IAAI,CAAC,UAAgB;QACnB,UAAU,GAAG,UAAU,IAAI,IAAI,CAAC,WAAW,IAAI,IAAI,CAAC,cAAc,EAAE,CAAC;QACrE,aAAa,CAAC,sBAAsB,CAAC,UAAU,EAAE,IAAI,CAAC,CAAC;QACvD,IAAI,CAAC,IAAI,GAAG,SAAS,CAAC;IACxB,CAAC;IAEO,cAAc;QACpB,OAAO,aAAa,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;IACpD,CAAC;CACF"}
|
package/package.json
CHANGED
@@ -1,69 +1,35 @@
|
|
1
1
|
{
|
2
2
|
"name": "@nstudio/nativescript-loading-indicator",
|
3
|
-
"version": "4.1.
|
3
|
+
"version": "4.1.1",
|
4
4
|
"description": "A NativeScript plugin for showing an overlayed loading indicator.",
|
5
|
-
"main": "
|
5
|
+
"main": "index",
|
6
6
|
"typings": "index.d.ts",
|
7
7
|
"nativescript": {
|
8
8
|
"platforms": {
|
9
|
-
"
|
10
|
-
"
|
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-
|
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 run npm-i && node scripts/postclone.js && cd ../demo && npm run npm-i && npx rimraf -- package-lock.json && cd ../src",
|
22
|
-
"npm-i": "npm i --legacy-peer-deps",
|
23
|
-
"test.android": "npm run tsc && npm run tslint && cd ../demo && tns build android && tns test android --justlaunch",
|
24
|
-
"test.ios": "npm run tsc && npm run tslint && cd ../demo && tns build ios && tns test ios --justlaunch",
|
25
|
-
"tslint": "cd .. && tslint \"**/*.ts\" --config tslint.json --exclude \"**/node_modules/**\" --exclude '**/platforms/**' --exclude \"**/typings/**\"",
|
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 run npm-i && cd ../demo-angular && tns run ios",
|
30
|
-
"demo-angular.android": "npm run 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 run npm-i",
|
34
|
-
"ci.tslint": "npm run 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
|
-
"
|
20
|
+
"TypeScript",
|
54
21
|
"iOS",
|
55
|
-
"
|
56
|
-
"Loading",
|
57
|
-
"Progress",
|
58
|
-
"MBProgressHUD",
|
59
|
-
"nStudio",
|
60
|
-
"ProgressDialog"
|
22
|
+
"Android"
|
61
23
|
],
|
62
24
|
"author": {
|
63
|
-
"name": "
|
64
|
-
"email": "
|
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-
|
43
|
+
"url": "https://github.com/nstudio/nativescript-plugins/issues"
|
78
44
|
},
|
79
45
|
"license": "Apache-2.0",
|
80
|
-
"homepage": "https://github.com/nstudio/nativescript-
|
46
|
+
"homepage": "https://github.com/nstudio/nativescript-plugins",
|
81
47
|
"readmeFilename": "README.md",
|
82
|
-
"
|
83
|
-
"husky": "~4.3.0",
|
84
|
-
"lint-staged": "~10.5.0",
|
85
|
-
"prettier": "~2.2.1",
|
86
|
-
"@nativescript/core": "~8.0.0",
|
87
|
-
"@nativescript/types": "~8.0.0",
|
88
|
-
"typescript": "~4.1.0",
|
89
|
-
"prompt": "^1.0.0",
|
90
|
-
"rimraf": "^3.0.2",
|
91
|
-
"tslint": "^6.1.3",
|
92
|
-
"semver": "^5.6.0"
|
93
|
-
},
|
94
|
-
"dependencies": {}
|
48
|
+
"bootstrapper": "@nativescript/plugin-seed"
|
95
49
|
}
|
@@ -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>
|
package/references.d.ts
DELETED
@@ -1,240 +0,0 @@
|
|
1
|
-
declare class MBBackgroundView extends UIView {
|
2
|
-
static alloc(): MBBackgroundView; // inherited from NSObject
|
3
|
-
|
4
|
-
static appearance(): MBBackgroundView; // inherited from UIAppearance
|
5
|
-
|
6
|
-
static appearanceForTraitCollection(
|
7
|
-
trait: UITraitCollection
|
8
|
-
): MBBackgroundView; // inherited from UIAppearance
|
9
|
-
|
10
|
-
static appearanceForTraitCollectionWhenContainedIn(
|
11
|
-
trait: UITraitCollection,
|
12
|
-
ContainerClass: typeof NSObject
|
13
|
-
): MBBackgroundView; // inherited from UIAppearance
|
14
|
-
|
15
|
-
static appearanceForTraitCollectionWhenContainedInInstancesOfClasses(
|
16
|
-
trait: UITraitCollection,
|
17
|
-
containerTypes: NSArray<typeof NSObject> | typeof NSObject[]
|
18
|
-
): MBBackgroundView; // inherited from UIAppearance
|
19
|
-
|
20
|
-
static appearanceWhenContainedIn(
|
21
|
-
ContainerClass: typeof NSObject
|
22
|
-
): MBBackgroundView; // inherited from UIAppearance
|
23
|
-
|
24
|
-
static appearanceWhenContainedInInstancesOfClasses(
|
25
|
-
containerTypes: NSArray<typeof NSObject> | typeof NSObject[]
|
26
|
-
): MBBackgroundView; // inherited from UIAppearance
|
27
|
-
|
28
|
-
static new(): MBBackgroundView; // inherited from NSObject
|
29
|
-
|
30
|
-
blurEffectStyle: UIBlurEffectStyle;
|
31
|
-
|
32
|
-
color: UIColor;
|
33
|
-
|
34
|
-
style: MBProgressHUDBackgroundStyle;
|
35
|
-
}
|
36
|
-
|
37
|
-
declare class MBBarProgressView extends UIView {
|
38
|
-
static alloc(): MBBarProgressView; // inherited from NSObject
|
39
|
-
|
40
|
-
static appearance(): MBBarProgressView; // inherited from UIAppearance
|
41
|
-
|
42
|
-
static appearanceForTraitCollection(
|
43
|
-
trait: UITraitCollection
|
44
|
-
): MBBarProgressView; // inherited from UIAppearance
|
45
|
-
|
46
|
-
static appearanceForTraitCollectionWhenContainedIn(
|
47
|
-
trait: UITraitCollection,
|
48
|
-
ContainerClass: typeof NSObject
|
49
|
-
): MBBarProgressView; // inherited from UIAppearance
|
50
|
-
|
51
|
-
static appearanceForTraitCollectionWhenContainedInInstancesOfClasses(
|
52
|
-
trait: UITraitCollection,
|
53
|
-
containerTypes: NSArray<typeof NSObject> | typeof NSObject[]
|
54
|
-
): MBBarProgressView; // inherited from UIAppearance
|
55
|
-
|
56
|
-
static appearanceWhenContainedIn(
|
57
|
-
ContainerClass: typeof NSObject
|
58
|
-
): MBBarProgressView; // inherited from UIAppearance
|
59
|
-
|
60
|
-
static appearanceWhenContainedInInstancesOfClasses(
|
61
|
-
containerTypes: NSArray<typeof NSObject> | typeof NSObject[]
|
62
|
-
): MBBarProgressView; // inherited from UIAppearance
|
63
|
-
|
64
|
-
static new(): MBBarProgressView; // inherited from NSObject
|
65
|
-
|
66
|
-
lineColor: UIColor;
|
67
|
-
|
68
|
-
progress: number;
|
69
|
-
|
70
|
-
progressColor: UIColor;
|
71
|
-
|
72
|
-
progressRemainingColor: UIColor;
|
73
|
-
}
|
74
|
-
|
75
|
-
declare class MBProgressHUD extends UIView {
|
76
|
-
static HUDForView(view: UIView): MBProgressHUD;
|
77
|
-
|
78
|
-
static alloc(): MBProgressHUD; // inherited from NSObject
|
79
|
-
|
80
|
-
static appearance(): MBProgressHUD; // inherited from UIAppearance
|
81
|
-
|
82
|
-
static appearanceForTraitCollection(trait: UITraitCollection): MBProgressHUD; // inherited from UIAppearance
|
83
|
-
|
84
|
-
static appearanceForTraitCollectionWhenContainedIn(
|
85
|
-
trait: UITraitCollection,
|
86
|
-
ContainerClass: typeof NSObject
|
87
|
-
): MBProgressHUD; // inherited from UIAppearance
|
88
|
-
|
89
|
-
static appearanceForTraitCollectionWhenContainedInInstancesOfClasses(
|
90
|
-
trait: UITraitCollection,
|
91
|
-
containerTypes: NSArray<typeof NSObject> | typeof NSObject[]
|
92
|
-
): MBProgressHUD; // inherited from UIAppearance
|
93
|
-
|
94
|
-
static appearanceWhenContainedIn(
|
95
|
-
ContainerClass: typeof NSObject
|
96
|
-
): MBProgressHUD; // inherited from UIAppearance
|
97
|
-
|
98
|
-
static appearanceWhenContainedInInstancesOfClasses(
|
99
|
-
containerTypes: NSArray<typeof NSObject> | typeof NSObject[]
|
100
|
-
): MBProgressHUD; // inherited from UIAppearance
|
101
|
-
|
102
|
-
static hideHUDForViewAnimated(view: UIView, animated: boolean): boolean;
|
103
|
-
|
104
|
-
static new(): MBProgressHUD; // inherited from NSObject
|
105
|
-
|
106
|
-
static showHUDAddedToAnimated(view: UIView, animated: boolean): MBProgressHUD;
|
107
|
-
|
108
|
-
animationType: MBProgressHUDAnimation;
|
109
|
-
|
110
|
-
readonly backgroundView: MBBackgroundView;
|
111
|
-
|
112
|
-
readonly bezelView: MBBackgroundView;
|
113
|
-
|
114
|
-
readonly button: UIButton;
|
115
|
-
|
116
|
-
completionBlock: () => void;
|
117
|
-
|
118
|
-
contentColor: UIColor;
|
119
|
-
|
120
|
-
customView: UIView;
|
121
|
-
|
122
|
-
defaultMotionEffectsEnabled: boolean;
|
123
|
-
|
124
|
-
delegate: MBProgressHUDDelegate;
|
125
|
-
|
126
|
-
readonly detailsLabel: UILabel;
|
127
|
-
|
128
|
-
graceTime: number;
|
129
|
-
|
130
|
-
readonly label: UILabel;
|
131
|
-
|
132
|
-
margin: number;
|
133
|
-
|
134
|
-
minShowTime: number;
|
135
|
-
|
136
|
-
minSize: CGSize;
|
137
|
-
|
138
|
-
mode: MBProgressHUDMode;
|
139
|
-
|
140
|
-
offset: CGPoint;
|
141
|
-
|
142
|
-
progress: number;
|
143
|
-
|
144
|
-
progressObject: NSProgress;
|
145
|
-
|
146
|
-
removeFromSuperViewOnHide: boolean;
|
147
|
-
|
148
|
-
square: boolean;
|
149
|
-
|
150
|
-
constructor(o: { view: UIView });
|
151
|
-
|
152
|
-
hideAnimated(animated: boolean): void;
|
153
|
-
|
154
|
-
hideAnimatedAfterDelay(animated: boolean, delay: number): void;
|
155
|
-
|
156
|
-
initWithView(view: UIView): this;
|
157
|
-
|
158
|
-
showAnimated(animated: boolean): void;
|
159
|
-
}
|
160
|
-
|
161
|
-
declare const enum MBProgressHUDAnimation {
|
162
|
-
Fade = 0,
|
163
|
-
|
164
|
-
Zoom = 1,
|
165
|
-
|
166
|
-
ZoomOut = 2,
|
167
|
-
|
168
|
-
ZoomIn = 3
|
169
|
-
}
|
170
|
-
|
171
|
-
declare const enum MBProgressHUDBackgroundStyle {
|
172
|
-
SolidColor = 0,
|
173
|
-
|
174
|
-
Blur = 1
|
175
|
-
}
|
176
|
-
|
177
|
-
interface MBProgressHUDDelegate extends NSObjectProtocol {
|
178
|
-
hudWasHidden?(hud: MBProgressHUD): void;
|
179
|
-
}
|
180
|
-
declare var MBProgressHUDDelegate: {
|
181
|
-
prototype: MBProgressHUDDelegate;
|
182
|
-
};
|
183
|
-
|
184
|
-
declare const enum MBProgressHUDMode {
|
185
|
-
Indeterminate = 0,
|
186
|
-
|
187
|
-
Determinate = 1,
|
188
|
-
|
189
|
-
DeterminateHorizontalBar = 2,
|
190
|
-
|
191
|
-
AnnularDeterminate = 3,
|
192
|
-
|
193
|
-
CustomView = 4,
|
194
|
-
|
195
|
-
Text = 5
|
196
|
-
}
|
197
|
-
|
198
|
-
declare var MBProgressHUDVersionNumber: number;
|
199
|
-
|
200
|
-
declare var MBProgressHUDVersionString: interop.Reference<number>;
|
201
|
-
|
202
|
-
declare var MBProgressMaxOffset: number;
|
203
|
-
|
204
|
-
declare class MBRoundProgressView extends UIView {
|
205
|
-
static alloc(): MBRoundProgressView; // inherited from NSObject
|
206
|
-
|
207
|
-
static appearance(): MBRoundProgressView; // inherited from UIAppearance
|
208
|
-
|
209
|
-
static appearanceForTraitCollection(
|
210
|
-
trait: UITraitCollection
|
211
|
-
): MBRoundProgressView; // inherited from UIAppearance
|
212
|
-
|
213
|
-
static appearanceForTraitCollectionWhenContainedIn(
|
214
|
-
trait: UITraitCollection,
|
215
|
-
ContainerClass: typeof NSObject
|
216
|
-
): MBRoundProgressView; // inherited from UIAppearance
|
217
|
-
|
218
|
-
static appearanceForTraitCollectionWhenContainedInInstancesOfClasses(
|
219
|
-
trait: UITraitCollection,
|
220
|
-
containerTypes: NSArray<typeof NSObject> | typeof NSObject[]
|
221
|
-
): MBRoundProgressView; // inherited from UIAppearance
|
222
|
-
|
223
|
-
static appearanceWhenContainedIn(
|
224
|
-
ContainerClass: typeof NSObject
|
225
|
-
): MBRoundProgressView; // inherited from UIAppearance
|
226
|
-
|
227
|
-
static appearanceWhenContainedInInstancesOfClasses(
|
228
|
-
containerTypes: NSArray<typeof NSObject> | typeof NSObject[]
|
229
|
-
): MBRoundProgressView; // inherited from UIAppearance
|
230
|
-
|
231
|
-
static new(): MBRoundProgressView; // inherited from NSObject
|
232
|
-
|
233
|
-
annular: boolean;
|
234
|
-
|
235
|
-
backgroundTintColor: UIColor;
|
236
|
-
|
237
|
-
progress: number;
|
238
|
-
|
239
|
-
progressTintColor: UIColor;
|
240
|
-
}
|