primekit 0.0.10 → 0.0.12
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/esm2022/lib/lib/atomix-button/atomix-button.component.mjs +46 -0
- package/esm2022/lib/lib/atomix-button/atomix-button.models.mjs +2 -0
- package/esm2022/lib/lib/p-confirmation-dialog/p-confirmation-dialog.component.mjs +3 -3
- package/esm2022/lib/lib/p-input/p-input.component.mjs +6 -3
- package/esm2022/lib/primekit.module.mjs +6 -6
- package/esm2022/public-api.mjs +2 -2
- package/fesm2022/primekit.mjs +61 -58
- package/fesm2022/primekit.mjs.map +1 -1
- package/lib/lib/atomix-button/atomix-button.component.d.ts +18 -0
- package/lib/lib/p-input/p-input.component.d.ts +2 -1
- package/lib/primekit.module.d.ts +2 -2
- package/package.json +1 -1
- package/public-api.d.ts +1 -1
- package/esm2022/lib/lib/p-button/p-button.component.mjs +0 -46
- package/esm2022/lib/lib/p-button/p-button.models.mjs +0 -2
- package/lib/lib/p-button/p-button.component.d.ts +0 -18
- /package/lib/lib/{p-button/p-button.models.d.ts → atomix-button/atomix-button.models.d.ts} +0 -0
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { Component, EventEmitter, Input, Output } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import * as i1 from "@angular/common";
|
|
4
|
+
import * as i2 from "primeng/button";
|
|
5
|
+
export class AtomixButtonComponent {
|
|
6
|
+
label = '';
|
|
7
|
+
disabled = false;
|
|
8
|
+
loading = false;
|
|
9
|
+
size = 'small';
|
|
10
|
+
type = 'primary';
|
|
11
|
+
class = '';
|
|
12
|
+
icon = '';
|
|
13
|
+
iconPos = 'left';
|
|
14
|
+
buttonData;
|
|
15
|
+
buttonClick = new EventEmitter();
|
|
16
|
+
onButtonClick() {
|
|
17
|
+
this.buttonClick.emit(this.buttonData); // Emit the event when button is clicked
|
|
18
|
+
}
|
|
19
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: AtomixButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
20
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: AtomixButtonComponent, selector: "atomix-button", inputs: { label: "label", disabled: "disabled", loading: "loading", size: "size", type: "type", class: "class", icon: "icon", iconPos: "iconPos", buttonData: "buttonData" }, outputs: { buttonClick: "buttonClick" }, ngImport: i0, template: "<button\n pButton\n pRipple\n [label]=\"label\"\n [ngClass]=\"{\n 'p-button-primary': type === 'primary',\n 'p-button-outlined': type === 'outlined',\n 'p-button-text': type === 'text',\n }\"\n [class]=\"class\"\n [disabled]=\"disabled\"\n [loading]=\"loading\"\n [size]=\"size\"\n [icon]=\"icon\"\n [iconPos]=\"iconPos\"\n (click)=\"onButtonClick()\"\n></button>\n", styles: ["::ng-deep .p-button-primary{background-color:#63b77e;color:#fff!important;border-radius:12px;height:40px;padding:10.5px 17.5px;font-size:14px;font-weight:700;line-height:17px;outline:none;border:none;cursor:pointer}:is():enabled:hover{background-color:#63b77e}:is():disabled .p-button-label{color:#00000061!important}::ng-deep .p-button-outlined{background-color:#fff!important;color:#63b77e!important;border-radius:12px;height:40px;padding:10.5px 17.5px;font-size:14px;font-weight:700;line-height:17px;cursor:pointer}::ng-deep .refresh-button{background-color:#fff!important;border-radius:50%;height:40px;width:40px}::ng-deep .p-button-text{color:#424242!important;background:none!important;border-radius:1px solid gray!important}:is():disabled{background:none!important}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.ButtonDirective, selector: "[pButton]", inputs: ["iconPos", "loadingIcon", "label", "icon", "loading", "severity", "raised", "rounded", "text", "outlined", "size", "plain"] }] });
|
|
21
|
+
}
|
|
22
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: AtomixButtonComponent, decorators: [{
|
|
23
|
+
type: Component,
|
|
24
|
+
args: [{ selector: 'atomix-button', template: "<button\n pButton\n pRipple\n [label]=\"label\"\n [ngClass]=\"{\n 'p-button-primary': type === 'primary',\n 'p-button-outlined': type === 'outlined',\n 'p-button-text': type === 'text',\n }\"\n [class]=\"class\"\n [disabled]=\"disabled\"\n [loading]=\"loading\"\n [size]=\"size\"\n [icon]=\"icon\"\n [iconPos]=\"iconPos\"\n (click)=\"onButtonClick()\"\n></button>\n", styles: ["::ng-deep .p-button-primary{background-color:#63b77e;color:#fff!important;border-radius:12px;height:40px;padding:10.5px 17.5px;font-size:14px;font-weight:700;line-height:17px;outline:none;border:none;cursor:pointer}:is():enabled:hover{background-color:#63b77e}:is():disabled .p-button-label{color:#00000061!important}::ng-deep .p-button-outlined{background-color:#fff!important;color:#63b77e!important;border-radius:12px;height:40px;padding:10.5px 17.5px;font-size:14px;font-weight:700;line-height:17px;cursor:pointer}::ng-deep .refresh-button{background-color:#fff!important;border-radius:50%;height:40px;width:40px}::ng-deep .p-button-text{color:#424242!important;background:none!important;border-radius:1px solid gray!important}:is():disabled{background:none!important}\n"] }]
|
|
25
|
+
}], propDecorators: { label: [{
|
|
26
|
+
type: Input
|
|
27
|
+
}], disabled: [{
|
|
28
|
+
type: Input
|
|
29
|
+
}], loading: [{
|
|
30
|
+
type: Input
|
|
31
|
+
}], size: [{
|
|
32
|
+
type: Input
|
|
33
|
+
}], type: [{
|
|
34
|
+
type: Input
|
|
35
|
+
}], class: [{
|
|
36
|
+
type: Input
|
|
37
|
+
}], icon: [{
|
|
38
|
+
type: Input
|
|
39
|
+
}], iconPos: [{
|
|
40
|
+
type: Input
|
|
41
|
+
}], buttonData: [{
|
|
42
|
+
type: Input
|
|
43
|
+
}], buttonClick: [{
|
|
44
|
+
type: Output
|
|
45
|
+
}] } });
|
|
46
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXRvbWl4LWJ1dHRvbi5jb21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9wcm9qZWN0cy9wcmltZWtpdC9zcmMvbGliL2xpYi9hdG9taXgtYnV0dG9uL2F0b21peC1idXR0b24ubW9kZWxzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgdHlwZSBCdXR0b25TaXplID0gJ3NtYWxsJyB8ICdsYXJnZScgfCBudWxsIHwgdW5kZWZpbmVkO1xuZXhwb3J0IHR5cGUgQnV0dG9uSWNvblBvc2l0aW9uID0gJ2xlZnQnIHwgJ3JpZ2h0JztcbiJdfQ==
|
|
@@ -19,11 +19,11 @@ export class PConfirmationDialogComponent {
|
|
|
19
19
|
});
|
|
20
20
|
}
|
|
21
21
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: PConfirmationDialogComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
22
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: PConfirmationDialogComponent, selector: "lib-p-confirmation-dialog", inputs: { header: "header", message: "message", dialogVisible: "dialogVisible" }, outputs: { onConfirm: "onConfirm" }, ngImport: i0, template: "<p-dialog\n [(visible)]=\"dialogVisible\"\n [header]=\"header\"\n [modal]=\"true\"\n [closable]=\"true\"\n styleClass=\"dialog-width\"\n [style]=\"{\n width: 'fit-content',\n height: 'fit-content',\n maxWidth: '25rem',\n }\"\n [maximizable]=\"true\"\n [baseZIndex]=\"9999999999\"\n>\n <p class=\"global-sub-heading\">\n {{ message }}\n </p>\n\n <div class=\"action-button-container\">\n <button\n pButton\n class=\"p-button-outlined\"\n (click)=\"onNoClick()\"\n style=\"margin-top: 0px\"\n >\n No\n </button>\n <button pButton class=\"p-button-primary\" (click)=\"onYesClick()\">Yes</button>\n </div>\n
|
|
22
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: PConfirmationDialogComponent, selector: "lib-p-confirmation-dialog", inputs: { header: "header", message: "message", dialogVisible: "dialogVisible" }, outputs: { onConfirm: "onConfirm" }, ngImport: i0, template: "<p-dialog\n [(visible)]=\"dialogVisible\"\n [header]=\"header\"\n [modal]=\"true\"\n [closable]=\"true\"\n styleClass=\"dialog-width\"\n [style]=\"{\n width: 'fit-content',\n height: 'fit-content',\n maxWidth: '25rem',\n }\"\n [maximizable]=\"true\"\n [baseZIndex]=\"9999999999\"\n>\n <p class=\"global-sub-heading\">\n {{ message }}\n </p>\n\n <div class=\"action-button-container\">\n <button\n pButton\n class=\"p-button-outlined\"\n (click)=\"onNoClick()\"\n style=\"margin-top: 0px\"\n >\n No\n </button>\n <button pButton class=\"p-button-primary\" (click)=\"onYesClick()\">Yes</button>\n </div>\n</p-dialog>\n", styles: [".action-button-container{margin-top:1.5rem;display:flex;justify-content:flex-end;gap:.5rem}\n"], dependencies: [{ kind: "directive", type: i1.ButtonDirective, selector: "[pButton]", inputs: ["iconPos", "loadingIcon", "label", "icon", "loading", "severity", "raised", "rounded", "text", "outlined", "size", "plain"] }, { kind: "component", type: i2.Dialog, selector: "p-dialog", inputs: ["header", "draggable", "resizable", "positionLeft", "positionTop", "contentStyle", "contentStyleClass", "modal", "closeOnEscape", "dismissableMask", "rtl", "closable", "responsive", "appendTo", "breakpoints", "styleClass", "maskStyleClass", "maskStyle", "showHeader", "breakpoint", "blockScroll", "autoZIndex", "baseZIndex", "minX", "minY", "focusOnShow", "maximizable", "keepInViewport", "focusTrap", "transitionOptions", "closeIcon", "closeAriaLabel", "closeTabindex", "minimizeIcon", "maximizeIcon", "visible", "style", "position"], outputs: ["onShow", "onHide", "visibleChange", "onResizeInit", "onResizeEnd", "onDragEnd", "onMaximize"] }] });
|
|
23
23
|
}
|
|
24
24
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: PConfirmationDialogComponent, decorators: [{
|
|
25
25
|
type: Component,
|
|
26
|
-
args: [{ selector: 'lib-p-confirmation-dialog', template: "<p-dialog\n [(visible)]=\"dialogVisible\"\n [header]=\"header\"\n [modal]=\"true\"\n [closable]=\"true\"\n styleClass=\"dialog-width\"\n [style]=\"{\n width: 'fit-content',\n height: 'fit-content',\n maxWidth: '25rem',\n }\"\n [maximizable]=\"true\"\n [baseZIndex]=\"9999999999\"\n>\n <p class=\"global-sub-heading\">\n {{ message }}\n </p>\n\n <div class=\"action-button-container\">\n <button\n pButton\n class=\"p-button-outlined\"\n (click)=\"onNoClick()\"\n style=\"margin-top: 0px\"\n >\n No\n </button>\n <button pButton class=\"p-button-primary\" (click)=\"onYesClick()\">Yes</button>\n </div>\n
|
|
26
|
+
args: [{ selector: 'lib-p-confirmation-dialog', template: "<p-dialog\n [(visible)]=\"dialogVisible\"\n [header]=\"header\"\n [modal]=\"true\"\n [closable]=\"true\"\n styleClass=\"dialog-width\"\n [style]=\"{\n width: 'fit-content',\n height: 'fit-content',\n maxWidth: '25rem',\n }\"\n [maximizable]=\"true\"\n [baseZIndex]=\"9999999999\"\n>\n <p class=\"global-sub-heading\">\n {{ message }}\n </p>\n\n <div class=\"action-button-container\">\n <button\n pButton\n class=\"p-button-outlined\"\n (click)=\"onNoClick()\"\n style=\"margin-top: 0px\"\n >\n No\n </button>\n <button pButton class=\"p-button-primary\" (click)=\"onYesClick()\">Yes</button>\n </div>\n</p-dialog>\n", styles: [".action-button-container{margin-top:1.5rem;display:flex;justify-content:flex-end;gap:.5rem}\n"] }]
|
|
27
27
|
}], ctorParameters: () => [], propDecorators: { header: [{
|
|
28
28
|
type: Input
|
|
29
29
|
}], message: [{
|
|
@@ -33,4 +33,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
33
33
|
}], onConfirm: [{
|
|
34
34
|
type: Output
|
|
35
35
|
}] } });
|
|
36
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
36
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJm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gIFsodmlzaWJsZSldPVwiZGlhbG9nVmlzaWJsZVwiXG4gIFtoZWFkZXJdPVwiaGVhZGVyXCJcbiAgW21vZGFsXT1cInRydWVcIlxuICBbY2xvc2FibGVdPVwidHJ1ZVwiXG4gIHN0eWxlQ2xhc3M9XCJkaWFsb2ctd2lkdGhcIlxuICBbc3R5bGVdPVwie1xuICAgIHdpZHRoOiAnZml0LWNvbnRlbnQnLFxuICAgIGhlaWdodDogJ2ZpdC1jb250ZW50JyxcbiAgICBtYXhXaWR0aDogJzI1cmVtJyxcbiAgfVwiXG4gIFttYXhpbWl6YWJsZV09XCJ0cnVlXCJcbiAgW2Jhc2VaSW5kZXhdPVwiOTk5OTk5OTk5OVwiXG4+XG4gIDxwIGNsYXNzPVwiZ2xvYmFsLXN1Yi1oZWFkaW5nXCI+XG4gICAge3sgbWVzc2FnZSB9fVxuICA8L3A+XG5cbiAgPGRpdiBjbGFzcz1cImFjdGlvbi1idXR0b24tY29udGFpbmVyXCI+XG4gICAgPGJ1dHRvblxuICAgICAgcEJ1dHRvblxuICAgICAgY2xhc3M9XCJwLWJ1dHRvbi1vdXRsaW5lZFwiXG4gICAgICAoY2xpY2spPVwib25Ob0NsaWNrKClcIlxuICAgICAgc3R5bGU9XCJtYXJnaW4tdG9wOiAwcHhcIlxuICAgID5cbiAgICAgIE5vXG4gICAgPC9idXR0b24+XG4gICAgPGJ1dHRvbiBwQnV0dG9uIGNsYXNzPVwicC1idXR0b24tcHJpbWFyeVwiIChjbGljayk9XCJvblllc0NsaWNrKClcIj5ZZXM8L2J1dHRvbj5cbiAgPC9kaXY+XG48L3AtZGlhbG9nPlxuIl19
|
|
@@ -4,6 +4,7 @@ import * as i1 from "@angular/common";
|
|
|
4
4
|
import * as i2 from "primeng/inputtext";
|
|
5
5
|
export class PInputComponent {
|
|
6
6
|
value = '';
|
|
7
|
+
name = '';
|
|
7
8
|
type = 'text';
|
|
8
9
|
placeholder = '';
|
|
9
10
|
valueChange = new EventEmitter();
|
|
@@ -29,13 +30,15 @@ export class PInputComponent {
|
|
|
29
30
|
this.onEnter();
|
|
30
31
|
}
|
|
31
32
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: PInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
32
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: PInputComponent, selector: "lib-p-input", inputs: { value: "value", type: "type", placeholder: "placeholder", withIcon: "withIcon", iconName: "iconName", containerClass: "containerClass", class: "class", disabled: "disabled", isCrossRequired: "isCrossRequired", label: "label", isLabelRequired: "isLabelRequired" }, outputs: { valueChange: "valueChange", changeValueHandler: "changeValueHandler" }, ngImport: i0, template: "<label *ngIf=\"label\"\n >{{ label }}\n <span *ngIf=\"isLabelRequired\" class=\"error-asterisk\">*</span></label\n>\n\n<input\n type=\"text\"\n pInputText\n [value]=\"value\"\n [attr.placeholder]=\"placeholder\"\n (input)=\"onInput($event)\"\n (keydown.enter)=\"onEnter()\"\n [ngClass]=\"class\"\n autocomplete=\"new-password\"\n [disabled]=\"disabled\"\n [type]=\"type\"\n/>\n<i\n class=\"pi pi-times filter-dropdown-icon\"\n style=\"cursor: pointer\"\n (click)=\"clearValue()\"\n *ngIf=\"isCrossRequired && value !== ''\"\n></i>\n", styles: [".error-asterisk{color:red}.filter-dropdown-icon{position:absolute;top:50%;padding-left:.8rem;transform:translateY(-50%);z-index:1;pointer-events:none}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.InputText, selector: "[pInputText]", inputs: ["variant"] }] });
|
|
33
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: PInputComponent, selector: "lib-p-input", inputs: { value: "value", name: "name", type: "type", placeholder: "placeholder", withIcon: "withIcon", iconName: "iconName", containerClass: "containerClass", class: "class", disabled: "disabled", isCrossRequired: "isCrossRequired", label: "label", isLabelRequired: "isLabelRequired" }, outputs: { valueChange: "valueChange", changeValueHandler: "changeValueHandler" }, ngImport: i0, template: "<label *ngIf=\"label\" for=\"name\"\n >{{ label }}\n <span *ngIf=\"isLabelRequired\" class=\"lib-error-asterisk\">*</span></label\n>\n\n<input\n[id]=\"name\"\n type=\"text\"\n pInputText\n [value]=\"value\"\n [attr.placeholder]=\"placeholder\"\n (input)=\"onInput($event)\"\n (keydown.enter)=\"onEnter()\"\n [ngClass]=\"class+ ' lib-input-field'\"\n autocomplete=\"new-password\"\n [disabled]=\"disabled\"\n [type]=\"type\"\n/>\n<i\n class=\"pi pi-times filter-dropdown-icon\"\n style=\"cursor: pointer\"\n (click)=\"clearValue()\"\n *ngIf=\"isCrossRequired && value !== ''\"\n></i>\n", styles: [".lib-error-asterisk{color:red}.filter-dropdown-icon{position:absolute;top:50%;padding-left:.8rem;transform:translateY(-50%);z-index:1;pointer-events:none}::ng-deep .lib-input-field{border-radius:30px;margin-top:.5rem}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.InputText, selector: "[pInputText]", inputs: ["variant"] }] });
|
|
33
34
|
}
|
|
34
35
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: PInputComponent, decorators: [{
|
|
35
36
|
type: Component,
|
|
36
|
-
args: [{ selector: 'lib-p-input', template: "<label *ngIf=\"label\"\n >{{ label }}\n <span *ngIf=\"isLabelRequired\" class=\"error-asterisk\">*</span></label\n>\n\n<input\n type=\"text\"\n pInputText\n [value]=\"value\"\n [attr.placeholder]=\"placeholder\"\n (input)=\"onInput($event)\"\n (keydown.enter)=\"onEnter()\"\n [ngClass]=\"class\"\n autocomplete=\"new-password\"\n [disabled]=\"disabled\"\n [type]=\"type\"\n/>\n<i\n class=\"pi pi-times filter-dropdown-icon\"\n style=\"cursor: pointer\"\n (click)=\"clearValue()\"\n *ngIf=\"isCrossRequired && value !== ''\"\n></i>\n", styles: [".error-asterisk{color:red}.filter-dropdown-icon{position:absolute;top:50%;padding-left:.8rem;transform:translateY(-50%);z-index:1;pointer-events:none}\n"] }]
|
|
37
|
+
args: [{ selector: 'lib-p-input', template: "<label *ngIf=\"label\" for=\"name\"\n >{{ label }}\n <span *ngIf=\"isLabelRequired\" class=\"lib-error-asterisk\">*</span></label\n>\n\n<input\n[id]=\"name\"\n type=\"text\"\n pInputText\n [value]=\"value\"\n [attr.placeholder]=\"placeholder\"\n (input)=\"onInput($event)\"\n (keydown.enter)=\"onEnter()\"\n [ngClass]=\"class+ ' lib-input-field'\"\n autocomplete=\"new-password\"\n [disabled]=\"disabled\"\n [type]=\"type\"\n/>\n<i\n class=\"pi pi-times filter-dropdown-icon\"\n style=\"cursor: pointer\"\n (click)=\"clearValue()\"\n *ngIf=\"isCrossRequired && value !== ''\"\n></i>\n", styles: [".lib-error-asterisk{color:red}.filter-dropdown-icon{position:absolute;top:50%;padding-left:.8rem;transform:translateY(-50%);z-index:1;pointer-events:none}::ng-deep .lib-input-field{border-radius:30px;margin-top:.5rem}\n"] }]
|
|
37
38
|
}], propDecorators: { value: [{
|
|
38
39
|
type: Input
|
|
40
|
+
}], name: [{
|
|
41
|
+
type: Input
|
|
39
42
|
}], type: [{
|
|
40
43
|
type: Input
|
|
41
44
|
}], placeholder: [{
|
|
@@ -61,4 +64,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
61
64
|
}], changeValueHandler: [{
|
|
62
65
|
type: Output
|
|
63
66
|
}] } });
|
|
64
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
67
|
+
//# sourceMappingURL=data:application/json;base64,eyJ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gIT09ICcnXCJcbj48L2k+XG4iXX0=
|
|
@@ -6,21 +6,21 @@ import { DialogModule } from 'primeng/dialog';
|
|
|
6
6
|
import { CardModule } from 'primeng/card';
|
|
7
7
|
import { InputTextModule } from 'primeng/inputtext';
|
|
8
8
|
// Common Components
|
|
9
|
-
import { PButtonComponent } from './lib/p-button/p-button.component';
|
|
10
9
|
import { PCardComponent } from './lib/p-card/p-card.component';
|
|
11
10
|
import { PConfirmationDialogComponent } from './lib/p-confirmation-dialog/p-confirmation-dialog.component';
|
|
12
11
|
import { PInputComponent } from './lib/p-input/p-input.component';
|
|
12
|
+
import { AtomixButtonComponent } from './lib/atomix-button/atomix-button.component';
|
|
13
13
|
import * as i0 from "@angular/core";
|
|
14
14
|
export class PrimekitModule {
|
|
15
15
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: PrimekitModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
16
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.13", ngImport: i0, type: PrimekitModule, declarations: [
|
|
16
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.13", ngImport: i0, type: PrimekitModule, declarations: [AtomixButtonComponent,
|
|
17
17
|
PCardComponent,
|
|
18
18
|
PConfirmationDialogComponent,
|
|
19
19
|
PInputComponent], imports: [CommonModule,
|
|
20
20
|
ButtonModule,
|
|
21
21
|
CardModule,
|
|
22
22
|
DialogModule,
|
|
23
|
-
InputTextModule], exports: [
|
|
23
|
+
InputTextModule], exports: [AtomixButtonComponent,
|
|
24
24
|
PCardComponent,
|
|
25
25
|
PConfirmationDialogComponent,
|
|
26
26
|
PInputComponent] });
|
|
@@ -34,7 +34,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
34
34
|
type: NgModule,
|
|
35
35
|
args: [{
|
|
36
36
|
declarations: [
|
|
37
|
-
|
|
37
|
+
AtomixButtonComponent,
|
|
38
38
|
PCardComponent,
|
|
39
39
|
PConfirmationDialogComponent,
|
|
40
40
|
PInputComponent,
|
|
@@ -47,11 +47,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
47
47
|
InputTextModule,
|
|
48
48
|
], // Import the PrimeNG ButtonModule here
|
|
49
49
|
exports: [
|
|
50
|
-
|
|
50
|
+
AtomixButtonComponent,
|
|
51
51
|
PCardComponent,
|
|
52
52
|
PConfirmationDialogComponent,
|
|
53
53
|
PInputComponent,
|
|
54
54
|
], // Export your component
|
|
55
55
|
}]
|
|
56
56
|
}] });
|
|
57
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
57
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJpbWVraXQubW9kdWxlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vcHJvamVjdHMvcHJpbWVraXQvc3JjL2xpYi9wcmltZWtpdC5tb2R1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFFBQVEsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUN6QyxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFFL0MscUJBQXFCO0FBQ3JCLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQztBQUM5QyxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0sZ0JBQWdCLENBQUM7QUFDOUMsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLGNBQWMsQ0FBQztBQUMxQyxPQUFPLEVBQUUsZUFBZSxFQUFFLE1BQU0sbUJBQW1CLENBQUM7QUFFcEQsb0JBQW9CO0FBQ3BCLE9BQU8sRUFBRSxjQUFjLEVBQUUsTUFBT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RNb2R1bGUsXG4gIF0sIC8vIEltcG9ydCB0aGUgUHJpbWVORyBCdXR0b25Nb2R1bGUgaGVyZVxuICBleHBvcnRzOiBbXG4gICAgQXRvbWl4QnV0dG9uQ29tcG9uZW50LFxuICAgIFBDYXJkQ29tcG9uZW50LFxuICAgIFBDb25maXJtYXRpb25EaWFsb2dDb21wb25lbnQsXG4gICAgUElucHV0Q29tcG9uZW50LFxuICBdLCAvLyBFeHBvcnQgeW91ciBjb21wb25lbnRcbn0pXG5leHBvcnQgY2xhc3MgUHJpbWVraXRNb2R1bGUge31cbiJdfQ==
|
package/esm2022/public-api.mjs
CHANGED
|
@@ -5,8 +5,8 @@ export * from './lib/primekit.service';
|
|
|
5
5
|
export * from './lib/primekit.component';
|
|
6
6
|
export * from './lib/primekit.module';
|
|
7
7
|
// Button
|
|
8
|
-
export * from './lib/lib/
|
|
8
|
+
export * from './lib/lib/atomix-button/atomix-button.component';
|
|
9
9
|
export * from './lib/lib/p-card/p-card.component';
|
|
10
10
|
export * from './lib/lib/p-confirmation-dialog/p-confirmation-dialog.component';
|
|
11
11
|
export * from './lib/lib/p-input/p-input.component';
|
|
12
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
12
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3Byb2plY3RzL3ByaW1la2l0L3NyYy9wdWJsaWMtYXBpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBRUgsY0FBYyx3QkFBd0IsQ0FBQztBQUN2QyxjQUFjLDBCQUEwQixDQUFDO0FBQ3pDLGNBQWMsdUJBQXVCLENBQUM7QUFFdEMsU0FBUztBQUNULGNBQWMsaURBQWlELENBQUM7QUFDaEUsY0FBYyxtQ0FBbUMsQ0FBQztBQUNsRCxjQUFjLGlFQUFpRSxDQUFDO0FBQ2hGLGNBQWMscUNBQXFDLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKlxuICogUHVibGljIEFQSSBTdXJmYWNlIG9mIHByaW1la2l0XG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9saWIvcHJpbWVraXQuc2VydmljZSc7XG5leHBvcnQgKiBmcm9tICcuL2xpYi9wcmltZWtpdC5jb21wb25lbnQnO1xuZXhwb3J0ICogZnJvbSAnLi9saWIvcHJpbWVraXQubW9kdWxlJztcblxuLy8gQnV0dG9uXG5leHBvcnQgKiBmcm9tICcuL2xpYi9saWIvYXRvbWl4LWJ1dHRvbi9hdG9taXgtYnV0dG9uLmNvbXBvbmVudCc7XG5leHBvcnQgKiBmcm9tICcuL2xpYi9saWIvcC1jYXJkL3AtY2FyZC5jb21wb25lbnQnO1xuZXhwb3J0ICogZnJvbSAnLi9saWIvbGliL3AtY29uZmlybWF0aW9uLWRpYWxvZy9wLWNvbmZpcm1hdGlvbi1kaWFsb2cuY29tcG9uZW50JztcbmV4cG9ydCAqIGZyb20gJy4vbGliL2xpYi9wLWlucHV0L3AtaW5wdXQuY29tcG9uZW50JztcbiJdfQ==
|
package/fesm2022/primekit.mjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Injectable, Component,
|
|
3
|
-
import * as i1 from '@angular/common';
|
|
2
|
+
import { Injectable, Component, Input, EventEmitter, Output, NgModule } from '@angular/core';
|
|
3
|
+
import * as i1$2 from '@angular/common';
|
|
4
4
|
import { CommonModule } from '@angular/common';
|
|
5
|
-
import * as
|
|
5
|
+
import * as i1$1 from 'primeng/button';
|
|
6
6
|
import { ButtonModule } from 'primeng/button';
|
|
7
|
-
import * as i2
|
|
7
|
+
import * as i2 from 'primeng/dialog';
|
|
8
8
|
import { DialogModule } from 'primeng/dialog';
|
|
9
|
-
import * as i1
|
|
9
|
+
import * as i1 from 'primeng/card';
|
|
10
10
|
import { CardModule } from 'primeng/card';
|
|
11
|
-
import * as i2$
|
|
11
|
+
import * as i2$1 from 'primeng/inputtext';
|
|
12
12
|
import { InputTextModule } from 'primeng/inputtext';
|
|
13
13
|
|
|
14
14
|
class PrimekitService {
|
|
@@ -32,55 +32,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
32
32
|
args: [{ selector: 'lib-primekit', standalone: true, imports: [], template: ` <p>primekit works!</p> ` }]
|
|
33
33
|
}] });
|
|
34
34
|
|
|
35
|
-
class PButtonComponent {
|
|
36
|
-
label = '';
|
|
37
|
-
disabled = false;
|
|
38
|
-
loading = false;
|
|
39
|
-
size = 'small';
|
|
40
|
-
type = 'primary';
|
|
41
|
-
class = '';
|
|
42
|
-
icon = '';
|
|
43
|
-
iconPos = 'left';
|
|
44
|
-
buttonData;
|
|
45
|
-
buttonClick = new EventEmitter();
|
|
46
|
-
onButtonClick() {
|
|
47
|
-
this.buttonClick.emit(this.buttonData); // Emit the event when button is clicked
|
|
48
|
-
}
|
|
49
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: PButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
50
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: PButtonComponent, selector: "lib-p-button", inputs: { label: "label", disabled: "disabled", loading: "loading", size: "size", type: "type", class: "class", icon: "icon", iconPos: "iconPos", buttonData: "buttonData" }, outputs: { buttonClick: "buttonClick" }, ngImport: i0, template: "<button\n pButton\n pRipple\n [label]=\"label\"\n [ngClass]=\"{\n 'p-button-primary': type === 'primary',\n 'p-button-outlined': type === 'outlined',\n 'p-button-text': type === 'text',\n }\"\n [class]=\"class\"\n [disabled]=\"disabled\"\n [loading]=\"loading\"\n [size]=\"size\"\n [icon]=\"icon\"\n [iconPos]=\"iconPos\"\n (click)=\"onButtonClick()\"\n></button>\n", styles: ["::ng-deep .p-button-primary{background-color:#63b77e;color:#fff!important;border-radius:12px;height:40px;padding:10.5px 17.5px;font-size:14px;font-weight:700;line-height:17px;outline:none;border:none;cursor:pointer}:is():enabled:hover{background-color:#63b77e}:is():disabled .p-button-label{color:#00000061!important}::ng-deep .p-button-outlined{background-color:#fff!important;color:#63b77e!important;border-radius:12px;height:40px;padding:10.5px 17.5px;font-size:14px;font-weight:700;line-height:17px;cursor:pointer}::ng-deep .refresh-button{background-color:#fff!important;border-radius:50%;height:40px;width:40px}::ng-deep .p-button-text{color:#424242!important;background:none!important;border-radius:1px solid gray!important}:is():disabled{background:none!important}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.ButtonDirective, selector: "[pButton]", inputs: ["iconPos", "loadingIcon", "label", "icon", "loading", "severity", "raised", "rounded", "text", "outlined", "size", "plain"] }] });
|
|
51
|
-
}
|
|
52
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: PButtonComponent, decorators: [{
|
|
53
|
-
type: Component,
|
|
54
|
-
args: [{ selector: 'lib-p-button', template: "<button\n pButton\n pRipple\n [label]=\"label\"\n [ngClass]=\"{\n 'p-button-primary': type === 'primary',\n 'p-button-outlined': type === 'outlined',\n 'p-button-text': type === 'text',\n }\"\n [class]=\"class\"\n [disabled]=\"disabled\"\n [loading]=\"loading\"\n [size]=\"size\"\n [icon]=\"icon\"\n [iconPos]=\"iconPos\"\n (click)=\"onButtonClick()\"\n></button>\n", styles: ["::ng-deep .p-button-primary{background-color:#63b77e;color:#fff!important;border-radius:12px;height:40px;padding:10.5px 17.5px;font-size:14px;font-weight:700;line-height:17px;outline:none;border:none;cursor:pointer}:is():enabled:hover{background-color:#63b77e}:is():disabled .p-button-label{color:#00000061!important}::ng-deep .p-button-outlined{background-color:#fff!important;color:#63b77e!important;border-radius:12px;height:40px;padding:10.5px 17.5px;font-size:14px;font-weight:700;line-height:17px;cursor:pointer}::ng-deep .refresh-button{background-color:#fff!important;border-radius:50%;height:40px;width:40px}::ng-deep .p-button-text{color:#424242!important;background:none!important;border-radius:1px solid gray!important}:is():disabled{background:none!important}\n"] }]
|
|
55
|
-
}], propDecorators: { label: [{
|
|
56
|
-
type: Input
|
|
57
|
-
}], disabled: [{
|
|
58
|
-
type: Input
|
|
59
|
-
}], loading: [{
|
|
60
|
-
type: Input
|
|
61
|
-
}], size: [{
|
|
62
|
-
type: Input
|
|
63
|
-
}], type: [{
|
|
64
|
-
type: Input
|
|
65
|
-
}], class: [{
|
|
66
|
-
type: Input
|
|
67
|
-
}], icon: [{
|
|
68
|
-
type: Input
|
|
69
|
-
}], iconPos: [{
|
|
70
|
-
type: Input
|
|
71
|
-
}], buttonData: [{
|
|
72
|
-
type: Input
|
|
73
|
-
}], buttonClick: [{
|
|
74
|
-
type: Output
|
|
75
|
-
}] } });
|
|
76
|
-
|
|
77
35
|
class PCardComponent {
|
|
78
36
|
header;
|
|
79
37
|
footer;
|
|
80
38
|
content;
|
|
81
39
|
class;
|
|
82
40
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: PCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
83
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: PCardComponent, selector: "lib-p-card", inputs: { header: "header", footer: "footer", content: "content", class: "class" }, ngImport: i0, template: "<p-card [class]=\"class\">\n <ng-content></ng-content>\n</p-card>\n", styles: ["::ng-deep .p-card{box-shadow:0 2px 4px #0000001a;border-radius:12px}\n"], dependencies: [{ kind: "component", type: i1
|
|
41
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: PCardComponent, selector: "lib-p-card", inputs: { header: "header", footer: "footer", content: "content", class: "class" }, ngImport: i0, template: "<p-card [class]=\"class\">\n <ng-content></ng-content>\n</p-card>\n", styles: ["::ng-deep .p-card{box-shadow:0 2px 4px #0000001a;border-radius:12px}\n"], dependencies: [{ kind: "component", type: i1.Card, selector: "p-card", inputs: ["header", "subheader", "style", "styleClass"] }] });
|
|
84
42
|
}
|
|
85
43
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: PCardComponent, decorators: [{
|
|
86
44
|
type: Component,
|
|
@@ -112,11 +70,11 @@ class PConfirmationDialogComponent {
|
|
|
112
70
|
});
|
|
113
71
|
}
|
|
114
72
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: PConfirmationDialogComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
115
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: PConfirmationDialogComponent, selector: "lib-p-confirmation-dialog", inputs: { header: "header", message: "message", dialogVisible: "dialogVisible" }, outputs: { onConfirm: "onConfirm" }, ngImport: i0, template: "<p-dialog\n [(visible)]=\"dialogVisible\"\n [header]=\"header\"\n [modal]=\"true\"\n [closable]=\"true\"\n styleClass=\"dialog-width\"\n [style]=\"{\n width: 'fit-content',\n height: 'fit-content',\n maxWidth: '25rem',\n }\"\n [maximizable]=\"true\"\n [baseZIndex]=\"9999999999\"\n>\n <p class=\"global-sub-heading\">\n {{ message }}\n </p>\n\n <div class=\"action-button-container\">\n <button\n pButton\n class=\"p-button-outlined\"\n (click)=\"onNoClick()\"\n style=\"margin-top: 0px\"\n >\n No\n </button>\n <button pButton class=\"p-button-primary\" (click)=\"onYesClick()\">Yes</button>\n </div>\n
|
|
73
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: PConfirmationDialogComponent, selector: "lib-p-confirmation-dialog", inputs: { header: "header", message: "message", dialogVisible: "dialogVisible" }, outputs: { onConfirm: "onConfirm" }, ngImport: i0, template: "<p-dialog\n [(visible)]=\"dialogVisible\"\n [header]=\"header\"\n [modal]=\"true\"\n [closable]=\"true\"\n styleClass=\"dialog-width\"\n [style]=\"{\n width: 'fit-content',\n height: 'fit-content',\n maxWidth: '25rem',\n }\"\n [maximizable]=\"true\"\n [baseZIndex]=\"9999999999\"\n>\n <p class=\"global-sub-heading\">\n {{ message }}\n </p>\n\n <div class=\"action-button-container\">\n <button\n pButton\n class=\"p-button-outlined\"\n (click)=\"onNoClick()\"\n style=\"margin-top: 0px\"\n >\n No\n </button>\n <button pButton class=\"p-button-primary\" (click)=\"onYesClick()\">Yes</button>\n </div>\n</p-dialog>\n", styles: [".action-button-container{margin-top:1.5rem;display:flex;justify-content:flex-end;gap:.5rem}\n"], dependencies: [{ kind: "directive", type: i1$1.ButtonDirective, selector: "[pButton]", inputs: ["iconPos", "loadingIcon", "label", "icon", "loading", "severity", "raised", "rounded", "text", "outlined", "size", "plain"] }, { kind: "component", type: i2.Dialog, selector: "p-dialog", inputs: ["header", "draggable", "resizable", "positionLeft", "positionTop", "contentStyle", "contentStyleClass", "modal", "closeOnEscape", "dismissableMask", "rtl", "closable", "responsive", "appendTo", "breakpoints", "styleClass", "maskStyleClass", "maskStyle", "showHeader", "breakpoint", "blockScroll", "autoZIndex", "baseZIndex", "minX", "minY", "focusOnShow", "maximizable", "keepInViewport", "focusTrap", "transitionOptions", "closeIcon", "closeAriaLabel", "closeTabindex", "minimizeIcon", "maximizeIcon", "visible", "style", "position"], outputs: ["onShow", "onHide", "visibleChange", "onResizeInit", "onResizeEnd", "onDragEnd", "onMaximize"] }] });
|
|
116
74
|
}
|
|
117
75
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: PConfirmationDialogComponent, decorators: [{
|
|
118
76
|
type: Component,
|
|
119
|
-
args: [{ selector: 'lib-p-confirmation-dialog', template: "<p-dialog\n [(visible)]=\"dialogVisible\"\n [header]=\"header\"\n [modal]=\"true\"\n [closable]=\"true\"\n styleClass=\"dialog-width\"\n [style]=\"{\n width: 'fit-content',\n height: 'fit-content',\n maxWidth: '25rem',\n }\"\n [maximizable]=\"true\"\n [baseZIndex]=\"9999999999\"\n>\n <p class=\"global-sub-heading\">\n {{ message }}\n </p>\n\n <div class=\"action-button-container\">\n <button\n pButton\n class=\"p-button-outlined\"\n (click)=\"onNoClick()\"\n style=\"margin-top: 0px\"\n >\n No\n </button>\n <button pButton class=\"p-button-primary\" (click)=\"onYesClick()\">Yes</button>\n </div>\n
|
|
77
|
+
args: [{ selector: 'lib-p-confirmation-dialog', template: "<p-dialog\n [(visible)]=\"dialogVisible\"\n [header]=\"header\"\n [modal]=\"true\"\n [closable]=\"true\"\n styleClass=\"dialog-width\"\n [style]=\"{\n width: 'fit-content',\n height: 'fit-content',\n maxWidth: '25rem',\n }\"\n [maximizable]=\"true\"\n [baseZIndex]=\"9999999999\"\n>\n <p class=\"global-sub-heading\">\n {{ message }}\n </p>\n\n <div class=\"action-button-container\">\n <button\n pButton\n class=\"p-button-outlined\"\n (click)=\"onNoClick()\"\n style=\"margin-top: 0px\"\n >\n No\n </button>\n <button pButton class=\"p-button-primary\" (click)=\"onYesClick()\">Yes</button>\n </div>\n</p-dialog>\n", styles: [".action-button-container{margin-top:1.5rem;display:flex;justify-content:flex-end;gap:.5rem}\n"] }]
|
|
120
78
|
}], ctorParameters: () => [], propDecorators: { header: [{
|
|
121
79
|
type: Input
|
|
122
80
|
}], message: [{
|
|
@@ -129,6 +87,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
129
87
|
|
|
130
88
|
class PInputComponent {
|
|
131
89
|
value = '';
|
|
90
|
+
name = '';
|
|
132
91
|
type = 'text';
|
|
133
92
|
placeholder = '';
|
|
134
93
|
valueChange = new EventEmitter();
|
|
@@ -154,13 +113,15 @@ class PInputComponent {
|
|
|
154
113
|
this.onEnter();
|
|
155
114
|
}
|
|
156
115
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: PInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
157
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: PInputComponent, selector: "lib-p-input", inputs: { value: "value", type: "type", placeholder: "placeholder", withIcon: "withIcon", iconName: "iconName", containerClass: "containerClass", class: "class", disabled: "disabled", isCrossRequired: "isCrossRequired", label: "label", isLabelRequired: "isLabelRequired" }, outputs: { valueChange: "valueChange", changeValueHandler: "changeValueHandler" }, ngImport: i0, template: "<label *ngIf=\"label\"\n >{{ label }}\n <span *ngIf=\"isLabelRequired\" class=\"error-asterisk\">*</span></label\n>\n\n<input\n type=\"text\"\n pInputText\n [value]=\"value\"\n [attr.placeholder]=\"placeholder\"\n (input)=\"onInput($event)\"\n (keydown.enter)=\"onEnter()\"\n [ngClass]=\"class\"\n autocomplete=\"new-password\"\n [disabled]=\"disabled\"\n [type]=\"type\"\n/>\n<i\n class=\"pi pi-times filter-dropdown-icon\"\n style=\"cursor: pointer\"\n (click)=\"clearValue()\"\n *ngIf=\"isCrossRequired && value !== ''\"\n></i>\n", styles: [".error-asterisk{color:red}.filter-dropdown-icon{position:absolute;top:50%;padding-left:.8rem;transform:translateY(-50%);z-index:1;pointer-events:none}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2$
|
|
116
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: PInputComponent, selector: "lib-p-input", inputs: { value: "value", name: "name", type: "type", placeholder: "placeholder", withIcon: "withIcon", iconName: "iconName", containerClass: "containerClass", class: "class", disabled: "disabled", isCrossRequired: "isCrossRequired", label: "label", isLabelRequired: "isLabelRequired" }, outputs: { valueChange: "valueChange", changeValueHandler: "changeValueHandler" }, ngImport: i0, template: "<label *ngIf=\"label\" for=\"name\"\n >{{ label }}\n <span *ngIf=\"isLabelRequired\" class=\"lib-error-asterisk\">*</span></label\n>\n\n<input\n[id]=\"name\"\n type=\"text\"\n pInputText\n [value]=\"value\"\n [attr.placeholder]=\"placeholder\"\n (input)=\"onInput($event)\"\n (keydown.enter)=\"onEnter()\"\n [ngClass]=\"class+ ' lib-input-field'\"\n autocomplete=\"new-password\"\n [disabled]=\"disabled\"\n [type]=\"type\"\n/>\n<i\n class=\"pi pi-times filter-dropdown-icon\"\n style=\"cursor: pointer\"\n (click)=\"clearValue()\"\n *ngIf=\"isCrossRequired && value !== ''\"\n></i>\n", styles: [".lib-error-asterisk{color:red}.filter-dropdown-icon{position:absolute;top:50%;padding-left:.8rem;transform:translateY(-50%);z-index:1;pointer-events:none}::ng-deep .lib-input-field{border-radius:30px;margin-top:.5rem}\n"], dependencies: [{ kind: "directive", type: i1$2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2$1.InputText, selector: "[pInputText]", inputs: ["variant"] }] });
|
|
158
117
|
}
|
|
159
118
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: PInputComponent, decorators: [{
|
|
160
119
|
type: Component,
|
|
161
|
-
args: [{ selector: 'lib-p-input', template: "<label *ngIf=\"label\"\n >{{ label }}\n <span *ngIf=\"isLabelRequired\" class=\"error-asterisk\">*</span></label\n>\n\n<input\n type=\"text\"\n pInputText\n [value]=\"value\"\n [attr.placeholder]=\"placeholder\"\n (input)=\"onInput($event)\"\n (keydown.enter)=\"onEnter()\"\n [ngClass]=\"class\"\n autocomplete=\"new-password\"\n [disabled]=\"disabled\"\n [type]=\"type\"\n/>\n<i\n class=\"pi pi-times filter-dropdown-icon\"\n style=\"cursor: pointer\"\n (click)=\"clearValue()\"\n *ngIf=\"isCrossRequired && value !== ''\"\n></i>\n", styles: [".error-asterisk{color:red}.filter-dropdown-icon{position:absolute;top:50%;padding-left:.8rem;transform:translateY(-50%);z-index:1;pointer-events:none}\n"] }]
|
|
120
|
+
args: [{ selector: 'lib-p-input', template: "<label *ngIf=\"label\" for=\"name\"\n >{{ label }}\n <span *ngIf=\"isLabelRequired\" class=\"lib-error-asterisk\">*</span></label\n>\n\n<input\n[id]=\"name\"\n type=\"text\"\n pInputText\n [value]=\"value\"\n [attr.placeholder]=\"placeholder\"\n (input)=\"onInput($event)\"\n (keydown.enter)=\"onEnter()\"\n [ngClass]=\"class+ ' lib-input-field'\"\n autocomplete=\"new-password\"\n [disabled]=\"disabled\"\n [type]=\"type\"\n/>\n<i\n class=\"pi pi-times filter-dropdown-icon\"\n style=\"cursor: pointer\"\n (click)=\"clearValue()\"\n *ngIf=\"isCrossRequired && value !== ''\"\n></i>\n", styles: [".lib-error-asterisk{color:red}.filter-dropdown-icon{position:absolute;top:50%;padding-left:.8rem;transform:translateY(-50%);z-index:1;pointer-events:none}::ng-deep .lib-input-field{border-radius:30px;margin-top:.5rem}\n"] }]
|
|
162
121
|
}], propDecorators: { value: [{
|
|
163
122
|
type: Input
|
|
123
|
+
}], name: [{
|
|
124
|
+
type: Input
|
|
164
125
|
}], type: [{
|
|
165
126
|
type: Input
|
|
166
127
|
}], placeholder: [{
|
|
@@ -187,16 +148,58 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
187
148
|
type: Output
|
|
188
149
|
}] } });
|
|
189
150
|
|
|
151
|
+
class AtomixButtonComponent {
|
|
152
|
+
label = '';
|
|
153
|
+
disabled = false;
|
|
154
|
+
loading = false;
|
|
155
|
+
size = 'small';
|
|
156
|
+
type = 'primary';
|
|
157
|
+
class = '';
|
|
158
|
+
icon = '';
|
|
159
|
+
iconPos = 'left';
|
|
160
|
+
buttonData;
|
|
161
|
+
buttonClick = new EventEmitter();
|
|
162
|
+
onButtonClick() {
|
|
163
|
+
this.buttonClick.emit(this.buttonData); // Emit the event when button is clicked
|
|
164
|
+
}
|
|
165
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: AtomixButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
166
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: AtomixButtonComponent, selector: "atomix-button", inputs: { label: "label", disabled: "disabled", loading: "loading", size: "size", type: "type", class: "class", icon: "icon", iconPos: "iconPos", buttonData: "buttonData" }, outputs: { buttonClick: "buttonClick" }, ngImport: i0, template: "<button\n pButton\n pRipple\n [label]=\"label\"\n [ngClass]=\"{\n 'p-button-primary': type === 'primary',\n 'p-button-outlined': type === 'outlined',\n 'p-button-text': type === 'text',\n }\"\n [class]=\"class\"\n [disabled]=\"disabled\"\n [loading]=\"loading\"\n [size]=\"size\"\n [icon]=\"icon\"\n [iconPos]=\"iconPos\"\n (click)=\"onButtonClick()\"\n></button>\n", styles: ["::ng-deep .p-button-primary{background-color:#63b77e;color:#fff!important;border-radius:12px;height:40px;padding:10.5px 17.5px;font-size:14px;font-weight:700;line-height:17px;outline:none;border:none;cursor:pointer}:is():enabled:hover{background-color:#63b77e}:is():disabled .p-button-label{color:#00000061!important}::ng-deep .p-button-outlined{background-color:#fff!important;color:#63b77e!important;border-radius:12px;height:40px;padding:10.5px 17.5px;font-size:14px;font-weight:700;line-height:17px;cursor:pointer}::ng-deep .refresh-button{background-color:#fff!important;border-radius:50%;height:40px;width:40px}::ng-deep .p-button-text{color:#424242!important;background:none!important;border-radius:1px solid gray!important}:is():disabled{background:none!important}\n"], dependencies: [{ kind: "directive", type: i1$2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$1.ButtonDirective, selector: "[pButton]", inputs: ["iconPos", "loadingIcon", "label", "icon", "loading", "severity", "raised", "rounded", "text", "outlined", "size", "plain"] }] });
|
|
167
|
+
}
|
|
168
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: AtomixButtonComponent, decorators: [{
|
|
169
|
+
type: Component,
|
|
170
|
+
args: [{ selector: 'atomix-button', template: "<button\n pButton\n pRipple\n [label]=\"label\"\n [ngClass]=\"{\n 'p-button-primary': type === 'primary',\n 'p-button-outlined': type === 'outlined',\n 'p-button-text': type === 'text',\n }\"\n [class]=\"class\"\n [disabled]=\"disabled\"\n [loading]=\"loading\"\n [size]=\"size\"\n [icon]=\"icon\"\n [iconPos]=\"iconPos\"\n (click)=\"onButtonClick()\"\n></button>\n", styles: ["::ng-deep .p-button-primary{background-color:#63b77e;color:#fff!important;border-radius:12px;height:40px;padding:10.5px 17.5px;font-size:14px;font-weight:700;line-height:17px;outline:none;border:none;cursor:pointer}:is():enabled:hover{background-color:#63b77e}:is():disabled .p-button-label{color:#00000061!important}::ng-deep .p-button-outlined{background-color:#fff!important;color:#63b77e!important;border-radius:12px;height:40px;padding:10.5px 17.5px;font-size:14px;font-weight:700;line-height:17px;cursor:pointer}::ng-deep .refresh-button{background-color:#fff!important;border-radius:50%;height:40px;width:40px}::ng-deep .p-button-text{color:#424242!important;background:none!important;border-radius:1px solid gray!important}:is():disabled{background:none!important}\n"] }]
|
|
171
|
+
}], propDecorators: { label: [{
|
|
172
|
+
type: Input
|
|
173
|
+
}], disabled: [{
|
|
174
|
+
type: Input
|
|
175
|
+
}], loading: [{
|
|
176
|
+
type: Input
|
|
177
|
+
}], size: [{
|
|
178
|
+
type: Input
|
|
179
|
+
}], type: [{
|
|
180
|
+
type: Input
|
|
181
|
+
}], class: [{
|
|
182
|
+
type: Input
|
|
183
|
+
}], icon: [{
|
|
184
|
+
type: Input
|
|
185
|
+
}], iconPos: [{
|
|
186
|
+
type: Input
|
|
187
|
+
}], buttonData: [{
|
|
188
|
+
type: Input
|
|
189
|
+
}], buttonClick: [{
|
|
190
|
+
type: Output
|
|
191
|
+
}] } });
|
|
192
|
+
|
|
190
193
|
class PrimekitModule {
|
|
191
194
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: PrimekitModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
192
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.13", ngImport: i0, type: PrimekitModule, declarations: [
|
|
195
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.13", ngImport: i0, type: PrimekitModule, declarations: [AtomixButtonComponent,
|
|
193
196
|
PCardComponent,
|
|
194
197
|
PConfirmationDialogComponent,
|
|
195
198
|
PInputComponent], imports: [CommonModule,
|
|
196
199
|
ButtonModule,
|
|
197
200
|
CardModule,
|
|
198
201
|
DialogModule,
|
|
199
|
-
InputTextModule], exports: [
|
|
202
|
+
InputTextModule], exports: [AtomixButtonComponent,
|
|
200
203
|
PCardComponent,
|
|
201
204
|
PConfirmationDialogComponent,
|
|
202
205
|
PInputComponent] });
|
|
@@ -210,7 +213,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
210
213
|
type: NgModule,
|
|
211
214
|
args: [{
|
|
212
215
|
declarations: [
|
|
213
|
-
|
|
216
|
+
AtomixButtonComponent,
|
|
214
217
|
PCardComponent,
|
|
215
218
|
PConfirmationDialogComponent,
|
|
216
219
|
PInputComponent,
|
|
@@ -223,7 +226,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
223
226
|
InputTextModule,
|
|
224
227
|
], // Import the PrimeNG ButtonModule here
|
|
225
228
|
exports: [
|
|
226
|
-
|
|
229
|
+
AtomixButtonComponent,
|
|
227
230
|
PCardComponent,
|
|
228
231
|
PConfirmationDialogComponent,
|
|
229
232
|
PInputComponent,
|
|
@@ -239,5 +242,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
239
242
|
* Generated bundle index. Do not edit.
|
|
240
243
|
*/
|
|
241
244
|
|
|
242
|
-
export {
|
|
245
|
+
export { AtomixButtonComponent, PCardComponent, PConfirmationDialogComponent, PInputComponent, PrimekitComponent, PrimekitModule, PrimekitService };
|
|
243
246
|
//# sourceMappingURL=primekit.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"primekit.mjs","sources":["../../../projects/primekit/src/lib/primekit.service.ts","../../../projects/primekit/src/lib/primekit.component.ts","../../../projects/primekit/src/lib/lib/p-button/p-button.component.ts","../../../projects/primekit/src/lib/lib/p-button/p-button.component.html","../../../projects/primekit/src/lib/lib/p-card/p-card.component.ts","../../../projects/primekit/src/lib/lib/p-card/p-card.component.html","../../../projects/primekit/src/lib/lib/p-confirmation-dialog/p-confirmation-dialog.component.ts","../../../projects/primekit/src/lib/lib/p-confirmation-dialog/p-confirmation-dialog.component.html","../../../projects/primekit/src/lib/lib/p-input/p-input.component.ts","../../../projects/primekit/src/lib/lib/p-input/p-input.component.html","../../../projects/primekit/src/lib/primekit.module.ts","../../../projects/primekit/src/public-api.ts","../../../projects/primekit/src/primekit.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class PrimekitService {\n constructor() {}\n}\n","import { Component } from '@angular/core';\n\n@Component({\n selector: 'lib-primekit',\n standalone: true,\n imports: [],\n template: ` <p>primekit works!</p> `,\n styles: ``,\n})\nexport class PrimekitComponent {}\n","import { Component, EventEmitter, Input, Output } from '@angular/core';\nimport { ButtonSize, ButtonIconPosition } from './p-button.models';\n\n@Component({\n selector: 'lib-p-button',\n templateUrl: './p-button.component.html',\n styleUrls: ['./p-button.component.css'],\n})\nexport class PButtonComponent {\n @Input() label: string = '';\n @Input() disabled: boolean = false;\n @Input() loading: boolean = false;\n @Input() size: ButtonSize = 'small';\n @Input() type: string = 'primary';\n\n @Input() class: string = '';\n\n @Input() icon: string = '';\n @Input() iconPos: ButtonIconPosition = 'left';\n\n @Input() buttonData: any;\n @Output() buttonClick = new EventEmitter<void>();\n\n onButtonClick() {\n this.buttonClick.emit(this.buttonData); // Emit the event when button is clicked\n }\n}\n","<button\n pButton\n pRipple\n [label]=\"label\"\n [ngClass]=\"{\n 'p-button-primary': type === 'primary',\n 'p-button-outlined': type === 'outlined',\n 'p-button-text': type === 'text',\n }\"\n [class]=\"class\"\n [disabled]=\"disabled\"\n [loading]=\"loading\"\n [size]=\"size\"\n [icon]=\"icon\"\n [iconPos]=\"iconPos\"\n (click)=\"onButtonClick()\"\n></button>\n","import { Component, Input } from '@angular/core';\n\n@Component({\n selector: 'lib-p-card',\n templateUrl: './p-card.component.html',\n styleUrls: ['./p-card.component.css'],\n})\nexport class PCardComponent {\n @Input() header: string | undefined;\n @Input() footer: string | undefined;\n @Input() content: string | undefined;\n @Input() class: string | undefined;\n}\n","<p-card [class]=\"class\">\n <ng-content></ng-content>\n</p-card>\n","import { Component, EventEmitter, Input, Output } from '@angular/core';\n\n@Component({\n selector: 'lib-p-confirmation-dialog',\n templateUrl: './p-confirmation-dialog.component.html',\n styleUrls: ['./p-confirmation-dialog.component.css'],\n})\nexport class PConfirmationDialogComponent {\n @Input() header: string = '';\n @Input() message: string = '';\n @Input() dialogVisible: boolean = false;\n constructor() {}\n @Output() onConfirm = new EventEmitter<{ confirmation: boolean }>();\n onYesClick(): void {\n this.onConfirm.emit({\n confirmation: true,\n });\n }\n\n onNoClick(): void {\n this.onConfirm.emit({\n confirmation: false,\n });\n }\n}\n","<p-dialog\n [(visible)]=\"dialogVisible\"\n [header]=\"header\"\n [modal]=\"true\"\n [closable]=\"true\"\n styleClass=\"dialog-width\"\n [style]=\"{\n width: 'fit-content',\n height: 'fit-content',\n maxWidth: '25rem',\n }\"\n [maximizable]=\"true\"\n [baseZIndex]=\"9999999999\"\n>\n <p class=\"global-sub-heading\">\n {{ message }}\n </p>\n\n <div class=\"action-button-container\">\n <button\n pButton\n class=\"p-button-outlined\"\n (click)=\"onNoClick()\"\n style=\"margin-top: 0px\"\n >\n No\n </button>\n <button pButton class=\"p-button-primary\" (click)=\"onYesClick()\">Yes</button>\n </div>\n -\n</p-dialog>\n","import { Component, Input, Output, EventEmitter } from '@angular/core';\n\n@Component({\n selector: 'lib-p-input',\n templateUrl: './p-input.component.html',\n styleUrls: ['./p-input.component.css'],\n})\nexport class PInputComponent {\n @Input() value: string = '';\n @Input() type: string = 'text';\n @Input() placeholder: string = '';\n @Output() valueChange = new EventEmitter<string>();\n @Input() withIcon: boolean = false;\n @Input() iconName: string = '';\n @Input() containerClass: string = '';\n @Input() class: string = '';\n @Input() disabled: boolean = false;\n @Input() isCrossRequired: boolean = true;\n @Input() label: string = '';\n @Input() isLabelRequired: boolean = false;\n\n @Output() changeValueHandler = new EventEmitter<string>();\n\n onInput(event: Event): void {\n const input = event.target as HTMLInputElement;\n this.value = input.value;\n this.changeValueHandler.emit(this.value);\n }\n onEnter(): void {\n this.valueChange.emit(this.value);\n }\n clearValue(): void {\n this.value = '';\n this.onEnter();\n }\n}\n","<label *ngIf=\"label\"\n >{{ label }}\n <span *ngIf=\"isLabelRequired\" class=\"error-asterisk\">*</span></label\n>\n\n<input\n type=\"text\"\n pInputText\n [value]=\"value\"\n [attr.placeholder]=\"placeholder\"\n (input)=\"onInput($event)\"\n (keydown.enter)=\"onEnter()\"\n [ngClass]=\"class\"\n autocomplete=\"new-password\"\n [disabled]=\"disabled\"\n [type]=\"type\"\n/>\n<i\n class=\"pi pi-times filter-dropdown-icon\"\n style=\"cursor: pointer\"\n (click)=\"clearValue()\"\n *ngIf=\"isCrossRequired && value !== ''\"\n></i>\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\n// Primeng Components\nimport { ButtonModule } from 'primeng/button';\nimport { DialogModule } from 'primeng/dialog';\nimport { CardModule } from 'primeng/card';\nimport { InputTextModule } from 'primeng/inputtext';\n\n// Common Components\nimport { PButtonComponent } from './lib/p-button/p-button.component';\nimport { PCardComponent } from './lib/p-card/p-card.component';\nimport { PConfirmationDialogComponent } from './lib/p-confirmation-dialog/p-confirmation-dialog.component';\nimport { PInputComponent } from './lib/p-input/p-input.component';\n\n\n@NgModule({\n declarations: [\n PButtonComponent,\n PCardComponent,\n PConfirmationDialogComponent,\n PInputComponent,\n ],\n imports: [\n CommonModule,\n ButtonModule,\n CardModule,\n DialogModule,\n InputTextModule,\n ], // Import the PrimeNG ButtonModule here\n exports: [\n PButtonComponent,\n PCardComponent,\n PConfirmationDialogComponent,\n PInputComponent,\n ], // Export your component\n})\nexport class PrimekitModule {}\n","/*\n * Public API Surface of primekit\n */\n\nexport * from './lib/primekit.service';\nexport * from './lib/primekit.component';\nexport * from './lib/primekit.module';\n\n// Button\nexport * from './lib/lib/p-button/p-button.component';\nexport * from './lib/lib/p-card/p-card.component';\nexport * from './lib/lib/p-confirmation-dialog/p-confirmation-dialog.component';\nexport * from './lib/lib/p-input/p-input.component';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i1","i2"],"mappings":";;;;;;;;;;;;;MAKa,eAAe,CAAA;AAC1B,IAAA,WAAA,GAAA,GAAgB;wGADL,eAAe,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAAf,IAAA,OAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,eAAe,cAFd,MAAM,EAAA,CAAA,CAAA;;4FAEP,eAAe,EAAA,UAAA,EAAA,CAAA;kBAH3B,UAAU;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,UAAU,EAAE,MAAM;AACnB,iBAAA,CAAA;;;MCKY,iBAAiB,CAAA;wGAAjB,iBAAiB,EAAA,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}
|
|
1
|
+
{"version":3,"file":"primekit.mjs","sources":["../../../projects/primekit/src/lib/primekit.service.ts","../../../projects/primekit/src/lib/primekit.component.ts","../../../projects/primekit/src/lib/lib/p-card/p-card.component.ts","../../../projects/primekit/src/lib/lib/p-card/p-card.component.html","../../../projects/primekit/src/lib/lib/p-confirmation-dialog/p-confirmation-dialog.component.ts","../../../projects/primekit/src/lib/lib/p-confirmation-dialog/p-confirmation-dialog.component.html","../../../projects/primekit/src/lib/lib/p-input/p-input.component.ts","../../../projects/primekit/src/lib/lib/p-input/p-input.component.html","../../../projects/primekit/src/lib/lib/atomix-button/atomix-button.component.ts","../../../projects/primekit/src/lib/lib/atomix-button/atomix-button.component.html","../../../projects/primekit/src/lib/primekit.module.ts","../../../projects/primekit/src/public-api.ts","../../../projects/primekit/src/primekit.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class PrimekitService {\n constructor() {}\n}\n","import { Component } from '@angular/core';\n\n@Component({\n selector: 'lib-primekit',\n standalone: true,\n imports: [],\n template: ` <p>primekit works!</p> `,\n styles: ``,\n})\nexport class PrimekitComponent {}\n","import { Component, Input } from '@angular/core';\n\n@Component({\n selector: 'lib-p-card',\n templateUrl: './p-card.component.html',\n styleUrls: ['./p-card.component.css'],\n})\nexport class PCardComponent {\n @Input() header: string | undefined;\n @Input() footer: string | undefined;\n @Input() content: string | undefined;\n @Input() class: string | undefined;\n}\n","<p-card [class]=\"class\">\n <ng-content></ng-content>\n</p-card>\n","import { Component, EventEmitter, Input, Output } from '@angular/core';\n\n@Component({\n selector: 'lib-p-confirmation-dialog',\n templateUrl: './p-confirmation-dialog.component.html',\n styleUrls: ['./p-confirmation-dialog.component.css'],\n})\nexport class PConfirmationDialogComponent {\n @Input() header: string = '';\n @Input() message: string = '';\n @Input() dialogVisible: boolean = false;\n constructor() {}\n @Output() onConfirm = new EventEmitter<{ confirmation: boolean }>();\n onYesClick(): void {\n this.onConfirm.emit({\n confirmation: true,\n });\n }\n\n onNoClick(): void {\n this.onConfirm.emit({\n confirmation: false,\n });\n }\n}\n","<p-dialog\n [(visible)]=\"dialogVisible\"\n [header]=\"header\"\n [modal]=\"true\"\n [closable]=\"true\"\n styleClass=\"dialog-width\"\n [style]=\"{\n width: 'fit-content',\n height: 'fit-content',\n maxWidth: '25rem',\n }\"\n [maximizable]=\"true\"\n [baseZIndex]=\"9999999999\"\n>\n <p class=\"global-sub-heading\">\n {{ message }}\n </p>\n\n <div class=\"action-button-container\">\n <button\n pButton\n class=\"p-button-outlined\"\n (click)=\"onNoClick()\"\n style=\"margin-top: 0px\"\n >\n No\n </button>\n <button pButton class=\"p-button-primary\" (click)=\"onYesClick()\">Yes</button>\n </div>\n</p-dialog>\n","import { Component, Input, Output, EventEmitter } from '@angular/core';\n\n@Component({\n selector: 'lib-p-input',\n templateUrl: './p-input.component.html',\n styleUrls: ['./p-input.component.css'],\n})\nexport class PInputComponent {\n @Input() value: string = '';\n @Input() name: string = '';\n @Input() type: string = 'text';\n @Input() placeholder: string = '';\n @Output() valueChange = new EventEmitter<string>();\n @Input() withIcon: boolean = false;\n @Input() iconName: string = '';\n @Input() containerClass: string = '';\n @Input() class: string = '';\n @Input() disabled: boolean = false;\n @Input() isCrossRequired: boolean = true;\n @Input() label: string = '';\n @Input() isLabelRequired: boolean = false;\n\n @Output() changeValueHandler = new EventEmitter<string>();\n\n onInput(event: Event): void {\n const input = event.target as HTMLInputElement;\n this.value = input.value;\n this.changeValueHandler.emit(this.value);\n }\n onEnter(): void {\n this.valueChange.emit(this.value);\n }\n clearValue(): void {\n this.value = '';\n this.onEnter();\n }\n}\n","<label *ngIf=\"label\" for=\"name\"\n >{{ label }}\n <span *ngIf=\"isLabelRequired\" class=\"lib-error-asterisk\">*</span></label\n>\n\n<input\n[id]=\"name\"\n type=\"text\"\n pInputText\n [value]=\"value\"\n [attr.placeholder]=\"placeholder\"\n (input)=\"onInput($event)\"\n (keydown.enter)=\"onEnter()\"\n [ngClass]=\"class+ ' lib-input-field'\"\n autocomplete=\"new-password\"\n [disabled]=\"disabled\"\n [type]=\"type\"\n/>\n<i\n class=\"pi pi-times filter-dropdown-icon\"\n style=\"cursor: pointer\"\n (click)=\"clearValue()\"\n *ngIf=\"isCrossRequired && value !== ''\"\n></i>\n","import { Component, EventEmitter, Input, Output } from '@angular/core';\nimport { ButtonSize, ButtonIconPosition } from './atomix-button.models';\n\n@Component({\n selector: 'atomix-button',\n templateUrl: './atomix-button.component.html',\n styleUrls: ['./atomix-button.component.css'],\n})\nexport class AtomixButtonComponent {\n @Input() label: string = '';\n @Input() disabled: boolean = false;\n @Input() loading: boolean = false;\n @Input() size: ButtonSize = 'small';\n @Input() type: 'primary' | 'text' | 'outlined' = 'primary';\n\n @Input() class: string = '';\n\n @Input() icon: string = '';\n @Input() iconPos: ButtonIconPosition = 'left';\n\n @Input() buttonData: any;\n @Output() buttonClick = new EventEmitter<void>();\n\n onButtonClick() {\n this.buttonClick.emit(this.buttonData); // Emit the event when button is clicked\n }\n}\n","<button\n pButton\n pRipple\n [label]=\"label\"\n [ngClass]=\"{\n 'p-button-primary': type === 'primary',\n 'p-button-outlined': type === 'outlined',\n 'p-button-text': type === 'text',\n }\"\n [class]=\"class\"\n [disabled]=\"disabled\"\n [loading]=\"loading\"\n [size]=\"size\"\n [icon]=\"icon\"\n [iconPos]=\"iconPos\"\n (click)=\"onButtonClick()\"\n></button>\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\n// Primeng Components\nimport { ButtonModule } from 'primeng/button';\nimport { DialogModule } from 'primeng/dialog';\nimport { CardModule } from 'primeng/card';\nimport { InputTextModule } from 'primeng/inputtext';\n\n// Common Components\nimport { PCardComponent } from './lib/p-card/p-card.component';\nimport { PConfirmationDialogComponent } from './lib/p-confirmation-dialog/p-confirmation-dialog.component';\nimport { PInputComponent } from './lib/p-input/p-input.component';\nimport { AtomixButtonComponent } from './lib/atomix-button/atomix-button.component';\n\n@NgModule({\n declarations: [\n AtomixButtonComponent,\n PCardComponent,\n PConfirmationDialogComponent,\n PInputComponent,\n ],\n imports: [\n CommonModule,\n ButtonModule,\n CardModule,\n DialogModule,\n InputTextModule,\n ], // Import the PrimeNG ButtonModule here\n exports: [\n AtomixButtonComponent,\n PCardComponent,\n PConfirmationDialogComponent,\n PInputComponent,\n ], // Export your component\n})\nexport class PrimekitModule {}\n","/*\n * Public API Surface of primekit\n */\n\nexport * from './lib/primekit.service';\nexport * from './lib/primekit.component';\nexport * from './lib/primekit.module';\n\n// Button\nexport * from './lib/lib/atomix-button/atomix-button.component';\nexport * from './lib/lib/p-card/p-card.component';\nexport * from './lib/lib/p-confirmation-dialog/p-confirmation-dialog.component';\nexport * from './lib/lib/p-input/p-input.component';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i1","i2"],"mappings":";;;;;;;;;;;;;MAKa,eAAe,CAAA;AAC1B,IAAA,WAAA,GAAA,GAAgB;wGADL,eAAe,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAAf,IAAA,OAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,eAAe,cAFd,MAAM,EAAA,CAAA,CAAA;;4FAEP,eAAe,EAAA,UAAA,EAAA,CAAA;kBAH3B,UAAU;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,UAAU,EAAE,MAAM;AACnB,iBAAA,CAAA;;;MCKY,iBAAiB,CAAA;wGAAjB,iBAAiB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAjB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAA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'./atomix-button.models';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class AtomixButtonComponent {
|
|
5
|
+
label: string;
|
|
6
|
+
disabled: boolean;
|
|
7
|
+
loading: boolean;
|
|
8
|
+
size: ButtonSize;
|
|
9
|
+
type: 'primary' | 'text' | 'outlined';
|
|
10
|
+
class: string;
|
|
11
|
+
icon: string;
|
|
12
|
+
iconPos: ButtonIconPosition;
|
|
13
|
+
buttonData: any;
|
|
14
|
+
buttonClick: EventEmitter<void>;
|
|
15
|
+
onButtonClick(): void;
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AtomixButtonComponent, never>;
|
|
17
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AtomixButtonComponent, "atomix-button", never, { "label": { "alias": "label"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "size": { "alias": "size"; "required": false; }; "type": { "alias": "type"; "required": false; }; "class": { "alias": "class"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "iconPos": { "alias": "iconPos"; "required": false; }; "buttonData": { "alias": "buttonData"; "required": false; }; }, { "buttonClick": "buttonClick"; }, never, never, false, never>;
|
|
18
|
+
}
|
|
@@ -2,6 +2,7 @@ import { EventEmitter } from '@angular/core';
|
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare class PInputComponent {
|
|
4
4
|
value: string;
|
|
5
|
+
name: string;
|
|
5
6
|
type: string;
|
|
6
7
|
placeholder: string;
|
|
7
8
|
valueChange: EventEmitter<string>;
|
|
@@ -18,5 +19,5 @@ export declare class PInputComponent {
|
|
|
18
19
|
onEnter(): void;
|
|
19
20
|
clearValue(): void;
|
|
20
21
|
static ɵfac: i0.ɵɵFactoryDeclaration<PInputComponent, never>;
|
|
21
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PInputComponent, "lib-p-input", never, { "value": { "alias": "value"; "required": false; }; "type": { "alias": "type"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "withIcon": { "alias": "withIcon"; "required": false; }; "iconName": { "alias": "iconName"; "required": false; }; "containerClass": { "alias": "containerClass"; "required": false; }; "class": { "alias": "class"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "isCrossRequired": { "alias": "isCrossRequired"; "required": false; }; "label": { "alias": "label"; "required": false; }; "isLabelRequired": { "alias": "isLabelRequired"; "required": false; }; }, { "valueChange": "valueChange"; "changeValueHandler": "changeValueHandler"; }, never, never, false, never>;
|
|
22
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PInputComponent, "lib-p-input", never, { "value": { "alias": "value"; "required": false; }; "name": { "alias": "name"; "required": false; }; "type": { "alias": "type"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "withIcon": { "alias": "withIcon"; "required": false; }; "iconName": { "alias": "iconName"; "required": false; }; "containerClass": { "alias": "containerClass"; "required": false; }; "class": { "alias": "class"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "isCrossRequired": { "alias": "isCrossRequired"; "required": false; }; "label": { "alias": "label"; "required": false; }; "isLabelRequired": { "alias": "isLabelRequired"; "required": false; }; }, { "valueChange": "valueChange"; "changeValueHandler": "changeValueHandler"; }, never, never, false, never>;
|
|
22
23
|
}
|
package/lib/primekit.module.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./lib/
|
|
2
|
+
import * as i1 from "./lib/atomix-button/atomix-button.component";
|
|
3
3
|
import * as i2 from "./lib/p-card/p-card.component";
|
|
4
4
|
import * as i3 from "./lib/p-confirmation-dialog/p-confirmation-dialog.component";
|
|
5
5
|
import * as i4 from "./lib/p-input/p-input.component";
|
|
@@ -10,6 +10,6 @@ import * as i8 from "primeng/dialog";
|
|
|
10
10
|
import * as i9 from "primeng/inputtext";
|
|
11
11
|
export declare class PrimekitModule {
|
|
12
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<PrimekitModule, never>;
|
|
13
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<PrimekitModule, [typeof i1.
|
|
13
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<PrimekitModule, [typeof i1.AtomixButtonComponent, typeof i2.PCardComponent, typeof i3.PConfirmationDialogComponent, typeof i4.PInputComponent], [typeof i5.CommonModule, typeof i6.ButtonModule, typeof i7.CardModule, typeof i8.DialogModule, typeof i9.InputTextModule], [typeof i1.AtomixButtonComponent, typeof i2.PCardComponent, typeof i3.PConfirmationDialogComponent, typeof i4.PInputComponent]>;
|
|
14
14
|
static ɵinj: i0.ɵɵInjectorDeclaration<PrimekitModule>;
|
|
15
15
|
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export * from './lib/primekit.service';
|
|
2
2
|
export * from './lib/primekit.component';
|
|
3
3
|
export * from './lib/primekit.module';
|
|
4
|
-
export * from './lib/lib/
|
|
4
|
+
export * from './lib/lib/atomix-button/atomix-button.component';
|
|
5
5
|
export * from './lib/lib/p-card/p-card.component';
|
|
6
6
|
export * from './lib/lib/p-confirmation-dialog/p-confirmation-dialog.component';
|
|
7
7
|
export * from './lib/lib/p-input/p-input.component';
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { Component, EventEmitter, Input, Output } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
import * as i1 from "@angular/common";
|
|
4
|
-
import * as i2 from "primeng/button";
|
|
5
|
-
export class PButtonComponent {
|
|
6
|
-
label = '';
|
|
7
|
-
disabled = false;
|
|
8
|
-
loading = false;
|
|
9
|
-
size = 'small';
|
|
10
|
-
type = 'primary';
|
|
11
|
-
class = '';
|
|
12
|
-
icon = '';
|
|
13
|
-
iconPos = 'left';
|
|
14
|
-
buttonData;
|
|
15
|
-
buttonClick = new EventEmitter();
|
|
16
|
-
onButtonClick() {
|
|
17
|
-
this.buttonClick.emit(this.buttonData); // Emit the event when button is clicked
|
|
18
|
-
}
|
|
19
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: PButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
20
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: PButtonComponent, selector: "lib-p-button", inputs: { label: "label", disabled: "disabled", loading: "loading", size: "size", type: "type", class: "class", icon: "icon", iconPos: "iconPos", buttonData: "buttonData" }, outputs: { buttonClick: "buttonClick" }, ngImport: i0, template: "<button\n pButton\n pRipple\n [label]=\"label\"\n [ngClass]=\"{\n 'p-button-primary': type === 'primary',\n 'p-button-outlined': type === 'outlined',\n 'p-button-text': type === 'text',\n }\"\n [class]=\"class\"\n [disabled]=\"disabled\"\n [loading]=\"loading\"\n [size]=\"size\"\n [icon]=\"icon\"\n [iconPos]=\"iconPos\"\n (click)=\"onButtonClick()\"\n></button>\n", styles: ["::ng-deep .p-button-primary{background-color:#63b77e;color:#fff!important;border-radius:12px;height:40px;padding:10.5px 17.5px;font-size:14px;font-weight:700;line-height:17px;outline:none;border:none;cursor:pointer}:is():enabled:hover{background-color:#63b77e}:is():disabled .p-button-label{color:#00000061!important}::ng-deep .p-button-outlined{background-color:#fff!important;color:#63b77e!important;border-radius:12px;height:40px;padding:10.5px 17.5px;font-size:14px;font-weight:700;line-height:17px;cursor:pointer}::ng-deep .refresh-button{background-color:#fff!important;border-radius:50%;height:40px;width:40px}::ng-deep .p-button-text{color:#424242!important;background:none!important;border-radius:1px solid gray!important}:is():disabled{background:none!important}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.ButtonDirective, selector: "[pButton]", inputs: ["iconPos", "loadingIcon", "label", "icon", "loading", "severity", "raised", "rounded", "text", "outlined", "size", "plain"] }] });
|
|
21
|
-
}
|
|
22
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: PButtonComponent, decorators: [{
|
|
23
|
-
type: Component,
|
|
24
|
-
args: [{ selector: 'lib-p-button', template: "<button\n pButton\n pRipple\n [label]=\"label\"\n [ngClass]=\"{\n 'p-button-primary': type === 'primary',\n 'p-button-outlined': type === 'outlined',\n 'p-button-text': type === 'text',\n }\"\n [class]=\"class\"\n [disabled]=\"disabled\"\n [loading]=\"loading\"\n [size]=\"size\"\n [icon]=\"icon\"\n [iconPos]=\"iconPos\"\n (click)=\"onButtonClick()\"\n></button>\n", styles: ["::ng-deep .p-button-primary{background-color:#63b77e;color:#fff!important;border-radius:12px;height:40px;padding:10.5px 17.5px;font-size:14px;font-weight:700;line-height:17px;outline:none;border:none;cursor:pointer}:is():enabled:hover{background-color:#63b77e}:is():disabled .p-button-label{color:#00000061!important}::ng-deep .p-button-outlined{background-color:#fff!important;color:#63b77e!important;border-radius:12px;height:40px;padding:10.5px 17.5px;font-size:14px;font-weight:700;line-height:17px;cursor:pointer}::ng-deep .refresh-button{background-color:#fff!important;border-radius:50%;height:40px;width:40px}::ng-deep .p-button-text{color:#424242!important;background:none!important;border-radius:1px solid gray!important}:is():disabled{background:none!important}\n"] }]
|
|
25
|
-
}], propDecorators: { label: [{
|
|
26
|
-
type: Input
|
|
27
|
-
}], disabled: [{
|
|
28
|
-
type: Input
|
|
29
|
-
}], loading: [{
|
|
30
|
-
type: Input
|
|
31
|
-
}], size: [{
|
|
32
|
-
type: Input
|
|
33
|
-
}], type: [{
|
|
34
|
-
type: Input
|
|
35
|
-
}], class: [{
|
|
36
|
-
type: Input
|
|
37
|
-
}], icon: [{
|
|
38
|
-
type: Input
|
|
39
|
-
}], iconPos: [{
|
|
40
|
-
type: Input
|
|
41
|
-
}], buttonData: [{
|
|
42
|
-
type: Input
|
|
43
|
-
}], buttonClick: [{
|
|
44
|
-
type: Output
|
|
45
|
-
}] } });
|
|
46
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWx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Im5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgdHlwZSBCdXR0b25TaXplID0gJ3NtYWxsJyB8ICdsYXJnZScgfCBudWxsIHwgdW5kZWZpbmVkO1xuZXhwb3J0IHR5cGUgQnV0dG9uSWNvblBvc2l0aW9uID0gJ2xlZnQnIHwgJ3JpZ2h0JztcbiJdfQ==
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { EventEmitter } from '@angular/core';
|
|
2
|
-
import { ButtonSize, ButtonIconPosition } from './p-button.models';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class PButtonComponent {
|
|
5
|
-
label: string;
|
|
6
|
-
disabled: boolean;
|
|
7
|
-
loading: boolean;
|
|
8
|
-
size: ButtonSize;
|
|
9
|
-
type: string;
|
|
10
|
-
class: string;
|
|
11
|
-
icon: string;
|
|
12
|
-
iconPos: ButtonIconPosition;
|
|
13
|
-
buttonData: any;
|
|
14
|
-
buttonClick: EventEmitter<void>;
|
|
15
|
-
onButtonClick(): void;
|
|
16
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PButtonComponent, never>;
|
|
17
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PButtonComponent, "lib-p-button", never, { "label": { "alias": "label"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "size": { "alias": "size"; "required": false; }; "type": { "alias": "type"; "required": false; }; "class": { "alias": "class"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "iconPos": { "alias": "iconPos"; "required": false; }; "buttonData": { "alias": "buttonData"; "required": false; }; }, { "buttonClick": "buttonClick"; }, never, never, false, never>;
|
|
18
|
-
}
|
|
File without changes
|