UNPKG

primeng

Version:

PrimeNG is an open source UI library for Angular featuring a rich set of 80+ components, a theme designer, various theme alternatives such as Material, Bootstrap, Tailwind, premium templates and professional support. In addition, it integrates with PrimeB

59 lines (55 loc) 4.4 kB
import * as i0 from '@angular/core'; import { Component } from '@angular/core'; import { uuid } from '@primeuix/utils'; import { BaseIcon } from 'primeng/icons/baseicon'; class PlusIcon extends BaseIcon { pathId; ngOnInit() { this.pathId = 'url(#' + uuid() + ')'; } static ɵfac = /*@__PURE__*/ (() => { let ɵPlusIcon_BaseFactory; return function PlusIcon_Factory(__ngFactoryType__) { return (ɵPlusIcon_BaseFactory || (ɵPlusIcon_BaseFactory = i0.ɵɵgetInheritedFactory(PlusIcon)))(__ngFactoryType__ || PlusIcon); }; })(); static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PlusIcon, selectors: [["PlusIcon"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 6, vars: 7, consts: [["width", "14", "height", "14", "viewBox", "0 0 14 14", "fill", "none", "xmlns", "http://www.w3.org/2000/svg"], ["d", "M7.67742 6.32258V0.677419C7.67742 0.497757 7.60605 0.325452 7.47901 0.198411C7.35197 0.0713707 7.17966 0 7 0C6.82034 0 6.64803 0.0713707 6.52099 0.198411C6.39395 0.325452 6.32258 0.497757 6.32258 0.677419V6.32258H0.677419C0.497757 6.32258 0.325452 6.39395 0.198411 6.52099C0.0713707 6.64803 0 6.82034 0 7C0 7.17966 0.0713707 7.35197 0.198411 7.47901C0.325452 7.60605 0.497757 7.67742 0.677419 7.67742H6.32258V13.3226C6.32492 13.5015 6.39704 13.6725 6.52358 13.799C6.65012 13.9255 6.82106 13.9977 7 14C7.17966 14 7.35197 13.9286 7.47901 13.8016C7.60605 13.6745 7.67742 13.5022 7.67742 13.3226V7.67742H13.3226C13.5022 7.67742 13.6745 7.60605 13.8016 7.47901C13.9286 7.35197 14 7.17966 14 7C13.9977 6.82106 13.9255 6.65012 13.799 6.52358C13.6725 6.39704 13.5015 6.32492 13.3226 6.32258H7.67742Z", "fill", "currentColor"], [3, "id"], ["width", "14", "height", "14", "fill", "white"]], template: function PlusIcon_Template(rf, ctx) { if (rf & 1) { i0.ɵɵnamespaceSVG(); i0.ɵɵelementStart(0, "svg", 0)(1, "g"); i0.ɵɵelement(2, "path", 1); i0.ɵɵelementEnd(); i0.ɵɵelementStart(3, "defs")(4, "clipPath", 2); i0.ɵɵelement(5, "rect", 3); i0.ɵɵelementEnd()()(); } if (rf & 2) { i0.ɵɵclassMap(ctx.getClassNames()); i0.ɵɵattribute("aria-label", ctx.ariaLabel)("aria-hidden", ctx.ariaHidden)("role", ctx.role); i0.ɵɵadvance(); i0.ɵɵattribute("clip-path", ctx.pathId); i0.ɵɵadvance(3); i0.ɵɵproperty("id", ctx.pathId); } }, encapsulation: 2 }); } (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PlusIcon, [{ type: Component, args: [{ selector: 'PlusIcon', standalone: true, template: ` <svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg" [attr.aria-label]="ariaLabel" [attr.aria-hidden]="ariaHidden" [attr.role]="role" [class]="getClassNames()"> <g [attr.clip-path]="pathId"> <path d="M7.67742 6.32258V0.677419C7.67742 0.497757 7.60605 0.325452 7.47901 0.198411C7.35197 0.0713707 7.17966 0 7 0C6.82034 0 6.64803 0.0713707 6.52099 0.198411C6.39395 0.325452 6.32258 0.497757 6.32258 0.677419V6.32258H0.677419C0.497757 6.32258 0.325452 6.39395 0.198411 6.52099C0.0713707 6.64803 0 6.82034 0 7C0 7.17966 0.0713707 7.35197 0.198411 7.47901C0.325452 7.60605 0.497757 7.67742 0.677419 7.67742H6.32258V13.3226C6.32492 13.5015 6.39704 13.6725 6.52358 13.799C6.65012 13.9255 6.82106 13.9977 7 14C7.17966 14 7.35197 13.9286 7.47901 13.8016C7.60605 13.6745 7.67742 13.5022 7.67742 13.3226V7.67742H13.3226C13.5022 7.67742 13.6745 7.60605 13.8016 7.47901C13.9286 7.35197 14 7.17966 14 7C13.9977 6.82106 13.9255 6.65012 13.799 6.52358C13.6725 6.39704 13.5015 6.32492 13.3226 6.32258H7.67742Z" fill="currentColor" /> </g> <defs> <clipPath [id]="pathId"> <rect width="14" height="14" fill="white" /> </clipPath> </defs> </svg> ` }] }], null, null); })(); (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(PlusIcon, { className: "PlusIcon", filePath: "plus.ts", lineNumber: 24 }); })(); /** * Generated bundle index. Do not edit. */ export { PlusIcon }; //# sourceMappingURL=primeng-icons-plus.mjs.map