@sixbell-telco/sdk 0.3.0 → 0.4.0
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 +50 -0
- package/README.md +96 -55
- package/assets/styles/combobox.scss +17 -17
- package/components/accordion/accordion-item/accordion-item.component.d.ts +1 -2
- package/components/avatar/src/avatar.component.d.ts +11 -18
- package/components/button/src/button.component.d.ts +12 -19
- package/components/card/card-actions/card-actions.component.d.ts +8 -0
- package/components/card/card-content/card-content.component.d.ts +5 -0
- package/components/card/card-title/card-title.component.d.ts +5 -0
- package/components/card/public-api.d.ts +3 -0
- package/components/card/src/card.component.d.ts +19 -20
- package/components/countdown/src/countdown.component.d.ts +6 -1
- package/components/dropdown/dropdown-item/dropdown-item.component.d.ts +10 -0
- package/components/dropdown/public-api.d.ts +1 -0
- package/components/dropdown/src/dropdown.component.d.ts +24 -42
- package/components/file-upload/file-uploader/src/file-uploader.component.d.ts +2 -5
- package/components/forms/checkbox/src/checkbox.component.d.ts +2 -3
- package/components/forms/input/src/input.component.d.ts +7 -8
- package/components/forms/radio/src/radio.component.d.ts +2 -6
- package/components/forms/select/src/select.component.d.ts +5 -8
- package/components/forms/textarea/src/textarea.component.d.ts +5 -11
- package/components/link/src/link.component.d.ts +18 -45
- package/components/modal/modal-actions/modal-actions.component.d.ts +8 -0
- package/components/modal/modal-content/modal-content.component.d.ts +5 -0
- package/components/modal/modal-title/modal-title.component.d.ts +5 -0
- package/components/modal/public-api.d.ts +3 -0
- package/components/modal/src/modal.component.d.ts +7 -13
- package/components/product-card/src/product-card.component.d.ts +5 -9
- package/components/tab/src/tab.component.d.ts +1 -2
- package/directives/click-outside/index.d.ts +5 -0
- package/directives/click-outside/public-api.d.ts +1 -0
- package/directives/click-outside/src/click-outside.directive.d.ts +10 -0
- package/directives/typography/src/typography.directive.d.ts +3 -4
- package/esm2022/components/accordion/accordion-item/accordion-item.component.mjs +5 -6
- package/esm2022/components/avatar/src/avatar.component.mjs +27 -43
- package/esm2022/components/button/src/button.component.mjs +12 -22
- package/esm2022/components/card/card-actions/card-actions.component.mjs +22 -0
- package/esm2022/components/card/card-content/card-content.component.mjs +12 -0
- package/esm2022/components/card/card-title/card-title.component.mjs +12 -0
- package/esm2022/components/card/public-api.mjs +4 -1
- package/esm2022/components/card/src/card.component.mjs +20 -45
- package/esm2022/components/countdown/src/countdown.component.mjs +10 -3
- package/esm2022/components/dropdown/dropdown-item/dropdown-item.component.mjs +24 -0
- package/esm2022/components/dropdown/public-api.mjs +2 -1
- package/esm2022/components/dropdown/src/dropdown.component.mjs +65 -101
- package/esm2022/components/dual-list/src/dual-list.component.mjs +3 -3
- package/esm2022/components/file-upload/file-dropzone/src/file-dropzone.component.mjs +3 -3
- package/esm2022/components/file-upload/file-uploader/src/file-uploader.component.mjs +3 -7
- package/esm2022/components/forms/checkbox/src/checkbox.component.mjs +9 -8
- package/esm2022/components/forms/combobox/src/combobox.component.mjs +3 -3
- package/esm2022/components/forms/datepicker/src/datepicker.component.mjs +2 -2
- package/esm2022/components/forms/form-error/src/form-error.component.mjs +3 -3
- package/esm2022/components/forms/input/src/input.component.mjs +51 -45
- package/esm2022/components/forms/radio/src/radio.component.mjs +5 -18
- package/esm2022/components/forms/range/src/range.component.mjs +3 -3
- package/esm2022/components/forms/select/src/select.component.mjs +24 -34
- package/esm2022/components/forms/switch/src/switch.component.mjs +3 -3
- package/esm2022/components/forms/textarea/src/textarea.component.mjs +35 -48
- package/esm2022/components/forms/toggle/src/toggle.component.mjs +3 -3
- package/esm2022/components/link/src/link.component.mjs +27 -183
- package/esm2022/components/modal/modal-actions/modal-actions.component.mjs +22 -0
- package/esm2022/components/modal/modal-content/modal-content.component.mjs +12 -0
- package/esm2022/components/modal/modal-title/modal-title.component.mjs +13 -0
- package/esm2022/components/modal/public-api.mjs +4 -1
- package/esm2022/components/modal/src/modal.component.mjs +22 -31
- package/esm2022/components/notification/src/notification.component.mjs +2 -5
- package/esm2022/components/paginator/components/pagination-item/pagination-item.component.mjs +24 -24
- package/esm2022/components/product-card/src/product-card.component.mjs +5 -14
- package/esm2022/components/progress/src/progress.component.mjs +3 -3
- package/esm2022/components/tab/src/tab.component.mjs +2 -4
- package/esm2022/components/table/src/table.component.mjs +4 -4
- 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 +4 -4
- package/esm2022/components/wizard/wizard-marker/wizard-marker.component.mjs +4 -4
- package/esm2022/components/wizard/wizard-step/wizard-step.component.mjs +3 -3
- package/esm2022/components/wizard/wizard-wrapper/wizard-wrapper.component.mjs +3 -3
- package/esm2022/directives/click-outside/public-api.mjs +2 -0
- package/esm2022/directives/click-outside/sixbell-telco-sdk-directives-click-outside.mjs +5 -0
- package/esm2022/directives/click-outside/src/click-outside.directive.mjs +30 -0
- package/esm2022/directives/typography/src/typography.directive.mjs +19 -18
- package/fesm2022/sixbell-telco-sdk-components-accordion.mjs +4 -5
- package/fesm2022/sixbell-telco-sdk-components-accordion.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-avatar.mjs +26 -42
- package/fesm2022/sixbell-telco-sdk-components-avatar.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-button.mjs +11 -21
- package/fesm2022/sixbell-telco-sdk-components-button.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-card.mjs +57 -46
- package/fesm2022/sixbell-telco-sdk-components-card.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-countdown.mjs +9 -2
- package/fesm2022/sixbell-telco-sdk-components-countdown.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dropdown.mjs +86 -101
- package/fesm2022/sixbell-telco-sdk-components-dropdown.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dual-list.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-dual-list.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-file-upload-file-dropzone.mjs +2 -2
- 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 +2 -6
- package/fesm2022/sixbell-telco-sdk-components-file-upload-file-uploader.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-checkbox.mjs +8 -7
- package/fesm2022/sixbell-telco-sdk-components-forms-checkbox.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-combobox.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-forms-combobox.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-datepicker.mjs +1 -1
- 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 +51 -45
- package/fesm2022/sixbell-telco-sdk-components-forms-input.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-radio.mjs +4 -17
- package/fesm2022/sixbell-telco-sdk-components-forms-radio.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-range.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-forms-range.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-select.mjs +23 -33
- package/fesm2022/sixbell-telco-sdk-components-forms-select.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-switch.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-forms-switch.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-textarea.mjs +34 -47
- package/fesm2022/sixbell-telco-sdk-components-forms-textarea.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-toggle.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-forms-toggle.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-link.mjs +27 -183
- package/fesm2022/sixbell-telco-sdk-components-link.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-modal.mjs +62 -33
- package/fesm2022/sixbell-telco-sdk-components-modal.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-notification.mjs +1 -4
- package/fesm2022/sixbell-telco-sdk-components-notification.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-paginator.mjs +23 -23
- package/fesm2022/sixbell-telco-sdk-components-paginator.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-product-card.mjs +4 -13
- package/fesm2022/sixbell-telco-sdk-components-product-card.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-progress.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-progress.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-tab.mjs +1 -3
- package/fesm2022/sixbell-telco-sdk-components-tab.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-table.mjs +5 -5
- package/fesm2022/sixbell-telco-sdk-components-table.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-toast.mjs +3 -3
- package/fesm2022/sixbell-telco-sdk-components-toast.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-wizard.mjs +7 -7
- package/fesm2022/sixbell-telco-sdk-components-wizard.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-directives-click-outside.mjs +37 -0
- package/fesm2022/sixbell-telco-sdk-directives-click-outside.mjs.map +1 -0
- package/fesm2022/sixbell-telco-sdk-directives-typography.mjs +18 -17
- package/fesm2022/sixbell-telco-sdk-directives-typography.mjs.map +1 -1
- package/package.json +13 -7
|
@@ -51,7 +51,6 @@ const productCardContainer = cva(['card'], {
|
|
|
51
51
|
shadow: {
|
|
52
52
|
none: [],
|
|
53
53
|
primary: ['shadow-primary'],
|
|
54
|
-
secondary: ['shadow-secondary'],
|
|
55
54
|
},
|
|
56
55
|
height: {
|
|
57
56
|
fit: ['h-fit', 'min-h-[auto]'],
|
|
@@ -67,11 +66,6 @@ const productCardContainer = cva(['card'], {
|
|
|
67
66
|
'min-content': ['w-min', 'min-w-min'],
|
|
68
67
|
'max-content': ['w-max', 'min-w-max'],
|
|
69
68
|
},
|
|
70
|
-
shape: {
|
|
71
|
-
'round-sm': ['rounded-box-sm'],
|
|
72
|
-
'round-md': ['rounded-box-md'],
|
|
73
|
-
'round-lg': ['rounded-box-lg'],
|
|
74
|
-
},
|
|
75
69
|
size: {
|
|
76
70
|
sm: 'card-compact',
|
|
77
71
|
md: 'card-normal',
|
|
@@ -83,10 +77,9 @@ const productCardContainer = cva(['card'], {
|
|
|
83
77
|
},
|
|
84
78
|
},
|
|
85
79
|
defaultVariants: {
|
|
86
|
-
shadow: '
|
|
80
|
+
shadow: 'primary',
|
|
87
81
|
height: 'auto',
|
|
88
82
|
width: 'auto',
|
|
89
|
-
shape: 'round-sm',
|
|
90
83
|
size: 'md',
|
|
91
84
|
figurePosition: 'top',
|
|
92
85
|
},
|
|
@@ -128,13 +121,12 @@ const productCardFigure = cva([], {
|
|
|
128
121
|
figurePaddingX: 'none',
|
|
129
122
|
},
|
|
130
123
|
});
|
|
131
|
-
const productCardComponent = ({ shadow, height, width,
|
|
124
|
+
const productCardComponent = ({ shadow, height, width, size, figureBackground, figurePosition, figureAlignment, figurePaddingY, figurePaddingX, } = {}) => cx(productCardContainer({ shadow, height, width, size, figurePosition }), productCardFigure({ figureBackground, figureAlignment, figurePaddingX, figurePaddingY }));
|
|
132
125
|
class ProductCardComponent {
|
|
133
126
|
// Base table properties
|
|
134
127
|
shadow = input();
|
|
135
128
|
height = input();
|
|
136
129
|
width = input();
|
|
137
|
-
shape = input();
|
|
138
130
|
size = input();
|
|
139
131
|
figurePosition = input();
|
|
140
132
|
// Figure properties
|
|
@@ -156,7 +148,6 @@ class ProductCardComponent {
|
|
|
156
148
|
shadow: this.shadow(),
|
|
157
149
|
height: this.height(),
|
|
158
150
|
width: this.width(),
|
|
159
|
-
shape: this.shape(),
|
|
160
151
|
size: this.size(),
|
|
161
152
|
figurePosition: this.figurePosition(),
|
|
162
153
|
class: this.containerClasses(),
|
|
@@ -177,11 +168,11 @@ class ProductCardComponent {
|
|
|
177
168
|
return cn('card-actions', this.actionsClasses());
|
|
178
169
|
}
|
|
179
170
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: ProductCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
180
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.12", type: ProductCardComponent, isStandalone: true, selector: "st-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 },
|
|
171
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.12", type: ProductCardComponent, isStandalone: true, selector: "st-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 }, 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 }, icon: { classPropertyName: "icon", publicName: "icon", 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 iconVar = icon();\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 && !iconVar) {\n\t\t\t\t<img [src]=\"imageVar?.src\" [alt]=\"imageVar?.alt\" />\n\t\t\t} @else if (iconVar && !imageVar) {\n\t\t\t\t<st-icon [icon]=\"iconVar ?? fallbackIcon\" color=\"inherit\" size=\"lg\"></st-icon>\n\t\t\t} @else if (imageVar && iconVar) {\n\t\t\t\t<p typography [tyVariant]=\"'body'\" [tyColor]=\"'inherit'\" [tyFontWeight]=\"'normal'\">Se se debe definir una propiedad (icon o image)</p>\n\t\t\t} @else {\n\t\t\t\t<p typography [tyVariant]=\"'body'\" [tyColor]=\"'inherit'\" [tyFontWeight]=\"'normal'\">No se ha definido una imagen o un \u00EDcono valido</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 [tyVariant]=\"'h3'\" [tyColor]=\"'base'\" [tyFontWeight]=\"'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 [tyVariant]=\"'h3'\" [tyColor]=\"'base'\" [tyFontWeight]=\"'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 [tyVariant]=\"'h3'\" [tyColor]=\"'base'\" [tyFontWeight]=\"'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 && !iconVar) {\n\t\t\t\t<img [src]=\"imageVar?.src\" [alt]=\"imageVar?.alt\" />\n\t\t\t} @else if (iconVar && !imageVar) {\n\t\t\t\t<st-icon [icon]=\"iconVar ?? fallbackIcon\" color=\"inherit\" size=\"lg\"></st-icon>\n\t\t\t} @else if (imageVar && iconVar) {\n\t\t\t\t<p typography [tyVariant]=\"'body'\" [tyColor]=\"'inherit'\" [tyFontWeight]=\"'normal'\">Se se debe definir una propiedad (icon o image)</p>\n\t\t\t} @else {\n\t\t\t\t<p typography [tyVariant]=\"'body'\" [tyColor]=\"'inherit'\" [tyFontWeight]=\"'normal'\">No se ha definido una imagen o un \u00EDcono valido</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: ["tyVariant", "tyColor", "tyFontWeight"] }, { kind: "component", type: IconComponent, selector: "st-icon", inputs: ["color", "size", "classes", "icon"] }] });
|
|
181
172
|
}
|
|
182
173
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: ProductCardComponent, decorators: [{
|
|
183
174
|
type: Component,
|
|
184
|
-
args: [{ selector: 'st-product-card', standalone: true, imports: [NgTemplateOutlet, TypographyDirective, IconComponent], template: "@let figurePositionVar = this.figurePosition();\n@let imageVar = image();\n@let iconVar = icon();\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 && !iconVar) {\n\t\t\t\t<img [src]=\"imageVar?.src\" [alt]=\"imageVar?.alt\" />\n\t\t\t} @else if (iconVar && !imageVar) {\n\t\t\t\t<st-icon [icon]=\"iconVar ?? fallbackIcon\" color=\"inherit\" size=\"lg\"></st-icon>\n\t\t\t} @else if (imageVar && iconVar) {\n\t\t\t\t<p typography [
|
|
175
|
+
args: [{ selector: 'st-product-card', standalone: true, imports: [NgTemplateOutlet, TypographyDirective, IconComponent], template: "@let figurePositionVar = this.figurePosition();\n@let imageVar = image();\n@let iconVar = icon();\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 && !iconVar) {\n\t\t\t\t<img [src]=\"imageVar?.src\" [alt]=\"imageVar?.alt\" />\n\t\t\t} @else if (iconVar && !imageVar) {\n\t\t\t\t<st-icon [icon]=\"iconVar ?? fallbackIcon\" color=\"inherit\" size=\"lg\"></st-icon>\n\t\t\t} @else if (imageVar && iconVar) {\n\t\t\t\t<p typography [tyVariant]=\"'body'\" [tyColor]=\"'inherit'\" [tyFontWeight]=\"'normal'\">Se se debe definir una propiedad (icon o image)</p>\n\t\t\t} @else {\n\t\t\t\t<p typography [tyVariant]=\"'body'\" [tyColor]=\"'inherit'\" [tyFontWeight]=\"'normal'\">No se ha definido una imagen o un \u00EDcono valido</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 [tyVariant]=\"'h3'\" [tyColor]=\"'base'\" [tyFontWeight]=\"'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 [tyVariant]=\"'h3'\" [tyColor]=\"'base'\" [tyFontWeight]=\"'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 [tyVariant]=\"'h3'\" [tyColor]=\"'base'\" [tyFontWeight]=\"'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 && !iconVar) {\n\t\t\t\t<img [src]=\"imageVar?.src\" [alt]=\"imageVar?.alt\" />\n\t\t\t} @else if (iconVar && !imageVar) {\n\t\t\t\t<st-icon [icon]=\"iconVar ?? fallbackIcon\" color=\"inherit\" size=\"lg\"></st-icon>\n\t\t\t} @else if (imageVar && iconVar) {\n\t\t\t\t<p typography [tyVariant]=\"'body'\" [tyColor]=\"'inherit'\" [tyFontWeight]=\"'normal'\">Se se debe definir una propiedad (icon o image)</p>\n\t\t\t} @else {\n\t\t\t\t<p typography [tyVariant]=\"'body'\" [tyColor]=\"'inherit'\" [tyFontWeight]=\"'normal'\">No se ha definido una imagen o un \u00EDcono valido</p>\n\t\t\t}\n\t\t</figure>\n\t}\n</div>\n" }]
|
|
185
176
|
}] });
|
|
186
177
|
|
|
187
178
|
/**
|
|
@@ -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 { IconComponent } from '@sixbell-telco/sdk/components/icon';\nimport { matCallOutline } from '@sixbell-telco/sdk/components/icon/material/outline';\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: 'st-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\ticon = input<string>();\n\tfallbackIcon = matCallOutline;\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 iconVar = icon();\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 && !iconVar) {\n\t\t\t\t<img [src]=\"imageVar?.src\" [alt]=\"imageVar?.alt\" />\n\t\t\t} @else if (iconVar && !imageVar) {\n\t\t\t\t<st-icon [icon]=\"iconVar ?? fallbackIcon\" color=\"inherit\" size=\"lg\"></st-icon>\n\t\t\t} @else if (imageVar && iconVar) {\n\t\t\t\t<p typography [typographyVariant]=\"'body'\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'normal'\">\n\t\t\t\t\tSe se debe definir una propiedad (icon 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 && !iconVar) {\n\t\t\t\t<img [src]=\"imageVar?.src\" [alt]=\"imageVar?.alt\" />\n\t\t\t} @else if (iconVar && !imageVar) {\n\t\t\t\t<st-icon [icon]=\"iconVar ?? fallbackIcon\" color=\"inherit\" size=\"lg\"></st-icon>\n\t\t\t} @else if (imageVar && iconVar) {\n\t\t\t\t<p typography [typographyVariant]=\"'body'\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'normal'\">\n\t\t\t\t\tSe se debe definir una propiedad (icon 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;wGADjB,2BAA2B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;4FAA3B,2BAA2B,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,yBAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;4FAA3B,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;wGADjB,2BAA2B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;4FAA3B,2BAA2B,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,yBAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;4FAA3B,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,0BAA0B,CAAA;AACtC,IAAA,MAAM,GAAG,MAAM,CAAC,WAAW,CAAC,CAAC;wGADjB,0BAA0B,EAAA,IAAA,EAAA,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A,CAAA;kBAPhC,SAAS;+BACC,iBAAiB,EAAA,UAAA,EACf,IAAI,EACP,OAAA,EAAA,CAAC,gBAAgB,EAAE,mBAAmB,EAAE,aAAa,CAAC,EAAA,QAAA,EAAA,y1FAAA,EAAA,CAAA;;;AE5IhE;;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 } from '@sixbell-telco/sdk/components/icon';\nimport { matCallOutline } from '@sixbell-telco/sdk/components/icon/material/outline';\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},\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\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: 'primary',\n\t\theight: 'auto',\n\t\twidth: 'auto',\n\t\tsize: 'md',\n\t\tfigurePosition: 'top',\n\t},\n});\n\nexport type ProductCardContainerShadowProps = 'none' | 'primary' | 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 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\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\tsize,\n\tfigureBackground,\n\tfigurePosition,\n\tfigureAlignment,\n\tfigurePaddingY,\n\tfigurePaddingX,\n}: ProductCardVariantProps = {}) =>\n\tcx(\n\t\tproductCardContainer({ shadow, height, width, size, figurePosition }),\n\t\tproductCardFigure({ figureBackground, figureAlignment, figurePaddingX, figurePaddingY }),\n\t);\n\n@Component({\n\tselector: 'st-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\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\ticon = input<string>();\n\tfallbackIcon = matCallOutline;\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\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 iconVar = icon();\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 && !iconVar) {\n\t\t\t\t<img [src]=\"imageVar?.src\" [alt]=\"imageVar?.alt\" />\n\t\t\t} @else if (iconVar && !imageVar) {\n\t\t\t\t<st-icon [icon]=\"iconVar ?? fallbackIcon\" color=\"inherit\" size=\"lg\"></st-icon>\n\t\t\t} @else if (imageVar && iconVar) {\n\t\t\t\t<p typography [tyVariant]=\"'body'\" [tyColor]=\"'inherit'\" [tyFontWeight]=\"'normal'\">Se se debe definir una propiedad (icon o image)</p>\n\t\t\t} @else {\n\t\t\t\t<p typography [tyVariant]=\"'body'\" [tyColor]=\"'inherit'\" [tyFontWeight]=\"'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]=\"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 [tyVariant]=\"'h3'\" [tyColor]=\"'base'\" [tyFontWeight]=\"'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 [tyVariant]=\"'h3'\" [tyColor]=\"'base'\" [tyFontWeight]=\"'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 [tyVariant]=\"'h3'\" [tyColor]=\"'base'\" [tyFontWeight]=\"'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 && !iconVar) {\n\t\t\t\t<img [src]=\"imageVar?.src\" [alt]=\"imageVar?.alt\" />\n\t\t\t} @else if (iconVar && !imageVar) {\n\t\t\t\t<st-icon [icon]=\"iconVar ?? fallbackIcon\" color=\"inherit\" size=\"lg\"></st-icon>\n\t\t\t} @else if (imageVar && iconVar) {\n\t\t\t\t<p typography [tyVariant]=\"'body'\" [tyColor]=\"'inherit'\" [tyFontWeight]=\"'normal'\">Se se debe definir una propiedad (icon o image)</p>\n\t\t\t} @else {\n\t\t\t\t<p typography [tyVariant]=\"'body'\" [tyColor]=\"'inherit'\" [tyFontWeight]=\"'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;wGADjB,2BAA2B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;4FAA3B,2BAA2B,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,yBAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;4FAA3B,2BAA2B,EAAA,UAAA,EAAA,CAAA;kBAJvC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,QAAQ,EAAE,yBAAyB;AACnC,oBAAA,UAAU,EAAE,IAAI;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OAAA,EAAA,MAAA,EAAA,SAAA,EAAA,MAAA,CAAA,EAAA,CAAA,EAAA,CAAA,CAAA;;4FAIlD,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBAPhC,SAAS;+BACC,iBAAiB,EAAA,UAAA,EACf,IAAI,EACP,OAAA,EAAA,CAAC,gBAAgB,EAAE,mBAAmB,EAAE,aAAa,CAAC,EAAA,QAAA,EAAA,slFAAA,EAAA,CAAA;;;AElIhE;;AAEG;;;;"}
|
|
@@ -35,11 +35,11 @@ class ProgressComponent {
|
|
|
35
35
|
}));
|
|
36
36
|
}
|
|
37
37
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: ProgressComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
38
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.12", type: ProgressComponent, isStandalone: true, selector: "st-progress", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, classes: { classPropertyName: "classes", publicName: "classes", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null }, indeterminate: { classPropertyName: "indeterminate", publicName: "indeterminate", isSignal: true, isRequired: false, transformFunction: null }, labelPosition: { classPropertyName: "labelPosition", publicName: "labelPosition", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<div class=\"flex flex-col items-center\">\n\t@if (value() >= 0 && labelPosition() === 'top') {\n\t\t<span typography [
|
|
38
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.12", type: ProgressComponent, isStandalone: true, selector: "st-progress", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, classes: { classPropertyName: "classes", publicName: "classes", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null }, indeterminate: { classPropertyName: "indeterminate", publicName: "indeterminate", isSignal: true, isRequired: false, transformFunction: null }, labelPosition: { classPropertyName: "labelPosition", publicName: "labelPosition", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<div class=\"flex flex-col items-center\">\n\t@if (value() >= 0 && labelPosition() === 'top') {\n\t\t<span typography [tyVariant]=\"'body-xs'\">{{ value() }} %</span>\n\t}\n\t<progress [class]=\"componentClass\" [attr.value]=\"!indeterminate() ? value() : null\" [max]=\"max()\"></progress>\n\t@if (value() >= 0 && labelPosition() === 'bottom') {\n\t\t<span typography [tyVariant]=\"'body-xs'\">{{ value() }} %</span>\n\t}\n</div>\n", dependencies: [{ kind: "directive", type: TypographyDirective, selector: "[typography]", inputs: ["tyVariant", "tyColor", "tyFontWeight"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
39
39
|
}
|
|
40
40
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: ProgressComponent, decorators: [{
|
|
41
41
|
type: Component,
|
|
42
|
-
args: [{ selector: 'st-progress', standalone: true, imports: [TypographyDirective], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"flex flex-col items-center\">\n\t@if (value() >= 0 && labelPosition() === 'top') {\n\t\t<span typography [
|
|
42
|
+
args: [{ selector: 'st-progress', standalone: true, imports: [TypographyDirective], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"flex flex-col items-center\">\n\t@if (value() >= 0 && labelPosition() === 'top') {\n\t\t<span typography [tyVariant]=\"'body-xs'\">{{ value() }} %</span>\n\t}\n\t<progress [class]=\"componentClass\" [attr.value]=\"!indeterminate() ? value() : null\" [max]=\"max()\"></progress>\n\t@if (value() >= 0 && labelPosition() === 'bottom') {\n\t\t<span typography [tyVariant]=\"'body-xs'\">{{ value() }} %</span>\n\t}\n</div>\n" }]
|
|
43
43
|
}] });
|
|
44
44
|
|
|
45
45
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sixbell-telco-sdk-components-progress.mjs","sources":["../../../projects/sdk/components/progress/src/progress.component.ts","../../../projects/sdk/components/progress/src/progress.component.html","../../../projects/sdk/components/progress/sixbell-telco-sdk-components-progress.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, input } from '@angular/core';\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 progressComponent = cva(['progress'], {\n\tvariants: {\n\t\tvariant: {\n\t\t\tprimary: ['progress-primary'],\n\t\t\tsecondary: ['progress-secondary'],\n\t\t\tsuccess: ['progress-success'],\n\t\t\tinfo: ['progress-info'],\n\t\t\terror: ['progress-error'],\n\t\t\twarning: ['progress-warning'],\n\t\t\taccent: ['progress-accent'],\n\t\t},\n\t},\n\tcompoundVariants: [],\n\tdefaultVariants: {\n\t\tvariant: 'primary',\n\t},\n});\n\nexport type ProgressVariantProps = 'primary' | 'secondary' | 'success' | 'info' | 'error' | 'warning' | 'accent' | null | undefined;\n\nexport type ProgressProps = {\n\tvariant?: ProgressVariantProps;\n};\n\n@Component({\n\tselector: 'st-progress',\n\ttemplateUrl: './progress.component.html',\n\tstandalone: true,\n\timports: [TypographyDirective],\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class ProgressComponent {\n\tvariant = input<ProgressVariantProps>();\n\tclasses = input<string>('');\n\tvalue = input<number>(-1);\n\tmax = input<number>(100);\n\tindeterminate = input<boolean>(false);\n\tlabelPosition = input<'top' | 'bottom' | 'none'>('none');\n\n\tget componentClass() {\n\t\treturn cn(\n\t\t\tprogressComponent({\n\t\t\t\tvariant: this.variant(),\n\t\t\t\tclass: this.classes(),\n\t\t\t}),\n\t\t);\n\t}\n}\n","<div class=\"flex flex-col items-center\">\n\t@if (value() >= 0 && labelPosition() === 'top') {\n\t\t<span typography [
|
|
1
|
+
{"version":3,"file":"sixbell-telco-sdk-components-progress.mjs","sources":["../../../projects/sdk/components/progress/src/progress.component.ts","../../../projects/sdk/components/progress/src/progress.component.html","../../../projects/sdk/components/progress/sixbell-telco-sdk-components-progress.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, input } from '@angular/core';\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 progressComponent = cva(['progress'], {\n\tvariants: {\n\t\tvariant: {\n\t\t\tprimary: ['progress-primary'],\n\t\t\tsecondary: ['progress-secondary'],\n\t\t\tsuccess: ['progress-success'],\n\t\t\tinfo: ['progress-info'],\n\t\t\terror: ['progress-error'],\n\t\t\twarning: ['progress-warning'],\n\t\t\taccent: ['progress-accent'],\n\t\t},\n\t},\n\tcompoundVariants: [],\n\tdefaultVariants: {\n\t\tvariant: 'primary',\n\t},\n});\n\nexport type ProgressVariantProps = 'primary' | 'secondary' | 'success' | 'info' | 'error' | 'warning' | 'accent' | null | undefined;\n\nexport type ProgressProps = {\n\tvariant?: ProgressVariantProps;\n};\n\n@Component({\n\tselector: 'st-progress',\n\ttemplateUrl: './progress.component.html',\n\tstandalone: true,\n\timports: [TypographyDirective],\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class ProgressComponent {\n\tvariant = input<ProgressVariantProps>();\n\tclasses = input<string>('');\n\tvalue = input<number>(-1);\n\tmax = input<number>(100);\n\tindeterminate = input<boolean>(false);\n\tlabelPosition = input<'top' | 'bottom' | 'none'>('none');\n\n\tget componentClass() {\n\t\treturn cn(\n\t\t\tprogressComponent({\n\t\t\t\tvariant: this.variant(),\n\t\t\t\tclass: this.classes(),\n\t\t\t}),\n\t\t);\n\t}\n}\n","<div class=\"flex flex-col items-center\">\n\t@if (value() >= 0 && labelPosition() === 'top') {\n\t\t<span typography [tyVariant]=\"'body-xs'\">{{ value() }} %</span>\n\t}\n\t<progress [class]=\"componentClass\" [attr.value]=\"!indeterminate() ? value() : null\" [max]=\"max()\"></progress>\n\t@if (value() >= 0 && labelPosition() === 'bottom') {\n\t\t<span typography [tyVariant]=\"'body-xs'\">{{ value() }} %</span>\n\t}\n</div>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;MAKa,iBAAiB,GAAG,GAAG,CAAC,CAAC,UAAU,CAAC,EAAE;AAClD,IAAA,QAAQ,EAAE;AACT,QAAA,OAAO,EAAE;YACR,OAAO,EAAE,CAAC,kBAAkB,CAAC;YAC7B,SAAS,EAAE,CAAC,oBAAoB,CAAC;YACjC,OAAO,EAAE,CAAC,kBAAkB,CAAC;YAC7B,IAAI,EAAE,CAAC,eAAe,CAAC;YACvB,KAAK,EAAE,CAAC,gBAAgB,CAAC;YACzB,OAAO,EAAE,CAAC,kBAAkB,CAAC;YAC7B,MAAM,EAAE,CAAC,iBAAiB,CAAC;AAC3B,SAAA;AACD,KAAA;AACD,IAAA,gBAAgB,EAAE,EAAE;AACpB,IAAA,eAAe,EAAE;AAChB,QAAA,OAAO,EAAE,SAAS;AAClB,KAAA;AACD,CAAA,EAAE;MAeU,iBAAiB,CAAA;IAC7B,OAAO,GAAG,KAAK,EAAwB,CAAC;AACxC,IAAA,OAAO,GAAG,KAAK,CAAS,EAAE,CAAC,CAAC;AAC5B,IAAA,KAAK,GAAG,KAAK,CAAS,CAAC,CAAC,CAAC,CAAC;AAC1B,IAAA,GAAG,GAAG,KAAK,CAAS,GAAG,CAAC,CAAC;AACzB,IAAA,aAAa,GAAG,KAAK,CAAU,KAAK,CAAC,CAAC;AACtC,IAAA,aAAa,GAAG,KAAK,CAA4B,MAAM,CAAC,CAAC;AAEzD,IAAA,IAAI,cAAc,GAAA;QACjB,OAAO,EAAE,CACR,iBAAiB,CAAC;AACjB,YAAA,OAAO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,kbASA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EDwBW,mBAAmB,EAAA,QAAA,EAAA,cAAA,EAAA,MAAA,EAAA,CAAA,WAAA,EAAA,SAAA,EAAA,cAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;4FAGjB,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAP7B,SAAS;+BACC,aAAa,EAAA,UAAA,EAEX,IAAI,EACP,OAAA,EAAA,CAAC,mBAAmB,CAAC,EAAA,eAAA,EACb,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,kbAAA,EAAA,CAAA;;;AElChD;;AAEG;;;;"}
|
|
@@ -119,18 +119,16 @@ const tabComponent = cva(['tabs'], {
|
|
|
119
119
|
class TabComponent {
|
|
120
120
|
variant = input();
|
|
121
121
|
size = input();
|
|
122
|
-
classes = input('');
|
|
123
122
|
disabled = input(false);
|
|
124
123
|
active = input(false);
|
|
125
124
|
get componentClass() {
|
|
126
125
|
return cn(tabComponent({
|
|
127
126
|
variant: this.variant(),
|
|
128
127
|
size: this.size(),
|
|
129
|
-
class: this.classes(),
|
|
130
128
|
}));
|
|
131
129
|
}
|
|
132
130
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: TabComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
133
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "18.2.12", type: TabComponent, isStandalone: true, selector: "st-tab", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null },
|
|
131
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "18.2.12", type: TabComponent, isStandalone: true, selector: "st-tab", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, active: { classPropertyName: "active", publicName: "active", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<div role=\"tablist\" [class]=\"componentClass\">\n\t<ng-content></ng-content>\n</div>\n", styles: [""] });
|
|
134
132
|
}
|
|
135
133
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: TabComponent, decorators: [{
|
|
136
134
|
type: Component,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sixbell-telco-sdk-components-tab.mjs","sources":["../../../projects/sdk/components/tab/directives/tab-content/tab-content.directive.ts","../../../projects/sdk/components/tab/directives/tab-header/tab-header.directive.ts","../../../projects/sdk/components/tab/src/tab.component.ts","../../../projects/sdk/components/tab/src/tab.component.html","../../../projects/sdk/components/tab/sixbell-telco-sdk-components-tab.ts"],"sourcesContent":["import { Directive, effect, ElementRef, inject, input, Renderer2 } from '@angular/core';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { cva } from 'class-variance-authority';\n\nconst tabContentDirective = cva(['tab-content '], {\n\tvariants: {\n\t\tpadding: {\n\t\t\txs: 'p-2',\n\t\t\tsm: 'p-5',\n\t\t\tmd: 'p-10',\n\t\t\tlg: 'p-20',\n\t\t},\n\t},\n\tdefaultVariants: {\n\t\tpadding: 'md',\n\t},\n});\n\nexport type TabContentVariantProps = 'xs' | 'sm' | 'md' | 'lg' | null | undefined;\n\nexport type TabContentDirectiveProps = {\n\tvariant?: TabContentVariantProps;\n};\n\n@Directive({\n\t// eslint-disable-next-line @angular-eslint/directive-selector\n\tselector: 'div[tab-content]',\n\tstandalone: true,\n})\nexport class TabContentDirective {\n\tpadding = input<TabContentVariantProps>();\n\tclasses = input<string>('');\n\tlabel = input<string>('');\n\n\tprivate element: ElementRef = inject(ElementRef);\n\tprivate renderer: Renderer2 = inject(Renderer2);\n\n\tget componentClass() {\n\t\treturn cn(\n\t\t\ttabContentDirective({\n\t\t\t\tpadding: this.padding(),\n\t\t\t\tclass: this.classes(),\n\t\t\t}),\n\t\t);\n\t}\n\n\tclassListEffect = effect(() => {\n\t\tconst classList = this.componentClass;\n\t\tthis.renderer.setAttribute(this.element.nativeElement, 'class', classList);\n\t\tthis.renderer.setAttribute(this.element.nativeElement, 'role', 'tabpanel');\n\t});\n}\n","import { Directive, effect, ElementRef, inject, input, Renderer2 } from '@angular/core';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { cva } from 'class-variance-authority';\n\nconst tabHeaderDirective = cva(['tab'], {\n\tvariants: {\n\t\tvariant: {\n\t\t\tdefault: '',\n\t\t\tactive: 'tab-active',\n\t\t\tdisabled: 'tab-disabled',\n\t\t},\n\t},\n\tdefaultVariants: {\n\t\tvariant: 'default',\n\t},\n});\n\nexport type TabHeaderVariantProps = 'default' | 'active' | 'disabled' | null | undefined;\n\nexport type TabHeaderDirectiveProps = {\n\tvariant?: TabHeaderVariantProps;\n};\n\n@Directive({\n\t// eslint-disable-next-line @angular-eslint/directive-selector\n\tselector: 'a[tab-header]',\n\tstandalone: true,\n})\nexport class TabHeaderDirective {\n\tvariant = input<TabHeaderVariantProps>();\n\tclasses = input<string>('');\n\tstatus = input<TabHeaderVariantProps>();\n\tlabel = input<string>('');\n\n\tprivate element: ElementRef = inject(ElementRef);\n\tprivate renderer: Renderer2 = inject(Renderer2);\n\n\tget componentClass() {\n\t\tif (this.status()) {\n\t\t\treturn cn(\n\t\t\t\ttabHeaderDirective({\n\t\t\t\t\tvariant: this.status(),\n\t\t\t\t\tclass: this.classes(),\n\t\t\t\t}),\n\t\t\t);\n\t\t} else {\n\t\t\treturn cn(\n\t\t\t\ttabHeaderDirective({\n\t\t\t\t\tvariant: this.variant(),\n\t\t\t\t\tclass: this.classes(),\n\t\t\t\t}),\n\t\t\t);\n\t\t}\n\t}\n\n\tclassListEffect = effect(() => {\n\t\tconst classList = this.componentClass;\n\t\tthis.renderer.setAttribute(this.element.nativeElement, 'class', classList);\n\t\tthis.renderer.setAttribute(this.element.nativeElement, 'aria-label', this.label());\n\t\tthis.renderer.setAttribute(this.element.nativeElement, 'role', 'tab');\n\t\tthis.renderer.setAttribute(this.element.nativeElement, 'tabindex', '0');\n\t});\n}\n","import { Component, input } from '@angular/core';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { cva } from 'class-variance-authority';\nimport { TabHeaderVariantProps } from '../directives/tab-header/tab-header.directive';\n\nexport type Tab = {\n\tid: string;\n\tlabel: string;\n\tstatus: TabHeaderVariantProps;\n};\n\nexport const tabComponent = cva(['tabs'], {\n\tvariants: {\n\t\tvariant: {\n\t\t\tbodexed: ['tabs-boxed'],\n\t\t\tbordered: ['tabs-bordered'],\n\t\t\tlifted: ['tabs-lifted'],\n\t\t},\n\t\tsize: {\n\t\t\txs: 'tabs-xs',\n\t\t\tsm: 'tabs-sm',\n\t\t\tmd: 'tabs-md',\n\t\t\tlg: 'tabs-lg',\n\t\t},\n\t},\n\tdefaultVariants: {\n\t\tvariant: 'bodexed',\n\t\tsize: 'md',\n\t},\n});\n\nexport type TabVariantProps = 'bodexed' | 'bordered' | 'lifted' | null | undefined;\nexport type TabSizeProps = 'xs' | 'sm' | 'md' | 'lg' | null | undefined;\n\nexport type TabProps = {\n\tvariant?: TabVariantProps;\n\tsize?: TabSizeProps;\n};\n\n@Component({\n\tselector: 'st-tab',\n\tstandalone: true,\n\timports: [],\n\ttemplateUrl: './tab.component.html',\n\tstyles: '',\n})\nexport class TabComponent {\n\tvariant = input<TabVariantProps>();\n\tsize = input<TabSizeProps>();\n\tclasses = input<string>('');\n\tdisabled = input<boolean>(false);\n\tactive = input<boolean>(false);\n\n\tget componentClass() {\n\t\treturn cn(\n\t\t\ttabComponent({\n\t\t\t\tvariant: this.variant(),\n\t\t\t\tsize: this.size(),\n\t\t\t\tclass: this.classes(),\n\t\t\t}),\n\t\t);\n\t}\n}\n","<div role=\"tablist\" [class]=\"componentClass\">\n\t<ng-content></ng-content>\n</div>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;AAIA,MAAM,mBAAmB,GAAG,GAAG,CAAC,CAAC,cAAc,CAAC,EAAE;AACjD,IAAA,QAAQ,EAAE;AACT,QAAA,OAAO,EAAE;AACR,YAAA,EAAE,EAAE,KAAK;AACT,YAAA,EAAE,EAAE,KAAK;AACT,YAAA,EAAE,EAAE,MAAM;AACV,YAAA,EAAE,EAAE,MAAM;AACV,SAAA;AACD,KAAA;AACD,IAAA,eAAe,EAAE;AAChB,QAAA,OAAO,EAAE,IAAI;AACb,KAAA;AACD,CAAA,CAAC,CAAC;MAaU,mBAAmB,CAAA;IAC/B,OAAO,GAAG,KAAK,EAA0B,CAAC;AAC1C,IAAA,OAAO,GAAG,KAAK,CAAS,EAAE,CAAC,CAAC;AAC5B,IAAA,KAAK,GAAG,KAAK,CAAS,EAAE,CAAC,CAAC;AAElB,IAAA,OAAO,GAAe,MAAM,CAAC,UAAU,CAAC,CAAC;AACzC,IAAA,QAAQ,GAAc,MAAM,CAAC,SAAS,CAAC,CAAC;AAEhD,IAAA,IAAI,cAAc,GAAA;QACjB,OAAO,EAAE,CACR,mBAAmB,CAAC;AACnB,YAAA,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE;AACvB,YAAA,KAAK,EAAE,IAAI,CAAC,OAAO,EAAE;AACrB,SAAA,CAAC,CACF,CAAC;KACF;AAED,IAAA,eAAe,GAAG,MAAM,CAAC,MAAK;AAC7B,QAAA,MAAM,SAAS,GAAG,IAAI,CAAC,cAAc,CAAC;AACtC,QAAA,IAAI,CAAC,QAAQ,CAAC,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,aAAa,EAAE,OAAO,EAAE,SAAS,CAAC,CAAC;AAC3E,QAAA,IAAI,C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,CAAA;;4FD2Ca,YAAY,EAAA,UAAA,EAAA,CAAA;kBAPxB,SAAS;+BACC,QAAQ,EAAA,UAAA,EACN,IAAI,EAAA,OAAA,EACP,EAAE,EAAA,QAAA,EAAA,0FAAA,EAAA,CAAA;;;AE1CZ;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"sixbell-telco-sdk-components-tab.mjs","sources":["../../../projects/sdk/components/tab/directives/tab-content/tab-content.directive.ts","../../../projects/sdk/components/tab/directives/tab-header/tab-header.directive.ts","../../../projects/sdk/components/tab/src/tab.component.ts","../../../projects/sdk/components/tab/src/tab.component.html","../../../projects/sdk/components/tab/sixbell-telco-sdk-components-tab.ts"],"sourcesContent":["import { Directive, effect, ElementRef, inject, input, Renderer2 } from '@angular/core';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { cva } from 'class-variance-authority';\n\nconst tabContentDirective = cva(['tab-content '], {\n\tvariants: {\n\t\tpadding: {\n\t\t\txs: 'p-2',\n\t\t\tsm: 'p-5',\n\t\t\tmd: 'p-10',\n\t\t\tlg: 'p-20',\n\t\t},\n\t},\n\tdefaultVariants: {\n\t\tpadding: 'md',\n\t},\n});\n\nexport type TabContentVariantProps = 'xs' | 'sm' | 'md' | 'lg' | null | undefined;\n\nexport type TabContentDirectiveProps = {\n\tvariant?: TabContentVariantProps;\n};\n\n@Directive({\n\t// eslint-disable-next-line @angular-eslint/directive-selector\n\tselector: 'div[tab-content]',\n\tstandalone: true,\n})\nexport class TabContentDirective {\n\tpadding = input<TabContentVariantProps>();\n\tclasses = input<string>('');\n\tlabel = input<string>('');\n\n\tprivate element: ElementRef = inject(ElementRef);\n\tprivate renderer: Renderer2 = inject(Renderer2);\n\n\tget componentClass() {\n\t\treturn cn(\n\t\t\ttabContentDirective({\n\t\t\t\tpadding: this.padding(),\n\t\t\t\tclass: this.classes(),\n\t\t\t}),\n\t\t);\n\t}\n\n\tclassListEffect = effect(() => {\n\t\tconst classList = this.componentClass;\n\t\tthis.renderer.setAttribute(this.element.nativeElement, 'class', classList);\n\t\tthis.renderer.setAttribute(this.element.nativeElement, 'role', 'tabpanel');\n\t});\n}\n","import { Directive, effect, ElementRef, inject, input, Renderer2 } from '@angular/core';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { cva } from 'class-variance-authority';\n\nconst tabHeaderDirective = cva(['tab'], {\n\tvariants: {\n\t\tvariant: {\n\t\t\tdefault: '',\n\t\t\tactive: 'tab-active',\n\t\t\tdisabled: 'tab-disabled',\n\t\t},\n\t},\n\tdefaultVariants: {\n\t\tvariant: 'default',\n\t},\n});\n\nexport type TabHeaderVariantProps = 'default' | 'active' | 'disabled' | null | undefined;\n\nexport type TabHeaderDirectiveProps = {\n\tvariant?: TabHeaderVariantProps;\n};\n\n@Directive({\n\t// eslint-disable-next-line @angular-eslint/directive-selector\n\tselector: 'a[tab-header]',\n\tstandalone: true,\n})\nexport class TabHeaderDirective {\n\tvariant = input<TabHeaderVariantProps>();\n\tclasses = input<string>('');\n\tstatus = input<TabHeaderVariantProps>();\n\tlabel = input<string>('');\n\n\tprivate element: ElementRef = inject(ElementRef);\n\tprivate renderer: Renderer2 = inject(Renderer2);\n\n\tget componentClass() {\n\t\tif (this.status()) {\n\t\t\treturn cn(\n\t\t\t\ttabHeaderDirective({\n\t\t\t\t\tvariant: this.status(),\n\t\t\t\t\tclass: this.classes(),\n\t\t\t\t}),\n\t\t\t);\n\t\t} else {\n\t\t\treturn cn(\n\t\t\t\ttabHeaderDirective({\n\t\t\t\t\tvariant: this.variant(),\n\t\t\t\t\tclass: this.classes(),\n\t\t\t\t}),\n\t\t\t);\n\t\t}\n\t}\n\n\tclassListEffect = effect(() => {\n\t\tconst classList = this.componentClass;\n\t\tthis.renderer.setAttribute(this.element.nativeElement, 'class', classList);\n\t\tthis.renderer.setAttribute(this.element.nativeElement, 'aria-label', this.label());\n\t\tthis.renderer.setAttribute(this.element.nativeElement, 'role', 'tab');\n\t\tthis.renderer.setAttribute(this.element.nativeElement, 'tabindex', '0');\n\t});\n}\n","import { Component, input } from '@angular/core';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { cva } from 'class-variance-authority';\nimport { TabHeaderVariantProps } from '../directives/tab-header/tab-header.directive';\n\nexport type Tab = {\n\tid: string;\n\tlabel: string;\n\tstatus: TabHeaderVariantProps;\n};\n\nexport const tabComponent = cva(['tabs'], {\n\tvariants: {\n\t\tvariant: {\n\t\t\tbodexed: ['tabs-boxed'],\n\t\t\tbordered: ['tabs-bordered'],\n\t\t\tlifted: ['tabs-lifted'],\n\t\t},\n\t\tsize: {\n\t\t\txs: 'tabs-xs',\n\t\t\tsm: 'tabs-sm',\n\t\t\tmd: 'tabs-md',\n\t\t\tlg: 'tabs-lg',\n\t\t},\n\t},\n\tdefaultVariants: {\n\t\tvariant: 'bodexed',\n\t\tsize: 'md',\n\t},\n});\n\nexport type TabVariantProps = 'bodexed' | 'bordered' | 'lifted' | null | undefined;\nexport type TabSizeProps = 'xs' | 'sm' | 'md' | 'lg' | null | undefined;\n\nexport type TabProps = {\n\tvariant?: TabVariantProps;\n\tsize?: TabSizeProps;\n};\n\n@Component({\n\tselector: 'st-tab',\n\tstandalone: true,\n\timports: [],\n\ttemplateUrl: './tab.component.html',\n\tstyles: '',\n})\nexport class TabComponent {\n\tvariant = input<TabVariantProps>();\n\tsize = input<TabSizeProps>();\n\tdisabled = input<boolean>(false);\n\tactive = input<boolean>(false);\n\n\tget componentClass() {\n\t\treturn cn(\n\t\t\ttabComponent({\n\t\t\t\tvariant: this.variant(),\n\t\t\t\tsize: this.size(),\n\t\t\t}),\n\t\t);\n\t}\n}\n","<div role=\"tablist\" [class]=\"componentClass\">\n\t<ng-content></ng-content>\n</div>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;AAIA,MAAM,mBAAmB,GAAG,GAAG,CAAC,CAAC,cAAc,CAAC,EAAE;AACjD,IAAA,QAAQ,EAAE;AACT,QAAA,OAAO,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SAAS;AACb,SAAA;AACD,KAAA;AACD,IAAA,eAAe,EAAE;AAChB,QAAA,OAAO,EAAE,SAAS;AAClB,QAAA,IAAI,EAAE,IAAI;AACV,KAAA;AACD,CAAA,EAAE;MAiBU,YAAY,CAAA;IACxB,OAAO,GAAG,KAAK,EAAmB,CAAC;IACnC,IAAI,GAAG,KAAK,EAAgB,CAAC;AAC7B,IAAA,QAAQ,GAAG,KAAK,CAAU,KAAK,CAAC,CAAC;AACjC,IAAA,MAAM,GAAG,KAAK,CAAU,KAAK,CAAC,CAAC;AAE/B,IAAA,IAAI,cAAc,GAAA;QACjB,OAAO,EAAE,CACR,YAAY,CAAC;AACZ,YAAA,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE;AACvB,YAAA,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE;AACjB,SAAA,CAAC,CACF,CAAC;KACF;wGAbW,YAAY,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAZ,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,YAAY,6jBC9CzB,0FAGA,EAAA,MAAA,EAAA,CAAA,EAAA,CAAA,EAAA,CAAA,CAAA;;4FD2Ca,YAAY,EAAA,UAAA,EAAA,CAAA;kBAPxB,SAAS;+BACC,QAAQ,EAAA,UAAA,EACN,IAAI,EAAA,OAAA,EACP,EAAE,EAAA,QAAA,EAAA,0FAAA,EAAA,CAAA;;;AE1CZ;;AAEG;;;;"}
|
|
@@ -22,7 +22,7 @@ class TableHeaderCheckboxComponent {
|
|
|
22
22
|
this.table.handleToggleAll(value);
|
|
23
23
|
}
|
|
24
24
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: TableHeaderCheckboxComponent, deps: [{ token: TableComponent, host: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
25
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "18.2.12", type: TableHeaderCheckboxComponent, isStandalone: true, selector: "tr[header-checkbox]", inputs: { checkboxVariant: { classPropertyName: "checkboxVariant", publicName: "checkboxVariant", isSignal: true, isRequired: false, transformFunction: null }, checkboxSize: { classPropertyName: "checkboxSize", publicName: "checkboxSize", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<th class=\"w-6\">\n\t<st-checkbox [(value)]=\"checked\" (onChange)=\"handleSelectAll($event)\" [variant]=\"checkboxVariant()\" [size]=\"checkboxSize()\" />\n</th>\n<ng-content></ng-content>\n", dependencies: [{ kind: "component", type: CheckboxComponent, selector: "st-checkbox", inputs: ["variant", "size", "
|
|
25
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "18.2.12", type: TableHeaderCheckboxComponent, isStandalone: true, selector: "tr[header-checkbox]", inputs: { checkboxVariant: { classPropertyName: "checkboxVariant", publicName: "checkboxVariant", isSignal: true, isRequired: false, transformFunction: null }, checkboxSize: { classPropertyName: "checkboxSize", publicName: "checkboxSize", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<th class=\"w-6\">\n\t<st-checkbox [(value)]=\"checked\" (onChange)=\"handleSelectAll($event)\" [variant]=\"checkboxVariant()\" [size]=\"checkboxSize()\" />\n</th>\n<ng-content></ng-content>\n", dependencies: [{ kind: "component", type: CheckboxComponent, selector: "st-checkbox", inputs: ["variant", "size", "label", "name", "value", "disabled"], outputs: ["valueChange", "disabledChange", "onChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
26
26
|
}
|
|
27
27
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: TableHeaderCheckboxComponent, decorators: [{
|
|
28
28
|
type: Component,
|
|
@@ -44,7 +44,7 @@ class TableRowCheckboxComponent {
|
|
|
44
44
|
this.table.handleToggleCheckbox(value, this.identifier());
|
|
45
45
|
}
|
|
46
46
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: TableRowCheckboxComponent, deps: [{ token: TableComponent, host: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
47
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "18.2.12", type: TableRowCheckboxComponent, isStandalone: true, selector: "tr[row-checkbox]", inputs: { checkboxVariant: { classPropertyName: "checkboxVariant", publicName: "checkboxVariant", isSignal: true, isRequired: false, transformFunction: null }, checkboxSize: { classPropertyName: "checkboxSize", publicName: "checkboxSize", isSignal: true, isRequired: false, transformFunction: null }, identifier: { classPropertyName: "identifier", publicName: "identifier", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0, template: "<td>\n\t<st-checkbox [(value)]=\"checked\" (onChange)=\"handleSelect($event)\" [variant]=\"checkboxVariant()\" [size]=\"checkboxSize()\"></st-checkbox>\n</td>\n<ng-content></ng-content>\n", dependencies: [{ kind: "component", type: CheckboxComponent, selector: "st-checkbox", inputs: ["variant", "size", "
|
|
47
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "18.2.12", type: TableRowCheckboxComponent, isStandalone: true, selector: "tr[row-checkbox]", inputs: { checkboxVariant: { classPropertyName: "checkboxVariant", publicName: "checkboxVariant", isSignal: true, isRequired: false, transformFunction: null }, checkboxSize: { classPropertyName: "checkboxSize", publicName: "checkboxSize", isSignal: true, isRequired: false, transformFunction: null }, identifier: { classPropertyName: "identifier", publicName: "identifier", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0, template: "<td>\n\t<st-checkbox [(value)]=\"checked\" (onChange)=\"handleSelect($event)\" [variant]=\"checkboxVariant()\" [size]=\"checkboxSize()\"></st-checkbox>\n</td>\n<ng-content></ng-content>\n", dependencies: [{ kind: "component", type: CheckboxComponent, selector: "st-checkbox", inputs: ["variant", "size", "label", "name", "value", "disabled"], outputs: ["valueChange", "disabledChange", "onChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
48
48
|
}
|
|
49
49
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: TableRowCheckboxComponent, decorators: [{
|
|
50
50
|
type: Component,
|
|
@@ -53,7 +53,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.12", ngImpo
|
|
|
53
53
|
type: Host
|
|
54
54
|
}] }] });
|
|
55
55
|
|
|
56
|
-
const tableContent = cva(['table', 'font-body', 'relative border-separate border-spacing-0', '[&_th]:bg-neutral [&_th]:text-neutral-content'
|
|
56
|
+
const tableContent = cva(['table', 'font-body', 'relative border-separate border-spacing-0', '[&_th]:bg-neutral [&_th]:text-neutral-content'], {
|
|
57
57
|
variants: {
|
|
58
58
|
size: {
|
|
59
59
|
xs: ['table-xs'],
|
|
@@ -177,11 +177,11 @@ class TableComponent {
|
|
|
177
177
|
this.header()?.checked.set(false);
|
|
178
178
|
}
|
|
179
179
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: TableComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
180
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.12", type: TableComponent, isStandalone: true, selector: "st-table", inputs: { size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, height: { classPropertyName: "height", publicName: "height", isSignal: true, isRequired: false, transformFunction: null }, pinRows: { classPropertyName: "pinRows", publicName: "pinRows", isSignal: true, isRequired: false, transformFunction: null }, pinColumns: { classPropertyName: "pinColumns", publicName: "pinColumns", isSignal: true, isRequired: false, transformFunction: null }, zebra: { classPropertyName: "zebra", publicName: "zebra", isSignal: true, isRequired: false, transformFunction: null }, paginatorType: { classPropertyName: "paginatorType", publicName: "paginatorType", isSignal: true, isRequired: false, transformFunction: null }, labelEntriesByPage: { classPropertyName: "labelEntriesByPage", publicName: "labelEntriesByPage", isSignal: true, isRequired: false, transformFunction: null }, labelShowEntriesOf: { classPropertyName: "labelShowEntriesOf", publicName: "labelShowEntriesOf", isSignal: true, isRequired: false, transformFunction: null }, labelShowEntries: { classPropertyName: "labelShowEntries", publicName: "labelShowEntries", isSignal: true, isRequired: false, transformFunction: null }, data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: false, transformFunction: null }, totalItems: { classPropertyName: "totalItems", publicName: "totalItems", isSignal: true, isRequired: false, transformFunction: null }, error: { classPropertyName: "error", publicName: "error", isSignal: true, isRequired: false, transformFunction: null }, pagination: { classPropertyName: "pagination", publicName: "pagination", isSignal: true, isRequired: false, transformFunction: null }, maxSize: { classPropertyName: "maxSize", publicName: "maxSize", isSignal: true, isRequired: false, transformFunction: null }, showItemsPerPage: { classPropertyName: "showItemsPerPage", publicName: "showItemsPerPage", isSignal: true, isRequired: false, transformFunction: null }, showEntries: { classPropertyName: "showEntries", publicName: "showEntries", isSignal: true, isRequired: false, transformFunction: null }, showPagination: { classPropertyName: "showPagination", publicName: "showPagination", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onPageChange: "onPageChange", onPageSizeChange: "onPageSizeChange", onCheck: "onCheck" }, queries: [{ propertyName: "header", first: true, predicate: TableHeaderCheckboxComponent, descendants: true, isSignal: true }, { propertyName: "rows", predicate: TableRowCheckboxComponent, descendants: true, isSignal: true }], ngImport: i0, template: "@let total = totalItems();\n@if (total > 0 || data().length > 0) {\n\t<div [class]=\"containerClass\">\n\t\t<!-- Table -->\n\t\t<div [class]=\"tableContainerClass\">\n\t\t\t<table [class]=\"tableClass\">\n\t\t\t\t<ng-content select=\"thead\" class=\"[&_tr]:\\hover\"></ng-content>\n\t\t\t\t<ng-content select=\"tbody\"></ng-content>\n\t\t\t</table>\n\t\t</div>\n\t\t@if (total > 0) {\n\t\t\t<!-- Divider -->\n\t\t\t<div class=\"divider divider-neutral my-0 h-[0.0625rem] px-4 before:h-[0.0625rem] after:h-[0.0625rem]\"></div>\n\t\t\t<!-- Paginator -->\n\t\t\t<div class=\"gap grid min-h-[30px] grid-cols-[1fr_3fr_1fr] items-center px-4\">\n\t\t\t\t<!-- Pagination info -->\n\t\t\t\t<div class=\"flex items-center justify-self-start\">\n\t\t\t\t\t@if (showItemsPerPage()) {\n\t\t\t\t\t\t<st-select\n\t\t\t\t\t\t\t[options]=\"[5, 10, 20, 50, 100]\"\n\t\t\t\t\t\t\t[value]=\"pagination().itemsPerPage\"\n\t\t\t\t\t\t\tsize=\"sm\"\n\t\t\t\t\t\t\t(onChange)=\"handlePageSizeChange($event)\"\n\t\t\t\t\t\t\tvariant=\"secondary\"\n\t\t\t\t\t\t\tshape=\"round-sm\"\n\t\t\t\t\t\t\theight=\"sm\"\n\t\t\t\t\t\t\t[class]=\"'min-w-min'\"\n\t\t\t\t\t\t></st-select>\n\t\t\t\t\t\t<div class=\"ml-2\">\n\t\t\t\t\t\t\t@let labelEntriesByPageVar = labelEntriesByPage();\n\t\t\t\t\t\t\t<span typography [
|
|
180
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.12", type: TableComponent, isStandalone: true, selector: "st-table", inputs: { size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, height: { classPropertyName: "height", publicName: "height", isSignal: true, isRequired: false, transformFunction: null }, pinRows: { classPropertyName: "pinRows", publicName: "pinRows", isSignal: true, isRequired: false, transformFunction: null }, pinColumns: { classPropertyName: "pinColumns", publicName: "pinColumns", isSignal: true, isRequired: false, transformFunction: null }, zebra: { classPropertyName: "zebra", publicName: "zebra", isSignal: true, isRequired: false, transformFunction: null }, paginatorType: { classPropertyName: "paginatorType", publicName: "paginatorType", isSignal: true, isRequired: false, transformFunction: null }, labelEntriesByPage: { classPropertyName: "labelEntriesByPage", publicName: "labelEntriesByPage", isSignal: true, isRequired: false, transformFunction: null }, labelShowEntriesOf: { classPropertyName: "labelShowEntriesOf", publicName: "labelShowEntriesOf", isSignal: true, isRequired: false, transformFunction: null }, labelShowEntries: { classPropertyName: "labelShowEntries", publicName: "labelShowEntries", isSignal: true, isRequired: false, transformFunction: null }, data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: false, transformFunction: null }, totalItems: { classPropertyName: "totalItems", publicName: "totalItems", isSignal: true, isRequired: false, transformFunction: null }, error: { classPropertyName: "error", publicName: "error", isSignal: true, isRequired: false, transformFunction: null }, pagination: { classPropertyName: "pagination", publicName: "pagination", isSignal: true, isRequired: false, transformFunction: null }, maxSize: { classPropertyName: "maxSize", publicName: "maxSize", isSignal: true, isRequired: false, transformFunction: null }, showItemsPerPage: { classPropertyName: "showItemsPerPage", publicName: "showItemsPerPage", isSignal: true, isRequired: false, transformFunction: null }, showEntries: { classPropertyName: "showEntries", publicName: "showEntries", isSignal: true, isRequired: false, transformFunction: null }, showPagination: { classPropertyName: "showPagination", publicName: "showPagination", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onPageChange: "onPageChange", onPageSizeChange: "onPageSizeChange", onCheck: "onCheck" }, queries: [{ propertyName: "header", first: true, predicate: TableHeaderCheckboxComponent, descendants: true, isSignal: true }, { propertyName: "rows", predicate: TableRowCheckboxComponent, descendants: true, isSignal: true }], ngImport: i0, template: "@let total = totalItems();\n@if (total > 0 || data().length > 0) {\n\t<div [class]=\"containerClass\">\n\t\t<!-- Table -->\n\t\t<div [class]=\"tableContainerClass\">\n\t\t\t<table [class]=\"tableClass\">\n\t\t\t\t<ng-content select=\"thead\" class=\"[&_tr]:\\hover\"></ng-content>\n\t\t\t\t<ng-content select=\"tbody\"></ng-content>\n\t\t\t</table>\n\t\t</div>\n\t\t@if (total > 0) {\n\t\t\t<!-- Divider -->\n\t\t\t<div class=\"divider divider-neutral my-0 h-[0.0625rem] px-4 before:h-[0.0625rem] after:h-[0.0625rem]\"></div>\n\t\t\t<!-- Paginator -->\n\t\t\t<div class=\"gap grid min-h-[30px] grid-cols-[1fr_3fr_1fr] items-center px-4\">\n\t\t\t\t<!-- Pagination info -->\n\t\t\t\t<div class=\"flex items-center justify-self-start\">\n\t\t\t\t\t@if (showItemsPerPage()) {\n\t\t\t\t\t\t<st-select\n\t\t\t\t\t\t\t[options]=\"[5, 10, 20, 50, 100]\"\n\t\t\t\t\t\t\t[value]=\"pagination().itemsPerPage\"\n\t\t\t\t\t\t\tsize=\"sm\"\n\t\t\t\t\t\t\t(onChange)=\"handlePageSizeChange($event)\"\n\t\t\t\t\t\t\tvariant=\"secondary\"\n\t\t\t\t\t\t\tshape=\"round-sm\"\n\t\t\t\t\t\t\theight=\"sm\"\n\t\t\t\t\t\t\t[class]=\"'min-w-min'\"\n\t\t\t\t\t\t></st-select>\n\t\t\t\t\t\t<div class=\"ml-2\">\n\t\t\t\t\t\t\t@let labelEntriesByPageVar = labelEntriesByPage();\n\t\t\t\t\t\t\t<span typography [tyVariant]=\"'body-xs'\" [tyColor]=\"'inherit'\">{{ labelEntriesByPageVar }}</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t}\n\t\t\t\t</div>\n\n\t\t\t\t<div class=\"justify-self-center\">\n\t\t\t\t\t@if (showPagination()) {\n\t\t\t\t\t\t@if (paginatorType() === 'default') {\n\t\t\t\t\t\t\t<st-paginator\n\t\t\t\t\t\t\t\t[paginatorId]=\"pagination().id\"\n\t\t\t\t\t\t\t\t[currentPage]=\"pagination().currentPage\"\n\t\t\t\t\t\t\t\t[maxSize]=\"maxSize()\"\n\t\t\t\t\t\t\t\t(onPageChange)=\"handlePageChange($event)\"\n\t\t\t\t\t\t\t></st-paginator>\n\t\t\t\t\t\t} @else if (paginatorType() === 'dots') {\n\t\t\t\t\t\t\t<st-paginator [paginatorId]=\"pagination().id\" (onPageChange)=\"handlePageChange($event)\" type=\"dots\"></st-paginator>\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t</div>\n\n\t\t\t\t<div class=\"flex items-center justify-self-end\">\n\t\t\t\t\t@if (showEntries()) {\n\t\t\t\t\t\t@let labelShowEntriesOfVar = labelShowEntriesOf();\n\t\t\t\t\t\t@let labelShowEntriesVar = labelShowEntries();\n\t\t\t\t\t\t@if (!showItemsPerPage() && !showPagination()) {\n\t\t\t\t\t\t\t<span typography [tyVariant]=\"'body-xs'\" [tyColor]=\"'inherit'\"> {{ total }} {{ labelShowEntriesVar }} </span>\n\t\t\t\t\t\t} @else {\n\t\t\t\t\t\t\t<span typography [tyVariant]=\"'body-xs'\" [tyColor]=\"'inherit'\">\n\t\t\t\t\t\t\t\t{{ paginationRange() }} {{ labelShowEntriesOfVar }} {{ total }} {{ labelShowEntriesVar }}\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t}\n\t</div>\n} @else {\n\t<div class=\"grid h-full place-content-center gap-4 rounded-box border border-solid border-neutral\">\n\t\t<div>\n\t\t\t<div class=\"grid place-content-center text-info\">\n\t\t\t\t<st-icon [icon]=\"infoIcon\" size=\"lg\" color=\"inherit\" size=\"lg\"></st-icon>\n\t\t\t</div>\n\t\t\t<span typography [tyVariant]=\"'body-xs'\" [tyColor]=\"'inherit'\">{{ error() }}</span>\n\t\t</div>\n\t</div>\n}\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: PaginatorComponent, selector: "st-paginator", inputs: ["paginatorId", "maxSize", "type", "pages", "currentPage"], outputs: ["onPageChange", "currentPageChange"] }, { kind: "directive", type: TypographyDirective, selector: "[typography]", inputs: ["tyVariant", "tyColor", "tyFontWeight"] }, { kind: "component", type: SelectComponent, selector: "st-select", inputs: ["variant", "size", "ghost", "name", "placeholder", "label", "value", "options", "emptyOptionText", "trackBy", "key", "parentForm", "formControlName", "disabled"], outputs: ["valueChange", "disabledChange", "onChange"] }, { kind: "component", type: IconComponent, selector: "st-icon", inputs: ["color", "size", "classes", "icon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
181
181
|
}
|
|
182
182
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: TableComponent, decorators: [{
|
|
183
183
|
type: Component,
|
|
184
|
-
args: [{ selector: 'st-table', standalone: true, imports: [CommonModule, PaginatorComponent, TypographyDirective, SelectComponent, IconComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: "@let total = totalItems();\n@if (total > 0 || data().length > 0) {\n\t<div [class]=\"containerClass\">\n\t\t<!-- Table -->\n\t\t<div [class]=\"tableContainerClass\">\n\t\t\t<table [class]=\"tableClass\">\n\t\t\t\t<ng-content select=\"thead\" class=\"[&_tr]:\\hover\"></ng-content>\n\t\t\t\t<ng-content select=\"tbody\"></ng-content>\n\t\t\t</table>\n\t\t</div>\n\t\t@if (total > 0) {\n\t\t\t<!-- Divider -->\n\t\t\t<div class=\"divider divider-neutral my-0 h-[0.0625rem] px-4 before:h-[0.0625rem] after:h-[0.0625rem]\"></div>\n\t\t\t<!-- Paginator -->\n\t\t\t<div class=\"gap grid min-h-[30px] grid-cols-[1fr_3fr_1fr] items-center px-4\">\n\t\t\t\t<!-- Pagination info -->\n\t\t\t\t<div class=\"flex items-center justify-self-start\">\n\t\t\t\t\t@if (showItemsPerPage()) {\n\t\t\t\t\t\t<st-select\n\t\t\t\t\t\t\t[options]=\"[5, 10, 20, 50, 100]\"\n\t\t\t\t\t\t\t[value]=\"pagination().itemsPerPage\"\n\t\t\t\t\t\t\tsize=\"sm\"\n\t\t\t\t\t\t\t(onChange)=\"handlePageSizeChange($event)\"\n\t\t\t\t\t\t\tvariant=\"secondary\"\n\t\t\t\t\t\t\tshape=\"round-sm\"\n\t\t\t\t\t\t\theight=\"sm\"\n\t\t\t\t\t\t\t[class]=\"'min-w-min'\"\n\t\t\t\t\t\t></st-select>\n\t\t\t\t\t\t<div class=\"ml-2\">\n\t\t\t\t\t\t\t@let labelEntriesByPageVar = labelEntriesByPage();\n\t\t\t\t\t\t\t<span typography [
|
|
184
|
+
args: [{ selector: 'st-table', standalone: true, imports: [CommonModule, PaginatorComponent, TypographyDirective, SelectComponent, IconComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: "@let total = totalItems();\n@if (total > 0 || data().length > 0) {\n\t<div [class]=\"containerClass\">\n\t\t<!-- Table -->\n\t\t<div [class]=\"tableContainerClass\">\n\t\t\t<table [class]=\"tableClass\">\n\t\t\t\t<ng-content select=\"thead\" class=\"[&_tr]:\\hover\"></ng-content>\n\t\t\t\t<ng-content select=\"tbody\"></ng-content>\n\t\t\t</table>\n\t\t</div>\n\t\t@if (total > 0) {\n\t\t\t<!-- Divider -->\n\t\t\t<div class=\"divider divider-neutral my-0 h-[0.0625rem] px-4 before:h-[0.0625rem] after:h-[0.0625rem]\"></div>\n\t\t\t<!-- Paginator -->\n\t\t\t<div class=\"gap grid min-h-[30px] grid-cols-[1fr_3fr_1fr] items-center px-4\">\n\t\t\t\t<!-- Pagination info -->\n\t\t\t\t<div class=\"flex items-center justify-self-start\">\n\t\t\t\t\t@if (showItemsPerPage()) {\n\t\t\t\t\t\t<st-select\n\t\t\t\t\t\t\t[options]=\"[5, 10, 20, 50, 100]\"\n\t\t\t\t\t\t\t[value]=\"pagination().itemsPerPage\"\n\t\t\t\t\t\t\tsize=\"sm\"\n\t\t\t\t\t\t\t(onChange)=\"handlePageSizeChange($event)\"\n\t\t\t\t\t\t\tvariant=\"secondary\"\n\t\t\t\t\t\t\tshape=\"round-sm\"\n\t\t\t\t\t\t\theight=\"sm\"\n\t\t\t\t\t\t\t[class]=\"'min-w-min'\"\n\t\t\t\t\t\t></st-select>\n\t\t\t\t\t\t<div class=\"ml-2\">\n\t\t\t\t\t\t\t@let labelEntriesByPageVar = labelEntriesByPage();\n\t\t\t\t\t\t\t<span typography [tyVariant]=\"'body-xs'\" [tyColor]=\"'inherit'\">{{ labelEntriesByPageVar }}</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t}\n\t\t\t\t</div>\n\n\t\t\t\t<div class=\"justify-self-center\">\n\t\t\t\t\t@if (showPagination()) {\n\t\t\t\t\t\t@if (paginatorType() === 'default') {\n\t\t\t\t\t\t\t<st-paginator\n\t\t\t\t\t\t\t\t[paginatorId]=\"pagination().id\"\n\t\t\t\t\t\t\t\t[currentPage]=\"pagination().currentPage\"\n\t\t\t\t\t\t\t\t[maxSize]=\"maxSize()\"\n\t\t\t\t\t\t\t\t(onPageChange)=\"handlePageChange($event)\"\n\t\t\t\t\t\t\t></st-paginator>\n\t\t\t\t\t\t} @else if (paginatorType() === 'dots') {\n\t\t\t\t\t\t\t<st-paginator [paginatorId]=\"pagination().id\" (onPageChange)=\"handlePageChange($event)\" type=\"dots\"></st-paginator>\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t</div>\n\n\t\t\t\t<div class=\"flex items-center justify-self-end\">\n\t\t\t\t\t@if (showEntries()) {\n\t\t\t\t\t\t@let labelShowEntriesOfVar = labelShowEntriesOf();\n\t\t\t\t\t\t@let labelShowEntriesVar = labelShowEntries();\n\t\t\t\t\t\t@if (!showItemsPerPage() && !showPagination()) {\n\t\t\t\t\t\t\t<span typography [tyVariant]=\"'body-xs'\" [tyColor]=\"'inherit'\"> {{ total }} {{ labelShowEntriesVar }} </span>\n\t\t\t\t\t\t} @else {\n\t\t\t\t\t\t\t<span typography [tyVariant]=\"'body-xs'\" [tyColor]=\"'inherit'\">\n\t\t\t\t\t\t\t\t{{ paginationRange() }} {{ labelShowEntriesOfVar }} {{ total }} {{ labelShowEntriesVar }}\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t}\n\t</div>\n} @else {\n\t<div class=\"grid h-full place-content-center gap-4 rounded-box border border-solid border-neutral\">\n\t\t<div>\n\t\t\t<div class=\"grid place-content-center text-info\">\n\t\t\t\t<st-icon [icon]=\"infoIcon\" size=\"lg\" color=\"inherit\" size=\"lg\"></st-icon>\n\t\t\t</div>\n\t\t\t<span typography [tyVariant]=\"'body-xs'\" [tyColor]=\"'inherit'\">{{ error() }}</span>\n\t\t</div>\n\t</div>\n}\n" }]
|
|
185
185
|
}] });
|
|
186
186
|
|
|
187
187
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sixbell-telco-sdk-components-table.mjs","sources":["../../../projects/sdk/components/table/table-header-checkbox/table-header-checkbox.component.ts","../../../projects/sdk/components/table/table-header-checkbox/table-header-checkbox.component.html","../../../projects/sdk/components/table/table-row-checkbox/table-row-checkbox.component.ts","../../../projects/sdk/components/table/table-row-checkbox/table-row-checkbox.component.html","../../../projects/sdk/components/table/src/table.component.ts","../../../projects/sdk/components/table/src/table.component.html","../../../projects/sdk/components/table/sixbell-telco-sdk-components-table.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, Host, input, signal } from '@angular/core';\nimport { CheckboxComponent, CheckboxSizeProps, CheckboxVariantProps } from '@sixbell-telco/sdk/components/forms/checkbox';\nimport { TableComponent } from '../src/table.component';\n\n@Component({\n\t// eslint-disable-next-line @angular-eslint/component-selector\n\tselector: 'tr[header-checkbox]',\n\tstandalone: true,\n\timports: [CheckboxComponent],\n\ttemplateUrl: './table-header-checkbox.component.html',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TableHeaderCheckboxComponent {\n\tcheckboxVariant = input<CheckboxVariantProps>('primary');\n\tcheckboxSize = input<CheckboxSizeProps>('md');\n\tchecked = signal<boolean>(false);\n\tconstructor(@Host() private table: TableComponent) {}\n\n\thandleSelectAll(value: boolean) {\n\t\tthis.table.handleToggleAll(value);\n\t}\n}\n","<th class=\"w-6\">\n\t<st-checkbox [(value)]=\"checked\" (onChange)=\"handleSelectAll($event)\" [variant]=\"checkboxVariant()\" [size]=\"checkboxSize()\" />\n</th>\n<ng-content></ng-content>\n","import { ChangeDetectionStrategy, Component, Host, input, signal } from '@angular/core';\nimport { CheckboxComponent, CheckboxSizeProps, CheckboxVariantProps } from '@sixbell-telco/sdk/components/forms/checkbox';\nimport { TableComponent } from '../src/table.component';\n\n@Component({\n\t// eslint-disable-next-line @angular-eslint/component-selector\n\tselector: 'tr[row-checkbox]',\n\tstandalone: true,\n\timports: [CheckboxComponent],\n\ttemplateUrl: './table-row-checkbox.component.html',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TableRowCheckboxComponent {\n\tcheckboxVariant = input<CheckboxVariantProps>('primary');\n\tcheckboxSize = input<CheckboxSizeProps>('md');\n\tidentifier = input.required();\n\tchecked = signal<boolean>(false);\n\n\tconstructor(@Host() private table: TableComponent) {}\n\n\thandleSelect(value: boolean) {\n\t\tthis.table.handleToggleCheckbox(value, this.identifier());\n\t}\n}\n","<td>\n\t<st-checkbox [(value)]=\"checked\" (onChange)=\"handleSelect($event)\" [variant]=\"checkboxVariant()\" [size]=\"checkboxSize()\"></st-checkbox>\n</td>\n<ng-content></ng-content>\n","import { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, computed, contentChild, contentChildren, effect, input, output, signal } from '@angular/core';\nimport { SelectComponent } from '@sixbell-telco/sdk/components/forms/select';\nimport { IconComponent } from '@sixbell-telco/sdk/components/icon';\nimport { matInfoOutline } from '@sixbell-telco/sdk/components/icon/material/outline';\nimport { PaginatorComponent } from '@sixbell-telco/sdk/components/paginator';\nimport { TypographyDirective } from '@sixbell-telco/sdk/directives/typography';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { cva, cx } from 'class-variance-authority';\nimport { TableHeaderCheckboxComponent } from '../table-header-checkbox/table-header-checkbox.component';\nimport { TableRowCheckboxComponent } from '../table-row-checkbox/table-row-checkbox.component';\n\nexport type PaginationType = 'default' | 'dots';\n\nexport const tableContent = cva(\n\t['table', 'font-body', 'relative border-separate border-spacing-0', '[&_th]:bg-neutral [&_th]:text-neutral-content', '[&_tbody_tr]:[hover]'],\n\t{\n\t\tvariants: {\n\t\t\tsize: {\n\t\t\t\txs: ['table-xs'],\n\t\t\t\tsm: ['table-sm'],\n\t\t\t\tmd: ['table-md'],\n\t\t\t\tlg: ['table-lg'],\n\t\t\t},\n\t\t},\n\t\tcompoundVariants: [],\n\t\tdefaultVariants: {\n\t\t\tsize: 'sm',\n\t\t},\n\t},\n);\n\nexport type TableContentSizeProps = 'xs' | 'sm' | 'md' | 'lg' | null | undefined;\n\nexport const tableContainer = cva(['overflow-y-auto rounded-t-box overscroll-contain'], {\n\tvariants: {\n\t\tcontainerHeight: {\n\t\t\tauto: ['h-auto'],\n\t\t\tfull: ['h-full'],\n\t\t\tsm: ['max-h-72 h-full'],\n\t\t\tmd: ['max-h-80 h-full'],\n\t\t\tlg: ['max-h-96 h-full'],\n\t\t\txl: ['max-h-[36rem] h-full'],\n\t\t},\n\t},\n\tcompoundVariants: [],\n\tdefaultVariants: {\n\t\tcontainerHeight: 'auto',\n\t},\n});\nexport type TableContainerHeightProps = 'auto' | 'full' | 'sm' | 'md' | 'lg' | 'xl' | null | undefined;\n\nexport type TableVariantProps = {\n\tsize?: TableContentSizeProps;\n\tcontainerHeight?: TableContainerHeightProps;\n};\nexport const tableComponent = ({ size, containerHeight }: TableVariantProps = {}) => cx(tableContent({ size }), tableContainer({ containerHeight }));\n\nexport type TablePagination = {\n\tid: string;\n\tcurrentPage: number;\n\titemsPerPage: number;\n\tsearch: string;\n};\n\n@Component({\n\tselector: 'st-table',\n\tstandalone: true,\n\timports: [CommonModule, PaginatorComponent, TypographyDirective, SelectComponent, IconComponent],\n\ttemplateUrl: './table.component.html',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TableComponent {\n\t// Base table properties\n\tsize = input<TableContentSizeProps>();\n\theight = input<TableContainerHeightProps>();\n\tpinRows = input<boolean>(false);\n\tpinColumns = input<boolean>(false);\n\tzebra = input<boolean>(false);\n\tpaginatorType = input<PaginationType>('default');\n\tlabelEntriesByPage = input<string>('entradas por página');\n\tlabelShowEntriesOf = input<string>('de');\n\tlabelShowEntries = input<string>('entradas');\n\tinfoIcon = matInfoOutline;\n\n\t// Table data\n\tdata = input<unknown[]>([]);\n\ttotalItems = input<number>(0);\n\terror = input<string>('No se encontraron usuarios');\n\n\t// Paginator properties\n\tpagination = input<TablePagination>({ id: 'paginator', currentPage: 1, itemsPerPage: 10, search: '' });\n\tmaxSize = input<number>(7);\n\tonPageChange = output<number>();\n\tonPageSizeChange = output<number>();\n\tshowItemsPerPage = input<boolean>(true);\n\tshowEntries = input<boolean>(true);\n\tshowPagination = input<boolean>(true);\n\n\tpaginationRange = computed(() => {\n\t\tconst start = this.pagination().currentPage * this.pagination().itemsPerPage - this.pagination().itemsPerPage + 1;\n\t\tconst end = Math.min(this.pagination().currentPage * this.pagination().itemsPerPage, this.totalItems());\n\t\treturn `${start}-${end}`;\n\t});\n\n\thandlePageChange(page: number) {\n\t\tthis.handleToggleAll(false);\n\t\tthis.onPageChange.emit(page);\n\t}\n\n\thandlePageSizeChange(size: number) {\n\t\tthis.handleToggleAll(false);\n\t\tthis.onPageSizeChange.emit(size);\n\t}\n\n\tget tableClass() {\n\t\treturn cn(\n\t\t\ttableContent({\n\t\t\t\tsize: this.size(),\n\t\t\t}),\n\t\t\t{\n\t\t\t\t'table-pin-rows': this.pinRows(),\n\t\t\t\t'table-pin-cols': this.pinColumns(),\n\t\t\t\t'table-zebra': this.zebra(),\n\t\t\t},\n\t\t);\n\t}\n\n\tget tableContainerClass() {\n\t\treturn cn(\n\t\t\ttableContainer({\n\t\t\t\tcontainerHeight: this.height(),\n\t\t\t}),\n\t\t);\n\t}\n\n\tget containerClass() {\n\t\treturn cn('flex flex-col gap-3 rounded-box border border-solid border-neutral pb-3', {\n\t\t\t'gap-3 pb-3': this.size() === 'xs' || this.size() === 'sm' || this.size() === 'md',\n\t\t\t'gap-4 pb-4': this.size() === 'lg',\n\t\t});\n\t}\n\n\t// For checkboxes on child components\n\theader = contentChild(TableHeaderCheckboxComponent, { descendants: true });\n\trows = contentChildren(TableRowCheckboxComponent, { descendants: true });\n\tidentifiers = signal<Set<unknown>>(new Set());\n\tonCheck = output<unknown[]>();\n\n\tcheckEffect = effect(() => {\n\t\tthis.onCheck.emit(Array.from(this.identifiers()));\n\t});\n\n\thandleToggleAll(value: boolean) {\n\t\tif (!value) {\n\t\t\tthis.clearList();\n\t\t}\n\n\t\tthis.rows().forEach((row) => {\n\t\t\trow.checked.set(value);\n\t\t\tif (value) {\n\t\t\t\tthis.identifiers.update((items) => new Set(items).add(row.identifier()));\n\t\t\t}\n\t\t});\n\t}\n\n\thandleToggleCheckbox(value: boolean, identifier: unknown) {\n\t\tif (value) {\n\t\t\tthis.identifiers.update((items) => new Set(items).add(identifier));\n\t\t} else {\n\t\t\tthis.header()?.checked.set(false);\n\t\t\tthis.identifiers.update((items) => {\n\t\t\t\titems.delete(identifier);\n\t\t\t\treturn new Set(items);\n\t\t\t});\n\t\t}\n\t}\n\n\tprivate clearList() {\n\t\tthis.identifiers.set(new Set());\n\t\tthis.header()?.checked.set(false);\n\t}\n}\n","@let total = totalItems();\n@if (total > 0 || data().length > 0) {\n\t<div [class]=\"containerClass\">\n\t\t<!-- Table -->\n\t\t<div [class]=\"tableContainerClass\">\n\t\t\t<table [class]=\"tableClass\">\n\t\t\t\t<ng-content select=\"thead\" class=\"[&_tr]:\\hover\"></ng-content>\n\t\t\t\t<ng-content select=\"tbody\"></ng-content>\n\t\t\t</table>\n\t\t</div>\n\t\t@if (total > 0) {\n\t\t\t<!-- Divider -->\n\t\t\t<div class=\"divider divider-neutral my-0 h-[0.0625rem] px-4 before:h-[0.0625rem] after:h-[0.0625rem]\"></div>\n\t\t\t<!-- Paginator -->\n\t\t\t<div class=\"gap grid min-h-[30px] grid-cols-[1fr_3fr_1fr] items-center px-4\">\n\t\t\t\t<!-- Pagination info -->\n\t\t\t\t<div class=\"flex items-center justify-self-start\">\n\t\t\t\t\t@if (showItemsPerPage()) {\n\t\t\t\t\t\t<st-select\n\t\t\t\t\t\t\t[options]=\"[5, 10, 20, 50, 100]\"\n\t\t\t\t\t\t\t[value]=\"pagination().itemsPerPage\"\n\t\t\t\t\t\t\tsize=\"sm\"\n\t\t\t\t\t\t\t(onChange)=\"handlePageSizeChange($event)\"\n\t\t\t\t\t\t\tvariant=\"secondary\"\n\t\t\t\t\t\t\tshape=\"round-sm\"\n\t\t\t\t\t\t\theight=\"sm\"\n\t\t\t\t\t\t\t[class]=\"'min-w-min'\"\n\t\t\t\t\t\t></st-select>\n\t\t\t\t\t\t<div class=\"ml-2\">\n\t\t\t\t\t\t\t@let labelEntriesByPageVar = labelEntriesByPage();\n\t\t\t\t\t\t\t<span typography [typographyVariant]=\"'body-xs'\" [typographyColor]=\"'inherit'\">{{ labelEntriesByPageVar }}</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t}\n\t\t\t\t</div>\n\n\t\t\t\t<div class=\"justify-self-center\">\n\t\t\t\t\t@if (showPagination()) {\n\t\t\t\t\t\t@if (paginatorType() === 'default') {\n\t\t\t\t\t\t\t<st-paginator\n\t\t\t\t\t\t\t\t[paginatorId]=\"pagination().id\"\n\t\t\t\t\t\t\t\t[currentPage]=\"pagination().currentPage\"\n\t\t\t\t\t\t\t\t[maxSize]=\"maxSize()\"\n\t\t\t\t\t\t\t\t(onPageChange)=\"handlePageChange($event)\"\n\t\t\t\t\t\t\t></st-paginator>\n\t\t\t\t\t\t} @else if (paginatorType() === 'dots') {\n\t\t\t\t\t\t\t<st-paginator [paginatorId]=\"pagination().id\" (onPageChange)=\"handlePageChange($event)\" type=\"dots\"></st-paginator>\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t</div>\n\n\t\t\t\t<div class=\"flex items-center justify-self-end\">\n\t\t\t\t\t@if (showEntries()) {\n\t\t\t\t\t\t@let labelShowEntriesOfVar = labelShowEntriesOf();\n\t\t\t\t\t\t@let labelShowEntriesVar = labelShowEntries();\n\t\t\t\t\t\t@if (!showItemsPerPage() && !showPagination()) {\n\t\t\t\t\t\t\t<span typography [typographyVariant]=\"'body-xs'\" [typographyColor]=\"'inherit'\"> {{ total }} {{ labelShowEntriesVar }} </span>\n\t\t\t\t\t\t} @else {\n\t\t\t\t\t\t\t<span typography [typographyVariant]=\"'body-xs'\" [typographyColor]=\"'inherit'\">\n\t\t\t\t\t\t\t\t{{ paginationRange() }} {{ labelShowEntriesOfVar }} {{ total }} {{ labelShowEntriesVar }}\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t}\n\t</div>\n} @else {\n\t<div class=\"grid h-full place-content-center gap-4 rounded-box border border-solid border-neutral\">\n\t\t<div>\n\t\t\t<div class=\"grid place-content-center text-info\">\n\t\t\t\t<st-icon [icon]=\"infoIcon\" size=\"lg\" color=\"inherit\" size=\"lg\"></st-icon>\n\t\t\t</div>\n\t\t\t<span typography [typographyVariant]=\"'body-xs'\" [typographyColor]=\"'inherit'\">{{ error() }}</span>\n\t\t</div>\n\t</div>\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i1.TableComponent"],"mappings":";;;;;;;;;;;;MAYa,4BAA4B,CAAA;AAIZ,IAAA,KAAA,CAAA;AAH5B,IAAA,eAAe,GAAG,KAAK,CAAuB,SAAS,CAAC,CAAC;AACzD,IAAA,YAAY,GAAG,KAAK,CAAoB,IAAI,CAAC,CAAC;AAC9C,IAAA,OAAO,GAAG,MAAM,CAAU,KAAK,CAAC,CAAC;AACjC,IAAA,WAAA,CAA4B,KAAqB,EAAA;QAArB,IAAK,CAAA,KAAA,GAAL,KAAK,CAAgB;KAAI;AAErD,IAAA,eAAe,CAAC,KAAc,EAAA;AAC7B,QAAA,IAAI,CAAC,KAAK,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC;KAClC;wGARW,4BAA4B,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAAA,cAAA,EAAA,IAAA,EAAA,IAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,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AA,QAAA,EAAA,6rGAAA,EAAA,CAAA;;;AEtEhD;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"sixbell-telco-sdk-components-table.mjs","sources":["../../../projects/sdk/components/table/table-header-checkbox/table-header-checkbox.component.ts","../../../projects/sdk/components/table/table-header-checkbox/table-header-checkbox.component.html","../../../projects/sdk/components/table/table-row-checkbox/table-row-checkbox.component.ts","../../../projects/sdk/components/table/table-row-checkbox/table-row-checkbox.component.html","../../../projects/sdk/components/table/src/table.component.ts","../../../projects/sdk/components/table/src/table.component.html","../../../projects/sdk/components/table/sixbell-telco-sdk-components-table.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, Host, input, signal } from '@angular/core';\nimport { CheckboxComponent, CheckboxSizeProps, CheckboxVariantProps } from '@sixbell-telco/sdk/components/forms/checkbox';\nimport { TableComponent } from '../src/table.component';\n\n@Component({\n\t// eslint-disable-next-line @angular-eslint/component-selector\n\tselector: 'tr[header-checkbox]',\n\tstandalone: true,\n\timports: [CheckboxComponent],\n\ttemplateUrl: './table-header-checkbox.component.html',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TableHeaderCheckboxComponent {\n\tcheckboxVariant = input<CheckboxVariantProps>('primary');\n\tcheckboxSize = input<CheckboxSizeProps>('md');\n\tchecked = signal<boolean>(false);\n\tconstructor(@Host() private table: TableComponent) {}\n\n\thandleSelectAll(value: boolean) {\n\t\tthis.table.handleToggleAll(value);\n\t}\n}\n","<th class=\"w-6\">\n\t<st-checkbox [(value)]=\"checked\" (onChange)=\"handleSelectAll($event)\" [variant]=\"checkboxVariant()\" [size]=\"checkboxSize()\" />\n</th>\n<ng-content></ng-content>\n","import { ChangeDetectionStrategy, Component, Host, input, signal } from '@angular/core';\nimport { CheckboxComponent, CheckboxSizeProps, CheckboxVariantProps } from '@sixbell-telco/sdk/components/forms/checkbox';\nimport { TableComponent } from '../src/table.component';\n\n@Component({\n\t// eslint-disable-next-line @angular-eslint/component-selector\n\tselector: 'tr[row-checkbox]',\n\tstandalone: true,\n\timports: [CheckboxComponent],\n\ttemplateUrl: './table-row-checkbox.component.html',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TableRowCheckboxComponent {\n\tcheckboxVariant = input<CheckboxVariantProps>('primary');\n\tcheckboxSize = input<CheckboxSizeProps>('md');\n\tidentifier = input.required();\n\tchecked = signal<boolean>(false);\n\n\tconstructor(@Host() private table: TableComponent) {}\n\n\thandleSelect(value: boolean) {\n\t\tthis.table.handleToggleCheckbox(value, this.identifier());\n\t}\n}\n","<td>\n\t<st-checkbox [(value)]=\"checked\" (onChange)=\"handleSelect($event)\" [variant]=\"checkboxVariant()\" [size]=\"checkboxSize()\"></st-checkbox>\n</td>\n<ng-content></ng-content>\n","import { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, computed, contentChild, contentChildren, effect, input, output, signal } from '@angular/core';\nimport { SelectComponent } from '@sixbell-telco/sdk/components/forms/select';\nimport { IconComponent } from '@sixbell-telco/sdk/components/icon';\nimport { matInfoOutline } from '@sixbell-telco/sdk/components/icon/material/outline';\nimport { PaginatorComponent } from '@sixbell-telco/sdk/components/paginator';\nimport { TypographyDirective } from '@sixbell-telco/sdk/directives/typography';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { cva, cx } from 'class-variance-authority';\nimport { TableHeaderCheckboxComponent } from '../table-header-checkbox/table-header-checkbox.component';\nimport { TableRowCheckboxComponent } from '../table-row-checkbox/table-row-checkbox.component';\n\nexport type PaginationType = 'default' | 'dots';\n\nexport const tableContent = cva(\n\t['table', 'font-body', 'relative border-separate border-spacing-0', '[&_th]:bg-neutral [&_th]:text-neutral-content'],\n\t{\n\t\tvariants: {\n\t\t\tsize: {\n\t\t\t\txs: ['table-xs'],\n\t\t\t\tsm: ['table-sm'],\n\t\t\t\tmd: ['table-md'],\n\t\t\t\tlg: ['table-lg'],\n\t\t\t},\n\t\t},\n\t\tcompoundVariants: [],\n\t\tdefaultVariants: {\n\t\t\tsize: 'sm',\n\t\t},\n\t},\n);\n\nexport type TableContentSizeProps = 'xs' | 'sm' | 'md' | 'lg' | null | undefined;\n\nexport const tableContainer = cva(['overflow-y-auto rounded-t-box overscroll-contain'], {\n\tvariants: {\n\t\tcontainerHeight: {\n\t\t\tauto: ['h-auto'],\n\t\t\tfull: ['h-full'],\n\t\t\tsm: ['max-h-72 h-full'],\n\t\t\tmd: ['max-h-80 h-full'],\n\t\t\tlg: ['max-h-96 h-full'],\n\t\t\txl: ['max-h-[36rem] h-full'],\n\t\t},\n\t},\n\tcompoundVariants: [],\n\tdefaultVariants: {\n\t\tcontainerHeight: 'auto',\n\t},\n});\nexport type TableContainerHeightProps = 'auto' | 'full' | 'sm' | 'md' | 'lg' | 'xl' | null | undefined;\n\nexport type TableVariantProps = {\n\tsize?: TableContentSizeProps;\n\tcontainerHeight?: TableContainerHeightProps;\n};\nexport const tableComponent = ({ size, containerHeight }: TableVariantProps = {}) => cx(tableContent({ size }), tableContainer({ containerHeight }));\n\nexport type TablePagination = {\n\tid: string;\n\tcurrentPage: number;\n\titemsPerPage: number;\n\tsearch: string;\n};\n\n@Component({\n\tselector: 'st-table',\n\tstandalone: true,\n\timports: [CommonModule, PaginatorComponent, TypographyDirective, SelectComponent, IconComponent],\n\ttemplateUrl: './table.component.html',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TableComponent {\n\t// Base table properties\n\tsize = input<TableContentSizeProps>();\n\theight = input<TableContainerHeightProps>();\n\tpinRows = input<boolean>(false);\n\tpinColumns = input<boolean>(false);\n\tzebra = input<boolean>(false);\n\tpaginatorType = input<PaginationType>('default');\n\tlabelEntriesByPage = input<string>('entradas por página');\n\tlabelShowEntriesOf = input<string>('de');\n\tlabelShowEntries = input<string>('entradas');\n\tinfoIcon = matInfoOutline;\n\n\t// Table data\n\tdata = input<unknown[]>([]);\n\ttotalItems = input<number>(0);\n\terror = input<string>('No se encontraron usuarios');\n\n\t// Paginator properties\n\tpagination = input<TablePagination>({ id: 'paginator', currentPage: 1, itemsPerPage: 10, search: '' });\n\tmaxSize = input<number>(7);\n\tonPageChange = output<number>();\n\tonPageSizeChange = output<number>();\n\tshowItemsPerPage = input<boolean>(true);\n\tshowEntries = input<boolean>(true);\n\tshowPagination = input<boolean>(true);\n\n\tpaginationRange = computed(() => {\n\t\tconst start = this.pagination().currentPage * this.pagination().itemsPerPage - this.pagination().itemsPerPage + 1;\n\t\tconst end = Math.min(this.pagination().currentPage * this.pagination().itemsPerPage, this.totalItems());\n\t\treturn `${start}-${end}`;\n\t});\n\n\thandlePageChange(page: number) {\n\t\tthis.handleToggleAll(false);\n\t\tthis.onPageChange.emit(page);\n\t}\n\n\thandlePageSizeChange(size: number) {\n\t\tthis.handleToggleAll(false);\n\t\tthis.onPageSizeChange.emit(size);\n\t}\n\n\tget tableClass() {\n\t\treturn cn(\n\t\t\ttableContent({\n\t\t\t\tsize: this.size(),\n\t\t\t}),\n\t\t\t{\n\t\t\t\t'table-pin-rows': this.pinRows(),\n\t\t\t\t'table-pin-cols': this.pinColumns(),\n\t\t\t\t'table-zebra': this.zebra(),\n\t\t\t},\n\t\t);\n\t}\n\n\tget tableContainerClass() {\n\t\treturn cn(\n\t\t\ttableContainer({\n\t\t\t\tcontainerHeight: this.height(),\n\t\t\t}),\n\t\t);\n\t}\n\n\tget containerClass() {\n\t\treturn cn('flex flex-col gap-3 rounded-box border border-solid border-neutral pb-3', {\n\t\t\t'gap-3 pb-3': this.size() === 'xs' || this.size() === 'sm' || this.size() === 'md',\n\t\t\t'gap-4 pb-4': this.size() === 'lg',\n\t\t});\n\t}\n\n\t// For checkboxes on child components\n\theader = contentChild(TableHeaderCheckboxComponent, { descendants: true });\n\trows = contentChildren(TableRowCheckboxComponent, { descendants: true });\n\tidentifiers = signal<Set<unknown>>(new Set());\n\tonCheck = output<unknown[]>();\n\n\tcheckEffect = effect(() => {\n\t\tthis.onCheck.emit(Array.from(this.identifiers()));\n\t});\n\n\thandleToggleAll(value: boolean) {\n\t\tif (!value) {\n\t\t\tthis.clearList();\n\t\t}\n\n\t\tthis.rows().forEach((row) => {\n\t\t\trow.checked.set(value);\n\t\t\tif (value) {\n\t\t\t\tthis.identifiers.update((items) => new Set(items).add(row.identifier()));\n\t\t\t}\n\t\t});\n\t}\n\n\thandleToggleCheckbox(value: boolean, identifier: unknown) {\n\t\tif (value) {\n\t\t\tthis.identifiers.update((items) => new Set(items).add(identifier));\n\t\t} else {\n\t\t\tthis.header()?.checked.set(false);\n\t\t\tthis.identifiers.update((items) => {\n\t\t\t\titems.delete(identifier);\n\t\t\t\treturn new Set(items);\n\t\t\t});\n\t\t}\n\t}\n\n\tprivate clearList() {\n\t\tthis.identifiers.set(new Set());\n\t\tthis.header()?.checked.set(false);\n\t}\n}\n","@let total = totalItems();\n@if (total > 0 || data().length > 0) {\n\t<div [class]=\"containerClass\">\n\t\t<!-- Table -->\n\t\t<div [class]=\"tableContainerClass\">\n\t\t\t<table [class]=\"tableClass\">\n\t\t\t\t<ng-content select=\"thead\" class=\"[&_tr]:\\hover\"></ng-content>\n\t\t\t\t<ng-content select=\"tbody\"></ng-content>\n\t\t\t</table>\n\t\t</div>\n\t\t@if (total > 0) {\n\t\t\t<!-- Divider -->\n\t\t\t<div class=\"divider divider-neutral my-0 h-[0.0625rem] px-4 before:h-[0.0625rem] after:h-[0.0625rem]\"></div>\n\t\t\t<!-- Paginator -->\n\t\t\t<div class=\"gap grid min-h-[30px] grid-cols-[1fr_3fr_1fr] items-center px-4\">\n\t\t\t\t<!-- Pagination info -->\n\t\t\t\t<div class=\"flex items-center justify-self-start\">\n\t\t\t\t\t@if (showItemsPerPage()) {\n\t\t\t\t\t\t<st-select\n\t\t\t\t\t\t\t[options]=\"[5, 10, 20, 50, 100]\"\n\t\t\t\t\t\t\t[value]=\"pagination().itemsPerPage\"\n\t\t\t\t\t\t\tsize=\"sm\"\n\t\t\t\t\t\t\t(onChange)=\"handlePageSizeChange($event)\"\n\t\t\t\t\t\t\tvariant=\"secondary\"\n\t\t\t\t\t\t\tshape=\"round-sm\"\n\t\t\t\t\t\t\theight=\"sm\"\n\t\t\t\t\t\t\t[class]=\"'min-w-min'\"\n\t\t\t\t\t\t></st-select>\n\t\t\t\t\t\t<div class=\"ml-2\">\n\t\t\t\t\t\t\t@let labelEntriesByPageVar = labelEntriesByPage();\n\t\t\t\t\t\t\t<span typography [tyVariant]=\"'body-xs'\" [tyColor]=\"'inherit'\">{{ labelEntriesByPageVar }}</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t}\n\t\t\t\t</div>\n\n\t\t\t\t<div class=\"justify-self-center\">\n\t\t\t\t\t@if (showPagination()) {\n\t\t\t\t\t\t@if (paginatorType() === 'default') {\n\t\t\t\t\t\t\t<st-paginator\n\t\t\t\t\t\t\t\t[paginatorId]=\"pagination().id\"\n\t\t\t\t\t\t\t\t[currentPage]=\"pagination().currentPage\"\n\t\t\t\t\t\t\t\t[maxSize]=\"maxSize()\"\n\t\t\t\t\t\t\t\t(onPageChange)=\"handlePageChange($event)\"\n\t\t\t\t\t\t\t></st-paginator>\n\t\t\t\t\t\t} @else if (paginatorType() === 'dots') {\n\t\t\t\t\t\t\t<st-paginator [paginatorId]=\"pagination().id\" (onPageChange)=\"handlePageChange($event)\" type=\"dots\"></st-paginator>\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t</div>\n\n\t\t\t\t<div class=\"flex items-center justify-self-end\">\n\t\t\t\t\t@if (showEntries()) {\n\t\t\t\t\t\t@let labelShowEntriesOfVar = labelShowEntriesOf();\n\t\t\t\t\t\t@let labelShowEntriesVar = labelShowEntries();\n\t\t\t\t\t\t@if (!showItemsPerPage() && !showPagination()) {\n\t\t\t\t\t\t\t<span typography [tyVariant]=\"'body-xs'\" [tyColor]=\"'inherit'\"> {{ total }} {{ labelShowEntriesVar }} </span>\n\t\t\t\t\t\t} @else {\n\t\t\t\t\t\t\t<span typography [tyVariant]=\"'body-xs'\" [tyColor]=\"'inherit'\">\n\t\t\t\t\t\t\t\t{{ paginationRange() }} {{ labelShowEntriesOfVar }} {{ total }} {{ labelShowEntriesVar }}\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t}\n\t</div>\n} @else {\n\t<div class=\"grid h-full place-content-center gap-4 rounded-box border border-solid border-neutral\">\n\t\t<div>\n\t\t\t<div class=\"grid place-content-center text-info\">\n\t\t\t\t<st-icon [icon]=\"infoIcon\" size=\"lg\" color=\"inherit\" size=\"lg\"></st-icon>\n\t\t\t</div>\n\t\t\t<span typography [tyVariant]=\"'body-xs'\" [tyColor]=\"'inherit'\">{{ error() }}</span>\n\t\t</div>\n\t</div>\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i1.TableComponent"],"mappings":";;;;;;;;;;;;MAYa,4BAA4B,CAAA;AAIZ,IAAA,KAAA,CAAA;AAH5B,IAAA,eAAe,GAAG,KAAK,CAAuB,SAAS,CAAC,CAAC;AACzD,IAAA,YAAY,GAAG,KAAK,CAAoB,IAAI,CAAC,CAAC;AAC9C,IAAA,OAAO,GAAG,MAAM,CAAU,KAAK,CAAC,CAAC;AACjC,IAAA,WAAA,CAA4B,KAAqB,EAAA;QAArB,IAAK,CAAA,KAAA,GAAL,KAAK,CAAgB;KAAI;AAErD,IAAA,eAAe,CAAC,KAAc,EAAA;AAC7B,QAAA,IAAI,CAAC,KAAK,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC;KAClC;wGARW,4BAA4B,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAAA,cAAA,EAAA,IAAA,EAAA,IAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;4FAA5B,4BAA4B,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,qBAAA,EAAA,MAAA,EAAA,EAAA,eAAA,EAAA,EAAA,iBA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