@litigiovirtual/ius-design-components 1.0.4 → 1.0.5

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.
Files changed (31) hide show
  1. package/esm2022/lib/button-primary/button-primary.component.mjs +16 -0
  2. package/esm2022/lib/button-primary/index.mjs +2 -0
  3. package/esm2022/lib/ius-icon-md/index.mjs +2 -0
  4. package/esm2022/lib/ius-icon-md/ius-icon-md.component.mjs +33 -0
  5. package/esm2022/litigiovirtual-ius-design-components.mjs +5 -0
  6. package/esm2022/public-api.mjs +3 -0
  7. package/fesm2022/litigiovirtual-ius-design-components.mjs +54 -0
  8. package/fesm2022/litigiovirtual-ius-design-components.mjs.map +1 -0
  9. package/index.d.ts +5 -0
  10. package/lib/button-primary/button-primary.component.d.ts +6 -0
  11. package/{src/lib/button-primary/index.ts → lib/button-primary/index.d.ts} +1 -2
  12. package/{src/lib/ius-icon-md/index.ts → lib/ius-icon-md/index.d.ts} +1 -2
  13. package/lib/ius-icon-md/ius-icon-md.component.d.ts +15 -0
  14. package/package.json +25 -12
  15. package/{src/public-api.ts → public-api.d.ts} +2 -3
  16. package/ng-package.json +0 -13
  17. package/src/lib/button-primary/button-primary.component.html +0 -3
  18. package/src/lib/button-primary/button-primary.component.scss +0 -20
  19. package/src/lib/button-primary/button-primary.component.spec.ts +0 -23
  20. package/src/lib/button-primary/button-primary.component.ts +0 -14
  21. package/src/lib/ius-icon-md/ius-icon-md.component.css +0 -11
  22. package/src/lib/ius-icon-md/ius-icon-md.component.html +0 -1
  23. package/src/lib/ius-icon-md/ius-icon-md.component.spec.ts +0 -23
  24. package/src/lib/ius-icon-md/ius-icon-md.component.ts +0 -29
  25. package/src/lib/ius-icon-sm/ius-icon-sm.component.css +0 -0
  26. package/src/lib/ius-icon-sm/ius-icon-sm.component.html +0 -1
  27. package/src/lib/ius-icon-sm/ius-icon-sm.component.spec.ts +0 -23
  28. package/src/lib/ius-icon-sm/ius-icon-sm.component.ts +0 -12
  29. package/tsconfig.lib.json +0 -14
  30. package/tsconfig.lib.prod.json +0 -10
  31. package/tsconfig.spec.json +0 -14
@@ -0,0 +1,16 @@
1
+ import { Component, Input } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export class ButtonPrimaryComponent {
4
+ constructor() {
5
+ this.disabled = false;
6
+ }
7
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ButtonPrimaryComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
8
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: ButtonPrimaryComponent, isStandalone: true, selector: "ius-button-primary", inputs: { disabled: "disabled" }, ngImport: i0, template: "<button [disabled]=\"disabled\" class=\"ius-btn\">\r\n <ng-content></ng-content>\r\n</button>\r\n", styles: [".ius-btn{background-color:#013169;color:#fff;padding:12px 24px;border:none;cursor:pointer}.ius-btn:hover:not(:disabled){background-color:#08a6db}.ius-btn:disabled{background-color:#f5f5f5;cursor:not-allowed}\n"] }); }
9
+ }
10
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ButtonPrimaryComponent, decorators: [{
11
+ type: Component,
12
+ args: [{ selector: 'ius-button-primary', standalone: true, imports: [], template: "<button [disabled]=\"disabled\" class=\"ius-btn\">\r\n <ng-content></ng-content>\r\n</button>\r\n", styles: [".ius-btn{background-color:#013169;color:#fff;padding:12px 24px;border:none;cursor:pointer}.ius-btn:hover:not(:disabled){background-color:#08a6db}.ius-btn:disabled{background-color:#f5f5f5;cursor:not-allowed}\n"] }]
13
+ }], propDecorators: { disabled: [{
14
+ type: Input
15
+ }] } });
16
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnV0dG9uLXByaW1hcnkuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4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uXHJcbn1cclxuIiwiPGJ1dHRvbiBbZGlzYWJsZWRdPVwiZGlzYWJsZWRcIiBjbGFzcz1cIml1cy1idG5cIj5cclxuICAgIDxuZy1jb250ZW50PjwvbmctY29udGVudD5cclxuPC9idXR0b24+XHJcbiJdfQ==
@@ -0,0 +1,2 @@
1
+ export * from './button-primary.component';
2
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9pdXMtZGVzaWduLWNvbXBvbmVudHMvc3JjL2xpYi9idXR0b24tcHJpbWFyeS9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLDRCQUE0QixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9idXR0b24tcHJpbWFyeS5jb21wb25lbnQnO1xyXG5cclxuIl19
@@ -0,0 +1,2 @@
1
+ export * from './ius-icon-md.component';
2
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9pdXMtZGVzaWduLWNvbXBvbmVudHMvc3JjL2xpYi9pdXMtaWNvbi1tZC9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLHlCQUF5QixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9pdXMtaWNvbi1tZC5jb21wb25lbnQnO1xyXG5cclxuIl19
@@ -0,0 +1,33 @@
1
+ import { CommonModule } from '@angular/common';
2
+ import { HttpClientModule } from '@angular/common/http';
3
+ import { Component, Input } from '@angular/core';
4
+ import * as i0 from "@angular/core";
5
+ import * as i1 from "@angular/common/http";
6
+ import * as i2 from "@angular/platform-browser";
7
+ export class IusIconMdComponent {
8
+ constructor(http, sanitizer) {
9
+ this.http = http;
10
+ this.sanitizer = sanitizer;
11
+ this.iconName = 'icon-add';
12
+ this.color = 'currentColor';
13
+ this.svg = '';
14
+ }
15
+ ngOnInit() {
16
+ const path = `assets/icons/${this.iconName}.svg`;
17
+ this.http.get(path, { responseType: 'text' }).subscribe((data) => {
18
+ const sanitized = this.sanitizer.bypassSecurityTrustHtml(data);
19
+ this.svg = sanitized;
20
+ });
21
+ }
22
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: IusIconMdComponent, deps: [{ token: i1.HttpClient }, { token: i2.DomSanitizer }], target: i0.ɵɵFactoryTarget.Component }); }
23
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: IusIconMdComponent, isStandalone: true, selector: "ius-ius-icon-md", inputs: { iconName: "iconName", color: "color" }, ngImport: i0, template: "<span [innerHTML]=\"svg\"></span>", styles: [":host{display:inline-block;width:24px;height:24px}span svg{width:100%;height:100%;fill:currentColor}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: HttpClientModule }] }); }
24
+ }
25
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: IusIconMdComponent, decorators: [{
26
+ type: Component,
27
+ args: [{ selector: 'ius-ius-icon-md', standalone: true, imports: [CommonModule, HttpClientModule], template: "<span [innerHTML]=\"svg\"></span>", styles: [":host{display:inline-block;width:24px;height:24px}span svg{width:100%;height:100%;fill:currentColor}\n"] }]
28
+ }], ctorParameters: () => [{ type: i1.HttpClient }, { type: i2.DomSanitizer }], propDecorators: { iconName: [{
29
+ type: Input
30
+ }], color: [{
31
+ type: Input
32
+ }] } });
33
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaXVzLWljb24tbWQu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ljb25NZENvbXBvbmVudCBpbXBsZW1lbnRzIE9uSW5pdCB7XHJcbiAgQElucHV0KCkgaWNvbk5hbWU6IHN0cmluZyA9ICdpY29uLWFkZCc7XHJcbiAgQElucHV0KCkgY29sb3I6IHN0cmluZyA9ICdjdXJyZW50Q29sb3InO1xyXG5cclxuICBzdmc6IFNhZmVIdG1sID0gJyc7XHJcblxyXG4gIGNvbnN0cnVjdG9yKHByaXZhdGUgaHR0cDogSHR0cENsaWVudCwgcHJpdmF0ZSBzYW5pdGl6ZXI6IERvbVNhbml0aXplcikgeyB9XHJcblxyXG4gIG5nT25Jbml0KCk6IHZvaWQge1xyXG4gICAgY29uc3QgcGF0aCA9IGBhc3NldHMvaWNvbnMvJHt0aGlzLmljb25OYW1lfS5zdmdgO1xyXG5cclxuICAgIHRoaXMuaHR0cC5nZXQocGF0aCwgeyByZXNwb25zZVR5cGU6ICd0ZXh0JyB9KS5zdWJzY3JpYmUoKGRhdGEpID0+IHtcclxuICAgICAgY29uc3Qgc2FuaXRpemVkID0gdGhpcy5zYW5pdGl6ZXIuYnlwYXNzU2VjdXJpdHlUcnVzdEh0bWwoZGF0YSk7XHJcbiAgICAgIHRoaXMuc3ZnID0gc2FuaXRpemVkO1xyXG4gICAgfSk7XHJcbiAgfVxyXG59XHJcbiIsIjxzcGFuIFtpbm5lckhUTUxdPVwic3ZnXCI+PC9zcGFuPiJdfQ==
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ export * from './public-api';
5
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGl0aWdpb3ZpcnR1YWwtaXVzLWRlc2lnbi1jb21wb25lbnRzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vcHJvamVjdHMvaXVzLWRlc2lnbi1jb21wb25lbnRzL3NyYy9saXRpZ2lvdmlydHVhbC1pdXMtZGVzaWduLWNvbXBvbmVudHMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLGNBQWMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9wdWJsaWMtYXBpJztcbiJdfQ==
@@ -0,0 +1,3 @@
1
+ export * from './lib/button-primary';
2
+ export * from './lib/ius-icon-md';
3
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3Byb2plY3RzL2l1cy1kZXNpZ24tY29tcG9uZW50cy9zcmMvcHVibGljLWFwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLHNCQUFzQixDQUFDO0FBQ3JDLGNBQWMsbUJBQW1CLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL2xpYi9idXR0b24tcHJpbWFyeSc7XHJcbmV4cG9ydCAqIGZyb20gJy4vbGliL2l1cy1pY29uLW1kJztcclxuXHJcbiJdfQ==
@@ -0,0 +1,54 @@
1
+ import * as i0 from '@angular/core';
2
+ import { Input, Component } from '@angular/core';
3
+ import { CommonModule } from '@angular/common';
4
+ import * as i1 from '@angular/common/http';
5
+ import { HttpClientModule } from '@angular/common/http';
6
+ import * as i2 from '@angular/platform-browser';
7
+
8
+ class ButtonPrimaryComponent {
9
+ constructor() {
10
+ this.disabled = false;
11
+ }
12
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ButtonPrimaryComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
13
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: ButtonPrimaryComponent, isStandalone: true, selector: "ius-button-primary", inputs: { disabled: "disabled" }, ngImport: i0, template: "<button [disabled]=\"disabled\" class=\"ius-btn\">\r\n <ng-content></ng-content>\r\n</button>\r\n", styles: [".ius-btn{background-color:#013169;color:#fff;padding:12px 24px;border:none;cursor:pointer}.ius-btn:hover:not(:disabled){background-color:#08a6db}.ius-btn:disabled{background-color:#f5f5f5;cursor:not-allowed}\n"] }); }
14
+ }
15
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ButtonPrimaryComponent, decorators: [{
16
+ type: Component,
17
+ args: [{ selector: 'ius-button-primary', standalone: true, imports: [], template: "<button [disabled]=\"disabled\" class=\"ius-btn\">\r\n <ng-content></ng-content>\r\n</button>\r\n", styles: [".ius-btn{background-color:#013169;color:#fff;padding:12px 24px;border:none;cursor:pointer}.ius-btn:hover:not(:disabled){background-color:#08a6db}.ius-btn:disabled{background-color:#f5f5f5;cursor:not-allowed}\n"] }]
18
+ }], propDecorators: { disabled: [{
19
+ type: Input
20
+ }] } });
21
+
22
+ class IusIconMdComponent {
23
+ constructor(http, sanitizer) {
24
+ this.http = http;
25
+ this.sanitizer = sanitizer;
26
+ this.iconName = 'icon-add';
27
+ this.color = 'currentColor';
28
+ this.svg = '';
29
+ }
30
+ ngOnInit() {
31
+ const path = `assets/icons/${this.iconName}.svg`;
32
+ this.http.get(path, { responseType: 'text' }).subscribe((data) => {
33
+ const sanitized = this.sanitizer.bypassSecurityTrustHtml(data);
34
+ this.svg = sanitized;
35
+ });
36
+ }
37
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: IusIconMdComponent, deps: [{ token: i1.HttpClient }, { token: i2.DomSanitizer }], target: i0.ɵɵFactoryTarget.Component }); }
38
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: IusIconMdComponent, isStandalone: true, selector: "ius-ius-icon-md", inputs: { iconName: "iconName", color: "color" }, ngImport: i0, template: "<span [innerHTML]=\"svg\"></span>", styles: [":host{display:inline-block;width:24px;height:24px}span svg{width:100%;height:100%;fill:currentColor}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: HttpClientModule }] }); }
39
+ }
40
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: IusIconMdComponent, decorators: [{
41
+ type: Component,
42
+ args: [{ selector: 'ius-ius-icon-md', standalone: true, imports: [CommonModule, HttpClientModule], template: "<span [innerHTML]=\"svg\"></span>", styles: [":host{display:inline-block;width:24px;height:24px}span svg{width:100%;height:100%;fill:currentColor}\n"] }]
43
+ }], ctorParameters: () => [{ type: i1.HttpClient }, { type: i2.DomSanitizer }], propDecorators: { iconName: [{
44
+ type: Input
45
+ }], color: [{
46
+ type: Input
47
+ }] } });
48
+
49
+ /**
50
+ * Generated bundle index. Do not edit.
51
+ */
52
+
53
+ export { ButtonPrimaryComponent, IusIconMdComponent };
54
+ //# sourceMappingURL=litigiovirtual-ius-design-components.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"litigiovirtual-ius-design-components.mjs","sources":["../../../projects/ius-design-components/src/lib/button-primary/button-primary.component.ts","../../../projects/ius-design-components/src/lib/button-primary/button-primary.component.html","../../../projects/ius-design-components/src/lib/ius-icon-md/ius-icon-md.component.ts","../../../projects/ius-design-components/src/lib/ius-icon-md/ius-icon-md.component.html","../../../projects/ius-design-components/src/litigiovirtual-ius-design-components.ts"],"sourcesContent":["import { Component, Input } from '@angular/core';\r\n\r\n@Component({\r\n selector: 'ius-button-primary',\r\n standalone: true,\r\n imports: [],\r\n templateUrl: './button-primary.component.html',\r\n styleUrl: './button-primary.component.scss'\r\n})\r\nexport class ButtonPrimaryComponent {\r\n\r\n @Input() disabled = false;\r\n\r\n}\r\n","<button [disabled]=\"disabled\" class=\"ius-btn\">\r\n <ng-content></ng-content>\r\n</button>\r\n","import { CommonModule } from '@angular/common';\r\nimport { HttpClient, HttpClientModule } from '@angular/common/http';\r\nimport { Component, Input, OnInit } from '@angular/core';\r\nimport { DomSanitizer, SafeHtml } from '@angular/platform-browser';\r\n\r\n@Component({\r\n selector: 'ius-ius-icon-md',\r\n standalone: true,\r\n imports: [CommonModule, HttpClientModule],\r\n templateUrl: './ius-icon-md.component.html',\r\n styleUrl: './ius-icon-md.component.css'\r\n})\r\nexport class IusIconMdComponent implements OnInit {\r\n @Input() iconName: string = 'icon-add';\r\n @Input() color: string = 'currentColor';\r\n\r\n svg: SafeHtml = '';\r\n\r\n constructor(private http: HttpClient, private sanitizer: DomSanitizer) { }\r\n\r\n ngOnInit(): void {\r\n const path = `assets/icons/${this.iconName}.svg`;\r\n\r\n this.http.get(path, { responseType: 'text' }).subscribe((data) => {\r\n const sanitized = this.sanitizer.bypassSecurityTrustHtml(data);\r\n this.svg = sanitized;\r\n });\r\n }\r\n}\r\n","<span [innerHTML]=\"svg\"></span>","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;MASa,sBAAsB,CAAA;AAPnC,IAAA,WAAA,GAAA;QASW,IAAQ,CAAA,QAAA,GAAG,KAAK;AAE1B;+GAJY,sBAAsB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAtB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,sBAAsB,gHCTnC,sGAGA,EAAA,MAAA,EAAA,CAAA,mNAAA,CAAA,EAAA,CAAA,CAAA;;4FDMa,sBAAsB,EAAA,UAAA,EAAA,CAAA;kBAPlC,SAAS;+BACE,oBAAoB,EAAA,UAAA,EAClB,IAAI,EAAA,OAAA,EACP,EAAE,EAAA,Q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mCAA+B,EDQnB,MAAA,EAAA,CAAA,wGAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAA,YAAY,8BAAE,gBAAgB,EAAA,CAAA,EAAA,CAAA,CAAA;;4FAI7B,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAP9B,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,iBAAiB,cACf,IAAI,EAAA,OAAA,EACP,CAAC,YAAY,EAAE,gBAAgB,CAAC,EAAA,QAAA,EAAA,mCAAA,EAAA,MAAA,EAAA,CAAA,wGAAA,CAAA,EAAA;0GAKhC,QAAQ,EAAA,CAAA;sBAAhB;gBACQ,KAAK,EAAA,CAAA;sBAAb;;;AEdH;;AAEG;;;;"}
package/index.d.ts ADDED
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="@litigiovirtual/ius-design-components" />
5
+ export * from './public-api';
@@ -0,0 +1,6 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class ButtonPrimaryComponent {
3
+ disabled: boolean;
4
+ static ɵfac: i0.ɵɵFactoryDeclaration<ButtonPrimaryComponent, never>;
5
+ static ɵcmp: i0.ɵɵComponentDeclaration<ButtonPrimaryComponent, "ius-button-primary", never, { "disabled": { "alias": "disabled"; "required": false; }; }, {}, never, ["*"], true, never>;
6
+ }
@@ -1,2 +1 @@
1
- export * from './button-primary.component';
2
-
1
+ export * from './button-primary.component';
@@ -1,2 +1 @@
1
- export * from './ius-icon-md.component';
2
-
1
+ export * from './ius-icon-md.component';
@@ -0,0 +1,15 @@
1
+ import { HttpClient } from '@angular/common/http';
2
+ import { OnInit } from '@angular/core';
3
+ import { DomSanitizer, SafeHtml } from '@angular/platform-browser';
4
+ import * as i0 from "@angular/core";
5
+ export declare class IusIconMdComponent implements OnInit {
6
+ private http;
7
+ private sanitizer;
8
+ iconName: string;
9
+ color: string;
10
+ svg: SafeHtml;
11
+ constructor(http: HttpClient, sanitizer: DomSanitizer);
12
+ ngOnInit(): void;
13
+ static ɵfac: i0.ɵɵFactoryDeclaration<IusIconMdComponent, never>;
14
+ static ɵcmp: i0.ɵɵComponentDeclaration<IusIconMdComponent, "ius-ius-icon-md", never, { "iconName": { "alias": "iconName"; "required": false; }; "color": { "alias": "color"; "required": false; }; }, {}, never, never, true, never>;
15
+ }
package/package.json CHANGED
@@ -1,13 +1,26 @@
1
- {
2
- "name": "@litigiovirtual/ius-design-components",
3
- "version": "1.0.4",
4
- "peerDependencies": {
5
- "@angular/common": ">=17.0.0 <20.0.0",
6
- "@angular/core": ">=17.0.0 <20.0.0"
7
- },
8
- "dependencies": {
9
- "@litigiovirtual/ius-design-styles": "^1.0.6",
10
- "tslib": "^2.3.0"
11
- },
12
- "sideEffects": false
1
+ {
2
+ "name": "@litigiovirtual/ius-design-components",
3
+ "version": "1.0.5",
4
+ "peerDependencies": {
5
+ "@angular/common": ">=17.0.0 <20.0.0",
6
+ "@angular/core": ">=17.0.0 <20.0.0"
7
+ },
8
+ "dependencies": {
9
+ "@litigiovirtual/ius-design-styles": "^1.0.6",
10
+ "tslib": "^2.3.0"
11
+ },
12
+ "sideEffects": false,
13
+ "module": "fesm2022/litigiovirtual-ius-design-components.mjs",
14
+ "typings": "index.d.ts",
15
+ "exports": {
16
+ "./package.json": {
17
+ "default": "./package.json"
18
+ },
19
+ ".": {
20
+ "types": "./index.d.ts",
21
+ "esm2022": "./esm2022/litigiovirtual-ius-design-components.mjs",
22
+ "esm": "./esm2022/litigiovirtual-ius-design-components.mjs",
23
+ "default": "./fesm2022/litigiovirtual-ius-design-components.mjs"
24
+ }
25
+ }
13
26
  }
@@ -1,3 +1,2 @@
1
- export * from './lib/button-primary';
2
- export * from './lib/ius-icon-md';
3
-
1
+ export * from './lib/button-primary';
2
+ export * from './lib/ius-icon-md';
package/ng-package.json DELETED
@@ -1,13 +0,0 @@
1
- {
2
- "$schema": "../../node_modules/ng-packagr/ng-package.schema.json",
3
- "dest": "../../dist/ius-design-components",
4
- "lib": {
5
- "entryFile": "src/public-api.ts"
6
- },
7
- "assets": [
8
- "src/assets"
9
- ],
10
- "allowedNonPeerDependencies": [
11
- "@litigiovirtual/ius-design-styles"
12
- ]
13
- }
@@ -1,3 +0,0 @@
1
- <button [disabled]="disabled" class="ius-btn">
2
- <ng-content></ng-content>
3
- </button>
@@ -1,20 +0,0 @@
1
- @use '@litigiovirtual/ius-design-styles/lib/colors' as colors;
2
- @use '@litigiovirtual/ius-design-styles/lib/variables' as variables;
3
-
4
- .ius-btn {
5
- background-color: colors.$primary-900;
6
- color: colors.$neutral-white;
7
- padding: variables.$spacing-sm variables.$spacing-lg;
8
- border: none;
9
- cursor: pointer;
10
-
11
- &:hover:not(:disabled) {
12
- background-color: colors.$primary-500;
13
- }
14
-
15
- &:disabled {
16
- // opacity: 0.6;
17
- background-color: colors.$neutral-2;
18
- cursor: not-allowed;
19
- }
20
- }
@@ -1,23 +0,0 @@
1
- import { ComponentFixture, TestBed } from '@angular/core/testing';
2
-
3
- import { ButtonPrimaryComponent } from './button-primary.component';
4
-
5
- describe('ButtonPrimaryComponent', () => {
6
- let component: ButtonPrimaryComponent;
7
- let fixture: ComponentFixture<ButtonPrimaryComponent>;
8
-
9
- beforeEach(async () => {
10
- await TestBed.configureTestingModule({
11
- imports: [ButtonPrimaryComponent]
12
- })
13
- .compileComponents();
14
-
15
- fixture = TestBed.createComponent(ButtonPrimaryComponent);
16
- component = fixture.componentInstance;
17
- fixture.detectChanges();
18
- });
19
-
20
- it('should create', () => {
21
- expect(component).toBeTruthy();
22
- });
23
- });
@@ -1,14 +0,0 @@
1
- import { Component, Input } from '@angular/core';
2
-
3
- @Component({
4
- selector: 'ius-button-primary',
5
- standalone: true,
6
- imports: [],
7
- templateUrl: './button-primary.component.html',
8
- styleUrl: './button-primary.component.scss'
9
- })
10
- export class ButtonPrimaryComponent {
11
-
12
- @Input() disabled = false;
13
-
14
- }
@@ -1,11 +0,0 @@
1
- :host {
2
- display: inline-block;
3
- width: 24px;
4
- height: 24px;
5
- }
6
-
7
- span svg {
8
- width: 100%;
9
- height: 100%;
10
- fill: currentColor;
11
- }
@@ -1 +0,0 @@
1
- <span [innerHTML]="svg"></span>
@@ -1,23 +0,0 @@
1
- import { ComponentFixture, TestBed } from '@angular/core/testing';
2
-
3
- import { IusIconMdComponent } from './ius-icon-md.component';
4
-
5
- describe('IusIconMdComponent', () => {
6
- let component: IusIconMdComponent;
7
- let fixture: ComponentFixture<IusIconMdComponent>;
8
-
9
- beforeEach(async () => {
10
- await TestBed.configureTestingModule({
11
- imports: [IusIconMdComponent]
12
- })
13
- .compileComponents();
14
-
15
- fixture = TestBed.createComponent(IusIconMdComponent);
16
- component = fixture.componentInstance;
17
- fixture.detectChanges();
18
- });
19
-
20
- it('should create', () => {
21
- expect(component).toBeTruthy();
22
- });
23
- });
@@ -1,29 +0,0 @@
1
- import { CommonModule } from '@angular/common';
2
- import { HttpClient, HttpClientModule } from '@angular/common/http';
3
- import { Component, Input, OnInit } from '@angular/core';
4
- import { DomSanitizer, SafeHtml } from '@angular/platform-browser';
5
-
6
- @Component({
7
- selector: 'ius-ius-icon-md',
8
- standalone: true,
9
- imports: [CommonModule, HttpClientModule],
10
- templateUrl: './ius-icon-md.component.html',
11
- styleUrl: './ius-icon-md.component.css'
12
- })
13
- export class IusIconMdComponent implements OnInit {
14
- @Input() iconName: string = 'icon-add';
15
- @Input() color: string = 'currentColor';
16
-
17
- svg: SafeHtml = '';
18
-
19
- constructor(private http: HttpClient, private sanitizer: DomSanitizer) { }
20
-
21
- ngOnInit(): void {
22
- const path = `assets/icons/${this.iconName}.svg`;
23
-
24
- this.http.get(path, { responseType: 'text' }).subscribe((data) => {
25
- const sanitized = this.sanitizer.bypassSecurityTrustHtml(data);
26
- this.svg = sanitized;
27
- });
28
- }
29
- }
File without changes
@@ -1 +0,0 @@
1
- <p>ius-icon-sm works!</p>
@@ -1,23 +0,0 @@
1
- import { ComponentFixture, TestBed } from '@angular/core/testing';
2
-
3
- import { IusIconSmComponent } from './ius-icon-sm.component';
4
-
5
- describe('IusIconSmComponent', () => {
6
- let component: IusIconSmComponent;
7
- let fixture: ComponentFixture<IusIconSmComponent>;
8
-
9
- beforeEach(async () => {
10
- await TestBed.configureTestingModule({
11
- imports: [IusIconSmComponent]
12
- })
13
- .compileComponents();
14
-
15
- fixture = TestBed.createComponent(IusIconSmComponent);
16
- component = fixture.componentInstance;
17
- fixture.detectChanges();
18
- });
19
-
20
- it('should create', () => {
21
- expect(component).toBeTruthy();
22
- });
23
- });
@@ -1,12 +0,0 @@
1
- import { Component } from '@angular/core';
2
-
3
- @Component({
4
- selector: 'ius-ius-icon-sm',
5
- standalone: true,
6
- imports: [],
7
- templateUrl: './ius-icon-sm.component.html',
8
- styleUrl: './ius-icon-sm.component.css'
9
- })
10
- export class IusIconSmComponent {
11
-
12
- }
package/tsconfig.lib.json DELETED
@@ -1,14 +0,0 @@
1
- /* To learn more about this file see: https://angular.io/config/tsconfig. */
2
- {
3
- "extends": "../../tsconfig.json",
4
- "compilerOptions": {
5
- "outDir": "../../out-tsc/lib",
6
- "declaration": true,
7
- "declarationMap": true,
8
- "inlineSources": true,
9
- "types": []
10
- },
11
- "exclude": [
12
- "**/*.spec.ts"
13
- ]
14
- }
@@ -1,10 +0,0 @@
1
- /* To learn more about this file see: https://angular.io/config/tsconfig. */
2
- {
3
- "extends": "./tsconfig.lib.json",
4
- "compilerOptions": {
5
- "declarationMap": false
6
- },
7
- "angularCompilerOptions": {
8
- "compilationMode": "partial"
9
- }
10
- }
@@ -1,14 +0,0 @@
1
- /* To learn more about this file see: https://angular.io/config/tsconfig. */
2
- {
3
- "extends": "../../tsconfig.json",
4
- "compilerOptions": {
5
- "outDir": "../../out-tsc/spec",
6
- "types": [
7
- "jasmine"
8
- ]
9
- },
10
- "include": [
11
- "**/*.spec.ts",
12
- "**/*.d.ts"
13
- ]
14
- }