Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@aurelia-mdc-web/base

Package Overview
Dependencies
Maintainers
1
Versions
129
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aurelia-mdc-web/base - npm Package Compare versions

Comparing version 1.0.0-alpha.0 to 1.0.0-alpha.2

dist/amd/elements/i-validated-element.js

8

dist/amd/mdc-component-adapters.js

@@ -15,4 +15,5 @@ define(["require", "exports", "tslib", "aurelia-framework", "aurelia-templating-binding"], function (require, exports, tslib_1, aurelia_framework_1, aurelia_templating_binding_1) {

getObserver: function (obj, propertyName, descriptor) {
var _a;
if (obj instanceof Element) {
var tagName = obj.getAttribute('as-element') || obj.tagName;
var tagName = (_a = obj.getAttribute('as-element')) !== null && _a !== void 0 ? _a : obj.tagName;
var elAdapters = _this.adapters[tagName];

@@ -47,6 +48,8 @@ if (!elAdapters) {

MdcComponentAdapters.prototype.interceptDetermineDefaultBindingMode = function () {
// eslint-disable-next-line @typescript-eslint/no-this-alias
var mdc = this;
var originalFn = aurelia_templating_binding_1.SyntaxInterpreter.prototype.determineDefaultBindingMode;
aurelia_templating_binding_1.SyntaxInterpreter.prototype.determineDefaultBindingMode = function (element, attrName, context) {
var tagName = element.getAttribute('as-element') || element.tagName;
var _a;
var tagName = (_a = element.getAttribute('as-element')) !== null && _a !== void 0 ? _a : element.tagName;
var elAdapters = mdc.adapters[tagName];

@@ -59,2 +62,3 @@ if (elAdapters) {

}
// eslint-disable-next-line @typescript-eslint/no-unsafe-return
return originalFn.call(this, element, attrName, context);

@@ -61,0 +65,0 @@ };

@@ -11,5 +11,10 @@ define(["require", "exports", "tslib"], function (require, exports, tslib_1) {

MdcComponent.prototype.createInitiliasedPromise = function () {
var _this = this;
return new Promise(function (r) { return _this.initialisedResolve = r; });
return tslib_1.__awaiter(this, void 0, void 0, function () {
var _this = this;
return tslib_1.__generator(this, function (_a) {
return [2 /*return*/, new Promise(function (r) { return _this.initialisedResolve = r; })];
});
});
};
// eslint-disable-next-line @typescript-eslint/no-empty-function
MdcComponent.prototype.initialise = function () {

@@ -20,2 +25,3 @@ return tslib_1.__awaiter(this, void 0, void 0, function () { return tslib_1.__generator(this, function (_a) {

};
// eslint-disable-next-line @typescript-eslint/no-empty-function
MdcComponent.prototype.initialSyncWithDOM = function () { };

@@ -38,2 +44,3 @@ MdcComponent.prototype.attached = function () {

};
// eslint-disable-next-line @typescript-eslint/no-empty-function
MdcComponent.prototype.destroy = function () { };

@@ -40,0 +47,0 @@ MdcComponent.prototype.detached = function () {

@@ -17,4 +17,5 @@ "use strict";

getObserver: function (obj, propertyName, descriptor) {
var _a;
if (obj instanceof Element) {
var tagName = obj.getAttribute('as-element') || obj.tagName;
var tagName = (_a = obj.getAttribute('as-element')) !== null && _a !== void 0 ? _a : obj.tagName;
var elAdapters = _this.adapters[tagName];

@@ -49,6 +50,8 @@ if (!elAdapters) {

MdcComponentAdapters.prototype.interceptDetermineDefaultBindingMode = function () {
// eslint-disable-next-line @typescript-eslint/no-this-alias
var mdc = this;
var originalFn = aurelia_templating_binding_1.SyntaxInterpreter.prototype.determineDefaultBindingMode;
aurelia_templating_binding_1.SyntaxInterpreter.prototype.determineDefaultBindingMode = function (element, attrName, context) {
var tagName = element.getAttribute('as-element') || element.tagName;
var _a;
var tagName = (_a = element.getAttribute('as-element')) !== null && _a !== void 0 ? _a : element.tagName;
var elAdapters = mdc.adapters[tagName];

@@ -61,2 +64,3 @@ if (elAdapters) {

}
// eslint-disable-next-line @typescript-eslint/no-unsafe-return
return originalFn.call(this, element, attrName, context);

@@ -63,0 +67,0 @@ };

@@ -11,5 +11,10 @@ "use strict";

MdcComponent.prototype.createInitiliasedPromise = function () {
var _this = this;
return new Promise(function (r) { return _this.initialisedResolve = r; });
return tslib_1.__awaiter(this, void 0, void 0, function () {
var _this = this;
return tslib_1.__generator(this, function (_a) {
return [2 /*return*/, new Promise(function (r) { return _this.initialisedResolve = r; })];
});
});
};
// eslint-disable-next-line @typescript-eslint/no-empty-function
MdcComponent.prototype.initialise = function () {

@@ -20,2 +25,3 @@ return tslib_1.__awaiter(this, void 0, void 0, function () { return tslib_1.__generator(this, function (_a) {

};
// eslint-disable-next-line @typescript-eslint/no-empty-function
MdcComponent.prototype.initialSyncWithDOM = function () { };

@@ -38,2 +44,3 @@ MdcComponent.prototype.attached = function () {

};
// eslint-disable-next-line @typescript-eslint/no-empty-function
MdcComponent.prototype.destroy = function () { };

@@ -40,0 +47,0 @@ MdcComponent.prototype.detached = function () {

@@ -13,4 +13,5 @@ import { __decorate, __metadata } from "tslib";

getObserver: (obj, propertyName, descriptor) => {
var _a;
if (obj instanceof Element) {
const tagName = obj.getAttribute('as-element') || obj.tagName;
const tagName = (_a = obj.getAttribute('as-element')) !== null && _a !== void 0 ? _a : obj.tagName;
const elAdapters = this.adapters[tagName];

@@ -45,6 +46,8 @@ if (!elAdapters) {

interceptDetermineDefaultBindingMode() {
// eslint-disable-next-line @typescript-eslint/no-this-alias
const mdc = this;
const originalFn = SyntaxInterpreter.prototype.determineDefaultBindingMode;
SyntaxInterpreter.prototype.determineDefaultBindingMode = function (element, attrName, context) {
const tagName = element.getAttribute('as-element') || element.tagName;
var _a;
const tagName = (_a = element.getAttribute('as-element')) !== null && _a !== void 0 ? _a : element.tagName;
const elAdapters = mdc.adapters[tagName];

@@ -57,2 +60,3 @@ if (elAdapters) {

}
// eslint-disable-next-line @typescript-eslint/no-unsafe-return
return originalFn.call(this, element, attrName, context);

@@ -59,0 +63,0 @@ };

@@ -8,7 +8,11 @@ import { __awaiter } from "tslib";

createInitiliasedPromise() {
return new Promise(r => this.initialisedResolve = r);
return __awaiter(this, void 0, void 0, function* () {
return new Promise(r => this.initialisedResolve = r);
});
}
// eslint-disable-next-line @typescript-eslint/no-empty-function
initialise() {
return __awaiter(this, void 0, void 0, function* () { });
}
// eslint-disable-next-line @typescript-eslint/no-empty-function
initialSyncWithDOM() { }

@@ -24,2 +28,3 @@ attached() {

}
// eslint-disable-next-line @typescript-eslint/no-empty-function
destroy() { }

@@ -26,0 +31,0 @@ detached() {

@@ -14,4 +14,5 @@ import { __decorate, __metadata } from "tslib";

getObserver: function (obj, propertyName, descriptor) {
var _a;
if (obj instanceof Element) {
var tagName = obj.getAttribute('as-element') || obj.tagName;
var tagName = (_a = obj.getAttribute('as-element')) !== null && _a !== void 0 ? _a : obj.tagName;
var elAdapters = _this.adapters[tagName];

@@ -46,6 +47,8 @@ if (!elAdapters) {

MdcComponentAdapters.prototype.interceptDetermineDefaultBindingMode = function () {
// eslint-disable-next-line @typescript-eslint/no-this-alias
var mdc = this;
var originalFn = SyntaxInterpreter.prototype.determineDefaultBindingMode;
SyntaxInterpreter.prototype.determineDefaultBindingMode = function (element, attrName, context) {
var tagName = element.getAttribute('as-element') || element.tagName;
var _a;
var tagName = (_a = element.getAttribute('as-element')) !== null && _a !== void 0 ? _a : element.tagName;
var elAdapters = mdc.adapters[tagName];

@@ -58,2 +61,3 @@ if (elAdapters) {

}
// eslint-disable-next-line @typescript-eslint/no-unsafe-return
return originalFn.call(this, element, attrName, context);

@@ -60,0 +64,0 @@ };

@@ -8,5 +8,10 @@ import { __awaiter, __generator } from "tslib";

MdcComponent.prototype.createInitiliasedPromise = function () {
var _this = this;
return new Promise(function (r) { return _this.initialisedResolve = r; });
return __awaiter(this, void 0, void 0, function () {
var _this = this;
return __generator(this, function (_a) {
return [2 /*return*/, new Promise(function (r) { return _this.initialisedResolve = r; })];
});
});
};
// eslint-disable-next-line @typescript-eslint/no-empty-function
MdcComponent.prototype.initialise = function () {

@@ -17,2 +22,3 @@ return __awaiter(this, void 0, void 0, function () { return __generator(this, function (_a) {

};
// eslint-disable-next-line @typescript-eslint/no-empty-function
MdcComponent.prototype.initialSyncWithDOM = function () { };

@@ -35,2 +41,3 @@ MdcComponent.prototype.attached = function () {

};
// eslint-disable-next-line @typescript-eslint/no-empty-function
MdcComponent.prototype.destroy = function () { };

@@ -37,0 +44,0 @@ MdcComponent.prototype.detached = function () {

import { FrameworkConfiguration } from 'aurelia-framework';
export { MdcComponent } from './mdc-component';
export { MdcComponentAdapters } from './mdc-component-adapters';
export { Size } from "./attributes/mdc-size-attribute";
export { Size } from './attributes/mdc-size-attribute';
export { IValidatedElement } from './elements/i-validated-element';
export declare function configure(config: FrameworkConfiguration): void;

@@ -20,3 +20,3 @@ import { MDCFoundation } from '@material/base';

*/
emit<T extends object>(evtType: string, evtData: T, shouldBubble?: boolean): void;
emit<T>(evtType: string, evtData: T, shouldBubble?: boolean): void;
}
{
"name": "@aurelia-mdc-web/base",
"version": "1.0.0-alpha.0",
"version": "1.0.0-alpha.2",
"publishConfig": {

@@ -79,3 +79,3 @@ "access": "public"

},
"gitHead": "78eff8dec12baca3a64c1c6fd9cba1906684084e"
"gitHead": "aefb4adc7036736eae85633bf9322d33ce69a427"
}

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

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

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc