@sixbell-telco/sdk 0.6.0 → 0.7.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.
Files changed (68) hide show
  1. package/CHANGELOG.md +29 -0
  2. package/README.md +150 -1
  3. package/_index.scss +6 -0
  4. package/components/audio-player/button-play/button-play.component.d.ts +11 -1
  5. package/components/audio-player/services/audio.service.d.ts +5 -0
  6. package/components/audio-player/src/audio-player.component.d.ts +7 -4
  7. package/components/file-upload/file-dropzone/src/file-dropzone.component.d.ts +59 -6
  8. package/components/file-upload/file-dropzone/src/file-dropzone.constants.d.ts +6 -0
  9. package/components/file-upload/file-uploader/src/file-uploader.component.d.ts +2 -2
  10. package/components/forms/input/src/input.component.d.ts +1 -1
  11. package/components/icon/src/icon.component.d.ts +3 -4
  12. package/components/tooltip/src/tooltip.component.d.ts +1 -2
  13. package/esm2022/components/audio-player/button-play/button-play.component.mjs +14 -5
  14. package/esm2022/components/audio-player/services/audio.service.mjs +33 -4
  15. package/esm2022/components/audio-player/src/audio-player.component.mjs +29 -24
  16. package/esm2022/components/audio-player/track-info/track-info.component.mjs +3 -3
  17. package/esm2022/components/audio-player/volume-control/volume-control.component.mjs +2 -2
  18. package/esm2022/components/badge/src/badge.component.mjs +2 -2
  19. package/esm2022/components/button/src/button.component.mjs +2 -2
  20. package/esm2022/components/dropdown/src/dropdown.component.mjs +1 -1
  21. package/esm2022/components/file-upload/file-dropzone/src/file-dropzone.component.mjs +211 -16
  22. package/esm2022/components/file-upload/file-dropzone/src/file-dropzone.constants.mjs +7 -0
  23. package/esm2022/components/file-upload/file-uploader/src/file-uploader.component.mjs +1 -1
  24. package/esm2022/components/forms/datepicker/src/datepicker.component.mjs +1 -1
  25. package/esm2022/components/forms/input/src/input.component.mjs +3 -3
  26. package/esm2022/components/icon/src/icon.component.mjs +5 -5
  27. package/esm2022/components/link/src/link.component.mjs +2 -2
  28. package/esm2022/components/notification/src/notification.component.mjs +1 -1
  29. package/esm2022/components/paginator/components/pagination-item/pagination-item.component.mjs +2 -2
  30. package/esm2022/components/product-card/src/product-card.component.mjs +1 -1
  31. package/esm2022/components/table/src/table.component.mjs +1 -1
  32. package/esm2022/components/toast/toast-message/toast-message.component.mjs +2 -2
  33. package/esm2022/components/tooltip/src/tooltip.component.mjs +3 -5
  34. package/esm2022/components/wizard/wizard-step/wizard-step.component.mjs +1 -1
  35. package/fesm2022/sixbell-telco-sdk-components-audio-player.mjs +74 -31
  36. package/fesm2022/sixbell-telco-sdk-components-audio-player.mjs.map +1 -1
  37. package/fesm2022/sixbell-telco-sdk-components-badge.mjs +1 -1
  38. package/fesm2022/sixbell-telco-sdk-components-badge.mjs.map +1 -1
  39. package/fesm2022/sixbell-telco-sdk-components-button.mjs +1 -1
  40. package/fesm2022/sixbell-telco-sdk-components-button.mjs.map +1 -1
  41. package/fesm2022/sixbell-telco-sdk-components-dropdown.mjs +1 -1
  42. package/fesm2022/sixbell-telco-sdk-components-dropdown.mjs.map +1 -1
  43. package/fesm2022/sixbell-telco-sdk-components-file-upload-file-dropzone.mjs +216 -15
  44. package/fesm2022/sixbell-telco-sdk-components-file-upload-file-dropzone.mjs.map +1 -1
  45. package/fesm2022/sixbell-telco-sdk-components-file-upload-file-uploader.mjs.map +1 -1
  46. package/fesm2022/sixbell-telco-sdk-components-forms-datepicker.mjs +1 -1
  47. package/fesm2022/sixbell-telco-sdk-components-forms-datepicker.mjs.map +1 -1
  48. package/fesm2022/sixbell-telco-sdk-components-forms-input.mjs +2 -2
  49. package/fesm2022/sixbell-telco-sdk-components-forms-input.mjs.map +1 -1
  50. package/fesm2022/sixbell-telco-sdk-components-icon.mjs +4 -4
  51. package/fesm2022/sixbell-telco-sdk-components-icon.mjs.map +1 -1
  52. package/fesm2022/sixbell-telco-sdk-components-link.mjs +1 -1
  53. package/fesm2022/sixbell-telco-sdk-components-link.mjs.map +1 -1
  54. package/fesm2022/sixbell-telco-sdk-components-notification.mjs +1 -1
  55. package/fesm2022/sixbell-telco-sdk-components-notification.mjs.map +1 -1
  56. package/fesm2022/sixbell-telco-sdk-components-paginator.mjs +1 -1
  57. package/fesm2022/sixbell-telco-sdk-components-paginator.mjs.map +1 -1
  58. package/fesm2022/sixbell-telco-sdk-components-product-card.mjs +1 -1
  59. package/fesm2022/sixbell-telco-sdk-components-product-card.mjs.map +1 -1
  60. package/fesm2022/sixbell-telco-sdk-components-table.mjs +1 -1
  61. package/fesm2022/sixbell-telco-sdk-components-table.mjs.map +1 -1
  62. package/fesm2022/sixbell-telco-sdk-components-toast.mjs +1 -1
  63. package/fesm2022/sixbell-telco-sdk-components-toast.mjs.map +1 -1
  64. package/fesm2022/sixbell-telco-sdk-components-tooltip.mjs +2 -4
  65. package/fesm2022/sixbell-telco-sdk-components-tooltip.mjs.map +1 -1
  66. package/fesm2022/sixbell-telco-sdk-components-wizard.mjs +1 -1
  67. package/fesm2022/sixbell-telco-sdk-components-wizard.mjs.map +1 -1
  68. package/package.json +75 -73
@@ -1 +1 @@
1
- {"version":3,"file":"sixbell-telco-sdk-components-notification.mjs","sources":["../../../projects/sdk/components/notification/src/notification.component.ts","../../../projects/sdk/components/notification/src/notification.component.html","../../../projects/sdk/components/notification/sixbell-telco-sdk-components-notification.ts"],"sourcesContent":["import { Component, input } from '@angular/core';\nimport { IconComponent } from '@sixbell-telco/sdk/components/icon';\nimport { matNotificationsOutline } from '@sixbell-telco/sdk/components/icon/material/outline';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { cva } from 'class-variance-authority';\n\nexport type NotificationStatus = 'seen' | 'unseen';\n\nexport const notificationComponent = cva([], {\n\tvariants: {\n\t\tvariant: {\n\t\t\tprimary: [\n\t\t\t\t'btn',\n\t\t\t\t'btn-circle',\n\t\t\t\t'btn-outline',\n\t\t\t\t'text-neutral',\n\t\t\t\t'border-neutral-secondary',\n\t\t\t\t'hover:text-neutral',\n\t\t\t\t'active:hover:text-neutral-content',\n\t\t\t\t'hover:bg-transparent',\n\t\t\t],\n\t\t},\n\t\tshape: {\n\t\t\t'round-sm': ['rounded-btn-sm'],\n\t\t\t'round-md': ['rounded-btn-md'],\n\t\t\t'round-lg': ['rounded-btn-lg'],\n\t\t},\n\t\tsize: {\n\t\t\tauto: [],\n\t\t},\n\t},\n\tcompoundVariants: [],\n\tdefaultVariants: {\n\t\tvariant: 'primary',\n\t\tshape: 'round-lg',\n\t\tsize: 'auto',\n\t},\n});\n\nexport type NotificationVariantProps = 'primary';\nexport type NotificationShapeProps = 'round-sm' | 'round-md' | 'round-lg';\nexport type NotificationSizeProps = 'auto';\n\nexport type NotificationProps = {\n\tvariant?: NotificationVariantProps;\n\tshape?: NotificationShapeProps;\n\tsize?: NotificationSizeProps;\n};\n\n@Component({\n\tselector: 'st-notification',\n\tstandalone: true,\n\timports: [IconComponent],\n\ttemplateUrl: './notification.component.html',\n\tstyles: '',\n})\nexport class NotificationComponent {\n\tvariant = input<NotificationVariantProps>();\n\tshape = input<NotificationShapeProps>();\n\tsize = input<NotificationSizeProps>();\n\tclasses = input<string>('');\n\ticon = input<string>(matNotificationsOutline);\n\tstatus = input.required<NotificationStatus>();\n\tdisabled = input<boolean>(false);\n\n\tget componentClass() {\n\t\treturn cn(notificationComponent({ variant: this.variant(), shape: this.shape(), size: this.size(), class: this.classes() }));\n\t}\n}\n","@let iconVar = this.icon();\n\n@if (status() === 'seen') {\n\t<div class=\"indicator\">\n\t\t<span class=\"badge indicator-item badge-success left-6 top-2 h-4 w-4 p-0\"></span>\n\t\t<button [class]=\"componentClass\" type=\"button\" [disabled]=\"disabled()\">\n\t\t\t<st-icon [icon]=\"iconVar\" color=\"inherit\" size=\"md\"></st-icon>\n\t\t</button>\n\t</div>\n}\n\n@if (status() === 'unseen') {\n\t<div class=\"indicator\">\n\t\t<span class=\"badge indicator-item badge-warning left-6 top-2 h-4 w-4 p-0\"></span>\n\t\t<button [class]=\"componentClass\" type=\"button\" [disabled]=\"disabled()\">\n\t\t\t<st-icon [icon]=\"iconVar\" color=\"inherit\" size=\"md\"></st-icon>\n\t\t</button>\n\t</div>\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;AAQa,MAAA,qBAAqB,GAAG,GAAG,CAAC,EAAE,EAAE;AAC5C,IAAA,QAAQ,EAAE;AACT,QAAA,OAAO,EAAE;AACR,YAAA,OAAO,EAAE;gBACR,KAAK;gBACL,YAAY;gBACZ,aAAa;gBACb,cAAc;gBACd,0BAA0B;gBAC1B,oBAAoB;gBACpB,mCAAmC;gBACnC,sBAAsB;AACtB,aAAA;AACD,SAAA;AACD,QAAA,KAAK,EAAE;YACN,UAAU,EAAE,CAAC,gBAAgB,CAAC;YAC9B,UAAU,EAAE,CAAC,gBAAgB,CAAC;YAC9B,UAAU,EAAE,CAAC,gBAAgB,CAAC;AAC9B,SAAA;AACD,QAAA,IAAI,EAAE;AACL,YAAA,IAAI,EAAE,EAAE;AACR,SAAA;AACD,KAAA;AACD,IAAA,gBAAgB,EAAE,EAAE;AACpB,IAAA,eAAe,EAAE;AAChB,QAAA,OAAO,EAAE,SAAS;AAClB,QAAA,KAAK,EAAE,UAAU;AACjB,QAAA,IAAI,EAAE,MAAM;AACZ,KAAA;AACD,CAAA,EAAE;MAmBU,qBAAqB,CAAA;IACjC,OAAO,GAAG,KAAK,EAA4B,CAAC;IAC5C,KAAK,GAAG,KAAK,EAA0B,CAAC;IACxC,IAAI,GAAG,KAAK,EAAyB,CAAC;AACtC,IAAA,OAAO,GAAG,KAAK,CAAS,EAAE,CAAC,CAAC;AAC5B,IAAA,IAAI,GAAG,KAAK,CAAS,uBAAuB,CAAC,CAAC;AAC9C,IAAA,MAAM,GAAG,KAAK,CAAC,QAAQ,EAAsB,CAAC;AAC9C,IAAA,QAAQ,GAAG,KAAK,CAAU,KAAK,CAAC,CAAC;AAEjC,IAAA,IAAI,cAAc,GAAA;AACjB,QAAA,OAAO,EAAE,CAAC,qBAAqB,CAAC,EAAE,OAAO,EAAE,IAAI,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,IAAA,EAAA,EAAA,QAAA,EAAA,EAAA,iBAAA,EAAA,UAAA,EAAA,UAAA,EAAA,UAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,ECxDlC,isBAmBA,EAAA,MAAA,EAAA,CAAA,EAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EDiCW,aAAa,EAAA,QAAA,EAAA,SAAA,EAAA,MAAA,EAAA,CAAA,OAAA,EAAA,MAAA,EAAA,SAAA,EAAA,MAAA,CAAA,EAAA,CAAA,EAAA,CAAA,CAAA;;4FAIX,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBAPjC,SAAS;AACC,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,iBAAiB,EACf,UAAA,EAAA,IAAI,EACP,OAAA,EAAA,CAAC,aAAa,CAAC,EAAA,QAAA,EAAA,isBAAA,EAAA,CAAA;;;AEpDzB;;AAEG;;;;"}
1
+ {"version":3,"file":"sixbell-telco-sdk-components-notification.mjs","sources":["../../../projects/sdk/components/notification/src/notification.component.ts","../../../projects/sdk/components/notification/src/notification.component.html","../../../projects/sdk/components/notification/sixbell-telco-sdk-components-notification.ts"],"sourcesContent":["import { Component, input } from '@angular/core';\nimport { IconComponent } from '@sixbell-telco/sdk/components/icon';\nimport { matNotificationsOutline } from '@sixbell-telco/sdk/components/icon/material/outline';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { cva } from 'class-variance-authority';\n\nexport type NotificationStatus = 'seen' | 'unseen';\n\nexport const notificationComponent = cva([], {\n\tvariants: {\n\t\tvariant: {\n\t\t\tprimary: [\n\t\t\t\t'btn',\n\t\t\t\t'btn-circle',\n\t\t\t\t'btn-outline',\n\t\t\t\t'text-neutral',\n\t\t\t\t'border-neutral-secondary',\n\t\t\t\t'hover:text-neutral',\n\t\t\t\t'active:hover:text-neutral-content',\n\t\t\t\t'hover:bg-transparent',\n\t\t\t],\n\t\t},\n\t\tshape: {\n\t\t\t'round-sm': ['rounded-btn-sm'],\n\t\t\t'round-md': ['rounded-btn-md'],\n\t\t\t'round-lg': ['rounded-btn-lg'],\n\t\t},\n\t\tsize: {\n\t\t\tauto: [],\n\t\t},\n\t},\n\tcompoundVariants: [],\n\tdefaultVariants: {\n\t\tvariant: 'primary',\n\t\tshape: 'round-lg',\n\t\tsize: 'auto',\n\t},\n});\n\nexport type NotificationVariantProps = 'primary';\nexport type NotificationShapeProps = 'round-sm' | 'round-md' | 'round-lg';\nexport type NotificationSizeProps = 'auto';\n\nexport type NotificationProps = {\n\tvariant?: NotificationVariantProps;\n\tshape?: NotificationShapeProps;\n\tsize?: NotificationSizeProps;\n};\n\n@Component({\n\tselector: 'st-notification',\n\tstandalone: true,\n\timports: [IconComponent],\n\ttemplateUrl: './notification.component.html',\n\tstyles: '',\n})\nexport class NotificationComponent {\n\tvariant = input<NotificationVariantProps>();\n\tshape = input<NotificationShapeProps>();\n\tsize = input<NotificationSizeProps>();\n\tclasses = input<string>('');\n\ticon = input<string>(matNotificationsOutline);\n\tstatus = input.required<NotificationStatus>();\n\tdisabled = input<boolean>(false);\n\n\tget componentClass() {\n\t\treturn cn(notificationComponent({ variant: this.variant(), shape: this.shape(), size: this.size(), class: this.classes() }));\n\t}\n}\n","@let iconVar = this.icon();\n\n@if (status() === 'seen') {\n\t<div class=\"indicator\">\n\t\t<span class=\"badge indicator-item badge-success left-6 top-2 h-4 w-4 p-0\"></span>\n\t\t<button [class]=\"componentClass\" type=\"button\" [disabled]=\"disabled()\">\n\t\t\t<st-icon [icon]=\"iconVar\" color=\"inherit\" size=\"md\"></st-icon>\n\t\t</button>\n\t</div>\n}\n\n@if (status() === 'unseen') {\n\t<div class=\"indicator\">\n\t\t<span class=\"badge indicator-item badge-warning left-6 top-2 h-4 w-4 p-0\"></span>\n\t\t<button [class]=\"componentClass\" type=\"button\" [disabled]=\"disabled()\">\n\t\t\t<st-icon [icon]=\"iconVar\" color=\"inherit\" size=\"md\"></st-icon>\n\t\t</button>\n\t</div>\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;AAQa,MAAA,qBAAqB,GAAG,GAAG,CAAC,EAAE,EAAE;AAC5C,IAAA,QAAQ,EAAE;AACT,QAAA,OAAO,EAAE;AACR,YAAA,OAAO,EAAE;gBACR,KAAK;gBACL,YAAY;gBACZ,aAAa;gBACb,cAAc;gBACd,0BAA0B;gBAC1B,oBAAoB;gBACpB,mCAAmC;gBACnC,sBAAsB;AACtB,aAAA;AACD,SAAA;AACD,QAAA,KAAK,EAAE;YACN,UAAU,EAAE,CAAC,gBAAgB,CAAC;YAC9B,UAAU,EAAE,CAAC,gBAAgB,CAAC;YAC9B,UAAU,EAAE,CAAC,gBAAgB,CAAC;AAC9B,SAAA;AACD,QAAA,IAAI,EAAE;AACL,YAAA,IAAI,EAAE,EAAE;AACR,SAAA;AACD,KAAA;AACD,IAAA,gBAAgB,EAAE,EAAE;AACpB,IAAA,eAAe,EAAE;AAChB,QAAA,OAAO,EAAE,SAAS;AAClB,QAAA,KAAK,EAAE,UAAU;AACjB,QAAA,IAAI,EAAE,MAAM;AACZ,KAAA;AACD,CAAA,EAAE;MAmBU,qBAAqB,CAAA;IACjC,OAAO,GAAG,KAAK,EAA4B,CAAC;IAC5C,KAAK,GAAG,KAAK,EAA0B,CAAC;IACxC,IAAI,GAAG,KAAK,EAAyB,CAAC;AACtC,IAAA,OAAO,GAAG,KAAK,CAAS,EAAE,CAAC,CAAC;AAC5B,IAAA,IAAI,GAAG,KAAK,CAAS,uBAAuB,CAAC,CAAC;AAC9C,IAAA,MAAM,GAAG,KAAK,CAAC,QAAQ,EAAsB,CAAC;AAC9C,IAAA,QAAQ,GAAG,KAAK,CAAU,KAAK,CAAC,CAAC;AAEjC,IAAA,IAAI,cAAc,GAAA;AACj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AAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,QAAA,EAAA,EAAA,iBAAA,EAAA,UAAA,EAAA,UAAA,EAAA,UAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,ECxDlC,isBAmBA,EAAA,MAAA,EAAA,CAAA,EAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EDiCW,aAAa,EAAA,QAAA,EAAA,SAAA,EAAA,MAAA,EAAA,CAAA,OAAA,EAAA,MAAA,EAAA,MAAA,CAAA,EAAA,CAAA,EAAA,CAAA,CAAA;;4FAIX,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBAPjC,SAAS;AACC,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,iBAAiB,EACf,UAAA,EAAA,IAAI,EACP,OAAA,EAAA,CAAC,aAAa,CAAC,EAAA,QAAA,EAAA,isBAAA,EAAA,CAAA;;;AEpDzB;;AAEG;;;;"}
@@ -108,7 +108,7 @@ class PaginationItemComponent {
108
108
  });
109
109
  }
110
110
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: PaginationItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
111
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.12", type: PaginationItemComponent, isStandalone: true, selector: "st-pagination-item", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, shape: { classPropertyName: "shape", publicName: "shape", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, padding: { classPropertyName: "padding", publicName: "padding", isSignal: true, isRequired: false, transformFunction: null }, classes: { classPropertyName: "classes", publicName: "classes", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, number: { classPropertyName: "number", publicName: "number", isSignal: true, isRequired: false, transformFunction: null }, active: { classPropertyName: "active", publicName: "active", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "@let variantVar = this.variant();\n\n@if (variantVar === 'numeric') {\n\t<button [class]=\"componentClass\" type=\"button\">\n\t\t<span typography [tyVariant]=\"'body-sm'\" [tyColor]=\"'inherit'\" [tyFontWeight]=\"'normal'\">{{ number() }}</span>\n\t</button>\n} @else if (variantVar === 'icon') {\n\t<button [class]=\"componentClass\" type=\"button\">\n\t\t<st-icon [icon]=\"this.icon()\" color=\"inherit\" size=\"sm\"></st-icon>\n\t</button>\n} @else if (variantVar === 'dots') {\n\t<button [class]=\"componentClass\" type=\"button\">\n\t\t<span></span>\n\t</button>\n} @else {\n\t<button [class]=\"componentClass\" type=\"button\">\n\t\t<span typography [tyVariant]=\"'body-sm'\" [tyColor]=\"'inherit'\" [tyFontWeight]=\"'normal'\">{{ number() }}</span>\n\t</button>\n}\n", styles: [""], dependencies: [{ kind: "component", type: IconComponent, selector: "st-icon", inputs: ["color", "size", "classes", "icon"] }, { kind: "directive", type: TypographyDirective, selector: "[typography]", inputs: ["tyVariant", "tyColor", "tyFontWeight", "tyTextOverflow"] }] });
111
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.12", type: PaginationItemComponent, isStandalone: true, selector: "st-pagination-item", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, shape: { classPropertyName: "shape", publicName: "shape", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, padding: { classPropertyName: "padding", publicName: "padding", isSignal: true, isRequired: false, transformFunction: null }, classes: { classPropertyName: "classes", publicName: "classes", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, number: { classPropertyName: "number", publicName: "number", isSignal: true, isRequired: false, transformFunction: null }, active: { classPropertyName: "active", publicName: "active", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "@let variantVar = this.variant();\n\n@if (variantVar === 'numeric') {\n\t<button [class]=\"componentClass\" type=\"button\">\n\t\t<span typography [tyVariant]=\"'body-sm'\" [tyColor]=\"'inherit'\" [tyFontWeight]=\"'normal'\">{{ number() }}</span>\n\t</button>\n} @else if (variantVar === 'icon') {\n\t<button [class]=\"componentClass\" type=\"button\">\n\t\t<st-icon [icon]=\"this.icon()\" color=\"inherit\" size=\"sm\"></st-icon>\n\t</button>\n} @else if (variantVar === 'dots') {\n\t<button [class]=\"componentClass\" type=\"button\">\n\t\t<span></span>\n\t</button>\n} @else {\n\t<button [class]=\"componentClass\" type=\"button\">\n\t\t<span typography [tyVariant]=\"'body-sm'\" [tyColor]=\"'inherit'\" [tyFontWeight]=\"'normal'\">{{ number() }}</span>\n\t</button>\n}\n", styles: [""], dependencies: [{ kind: "component", type: IconComponent, selector: "st-icon", inputs: ["color", "size", "icon"] }, { kind: "directive", type: TypographyDirective, selector: "[typography]", inputs: ["tyVariant", "tyColor", "tyFontWeight", "tyTextOverflow"] }] });
112
112
  }
113
113
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: PaginationItemComponent, decorators: [{
114
114
  type: Component,
@@ -1 +1 @@
1
- {"version":3,"file":"sixbell-telco-sdk-components-paginator.mjs","sources":["../../../projects/sdk/components/paginator/components/pagination-item/pagination-item.component.ts","../../../projects/sdk/components/paginator/components/pagination-item/pagination-item.component.html","../../../projects/sdk/components/paginator/src/paginator.component.ts","../../../projects/sdk/components/paginator/src/paginator.component.html","../../../projects/sdk/components/paginator/sixbell-telco-sdk-components-paginator.ts"],"sourcesContent":["import { Component, input } from '@angular/core';\nimport { IconComponent } from '@sixbell-telco/sdk/components/icon';\nimport { matKeyboardArrowLeftOutline } 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 } from 'class-variance-authority';\n\nexport const paginationItemComponent = cva([], {\n\tvariants: {\n\t\tvariant: {\n\t\t\tnumeric: [\n\t\t\t\t'btn',\n\t\t\t\t'btn-outline',\n\t\t\t\t'flex',\n\t\t\t\t'min-h-5',\n\t\t\t\t'text-base-content',\n\t\t\t\t'border-secondary',\n\t\t\t\t'hover:text-secondary-content',\n\t\t\t\t'hover:bg-secondary',\n\t\t\t\t'hover:bg-opacity-40',\n\t\t\t\t'hover:border-secondary',\n\t\t\t\t'active:hover:bg-secondary-content',\n\t\t\t\t'active:hover:bg-secondary',\n\t\t\t\t'active:focus:border-secondary',\n\t\t\t],\n\t\t\ticon: [\n\t\t\t\t'btn',\n\t\t\t\t'btn-outline',\n\t\t\t\t'flex',\n\t\t\t\t'min-h-5',\n\t\t\t\t'text-base-content',\n\t\t\t\t'border-secondary',\n\t\t\t\t'hover:text-secondary-content',\n\t\t\t\t'hover:bg-secondary',\n\t\t\t\t'hover:bg-opacity-40',\n\t\t\t\t'hover:border-secondary',\n\t\t\t\t'active:hover:bg-secondary-content',\n\t\t\t\t'active:hover:bg-secondary',\n\t\t\t\t'active:focus:border-secondary',\n\t\t\t],\n\t\t\tdots: [\n\t\t\t\t'btn',\n\t\t\t\t'btn-circle',\n\t\t\t\t'flex',\n\t\t\t\t'min-h-[0.625rem]',\n\t\t\t\t'border-secondary',\n\t\t\t\t'bg-secondary',\n\t\t\t\t'hover:bg-secondary',\n\t\t\t\t'hover:bg-opacity-40',\n\t\t\t\t'hover:border-secondary',\n\t\t\t\t'hover:scale-150',\n\t\t\t\t'active:hover:bg-secondary',\n\t\t\t\t'active:border-secondary',\n\t\t\t\t'active:scale-150',\n\t\t\t\t'active:focus:border-secondary',\n\t\t\t\t'',\n\t\t\t],\n\t\t},\n\t\tshape: {\n\t\t\t'round-xs': ['rounded-[0.3rem]'],\n\t\t\t'round-sm': ['rounded-btn-sm'],\n\t\t\t'round-md': ['rounded-btn-md'],\n\t\t\t'round-lg': ['rounded-btn-lg'],\n\t\t},\n\t\tsize: {\n\t\t\txs: ['h-[0.625rem]', 'w-[0.625rem]'],\n\t\t\tsm: ['h-5', 'w-5'],\n\t\t\tmd: ['h-[1.875rem]', 'w-[1.875rem]'],\n\t\t\tlg: ['h-9', 'w-9'],\n\t\t},\n\t\tpadding: {\n\t\t\tnone: ['p-0'],\n\t\t\tsm: ['px-4'],\n\t\t\tmd: ['px-6'],\n\t\t\tlg: ['px-8'],\n\t\t},\n\t},\n\tcompoundVariants: [],\n\tdefaultVariants: {\n\t\tvariant: 'numeric',\n\t\tshape: 'round-lg',\n\t\tsize: 'md',\n\t\tpadding: 'none',\n\t},\n});\n\nexport type PaginationItemVariantProps = 'numeric' | 'icon' | 'dots' | null | undefined;\nexport type PaginationItemShapeProps = 'round-xs' | 'round-sm' | 'round-md' | 'round-lg' | null | undefined;\nexport type PaginationItemSizeProps = 'xs' | 'sm' | 'md' | 'lg' | null | undefined;\nexport type PaginationItemPaddingProps = 'none' | 'sm' | 'md' | 'lg' | null | undefined;\n\nexport type PaginationItemProps = {\n\tvariant?: PaginationItemVariantProps;\n\tshape?: PaginationItemShapeProps;\n\tsize?: PaginationItemSizeProps;\n\tpadding?: PaginationItemPaddingProps;\n};\n\n@Component({\n\tselector: 'st-pagination-item',\n\tstandalone: true,\n\timports: [IconComponent, TypographyDirective],\n\ttemplateUrl: './pagination-item.component.html',\n\tstyles: '',\n})\nexport class PaginationItemComponent {\n\tvariant = input<PaginationItemVariantProps>();\n\tshape = input<PaginationItemShapeProps>();\n\tsize = input<PaginationItemSizeProps>();\n\tpadding = input<PaginationItemPaddingProps>();\n\tclasses = input<string>('');\n\ticon = input<string>(matKeyboardArrowLeftOutline);\n\tnumber = input<number | string>(1);\n\tactive = input<boolean>(false);\n\n\tget componentClass() {\n\t\treturn cn(\n\t\t\tpaginationItemComponent({\n\t\t\t\tvariant: this.variant(),\n\t\t\t\tshape: this.shape(),\n\t\t\t\tsize: this.size(),\n\t\t\t\tpadding: this.padding(),\n\t\t\t\tclass: this.classes(),\n\t\t\t}),\n\t\t\t{ 'bg-secondary-content bg-secondary border-secondary text-secondary-content': this.active() && this.variant() !== 'dots' },\n\t\t\t{\n\t\t\t\t'hover:scale-100 hover:bg-opacity-100 w-[0.9375rem] h-[0.9375rem] bg-secondary border-secondary text-secondary-content':\n\t\t\t\t\tthis.active() && this.variant() === 'dots',\n\t\t\t},\n\t\t);\n\t}\n}\n","@let variantVar = this.variant();\n\n@if (variantVar === 'numeric') {\n\t<button [class]=\"componentClass\" type=\"button\">\n\t\t<span typography [tyVariant]=\"'body-sm'\" [tyColor]=\"'inherit'\" [tyFontWeight]=\"'normal'\">{{ number() }}</span>\n\t</button>\n} @else if (variantVar === 'icon') {\n\t<button [class]=\"componentClass\" type=\"button\">\n\t\t<st-icon [icon]=\"this.icon()\" color=\"inherit\" size=\"sm\"></st-icon>\n\t</button>\n} @else if (variantVar === 'dots') {\n\t<button [class]=\"componentClass\" type=\"button\">\n\t\t<span></span>\n\t</button>\n} @else {\n\t<button [class]=\"componentClass\" type=\"button\">\n\t\t<span typography [tyVariant]=\"'body-sm'\" [tyColor]=\"'inherit'\" [tyFontWeight]=\"'normal'\">{{ number() }}</span>\n\t</button>\n}\n","import { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, computed, input, model, output } from '@angular/core';\nimport {\n\tmatKeyboardArrowLeftOutline,\n\tmatKeyboardArrowRightOutline,\n\tmatKeyboardDoubleArrowLeftOutline,\n\tmatKeyboardDoubleArrowRightOutline,\n} from '@sixbell-telco/sdk/components/icon/material/outline';\nimport { NgxPaginationModule } from 'ngx-pagination';\nimport { PaginationItemComponent } from '../components/pagination-item/pagination-item.component';\n\nexport type PaginationType = 'default' | 'dots';\n\n@Component({\n\tselector: 'st-paginator',\n\tstandalone: true,\n\timports: [NgxPaginationModule, CommonModule, PaginationItemComponent],\n\ttemplateUrl: './paginator.component.html',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class PaginatorComponent {\n\tpaginatorId = input<string>('paginator');\n\tmaxSize = input<number>(5);\n\ttype = input<PaginationType>('default');\n\tonPageChange = output<number>();\n\n\t// For standalone pagination\n\tpages = input<number>(0);\n\tpageCounter = computed(() => Array.from({ length: this.pages() }, (_, i) => i + 1));\n\tcurrentPage = model<number>(1);\n\n\ticonArrowLeft = matKeyboardArrowLeftOutline;\n\ticonDoubleArrowLeft = matKeyboardDoubleArrowLeftOutline;\n\ticonArrowRight = matKeyboardArrowRightOutline;\n\ticonDoubleArrowRight = matKeyboardDoubleArrowRightOutline;\n\n\thandlePageChange(page: number) {\n\t\tthis.currentPage.set(page);\n\t\tthis.onPageChange.emit(page);\n\t}\n\n\tpreviousPage() {\n\t\tif (this.currentPage() > 1) {\n\t\t\tthis.currentPage.set(this.currentPage() - 1);\n\t\t\tthis.onPageChange.emit(this.currentPage());\n\t\t}\n\t}\n\n\tnextPage() {\n\t\tif (this.currentPage() < this.pages()) {\n\t\t\tthis.currentPage.set(this.currentPage() + 1);\n\t\t\tthis.onPageChange.emit(this.currentPage());\n\t\t}\n\t}\n\n\tfirstPage() {\n\t\tthis.currentPage.set(1);\n\t\tthis.onPageChange.emit(1);\n\t}\n\n\tlastPage() {\n\t\tthis.currentPage.set(this.pages());\n\t\tthis.onPageChange.emit(this.pages());\n\t}\n}\n","@if (type() === 'default') {\n\t<div class=\"flex\">\n\t\t<pagination-template [id]=\"paginatorId()\" #p=\"paginationApi\" [maxSize]=\"maxSize()\" (pageChange)=\"handlePageChange($event)\">\n\t\t\t<div class=\"flex items-center justify-center gap-2\">\n\t\t\t\t@if (pages()) {\n\t\t\t\t\t<!-- Standalone pagination -->\n\t\t\t\t\t<st-pagination-item\n\t\t\t\t\t\t[icon]=\"iconDoubleArrowLeft\"\n\t\t\t\t\t\t(click)=\"firstPage()\"\n\t\t\t\t\t\tvariant=\"icon\"\n\t\t\t\t\t\tsize=\"md\"\n\t\t\t\t\t\tshape=\"round-xs\"\n\t\t\t\t\t\tpadding=\"none\"\n\t\t\t\t\t></st-pagination-item>\n\t\t\t\t\t<st-pagination-item\n\t\t\t\t\t\t[icon]=\"iconArrowLeft\"\n\t\t\t\t\t\t(click)=\"previousPage()\"\n\t\t\t\t\t\tvariant=\"icon\"\n\t\t\t\t\t\tsize=\"md\"\n\t\t\t\t\t\tshape=\"round-xs\"\n\t\t\t\t\t\tpadding=\"none\"\n\t\t\t\t\t></st-pagination-item>\n\t\t\t\t\t@for (page of pageCounter(); track $index) {\n\t\t\t\t\t\t@if (currentPage() !== page) {\n\t\t\t\t\t\t\t<st-pagination-item\n\t\t\t\t\t\t\t\t(click)=\"handlePageChange(page)\"\n\t\t\t\t\t\t\t\tvariant=\"numeric\"\n\t\t\t\t\t\t\t\tsize=\"md\"\n\t\t\t\t\t\t\t\tshape=\"round-xs\"\n\t\t\t\t\t\t\t\tpadding=\"none\"\n\t\t\t\t\t\t\t\t[number]=\"page\"\n\t\t\t\t\t\t\t\t[active]=\"currentPage() === page\"\n\t\t\t\t\t\t\t></st-pagination-item>\n\t\t\t\t\t\t} @else {\n\t\t\t\t\t\t\t<st-pagination-item\n\t\t\t\t\t\t\t\tvariant=\"numeric\"\n\t\t\t\t\t\t\t\tsize=\"md\"\n\t\t\t\t\t\t\t\tshape=\"round-xs\"\n\t\t\t\t\t\t\t\tpadding=\"none\"\n\t\t\t\t\t\t\t\t[number]=\"page\"\n\t\t\t\t\t\t\t\t[active]=\"currentPage() === page\"\n\t\t\t\t\t\t\t></st-pagination-item>\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t<st-pagination-item\n\t\t\t\t\t\t[icon]=\"iconArrowRight\"\n\t\t\t\t\t\t(click)=\"nextPage()\"\n\t\t\t\t\t\tvariant=\"icon\"\n\t\t\t\t\t\tsize=\"md\"\n\t\t\t\t\t\tshape=\"round-xs\"\n\t\t\t\t\t\tpadding=\"none\"\n\t\t\t\t\t></st-pagination-item>\n\t\t\t\t\t<st-pagination-item\n\t\t\t\t\t\t[icon]=\"iconDoubleArrowRight\"\n\t\t\t\t\t\t(click)=\"lastPage()\"\n\t\t\t\t\t\tvariant=\"icon\"\n\t\t\t\t\t\tsize=\"md\"\n\t\t\t\t\t\tshape=\"round-xs\"\n\t\t\t\t\t\tpadding=\"none\"\n\t\t\t\t\t></st-pagination-item>\n\t\t\t\t} @else {\n\t\t\t\t\t<!-- Table pagination -->\n\t\t\t\t\t<st-pagination-item\n\t\t\t\t\t\t[icon]=\"iconDoubleArrowLeft\"\n\t\t\t\t\t\t(click)=\"!p.isFirstPage() ? handlePageChange(1) : null\"\n\t\t\t\t\t\tvariant=\"icon\"\n\t\t\t\t\t\tsize=\"md\"\n\t\t\t\t\t\tshape=\"round-xs\"\n\t\t\t\t\t\tpadding=\"none\"\n\t\t\t\t\t></st-pagination-item>\n\t\t\t\t\t<st-pagination-item\n\t\t\t\t\t\t[icon]=\"iconArrowLeft\"\n\t\t\t\t\t\t(click)=\"!p.isFirstPage() ? p.previous() : null\"\n\t\t\t\t\t\tvariant=\"icon\"\n\t\t\t\t\t\tsize=\"md\"\n\t\t\t\t\t\tshape=\"round-xs\"\n\t\t\t\t\t\tpadding=\"none\"\n\t\t\t\t\t></st-pagination-item>\n\n\t\t\t\t\t@for (page of p.pages; track $index) {\n\t\t\t\t\t\t@if (p.getCurrent() !== page.value) {\n\t\t\t\t\t\t\t<st-pagination-item\n\t\t\t\t\t\t\t\t(click)=\"p.setCurrent(page.value)\"\n\t\t\t\t\t\t\t\tvariant=\"numeric\"\n\t\t\t\t\t\t\t\tsize=\"md\"\n\t\t\t\t\t\t\t\tshape=\"round-xs\"\n\t\t\t\t\t\t\t\tpadding=\"none\"\n\t\t\t\t\t\t\t\t[number]=\"page.label\"\n\t\t\t\t\t\t\t\t[active]=\"p.getCurrent() === page.value\"\n\t\t\t\t\t\t\t></st-pagination-item>\n\t\t\t\t\t\t} @else {\n\t\t\t\t\t\t\t<st-pagination-item\n\t\t\t\t\t\t\t\tvariant=\"numeric\"\n\t\t\t\t\t\t\t\tsize=\"md\"\n\t\t\t\t\t\t\t\tshape=\"round-xs\"\n\t\t\t\t\t\t\t\tpadding=\"none\"\n\t\t\t\t\t\t\t\t[number]=\"page.label\"\n\t\t\t\t\t\t\t\t[active]=\"p.getCurrent() === page.value\"\n\t\t\t\t\t\t\t></st-pagination-item>\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t<st-pagination-item\n\t\t\t\t\t\t[icon]=\"iconArrowRight\"\n\t\t\t\t\t\t(click)=\"!p.isLastPage() ? p.next() : null\"\n\t\t\t\t\t\tvariant=\"icon\"\n\t\t\t\t\t\tsize=\"md\"\n\t\t\t\t\t\tshape=\"round-xs\"\n\t\t\t\t\t\tpadding=\"none\"\n\t\t\t\t\t></st-pagination-item>\n\t\t\t\t\t<st-pagination-item\n\t\t\t\t\t\t[icon]=\"iconDoubleArrowRight\"\n\t\t\t\t\t\t(click)=\"!p.isLastPage() ? handlePageChange(p.getLastPage()) : null\"\n\t\t\t\t\t\tvariant=\"icon\"\n\t\t\t\t\t\tsize=\"md\"\n\t\t\t\t\t\tshape=\"round-xs\"\n\t\t\t\t\t\tpadding=\"none\"\n\t\t\t\t\t></st-pagination-item>\n\t\t\t\t}\n\t\t\t</div>\n\t\t</pagination-template>\n\t</div>\n}\n@if (type() === 'dots') {\n\t<div class=\"flex\">\n\t\t<pagination-template [id]=\"paginatorId()\" #p=\"paginationApi\" (pageChange)=\"handlePageChange($event)\" [maxSize]=\"10000\">\n\t\t\t<div class=\"flex items-center justify-center gap-2\">\n\t\t\t\t@if (pages()) {\n\t\t\t\t\t<!-- Standalone pagination -->\n\t\t\t\t\t@for (page of pageCounter(); track $index) {\n\t\t\t\t\t\t@if (currentPage() !== page) {\n\t\t\t\t\t\t\t<st-pagination-item\n\t\t\t\t\t\t\t\t(click)=\"handlePageChange(page)\"\n\t\t\t\t\t\t\t\tvariant=\"dots\"\n\t\t\t\t\t\t\t\tsize=\"xs\"\n\t\t\t\t\t\t\t\tshape=\"round-lg\"\n\t\t\t\t\t\t\t\tpadding=\"none\"\n\t\t\t\t\t\t\t\t[active]=\"currentPage() === page\"\n\t\t\t\t\t\t\t></st-pagination-item>\n\t\t\t\t\t\t} @else {\n\t\t\t\t\t\t\t<st-pagination-item variant=\"dots\" size=\"xs\" shape=\"round-lg\" padding=\"none\" [active]=\"currentPage() === page\"></st-pagination-item>\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} @else {\n\t\t\t\t\t<!-- Table pagination -->\n\t\t\t\t\t@for (page of p.pages; track $index) {\n\t\t\t\t\t\t@if (p.getCurrent() !== page.value) {\n\t\t\t\t\t\t\t<st-pagination-item\n\t\t\t\t\t\t\t\t(click)=\"p.setCurrent(page.value)\"\n\t\t\t\t\t\t\t\tvariant=\"dots\"\n\t\t\t\t\t\t\t\tsize=\"xs\"\n\t\t\t\t\t\t\t\tshape=\"round-lg\"\n\t\t\t\t\t\t\t\tpadding=\"none\"\n\t\t\t\t\t\t\t\t[active]=\"p.getCurrent() === page.value\"\n\t\t\t\t\t\t\t></st-pagination-item>\n\t\t\t\t\t\t} @else {\n\t\t\t\t\t\t\t<st-pagination-item\n\t\t\t\t\t\t\t\tvariant=\"dots\"\n\t\t\t\t\t\t\t\tsize=\"xs\"\n\t\t\t\t\t\t\t\tshape=\"round-lg\"\n\t\t\t\t\t\t\t\tpadding=\"none\"\n\t\t\t\t\t\t\t\t[active]=\"p.getCurrent() === page.value\"\n\t\t\t\t\t\t\t></st-pagination-item>\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t</div>\n\t\t</pagination-template>\n\t</div>\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n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E,uBAAuB,CAAC,EAEpD,eAAA,EAAA,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,+7LAAA,EAAA,CAAA;;;AElBhD;;AAEG;;;;"}
1
+ {"version":3,"file":"sixbell-telco-sdk-components-paginator.mjs","sources":["../../../projects/sdk/components/paginator/components/pagination-item/pagination-item.component.ts","../../../projects/sdk/components/paginator/components/pagination-item/pagination-item.component.html","../../../projects/sdk/components/paginator/src/paginator.component.ts","../../../projects/sdk/components/paginator/src/paginator.component.html","../../../projects/sdk/components/paginator/sixbell-telco-sdk-components-paginator.ts"],"sourcesContent":["import { Component, input } from '@angular/core';\nimport { IconComponent } from '@sixbell-telco/sdk/components/icon';\nimport { matKeyboardArrowLeftOutline } 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 } from 'class-variance-authority';\n\nexport const paginationItemComponent = cva([], {\n\tvariants: {\n\t\tvariant: {\n\t\t\tnumeric: [\n\t\t\t\t'btn',\n\t\t\t\t'btn-outline',\n\t\t\t\t'flex',\n\t\t\t\t'min-h-5',\n\t\t\t\t'text-base-content',\n\t\t\t\t'border-secondary',\n\t\t\t\t'hover:text-secondary-content',\n\t\t\t\t'hover:bg-secondary',\n\t\t\t\t'hover:bg-opacity-40',\n\t\t\t\t'hover:border-secondary',\n\t\t\t\t'active:hover:bg-secondary-content',\n\t\t\t\t'active:hover:bg-secondary',\n\t\t\t\t'active:focus:border-secondary',\n\t\t\t],\n\t\t\ticon: [\n\t\t\t\t'btn',\n\t\t\t\t'btn-outline',\n\t\t\t\t'flex',\n\t\t\t\t'min-h-5',\n\t\t\t\t'text-base-content',\n\t\t\t\t'border-secondary',\n\t\t\t\t'hover:text-secondary-content',\n\t\t\t\t'hover:bg-secondary',\n\t\t\t\t'hover:bg-opacity-40',\n\t\t\t\t'hover:border-secondary',\n\t\t\t\t'active:hover:bg-secondary-content',\n\t\t\t\t'active:hover:bg-secondary',\n\t\t\t\t'active:focus:border-secondary',\n\t\t\t],\n\t\t\tdots: [\n\t\t\t\t'btn',\n\t\t\t\t'btn-circle',\n\t\t\t\t'flex',\n\t\t\t\t'min-h-[0.625rem]',\n\t\t\t\t'border-secondary',\n\t\t\t\t'bg-secondary',\n\t\t\t\t'hover:bg-secondary',\n\t\t\t\t'hover:bg-opacity-40',\n\t\t\t\t'hover:border-secondary',\n\t\t\t\t'hover:scale-150',\n\t\t\t\t'active:hover:bg-secondary',\n\t\t\t\t'active:border-secondary',\n\t\t\t\t'active:scale-150',\n\t\t\t\t'active:focus:border-secondary',\n\t\t\t\t'',\n\t\t\t],\n\t\t},\n\t\tshape: {\n\t\t\t'round-xs': ['rounded-[0.3rem]'],\n\t\t\t'round-sm': ['rounded-btn-sm'],\n\t\t\t'round-md': ['rounded-btn-md'],\n\t\t\t'round-lg': ['rounded-btn-lg'],\n\t\t},\n\t\tsize: {\n\t\t\txs: ['h-[0.625rem]', 'w-[0.625rem]'],\n\t\t\tsm: ['h-5', 'w-5'],\n\t\t\tmd: ['h-[1.875rem]', 'w-[1.875rem]'],\n\t\t\tlg: ['h-9', 'w-9'],\n\t\t},\n\t\tpadding: {\n\t\t\tnone: ['p-0'],\n\t\t\tsm: ['px-4'],\n\t\t\tmd: ['px-6'],\n\t\t\tlg: ['px-8'],\n\t\t},\n\t},\n\tcompoundVariants: [],\n\tdefaultVariants: {\n\t\tvariant: 'numeric',\n\t\tshape: 'round-lg',\n\t\tsize: 'md',\n\t\tpadding: 'none',\n\t},\n});\n\nexport type PaginationItemVariantProps = 'numeric' | 'icon' | 'dots' | null | undefined;\nexport type PaginationItemShapeProps = 'round-xs' | 'round-sm' | 'round-md' | 'round-lg' | null | undefined;\nexport type PaginationItemSizeProps = 'xs' | 'sm' | 'md' | 'lg' | null | undefined;\nexport type PaginationItemPaddingProps = 'none' | 'sm' | 'md' | 'lg' | null | undefined;\n\nexport type PaginationItemProps = {\n\tvariant?: PaginationItemVariantProps;\n\tshape?: PaginationItemShapeProps;\n\tsize?: PaginationItemSizeProps;\n\tpadding?: PaginationItemPaddingProps;\n};\n\n@Component({\n\tselector: 'st-pagination-item',\n\tstandalone: true,\n\timports: [IconComponent, TypographyDirective],\n\ttemplateUrl: './pagination-item.component.html',\n\tstyles: '',\n})\nexport class PaginationItemComponent {\n\tvariant = input<PaginationItemVariantProps>();\n\tshape = input<PaginationItemShapeProps>();\n\tsize = input<PaginationItemSizeProps>();\n\tpadding = input<PaginationItemPaddingProps>();\n\tclasses = input<string>('');\n\ticon = input<string>(matKeyboardArrowLeftOutline);\n\tnumber = input<number | string>(1);\n\tactive = input<boolean>(false);\n\n\tget componentClass() {\n\t\treturn cn(\n\t\t\tpaginationItemComponent({\n\t\t\t\tvariant: this.variant(),\n\t\t\t\tshape: this.shape(),\n\t\t\t\tsize: this.size(),\n\t\t\t\tpadding: this.padding(),\n\t\t\t\tclass: this.classes(),\n\t\t\t}),\n\t\t\t{ 'bg-secondary-content bg-secondary border-secondary text-secondary-content': this.active() && this.variant() !== 'dots' },\n\t\t\t{\n\t\t\t\t'hover:scale-100 hover:bg-opacity-100 w-[0.9375rem] h-[0.9375rem] bg-secondary border-secondary text-secondary-content':\n\t\t\t\t\tthis.active() && this.variant() === 'dots',\n\t\t\t},\n\t\t);\n\t}\n}\n","@let variantVar = this.variant();\n\n@if (variantVar === 'numeric') {\n\t<button [class]=\"componentClass\" type=\"button\">\n\t\t<span typography [tyVariant]=\"'body-sm'\" [tyColor]=\"'inherit'\" [tyFontWeight]=\"'normal'\">{{ number() }}</span>\n\t</button>\n} @else if (variantVar === 'icon') {\n\t<button [class]=\"componentClass\" type=\"button\">\n\t\t<st-icon [icon]=\"this.icon()\" color=\"inherit\" size=\"sm\"></st-icon>\n\t</button>\n} @else if (variantVar === 'dots') {\n\t<button [class]=\"componentClass\" type=\"button\">\n\t\t<span></span>\n\t</button>\n} @else {\n\t<button [class]=\"componentClass\" type=\"button\">\n\t\t<span typography [tyVariant]=\"'body-sm'\" [tyColor]=\"'inherit'\" [tyFontWeight]=\"'normal'\">{{ number() }}</span>\n\t</button>\n}\n","import { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, computed, input, model, output } from '@angular/core';\nimport {\n\tmatKeyboardArrowLeftOutline,\n\tmatKeyboardArrowRightOutline,\n\tmatKeyboardDoubleArrowLeftOutline,\n\tmatKeyboardDoubleArrowRightOutline,\n} from '@sixbell-telco/sdk/components/icon/material/outline';\nimport { NgxPaginationModule } from 'ngx-pagination';\nimport { PaginationItemComponent } from '../components/pagination-item/pagination-item.component';\n\nexport type PaginationType = 'default' | 'dots';\n\n@Component({\n\tselector: 'st-paginator',\n\tstandalone: true,\n\timports: [NgxPaginationModule, CommonModule, PaginationItemComponent],\n\ttemplateUrl: './paginator.component.html',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class PaginatorComponent {\n\tpaginatorId = input<string>('paginator');\n\tmaxSize = input<number>(5);\n\ttype = input<PaginationType>('default');\n\tonPageChange = output<number>();\n\n\t// For standalone pagination\n\tpages = input<number>(0);\n\tpageCounter = computed(() => Array.from({ length: this.pages() }, (_, i) => i + 1));\n\tcurrentPage = model<number>(1);\n\n\ticonArrowLeft = matKeyboardArrowLeftOutline;\n\ticonDoubleArrowLeft = matKeyboardDoubleArrowLeftOutline;\n\ticonArrowRight = matKeyboardArrowRightOutline;\n\ticonDoubleArrowRight = matKeyboardDoubleArrowRightOutline;\n\n\thandlePageChange(page: number) {\n\t\tthis.currentPage.set(page);\n\t\tthis.onPageChange.emit(page);\n\t}\n\n\tpreviousPage() {\n\t\tif (this.currentPage() > 1) {\n\t\t\tthis.currentPage.set(this.currentPage() - 1);\n\t\t\tthis.onPageChange.emit(this.currentPage());\n\t\t}\n\t}\n\n\tnextPage() {\n\t\tif (this.currentPage() < this.pages()) {\n\t\t\tthis.currentPage.set(this.currentPage() + 1);\n\t\t\tthis.onPageChange.emit(this.currentPage());\n\t\t}\n\t}\n\n\tfirstPage() {\n\t\tthis.currentPage.set(1);\n\t\tthis.onPageChange.emit(1);\n\t}\n\n\tlastPage() {\n\t\tthis.currentPage.set(this.pages());\n\t\tthis.onPageChange.emit(this.pages());\n\t}\n}\n","@if (type() === 'default') {\n\t<div class=\"flex\">\n\t\t<pagination-template [id]=\"paginatorId()\" #p=\"paginationApi\" [maxSize]=\"maxSize()\" (pageChange)=\"handlePageChange($event)\">\n\t\t\t<div class=\"flex items-center justify-center gap-2\">\n\t\t\t\t@if (pages()) {\n\t\t\t\t\t<!-- Standalone pagination -->\n\t\t\t\t\t<st-pagination-item\n\t\t\t\t\t\t[icon]=\"iconDoubleArrowLeft\"\n\t\t\t\t\t\t(click)=\"firstPage()\"\n\t\t\t\t\t\tvariant=\"icon\"\n\t\t\t\t\t\tsize=\"md\"\n\t\t\t\t\t\tshape=\"round-xs\"\n\t\t\t\t\t\tpadding=\"none\"\n\t\t\t\t\t></st-pagination-item>\n\t\t\t\t\t<st-pagination-item\n\t\t\t\t\t\t[icon]=\"iconArrowLeft\"\n\t\t\t\t\t\t(click)=\"previousPage()\"\n\t\t\t\t\t\tvariant=\"icon\"\n\t\t\t\t\t\tsize=\"md\"\n\t\t\t\t\t\tshape=\"round-xs\"\n\t\t\t\t\t\tpadding=\"none\"\n\t\t\t\t\t></st-pagination-item>\n\t\t\t\t\t@for (page of pageCounter(); track $index) {\n\t\t\t\t\t\t@if (currentPage() !== page) {\n\t\t\t\t\t\t\t<st-pagination-item\n\t\t\t\t\t\t\t\t(click)=\"handlePageChange(page)\"\n\t\t\t\t\t\t\t\tvariant=\"numeric\"\n\t\t\t\t\t\t\t\tsize=\"md\"\n\t\t\t\t\t\t\t\tshape=\"round-xs\"\n\t\t\t\t\t\t\t\tpadding=\"none\"\n\t\t\t\t\t\t\t\t[number]=\"page\"\n\t\t\t\t\t\t\t\t[active]=\"currentPage() === page\"\n\t\t\t\t\t\t\t></st-pagination-item>\n\t\t\t\t\t\t} @else {\n\t\t\t\t\t\t\t<st-pagination-item\n\t\t\t\t\t\t\t\tvariant=\"numeric\"\n\t\t\t\t\t\t\t\tsize=\"md\"\n\t\t\t\t\t\t\t\tshape=\"round-xs\"\n\t\t\t\t\t\t\t\tpadding=\"none\"\n\t\t\t\t\t\t\t\t[number]=\"page\"\n\t\t\t\t\t\t\t\t[active]=\"currentPage() === page\"\n\t\t\t\t\t\t\t></st-pagination-item>\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t<st-pagination-item\n\t\t\t\t\t\t[icon]=\"iconArrowRight\"\n\t\t\t\t\t\t(click)=\"nextPage()\"\n\t\t\t\t\t\tvariant=\"icon\"\n\t\t\t\t\t\tsize=\"md\"\n\t\t\t\t\t\tshape=\"round-xs\"\n\t\t\t\t\t\tpadding=\"none\"\n\t\t\t\t\t></st-pagination-item>\n\t\t\t\t\t<st-pagination-item\n\t\t\t\t\t\t[icon]=\"iconDoubleArrowRight\"\n\t\t\t\t\t\t(click)=\"lastPage()\"\n\t\t\t\t\t\tvariant=\"icon\"\n\t\t\t\t\t\tsize=\"md\"\n\t\t\t\t\t\tshape=\"round-xs\"\n\t\t\t\t\t\tpadding=\"none\"\n\t\t\t\t\t></st-pagination-item>\n\t\t\t\t} @else {\n\t\t\t\t\t<!-- Table pagination -->\n\t\t\t\t\t<st-pagination-item\n\t\t\t\t\t\t[icon]=\"iconDoubleArrowLeft\"\n\t\t\t\t\t\t(click)=\"!p.isFirstPage() ? handlePageChange(1) : null\"\n\t\t\t\t\t\tvariant=\"icon\"\n\t\t\t\t\t\tsize=\"md\"\n\t\t\t\t\t\tshape=\"round-xs\"\n\t\t\t\t\t\tpadding=\"none\"\n\t\t\t\t\t></st-pagination-item>\n\t\t\t\t\t<st-pagination-item\n\t\t\t\t\t\t[icon]=\"iconArrowLeft\"\n\t\t\t\t\t\t(click)=\"!p.isFirstPage() ? p.previous() : null\"\n\t\t\t\t\t\tvariant=\"icon\"\n\t\t\t\t\t\tsize=\"md\"\n\t\t\t\t\t\tshape=\"round-xs\"\n\t\t\t\t\t\tpadding=\"none\"\n\t\t\t\t\t></st-pagination-item>\n\n\t\t\t\t\t@for (page of p.pages; track $index) {\n\t\t\t\t\t\t@if (p.getCurrent() !== page.value) {\n\t\t\t\t\t\t\t<st-pagination-item\n\t\t\t\t\t\t\t\t(click)=\"p.setCurrent(page.value)\"\n\t\t\t\t\t\t\t\tvariant=\"numeric\"\n\t\t\t\t\t\t\t\tsize=\"md\"\n\t\t\t\t\t\t\t\tshape=\"round-xs\"\n\t\t\t\t\t\t\t\tpadding=\"none\"\n\t\t\t\t\t\t\t\t[number]=\"page.label\"\n\t\t\t\t\t\t\t\t[active]=\"p.getCurrent() === page.value\"\n\t\t\t\t\t\t\t></st-pagination-item>\n\t\t\t\t\t\t} @else {\n\t\t\t\t\t\t\t<st-pagination-item\n\t\t\t\t\t\t\t\tvariant=\"numeric\"\n\t\t\t\t\t\t\t\tsize=\"md\"\n\t\t\t\t\t\t\t\tshape=\"round-xs\"\n\t\t\t\t\t\t\t\tpadding=\"none\"\n\t\t\t\t\t\t\t\t[number]=\"page.label\"\n\t\t\t\t\t\t\t\t[active]=\"p.getCurrent() === page.value\"\n\t\t\t\t\t\t\t></st-pagination-item>\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t<st-pagination-item\n\t\t\t\t\t\t[icon]=\"iconArrowRight\"\n\t\t\t\t\t\t(click)=\"!p.isLastPage() ? p.next() : null\"\n\t\t\t\t\t\tvariant=\"icon\"\n\t\t\t\t\t\tsize=\"md\"\n\t\t\t\t\t\tshape=\"round-xs\"\n\t\t\t\t\t\tpadding=\"none\"\n\t\t\t\t\t></st-pagination-item>\n\t\t\t\t\t<st-pagination-item\n\t\t\t\t\t\t[icon]=\"iconDoubleArrowRight\"\n\t\t\t\t\t\t(click)=\"!p.isLastPage() ? handlePageChange(p.getLastPage()) : null\"\n\t\t\t\t\t\tvariant=\"icon\"\n\t\t\t\t\t\tsize=\"md\"\n\t\t\t\t\t\tshape=\"round-xs\"\n\t\t\t\t\t\tpadding=\"none\"\n\t\t\t\t\t></st-pagination-item>\n\t\t\t\t}\n\t\t\t</div>\n\t\t</pagination-template>\n\t</div>\n}\n@if (type() === 'dots') {\n\t<div class=\"flex\">\n\t\t<pagination-template [id]=\"paginatorId()\" #p=\"paginationApi\" (pageChange)=\"handlePageChange($event)\" [maxSize]=\"10000\">\n\t\t\t<div class=\"flex items-center justify-center gap-2\">\n\t\t\t\t@if (pages()) {\n\t\t\t\t\t<!-- Standalone pagination -->\n\t\t\t\t\t@for (page of pageCounter(); track $index) {\n\t\t\t\t\t\t@if (currentPage() !== page) {\n\t\t\t\t\t\t\t<st-pagination-item\n\t\t\t\t\t\t\t\t(click)=\"handlePageChange(page)\"\n\t\t\t\t\t\t\t\tvariant=\"dots\"\n\t\t\t\t\t\t\t\tsize=\"xs\"\n\t\t\t\t\t\t\t\tshape=\"round-lg\"\n\t\t\t\t\t\t\t\tpadding=\"none\"\n\t\t\t\t\t\t\t\t[active]=\"currentPage() === page\"\n\t\t\t\t\t\t\t></st-pagination-item>\n\t\t\t\t\t\t} @else {\n\t\t\t\t\t\t\t<st-pagination-item variant=\"dots\" size=\"xs\" shape=\"round-lg\" padding=\"none\" [active]=\"currentPage() === page\"></st-pagination-item>\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} @else {\n\t\t\t\t\t<!-- Table pagination -->\n\t\t\t\t\t@for (page of p.pages; track $index) {\n\t\t\t\t\t\t@if (p.getCurrent() !== page.value) {\n\t\t\t\t\t\t\t<st-pagination-item\n\t\t\t\t\t\t\t\t(click)=\"p.setCurrent(page.value)\"\n\t\t\t\t\t\t\t\tvariant=\"dots\"\n\t\t\t\t\t\t\t\tsize=\"xs\"\n\t\t\t\t\t\t\t\tshape=\"round-lg\"\n\t\t\t\t\t\t\t\tpadding=\"none\"\n\t\t\t\t\t\t\t\t[active]=\"p.getCurrent() === page.value\"\n\t\t\t\t\t\t\t></st-pagination-item>\n\t\t\t\t\t\t} @else {\n\t\t\t\t\t\t\t<st-pagination-item\n\t\t\t\t\t\t\t\tvariant=\"dots\"\n\t\t\t\t\t\t\t\tsize=\"xs\"\n\t\t\t\t\t\t\t\tshape=\"round-lg\"\n\t\t\t\t\t\t\t\tpadding=\"none\"\n\t\t\t\t\t\t\t\t[active]=\"p.getCurrent() === page.value\"\n\t\t\t\t\t\t\t></st-pagination-item>\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t</div>\n\t\t</pagination-template>\n\t</div>\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;AAOa,MAAA,uBAAuB,GAAG,GAAG,CAAC,EAAE,EAAE;AAC9C,IAAA,QAAQ,EAAE;AACT,QAAA,OAAO,EAAE;AACR,YAAA,OAAO,EAAE;gBACR,KAAK;gBACL,aAAa;gBACb,MAAM;gBACN,SAAS;gBACT,mBAAmB;gBACnB,kBAAkB;gBAClB,8BAA8B;gBAC9B,oBAAoB;gBACpB,qBAAqB;gBACrB,wBAAwB;gBACxB,mCAAmC;gBACnC,2BAA2B;gBAC3B,+BAA+B;AAC/B,aAAA;AACD,YAAA,IAAI,EAAE;gBACL,KAAK;gBACL,aAAa;gBACb,MAAM;gBACN,SAAS;gBACT,mBAAmB;gBACnB,kBAAkB;gBAClB,8BAA8B;gBAC9B,oBAAoB;gBACpB,qBAAqB;gBACrB,wBAAwB;gBACxB,mCAAmC;gBACnC,2BAA2B;gBAC3B,+BAA+B;AAC/B,aAAA;AACD,YAAA,IAAI,EAAE;gBACL,KAAK;gBACL,YAAY;gBACZ,MAAM;gBACN,kBAAkB;gBAClB,kBAAkB;gBAClB,cAAc;gBACd,oBAAoB;gBACpB,qBAAqB;gBACrB,wBAAwB;gBACxB,iBAAiB;gBACjB,2BAA2B;gBAC3B,yBAAyB;gBACzB,kBAAkB;gBAClB,+BAA+B;gBAC/B,EAAE;AACF,aAAA;AACD,SA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AA,oBAAA,EAAA,MAAA,EAAA,CAAA,SAAA,EAAA,OAAA,EAAA,MAAA,EAAA,SAAA,EAAA,SAAA,EAAA,MAAA,EAAA,QAAA,EAAA,QAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;4FAIxD,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAP9B,SAAS;AACC,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,cAAc,EACZ,UAAA,EAAA,IAAI,EACP,OAAA,EAAA,CAAC,mBAAmB,EAAE,YAAY,EAAE,uBAAuB,CAAC,EAEpD,eAAA,EAAA,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,+7LAAA,EAAA,CAAA;;;AElBhD;;AAEG;;;;"}
@@ -168,7 +168,7 @@ class ProductCardComponent {
168
168
  return cn('card-actions', this.actionsClasses());
169
169
  }
170
170
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: ProductCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
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", "tyTextOverflow"] }, { kind: "component", type: IconComponent, selector: "st-icon", inputs: ["color", "size", "classes", "icon"] }] });
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", "tyTextOverflow"] }, { kind: "component", type: IconComponent, selector: "st-icon", inputs: ["color", "size", "icon"] }] });
172
172
  }
173
173
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: ProductCardComponent, decorators: [{
174
174
  type: Component,
@@ -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},\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;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,2BA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mB,EAAE,aAAa,CAAC,EAAA,QAAA,EAAA,slFAAA,EAAA,CAAA;;;AElIhE;;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;AAChB,iBAAA,CAAA;;;MCCY,2BAA2B,CAAA;AACvC,IAAA,MAAM,GAAG,MAAM,CAAC,WAAW,CAAC,CAAC;wGADjB,2BAA2B,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PhC,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;;;;"}
@@ -177,7 +177,7 @@ 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></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", "tyTextOverflow"] }, { 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 });
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></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", "tyTextOverflow"] }, { 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", "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,
@@ -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'],\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 resultados');\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></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,iBAAA,EAAA,iBAAA,EAAA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AA,EAAA,EAAA,EAAA,YAAA,EAAA,MAAA,EAAA,SAAA,EAAA,yBAAyB,gECjJjD,uhGAyEA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EDLW,YAAY,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAE,kBAAkB,EAAE,QAAA,EAAA,cAAA,EAAA,MAAA,EAAA,CAAA,aAAA,EAAA,SAAA,EAAA,MAAA,EAAA,OAAA,EAAA,aAAA,CAAA,EAAA,OAAA,EAAA,CAAA,cAAA,EAAA,mBAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,mBAAmB,EAAE,QAAA,EAAA,cAAA,EAAA,MAAA,EAAA,CAAA,WAAA,EAAA,SAAA,EAAA,cAAA,EAAA,gBAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,eAAe,0RAAE,aAAa,EAAA,QAAA,EAAA,SAAA,EAAA,MAAA,EAAA,CAAA,OAAA,EAAA,MAAA,EAAA,SAAA,EAAA,MAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;4FAInF,cAAc,EAAA,UAAA,EAAA,CAAA;kBAP1B,SAAS;AACC,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,UAAU,cACR,IAAI,EAAA,OAAA,EACP,CAAC,YAAY,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,eAAe,EAAE,aAAa,CAAC,EAE/E,eAAA,EAAA,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,uhGAAA,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 resultados');\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></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,iBAAA,EAAA,iBAAA,EAAA,UAAA,EAAA,iBAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,YAAA,EAAA,EAAA,iBAAA,EAAA,cAAA,EAAA,UAAA,EAAA,cAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QA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EAAA,MAAA,EAAA,OAAA,EAAA,aAAA,CAAA,EAAA,OAAA,EAAA,CAAA,cAAA,EAAA,mBAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,mBAAmB,EAAE,QAAA,EAAA,cAAA,EAAA,MAAA,EAAA,CAAA,WAAA,EAAA,SAAA,EAAA,cAAA,EAAA,gBAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,eAAe,0RAAE,aAAa,EAAA,QAAA,EAAA,SAAA,EAAA,MAAA,EAAA,CAAA,OAAA,EAAA,MAAA,EAAA,MAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;4FAInF,cAAc,EAAA,UAAA,EAAA,CAAA;kBAP1B,SAAS;AACC,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,UAAU,cACR,IAAI,EAAA,OAAA,EACP,CAAC,YAAY,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,eAAe,EAAE,aAAa,CAAC,EAE/E,eAAA,EAAA,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,uhGAAA,EAAA,CAAA;;;AEtEhD;;AAEG;;;;"}
@@ -136,7 +136,7 @@ class ToastMessageComponent {
136
136
  this.onClick.emit(this.toast());
137
137
  }
138
138
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: ToastMessageComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
139
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.12", type: ToastMessageComponent, isStandalone: true, selector: "st-toast-message", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, classes: { classPropertyName: "classes", publicName: "classes", isSignal: true, isRequired: false, transformFunction: null }, toast: { classPropertyName: "toast", publicName: "toast", isSignal: true, isRequired: true, transformFunction: null }, toastAmount: { classPropertyName: "toastAmount", publicName: "toastAmount", isSignal: true, isRequired: true, transformFunction: null }, toastIndex: { classPropertyName: "toastIndex", publicName: "toastIndex", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { onClick: "onClick" }, ngImport: i0, template: "<!-- eslint-disable @angular-eslint/template/click-events-have-key-events -->\n<li\n\t[class]=\"componentClass\"\n\t[ngClass]=\"{\n\t\t'bottom-0 animate-toast-slide-out': toast().animate === 'leave' && toastAmount() > 1,\n\t\t'animate-slide-out': toast().animate === 'leave' && toastAmount() === 1,\n\t\t'animate-fade-out': toast().animate === 'leave' && toastAmount() > 1 && toastIndex() === 0,\n\t\t'animate-slide-in': toast().animate === 'enter',\n\t}\"\n\t(click)=\"handleClose()\"\n\trole=\"button\"\n\ttabindex=\"0\"\n>\n\t<div class=\"flex flex-1 items-center justify-center\">\n\t\t@if (this.toast().type === this.types.SUCCESS) {\n\t\t\t<st-icon [icon]=\"iconCheckCircle\" color=\"inherit\" size=\"md\"></st-icon>\n\t\t} @else if (this.toast().type === this.types.WARNING) {\n\t\t\t<st-icon [icon]=\"iconWarning\" color=\"inherit\" size=\"md\"></st-icon>\n\t\t} @else if (this.toast().type === this.types.ERROR) {\n\t\t\t<st-icon [icon]=\"iconError\" color=\"inherit\" size=\"md\"></st-icon>\n\t\t} @else if (this.toast().type === this.types.INFO) {\n\t\t\t<st-icon [icon]=\"iconInfo\" color=\"inherit\" size=\"md\"></st-icon>\n\t\t}\n\t</div>\n\t<div class=\"flex-[4]\">\n\t\t<div class=\"grid grid-rows-[min-content_1fr]\">\n\t\t\t<div typography [tyVariant]=\"'body-sm'\" [tyColor]=\"'base'\" [tyFontWeight]=\"'semibold'\">{{ toast().title }}</div>\n\t\t\t<div typography [tyVariant]=\"'body-xs'\" [tyColor]=\"'base'\" [tyFontWeight]=\"'normal'\">\n\t\t\t\t{{ toast().message }}\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</li>\n", dependencies: [{ kind: "directive", type: TypographyDirective, selector: "[typography]", inputs: ["tyVariant", "tyColor", "tyFontWeight", "tyTextOverflow"] }, { kind: "component", type: IconComponent, selector: "st-icon", inputs: ["color", "size", "classes", "icon"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
139
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.12", type: ToastMessageComponent, isStandalone: true, selector: "st-toast-message", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, classes: { classPropertyName: "classes", publicName: "classes", isSignal: true, isRequired: false, transformFunction: null }, toast: { classPropertyName: "toast", publicName: "toast", isSignal: true, isRequired: true, transformFunction: null }, toastAmount: { classPropertyName: "toastAmount", publicName: "toastAmount", isSignal: true, isRequired: true, transformFunction: null }, toastIndex: { classPropertyName: "toastIndex", publicName: "toastIndex", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { onClick: "onClick" }, ngImport: i0, template: "<!-- eslint-disable @angular-eslint/template/click-events-have-key-events -->\n<li\n\t[class]=\"componentClass\"\n\t[ngClass]=\"{\n\t\t'bottom-0 animate-toast-slide-out': toast().animate === 'leave' && toastAmount() > 1,\n\t\t'animate-slide-out': toast().animate === 'leave' && toastAmount() === 1,\n\t\t'animate-fade-out': toast().animate === 'leave' && toastAmount() > 1 && toastIndex() === 0,\n\t\t'animate-slide-in': toast().animate === 'enter',\n\t}\"\n\t(click)=\"handleClose()\"\n\trole=\"button\"\n\ttabindex=\"0\"\n>\n\t<div class=\"flex flex-1 items-center justify-center\">\n\t\t@if (this.toast().type === this.types.SUCCESS) {\n\t\t\t<st-icon [icon]=\"iconCheckCircle\" color=\"inherit\" size=\"md\"></st-icon>\n\t\t} @else if (this.toast().type === this.types.WARNING) {\n\t\t\t<st-icon [icon]=\"iconWarning\" color=\"inherit\" size=\"md\"></st-icon>\n\t\t} @else if (this.toast().type === this.types.ERROR) {\n\t\t\t<st-icon [icon]=\"iconError\" color=\"inherit\" size=\"md\"></st-icon>\n\t\t} @else if (this.toast().type === this.types.INFO) {\n\t\t\t<st-icon [icon]=\"iconInfo\" color=\"inherit\" size=\"md\"></st-icon>\n\t\t}\n\t</div>\n\t<div class=\"flex-[4]\">\n\t\t<div class=\"grid grid-rows-[min-content_1fr]\">\n\t\t\t<div typography [tyVariant]=\"'body-sm'\" [tyColor]=\"'base'\" [tyFontWeight]=\"'semibold'\">{{ toast().title }}</div>\n\t\t\t<div typography [tyVariant]=\"'body-xs'\" [tyColor]=\"'base'\" [tyFontWeight]=\"'normal'\">\n\t\t\t\t{{ toast().message }}\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</li>\n", dependencies: [{ kind: "directive", type: TypographyDirective, selector: "[typography]", inputs: ["tyVariant", "tyColor", "tyFontWeight", "tyTextOverflow"] }, { kind: "component", type: IconComponent, selector: "st-icon", inputs: ["color", "size", "icon"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
140
140
  }
141
141
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: ToastMessageComponent, decorators: [{
142
142
  type: Component,