@nativescript-community/ui-material-activityindicator 7.2.18 → 7.2.20

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.
@@ -0,0 +1,10 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class MaterialActivityIndicatorDirective {
3
+ static ɵfac: i0.ɵɵFactoryDeclaration<MaterialActivityIndicatorDirective, never>;
4
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MaterialActivityIndicatorDirective, "MDActivityIndicator", never, {}, {}, never, never, false, never>;
5
+ }
6
+ export declare class NativeScriptMaterialActivityIndicatorModule {
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<NativeScriptMaterialActivityIndicatorModule, never>;
8
+ static ɵmod: i0.ɵɵNgModuleDeclaration<NativeScriptMaterialActivityIndicatorModule, [typeof MaterialActivityIndicatorDirective], never, [typeof MaterialActivityIndicatorDirective]>;
9
+ static ɵinj: i0.ɵɵInjectorDeclaration<NativeScriptMaterialActivityIndicatorModule>;
10
+ }
@@ -0,0 +1,18 @@
1
+ import { CoercibleProperty, ActivityIndicator as NSActivityIndicator, Property } from '@nativescript/core';
2
+ export declare class ActivityIndicatorBase extends NSActivityIndicator {
3
+ indeterminate: boolean;
4
+ maxValue: number;
5
+ value: number;
6
+ startAnimating(): void;
7
+ stopAnimating(): void;
8
+ onMeasure(widthMeasureSpec: number, heightMeasureSpec: number): void;
9
+ }
10
+ export declare const indeterminateProperty: Property<ActivityIndicatorBase, boolean>;
11
+ /**
12
+ * Represents the observable property backing the value property of each Progress instance.
13
+ */
14
+ export declare const valueProperty: CoercibleProperty<ActivityIndicatorBase, number>;
15
+ /**
16
+ * Represents the observable property backing the maxValue property of each Progress instance.
17
+ */
18
+ export declare const maxValueProperty: Property<ActivityIndicatorBase, number>;
@@ -0,0 +1,60 @@
1
+ import { CSSType, CoercibleProperty, ActivityIndicator as NSActivityIndicator, Progress as NSProgress, Property, Utils, booleanConverter } from '@nativescript/core';
2
+ import { applyMixins } from '@nativescript-community/ui-material-core';
3
+ let ActivityIndicatorBase = class ActivityIndicatorBase extends NSActivityIndicator {
4
+ startAnimating() {
5
+ this.busy = true;
6
+ }
7
+ stopAnimating() {
8
+ this.busy = false;
9
+ }
10
+ onMeasure(widthMeasureSpec, heightMeasureSpec) {
11
+ const width = Utils.layout.getMeasureSpecSize(widthMeasureSpec);
12
+ const widthMode = Utils.layout.getMeasureSpecMode(widthMeasureSpec);
13
+ const height = Utils.layout.getMeasureSpecSize(heightMeasureSpec);
14
+ const heightMode = Utils.layout.getMeasureSpecMode(heightMeasureSpec);
15
+ const finiteWidth = widthMode === Utils.layout.EXACTLY;
16
+ const finiteHeight = heightMode === Utils.layout.EXACTLY;
17
+ if (finiteWidth || finiteHeight) {
18
+ let nativeWidth = finiteWidth ? width : height;
19
+ let nativeHeight = finiteHeight ? height : width;
20
+ nativeWidth = nativeHeight = Math.min(nativeWidth, nativeHeight);
21
+ super.onMeasure(Utils.layout.makeMeasureSpec(nativeWidth, Utils.layout.EXACTLY), Utils.layout.makeMeasureSpec(nativeHeight, Utils.layout.EXACTLY));
22
+ }
23
+ else {
24
+ super.onMeasure(widthMeasureSpec, heightMeasureSpec);
25
+ }
26
+ }
27
+ };
28
+ ActivityIndicatorBase = __decorate([
29
+ CSSType('MDActivityIndicator')
30
+ ], ActivityIndicatorBase);
31
+ export { ActivityIndicatorBase };
32
+ applyMixins(ActivityIndicatorBase, [NSProgress], { omit: ['createNativeView'] });
33
+ export const indeterminateProperty = new Property({
34
+ name: 'indeterminate',
35
+ valueConverter: booleanConverter
36
+ });
37
+ indeterminateProperty.register(ActivityIndicatorBase);
38
+ /**
39
+ * Represents the observable property backing the value property of each Progress instance.
40
+ */
41
+ export const valueProperty = new CoercibleProperty({
42
+ name: 'value',
43
+ defaultValue: 0,
44
+ coerceValue: (t, v) => (v < 0 ? 0 : Math.min(v, t.maxValue)),
45
+ valueConverter: (v) => parseInt(v, 10)
46
+ });
47
+ valueProperty.register(ActivityIndicatorBase);
48
+ /**
49
+ * Represents the observable property backing the maxValue property of each Progress instance.
50
+ */
51
+ export const maxValueProperty = new Property({
52
+ name: 'maxValue',
53
+ defaultValue: 100,
54
+ valueChanged: (target, oldValue, newValue) => {
55
+ valueProperty.coerce(target);
56
+ },
57
+ valueConverter: (v) => parseInt(v, 10)
58
+ });
59
+ maxValueProperty.register(ActivityIndicatorBase);
60
+ //# sourceMappingURL=index-common.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-common.js","sourceRoot":"../src/","sources":["index-common.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,IAAI,mBAAmB,EAAE,QAAQ,IAAI,UAAU,EAAE,QAAQ,EAAE,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACrK,OAAO,EAAE,WAAW,EAAE,MAAM,0CAA0C,CAAC;AAGhE,IAAM,qBAAqB,GAA3B,MAAM,qBAAsB,SAAQ,mBAAmB;IAInD,cAAc;QACjB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACrB,CAAC;IACM,aAAa;QAChB,IAAI,CAAC,IAAI,GAAG,KAAK,CAAC;IACtB,CAAC;IAEM,SAAS,CAAC,gBAAwB,EAAE,iBAAyB;QAChE,MAAM,KAAK,GAAG,KAAK,CAAC,MAAM,CAAC,kBAAkB,CAAC,gBAAgB,CAAC,CAAC;QAChE,MAAM,SAAS,GAAG,KAAK,CAAC,MAAM,CAAC,kBAAkB,CAAC,gBAAgB,CAAC,CAAC;QAEpE,MAAM,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,kBAAkB,CAAC,iBAAiB,CAAC,CAAC;QAClE,MAAM,UAAU,GAAG,KAAK,CAAC,MAAM,CAAC,kBAAkB,CAAC,iBAAiB,CAAC,CAAC;QACtE,MAAM,WAAW,GAAY,SAAS,KAAK,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC;QAChE,MAAM,YAAY,GAAY,UAAU,K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G,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC;IAC5D,cAAc,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,QAAQ,CAAC,CAAC,EAAE,EAAE,CAAC;CACzC,CAAC,CAAC;AACH,aAAa,CAAC,QAAQ,CAAC,qBAAqB,CAAC,CAAC;AAE9C;;GAEG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,IAAI,QAAQ,CAAgC;IACxE,IAAI,EAAE,UAAU;IAChB,YAAY,EAAE,GAAG;IACjB,YAAY,EAAE,CAAC,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE;QACzC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IACjC,CAAC;IACD,cAAc,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,QAAQ,CAAC,CAAC,EAAE,EAAE,CAAC;CACzC,CAAC,CAAC;AACH,gBAAgB,CAAC,QAAQ,CAAC,qBAAqB,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { ActivityIndicatorBase } from './index-common';
2
+ export declare class ActivityIndicator extends ActivityIndicatorBase {
3
+ }
@@ -0,0 +1,26 @@
1
+ import { ActivityIndicatorBase, indeterminateProperty, maxValueProperty, valueProperty } from './index-common';
2
+ export class ActivityIndicator extends ActivityIndicatorBase {
3
+ // nativeViewProtected: com.google.android.material.progressindicator.CircularProgressIndicator;
4
+ // createNativeView() {
5
+ // const progressBar = new com.google.android.material.progressindicator.CircularProgressIndicator(this._context);
6
+ // progressBar.setVisibility(android.view.View.INVISIBLE);
7
+ // progressBar.setIndeterminate(true);
8
+ // return progressBar;
9
+ // }
10
+ [valueProperty.getDefault]() {
11
+ return 0;
12
+ }
13
+ [valueProperty.setNative](value) {
14
+ this.nativeViewProtected.setProgress(value);
15
+ }
16
+ [maxValueProperty.getDefault]() {
17
+ return 100;
18
+ }
19
+ [maxValueProperty.setNative](value) {
20
+ this.nativeViewProtected.setMax(value);
21
+ }
22
+ [indeterminateProperty.setNative](value) {
23
+ this.nativeViewProtected.setIndeterminate(value);
24
+ }
25
+ }
26
+ //# sourceMappingURL=index.android.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.android.js","sourceRoot":"../src/","sources":["index.android.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAE/G,MAAM,OAAO,iBAAkB,SAAQ,qBAAqB;IACxD,gGAAgG;IAEhG,uBAAuB;IACvB,sHAAsH;IACtH,8DAA8D;IAC9D,0CAA0C;IAC1C,0BAA0B;IAC1B,IAAI;IAEJ,CAAC,aAAa,CAAC,UAAU,CAAC;QACtB,OAAO,CAAC,CAAC;IACb,CAAC;IACD,CAAC,aAAa,CAAC,SAAS,CAAC,CAAC,KAAa;QACnC,IAAI,CAAC,mBAAmB,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;IAChD,CAAC;IAED,CAAC,gBAAgB,CAAC,UAAU,CAAC;QACzB,OAAO,GAAG,CAAC;IACf,CAAC;IACD,CAAC,gBAAgB,CAAC,SAAS,CAAC,CAAC,KAAa;QACtC,IAAI,CAAC,mBAAmB,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IAC3C,CAAC;IAED,CAAC,qBAAqB,CAAC,SAAS,CAAC,CAAC,KAAc;QAC5C,IAAI,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,KAAK,CAAC,CAAC;IACrD,CAAC;CACJ"}
package/index.d.ts ADDED
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Material ActivityIndicator component
3
+ * @module @nativescript-community/ui-material-activityindicator
4
+ */
5
+
6
+ import { ActivityIndicatorBase } from './index-common';
7
+ import { Progress as NSProgress } from '@nativescript/core';
8
+ import { mixin } from '@nativescript-community/ui-material-core';
9
+
10
+ export class ActivityIndicator extends mixin(ActivityIndicatorBase, NSProgress) {}
package/index.ios.d.ts ADDED
@@ -0,0 +1,9 @@
1
+ import { ActivityIndicatorBase } from './index-common';
2
+ export declare class ActivityIndicator extends ActivityIndicatorBase {
3
+ nativeViewProtected: MDCActivityIndicator;
4
+ autoSize: boolean;
5
+ createNativeView(): MDCActivityIndicator;
6
+ _onSizeChanged(): void;
7
+ private updateStrokeRadius;
8
+ onMeasure(widthMeasureSpec: number, heightMeasureSpec: number): void;
9
+ }
package/index.ios.js ADDED
@@ -0,0 +1,88 @@
1
+ import { themer } from '@nativescript-community/ui-material-core';
2
+ import { Color, Screen, Utils, View, colorProperty } from '@nativescript/core';
3
+ import { ActivityIndicatorBase, indeterminateProperty, maxValueProperty, valueProperty } from './index-common';
4
+ export class ActivityIndicator extends ActivityIndicatorBase {
5
+ constructor() {
6
+ super(...arguments);
7
+ this.autoSize = true;
8
+ }
9
+ createNativeView() {
10
+ const view = MDCActivityIndicator.new();
11
+ const color = themer.getAppColorScheme().primaryColor;
12
+ view.cycleColors = color ? NSArray.arrayWithObject(color) : null;
13
+ // const colorScheme = this.colorThemer || themer.getAppColorScheme();
14
+ // if (colorScheme) {
15
+ // MDCActivityIndicatorColorThemer.applySemanticColorSchemeToActivityIndicator(colorScheme, view);
16
+ // }
17
+ return view;
18
+ }
19
+ // colorThemer: MDCSemanticColorScheme;
20
+ // getColorThemer() {
21
+ // if (!this.colorThemer) {
22
+ // this.colorThemer = MDCSemanticColorScheme.new();
23
+ // }
24
+ // return this.colorThemer;
25
+ // }
26
+ _onSizeChanged() {
27
+ if (this.autoSize) {
28
+ this.updateStrokeRadius(this.getMeasuredWidth(), this.getMeasuredHeight());
29
+ }
30
+ super._onSizeChanged();
31
+ }
32
+ updateStrokeRadius(width, height) {
33
+ // radius is maxed to 72
34
+ const min = Math.min(Math.min(width, height), 144);
35
+ const strokeWidth = min / 25;
36
+ const scale = Screen.mainScreen.scale;
37
+ const radius = min / 2 - strokeWidth / 2;
38
+ this.nativeViewProtected.strokeWidth = strokeWidth;
39
+ this.nativeViewProtected.radius = radius / scale;
40
+ }
41
+ onMeasure(widthMeasureSpec, heightMeasureSpec) {
42
+ const nativeView = this.nativeViewProtected;
43
+ if (nativeView) {
44
+ const width = Utils.layout.getMeasureSpecSize(widthMeasureSpec);
45
+ const widthMode = Utils.layout.getMeasureSpecMode(widthMeasureSpec);
46
+ const height = Utils.layout.getMeasureSpecSize(heightMeasureSpec);
47
+ const heightMode = Utils.layout.getMeasureSpecMode(heightMeasureSpec);
48
+ const horizontalPadding = this.effectivePaddingLeft + this.effectiveBorderLeftWidth + this.effectivePaddingRight + this.effectiveBorderRightWidth;
49
+ const verticalPadding = this.effectivePaddingTop + this.effectiveBorderTopWidth + this.effectivePaddingBottom + this.effectiveBorderBottomWidth;
50
+ const desiredSize = Utils.layout.measureNativeView(nativeView, width - horizontalPadding, widthMode, height - verticalPadding, heightMode);
51
+ desiredSize.width = desiredSize.width + horizontalPadding;
52
+ desiredSize.height = desiredSize.height + verticalPadding;
53
+ const measureWidth = Math.max(desiredSize.width, this.effectiveMinWidth);
54
+ const measureHeight = Math.max(desiredSize.height, this.effectiveMinHeight);
55
+ const widthAndState = View.resolveSizeAndState(measureWidth, width, widthMode, 0);
56
+ const heightAndState = View.resolveSizeAndState(measureHeight, height, heightMode, 0);
57
+ this.setMeasuredDimension(widthAndState, heightAndState);
58
+ }
59
+ }
60
+ // public startAnimating() {
61
+ // this.nativeView.startAnimating();
62
+ // }
63
+ // public stopAnimating() {
64
+ // this.nativeView.stopAnimating();
65
+ // }
66
+ [colorProperty.setNative](value) {
67
+ const color = value instanceof Color ? value.ios : value;
68
+ this.nativeViewProtected.cycleColors = color ? NSArray.arrayWithObject(color) : null;
69
+ // this.getColorThemer().primaryColor = value instanceof Color ? value.ios : value;
70
+ // MDCActivityIndicatorColorThemer.applySemanticColorSchemeToActivityIndicator(this.getColorThemer(), this.nativeViewProtected);
71
+ }
72
+ [indeterminateProperty.setNative](value) {
73
+ this.nativeViewProtected.indicatorMode = value ? 0 /* MDCActivityIndicatorMode.Indeterminate */ : 1 /* MDCActivityIndicatorMode.Determinate */;
74
+ }
75
+ [valueProperty.getDefault]() {
76
+ return 0;
77
+ }
78
+ [valueProperty.setNative](value) {
79
+ this.nativeViewProtected.progress = value / this.maxValue;
80
+ }
81
+ [maxValueProperty.getDefault]() {
82
+ return 100;
83
+ }
84
+ [maxValueProperty.setNative](value) {
85
+ this.nativeViewProtected.progress = this.value / value;
86
+ }
87
+ }
88
+ //# sourceMappingURL=index.ios.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.ios.js","sourceRoot":"../src/","sources":["index.ios.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,0CAA0C,CAAC;AAClE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAC/E,OAAO,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAE/G,MAAM,OAAO,iBAAkB,SAAQ,qBAAqB;IAA5D;;QAEI,aAAQ,GAAG,IAAI,CAAC;IA8FpB,CAAC;IA5FU,gBAAgB;QACnB,MAAM,IAAI,GAAG,oBAAoB,CAAC,GAAG,EAAE,CAAC;QACxC,MAAM,KAAK,GAAI,MAAM,CAAC,iBAAiB,EAA6B,CAAC,YAAY,CAAC;QAClF,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;QACjE,sEAAsE;QACtE,qBAAqB;QACrB,sGAAsG;QACtG,IAAI;QACJ,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,uCAAuC;IACvC,qBAAqB;IACrB,+BAA+B;IAC/B,2DAA2D;IAC3D,QAAQ;IACR,+BAA+B;IAC/B,IAAI;IAEJ,cAAc;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mB,CAAC,WAAW,GAAG,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;QACrF,mFAAmF;QACnF,gIAAgI;IACpI,CAAC;IACD,CAAC,qBAAqB,CAAC,SAAS,CAAC,CAAC,KAAc;QAC5C,IAAI,CAAC,mBAAmB,CAAC,aAAa,GAAG,KAAK,CAAC,CAAC,gDAAwC,CAAC,6CAAqC,CAAC;IACnI,CAAC;IAED,CAAC,aAAa,CAAC,UAAU,CAAC;QACtB,OAAO,CAAC,CAAC;IACb,CAAC;IACD,CAAC,aAAa,CAAC,SAAS,CAAC,CAAC,KAAa;QACnC,IAAI,CAAC,mBAAmB,CAAC,QAAQ,GAAG,KAAK,GAAG,IAAI,CAAC,QAAQ,CAAC;IAC9D,CAAC;IAED,CAAC,gBAAgB,CAAC,UAAU,CAAC;QACzB,OAAO,GAAG,CAAC;IACf,CAAC;IACD,CAAC,gBAAgB,CAAC,SAAS,CAAC,CAAC,KAAa;QACtC,IAAI,CAAC,mBAAmB,CAAC,QAAQ,GAAG,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IAC3D,CAAC;CACJ"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nativescript-community/ui-material-activityindicator",
3
- "version": "7.2.18",
3
+ "version": "7.2.20",
4
4
  "description": "Material Design Activity Indicator expresses an unspecified wait time.",
5
5
  "main": "./index",
6
6
  "sideEffects": false,
@@ -47,7 +47,7 @@
47
47
  "readmeFilename": "README.md",
48
48
  "homepage": "https://nativescript-community.github.io/ui-material-components/modules/_nativescript_community_ui_material_activityindicator.html",
49
49
  "dependencies": {
50
- "@nativescript-community/ui-material-core": "^7.2.18"
50
+ "@nativescript-community/ui-material-core": "^7.2.20"
51
51
  },
52
- "gitHead": "9b56850d982d8ed164c2f9c1681d7c948f2c9bcf"
52
+ "gitHead": "7bd49dc4f8922fca932cd41983e42f6638757047"
53
53
  }
package/vue/index.d.ts ADDED
@@ -0,0 +1,4 @@
1
+ declare const _default: {
2
+ install(Vue: any): void;
3
+ };
4
+ export default _default;
package/vue/index.js ADDED
@@ -0,0 +1,11 @@
1
+ import { ActivityIndicator } from '..';
2
+ let installed = false;
3
+ export default {
4
+ install(Vue) {
5
+ if (!installed) {
6
+ installed = true;
7
+ Vue.registerElement('MDActivityIndicator', () => ActivityIndicator, {});
8
+ }
9
+ }
10
+ };
11
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"../src/","sources":["vue/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,IAAI,CAAC;AACvC,IAAI,SAAS,GAAG,KAAK,CAAC;AACtB,eAAe;IACX,OAAO,CAAC,GAAG;QACP,IAAI,CAAC,SAAS,EAAE;YACZ,SAAS,GAAG,IAAI,CAAC;YACjB,GAAG,CAAC,eAAe,CAAC,qBAAqB,EAAE,GAAG,EAAE,CAAC,iBAAiB,EAAE,EAAE,CAAC,CAAC;SAC3E;IACL,CAAC;CACJ,CAAC"}