@sixbell-telco/sdk 2.1.0 → 3.0.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 +70 -1
- package/README.md +323 -84
- package/_index.css +0 -3
- package/components/card/card-actions/card-actions.component.d.ts +4 -4
- package/components/card/card-body/card-body.component.d.ts +5 -0
- package/components/card/card-context.d.ts +8 -0
- package/components/card/card-footer/card-footer.component.d.ts +7 -0
- package/components/card/card-header/card-header.component.d.ts +5 -0
- package/components/card/card-header-aside/card-header-aside.component.d.ts +5 -0
- package/components/card/card-section/card-section.component.d.ts +5 -0
- package/components/card/card-section-body/card-section-body.component.d.ts +5 -0
- package/components/card/card-section-footer/card-section-footer.component.d.ts +5 -0
- package/components/card/card-section-group/card-section-group.component.d.ts +16 -0
- package/components/card/card-section-header/card-section-header.component.d.ts +5 -0
- package/components/card/card-section-header-aside/card-section-header-aside.component.d.ts +5 -0
- package/components/card/card-subtitle/card-subtitle.component.d.ts +34 -0
- package/components/card/card-title/card-title.component.d.ts +23 -14
- package/components/card/public-api.d.ts +12 -1
- package/components/card/src/card.component.d.ts +5 -1
- package/components/data-table/actions/actions.component.d.ts +67 -0
- package/components/data-table/actions/actions.types.d.ts +38 -0
- package/components/data-table/public-api.d.ts +2 -0
- package/components/data-table/sortable-header/sortable-header.component.d.ts +2 -0
- package/components/data-table/src/data-table.component.d.ts +14 -5
- package/{directives/typography → components/divider}/index.d.ts +1 -1
- package/components/divider/public-api.d.ts +1 -0
- package/components/divider/src/divider.component.d.ts +13 -0
- package/components/forms/date-picker/src/date-picker.component.d.ts +3 -0
- package/components/forms/form-error/src/form-error.component.d.ts +8 -1
- package/components/forms/input/src/input.component.d.ts +1 -12
- package/components/forms/textarea/src/textarea.component.d.ts +1 -6
- package/components/paginator/components/pagination-item/pagination-item.component.d.ts +10 -1
- package/components/paginator/src/paginator.component.d.ts +7 -1
- package/components/table/public-api.d.ts +1 -0
- package/components/table/src/table.component.d.ts +37 -4
- package/components/table/table-action/table-action.component.d.ts +2 -6
- package/components/table/table-actions/table-actions.component.d.ts +52 -6
- package/components/table/table-actions/table-actions.types.d.ts +28 -0
- package/components/{toast → text}/index.d.ts +1 -1
- package/components/text/public-api.d.ts +2 -0
- package/components/text/src/text.component.d.ts +38 -0
- package/directives/only-numbers/public-api.d.ts +0 -5
- package/directives/only-numbers/src/only-numbers.directive.d.ts +1 -13
- package/directives/text/index.d.ts +5 -0
- package/directives/text/public-api.d.ts +1 -0
- package/directives/text/src/text.directive.d.ts +87 -0
- package/fesm2022/sixbell-telco-sdk-components-accordion.mjs +3 -3
- package/fesm2022/sixbell-telco-sdk-components-accordion.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-audio-player.mjs +9 -9
- package/fesm2022/sixbell-telco-sdk-components-audio-player.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-avatar.mjs +10 -11
- package/fesm2022/sixbell-telco-sdk-components-avatar.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-badge.mjs +3 -3
- package/fesm2022/sixbell-telco-sdk-components-badge.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-button.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-button.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-card.mjs +414 -47
- package/fesm2022/sixbell-telco-sdk-components-card.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-data-table.mjs +202 -51
- package/fesm2022/sixbell-telco-sdk-components-data-table.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dialog.mjs +5 -5
- package/fesm2022/sixbell-telco-sdk-components-dialog.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-divider.mjs +44 -0
- package/fesm2022/sixbell-telco-sdk-components-divider.mjs.map +1 -0
- package/fesm2022/sixbell-telco-sdk-components-dual-list.mjs +4 -4
- package/fesm2022/sixbell-telco-sdk-components-dual-list.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-file-upload.mjs +6 -6
- package/fesm2022/sixbell-telco-sdk-components-file-upload.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-checkbox.mjs +2 -2
- 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-date-picker.mjs +21 -5
- package/fesm2022/sixbell-telco-sdk-components-forms-date-picker.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-form-error.mjs +12 -5
- package/fesm2022/sixbell-telco-sdk-components-forms-form-error.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-input.mjs +3 -15
- package/fesm2022/sixbell-telco-sdk-components-forms-input.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-radio.mjs +2 -2
- 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 +2 -2
- 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 +5 -11
- package/fesm2022/sixbell-telco-sdk-components-forms-textarea.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-toggle.mjs +4 -4
- package/fesm2022/sixbell-telco-sdk-components-forms-toggle.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-icon.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-icon.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-link.mjs +3 -3
- package/fesm2022/sixbell-telco-sdk-components-link.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-paginator.mjs +46 -18
- package/fesm2022/sixbell-telco-sdk-components-paginator.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-progress.mjs +3 -3
- package/fesm2022/sixbell-telco-sdk-components-progress.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-table.mjs +439 -47
- package/fesm2022/sixbell-telco-sdk-components-table.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-text.mjs +308 -0
- package/fesm2022/sixbell-telco-sdk-components-text.mjs.map +1 -0
- package/fesm2022/sixbell-telco-sdk-components-wizard.mjs +12 -12
- package/fesm2022/sixbell-telco-sdk-components-wizard.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-directives-only-numbers.mjs +5 -22
- package/fesm2022/sixbell-telco-sdk-directives-only-numbers.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-directives-text.mjs +160 -0
- package/fesm2022/sixbell-telco-sdk-directives-text.mjs.map +1 -0
- package/fesm2022/sixbell-telco-sdk-utils-formatting.mjs +490 -0
- package/fesm2022/sixbell-telco-sdk-utils-formatting.mjs.map +1 -0
- package/fesm2022/sixbell-telco-sdk-utils-translation.mjs +49 -1
- package/fesm2022/sixbell-telco-sdk-utils-translation.mjs.map +1 -1
- package/package.json +86 -78
- package/utils/formatting/README.md +100 -0
- package/utils/formatting/index.d.ts +5 -0
- package/utils/formatting/public-api.d.ts +9 -0
- package/utils/formatting/src/constants/constants.d.ts +18 -0
- package/utils/formatting/src/models/formatting.d.ts +33 -0
- package/utils/formatting/src/pipes/currency/st-currency.pipe.d.ts +9 -0
- package/utils/formatting/src/pipes/date/st-date.pipe.d.ts +9 -0
- package/utils/formatting/src/pipes/decimal/st-decimal.pipe.d.ts +9 -0
- package/utils/formatting/src/pipes/percent/st-percent.pipe.d.ts +9 -0
- package/utils/formatting/src/service/formatting.service.d.ts +13 -0
- package/utils/formatting/src/utils/date-format/date-format.d.ts +9 -0
- package/utils/formatting/src/utils/number-format/number-format.d.ts +12 -0
- package/utils/logger/README.md +8 -19
- package/utils/runtime-config/README.md +1 -1
- package/utils/theme/README.md +21 -2
- package/utils/translation/README.md +40 -10
- package/utils/translation/public-api.d.ts +1 -1
- package/utils/translation/src/constants.d.ts +9 -2
- package/utils/translation/src/models/translation.d.ts +11 -0
- package/utils/translation/src/providers/translation.provider.d.ts +1 -1
- package/utils/translation/src/translation.service.d.ts +6 -1
- package/assets/styles/toast.css +0 -63
- package/components/card/card-content/card-content.component.d.ts +0 -30
- package/components/toast/public-api.d.ts +0 -12
- package/components/toast/services/toast.service.d.ts +0 -35
- package/components/toast/toast-message/toast-message.component.d.ts +0 -70
- package/components/toast/toasts-container/toasts-container.component.d.ts +0 -21
- package/directives/typography/public-api.d.ts +0 -1
- package/directives/typography/src/typography.directive.d.ts +0 -68
- package/fesm2022/sixbell-telco-sdk-components-toast.mjs +0 -250
- package/fesm2022/sixbell-telco-sdk-components-toast.mjs.map +0 -1
- package/fesm2022/sixbell-telco-sdk-directives-typography.mjs +0 -126
- package/fesm2022/sixbell-telco-sdk-directives-typography.mjs.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sixbell-telco-sdk-components-card.mjs","sources":["../../../projects/sdk/components/card/card-actions/card-actions.component.ts","../../../projects/sdk/components/card/card-actions/card-actions.component.html","../../../projects/sdk/components/card/card-content/card-content.component.ts","../../../projects/sdk/components/card/card-content/card-content.component.html","../../../projects/sdk/components/card/card-title/card-title.component.ts","../../../projects/sdk/components/card/card-title/card-title.component.html","../../../projects/sdk/components/card/src/card.component.ts","../../../projects/sdk/components/card/src/card.component.html","../../../projects/sdk/components/card/sixbell-telco-sdk-components-card.ts"],"sourcesContent":["import { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, computed, input } from '@angular/core';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\n\n/** Possible alignment options for card actions */\nexport type CardActionsAligmentProps = 'left' | 'right' | 'center';\n\n/**\n * A container component for card action buttons/controls\n *\n * @remarks\n * Part of the card component ecosystem. Provides consistent layout\n * and alignment for card actions. Should be used inside `<st-card>`\n * components following content sections.\n *\n * @example\n * ```html\n * <st-card>\n * <st-card-title>Card Header</st-card-title>\n * <st-card-content>Content</st-card-content>\n * <st-card-actions alignment=\"right\">\n * <button class=\"btn\">Action</button>\n * </st-card-actions>\n * </st-card>\n * ```\n */\n@Component({\n\tselector: 'st-card-actions',\n\timports: [CommonModule],\n\ttemplateUrl: './card-actions.component.html',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class CardActionsComponent {\n\t/**\n\t * Horizontal alignment of actions\n\t * @defaultValue 'left'\n\t */\n\talignment = input<CardActionsAligmentProps>('left');\n\n\t/**\n\t * @internal\n\t * Computed class string for the actions container\n\t */\n\tcomponentClass = computed(() => {\n\t\treturn cn('card-actions text-pretty font-body', {\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/**\n * A content container component designed for use within cards\n *\n * @remarks\n * Part of the card component ecosystem. Provides consistent spacing\n * and styling for card content. Should be used inside `<st-card>` components\n * following the `<st-card-title>` element.\n *\n * @example\n * ```html\n * <st-card>\n * <st-card-title>Card Header</st-card-title>\n * <st-card-content>\n * <p>Main card content here</p>\n * </st-card-content>\n * </st-card>\n * ```\n *\n * @example\n * ```html\n * <st-card-content class=\"custom-content-style\">\n * Custom styled content area\n * </st-card-content>\n * ```\n */\n@Component({\n\tselector: 'st-card-content',\n\timports: [CommonModule],\n\ttemplateUrl: './card-content.component.html',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class CardContentComponent {}\n","<div class=\"card-content font-body text-pretty\">\n\t<ng-content></ng-content>\n</div>\n","import { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component } from '@angular/core';\n\n/**\n * A title component designed for use within cards\n *\n * @remarks\n * Part of the card component ecosystem. Provides consistent styling\n * and typography for card titles. Should be used inside `<st-card>` components.\n *\n * @example\n * ```html\n * <st-card>\n * <st-card-title>Card Header</st-card-title>\n * <p>Card content</p>\n * </st-card>\n * ```\n *\n * @example\n * ```html\n * <st-card-title class=\"custom-class\">\n * Custom Styled Title\n * </st-card-title>\n * ```\n */\n@Component({\n\tselector: 'st-card-title',\n\timports: [CommonModule],\n\ttemplateUrl: './card-title.component.html',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class CardTitleComponent {}\n","<div class=\"card-title font-heading text-pretty\">\n\t<ng-content></ng-content>\n</div>\n","import { CommonModule } from '@angular/common';\nimport { Component, computed, input } from '@angular/core';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { cva } from 'class-variance-authority';\n\n/**\n * @internal\n * Generates base card classes with style variants\n */\nexport const cardComponent = cva(['card'], {\n\tvariants: {\n\t\tsize: {\n\t\t\txs: 'card-xs',\n\t\t\tsm: 'card-sm',\n\t\t\tmd: 'card-md',\n\t\t\tlg: 'card-lg',\n\t\t\txl: 'card-xl',\n\t\t},\n\t},\n\tdefaultVariants: {\n\t\tsize: 'md',\n\t},\n});\n\n/** Possible card container size variants */\nexport type CardContainerSizeProps = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | null | undefined;\n\n/** Possible card image orientation options */\nexport type CardImageOrientationProps = 'vertical' | 'horizontal';\n\n/** Possible card image alignment options */\nexport type CardImageAlignmentProps = 'start' | 'end';\n\n/** Configuration object for card styling variants */\nexport type CardProps = {\n\tsize?: CardContainerSizeProps;\n\tborder?: boolean;\n\timage?: string | null;\n\timageAlt?: string;\n\timageOrientation?: CardImageOrientationProps;\n\timageAlignment?: CardImageAlignmentProps;\n\timageAsBackground?: boolean;\n\tshadow?: boolean;\n\tglass?: boolean;\n\tdash?: boolean;\n\tblock?: boolean;\n};\n\n/**\n * A customizable card component with multiple layout and styling options\n *\n * @remarks\n * Built with Tailwind CSS and class-variance-authority for style management.\n * Supports various sizes, image configurations, and decorative styles.\n *\n * @example\n * ```html\n * <st-card\n * size=\"md\"\n * border=\"true\"\n * image=\"background.jpg\"\n * imageOrientation=\"horizontal\"\n * >\n * <h3 class=\"card-title\">Card Title</h3>\n * <p>Card content</p>\n * </st-card>\n * ```\n */\n@Component({\n\tselector: 'st-card',\n\timports: [CommonModule],\n\ttemplateUrl: './card.component.html',\n\tstyles: '',\n})\nexport class CardComponent {\n\t/**\n\t * Card container size variant\n\t * @defaultValue 'md'\n\t */\n\tsize = input<CardContainerSizeProps>();\n\n\t/**\n\t * Show border around card\n\t * @defaultValue false\n\t */\n\tborder = input<boolean>(false);\n\n\t/**\n\t * Image source URL\n\t */\n\timage = input<string | null>(null);\n\n\t/**\n\t * Alt text for card image\n\t * @defaultValue 'card image'\n\t */\n\timageAlt = input<string>('card image');\n\n\t/**\n\t * Orientation of card image\n\t * @defaultValue 'vertical'\n\t */\n\timageOrientation = input<CardImageOrientationProps>('vertical');\n\n\t/**\n\t * Alignment of card image\n\t * @defaultValue 'start'\n\t */\n\timageAlignment = input<CardImageAlignmentProps>('start');\n\n\t/**\n\t * Use image as full background\n\t * @defaultValue false\n\t */\n\timageAsBackground = input<boolean>(false);\n\n\t/**\n\t * Add drop shadow\n\t * @defaultValue false\n\t */\n\tshadow = input<boolean>(false);\n\n\t/**\n\t * Glass effect styling\n\t * @defaultValue false\n\t */\n\tglass = input<boolean>(false);\n\n\t/**\n\t * Dashed border style\n\t * @defaultValue false\n\t */\n\tdash = input<boolean>(false);\n\n\t/**\n\t * Full-width card\n\t * @defaultValue false\n\t */\n\tblock = input<boolean>(false);\n\n\t/**\n\t * @internal\n\t * Computed class string for the card container\n\t */\n\tcomponentClass = computed(() =>\n\t\tcn(\n\t\t\tcardComponent({\n\t\t\t\tsize: this.size(),\n\t\t\t}),\n\t\t\t{\n\t\t\t\t'card-side': this.imageOrientation() === 'horizontal' && this.image(),\n\t\t\t\t'image-full': this.imageAsBackground(),\n\t\t\t\t'shadow-main': this.shadow(),\n\t\t\t\t'card-border': this.border(),\n\t\t\t\t'card-dash': this.dash(),\n\t\t\t\t'bg-base-200': !this.glass(),\n\t\t\t\tglass: this.glass(),\n\t\t\t},\n\t\t),\n\t);\n}\n","@let componentClassVar = this.componentClass();\n@let imageVar = this.image();\n@let imageAltVar = this.imageAlt();\n@let imageAlignmentVar = this.imageAlignment();\n<section [class]=\"componentClassVar\">\n\t@if (imageVar && imageAlignmentVar === 'start') {\n\t\t<figure>\n\t\t\t<img [src]=\"imageVar\" [alt]=\"imageAltVar\" />\n\t\t</figure>\n\t}\n\t<div class=\"card-body gap-6 [&_st-card-content]:grow\">\n\t\t<ng-content select=\"st-card-title\"></ng-content>\n\t\t<ng-content select=\"st-card-content\"></ng-content>\n\t\t<ng-content select=\"st-card-actions\"></ng-content>\n\t</div>\n\t@if (imageVar && imageAlignmentVar === 'end') {\n\t\t<figure>\n\t\t\t<img [src]=\"imageVar\" [alt]=\"imageAltVar\" />\n\t\t</figure>\n\t}\n</section>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;AAOA;;;;;;;;;;;;;;;;;;AAkBG;MAOU,oBAAoB,CAAA;AAChC;;;AAGG;AACH,IAAA,SAAS,GAAG,KAAK,CAA2B,MAAM,CAAC;AAEnD;;;AAGG;AACH,IAAA,cAAc,GAAG,QAAQ,CAAC,MAAK;QAC9B,OAAO,EAAE,CAAC,oCAAoC,EAAE;AAC/C,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,SAA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AA,EAAA,iBAAA,EAAA,QAAA,EAAA,UAAA,EAAA,QAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,KAAA,EAAA,EAAA,iBAAA,EAAA,OAAA,EAAA,UAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,IAAA,EAAA,EAAA,iBAAA,EAAA,MAAA,EAAA,UAAA,EAAA,MAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,KAAA,EAAA,EAAA,iBAAA,EAAA,OAAA,EAAA,UAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EC1E1B,2uBAqBA,EAAA,MAAA,EAAA,CAAA,EAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EDiDW,YAAY,EAAA,CAAA,EAAA,CAAA;;2FAIV,aAAa,EAAA,UAAA,EAAA,CAAA;kBANzB,SAAS;+BACC,SAAS,EAAA,OAAA,EACV,CAAC,YAAY,CAAC,EAAA,QAAA,EAAA,2uBAAA,EAAA;;;AEtExB;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"sixbell-telco-sdk-components-card.mjs","sources":["../../../projects/sdk/components/card/card-actions/card-actions.component.ts","../../../projects/sdk/components/card/card-actions/card-actions.component.html","../../../projects/sdk/components/card/card-body/card-body.component.ts","../../../projects/sdk/components/card/card-context.ts","../../../projects/sdk/components/card/card-footer/card-footer.component.ts","../../../projects/sdk/components/card/card-header-aside/card-header-aside.component.ts","../../../projects/sdk/components/card/card-header/card-header.component.ts","../../../projects/sdk/components/card/card-section-body/card-section-body.component.ts","../../../projects/sdk/components/card/card-section-footer/card-section-footer.component.ts","../../../projects/sdk/components/card/card-section/card-section.component.ts","../../../projects/sdk/components/card/card-section-group/card-section-group.component.ts","../../../projects/sdk/components/card/card-section-header-aside/card-section-header-aside.component.ts","../../../projects/sdk/components/card/card-section-header/card-section-header.component.ts","../../../projects/sdk/components/card/card-subtitle/card-subtitle.component.ts","../../../projects/sdk/components/card/card-title/card-title.component.ts","../../../projects/sdk/components/card/src/card.component.ts","../../../projects/sdk/components/card/src/card.component.html","../../../projects/sdk/components/card/sixbell-telco-sdk-components-card.ts"],"sourcesContent":["import { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, computed, input } from '@angular/core';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\n\n/** Possible alignment options for card actions */\nexport type CardActionsAligmentProps = 'left' | 'right' | 'center';\n\n/**\n * A container component for card action buttons/controls\n *\n * @remarks\n * Part of the card component ecosystem. Provides consistent layout\n * and alignment for card actions. Should be used inside `<st-card>`\n * components following content sections.\n *\n * @example\n * ```html\n * <st-card>\n * <st-card-footer>\n * <st-card-actions alignment=\"right\">\n * <button class=\"btn\">Action</button>\n * </st-card-actions>\n * </st-card-footer>\n * </st-card>\n * ```\n */\n@Component({\n\tselector: 'st-card-actions',\n\timports: [CommonModule],\n\ttemplateUrl: './card-actions.component.html',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class CardActionsComponent {\n\t/**\n\t * Horizontal alignment of actions\n\t * @defaultValue 'left'\n\t */\n\talignment = input<CardActionsAligmentProps>('left');\n\n\t/**\n\t * @internal\n\t * Computed class string for the actions container\n\t */\n\tcomponentClass = computed(() => {\n\t\treturn cn('card-actions font-body text-pretty', {\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\tselector: 'st-card-body',\n\timports: [CommonModule],\n\thost: {\n\t\tclass: 'flex flex-col',\n\t},\n\ttemplate: '<ng-content></ng-content>',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class CardBodyComponent {}\n","import { InjectionToken, Signal } from '@angular/core';\n\nexport type CardTypographyArea = 'card-header' | 'section-header';\n\nexport type CardTypographyContext = {\n\tarea: CardTypographyArea;\n\tprominent: Signal<boolean>;\n};\n\nexport const CARD_HAS_SECTIONS = new InjectionToken<Signal<boolean>>('CARD_HAS_SECTIONS');\n\nexport const CARD_TYPOGRAPHY_CONTEXT = new InjectionToken<CardTypographyContext>('CARD_TYPOGRAPHY_CONTEXT');\n","import { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, computed, input } from '@angular/core';\nimport { DividerComponent } from '@sixbell-telco/sdk/components/divider';\n\n@Component({\n\tselector: 'st-card-footer',\n\timports: [CommonModule, DividerComponent],\n\thost: {\n\t\tclass: 'flex flex-col',\n\t},\n\ttemplate: `\n\t\t@if (divided()) {\n\t\t\t<st-divider variant=\"neutral\" [withMargin]=\"false\"></st-divider>\n\t\t}\n\t\t<div [class]=\"contentClass()\">\n\t\t\t<ng-content></ng-content>\n\t\t</div>\n\t`,\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class CardFooterComponent {\n\tdivided = input<boolean>(false);\n\n\tprotected readonly contentClass = computed(() => (this.divided() ? 'mt-6' : ''));\n}\n","import { ChangeDetectionStrategy, Component } from '@angular/core';\n\n@Component({\n\tselector: 'st-card-header-aside',\n\thost: {\n\t\tclass: 'shrink-0',\n\t},\n\ttemplate: '<ng-content></ng-content>',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class CardHeaderAsideComponent {}\n","import { ChangeDetectionStrategy, Component, inject, signal } from '@angular/core';\nimport { CARD_HAS_SECTIONS, CARD_TYPOGRAPHY_CONTEXT } from '../card-context';\n\nconst NON_PROMINENT_CARD_HEADER = signal(false).asReadonly();\n\n@Component({\n\tselector: 'st-card-header',\n\thost: {\n\t\tclass: 'block',\n\t},\n\ttemplate: `\n\t\t<div class=\"flex flex-col gap-4 sm:flex-row sm:items-start\">\n\t\t\t<div class=\"flex min-w-0 flex-1 flex-col gap-1\">\n\t\t\t\t<ng-content></ng-content>\n\t\t\t</div>\n\t\t\t<ng-content select=\"st-card-header-aside\"></ng-content>\n\t\t</div>\n\t`,\n\tproviders: [\n\t\t{\n\t\t\tprovide: CARD_TYPOGRAPHY_CONTEXT,\n\t\t\tuseFactory: () => {\n\t\t\t\tconst prominent = inject(CARD_HAS_SECTIONS, { optional: true });\n\t\t\t\treturn {\n\t\t\t\t\tarea: 'card-header' as const,\n\t\t\t\t\tprominent: prominent ?? NON_PROMINENT_CARD_HEADER,\n\t\t\t\t};\n\t\t\t},\n\t\t},\n\t],\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class CardHeaderComponent {}\n","import { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component } from '@angular/core';\n\n@Component({\n\tselector: 'st-card-section-body',\n\timports: [CommonModule],\n\thost: {\n\t\tclass: 'text-base-content font-body flex flex-col gap-4 text-pretty',\n\t},\n\ttemplate: '<ng-content></ng-content>',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class CardSectionBodyComponent {}\n","import { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component } from '@angular/core';\n\n@Component({\n\tselector: 'st-card-section-footer',\n\timports: [CommonModule],\n\thost: {\n\t\tclass: 'flex flex-col',\n\t},\n\ttemplate: '<ng-content></ng-content>',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class CardSectionFooterComponent {}\n","import { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component } from '@angular/core';\n\n@Component({\n\tselector: 'st-card-section',\n\timports: [CommonModule],\n\thost: {\n\t\tclass: 'flex flex-col gap-5',\n\t},\n\ttemplate: '<ng-content></ng-content>',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class CardSectionComponent {}\n","import {\n\tChangeDetectionStrategy,\n\tComponent,\n\tComponentRef,\n\tDestroyRef,\n\tElementRef,\n\tEnvironmentInjector,\n\tafterRenderEffect,\n\tcontentChildren,\n\tcreateComponent,\n\tinject,\n\tinput,\n} from '@angular/core';\nimport { DividerComponent } from '@sixbell-telco/sdk/components/divider';\nimport { CardSectionComponent } from '../card-section/card-section.component';\n\n@Component({\n\tselector: 'st-card-section-group',\n\thost: {\n\t\tclass: 'flex flex-col gap-6',\n\t},\n\ttemplate: '<ng-content></ng-content>',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class CardSectionGroupComponent {\n\tprivate readonly host = inject<ElementRef<HTMLElement>>(ElementRef);\n\tprivate readonly destroyRef = inject(DestroyRef);\n\tprivate readonly envInjector = inject(EnvironmentInjector);\n\tprivate readonly dividerClass = 'st-card-section-group-divider';\n\tprivate dividerRefs: ComponentRef<DividerComponent>[] = [];\n\n\tdivided = input<boolean>(false);\n\n\tprotected readonly sections = contentChildren(CardSectionComponent);\n\n\tconstructor() {\n\t\tafterRenderEffect(() => {\n\t\t\tthis.syncDividers();\n\t\t});\n\n\t\tthis.destroyRef.onDestroy(() => {\n\t\t\tthis.removeDividers();\n\t\t});\n\t}\n\n\tprivate syncDividers(): void {\n\t\tthis.removeDividers();\n\n\t\tif (!this.divided()) return;\n\n\t\tconst host = this.host.nativeElement;\n\t\tconst sections = Array.from(host.children).filter(\n\t\t\t(element): element is HTMLElement => element instanceof HTMLElement && element.tagName === 'ST-CARD-SECTION',\n\t\t);\n\n\t\tif (sections.length < 2) return;\n\n\t\tfor (let index = 0; index < sections.length - 1; index += 1) {\n\t\t\tconst dividerRef = createComponent(DividerComponent, {\n\t\t\t\tenvironmentInjector: this.envInjector,\n\t\t\t\telementInjector: undefined,\n\t\t\t});\n\n\t\t\tdividerRef.setInput('variant', 'neutral');\n\t\t\tdividerRef.changeDetectorRef.detectChanges();\n\n\t\t\tconst dividerHost = dividerRef.location.nativeElement as HTMLElement;\n\t\t\tdividerHost.classList.add(this.dividerClass);\n\t\t\tsections[index].insertAdjacentElement('afterend', dividerHost);\n\t\t\tthis.dividerRefs.push(dividerRef);\n\t\t}\n\t}\n\n\tprivate removeDividers(): void {\n\t\tfor (const dividerRef of this.dividerRefs) {\n\t\t\tdividerRef.location.nativeElement.remove();\n\t\t\tdividerRef.destroy();\n\t\t}\n\t\tthis.dividerRefs = [];\n\t}\n}\n","import { ChangeDetectionStrategy, Component } from '@angular/core';\n\n@Component({\n\tselector: 'st-card-section-header-aside',\n\thost: {\n\t\tclass: 'shrink-0',\n\t},\n\ttemplate: '<ng-content></ng-content>',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class CardSectionHeaderAsideComponent {}\n","import { ChangeDetectionStrategy, Component, signal } from '@angular/core';\nimport { CARD_TYPOGRAPHY_CONTEXT } from '../card-context';\n\nconst SECTION_HEADER_PROMINENCE = signal(false).asReadonly();\n\n@Component({\n\tselector: 'st-card-section-header',\n\thost: {\n\t\tclass: 'block',\n\t},\n\ttemplate: `\n\t\t<div class=\"flex flex-col gap-4 sm:flex-row sm:items-start\">\n\t\t\t<div class=\"flex min-w-0 flex-1 flex-col gap-1\">\n\t\t\t\t<ng-content></ng-content>\n\t\t\t</div>\n\t\t\t<ng-content select=\"st-card-section-header-aside\"></ng-content>\n\t\t</div>\n\t`,\n\tproviders: [{ provide: CARD_TYPOGRAPHY_CONTEXT, useValue: { area: 'section-header', prominent: SECTION_HEADER_PROMINENCE } }],\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class CardSectionHeaderComponent {}\n","import { ChangeDetectionStrategy, Component, ElementRef, computed, inject, input } from '@angular/core';\nimport { TextDirective, TextPreset } from '@sixbell-telco/sdk/directives/text';\nimport { CARD_TYPOGRAPHY_CONTEXT } from '../card-context';\n\n/**\n * A context-aware subtitle primitive for cards.\n *\n * @remarks\n * Renders as a `<p>` element with the prominent card-header preset inside `<st-card-header>` when the card contains sections.\n * If the card has no sections, the subtitle downgrades to the same preset used by section subtitles.\n * Preset and classes are overridable per instance.\n * Supports arbitrary inner HTML/components.\n *\n * Uses `display: contents` so the rendered paragraph element participates\n * directly in the parent flex layout.\n *\n * @example\n * ```html\n * <st-card-header>\n * <st-card-title>Title</st-card-title>\n * <st-card-subtitle>Last updated today</st-card-subtitle>\n * </st-card-header>\n * ```\n */\n@Component({\n\tselector: 'st-card-subtitle',\n\timports: [TextDirective],\n\ttemplate: `\n\t\t<p [stText]=\"resolvedPreset()\" [stTextClass]=\"resolvedClass()\" stTextColor=\"base\">\n\t\t\t<ng-content></ng-content>\n\t\t</p>\n\t`,\n\thost: { style: 'display: contents' },\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class CardSubtitleComponent {\n\tprivate readonly typographyContext = inject(CARD_TYPOGRAPHY_CONTEXT, { optional: true });\n\tprivate readonly hostStaticClasses = inject(ElementRef).nativeElement.getAttribute('class') ?? '';\n\n\tpreset = input<TextPreset>(undefined);\n\tclass = input<string>('');\n\n\tprotected readonly isCardHeader = computed(() => this.typographyContext?.area === 'card-header');\n\tprotected readonly prominent = computed(() => this.typographyContext?.prominent() ?? false);\n\tprotected readonly resolvedPreset = computed(() => {\n\t\tconst override = this.preset();\n\t\tif (override) return override;\n\t\tif (!this.isCardHeader()) return '8';\n\t\treturn this.prominent() ? '7' : '8';\n\t});\n\tprotected readonly resolvedClass = computed(() => {\n\t\tconst toneClass = this.isCardHeader() && this.prominent() ? 'block text-base-content/70' : 'block text-base-content/60';\n\t\treturn [toneClass, this.class(), this.hostStaticClasses].filter(Boolean).join(' ');\n\t});\n}\n","import { NgTemplateOutlet } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, ElementRef, computed, inject, input } from '@angular/core';\nimport { TextDirective, TextPreset } from '@sixbell-telco/sdk/directives/text';\nimport { CARD_TYPOGRAPHY_CONTEXT } from '../card-context';\n\n/**\n * A context-aware title primitive for cards.\n *\n * @remarks\n * Renders as `<h2>` with prominent preset 2 inside `<st-card-header>` when the card contains sections.\n * If the card has no sections, the header title downgrades to preset 4 so the header does not overstate hierarchy.\n * Inside `<st-card-section-header>` (or standalone), it renders as `<h3>` with preset 4.\n * Semantic tag (`as`), preset, and classes are overridable per instance.\n * Supports arbitrary inner HTML/components (badges, links, icons).\n *\n * Uses `display: contents` so the rendered heading element participates\n * directly in the parent flex layout.\n *\n * @example\n * ```html\n * <st-card-header>\n * <st-card-title>Customer overview</st-card-title>\n * </st-card-header>\n * ```\n */\n@Component({\n\tselector: 'st-card-title',\n\timports: [NgTemplateOutlet, TextDirective],\n\ttemplate: `\n\t\t<ng-template #contentTpl><ng-content /></ng-template>\n\t\t@switch (tag()) {\n\t\t\t@case ('h2') {\n\t\t\t\t<h2 [stText]=\"resolvedPreset()\" [stTextClass]=\"resolvedClass()\" stTextColor=\"base\">\n\t\t\t\t\t<ng-container [ngTemplateOutlet]=\"contentTpl\" />\n\t\t\t\t</h2>\n\t\t\t}\n\t\t\t@default {\n\t\t\t\t<h3 [stText]=\"resolvedPreset()\" [stTextClass]=\"resolvedClass()\" stTextColor=\"base\">\n\t\t\t\t\t<ng-container [ngTemplateOutlet]=\"contentTpl\" />\n\t\t\t\t</h3>\n\t\t\t}\n\t\t}\n\t`,\n\thost: { style: 'display: contents' },\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class CardTitleComponent {\n\tprivate readonly typographyContext = inject(CARD_TYPOGRAPHY_CONTEXT, { optional: true });\n\tprivate readonly hostStaticClasses = inject(ElementRef).nativeElement.getAttribute('class') ?? '';\n\t// eslint-disable-next-line @angular-eslint/no-input-rename\n\ttagOverride = input<'h2' | 'h3' | undefined>(undefined, { alias: 'as' });\n\tpreset = input<TextPreset>(undefined);\n\tclass = input<string>('');\n\n\tprotected readonly isCardHeader = computed(() => this.typographyContext?.area === 'card-header');\n\tprotected readonly prominent = computed(() => this.typographyContext?.prominent() ?? false);\n\tprotected readonly tag = computed(() => this.tagOverride() ?? (this.isCardHeader() ? 'h2' : 'h3'));\n\tprotected readonly resolvedPreset = computed(() => {\n\t\tconst override = this.preset();\n\t\tif (override) return override;\n\t\tif (!this.isCardHeader()) return '4';\n\t\treturn this.prominent() ? '2' : '4';\n\t});\n\tprotected readonly resolvedClass = computed(() => {\n\t\tconst classes = [this.hostStaticClasses, this.class(), 'block'].filter(Boolean).join(' ');\n\t\treturn classes;\n\t});\n}\n","import { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, computed, contentChildren, input } from '@angular/core';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { cva } from 'class-variance-authority';\nimport { CARD_HAS_SECTIONS } from '../card-context';\nimport { CardSectionComponent } from '../card-section/card-section.component';\n\n/**\n * @internal\n * Generates base card classes with style variants\n */\nexport const cardComponent = cva(['card'], {\n\tvariants: {\n\t\tsize: {\n\t\t\txs: 'card-xs',\n\t\t\tsm: 'card-sm',\n\t\t\tmd: 'card-md',\n\t\t\tlg: 'card-lg',\n\t\t\txl: 'card-xl',\n\t\t},\n\t},\n\tdefaultVariants: {\n\t\tsize: 'md',\n\t},\n});\n\n/** Possible card container size variants */\nexport type CardContainerSizeProps = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | null | undefined;\n\n/** Possible card image orientation options */\nexport type CardImageOrientationProps = 'vertical' | 'horizontal';\n\n/** Possible card image alignment options */\nexport type CardImageAlignmentProps = 'start' | 'end';\n\n/** Configuration object for card styling variants */\nexport type CardProps = {\n\tsize?: CardContainerSizeProps;\n\tborder?: boolean;\n\timage?: string | null;\n\timageAlt?: string;\n\timageOrientation?: CardImageOrientationProps;\n\timageAlignment?: CardImageAlignmentProps;\n\timageAsBackground?: boolean;\n\tshadow?: boolean;\n\tglass?: boolean;\n\tdash?: boolean;\n\tblock?: boolean;\n};\n\n/**\n * A customizable card component with multiple layout and styling options\n *\n * @remarks\n * Built with Tailwind CSS and class-variance-authority for style management.\n * Supports various sizes, image configurations, and decorative styles.\n *\n * @example\n * ```html\n * <st-card\n * size=\"md\"\n * border=\"true\"\n * image=\"background.jpg\"\n * imageOrientation=\"horizontal\"\n * >\n * <h3 class=\"card-title\">Card Title</h3>\n * <p>Card content</p>\n * </st-card>\n * ```\n */\n@Component({\n\tselector: 'st-card',\n\timports: [CommonModule],\n\ttemplateUrl: './card.component.html',\n\tproviders: [{ provide: CARD_HAS_SECTIONS, useFactory: (card: CardComponent) => card.hasSections, deps: [CardComponent] }],\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class CardComponent {\n\tprotected readonly sections = contentChildren(CardSectionComponent, { descendants: true });\n\tprotected readonly hasSections = computed(() => this.sections().length > 0);\n\tprotected readonly bodyClass = computed(() => (this.hasSections() ? 'card-body gap-6' : 'card-body gap-5'));\n\n\t/**\n\t * Card container size variant\n\t * @defaultValue 'md'\n\t */\n\tsize = input<CardContainerSizeProps>();\n\n\t/**\n\t * Show border around card\n\t * @defaultValue false\n\t */\n\tborder = input<boolean>(false);\n\n\t/**\n\t * Image source URL\n\t */\n\timage = input<string | null>(null);\n\n\t/**\n\t * Alt text for card image\n\t * @defaultValue 'card image'\n\t */\n\timageAlt = input<string>('card image');\n\n\t/**\n\t * Orientation of card image\n\t * @defaultValue 'vertical'\n\t */\n\timageOrientation = input<CardImageOrientationProps>('vertical');\n\n\t/**\n\t * Alignment of card image\n\t * @defaultValue 'start'\n\t */\n\timageAlignment = input<CardImageAlignmentProps>('start');\n\n\t/**\n\t * Use image as full background\n\t * @defaultValue false\n\t */\n\timageAsBackground = input<boolean>(false);\n\n\t/**\n\t * Add drop shadow\n\t * @defaultValue false\n\t */\n\tshadow = input<boolean>(false);\n\n\t/**\n\t * Glass effect styling\n\t * @defaultValue false\n\t */\n\tglass = input<boolean>(false);\n\n\t/**\n\t * Dashed border style\n\t * @defaultValue false\n\t */\n\tdash = input<boolean>(false);\n\n\t/**\n\t * Full-width card\n\t * @defaultValue false\n\t */\n\tblock = input<boolean>(false);\n\n\t/**\n\t * @internal\n\t * Computed class string for the card container\n\t */\n\tcomponentClass = computed(() =>\n\t\tcn(\n\t\t\tcardComponent({\n\t\t\t\tsize: this.size(),\n\t\t\t}),\n\t\t\t{\n\t\t\t\t'w-full': this.block(),\n\t\t\t\t'card-side': this.imageOrientation() === 'horizontal' && this.image(),\n\t\t\t\t'image-full': this.imageAsBackground(),\n\t\t\t\t'shadow-main': this.shadow(),\n\t\t\t\t'border-neutral border': this.border(),\n\t\t\t\t'card-dash': this.dash(),\n\t\t\t\t'bg-base-200': !this.glass(),\n\t\t\t\tglass: this.glass(),\n\t\t\t},\n\t\t),\n\t);\n}\n","@let componentClassVar = this.componentClass();\n@let imageVar = this.image();\n@let imageAltVar = this.imageAlt();\n@let imageAlignmentVar = this.imageAlignment();\n<section [class]=\"componentClassVar\">\n\t@if (imageVar && imageAlignmentVar === 'start') {\n\t\t<figure>\n\t\t\t<img [src]=\"imageVar\" [alt]=\"imageAltVar\" />\n\t\t</figure>\n\t}\n\t<div [class]=\"bodyClass()\">\n\t\t<ng-content></ng-content>\n\t</div>\n\t@if (imageVar && imageAlignmentVar === 'end') {\n\t\t<figure>\n\t\t\t<img [src]=\"imageVar\" [alt]=\"imageAltVar\" />\n\t\t</figure>\n\t}\n</section>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;AAOA;;;;;;;;;;;;;;;;;;AAkBG;MAOU,oBAAoB,CAAA;AAChC;;;AAGG;AACH,IAAA,SAAS,GAAG,KAAK,CAA2B,MAAM,CAAC;AAEnD;;;AAGG;AACH,IAAA,cAAc,GAAG,QAAQ,CAAC,MAAK;QAC9B,OAAO,EAAE,CAAC,oCAAoC,EAAE;AAC/C,YAAA,eAAe,EAAE,IAAI,CAAC,SAAS,EAAE,KAAK,MAAM;AAC5C,YAAA,aAAa,EAAE,IAAI,CAAC,SAAS,EA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BAAA,EAAA,IAAA,EAAA,EAAA,KAAA,EAAA,EAAA,iBAAA,EAAA,OAAA,EAAA,UAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,SAAA,EAAA,CAAC,EAAE,OAAO,EAAE,iBAAiB,EAAE,UAAU,EAAE,CAAC,IAAmB,KAAK,IAAI,CAAC,WAAW,EAAE,IAAI,EAAE,CAAC,aAAa,CAAC,EAAE,CAAC,EAI3E,OAAA,EAAA,CAAA,EAAA,YAAA,EAAA,UAAA,EAAA,SAAA,EAAA,oBAAoB,EC9EnE,WAAA,EAAA,IAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAAA,mkBAmBA,2CDqDW,YAAY,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;2FAKV,aAAa,EAAA,UAAA,EAAA,CAAA;kBAPzB,SAAS;AACC,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,SAAS,EACV,OAAA,EAAA,CAAC,YAAY,CAAC,EAEZ,SAAA,EAAA,CAAC,EAAE,OAAO,EAAE,iBAAiB,EAAE,UAAU,EAAE,CAAC,IAAmB,KAAK,IAAI,CAAC,WAAW,EAAE,IAAI,EAAE,CAAA,aAAA,CAAe,EAAE,CAAC,EACxG,eAAA,EAAA,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,mkBAAA,EAAA;;;AE3EhD;;AAEG;;;;"}
|
|
@@ -1,29 +1,22 @@
|
|
|
1
1
|
import { injectFlexRenderContext } from '@tanstack/angular-table';
|
|
2
2
|
export * from '@tanstack/angular-table';
|
|
3
|
-
import { CommonModule } from '@angular/common';
|
|
4
3
|
import * as i0 from '@angular/core';
|
|
5
|
-
import {
|
|
4
|
+
import { signal, Injectable, inject, input, output, computed, ChangeDetectionStrategy, Component, effect } from '@angular/core';
|
|
5
|
+
import { matMoreVert, matKeyboardArrowDown, matSwapVert, matArrowUpward, matInfo } from '@sixbell-telco/sdk/components/icon/material/baseline';
|
|
6
|
+
import { TableActionsComponent, resolveTableSize, getTableHierarchyTypographyClasses, getTableSizeTokens } from '@sixbell-telco/sdk/components/table';
|
|
7
|
+
import { CommonModule } from '@angular/common';
|
|
6
8
|
import { ButtonComponent } from '@sixbell-telco/sdk/components/button';
|
|
7
9
|
import { IconComponent } from '@sixbell-telco/sdk/components/icon';
|
|
8
|
-
import { matKeyboardArrowDown, matSwapVert, matArrowUpward, matInfo } from '@sixbell-telco/sdk/components/icon/material/baseline';
|
|
9
10
|
import { CheckboxComponent } from '@sixbell-telco/sdk/components/forms/checkbox';
|
|
10
|
-
import {
|
|
11
|
+
import { TextDirective } from '@sixbell-telco/sdk/directives/text';
|
|
12
|
+
import { heroDocumentText } from '@ng-icons/heroicons/outline';
|
|
13
|
+
import { matSearchOff } from '@ng-icons/material-icons/baseline';
|
|
11
14
|
import { SelectComponent } from '@sixbell-telco/sdk/components/forms/select';
|
|
12
15
|
import { PaginatorComponent } from '@sixbell-telco/sdk/components/paginator';
|
|
13
|
-
import { TypographyDirective } from '@sixbell-telco/sdk/directives/typography';
|
|
14
16
|
import { cn } from '@sixbell-telco/sdk/utils/cn';
|
|
15
17
|
import { TranslateService, TranslatePipe } from '@sixbell-telco/sdk/utils/translation';
|
|
16
18
|
import { cva } from 'class-variance-authority';
|
|
17
19
|
|
|
18
|
-
class DataTableEmptyActionsComponent {
|
|
19
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: DataTableEmptyActionsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
20
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.0", type: DataTableEmptyActionsComponent, isStandalone: true, selector: "st-data-table-empty-actions", ngImport: i0, template: "<ng-content></ng-content>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
21
|
-
}
|
|
22
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: DataTableEmptyActionsComponent, decorators: [{
|
|
23
|
-
type: Component,
|
|
24
|
-
args: [{ selector: 'st-data-table-empty-actions', standalone: true, imports: [CommonModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-content></ng-content>\n" }]
|
|
25
|
-
}] });
|
|
26
|
-
|
|
27
20
|
/**
|
|
28
21
|
* Context service to share data table configuration with sub-components
|
|
29
22
|
* This allows sub-components to automatically sync their sizes with the parent data table
|
|
@@ -46,6 +39,123 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImpor
|
|
|
46
39
|
type: Injectable
|
|
47
40
|
}] });
|
|
48
41
|
|
|
42
|
+
/**
|
|
43
|
+
* Data-table actions component that auto-syncs with the parent data-table size
|
|
44
|
+
* and provides row context from TanStack Table.
|
|
45
|
+
*
|
|
46
|
+
* @remarks
|
|
47
|
+
* This component wraps `st-table-actions` for use within TanStack-based data tables.
|
|
48
|
+
* It injects the flex render context to access the row data and the data table context
|
|
49
|
+
* to automatically synchronize the action button sizes with the table size.
|
|
50
|
+
*
|
|
51
|
+
* @example
|
|
52
|
+
* ```typescript
|
|
53
|
+
* // In column definitions:
|
|
54
|
+
* {
|
|
55
|
+
* id: 'actions',
|
|
56
|
+
* header: 'Actions',
|
|
57
|
+
* enableSorting: false,
|
|
58
|
+
* cell: () => flexRenderComponent(DataTableActionsComponent, {
|
|
59
|
+
* inputs: { actions: this.userActions },
|
|
60
|
+
* outputs: { actionTriggered: (event) => this.handleAction(event.action, event.row) },
|
|
61
|
+
* }),
|
|
62
|
+
* }
|
|
63
|
+
* ```
|
|
64
|
+
*/
|
|
65
|
+
class DataTableActionsComponent {
|
|
66
|
+
/**
|
|
67
|
+
* TanStack Table context injected by flexRender
|
|
68
|
+
*/
|
|
69
|
+
context = injectFlexRenderContext();
|
|
70
|
+
/**
|
|
71
|
+
* Data table context for size synchronization
|
|
72
|
+
*/
|
|
73
|
+
dataTableContext = inject(DataTableContextService);
|
|
74
|
+
/**
|
|
75
|
+
* Array of action configurations.
|
|
76
|
+
*/
|
|
77
|
+
actions = input([]);
|
|
78
|
+
/**
|
|
79
|
+
* Rendering mode for the actions.
|
|
80
|
+
* @defaultValue 'inline'
|
|
81
|
+
*/
|
|
82
|
+
mode = input('inline');
|
|
83
|
+
/**
|
|
84
|
+
* Icon for the dropdown trigger button.
|
|
85
|
+
* @defaultValue matMoreVert (Material vertical dots icon)
|
|
86
|
+
*/
|
|
87
|
+
triggerIcon = input(matMoreVert);
|
|
88
|
+
/**
|
|
89
|
+
* Emitted when an action is triggered. Includes both the action config and the row data.
|
|
90
|
+
*/
|
|
91
|
+
actionTriggered = output();
|
|
92
|
+
/**
|
|
93
|
+
* @internal
|
|
94
|
+
* Computed action size synchronized with the parent data-table size.
|
|
95
|
+
*/
|
|
96
|
+
actionsSize = computed(() => {
|
|
97
|
+
const tableSize = this.dataTableContext.size();
|
|
98
|
+
switch (tableSize) {
|
|
99
|
+
case 'xs':
|
|
100
|
+
return 'xs';
|
|
101
|
+
case 'sm':
|
|
102
|
+
return 'sm';
|
|
103
|
+
case 'md':
|
|
104
|
+
return 'md';
|
|
105
|
+
case 'lg':
|
|
106
|
+
return 'lg';
|
|
107
|
+
case 'xl':
|
|
108
|
+
return 'xl';
|
|
109
|
+
default:
|
|
110
|
+
return 'md';
|
|
111
|
+
}
|
|
112
|
+
});
|
|
113
|
+
/**
|
|
114
|
+
* @internal
|
|
115
|
+
* Handles action click from the inner st-table-actions and emits with row context.
|
|
116
|
+
*/
|
|
117
|
+
onActionClick(action) {
|
|
118
|
+
this.actionTriggered.emit({ action, row: this.context.row.original });
|
|
119
|
+
}
|
|
120
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: DataTableActionsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
121
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "19.2.0", type: DataTableActionsComponent, isStandalone: true, selector: "st-data-table-actions", inputs: { actions: { classPropertyName: "actions", publicName: "actions", isSignal: true, isRequired: false, transformFunction: null }, mode: { classPropertyName: "mode", publicName: "mode", isSignal: true, isRequired: false, transformFunction: null }, triggerIcon: { classPropertyName: "triggerIcon", publicName: "triggerIcon", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { actionTriggered: "actionTriggered" }, ngImport: i0, template: `
|
|
122
|
+
<st-table-actions
|
|
123
|
+
[actions]="actions()"
|
|
124
|
+
[mode]="mode()"
|
|
125
|
+
[size]="actionsSize()"
|
|
126
|
+
[triggerIcon]="triggerIcon()"
|
|
127
|
+
(actionTriggered)="onActionClick($event)"
|
|
128
|
+
/>
|
|
129
|
+
`, isInline: true, dependencies: [{ kind: "component", type: TableActionsComponent, selector: "st-table-actions", inputs: ["actions", "mode", "size", "triggerIcon"], outputs: ["actionTriggered"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
130
|
+
}
|
|
131
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: DataTableActionsComponent, decorators: [{
|
|
132
|
+
type: Component,
|
|
133
|
+
args: [{
|
|
134
|
+
standalone: true,
|
|
135
|
+
selector: 'st-data-table-actions',
|
|
136
|
+
imports: [TableActionsComponent],
|
|
137
|
+
template: `
|
|
138
|
+
<st-table-actions
|
|
139
|
+
[actions]="actions()"
|
|
140
|
+
[mode]="mode()"
|
|
141
|
+
[size]="actionsSize()"
|
|
142
|
+
[triggerIcon]="triggerIcon()"
|
|
143
|
+
(actionTriggered)="onActionClick($event)"
|
|
144
|
+
/>
|
|
145
|
+
`,
|
|
146
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
147
|
+
}]
|
|
148
|
+
}] });
|
|
149
|
+
|
|
150
|
+
class DataTableEmptyActionsComponent {
|
|
151
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: DataTableEmptyActionsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
152
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.0", type: DataTableEmptyActionsComponent, isStandalone: true, selector: "st-data-table-empty-actions", ngImport: i0, template: "<ng-content></ng-content>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
153
|
+
}
|
|
154
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: DataTableEmptyActionsComponent, decorators: [{
|
|
155
|
+
type: Component,
|
|
156
|
+
args: [{ selector: 'st-data-table-empty-actions', standalone: true, imports: [CommonModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-content></ng-content>\n" }]
|
|
157
|
+
}] });
|
|
158
|
+
|
|
49
159
|
/**
|
|
50
160
|
* Expandable cell component that shows row data and expand/collapse toggle
|
|
51
161
|
*/
|
|
@@ -646,9 +756,9 @@ class DataTableSortableHeaderComponent {
|
|
|
646
756
|
case 'md':
|
|
647
757
|
return 'sm';
|
|
648
758
|
case 'lg':
|
|
649
|
-
return 'sm';
|
|
650
|
-
case 'xl':
|
|
651
759
|
return 'md';
|
|
760
|
+
case 'xl':
|
|
761
|
+
return 'lg';
|
|
652
762
|
default:
|
|
653
763
|
return 'xs';
|
|
654
764
|
}
|
|
@@ -673,6 +783,22 @@ class DataTableSortableHeaderComponent {
|
|
|
673
783
|
return 'xs';
|
|
674
784
|
}
|
|
675
785
|
});
|
|
786
|
+
labelPreset = computed(() => {
|
|
787
|
+
switch (this.dataTableContext.size()) {
|
|
788
|
+
case 'xs':
|
|
789
|
+
return '9';
|
|
790
|
+
case 'sm':
|
|
791
|
+
return '8';
|
|
792
|
+
case 'md':
|
|
793
|
+
return '7';
|
|
794
|
+
case 'lg':
|
|
795
|
+
return '7';
|
|
796
|
+
case 'xl':
|
|
797
|
+
return '6';
|
|
798
|
+
default:
|
|
799
|
+
return '8';
|
|
800
|
+
}
|
|
801
|
+
});
|
|
676
802
|
/**
|
|
677
803
|
* @internal
|
|
678
804
|
* Computes the appropriate icon based on current sort state
|
|
@@ -703,7 +829,7 @@ class DataTableSortableHeaderComponent {
|
|
|
703
829
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: DataTableSortableHeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
704
830
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "19.2.0", type: DataTableSortableHeaderComponent, isStandalone: true, selector: "st-data-table-sortable-header", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: true, transformFunction: null }, sortState: { classPropertyName: "sortState", publicName: "sortState", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { sortToggle: "sortToggle" }, ngImport: i0, template: `
|
|
705
831
|
<div class="inline-flex items-center gap-1">
|
|
706
|
-
<span class="font-
|
|
832
|
+
<span [stText]="labelPreset()" class="font-heading font-semibold">{{ label() }}</span>
|
|
707
833
|
<st-button
|
|
708
834
|
variant="secondary"
|
|
709
835
|
[size]="buttonSize()"
|
|
@@ -722,17 +848,17 @@ class DataTableSortableHeaderComponent {
|
|
|
722
848
|
></st-icon>
|
|
723
849
|
</st-button>
|
|
724
850
|
</div>
|
|
725
|
-
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: IconComponent, selector: "st-icon", inputs: ["color", "size", "icon"] }, { kind: "component", type: ButtonComponent, selector: "st-button", inputs: ["variant", "ghost", "outline", "link", "soft", "dash", "wide", "circle", "square", "glass", "block", "loader", "size", "shadow", "focusable", "icon", "iconPosition", "type", "disabled", "stopPropagation"], outputs: ["clicked", "pointerDown", "keyDownEnter", "keyDownSpace", "triggered"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
851
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: IconComponent, selector: "st-icon", inputs: ["color", "size", "icon"] }, { kind: "component", type: ButtonComponent, selector: "st-button", inputs: ["variant", "ghost", "outline", "link", "soft", "dash", "wide", "circle", "square", "glass", "block", "loader", "size", "shadow", "focusable", "icon", "iconPosition", "type", "disabled", "stopPropagation"], outputs: ["clicked", "pointerDown", "keyDownEnter", "keyDownSpace", "triggered"] }, { kind: "directive", type: TextDirective, selector: "[stText]", inputs: ["stText", "stTextWeight", "stTextColor", "stTextOverflow", "stTextLineClamp", "stTextClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
726
852
|
}
|
|
727
853
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: DataTableSortableHeaderComponent, decorators: [{
|
|
728
854
|
type: Component,
|
|
729
855
|
args: [{
|
|
730
856
|
standalone: true,
|
|
731
857
|
selector: 'st-data-table-sortable-header',
|
|
732
|
-
imports: [CommonModule, IconComponent, ButtonComponent],
|
|
858
|
+
imports: [CommonModule, IconComponent, ButtonComponent, TextDirective],
|
|
733
859
|
template: `
|
|
734
860
|
<div class="inline-flex items-center gap-1">
|
|
735
|
-
<span class="font-
|
|
861
|
+
<span [stText]="labelPreset()" class="font-heading font-semibold">{{ label() }}</span>
|
|
736
862
|
<st-button
|
|
737
863
|
variant="secondary"
|
|
738
864
|
[size]="buttonSize()"
|
|
@@ -756,6 +882,36 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImpor
|
|
|
756
882
|
}]
|
|
757
883
|
}] });
|
|
758
884
|
|
|
885
|
+
const DATA_TABLE_FOOTER_LAYOUT_BY_SIZE = {
|
|
886
|
+
xs: {
|
|
887
|
+
wrapper: ['gap-2', 'pb-2'],
|
|
888
|
+
divider: ['px-3'],
|
|
889
|
+
content: ['gap-2', 'px-3', '@2xl:gap-2'],
|
|
890
|
+
},
|
|
891
|
+
sm: {
|
|
892
|
+
wrapper: ['gap-2', 'pb-2'],
|
|
893
|
+
divider: ['px-3'],
|
|
894
|
+
content: ['gap-2', 'px-3', '@2xl:gap-2'],
|
|
895
|
+
},
|
|
896
|
+
md: {
|
|
897
|
+
wrapper: ['gap-4', 'pb-3'],
|
|
898
|
+
divider: ['px-4'],
|
|
899
|
+
content: ['gap-4', 'px-4', '@2xl:gap-2'],
|
|
900
|
+
},
|
|
901
|
+
lg: {
|
|
902
|
+
wrapper: ['gap-4', 'pb-3'],
|
|
903
|
+
divider: ['px-4'],
|
|
904
|
+
content: ['gap-4', 'px-4', '@2xl:gap-2'],
|
|
905
|
+
},
|
|
906
|
+
xl: {
|
|
907
|
+
wrapper: ['gap-4', 'pb-3'],
|
|
908
|
+
divider: ['px-4'],
|
|
909
|
+
content: ['gap-4', 'px-4', '@2xl:gap-2'],
|
|
910
|
+
},
|
|
911
|
+
};
|
|
912
|
+
function getDataTableFooterLayoutTokens(size) {
|
|
913
|
+
return DATA_TABLE_FOOTER_LAYOUT_BY_SIZE[resolveTableSize(size)];
|
|
914
|
+
}
|
|
759
915
|
/**
|
|
760
916
|
* @internal
|
|
761
917
|
* Generates data table classes with size and height variants
|
|
@@ -764,10 +920,6 @@ const dataTableContent = cva([
|
|
|
764
920
|
'table',
|
|
765
921
|
'relative',
|
|
766
922
|
'text-pretty',
|
|
767
|
-
'[&_tbody]:font-body',
|
|
768
|
-
'[&_thead]:font-heading',
|
|
769
|
-
'[&_thead]:leading-normal',
|
|
770
|
-
'[&_tbody]:leading-tight',
|
|
771
923
|
'[&_th]:bg-neutral [&_th]:text-neutral-content',
|
|
772
924
|
'[&_th]:px-4',
|
|
773
925
|
'[&_td]:px-4',
|
|
@@ -777,11 +929,11 @@ const dataTableContent = cva([
|
|
|
777
929
|
], {
|
|
778
930
|
variants: {
|
|
779
931
|
size: {
|
|
780
|
-
xs: ['table-xs'],
|
|
781
|
-
sm: ['table-sm'],
|
|
782
|
-
md: ['table-md'],
|
|
783
|
-
lg: ['table-lg'],
|
|
784
|
-
xl: ['table-xl'],
|
|
932
|
+
xs: ['table-xs', ...getTableHierarchyTypographyClasses('xs')],
|
|
933
|
+
sm: ['table-sm', ...getTableHierarchyTypographyClasses('sm')],
|
|
934
|
+
md: ['table-md', ...getTableHierarchyTypographyClasses('md')],
|
|
935
|
+
lg: ['table-lg', ...getTableHierarchyTypographyClasses('lg')],
|
|
936
|
+
xl: ['table-xl', ...getTableHierarchyTypographyClasses('xl')],
|
|
785
937
|
},
|
|
786
938
|
},
|
|
787
939
|
defaultVariants: {
|
|
@@ -815,6 +967,7 @@ const dataTableContent = cva([
|
|
|
815
967
|
class DataTableContainerComponent {
|
|
816
968
|
translationService = inject(TranslateService);
|
|
817
969
|
dataTableContext = inject(DataTableContextService);
|
|
970
|
+
resolvedSize = computed(() => resolveTableSize(this.size()));
|
|
818
971
|
/**
|
|
819
972
|
* Empty state icon for no data state
|
|
820
973
|
* @defaultValue heroDocumentText
|
|
@@ -822,9 +975,9 @@ class DataTableContainerComponent {
|
|
|
822
975
|
noDataIcon = input(heroDocumentText);
|
|
823
976
|
/**
|
|
824
977
|
* Empty state icon for no results state
|
|
825
|
-
* @defaultValue
|
|
978
|
+
* @defaultValue matSearchOff
|
|
826
979
|
*/
|
|
827
|
-
noResultsIcon = input(
|
|
980
|
+
noResultsIcon = input(matSearchOff);
|
|
828
981
|
/**
|
|
829
982
|
* Table size variant
|
|
830
983
|
* @defaultValue 'sm'
|
|
@@ -833,7 +986,7 @@ class DataTableContainerComponent {
|
|
|
833
986
|
constructor() {
|
|
834
987
|
// Update context when size changes
|
|
835
988
|
effect(() => {
|
|
836
|
-
this.dataTableContext.setSize(this.
|
|
989
|
+
this.dataTableContext.setSize(this.resolvedSize());
|
|
837
990
|
});
|
|
838
991
|
}
|
|
839
992
|
/**
|
|
@@ -975,21 +1128,15 @@ class DataTableContainerComponent {
|
|
|
975
1128
|
* Computes typography variant for paginator text based on table size
|
|
976
1129
|
*/
|
|
977
1130
|
paginatorTextSize = computed(() => {
|
|
978
|
-
|
|
979
|
-
case 'xs':
|
|
980
|
-
return 'body-xxs';
|
|
981
|
-
case 'sm':
|
|
982
|
-
return 'body-xs';
|
|
983
|
-
case 'md':
|
|
984
|
-
return 'body-sm';
|
|
985
|
-
case 'lg':
|
|
986
|
-
return 'body';
|
|
987
|
-
case 'xl':
|
|
988
|
-
return 'body';
|
|
989
|
-
default:
|
|
990
|
-
return 'body-xs';
|
|
991
|
-
}
|
|
1131
|
+
return this.size() === 'sm' ? '8' : this.sizeTokens().footerPreset;
|
|
992
1132
|
});
|
|
1133
|
+
sizeTokens = computed(() => getTableSizeTokens(this.size()));
|
|
1134
|
+
footerLayoutTokens = computed(() => getDataTableFooterLayoutTokens(this.size()));
|
|
1135
|
+
footerSelectSize = computed(() => this.sizeTokens().selectSize);
|
|
1136
|
+
footerPaginatorSize = computed(() => this.sizeTokens().paginatorSize);
|
|
1137
|
+
footerWrapperClass = computed(() => cn('@container flex w-full flex-col overflow-x-auto', this.footerLayoutTokens().wrapper));
|
|
1138
|
+
footerDividerClass = computed(() => cn('divider divider-neutral my-0 h-[0.0625rem] before:h-[0.0625rem] after:h-[0.0625rem]', this.footerLayoutTokens().divider));
|
|
1139
|
+
footerContentClass = computed(() => cn('flex flex-col items-center @2xl:flex-row @2xl:justify-between @4xl:grid @4xl:grid-cols-[auto_1fr_auto] @4xl:items-center', this.footerLayoutTokens().content));
|
|
993
1140
|
/**
|
|
994
1141
|
* @internal
|
|
995
1142
|
* Computes table element classes based on current configuration
|
|
@@ -1005,18 +1152,22 @@ class DataTableContainerComponent {
|
|
|
1005
1152
|
* @internal
|
|
1006
1153
|
* Computes table container classes based on height input
|
|
1007
1154
|
*/
|
|
1008
|
-
tableContainerClass = computed(() => cn('w-full flex-grow'));
|
|
1155
|
+
tableContainerClass = computed(() => cn('rounded-t-box w-full flex-grow overflow-y-clip'));
|
|
1009
1156
|
/**
|
|
1010
1157
|
* @internal
|
|
1011
1158
|
* Computes outer container classes based on size
|
|
1012
1159
|
*/
|
|
1013
|
-
containerClass = computed(() => cn('rounded-box border-neutral @container flex flex-col gap-3 overflow-x-auto border border-solid'
|
|
1160
|
+
containerClass = computed(() => cn('rounded-box border-neutral @container flex min-w-0 flex-col gap-3 overflow-x-auto border border-solid', {
|
|
1161
|
+
'gap-3 pb-3': this.size() === 'xs' || this.size() === 'sm' || this.size() === 'md',
|
|
1162
|
+
'gap-4 pb-4': this.size() === 'lg',
|
|
1163
|
+
'gap-5 pb-5': this.size() === 'xl',
|
|
1164
|
+
}));
|
|
1014
1165
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: DataTableContainerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1015
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.0", type: DataTableContainerComponent, isStandalone: true, selector: "st-data-table", inputs: { noDataIcon: { classPropertyName: "noDataIcon", publicName: "noDataIcon", isSignal: true, isRequired: false, transformFunction: null }, noResultsIcon: { classPropertyName: "noResultsIcon", publicName: "noResultsIcon", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, pinRows: { classPropertyName: "pinRows", publicName: "pinRows", isSignal: true, isRequired: false, transformFunction: null }, pinColumns: { classPropertyName: "pinColumns", publicName: "pinColumns", isSignal: true, isRequired: false, transformFunction: null }, zebra: { classPropertyName: "zebra", publicName: "zebra", isSignal: true, isRequired: false, transformFunction: null }, paginatorType: { classPropertyName: "paginatorType", publicName: "paginatorType", isSignal: true, isRequired: false, transformFunction: null }, totalItems: { classPropertyName: "totalItems", publicName: "totalItems", isSignal: true, isRequired: false, transformFunction: null }, pagination: { classPropertyName: "pagination", publicName: "pagination", isSignal: true, isRequired: false, transformFunction: null }, maxSize: { classPropertyName: "maxSize", publicName: "maxSize", isSignal: true, isRequired: false, transformFunction: null }, hasActiveFiltersCallback: { classPropertyName: "hasActiveFiltersCallback", publicName: "hasActiveFiltersCallback", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { pageChanged: "pageChanged", pageSizeChanged: "pageSizeChanged" }, providers: [DataTableContextService], ngImport: i0, template: "<div [class]=\"containerClass()\">\n\t<!-- Table container -->\n\t<div [class]=\"tableContainerClass()\">\n\t\t<div class=\"w-full flex-grow overflow-x-auto\">\n\t\t\t@if (hasNoData()) {\n\t\t\t\t<!-- No data state -->\n\t\t\t\t<div class=\"flex flex-col items-center justify-center py-12 text-center\">\n\t\t\t\t\t<div class=\"text-base-content/40
|
|
1166
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.0", type: DataTableContainerComponent, isStandalone: true, selector: "st-data-table", inputs: { noDataIcon: { classPropertyName: "noDataIcon", publicName: "noDataIcon", isSignal: true, isRequired: false, transformFunction: null }, noResultsIcon: { classPropertyName: "noResultsIcon", publicName: "noResultsIcon", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, pinRows: { classPropertyName: "pinRows", publicName: "pinRows", isSignal: true, isRequired: false, transformFunction: null }, pinColumns: { classPropertyName: "pinColumns", publicName: "pinColumns", isSignal: true, isRequired: false, transformFunction: null }, zebra: { classPropertyName: "zebra", publicName: "zebra", isSignal: true, isRequired: false, transformFunction: null }, paginatorType: { classPropertyName: "paginatorType", publicName: "paginatorType", isSignal: true, isRequired: false, transformFunction: null }, totalItems: { classPropertyName: "totalItems", publicName: "totalItems", isSignal: true, isRequired: false, transformFunction: null }, pagination: { classPropertyName: "pagination", publicName: "pagination", isSignal: true, isRequired: false, transformFunction: null }, maxSize: { classPropertyName: "maxSize", publicName: "maxSize", isSignal: true, isRequired: false, transformFunction: null }, hasActiveFiltersCallback: { classPropertyName: "hasActiveFiltersCallback", publicName: "hasActiveFiltersCallback", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { pageChanged: "pageChanged", pageSizeChanged: "pageSizeChanged" }, providers: [DataTableContextService], ngImport: i0, template: "<div [class]=\"containerClass()\">\n\t<!-- Table container -->\n\t<div [class]=\"tableContainerClass()\">\n\t\t<div class=\"w-full flex-grow overflow-x-auto\">\n\t\t\t@if (hasNoData()) {\n\t\t\t\t<!-- No data state -->\n\t\t\t\t<div class=\"flex flex-col items-center justify-center gap-1.5 py-12 text-center\">\n\t\t\t\t\t<div class=\"text-base-content/40\">\n\t\t\t\t\t\t<st-icon [icon]=\"noDataIcon()\" size=\"lg\" color=\"base-content\" class=\"mx-auto opacity-40\"></st-icon>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"flex flex-col items-center justify-center gap-0.5\">\n\t\t\t\t\t\t<h3 stText=\"6\" class=\"text-base-content/60\">{{ 'sdk.dataTable.noData.title' | translate }}</h3>\n\t\t\t\t\t\t<p stText=\"8\" class=\"text-base-content/40\">{{ 'sdk.dataTable.noData.message' | translate }}</p>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t} @else if (hasNoResults()) {\n\t\t\t\t<!-- No results from filters state -->\n\t\t\t\t<div class=\"flex flex-col items-center justify-center gap-1.5 py-12 text-center\">\n\t\t\t\t\t<div class=\"text-base-content/40\">\n\t\t\t\t\t\t<st-icon [icon]=\"noResultsIcon()\" size=\"xl\" color=\"base-content\" class=\"mx-auto opacity-40\"></st-icon>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"flex flex-col items-center justify-center gap-0.5\">\n\t\t\t\t\t\t<h3 stText=\"6\" class=\"text-base-content/60\">{{ 'sdk.dataTable.noResults.title' | translate }}</h3>\n\t\t\t\t\t\t<p stText=\"8\" class=\"text-base-content/40\">{{ 'sdk.dataTable.noResults.message' | translate }}</p>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"mt-3\">\n\t\t\t\t\t\t<ng-content select=\"st-data-table-empty-actions\"></ng-content>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t} @else {\n\t\t\t\t<table [class]=\"tableClass()\">\n\t\t\t\t\t<ng-content></ng-content>\n\t\t\t\t</table>\n\t\t\t}\n\t\t</div>\n\t</div>\n\n\t<!-- Pagination from showcase -->\n\t<div [class]=\"footerWrapperClass()\">\n\t\t<!-- Divider -->\n\t\t<div [class]=\"footerDividerClass()\"></div>\n\t\t<!-- Paginator Container -->\n\t\t<div [class]=\"footerContentClass()\">\n\t\t\t<!-- Entries range text -->\n\t\t\t<div class=\"flex items-center justify-end\">\n\t\t\t\t<span [stText]=\"paginatorTextSize()\">{{ 'sdk.dataTable.entriesRange' | translate: { range: paginationRange(), total: totalItems() } }}</span>\n\t\t\t</div>\n\n\t\t\t<!-- Paginator -->\n\t\t\t<div class=\"flex justify-center\">\n\t\t\t\t<st-paginator\n\t\t\t\t\t[pages]=\"totalPages()\"\n\t\t\t\t\t[currentPage]=\"pagination().currentPage\"\n\t\t\t\t\t[size]=\"footerPaginatorSize()\"\n\t\t\t\t\t[maxSize]=\"maxSize()\"\n\t\t\t\t\ttype=\"default\"\n\t\t\t\t\t(pageChanged)=\"handlePageChange($event)\"\n\t\t\t\t></st-paginator>\n\t\t\t</div>\n\n\t\t\t<!-- Entries per page dropdown -->\n\t\t\t<div class=\"flex items-center justify-end\">\n\t\t\t\t<span class=\"sr-only\">{{ 'sdk.dataTable.entriesByPage' | translate }}</span>\n\t\t\t\t<st-select\n\t\t\t\t\t[options]=\"entriesPerPageOptions()\"\n\t\t\t\t\t[value]=\"pagination().itemsPerPage\"\n\t\t\t\t\tvalueKey=\"value\"\n\t\t\t\t\tdisplayKey=\"text\"\n\t\t\t\t\t[size]=\"footerSelectSize()\"\n\t\t\t\t\t(valueUpdated)=\"handlePageSizeChange($event)\"\n\t\t\t\t\tvariant=\"secondary\"\n\t\t\t\t\t[allowClear]=\"false\"\n\t\t\t\t></st-select>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: PaginatorComponent, selector: "st-paginator", inputs: ["paginatorId", "maxSize", "type", "pages", "size", "currentPage"], outputs: ["pageChanged", "currentPageChange"] }, { kind: "directive", type: TextDirective, selector: "[stText]", inputs: ["stText", "stTextWeight", "stTextColor", "stTextOverflow", "stTextLineClamp", "stTextClass"] }, { kind: "component", type: SelectComponent, selector: "st-select", inputs: ["variant", "size", "showOptional", "optionalText", "ghost", "name", "placeholder", "label", "value", "options", "displayKey", "valueKey", "allowClear", "parentForm", "formControlName", "disabled", "stopPropagation"], outputs: ["valueChange", "disabledChange", "blurred", "valueUpdated", "clicked", "keyDownEnter", "keyDownSpace", "triggered"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }, { kind: "component", type: IconComponent, selector: "st-icon", inputs: ["color", "size", "icon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1016
1167
|
}
|
|
1017
1168
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: DataTableContainerComponent, decorators: [{
|
|
1018
1169
|
type: Component,
|
|
1019
|
-
args: [{ selector: 'st-data-table', imports: [CommonModule, PaginatorComponent,
|
|
1170
|
+
args: [{ selector: 'st-data-table', imports: [CommonModule, PaginatorComponent, TextDirective, SelectComponent, TranslatePipe, IconComponent], changeDetection: ChangeDetectionStrategy.OnPush, providers: [DataTableContextService], template: "<div [class]=\"containerClass()\">\n\t<!-- Table container -->\n\t<div [class]=\"tableContainerClass()\">\n\t\t<div class=\"w-full flex-grow overflow-x-auto\">\n\t\t\t@if (hasNoData()) {\n\t\t\t\t<!-- No data state -->\n\t\t\t\t<div class=\"flex flex-col items-center justify-center gap-1.5 py-12 text-center\">\n\t\t\t\t\t<div class=\"text-base-content/40\">\n\t\t\t\t\t\t<st-icon [icon]=\"noDataIcon()\" size=\"lg\" color=\"base-content\" class=\"mx-auto opacity-40\"></st-icon>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"flex flex-col items-center justify-center gap-0.5\">\n\t\t\t\t\t\t<h3 stText=\"6\" class=\"text-base-content/60\">{{ 'sdk.dataTable.noData.title' | translate }}</h3>\n\t\t\t\t\t\t<p stText=\"8\" class=\"text-base-content/40\">{{ 'sdk.dataTable.noData.message' | translate }}</p>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t} @else if (hasNoResults()) {\n\t\t\t\t<!-- No results from filters state -->\n\t\t\t\t<div class=\"flex flex-col items-center justify-center gap-1.5 py-12 text-center\">\n\t\t\t\t\t<div class=\"text-base-content/40\">\n\t\t\t\t\t\t<st-icon [icon]=\"noResultsIcon()\" size=\"xl\" color=\"base-content\" class=\"mx-auto opacity-40\"></st-icon>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"flex flex-col items-center justify-center gap-0.5\">\n\t\t\t\t\t\t<h3 stText=\"6\" class=\"text-base-content/60\">{{ 'sdk.dataTable.noResults.title' | translate }}</h3>\n\t\t\t\t\t\t<p stText=\"8\" class=\"text-base-content/40\">{{ 'sdk.dataTable.noResults.message' | translate }}</p>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"mt-3\">\n\t\t\t\t\t\t<ng-content select=\"st-data-table-empty-actions\"></ng-content>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t} @else {\n\t\t\t\t<table [class]=\"tableClass()\">\n\t\t\t\t\t<ng-content></ng-content>\n\t\t\t\t</table>\n\t\t\t}\n\t\t</div>\n\t</div>\n\n\t<!-- Pagination from showcase -->\n\t<div [class]=\"footerWrapperClass()\">\n\t\t<!-- Divider -->\n\t\t<div [class]=\"footerDividerClass()\"></div>\n\t\t<!-- Paginator Container -->\n\t\t<div [class]=\"footerContentClass()\">\n\t\t\t<!-- Entries range text -->\n\t\t\t<div class=\"flex items-center justify-end\">\n\t\t\t\t<span [stText]=\"paginatorTextSize()\">{{ 'sdk.dataTable.entriesRange' | translate: { range: paginationRange(), total: totalItems() } }}</span>\n\t\t\t</div>\n\n\t\t\t<!-- Paginator -->\n\t\t\t<div class=\"flex justify-center\">\n\t\t\t\t<st-paginator\n\t\t\t\t\t[pages]=\"totalPages()\"\n\t\t\t\t\t[currentPage]=\"pagination().currentPage\"\n\t\t\t\t\t[size]=\"footerPaginatorSize()\"\n\t\t\t\t\t[maxSize]=\"maxSize()\"\n\t\t\t\t\ttype=\"default\"\n\t\t\t\t\t(pageChanged)=\"handlePageChange($event)\"\n\t\t\t\t></st-paginator>\n\t\t\t</div>\n\n\t\t\t<!-- Entries per page dropdown -->\n\t\t\t<div class=\"flex items-center justify-end\">\n\t\t\t\t<span class=\"sr-only\">{{ 'sdk.dataTable.entriesByPage' | translate }}</span>\n\t\t\t\t<st-select\n\t\t\t\t\t[options]=\"entriesPerPageOptions()\"\n\t\t\t\t\t[value]=\"pagination().itemsPerPage\"\n\t\t\t\t\tvalueKey=\"value\"\n\t\t\t\t\tdisplayKey=\"text\"\n\t\t\t\t\t[size]=\"footerSelectSize()\"\n\t\t\t\t\t(valueUpdated)=\"handlePageSizeChange($event)\"\n\t\t\t\t\tvariant=\"secondary\"\n\t\t\t\t\t[allowClear]=\"false\"\n\t\t\t\t></st-select>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n" }]
|
|
1020
1171
|
}], ctorParameters: () => [] });
|
|
1021
1172
|
|
|
1022
1173
|
class DataTableSubComponentToggleCellComponent {
|
|
@@ -1113,5 +1264,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImpor
|
|
|
1113
1264
|
* Generated bundle index. Do not edit.
|
|
1114
1265
|
*/
|
|
1115
1266
|
|
|
1116
|
-
export { DataTableContainerComponent, DataTableEmptyActionsComponent, DataTableExpandableCellComponent, DataTableExpandableHeaderCellComponent, DataTableHeadSelectionComponent, DataTableRowSelectionComponent, DataTableSortableHeaderComponent, DataTableSubComponentToggleCellComponent, DataTableSubToggleCellComponent, dataTableContent };
|
|
1267
|
+
export { DataTableActionsComponent, DataTableContainerComponent, DataTableEmptyActionsComponent, DataTableExpandableCellComponent, DataTableExpandableHeaderCellComponent, DataTableHeadSelectionComponent, DataTableRowSelectionComponent, DataTableSortableHeaderComponent, DataTableSubComponentToggleCellComponent, DataTableSubToggleCellComponent, dataTableContent };
|
|
1117
1268
|
//# sourceMappingURL=sixbell-telco-sdk-components-data-table.mjs.map
|