@litigiovirtual/ius-design-components 1.0.2 → 1.0.4
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.
- package/ng-package.json +13 -0
- package/package.json +12 -25
- package/src/assets/icons/icon-add.svg +3 -0
- package/src/lib/button-primary/button-primary.component.html +3 -0
- package/src/lib/button-primary/button-primary.component.scss +20 -0
- package/src/lib/button-primary/button-primary.component.spec.ts +23 -0
- package/src/lib/button-primary/button-primary.component.ts +14 -0
- package/{lib/button-primary/index.d.ts → src/lib/button-primary/index.ts} +2 -1
- package/src/lib/ius-icon-md/index.ts +2 -0
- package/src/lib/ius-icon-md/ius-icon-md.component.css +11 -0
- package/src/lib/ius-icon-md/ius-icon-md.component.html +1 -0
- package/src/lib/ius-icon-md/ius-icon-md.component.spec.ts +23 -0
- package/src/lib/ius-icon-md/ius-icon-md.component.ts +29 -0
- package/src/lib/ius-icon-sm/ius-icon-sm.component.css +0 -0
- package/src/lib/ius-icon-sm/ius-icon-sm.component.html +1 -0
- package/src/lib/ius-icon-sm/ius-icon-sm.component.spec.ts +23 -0
- package/src/lib/ius-icon-sm/ius-icon-sm.component.ts +12 -0
- package/src/public-api.ts +3 -0
- package/tsconfig.lib.json +14 -0
- package/tsconfig.lib.prod.json +10 -0
- package/tsconfig.spec.json +14 -0
- package/esm2022/lib/button-primary/button-primary.component.mjs +0 -16
- package/esm2022/lib/button-primary/index.mjs +0 -2
- package/esm2022/litigiovirtual-ius-design-components.mjs +0 -5
- package/esm2022/public-api.mjs +0 -2
- package/fesm2022/litigiovirtual-ius-design-components.mjs +0 -23
- package/fesm2022/litigiovirtual-ius-design-components.mjs.map +0 -1
- package/index.d.ts +0 -5
- package/lib/button-primary/button-primary.component.d.ts +0 -6
- package/public-api.d.ts +0 -1
package/ng-package.json
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
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
|
+
}
|
package/package.json
CHANGED
|
@@ -1,26 +1,13 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@litigiovirtual/ius-design-components",
|
|
3
|
-
"version": "1.0.
|
|
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
|
-
}
|
|
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
|
|
26
13
|
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M12 21.8837C11.6095 21.8837 11.2761 21.7466 10.9998 21.4722C10.7234 21.1979 10.5853 20.8635 10.5853 20.469V13.4397H3.53102C3.13652 13.4397 2.80211 13.3026 2.52777 13.0282C2.25344 12.7539 2.11627 12.4195 2.11627 12.025C2.11627 11.6345 2.25344 11.3011 2.52777 11.0247C2.80211 10.7484 3.13652 10.6102 3.53102 10.6102H10.5603V3.531C10.5603 3.1365 10.6974 2.80208 10.9718 2.52775C11.2461 2.25341 11.5805 2.11625 11.975 2.11625C12.3655 2.11625 12.6989 2.25341 12.9753 2.52775C13.2516 2.80208 13.3898 3.1365 13.3898 3.531V10.5852H20.469C20.8635 10.5852 21.1979 10.7234 21.4723 10.9997C21.7466 11.2761 21.8838 11.6095 21.8838 12C21.8838 12.3905 21.7466 12.7239 21.4723 13.0002C21.1979 13.2766 20.8635 13.4147 20.469 13.4147H13.4148V20.469C13.4148 20.8635 13.2766 21.1979 13.0003 21.4722C12.7239 21.7466 12.3905 21.8837 12 21.8837Z" fill="currentColor"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,20 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
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
|
+
});
|
|
@@ -0,0 +1,14 @@
|
|
|
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 +1,2 @@
|
|
|
1
|
-
export * from './button-primary.component';
|
|
1
|
+
export * from './button-primary.component';
|
|
2
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<span [innerHTML]="svg"></span>
|
|
@@ -0,0 +1,23 @@
|
|
|
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
|
+
});
|
|
@@ -0,0 +1,29 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<p>ius-icon-sm works!</p>
|
|
@@ -0,0 +1,23 @@
|
|
|
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
|
+
});
|
|
@@ -0,0 +1,12 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
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
|
+
}
|
|
@@ -1,16 +0,0 @@
|
|
|
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:.5rem 1rem;border:none;cursor:pointer}.ius-btn:hover:not(:disabled){background-color:gray}.ius-btn:disabled{opacity:.6;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:.5rem 1rem;border:none;cursor:pointer}.ius-btn:hover:not(:disabled){background-color:gray}.ius-btn:disabled{opacity:.6;cursor:not-allowed}\n"] }]
|
|
13
|
-
}], propDecorators: { disabled: [{
|
|
14
|
-
type: Input
|
|
15
|
-
}] } });
|
|
16
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnV0dG9uLXByaW1hcnkuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvaXVzLWRlc2lnbi1jb21wb25lbnRzL3NyYy9saWIvYnV0dG9uLXByaW1hcnkvYnV0dG9uLXByaW1hcnkuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvaXVzLWRlc2lnbi1jb21wb25lbnRzL3NyYy9saWIvYnV0dG9uLXByaW1hcnkvYnV0dG9uLXByaW1hcnkuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSxLQUFLLEVBQUUsTUFBTSxlQUFlLENBQUM7O0FBU2pELE1BQU0sT0FBTyxzQkFBc0I7SUFQbkM7UUFTVyxhQUFRLEdBQUcsS0FBSyxDQUFDO0tBRTNCOytHQUpZLHNCQUFzQjttR0FBdEIsc0JBQXNCLGdIQ1RuQyxzR0FHQTs7NEZETWEsc0JBQXNCO2tCQVBsQyxTQUFTOytCQUNFLG9CQUFvQixjQUNsQixJQUFJLFdBQ1AsRUFBRTs4QkFNRixRQUFRO3NCQUFoQixLQUFLIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgQ29tcG9uZW50LCBJbnB1dCB9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xyXG5cclxuQENvbXBvbmVudCh7XHJcbiAgc2VsZWN0b3I6ICdpdXMtYnV0dG9uLXByaW1hcnknLFxyXG4gIHN0YW5kYWxvbmU6IHRydWUsXHJcbiAgaW1wb3J0czogW10sXHJcbiAgdGVtcGxhdGVVcmw6ICcuL2J1dHRvbi1wcmltYXJ5LmNvbXBvbmVudC5odG1sJyxcclxuICBzdHlsZVVybDogJy4vYnV0dG9uLXByaW1hcnkuY29tcG9uZW50LnNjc3MnXHJcbn0pXHJcbmV4cG9ydCBjbGFzcyBCdXR0b25QcmltYXJ5Q29tcG9uZW50IHtcclxuXHJcbiAgQElucHV0KCkgZGlzYWJsZWQgPSBmYWxzZTtcclxuXHJcbn1cclxuIiwiPGJ1dHRvbiBbZGlzYWJsZWRdPVwiZGlzYWJsZWRcIiBjbGFzcz1cIml1cy1idG5cIj5cclxuICAgIDxuZy1jb250ZW50PjwvbmctY29udGVudD5cclxuPC9idXR0b24+XHJcbiJdfQ==
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export * from './button-primary.component';
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9pdXMtZGVzaWduLWNvbXBvbmVudHMvc3JjL2xpYi9idXR0b24tcHJpbWFyeS9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLDRCQUE0QixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9idXR0b24tcHJpbWFyeS5jb21wb25lbnQnO1xyXG5cclxuIl19
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated bundle index. Do not edit.
|
|
3
|
-
*/
|
|
4
|
-
export * from './public-api';
|
|
5
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGl0aWdpb3ZpcnR1YWwtaXVzLWRlc2lnbi1jb21wb25lbnRzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vcHJvamVjdHMvaXVzLWRlc2lnbi1jb21wb25lbnRzL3NyYy9saXRpZ2lvdmlydHVhbC1pdXMtZGVzaWduLWNvbXBvbmVudHMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLGNBQWMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9wdWJsaWMtYXBpJztcbiJdfQ==
|
package/esm2022/public-api.mjs
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export * from './lib/button-primary';
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3Byb2plY3RzL2l1cy1kZXNpZ24tY29tcG9uZW50cy9zcmMvcHVibGljLWFwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLHNCQUFzQixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9saWIvYnV0dG9uLXByaW1hcnknO1xyXG5cclxuIl19
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
import { Input, Component } from '@angular/core';
|
|
3
|
-
|
|
4
|
-
class ButtonPrimaryComponent {
|
|
5
|
-
constructor() {
|
|
6
|
-
this.disabled = false;
|
|
7
|
-
}
|
|
8
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ButtonPrimaryComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
9
|
-
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:.5rem 1rem;border:none;cursor:pointer}.ius-btn:hover:not(:disabled){background-color:gray}.ius-btn:disabled{opacity:.6;cursor:not-allowed}\n"] }); }
|
|
10
|
-
}
|
|
11
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ButtonPrimaryComponent, decorators: [{
|
|
12
|
-
type: Component,
|
|
13
|
-
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:.5rem 1rem;border:none;cursor:pointer}.ius-btn:hover:not(:disabled){background-color:gray}.ius-btn:disabled{opacity:.6;cursor:not-allowed}\n"] }]
|
|
14
|
-
}], propDecorators: { disabled: [{
|
|
15
|
-
type: Input
|
|
16
|
-
}] } });
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* Generated bundle index. Do not edit.
|
|
20
|
-
*/
|
|
21
|
-
|
|
22
|
-
export { ButtonPrimaryComponent };
|
|
23
|
-
//# sourceMappingURL=litigiovirtual-ius-design-components.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
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/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","/**\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,mMAAA,CAAA,EAAA,CAAA,CAAA;;4FDMa,sBAAsB,EAAA,UAAA,EAAA,CAAA;kBAPlC,SAAS;+BACE,oBAAoB,EAAA,UAAA,EAClB,IAAI,EAAA,OAAA,EACP,EAAE,EAAA,QAAA,EAAA,sGAAA,EAAA,MAAA,EAAA,CAAA,mMAAA,CAAA,EAAA;8BAMF,QAAQ,EAAA,CAAA;sBAAhB;;;AEXH;;AAEG;;;;"}
|
package/index.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
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
|
-
}
|
package/public-api.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './lib/button-primary';
|