nypro-light-components 0.0.7 → 0.0.8

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.
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Injectable, Component, output, effect, input, ChangeDetectionStrategy, forwardRef, ContentChild } from '@angular/core';
2
+ import { Injectable, Component, output, effect, input, ChangeDetectionStrategy, inject, ChangeDetectorRef, forwardRef, ContentChild } from '@angular/core';
3
3
  import * as i1 from '@angular/common';
4
4
  import { CommonModule } from '@angular/common';
5
5
  import { NG_VALUE_ACCESSOR } from '@angular/forms';
@@ -87,6 +87,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
87
87
  }], ctorParameters: () => [] });
88
88
 
89
89
  class NyRadioButton {
90
+ cdr = inject(ChangeDetectorRef);
90
91
  labelTemplate;
91
92
  selectedValue;
92
93
  /** This input steh the valur for the input radio */
@@ -122,6 +123,7 @@ class NyRadioButton {
122
123
  onTouched = () => { };
123
124
  writeValue(obj) {
124
125
  this.selectedValue = obj;
126
+ this.cdr.markForCheck();
125
127
  }
126
128
  registerOnChange(fn) {
127
129
  this.onChange = fn;
@@ -144,7 +146,7 @@ class NyRadioButton {
144
146
  useExisting: forwardRef(() => NyRadioButton),
145
147
  multi: true,
146
148
  }
147
- ], queries: [{ propertyName: "labelTemplate", first: true, predicate: ["label"], descendants: true }], ngImport: i0, template: "<label class=\"radioButtonContainer\" \n [class]=\"(' pos-'+position()) + (' size-'+size())\" \n [class.disabled]=\"disabled()\">\n\n <ng-container *ngIf=\"labelTemplate; else defaultLabel\">\n <div class=\"labelTemplate\">\n <ng-container *ngTemplateOutlet=\"labelTemplate\"></ng-container>\n </div>\n </ng-container>\n\n <ng-template #defaultLabel>\n <span class=\"label\">{{ label() }}</span>\n </ng-template>\n\n <input [class.disabled]=\"disabled()\" (change)=\"onInputChange()\" [disabled]=\"disabled()\" [attr.name]=\"name()\"\n [attr.value]=\"value()\" type=\"radio\" />\n</label>", styles: [".radioButtonContainer{display:flex;justify-content:center;align-items:center;gap:.2rem;input{margin:0}cursor:pointer;input{cursor:pointer}&.pos-top{flex-direction:column}&.pos-buttom{flex-direction:column-reverse}&.pos-right{flex-direction:row-reverse}&.size-small{gap:.1rem;font-size:75%;input{scale:.9}}&.size-large{gap:.4rem;font-size:125%;input{scale:1.25}}}.disabled{color:var(--text-color-secondary);cursor:default!important}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
149
+ ], queries: [{ propertyName: "labelTemplate", first: true, predicate: ["label"], descendants: true }], ngImport: i0, template: "<label class=\"radioButtonContainer\" \n [class]=\"(' pos-'+position()) + (' size-'+size())\" \n [class.disabled]=\"disabled()\">\n\n <ng-container *ngIf=\"labelTemplate; else defaultLabel\">\n <div class=\"labelTemplate\">\n <ng-container *ngTemplateOutlet=\"labelTemplate\"></ng-container>\n </div>\n </ng-container>\n\n <ng-template #defaultLabel>\n <span class=\"label\">{{ label() }}</span>\n </ng-template>\n\n <input [class.disabled]=\"disabled()\" [checked]=\"selectedValue === value()\" (change)=\"onInputChange()\" [disabled]=\"disabled()\" [attr.name]=\"name()\"\n [attr.value]=\"value()\" type=\"radio\" />\n</label>", styles: [".radioButtonContainer{display:flex;justify-content:center;align-items:center;gap:.2rem;input{margin:0}cursor:pointer;input{cursor:pointer}&.pos-top{flex-direction:column}&.pos-buttom{flex-direction:column-reverse}&.pos-right{flex-direction:row-reverse}&.size-small{gap:.1rem;font-size:75%;input{scale:.9}}&.size-large{gap:.4rem;font-size:125%;input{scale:1.25}}}.disabled{color:var(--text-color-secondary);cursor:default!important}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
148
150
  }
149
151
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: NyRadioButton, decorators: [{
150
152
  type: Component,
@@ -154,7 +156,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
154
156
  useExisting: forwardRef(() => NyRadioButton),
155
157
  multi: true,
156
158
  }
157
- ], template: "<label class=\"radioButtonContainer\" \n [class]=\"(' pos-'+position()) + (' size-'+size())\" \n [class.disabled]=\"disabled()\">\n\n <ng-container *ngIf=\"labelTemplate; else defaultLabel\">\n <div class=\"labelTemplate\">\n <ng-container *ngTemplateOutlet=\"labelTemplate\"></ng-container>\n </div>\n </ng-container>\n\n <ng-template #defaultLabel>\n <span class=\"label\">{{ label() }}</span>\n </ng-template>\n\n <input [class.disabled]=\"disabled()\" (change)=\"onInputChange()\" [disabled]=\"disabled()\" [attr.name]=\"name()\"\n [attr.value]=\"value()\" type=\"radio\" />\n</label>", styles: [".radioButtonContainer{display:flex;justify-content:center;align-items:center;gap:.2rem;input{margin:0}cursor:pointer;input{cursor:pointer}&.pos-top{flex-direction:column}&.pos-buttom{flex-direction:column-reverse}&.pos-right{flex-direction:row-reverse}&.size-small{gap:.1rem;font-size:75%;input{scale:.9}}&.size-large{gap:.4rem;font-size:125%;input{scale:1.25}}}.disabled{color:var(--text-color-secondary);cursor:default!important}\n"] }]
159
+ ], template: "<label class=\"radioButtonContainer\" \n [class]=\"(' pos-'+position()) + (' size-'+size())\" \n [class.disabled]=\"disabled()\">\n\n <ng-container *ngIf=\"labelTemplate; else defaultLabel\">\n <div class=\"labelTemplate\">\n <ng-container *ngTemplateOutlet=\"labelTemplate\"></ng-container>\n </div>\n </ng-container>\n\n <ng-template #defaultLabel>\n <span class=\"label\">{{ label() }}</span>\n </ng-template>\n\n <input [class.disabled]=\"disabled()\" [checked]=\"selectedValue === value()\" (change)=\"onInputChange()\" [disabled]=\"disabled()\" [attr.name]=\"name()\"\n [attr.value]=\"value()\" type=\"radio\" />\n</label>", styles: [".radioButtonContainer{display:flex;justify-content:center;align-items:center;gap:.2rem;input{margin:0}cursor:pointer;input{cursor:pointer}&.pos-top{flex-direction:column}&.pos-buttom{flex-direction:column-reverse}&.pos-right{flex-direction:row-reverse}&.size-small{gap:.1rem;font-size:75%;input{scale:.9}}&.size-large{gap:.4rem;font-size:125%;input{scale:1.25}}}.disabled{color:var(--text-color-secondary);cursor:default!important}\n"] }]
158
160
  }], propDecorators: { labelTemplate: [{
159
161
  type: ContentChild,
160
162
  args: ['label']
@@ -1 +1 @@
1
- {"version":3,"file":"nypro-light-components.mjs","sources":["../../../projects/nypro-light-components/src/lib/nypro-light-components.service.ts","../../../projects/nypro-light-components/src/lib/nypro-light-components.component.ts","../../../projects/nypro-light-components/src/lib/butttons/ny-button/ny-button.ts","../../../projects/nypro-light-components/src/lib/butttons/ny-button/ny-button.html","../../../projects/nypro-light-components/src/lib/butttons/ny-radio-button/ny-radio-button.ts","../../../projects/nypro-light-components/src/lib/butttons/ny-radio-button/ny-radio-button.html","../../../projects/nypro-light-components/src/public-api.ts","../../../projects/nypro-light-components/src/nypro-light-components.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class NyproLightComponentsService {\r\n\r\n constructor() { }\r\n}\r\n","import { Component } from '@angular/core';\r\n\r\n@Component({\r\n selector: 'lib-nypro-light-components',\r\n standalone: true,\r\n imports: [],\r\n template: `\r\n <p>\r\n nypro-light-components works!\r\n </p>\r\n `,\r\n styles: ``\r\n})\r\nexport class NyproLightComponentsComponent {\r\n\r\n}\r\n","import { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, effect, input, OnChanges, output } from '@angular/core';\n\n@Component({\n selector: 'ny-button',\n standalone: true,\n imports: [CommonModule],\n templateUrl: './ny-button.html',\n styleUrl: './ny-button.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class NyButton {\n public onClick = output<Event>();\n\n constructor() {\n effect(() => {\n if (this.loading()) {\n let hola = this.loading();\n console.log(hola);\n }\n });\n }\n\n btnClikc(event: Event) {\n if (this.disabled() || this.loading()) return;\n this.onClick.emit(event)\n }\n\n /** Uses to pass attributes to the label's DOM element. */\n public label = input('', {\n transform: (value: string | null | undefined) =>\n !value ? '' : value\n });\n\n /** Add a circular border radius to the button. */\n public rounded = input(false, {\n transform: (value: string | boolean) => {\n if (typeof value == 'boolean') return value;\n return (value == '' ? true : value == 'true');\n }\n });\n\n /** When present, it specifies that the component should be disabled. */\n public disabled = input(false, {\n transform: (value: string | boolean) => {\n if (typeof value == 'boolean') return value;\n return (value == '' ? true : value == 'true');\n }\n });\n\n /** When present, it specifies that the component should be disabled and loading icon is display. */\n public loading = input(false);\n\n /** Uses to pass attributes to the label's DOM element. */\n public loadingIcon = input('progress_activity', {\n transform: (value: string | null | undefined) =>\n !value ? 'progress_activity' : value\n });\n\n /** Defines the style of the button. */\n public severity = input('primary', {\n transform: (value: 'primary' | 'secondary' | 'danger' | 'warn' | 'success' | null | undefined) =>\n !value ? 'primary' : value\n });\n}\n","<button \n [class.disable]=\"disabled() || loading()\"\n [class.enable]=\"!disabled() && !loading()\"\n [class.rounded]=\"rounded()\"\n [style.--color-btn]=\"'var(--'+severity()+'-color)'\"\n [disabled]=\"disabled() || loading()\"\n (click)=\"btnClikc($event)\"\n >\n <ng-content *ngIf=\"label()==''\"></ng-content>\n <span *ngIf=\"label()!=''\">{{label()}}</span>\n <div class=\"loading\" *ngIf=\"loading()\">\n <span class=\"material-icons\">{{loadingIcon()}}</span>\n </div>\n</button>","import { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, ContentChild, forwardRef, input, TemplateRef } from '@angular/core';\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\n\n@Component({\n selector: 'ny-radio-button',\n standalone: true,\n imports: [CommonModule],\n templateUrl: './ny-radio-button.html',\n styleUrl: './ny-radio-button.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers : [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => NyRadioButton),\n multi: true,\n }\n ]\n})\nexport class NyRadioButton implements ControlValueAccessor{\n @ContentChild('label') labelTemplate?: TemplateRef<any>;\n selectedValue : any;\n\n /** This input steh the valur for the input radio */\n value = input('', {\n transform: (value : any) => \n !value? 'none' : value\n });\n\n /** Name of the from control value assing to radio-buttons */\n name = input('', {\n transform: (value : any) => \n !value? 'none' : value\n });\n \n /** Label of the radio button */\n label = input('', {\n transform: (value : any) => \n !value? 'none' : value\n });\n \n /** Position where the Label will be display */\n position = input('left', {\n transform: (value : 'left' | 'right' | 'top' | 'buttom') => \n !value? 'left' : value\n });\n \n /** Position where the Label will be display */\n size = input('normal', {\n transform: (value : 'normal' | 'small' | 'large') => \n !value? 'normal' : value\n });\n \n /** Sets the enable action to clickt or not */\n disabled = input(false, {\n transform: (value : string | boolean) => {\n if(typeof value == 'boolean') return value;\n return value == ''? true : value=='true'\n } \n });\n\n //#region --------- Control Value Accessor ------------\n onChange = (val : any) => {};\n onTouched = () => {};\n writeValue(obj: any): void {\n this.selectedValue = obj;\n }\n registerOnChange(fn: any): void {\n this.onChange = fn;\n }\n registerOnTouched(fn: any): void {\n this.onTouched = fn;\n }\n //#endregion\n\n onInputChange(): void {\n if(this.disabled()) return; \n this.onChange(this.value());\n this.onTouched();\n this.selectedValue = this.value();\n }\n}\n","<label class=\"radioButtonContainer\" \n [class]=\"(' pos-'+position()) + (' size-'+size())\" \n [class.disabled]=\"disabled()\">\n\n <ng-container *ngIf=\"labelTemplate; else defaultLabel\">\n <div class=\"labelTemplate\">\n <ng-container *ngTemplateOutlet=\"labelTemplate\"></ng-container>\n </div>\n </ng-container>\n\n <ng-template #defaultLabel>\n <span class=\"label\">{{ label() }}</span>\n </ng-template>\n\n <input [class.disabled]=\"disabled()\" (change)=\"onInputChange()\" [disabled]=\"disabled()\" [attr.name]=\"name()\"\n [attr.value]=\"value()\" type=\"radio\" />\n</label>","/*\r\n * Public API Surface of nypro-light-components\r\n */\r\n\r\nexport * from './lib/nypro-light-components.service';\r\nexport * from './lib/nypro-light-components.component';\r\nexport * from './lib/butttons/ny-button/ny-button'\r\nexport * from './lib/butttons/ny-radio-button/ny-radio-button'\r\n\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;MAKa,2BAA2B,CAAA;AAEtC,IAAA,WAAA,GAAA,GAAiB;wGAFN,2BAA2B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAA3B,IAAA,OAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,2BAA2B,cAF1B,MAAM,EAAA,CAAA,CAAA;;4FAEP,2BAA2B,EAAA,UAAA,EAAA,CAAA;kBAHvC,UAAU;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,UAAU,EAAE,MAAM;AACnB,iBAAA,CAAA;;;MCSY,6BAA6B,CAAA;wGAA7B,6BAA6B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAA7B,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA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,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;4FAYX,aAAa,EAAA,UAAA,EAAA,CAAA;kBAfzB,SAAS;+BACE,iBAAiB,EAAA,UAAA,EACf,IAAI,EAAA,OAAA,EACP,CAAC,YAAY,CAAC,EAGN,eAAA,EAAA,uBAAuB,CAAC,MAAM,EACnC,SAAA,EAAA;AACV,wBAAA;AACE,4BAAA,OAAO,EAAE,iBAAiB;AAC1B,4BAAA,WAAW,EAAE,UAAU,CAAC,mBAAmB,CAAC;AAC5C,4BAAA,KAAK,EAAE,IAAI;AACZ,yBAAA;AACF,qBAAA,EAAA,QAAA,EAAA,0oBAAA,EAAA,MAAA,EAAA,CAAA,mbAAA,CAAA,EAAA,CAAA;8BAGsB,aAAa,EAAA,CAAA;sBAAnC,YAAY;uBAAC,OAAO,CAAA;;;AEpBvB;;AAEG;;ACFH;;AAEG;;;;"}
1
+ {"version":3,"file":"nypro-light-components.mjs","sources":["../../../projects/nypro-light-components/src/lib/nypro-light-components.service.ts","../../../projects/nypro-light-components/src/lib/nypro-light-components.component.ts","../../../projects/nypro-light-components/src/lib/butttons/ny-button/ny-button.ts","../../../projects/nypro-light-components/src/lib/butttons/ny-button/ny-button.html","../../../projects/nypro-light-components/src/lib/butttons/ny-radio-button/ny-radio-button.ts","../../../projects/nypro-light-components/src/lib/butttons/ny-radio-button/ny-radio-button.html","../../../projects/nypro-light-components/src/public-api.ts","../../../projects/nypro-light-components/src/nypro-light-components.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class NyproLightComponentsService {\r\n\r\n constructor() { }\r\n}\r\n","import { Component } from '@angular/core';\r\n\r\n@Component({\r\n selector: 'lib-nypro-light-components',\r\n standalone: true,\r\n imports: [],\r\n template: `\r\n <p>\r\n nypro-light-components works!\r\n </p>\r\n `,\r\n styles: ``\r\n})\r\nexport class NyproLightComponentsComponent {\r\n\r\n}\r\n","import { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, effect, input, OnChanges, output } from '@angular/core';\n\n@Component({\n selector: 'ny-button',\n standalone: true,\n imports: [CommonModule],\n templateUrl: './ny-button.html',\n styleUrl: './ny-button.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class NyButton {\n public onClick = output<Event>();\n\n constructor() {\n effect(() => {\n if (this.loading()) {\n let hola = this.loading();\n console.log(hola);\n }\n });\n }\n\n btnClikc(event: Event) {\n if (this.disabled() || this.loading()) return;\n this.onClick.emit(event)\n }\n\n /** Uses to pass attributes to the label's DOM element. */\n public label = input('', {\n transform: (value: string | null | undefined) =>\n !value ? '' : value\n });\n\n /** Add a circular border radius to the button. */\n public rounded = input(false, {\n transform: (value: string | boolean) => {\n if (typeof value == 'boolean') return value;\n return (value == '' ? true : value == 'true');\n }\n });\n\n /** When present, it specifies that the component should be disabled. */\n public disabled = input(false, {\n transform: (value: string | boolean) => {\n if (typeof value == 'boolean') return value;\n return (value == '' ? true : value == 'true');\n }\n });\n\n /** When present, it specifies that the component should be disabled and loading icon is display. */\n public loading = input(false);\n\n /** Uses to pass attributes to the label's DOM element. */\n public loadingIcon = input('progress_activity', {\n transform: (value: string | null | undefined) =>\n !value ? 'progress_activity' : value\n });\n\n /** Defines the style of the button. */\n public severity = input('primary', {\n transform: (value: 'primary' | 'secondary' | 'danger' | 'warn' | 'success' | null | undefined) =>\n !value ? 'primary' : value\n });\n}\n","<button \n [class.disable]=\"disabled() || loading()\"\n [class.enable]=\"!disabled() && !loading()\"\n [class.rounded]=\"rounded()\"\n [style.--color-btn]=\"'var(--'+severity()+'-color)'\"\n [disabled]=\"disabled() || loading()\"\n (click)=\"btnClikc($event)\"\n >\n <ng-content *ngIf=\"label()==''\"></ng-content>\n <span *ngIf=\"label()!=''\">{{label()}}</span>\n <div class=\"loading\" *ngIf=\"loading()\">\n <span class=\"material-icons\">{{loadingIcon()}}</span>\n </div>\n</button>","import { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, ChangeDetectorRef, Component, ContentChild, forwardRef, inject, input, TemplateRef } from '@angular/core';\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\n\n@Component({\n selector: 'ny-radio-button',\n standalone: true,\n imports: [CommonModule],\n templateUrl: './ny-radio-button.html',\n styleUrl: './ny-radio-button.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers : [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => NyRadioButton),\n multi: true,\n }\n ]\n})\nexport class NyRadioButton implements ControlValueAccessor{\n private cdr = inject(ChangeDetectorRef); \n @ContentChild('label') labelTemplate?: TemplateRef<any>; \n selectedValue : any;\n\n /** This input steh the valur for the input radio */\n value = input('', {\n transform: (value : any) => \n !value? 'none' : value\n });\n\n /** Name of the from control value assing to radio-buttons */\n name = input('', {\n transform: (value : any) => \n !value? 'none' : value\n });\n \n /** Label of the radio button */\n label = input('', {\n transform: (value : any) => \n !value? 'none' : value\n });\n \n /** Position where the Label will be display */\n position = input('left', {\n transform: (value : 'left' | 'right' | 'top' | 'buttom') => \n !value? 'left' : value\n });\n \n /** Position where the Label will be display */\n size = input('normal', {\n transform: (value : 'normal' | 'small' | 'large') => \n !value? 'normal' : value\n });\n \n /** Sets the enable action to clickt or not */\n disabled = input(false, {\n transform: (value : string | boolean) => {\n if(typeof value == 'boolean') return value;\n return value == ''? true : value=='true'\n } \n });\n\n //#region --------- Control Value Accessor ------------\n onChange = (val : any) => {};\n onTouched = () => {};\n writeValue(obj: any): void {\n this.selectedValue = obj;\n this.cdr.markForCheck();\n }\n registerOnChange(fn: any): void {\n this.onChange = fn;\n }\n registerOnTouched(fn: any): void {\n this.onTouched = fn;\n }\n //#endregion\n\n onInputChange(): void {\n if(this.disabled()) return; \n this.onChange(this.value());\n this.onTouched();\n this.selectedValue = this.value();\n }\n}","<label class=\"radioButtonContainer\" \n [class]=\"(' pos-'+position()) + (' size-'+size())\" \n [class.disabled]=\"disabled()\">\n\n <ng-container *ngIf=\"labelTemplate; else defaultLabel\">\n <div class=\"labelTemplate\">\n <ng-container *ngTemplateOutlet=\"labelTemplate\"></ng-container>\n </div>\n </ng-container>\n\n <ng-template #defaultLabel>\n <span class=\"label\">{{ label() }}</span>\n </ng-template>\n\n <input [class.disabled]=\"disabled()\" [checked]=\"selectedValue === value()\" (change)=\"onInputChange()\" [disabled]=\"disabled()\" [attr.name]=\"name()\"\n [attr.value]=\"value()\" type=\"radio\" />\n</label>","/*\r\n * Public API Surface of nypro-light-components\r\n */\r\n\r\nexport * from './lib/nypro-light-components.service';\r\nexport * from './lib/nypro-light-components.component';\r\nexport * from './lib/butttons/ny-button/ny-button'\r\nexport * from './lib/butttons/ny-radio-button/ny-radio-button'\r\n\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;MAKa,2BAA2B,CAAA;AAEtC,IAAA,WAAA,GAAA,GAAiB;wGAFN,2BAA2B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAA3B,IAAA,OAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,2BAA2B,cAF1B,MAAM,EAAA,CAAA,CAAA;;4FAEP,2BAA2B,EAAA,UAAA,EAAA,CAAA;kBAHvC,UAAU;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,UAAU,EAAE,MAAM;AACnB,iBAAA,CAAA;;;MCSY,6BAA6B,CAAA;wGAA7B,6BAA6B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAA7B,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,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A,EAAA,EAAA,CAAA,gBAAA,EAAA,QAAA,EAAA,oBAAA,EAAA,MAAA,EAAA,CAAA,yBAAA,EAAA,kBAAA,EAAA,0BAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;4FAYX,aAAa,EAAA,UAAA,EAAA,CAAA;kBAfzB,SAAS;+BACE,iBAAiB,EAAA,UAAA,EACf,IAAI,EAAA,OAAA,EACP,CAAC,YAAY,CAAC,EAGN,eAAA,EAAA,uBAAuB,CAAC,MAAM,EACnC,SAAA,EAAA;AACV,wBAAA;AACE,4BAAA,OAAO,EAAE,iBAAiB;AAC1B,4BAAA,WAAW,EAAE,UAAU,CAAC,mBAAmB,CAAC;AAC5C,4BAAA,KAAK,EAAE,IAAI;AACZ,yBAAA;AACF,qBAAA,EAAA,QAAA,EAAA,krBAAA,EAAA,MAAA,EAAA,CAAA,mbAAA,CAAA,EAAA,CAAA;8BAIsB,aAAa,EAAA,CAAA;sBAAnC,YAAY;uBAAC,OAAO,CAAA;;;AErBvB;;AAEG;;ACFH;;AAEG;;;;"}
@@ -1,21 +1,18 @@
1
1
  @font-face {
2
- font-display: swap;
3
2
  font-family: 'Material Icons';
4
- font-style: normal;
5
3
  font-weight: 300;
6
4
  src: url('./MaterialIcons-Regular.woff2') format('truetype');
7
5
  }
8
6
 
9
7
  .material-icons {
10
- font-family: 'Material Icons';
11
- font-weight: normal;
12
- font-style: normal;
13
- font-size: 19px;
14
- line-height: 0.8;
15
- letter-spacing: normal;
16
- text-transform: none;
17
- display: inline;
18
- white-space: nowrap;
19
- direction: ltr;
20
- -webkit-font-smoothing: antialiased;
8
+ font-family: 'Material Icons';
9
+ font-weight: normal;
10
+ font-style: normal;
11
+ letter-spacing: 0.1rem;
12
+ line-height: 1.1;
13
+ position: relative;
14
+ display: inline-flex;
15
+ font-size: 1.5rem;
16
+ vertical-align: middle;
17
+ -webkit-font-smoothing: antialiased;
21
18
  }
@@ -2,6 +2,7 @@ import { TemplateRef } from '@angular/core';
2
2
  import { ControlValueAccessor } from '@angular/forms';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class NyRadioButton implements ControlValueAccessor {
5
+ private cdr;
5
6
  labelTemplate?: TemplateRef<any>;
6
7
  selectedValue: any;
7
8
  /** This input steh the valur for the input radio */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nypro-light-components",
3
- "version": "0.0.7",
3
+ "version": "0.0.8",
4
4
  "types": "index.d.ts",
5
5
  "exports": {
6
6
  ".": {