@sixbell-telco/sdk 0.1.4 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +128 -4
- package/README.md +13 -6
- package/components/accordion/accordion-item/accordion-item.component.d.ts +9 -6
- package/components/avatar/src/avatar.component.d.ts +17 -12
- package/components/button/src/button.component.d.ts +29 -28
- package/components/card/src/card.component.d.ts +18 -12
- package/components/dropdown/src/dropdown.component.d.ts +29 -27
- package/components/dual-list/src/dual-list.component.d.ts +47 -37
- package/components/file-upload/file-uploader/src/file-uploader.component.d.ts +20 -11
- package/components/forms/checkbox/src/checkbox.component.d.ts +7 -3
- package/components/forms/combobox/src/combobox.component.d.ts +17 -16
- package/components/forms/input/src/input.component.d.ts +20 -15
- package/components/forms/radio/src/radio.component.d.ts +14 -1
- package/components/forms/range/src/range.component.d.ts +11 -11
- package/components/forms/select/src/select.component.d.ts +17 -15
- package/components/forms/switch/src/switch.component.d.ts +11 -11
- package/components/forms/textarea/src/textarea.component.d.ts +20 -16
- package/components/forms/toggle/src/toggle.component.d.ts +12 -7
- package/components/icon/src/icon.component.d.ts +12 -7
- package/components/link/src/link.component.d.ts +27 -16
- package/components/modal/src/modal.component.d.ts +18 -7
- package/components/notification/src/notification.component.d.ts +15 -7
- package/components/paginator/components/pagination-item/pagination-item.component.d.ts +18 -7
- package/components/product-card/src/product-card.component.d.ts +42 -17
- package/components/progress/src/progress.component.d.ts +9 -7
- package/components/tab/directives/tab-content/tab-content.directive.d.ts +8 -10
- package/components/tab/directives/tab-header/tab-header.directive.d.ts +9 -12
- package/components/tab/src/tab.component.d.ts +14 -9
- package/components/table/src/table.component.d.ts +28 -17
- package/components/toast/toast-message/toast-message.component.d.ts +9 -7
- package/components/tooltip/src/tooltip.component.d.ts +12 -7
- package/components/wizard/wizard-content/wizard-content.component.d.ts +3 -3
- package/directives/typography/src/typography.directive.d.ts +13 -12
- package/esm2022/components/accordion/accordion-item/accordion-item.component.mjs +7 -7
- package/esm2022/components/accordion/src/accordion.component.mjs +3 -3
- package/esm2022/components/avatar/src/avatar.component.mjs +7 -7
- package/esm2022/components/button/src/button.component.mjs +13 -11
- package/esm2022/components/card/src/card.component.mjs +7 -7
- package/esm2022/components/dropdown/src/dropdown.component.mjs +15 -11
- package/esm2022/components/dual-list/src/dual-list.component.mjs +53 -33
- package/esm2022/components/file-upload/file-dropzone/src/file-dropzone.component.mjs +3 -4
- package/esm2022/components/file-upload/file-uploader/src/file-uploader.component.mjs +28 -22
- package/esm2022/components/forms/checkbox/src/checkbox.component.mjs +9 -9
- package/esm2022/components/forms/combobox/src/combobox.component.mjs +31 -28
- package/esm2022/components/forms/datepicker/src/datepicker.component.mjs +3 -3
- package/esm2022/components/forms/form-error/src/form-error.component.mjs +3 -3
- package/esm2022/components/forms/input/src/input.component.mjs +34 -34
- package/esm2022/components/forms/radio/src/radio.component.mjs +53 -4
- package/esm2022/components/forms/range/src/range.component.mjs +14 -13
- package/esm2022/components/forms/select/src/select.component.mjs +30 -28
- package/esm2022/components/forms/switch/src/switch.component.mjs +15 -14
- package/esm2022/components/forms/textarea/src/textarea.component.mjs +35 -36
- package/esm2022/components/forms/toggle/src/toggle.component.mjs +113 -90
- package/esm2022/components/icon/src/icon.component.mjs +9 -8
- package/esm2022/components/link/src/link.component.mjs +26 -20
- package/esm2022/components/modal/src/modal.component.mjs +17 -13
- package/esm2022/components/notification/src/notification.component.mjs +10 -8
- package/esm2022/components/paginator/components/pagination-item/pagination-item.component.mjs +18 -15
- package/esm2022/components/paginator/src/paginator.component.mjs +3 -3
- package/esm2022/components/product-card/src/product-card.component.mjs +52 -46
- package/esm2022/components/progress/src/progress.component.mjs +11 -11
- package/esm2022/components/tab/directives/tab-content/tab-content.directive.mjs +14 -13
- package/esm2022/components/tab/directives/tab-header/tab-header.directive.mjs +17 -15
- package/esm2022/components/tab/src/tab.component.mjs +17 -15
- package/esm2022/components/table/src/table.component.mjs +32 -23
- package/esm2022/components/table/table-header-checkbox/table-header-checkbox.component.mjs +1 -1
- package/esm2022/components/table/table-row-checkbox/table-row-checkbox.component.mjs +1 -1
- package/esm2022/components/toast/toast-message/toast-message.component.mjs +22 -17
- package/esm2022/components/toast/toasts-container/toasts-container.component.mjs +2 -2
- package/esm2022/components/tooltip/src/tooltip.component.mjs +12 -10
- package/esm2022/components/wizard/wizard-content/wizard-content.component.mjs +6 -6
- package/esm2022/components/wizard/wizard-marker/wizard-marker.component.mjs +3 -3
- package/esm2022/components/wizard/wizard-step/wizard-step.component.mjs +3 -4
- package/esm2022/components/wizard/wizard-wrapper/wizard-wrapper.component.mjs +3 -11
- package/esm2022/directives/typography/src/typography.directive.mjs +9 -6
- package/fesm2022/sixbell-telco-sdk-components-accordion.mjs +9 -9
- package/fesm2022/sixbell-telco-sdk-components-accordion.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-avatar.mjs +7 -7
- package/fesm2022/sixbell-telco-sdk-components-avatar.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-button.mjs +13 -11
- package/fesm2022/sixbell-telco-sdk-components-button.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-card.mjs +7 -7
- package/fesm2022/sixbell-telco-sdk-components-card.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dropdown.mjs +15 -11
- package/fesm2022/sixbell-telco-sdk-components-dropdown.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dual-list.mjs +51 -31
- package/fesm2022/sixbell-telco-sdk-components-dual-list.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-file-upload-file-dropzone.mjs +2 -3
- package/fesm2022/sixbell-telco-sdk-components-file-upload-file-dropzone.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-file-upload-file-uploader.mjs +27 -21
- package/fesm2022/sixbell-telco-sdk-components-file-upload-file-uploader.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-checkbox.mjs +8 -8
- package/fesm2022/sixbell-telco-sdk-components-forms-checkbox.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-combobox.mjs +30 -27
- package/fesm2022/sixbell-telco-sdk-components-forms-combobox.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-datepicker.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-forms-datepicker.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-form-error.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-forms-form-error.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-input.mjs +33 -33
- package/fesm2022/sixbell-telco-sdk-components-forms-input.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-radio.mjs +52 -3
- package/fesm2022/sixbell-telco-sdk-components-forms-radio.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-range.mjs +13 -12
- package/fesm2022/sixbell-telco-sdk-components-forms-range.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-select.mjs +29 -27
- package/fesm2022/sixbell-telco-sdk-components-forms-select.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-switch.mjs +14 -13
- package/fesm2022/sixbell-telco-sdk-components-forms-switch.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-textarea.mjs +34 -35
- package/fesm2022/sixbell-telco-sdk-components-forms-textarea.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-toggle.mjs +113 -90
- package/fesm2022/sixbell-telco-sdk-components-forms-toggle.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-icon.mjs +9 -8
- package/fesm2022/sixbell-telco-sdk-components-icon.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-link.mjs +26 -20
- package/fesm2022/sixbell-telco-sdk-components-link.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-modal.mjs +17 -13
- package/fesm2022/sixbell-telco-sdk-components-modal.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-notification.mjs +10 -8
- package/fesm2022/sixbell-telco-sdk-components-notification.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-paginator.mjs +20 -17
- package/fesm2022/sixbell-telco-sdk-components-paginator.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-product-card.mjs +52 -46
- package/fesm2022/sixbell-telco-sdk-components-product-card.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-progress.mjs +11 -11
- package/fesm2022/sixbell-telco-sdk-components-progress.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-tab.mjs +46 -41
- package/fesm2022/sixbell-telco-sdk-components-tab.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-table.mjs +35 -25
- package/fesm2022/sixbell-telco-sdk-components-table.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-toast.mjs +23 -18
- package/fesm2022/sixbell-telco-sdk-components-toast.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-tooltip.mjs +12 -10
- package/fesm2022/sixbell-telco-sdk-components-tooltip.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-wizard.mjs +11 -19
- package/fesm2022/sixbell-telco-sdk-components-wizard.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-directives-typography.mjs +8 -5
- package/fesm2022/sixbell-telco-sdk-directives-typography.mjs.map +1 -1
- package/package.json +14 -8
|
@@ -8,7 +8,7 @@ import { CommonModule } from '@angular/common';
|
|
|
8
8
|
import * as i1 from 'ngx-pagination';
|
|
9
9
|
import { NgxPaginationModule } from 'ngx-pagination';
|
|
10
10
|
|
|
11
|
-
const
|
|
11
|
+
const paginationItemComponent = cva([], {
|
|
12
12
|
variants: {
|
|
13
13
|
variant: {
|
|
14
14
|
numeric: [
|
|
@@ -87,28 +87,31 @@ const paginationItem = cva([], {
|
|
|
87
87
|
},
|
|
88
88
|
});
|
|
89
89
|
class PaginationItemComponent {
|
|
90
|
-
|
|
91
|
-
|
|
90
|
+
variant = input();
|
|
91
|
+
shape = input();
|
|
92
|
+
size = input();
|
|
93
|
+
padding = input();
|
|
94
|
+
classes = input('');
|
|
92
95
|
iconName = input('angle-left');
|
|
93
96
|
number = input(1);
|
|
94
97
|
active = input(false);
|
|
95
|
-
get
|
|
96
|
-
return cn(
|
|
97
|
-
variant: this.
|
|
98
|
-
shape: this.
|
|
99
|
-
size: this.
|
|
100
|
-
padding: this.
|
|
101
|
-
class: this.
|
|
102
|
-
}), { 'text-neutral-content bg-primary border-primary': this.active() && this.
|
|
103
|
-
'hover:scale-100 hover:bg-opacity-100 w-[0.9375rem] h-[0.9375rem] text-neutral-content bg-primary border-primary': this.active() && this.
|
|
98
|
+
get componentClass() {
|
|
99
|
+
return cn(paginationItemComponent({
|
|
100
|
+
variant: this.variant(),
|
|
101
|
+
shape: this.shape(),
|
|
102
|
+
size: this.size(),
|
|
103
|
+
padding: this.padding(),
|
|
104
|
+
class: this.classes(),
|
|
105
|
+
}), { 'text-neutral-content bg-primary border-primary': this.active() && this.variant() !== 'dots' }, {
|
|
106
|
+
'hover:scale-100 hover:bg-opacity-100 w-[0.9375rem] h-[0.9375rem] text-neutral-content bg-primary border-primary': this.active() && this.variant() === 'dots',
|
|
104
107
|
});
|
|
105
108
|
}
|
|
106
109
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: PaginationItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
107
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.8", type: PaginationItemComponent, isStandalone: true, selector: "app-pagination-item", inputs: {
|
|
110
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.8", type: PaginationItemComponent, isStandalone: true, selector: "app-pagination-item", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, shape: { classPropertyName: "shape", publicName: "shape", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, padding: { classPropertyName: "padding", publicName: "padding", isSignal: true, isRequired: false, transformFunction: null }, classes: { classPropertyName: "classes", publicName: "classes", isSignal: true, isRequired: false, transformFunction: null }, iconName: { classPropertyName: "iconName", publicName: "iconName", isSignal: true, isRequired: false, transformFunction: null }, number: { classPropertyName: "number", publicName: "number", isSignal: true, isRequired: false, transformFunction: null }, active: { classPropertyName: "active", publicName: "active", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "@let variantVar = this.variant();\n\n@if (variantVar === 'numeric') {\n\t<button [class]=\"componentClass\" type=\"button\">\n\t\t<span typography [typographyVariant]=\"'body-sm'\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'normal'\">{{ number() }}</span>\n\t</button>\n} @else if (variantVar === 'icon') {\n\t<button [class]=\"componentClass\" type=\"button\">\n\t\t<app-icon [iconName]=\"this.iconName()\" color=\"inherit\" size=\"sm\"></app-icon>\n\t</button>\n} @else if (variantVar === 'dots') {\n\t<button [class]=\"componentClass\" type=\"button\">\n\t\t<span></span>\n\t</button>\n} @else {\n\t<button [class]=\"componentClass\" type=\"button\">\n\t\t<span typography [typographyVariant]=\"'body-sm'\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'normal'\">{{ number() }}</span>\n\t</button>\n}\n", styles: [""], dependencies: [{ kind: "component", type: IconComponent, selector: "app-icon", inputs: ["color", "size", "classes", "iconName"] }, { kind: "directive", type: TypographyDirective, selector: "[typography]", inputs: ["typographyVariant", "typographyColor", "typographyFontWeight", "classes"] }] });
|
|
108
111
|
}
|
|
109
112
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: PaginationItemComponent, decorators: [{
|
|
110
113
|
type: Component,
|
|
111
|
-
args: [{ selector: 'app-pagination-item', standalone: true, imports: [IconComponent, TypographyDirective], template: "@
|
|
114
|
+
args: [{ selector: 'app-pagination-item', standalone: true, imports: [IconComponent, TypographyDirective], template: "@let variantVar = this.variant();\n\n@if (variantVar === 'numeric') {\n\t<button [class]=\"componentClass\" type=\"button\">\n\t\t<span typography [typographyVariant]=\"'body-sm'\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'normal'\">{{ number() }}</span>\n\t</button>\n} @else if (variantVar === 'icon') {\n\t<button [class]=\"componentClass\" type=\"button\">\n\t\t<app-icon [iconName]=\"this.iconName()\" color=\"inherit\" size=\"sm\"></app-icon>\n\t</button>\n} @else if (variantVar === 'dots') {\n\t<button [class]=\"componentClass\" type=\"button\">\n\t\t<span></span>\n\t</button>\n} @else {\n\t<button [class]=\"componentClass\" type=\"button\">\n\t\t<span typography [typographyVariant]=\"'body-sm'\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'normal'\">{{ number() }}</span>\n\t</button>\n}\n" }]
|
|
112
115
|
}] });
|
|
113
116
|
|
|
114
117
|
class PaginatorComponent {
|
|
@@ -145,16 +148,16 @@ class PaginatorComponent {
|
|
|
145
148
|
this.onPageChange.emit(this.pages());
|
|
146
149
|
}
|
|
147
150
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: PaginatorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
148
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.8", type: PaginatorComponent, isStandalone: true, selector: "app-paginator", inputs: { paginatorId: { classPropertyName: "paginatorId", publicName: "paginatorId", isSignal: true, isRequired: false, transformFunction: null }, maxSize: { classPropertyName: "maxSize", publicName: "maxSize", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, pages: { classPropertyName: "pages", publicName: "pages", isSignal: true, isRequired: false, transformFunction: null }, currentPage: { classPropertyName: "currentPage", publicName: "currentPage", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onPageChange: "onPageChange", currentPage: "currentPageChange" }, ngImport: i0, template: "@if (type() === 'default') {\n\t<div class=\"flex\">\n\t\t<pagination-template [id]=\"paginatorId()\" #p=\"paginationApi\" [maxSize]=\"maxSize()\" (pageChange)=\"handlePageChange($event)\">\n\t\t\t<div class=\"flex items-center justify-center gap-2\">\n\t\t\t\t@if (pages()) {\n\t\t\t\t\t<!-- Standalone pagination -->\n\t\t\t\t\t<app-pagination-item\n\t\t\t\t\t\t[iconName]=\"'angle-double-left'\"\n\t\t\t\t\t\t(click)=\"firstPage()\"\n\t\t\t\t\t\t
|
|
151
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.8", type: PaginatorComponent, isStandalone: true, selector: "app-paginator", inputs: { paginatorId: { classPropertyName: "paginatorId", publicName: "paginatorId", isSignal: true, isRequired: false, transformFunction: null }, maxSize: { classPropertyName: "maxSize", publicName: "maxSize", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, pages: { classPropertyName: "pages", publicName: "pages", isSignal: true, isRequired: false, transformFunction: null }, currentPage: { classPropertyName: "currentPage", publicName: "currentPage", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onPageChange: "onPageChange", currentPage: "currentPageChange" }, ngImport: i0, template: "@if (type() === 'default') {\n\t<div class=\"flex\">\n\t\t<pagination-template [id]=\"paginatorId()\" #p=\"paginationApi\" [maxSize]=\"maxSize()\" (pageChange)=\"handlePageChange($event)\">\n\t\t\t<div class=\"flex items-center justify-center gap-2\">\n\t\t\t\t@if (pages()) {\n\t\t\t\t\t<!-- Standalone pagination -->\n\t\t\t\t\t<app-pagination-item\n\t\t\t\t\t\t[iconName]=\"'angle-double-left'\"\n\t\t\t\t\t\t(click)=\"firstPage()\"\n\t\t\t\t\t\tvariant=\"icon\"\n\t\t\t\t\t\tsize=\"md\"\n\t\t\t\t\t\tshape=\"round-xs\"\n\t\t\t\t\t\tpadding=\"none\"\n\t\t\t\t\t></app-pagination-item>\n\t\t\t\t\t<app-pagination-item\n\t\t\t\t\t\t[iconName]=\"'angle-left'\"\n\t\t\t\t\t\t(click)=\"previousPage()\"\n\t\t\t\t\t\tvariant=\"icon\"\n\t\t\t\t\t\tsize=\"md\"\n\t\t\t\t\t\tshape=\"round-xs\"\n\t\t\t\t\t\tpadding=\"none\"\n\t\t\t\t\t></app-pagination-item>\n\t\t\t\t\t@for (page of pageCounter(); track $index) {\n\t\t\t\t\t\t@if (currentPage() !== page) {\n\t\t\t\t\t\t\t<app-pagination-item\n\t\t\t\t\t\t\t\t(click)=\"handlePageChange(page)\"\n\t\t\t\t\t\t\t\tvariant=\"numeric\"\n\t\t\t\t\t\t\t\tsize=\"md\"\n\t\t\t\t\t\t\t\tshape=\"round-xs\"\n\t\t\t\t\t\t\t\tpadding=\"none\"\n\t\t\t\t\t\t\t\t[number]=\"page\"\n\t\t\t\t\t\t\t\t[active]=\"currentPage() === page\"\n\t\t\t\t\t\t\t></app-pagination-item>\n\t\t\t\t\t\t} @else {\n\t\t\t\t\t\t\t<app-pagination-item\n\t\t\t\t\t\t\t\tvariant=\"numeric\"\n\t\t\t\t\t\t\t\tsize=\"md\"\n\t\t\t\t\t\t\t\tshape=\"round-xs\"\n\t\t\t\t\t\t\t\tpadding=\"none\"\n\t\t\t\t\t\t\t\t[number]=\"page\"\n\t\t\t\t\t\t\t\t[active]=\"currentPage() === page\"\n\t\t\t\t\t\t\t></app-pagination-item>\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t<app-pagination-item\n\t\t\t\t\t\t[iconName]=\"'angle-right'\"\n\t\t\t\t\t\t(click)=\"nextPage()\"\n\t\t\t\t\t\tvariant=\"icon\"\n\t\t\t\t\t\tsize=\"md\"\n\t\t\t\t\t\tshape=\"round-xs\"\n\t\t\t\t\t\tpadding=\"none\"\n\t\t\t\t\t></app-pagination-item>\n\t\t\t\t\t<app-pagination-item\n\t\t\t\t\t\t[iconName]=\"'angle-double-right'\"\n\t\t\t\t\t\t(click)=\"lastPage()\"\n\t\t\t\t\t\tvariant=\"icon\"\n\t\t\t\t\t\tsize=\"md\"\n\t\t\t\t\t\tshape=\"round-xs\"\n\t\t\t\t\t\tpadding=\"none\"\n\t\t\t\t\t></app-pagination-item>\n\t\t\t\t} @else {\n\t\t\t\t\t<!-- Table pagination -->\n\t\t\t\t\t<app-pagination-item\n\t\t\t\t\t\t[iconName]=\"'angle-double-left'\"\n\t\t\t\t\t\t(click)=\"!p.isFirstPage() ? handlePageChange(1) : null\"\n\t\t\t\t\t\tvariant=\"icon\"\n\t\t\t\t\t\tsize=\"md\"\n\t\t\t\t\t\tshape=\"round-xs\"\n\t\t\t\t\t\tpadding=\"none\"\n\t\t\t\t\t></app-pagination-item>\n\t\t\t\t\t<app-pagination-item\n\t\t\t\t\t\t[iconName]=\"'angle-left'\"\n\t\t\t\t\t\t(click)=\"!p.isFirstPage() ? p.previous() : null\"\n\t\t\t\t\t\tvariant=\"icon\"\n\t\t\t\t\t\tsize=\"md\"\n\t\t\t\t\t\tshape=\"round-xs\"\n\t\t\t\t\t\tpadding=\"none\"\n\t\t\t\t\t></app-pagination-item>\n\n\t\t\t\t\t@for (page of p.pages; track $index) {\n\t\t\t\t\t\t@if (p.getCurrent() !== page.value) {\n\t\t\t\t\t\t\t<app-pagination-item\n\t\t\t\t\t\t\t\t(click)=\"p.setCurrent(page.value)\"\n\t\t\t\t\t\t\t\tvariant=\"numeric\"\n\t\t\t\t\t\t\t\tsize=\"md\"\n\t\t\t\t\t\t\t\tshape=\"round-xs\"\n\t\t\t\t\t\t\t\tpadding=\"none\"\n\t\t\t\t\t\t\t\t[number]=\"page.label\"\n\t\t\t\t\t\t\t\t[active]=\"p.getCurrent() === page.value\"\n\t\t\t\t\t\t\t></app-pagination-item>\n\t\t\t\t\t\t} @else {\n\t\t\t\t\t\t\t<app-pagination-item\n\t\t\t\t\t\t\t\tvariant=\"numeric\"\n\t\t\t\t\t\t\t\tsize=\"md\"\n\t\t\t\t\t\t\t\tshape=\"round-xs\"\n\t\t\t\t\t\t\t\tpadding=\"none\"\n\t\t\t\t\t\t\t\t[number]=\"page.label\"\n\t\t\t\t\t\t\t\t[active]=\"p.getCurrent() === page.value\"\n\t\t\t\t\t\t\t></app-pagination-item>\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t<app-pagination-item\n\t\t\t\t\t\t[iconName]=\"'angle-right'\"\n\t\t\t\t\t\t(click)=\"!p.isLastPage() ? p.next() : null\"\n\t\t\t\t\t\tvariant=\"icon\"\n\t\t\t\t\t\tsize=\"md\"\n\t\t\t\t\t\tshape=\"round-xs\"\n\t\t\t\t\t\tpadding=\"none\"\n\t\t\t\t\t></app-pagination-item>\n\t\t\t\t\t<app-pagination-item\n\t\t\t\t\t\t[iconName]=\"'angle-double-right'\"\n\t\t\t\t\t\t(click)=\"!p.isLastPage() ? handlePageChange(p.getLastPage()) : null\"\n\t\t\t\t\t\tvariant=\"icon\"\n\t\t\t\t\t\tsize=\"md\"\n\t\t\t\t\t\tshape=\"round-xs\"\n\t\t\t\t\t\tpadding=\"none\"\n\t\t\t\t\t></app-pagination-item>\n\t\t\t\t}\n\t\t\t</div>\n\t\t</pagination-template>\n\t</div>\n}\n@if (type() === 'dots') {\n\t<div class=\"flex\">\n\t\t<pagination-template [id]=\"paginatorId()\" #p=\"paginationApi\" (pageChange)=\"handlePageChange($event)\" [maxSize]=\"10000\">\n\t\t\t<div class=\"flex items-center justify-center gap-2\">\n\t\t\t\t@if (pages()) {\n\t\t\t\t\t<!-- Standalone pagination -->\n\t\t\t\t\t@for (page of pageCounter(); track $index) {\n\t\t\t\t\t\t@if (currentPage() !== page) {\n\t\t\t\t\t\t\t<app-pagination-item\n\t\t\t\t\t\t\t\t(click)=\"handlePageChange(page)\"\n\t\t\t\t\t\t\t\tvariant=\"dots\"\n\t\t\t\t\t\t\t\tsize=\"xs\"\n\t\t\t\t\t\t\t\tshape=\"round-lg\"\n\t\t\t\t\t\t\t\tpadding=\"none\"\n\t\t\t\t\t\t\t\t[active]=\"currentPage() === page\"\n\t\t\t\t\t\t\t></app-pagination-item>\n\t\t\t\t\t\t} @else {\n\t\t\t\t\t\t\t<app-pagination-item variant=\"dots\" size=\"xs\" shape=\"round-lg\" padding=\"none\" [active]=\"currentPage() === page\"></app-pagination-item>\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} @else {\n\t\t\t\t\t<!-- Table pagination -->\n\t\t\t\t\t@for (page of p.pages; track $index) {\n\t\t\t\t\t\t@if (p.getCurrent() !== page.value) {\n\t\t\t\t\t\t\t<app-pagination-item\n\t\t\t\t\t\t\t\t(click)=\"p.setCurrent(page.value)\"\n\t\t\t\t\t\t\t\tvariant=\"dots\"\n\t\t\t\t\t\t\t\tsize=\"xs\"\n\t\t\t\t\t\t\t\tshape=\"round-lg\"\n\t\t\t\t\t\t\t\tpadding=\"none\"\n\t\t\t\t\t\t\t\t[active]=\"p.getCurrent() === page.value\"\n\t\t\t\t\t\t\t></app-pagination-item>\n\t\t\t\t\t\t} @else {\n\t\t\t\t\t\t\t<app-pagination-item\n\t\t\t\t\t\t\t\tvariant=\"dots\"\n\t\t\t\t\t\t\t\tsize=\"xs\"\n\t\t\t\t\t\t\t\tshape=\"round-lg\"\n\t\t\t\t\t\t\t\tpadding=\"none\"\n\t\t\t\t\t\t\t\t[active]=\"p.getCurrent() === page.value\"\n\t\t\t\t\t\t\t></app-pagination-item>\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t</div>\n\t\t</pagination-template>\n\t</div>\n}\n", dependencies: [{ kind: "ngmodule", type: NgxPaginationModule }, { kind: "directive", type: i1.PaginationControlsDirective, selector: "pagination-template,[pagination-template]", inputs: ["id", "maxSize"], outputs: ["pageChange", "pageBoundsCorrection"], exportAs: ["paginationApi"] }, { kind: "ngmodule", type: CommonModule }, { kind: "component", type: PaginationItemComponent, selector: "app-pagination-item", inputs: ["variant", "shape", "size", "padding", "classes", "iconName", "number", "active"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
149
152
|
}
|
|
150
153
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: PaginatorComponent, decorators: [{
|
|
151
154
|
type: Component,
|
|
152
|
-
args: [{ selector: 'app-paginator', standalone: true, imports: [NgxPaginationModule, CommonModule, PaginationItemComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: "@if (type() === 'default') {\n\t<div class=\"flex\">\n\t\t<pagination-template [id]=\"paginatorId()\" #p=\"paginationApi\" [maxSize]=\"maxSize()\" (pageChange)=\"handlePageChange($event)\">\n\t\t\t<div class=\"flex items-center justify-center gap-2\">\n\t\t\t\t@if (pages()) {\n\t\t\t\t\t<!-- Standalone pagination -->\n\t\t\t\t\t<app-pagination-item\n\t\t\t\t\t\t[iconName]=\"'angle-double-left'\"\n\t\t\t\t\t\t(click)=\"firstPage()\"\n\t\t\t\t\t\t
|
|
155
|
+
args: [{ selector: 'app-paginator', standalone: true, imports: [NgxPaginationModule, CommonModule, PaginationItemComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: "@if (type() === 'default') {\n\t<div class=\"flex\">\n\t\t<pagination-template [id]=\"paginatorId()\" #p=\"paginationApi\" [maxSize]=\"maxSize()\" (pageChange)=\"handlePageChange($event)\">\n\t\t\t<div class=\"flex items-center justify-center gap-2\">\n\t\t\t\t@if (pages()) {\n\t\t\t\t\t<!-- Standalone pagination -->\n\t\t\t\t\t<app-pagination-item\n\t\t\t\t\t\t[iconName]=\"'angle-double-left'\"\n\t\t\t\t\t\t(click)=\"firstPage()\"\n\t\t\t\t\t\tvariant=\"icon\"\n\t\t\t\t\t\tsize=\"md\"\n\t\t\t\t\t\tshape=\"round-xs\"\n\t\t\t\t\t\tpadding=\"none\"\n\t\t\t\t\t></app-pagination-item>\n\t\t\t\t\t<app-pagination-item\n\t\t\t\t\t\t[iconName]=\"'angle-left'\"\n\t\t\t\t\t\t(click)=\"previousPage()\"\n\t\t\t\t\t\tvariant=\"icon\"\n\t\t\t\t\t\tsize=\"md\"\n\t\t\t\t\t\tshape=\"round-xs\"\n\t\t\t\t\t\tpadding=\"none\"\n\t\t\t\t\t></app-pagination-item>\n\t\t\t\t\t@for (page of pageCounter(); track $index) {\n\t\t\t\t\t\t@if (currentPage() !== page) {\n\t\t\t\t\t\t\t<app-pagination-item\n\t\t\t\t\t\t\t\t(click)=\"handlePageChange(page)\"\n\t\t\t\t\t\t\t\tvariant=\"numeric\"\n\t\t\t\t\t\t\t\tsize=\"md\"\n\t\t\t\t\t\t\t\tshape=\"round-xs\"\n\t\t\t\t\t\t\t\tpadding=\"none\"\n\t\t\t\t\t\t\t\t[number]=\"page\"\n\t\t\t\t\t\t\t\t[active]=\"currentPage() === page\"\n\t\t\t\t\t\t\t></app-pagination-item>\n\t\t\t\t\t\t} @else {\n\t\t\t\t\t\t\t<app-pagination-item\n\t\t\t\t\t\t\t\tvariant=\"numeric\"\n\t\t\t\t\t\t\t\tsize=\"md\"\n\t\t\t\t\t\t\t\tshape=\"round-xs\"\n\t\t\t\t\t\t\t\tpadding=\"none\"\n\t\t\t\t\t\t\t\t[number]=\"page\"\n\t\t\t\t\t\t\t\t[active]=\"currentPage() === page\"\n\t\t\t\t\t\t\t></app-pagination-item>\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t<app-pagination-item\n\t\t\t\t\t\t[iconName]=\"'angle-right'\"\n\t\t\t\t\t\t(click)=\"nextPage()\"\n\t\t\t\t\t\tvariant=\"icon\"\n\t\t\t\t\t\tsize=\"md\"\n\t\t\t\t\t\tshape=\"round-xs\"\n\t\t\t\t\t\tpadding=\"none\"\n\t\t\t\t\t></app-pagination-item>\n\t\t\t\t\t<app-pagination-item\n\t\t\t\t\t\t[iconName]=\"'angle-double-right'\"\n\t\t\t\t\t\t(click)=\"lastPage()\"\n\t\t\t\t\t\tvariant=\"icon\"\n\t\t\t\t\t\tsize=\"md\"\n\t\t\t\t\t\tshape=\"round-xs\"\n\t\t\t\t\t\tpadding=\"none\"\n\t\t\t\t\t></app-pagination-item>\n\t\t\t\t} @else {\n\t\t\t\t\t<!-- Table pagination -->\n\t\t\t\t\t<app-pagination-item\n\t\t\t\t\t\t[iconName]=\"'angle-double-left'\"\n\t\t\t\t\t\t(click)=\"!p.isFirstPage() ? handlePageChange(1) : null\"\n\t\t\t\t\t\tvariant=\"icon\"\n\t\t\t\t\t\tsize=\"md\"\n\t\t\t\t\t\tshape=\"round-xs\"\n\t\t\t\t\t\tpadding=\"none\"\n\t\t\t\t\t></app-pagination-item>\n\t\t\t\t\t<app-pagination-item\n\t\t\t\t\t\t[iconName]=\"'angle-left'\"\n\t\t\t\t\t\t(click)=\"!p.isFirstPage() ? p.previous() : null\"\n\t\t\t\t\t\tvariant=\"icon\"\n\t\t\t\t\t\tsize=\"md\"\n\t\t\t\t\t\tshape=\"round-xs\"\n\t\t\t\t\t\tpadding=\"none\"\n\t\t\t\t\t></app-pagination-item>\n\n\t\t\t\t\t@for (page of p.pages; track $index) {\n\t\t\t\t\t\t@if (p.getCurrent() !== page.value) {\n\t\t\t\t\t\t\t<app-pagination-item\n\t\t\t\t\t\t\t\t(click)=\"p.setCurrent(page.value)\"\n\t\t\t\t\t\t\t\tvariant=\"numeric\"\n\t\t\t\t\t\t\t\tsize=\"md\"\n\t\t\t\t\t\t\t\tshape=\"round-xs\"\n\t\t\t\t\t\t\t\tpadding=\"none\"\n\t\t\t\t\t\t\t\t[number]=\"page.label\"\n\t\t\t\t\t\t\t\t[active]=\"p.getCurrent() === page.value\"\n\t\t\t\t\t\t\t></app-pagination-item>\n\t\t\t\t\t\t} @else {\n\t\t\t\t\t\t\t<app-pagination-item\n\t\t\t\t\t\t\t\tvariant=\"numeric\"\n\t\t\t\t\t\t\t\tsize=\"md\"\n\t\t\t\t\t\t\t\tshape=\"round-xs\"\n\t\t\t\t\t\t\t\tpadding=\"none\"\n\t\t\t\t\t\t\t\t[number]=\"page.label\"\n\t\t\t\t\t\t\t\t[active]=\"p.getCurrent() === page.value\"\n\t\t\t\t\t\t\t></app-pagination-item>\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t<app-pagination-item\n\t\t\t\t\t\t[iconName]=\"'angle-right'\"\n\t\t\t\t\t\t(click)=\"!p.isLastPage() ? p.next() : null\"\n\t\t\t\t\t\tvariant=\"icon\"\n\t\t\t\t\t\tsize=\"md\"\n\t\t\t\t\t\tshape=\"round-xs\"\n\t\t\t\t\t\tpadding=\"none\"\n\t\t\t\t\t></app-pagination-item>\n\t\t\t\t\t<app-pagination-item\n\t\t\t\t\t\t[iconName]=\"'angle-double-right'\"\n\t\t\t\t\t\t(click)=\"!p.isLastPage() ? handlePageChange(p.getLastPage()) : null\"\n\t\t\t\t\t\tvariant=\"icon\"\n\t\t\t\t\t\tsize=\"md\"\n\t\t\t\t\t\tshape=\"round-xs\"\n\t\t\t\t\t\tpadding=\"none\"\n\t\t\t\t\t></app-pagination-item>\n\t\t\t\t}\n\t\t\t</div>\n\t\t</pagination-template>\n\t</div>\n}\n@if (type() === 'dots') {\n\t<div class=\"flex\">\n\t\t<pagination-template [id]=\"paginatorId()\" #p=\"paginationApi\" (pageChange)=\"handlePageChange($event)\" [maxSize]=\"10000\">\n\t\t\t<div class=\"flex items-center justify-center gap-2\">\n\t\t\t\t@if (pages()) {\n\t\t\t\t\t<!-- Standalone pagination -->\n\t\t\t\t\t@for (page of pageCounter(); track $index) {\n\t\t\t\t\t\t@if (currentPage() !== page) {\n\t\t\t\t\t\t\t<app-pagination-item\n\t\t\t\t\t\t\t\t(click)=\"handlePageChange(page)\"\n\t\t\t\t\t\t\t\tvariant=\"dots\"\n\t\t\t\t\t\t\t\tsize=\"xs\"\n\t\t\t\t\t\t\t\tshape=\"round-lg\"\n\t\t\t\t\t\t\t\tpadding=\"none\"\n\t\t\t\t\t\t\t\t[active]=\"currentPage() === page\"\n\t\t\t\t\t\t\t></app-pagination-item>\n\t\t\t\t\t\t} @else {\n\t\t\t\t\t\t\t<app-pagination-item variant=\"dots\" size=\"xs\" shape=\"round-lg\" padding=\"none\" [active]=\"currentPage() === page\"></app-pagination-item>\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} @else {\n\t\t\t\t\t<!-- Table pagination -->\n\t\t\t\t\t@for (page of p.pages; track $index) {\n\t\t\t\t\t\t@if (p.getCurrent() !== page.value) {\n\t\t\t\t\t\t\t<app-pagination-item\n\t\t\t\t\t\t\t\t(click)=\"p.setCurrent(page.value)\"\n\t\t\t\t\t\t\t\tvariant=\"dots\"\n\t\t\t\t\t\t\t\tsize=\"xs\"\n\t\t\t\t\t\t\t\tshape=\"round-lg\"\n\t\t\t\t\t\t\t\tpadding=\"none\"\n\t\t\t\t\t\t\t\t[active]=\"p.getCurrent() === page.value\"\n\t\t\t\t\t\t\t></app-pagination-item>\n\t\t\t\t\t\t} @else {\n\t\t\t\t\t\t\t<app-pagination-item\n\t\t\t\t\t\t\t\tvariant=\"dots\"\n\t\t\t\t\t\t\t\tsize=\"xs\"\n\t\t\t\t\t\t\t\tshape=\"round-lg\"\n\t\t\t\t\t\t\t\tpadding=\"none\"\n\t\t\t\t\t\t\t\t[active]=\"p.getCurrent() === page.value\"\n\t\t\t\t\t\t\t></app-pagination-item>\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t</div>\n\t\t</pagination-template>\n\t</div>\n}\n" }]
|
|
153
156
|
}] });
|
|
154
157
|
|
|
155
158
|
/**
|
|
156
159
|
* Generated bundle index. Do not edit.
|
|
157
160
|
*/
|
|
158
161
|
|
|
159
|
-
export { PaginationItemComponent, PaginatorComponent,
|
|
162
|
+
export { PaginationItemComponent, PaginatorComponent, paginationItemComponent };
|
|
160
163
|
//# sourceMappingURL=sixbell-telco-sdk-components-paginator.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sixbell-telco-sdk-components-paginator.mjs","sources":["../../../projects/sdk/components/paginator/components/pagination-item/pagination-item.component.ts","../../../projects/sdk/components/paginator/components/pagination-item/pagination-item.component.html","../../../projects/sdk/components/paginator/src/paginator.component.ts","../../../projects/sdk/components/paginator/src/paginator.component.html","../../../projects/sdk/components/paginator/sixbell-telco-sdk-components-paginator.ts"],"sourcesContent":["import { Component, input } from '@angular/core';\nimport { IconComponent, IconName } from '@sixbell-telco/sdk/components/icon';\nimport { TypographyDirective } from '@sixbell-telco/sdk/directives/typography';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { VariantProps, cva } from 'class-variance-authority';\n\nexport const paginationItem = cva([], {\n\tvariants: {\n\t\tvariant: {\n\t\t\tnumeric: [\n\t\t\t\t'btn',\n\t\t\t\t'btn-outline',\n\t\t\t\t'flex',\n\t\t\t\t'min-h-5',\n\t\t\t\t'text-neutral',\n\t\t\t\t'border-secondary',\n\t\t\t\t'hover:text-neutral',\n\t\t\t\t'hover:bg-primary',\n\t\t\t\t'hover:bg-opacity-40',\n\t\t\t\t'hover:border-primary',\n\t\t\t\t'active:hover:text-neutral-content',\n\t\t\t\t'active:hover:bg-primary',\n\t\t\t\t'active:focus:border-primary',\n\t\t\t],\n\t\t\ticon: [\n\t\t\t\t'btn',\n\t\t\t\t'btn-outline',\n\t\t\t\t'flex',\n\t\t\t\t'min-h-5',\n\t\t\t\t'text-neutral',\n\t\t\t\t'border-secondary',\n\t\t\t\t'hover:text-neutral',\n\t\t\t\t'hover:bg-primary',\n\t\t\t\t'hover:bg-opacity-40',\n\t\t\t\t'hover:border-primary',\n\t\t\t\t'active:hover:text-neutral-content',\n\t\t\t\t'active:hover:bg-primary',\n\t\t\t\t'active:focus:border-primary',\n\t\t\t],\n\t\t\tdots: [\n\t\t\t\t'btn',\n\t\t\t\t'btn-circle',\n\t\t\t\t'flex',\n\t\t\t\t'min-h-[0.625rem]',\n\t\t\t\t'border-secondary',\n\t\t\t\t'bg-secondary',\n\t\t\t\t'hover:bg-primary',\n\t\t\t\t'hover:bg-opacity-40',\n\t\t\t\t'hover:border-primary',\n\t\t\t\t'hover:scale-150',\n\t\t\t\t'active:hover:bg-primary',\n\t\t\t\t'active:border-primary',\n\t\t\t\t'active:scale-150',\n\t\t\t\t'active:focus:border-primary',\n\t\t\t\t'',\n\t\t\t],\n\t\t},\n\t\tshape: {\n\t\t\t'round-xs': ['rounded-[0.3rem]'],\n\t\t\t'round-sm': ['rounded-btn-sm'],\n\t\t\t'round-md': ['rounded-btn-md'],\n\t\t\t'round-lg': ['rounded-btn-lg'],\n\t\t},\n\t\tsize: {\n\t\t\txs: ['h-[0.625rem]', 'w-[0.625rem]'],\n\t\t\tsm: ['h-5', 'w-5'],\n\t\t\tmd: ['h-[1.875rem]', 'w-[1.875rem]'],\n\t\t\tlg: ['h-9', 'w-9'],\n\t\t},\n\t\tpadding: {\n\t\t\tnone: ['p-0'],\n\t\t\tsm: ['px-4'],\n\t\t\tmd: ['px-6'],\n\t\t\tlg: ['px-8'],\n\t\t},\n\t},\n\tcompoundVariants: [],\n\tdefaultVariants: {\n\t\tvariant: 'numeric',\n\t\tshape: 'round-lg',\n\t\tsize: 'md',\n\t\tpadding: 'none',\n\t},\n});\n\nexport type PaginationItemVariantProps = VariantProps<typeof paginationItem>;\n\n@Component({\n\tselector: 'app-pagination-item',\n\tstandalone: true,\n\timports: [IconComponent, TypographyDirective],\n\ttemplateUrl: './pagination-item.component.html',\n\tstyles: '',\n})\nexport class PaginationItemComponent {\n\tvariants = input<PaginationItemVariantProps>();\n\tclass = input<string>('');\n\ticonName = input<IconName>('angle-left');\n\tnumber = input<number | string>(1);\n\tactive = input<boolean>(false);\n\n\tget classes() {\n\t\treturn cn(\n\t\t\tpaginationItem({\n\t\t\t\tvariant: this.variants()?.variant,\n\t\t\t\tshape: this.variants()?.shape,\n\t\t\t\tsize: this.variants()?.size,\n\t\t\t\tpadding: this.variants()?.padding,\n\t\t\t\tclass: this.class(),\n\t\t\t}),\n\t\t\t{ 'text-neutral-content bg-primary border-primary': this.active() && this.variants()?.variant !== 'dots' },\n\t\t\t{\n\t\t\t\t'hover:scale-100 hover:bg-opacity-100 w-[0.9375rem] h-[0.9375rem] text-neutral-content bg-primary border-primary':\n\t\t\t\t\tthis.active() && this.variants()?.variant === 'dots',\n\t\t\t},\n\t\t);\n\t}\n}\n","@if (variants()?.variant === 'numeric') {\n\t<button [class]=\"classes\" type=\"button\">\n\t\t<span [typography]=\"{ variant: 'body-sm', color: 'inherit', fontWeight: 'normal' }\">{{ number() }}</span>\n\t</button>\n} @else if (variants()?.variant === 'icon') {\n\t<button [class]=\"classes\" type=\"button\">\n\t\t<app-icon [iconName]=\"this.iconName()\" [variants]=\"{ color: 'inherit', size: 'sm' }\"></app-icon>\n\t</button>\n} @else if (variants()?.variant === 'dots') {\n\t<button [class]=\"classes\" type=\"button\">\n\t\t<span></span>\n\t</button>\n} @else {\n\t<button [class]=\"classes\" type=\"button\">\n\t\t<span [typography]=\"{ variant: 'body-sm', color: 'inherit', fontWeight: 'normal' }\">{{ number() }}</span>\n\t</button>\n}\n","import { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, computed, input, model, output } from '@angular/core';\nimport { NgxPaginationModule } from 'ngx-pagination';\nimport { PaginationItemComponent } from '../components/pagination-item/pagination-item.component';\n\nexport type PaginationType = 'default' | 'dots';\n\n@Component({\n\tselector: 'app-paginator',\n\tstandalone: true,\n\timports: [NgxPaginationModule, CommonModule, PaginationItemComponent],\n\ttemplateUrl: './paginator.component.html',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class PaginatorComponent {\n\tpaginatorId = input<string>('paginator');\n\tmaxSize = input<number>(5);\n\ttype = input<PaginationType>('default');\n\tonPageChange = output<number>();\n\n\t// For standalone pagination\n\tpages = input<number>(0);\n\tpageCounter = computed(() => Array.from({ length: this.pages() }, (_, i) => i + 1));\n\tcurrentPage = model<number>(1);\n\n\thandlePageChange(page: number) {\n\t\tthis.currentPage.set(page);\n\t\tthis.onPageChange.emit(page);\n\t}\n\n\tpreviousPage() {\n\t\tif (this.currentPage() > 1) {\n\t\t\tthis.currentPage.set(this.currentPage() - 1);\n\t\t\tthis.onPageChange.emit(this.currentPage());\n\t\t}\n\t}\n\n\tnextPage() {\n\t\tif (this.currentPage() < this.pages()) {\n\t\t\tthis.currentPage.set(this.currentPage() + 1);\n\t\t\tthis.onPageChange.emit(this.currentPage());\n\t\t}\n\t}\n\n\tfirstPage() {\n\t\tthis.currentPage.set(1);\n\t\tthis.onPageChange.emit(1);\n\t}\n\n\tlastPage() {\n\t\tthis.currentPage.set(this.pages());\n\t\tthis.onPageChange.emit(this.pages());\n\t}\n}\n","@if (type() === 'default') {\n\t<div class=\"flex\">\n\t\t<pagination-template [id]=\"paginatorId()\" #p=\"paginationApi\" [maxSize]=\"maxSize()\" (pageChange)=\"handlePageChange($event)\">\n\t\t\t<div class=\"flex items-center justify-center gap-2\">\n\t\t\t\t@if (pages()) {\n\t\t\t\t\t<!-- Standalone pagination -->\n\t\t\t\t\t<app-pagination-item\n\t\t\t\t\t\t[iconName]=\"'angle-double-left'\"\n\t\t\t\t\t\t(click)=\"firstPage()\"\n\t\t\t\t\t\t[variants]=\"{ variant: 'icon', size: 'md', shape: 'round-xs', padding: 'none' }\"\n\t\t\t\t\t></app-pagination-item>\n\t\t\t\t\t<app-pagination-item\n\t\t\t\t\t\t[iconName]=\"'angle-left'\"\n\t\t\t\t\t\t(click)=\"previousPage()\"\n\t\t\t\t\t\t[variants]=\"{ variant: 'icon', size: 'md', shape: 'round-xs', padding: 'none' }\"\n\t\t\t\t\t></app-pagination-item>\n\t\t\t\t\t@for (page of pageCounter(); track $index) {\n\t\t\t\t\t\t@if (currentPage() !== page) {\n\t\t\t\t\t\t\t<app-pagination-item\n\t\t\t\t\t\t\t\t(click)=\"handlePageChange(page)\"\n\t\t\t\t\t\t\t\t[variants]=\"{ variant: 'numeric', size: 'md', shape: 'round-xs', padding: 'none' }\"\n\t\t\t\t\t\t\t\t[number]=\"page\"\n\t\t\t\t\t\t\t\t[active]=\"currentPage() === page\"\n\t\t\t\t\t\t\t></app-pagination-item>\n\t\t\t\t\t\t} @else {\n\t\t\t\t\t\t\t<app-pagination-item\n\t\t\t\t\t\t\t\t[variants]=\"{ variant: 'numeric', size: 'md', shape: 'round-xs', padding: 'none' }\"\n\t\t\t\t\t\t\t\t[number]=\"page\"\n\t\t\t\t\t\t\t\t[active]=\"currentPage() === page\"\n\t\t\t\t\t\t\t></app-pagination-item>\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t<app-pagination-item\n\t\t\t\t\t\t[iconName]=\"'angle-right'\"\n\t\t\t\t\t\t(click)=\"nextPage()\"\n\t\t\t\t\t\t[variants]=\"{ variant: 'icon', size: 'md', shape: 'round-xs', padding: 'none' }\"\n\t\t\t\t\t></app-pagination-item>\n\t\t\t\t\t<app-pagination-item\n\t\t\t\t\t\t[iconName]=\"'angle-double-right'\"\n\t\t\t\t\t\t(click)=\"lastPage()\"\n\t\t\t\t\t\t[variants]=\"{ variant: 'icon', size: 'md', shape: 'round-xs', padding: 'none' }\"\n\t\t\t\t\t></app-pagination-item>\n\t\t\t\t} @else {\n\t\t\t\t\t<!-- Table pagination -->\n\t\t\t\t\t<app-pagination-item\n\t\t\t\t\t\t[iconName]=\"'angle-double-left'\"\n\t\t\t\t\t\t(click)=\"!p.isFirstPage() ? handlePageChange(1) : null\"\n\t\t\t\t\t\t[variants]=\"{ variant: 'icon', size: 'md', shape: 'round-xs', padding: 'none' }\"\n\t\t\t\t\t></app-pagination-item>\n\t\t\t\t\t<app-pagination-item\n\t\t\t\t\t\t[iconName]=\"'angle-left'\"\n\t\t\t\t\t\t(click)=\"!p.isFirstPage() ? p.previous() : null\"\n\t\t\t\t\t\t[variants]=\"{ variant: 'icon', size: 'md', shape: 'round-xs', padding: 'none' }\"\n\t\t\t\t\t></app-pagination-item>\n\n\t\t\t\t\t@for (page of p.pages; track $index) {\n\t\t\t\t\t\t@if (p.getCurrent() !== page.value) {\n\t\t\t\t\t\t\t<app-pagination-item\n\t\t\t\t\t\t\t\t(click)=\"p.setCurrent(page.value)\"\n\t\t\t\t\t\t\t\t[variants]=\"{ variant: 'numeric', size: 'md', shape: 'round-xs', padding: 'none' }\"\n\t\t\t\t\t\t\t\t[number]=\"page.label\"\n\t\t\t\t\t\t\t\t[active]=\"p.getCurrent() === page.value\"\n\t\t\t\t\t\t\t></app-pagination-item>\n\t\t\t\t\t\t} @else {\n\t\t\t\t\t\t\t<app-pagination-item\n\t\t\t\t\t\t\t\t[variants]=\"{ variant: 'numeric', size: 'md', shape: 'round-xs', padding: 'none' }\"\n\t\t\t\t\t\t\t\t[number]=\"page.label\"\n\t\t\t\t\t\t\t\t[active]=\"p.getCurrent() === page.value\"\n\t\t\t\t\t\t\t></app-pagination-item>\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t<app-pagination-item\n\t\t\t\t\t\t[iconName]=\"'angle-right'\"\n\t\t\t\t\t\t(click)=\"!p.isLastPage() ? p.next() : null\"\n\t\t\t\t\t\t[variants]=\"{ variant: 'icon', size: 'md', shape: 'round-xs', padding: 'none' }\"\n\t\t\t\t\t></app-pagination-item>\n\t\t\t\t\t<app-pagination-item\n\t\t\t\t\t\t[iconName]=\"'angle-double-right'\"\n\t\t\t\t\t\t(click)=\"!p.isLastPage() ? handlePageChange(p.getLastPage()) : null\"\n\t\t\t\t\t\t[variants]=\"{ variant: 'icon', size: 'md', shape: 'round-xs', padding: 'none' }\"\n\t\t\t\t\t></app-pagination-item>\n\t\t\t\t}\n\t\t\t</div>\n\t\t</pagination-template>\n\t</div>\n}\n@if (type() === 'dots') {\n\t<div class=\"flex\">\n\t\t<pagination-template [id]=\"paginatorId()\" #p=\"paginationApi\" (pageChange)=\"handlePageChange($event)\" [maxSize]=\"10000\">\n\t\t\t<div class=\"flex items-center justify-center gap-2\">\n\t\t\t\t@if (pages()) {\n\t\t\t\t\t<!-- Standalone pagination -->\n\t\t\t\t\t@for (page of pageCounter(); track $index) {\n\t\t\t\t\t\t@if (currentPage() !== page) {\n\t\t\t\t\t\t\t<app-pagination-item\n\t\t\t\t\t\t\t\t(click)=\"handlePageChange(page)\"\n\t\t\t\t\t\t\t\t[variants]=\"{ variant: 'dots', size: 'xs', shape: 'round-lg', padding: 'none' }\"\n\t\t\t\t\t\t\t\t[active]=\"currentPage() === page\"\n\t\t\t\t\t\t\t></app-pagination-item>\n\t\t\t\t\t\t} @else {\n\t\t\t\t\t\t\t<app-pagination-item\n\t\t\t\t\t\t\t\t[variants]=\"{ variant: 'dots', size: 'xs', shape: 'round-lg', padding: 'none' }\"\n\t\t\t\t\t\t\t\t[active]=\"currentPage() === page\"\n\t\t\t\t\t\t\t></app-pagination-item>\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} @else {\n\t\t\t\t\t<!-- Table pagination -->\n\t\t\t\t\t@for (page of p.pages; track $index) {\n\t\t\t\t\t\t@if (p.getCurrent() !== page.value) {\n\t\t\t\t\t\t\t<app-pagination-item\n\t\t\t\t\t\t\t\t(click)=\"p.setCurrent(page.value)\"\n\t\t\t\t\t\t\t\t[variants]=\"{ variant: 'dots', size: 'xs', shape: 'round-lg', padding: 'none' }\"\n\t\t\t\t\t\t\t\t[active]=\"p.getCurrent() === page.value\"\n\t\t\t\t\t\t\t></app-pagination-item>\n\t\t\t\t\t\t} @else {\n\t\t\t\t\t\t\t<app-pagination-item\n\t\t\t\t\t\t\t\t[variants]=\"{ variant: 'dots', size: 'xs', shape: 'round-lg', padding: 'none' }\"\n\t\t\t\t\t\t\t\t[active]=\"p.getCurrent() === page.value\"\n\t\t\t\t\t\t\t></app-pagination-item>\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t</div>\n\t\t</pagination-template>\n\t</div>\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names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A,EAAA,OAAA,EAAA,CAAA,YAAA,EAAA,sBAAA,CAAA,EAAA,QAAA,EAAA,CAAA,eAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAA,YAAY,+BAAE,uBAAuB,EAAA,QAAA,EAAA,qBAAA,EAAA,MAAA,EAAA,CAAA,UAAA,EAAA,OAAA,EAAA,UAAA,EAAA,QAAA,EAAA,QAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FAIxD,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAP9B,SAAS;AACC,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,eAAe,EACb,UAAA,EAAA,IAAI,EACP,OAAA,EAAA,CAAC,mBAAmB,EAAE,YAAY,EAAE,uBAAuB,CAAC,EAEpD,eAAA,EAAA,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,grLAAA,EAAA,CAAA;;;AEZhD;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"sixbell-telco-sdk-components-paginator.mjs","sources":["../../../projects/sdk/components/paginator/components/pagination-item/pagination-item.component.ts","../../../projects/sdk/components/paginator/components/pagination-item/pagination-item.component.html","../../../projects/sdk/components/paginator/src/paginator.component.ts","../../../projects/sdk/components/paginator/src/paginator.component.html","../../../projects/sdk/components/paginator/sixbell-telco-sdk-components-paginator.ts"],"sourcesContent":["import { Component, input } from '@angular/core';\nimport { IconComponent, IconName } from '@sixbell-telco/sdk/components/icon';\nimport { TypographyDirective } from '@sixbell-telco/sdk/directives/typography';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { cva } from 'class-variance-authority';\n\nexport const paginationItemComponent = cva([], {\n\tvariants: {\n\t\tvariant: {\n\t\t\tnumeric: [\n\t\t\t\t'btn',\n\t\t\t\t'btn-outline',\n\t\t\t\t'flex',\n\t\t\t\t'min-h-5',\n\t\t\t\t'text-neutral',\n\t\t\t\t'border-secondary',\n\t\t\t\t'hover:text-neutral',\n\t\t\t\t'hover:bg-primary',\n\t\t\t\t'hover:bg-opacity-40',\n\t\t\t\t'hover:border-primary',\n\t\t\t\t'active:hover:text-neutral-content',\n\t\t\t\t'active:hover:bg-primary',\n\t\t\t\t'active:focus:border-primary',\n\t\t\t],\n\t\t\ticon: [\n\t\t\t\t'btn',\n\t\t\t\t'btn-outline',\n\t\t\t\t'flex',\n\t\t\t\t'min-h-5',\n\t\t\t\t'text-neutral',\n\t\t\t\t'border-secondary',\n\t\t\t\t'hover:text-neutral',\n\t\t\t\t'hover:bg-primary',\n\t\t\t\t'hover:bg-opacity-40',\n\t\t\t\t'hover:border-primary',\n\t\t\t\t'active:hover:text-neutral-content',\n\t\t\t\t'active:hover:bg-primary',\n\t\t\t\t'active:focus:border-primary',\n\t\t\t],\n\t\t\tdots: [\n\t\t\t\t'btn',\n\t\t\t\t'btn-circle',\n\t\t\t\t'flex',\n\t\t\t\t'min-h-[0.625rem]',\n\t\t\t\t'border-secondary',\n\t\t\t\t'bg-secondary',\n\t\t\t\t'hover:bg-primary',\n\t\t\t\t'hover:bg-opacity-40',\n\t\t\t\t'hover:border-primary',\n\t\t\t\t'hover:scale-150',\n\t\t\t\t'active:hover:bg-primary',\n\t\t\t\t'active:border-primary',\n\t\t\t\t'active:scale-150',\n\t\t\t\t'active:focus:border-primary',\n\t\t\t\t'',\n\t\t\t],\n\t\t},\n\t\tshape: {\n\t\t\t'round-xs': ['rounded-[0.3rem]'],\n\t\t\t'round-sm': ['rounded-btn-sm'],\n\t\t\t'round-md': ['rounded-btn-md'],\n\t\t\t'round-lg': ['rounded-btn-lg'],\n\t\t},\n\t\tsize: {\n\t\t\txs: ['h-[0.625rem]', 'w-[0.625rem]'],\n\t\t\tsm: ['h-5', 'w-5'],\n\t\t\tmd: ['h-[1.875rem]', 'w-[1.875rem]'],\n\t\t\tlg: ['h-9', 'w-9'],\n\t\t},\n\t\tpadding: {\n\t\t\tnone: ['p-0'],\n\t\t\tsm: ['px-4'],\n\t\t\tmd: ['px-6'],\n\t\t\tlg: ['px-8'],\n\t\t},\n\t},\n\tcompoundVariants: [],\n\tdefaultVariants: {\n\t\tvariant: 'numeric',\n\t\tshape: 'round-lg',\n\t\tsize: 'md',\n\t\tpadding: 'none',\n\t},\n});\n\nexport type PaginationItemVariantProps = 'numeric' | 'icon' | 'dots' | null | undefined;\nexport type PaginationItemShapeProps = 'round-xs' | 'round-sm' | 'round-md' | 'round-lg' | null | undefined;\nexport type PaginationItemSizeProps = 'xs' | 'sm' | 'md' | 'lg' | null | undefined;\nexport type PaginationItemPaddingProps = 'none' | 'sm' | 'md' | 'lg' | null | undefined;\n\nexport type PaginationItemProps = {\n\tvariant?: PaginationItemVariantProps;\n\tshape?: PaginationItemShapeProps;\n\tsize?: PaginationItemSizeProps;\n\tpadding?: PaginationItemPaddingProps;\n};\n\n@Component({\n\tselector: 'app-pagination-item',\n\tstandalone: true,\n\timports: [IconComponent, TypographyDirective],\n\ttemplateUrl: './pagination-item.component.html',\n\tstyles: '',\n})\nexport class PaginationItemComponent {\n\tvariant = input<PaginationItemVariantProps>();\n\tshape = input<PaginationItemShapeProps>();\n\tsize = input<PaginationItemSizeProps>();\n\tpadding = input<PaginationItemPaddingProps>();\n\tclasses = input<string>('');\n\ticonName = input<IconName>('angle-left');\n\tnumber = input<number | string>(1);\n\tactive = input<boolean>(false);\n\n\tget componentClass() {\n\t\treturn cn(\n\t\t\tpaginationItemComponent({\n\t\t\t\tvariant: this.variant(),\n\t\t\t\tshape: this.shape(),\n\t\t\t\tsize: this.size(),\n\t\t\t\tpadding: this.padding(),\n\t\t\t\tclass: this.classes(),\n\t\t\t}),\n\t\t\t{ 'text-neutral-content bg-primary border-primary': this.active() && this.variant() !== 'dots' },\n\t\t\t{\n\t\t\t\t'hover:scale-100 hover:bg-opacity-100 w-[0.9375rem] h-[0.9375rem] text-neutral-content bg-primary border-primary':\n\t\t\t\t\tthis.active() && this.variant() === 'dots',\n\t\t\t},\n\t\t);\n\t}\n}\n","@let variantVar = this.variant();\n\n@if (variantVar === 'numeric') {\n\t<button [class]=\"componentClass\" type=\"button\">\n\t\t<span typography [typographyVariant]=\"'body-sm'\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'normal'\">{{ number() }}</span>\n\t</button>\n} @else if (variantVar === 'icon') {\n\t<button [class]=\"componentClass\" type=\"button\">\n\t\t<app-icon [iconName]=\"this.iconName()\" color=\"inherit\" size=\"sm\"></app-icon>\n\t</button>\n} @else if (variantVar === 'dots') {\n\t<button [class]=\"componentClass\" type=\"button\">\n\t\t<span></span>\n\t</button>\n} @else {\n\t<button [class]=\"componentClass\" type=\"button\">\n\t\t<span typography [typographyVariant]=\"'body-sm'\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'normal'\">{{ number() }}</span>\n\t</button>\n}\n","import { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, computed, input, model, output } from '@angular/core';\nimport { NgxPaginationModule } from 'ngx-pagination';\nimport { PaginationItemComponent } from '../components/pagination-item/pagination-item.component';\n\nexport type PaginationType = 'default' | 'dots';\n\n@Component({\n\tselector: 'app-paginator',\n\tstandalone: true,\n\timports: [NgxPaginationModule, CommonModule, PaginationItemComponent],\n\ttemplateUrl: './paginator.component.html',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class PaginatorComponent {\n\tpaginatorId = input<string>('paginator');\n\tmaxSize = input<number>(5);\n\ttype = input<PaginationType>('default');\n\tonPageChange = output<number>();\n\n\t// For standalone pagination\n\tpages = input<number>(0);\n\tpageCounter = computed(() => Array.from({ length: this.pages() }, (_, i) => i + 1));\n\tcurrentPage = model<number>(1);\n\n\thandlePageChange(page: number) {\n\t\tthis.currentPage.set(page);\n\t\tthis.onPageChange.emit(page);\n\t}\n\n\tpreviousPage() {\n\t\tif (this.currentPage() > 1) {\n\t\t\tthis.currentPage.set(this.currentPage() - 1);\n\t\t\tthis.onPageChange.emit(this.currentPage());\n\t\t}\n\t}\n\n\tnextPage() {\n\t\tif (this.currentPage() < this.pages()) {\n\t\t\tthis.currentPage.set(this.currentPage() + 1);\n\t\t\tthis.onPageChange.emit(this.currentPage());\n\t\t}\n\t}\n\n\tfirstPage() {\n\t\tthis.currentPage.set(1);\n\t\tthis.onPageChange.emit(1);\n\t}\n\n\tlastPage() {\n\t\tthis.currentPage.set(this.pages());\n\t\tthis.onPageChange.emit(this.pages());\n\t}\n}\n","@if (type() === 'default') {\n\t<div class=\"flex\">\n\t\t<pagination-template [id]=\"paginatorId()\" #p=\"paginationApi\" [maxSize]=\"maxSize()\" (pageChange)=\"handlePageChange($event)\">\n\t\t\t<div class=\"flex items-center justify-center gap-2\">\n\t\t\t\t@if (pages()) {\n\t\t\t\t\t<!-- Standalone pagination -->\n\t\t\t\t\t<app-pagination-item\n\t\t\t\t\t\t[iconName]=\"'angle-double-left'\"\n\t\t\t\t\t\t(click)=\"firstPage()\"\n\t\t\t\t\t\tvariant=\"icon\"\n\t\t\t\t\t\tsize=\"md\"\n\t\t\t\t\t\tshape=\"round-xs\"\n\t\t\t\t\t\tpadding=\"none\"\n\t\t\t\t\t></app-pagination-item>\n\t\t\t\t\t<app-pagination-item\n\t\t\t\t\t\t[iconName]=\"'angle-left'\"\n\t\t\t\t\t\t(click)=\"previousPage()\"\n\t\t\t\t\t\tvariant=\"icon\"\n\t\t\t\t\t\tsize=\"md\"\n\t\t\t\t\t\tshape=\"round-xs\"\n\t\t\t\t\t\tpadding=\"none\"\n\t\t\t\t\t></app-pagination-item>\n\t\t\t\t\t@for (page of pageCounter(); track $index) {\n\t\t\t\t\t\t@if (currentPage() !== page) {\n\t\t\t\t\t\t\t<app-pagination-item\n\t\t\t\t\t\t\t\t(click)=\"handlePageChange(page)\"\n\t\t\t\t\t\t\t\tvariant=\"numeric\"\n\t\t\t\t\t\t\t\tsize=\"md\"\n\t\t\t\t\t\t\t\tshape=\"round-xs\"\n\t\t\t\t\t\t\t\tpadding=\"none\"\n\t\t\t\t\t\t\t\t[number]=\"page\"\n\t\t\t\t\t\t\t\t[active]=\"currentPage() === page\"\n\t\t\t\t\t\t\t></app-pagination-item>\n\t\t\t\t\t\t} @else {\n\t\t\t\t\t\t\t<app-pagination-item\n\t\t\t\t\t\t\t\tvariant=\"numeric\"\n\t\t\t\t\t\t\t\tsize=\"md\"\n\t\t\t\t\t\t\t\tshape=\"round-xs\"\n\t\t\t\t\t\t\t\tpadding=\"none\"\n\t\t\t\t\t\t\t\t[number]=\"page\"\n\t\t\t\t\t\t\t\t[active]=\"currentPage() === page\"\n\t\t\t\t\t\t\t></app-pagination-item>\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t<app-pagination-item\n\t\t\t\t\t\t[iconName]=\"'angle-right'\"\n\t\t\t\t\t\t(click)=\"nextPage()\"\n\t\t\t\t\t\tvariant=\"icon\"\n\t\t\t\t\t\tsize=\"md\"\n\t\t\t\t\t\tshape=\"round-xs\"\n\t\t\t\t\t\tpadding=\"none\"\n\t\t\t\t\t></app-pagination-item>\n\t\t\t\t\t<app-pagination-item\n\t\t\t\t\t\t[iconName]=\"'angle-double-right'\"\n\t\t\t\t\t\t(click)=\"lastPage()\"\n\t\t\t\t\t\tvariant=\"icon\"\n\t\t\t\t\t\tsize=\"md\"\n\t\t\t\t\t\tshape=\"round-xs\"\n\t\t\t\t\t\tpadding=\"none\"\n\t\t\t\t\t></app-pagination-item>\n\t\t\t\t} @else {\n\t\t\t\t\t<!-- Table pagination -->\n\t\t\t\t\t<app-pagination-item\n\t\t\t\t\t\t[iconName]=\"'angle-double-left'\"\n\t\t\t\t\t\t(click)=\"!p.isFirstPage() ? handlePageChange(1) : null\"\n\t\t\t\t\t\tvariant=\"icon\"\n\t\t\t\t\t\tsize=\"md\"\n\t\t\t\t\t\tshape=\"round-xs\"\n\t\t\t\t\t\tpadding=\"none\"\n\t\t\t\t\t></app-pagination-item>\n\t\t\t\t\t<app-pagination-item\n\t\t\t\t\t\t[iconName]=\"'angle-left'\"\n\t\t\t\t\t\t(click)=\"!p.isFirstPage() ? p.previous() : null\"\n\t\t\t\t\t\tvariant=\"icon\"\n\t\t\t\t\t\tsize=\"md\"\n\t\t\t\t\t\tshape=\"round-xs\"\n\t\t\t\t\t\tpadding=\"none\"\n\t\t\t\t\t></app-pagination-item>\n\n\t\t\t\t\t@for (page of p.pages; track $index) {\n\t\t\t\t\t\t@if (p.getCurrent() !== page.value) {\n\t\t\t\t\t\t\t<app-pagination-item\n\t\t\t\t\t\t\t\t(click)=\"p.setCurrent(page.value)\"\n\t\t\t\t\t\t\t\tvariant=\"numeric\"\n\t\t\t\t\t\t\t\tsize=\"md\"\n\t\t\t\t\t\t\t\tshape=\"round-xs\"\n\t\t\t\t\t\t\t\tpadding=\"none\"\n\t\t\t\t\t\t\t\t[number]=\"page.label\"\n\t\t\t\t\t\t\t\t[active]=\"p.getCurrent() === page.value\"\n\t\t\t\t\t\t\t></app-pagination-item>\n\t\t\t\t\t\t} @else {\n\t\t\t\t\t\t\t<app-pagination-item\n\t\t\t\t\t\t\t\tvariant=\"numeric\"\n\t\t\t\t\t\t\t\tsize=\"md\"\n\t\t\t\t\t\t\t\tshape=\"round-xs\"\n\t\t\t\t\t\t\t\tpadding=\"none\"\n\t\t\t\t\t\t\t\t[number]=\"page.label\"\n\t\t\t\t\t\t\t\t[active]=\"p.getCurrent() === page.value\"\n\t\t\t\t\t\t\t></app-pagination-item>\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t<app-pagination-item\n\t\t\t\t\t\t[iconName]=\"'angle-right'\"\n\t\t\t\t\t\t(click)=\"!p.isLastPage() ? p.next() : null\"\n\t\t\t\t\t\tvariant=\"icon\"\n\t\t\t\t\t\tsize=\"md\"\n\t\t\t\t\t\tshape=\"round-xs\"\n\t\t\t\t\t\tpadding=\"none\"\n\t\t\t\t\t></app-pagination-item>\n\t\t\t\t\t<app-pagination-item\n\t\t\t\t\t\t[iconName]=\"'angle-double-right'\"\n\t\t\t\t\t\t(click)=\"!p.isLastPage() ? handlePageChange(p.getLastPage()) : null\"\n\t\t\t\t\t\tvariant=\"icon\"\n\t\t\t\t\t\tsize=\"md\"\n\t\t\t\t\t\tshape=\"round-xs\"\n\t\t\t\t\t\tpadding=\"none\"\n\t\t\t\t\t></app-pagination-item>\n\t\t\t\t}\n\t\t\t</div>\n\t\t</pagination-template>\n\t</div>\n}\n@if (type() === 'dots') {\n\t<div class=\"flex\">\n\t\t<pagination-template [id]=\"paginatorId()\" #p=\"paginationApi\" (pageChange)=\"handlePageChange($event)\" [maxSize]=\"10000\">\n\t\t\t<div class=\"flex items-center justify-center gap-2\">\n\t\t\t\t@if (pages()) {\n\t\t\t\t\t<!-- Standalone pagination -->\n\t\t\t\t\t@for (page of pageCounter(); track $index) {\n\t\t\t\t\t\t@if (currentPage() !== page) {\n\t\t\t\t\t\t\t<app-pagination-item\n\t\t\t\t\t\t\t\t(click)=\"handlePageChange(page)\"\n\t\t\t\t\t\t\t\tvariant=\"dots\"\n\t\t\t\t\t\t\t\tsize=\"xs\"\n\t\t\t\t\t\t\t\tshape=\"round-lg\"\n\t\t\t\t\t\t\t\tpadding=\"none\"\n\t\t\t\t\t\t\t\t[active]=\"currentPage() === page\"\n\t\t\t\t\t\t\t></app-pagination-item>\n\t\t\t\t\t\t} @else {\n\t\t\t\t\t\t\t<app-pagination-item variant=\"dots\" size=\"xs\" shape=\"round-lg\" padding=\"none\" [active]=\"currentPage() === page\"></app-pagination-item>\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} @else {\n\t\t\t\t\t<!-- Table pagination -->\n\t\t\t\t\t@for (page of p.pages; track $index) {\n\t\t\t\t\t\t@if (p.getCurrent() !== page.value) {\n\t\t\t\t\t\t\t<app-pagination-item\n\t\t\t\t\t\t\t\t(click)=\"p.setCurrent(page.value)\"\n\t\t\t\t\t\t\t\tvariant=\"dots\"\n\t\t\t\t\t\t\t\tsize=\"xs\"\n\t\t\t\t\t\t\t\tshape=\"round-lg\"\n\t\t\t\t\t\t\t\tpadding=\"none\"\n\t\t\t\t\t\t\t\t[active]=\"p.getCurrent() === page.value\"\n\t\t\t\t\t\t\t></app-pagination-item>\n\t\t\t\t\t\t} @else {\n\t\t\t\t\t\t\t<app-pagination-item\n\t\t\t\t\t\t\t\tvariant=\"dots\"\n\t\t\t\t\t\t\t\tsize=\"xs\"\n\t\t\t\t\t\t\t\tshape=\"round-lg\"\n\t\t\t\t\t\t\t\tpadding=\"none\"\n\t\t\t\t\t\t\t\t[active]=\"p.getCurrent() === page.value\"\n\t\t\t\t\t\t\t></app-pagination-item>\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t</div>\n\t\t</pagination-template>\n\t</div>\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;AAMa,MAAA,uBAAuB,GAAG,GAAG,CAAC,EAAE,EAAE;AAC9C,IAAA,QAAQ,EAAE;AACT,QAAA,OAAO,EAAE;AACR,YAAA,OAAO,EAAE;gBACR,KAAK;gBACL,aAAa;gBACb,MAAM;gBACN,SAAS;gBACT,cAAc;gBACd,kBAAkB;gBAClB,oBAAoB;gBACpB,kBAAkB;gBAClB,qBAAqB;gBACrB,sBAAsB;gBACtB,mCAAmC;gBACnC,yBAAyB;gBACzB,6BAA6B;AAC7B,aAAA;AACD,YAAA,IAAI,EAAE;gBACL,KAAK;gBACL,aAAa;gBACb,MAAM;gBACN,SAAS;gBACT,cAAc;gBACd,kBAAkB;gBAClB,oBAAoB;gBACpB,kBAAkB;gBAClB,qBAAqB;gBACrB,sBAAsB;gBACtB,mCAAmC;gBACnC,yBAAyB;gBACzB,6BAA6B;AAC7B,aAAA;AACD,YAAA,IAAI,EAAE;gBACL,KAAK;gBACL,YAAY;gBACZ,MAAM;gBACN,kBAAkB;gBAClB,kBAAkB;gBAClB,cAAc;gBACd,kBAAkB;gBAClB,qBAAqB;gBACrB,sB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EAAA,CAAA,SAAA,EAAA,OAAA,EAAA,MAAA,EAAA,SAAA,EAAA,SAAA,EAAA,UAAA,EAAA,QAAA,EAAA,QAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FAIxD,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAP9B,SAAS;AACC,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,eAAe,EACb,UAAA,EAAA,IAAI,EACP,OAAA,EAAA,CAAC,mBAAmB,EAAE,YAAY,EAAE,uBAAuB,CAAC,EAEpD,eAAA,EAAA,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,2/LAAA,EAAA,CAAA;;;AEZhD;;AAEG;;;;"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { inject, TemplateRef, Directive, input, contentChild, Component } from '@angular/core';
|
|
3
3
|
import { NgTemplateOutlet } from '@angular/common';
|
|
4
|
-
import { CardComponent } from '@sixbell-telco/sdk/components/card';
|
|
5
4
|
import { IconComponent } from '@sixbell-telco/sdk/components/icon';
|
|
6
5
|
import { TypographyDirective } from '@sixbell-telco/sdk/directives/typography';
|
|
7
6
|
import { cn } from '@sixbell-telco/sdk/utils/cn';
|
|
@@ -46,7 +45,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.8", ngImpor
|
|
|
46
45
|
}]
|
|
47
46
|
}] });
|
|
48
47
|
|
|
49
|
-
const
|
|
48
|
+
const productCardContainer = cva(['card'], {
|
|
50
49
|
variants: {
|
|
51
50
|
shadow: {
|
|
52
51
|
none: [],
|
|
@@ -82,15 +81,15 @@ const productCardBase = cva(['card'], {
|
|
|
82
81
|
side: ['card-side'],
|
|
83
82
|
},
|
|
84
83
|
},
|
|
84
|
+
defaultVariants: {
|
|
85
|
+
shadow: 'secondary',
|
|
86
|
+
height: 'auto',
|
|
87
|
+
width: 'auto',
|
|
88
|
+
shape: 'round-sm',
|
|
89
|
+
size: 'md',
|
|
90
|
+
figurePosition: 'top',
|
|
91
|
+
},
|
|
85
92
|
});
|
|
86
|
-
const defaultProductCardBase = {
|
|
87
|
-
shadow: 'secondary',
|
|
88
|
-
height: 'auto',
|
|
89
|
-
width: 'auto',
|
|
90
|
-
shape: 'round-sm',
|
|
91
|
-
size: 'md',
|
|
92
|
-
figurePosition: 'top',
|
|
93
|
-
};
|
|
94
93
|
const productCardFigure = cva([], {
|
|
95
94
|
variants: {
|
|
96
95
|
figureBackground: {
|
|
@@ -121,64 +120,71 @@ const productCardFigure = cva([], {
|
|
|
121
120
|
lg: 'px-6',
|
|
122
121
|
},
|
|
123
122
|
},
|
|
123
|
+
defaultVariants: {
|
|
124
|
+
figureBackground: 'none',
|
|
125
|
+
figureAlignment: 'auto',
|
|
126
|
+
figurePaddingY: 'none',
|
|
127
|
+
figurePaddingX: 'none',
|
|
128
|
+
},
|
|
124
129
|
});
|
|
125
|
-
const
|
|
126
|
-
figureBackground: 'none',
|
|
127
|
-
figureAlignment: 'auto',
|
|
128
|
-
figurePaddingY: 'none',
|
|
129
|
-
figurePaddingX: 'none',
|
|
130
|
-
};
|
|
131
|
-
const productCard = ({ shadow, height, width, shape, size, figureBackground, figurePosition, figureAlignment, figurePaddingY, figurePaddingX, } = {}) => cx(productCardBase({ shadow, height, width, shape, size, figurePosition }), productCardFigure({ figureBackground, figureAlignment, figurePaddingX, figurePaddingY }));
|
|
132
|
-
const defaultProductCard = {
|
|
133
|
-
...defaultProductCardBase,
|
|
134
|
-
...defaultProductCardFigure,
|
|
135
|
-
};
|
|
130
|
+
const productCardComponent = ({ shadow, height, width, shape, size, figureBackground, figurePosition, figureAlignment, figurePaddingY, figurePaddingX, } = {}) => cx(productCardContainer({ shadow, height, width, shape, size, figurePosition }), productCardFigure({ figureBackground, figureAlignment, figurePaddingX, figurePaddingY }));
|
|
136
131
|
class ProductCardComponent {
|
|
137
132
|
// Base table properties
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
133
|
+
shadow = input();
|
|
134
|
+
height = input();
|
|
135
|
+
width = input();
|
|
136
|
+
shape = input();
|
|
137
|
+
size = input();
|
|
138
|
+
figurePosition = input();
|
|
139
|
+
// Figure properties
|
|
140
|
+
figureBackground = input();
|
|
141
|
+
figureAlignment = input();
|
|
142
|
+
figurePaddingY = input();
|
|
143
|
+
figurePaddingX = input();
|
|
144
|
+
containerClasses = input('');
|
|
145
|
+
titleClasses = input('');
|
|
146
|
+
actionsClasses = input('');
|
|
142
147
|
image = input();
|
|
143
148
|
iconName = input();
|
|
144
149
|
header = contentChild(ProductCardHeaderDirective);
|
|
145
150
|
content = contentChild(ProductCardContentDirective);
|
|
146
151
|
actions = contentChild(ProductCardActionsDirective);
|
|
147
|
-
get
|
|
148
|
-
return cn(
|
|
149
|
-
shadow: this.
|
|
150
|
-
height: this.
|
|
151
|
-
width: this.
|
|
152
|
-
shape: this.
|
|
153
|
-
size: this.
|
|
154
|
-
figurePosition: this.
|
|
155
|
-
|
|
152
|
+
get containerClass() {
|
|
153
|
+
return cn(productCardContainer({
|
|
154
|
+
shadow: this.shadow(),
|
|
155
|
+
height: this.height(),
|
|
156
|
+
width: this.width(),
|
|
157
|
+
shape: this.shape(),
|
|
158
|
+
size: this.size(),
|
|
159
|
+
figurePosition: this.figurePosition(),
|
|
160
|
+
class: this.containerClasses(),
|
|
161
|
+
}));
|
|
156
162
|
}
|
|
157
|
-
get
|
|
163
|
+
get figureClass() {
|
|
158
164
|
return cn(productCardFigure({
|
|
159
|
-
figureBackground: this.
|
|
160
|
-
figureAlignment: this.
|
|
161
|
-
figurePaddingX: this.
|
|
162
|
-
figurePaddingY: this.
|
|
165
|
+
figureBackground: this.figureBackground(),
|
|
166
|
+
figureAlignment: this.figureAlignment(),
|
|
167
|
+
figurePaddingX: this.figurePaddingX(),
|
|
168
|
+
figurePaddingY: this.figurePaddingY(),
|
|
163
169
|
}));
|
|
164
170
|
}
|
|
165
|
-
get
|
|
166
|
-
return cn('card-title', this.
|
|
171
|
+
get titleClass() {
|
|
172
|
+
return cn('card-title', this.titleClasses());
|
|
167
173
|
}
|
|
168
|
-
get
|
|
169
|
-
return cn('card-actions', this.
|
|
174
|
+
get actionsClass() {
|
|
175
|
+
return cn('card-actions', this.actionsClasses());
|
|
170
176
|
}
|
|
171
177
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: ProductCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
172
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.8", type: ProductCardComponent, isStandalone: true, selector: "app-product-card", inputs: {
|
|
178
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.8", type: ProductCardComponent, isStandalone: true, selector: "app-product-card", inputs: { shadow: { classPropertyName: "shadow", publicName: "shadow", isSignal: true, isRequired: false, transformFunction: null }, height: { classPropertyName: "height", publicName: "height", isSignal: true, isRequired: false, transformFunction: null }, width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null }, shape: { classPropertyName: "shape", publicName: "shape", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, figurePosition: { classPropertyName: "figurePosition", publicName: "figurePosition", isSignal: true, isRequired: false, transformFunction: null }, figureBackground: { classPropertyName: "figureBackground", publicName: "figureBackground", isSignal: true, isRequired: false, transformFunction: null }, figureAlignment: { classPropertyName: "figureAlignment", publicName: "figureAlignment", isSignal: true, isRequired: false, transformFunction: null }, figurePaddingY: { classPropertyName: "figurePaddingY", publicName: "figurePaddingY", isSignal: true, isRequired: false, transformFunction: null }, figurePaddingX: { classPropertyName: "figurePaddingX", publicName: "figurePaddingX", isSignal: true, isRequired: false, transformFunction: null }, containerClasses: { classPropertyName: "containerClasses", publicName: "containerClasses", isSignal: true, isRequired: false, transformFunction: null }, titleClasses: { classPropertyName: "titleClasses", publicName: "titleClasses", isSignal: true, isRequired: false, transformFunction: null }, actionsClasses: { classPropertyName: "actionsClasses", publicName: "actionsClasses", isSignal: true, isRequired: false, transformFunction: null }, image: { classPropertyName: "image", publicName: "image", isSignal: true, isRequired: false, transformFunction: null }, iconName: { classPropertyName: "iconName", publicName: "iconName", isSignal: true, isRequired: false, transformFunction: null } }, queries: [{ propertyName: "header", first: true, predicate: ProductCardHeaderDirective, descendants: true, isSignal: true }, { propertyName: "content", first: true, predicate: ProductCardContentDirective, descendants: true, isSignal: true }, { propertyName: "actions", first: true, predicate: ProductCardActionsDirective, descendants: true, isSignal: true }], ngImport: i0, template: "@let figurePositionVar = this.figurePosition();\n@let imageVar = image();\n@let iconNameVar = iconName();\n\n<div [class]=\"containerClass\">\n\t@if (figurePositionVar === 'top' || figurePositionVar === 'side' || !figurePositionVar) {\n\t\t<figure [class]=\"figureClass\">\n\t\t\t@if (imageVar?.src && imageVar?.alt && !iconNameVar) {\n\t\t\t\t<img [src]=\"imageVar?.src\" [alt]=\"imageVar?.alt\" />\n\t\t\t} @else if (iconNameVar && !imageVar) {\n\t\t\t\t<app-icon [iconName]=\"iconNameVar ?? 'callcenter'\" color=\"inherit\" size=\"lg\"></app-icon>\n\t\t\t} @else if (imageVar && iconNameVar) {\n\t\t\t\t<p typography [typographyVariant]=\"'body'\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'normal'\">\n\t\t\t\t\tSe se debe definir una propiedad (iconName o image)\n\t\t\t\t</p>\n\t\t\t} @else {\n\t\t\t\t<p typography [typographyVariant]=\"'body'\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'normal'\">\n\t\t\t\t\tNo se ha definido una imagen o un \u00EDcono valido\n\t\t\t\t</p>\n\t\t\t}\n\t\t</figure>\n\t}\n\t<div class=\"card-body\">\n\t\t<div [class]=\"titleClass\">\n\t\t\t<ng-container [ngTemplateOutlet]=\"header()?.tplRef || noHeader\"></ng-container>\n\t\t\t<ng-template #noHeader>\n\t\t\t\t<h2 typography [typographyVariant]=\"'h3'\" [typographyColor]=\"'black'\" [typographyFontWeight]=\"'semibold'\">No se ha definido un t\u00EDtulo</h2>\n\t\t\t</ng-template>\n\t\t</div>\n\t\t<div>\n\t\t\t<ng-container [ngTemplateOutlet]=\"content()?.tplRef || nocontent\"></ng-container>\n\t\t\t<ng-template #nocontent>\n\t\t\t\t<p typography [typographyVariant]=\"'h3'\" [typographyColor]=\"'black'\" [typographyFontWeight]=\"'semibold'\">No se ha definido contenido</p>\n\t\t\t</ng-template>\n\t\t</div>\n\t\t<div [class]=\"actionsClass\">\n\t\t\t<ng-container [ngTemplateOutlet]=\"actions()?.tplRef || noActions\"></ng-container>\n\t\t\t<ng-template #noActions>\n\t\t\t\t<p typography [typographyVariant]=\"'h3'\" [typographyColor]=\"'black'\" [typographyFontWeight]=\"'semibold'\">No se ha definido ninguna acci\u00F3n</p>\n\t\t\t</ng-template>\n\t\t</div>\n\t</div>\n\t@if (figurePositionVar === 'bottom') {\n\t\t<figure [class]=\"figureClass\">\n\t\t\t@if (imageVar?.src && imageVar?.alt && !iconNameVar) {\n\t\t\t\t<img [src]=\"imageVar?.src\" [alt]=\"imageVar?.alt\" />\n\t\t\t} @else if (iconNameVar && !imageVar) {\n\t\t\t\t<app-icon [iconName]=\"iconNameVar ?? 'callcenter'\" color=\"inherit\" size=\"lg\"></app-icon>\n\t\t\t} @else if (imageVar && iconNameVar) {\n\t\t\t\t<p typography [typographyVariant]=\"'body'\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'normal'\">\n\t\t\t\t\tSe se debe definir una propiedad (iconName o image)\n\t\t\t\t</p>\n\t\t\t} @else {\n\t\t\t\t<p typography [typographyVariant]=\"'body'\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'normal'\">\n\t\t\t\t\tNo se ha definido una imagen o un \u00EDcono valido\n\t\t\t\t</p>\n\t\t\t}\n\t\t</figure>\n\t}\n</div>\n", styles: [""], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: TypographyDirective, selector: "[typography]", inputs: ["typographyVariant", "typographyColor", "typographyFontWeight", "classes"] }, { kind: "component", type: IconComponent, selector: "app-icon", inputs: ["color", "size", "classes", "iconName"] }] });
|
|
173
179
|
}
|
|
174
180
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: ProductCardComponent, decorators: [{
|
|
175
181
|
type: Component,
|
|
176
|
-
args: [{ selector: 'app-product-card', standalone: true, imports: [
|
|
182
|
+
args: [{ selector: 'app-product-card', standalone: true, imports: [NgTemplateOutlet, TypographyDirective, IconComponent], template: "@let figurePositionVar = this.figurePosition();\n@let imageVar = image();\n@let iconNameVar = iconName();\n\n<div [class]=\"containerClass\">\n\t@if (figurePositionVar === 'top' || figurePositionVar === 'side' || !figurePositionVar) {\n\t\t<figure [class]=\"figureClass\">\n\t\t\t@if (imageVar?.src && imageVar?.alt && !iconNameVar) {\n\t\t\t\t<img [src]=\"imageVar?.src\" [alt]=\"imageVar?.alt\" />\n\t\t\t} @else if (iconNameVar && !imageVar) {\n\t\t\t\t<app-icon [iconName]=\"iconNameVar ?? 'callcenter'\" color=\"inherit\" size=\"lg\"></app-icon>\n\t\t\t} @else if (imageVar && iconNameVar) {\n\t\t\t\t<p typography [typographyVariant]=\"'body'\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'normal'\">\n\t\t\t\t\tSe se debe definir una propiedad (iconName o image)\n\t\t\t\t</p>\n\t\t\t} @else {\n\t\t\t\t<p typography [typographyVariant]=\"'body'\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'normal'\">\n\t\t\t\t\tNo se ha definido una imagen o un \u00EDcono valido\n\t\t\t\t</p>\n\t\t\t}\n\t\t</figure>\n\t}\n\t<div class=\"card-body\">\n\t\t<div [class]=\"titleClass\">\n\t\t\t<ng-container [ngTemplateOutlet]=\"header()?.tplRef || noHeader\"></ng-container>\n\t\t\t<ng-template #noHeader>\n\t\t\t\t<h2 typography [typographyVariant]=\"'h3'\" [typographyColor]=\"'black'\" [typographyFontWeight]=\"'semibold'\">No se ha definido un t\u00EDtulo</h2>\n\t\t\t</ng-template>\n\t\t</div>\n\t\t<div>\n\t\t\t<ng-container [ngTemplateOutlet]=\"content()?.tplRef || nocontent\"></ng-container>\n\t\t\t<ng-template #nocontent>\n\t\t\t\t<p typography [typographyVariant]=\"'h3'\" [typographyColor]=\"'black'\" [typographyFontWeight]=\"'semibold'\">No se ha definido contenido</p>\n\t\t\t</ng-template>\n\t\t</div>\n\t\t<div [class]=\"actionsClass\">\n\t\t\t<ng-container [ngTemplateOutlet]=\"actions()?.tplRef || noActions\"></ng-container>\n\t\t\t<ng-template #noActions>\n\t\t\t\t<p typography [typographyVariant]=\"'h3'\" [typographyColor]=\"'black'\" [typographyFontWeight]=\"'semibold'\">No se ha definido ninguna acci\u00F3n</p>\n\t\t\t</ng-template>\n\t\t</div>\n\t</div>\n\t@if (figurePositionVar === 'bottom') {\n\t\t<figure [class]=\"figureClass\">\n\t\t\t@if (imageVar?.src && imageVar?.alt && !iconNameVar) {\n\t\t\t\t<img [src]=\"imageVar?.src\" [alt]=\"imageVar?.alt\" />\n\t\t\t} @else if (iconNameVar && !imageVar) {\n\t\t\t\t<app-icon [iconName]=\"iconNameVar ?? 'callcenter'\" color=\"inherit\" size=\"lg\"></app-icon>\n\t\t\t} @else if (imageVar && iconNameVar) {\n\t\t\t\t<p typography [typographyVariant]=\"'body'\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'normal'\">\n\t\t\t\t\tSe se debe definir una propiedad (iconName o image)\n\t\t\t\t</p>\n\t\t\t} @else {\n\t\t\t\t<p typography [typographyVariant]=\"'body'\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'normal'\">\n\t\t\t\t\tNo se ha definido una imagen o un \u00EDcono valido\n\t\t\t\t</p>\n\t\t\t}\n\t\t</figure>\n\t}\n</div>\n" }]
|
|
177
183
|
}] });
|
|
178
184
|
|
|
179
185
|
/**
|
|
180
186
|
* Generated bundle index. Do not edit.
|
|
181
187
|
*/
|
|
182
188
|
|
|
183
|
-
export { ProductCardActionsDirective, ProductCardComponent, ProductCardContentDirective, ProductCardHeaderDirective,
|
|
189
|
+
export { ProductCardActionsDirective, ProductCardComponent, ProductCardContentDirective, ProductCardHeaderDirective, productCardComponent, productCardContainer, productCardFigure };
|
|
184
190
|
//# sourceMappingURL=sixbell-telco-sdk-components-product-card.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sixbell-telco-sdk-components-product-card.mjs","sources":["../../../projects/sdk/components/product-card/directives/product-card-actions.directive.ts","../../../projects/sdk/components/product-card/directives/product-card-content.directive.ts","../../../projects/sdk/components/product-card/directives/product-card-header.directive.ts","../../../projects/sdk/components/product-card/src/product-card.component.ts","../../../projects/sdk/components/product-card/src/product-card.component.html","../../../projects/sdk/components/product-card/sixbell-telco-sdk-components-product-card.ts"],"sourcesContent":["import { Directive, TemplateRef, inject } from '@angular/core';\n\n@Directive({\n\tselector: '[appProductCardActions]',\n\tstandalone: true,\n})\nexport class ProductCardActionsDirective {\n\ttplRef = inject(TemplateRef);\n}\n","import { Directive, TemplateRef, inject } from '@angular/core';\n\n@Directive({\n\tselector: '[appProductCardContent]',\n\tstandalone: true,\n})\nexport class ProductCardContentDirective {\n\ttplRef = inject(TemplateRef);\n}\n","import { Directive, TemplateRef, inject } from '@angular/core';\n\n@Directive({\n\tselector: '[appProductCardHeader]',\n\tstandalone: true,\n})\nexport class ProductCardHeaderDirective {\n\ttplRef = inject(TemplateRef);\n}\n","import { NgTemplateOutlet } from '@angular/common';\nimport { Component, contentChild, input } from '@angular/core';\nimport { CardComponent } from '@sixbell-telco/sdk/components/card';\nimport { IconComponent, IconName } from '@sixbell-telco/sdk/components/icon';\nimport { TypographyDirective } from '@sixbell-telco/sdk/directives/typography';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { cva, cx, VariantProps } from 'class-variance-authority';\nimport { ProductCardActionsDirective } from '../directives/product-card-actions.directive';\nimport { ProductCardContentDirective } from '../directives/product-card-content.directive';\nimport { ProductCardHeaderDirective } from '../directives/product-card-header.directive';\n\nexport const productCardBase = cva(['card'], {\n\tvariants: {\n\t\tshadow: {\n\t\t\tnone: [],\n\t\t\tprimary: ['shadow-primary'],\n\t\t\tsecondary: ['shadow-secondary'],\n\t\t},\n\t\theight: {\n\t\t\tfit: ['h-fit', 'min-h-[auto]'],\n\t\t\tauto: ['h-auto', 'min-h-[auto]'],\n\t\t\tfull: ['h-full', 'min-h-full'],\n\t\t\t'min-content': ['h-min', 'min-h-min'],\n\t\t\t'max-content': ['h-max', 'min-h-max'],\n\t\t},\n\t\twidth: {\n\t\t\tfit: ['w-fit', 'min-w-[auto]'],\n\t\t\tauto: ['w-auto', 'min-w-[auto]'],\n\t\t\tfull: ['w-full', 'min-w-full'],\n\t\t\t'min-content': ['w-min', 'min-w-min'],\n\t\t\t'max-content': ['w-max', 'min-w-max'],\n\t\t},\n\t\tshape: {\n\t\t\t'round-sm': ['rounded-box-sm'],\n\t\t\t'round-md': ['rounded-box-md'],\n\t\t\t'round-lg': ['rounded-box-lg'],\n\t\t},\n\t\tsize: {\n\t\t\tsm: 'card-compact',\n\t\t\tmd: 'card-normal',\n\t\t},\n\t\tfigurePosition: {\n\t\t\ttop: ['top'],\n\t\t\tbottom: ['bottom'],\n\t\t\tside: ['card-side'],\n\t\t},\n\t},\n});\n\nconst defaultProductCardBase: CardBaseVariantProps = {\n\tshadow: 'secondary',\n\theight: 'auto',\n\twidth: 'auto',\n\tshape: 'round-sm',\n\tsize: 'md',\n\tfigurePosition: 'top',\n};\n\nexport type CardBaseVariantProps = VariantProps<typeof productCardBase>;\n\nexport const productCardFigure = cva([], {\n\tvariants: {\n\t\tfigureBackground: {\n\t\t\tnone: [],\n\t\t\timage: ['image-full'],\n\t\t\tprimary: ['bg-primary', 'text-primary-content'],\n\t\t\tsecondary: ['bg-secondary', 'text-secondary-content'],\n\t\t\twarning: ['bg-warning', 'text-warning-content'],\n\t\t\terror: ['bg-error', 'text-error-content'],\n\t\t\tneutral: ['bg-neutral', 'text-neutral-content'],\n\t\t},\n\t\tfigureAlignment: {\n\t\t\tauto: [],\n\t\t\tcenter: ['flex', 'justify-center'],\n\t\t\tstart: ['flex', 'justify-start'],\n\t\t\tend: ['flex', 'justify-end'],\n\t\t},\n\t\tfigurePaddingY: {\n\t\t\tnone: 'py-0',\n\t\t\tsm: 'py-2',\n\t\t\tmd: 'py-4',\n\t\t\tlg: 'py-6',\n\t\t},\n\t\tfigurePaddingX: {\n\t\t\tnone: 'px-0',\n\t\t\tsm: 'px-2',\n\t\t\tmd: 'px-4',\n\t\t\tlg: 'px-6',\n\t\t},\n\t},\n});\n\nconst defaultProductCardFigure: ProductCardFigureVariantProps = {\n\tfigureBackground: 'none',\n\tfigureAlignment: 'auto',\n\tfigurePaddingY: 'none',\n\tfigurePaddingX: 'none',\n};\n\nexport type ProductCardFigureVariantProps = VariantProps<typeof productCardFigure>;\n\nexport interface ProductCardVariantProps extends CardBaseVariantProps, ProductCardFigureVariantProps {}\nexport const productCard = ({\n\tshadow,\n\theight,\n\twidth,\n\tshape,\n\tsize,\n\tfigureBackground,\n\tfigurePosition,\n\tfigureAlignment,\n\tfigurePaddingY,\n\tfigurePaddingX,\n}: ProductCardVariantProps = {}) =>\n\tcx(\n\t\tproductCardBase({ shadow, height, width, shape, size, figurePosition }),\n\t\tproductCardFigure({ figureBackground, figureAlignment, figurePaddingX, figurePaddingY }),\n\t);\n\nconst defaultProductCard: ProductCardVariantProps = {\n\t...defaultProductCardBase,\n\t...defaultProductCardFigure,\n};\n\nexport type ProductCardFigureBackgroundVariants = Exclude<ProductCardFigureVariantProps['figureBackground'], null | undefined>;\n\n@Component({\n\tselector: 'app-product-card',\n\tstandalone: true,\n\timports: [CardComponent, NgTemplateOutlet, TypographyDirective, IconComponent],\n\ttemplateUrl: './product-card.component.html',\n\tstyles: '',\n})\nexport class ProductCardComponent {\n\t// Base table properties\n\tvariants = input<ProductCardVariantProps>(defaultProductCard);\n\tclass = input<string>('');\n\tclassTitle = input<string>('');\n\tclassActions = input<string>('');\n\timage = input<{ src: string; alt: string }>();\n\ticonName = input<IconName>();\n\theader = contentChild(ProductCardHeaderDirective);\n\tcontent = contentChild(ProductCardContentDirective);\n\tactions = contentChild(ProductCardActionsDirective);\n\n\tget baseClasses() {\n\t\treturn cn(\n\t\t\tproductCardBase({\n\t\t\t\tshadow: this.variants().shadow ?? defaultProductCardBase.shadow,\n\t\t\t\theight: this.variants().height ?? defaultProductCardBase.height,\n\t\t\t\twidth: this.variants().width ?? defaultProductCardBase.width,\n\t\t\t\tshape: this.variants().shape ?? defaultProductCardBase.shape,\n\t\t\t\tsize: this.variants().size ?? defaultProductCardBase.size,\n\t\t\t\tfigurePosition: this.variants().figurePosition ?? defaultProductCardBase.figurePosition,\n\t\t\t}),\n\t\t\tthis.class(),\n\t\t);\n\t}\n\n\tget figureClasses() {\n\t\treturn cn(\n\t\t\tproductCardFigure({\n\t\t\t\tfigureBackground: this.variants().figureBackground ?? defaultProductCardFigure.figureBackground,\n\t\t\t\tfigureAlignment: this.variants().figureAlignment ?? defaultProductCardFigure.figureAlignment,\n\t\t\t\tfigurePaddingX: this.variants().figurePaddingX ?? defaultProductCardFigure.figurePaddingX,\n\t\t\t\tfigurePaddingY: this.variants().figurePaddingY ?? defaultProductCardFigure.figurePaddingY,\n\t\t\t}),\n\t\t);\n\t}\n\n\tget titleClasses() {\n\t\treturn cn('card-title', this.classTitle());\n\t}\n\n\tget actionsClasses() {\n\t\treturn cn('card-actions', this.classActions());\n\t}\n}\n","@let figurePositionVar = variants().figurePosition;\n@let imageVar = image();\n@let iconNameVar = iconName();\n\n<div [class]=\"baseClasses\">\n\t@if (figurePositionVar === 'top' || figurePositionVar === 'side' || !figurePositionVar) {\n\t\t<figure [class]=\"figureClasses\">\n\t\t\t@if (imageVar?.src && imageVar?.alt && !iconNameVar) {\n\t\t\t\t<img [src]=\"imageVar?.src\" [alt]=\"imageVar?.alt\" />\n\t\t\t} @else if (iconNameVar && !imageVar) {\n\t\t\t\t<app-icon [iconName]=\"iconNameVar ?? 'callcenter'\" [variants]=\"{ size: 'lg', color: 'inherit' }\"></app-icon>\n\t\t\t} @else if (imageVar && iconNameVar) {\n\t\t\t\t<p [typography]=\"{ variant: 'body', color: 'inherit', fontWeight: 'normal' }\">Se se debe definir una propiedad (iconName o image)</p>\n\t\t\t} @else {\n\t\t\t\t<p [typography]=\"{ variant: 'body', color: 'inherit', fontWeight: 'normal' }\">No se ha definido una imagen o un ícono valido</p>\n\t\t\t}\n\t\t</figure>\n\t}\n\t<div class=\"card-body\">\n\t\t<div [class]=\"titleClasses\">\n\t\t\t<ng-container [ngTemplateOutlet]=\"header()?.tplRef || noHeader\"></ng-container>\n\t\t\t<ng-template #noHeader>\n\t\t\t\t<h2 [typography]=\"{ variant: 'h3', color: 'black', fontWeight: 'semibold' }\">No se ha definido un título</h2>\n\t\t\t</ng-template>\n\t\t</div>\n\t\t<div>\n\t\t\t<ng-container [ngTemplateOutlet]=\"content()?.tplRef || nocontent\"></ng-container>\n\t\t\t<ng-template #nocontent>\n\t\t\t\t<p [typography]=\"{ variant: 'body', color: 'black', fontWeight: 'normal' }\">No se ha definido contenido</p>\n\t\t\t</ng-template>\n\t\t</div>\n\t\t<div [class]=\"actionsClasses\">\n\t\t\t<ng-container [ngTemplateOutlet]=\"actions()?.tplRef || noActions\"></ng-container>\n\t\t\t<ng-template #noActions>\n\t\t\t\t<p [typography]=\"{ variant: 'body', color: 'black', fontWeight: 'normal' }\">No se ha definido ninguna acción</p>\n\t\t\t</ng-template>\n\t\t</div>\n\t</div>\n\t@if (figurePositionVar === 'bottom') {\n\t\t<figure [class]=\"figureClasses\">\n\t\t\t@if (imageVar?.src && imageVar?.alt && !iconNameVar) {\n\t\t\t\t<img [src]=\"imageVar?.src\" [alt]=\"imageVar?.alt\" />\n\t\t\t} @else if (iconNameVar && !imageVar) {\n\t\t\t\t<app-icon [iconName]=\"iconNameVar ?? 'callcenter'\" [variants]=\"{ size: 'lg', color: 'inherit' }\"></app-icon>\n\t\t\t} @else if (imageVar && iconNameVar) {\n\t\t\t\t<p [typography]=\"{ variant: 'body', color: 'inherit', fontWeight: 'normal' }\">Se se debe definir una propiedad (iconName o image)</p>\n\t\t\t} @else {\n\t\t\t\t<p [typography]=\"{ variant: 'body', color: 'inherit', fontWeight: 'normal' }\">No se ha definido una imagen o un ícono valido</p>\n\t\t\t}\n\t\t</figure>\n\t}\n</div>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;MAMa,2BAA2B,CAAA;AACvC,IAAA,MAAM,GAAG,MAAM,CAAC,WAAW,CAAC,CAAC;uGADjB,2BAA2B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;2FAA3B,2BAA2B,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,yBAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;2FAA3B,2BAA2B,EAAA,UAAA,EAAA,CAAA;kBAJvC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,QAAQ,EAAE,yBAAyB;AACnC,oBAAA,UAAU,EAAE,IAAI;AAChB,iBAAA,CAAA;;;MCCY,2BAA2B,CAAA;AACvC,IAAA,MAAM,GAAG,MAAM,CAAC,WAAW,CAAC,CAAC;uGADjB,2BAA2B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;2FAA3B,2BAA2B,EAAA,YAAA,EAAA,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AAA,EAAA,oBAAA,EAAA,MAAA,EAAA,CAAA,yBAAA,EAAA,kBAAA,EAAA,0BAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,mBAAmB,0FAAE,aAAa,EAAA,QAAA,EAAA,UAAA,EAAA,MAAA,EAAA,CAAA,UAAA,EAAA,OAAA,EAAA,UAAA,CAAA,EAAA,CAAA,EAAA,CAAA,CAAA;;2FAIjE,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBAPhC,SAAS;+BACC,kBAAkB,EAAA,UAAA,EAChB,IAAI,EAAA,OAAA,EACP,CAAC,aAAa,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,aAAa,CAAC,EAAA,QAAA,EAAA,moFAAA,EAAA,CAAA;;;AEjI/E;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"sixbell-telco-sdk-components-product-card.mjs","sources":["../../../projects/sdk/components/product-card/directives/product-card-actions.directive.ts","../../../projects/sdk/components/product-card/directives/product-card-content.directive.ts","../../../projects/sdk/components/product-card/directives/product-card-header.directive.ts","../../../projects/sdk/components/product-card/src/product-card.component.ts","../../../projects/sdk/components/product-card/src/product-card.component.html","../../../projects/sdk/components/product-card/sixbell-telco-sdk-components-product-card.ts"],"sourcesContent":["import { Directive, TemplateRef, inject } from '@angular/core';\n\n@Directive({\n\tselector: '[appProductCardActions]',\n\tstandalone: true,\n})\nexport class ProductCardActionsDirective {\n\ttplRef = inject(TemplateRef);\n}\n","import { Directive, TemplateRef, inject } from '@angular/core';\n\n@Directive({\n\tselector: '[appProductCardContent]',\n\tstandalone: true,\n})\nexport class ProductCardContentDirective {\n\ttplRef = inject(TemplateRef);\n}\n","import { Directive, TemplateRef, inject } from '@angular/core';\n\n@Directive({\n\tselector: '[appProductCardHeader]',\n\tstandalone: true,\n})\nexport class ProductCardHeaderDirective {\n\ttplRef = inject(TemplateRef);\n}\n","import { NgTemplateOutlet } from '@angular/common';\nimport { Component, contentChild, input } from '@angular/core';\nimport { IconComponent, IconName } from '@sixbell-telco/sdk/components/icon';\nimport { TypographyDirective } from '@sixbell-telco/sdk/directives/typography';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { cva, cx } from 'class-variance-authority';\nimport { ProductCardActionsDirective } from '../directives/product-card-actions.directive';\nimport { ProductCardContentDirective } from '../directives/product-card-content.directive';\nimport { ProductCardHeaderDirective } from '../directives/product-card-header.directive';\n\nexport const productCardContainer = cva(['card'], {\n\tvariants: {\n\t\tshadow: {\n\t\t\tnone: [],\n\t\t\tprimary: ['shadow-primary'],\n\t\t\tsecondary: ['shadow-secondary'],\n\t\t},\n\t\theight: {\n\t\t\tfit: ['h-fit', 'min-h-[auto]'],\n\t\t\tauto: ['h-auto', 'min-h-[auto]'],\n\t\t\tfull: ['h-full', 'min-h-full'],\n\t\t\t'min-content': ['h-min', 'min-h-min'],\n\t\t\t'max-content': ['h-max', 'min-h-max'],\n\t\t},\n\t\twidth: {\n\t\t\tfit: ['w-fit', 'min-w-[auto]'],\n\t\t\tauto: ['w-auto', 'min-w-[auto]'],\n\t\t\tfull: ['w-full', 'min-w-full'],\n\t\t\t'min-content': ['w-min', 'min-w-min'],\n\t\t\t'max-content': ['w-max', 'min-w-max'],\n\t\t},\n\t\tshape: {\n\t\t\t'round-sm': ['rounded-box-sm'],\n\t\t\t'round-md': ['rounded-box-md'],\n\t\t\t'round-lg': ['rounded-box-lg'],\n\t\t},\n\t\tsize: {\n\t\t\tsm: 'card-compact',\n\t\t\tmd: 'card-normal',\n\t\t},\n\t\tfigurePosition: {\n\t\t\ttop: ['top'],\n\t\t\tbottom: ['bottom'],\n\t\t\tside: ['card-side'],\n\t\t},\n\t},\n\tdefaultVariants: {\n\t\tshadow: 'secondary',\n\t\theight: 'auto',\n\t\twidth: 'auto',\n\t\tshape: 'round-sm',\n\t\tsize: 'md',\n\t\tfigurePosition: 'top',\n\t},\n});\n\nexport type ProductCardContainerShadowProps = 'none' | 'primary' | 'secondary' | null | undefined;\nexport type ProductCardContainerHeightProps = 'fit' | 'auto' | 'full' | 'min-content' | 'max-content' | null | undefined;\nexport type ProductCardContainerWidthProps = 'fit' | 'auto' | 'full' | 'min-content' | 'max-content' | null | undefined;\nexport type ProductCardContainerShapeProps = 'round-sm' | 'round-md' | 'round-lg' | null | undefined;\nexport type ProductCardContainerSizeProps = 'sm' | 'md' | null | undefined;\nexport type ProductCardContainerFigurePositionProps = 'top' | 'bottom' | 'side' | null | undefined;\n\nexport const productCardFigure = cva([], {\n\tvariants: {\n\t\tfigureBackground: {\n\t\t\tnone: [],\n\t\t\timage: ['image-full'],\n\t\t\tprimary: ['bg-primary', 'text-primary-content'],\n\t\t\tsecondary: ['bg-secondary', 'text-secondary-content'],\n\t\t\twarning: ['bg-warning', 'text-warning-content'],\n\t\t\terror: ['bg-error', 'text-error-content'],\n\t\t\tneutral: ['bg-neutral', 'text-neutral-content'],\n\t\t},\n\t\tfigureAlignment: {\n\t\t\tauto: [],\n\t\t\tcenter: ['flex', 'justify-center'],\n\t\t\tstart: ['flex', 'justify-start'],\n\t\t\tend: ['flex', 'justify-end'],\n\t\t},\n\t\tfigurePaddingY: {\n\t\t\tnone: 'py-0',\n\t\t\tsm: 'py-2',\n\t\t\tmd: 'py-4',\n\t\t\tlg: 'py-6',\n\t\t},\n\t\tfigurePaddingX: {\n\t\t\tnone: 'px-0',\n\t\t\tsm: 'px-2',\n\t\t\tmd: 'px-4',\n\t\t\tlg: 'px-6',\n\t\t},\n\t},\n\tdefaultVariants: {\n\t\tfigureBackground: 'none',\n\t\tfigureAlignment: 'auto',\n\t\tfigurePaddingY: 'none',\n\t\tfigurePaddingX: 'none',\n\t},\n});\n\nexport type ProductCardFigureBackgroundProps = 'none' | 'image' | 'primary' | 'secondary' | 'warning' | 'error' | 'neutral' | null | undefined;\nexport type ProductCardFigureAlignmentProps = 'auto' | 'center' | 'start' | 'end' | null | undefined;\nexport type ProductCardFigurePaddingYProps = 'none' | 'sm' | 'md' | 'lg' | null | undefined;\nexport type ProductCardFigurePaddingXProps = 'none' | 'sm' | 'md' | 'lg' | null | undefined;\n\nexport type ProductCardVariantProps = {\n\tshadow?: ProductCardContainerShadowProps;\n\theight?: ProductCardContainerHeightProps;\n\twidth?: ProductCardContainerWidthProps;\n\tshape?: ProductCardContainerShapeProps;\n\tsize?: ProductCardContainerSizeProps;\n\tfigureBackground?: ProductCardFigureBackgroundProps;\n\tfigurePosition?: ProductCardContainerFigurePositionProps;\n\tfigureAlignment?: ProductCardFigureAlignmentProps;\n\tfigurePaddingY?: ProductCardFigurePaddingYProps;\n\tfigurePaddingX?: ProductCardFigurePaddingXProps;\n};\n\nexport const productCardComponent = ({\n\tshadow,\n\theight,\n\twidth,\n\tshape,\n\tsize,\n\tfigureBackground,\n\tfigurePosition,\n\tfigureAlignment,\n\tfigurePaddingY,\n\tfigurePaddingX,\n}: ProductCardVariantProps = {}) =>\n\tcx(\n\t\tproductCardContainer({ shadow, height, width, shape, size, figurePosition }),\n\t\tproductCardFigure({ figureBackground, figureAlignment, figurePaddingX, figurePaddingY }),\n\t);\n\n@Component({\n\tselector: 'app-product-card',\n\tstandalone: true,\n\timports: [NgTemplateOutlet, TypographyDirective, IconComponent],\n\ttemplateUrl: './product-card.component.html',\n\tstyles: '',\n})\nexport class ProductCardComponent {\n\t// Base table properties\n\tshadow = input<ProductCardContainerShadowProps>();\n\theight = input<ProductCardContainerHeightProps>();\n\twidth = input<ProductCardContainerWidthProps>();\n\tshape = input<ProductCardContainerShapeProps>();\n\tsize = input<ProductCardContainerSizeProps>();\n\tfigurePosition = input<ProductCardContainerFigurePositionProps>();\n\t// Figure properties\n\tfigureBackground = input<ProductCardFigureBackgroundProps>();\n\tfigureAlignment = input<ProductCardFigureAlignmentProps>();\n\tfigurePaddingY = input<ProductCardFigurePaddingYProps>();\n\tfigurePaddingX = input<ProductCardFigurePaddingXProps>();\n\n\tcontainerClasses = input<string>('');\n\ttitleClasses = input<string>('');\n\tactionsClasses = input<string>('');\n\timage = input<{ src: string; alt: string }>();\n\ticonName = input<IconName>();\n\theader = contentChild(ProductCardHeaderDirective);\n\tcontent = contentChild(ProductCardContentDirective);\n\tactions = contentChild(ProductCardActionsDirective);\n\n\tget containerClass() {\n\t\treturn cn(\n\t\t\tproductCardContainer({\n\t\t\t\tshadow: this.shadow(),\n\t\t\t\theight: this.height(),\n\t\t\t\twidth: this.width(),\n\t\t\t\tshape: this.shape(),\n\t\t\t\tsize: this.size(),\n\t\t\t\tfigurePosition: this.figurePosition(),\n\t\t\t\tclass: this.containerClasses(),\n\t\t\t}),\n\t\t);\n\t}\n\n\tget figureClass() {\n\t\treturn cn(\n\t\t\tproductCardFigure({\n\t\t\t\tfigureBackground: this.figureBackground(),\n\t\t\t\tfigureAlignment: this.figureAlignment(),\n\t\t\t\tfigurePaddingX: this.figurePaddingX(),\n\t\t\t\tfigurePaddingY: this.figurePaddingY(),\n\t\t\t}),\n\t\t);\n\t}\n\n\tget titleClass() {\n\t\treturn cn('card-title', this.titleClasses());\n\t}\n\n\tget actionsClass() {\n\t\treturn cn('card-actions', this.actionsClasses());\n\t}\n}\n","@let figurePositionVar = this.figurePosition();\n@let imageVar = image();\n@let iconNameVar = iconName();\n\n<div [class]=\"containerClass\">\n\t@if (figurePositionVar === 'top' || figurePositionVar === 'side' || !figurePositionVar) {\n\t\t<figure [class]=\"figureClass\">\n\t\t\t@if (imageVar?.src && imageVar?.alt && !iconNameVar) {\n\t\t\t\t<img [src]=\"imageVar?.src\" [alt]=\"imageVar?.alt\" />\n\t\t\t} @else if (iconNameVar && !imageVar) {\n\t\t\t\t<app-icon [iconName]=\"iconNameVar ?? 'callcenter'\" color=\"inherit\" size=\"lg\"></app-icon>\n\t\t\t} @else if (imageVar && iconNameVar) {\n\t\t\t\t<p typography [typographyVariant]=\"'body'\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'normal'\">\n\t\t\t\t\tSe se debe definir una propiedad (iconName o image)\n\t\t\t\t</p>\n\t\t\t} @else {\n\t\t\t\t<p typography [typographyVariant]=\"'body'\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'normal'\">\n\t\t\t\t\tNo se ha definido una imagen o un ícono valido\n\t\t\t\t</p>\n\t\t\t}\n\t\t</figure>\n\t}\n\t<div class=\"card-body\">\n\t\t<div [class]=\"titleClass\">\n\t\t\t<ng-container [ngTemplateOutlet]=\"header()?.tplRef || noHeader\"></ng-container>\n\t\t\t<ng-template #noHeader>\n\t\t\t\t<h2 typography [typographyVariant]=\"'h3'\" [typographyColor]=\"'black'\" [typographyFontWeight]=\"'semibold'\">No se ha definido un título</h2>\n\t\t\t</ng-template>\n\t\t</div>\n\t\t<div>\n\t\t\t<ng-container [ngTemplateOutlet]=\"content()?.tplRef || nocontent\"></ng-container>\n\t\t\t<ng-template #nocontent>\n\t\t\t\t<p typography [typographyVariant]=\"'h3'\" [typographyColor]=\"'black'\" [typographyFontWeight]=\"'semibold'\">No se ha definido contenido</p>\n\t\t\t</ng-template>\n\t\t</div>\n\t\t<div [class]=\"actionsClass\">\n\t\t\t<ng-container [ngTemplateOutlet]=\"actions()?.tplRef || noActions\"></ng-container>\n\t\t\t<ng-template #noActions>\n\t\t\t\t<p typography [typographyVariant]=\"'h3'\" [typographyColor]=\"'black'\" [typographyFontWeight]=\"'semibold'\">No se ha definido ninguna acción</p>\n\t\t\t</ng-template>\n\t\t</div>\n\t</div>\n\t@if (figurePositionVar === 'bottom') {\n\t\t<figure [class]=\"figureClass\">\n\t\t\t@if (imageVar?.src && imageVar?.alt && !iconNameVar) {\n\t\t\t\t<img [src]=\"imageVar?.src\" [alt]=\"imageVar?.alt\" />\n\t\t\t} @else if (iconNameVar && !imageVar) {\n\t\t\t\t<app-icon [iconName]=\"iconNameVar ?? 'callcenter'\" color=\"inherit\" size=\"lg\"></app-icon>\n\t\t\t} @else if (imageVar && iconNameVar) {\n\t\t\t\t<p typography [typographyVariant]=\"'body'\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'normal'\">\n\t\t\t\t\tSe se debe definir una propiedad (iconName o image)\n\t\t\t\t</p>\n\t\t\t} @else {\n\t\t\t\t<p typography [typographyVariant]=\"'body'\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'normal'\">\n\t\t\t\t\tNo se ha definido una imagen o un ícono valido\n\t\t\t\t</p>\n\t\t\t}\n\t\t</figure>\n\t}\n</div>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;MAMa,2BAA2B,CAAA;AACvC,IAAA,MAAM,GAAG,MAAM,CAAC,WAAW,CAAC,CAAC;uGADjB,2BAA2B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;2FAA3B,2BAA2B,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,yBAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;2FAA3B,2BAA2B,EAAA,UAAA,EAAA,CAAA;kBAJvC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,QAAQ,EAAE,yBAAyB;AACnC,oBAAA,UAAU,EAAE,IAAI;AAChB,iBAAA,CAAA;;;MCCY,2BAA2B,CAAA;AACvC,IAAA,MAAM,GAAG,MAAM,CAAC,WAAW,CAAC,CAAC;uGADjB,2BAA2B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;2FAA3B,2BAA2B,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,yBAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;2FAA3B,2BAA2B,EAAA,UAAA,EAAA,CAAA;kBAJvC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,QAAQ,EAAE,yBAAyB;AACnC,oBAAA,UAAU,EAAE,IAAI;AAChB,iBAAA,CAAA;;;MCCY,0BAA0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