@sixbell-telco/sdk 0.4.0 → 0.4.1
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/CHANGELOG.md +3 -0
- package/components/modal/src/modal.component.d.ts +3 -1
- package/esm2022/components/modal/src/modal.component.mjs +12 -3
- package/fesm2022/sixbell-telco-sdk-components-modal.mjs +11 -2
- package/fesm2022/sixbell-telco-sdk-components-modal.mjs.map +1 -1
- package/package.json +19 -19
package/CHANGELOG.md
CHANGED
|
@@ -352,3 +352,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
352
352
|
- Implemented theme dropdown with click outside handling (`2c00f54`)
|
|
353
353
|
- **Pagination Item**: Updated color classes for improved accessibility and consistency (`a971344`)
|
|
354
354
|
- **Combobox**: Updated input variant to secondary with ghost styling (`763e153`)
|
|
355
|
+
- **Modal**:
|
|
356
|
+
- Add onClose and onClickOutside event handlers with improved logging (`26fe6ba`)
|
|
357
|
+
- Enhance click handling and emit onClose event (`5a4c688`)
|
|
@@ -17,6 +17,7 @@ export declare class ModalComponent {
|
|
|
17
17
|
alignment: import("@angular/core").InputSignal<ModalAlignmentProps>;
|
|
18
18
|
modalId: import("@angular/core").InputSignal<string>;
|
|
19
19
|
onClickOutside: import("@angular/core").OutputEmitterRef<void>;
|
|
20
|
+
onClose: import("@angular/core").OutputEmitterRef<void>;
|
|
20
21
|
iconClose: string;
|
|
21
22
|
dialog: import("@angular/core").Signal<ElementRef<HTMLDialogElement> | undefined>;
|
|
22
23
|
opened: import("@angular/core").ModelSignal<boolean>;
|
|
@@ -27,6 +28,7 @@ export declare class ModalComponent {
|
|
|
27
28
|
handleClose(): void;
|
|
28
29
|
handleCloseClick(): void;
|
|
29
30
|
handleCancelClick(event: Event): void;
|
|
31
|
+
handleClickOutside(event: Event): void;
|
|
30
32
|
static ɵfac: i0.ɵɵFactoryDeclaration<ModalComponent, never>;
|
|
31
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ModalComponent, "st-modal", never, { "width": { "alias": "width"; "required": false; "isSignal": true; }; "alignment": { "alias": "alignment"; "required": false; "isSignal": true; }; "modalId": { "alias": "modalId"; "required": true; "isSignal": true; }; "opened": { "alias": "opened"; "required": false; "isSignal": true; }; }, { "onClickOutside": "onClickOutside"; "opened": "openedChange"; }, never, ["st-modal-title", "st-modal-content", "st-modal-actions"], true, never>;
|
|
33
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ModalComponent, "st-modal", never, { "width": { "alias": "width"; "required": false; "isSignal": true; }; "alignment": { "alias": "alignment"; "required": false; "isSignal": true; }; "modalId": { "alias": "modalId"; "required": true; "isSignal": true; }; "opened": { "alias": "opened"; "required": false; "isSignal": true; }; }, { "onClickOutside": "onClickOutside"; "onClose": "onClose"; "opened": "openedChange"; }, never, ["st-modal-title", "st-modal-content", "st-modal-actions"], true, never>;
|
|
32
34
|
}
|
|
@@ -26,6 +26,7 @@ export class ModalComponent {
|
|
|
26
26
|
alignment = input('center');
|
|
27
27
|
modalId = input.required();
|
|
28
28
|
onClickOutside = output();
|
|
29
|
+
onClose = output();
|
|
29
30
|
iconClose = matCloseOutline;
|
|
30
31
|
dialog = viewChild('dialog');
|
|
31
32
|
opened = model(false);
|
|
@@ -57,16 +58,24 @@ export class ModalComponent {
|
|
|
57
58
|
}
|
|
58
59
|
handleCloseClick() {
|
|
59
60
|
this.opened.set(false);
|
|
61
|
+
this.onClose.emit();
|
|
60
62
|
}
|
|
61
63
|
handleCancelClick(event) {
|
|
62
64
|
event.preventDefault();
|
|
63
65
|
this.opened.set(false);
|
|
66
|
+
this.onClose.emit();
|
|
67
|
+
}
|
|
68
|
+
handleClickOutside(event) {
|
|
69
|
+
event.preventDefault();
|
|
70
|
+
this.opened.set(false);
|
|
71
|
+
this.onClickOutside.emit();
|
|
72
|
+
this.onClose.emit();
|
|
64
73
|
}
|
|
65
74
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: ModalComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
66
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "18.2.12", type: ModalComponent, isStandalone: true, selector: "st-modal", inputs: { width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null }, alignment: { classPropertyName: "alignment", publicName: "alignment", isSignal: true, isRequired: false, transformFunction: null }, modalId: { classPropertyName: "modalId", publicName: "modalId", isSignal: true, isRequired: true, transformFunction: null }, opened: { classPropertyName: "opened", publicName: "opened", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onClickOutside: "onClickOutside", opened: "openedChange" }, viewQueries: [{ propertyName: "dialog", first: true, predicate: ["dialog"], descendants: true, isSignal: true }], ngImport: i0, template: "<!-- eslint-disable @angular-eslint/template/elements-content -->\n<dialog #dialog [id]=\"modalId()\" [class]=\"modalClass\" (cancel)=\"handleCancelClick($event)\">\n\t<div [class]=\"componentClass\">\n\t\t<div class=\"absolute right-2 top-2\">\n\t\t\t<button class=\"btn btn-circle btn-ghost btn-sm absolute right-0 top-0\" (click)=\"handleCloseClick()\">\u2715</button>\n\t\t</div>\n\t\t<ng-content select=\"st-modal-title\"></ng-content>\n\t\t<ng-content select=\"st-modal-content\"></ng-content>\n\t\t<ng-content select=\"st-modal-actions\"></ng-content>\n\t</div>\n\t<form method=\"dialog\" class=\"modal-backdrop\">\n\t\t<button (click)=\"
|
|
75
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "18.2.12", type: ModalComponent, isStandalone: true, selector: "st-modal", inputs: { width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null }, alignment: { classPropertyName: "alignment", publicName: "alignment", isSignal: true, isRequired: false, transformFunction: null }, modalId: { classPropertyName: "modalId", publicName: "modalId", isSignal: true, isRequired: true, transformFunction: null }, opened: { classPropertyName: "opened", publicName: "opened", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onClickOutside: "onClickOutside", onClose: "onClose", opened: "openedChange" }, viewQueries: [{ propertyName: "dialog", first: true, predicate: ["dialog"], descendants: true, isSignal: true }], ngImport: i0, template: "<!-- eslint-disable @angular-eslint/template/elements-content -->\n<dialog #dialog [id]=\"modalId()\" [class]=\"modalClass\" (cancel)=\"handleCancelClick($event)\">\n\t<div [class]=\"componentClass\">\n\t\t<div class=\"absolute right-2 top-2\">\n\t\t\t<button class=\"btn btn-circle btn-ghost btn-sm absolute right-0 top-0\" (click)=\"handleCloseClick()\">\u2715</button>\n\t\t</div>\n\t\t<ng-content select=\"st-modal-title\"></ng-content>\n\t\t<ng-content select=\"st-modal-content\"></ng-content>\n\t\t<ng-content select=\"st-modal-actions\"></ng-content>\n\t</div>\n\t<form method=\"dialog\" class=\"modal-backdrop\">\n\t\t<button (click)=\"handleClickOutside($event)\"></button>\n\t</form>\n</dialog>\n", styles: [""] });
|
|
67
76
|
}
|
|
68
77
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: ModalComponent, decorators: [{
|
|
69
78
|
type: Component,
|
|
70
|
-
args: [{ selector: 'st-modal', standalone: true, imports: [], template: "<!-- eslint-disable @angular-eslint/template/elements-content -->\n<dialog #dialog [id]=\"modalId()\" [class]=\"modalClass\" (cancel)=\"handleCancelClick($event)\">\n\t<div [class]=\"componentClass\">\n\t\t<div class=\"absolute right-2 top-2\">\n\t\t\t<button class=\"btn btn-circle btn-ghost btn-sm absolute right-0 top-0\" (click)=\"handleCloseClick()\">\u2715</button>\n\t\t</div>\n\t\t<ng-content select=\"st-modal-title\"></ng-content>\n\t\t<ng-content select=\"st-modal-content\"></ng-content>\n\t\t<ng-content select=\"st-modal-actions\"></ng-content>\n\t</div>\n\t<form method=\"dialog\" class=\"modal-backdrop\">\n\t\t<button (click)=\"
|
|
79
|
+
args: [{ selector: 'st-modal', standalone: true, imports: [], template: "<!-- eslint-disable @angular-eslint/template/elements-content -->\n<dialog #dialog [id]=\"modalId()\" [class]=\"modalClass\" (cancel)=\"handleCancelClick($event)\">\n\t<div [class]=\"componentClass\">\n\t\t<div class=\"absolute right-2 top-2\">\n\t\t\t<button class=\"btn btn-circle btn-ghost btn-sm absolute right-0 top-0\" (click)=\"handleCloseClick()\">\u2715</button>\n\t\t</div>\n\t\t<ng-content select=\"st-modal-title\"></ng-content>\n\t\t<ng-content select=\"st-modal-content\"></ng-content>\n\t\t<ng-content select=\"st-modal-actions\"></ng-content>\n\t</div>\n\t<form method=\"dialog\" class=\"modal-backdrop\">\n\t\t<button (click)=\"handleClickOutside($event)\"></button>\n\t</form>\n</dialog>\n" }]
|
|
71
80
|
}] });
|
|
72
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
81
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9kYWwuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvc2RrL2NvbXBvbmVudHMvbW9kYWwvc3JjL21vZGFsLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3Nkay9jb21wb25lbnRzL21vZGFsL3NyYy9tb2RhbC5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLE1BQU0sRUFBYyxLQUFLLEVBQUUsS0FBSyxFQUFFLE1BQU0sRUFBRSxTQUFTLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDL0YsT0FBTyxFQUFFLGVBQWUsRUFBRSxNQUFNLHFEQUFxRCxDQUFDO0FBQ3RGLE9BQU8sRUFBRSxFQUFFLEVBQUUsTUFBTSw2QkFBNkIsQ0FBQztBQUNqRCxPQUFPLEVBQUUsR0FBRyxFQUFFLE1BQU0sMEJBQTBCLENBQUM7O0FBRS9DLE1BQU0sQ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GJ1dHRvbiBjbGFzcz1cImJ0biBidG4tY2lyY2xlIGJ0bi1naG9zdCBidG4tc20gYWJzb2x1dGUgcmlnaHQtMCB0b3AtMFwiIChjbGljayk9XCJoYW5kbGVDbG9zZUNsaWNrKClcIj7inJU8L2J1dHRvbj5cblx0XHQ8L2Rpdj5cblx0XHQ8bmctY29udGVudCBzZWxlY3Q9XCJzdC1tb2RhbC10aXRsZVwiPjwvbmctY29udGVudD5cblx0XHQ8bmctY29udGVudCBzZWxlY3Q9XCJzdC1tb2RhbC1jb250ZW50XCI+PC9uZy1jb250ZW50PlxuXHRcdDxuZy1jb250ZW50IHNlbGVjdD1cInN0LW1vZGFsLWFjdGlvbnNcIj48L25nLWNvbnRlbnQ+XG5cdDwvZGl2PlxuXHQ8Zm9ybSBtZXRob2Q9XCJkaWFsb2dcIiBjbGFzcz1cIm1vZGFsLWJhY2tkcm9wXCI+XG5cdFx0PGJ1dHRvbiAoY2xpY2spPVwiaGFuZGxlQ2xpY2tPdXRzaWRlKCRldmVudClcIj48L2J1dHRvbj5cblx0PC9mb3JtPlxuPC9kaWFsb2c+XG4iXX0=
|
|
@@ -65,6 +65,7 @@ class ModalComponent {
|
|
|
65
65
|
alignment = input('center');
|
|
66
66
|
modalId = input.required();
|
|
67
67
|
onClickOutside = output();
|
|
68
|
+
onClose = output();
|
|
68
69
|
iconClose = matCloseOutline;
|
|
69
70
|
dialog = viewChild('dialog');
|
|
70
71
|
opened = model(false);
|
|
@@ -96,17 +97,25 @@ class ModalComponent {
|
|
|
96
97
|
}
|
|
97
98
|
handleCloseClick() {
|
|
98
99
|
this.opened.set(false);
|
|
100
|
+
this.onClose.emit();
|
|
99
101
|
}
|
|
100
102
|
handleCancelClick(event) {
|
|
101
103
|
event.preventDefault();
|
|
102
104
|
this.opened.set(false);
|
|
105
|
+
this.onClose.emit();
|
|
106
|
+
}
|
|
107
|
+
handleClickOutside(event) {
|
|
108
|
+
event.preventDefault();
|
|
109
|
+
this.opened.set(false);
|
|
110
|
+
this.onClickOutside.emit();
|
|
111
|
+
this.onClose.emit();
|
|
103
112
|
}
|
|
104
113
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: ModalComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
105
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "18.2.12", type: ModalComponent, isStandalone: true, selector: "st-modal", inputs: { width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null }, alignment: { classPropertyName: "alignment", publicName: "alignment", isSignal: true, isRequired: false, transformFunction: null }, modalId: { classPropertyName: "modalId", publicName: "modalId", isSignal: true, isRequired: true, transformFunction: null }, opened: { classPropertyName: "opened", publicName: "opened", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onClickOutside: "onClickOutside", opened: "openedChange" }, viewQueries: [{ propertyName: "dialog", first: true, predicate: ["dialog"], descendants: true, isSignal: true }], ngImport: i0, template: "<!-- eslint-disable @angular-eslint/template/elements-content -->\n<dialog #dialog [id]=\"modalId()\" [class]=\"modalClass\" (cancel)=\"handleCancelClick($event)\">\n\t<div [class]=\"componentClass\">\n\t\t<div class=\"absolute right-2 top-2\">\n\t\t\t<button class=\"btn btn-circle btn-ghost btn-sm absolute right-0 top-0\" (click)=\"handleCloseClick()\">\u2715</button>\n\t\t</div>\n\t\t<ng-content select=\"st-modal-title\"></ng-content>\n\t\t<ng-content select=\"st-modal-content\"></ng-content>\n\t\t<ng-content select=\"st-modal-actions\"></ng-content>\n\t</div>\n\t<form method=\"dialog\" class=\"modal-backdrop\">\n\t\t<button (click)=\"
|
|
114
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "18.2.12", type: ModalComponent, isStandalone: true, selector: "st-modal", inputs: { width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null }, alignment: { classPropertyName: "alignment", publicName: "alignment", isSignal: true, isRequired: false, transformFunction: null }, modalId: { classPropertyName: "modalId", publicName: "modalId", isSignal: true, isRequired: true, transformFunction: null }, opened: { classPropertyName: "opened", publicName: "opened", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onClickOutside: "onClickOutside", onClose: "onClose", opened: "openedChange" }, viewQueries: [{ propertyName: "dialog", first: true, predicate: ["dialog"], descendants: true, isSignal: true }], ngImport: i0, template: "<!-- eslint-disable @angular-eslint/template/elements-content -->\n<dialog #dialog [id]=\"modalId()\" [class]=\"modalClass\" (cancel)=\"handleCancelClick($event)\">\n\t<div [class]=\"componentClass\">\n\t\t<div class=\"absolute right-2 top-2\">\n\t\t\t<button class=\"btn btn-circle btn-ghost btn-sm absolute right-0 top-0\" (click)=\"handleCloseClick()\">\u2715</button>\n\t\t</div>\n\t\t<ng-content select=\"st-modal-title\"></ng-content>\n\t\t<ng-content select=\"st-modal-content\"></ng-content>\n\t\t<ng-content select=\"st-modal-actions\"></ng-content>\n\t</div>\n\t<form method=\"dialog\" class=\"modal-backdrop\">\n\t\t<button (click)=\"handleClickOutside($event)\"></button>\n\t</form>\n</dialog>\n", styles: [""] });
|
|
106
115
|
}
|
|
107
116
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: ModalComponent, decorators: [{
|
|
108
117
|
type: Component,
|
|
109
|
-
args: [{ selector: 'st-modal', standalone: true, imports: [], template: "<!-- eslint-disable @angular-eslint/template/elements-content -->\n<dialog #dialog [id]=\"modalId()\" [class]=\"modalClass\" (cancel)=\"handleCancelClick($event)\">\n\t<div [class]=\"componentClass\">\n\t\t<div class=\"absolute right-2 top-2\">\n\t\t\t<button class=\"btn btn-circle btn-ghost btn-sm absolute right-0 top-0\" (click)=\"handleCloseClick()\">\u2715</button>\n\t\t</div>\n\t\t<ng-content select=\"st-modal-title\"></ng-content>\n\t\t<ng-content select=\"st-modal-content\"></ng-content>\n\t\t<ng-content select=\"st-modal-actions\"></ng-content>\n\t</div>\n\t<form method=\"dialog\" class=\"modal-backdrop\">\n\t\t<button (click)=\"
|
|
118
|
+
args: [{ selector: 'st-modal', standalone: true, imports: [], template: "<!-- eslint-disable @angular-eslint/template/elements-content -->\n<dialog #dialog [id]=\"modalId()\" [class]=\"modalClass\" (cancel)=\"handleCancelClick($event)\">\n\t<div [class]=\"componentClass\">\n\t\t<div class=\"absolute right-2 top-2\">\n\t\t\t<button class=\"btn btn-circle btn-ghost btn-sm absolute right-0 top-0\" (click)=\"handleCloseClick()\">\u2715</button>\n\t\t</div>\n\t\t<ng-content select=\"st-modal-title\"></ng-content>\n\t\t<ng-content select=\"st-modal-content\"></ng-content>\n\t\t<ng-content select=\"st-modal-actions\"></ng-content>\n\t</div>\n\t<form method=\"dialog\" class=\"modal-backdrop\">\n\t\t<button (click)=\"handleClickOutside($event)\"></button>\n\t</form>\n</dialog>\n" }]
|
|
110
119
|
}] });
|
|
111
120
|
|
|
112
121
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sixbell-telco-sdk-components-modal.mjs","sources":["../../../projects/sdk/components/modal/modal-actions/modal-actions.component.ts","../../../projects/sdk/components/modal/modal-actions/modal-actions.component.html","../../../projects/sdk/components/modal/modal-content/modal-content.component.ts","../../../projects/sdk/components/modal/modal-content/modal-content.component.html","../../../projects/sdk/components/modal/modal-title/modal-title.component.ts","../../../projects/sdk/components/modal/modal-title/modal-title.component.html","../../../projects/sdk/components/modal/src/modal.component.ts","../../../projects/sdk/components/modal/src/modal.component.html","../../../projects/sdk/components/modal/sixbell-telco-sdk-components-modal.ts"],"sourcesContent":["import { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, input } from '@angular/core';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\n\nexport type ModalActionsAligmentProps = 'left' | 'right' | 'center';\n\n@Component({\n\t// eslint-disable-next-line @angular-eslint/component-selector\n\tselector: 'st-modal-actions',\n\tstandalone: true,\n\timports: [CommonModule],\n\ttemplateUrl: './modal-actions.component.html',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class ModalActionsComponent {\n\t// Base table properties\n\talignment = input<ModalActionsAligmentProps>('left');\n\n\tget componentClass() {\n\t\treturn cn('modal-action', {\n\t\t\t'justify-start': this.alignment() === 'left',\n\t\t\t'justify-end': this.alignment() === 'right',\n\t\t\t'justify-center': this.alignment() === 'center',\n\t\t});\n\t}\n}\n","<div [class]=\"componentClass\">\n\t<ng-content></ng-content>\n</div>\n","import { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component } from '@angular/core';\n\n@Component({\n\t// eslint-disable-next-line @angular-eslint/component-selector\n\tselector: 'st-modal-content',\n\tstandalone: true,\n\timports: [CommonModule],\n\ttemplateUrl: './modal-content.component.html',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class ModalContentComponent {}\n","<ng-content></ng-content>\n","import { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component } from '@angular/core';\nimport { TypographyDirective } from '@sixbell-telco/sdk/directives/typography';\n\n@Component({\n\t// eslint-disable-next-line @angular-eslint/component-selector\n\tselector: 'st-modal-title',\n\tstandalone: true,\n\timports: [CommonModule, TypographyDirective],\n\ttemplateUrl: './modal-title.component.html',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class ModalTitleComponent {}\n","<div class=\"mb-6\">\n\t<div typography tyFontWeight=\"semibold\" tyColor=\"base\" tyVariant=\"h3\">\n\t\t<ng-content></ng-content>\n\t</div>\n</div>\n","import { Component, effect, ElementRef, input, model, output, viewChild } from '@angular/core';\nimport { matCloseOutline } from '@sixbell-telco/sdk/components/icon/material/outline';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { cva } from 'class-variance-authority';\n\nexport const modalComponent = cva(['modal-box', 'bg-base-200', 'p-6', 'text-base-content'], {\n\tvariants: {\n\t\twidth: {\n\t\t\tfull: ['w-full'],\n\t\t\tfit: ['w-fit', 'min-w-fit'],\n\t\t},\n\t\taligment: {\n\t\t\ttop: ['modal-top'],\n\t\t\tcenter: ['modal-middle'],\n\t\t\tbottom: ['modal-bottom'],\n\t\t},\n\t},\n\tcompoundVariants: [],\n\tdefaultVariants: {\n\t\twidth: 'full',\n\t\taligment: 'center',\n\t},\n});\n\nexport type ModalPaddingProps = 'none' | 'sm' | 'md' | 'lg' | null | undefined;\nexport type ModalWidthProps = 'full' | 'fit' | null | undefined;\nexport type ModalAlignmentProps = 'top' | 'center' | 'bottom' | null | undefined;\n\nexport type ModalProps = {\n\tpadding?: ModalPaddingProps;\n\twidth?: ModalWidthProps;\n\talignment?: ModalAlignmentProps;\n};\n\n@Component({\n\tselector: 'st-modal',\n\tstandalone: true,\n\timports: [],\n\ttemplateUrl: './modal.component.html',\n\tstyles: '',\n})\nexport class ModalComponent {\n\twidth = input<ModalWidthProps>();\n\talignment = input<ModalAlignmentProps>('center');\n\tmodalId = input.required<string>();\n\tonClickOutside = output<void>();\n\n\ticonClose = matCloseOutline;\n\tdialog = viewChild<ElementRef<HTMLDialogElement>>('dialog');\n\n\topened = model<boolean>(false);\n\topenedEffect = effect(() => {\n\t\tif (this.opened()) {\n\t\t\tthis.handleOpen();\n\t\t} else {\n\t\t\tthis.handleClose();\n\t\t}\n\t});\n\n\tget componentClass() {\n\t\treturn cn(\n\t\t\tmodalComponent({\n\t\t\t\twidth: this.width(),\n\t\t\t}),\n\t\t);\n\t}\n\n\tget modalClass() {\n\t\treturn cn('modal', {\n\t\t\t'modal-top': this.alignment() === 'top',\n\t\t\t'modal-middle': this.alignment() === 'center',\n\t\t\t'modal-bottom': this.alignment() === 'bottom',\n\t\t});\n\t}\n\n\thandleOpen() {\n\t\tthis.dialog()?.nativeElement.showModal();\n\t}\n\n\thandleClose() {\n\t\tthis.dialog()?.nativeElement.close();\n\t}\n\n\thandleCloseClick() {\n\t\tthis.opened.set(false);\n\t}\n\n\thandleCancelClick(event: Event) {\n\t\tevent.preventDefault();\n\t\tthis.opened.set(false);\n\t}\n}\n","<!-- eslint-disable @angular-eslint/template/elements-content -->\n<dialog #dialog [id]=\"modalId()\" [class]=\"modalClass\" (cancel)=\"handleCancelClick($event)\">\n\t<div [class]=\"componentClass\">\n\t\t<div class=\"absolute right-2 top-2\">\n\t\t\t<button class=\"btn btn-circle btn-ghost btn-sm absolute right-0 top-0\" (click)=\"handleCloseClick()\">✕</button>\n\t\t</div>\n\t\t<ng-content select=\"st-modal-title\"></ng-content>\n\t\t<ng-content select=\"st-modal-content\"></ng-content>\n\t\t<ng-content select=\"st-modal-actions\"></ng-content>\n\t</div>\n\t<form method=\"dialog\" class=\"modal-backdrop\">\n\t\t<button (click)=\"onClickOutside.emit()\"></button>\n\t</form>\n</dialog>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;MAca,qBAAqB,CAAA;;AAEjC,IAAA,SAAS,GAAG,KAAK,CAA4B,MAAM,CAAC,CAAC;AAErD,IAAA,IAAI,cAAc,GAAA;QACjB,OAAO,EAAE,CAAC,cAAc,EAAE;AACzB,YAAA,eAAe,EAAE,IAAI,CAAC,SAAS,EAAE,KAAK,MAAM;AAC5C,YAAA,aAAa,EAAE,IAAI,CAAC,SAAS,EAAE,KAAK,OAAO;AAC3C,YAAA,gBAAgB,EAAE,IAAI,CAAC,SAAS,EAAE,KAAK,QAAQ;AAC/C,SAAA,CAAC,CAAC;KACH;wGAVW,qBAAqB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;4FAArB,qBAAqB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,kBAAA,EAAA,MAAA,EAAA,EAAA,SAAA,EAAA,EAAA,iBAAA,EAAA,WAAA,EAAA,UAAA,EAAA,WAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,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,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;KACvB;wGAjDW,cAAc,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAd,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,cAAc,6vBCzC3B,gsBAcA,EAAA,MAAA,EAAA,CAAA,EAAA,CAAA,EAAA,CAAA,CAAA;;4FD2Ba,cAAc,EAAA,UAAA,EAAA,CAAA;kBAP1B,SAAS;+BACC,UAAU,EAAA,UAAA,EACR,IAAI,EAAA,OAAA,EACP,EAAE,EAAA,QAAA,EAAA,gsBAAA,EAAA,CAAA;;;AErCZ;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"sixbell-telco-sdk-components-modal.mjs","sources":["../../../projects/sdk/components/modal/modal-actions/modal-actions.component.ts","../../../projects/sdk/components/modal/modal-actions/modal-actions.component.html","../../../projects/sdk/components/modal/modal-content/modal-content.component.ts","../../../projects/sdk/components/modal/modal-content/modal-content.component.html","../../../projects/sdk/components/modal/modal-title/modal-title.component.ts","../../../projects/sdk/components/modal/modal-title/modal-title.component.html","../../../projects/sdk/components/modal/src/modal.component.ts","../../../projects/sdk/components/modal/src/modal.component.html","../../../projects/sdk/components/modal/sixbell-telco-sdk-components-modal.ts"],"sourcesContent":["import { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, input } from '@angular/core';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\n\nexport type ModalActionsAligmentProps = 'left' | 'right' | 'center';\n\n@Component({\n\t// eslint-disable-next-line @angular-eslint/component-selector\n\tselector: 'st-modal-actions',\n\tstandalone: true,\n\timports: [CommonModule],\n\ttemplateUrl: './modal-actions.component.html',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class ModalActionsComponent {\n\t// Base table properties\n\talignment = input<ModalActionsAligmentProps>('left');\n\n\tget componentClass() {\n\t\treturn cn('modal-action', {\n\t\t\t'justify-start': this.alignment() === 'left',\n\t\t\t'justify-end': this.alignment() === 'right',\n\t\t\t'justify-center': this.alignment() === 'center',\n\t\t});\n\t}\n}\n","<div [class]=\"componentClass\">\n\t<ng-content></ng-content>\n</div>\n","import { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component } from '@angular/core';\n\n@Component({\n\t// eslint-disable-next-line @angular-eslint/component-selector\n\tselector: 'st-modal-content',\n\tstandalone: true,\n\timports: [CommonModule],\n\ttemplateUrl: './modal-content.component.html',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class ModalContentComponent {}\n","<ng-content></ng-content>\n","import { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component } from '@angular/core';\nimport { TypographyDirective } from '@sixbell-telco/sdk/directives/typography';\n\n@Component({\n\t// eslint-disable-next-line @angular-eslint/component-selector\n\tselector: 'st-modal-title',\n\tstandalone: true,\n\timports: [CommonModule, TypographyDirective],\n\ttemplateUrl: './modal-title.component.html',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class ModalTitleComponent {}\n","<div class=\"mb-6\">\n\t<div typography tyFontWeight=\"semibold\" tyColor=\"base\" tyVariant=\"h3\">\n\t\t<ng-content></ng-content>\n\t</div>\n</div>\n","import { Component, effect, ElementRef, input, model, output, viewChild } from '@angular/core';\nimport { matCloseOutline } from '@sixbell-telco/sdk/components/icon/material/outline';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { cva } from 'class-variance-authority';\n\nexport const modalComponent = cva(['modal-box', 'bg-base-200', 'p-6', 'text-base-content'], {\n\tvariants: {\n\t\twidth: {\n\t\t\tfull: ['w-full'],\n\t\t\tfit: ['w-fit', 'min-w-fit'],\n\t\t},\n\t\taligment: {\n\t\t\ttop: ['modal-top'],\n\t\t\tcenter: ['modal-middle'],\n\t\t\tbottom: ['modal-bottom'],\n\t\t},\n\t},\n\tcompoundVariants: [],\n\tdefaultVariants: {\n\t\twidth: 'full',\n\t\taligment: 'center',\n\t},\n});\n\nexport type ModalPaddingProps = 'none' | 'sm' | 'md' | 'lg' | null | undefined;\nexport type ModalWidthProps = 'full' | 'fit' | null | undefined;\nexport type ModalAlignmentProps = 'top' | 'center' | 'bottom' | null | undefined;\n\nexport type ModalProps = {\n\tpadding?: ModalPaddingProps;\n\twidth?: ModalWidthProps;\n\talignment?: ModalAlignmentProps;\n};\n\n@Component({\n\tselector: 'st-modal',\n\tstandalone: true,\n\timports: [],\n\ttemplateUrl: './modal.component.html',\n\tstyles: '',\n})\nexport class ModalComponent {\n\twidth = input<ModalWidthProps>();\n\talignment = input<ModalAlignmentProps>('center');\n\tmodalId = input.required<string>();\n\tonClickOutside = output<void>();\n\tonClose = output<void>();\n\n\ticonClose = matCloseOutline;\n\tdialog = viewChild<ElementRef<HTMLDialogElement>>('dialog');\n\n\topened = model<boolean>(false);\n\topenedEffect = effect(() => {\n\t\tif (this.opened()) {\n\t\t\tthis.handleOpen();\n\t\t} else {\n\t\t\tthis.handleClose();\n\t\t}\n\t});\n\n\tget componentClass() {\n\t\treturn cn(\n\t\t\tmodalComponent({\n\t\t\t\twidth: this.width(),\n\t\t\t}),\n\t\t);\n\t}\n\n\tget modalClass() {\n\t\treturn cn('modal', {\n\t\t\t'modal-top': this.alignment() === 'top',\n\t\t\t'modal-middle': this.alignment() === 'center',\n\t\t\t'modal-bottom': this.alignment() === 'bottom',\n\t\t});\n\t}\n\n\thandleOpen() {\n\t\tthis.dialog()?.nativeElement.showModal();\n\t}\n\n\thandleClose() {\n\t\tthis.dialog()?.nativeElement.close();\n\t}\n\n\thandleCloseClick() {\n\t\tthis.opened.set(false);\n\t\tthis.onClose.emit();\n\t}\n\n\thandleCancelClick(event: Event) {\n\t\tevent.preventDefault();\n\t\tthis.opened.set(false);\n\t\tthis.onClose.emit();\n\t}\n\n\thandleClickOutside(event: Event) {\n\t\tevent.preventDefault();\n\t\tthis.opened.set(false);\n\t\tthis.onClickOutside.emit();\n\t\tthis.onClose.emit();\n\t}\n}\n","<!-- eslint-disable @angular-eslint/template/elements-content -->\n<dialog #dialog [id]=\"modalId()\" [class]=\"modalClass\" (cancel)=\"handleCancelClick($event)\">\n\t<div [class]=\"componentClass\">\n\t\t<div class=\"absolute right-2 top-2\">\n\t\t\t<button class=\"btn btn-circle btn-ghost btn-sm absolute right-0 top-0\" (click)=\"handleCloseClick()\">✕</button>\n\t\t</div>\n\t\t<ng-content select=\"st-modal-title\"></ng-content>\n\t\t<ng-content select=\"st-modal-content\"></ng-content>\n\t\t<ng-content select=\"st-modal-actions\"></ng-content>\n\t</div>\n\t<form method=\"dialog\" class=\"modal-backdrop\">\n\t\t<button (click)=\"handleClickOutside($event)\"></button>\n\t</form>\n</dialog>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;MAca,qBAAqB,CAAA;;AAEjC,IAAA,SAAS,GAAG,KAAK,CAA4B,MAAM,CAAC,CAAC;AAErD,IAAA,IAAI,cAAc,GAAA;QACjB,OAAO,EAAE,CAAC,cAAc,EAAE;AACzB,YAAA,eAAe,EAAE,IAAI,CAAC,SAAS,EAAE,KAAK,MAAM;AAC5C,YAAA,aAAa,EAAE,IAAI,CAAC,SAAS,EAAE,KAAK,OAAO;AAC3C,YAAA,gBAAgB,EAAE,IAAI,CAAC,SAAS,EAAE,KAAK,QAAQ;AAC/C,SAAA,CAAC,CAAC;KACH;wGAVW,qBAAqB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;4FAArB,qBAAqB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,kBAAA,EAAA,MAAA,EAAA,EAAA,SAAA,EAAA,EAAA,iBAAA,EAAA,WAAA,EAAA,UAAA,EAAA,WAAA,EAAA,QAA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AI,CAAC,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;AACvB,QAAA,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC;KACpB;AAED,IAAA,iBAAiB,CAAC,KAAY,EAAA;QAC7B,KAAK,CAAC,cAAc,EAAE,CAAC;AACvB,QAAA,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;AACvB,QAAA,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC;KACpB;AAED,IAAA,kBAAkB,CAAC,KAAY,EAAA;QAC9B,KAAK,CAAC,cAAc,EAAE,CAAC;AACvB,QAAA,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;AACvB,QAAA,IAAI,CAAC,cAAc,CAAC,IAAI,EAAE,CAAC;AAC3B,QAAA,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC;KACpB;wGA3DW,cAAc,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAd,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,cAAc,ixBCzC3B,qsBAcA,EAAA,MAAA,EAAA,CAAA,EAAA,CAAA,EAAA,CAAA,CAAA;;4FD2Ba,cAAc,EAAA,UAAA,EAAA,CAAA;kBAP1B,SAAS;+BACC,UAAU,EAAA,UAAA,EACR,IAAI,EAAA,OAAA,EACP,EAAE,EAAA,QAAA,EAAA,qsBAAA,EAAA,CAAA;;;AErCZ;;AAEG;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sixbell-telco/sdk",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.1",
|
|
4
4
|
"description": "A collection of reusable components designed for use in Sixbell Telco Angular projects",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"sixbell",
|
|
@@ -185,36 +185,36 @@
|
|
|
185
185
|
"esm": "./esm2022/components/forms/combobox/sixbell-telco-sdk-components-forms-combobox.mjs",
|
|
186
186
|
"default": "./fesm2022/sixbell-telco-sdk-components-forms-combobox.mjs"
|
|
187
187
|
},
|
|
188
|
-
"./components/forms/datepicker": {
|
|
189
|
-
"types": "./components/forms/datepicker/index.d.ts",
|
|
190
|
-
"esm2022": "./esm2022/components/forms/datepicker/sixbell-telco-sdk-components-forms-datepicker.mjs",
|
|
191
|
-
"esm": "./esm2022/components/forms/datepicker/sixbell-telco-sdk-components-forms-datepicker.mjs",
|
|
192
|
-
"default": "./fesm2022/sixbell-telco-sdk-components-forms-datepicker.mjs"
|
|
193
|
-
},
|
|
194
188
|
"./components/forms/form-error": {
|
|
195
189
|
"types": "./components/forms/form-error/index.d.ts",
|
|
196
190
|
"esm2022": "./esm2022/components/forms/form-error/sixbell-telco-sdk-components-forms-form-error.mjs",
|
|
197
191
|
"esm": "./esm2022/components/forms/form-error/sixbell-telco-sdk-components-forms-form-error.mjs",
|
|
198
192
|
"default": "./fesm2022/sixbell-telco-sdk-components-forms-form-error.mjs"
|
|
199
193
|
},
|
|
194
|
+
"./components/forms/datepicker": {
|
|
195
|
+
"types": "./components/forms/datepicker/index.d.ts",
|
|
196
|
+
"esm2022": "./esm2022/components/forms/datepicker/sixbell-telco-sdk-components-forms-datepicker.mjs",
|
|
197
|
+
"esm": "./esm2022/components/forms/datepicker/sixbell-telco-sdk-components-forms-datepicker.mjs",
|
|
198
|
+
"default": "./fesm2022/sixbell-telco-sdk-components-forms-datepicker.mjs"
|
|
199
|
+
},
|
|
200
200
|
"./components/forms/input": {
|
|
201
201
|
"types": "./components/forms/input/index.d.ts",
|
|
202
202
|
"esm2022": "./esm2022/components/forms/input/sixbell-telco-sdk-components-forms-input.mjs",
|
|
203
203
|
"esm": "./esm2022/components/forms/input/sixbell-telco-sdk-components-forms-input.mjs",
|
|
204
204
|
"default": "./fesm2022/sixbell-telco-sdk-components-forms-input.mjs"
|
|
205
205
|
},
|
|
206
|
-
"./components/forms/radio": {
|
|
207
|
-
"types": "./components/forms/radio/index.d.ts",
|
|
208
|
-
"esm2022": "./esm2022/components/forms/radio/sixbell-telco-sdk-components-forms-radio.mjs",
|
|
209
|
-
"esm": "./esm2022/components/forms/radio/sixbell-telco-sdk-components-forms-radio.mjs",
|
|
210
|
-
"default": "./fesm2022/sixbell-telco-sdk-components-forms-radio.mjs"
|
|
211
|
-
},
|
|
212
206
|
"./components/forms/range": {
|
|
213
207
|
"types": "./components/forms/range/index.d.ts",
|
|
214
208
|
"esm2022": "./esm2022/components/forms/range/sixbell-telco-sdk-components-forms-range.mjs",
|
|
215
209
|
"esm": "./esm2022/components/forms/range/sixbell-telco-sdk-components-forms-range.mjs",
|
|
216
210
|
"default": "./fesm2022/sixbell-telco-sdk-components-forms-range.mjs"
|
|
217
211
|
},
|
|
212
|
+
"./components/forms/radio": {
|
|
213
|
+
"types": "./components/forms/radio/index.d.ts",
|
|
214
|
+
"esm2022": "./esm2022/components/forms/radio/sixbell-telco-sdk-components-forms-radio.mjs",
|
|
215
|
+
"esm": "./esm2022/components/forms/radio/sixbell-telco-sdk-components-forms-radio.mjs",
|
|
216
|
+
"default": "./fesm2022/sixbell-telco-sdk-components-forms-radio.mjs"
|
|
217
|
+
},
|
|
218
218
|
"./components/forms/select": {
|
|
219
219
|
"types": "./components/forms/select/index.d.ts",
|
|
220
220
|
"esm2022": "./esm2022/components/forms/select/sixbell-telco-sdk-components-forms-select.mjs",
|
|
@@ -239,12 +239,6 @@
|
|
|
239
239
|
"esm": "./esm2022/components/forms/toggle/sixbell-telco-sdk-components-forms-toggle.mjs",
|
|
240
240
|
"default": "./fesm2022/sixbell-telco-sdk-components-forms-toggle.mjs"
|
|
241
241
|
},
|
|
242
|
-
"./utils/generators/uuid": {
|
|
243
|
-
"types": "./utils/generators/uuid/index.d.ts",
|
|
244
|
-
"esm2022": "./esm2022/utils/generators/uuid/sixbell-telco-sdk-utils-generators-uuid.mjs",
|
|
245
|
-
"esm": "./esm2022/utils/generators/uuid/sixbell-telco-sdk-utils-generators-uuid.mjs",
|
|
246
|
-
"default": "./fesm2022/sixbell-telco-sdk-utils-generators-uuid.mjs"
|
|
247
|
-
},
|
|
248
242
|
"./utils/pipes/extract-extension": {
|
|
249
243
|
"types": "./utils/pipes/extract-extension/index.d.ts",
|
|
250
244
|
"esm2022": "./esm2022/utils/pipes/extract-extension/sixbell-telco-sdk-utils-pipes-extract-extension.mjs",
|
|
@@ -257,6 +251,12 @@
|
|
|
257
251
|
"esm": "./esm2022/utils/pipes/to-bytes-extesion/sixbell-telco-sdk-utils-pipes-to-bytes-extesion.mjs",
|
|
258
252
|
"default": "./fesm2022/sixbell-telco-sdk-utils-pipes-to-bytes-extesion.mjs"
|
|
259
253
|
},
|
|
254
|
+
"./utils/generators/uuid": {
|
|
255
|
+
"types": "./utils/generators/uuid/index.d.ts",
|
|
256
|
+
"esm2022": "./esm2022/utils/generators/uuid/sixbell-telco-sdk-utils-generators-uuid.mjs",
|
|
257
|
+
"esm": "./esm2022/utils/generators/uuid/sixbell-telco-sdk-utils-generators-uuid.mjs",
|
|
258
|
+
"default": "./fesm2022/sixbell-telco-sdk-utils-generators-uuid.mjs"
|
|
259
|
+
},
|
|
260
260
|
"./components/icon/material/baseline": {
|
|
261
261
|
"types": "./components/icon/material/baseline/index.d.ts",
|
|
262
262
|
"esm2022": "./esm2022/components/icon/material/baseline/sixbell-telco-sdk-components-icon-material-baseline.mjs",
|