@sixbell-telco/sdk 0.3.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +50 -0
- package/README.md +96 -55
- package/assets/styles/combobox.scss +17 -17
- package/components/accordion/accordion-item/accordion-item.component.d.ts +1 -2
- package/components/avatar/src/avatar.component.d.ts +11 -18
- package/components/button/src/button.component.d.ts +12 -19
- package/components/card/card-actions/card-actions.component.d.ts +8 -0
- package/components/card/card-content/card-content.component.d.ts +5 -0
- package/components/card/card-title/card-title.component.d.ts +5 -0
- package/components/card/public-api.d.ts +3 -0
- package/components/card/src/card.component.d.ts +19 -20
- package/components/countdown/src/countdown.component.d.ts +6 -1
- package/components/dropdown/dropdown-item/dropdown-item.component.d.ts +10 -0
- package/components/dropdown/public-api.d.ts +1 -0
- package/components/dropdown/src/dropdown.component.d.ts +24 -42
- package/components/file-upload/file-uploader/src/file-uploader.component.d.ts +2 -5
- package/components/forms/checkbox/src/checkbox.component.d.ts +2 -3
- package/components/forms/input/src/input.component.d.ts +7 -8
- package/components/forms/radio/src/radio.component.d.ts +2 -6
- package/components/forms/select/src/select.component.d.ts +5 -8
- package/components/forms/textarea/src/textarea.component.d.ts +5 -11
- package/components/link/src/link.component.d.ts +18 -45
- package/components/modal/modal-actions/modal-actions.component.d.ts +8 -0
- package/components/modal/modal-content/modal-content.component.d.ts +5 -0
- package/components/modal/modal-title/modal-title.component.d.ts +5 -0
- package/components/modal/public-api.d.ts +3 -0
- package/components/modal/src/modal.component.d.ts +7 -13
- package/components/product-card/src/product-card.component.d.ts +5 -9
- package/components/tab/src/tab.component.d.ts +1 -2
- package/directives/click-outside/index.d.ts +5 -0
- package/directives/click-outside/public-api.d.ts +1 -0
- package/directives/click-outside/src/click-outside.directive.d.ts +10 -0
- package/directives/typography/src/typography.directive.d.ts +3 -4
- package/esm2022/components/accordion/accordion-item/accordion-item.component.mjs +5 -6
- package/esm2022/components/avatar/src/avatar.component.mjs +27 -43
- package/esm2022/components/button/src/button.component.mjs +12 -22
- package/esm2022/components/card/card-actions/card-actions.component.mjs +22 -0
- package/esm2022/components/card/card-content/card-content.component.mjs +12 -0
- package/esm2022/components/card/card-title/card-title.component.mjs +12 -0
- package/esm2022/components/card/public-api.mjs +4 -1
- package/esm2022/components/card/src/card.component.mjs +20 -45
- package/esm2022/components/countdown/src/countdown.component.mjs +10 -3
- package/esm2022/components/dropdown/dropdown-item/dropdown-item.component.mjs +24 -0
- package/esm2022/components/dropdown/public-api.mjs +2 -1
- package/esm2022/components/dropdown/src/dropdown.component.mjs +65 -101
- package/esm2022/components/dual-list/src/dual-list.component.mjs +3 -3
- package/esm2022/components/file-upload/file-dropzone/src/file-dropzone.component.mjs +3 -3
- package/esm2022/components/file-upload/file-uploader/src/file-uploader.component.mjs +3 -7
- package/esm2022/components/forms/checkbox/src/checkbox.component.mjs +9 -8
- package/esm2022/components/forms/combobox/src/combobox.component.mjs +3 -3
- package/esm2022/components/forms/datepicker/src/datepicker.component.mjs +2 -2
- package/esm2022/components/forms/form-error/src/form-error.component.mjs +3 -3
- package/esm2022/components/forms/input/src/input.component.mjs +51 -45
- package/esm2022/components/forms/radio/src/radio.component.mjs +5 -18
- package/esm2022/components/forms/range/src/range.component.mjs +3 -3
- package/esm2022/components/forms/select/src/select.component.mjs +24 -34
- package/esm2022/components/forms/switch/src/switch.component.mjs +3 -3
- package/esm2022/components/forms/textarea/src/textarea.component.mjs +35 -48
- package/esm2022/components/forms/toggle/src/toggle.component.mjs +3 -3
- package/esm2022/components/link/src/link.component.mjs +27 -183
- package/esm2022/components/modal/modal-actions/modal-actions.component.mjs +22 -0
- package/esm2022/components/modal/modal-content/modal-content.component.mjs +12 -0
- package/esm2022/components/modal/modal-title/modal-title.component.mjs +13 -0
- package/esm2022/components/modal/public-api.mjs +4 -1
- package/esm2022/components/modal/src/modal.component.mjs +22 -31
- package/esm2022/components/notification/src/notification.component.mjs +2 -5
- package/esm2022/components/paginator/components/pagination-item/pagination-item.component.mjs +24 -24
- package/esm2022/components/product-card/src/product-card.component.mjs +5 -14
- package/esm2022/components/progress/src/progress.component.mjs +3 -3
- package/esm2022/components/tab/src/tab.component.mjs +2 -4
- package/esm2022/components/table/src/table.component.mjs +4 -4
- package/esm2022/components/table/table-header-checkbox/table-header-checkbox.component.mjs +1 -1
- package/esm2022/components/table/table-row-checkbox/table-row-checkbox.component.mjs +1 -1
- package/esm2022/components/toast/toast-message/toast-message.component.mjs +4 -4
- package/esm2022/components/wizard/wizard-marker/wizard-marker.component.mjs +4 -4
- package/esm2022/components/wizard/wizard-step/wizard-step.component.mjs +3 -3
- package/esm2022/components/wizard/wizard-wrapper/wizard-wrapper.component.mjs +3 -3
- package/esm2022/directives/click-outside/public-api.mjs +2 -0
- package/esm2022/directives/click-outside/sixbell-telco-sdk-directives-click-outside.mjs +5 -0
- package/esm2022/directives/click-outside/src/click-outside.directive.mjs +30 -0
- package/esm2022/directives/typography/src/typography.directive.mjs +19 -18
- package/fesm2022/sixbell-telco-sdk-components-accordion.mjs +4 -5
- package/fesm2022/sixbell-telco-sdk-components-accordion.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-avatar.mjs +26 -42
- package/fesm2022/sixbell-telco-sdk-components-avatar.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-button.mjs +11 -21
- package/fesm2022/sixbell-telco-sdk-components-button.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-card.mjs +57 -46
- package/fesm2022/sixbell-telco-sdk-components-card.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-countdown.mjs +9 -2
- package/fesm2022/sixbell-telco-sdk-components-countdown.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dropdown.mjs +86 -101
- package/fesm2022/sixbell-telco-sdk-components-dropdown.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dual-list.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-dual-list.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-file-upload-file-dropzone.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-file-upload-file-dropzone.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-file-upload-file-uploader.mjs +2 -6
- package/fesm2022/sixbell-telco-sdk-components-file-upload-file-uploader.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-checkbox.mjs +8 -7
- package/fesm2022/sixbell-telco-sdk-components-forms-checkbox.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-combobox.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-forms-combobox.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-datepicker.mjs +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-datepicker.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-form-error.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-forms-form-error.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-input.mjs +51 -45
- package/fesm2022/sixbell-telco-sdk-components-forms-input.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-radio.mjs +4 -17
- package/fesm2022/sixbell-telco-sdk-components-forms-radio.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-range.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-forms-range.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-select.mjs +23 -33
- package/fesm2022/sixbell-telco-sdk-components-forms-select.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-switch.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-forms-switch.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-textarea.mjs +34 -47
- package/fesm2022/sixbell-telco-sdk-components-forms-textarea.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-toggle.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-forms-toggle.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-link.mjs +27 -183
- package/fesm2022/sixbell-telco-sdk-components-link.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-modal.mjs +62 -33
- package/fesm2022/sixbell-telco-sdk-components-modal.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-notification.mjs +1 -4
- package/fesm2022/sixbell-telco-sdk-components-notification.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-paginator.mjs +23 -23
- package/fesm2022/sixbell-telco-sdk-components-paginator.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-product-card.mjs +4 -13
- package/fesm2022/sixbell-telco-sdk-components-product-card.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-progress.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-progress.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-tab.mjs +1 -3
- package/fesm2022/sixbell-telco-sdk-components-tab.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-table.mjs +5 -5
- package/fesm2022/sixbell-telco-sdk-components-table.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-toast.mjs +3 -3
- package/fesm2022/sixbell-telco-sdk-components-toast.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-wizard.mjs +7 -7
- package/fesm2022/sixbell-telco-sdk-components-wizard.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-directives-click-outside.mjs +37 -0
- package/fesm2022/sixbell-telco-sdk-directives-click-outside.mjs.map +1 -0
- package/fesm2022/sixbell-telco-sdk-directives-typography.mjs +18 -17
- package/fesm2022/sixbell-telco-sdk-directives-typography.mjs.map +1 -1
- package/package.json +13 -7
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sixbell-telco-sdk-components-link.mjs","sources":["../../../projects/sdk/components/link/src/link.component.ts","../../../projects/sdk/components/link/src/link.component.html","../../../projects/sdk/components/link/sixbell-telco-sdk-components-link.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, input, OnInit } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { NavigationEnd, Router, RouterLink, RouterLinkActive } from '@angular/router';\nimport { IconComponent } from '@sixbell-telco/sdk/components/icon';\nimport { matHomeOutline, matKeyboardArrowRightOutline } from '@sixbell-telco/sdk/components/icon/material/outline';\nimport { TypographyDirective, TypographyVariantProps } from '@sixbell-telco/sdk/directives/typography';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { cva, cx } from 'class-variance-authority';\nimport { filter } from 'rxjs';\n\nexport type Route = {\n\tlabel: string;\n\tpath: string;\n};\n\nexport const linkContainer = cva([], {\n\tvariants: {\n\t\tvariant: {\n\t\t\tprimary: ['link', 'link-primary', 'no-underline'],\n\t\t\tsecondary: ['link', 'link-secondary', 'no-underline'],\n\t\t\taccent: ['link', 'link-accent', 'no-underline'],\n\t\t\tsuccess: ['link', 'link-success', 'no-underline'],\n\t\t\tinfo: ['link', 'link-info', 'no-underline'],\n\t\t\twarning: ['link', 'link-warning', 'no-underline'],\n\t\t\terror: ['link', 'link-error', 'no-underline'],\n\t\t\t'btn-primary': [\n\t\t\t\t'btn',\n\t\t\t\t'min-h-12',\n\t\t\t\t'btn-ghost',\n\t\t\t\t'h-auto',\n\t\t\t\t'font-normal',\n\t\t\t\t'text-neutral',\n\t\t\t\t'hover:font-semibold',\n\t\t\t\t'hover:text-primary-content',\n\t\t\t\t'hover:bg-primary',\n\t\t\t\t'active:hover:font-semibold',\n\t\t\t\t'active:hover:text-primary-content',\n\t\t\t\t'active:hover:bg-primary',\n\t\t\t\t'active:focus:font-semibold',\n\t\t\t\t'active:focus:text-primary-content',\n\t\t\t\t'active:focus:bg-primary',\n\t\t\t],\n\t\t\t'btn-secondary': [\n\t\t\t\t'btn',\n\t\t\t\t'min-h-12',\n\t\t\t\t'btn-ghost',\n\t\t\t\t'h-auto',\n\t\t\t\t'font-normal',\n\t\t\t\t'text-neutral',\n\t\t\t\t'hover:font-semibold',\n\t\t\t\t'hover:text-secondary-content',\n\t\t\t\t'hover:bg-secondary',\n\t\t\t\t'active:hover:font-semibold',\n\t\t\t\t'active:hover:text-secondary-content',\n\t\t\t\t'active:hover:bg-secondary',\n\t\t\t\t'active:focus:font-semibold',\n\t\t\t\t'active:focus:text-secondary-content',\n\t\t\t\t'active:focus:bg-secondary',\n\t\t\t],\n\t\t\t'btn-warning': [\n\t\t\t\t'btn',\n\t\t\t\t'min-h-12',\n\t\t\t\t'btn-ghost',\n\t\t\t\t'h-auto',\n\t\t\t\t'font-normal',\n\t\t\t\t'text-neutral',\n\t\t\t\t'hover:font-semibold',\n\t\t\t\t'hover:text-warning-content',\n\t\t\t\t'hover:bg-warning',\n\t\t\t\t'active:hover:font-semibold',\n\t\t\t\t'active:hover:text-warning-content',\n\t\t\t\t'active:hover:bg-warning',\n\t\t\t\t'active:focus:font-semibold',\n\t\t\t\t'active:focus:text-warning-content',\n\t\t\t\t'active:focus:bg-warning',\n\t\t\t],\n\t\t\t'btn-error': [\n\t\t\t\t'btn',\n\t\t\t\t'min-h-12',\n\t\t\t\t'btn-ghost',\n\t\t\t\t'h-auto',\n\t\t\t\t'font-normal',\n\t\t\t\t'text-neutral',\n\t\t\t\t'hover:font-semibold',\n\t\t\t\t'hover:text-error-content',\n\t\t\t\t'hover:bg-error',\n\t\t\t\t'active:hover:font-semibold',\n\t\t\t\t'active:hover:text-error-content',\n\t\t\t\t'active:hover:bg-error',\n\t\t\t\t'active:focus:font-semibold',\n\t\t\t\t'active:focus:text-error-content',\n\t\t\t\t'active:focus:bg-error',\n\t\t\t],\n\t\t\t'btn-collapsable-primary': [\n\t\t\t\t'btn',\n\t\t\t\t'min-h-12',\n\t\t\t\t'btn-ghost',\n\t\t\t\t'h-auto',\n\t\t\t\t'items-center',\n\t\t\t\t'gap-2',\n\t\t\t\t'font-normal',\n\t\t\t\t'text-neutral',\n\t\t\t\t'hover:font-semibold',\n\t\t\t\t'hover:text-neutral-content',\n\t\t\t\t'hover:bg-primary',\n\t\t\t\t'active:hover:font-semibold',\n\t\t\t\t'active:hover:text-neutral-content',\n\t\t\t\t'active:hover:bg-primary',\n\t\t\t\t'active:focus:font-semibold',\n\t\t\t\t'active:focus:text-neutral-content',\n\t\t\t\t'active:focus:bg-primary',\n\t\t\t],\n\t\t},\n\t\tshape: {\n\t\t\t'round-none': ['rounded-none'],\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\tpadding: {\n\t\t\tnone: [],\n\t\t\tsm: ['px-2', 'py-1'],\n\t\t\tmd: ['px-3', 'py-2'],\n\t\t\tlg: ['px-4', 'py-3'],\n\t\t},\n\t\talignment: {\n\t\t\tcenter: ['justify-center'],\n\t\t\tleft: ['justify-start'],\n\t\t\tright: ['justify-end'],\n\t\t\tbetween: ['justify-between'],\n\t\t},\n\t},\n\tcompoundVariants: [],\n\tdefaultVariants: {\n\t\tvariant: 'btn-primary',\n\t\tshape: 'round-md',\n\t\tpadding: 'md',\n\t\talignment: 'left',\n\t},\n});\n\nexport type LinkContainerVariantProps =\n\t| 'primary'\n\t| 'secondary'\n\t| 'accent'\n\t| 'success'\n\t| 'info'\n\t| 'warning'\n\t| 'error'\n\t| 'btn-primary'\n\t| 'btn-secondary'\n\t| 'btn-warning'\n\t| 'btn-error'\n\t| 'btn-collapsable-primary';\nexport type LinkContainerShapeProps = 'round-none' | 'round-sm' | 'round-md' | 'round-lg';\nexport type LinkContainerPaddingProps = 'none' | 'sm' | 'md' | 'lg';\nexport type LinkContainerAlignmentProps = 'center' | 'left' | 'right' | 'between';\n\nexport const linkIcon = cva(['inline-flex items-center'], {\n\tvariants: {\n\t\ticonPosition: {\n\t\t\tleft: ['flex-row gap-2'],\n\t\t\tright: ['flex-row-reverse gap-2'],\n\t\t},\n\t},\n\tcompoundVariants: [],\n\tdefaultVariants: {\n\t\ticonPosition: 'left',\n\t},\n});\n\nexport type LinkIconPositionProps = 'left' | 'right';\n\nexport type LinkProps = {\n\tvariant?: LinkContainerVariantProps;\n\tshape?: LinkContainerShapeProps;\n\tpadding?: LinkContainerPaddingProps;\n\talignment?: LinkContainerAlignmentProps;\n\ticonPosition?: LinkIconPositionProps;\n};\n\nexport const linkComponent = ({ variant, shape, padding, alignment, iconPosition }: LinkProps = {}) =>\n\tcx(linkContainer({ variant, shape, padding, alignment }), linkIcon({ iconPosition }));\n\n@Component({\n\tselector: 'st-link',\n\tstandalone: true,\n\timports: [TypographyDirective, IconComponent, RouterLinkActive, RouterLink, FormsModule],\n\ttemplateUrl: './link.component.html',\n\tstyles: '',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class LinkComponent implements OnInit {\n\t// base\n\tvariant = input<LinkContainerVariantProps>();\n\tshape = input<LinkContainerShapeProps>();\n\tpadding = input<LinkContainerPaddingProps>();\n\talignment = input<LinkContainerAlignmentProps>();\n\ticonPosition = input<LinkIconPositionProps>();\n\tfontSize = input<TypographyVariantProps>('body-sm');\n\tcontainerClasses = input<string>('');\n\ticonClasses = input<string>('');\n\tlabel = input<string>('');\n\ticon = input<string | undefined>();\n\tfallbackIcon = matHomeOutline;\n\ticonArrowRight = matKeyboardArrowRightOutline;\n\topened: boolean = false;\n\tactiveClasses = 'bg-primary text-neutral-content font-semibold';\n\n\t// router\n\troute = input<Route>();\n\tchildrenRoutes = input<Route[]>();\n\trouterLinkActiveOptions = input<{ exact: boolean }>({ exact: false });\n\n\tconstructor(private router: Router) {}\n\n\tget containerClass() {\n\t\treturn cn(\n\t\t\tlinkContainer({\n\t\t\t\tvariant: this.variant(),\n\t\t\t\tshape: this.shape(),\n\t\t\t\tpadding: this.padding(),\n\t\t\t\talignment: this.alignment(),\n\t\t\t\tclass: this.containerClasses(),\n\t\t\t}),\n\t\t);\n\t}\n\n\tget iconClass() {\n\t\treturn cn(\n\t\t\tlinkIcon({\n\t\t\t\ticonPosition: this.iconPosition(),\n\t\t\t\tclass: this.iconClasses(),\n\t\t\t}),\n\t\t);\n\t}\n\n\tget dropdownClass() {\n\t\treturn cn({ 'invisible h-0 mt-[5px]': this.opened === false, 'visible h-auto mt-[5px] grid grid-cols-[max-content_1fr]': this.opened === true });\n\t}\n\n\tget isOpenedClass() {\n\t\treturn cn(\n\t\t\t{ 'rotate-0 transition-transform duration-150 ease-ease-out-back': this.opened === false },\n\t\t\t{ 'rotate-90 transition-transform duration-150 ease-ease-out-back': this.opened === true },\n\t\t);\n\t}\n\n\tngOnInit(): void {\n\t\tthis.router.events.pipe(filter((event) => event instanceof NavigationEnd)).subscribe(() => {\n\t\t\tconst currentPath = this.router.url;\n\t\t\tthis.updateOpenedState(currentPath);\n\t\t});\n\n\t\tconst lastOpenedNavlink = localStorage.getItem('lastOpenedNavlink');\n\t\tif (lastOpenedNavlink !== null) {\n\t\t\tthis.opened = this.childrenRoutes()?.some((route) => lastOpenedNavlink === this.route()?.path + route.path) ?? false;\n\t\t}\n\t}\n\n\tupdateOpenedState(currentPath: string): void {\n\t\tthis.opened = this.childrenRoutes()?.some((route) => currentPath.includes(this.route()?.path + route.path)) ?? false;\n\t\tlocalStorage.setItem('lastOpenedNavlink', currentPath);\n\t}\n\n\ttoggle() {\n\t\tthis.opened = !this.opened;\n\t}\n}\n","@let routeVar = this.route();\n@let childrenRoutesVar = this.childrenRoutes();\n@let fontSizeVar = this.fontSize();\n@let iconVar = this.icon();\n@let routerLinkActiveOptionsVar = this.routerLinkActiveOptions();\n@let variantVar = this.variant();\n\n@if (variantVar === 'btn-primary' || variantVar === 'btn-secondary' || variantVar === 'btn-warning' || variantVar === 'btn-error') {\n\t@if (routeVar !== undefined) {\n\t\t<a\n\t\t\t[class]=\"containerClass\"\n\t\t\t[routerLink]=\"routeVar.path\"\n\t\t\t[routerLinkActive]=\"activeClasses\"\n\t\t\t[routerLinkActiveOptions]=\"routerLinkActiveOptionsVar\"\n\t\t>\n\t\t\t@if (iconVar) {\n\t\t\t\t<span [class]=\"iconClass\">\n\t\t\t\t\t@if (this.label()) {\n\t\t\t\t\t\t<st-icon [icon]=\"iconVar ?? fallbackIcon\" color=\"inherit\" size=\"md\"></st-icon>\n\t\t\t\t\t\t<span typography [typographyVariant]=\"fontSizeVar\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'inherit'\">{{ label() }}</span>\n\t\t\t\t\t}\n\t\t\t\t\t@if (!this.label()) {\n\t\t\t\t\t\t<st-icon [icon]=\"iconVar ?? fallbackIcon\" color=\"inherit\" size=\"md\"></st-icon>\n\t\t\t\t\t}\n\t\t\t\t</span>\n\t\t\t}\n\t\t\t@if (!iconVar && this.label()) {\n\t\t\t\t<span typography [typographyVariant]=\"fontSizeVar\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'inherit'\">{{ label() }}</span>\n\t\t\t}\n\t\t</a>\n\t} @else {\n\t\t<a [class]=\"containerClass\">\n\t\t\t@if (iconVar) {\n\t\t\t\t<span [class]=\"iconClass\">\n\t\t\t\t\t@if (this.label()) {\n\t\t\t\t\t\t<st-icon [icon]=\"iconVar ?? fallbackIcon\" color=\"inherit\" size=\"md\"></st-icon>\n\t\t\t\t\t\t<span typography [typographyVariant]=\"fontSizeVar\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'inherit'\">{{ label() }}</span>\n\t\t\t\t\t}\n\t\t\t\t\t@if (!this.label()) {\n\t\t\t\t\t\t<st-icon [icon]=\"iconVar ?? fallbackIcon\" color=\"inherit\" size=\"md\"></st-icon>\n\t\t\t\t\t}\n\t\t\t\t</span>\n\t\t\t}\n\t\t\t@if (!iconVar && this.label()) {\n\t\t\t\t<span typography [typographyVariant]=\"fontSizeVar\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'inherit'\">{{ label() }}</span>\n\t\t\t}\n\t\t</a>\n\t}\n} @else if (variantVar === 'btn-collapsable-primary') {\n\t@if (routeVar !== undefined) {\n\t\t<button [class]=\"containerClass\" (click)=\"toggle()\">\n\t\t\t<div class=\"inline-flex items-center justify-start gap-2\">\n\t\t\t\t@if (iconVar) {\n\t\t\t\t\t<st-icon [icon]=\"iconVar ?? fallbackIcon\" color=\"inherit\" size=\"md\"></st-icon>\n\t\t\t\t}\n\t\t\t\t<span typography [typographyVariant]=\"fontSizeVar\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'inherit'\">{{\n\t\t\t\t\trouteVar.label\n\t\t\t\t}}</span>\n\t\t\t</div>\n\t\t\t<div [class]=\"isOpenedClass\">\n\t\t\t\t<st-icon [icon]=\"iconArrowRight\" color=\"inherit\" size=\"md\"></st-icon>\n\t\t\t</div>\n\t\t</button>\n\n\t\t<div [class]=\"dropdownClass\">\n\t\t\t<div class=\"ml-9 mr-2 h-full w-[2px] self-center bg-separator\"></div>\n\t\t\t<ul class=\"space-y-[5px]\">\n\t\t\t\t@for (item of childrenRoutesVar; track $index) {\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<a\n\t\t\t\t\t\t\tclass=\"inline-flex h-auto min-h-12 w-full items-center justify-start gap-2 rounded-btn-md px-6 py-2 font-normal text-neutral hover:bg-primary hover:font-semibold hover:text-neutral-content focus:bg-primary focus:font-semibold focus:text-neutral-content active:hover:bg-primary active:hover:font-semibold active:hover:text-neutral-content active:focus:bg-primary active:focus:font-semibold active:focus:text-neutral-content\"\n\t\t\t\t\t\t\t[routerLink]=\"routeVar?.path ? routeVar?.path + item.path : '#'\"\n\t\t\t\t\t\t\t[routerLinkActive]=\"activeClasses\"\n\t\t\t\t\t\t\t[routerLinkActiveOptions]=\"routerLinkActiveOptionsVar\"\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<span typography [typographyVariant]=\"fontSizeVar\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'inherit'\">{{\n\t\t\t\t\t\t\t\titem.label\n\t\t\t\t\t\t\t}}</span>\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</li>\n\t\t\t\t}\n\t\t\t</ul>\n\t\t</div>\n\t} @else {\n\t\t<button [class]=\"containerClass\" (click)=\"toggle()\">\n\t\t\t<div class=\"inline-flex items-center justify-start gap-2\">\n\t\t\t\t@if (iconVar) {\n\t\t\t\t\t<st-icon [icon]=\"iconVar ?? fallbackIcon\" color=\"inherit\" size=\"md\"></st-icon>\n\t\t\t\t}\n\t\t\t\t<span typography [typographyVariant]=\"fontSizeVar\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'inherit'\">{{ 'Empty' }}</span>\n\t\t\t</div>\n\t\t\t<div [class]=\"isOpenedClass\">\n\t\t\t\t<st-icon [icon]=\"iconArrowRight\" color=\"inherit\" size=\"md\"></st-icon>\n\t\t\t</div>\n\t\t</button>\n\n\t\t<div [class]=\"dropdownClass\">\n\t\t\t<div class=\"ml-9 mr-2 h-full w-[2px] self-center bg-separator\"></div>\n\t\t\t<ul class=\"space-y-[5px]\">\n\t\t\t\t@for (item of childrenRoutesVar; track $index) {\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<a\n\t\t\t\t\t\t\tclass=\"inline-flex h-auto min-h-12 w-full items-center justify-start gap-2 rounded-btn-md px-6 py-2 font-normal text-neutral hover:bg-primary hover:font-semibold hover:text-neutral-content focus:bg-primary focus:font-semibold focus:text-neutral-content active:hover:bg-primary active:hover:font-semibold active:hover:text-neutral-content active:focus:bg-primary active:focus:font-semibold active:focus:text-neutral-content\"\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<span typography [typographyVariant]=\"fontSizeVar\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'inherit'\">{{\n\t\t\t\t\t\t\t\titem.label\n\t\t\t\t\t\t\t}}</span>\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</li>\n\t\t\t\t}\n\t\t\t</ul>\n\t\t</div>\n\t}\n} @else {\n\t@if (routeVar !== undefined) {\n\t\t<a\n\t\t\t[class]=\"containerClass\"\n\t\t\t[routerLink]=\"routeVar.path\"\n\t\t\t[routerLinkActive]=\"activeClasses\"\n\t\t\t[routerLinkActiveOptions]=\"routerLinkActiveOptionsVar\"\n\t\t>\n\t\t\t@if (iconVar) {\n\t\t\t\t<span [class]=\"iconClass\">\n\t\t\t\t\t@if (this.label()) {\n\t\t\t\t\t\t<st-icon [icon]=\"iconVar ?? fallbackIcon\" color=\"inherit\" size=\"md\"></st-icon>\n\t\t\t\t\t\t<span typography [typographyVariant]=\"fontSizeVar\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'inherit'\">{{ label() }}</span>\n\t\t\t\t\t}\n\t\t\t\t\t@if (!this.label()) {\n\t\t\t\t\t\t<st-icon [icon]=\"iconVar ?? fallbackIcon\" color=\"inherit\" size=\"md\"></st-icon>\n\t\t\t\t\t}\n\t\t\t\t</span>\n\t\t\t}\n\t\t\t@if (!iconVar && this.label()) {\n\t\t\t\t<span typography [typographyVariant]=\"fontSizeVar\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'inherit'\">{{ label() }}</span>\n\t\t\t}\n\t\t</a>\n\t} @else {\n\t\t<a [class]=\"containerClass\">\n\t\t\t@if (iconVar) {\n\t\t\t\t<span [class]=\"iconClass\">\n\t\t\t\t\t@if (this.label()) {\n\t\t\t\t\t\t<st-icon [icon]=\"iconVar ?? fallbackIcon\" color=\"inherit\" size=\"md\"></st-icon>\n\t\t\t\t\t\t<span typography [typographyVariant]=\"fontSizeVar\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'inherit'\">{{ label() }}</span>\n\t\t\t\t\t}\n\t\t\t\t\t@if (!this.label()) {\n\t\t\t\t\t\t<st-icon [icon]=\"iconVar ?? fallbackIcon\" color=\"inherit\" size=\"md\"></st-icon>\n\t\t\t\t\t}\n\t\t\t\t</span>\n\t\t\t}\n\t\t\t@if (!iconVar && this.label()) {\n\t\t\t\t<span typography [typographyVariant]=\"fontSizeVar\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'inherit'\">{{ label() }}</span>\n\t\t\t}\n\t\t</a>\n\t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A,EAAA,SAAA,EAAA,MAAA,EAAA,CAAA,OAAA,EAAA,MAAA,EAAA,SAAA,EAAA,MAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAE,gBAAgB,EAAA,QAAA,EAAA,oBAAA,EAAA,MAAA,EAAA,CAAA,yBAAA,EAAA,uBAAA,EAAA,kBAAA,CAAA,EAAA,OAAA,EAAA,CAAA,gBAAA,CAAA,EAAA,QAAA,EAAA,CAAA,kBAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAE,UAAU,EAAA,QAAA,EAAA,cAAA,EAAA,MAAA,EAAA,CAAA,QAAA,EAAA,aAAA,EAAA,UAAA,EAAA,qBAAA,EAAA,OAAA,EAAA,MAAA,EAAA,YAAA,EAAA,kBAAA,EAAA,oBAAA,EAAA,YAAA,EAAA,YAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAE,WAAW,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;4FAK3E,aAAa,EAAA,UAAA,EAAA,CAAA;kBARzB,SAAS;AACC,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,SAAS,cACP,IAAI,EAAA,OAAA,EACP,CAAC,mBAAmB,EAAE,aAAa,EAAE,gBAAgB,EAAE,UAAU,EAAE,WAAW,CAAC,EAGvE,eAAA,EAAA,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,ksOAAA,EAAA,CAAA;;;AE9LhD;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"sixbell-telco-sdk-components-link.mjs","sources":["../../../projects/sdk/components/link/src/link.component.ts","../../../projects/sdk/components/link/src/link.component.html","../../../projects/sdk/components/link/sixbell-telco-sdk-components-link.ts"],"sourcesContent":["import { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, input } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { Router, RouterLink, RouterLinkActive } from '@angular/router';\nimport { IconComponent } from '@sixbell-telco/sdk/components/icon';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { cva } from 'class-variance-authority';\n\nexport type Route = {\n\tlabel: string;\n\tpath: string;\n};\n\nexport const linkComponent = cva(['link', 'font-body', 'font-normal', 'inline-flex', 'items-center', 'leading-normal'], {\n\tvariants: {\n\t\tvariant: {\n\t\t\tprimary: ['link-primary', 'no-underline'],\n\t\t\tsecondary: ['link-secondary', 'no-underline'],\n\t\t\ttertiary: ['link-tertiary', 'no-underline'],\n\t\t\taccent: ['link-accent', 'no-underline'],\n\t\t\tsuccess: ['link-success', 'no-underline'],\n\t\t\tinfo: ['link-info', 'no-underline'],\n\t\t\twarning: ['link-warning', 'no-underline'],\n\t\t\terror: ['link-error', 'no-underline'],\n\t\t},\n\t\ticonPosition: {\n\t\t\tleft: [''],\n\t\t\tright: ['flex-row-reverse'],\n\t\t},\n\t},\n\tcompoundVariants: [],\n\tdefaultVariants: {\n\t\tvariant: 'primary',\n\t\ticonPosition: 'left',\n\t},\n});\n\nexport type LinkVariantProps = 'primary' | 'secondary' | 'tertiary' | 'accent' | 'success' | 'info' | 'warning' | 'error' | null | undefined;\nexport type LinkIconPositionProps = 'left' | 'right' | null | undefined;\n\nexport type LinkProps = {\n\tvariant?: LinkVariantProps;\n\ticonPosition?: LinkIconPositionProps;\n};\n\n@Component({\n\tselector: 'st-link',\n\tstandalone: true,\n\timports: [IconComponent, RouterLinkActive, RouterLink, FormsModule, CommonModule],\n\ttemplateUrl: './link.component.html',\n\tstyles: '',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class LinkComponent {\n\t// base\n\tvariant = input<LinkVariantProps>();\n\ticon = input<string | undefined>();\n\ticonPosition = input<LinkIconPositionProps>();\n\tlabel = input<string>('');\n\n\t// router\n\trouterLink = input<RouterLink['routerLink']>(null);\n\trouterLinkOptions = input<RouterLinkActive['routerLinkActiveOptions']>({ exact: false });\n\trouterLinkActive = input<RouterLinkActive['routerLinkActive']>('active');\n\tqueryParams = input<RouterLink['queryParams']>(null);\n\tqueryParamsHandling = input<RouterLink['queryParamsHandling']>(null);\n\tfragment = input<RouterLink['fragment']>(undefined);\n\n\tconstructor(private router: Router) {}\n\n\tget componentClass() {\n\t\treturn cn(\n\t\t\tlinkComponent({\n\t\t\t\tvariant: this.variant(),\n\t\t\t\ticonPosition: this.iconPosition(),\n\t\t\t}),\n\t\t);\n\t}\n}\n","@let iconVar = this.icon();\n@let routerLinkVar = this.routerLink();\n@let rotuerLinkActiveVar = this.routerLinkActive();\n@let queryParamsVar = this.queryParams();\n@let queryParamsHandlingVar = this.queryParamsHandling();\n@let routerLinkOptionsVar = routerLinkOptions();\n@let fragmentVar = this.fragment();\n<a\n\t[class]=\"componentClass\"\n\t[routerLink]=\"routerLinkVar\"\n\t[routerLinkActive]=\"rotuerLinkActiveVar\"\n\t[routerLinkActiveOptions]=\"routerLinkOptionsVar\"\n\t[queryParams]=\"queryParamsVar\"\n\t[queryParamsHandling]=\"queryParamsHandlingVar\"\n\t[fragment]=\"fragmentVar\"\n>\n\t@if (iconVar) {\n\t\t<st-icon [icon]=\"iconVar\" color=\"inherit\" size=\"md\"></st-icon>\n\t}\n\t<ng-content></ng-content>\n</a>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;AAaa,MAAA,aAAa,GAAG,GAAG,CAAC,CAAC,MAAM,EAAE,WAAW,EAAE,aAAa,EAAE,aAAa,EAAE,cAAc,EAAE,gBAAgB,CAAC,EAAE;AACvH,IAAA,QAAQ,EAAE;AACT,QAAA,OAAO,EAAE;AACR,YAAA,OAAO,EAAE,CAAC,cAAc,EAAE,cAAc,CAAC;AACzC,YAAA,SAAS,EAAE,CAAC,gBAAgB,EAAE,cAAc,CAAC;AAC7C,YAAA,QAAQ,EAAE,CAAC,eAAe,EAAE,cAAc,CAAC;AA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AAA,EAAA,CAAA,QAAA,EAAA,aAAA,EAAA,UAAA,EAAA,qBAAA,EAAA,OAAA,EAAA,MAAA,EAAA,YAAA,EAAA,kBAAA,EAAA,oBAAA,EAAA,YAAA,EAAA,YAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAE,WAAW,EAAA,EAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAE,YAAY,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;4FAKpE,aAAa,EAAA,UAAA,EAAA,CAAA;kBARzB,SAAS;AACC,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,SAAS,cACP,IAAI,EAAA,OAAA,EACP,CAAC,aAAa,EAAE,gBAAgB,EAAE,UAAU,EAAE,WAAW,EAAE,YAAY,CAAC,EAGhE,eAAA,EAAA,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,guBAAA,EAAA,CAAA;;;AEnDhD;;AAEG;;;;"}
|
|
@@ -1,46 +1,68 @@
|
|
|
1
|
+
import { CommonModule } from '@angular/common';
|
|
1
2
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { input, output, viewChild, model, effect
|
|
3
|
-
import { ButtonComponent } from '@sixbell-telco/sdk/components/button';
|
|
4
|
-
import { matCloseOutline } from '@sixbell-telco/sdk/components/icon/material/outline';
|
|
3
|
+
import { input, Component, ChangeDetectionStrategy, output, viewChild, model, effect } from '@angular/core';
|
|
5
4
|
import { cn } from '@sixbell-telco/sdk/utils/cn';
|
|
5
|
+
import { TypographyDirective } from '@sixbell-telco/sdk/directives/typography';
|
|
6
|
+
import { matCloseOutline } from '@sixbell-telco/sdk/components/icon/material/outline';
|
|
6
7
|
import { cva } from 'class-variance-authority';
|
|
7
8
|
|
|
8
|
-
|
|
9
|
+
class ModalActionsComponent {
|
|
10
|
+
// Base table properties
|
|
11
|
+
alignment = input('left');
|
|
12
|
+
get componentClass() {
|
|
13
|
+
return cn('modal-action', {
|
|
14
|
+
'justify-start': this.alignment() === 'left',
|
|
15
|
+
'justify-end': this.alignment() === 'right',
|
|
16
|
+
'justify-center': this.alignment() === 'center',
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: ModalActionsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
20
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "18.2.12", type: ModalActionsComponent, isStandalone: true, selector: "st-modal-actions", inputs: { alignment: { classPropertyName: "alignment", publicName: "alignment", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<div [class]=\"componentClass\">\n\t<ng-content></ng-content>\n</div>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
21
|
+
}
|
|
22
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: ModalActionsComponent, decorators: [{
|
|
23
|
+
type: Component,
|
|
24
|
+
args: [{ selector: 'st-modal-actions', standalone: true, imports: [CommonModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div [class]=\"componentClass\">\n\t<ng-content></ng-content>\n</div>\n" }]
|
|
25
|
+
}] });
|
|
26
|
+
|
|
27
|
+
class ModalContentComponent {
|
|
28
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: ModalContentComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
29
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.12", type: ModalContentComponent, isStandalone: true, selector: "st-modal-content", ngImport: i0, template: "<ng-content></ng-content>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
30
|
+
}
|
|
31
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: ModalContentComponent, decorators: [{
|
|
32
|
+
type: Component,
|
|
33
|
+
args: [{ selector: 'st-modal-content', standalone: true, imports: [CommonModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-content></ng-content>\n" }]
|
|
34
|
+
}] });
|
|
35
|
+
|
|
36
|
+
class ModalTitleComponent {
|
|
37
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: ModalTitleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
38
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.12", type: ModalTitleComponent, isStandalone: true, selector: "st-modal-title", ngImport: i0, template: "<div class=\"mb-6\">\n\t<div typography tyFontWeight=\"semibold\" tyColor=\"base\" tyVariant=\"h3\">\n\t\t<ng-content></ng-content>\n\t</div>\n</div>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: TypographyDirective, selector: "[typography]", inputs: ["tyVariant", "tyColor", "tyFontWeight"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
39
|
+
}
|
|
40
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: ModalTitleComponent, decorators: [{
|
|
41
|
+
type: Component,
|
|
42
|
+
args: [{ selector: 'st-modal-title', standalone: true, imports: [CommonModule, TypographyDirective], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"mb-6\">\n\t<div typography tyFontWeight=\"semibold\" tyColor=\"base\" tyVariant=\"h3\">\n\t\t<ng-content></ng-content>\n\t</div>\n</div>\n" }]
|
|
43
|
+
}] });
|
|
44
|
+
|
|
45
|
+
const modalComponent = cva(['modal-box', 'bg-base-200', 'p-6', 'text-base-content'], {
|
|
9
46
|
variants: {
|
|
10
|
-
variant: {
|
|
11
|
-
primary: ['modal-box'],
|
|
12
|
-
},
|
|
13
|
-
shape: {
|
|
14
|
-
'round-sm': ['rounded-box-sm'],
|
|
15
|
-
'round-md': ['rounded-box-md'],
|
|
16
|
-
'round-lg': ['rounded-box-lg'],
|
|
17
|
-
},
|
|
18
|
-
padding: {
|
|
19
|
-
none: 'p-0',
|
|
20
|
-
sm: ['p-4'],
|
|
21
|
-
md: ['p-6'],
|
|
22
|
-
lg: ['px-8'],
|
|
23
|
-
},
|
|
24
47
|
width: {
|
|
25
48
|
full: ['w-full'],
|
|
26
49
|
fit: ['w-fit', 'min-w-fit'],
|
|
27
50
|
},
|
|
51
|
+
aligment: {
|
|
52
|
+
top: ['modal-top'],
|
|
53
|
+
center: ['modal-middle'],
|
|
54
|
+
bottom: ['modal-bottom'],
|
|
55
|
+
},
|
|
28
56
|
},
|
|
29
57
|
compoundVariants: [],
|
|
30
58
|
defaultVariants: {
|
|
31
|
-
variant: 'primary',
|
|
32
|
-
shape: 'round-lg',
|
|
33
|
-
padding: 'md',
|
|
34
59
|
width: 'full',
|
|
60
|
+
aligment: 'center',
|
|
35
61
|
},
|
|
36
62
|
});
|
|
37
63
|
class ModalComponent {
|
|
38
|
-
variant = input();
|
|
39
|
-
shape = input();
|
|
40
|
-
padding = input();
|
|
41
64
|
width = input();
|
|
42
|
-
|
|
43
|
-
label = input('');
|
|
65
|
+
alignment = input('center');
|
|
44
66
|
modalId = input.required();
|
|
45
67
|
onClickOutside = output();
|
|
46
68
|
iconClose = matCloseOutline;
|
|
@@ -56,13 +78,16 @@ class ModalComponent {
|
|
|
56
78
|
});
|
|
57
79
|
get componentClass() {
|
|
58
80
|
return cn(modalComponent({
|
|
59
|
-
variant: this.variant(),
|
|
60
|
-
shape: this.shape(),
|
|
61
|
-
padding: this.padding(),
|
|
62
81
|
width: this.width(),
|
|
63
|
-
class: this.classes(),
|
|
64
82
|
}));
|
|
65
83
|
}
|
|
84
|
+
get modalClass() {
|
|
85
|
+
return cn('modal', {
|
|
86
|
+
'modal-top': this.alignment() === 'top',
|
|
87
|
+
'modal-middle': this.alignment() === 'center',
|
|
88
|
+
'modal-bottom': this.alignment() === 'bottom',
|
|
89
|
+
});
|
|
90
|
+
}
|
|
66
91
|
handleOpen() {
|
|
67
92
|
this.dialog()?.nativeElement.showModal();
|
|
68
93
|
}
|
|
@@ -72,17 +97,21 @@ class ModalComponent {
|
|
|
72
97
|
handleCloseClick() {
|
|
73
98
|
this.opened.set(false);
|
|
74
99
|
}
|
|
100
|
+
handleCancelClick(event) {
|
|
101
|
+
event.preventDefault();
|
|
102
|
+
this.opened.set(false);
|
|
103
|
+
}
|
|
75
104
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: ModalComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
76
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "18.2.12", type: ModalComponent, isStandalone: true, selector: "st-modal", inputs: {
|
|
105
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "18.2.12", type: ModalComponent, isStandalone: true, selector: "st-modal", inputs: { width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null }, alignment: { classPropertyName: "alignment", publicName: "alignment", isSignal: true, isRequired: false, transformFunction: null }, modalId: { classPropertyName: "modalId", publicName: "modalId", isSignal: true, isRequired: true, transformFunction: null }, opened: { classPropertyName: "opened", publicName: "opened", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onClickOutside: "onClickOutside", opened: "openedChange" }, viewQueries: [{ propertyName: "dialog", first: true, predicate: ["dialog"], descendants: true, isSignal: true }], ngImport: i0, template: "<!-- eslint-disable @angular-eslint/template/elements-content -->\n<dialog #dialog [id]=\"modalId()\" [class]=\"modalClass\" (cancel)=\"handleCancelClick($event)\">\n\t<div [class]=\"componentClass\">\n\t\t<div class=\"absolute right-2 top-2\">\n\t\t\t<button class=\"btn btn-circle btn-ghost btn-sm absolute right-0 top-0\" (click)=\"handleCloseClick()\">\u2715</button>\n\t\t</div>\n\t\t<ng-content select=\"st-modal-title\"></ng-content>\n\t\t<ng-content select=\"st-modal-content\"></ng-content>\n\t\t<ng-content select=\"st-modal-actions\"></ng-content>\n\t</div>\n\t<form method=\"dialog\" class=\"modal-backdrop\">\n\t\t<button (click)=\"onClickOutside.emit()\"></button>\n\t</form>\n</dialog>\n", styles: [""] });
|
|
77
106
|
}
|
|
78
107
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: ModalComponent, decorators: [{
|
|
79
108
|
type: Component,
|
|
80
|
-
args: [{ selector: 'st-modal', standalone: true, imports: [
|
|
109
|
+
args: [{ selector: 'st-modal', standalone: true, imports: [], template: "<!-- eslint-disable @angular-eslint/template/elements-content -->\n<dialog #dialog [id]=\"modalId()\" [class]=\"modalClass\" (cancel)=\"handleCancelClick($event)\">\n\t<div [class]=\"componentClass\">\n\t\t<div class=\"absolute right-2 top-2\">\n\t\t\t<button class=\"btn btn-circle btn-ghost btn-sm absolute right-0 top-0\" (click)=\"handleCloseClick()\">\u2715</button>\n\t\t</div>\n\t\t<ng-content select=\"st-modal-title\"></ng-content>\n\t\t<ng-content select=\"st-modal-content\"></ng-content>\n\t\t<ng-content select=\"st-modal-actions\"></ng-content>\n\t</div>\n\t<form method=\"dialog\" class=\"modal-backdrop\">\n\t\t<button (click)=\"onClickOutside.emit()\"></button>\n\t</form>\n</dialog>\n" }]
|
|
81
110
|
}] });
|
|
82
111
|
|
|
83
112
|
/**
|
|
84
113
|
* Generated bundle index. Do not edit.
|
|
85
114
|
*/
|
|
86
115
|
|
|
87
|
-
export { ModalComponent, modalComponent };
|
|
116
|
+
export { ModalActionsComponent, ModalComponent, ModalContentComponent, ModalTitleComponent, modalComponent };
|
|
88
117
|
//# sourceMappingURL=sixbell-telco-sdk-components-modal.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sixbell-telco-sdk-components-modal.mjs","sources":["../../../projects/sdk/components/modal/src/modal.component.ts","../../../projects/sdk/components/modal/src/modal.component.html","../../../projects/sdk/components/modal/sixbell-telco-sdk-components-modal.ts"],"sourcesContent":["import { Component, effect, ElementRef, input, model, output, viewChild } from '@angular/core';\nimport { ButtonComponent } from '@sixbell-telco/sdk/components/button';\nimport { matCloseOutline } from '@sixbell-telco/sdk/components/icon/material/outline';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { cva } from 'class-variance-authority';\n\nexport const modalComponent = cva([], {\n\tvariants: {\n\t\tvariant: {\n\t\t\tprimary: ['modal-box'],\n\t\t},\n\t\tshape: {\n\t\t\t'round-sm': ['rounded-box-sm'],\n\t\t\t'round-md': ['rounded-box-md'],\n\t\t\t'round-lg': ['rounded-box-lg'],\n\t\t},\n\t\tpadding: {\n\t\t\tnone: 'p-0',\n\t\t\tsm: ['p-4'],\n\t\t\tmd: ['p-6'],\n\t\t\tlg: ['px-8'],\n\t\t},\n\t\twidth: {\n\t\t\tfull: ['w-full'],\n\t\t\tfit: ['w-fit', 'min-w-fit'],\n\t\t},\n\t},\n\tcompoundVariants: [],\n\tdefaultVariants: {\n\t\tvariant: 'primary',\n\t\tshape: 'round-lg',\n\t\tpadding: 'md',\n\t\twidth: 'full',\n\t},\n});\n\nexport type ModalVariantProps = 'primary' | null | undefined;\nexport type ModalShapeProps = 'round-sm' | 'round-md' | 'round-lg' | null | undefined;\nexport type ModalPaddingProps = 'none' | 'sm' | 'md' | 'lg' | null | undefined;\nexport type ModalWidthProps = 'full' | 'fit' | null | undefined;\n\nexport type ModalProps = {\n\tvariant?: ModalVariantProps;\n\tshape?: ModalShapeProps;\n\tpadding?: ModalPaddingProps;\n\twidth?: ModalWidthProps;\n};\n\n@Component({\n\tselector: 'st-modal',\n\tstandalone: true,\n\timports: [ButtonComponent],\n\ttemplateUrl: './modal.component.html',\n\tstyles: '',\n})\nexport class ModalComponent {\n\tvariant = input<ModalVariantProps>();\n\tshape = input<ModalShapeProps>();\n\tpadding = input<ModalPaddingProps>();\n\twidth = input<ModalWidthProps>();\n\tclasses = input<string>('');\n\tlabel = input<string>('');\n\tmodalId = input.required<string>();\n\tonClickOutside = output<void>();\n\n\ticonClose = matCloseOutline;\n\tdialog = viewChild<ElementRef<HTMLDialogElement>>('dialog');\n\n\topened = model<boolean>(false);\n\topenedEffect = effect(() => {\n\t\tif (this.opened()) {\n\t\t\tthis.handleOpen();\n\t\t} else {\n\t\t\tthis.handleClose();\n\t\t}\n\t});\n\n\tget componentClass() {\n\t\treturn cn(\n\t\t\tmodalComponent({\n\t\t\t\tvariant: this.variant(),\n\t\t\t\tshape: this.shape(),\n\t\t\t\tpadding: this.padding(),\n\t\t\t\twidth: this.width(),\n\t\t\t\tclass: this.classes(),\n\t\t\t}),\n\t\t);\n\t}\n\n\thandleOpen() {\n\t\tthis.dialog()?.nativeElement.showModal();\n\t}\n\n\thandleClose() {\n\t\tthis.dialog()?.nativeElement.close();\n\t}\n\n\thandleCloseClick() {\n\t\tthis.opened.set(false);\n\t}\n}\n","<dialog #dialog [id]=\"modalId()\" class=\"modal\">\n\t<div [class]=\"componentClass\">\n\t\t<div class=\"absolute right-2 top-2\">\n\t\t\t<st-button variant=\"icon\" padding=\"none\" shape=\"round-lg\" [icon]=\"iconClose\" (click)=\"handleCloseClick()\"></st-button>\n\t\t</div>\n\t\t<ng-content />\n\t</div>\n\t<form method=\"dialog\" class=\"modal-backdrop\">\n\t\t<button (click)=\"onClickOutside.emit()\">close</button>\n\t</form>\n</dialog>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;AAMa,MAAA,cAAc,GAAG,GAAG,CAAC,EAAE,EAAE;AACrC,IAAA,QAAQ,EAAE;AACT,QAAA,OAAO,EAAE;YACR,OAAO,EAAE,CAAC,WAAW,CAAC;AACtB,SAAA;AACD,QAAA,KAAK,EAAE;YACN,UAAU,EAAE,CAAC,g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wCW,eAAe,EAAA,QAAA,EAAA,WAAA,EAAA,MAAA,EAAA,CAAA,SAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,QAAA,EAAA,OAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,MAAA,EAAA,cAAA,EAAA,UAAA,EAAA,OAAA,EAAA,MAAA,EAAA,MAAA,EAAA,UAAA,CAAA,EAAA,CAAA,EAAA,CAAA,CAAA;;4FAIb,cAAc,EAAA,UAAA,EAAA,CAAA;kBAP1B,SAAS;AACC,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,UAAU,EACR,UAAA,EAAA,IAAI,EACP,OAAA,EAAA,CAAC,eAAe,CAAC,EAAA,QAAA,EAAA,kcAAA,EAAA,CAAA;;;AEnD3B;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"sixbell-telco-sdk-components-modal.mjs","sources":["../../../projects/sdk/components/modal/modal-actions/modal-actions.component.ts","../../../projects/sdk/components/modal/modal-actions/modal-actions.component.html","../../../projects/sdk/components/modal/modal-content/modal-content.component.ts","../../../projects/sdk/components/modal/modal-content/modal-content.component.html","../../../projects/sdk/components/modal/modal-title/modal-title.component.ts","../../../projects/sdk/components/modal/modal-title/modal-title.component.html","../../../projects/sdk/components/modal/src/modal.component.ts","../../../projects/sdk/components/modal/src/modal.component.html","../../../projects/sdk/components/modal/sixbell-telco-sdk-components-modal.ts"],"sourcesContent":["import { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, input } from '@angular/core';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\n\nexport type ModalActionsAligmentProps = 'left' | 'right' | 'center';\n\n@Component({\n\t// eslint-disable-next-line @angular-eslint/component-selector\n\tselector: 'st-modal-actions',\n\tstandalone: true,\n\timports: [CommonModule],\n\ttemplateUrl: './modal-actions.component.html',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class ModalActionsComponent {\n\t// Base table properties\n\talignment = input<ModalActionsAligmentProps>('left');\n\n\tget componentClass() {\n\t\treturn cn('modal-action', {\n\t\t\t'justify-start': this.alignment() === 'left',\n\t\t\t'justify-end': this.alignment() === 'right',\n\t\t\t'justify-center': this.alignment() === 'center',\n\t\t});\n\t}\n}\n","<div [class]=\"componentClass\">\n\t<ng-content></ng-content>\n</div>\n","import { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component } from '@angular/core';\n\n@Component({\n\t// eslint-disable-next-line @angular-eslint/component-selector\n\tselector: 'st-modal-content',\n\tstandalone: true,\n\timports: [CommonModule],\n\ttemplateUrl: './modal-content.component.html',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class ModalContentComponent {}\n","<ng-content></ng-content>\n","import { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component } from '@angular/core';\nimport { TypographyDirective } from '@sixbell-telco/sdk/directives/typography';\n\n@Component({\n\t// eslint-disable-next-line @angular-eslint/component-selector\n\tselector: 'st-modal-title',\n\tstandalone: true,\n\timports: [CommonModule, TypographyDirective],\n\ttemplateUrl: './modal-title.component.html',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class ModalTitleComponent {}\n","<div class=\"mb-6\">\n\t<div typography tyFontWeight=\"semibold\" tyColor=\"base\" tyVariant=\"h3\">\n\t\t<ng-content></ng-content>\n\t</div>\n</div>\n","import { Component, effect, ElementRef, input, model, output, viewChild } from '@angular/core';\nimport { matCloseOutline } from '@sixbell-telco/sdk/components/icon/material/outline';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { cva } from 'class-variance-authority';\n\nexport const modalComponent = cva(['modal-box', 'bg-base-200', 'p-6', 'text-base-content'], {\n\tvariants: {\n\t\twidth: {\n\t\t\tfull: ['w-full'],\n\t\t\tfit: ['w-fit', 'min-w-fit'],\n\t\t},\n\t\taligment: {\n\t\t\ttop: ['modal-top'],\n\t\t\tcenter: ['modal-middle'],\n\t\t\tbottom: ['modal-bottom'],\n\t\t},\n\t},\n\tcompoundVariants: [],\n\tdefaultVariants: {\n\t\twidth: 'full',\n\t\taligment: 'center',\n\t},\n});\n\nexport type ModalPaddingProps = 'none' | 'sm' | 'md' | 'lg' | null | undefined;\nexport type ModalWidthProps = 'full' | 'fit' | null | undefined;\nexport type ModalAlignmentProps = 'top' | 'center' | 'bottom' | null | undefined;\n\nexport type ModalProps = {\n\tpadding?: ModalPaddingProps;\n\twidth?: ModalWidthProps;\n\talignment?: ModalAlignmentProps;\n};\n\n@Component({\n\tselector: 'st-modal',\n\tstandalone: true,\n\timports: [],\n\ttemplateUrl: './modal.component.html',\n\tstyles: '',\n})\nexport class ModalComponent {\n\twidth = input<ModalWidthProps>();\n\talignment = input<ModalAlignmentProps>('center');\n\tmodalId = input.required<string>();\n\tonClickOutside = output<void>();\n\n\ticonClose = matCloseOutline;\n\tdialog = viewChild<ElementRef<HTMLDialogElement>>('dialog');\n\n\topened = model<boolean>(false);\n\topenedEffect = effect(() => {\n\t\tif (this.opened()) {\n\t\t\tthis.handleOpen();\n\t\t} else {\n\t\t\tthis.handleClose();\n\t\t}\n\t});\n\n\tget componentClass() {\n\t\treturn cn(\n\t\t\tmodalComponent({\n\t\t\t\twidth: this.width(),\n\t\t\t}),\n\t\t);\n\t}\n\n\tget modalClass() {\n\t\treturn cn('modal', {\n\t\t\t'modal-top': this.alignment() === 'top',\n\t\t\t'modal-middle': this.alignment() === 'center',\n\t\t\t'modal-bottom': this.alignment() === 'bottom',\n\t\t});\n\t}\n\n\thandleOpen() {\n\t\tthis.dialog()?.nativeElement.showModal();\n\t}\n\n\thandleClose() {\n\t\tthis.dialog()?.nativeElement.close();\n\t}\n\n\thandleCloseClick() {\n\t\tthis.opened.set(false);\n\t}\n\n\thandleCancelClick(event: Event) {\n\t\tevent.preventDefault();\n\t\tthis.opened.set(false);\n\t}\n}\n","<!-- eslint-disable @angular-eslint/template/elements-content -->\n<dialog #dialog [id]=\"modalId()\" [class]=\"modalClass\" (cancel)=\"handleCancelClick($event)\">\n\t<div [class]=\"componentClass\">\n\t\t<div class=\"absolute right-2 top-2\">\n\t\t\t<button class=\"btn btn-circle btn-ghost btn-sm absolute right-0 top-0\" (click)=\"handleCloseClick()\">✕</button>\n\t\t</div>\n\t\t<ng-content select=\"st-modal-title\"></ng-content>\n\t\t<ng-content select=\"st-modal-content\"></ng-content>\n\t\t<ng-content select=\"st-modal-actions\"></ng-content>\n\t</div>\n\t<form method=\"dialog\" class=\"modal-backdrop\">\n\t\t<button (click)=\"onClickOutside.emit()\"></button>\n\t</form>\n</dialog>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;MAca,qBAAqB,CAAA;;AAEjC,IAAA,SAAS,GAAG,KAAK,CAA4B,MAAM,CAAC,CAAC;AAErD,IAAA,IAAI,cAAc,GAAA;QACjB,OAAO,EAAE,CAAC,cAAc,EAAE;AACzB,YAAA,eAAe,EAAE,IAAI,CAAC,SAAS,EAAE,KAAK,MAAM;AAC5C,YAAA,aAAa,EAAE,IAAI,CAAC,SAAS,EAAE,KAAK,OAAO;AAC3C,YAAA,gBAAgB,EAAE,IAAI,CAAC,SAAS,EAAE,KAAK,QAAQ;AAC/C,SAAA,CAAC,CAAC;KACH;wGAVW,qBAAqB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;4FAArB,qBAAqB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,kBAAA,EAAA,MAAA,EAAA,EAAA,SAAA,EAAA,EAAA,iBAAA,EAAA,WAAA,EAAA,UAAA,EAAA,WAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,ECdlC,yEAGA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EDOW,YAAY,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,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAd,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,cAAc,6vBCzC3B,gsBAcA,EAAA,MAAA,EAAA,CAAA,EAAA,CAAA,EAAA,CAAA,CAAA;;4FD2Ba,cAAc,EAAA,UAAA,EAAA,CAAA;kBAP1B,SAAS;+BACC,UAAU,EAAA,UAAA,EACR,IAAI,EAAA,OAAA,EACP,EAAE,EAAA,QAAA,EAAA,gsBAAA,EAAA,CAAA;;;AErCZ;;AAEG;;;;"}
|
|
@@ -13,13 +13,10 @@ const notificationComponent = cva([], {
|
|
|
13
13
|
'btn-circle',
|
|
14
14
|
'btn-outline',
|
|
15
15
|
'text-neutral',
|
|
16
|
-
'border-
|
|
16
|
+
'border-neutral-secondary',
|
|
17
17
|
'hover:text-neutral',
|
|
18
18
|
'active:hover:text-neutral-content',
|
|
19
|
-
'hover:border-ring-accent',
|
|
20
19
|
'hover:bg-transparent',
|
|
21
|
-
'active:hover:bg-ring-accent',
|
|
22
|
-
'active:focus:border-ring-accent',
|
|
23
20
|
],
|
|
24
21
|
},
|
|
25
22
|
shape: {
|
|
@@ -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-
|
|
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,EA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AA,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;;;;"}
|
|
@@ -17,30 +17,30 @@ const paginationItemComponent = cva([], {
|
|
|
17
17
|
'btn-outline',
|
|
18
18
|
'flex',
|
|
19
19
|
'min-h-5',
|
|
20
|
-
'text-
|
|
20
|
+
'text-base-content',
|
|
21
21
|
'border-secondary',
|
|
22
|
-
'hover:text-
|
|
23
|
-
'hover:bg-
|
|
22
|
+
'hover:text-secondary-content',
|
|
23
|
+
'hover:bg-secondary',
|
|
24
24
|
'hover:bg-opacity-40',
|
|
25
|
-
'hover:border-
|
|
26
|
-
'active:hover:
|
|
27
|
-
'active:hover:bg-
|
|
28
|
-
'active:focus:border-
|
|
25
|
+
'hover:border-secondary',
|
|
26
|
+
'active:hover:bg-secondary-content',
|
|
27
|
+
'active:hover:bg-secondary',
|
|
28
|
+
'active:focus:border-secondary',
|
|
29
29
|
],
|
|
30
30
|
icon: [
|
|
31
31
|
'btn',
|
|
32
32
|
'btn-outline',
|
|
33
33
|
'flex',
|
|
34
34
|
'min-h-5',
|
|
35
|
-
'text-
|
|
35
|
+
'text-base-content',
|
|
36
36
|
'border-secondary',
|
|
37
|
-
'hover:text-
|
|
38
|
-
'hover:bg-
|
|
37
|
+
'hover:text-secondary-content',
|
|
38
|
+
'hover:bg-secondary',
|
|
39
39
|
'hover:bg-opacity-40',
|
|
40
|
-
'hover:border-
|
|
41
|
-
'active:hover:
|
|
42
|
-
'active:hover:bg-
|
|
43
|
-
'active:focus:border-
|
|
40
|
+
'hover:border-secondary',
|
|
41
|
+
'active:hover:bg-secondary-content',
|
|
42
|
+
'active:hover:bg-secondary',
|
|
43
|
+
'active:focus:border-secondary',
|
|
44
44
|
],
|
|
45
45
|
dots: [
|
|
46
46
|
'btn',
|
|
@@ -49,14 +49,14 @@ const paginationItemComponent = cva([], {
|
|
|
49
49
|
'min-h-[0.625rem]',
|
|
50
50
|
'border-secondary',
|
|
51
51
|
'bg-secondary',
|
|
52
|
-
'hover:bg-
|
|
52
|
+
'hover:bg-secondary',
|
|
53
53
|
'hover:bg-opacity-40',
|
|
54
|
-
'hover:border-
|
|
54
|
+
'hover:border-secondary',
|
|
55
55
|
'hover:scale-150',
|
|
56
|
-
'active:hover:bg-
|
|
57
|
-
'active:border-
|
|
56
|
+
'active:hover:bg-secondary',
|
|
57
|
+
'active:border-secondary',
|
|
58
58
|
'active:scale-150',
|
|
59
|
-
'active:focus:border-
|
|
59
|
+
'active:focus:border-secondary',
|
|
60
60
|
'',
|
|
61
61
|
],
|
|
62
62
|
},
|
|
@@ -103,16 +103,16 @@ class PaginationItemComponent {
|
|
|
103
103
|
size: this.size(),
|
|
104
104
|
padding: this.padding(),
|
|
105
105
|
class: this.classes(),
|
|
106
|
-
}), { '
|
|
107
|
-
'hover:scale-100 hover:bg-opacity-100 w-[0.9375rem] h-[0.9375rem]
|
|
106
|
+
}), { 'bg-secondary-content bg-secondary border-secondary text-secondary-content': this.active() && this.variant() !== 'dots' }, {
|
|
107
|
+
'hover:scale-100 hover:bg-opacity-100 w-[0.9375rem] h-[0.9375rem] bg-secondary border-secondary text-secondary-content': this.active() && this.variant() === 'dots',
|
|
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 [
|
|
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"] }] });
|
|
112
112
|
}
|
|
113
113
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: PaginationItemComponent, decorators: [{
|
|
114
114
|
type: Component,
|
|
115
|
-
args: [{ selector: 'st-pagination-item', standalone: true, imports: [IconComponent, TypographyDirective], template: "@let variantVar = this.variant();\n\n@if (variantVar === 'numeric') {\n\t<button [class]=\"componentClass\" type=\"button\">\n\t\t<span typography [
|
|
115
|
+
args: [{ selector: 'st-pagination-item', standalone: true, imports: [IconComponent, TypographyDirective], template: "@let variantVar = this.variant();\n\n@if (variantVar === 'numeric') {\n\t<button [class]=\"componentClass\" type=\"button\">\n\t\t<span typography [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" }]
|
|
116
116
|
}] });
|
|
117
117
|
|
|
118
118
|
class PaginatorComponent {
|
|
@@ -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-neutral',\n\t\t\t\t'border-secondary',\n\t\t\t\t'hover:text-neutral',\n\t\t\t\t'hover:bg-primary',\n\t\t\t\t'hover:bg-opacity-40',\n\t\t\t\t'hover:border-primary',\n\t\t\t\t'active:hover:text-neutral-content',\n\t\t\t\t'active:hover:bg-primary',\n\t\t\t\t'active:focus:border-primary',\n\t\t\t],\n\t\t\ticon: [\n\t\t\t\t'btn',\n\t\t\t\t'btn-outline',\n\t\t\t\t'flex',\n\t\t\t\t'min-h-5',\n\t\t\t\t'text-neutral',\n\t\t\t\t'border-secondary',\n\t\t\t\t'hover:text-neutral',\n\t\t\t\t'hover:bg-primary',\n\t\t\t\t'hover:bg-opacity-40',\n\t\t\t\t'hover:border-primary',\n\t\t\t\t'active:hover:text-neutral-content',\n\t\t\t\t'active:hover:bg-primary',\n\t\t\t\t'active:focus:border-primary',\n\t\t\t],\n\t\t\tdots: [\n\t\t\t\t'btn',\n\t\t\t\t'btn-circle',\n\t\t\t\t'flex',\n\t\t\t\t'min-h-[0.625rem]',\n\t\t\t\t'border-secondary',\n\t\t\t\t'bg-secondary',\n\t\t\t\t'hover:bg-primary',\n\t\t\t\t'hover:bg-opacity-40',\n\t\t\t\t'hover:border-primary',\n\t\t\t\t'hover:scale-150',\n\t\t\t\t'active:hover:bg-primary',\n\t\t\t\t'active:border-primary',\n\t\t\t\t'active:scale-150',\n\t\t\t\t'active:focus:border-primary',\n\t\t\t\t'',\n\t\t\t],\n\t\t},\n\t\tshape: {\n\t\t\t'round-xs': ['rounded-[0.3rem]'],\n\t\t\t'round-sm': ['rounded-btn-sm'],\n\t\t\t'round-md': ['rounded-btn-md'],\n\t\t\t'round-lg': ['rounded-btn-lg'],\n\t\t},\n\t\tsize: {\n\t\t\txs: ['h-[0.625rem]', 'w-[0.625rem]'],\n\t\t\tsm: ['h-5', 'w-5'],\n\t\t\tmd: ['h-[1.875rem]', 'w-[1.875rem]'],\n\t\t\tlg: ['h-9', 'w-9'],\n\t\t},\n\t\tpadding: {\n\t\t\tnone: ['p-0'],\n\t\t\tsm: ['px-4'],\n\t\t\tmd: ['px-6'],\n\t\t\tlg: ['px-8'],\n\t\t},\n\t},\n\tcompoundVariants: [],\n\tdefaultVariants: {\n\t\tvariant: 'numeric',\n\t\tshape: 'round-lg',\n\t\tsize: 'md',\n\t\tpadding: 'none',\n\t},\n});\n\nexport type PaginationItemVariantProps = 'numeric' | 'icon' | 'dots' | null | undefined;\nexport type PaginationItemShapeProps = 'round-xs' | 'round-sm' | 'round-md' | 'round-lg' | null | undefined;\nexport type PaginationItemSizeProps = 'xs' | 'sm' | 'md' | 'lg' | null | undefined;\nexport type PaginationItemPaddingProps = 'none' | 'sm' | 'md' | 'lg' | null | undefined;\n\nexport type PaginationItemProps = {\n\tvariant?: PaginationItemVariantProps;\n\tshape?: PaginationItemShapeProps;\n\tsize?: PaginationItemSizeProps;\n\tpadding?: PaginationItemPaddingProps;\n};\n\n@Component({\n\tselector: '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{ 'text-neutral-content bg-primary border-primary': this.active() && this.variant() !== 'dots' },\n\t\t\t{\n\t\t\t\t'hover:scale-100 hover:bg-opacity-100 w-[0.9375rem] h-[0.9375rem] text-neutral-content bg-primary border-primary':\n\t\t\t\t\tthis.active() && this.variant() === 'dots',\n\t\t\t},\n\t\t);\n\t}\n}\n","@let variantVar = this.variant();\n\n@if (variantVar === 'numeric') {\n\t<button [class]=\"componentClass\" type=\"button\">\n\t\t<span typography [typographyVariant]=\"'body-sm'\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'normal'\">{{ number() }}</span>\n\t</button>\n} @else if (variantVar === 'icon') {\n\t<button [class]=\"componentClass\" type=\"button\">\n\t\t<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 [typographyVariant]=\"'body-sm'\" [typographyColor]=\"'inherit'\" [typographyFontWeight]=\"'normal'\">{{ number() }}</span>\n\t</button>\n}\n","import { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, computed, input, model, output } from '@angular/core';\nimport {\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,cAAc;gBACd,kBAAkB;gBAClB,oBAAoB;gBACpB,kBAAkB;gBAClB,qBAAqB;gBACrB,sBAAsB;gBACtB,mCAAmC;gBACnC,yBAAyB;gBACzB,6BAA6B;AAC7B,aAAA;AACD,YAAA,IAAI,EAAE;gBACL,KAAK;gBACL,aAAa;gBACb,MAAM;gBACN,SAAS;gBACT,cAAc;gBACd,kBAAkB;gBAClB,oBAAoB;gBACpB,kBAAkB;gBAClB,qBAAqB;gBACrB,sBAAsB;gBACtB,mCAAmC;gBACnC,yBAAyB;gBACzB,6BAA6B;AAC7B,aAAA;AACD,YAAA,IAAI,EAAE;gBACL,KAAK;gBACL,YAAY;gBACZ,MAAM;gBACN,kBAAkB;gBAClB,kBAAkB;gBAClB,cAAc;gBACd,kBAAkB;gBAClB,qBAAqB;gBACrB,sBAAsB;gBACtB,iBAAiB;gBACjB,yBAAyB;gBACzB,uBAAuB;gBACvB,kBAAkB;gBAClB,6BAA6B;gBAC7B,EAAE;AACF,aAAA;AACD,SAAA;AACD,QAAA,KAAK,EAAE;YACN,UAAU,EAAE,CAAC,kBAAkB,CAAC;YAChC,UAAU,EAAE,CAAC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AA,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;;;;"}
|
|
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,mC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