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

@anglify/components

Package Overview
Dependencies
Maintainers
1
Versions
90
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@anglify/components - npm Package Compare versions

Comparing version 0.4.4 to 0.4.5

anglify-components-0.4.5.tgz

10

esm2015/modules/form-field/directives/input.directive.js
import { __decorate } from "tslib";
import { Directive, Optional, Self } from '@angular/core';
import { debounceTime, distinctUntilChanged, map, shareReplay, startWith, switchMap, tap } from 'rxjs/operators';
import { debounceTime, distinctUntilChanged, map, shareReplay, startWith, switchMap } from 'rxjs/operators';
import { observeOnMutation } from '../../../utils/functions';

@@ -23,8 +23,2 @@ import { fromEvent, merge, NEVER, of, Subject } from 'rxjs';

return this.nativeElement.hasAttribute('disabled');
}), tap(disabled => {
var _a, _b, _c, _d;
if (disabled) {
(_b = (_a = this.ngControl) === null || _a === void 0 ? void 0 : _a.control) === null || _b === void 0 ? void 0 : _b.setErrors(null);
(_d = (_c = this.ngControl) === null || _c === void 0 ? void 0 : _c.control) === null || _d === void 0 ? void 0 : _d.markAsPristine();
}
}), shareReplay(1));

@@ -111,2 +105,2 @@ this.floating$ = this.length$.pipe(startWith(false), map(length => length > 0), distinctUntilChanged(), shareReplay(1));

}] }]; } });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5wdXQuZGlyZWN0aXZlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvYW5nbGlmeS9zcmMvbW9kdWxlcy9mb3JtLWZpZWxkL2RpcmVjdGl2ZXMvaW5wdXQuZGlyZWN0aXZlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFzQixRQUFRLEVBQUUsSUFBSSxFQUFFLE1BQU0sZUFBZSxDQUF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NgKTtcbiAgICAgIH1cblxuICAgICAgLy8gb25seSBvbiBmaXJzdCBlbWl0XG4gICAgICBpZiAoaW5kZXggPT09IDApIHtcbiAgICAgICAgaWYgKGxlbmd0aCA+IDApIHtcbiAgICAgICAgICBpZiAobWlubGVuZ3RoICYmIGxlbmd0aCA8IHBhcnNlSW50KG1pbmxlbmd0aCwgMTApKSB7XG4gICAgICAgICAgICByZXR1cm4gb2YoYFRoaXMgZmllbGQgbXVzdCBiZSBhdCBsZWFzdCAke21pbmxlbmd0aH0gY2hhcmFjdGVycyBsb25nYCk7XG4gICAgICAgICAgfVxuICAgICAgICAgIGlmIChwYXR0ZXJuICYmICFuZXcgUmVnRXhwKHBhdHRlcm4pLnRlc3QodmFsdWUpKSB7XG4gICAgICAgICAgICByZXR1cm4gb2YoYFRoaXMgZmllbGQgaXMgaW52YWxpZGApO1xuICAgICAgICAgIH1cbiAgICAgICAgfVxuXG4gICAgICAgIHJldHVybiBORVZFUjtcbiAgICAgIH1cblxuICAgICAgcmV0dXJuIG9mKG51bGwpO1xuICAgIH0pLFxuICAgIGRpc3RpbmN0VW50aWxDaGFuZ2VkKCksXG4gICAgc2hhcmVSZXBsYXkoMSlcbiAgKTtcblxuICBwdWJsaWMgY29uc3RydWN0b3IocHVibGljIHJlYWRvbmx5IGVsZW1lbnRSZWY6IEVsZW1lbnRSZWYsIEBPcHRpb25hbCgpIEBTZWxmKCkgcHVibGljIG5nQ29udHJvbD86IE5nQ29udHJvbCkge31cblxuICBwdWJsaWMgbmdPbkluaXQoKTogdm9pZCB7XG4gICAgaWYgKHRoaXMubmdDb250cm9sKSB7XG4gICAgICBjb25zdCBhYnN0cmFjdENvbnRyb2wgPSB0aGlzLm5nQ29udHJvbC5jb250cm9sO1xuICAgICAgYWJzdHJhY3RDb250cm9sPy5zdGF0dXNDaGFuZ2VzLnBpcGUodW50aWxEZXN0cm95ZWQodGhpcykpLnN1YnNjcmliZSgoKSA9PiB0aGlzLnN0YXR1c0NoYW5nZWQ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aWYgKG1pbmxlbmd0aCAmJiBsZW5ndGggPCBwYXJzZUludChtaW5sZW5ndGgsIDEwKSkge1xuICAgICAgICAgICAgcmV0dXJuIG9mKGBUaGlzIGZpZWxkIG11c3QgYmUgYXQgbGVhc3QgJHttaW5sZW5ndGh9IGNoYXJhY3RlcnMgbG9uZ2ApO1xuICAgICAgICAgIH1cbiAgICAgICAgICBpZiAocGF0dGVybiAmJiAhbmV3IFJlZ0V4cChwYXR0ZXJuKS50ZXN0KHZhbHVlKSkge1xuICAgICAgICAgICAgcmV0dXJuIG9mKGBUaGlzIGZpZWxkIGlzIGludmFsaWRgKTtcbiAgICAgICAgICB9XG4gICAgICAgIH1cblxuICAgICAgICByZXR1cm4gTkVWRVI7XG4gICAgICB9XG5cbiAgICAgIHJldHVybiBvZihudWxsKTtcbiAgICB9KSxcbiAgICBkaXN0aW5jdFVudGlsQ2hhbmdlZCgpLFxuICAgIHNoYXJlUmVwbGF5KDEpXG4gICk7XG5cbiAgcHVibGljIGNvbnN0cnVjdG9yKHB1YmxpYyByZWFkb25seSBlbGVtZW50UmVmOiBFbGVtZW50UmVmLCBAT3B0aW9uYWwoKSBAU2VsZigpIHB1YmxpYyBuZ0NvbnRyb2w/OiBOZ0NvbnRyb2wpIHt9XG5cbiAgcHVibGljIG5nT25Jbml0KCk6IHZvaWQge1xuICAgIGlmICh0aGlzLm5nQ29udHJvbCkge1xuICAgICAgY29uc3QgYWJzdHJhY3RDb250cm9sID0gdGhpcy5uZ0NvbnRyb2wuY29udHJvbDtcbiAgICAgIGFic3RyYWN0Q29udHJvbD8uc3RhdHVzQ2hhbmdlcy5waXBlKHVudGlsRGVzdHJveWVkKHRoaXMpKS5zdWJzY3JpYmUoKCkgPT4gdGhpcy5zdGF0dXNDaGFuZ2VkJC5uZXh0KCkpO1xuICAgIH1cbiAgfVxufVxuIl19

2

package.json
{
"name": "@anglify/components",
"version": "0.4.4",
"version": "0.4.5",
"peerDependencies": {

@@ -5,0 +5,0 @@ "@angular/common": "^12.1.0",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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