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

@hackages/ngxerrors

Package Overview
Dependencies
Maintainers
3
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hackages/ngxerrors - npm Package Compare versions

Comparing version 6.0.4 to 7.0.0

100

bundle/hackages.ngxerrors.umd.js
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/forms'), require('rxjs'), require('rxjs/operators')) :
typeof define === 'function' && define.amd ? define(['exports', '@angular/core', '@angular/forms', 'rxjs', 'rxjs/operators'], factory) :
(factory((global.ngxerrors = {}),null,null,null,null));
(factory((global.ngxerrors = {}),global.core,global.forms,global.rxjs,global.operators));
}(this, (function (exports,core,forms,rxjs,operators) { 'use strict';

@@ -9,2 +9,11 @@

var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var NgxErrorsDirective = /** @class */ (function () {

@@ -81,18 +90,28 @@ function NgxErrorsDirective(form) {

};
NgxErrorsDirective.decorators = [
{ type: core.Directive, args: [{
selector: '[ngxErrors]',
exportAs: 'ngxErrors'
},] },
];
/** @nocollapse */
NgxErrorsDirective.ctorParameters = function () { return [
{ type: forms.FormGroupDirective, },
]; };
NgxErrorsDirective.propDecorators = {
"controlName": [{ type: core.Input, args: ['ngxErrors',] },],
};
__decorate([
core.Input('ngxErrors'),
__metadata("design:type", String)
], NgxErrorsDirective.prototype, "controlName", void 0);
NgxErrorsDirective = __decorate([
core.Directive({
selector: '[ngxErrors]',
exportAs: 'ngxErrors'
}),
__metadata("design:paramtypes", [forms.FormGroupDirective])
], NgxErrorsDirective);
return NgxErrorsDirective;
}());
var __decorate$1 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata$1 = (undefined && undefined.__metadata) || function (k, v) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __param = (undefined && undefined.__param) || function (paramIndex, decorator) {
return function (target, key) { decorator(target, key, paramIndex); }
};
var NgxErrorDirective = /** @class */ (function () {

@@ -138,19 +157,32 @@ function NgxErrorDirective(ngxErrors) {

};
NgxErrorDirective.decorators = [
{ type: core.Directive, args: [{
selector: '[ngxError]'
},] },
];
/** @nocollapse */
NgxErrorDirective.ctorParameters = function () { return [
{ type: NgxErrorsDirective, decorators: [{ type: core.Inject, args: [core.forwardRef(function () { return NgxErrorsDirective; }),] },] },
]; };
NgxErrorDirective.propDecorators = {
"ngxError": [{ type: core.Input },],
"when": [{ type: core.Input },],
"hidden": [{ type: core.HostBinding, args: ['hidden',] },],
};
__decorate$1([
core.Input(),
__metadata$1("design:type", Object),
__metadata$1("design:paramtypes", [Object])
], NgxErrorDirective.prototype, "ngxError", null);
__decorate$1([
core.Input(),
__metadata$1("design:type", Object),
__metadata$1("design:paramtypes", [Object])
], NgxErrorDirective.prototype, "when", null);
__decorate$1([
core.HostBinding('hidden'),
__metadata$1("design:type", Boolean)
], NgxErrorDirective.prototype, "hidden", void 0);
NgxErrorDirective = __decorate$1([
core.Directive({
selector: '[ngxError]'
}),
__param(0, core.Inject(core.forwardRef(function () { return NgxErrorsDirective; }))),
__metadata$1("design:paramtypes", [NgxErrorsDirective])
], NgxErrorDirective);
return NgxErrorDirective;
}());
var __decorate$2 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var dependencies = [

@@ -163,8 +195,8 @@ NgxErrorsDirective,

}
NgxErrorsModule.decorators = [
{ type: core.NgModule, args: [{
declarations: dependencies.slice(),
exports: dependencies.slice()
},] },
];
NgxErrorsModule = __decorate$2([
core.NgModule({
declarations: dependencies.slice(),
exports: dependencies.slice()
})
], NgxErrorsModule);
return NgxErrorsModule;

@@ -171,0 +203,0 @@ }());

{
"name": "@hackages/ngxerrors",
"version": "6.0.4",
"version": "7.0.0",
"description": "A declarative validation module for reactive forms",

@@ -15,4 +15,4 @@ "main": "bundle/hackages.ngxerrors.umd.js",

"peerDependencies": {
"@angular/forms": "^6.0.3"
"@angular/forms": "^7.0.0"
}
}

@@ -0,1 +1,13 @@

var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __param = (this && this.__param) || function (paramIndex, decorator) {
return function (target, key) { decorator(target, key, paramIndex); }
};
import { Directive, forwardRef, HostBinding, Inject, Input } from '@angular/core';

@@ -46,16 +58,23 @@ import { combineLatest, Subject } from 'rxjs';

};
NgxErrorDirective.decorators = [
{ type: Directive, args: [{
selector: '[ngxError]'
},] },
];
/** @nocollapse */
NgxErrorDirective.ctorParameters = function () { return [
{ type: NgxErrorsDirective, decorators: [{ type: Inject, args: [forwardRef(function () { return NgxErrorsDirective; }),] },] },
]; };
NgxErrorDirective.propDecorators = {
"ngxError": [{ type: Input },],
"when": [{ type: Input },],
"hidden": [{ type: HostBinding, args: ['hidden',] },],
};
__decorate([
Input(),
__metadata("design:type", Object),
__metadata("design:paramtypes", [Object])
], NgxErrorDirective.prototype, "ngxError", null);
__decorate([
Input(),
__metadata("design:type", Object),
__metadata("design:paramtypes", [Object])
], NgxErrorDirective.prototype, "when", null);
__decorate([
HostBinding('hidden'),
__metadata("design:type", Boolean)
], NgxErrorDirective.prototype, "hidden", void 0);
NgxErrorDirective = __decorate([
Directive({
selector: '[ngxError]'
}),
__param(0, Inject(forwardRef(function () { return NgxErrorsDirective; }))),
__metadata("design:paramtypes", [NgxErrorsDirective])
], NgxErrorDirective);
return NgxErrorDirective;

@@ -62,0 +81,0 @@ }());

@@ -12,5 +12,3 @@ import { AfterViewInit, OnChanges, OnDestroy } from '@angular/core';

constructor(form: FormGroupDirective);
readonly errors: {
[key: string]: any;
};
readonly errors: import("@angular/forms/src/directives/validators").ValidationErrors;
readonly hasErrors: boolean;

@@ -20,4 +18,4 @@ hasError(name: string, conditions: ErrorOptions): boolean;

getError(name: string): any;
private checkPropState(prop, name, conditions);
private checkStatus();
private checkPropState;
private checkStatus;
ngOnInit(): void;

@@ -24,0 +22,0 @@ ngOnChanges(): void;

@@ -0,1 +1,10 @@

var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
import { Directive, Input } from '@angular/core';

@@ -76,15 +85,13 @@ import { FormGroupDirective } from '@angular/forms';

};
NgxErrorsDirective.decorators = [
{ type: Directive, args: [{
selector: '[ngxErrors]',
exportAs: 'ngxErrors'
},] },
];
/** @nocollapse */
NgxErrorsDirective.ctorParameters = function () { return [
{ type: FormGroupDirective, },
]; };
NgxErrorsDirective.propDecorators = {
"controlName": [{ type: Input, args: ['ngxErrors',] },],
};
__decorate([
Input('ngxErrors'),
__metadata("design:type", String)
], NgxErrorsDirective.prototype, "controlName", void 0);
NgxErrorsDirective = __decorate([
Directive({
selector: '[ngxErrors]',
exportAs: 'ngxErrors'
}),
__metadata("design:paramtypes", [FormGroupDirective])
], NgxErrorsDirective);
return NgxErrorsDirective;

@@ -91,0 +98,0 @@ }());

@@ -0,1 +1,7 @@

var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
import { NgModule } from '@angular/core';

@@ -11,8 +17,8 @@ import { NgxErrorsDirective } from './ngxerrors.directive';

}
NgxErrorsModule.decorators = [
{ type: NgModule, args: [{
declarations: dependencies.slice(),
exports: dependencies.slice()
},] },
];
NgxErrorsModule = __decorate([
NgModule({
declarations: dependencies.slice(),
exports: dependencies.slice()
})
], NgxErrorsModule);
return NgxErrorsModule;

@@ -19,0 +25,0 @@ }());

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