@primeicons/angular 8.0.0-alpha.1 → 8.0.0-alpha.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -79,8 +79,9 @@ class CoreIcon {
79
79
  return this.computedSize();
80
80
  }
81
81
  hostViewBox = '0 0 14 14';
82
- hostFill = 'currentColor';
82
+ hostFill = 'none';
83
83
  hostXmlns = 'http://www.w3.org/2000/svg';
84
+ hostAriaHidden = 'true';
84
85
  get hostClass() {
85
86
  return this.computedClass();
86
87
  }
@@ -88,7 +89,7 @@ class CoreIcon {
88
89
  return this.color() || null;
89
90
  }
90
91
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: CoreIcon, deps: [], target: i0.ɵɵFactoryTarget.Directive });
91
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.1.3", type: CoreIcon, isStandalone: true, inputs: { size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, styleClass: { classPropertyName: "styleClass", publicName: "styleClass", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "attr.width": "this.hostWidth", "attr.height": "this.hostHeight", "attr.viewBox": "this.hostViewBox", "attr.fill": "this.hostFill", "attr.xmlns": "this.hostXmlns", "class": "this.hostClass", "style.color": "this.hostColor" } }, ngImport: i0 });
92
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.1.3", type: CoreIcon, isStandalone: true, inputs: { size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, styleClass: { classPropertyName: "styleClass", publicName: "styleClass", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "attr.width": "this.hostWidth", "attr.height": "this.hostHeight", "attr.viewBox": "this.hostViewBox", "attr.fill": "this.hostFill", "attr.xmlns": "this.hostXmlns", "attr.aria-hidden": "this.hostAriaHidden", "class": "this.hostClass", "style.color": "this.hostColor" } }, ngImport: i0 });
92
93
  }
93
94
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: CoreIcon, decorators: [{
94
95
  type: Directive
@@ -107,6 +108,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImpor
107
108
  }], hostXmlns: [{
108
109
  type: HostBinding,
109
110
  args: ['attr.xmlns']
111
+ }], hostAriaHidden: [{
112
+ type: HostBinding,
113
+ args: ['attr.aria-hidden']
110
114
  }], hostClass: [{
111
115
  type: HostBinding,
112
116
  args: ['class']
@@ -1 +1 @@
1
- {"version":3,"file":"primeicons-angular-core.mjs","sources":["../../src/core/index.ts","../../src/core/primeicons-angular-core.ts"],"sourcesContent":["import { computed, Directive, HostBinding, input } from '@angular/core';\nimport type { IconProps as CoreIconProps, IconData, IconNodes } from '@primeicons/core/types';\nimport { cn } from '@primeuix/utils/classnames';\n\n// Shared template for all icon components\nexport const ICON_TEMPLATE = `\n @for (node of iconNodes; track node[1]['key'] || $index) {\n @switch (node[0]) {\n @case ('path') {\n <svg:path\n [attr.d]=\"node[1]['d']\"\n [attr.fill]=\"node[1]['fill']\"\n [attr.fill-rule]=\"node[1]['fillRule']\"\n [attr.clip-rule]=\"node[1]['clipRule']\"\n [attr.stroke]=\"node[1]['stroke']\"\n [attr.stroke-width]=\"node[1]['strokeWidth']\"\n />\n }\n @case ('circle') {\n <svg:circle\n [attr.cx]=\"node[1]['cx']\"\n [attr.cy]=\"node[1]['cy']\"\n [attr.r]=\"node[1]['r']\"\n [attr.fill]=\"node[1]['fill']\"\n />\n }\n @case ('rect') {\n <svg:rect\n [attr.x]=\"node[1]['x']\"\n [attr.y]=\"node[1]['y']\"\n [attr.width]=\"node[1]['width']\"\n [attr.height]=\"node[1]['height']\"\n [attr.rx]=\"node[1]['rx']\"\n [attr.ry]=\"node[1]['ry']\"\n [attr.fill]=\"node[1]['fill']\"\n />\n }\n @case ('line') {\n <svg:line\n [attr.x1]=\"node[1]['x1']\"\n [attr.y1]=\"node[1]['y1']\"\n [attr.x2]=\"node[1]['x2']\"\n [attr.y2]=\"node[1]['y2']\"\n [attr.stroke]=\"node[1]['stroke']\"\n />\n }\n @case ('polyline') {\n <svg:polyline [attr.points]=\"node[1]['points']\" [attr.fill]=\"node[1]['fill']\" />\n }\n @case ('polygon') {\n <svg:polygon [attr.points]=\"node[1]['points']\" [attr.fill]=\"node[1]['fill']\" />\n }\n @case ('ellipse') {\n <svg:ellipse\n [attr.cx]=\"node[1]['cx']\"\n [attr.cy]=\"node[1]['cy']\"\n [attr.rx]=\"node[1]['rx']\"\n [attr.ry]=\"node[1]['ry']\"\n [attr.fill]=\"node[1]['fill']\"\n />\n }\n }\n }\n`;\n\n@Directive()\nexport class CoreIcon {\n _icon: IconData | null = null;\n\n size = input<number | string | undefined>(undefined);\n color = input<string | undefined>(undefined);\n styleClass = input<string | undefined>(undefined);\n\n get iconNodes(): IconNodes {\n return this._icon?.nodes ?? [];\n }\n\n computedSize = computed(() => this.size() ?? 14);\n computedClass = computed(() => cn('p-icon', this._icon?.name && `p-icon-${this._icon.name}`, this.styleClass()));\n\n @HostBinding('attr.width') get hostWidth() {\n return this.computedSize();\n }\n @HostBinding('attr.height') get hostHeight() {\n return this.computedSize();\n }\n @HostBinding('attr.viewBox') hostViewBox = '0 0 14 14';\n @HostBinding('attr.fill') hostFill = 'currentColor';\n @HostBinding('attr.xmlns') hostXmlns = 'http://www.w3.org/2000/svg';\n @HostBinding('class') get hostClass() {\n return this.computedClass();\n }\n @HostBinding('style.color') get hostColor() {\n return this.color() || null;\n }\n}\n\nexport type { CoreIconProps, IconData };\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAIA;AACO,MAAM,aAAa,GAAG;;;;;;;;;;;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AAA,EAAA,iBAAA,EAAA,MAAA,EAAA,UAAA,EAAA,MAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,KAAA,EAAA,EAAA,iBAAA,EAAA,OAAA,EAAA,UAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,iBAAA,EAAA,YAAA,EAAA,UAAA,EAAA,YAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,YAAA,EAAA,gBAAA,EAAA,aAAA,EAAA,iBAAA,EAAA,cAAA,EAAA,kBAAA,EAAA,WAAA,EAAA,eAAA,EAAA,YAAA,EAAA,gBAAA,EAAA,OAAA,EAAA,gBAAA,EAAA,aAAA,EAAA,gBAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;2FAAR,QAAQ,EAAA,UAAA,EAAA,CAAA;kBADpB;;sBAeI,WAAW;uBAAC,YAAY;;sBAGxB,WAAW;uBAAC,aAAa;;sBAGzB,WAAW;uBAAC,cAAc;;sBAC1B,WAAW;uBAAC,WAAW;;sBACvB,WAAW;uBAAC,YAAY;;sBACxB,WAAW;uBAAC,OAAO;;sBAGnB,WAAW;uBAAC,aAAa;;;AC5F9B;;AAEG;;;;"}
1
+ {"version":3,"file":"primeicons-angular-core.mjs","sources":["../../src/core/index.ts","../../src/core/primeicons-angular-core.ts"],"sourcesContent":["import { computed, Directive, HostBinding, input } from '@angular/core';\nimport type { IconProps as CoreIconProps, IconData, IconNodes } from '@primeicons/core/types';\nimport { cn } from '@primeuix/utils/classnames';\n\n// Shared template for all icon components\nexport const ICON_TEMPLATE = `\n @for (node of iconNodes; track node[1]['key'] || $index) {\n @switch (node[0]) {\n @case ('path') {\n <svg:path\n [attr.d]=\"node[1]['d']\"\n [attr.fill]=\"node[1]['fill']\"\n [attr.fill-rule]=\"node[1]['fillRule']\"\n [attr.clip-rule]=\"node[1]['clipRule']\"\n [attr.stroke]=\"node[1]['stroke']\"\n [attr.stroke-width]=\"node[1]['strokeWidth']\"\n />\n }\n @case ('circle') {\n <svg:circle\n [attr.cx]=\"node[1]['cx']\"\n [attr.cy]=\"node[1]['cy']\"\n [attr.r]=\"node[1]['r']\"\n [attr.fill]=\"node[1]['fill']\"\n />\n }\n @case ('rect') {\n <svg:rect\n [attr.x]=\"node[1]['x']\"\n [attr.y]=\"node[1]['y']\"\n [attr.width]=\"node[1]['width']\"\n [attr.height]=\"node[1]['height']\"\n [attr.rx]=\"node[1]['rx']\"\n [attr.ry]=\"node[1]['ry']\"\n [attr.fill]=\"node[1]['fill']\"\n />\n }\n @case ('line') {\n <svg:line\n [attr.x1]=\"node[1]['x1']\"\n [attr.y1]=\"node[1]['y1']\"\n [attr.x2]=\"node[1]['x2']\"\n [attr.y2]=\"node[1]['y2']\"\n [attr.stroke]=\"node[1]['stroke']\"\n />\n }\n @case ('polyline') {\n <svg:polyline [attr.points]=\"node[1]['points']\" [attr.fill]=\"node[1]['fill']\" />\n }\n @case ('polygon') {\n <svg:polygon [attr.points]=\"node[1]['points']\" [attr.fill]=\"node[1]['fill']\" />\n }\n @case ('ellipse') {\n <svg:ellipse\n [attr.cx]=\"node[1]['cx']\"\n [attr.cy]=\"node[1]['cy']\"\n [attr.rx]=\"node[1]['rx']\"\n [attr.ry]=\"node[1]['ry']\"\n [attr.fill]=\"node[1]['fill']\"\n />\n }\n }\n }\n`;\n\n@Directive()\nexport class CoreIcon {\n _icon: IconData | null = null;\n\n size = input<number | string | undefined>(undefined);\n color = input<string | undefined>(undefined);\n styleClass = input<string | undefined>(undefined);\n\n get iconNodes(): IconNodes {\n return this._icon?.nodes ?? [];\n }\n\n computedSize = computed(() => this.size() ?? 14);\n computedClass = computed(() => cn('p-icon', this._icon?.name && `p-icon-${this._icon.name}`, this.styleClass()));\n\n @HostBinding('attr.width') get hostWidth() {\n return this.computedSize();\n }\n @HostBinding('attr.height') get hostHeight() {\n return this.computedSize();\n }\n @HostBinding('attr.viewBox') hostViewBox = '0 0 14 14';\n @HostBinding('attr.fill') hostFill = 'none';\n @HostBinding('attr.xmlns') hostXmlns = 'http://www.w3.org/2000/svg';\n @HostBinding('attr.aria-hidden') hostAriaHidden = 'true';\n @HostBinding('class') get hostClass() {\n return this.computedClass();\n }\n @HostBinding('style.color') get hostColor() {\n return this.color() || null;\n }\n}\n\nexport type { CoreIconProps, IconData };\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAIA;AACO,MAAM,aAAa,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA6DhB,QAAQ,CAAA;IACjB,KAAK,GAAoB,IAAI;AAE7B,IAAA,IAAI,GAAG,KAAK,CAA8B,SAAS,gDAAC;AACpD,IAAA,KAAK,GAAG,KAAK,CAAqB,SAAS,iDAAC;AAC5C,IAAA,UAAU,GAAG,KAAK,CAAqB,SAAS,sDAAC;AAEjD,IAAA,IAAI,SAAS,GAAA;AACT,QAAA,OAAO,IAAI,CAAC,KAAK,EAAE,KAAK,IAAI,EAAE;IAClC;AAEA,IAAA,YAAY,GAAG,QAAQ,CAAC,MAAM,IAAI,CAAC,IAAI,EAAE,IAAI,EAAE,wDAAC;AAChD,IAAA,aAAa,GAAG,QAAQ,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,IAAI,CAAC,KAAK,EAAE,IAAI,IAAI,CAAA,OAAA,EAAU,IAAI,CAAC,KAAK,CAAC,IAAI,CAAA,CAAE,EAAE,IAAI,CAAC,UAAU,EAAE,CAAC,yDAAC;AAEhH,IAAA,IAA+B,SAAS,GAAA;AACpC,QAAA,OAAO,IAAI,CAAC,YAAY,E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EAAA,EAAA,EAAA,CAAA;;2FAAR,QAAQ,EAAA,UAAA,EAAA,CAAA;kBADpB;;sBAeI,WAAW;uBAAC,YAAY;;sBAGxB,WAAW;uBAAC,aAAa;;sBAGzB,WAAW;uBAAC,cAAc;;sBAC1B,WAAW;uBAAC,WAAW;;sBACvB,WAAW;uBAAC,YAAY;;sBACxB,WAAW;uBAAC,kBAAkB;;sBAC9B,WAAW;uBAAC,OAAO;;sBAGnB,WAAW;uBAAC,aAAa;;;AC7F9B;;AAEG;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@primeicons/angular",
3
- "version": "8.0.0-alpha.1",
3
+ "version": "8.0.0-alpha.3",
4
4
  "author": "PrimeTek Informatics",
5
5
  "homepage": "https://primeicons.org/",
6
6
  "description": "PrimeIcons for Angular - 300+ customizable SVG icons as Angular components",
@@ -28,7 +28,7 @@
28
28
  "dependencies": {
29
29
  "@primeuix/utils": "^0.6.4",
30
30
  "tslib": "^2",
31
- "@primeicons/core": "8.0.0-alpha.1"
31
+ "@primeicons/core": "8.0.0-alpha.3"
32
32
  },
33
33
  "peerDependencies": {
34
34
  "@angular/core": ">=21"
@@ -16,6 +16,7 @@ declare class CoreIcon {
16
16
  hostViewBox: string;
17
17
  hostFill: string;
18
18
  hostXmlns: string;
19
+ hostAriaHidden: string;
19
20
  get hostClass(): string;
20
21
  get hostColor(): string;
21
22
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<CoreIcon, never>;