@aurelia-mdc-web/linear-progress
Advanced tools
Comparing version 3.1.0 to 4.0.0
@@ -32,16 +32,2 @@ define(["require", "exports", "tslib", "@aurelia-mdc-web/base", "@material/linear-progress", "aurelia-typed-observable-plugin", "aurelia-framework"], function (require, exports, tslib_1, base_1, linear_progress_1, aurelia_typed_observable_plugin_1, aurelia_framework_1) { | ||
}; | ||
MdcLinearProgress.prototype.reverseChanged = function () { | ||
var _a; | ||
return tslib_1.__awaiter(this, void 0, void 0, function () { | ||
return tslib_1.__generator(this, function (_b) { | ||
switch (_b.label) { | ||
case 0: return [4 /*yield*/, this.initialised]; | ||
case 1: | ||
_b.sent(); | ||
(_a = this.foundation) === null || _a === void 0 ? void 0 : _a.setReverse(this.reverse); | ||
return [2 /*return*/]; | ||
} | ||
}); | ||
}); | ||
}; | ||
MdcLinearProgress.prototype.bufferChanged = function () { | ||
@@ -127,6 +113,6 @@ var _a; | ||
}, | ||
// eslint-disable-next-line no-undef | ||
attachResizeObserver: function (callback) { | ||
if (window.ResizeObserver) { | ||
var ro = new ResizeObserver(callback); | ||
var RO = window.ResizeObserver; | ||
if (RO) { | ||
var ro = new RO(callback); | ||
ro.observe(_this.root); | ||
@@ -137,2 +123,10 @@ return ro; | ||
}, | ||
// attachResizeObserver: (callback: ResizeObserverCallback) => { | ||
// if (window.ResizeObserver) { | ||
// const ro = new ResizeObserver(callback); | ||
// ro.observe(this.root); | ||
// return ro; | ||
// } | ||
// return null; | ||
// }, | ||
getWidth: function () { return _this.root.offsetWidth; }, | ||
@@ -147,6 +141,2 @@ }; | ||
tslib_1.__decorate([ | ||
aurelia_typed_observable_plugin_1.bindable.booleanAttr, | ||
tslib_1.__metadata("design:type", Boolean) | ||
], MdcLinearProgress.prototype, "reverse", void 0); | ||
tslib_1.__decorate([ | ||
aurelia_typed_observable_plugin_1.bindable.number, | ||
@@ -153,0 +143,0 @@ tslib_1.__metadata("design:type", Number) |
@@ -36,16 +36,2 @@ "use strict"; | ||
}; | ||
MdcLinearProgress.prototype.reverseChanged = function () { | ||
var _a; | ||
return tslib_1.__awaiter(this, void 0, void 0, function () { | ||
return tslib_1.__generator(this, function (_b) { | ||
switch (_b.label) { | ||
case 0: return [4 /*yield*/, this.initialised]; | ||
case 1: | ||
_b.sent(); | ||
(_a = this.foundation) === null || _a === void 0 ? void 0 : _a.setReverse(this.reverse); | ||
return [2 /*return*/]; | ||
} | ||
}); | ||
}); | ||
}; | ||
MdcLinearProgress.prototype.bufferChanged = function () { | ||
@@ -131,6 +117,6 @@ var _a; | ||
}, | ||
// eslint-disable-next-line no-undef | ||
attachResizeObserver: function (callback) { | ||
if (window.ResizeObserver) { | ||
var ro = new ResizeObserver(callback); | ||
var RO = window.ResizeObserver; | ||
if (RO) { | ||
var ro = new RO(callback); | ||
ro.observe(_this.root); | ||
@@ -141,2 +127,10 @@ return ro; | ||
}, | ||
// attachResizeObserver: (callback: ResizeObserverCallback) => { | ||
// if (window.ResizeObserver) { | ||
// const ro = new ResizeObserver(callback); | ||
// ro.observe(this.root); | ||
// return ro; | ||
// } | ||
// return null; | ||
// }, | ||
getWidth: function () { return _this.root.offsetWidth; }, | ||
@@ -151,6 +145,2 @@ }; | ||
tslib_1.__decorate([ | ||
aurelia_typed_observable_plugin_1.bindable.booleanAttr, | ||
tslib_1.__metadata("design:type", Boolean) | ||
], MdcLinearProgress.prototype, "reverse", void 0); | ||
tslib_1.__decorate([ | ||
aurelia_typed_observable_plugin_1.bindable.number, | ||
@@ -157,0 +147,0 @@ tslib_1.__metadata("design:type", Number) |
@@ -21,9 +21,2 @@ import { __awaiter, __decorate, __metadata } from "tslib"; | ||
} | ||
reverseChanged() { | ||
var _a; | ||
return __awaiter(this, void 0, void 0, function* () { | ||
yield this.initialised; | ||
(_a = this.foundation) === null || _a === void 0 ? void 0 : _a.setReverse(this.reverse); | ||
}); | ||
} | ||
bufferChanged() { | ||
@@ -91,6 +84,6 @@ var _a; | ||
}, | ||
// eslint-disable-next-line no-undef | ||
attachResizeObserver: (callback) => { | ||
if (window.ResizeObserver) { | ||
const ro = new ResizeObserver(callback); | ||
const RO = window.ResizeObserver; | ||
if (RO) { | ||
const ro = new RO(callback); | ||
ro.observe(this.root); | ||
@@ -101,2 +94,10 @@ return ro; | ||
}, | ||
// attachResizeObserver: (callback: ResizeObserverCallback) => { | ||
// if (window.ResizeObserver) { | ||
// const ro = new ResizeObserver(callback); | ||
// ro.observe(this.root); | ||
// return ro; | ||
// } | ||
// return null; | ||
// }, | ||
getWidth: () => this.root.offsetWidth, | ||
@@ -112,6 +113,2 @@ }; | ||
__decorate([ | ||
bindable.booleanAttr, | ||
__metadata("design:type", Boolean) | ||
], MdcLinearProgress.prototype, "reverse", void 0); | ||
__decorate([ | ||
bindable.number, | ||
@@ -118,0 +115,0 @@ __metadata("design:type", Number) |
@@ -33,16 +33,2 @@ import { __awaiter, __decorate, __extends, __generator, __metadata } from "tslib"; | ||
}; | ||
MdcLinearProgress.prototype.reverseChanged = function () { | ||
var _a; | ||
return __awaiter(this, void 0, void 0, function () { | ||
return __generator(this, function (_b) { | ||
switch (_b.label) { | ||
case 0: return [4 /*yield*/, this.initialised]; | ||
case 1: | ||
_b.sent(); | ||
(_a = this.foundation) === null || _a === void 0 ? void 0 : _a.setReverse(this.reverse); | ||
return [2 /*return*/]; | ||
} | ||
}); | ||
}); | ||
}; | ||
MdcLinearProgress.prototype.bufferChanged = function () { | ||
@@ -128,6 +114,6 @@ var _a; | ||
}, | ||
// eslint-disable-next-line no-undef | ||
attachResizeObserver: function (callback) { | ||
if (window.ResizeObserver) { | ||
var ro = new ResizeObserver(callback); | ||
var RO = window.ResizeObserver; | ||
if (RO) { | ||
var ro = new RO(callback); | ||
ro.observe(_this.root); | ||
@@ -138,2 +124,10 @@ return ro; | ||
}, | ||
// attachResizeObserver: (callback: ResizeObserverCallback) => { | ||
// if (window.ResizeObserver) { | ||
// const ro = new ResizeObserver(callback); | ||
// ro.observe(this.root); | ||
// return ro; | ||
// } | ||
// return null; | ||
// }, | ||
getWidth: function () { return _this.root.offsetWidth; }, | ||
@@ -148,6 +142,2 @@ }; | ||
__decorate([ | ||
bindable.booleanAttr, | ||
__metadata("design:type", Boolean) | ||
], MdcLinearProgress.prototype, "reverse", void 0); | ||
__decorate([ | ||
bindable.number, | ||
@@ -154,0 +144,0 @@ __metadata("design:type", Number) |
@@ -10,5 +10,2 @@ import { MdcComponent } from '@aurelia-mdc-web/base'; | ||
progressChanged(): Promise<void>; | ||
/** Reverses the direction of the linear progress indicator */ | ||
reverse: boolean; | ||
reverseChanged(): Promise<void>; | ||
/** Sets the buffer bar to this value. Value should be between [0, 1] or undefined. */ | ||
@@ -15,0 +12,0 @@ buffer?: number; |
{ | ||
"name": "@aurelia-mdc-web/linear-progress", | ||
"version": "3.1.0", | ||
"version": "4.0.0", | ||
"publishConfig": { | ||
@@ -48,3 +48,3 @@ "access": "public" | ||
"_predoc": "cross-env rimraf doc/api.json && rimraf dist/doc-temp && tsc --project tsconfig.json --outFile dist/doc-temp/aurelia-ux.js && node doc/shape-defs && copyfiles tsconfig.json dist/doc-temp", | ||
"doc": "cross-env typedoc --json doc/api.json --excludeExternals --excludeNotExported --includeDeclarations --mode modules --target ES6 --name aurelia-mdc-web-docs src/", | ||
"doc": "cross-env mkdir -p doc && typedoc --json doc/api.json --excludeExternals --name aurelia-mdc-web-docs src/", | ||
"_postdoc": "cross-env node doc/shape-doc && rimraf dist/doc-temp", | ||
@@ -58,15 +58,15 @@ "_changelog": "cross-env conventional-changelog -p aurelia-material-components-web -i doc/CHANGELOG.md -s", | ||
"dependencies": { | ||
"@aurelia-mdc-web/base": "^3.1.0", | ||
"@material/linear-progress": "^9.0.0" | ||
"@aurelia-mdc-web/base": "^4.0.0", | ||
"@material/linear-progress": "^10.0.0" | ||
}, | ||
"devDependencies": { | ||
"concurrently": "^5.3.0", | ||
"conventional-changelog-cli": "^2.1.0", | ||
"copyfiles": "^2.4.0", | ||
"cross-env": "^7.0.2", | ||
"conventional-changelog-cli": "^2.1.1", | ||
"copyfiles": "^2.4.1", | ||
"cross-env": "^7.0.3", | ||
"rimraf": "^3.0.2", | ||
"typedoc": "^0.19.2", | ||
"typescript": "^4.0.5" | ||
"typedoc": "^0.20.23", | ||
"typescript": "^4.1.3" | ||
}, | ||
"gitHead": "f446ceafebdef354d425c4ed38c99fb4c6f91ac9" | ||
"gitHead": "33fb46bfda0f48afd8b79ad0fbe0eb728791a551" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
49069
643
+ Added@aurelia-mdc-web/base@4.0.6(transitive)
+ Added@material/animation@10.0.0(transitive)
+ Added@material/base@10.0.0(transitive)
+ Added@material/feature-targeting@10.0.0(transitive)
+ Added@material/linear-progress@10.0.0(transitive)
+ Added@material/progress-indicator@10.0.0(transitive)
+ Added@material/rtl@10.0.0(transitive)
+ Added@material/theme@10.0.0(transitive)
- Removed@aurelia-mdc-web/base@3.1.0(transitive)
- Removed@material/animation@9.0.0(transitive)
- Removed@material/base@9.0.0(transitive)
- Removed@material/feature-targeting@9.0.0(transitive)
- Removed@material/linear-progress@9.0.0(transitive)
- Removed@material/progress-indicator@9.0.0(transitive)
- Removed@material/theme@9.0.0(transitive)
Updated@aurelia-mdc-web/base@^4.0.0