How to use the tslib.__metadata function in tslib

To help you get started, we’ve selected a few tslib examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github aurelia / aurelia / packages / testing / dist / esnext / au-dom.js View on Github external
realTarget = AuNode.createText();
            target.parentNode.insertBefore(realTarget, target);
        }
        else {
            realTarget = target;
        }
        const bindable = new PropertyBinding(instruction.from, realTarget, 'textContent', BindingMode.toView, this.observerLocator, context);
        controller.addBinding(bindable);
    }
};
AuTextRenderer = __decorate([
    inject(IObserverLocator),
    instructionRenderer('au')
    /** @internal */
    ,
    __metadata("design:paramtypes", [Object])
], AuTextRenderer);
export { AuTextRenderer };
export const AuDOMConfiguration = {
    register(container) {
        container.register(RuntimeConfiguration, AuTextRenderer, Registration.singleton(IDOM, AuDOM), Registration.singleton(IDOMInitializer, AuDOMInitializer), Registration.singleton(IProjectorLocator, AuProjectorLocator), Registration.singleton(ITargetAccessorLocator, AuObserverLocator), Registration.singleton(ITargetObserverLocator, AuObserverLocator), Registration.instance(ITemplateCompiler, {}));
    },
    createContainer() {
        const scheduler = TestContext.createHTMLTestContext().scheduler;
        const container = DI.createContainer();
        container.register(AuDOMConfiguration);
        Registration.instance(IScheduler, scheduler).register(container);
        return container;
    }
};
export const AuDOMTest = {
    setup() {
github aurelia / aurelia / packages / testing / dist / umd / resources.js View on Github external
toView(input) {
            return JSON.stringify(input);
        }
        fromView(input) {
            return JSON.parse(input);
        }
    };
    JsonValueConverter = tslib_1.__decorate([
        runtime_1.valueConverter('json')
    ], JsonValueConverter);
    exports.JsonValueConverter = JsonValueConverter;
    let NameTag = class NameTag {
    };
    tslib_1.__decorate([
        runtime_1.bindable(),
        tslib_1.__metadata("design:type", String)
    ], NameTag.prototype, "name", void 0);
    NameTag = tslib_1.__decorate([
        runtime_1.customElement({
            name: 'name-tag',
            template: `<template>\${name}</template>`,
            needsCompile: true,
            dependencies: [],
            instructions: [],
            surrogates: []
        })
    ], NameTag);
    const globalResources = [
        SortValueConverter,
        JsonValueConverter,
        NameTag
    ];
github coreui / coreui-angular / dist / @coreui / angular / esm5 / lib / breadcrumb / app-breadcrumb.component.js View on Github external
};
    AppBreadcrumbComponent.prototype.isFixed = function (fixed) {
        if (fixed === void 0) { fixed = this.fixed; }
        if (fixed) {
            this.renderer.addClass(this.document.body, this.fixedClass);
        }
    };
    AppBreadcrumbComponent.ctorParameters = function () { return [
        { type: undefined, decorators: [{ type: Inject, args: [DOCUMENT,] }] },
        { type: Renderer2 },
        { type: AppBreadcrumbService },
        { type: ElementRef }
    ]; };
    __decorate([
        Input(),
        __metadata("design:type", Boolean)
    ], AppBreadcrumbComponent.prototype, "fixed", void 0);
    AppBreadcrumbComponent = __decorate([
        Component({
            selector: 'app-breadcrumb',
            template: "\n    \n      <li class="\&quot;breadcrumb-item\&quot;\n">\n        <a>{{breadcrumb.label.title}}</a>\n        <span>{{breadcrumb.label.title}}</span>\n      </li>\n    \n  "
        }),
        __param(0, Inject(DOCUMENT)),
        __metadata("design:paramtypes", [Object, Renderer2,
            AppBreadcrumbService,
            ElementRef])
    ], AppBreadcrumbComponent);
    return AppBreadcrumbComponent;
}());
export { AppBreadcrumbComponent };
github abpframework / abp / npm / ng-packs / dist / core / fesm5 / abp-ng.core.js View on Github external
Action(SetLanguage),
        __metadata("design:type", Function),
        __metadata("design:paramtypes", [Object, SetLanguage]),
        __metadata("design:returntype", void 0)
    ], SessionState.prototype, "setLanguage", null);
    __decorate([
        Action(SetTenant),
        __metadata("design:type", Function),
        __metadata("design:paramtypes", [Object, SetTenant]),
        __metadata("design:returntype", void 0)
    ], SessionState.prototype, "setTenantId", null);
    __decorate([
        Selector(),
        __metadata("design:type", Function),
        __metadata("design:paramtypes", [Object]),
        __metadata("design:returntype", String)
    ], SessionState, "getLanguage", null);
    __decorate([
        Selector(),
        __metadata("design:type", Function),
        __metadata("design:paramtypes", [Object]),
        __metadata("design:returntype", Object)
    ], SessionState, "getTenant", null);
    SessionState = __decorate([
        State({
            name: 'SessionState',
            defaults: (/** @type {?} */ ({})),
        }),
        __metadata("design:paramtypes", [LocalizationService])
    ], SessionState);
    return SessionState;
}());
github hyurl / sfn / dist / controllers / websocket / User.js View on Github external
};
        return modelar_1.User.use(socket.db).login(options).then(user => {
            socket.session.uid = user.id;
            return user;
        });
    }
    logout(socket) {
        delete socket.session.uid;
        return socket.user;
    }
}
tslib_1.__decorate([
    sfn_1.event("/user/create"),
    tslib_1.__metadata("design:type", Function),
    tslib_1.__metadata("design:paramtypes", [Object, Object]),
    tslib_1.__metadata("design:returntype", void 0)
], default_1.prototype, "create", null);
tslib_1.__decorate([
    sfn_1.event("/user/get"),
    tslib_1.__metadata("design:type", Function),
    tslib_1.__metadata("design:paramtypes", [Object, Object]),
    tslib_1.__metadata("design:returntype", Promise)
], default_1.prototype, "get", null);
tslib_1.__decorate([
    sfn_1.event("/user/update"),
    tslib_1.__metadata("design:type", Function),
    tslib_1.__metadata("design:paramtypes", [Object, Object]),
    tslib_1.__metadata("design:returntype", void 0)
], default_1.prototype, "update", null);
tslib_1.__decorate([
    sfn_1.event("/user/delate"),
    tslib_1.__metadata("design:type", Function),
github aurelia / aurelia / packages / router / dist / esnext / queue.js View on Github external
return;
        }
        this.processing = this.pending.shift() || null;
        if (this.processing) {
            this.currentExecutionCostInCurrentTick += this.processing.cost || 0;
            this.callback(this.processing);
        }
    }
    clear() {
        this.pending.splice(0, this.pending.length);
    }
}
__decorate([
    bound,
    __metadata("design:type", Function),
    __metadata("design:paramtypes", [Number]),
    __metadata("design:returntype", void 0)
], Queue.prototype, "dequeue", null);
//# sourceMappingURL=queue.js.map
github Teradata / covalent-nightly / file / file-input / file-input.component.js View on Github external
/**
     * Used to clear the selected files from the [TdFileInputComponent].
     */
    TdFileInputComponent.prototype.clear = function () {
        this.writeValue(undefined);
        this._renderer.setProperty(this.inputElement, 'value', '');
    };
    /** Method executed when the disabled value changes */
    TdFileInputComponent.prototype.onDisabledChange = function (v) {
        if (v) {
            this.clear();
        }
    };
    tslib_1.__decorate([
        ViewChild('fileInput'),
        tslib_1.__metadata("design:type", ElementRef)
    ], TdFileInputComponent.prototype, "_inputElement", void 0);
    tslib_1.__decorate([
        Input('color'),
        tslib_1.__metadata("design:type", String)
    ], TdFileInputComponent.prototype, "color", void 0);
    tslib_1.__decorate([
        Input('multiple'),
        tslib_1.__metadata("design:type", Boolean),
        tslib_1.__metadata("design:paramtypes", [Boolean])
    ], TdFileInputComponent.prototype, "multiple", null);
    tslib_1.__decorate([
        Input('accept'),
        tslib_1.__metadata("design:type", String)
    ], TdFileInputComponent.prototype, "accept", void 0);
    tslib_1.__decorate([
        Output('select'),
github coreui / coreui-angular / dist / @coreui / angular / fesm5 / coreui-angular.js View on Github external
function AppSidebarNavComponent(router) {
        this.router = router;
        this.navItems = [];
        this._sidebarBav = true;
        this.role = 'nav';
        this.navItemsArray = [];
    }
    AppSidebarNavComponent.prototype.ngOnChanges = function (changes) {
        this.navItemsArray = Array.isArray(this.navItems) ? this.navItems.slice() : [];
    };
    AppSidebarNavComponent.ctorParameters = function () { return [
        { type: Router }
    ]; };
    __decorate([
        Input(),
        __metadata("design:type", Array)
    ], AppSidebarNavComponent.prototype, "navItems", void 0);
    __decorate([
        HostBinding('class.sidebar-nav'),
        __metadata("design:type", Object)
    ], AppSidebarNavComponent.prototype, "_sidebarBav", void 0);
    __decorate([
        HostBinding('attr.role'), Input(),
        __metadata("design:type", Object)
    ], AppSidebarNavComponent.prototype, "role", void 0);
    AppSidebarNavComponent = __decorate([
        Component({
            selector: 'app-sidebar-nav, cui-sidebar-nav',
            template: "\n\n"
        }),
        __metadata("design:paramtypes", [Router])
    ], AppSidebarNavComponent);
github abpframework / abp / npm / ng-packs / dist / core / esm5 / lib / states / config.state.js View on Github external
});
    };
    var ConfigState_1;
    ConfigState.ctorParameters = function () { return [
        { type: ApplicationConfigurationService },
        { type: Store }
    ]; };
    tslib_1.__decorate([
        Action(GetAppConfiguration),
        tslib_1.__metadata("design:type", Function),
        tslib_1.__metadata("design:paramtypes", [Object]),
        tslib_1.__metadata("design:returntype", void 0)
    ], ConfigState.prototype, "addData", null);
    tslib_1.__decorate([
        Action(PatchRouteByName),
        tslib_1.__metadata("design:type", Function),
        tslib_1.__metadata("design:paramtypes", [Object, PatchRouteByName]),
        tslib_1.__metadata("design:returntype", void 0)
    ], ConfigState.prototype, "patchRoute", null);
    tslib_1.__decorate([
        Selector(),
        tslib_1.__metadata("design:type", Function),
        tslib_1.__metadata("design:paramtypes", [Object]),
        tslib_1.__metadata("design:returntype", void 0)
    ], ConfigState, "getAll", null);
    tslib_1.__decorate([
        Selector(),
        tslib_1.__metadata("design:type", Function),
        tslib_1.__metadata("design:paramtypes", [Object]),
        tslib_1.__metadata("design:returntype", Object)
    ], ConfigState, "getApplicationInfo", null);
    ConfigState = ConfigState_1 = tslib_1.__decorate([
github abpframework / abp / npm / ng-packs / dist / identity / fesm2015 / abp-ng.identity.js View on Github external
], IdentityState, "getRoles", null);
__decorate([
    Selector(),
    __metadata("design:type", Function),
    __metadata("design:paramtypes", [Object]),
    __metadata("design:returntype", Number)
], IdentityState, "getRolesTotalCount", null);
__decorate([
    Selector(),
    __metadata("design:type", Function),
    __metadata("design:paramtypes", [Object]),
    __metadata("design:returntype", Array)
], IdentityState, "getUsers", null);
__decorate([
    Selector(),
    __metadata("design:type", Function),
    __metadata("design:paramtypes", [Object]),
    __metadata("design:returntype", Number)
], IdentityState, "getUsersTotalCount", null);
IdentityState = __decorate([
    State({
        name: 'IdentityState',
        defaults: (/** @type {?} */ ({ roles: {}, selectedRole: {}, users: {}, selectedUser: {} })),
    }),
    __metadata("design:paramtypes", [IdentityService])
], IdentityState);
if (false) {
    /**
     * @type {?}
     * @private
     */
    IdentityState.prototype.identityService;