@sixbell-telco/sdk 3.2.1 → 3.3.1
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 +28 -1
- package/_index.css +17 -17
- package/components/file-upload/file-dropzone/file-dropzone.component.d.ts +7 -1
- package/components/paginator/components/pagination-item/pagination-item.component.d.ts +5 -9
- package/components/table/README.md +1 -0
- package/components/table/table-action/table-action.component.d.ts +7 -1
- package/fesm2022/sixbell-telco-sdk-components-data-table.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-data-table.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dropdown-menu-bar.mjs +0 -1
- package/fesm2022/sixbell-telco-sdk-components-dropdown-menu-bar.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dropdown.mjs +0 -1
- package/fesm2022/sixbell-telco-sdk-components-dropdown.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-file-upload.mjs +8 -3
- package/fesm2022/sixbell-telco-sdk-components-file-upload.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-paginator.mjs +20 -85
- package/fesm2022/sixbell-telco-sdk-components-paginator.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-table.mjs +10 -5
- package/fesm2022/sixbell-telco-sdk-components-table.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-utils-theme.mjs +16 -16
- package/fesm2022/sixbell-telco-sdk-utils-theme.mjs.map +1 -1
- package/package.json +5 -5
|
@@ -768,7 +768,6 @@ class DropdownItemCheckboxComponent {
|
|
|
768
768
|
*/
|
|
769
769
|
itemClass = () => cn('group', 'rounded-field', 'transition-colors', 'duration-200', {
|
|
770
770
|
'menu-disabled pointer-events-none opacity-50': this.disabled(),
|
|
771
|
-
'menu-active': this.checked(),
|
|
772
771
|
}, this.class());
|
|
773
772
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: DropdownItemCheckboxComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
774
773
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.25", type: DropdownItemCheckboxComponent, isStandalone: true, selector: "st-dropdown-item-checkbox", inputs: { checked: { classPropertyName: "checked", publicName: "checked", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, indicator: { classPropertyName: "indicator", publicName: "indicator", isSignal: true, isRequired: false, transformFunction: null }, showIndicator: { classPropertyName: "showIndicator", publicName: "showIndicator", isSignal: true, isRequired: false, transformFunction: null }, class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, closeOnSelect: { classPropertyName: "closeOnSelect", publicName: "closeOnSelect", isSignal: true, isRequired: false, transformFunction: null }, stopPropagation: { classPropertyName: "stopPropagation", publicName: "stopPropagation", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { checkedChanged: "checkedChanged", triggered: "triggered", clicked: "clicked", keyDownEnter: "keyDownEnter", keyDownSpace: "keyDownSpace" }, ngImport: i0, template: "<li\n\t[class]=\"itemClass()\"\n\t[attr.data-state]=\"dataState()\"\n\t(click)=\"handleClick($event)\"\n\t(keydown.enter)=\"handleKeyDownEnter($event)\"\n\t(keydown.space)=\"handleKeyDownSpace($event)\"\n\t[attr.tabindex]=\"disabled() ? -1 : 0\"\n\trole=\"menuitemcheckbox\"\n\t[attr.aria-checked]=\"checked()\"\n\t[attr.aria-disabled]=\"disabled()\"\n>\n\t<a class=\"flex items-center justify-between\">\n\t\t<span class=\"flex-1\">\n\t\t\t<ng-content></ng-content>\n\t\t</span>\n\t\t@if (showIndicator()) {\n\t\t\t<span\n\t\t\t\tclass=\"ml-auto text-xs transition-opacity duration-300 ease-in-out group-aria-[checked=false]:opacity-0 group-aria-[checked=true]:opacity-100\"\n\t\t\t>\n\t\t\t\t{{ indicator() }}\n\t\t\t</span>\n\t\t}\n\t</a>\n</li>\n" });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sixbell-telco-sdk-components-dropdown.mjs","sources":["../../../projects/sdk/components/dropdown/dropdown-trigger/dropdown-trigger.component.ts","../../../projects/sdk/components/dropdown/dropdown-trigger/dropdown-trigger.component.html","../../../projects/sdk/components/dropdown/dropdown-chevron/dropdown-chevron.component.ts","../../../projects/sdk/components/dropdown/dropdown-chevron/dropdown-chevron.component.html","../../../projects/sdk/components/dropdown/dropdown-content/dropdown-content.component.ts","../../../projects/sdk/components/dropdown/dropdown-content/dropdown-content.component.html","../../../projects/sdk/components/dropdown/dropdown-group/dropdown-group.component.ts","../../../projects/sdk/components/dropdown/dropdown-group/dropdown-group.component.html","../../../projects/sdk/components/dropdown/src/dropdown.component.ts","../../../projects/sdk/components/dropdown/src/dropdown.component.html","../../../projects/sdk/components/dropdown/dropdown-item-checkbox/dropdown-item-checkbox.component.ts","../../../projects/sdk/components/dropdown/dropdown-item-checkbox/dropdown-item-checkbox.component.html","../../../projects/sdk/components/dropdown/dropdown-item-radio/dropdown-item-radio.component.ts","../../../projects/sdk/components/dropdown/dropdown-item-radio/dropdown-item-radio.component.html","../../../projects/sdk/components/dropdown/dropdown-item/dropdown-item.component.ts","../../../projects/sdk/components/dropdown/dropdown-item/dropdown-item.component.html","../../../projects/sdk/components/dropdown/dropdown-label/dropdown-label.component.ts","../../../projects/sdk/components/dropdown/dropdown-label/dropdown-label.component.html","../../../projects/sdk/components/dropdown/dropdown-separator/dropdown-separator.component.ts","../../../projects/sdk/components/dropdown/dropdown-separator/dropdown-separator.component.html","../../../projects/sdk/components/dropdown/sixbell-telco-sdk-components-dropdown.ts"],"sourcesContent":["import { CdkConnectedOverlay, CdkOverlayOrigin, ConnectedOverlayPositionChange, ConnectedPosition } from '@angular/cdk/overlay';\nimport { NgTemplateOutlet } from '@angular/common';\nimport { Component, computed, inject, input, output, signal, TemplateRef } from '@angular/core';\nimport { ThemeDomService } from '@sixbell-telco/sdk/utils/theme';\n\n/** Animation states for the dropdown */\ntype DropdownAnimationState = 'closed' | 'opening' | 'open' | 'closing';\n\n/** Dropdown X position options for CDK overlay positioning */\nexport type DropdownXPosition = 'start' | 'center' | 'end';\n\n/** Dropdown Y position options for CDK overlay positioning */\nexport type DropdownYPosition = 'top' | 'bottom' | 'center';\n\n/** Dropdown fallback position configuration */\nexport interface DropdownFallbackPositions {\n\t/** Enable automatic fallback positions */\n\tenabled: boolean;\n\t/** Custom fallback positions - if not provided, default fallbacks will be used */\n\tpositions?: ConnectedPosition[];\n}\n\n/**\n * DropdownTrigger - Trigger element for opening dropdown content\n *\n * @remarks\n * This component acts as the trigger that opens/closes the dropdown content.\n * It can contain any content (buttons, avatars, text, icons, etc.).\n * Uses CdkConnectedOverlay for positioning and management.\n *\n * @example\n * ```html\n * <st-dropdown>\n * <st-dropdown-trigger>\n * <button class=\"btn btn-primary\">\n * Open Menu\n * <st-icon [icon]=\"chevronDown\"></st-icon>\n * </button>\n * </st-dropdown-trigger>\n * <st-dropdown-content>\n * <st-dropdown-item>Item 1</st-dropdown-item>\n * </st-dropdown-content>\n * </st-dropdown>\n * ```\n */\n@Component({\n\tselector: 'st-dropdown-trigger',\n\tstandalone: true,\n\timports: [CdkConnectedOverlay, CdkOverlayOrigin, NgTemplateOutlet],\n\ttemplateUrl: './dropdown-trigger.component.html',\n})\nexport class DropdownTriggerComponent {\n\tprotected readonly themeDomService = inject(ThemeDomService);\n\n\t/** Offset X in pixels */\n\toffsetX = input<number>(0);\n\n\t/** Offset Y in pixels */\n\toffsetY = input<number>(0);\n\n\t/** Origin X position */\n\toriginX = input<DropdownXPosition>('start');\n\n\t/** Origin Y position */\n\toriginY = input<DropdownYPosition>('bottom');\n\n\t/** Overlay X position */\n\toverlayX = input<DropdownXPosition>('start');\n\n\t/** Overlay Y position */\n\toverlayY = input<DropdownYPosition>('top');\n\n\t/** Fallback positions configuration */\n\tfallbacks = input<DropdownFallbackPositions>({ enabled: true });\n\n\t/** Event emitted when dropdown is opened */\n\topened = output<void>();\n\n\t/** Event emitted when dropdown is closed */\n\tclosed = output<void>();\n\n\t/**\n\t * Stop event propagation for activation events\n\t * @defaultValue false\n\t */\n\tstopPropagation = input<boolean>(false);\n\n\t/**\n\t * Tab index for the trigger wrapper\n\t * @defaultValue -1\n\t */\n\ttriggerTabIndex = input<number>(-1);\n\n\t/**\n\t * Event emitted on click\n\t */\n\tclicked = output<MouseEvent>();\n\n\t/**\n\t * Event emitted on pointer down\n\t */\n\tpointerDown = output<PointerEvent>();\n\n\t/**\n\t * Event emitted on Enter keydown\n\t */\n\tkeyDownEnter = output<KeyboardEvent>();\n\n\t/**\n\t * Event emitted on Space keydown\n\t */\n\tkeyDownSpace = output<KeyboardEvent>();\n\n\t/**\n\t * Event emitted on activation (click or keyboard)\n\t */\n\ttriggered = output<void>();\n\n\t/** Current open state */\n\tisOpen = signal(false);\n\n\t/** Internal state to control overlay visibility (keeps overlay open during close animation) */\n\toverlayOpen = signal(false);\n\n\t/** Current animation state */\n\tanimationState = signal<DropdownAnimationState>('closed');\n\n\t/** Current active position configuration */\n\tcurrentPosition = signal<ConnectedPosition | null>(null);\n\n\t/**\n\t * Computed animation direction based on current position\n\t * Returns the appropriate direction: 'top', 'bottom', 'left', or 'right'\n\t */\n\tanimationDirection = computed(() => {\n\t\tconst position = this.currentPosition();\n\t\tif (!position) return 'bottom'; // default\n\n\t\t// Determine direction based on overlay Y and X positions\n\t\t// overlayY indicates vertical position (top/bottom/center)\n\t\t// overlayX indicates horizontal position (start/end/center)\n\t\tconst overlayY = position.overlayY as string;\n\t\tconst overlayX = position.overlayX as string;\n\n\t\t// Priority: check Y first, then X\n\t\tif (overlayY === 'top') {\n\t\t\treturn 'top'; // Dropdown appears above\n\t\t}\n\n\t\tif (overlayY === 'bottom') {\n\t\t\treturn 'bottom'; // Dropdown appears below\n\t\t}\n\n\t\tif (overlayX === 'end') {\n\t\t\treturn 'left'; // Dropdown appears to the left (end aligns to left side of trigger)\n\t\t}\n\n\t\tif (overlayX === 'start') {\n\t\t\treturn 'right'; // Dropdown appears to the right (start aligns to right side of trigger)\n\t\t}\n\n\t\treturn 'bottom'; // default\n\t});\n\n\t/**\n\t * Static class mappings for different animation directions\n\t * Maps animation directions to complete Tailwind class names\n\t * All class names are static and detectable by Tailwind at build time\n\t */\n\tprivate readonly animationClassMap = {\n\t\tbottom: 'data-[state=opening]:animate-fade-in-up data-[state=open]:animate-fade-in-up data-[state=closing]:animate-fade-out-down',\n\t\ttop: 'data-[state=opening]:animate-fade-in-down data-[state=open]:animate-fade-in-down data-[state=closing]:animate-fade-out-up',\n\t\tleft: 'data-[state=opening]:animate-fade-in-left data-[state=open]:animate-fade-in-left data-[state=closing]:animate-fade-out-right',\n\t\tright: 'data-[state=opening]:animate-fade-in-right data-[state=open]:animate-fade-in-right data-[state=closing]:animate-fade-out-left',\n\t};\n\n\t/**\n\t * Computed class string for animations\n\t * Applies the correct animation based on position using static class names\n\t */\n\tanimationClasses = computed(() => {\n\t\tconst direction = this.animationDirection();\n\t\tconst baseClasses = this.animationClassMap[direction as keyof typeof this.animationClassMap];\n\t\tconst durationClasses =\n\t\t\t'data-[state=closing]:animate-duration-150 data-[state=opening]:animate-duration-150 data-[state=open]:animate-duration-150 data-[state=opening]:overflow-hidden data-[state=closing]:overflow-hidden';\n\t\treturn `${baseClasses} ${durationClasses}`;\n\t});\n\n\t/** Content template reference */\n\tcontentTemplate: TemplateRef<unknown> | null = null;\n\n\t/**\n\t * Computed positions array based on signal inputs\n\t */\n\tpositions = computed(() => {\n\t\t// Get current values and ensure they are strings\n\t\tconst originX = String(this.originX()) as DropdownXPosition;\n\t\tconst originY = String(this.originY()) as DropdownYPosition;\n\t\tconst overlayX = String(this.overlayX()) as DropdownXPosition;\n\t\tconst overlayY = String(this.overlayY()) as DropdownYPosition;\n\t\tconst offsetX = Number(this.offsetX());\n\t\tconst offsetY = Number(this.offsetY());\n\n\t\t// Primary position using direct signal values\n\t\tconst primary: ConnectedPosition = {\n\t\t\toriginX,\n\t\t\toriginY,\n\t\t\toverlayX,\n\t\t\toverlayY,\n\t\t\toffsetX,\n\t\t\toffsetY,\n\t\t};\n\n\t\t// If fallbacks are disabled, return only primary position\n\t\tconst fallbackConfig = this.fallbacks() ?? { enabled: true };\n\t\tif (!fallbackConfig.enabled) {\n\t\t\treturn [primary];\n\t\t}\n\n\t\t// Use custom fallback positions if provided\n\t\tif (fallbackConfig.positions && fallbackConfig.positions.length > 0) {\n\t\t\treturn [primary, ...fallbackConfig.positions];\n\t\t}\n\n\t\t// Generate default fallback positions\n\t\tconst fallbacks = this.generateDefaultFallbacks(primary);\n\t\treturn [primary, ...fallbacks];\n\t});\n\n\t/**\n\t * Generate default fallback positions based on the primary position\n\t * Provides comprehensive fallback coverage for all space constraints\n\t */\n\tprivate generateDefaultFallbacks(primary: ConnectedPosition): ConnectedPosition[] {\n\t\tconst fallbacks: ConnectedPosition[] = [];\n\n\t\tconst primaryOriginX = primary.originX as DropdownXPosition;\n\t\tconst primaryOriginY = primary.originY as DropdownYPosition;\n\t\tconst primaryOverlayX = primary.overlayX as DropdownXPosition;\n\t\tconst primaryOverlayY = primary.overlayY as DropdownYPosition;\n\n\t\t// Add basic axis flips\n\t\tthis.addAxisFlips(fallbacks, primary, primaryOriginX, primaryOriginY, primaryOverlayX, primaryOverlayY);\n\n\t\t// Add standard dropdown positions\n\t\tthis.addStandardPositions(fallbacks, primary);\n\n\t\t// Add center alignment fallbacks\n\t\tthis.addCenterFallbacks(fallbacks, primary, primaryOriginX, primaryOriginY, primaryOverlayX, primaryOverlayY);\n\n\t\treturn fallbacks;\n\t}\n\n\t/**\n\t * Helper to flip Y position\n\t */\n\tprivate getOppositeY(position: DropdownYPosition): DropdownYPosition {\n\t\tif (position === 'top') return 'bottom';\n\t\tif (position === 'bottom') return 'top';\n\t\treturn 'center';\n\t}\n\n\t/**\n\t * Helper to flip X position\n\t */\n\tprivate getOppositeX(position: DropdownXPosition): DropdownXPosition {\n\t\tif (position === 'start') return 'end';\n\t\tif (position === 'end') return 'start';\n\t\treturn 'center';\n\t}\n\n\t/**\n\t * Helper to create position variant\n\t */\n\tprivate createPosition(\n\t\tprimary: ConnectedPosition,\n\t\toriginX: DropdownXPosition,\n\t\toriginY: DropdownYPosition,\n\t\toverlayX: DropdownXPosition,\n\t\toverlayY: DropdownYPosition,\n\t): ConnectedPosition {\n\t\treturn {\n\t\t\t...primary,\n\t\t\toriginX,\n\t\t\toriginY,\n\t\t\toverlayX,\n\t\t\toverlayY,\n\t\t};\n\t}\n\n\t/**\n\t * Add axis flip fallbacks\n\t */\n\tprivate addAxisFlips(\n\t\tfallbacks: ConnectedPosition[],\n\t\tprimary: ConnectedPosition,\n\t\tprimaryOriginX: DropdownXPosition,\n\t\tprimaryOriginY: DropdownYPosition,\n\t\tprimaryOverlayX: DropdownXPosition,\n\t\tprimaryOverlayY: DropdownYPosition,\n\t): void {\n\t\t// Flip Y axis\n\t\tconst oppositeY = this.getOppositeY(primaryOriginY);\n\t\tconst oppositeOverlayY = this.getOppositeY(primaryOverlayY);\n\t\tfallbacks.push(this.createPosition(primary, primaryOriginX, oppositeY, primaryOverlayX, oppositeOverlayY));\n\n\t\t// Flip X axis\n\t\tconst oppositeX = this.getOppositeX(primaryOriginX);\n\t\tconst oppositeOverlayX = this.getOppositeX(primaryOverlayX);\n\t\tfallbacks.push(this.createPosition(primary, oppositeX, primaryOriginY, oppositeOverlayX, primaryOverlayY));\n\n\t\t// Flip both axes\n\t\tfallbacks.push(this.createPosition(primary, oppositeX, oppositeY, oppositeOverlayX, oppositeOverlayY));\n\t}\n\n\t/**\n\t * Add standard dropdown positions\n\t */\n\tprivate addStandardPositions(fallbacks: ConnectedPosition[], primary: ConnectedPosition): void {\n\t\tconst standardPositions = [\n\t\t\tthis.createPosition(primary, 'start', 'bottom', 'start', 'top'), // Classic dropdown\n\t\t\tthis.createPosition(primary, 'start', 'top', 'start', 'bottom'), // Dropup\n\t\t\tthis.createPosition(primary, 'end', 'top', 'start', 'top'), // Left side\n\t\t\tthis.createPosition(primary, 'start', 'top', 'end', 'top'), // Right side\n\t\t\tthis.createPosition(primary, 'center', 'bottom', 'center', 'top'), // Center dropdown\n\t\t\tthis.createPosition(primary, 'center', 'top', 'center', 'bottom'), // Center dropup\n\t\t];\n\n\t\tfor (const pos of standardPositions) {\n\t\t\tif (!this.isPositionDuplicate(pos, [primary, ...fallbacks])) {\n\t\t\t\tfallbacks.push(pos);\n\t\t\t}\n\t\t}\n\t}\n\n\t/**\n\t * Add center alignment fallbacks\n\t */\n\tprivate addCenterFallbacks(\n\t\tfallbacks: ConnectedPosition[],\n\t\tprimary: ConnectedPosition,\n\t\tprimaryOriginX: DropdownXPosition,\n\t\tprimaryOriginY: DropdownYPosition,\n\t\tprimaryOverlayX: DropdownXPosition,\n\t\tprimaryOverlayY: DropdownYPosition,\n\t): void {\n\t\t// Center horizontally\n\t\tif (primaryOriginX !== 'center' || primaryOverlayX !== 'center') {\n\t\t\tfallbacks.push(this.createPosition(primary, 'center', primaryOriginY, 'center', primaryOverlayY));\n\t\t}\n\n\t\t// Center vertically\n\t\tif (primaryOriginY !== 'center' || primaryOverlayY !== 'center') {\n\t\t\tfallbacks.push(this.createPosition(primary, primaryOriginX, 'center', primaryOverlayX, 'center'));\n\t\t}\n\n\t\t// Fully centered as last resort\n\t\tconst fullyCentered = this.createPosition(primary, 'center', 'center', 'center', 'center');\n\t\tif (!this.isPositionDuplicate(fullyCentered, [primary, ...fallbacks])) {\n\t\t\tfallbacks.push(fullyCentered);\n\t\t}\n\t}\n\n\t/**\n\t * Check if position is duplicate\n\t */\n\tprivate isPositionDuplicate(position: ConnectedPosition, existing: ConnectedPosition[]): boolean {\n\t\treturn existing.some(\n\t\t\t(pos) =>\n\t\t\t\tpos.originX === position.originX &&\n\t\t\t\tpos.originY === position.originY &&\n\t\t\t\tpos.overlayX === position.overlayX &&\n\t\t\t\tpos.overlayY === position.overlayY,\n\t\t);\n\t}\n\n\t/**\n\t * Set the content template to be displayed in the overlay\n\t */\n\tsetContentTemplate(template: TemplateRef<unknown>): void {\n\t\tthis.contentTemplate = template;\n\t}\n\n\t/**\n\t * Toggle the dropdown open/close state\n\t */\n\ttoggle(): void {\n\t\tif (this.isOpen()) {\n\t\t\tthis.close();\n\t\t\treturn;\n\t\t}\n\n\t\tthis.open();\n\t}\n\n\t/**\n\t * @internal\n\t * Handle click activation\n\t */\n\thandleClick(event: MouseEvent): void {\n\t\tif (this.stopPropagation()) {\n\t\t\tevent.stopPropagation();\n\t\t}\n\t\tthis.clicked.emit(event);\n\t\tthis.triggered.emit();\n\t\tthis.toggle();\n\t}\n\n\t/**\n\t * @internal\n\t * Handle pointer down activation\n\t */\n\thandlePointerDown(event: PointerEvent): void {\n\t\tif (this.stopPropagation()) {\n\t\t\tevent.stopPropagation();\n\t\t}\n\t\tthis.pointerDown.emit(event);\n\t}\n\n\t/**\n\t * @internal\n\t * Handle Enter key activation\n\t */\n\thandleKeyDownEnter(event: Event): void {\n\t\tif (event.target !== event.currentTarget) {\n\t\t\treturn;\n\t\t}\n\t\tif (this.stopPropagation()) {\n\t\t\tevent.stopPropagation();\n\t\t}\n\t\tthis.keyDownEnter.emit(event as KeyboardEvent);\n\t\tthis.triggered.emit();\n\t\tthis.toggle();\n\t}\n\n\t/**\n\t * @internal\n\t * Handle Space key activation\n\t */\n\thandleKeyDownSpace(event: Event): void {\n\t\tif (event.target !== event.currentTarget) {\n\t\t\treturn;\n\t\t}\n\t\tevent.preventDefault();\n\t\tif (this.stopPropagation()) {\n\t\t\tevent.stopPropagation();\n\t\t}\n\t\tthis.keyDownSpace.emit(event as KeyboardEvent);\n\t\tthis.triggered.emit();\n\t\tthis.toggle();\n\t}\n\n\t/**\n\t * Open the dropdown\n\t * Sets up overlay with animation and emits opened event\n\t */\n\topen(): void {\n\t\tif (this.isOpen() || !this.contentTemplate) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis.isOpen.set(true);\n\t\tthis.overlayOpen.set(true);\n\t\tthis.animationState.set('opening');\n\t\tthis.opened.emit();\n\t}\n\n\t/**\n\t * Close the dropdown\n\t * Triggers closing animation and emits closed event\n\t */\n\tclose(): void {\n\t\tif (!this.isOpen()) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis.animationState.set('closing');\n\t\tthis.closed.emit();\n\t}\n\n\t/**\n\t * Handle animation end events\n\t * Completes state transitions when animations finish\n\t */\n\tonAnimationEnd(event: AnimationEvent): void {\n\t\tconst currentState = this.animationState();\n\n\t\t// Opening animation complete\n\t\tif (currentState === 'opening' && (event.animationName.includes('fade-in') || event.animationName.includes('morph-in'))) {\n\t\t\tthis.animationState.set('open');\n\t\t\treturn;\n\t\t}\n\n\t\t// Closing animation complete\n\t\tif (currentState === 'closing' && event.animationName.includes('fade-out')) {\n\t\t\tthis.animationState.set('closed');\n\t\t\tthis.isOpen.set(false);\n\t\t\tthis.overlayOpen.set(false);\n\t\t\treturn;\n\t\t}\n\t}\n\n\t/**\n\t * Handle position changes from CDK overlay\n\t */\n\tonPositionChange(position: ConnectedOverlayPositionChange): void {\n\t\tif (position?.connectionPair) {\n\t\t\tthis.currentPosition.set(position.connectionPair);\n\t\t}\n\t}\n}\n","<div\n\tcdkOverlayOrigin\n\t#trigger=\"cdkOverlayOrigin\"\n\tclass=\"inline-flex cursor-pointer items-center\"\n\t(pointerdown)=\"handlePointerDown($event)\"\n\t(click)=\"handleClick($event)\"\n\t(keydown.enter)=\"handleKeyDownEnter($event)\"\n\t(keydown.space)=\"handleKeyDownSpace($event)\"\n\t(keydown.escape)=\"close()\"\n\t[attr.aria-expanded]=\"isOpen()\"\n\t[attr.aria-haspopup]=\"true\"\n\t[attr.tabindex]=\"triggerTabIndex()\"\n\trole=\"button\"\n>\n\t<ng-content></ng-content>\n</div>\n\n<ng-template\n\tcdkConnectedOverlay\n\t[cdkConnectedOverlayPositions]=\"positions()\"\n\t[cdkConnectedOverlayOrigin]=\"trigger\"\n\t[cdkConnectedOverlayOpen]=\"overlayOpen()\"\n\t[cdkConnectedOverlayHasBackdrop]=\"true\"\n\t[cdkConnectedOverlayBackdropClass]=\"'cdk-overlay-transparent-backdrop'\"\n\t[cdkConnectedOverlayDisableClose]=\"true\"\n\t(backdropClick)=\"close()\"\n\t(positionChange)=\"onPositionChange($event)\"\n>\n\t<div class=\"contents\" [attr.data-theme]=\"themeDomService.themeOf(trigger.elementRef.nativeElement)\">\n\t\t<div [class]=\"animationClasses()\" (animationend)=\"onAnimationEnd($event)\" [attr.data-state]=\"animationState()\">\n\t\t\t<ng-container *ngTemplateOutlet=\"contentTemplate\"></ng-container>\n\t\t</div>\n\t</div>\n</ng-template>\n","import { Component, computed, inject, input } from '@angular/core';\nimport { IconColorProps, IconComponent, IconSizeProps } from '@sixbell-telco/sdk/components/icon';\nimport { matKeyboardArrowDown } from '@sixbell-telco/sdk/components/icon/material/baseline';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { DropdownTriggerComponent } from '../dropdown-trigger/dropdown-trigger.component';\n\n/**\n * DropdownChevron - Chevron indicator for dropdown triggers\n * Automatically rotates based on dropdown state and positions itself correctly\n */\n@Component({\n\tselector: 'st-dropdown-chevron',\n\tstandalone: true,\n\timports: [IconComponent],\n\ttemplateUrl: './dropdown-chevron.component.html',\n\thost: { class: 'contents' },\n})\nexport class DropdownChevronComponent {\n\t/**\n\t * Optional: works only when this chevron is created in the trigger's view.\n\t * Projected usage (stories/showcase) cannot inject the trigger; rotation then\n\t * follows the trigger's [aria-expanded] via :host-context.\n\t */\n\tprivate readonly trigger = inject(DropdownTriggerComponent, { optional: true, skipSelf: true });\n\n\t/**\n\t * Custom icon to use instead of default arrow down\n\t */\n\ticon = input<string>(matKeyboardArrowDown);\n\n\t/**\n\t * Additional CSS classes\n\t */\n\tclass = input<string>('');\n\n\t/**\n\t * Size of the chevron using Icon component size types\n\t */\n\tsize = input<IconSizeProps>('md');\n\n\t/**\n\t * Color of the chevron using Icon component color types\n\t */\n\tcolor = input<IconColorProps>('inherit');\n\n\t/**\n\t * Position relative to content\n\t */\n\tposition = input<'left' | 'right'>('right');\n\n\t/**\n\t * Whether the chevron is open (rotated)\n\t * Derives from the parent trigger's isOpen signal\n\t */\n\tprivate readonly isOpen = computed(() => this.trigger?.isOpen() ?? false);\n\n\t/**\n\t * Computed classes for the chevron\n\t */\n\treadonly chevronClasses = computed(() => {\n\t\tconst marginClasses = {\n\t\t\tleft: 'mr-2',\n\t\t\tright: 'ml-2',\n\t\t};\n\n\t\treturn cn(\n\t\t\tmarginClasses[this.position()],\n\t\t\t'inline-flex size-[1.2em] items-center justify-center align-middle',\n\t\t\tthis.isOpen() && 'is-open',\n\t\t\tthis.class(),\n\t\t);\n\t});\n}\n","<span data-st-chevron [class]=\"chevronClasses()\">\n\t<st-icon [icon]=\"icon()\" [size]=\"size()\" [color]=\"color()\"></st-icon>\n</span>\n","import { Component, input, output, TemplateRef, viewChild } from '@angular/core';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\n\n/**\n * DropdownContent - Container for dropdown menu items\n *\n * @remarks\n * This component contains the dropdown menu items and provides them as a template\n * for the trigger component to display in the overlay.\n *\n * @example\n * ```html\n * <st-dropdown-content>\n * <st-dropdown-item>Menu Item 1</st-dropdown-item>\n * <st-dropdown-item>Menu Item 2</st-dropdown-item>\n * <div class=\"divider\"></div>\n * <st-dropdown-item>Menu Item 3</st-dropdown-item>\n * </st-dropdown-content>\n * ```\n */\n@Component({\n\tselector: 'st-dropdown-content',\n\tstandalone: true,\n\ttemplateUrl: './dropdown-content.component.html',\n\texportAs: 'dropdownContent',\n})\nexport class DropdownContentComponent {\n\tprivate readonly templateRef = viewChild.required<TemplateRef<unknown>>('contentTemplate');\n\n\tget template(): TemplateRef<unknown> {\n\t\treturn this.templateRef();\n\t}\n\n\t/** Custom CSS classes */\n\tclass = input<string>('');\n\n\t/** Size variant */\n\tsize = input<'xs' | 'sm' | 'md' | 'lg' | 'xl'>('md');\n\n\t/** Whether to apply shadow */\n\tshadow = input<boolean>(true);\n\n\t/** Event emitted when close is requested */\n\tcloseRequested = output<void>();\n\n\t/**\n\t * Computed CSS classes for the content\n\t */\n\tcontentClass = () =>\n\t\tcn(\n\t\t\t'menu',\n\t\t\t'bg-base-200',\n\t\t\t'rounded-box',\n\t\t\t'border',\n\t\t\t'border-neutral',\n\t\t\t'min-w-full',\n\t\t\t'max-h-72',\n\t\t\t'overflow-y-auto',\n\t\t\t'overscroll-contain',\n\t\t\t'flex-nowrap',\n\t\t\t{\n\t\t\t\t'menu-xs': this.size() === 'xs',\n\t\t\t\t'menu-sm': this.size() === 'sm',\n\t\t\t\t'menu-md': this.size() === 'md',\n\t\t\t\t'menu-lg': this.size() === 'lg',\n\t\t\t\t'menu-xl': this.size() === 'xl',\n\t\t\t\t'shadow-main': this.shadow(),\n\t\t\t},\n\t\t\tthis.class(),\n\t\t);\n\n\t/**\n\t * Request to close the dropdown\n\t * This will be handled by the parent dropdown component\n\t */\n\trequestClose(): void {\n\t\tthis.closeRequested.emit();\n\t}\n}\n","<ng-template #contentTemplate>\n\t<ul [class]=\"contentClass()\">\n\t\t<ng-content></ng-content>\n\t</ul>\n</ng-template>\n","import { Component } from '@angular/core';\n\n/**\n * DropdownGroup - Groups related dropdown items together\n * Provides semantic grouping for dropdown items without rendering a wrapper element\n */\n@Component({\n\tselector: 'st-dropdown-group',\n\tstandalone: true,\n\timports: [],\n\ttemplateUrl: './dropdown-group.component.html',\n\thost: {\n\t\tstyle: 'display: contents',\n\t},\n})\nexport class DropdownGroupComponent {}\n","<ng-content></ng-content>\n","import { Component, computed, contentChild, effect, model, output, signal } from '@angular/core';\nimport { DropdownContentComponent } from '../dropdown-content/dropdown-content.component';\nimport { DropdownTriggerComponent } from '../dropdown-trigger/dropdown-trigger.component';\n\n/**\n * Dropdown - Main container component for dropdown menus\n *\n * @remarks\n * This is the root container that provides a wrapper for trigger and content components.\n * The trigger and content components coordinate themselves through this parent component.\n *\n * @example\n * ```html\n * <st-dropdown>\n * <st-dropdown-trigger [showChevron]=\"true\">\n * <button class=\"btn btn-primary\">Open Menu</button>\n * </st-dropdown-trigger>\n * <st-dropdown-content>\n * <st-dropdown-item>Item 1</st-dropdown-item>\n * <st-dropdown-item>Item 2</st-dropdown-item>\n * </st-dropdown-content>\n * </st-dropdown>\n * ```\n *\n * @example\n * ```html\n * <!-- Listen to open/close events -->\n * <st-dropdown (opened)=\"onOpened()\" (closed)=\"onClosed()\">\n * ...\n * </st-dropdown>\n *\n * <!-- Programmatic control with model signal -->\n * <st-dropdown [(open)]=\"isDropdownOpen\">\n * ...\n * <button (click)=\"isDropdownOpen.set(true)\">Open</button>\n * <button (click)=\"isDropdownOpen.set(false)\">Close</button>\n * <div>Is open: {{ isDropdownOpen() }}</div>\n * </st-dropdown>\n * ```\n */\n@Component({\n\tselector: 'st-dropdown',\n\tstandalone: true,\n\ttemplateUrl: './dropdown.component.html',\n\texportAs: 'stDropdown',\n})\nexport class DropdownComponent {\n\t// Use contentChild() signal instead of @ContentChild decorator\n\ttrigger = contentChild(DropdownTriggerComponent);\n\tcontent = contentChild(DropdownContentComponent);\n\n\t/** Model signal for open/close state - allows two-way binding [(open)]=\"isDropdownOpen\" */\n\topen = model<boolean>(false);\n\n\t/** Event emitted when dropdown is opened - exposed from trigger */\n\topened = output<void>();\n\n\t/** Event emitted when dropdown is closed - exposed from trigger */\n\tclosed = output<void>();\n\n\tconstructor() {\n\t\t/**\n\t\t * Local state for managing subscription lifecycle\n\t\t * Scoped to constructor closure to persist across effect runs without triggering reactivity\n\t\t * Holds trigger/content identity references and subscription cleanup handlers\n\t\t */\n\t\ttype Unsub = (() => void) | { unsubscribe?: () => void };\n\t\tconst _prevState: {\n\t\t\ttrigger?: DropdownTriggerComponent | null;\n\t\t\tcontent?: DropdownContentComponent | null;\n\t\t\topenUnsub?: Unsub | undefined;\n\t\t\tclosedUnsub?: Unsub | undefined;\n\t\t} = { trigger: null, content: null };\n\n\t\t/**\n\t\t * One-time template wiring effect\n\t\t * Fires once when trigger and content become available\n\t\t * Sets up template injection and subscribes to trigger outputs exactly once\n\t\t */\n\t\teffect(() => {\n\t\t\tconst trigger = this.trigger();\n\t\t\tconst content = this.content();\n\n\t\t\tif (trigger && content && !_prevState.trigger) {\n\t\t\t\ttrigger.setContentTemplate(content.template);\n\t\t\t\t_prevState.trigger = trigger;\n\t\t\t\t_prevState.content = content;\n\n\t\t\t\tif (trigger.opened) {\n\t\t\t\t\t_prevState.openUnsub = trigger.opened.subscribe(() => {\n\t\t\t\t\t\tthis.open.set(true);\n\t\t\t\t\t\tthis.opened.emit();\n\t\t\t\t\t});\n\t\t\t\t}\n\n\t\t\t\tif (trigger.closed) {\n\t\t\t\t\t_prevState.closedUnsub = trigger.closed.subscribe(() => {\n\t\t\t\t\t\tthis.open.set(false);\n\t\t\t\t\t\tthis.closed.emit();\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\t/**\n\t\t * Model-to-trigger sync effect\n\t\t * Tracks last synced model value to detect external changes\n\t\t * Only syncs when model changes from what was previously synced\n\t\t * Prevents control loops when showcase updates model in response to trigger events\n\t\t */\n\t\tconst _lastSyncedModel = signal<boolean>(this.open());\n\n\t\teffect(() => {\n\t\t\tconst currentModel = this.open();\n\t\t\tconst lastSynced = _lastSyncedModel();\n\n\t\t\tif (currentModel === lastSynced) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tconst trigger = this.trigger();\n\t\t\tif (!trigger) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tconst triggerIsOpen = trigger.isOpen();\n\n\t\t\tif (currentModel && !triggerIsOpen) {\n\t\t\t\ttrigger.open();\n\t\t\t} else if (!currentModel && triggerIsOpen) {\n\t\t\t\ttrigger.close();\n\t\t\t}\n\n\t\t\t_lastSyncedModel.set(currentModel);\n\t\t});\n\t}\n\n\t/**\n\t * Get the current open state\n\t */\n\tisOpen = computed(() => this.open());\n}\n","<ng-content></ng-content>\n","import { Component, computed, inject, input, output } from '@angular/core';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { DropdownComponent } from '../src/dropdown.component';\n\n/**\n * DropdownItemCheckbox - Checkbox dropdown item\n * Provides checkbox functionality for dropdown selections\n */\n@Component({\n\tselector: 'st-dropdown-item-checkbox',\n\tstandalone: true,\n\timports: [],\n\ttemplateUrl: './dropdown-item-checkbox.component.html',\n})\nexport class DropdownItemCheckboxComponent {\n\tprivate readonly dropdown = inject(DropdownComponent, { optional: true });\n\n\t/**\n\t * Whether the checkbox is checked\n\t */\n\tchecked = input<boolean>(false);\n\n\t/**\n\t * Whether the menu item is disabled\n\t */\n\tdisabled = input<boolean>(false);\n\n\t/**\n\t * Custom indicator character or text\n\t */\n\tindicator = input<string>('✓');\n\n\t/**\n\t * Whether to show the indicator\n\t */\n\tshowIndicator = input<boolean>(true);\n\n\t/**\n\t * Custom CSS classes\n\t */\n\tclass = input<string>('');\n\n\t/**\n\t * Whether to close the dropdown when the item is selected\n\t * @defaultValue true\n\t */\n\tcloseOnSelect = input<boolean>(false);\n\n\t/**\n\t * Emitted when the checkbox state changes\n\t */\n\tcheckedChanged = output<boolean>();\n\n\t/**\n\t * Emitted when the menu item is triggered/clicked\n\t */\n\ttriggered = output<void>();\n\n\t/**\n\t * Stop event propagation for activation events\n\t * @defaultValue false\n\t */\n\tstopPropagation = input<boolean>(false);\n\n\t/**\n\t * Event emitted on click\n\t */\n\tclicked = output<MouseEvent>();\n\n\t/**\n\t * Event emitted on Enter keydown\n\t */\n\tkeyDownEnter = output<KeyboardEvent>();\n\n\t/**\n\t * Event emitted on Space keydown\n\t */\n\tkeyDownSpace = output<KeyboardEvent>();\n\n\t/**\n\t * Computed data state for ARIA\n\t */\n\tdataState = computed(() => {\n\t\treturn this.checked() ? 'checked' : 'unchecked';\n\t});\n\n\t/**\n\t * Handle item click - toggle checkbox state\n\t */\n\tonItemClick(): void {\n\t\tif (!this.disabled()) {\n\t\t\tconst newChecked = !this.checked();\n\t\t\tthis.checkedChanged.emit(newChecked);\n\t\t\tthis.triggered.emit();\n\t\t\tif (this.closeOnSelect()) {\n\t\t\t\tthis.dropdown?.trigger()?.close();\n\t\t\t}\n\t\t}\n\t}\n\n\t/**\n\t * @internal\n\t * Handle click activation\n\t */\n\thandleClick(event: MouseEvent): void {\n\t\tif (this.disabled()) return;\n\t\tif (this.stopPropagation()) {\n\t\t\tevent.stopPropagation();\n\t\t}\n\t\tthis.clicked.emit(event);\n\t\tthis.onItemClick();\n\t}\n\n\t/**\n\t * @internal\n\t * Handle Enter key activation\n\t */\n\thandleKeyDownEnter(event: Event): void {\n\t\tif (this.disabled()) return;\n\t\tif (this.stopPropagation()) {\n\t\t\tevent.stopPropagation();\n\t\t}\n\t\tthis.keyDownEnter.emit(event as KeyboardEvent);\n\t\tthis.onItemClick();\n\t}\n\n\t/**\n\t * @internal\n\t * Handle Space key activation\n\t */\n\thandleKeyDownSpace(event: Event): void {\n\t\tif (this.disabled()) return;\n\t\tevent.preventDefault();\n\t\tif (this.stopPropagation()) {\n\t\t\tevent.stopPropagation();\n\t\t}\n\t\tthis.keyDownSpace.emit(event as KeyboardEvent);\n\t\tthis.onItemClick();\n\t}\n\n\t/**\n\t * Computed CSS classes for the menu item\n\t */\n\titemClass = () =>\n\t\tcn(\n\t\t\t'group',\n\t\t\t'rounded-field',\n\t\t\t'transition-colors',\n\t\t\t'duration-200',\n\t\t\t{\n\t\t\t\t'menu-disabled pointer-events-none opacity-50': this.disabled(),\n\t\t\t\t'menu-active': this.checked(),\n\t\t\t},\n\t\t\tthis.class(),\n\t\t);\n}\n","<li\n\t[class]=\"itemClass()\"\n\t[attr.data-state]=\"dataState()\"\n\t(click)=\"handleClick($event)\"\n\t(keydown.enter)=\"handleKeyDownEnter($event)\"\n\t(keydown.space)=\"handleKeyDownSpace($event)\"\n\t[attr.tabindex]=\"disabled() ? -1 : 0\"\n\trole=\"menuitemcheckbox\"\n\t[attr.aria-checked]=\"checked()\"\n\t[attr.aria-disabled]=\"disabled()\"\n>\n\t<a class=\"flex items-center justify-between\">\n\t\t<span class=\"flex-1\">\n\t\t\t<ng-content></ng-content>\n\t\t</span>\n\t\t@if (showIndicator()) {\n\t\t\t<span\n\t\t\t\tclass=\"ml-auto text-xs transition-opacity duration-300 ease-in-out group-aria-[checked=false]:opacity-0 group-aria-[checked=true]:opacity-100\"\n\t\t\t>\n\t\t\t\t{{ indicator() }}\n\t\t\t</span>\n\t\t}\n\t</a>\n</li>\n","import { Component, computed, inject, input, output } from '@angular/core';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { DropdownComponent } from '../src/dropdown.component';\n\n/**\n * DropdownItemRadio - Radio dropdown item\n * Provides radio button functionality for dropdown selections\n */\n@Component({\n\tselector: 'st-dropdown-item-radio',\n\tstandalone: true,\n\timports: [],\n\ttemplateUrl: './dropdown-item-radio.component.html',\n})\nexport class DropdownItemRadioComponent {\n\tprivate readonly dropdown = inject(DropdownComponent, { optional: true });\n\n\t/**\n\t * Whether the radio is checked\n\t */\n\tchecked = input<boolean>(false);\n\n\t/**\n\t * The value of this radio item\n\t */\n\tvalue = input.required<string>();\n\n\t/**\n\t * Whether the menu item is disabled\n\t */\n\tdisabled = input<boolean>(false);\n\n\t/**\n\t * Custom indicator character or text\n\t */\n\tindicator = input<string>('●');\n\n\t/**\n\t * Whether to show the indicator\n\t */\n\tshowIndicator = input<boolean>(true);\n\n\t/**\n\t * Custom CSS classes\n\t */\n\tclass = input<string>('');\n\n\t/**\n\t * Whether to close the dropdown when the item is selected\n\t * @defaultValue true\n\t */\n\tcloseOnSelect = input<boolean>(true);\n\n\t/**\n\t * Emitted when the radio state changes\n\t */\n\tcheckedChanged = output<string>();\n\n\t/**\n\t * Emitted when the menu item is triggered/clicked\n\t */\n\ttriggered = output<void>();\n\n\t/**\n\t * Stop event propagation for activation events\n\t * @defaultValue false\n\t */\n\tstopPropagation = input<boolean>(false);\n\n\t/**\n\t * Event emitted on click\n\t */\n\tclicked = output<MouseEvent>();\n\n\t/**\n\t * Event emitted on Enter keydown\n\t */\n\tkeyDownEnter = output<KeyboardEvent>();\n\n\t/**\n\t * Event emitted on Space keydown\n\t */\n\tkeyDownSpace = output<KeyboardEvent>();\n\n\t/**\n\t * Computed data state for ARIA\n\t */\n\tdataState = computed(() => {\n\t\treturn this.checked() ? 'checked' : 'unchecked';\n\t});\n\n\t/**\n\t * Handle item click - select this radio option\n\t */\n\tonItemClick(): void {\n\t\tif (!this.disabled() && !this.checked()) {\n\t\t\tthis.checkedChanged.emit(this.value());\n\t\t\tthis.triggered.emit();\n\t\t\tif (this.closeOnSelect()) {\n\t\t\t\tthis.dropdown?.trigger()?.close();\n\t\t\t}\n\t\t}\n\t}\n\n\t/**\n\t * @internal\n\t * Handle click activation\n\t */\n\thandleClick(event: MouseEvent): void {\n\t\tif (this.disabled()) return;\n\t\tif (this.stopPropagation()) {\n\t\t\tevent.stopPropagation();\n\t\t}\n\t\tthis.clicked.emit(event);\n\t\tthis.onItemClick();\n\t}\n\n\t/**\n\t * @internal\n\t * Handle Enter key activation\n\t */\n\thandleKeyDownEnter(event: Event): void {\n\t\tif (this.disabled()) return;\n\t\tif (this.stopPropagation()) {\n\t\t\tevent.stopPropagation();\n\t\t}\n\t\tthis.keyDownEnter.emit(event as KeyboardEvent);\n\t\tthis.onItemClick();\n\t}\n\n\t/**\n\t * @internal\n\t * Handle Space key activation\n\t */\n\thandleKeyDownSpace(event: Event): void {\n\t\tif (this.disabled()) return;\n\t\tevent.preventDefault();\n\t\tif (this.stopPropagation()) {\n\t\t\tevent.stopPropagation();\n\t\t}\n\t\tthis.keyDownSpace.emit(event as KeyboardEvent);\n\t\tthis.onItemClick();\n\t}\n\n\t/**\n\t * Computed CSS classes for the menu item\n\t */\n\titemClass = () =>\n\t\tcn(\n\t\t\t'group',\n\t\t\t'rounded-field',\n\t\t\t'transition-colors',\n\t\t\t'duration-200',\n\t\t\t{\n\t\t\t\t'menu-disabled pointer-events-none opacity-50': this.disabled(),\n\t\t\t\t'menu-active': this.checked(),\n\t\t\t},\n\t\t\tthis.class(),\n\t\t);\n\n\t/**\n\t * Computed CSS classes for the interactive item surface\n\t */\n\tanchorClass = () =>\n\t\tcn('flex items-center justify-between', {\n\t\t\t'bg-primary text-primary-content': this.checked() && !this.disabled(),\n\t\t});\n}\n","<li\n\t[class]=\"itemClass()\"\n\t[attr.data-state]=\"dataState()\"\n\t(click)=\"handleClick($event)\"\n\t(keydown.enter)=\"handleKeyDownEnter($event)\"\n\t(keydown.space)=\"handleKeyDownSpace($event)\"\n\t[attr.tabindex]=\"disabled() ? -1 : 0\"\n\trole=\"menuitemradio\"\n\t[attr.aria-checked]=\"checked()\"\n\t[attr.aria-disabled]=\"disabled()\"\n>\n\t<a [class]=\"anchorClass()\">\n\t\t<span class=\"flex-1\">\n\t\t\t<ng-content></ng-content>\n\t\t</span>\n\t\t@if (showIndicator()) {\n\t\t\t<span\n\t\t\t\tclass=\"ml-auto text-xs transition-opacity duration-300 ease-in-out group-aria-[checked=false]:opacity-0 group-aria-[checked=true]:opacity-100\"\n\t\t\t>\n\t\t\t\t{{ indicator() }}\n\t\t\t</span>\n\t\t}\n\t</a>\n</li>\n","import { Component, inject, input, output } from '@angular/core';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { DropdownComponent } from '../src/dropdown.component';\n\n/**\n * A selectable item component for use within dropdown menus\n *\n * @remarks\n * Designed to be used inside `<st-dropdown-content>` components. Handles selection events\n * and automatically closes the parent dropdown when clicked.\n *\n * @example\n * ```html\n * <st-dropdown-item (selected)=\"handleItemSelect()\">\n * <st-icon icon=\"check\"></st-icon>\n * <span typography>Select Item</span>\n * </st-dropdown-item>\n * ```\n *\n * @example\n * ```html\n * <st-dropdown-item class=\"custom-item-style\" (selected)=\"logSelection()\" [disabled]=\"true\">\n * Disabled item\n * </st-dropdown-item>\n * ```\n */\n@Component({\n\tselector: 'st-dropdown-item',\n\tstandalone: true,\n\ttemplateUrl: './dropdown-item.component.html',\n})\nexport class DropdownItemComponent {\n\tprivate readonly dropdown = inject(DropdownComponent, { optional: true });\n\n\t/**\n\t * Whether the menu item is active\n\t */\n\tactive = input<boolean>(false);\n\n\t/**\n\t * Custom CSS classes\n\t */\n\tclass = input<string>('');\n\n\t/**\n\t * Whether the item is disabled\n\t * @defaultValue false\n\t */\n\tdisabled = input<boolean>(false);\n\n\t/**\n\t * Whether to close the dropdown when the item is selected\n\t * @defaultValue true\n\t */\n\tcloseOnSelect = input<boolean>(true);\n\n\t/**\n\t * Event emitted when the item is selected\n\t */\n\tselected = output<void>();\n\n\t/**\n\t * Stop event propagation for activation events\n\t * @defaultValue false\n\t */\n\tstopPropagation = input<boolean>(false);\n\n\t/**\n\t * Event emitted on click\n\t */\n\tclicked = output<MouseEvent>();\n\n\t/**\n\t * Event emitted on Enter keydown\n\t */\n\tkeyDownEnter = output<KeyboardEvent>();\n\n\t/**\n\t * Event emitted on Space keydown\n\t */\n\tkeyDownSpace = output<KeyboardEvent>();\n\n\t/**\n\t * Event emitted on activation (click or keyboard)\n\t */\n\ttriggered = output<void>();\n\n\t/**\n\t * @internal\n\t * Handles item selection and dropdown state\n\t */\n\thandleSelect() {\n\t\tif (this.disabled()) return;\n\n\t\tthis.selected.emit();\n\t\tif (this.closeOnSelect()) {\n\t\t\tthis.dropdown?.trigger()?.close();\n\t\t}\n\t}\n\n\t/**\n\t * @internal\n\t * Handle click activation\n\t */\n\thandleClick(event: MouseEvent) {\n\t\tif (this.disabled()) return;\n\t\tif (this.stopPropagation()) {\n\t\t\tevent.stopPropagation();\n\t\t}\n\t\tthis.clicked.emit(event);\n\t\tthis.triggered.emit();\n\t\tthis.handleSelect();\n\t}\n\n\t/**\n\t * @internal\n\t * Handle Enter key activation\n\t */\n\thandleKeyDownEnter(event: Event) {\n\t\tif (this.disabled()) return;\n\t\tif (this.stopPropagation()) {\n\t\t\tevent.stopPropagation();\n\t\t}\n\t\tthis.keyDownEnter.emit(event as KeyboardEvent);\n\t\tthis.triggered.emit();\n\t\tthis.handleSelect();\n\t}\n\n\t/**\n\t * @internal\n\t * Handle Space key activation\n\t */\n\thandleKeyDownSpace(event: Event) {\n\t\tif (this.disabled()) return;\n\t\tevent.preventDefault();\n\t\tif (this.stopPropagation()) {\n\t\t\tevent.stopPropagation();\n\t\t}\n\t\tthis.keyDownSpace.emit(event as KeyboardEvent);\n\t\tthis.triggered.emit();\n\t\tthis.handleSelect();\n\t}\n\n\t/**\n\t * Computed CSS classes for the menu item\n\t */\n\titemClass = () =>\n\t\tcn(\n\t\t\t'rounded-field',\n\t\t\t'transition-colors',\n\t\t\t'duration-200',\n\t\t\t{\n\t\t\t\t'menu-disabled pointer-events-none opacity-50': this.disabled(),\n\t\t\t\t'menu-active': this.active(),\n\t\t\t},\n\t\t\tthis.class(),\n\t\t);\n}\n","<li\n\t[class]=\"itemClass()\"\n\t(click)=\"handleClick($event)\"\n\t(keydown.enter)=\"handleKeyDownEnter($event)\"\n\t(keydown.space)=\"handleKeyDownSpace($event)\"\n\t[attr.tabindex]=\"disabled() ? -1 : 0\"\n\trole=\"menuitem\"\n\t[attr.aria-disabled]=\"disabled()\"\n>\n\t<a>\n\t\t<ng-content></ng-content>\n\t</a>\n</li>\n","import { Component, input } from '@angular/core';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\n\n/**\n * DropdownLabel - Label for dropdown sections\n * Provides section headers for dropdown content\n */\n@Component({\n\tselector: 'st-dropdown-label',\n\tstandalone: true,\n\ttemplateUrl: './dropdown-label.component.html',\n})\nexport class DropdownLabelComponent {\n\t/**\n\t * Custom CSS classes\n\t */\n\tclass = input<string>('');\n\n\t/**\n\t * Computed CSS classes for the label\n\t */\n\tlabelClass = () => cn('menu-title', this.class());\n}\n","<div [class]=\"labelClass()\">\n\t<ng-content></ng-content>\n</div>\n","import { Component } from '@angular/core';\n\n/**\n * DropdownSeparator - Visual separator for dropdown menu sections\n *\n * @remarks\n * A simple horizontal divider to separate groups of dropdown items.\n *\n * @example\n * ```html\n * <st-dropdown-content>\n * <st-dropdown-item>Item 1</st-dropdown-item>\n * <st-dropdown-item>Item 2</st-dropdown-item>\n * <st-dropdown-separator></st-dropdown-separator>\n * <st-dropdown-item>Item 3</st-dropdown-item>\n * </st-dropdown-content>\n * ```\n */\n@Component({\n\tselector: 'st-dropdown-separator',\n\tstandalone: true,\n\ttemplateUrl: './dropdown-separator.component.html',\n})\nexport class DropdownSeparatorComponent {}\n","<li class=\"pointer-events-none top-0 left-0 mx-0 my-1 w-full p-0\"></li>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;AAsBA;;;;;;;;;;;;;;;;;;;;;;AAsBG;MAOU,wBAAwB,CAAA;AACjB,IAAA,eAAe,GAAG,MAAM,CAAC,eAAe,CAAC;;AAG5D,IAAA,OAAO,GAAG,KAAK,CAAS,CAAC,CAAC;;AAG1B,IAAA,OAAO,GAAG,KAAK,CAAS,CAAC,CAAC;;AAG1B,IAAA,OAAO,GAAG,KAAK,CAAoB,OAAO,CAAC;;AAG3C,IAAA,OAAO,GAAG,KAAK,CAAoB,QAAQ,CAAC;;AAG5C,IAAA,QAAQ,GAAG,KAAK,CAAoB,OAAO,CAAC;;AAG5C,IAAA,QAAQ,GAAG,KAAK,CAAoB,KAAK,CAAC;;IAG1C,SAAS,GAAG,KAAK,CAA4B,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;IAG/D,MAAM,GAAG,MAAM,EAAQ;;IAGvB,MAAM,GAAG,MAAM,EAAQ;AAEvB;;;AAGG;AACH,IAAA,eAAe,GAAG,KAAK,CAAU,KAAK,CAAC;AAEvC;;;AAGG;AACH,IAAA,eAAe,GAAG,KAAK,CAAS,CAAC,CAAC,CAAC;AAEnC;;AAEG;IACH,OAAO,GAAG,MAAM,EAAc;AAE9B;;AAEG;IACH,WAAW,GAAG,MAAM,EAAgB;AAEpC;;AAEG;IACH,YAAY,GAAG,MAAM,EAAiB;AAEtC;;AAEG;IACH,YAAY,GAAG,MAAM,EAAiB;AAEtC;;AAEG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AA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,0BAA0B,iFCvBvC,6EACA,EAAA,CAAA;;4FDsBa,0BAA0B,EAAA,UAAA,EAAA,CAAA;kBALtC,SAAS;AACC,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,uBAAuB,cACrB,IAAI,EAAA,QAAA,EAAA,6EAAA,EAAA;;;AEpBjB;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"sixbell-telco-sdk-components-dropdown.mjs","sources":["../../../projects/sdk/components/dropdown/dropdown-trigger/dropdown-trigger.component.ts","../../../projects/sdk/components/dropdown/dropdown-trigger/dropdown-trigger.component.html","../../../projects/sdk/components/dropdown/dropdown-chevron/dropdown-chevron.component.ts","../../../projects/sdk/components/dropdown/dropdown-chevron/dropdown-chevron.component.html","../../../projects/sdk/components/dropdown/dropdown-content/dropdown-content.component.ts","../../../projects/sdk/components/dropdown/dropdown-content/dropdown-content.component.html","../../../projects/sdk/components/dropdown/dropdown-group/dropdown-group.component.ts","../../../projects/sdk/components/dropdown/dropdown-group/dropdown-group.component.html","../../../projects/sdk/components/dropdown/src/dropdown.component.ts","../../../projects/sdk/components/dropdown/src/dropdown.component.html","../../../projects/sdk/components/dropdown/dropdown-item-checkbox/dropdown-item-checkbox.component.ts","../../../projects/sdk/components/dropdown/dropdown-item-checkbox/dropdown-item-checkbox.component.html","../../../projects/sdk/components/dropdown/dropdown-item-radio/dropdown-item-radio.component.ts","../../../projects/sdk/components/dropdown/dropdown-item-radio/dropdown-item-radio.component.html","../../../projects/sdk/components/dropdown/dropdown-item/dropdown-item.component.ts","../../../projects/sdk/components/dropdown/dropdown-item/dropdown-item.component.html","../../../projects/sdk/components/dropdown/dropdown-label/dropdown-label.component.ts","../../../projects/sdk/components/dropdown/dropdown-label/dropdown-label.component.html","../../../projects/sdk/components/dropdown/dropdown-separator/dropdown-separator.component.ts","../../../projects/sdk/components/dropdown/dropdown-separator/dropdown-separator.component.html","../../../projects/sdk/components/dropdown/sixbell-telco-sdk-components-dropdown.ts"],"sourcesContent":["import { CdkConnectedOverlay, CdkOverlayOrigin, ConnectedOverlayPositionChange, ConnectedPosition } from '@angular/cdk/overlay';\nimport { NgTemplateOutlet } from '@angular/common';\nimport { Component, computed, inject, input, output, signal, TemplateRef } from '@angular/core';\nimport { ThemeDomService } from '@sixbell-telco/sdk/utils/theme';\n\n/** Animation states for the dropdown */\ntype DropdownAnimationState = 'closed' | 'opening' | 'open' | 'closing';\n\n/** Dropdown X position options for CDK overlay positioning */\nexport type DropdownXPosition = 'start' | 'center' | 'end';\n\n/** Dropdown Y position options for CDK overlay positioning */\nexport type DropdownYPosition = 'top' | 'bottom' | 'center';\n\n/** Dropdown fallback position configuration */\nexport interface DropdownFallbackPositions {\n\t/** Enable automatic fallback positions */\n\tenabled: boolean;\n\t/** Custom fallback positions - if not provided, default fallbacks will be used */\n\tpositions?: ConnectedPosition[];\n}\n\n/**\n * DropdownTrigger - Trigger element for opening dropdown content\n *\n * @remarks\n * This component acts as the trigger that opens/closes the dropdown content.\n * It can contain any content (buttons, avatars, text, icons, etc.).\n * Uses CdkConnectedOverlay for positioning and management.\n *\n * @example\n * ```html\n * <st-dropdown>\n * <st-dropdown-trigger>\n * <button class=\"btn btn-primary\">\n * Open Menu\n * <st-icon [icon]=\"chevronDown\"></st-icon>\n * </button>\n * </st-dropdown-trigger>\n * <st-dropdown-content>\n * <st-dropdown-item>Item 1</st-dropdown-item>\n * </st-dropdown-content>\n * </st-dropdown>\n * ```\n */\n@Component({\n\tselector: 'st-dropdown-trigger',\n\tstandalone: true,\n\timports: [CdkConnectedOverlay, CdkOverlayOrigin, NgTemplateOutlet],\n\ttemplateUrl: './dropdown-trigger.component.html',\n})\nexport class DropdownTriggerComponent {\n\tprotected readonly themeDomService = inject(ThemeDomService);\n\n\t/** Offset X in pixels */\n\toffsetX = input<number>(0);\n\n\t/** Offset Y in pixels */\n\toffsetY = input<number>(0);\n\n\t/** Origin X position */\n\toriginX = input<DropdownXPosition>('start');\n\n\t/** Origin Y position */\n\toriginY = input<DropdownYPosition>('bottom');\n\n\t/** Overlay X position */\n\toverlayX = input<DropdownXPosition>('start');\n\n\t/** Overlay Y position */\n\toverlayY = input<DropdownYPosition>('top');\n\n\t/** Fallback positions configuration */\n\tfallbacks = input<DropdownFallbackPositions>({ enabled: true });\n\n\t/** Event emitted when dropdown is opened */\n\topened = output<void>();\n\n\t/** Event emitted when dropdown is closed */\n\tclosed = output<void>();\n\n\t/**\n\t * Stop event propagation for activation events\n\t * @defaultValue false\n\t */\n\tstopPropagation = input<boolean>(false);\n\n\t/**\n\t * Tab index for the trigger wrapper\n\t * @defaultValue -1\n\t */\n\ttriggerTabIndex = input<number>(-1);\n\n\t/**\n\t * Event emitted on click\n\t */\n\tclicked = output<MouseEvent>();\n\n\t/**\n\t * Event emitted on pointer down\n\t */\n\tpointerDown = output<PointerEvent>();\n\n\t/**\n\t * Event emitted on Enter keydown\n\t */\n\tkeyDownEnter = output<KeyboardEvent>();\n\n\t/**\n\t * Event emitted on Space keydown\n\t */\n\tkeyDownSpace = output<KeyboardEvent>();\n\n\t/**\n\t * Event emitted on activation (click or keyboard)\n\t */\n\ttriggered = output<void>();\n\n\t/** Current open state */\n\tisOpen = signal(false);\n\n\t/** Internal state to control overlay visibility (keeps overlay open during close animation) */\n\toverlayOpen = signal(false);\n\n\t/** Current animation state */\n\tanimationState = signal<DropdownAnimationState>('closed');\n\n\t/** Current active position configuration */\n\tcurrentPosition = signal<ConnectedPosition | null>(null);\n\n\t/**\n\t * Computed animation direction based on current position\n\t * Returns the appropriate direction: 'top', 'bottom', 'left', or 'right'\n\t */\n\tanimationDirection = computed(() => {\n\t\tconst position = this.currentPosition();\n\t\tif (!position) return 'bottom'; // default\n\n\t\t// Determine direction based on overlay Y and X positions\n\t\t// overlayY indicates vertical position (top/bottom/center)\n\t\t// overlayX indicates horizontal position (start/end/center)\n\t\tconst overlayY = position.overlayY as string;\n\t\tconst overlayX = position.overlayX as string;\n\n\t\t// Priority: check Y first, then X\n\t\tif (overlayY === 'top') {\n\t\t\treturn 'top'; // Dropdown appears above\n\t\t}\n\n\t\tif (overlayY === 'bottom') {\n\t\t\treturn 'bottom'; // Dropdown appears below\n\t\t}\n\n\t\tif (overlayX === 'end') {\n\t\t\treturn 'left'; // Dropdown appears to the left (end aligns to left side of trigger)\n\t\t}\n\n\t\tif (overlayX === 'start') {\n\t\t\treturn 'right'; // Dropdown appears to the right (start aligns to right side of trigger)\n\t\t}\n\n\t\treturn 'bottom'; // default\n\t});\n\n\t/**\n\t * Static class mappings for different animation directions\n\t * Maps animation directions to complete Tailwind class names\n\t * All class names are static and detectable by Tailwind at build time\n\t */\n\tprivate readonly animationClassMap = {\n\t\tbottom: 'data-[state=opening]:animate-fade-in-up data-[state=open]:animate-fade-in-up data-[state=closing]:animate-fade-out-down',\n\t\ttop: 'data-[state=opening]:animate-fade-in-down data-[state=open]:animate-fade-in-down data-[state=closing]:animate-fade-out-up',\n\t\tleft: 'data-[state=opening]:animate-fade-in-left data-[state=open]:animate-fade-in-left data-[state=closing]:animate-fade-out-right',\n\t\tright: 'data-[state=opening]:animate-fade-in-right data-[state=open]:animate-fade-in-right data-[state=closing]:animate-fade-out-left',\n\t};\n\n\t/**\n\t * Computed class string for animations\n\t * Applies the correct animation based on position using static class names\n\t */\n\tanimationClasses = computed(() => {\n\t\tconst direction = this.animationDirection();\n\t\tconst baseClasses = this.animationClassMap[direction as keyof typeof this.animationClassMap];\n\t\tconst durationClasses =\n\t\t\t'data-[state=closing]:animate-duration-150 data-[state=opening]:animate-duration-150 data-[state=open]:animate-duration-150 data-[state=opening]:overflow-hidden data-[state=closing]:overflow-hidden';\n\t\treturn `${baseClasses} ${durationClasses}`;\n\t});\n\n\t/** Content template reference */\n\tcontentTemplate: TemplateRef<unknown> | null = null;\n\n\t/**\n\t * Computed positions array based on signal inputs\n\t */\n\tpositions = computed(() => {\n\t\t// Get current values and ensure they are strings\n\t\tconst originX = String(this.originX()) as DropdownXPosition;\n\t\tconst originY = String(this.originY()) as DropdownYPosition;\n\t\tconst overlayX = String(this.overlayX()) as DropdownXPosition;\n\t\tconst overlayY = String(this.overlayY()) as DropdownYPosition;\n\t\tconst offsetX = Number(this.offsetX());\n\t\tconst offsetY = Number(this.offsetY());\n\n\t\t// Primary position using direct signal values\n\t\tconst primary: ConnectedPosition = {\n\t\t\toriginX,\n\t\t\toriginY,\n\t\t\toverlayX,\n\t\t\toverlayY,\n\t\t\toffsetX,\n\t\t\toffsetY,\n\t\t};\n\n\t\t// If fallbacks are disabled, return only primary position\n\t\tconst fallbackConfig = this.fallbacks() ?? { enabled: true };\n\t\tif (!fallbackConfig.enabled) {\n\t\t\treturn [primary];\n\t\t}\n\n\t\t// Use custom fallback positions if provided\n\t\tif (fallbackConfig.positions && fallbackConfig.positions.length > 0) {\n\t\t\treturn [primary, ...fallbackConfig.positions];\n\t\t}\n\n\t\t// Generate default fallback positions\n\t\tconst fallbacks = this.generateDefaultFallbacks(primary);\n\t\treturn [primary, ...fallbacks];\n\t});\n\n\t/**\n\t * Generate default fallback positions based on the primary position\n\t * Provides comprehensive fallback coverage for all space constraints\n\t */\n\tprivate generateDefaultFallbacks(primary: ConnectedPosition): ConnectedPosition[] {\n\t\tconst fallbacks: ConnectedPosition[] = [];\n\n\t\tconst primaryOriginX = primary.originX as DropdownXPosition;\n\t\tconst primaryOriginY = primary.originY as DropdownYPosition;\n\t\tconst primaryOverlayX = primary.overlayX as DropdownXPosition;\n\t\tconst primaryOverlayY = primary.overlayY as DropdownYPosition;\n\n\t\t// Add basic axis flips\n\t\tthis.addAxisFlips(fallbacks, primary, primaryOriginX, primaryOriginY, primaryOverlayX, primaryOverlayY);\n\n\t\t// Add standard dropdown positions\n\t\tthis.addStandardPositions(fallbacks, primary);\n\n\t\t// Add center alignment fallbacks\n\t\tthis.addCenterFallbacks(fallbacks, primary, primaryOriginX, primaryOriginY, primaryOverlayX, primaryOverlayY);\n\n\t\treturn fallbacks;\n\t}\n\n\t/**\n\t * Helper to flip Y position\n\t */\n\tprivate getOppositeY(position: DropdownYPosition): DropdownYPosition {\n\t\tif (position === 'top') return 'bottom';\n\t\tif (position === 'bottom') return 'top';\n\t\treturn 'center';\n\t}\n\n\t/**\n\t * Helper to flip X position\n\t */\n\tprivate getOppositeX(position: DropdownXPosition): DropdownXPosition {\n\t\tif (position === 'start') return 'end';\n\t\tif (position === 'end') return 'start';\n\t\treturn 'center';\n\t}\n\n\t/**\n\t * Helper to create position variant\n\t */\n\tprivate createPosition(\n\t\tprimary: ConnectedPosition,\n\t\toriginX: DropdownXPosition,\n\t\toriginY: DropdownYPosition,\n\t\toverlayX: DropdownXPosition,\n\t\toverlayY: DropdownYPosition,\n\t): ConnectedPosition {\n\t\treturn {\n\t\t\t...primary,\n\t\t\toriginX,\n\t\t\toriginY,\n\t\t\toverlayX,\n\t\t\toverlayY,\n\t\t};\n\t}\n\n\t/**\n\t * Add axis flip fallbacks\n\t */\n\tprivate addAxisFlips(\n\t\tfallbacks: ConnectedPosition[],\n\t\tprimary: ConnectedPosition,\n\t\tprimaryOriginX: DropdownXPosition,\n\t\tprimaryOriginY: DropdownYPosition,\n\t\tprimaryOverlayX: DropdownXPosition,\n\t\tprimaryOverlayY: DropdownYPosition,\n\t): void {\n\t\t// Flip Y axis\n\t\tconst oppositeY = this.getOppositeY(primaryOriginY);\n\t\tconst oppositeOverlayY = this.getOppositeY(primaryOverlayY);\n\t\tfallbacks.push(this.createPosition(primary, primaryOriginX, oppositeY, primaryOverlayX, oppositeOverlayY));\n\n\t\t// Flip X axis\n\t\tconst oppositeX = this.getOppositeX(primaryOriginX);\n\t\tconst oppositeOverlayX = this.getOppositeX(primaryOverlayX);\n\t\tfallbacks.push(this.createPosition(primary, oppositeX, primaryOriginY, oppositeOverlayX, primaryOverlayY));\n\n\t\t// Flip both axes\n\t\tfallbacks.push(this.createPosition(primary, oppositeX, oppositeY, oppositeOverlayX, oppositeOverlayY));\n\t}\n\n\t/**\n\t * Add standard dropdown positions\n\t */\n\tprivate addStandardPositions(fallbacks: ConnectedPosition[], primary: ConnectedPosition): void {\n\t\tconst standardPositions = [\n\t\t\tthis.createPosition(primary, 'start', 'bottom', 'start', 'top'), // Classic dropdown\n\t\t\tthis.createPosition(primary, 'start', 'top', 'start', 'bottom'), // Dropup\n\t\t\tthis.createPosition(primary, 'end', 'top', 'start', 'top'), // Left side\n\t\t\tthis.createPosition(primary, 'start', 'top', 'end', 'top'), // Right side\n\t\t\tthis.createPosition(primary, 'center', 'bottom', 'center', 'top'), // Center dropdown\n\t\t\tthis.createPosition(primary, 'center', 'top', 'center', 'bottom'), // Center dropup\n\t\t];\n\n\t\tfor (const pos of standardPositions) {\n\t\t\tif (!this.isPositionDuplicate(pos, [primary, ...fallbacks])) {\n\t\t\t\tfallbacks.push(pos);\n\t\t\t}\n\t\t}\n\t}\n\n\t/**\n\t * Add center alignment fallbacks\n\t */\n\tprivate addCenterFallbacks(\n\t\tfallbacks: ConnectedPosition[],\n\t\tprimary: ConnectedPosition,\n\t\tprimaryOriginX: DropdownXPosition,\n\t\tprimaryOriginY: DropdownYPosition,\n\t\tprimaryOverlayX: DropdownXPosition,\n\t\tprimaryOverlayY: DropdownYPosition,\n\t): void {\n\t\t// Center horizontally\n\t\tif (primaryOriginX !== 'center' || primaryOverlayX !== 'center') {\n\t\t\tfallbacks.push(this.createPosition(primary, 'center', primaryOriginY, 'center', primaryOverlayY));\n\t\t}\n\n\t\t// Center vertically\n\t\tif (primaryOriginY !== 'center' || primaryOverlayY !== 'center') {\n\t\t\tfallbacks.push(this.createPosition(primary, primaryOriginX, 'center', primaryOverlayX, 'center'));\n\t\t}\n\n\t\t// Fully centered as last resort\n\t\tconst fullyCentered = this.createPosition(primary, 'center', 'center', 'center', 'center');\n\t\tif (!this.isPositionDuplicate(fullyCentered, [primary, ...fallbacks])) {\n\t\t\tfallbacks.push(fullyCentered);\n\t\t}\n\t}\n\n\t/**\n\t * Check if position is duplicate\n\t */\n\tprivate isPositionDuplicate(position: ConnectedPosition, existing: ConnectedPosition[]): boolean {\n\t\treturn existing.some(\n\t\t\t(pos) =>\n\t\t\t\tpos.originX === position.originX &&\n\t\t\t\tpos.originY === position.originY &&\n\t\t\t\tpos.overlayX === position.overlayX &&\n\t\t\t\tpos.overlayY === position.overlayY,\n\t\t);\n\t}\n\n\t/**\n\t * Set the content template to be displayed in the overlay\n\t */\n\tsetContentTemplate(template: TemplateRef<unknown>): void {\n\t\tthis.contentTemplate = template;\n\t}\n\n\t/**\n\t * Toggle the dropdown open/close state\n\t */\n\ttoggle(): void {\n\t\tif (this.isOpen()) {\n\t\t\tthis.close();\n\t\t\treturn;\n\t\t}\n\n\t\tthis.open();\n\t}\n\n\t/**\n\t * @internal\n\t * Handle click activation\n\t */\n\thandleClick(event: MouseEvent): void {\n\t\tif (this.stopPropagation()) {\n\t\t\tevent.stopPropagation();\n\t\t}\n\t\tthis.clicked.emit(event);\n\t\tthis.triggered.emit();\n\t\tthis.toggle();\n\t}\n\n\t/**\n\t * @internal\n\t * Handle pointer down activation\n\t */\n\thandlePointerDown(event: PointerEvent): void {\n\t\tif (this.stopPropagation()) {\n\t\t\tevent.stopPropagation();\n\t\t}\n\t\tthis.pointerDown.emit(event);\n\t}\n\n\t/**\n\t * @internal\n\t * Handle Enter key activation\n\t */\n\thandleKeyDownEnter(event: Event): void {\n\t\tif (event.target !== event.currentTarget) {\n\t\t\treturn;\n\t\t}\n\t\tif (this.stopPropagation()) {\n\t\t\tevent.stopPropagation();\n\t\t}\n\t\tthis.keyDownEnter.emit(event as KeyboardEvent);\n\t\tthis.triggered.emit();\n\t\tthis.toggle();\n\t}\n\n\t/**\n\t * @internal\n\t * Handle Space key activation\n\t */\n\thandleKeyDownSpace(event: Event): void {\n\t\tif (event.target !== event.currentTarget) {\n\t\t\treturn;\n\t\t}\n\t\tevent.preventDefault();\n\t\tif (this.stopPropagation()) {\n\t\t\tevent.stopPropagation();\n\t\t}\n\t\tthis.keyDownSpace.emit(event as KeyboardEvent);\n\t\tthis.triggered.emit();\n\t\tthis.toggle();\n\t}\n\n\t/**\n\t * Open the dropdown\n\t * Sets up overlay with animation and emits opened event\n\t */\n\topen(): void {\n\t\tif (this.isOpen() || !this.contentTemplate) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis.isOpen.set(true);\n\t\tthis.overlayOpen.set(true);\n\t\tthis.animationState.set('opening');\n\t\tthis.opened.emit();\n\t}\n\n\t/**\n\t * Close the dropdown\n\t * Triggers closing animation and emits closed event\n\t */\n\tclose(): void {\n\t\tif (!this.isOpen()) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis.animationState.set('closing');\n\t\tthis.closed.emit();\n\t}\n\n\t/**\n\t * Handle animation end events\n\t * Completes state transitions when animations finish\n\t */\n\tonAnimationEnd(event: AnimationEvent): void {\n\t\tconst currentState = this.animationState();\n\n\t\t// Opening animation complete\n\t\tif (currentState === 'opening' && (event.animationName.includes('fade-in') || event.animationName.includes('morph-in'))) {\n\t\t\tthis.animationState.set('open');\n\t\t\treturn;\n\t\t}\n\n\t\t// Closing animation complete\n\t\tif (currentState === 'closing' && event.animationName.includes('fade-out')) {\n\t\t\tthis.animationState.set('closed');\n\t\t\tthis.isOpen.set(false);\n\t\t\tthis.overlayOpen.set(false);\n\t\t\treturn;\n\t\t}\n\t}\n\n\t/**\n\t * Handle position changes from CDK overlay\n\t */\n\tonPositionChange(position: ConnectedOverlayPositionChange): void {\n\t\tif (position?.connectionPair) {\n\t\t\tthis.currentPosition.set(position.connectionPair);\n\t\t}\n\t}\n}\n","<div\n\tcdkOverlayOrigin\n\t#trigger=\"cdkOverlayOrigin\"\n\tclass=\"inline-flex cursor-pointer items-center\"\n\t(pointerdown)=\"handlePointerDown($event)\"\n\t(click)=\"handleClick($event)\"\n\t(keydown.enter)=\"handleKeyDownEnter($event)\"\n\t(keydown.space)=\"handleKeyDownSpace($event)\"\n\t(keydown.escape)=\"close()\"\n\t[attr.aria-expanded]=\"isOpen()\"\n\t[attr.aria-haspopup]=\"true\"\n\t[attr.tabindex]=\"triggerTabIndex()\"\n\trole=\"button\"\n>\n\t<ng-content></ng-content>\n</div>\n\n<ng-template\n\tcdkConnectedOverlay\n\t[cdkConnectedOverlayPositions]=\"positions()\"\n\t[cdkConnectedOverlayOrigin]=\"trigger\"\n\t[cdkConnectedOverlayOpen]=\"overlayOpen()\"\n\t[cdkConnectedOverlayHasBackdrop]=\"true\"\n\t[cdkConnectedOverlayBackdropClass]=\"'cdk-overlay-transparent-backdrop'\"\n\t[cdkConnectedOverlayDisableClose]=\"true\"\n\t(backdropClick)=\"close()\"\n\t(positionChange)=\"onPositionChange($event)\"\n>\n\t<div class=\"contents\" [attr.data-theme]=\"themeDomService.themeOf(trigger.elementRef.nativeElement)\">\n\t\t<div [class]=\"animationClasses()\" (animationend)=\"onAnimationEnd($event)\" [attr.data-state]=\"animationState()\">\n\t\t\t<ng-container *ngTemplateOutlet=\"contentTemplate\"></ng-container>\n\t\t</div>\n\t</div>\n</ng-template>\n","import { Component, computed, inject, input } from '@angular/core';\nimport { IconColorProps, IconComponent, IconSizeProps } from '@sixbell-telco/sdk/components/icon';\nimport { matKeyboardArrowDown } from '@sixbell-telco/sdk/components/icon/material/baseline';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { DropdownTriggerComponent } from '../dropdown-trigger/dropdown-trigger.component';\n\n/**\n * DropdownChevron - Chevron indicator for dropdown triggers\n * Automatically rotates based on dropdown state and positions itself correctly\n */\n@Component({\n\tselector: 'st-dropdown-chevron',\n\tstandalone: true,\n\timports: [IconComponent],\n\ttemplateUrl: './dropdown-chevron.component.html',\n\thost: { class: 'contents' },\n})\nexport class DropdownChevronComponent {\n\t/**\n\t * Optional: works only when this chevron is created in the trigger's view.\n\t * Projected usage (stories/showcase) cannot inject the trigger; rotation then\n\t * follows the trigger's [aria-expanded] via :host-context.\n\t */\n\tprivate readonly trigger = inject(DropdownTriggerComponent, { optional: true, skipSelf: true });\n\n\t/**\n\t * Custom icon to use instead of default arrow down\n\t */\n\ticon = input<string>(matKeyboardArrowDown);\n\n\t/**\n\t * Additional CSS classes\n\t */\n\tclass = input<string>('');\n\n\t/**\n\t * Size of the chevron using Icon component size types\n\t */\n\tsize = input<IconSizeProps>('md');\n\n\t/**\n\t * Color of the chevron using Icon component color types\n\t */\n\tcolor = input<IconColorProps>('inherit');\n\n\t/**\n\t * Position relative to content\n\t */\n\tposition = input<'left' | 'right'>('right');\n\n\t/**\n\t * Whether the chevron is open (rotated)\n\t * Derives from the parent trigger's isOpen signal\n\t */\n\tprivate readonly isOpen = computed(() => this.trigger?.isOpen() ?? false);\n\n\t/**\n\t * Computed classes for the chevron\n\t */\n\treadonly chevronClasses = computed(() => {\n\t\tconst marginClasses = {\n\t\t\tleft: 'mr-2',\n\t\t\tright: 'ml-2',\n\t\t};\n\n\t\treturn cn(\n\t\t\tmarginClasses[this.position()],\n\t\t\t'inline-flex size-[1.2em] items-center justify-center align-middle',\n\t\t\tthis.isOpen() && 'is-open',\n\t\t\tthis.class(),\n\t\t);\n\t});\n}\n","<span data-st-chevron [class]=\"chevronClasses()\">\n\t<st-icon [icon]=\"icon()\" [size]=\"size()\" [color]=\"color()\"></st-icon>\n</span>\n","import { Component, input, output, TemplateRef, viewChild } from '@angular/core';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\n\n/**\n * DropdownContent - Container for dropdown menu items\n *\n * @remarks\n * This component contains the dropdown menu items and provides them as a template\n * for the trigger component to display in the overlay.\n *\n * @example\n * ```html\n * <st-dropdown-content>\n * <st-dropdown-item>Menu Item 1</st-dropdown-item>\n * <st-dropdown-item>Menu Item 2</st-dropdown-item>\n * <div class=\"divider\"></div>\n * <st-dropdown-item>Menu Item 3</st-dropdown-item>\n * </st-dropdown-content>\n * ```\n */\n@Component({\n\tselector: 'st-dropdown-content',\n\tstandalone: true,\n\ttemplateUrl: './dropdown-content.component.html',\n\texportAs: 'dropdownContent',\n})\nexport class DropdownContentComponent {\n\tprivate readonly templateRef = viewChild.required<TemplateRef<unknown>>('contentTemplate');\n\n\tget template(): TemplateRef<unknown> {\n\t\treturn this.templateRef();\n\t}\n\n\t/** Custom CSS classes */\n\tclass = input<string>('');\n\n\t/** Size variant */\n\tsize = input<'xs' | 'sm' | 'md' | 'lg' | 'xl'>('md');\n\n\t/** Whether to apply shadow */\n\tshadow = input<boolean>(true);\n\n\t/** Event emitted when close is requested */\n\tcloseRequested = output<void>();\n\n\t/**\n\t * Computed CSS classes for the content\n\t */\n\tcontentClass = () =>\n\t\tcn(\n\t\t\t'menu',\n\t\t\t'bg-base-200',\n\t\t\t'rounded-box',\n\t\t\t'border',\n\t\t\t'border-neutral',\n\t\t\t'min-w-full',\n\t\t\t'max-h-72',\n\t\t\t'overflow-y-auto',\n\t\t\t'overscroll-contain',\n\t\t\t'flex-nowrap',\n\t\t\t{\n\t\t\t\t'menu-xs': this.size() === 'xs',\n\t\t\t\t'menu-sm': this.size() === 'sm',\n\t\t\t\t'menu-md': this.size() === 'md',\n\t\t\t\t'menu-lg': this.size() === 'lg',\n\t\t\t\t'menu-xl': this.size() === 'xl',\n\t\t\t\t'shadow-main': this.shadow(),\n\t\t\t},\n\t\t\tthis.class(),\n\t\t);\n\n\t/**\n\t * Request to close the dropdown\n\t * This will be handled by the parent dropdown component\n\t */\n\trequestClose(): void {\n\t\tthis.closeRequested.emit();\n\t}\n}\n","<ng-template #contentTemplate>\n\t<ul [class]=\"contentClass()\">\n\t\t<ng-content></ng-content>\n\t</ul>\n</ng-template>\n","import { Component } from '@angular/core';\n\n/**\n * DropdownGroup - Groups related dropdown items together\n * Provides semantic grouping for dropdown items without rendering a wrapper element\n */\n@Component({\n\tselector: 'st-dropdown-group',\n\tstandalone: true,\n\timports: [],\n\ttemplateUrl: './dropdown-group.component.html',\n\thost: {\n\t\tstyle: 'display: contents',\n\t},\n})\nexport class DropdownGroupComponent {}\n","<ng-content></ng-content>\n","import { Component, computed, contentChild, effect, model, output, signal } from '@angular/core';\nimport { DropdownContentComponent } from '../dropdown-content/dropdown-content.component';\nimport { DropdownTriggerComponent } from '../dropdown-trigger/dropdown-trigger.component';\n\n/**\n * Dropdown - Main container component for dropdown menus\n *\n * @remarks\n * This is the root container that provides a wrapper for trigger and content components.\n * The trigger and content components coordinate themselves through this parent component.\n *\n * @example\n * ```html\n * <st-dropdown>\n * <st-dropdown-trigger [showChevron]=\"true\">\n * <button class=\"btn btn-primary\">Open Menu</button>\n * </st-dropdown-trigger>\n * <st-dropdown-content>\n * <st-dropdown-item>Item 1</st-dropdown-item>\n * <st-dropdown-item>Item 2</st-dropdown-item>\n * </st-dropdown-content>\n * </st-dropdown>\n * ```\n *\n * @example\n * ```html\n * <!-- Listen to open/close events -->\n * <st-dropdown (opened)=\"onOpened()\" (closed)=\"onClosed()\">\n * ...\n * </st-dropdown>\n *\n * <!-- Programmatic control with model signal -->\n * <st-dropdown [(open)]=\"isDropdownOpen\">\n * ...\n * <button (click)=\"isDropdownOpen.set(true)\">Open</button>\n * <button (click)=\"isDropdownOpen.set(false)\">Close</button>\n * <div>Is open: {{ isDropdownOpen() }}</div>\n * </st-dropdown>\n * ```\n */\n@Component({\n\tselector: 'st-dropdown',\n\tstandalone: true,\n\ttemplateUrl: './dropdown.component.html',\n\texportAs: 'stDropdown',\n})\nexport class DropdownComponent {\n\t// Use contentChild() signal instead of @ContentChild decorator\n\ttrigger = contentChild(DropdownTriggerComponent);\n\tcontent = contentChild(DropdownContentComponent);\n\n\t/** Model signal for open/close state - allows two-way binding [(open)]=\"isDropdownOpen\" */\n\topen = model<boolean>(false);\n\n\t/** Event emitted when dropdown is opened - exposed from trigger */\n\topened = output<void>();\n\n\t/** Event emitted when dropdown is closed - exposed from trigger */\n\tclosed = output<void>();\n\n\tconstructor() {\n\t\t/**\n\t\t * Local state for managing subscription lifecycle\n\t\t * Scoped to constructor closure to persist across effect runs without triggering reactivity\n\t\t * Holds trigger/content identity references and subscription cleanup handlers\n\t\t */\n\t\ttype Unsub = (() => void) | { unsubscribe?: () => void };\n\t\tconst _prevState: {\n\t\t\ttrigger?: DropdownTriggerComponent | null;\n\t\t\tcontent?: DropdownContentComponent | null;\n\t\t\topenUnsub?: Unsub | undefined;\n\t\t\tclosedUnsub?: Unsub | undefined;\n\t\t} = { trigger: null, content: null };\n\n\t\t/**\n\t\t * One-time template wiring effect\n\t\t * Fires once when trigger and content become available\n\t\t * Sets up template injection and subscribes to trigger outputs exactly once\n\t\t */\n\t\teffect(() => {\n\t\t\tconst trigger = this.trigger();\n\t\t\tconst content = this.content();\n\n\t\t\tif (trigger && content && !_prevState.trigger) {\n\t\t\t\ttrigger.setContentTemplate(content.template);\n\t\t\t\t_prevState.trigger = trigger;\n\t\t\t\t_prevState.content = content;\n\n\t\t\t\tif (trigger.opened) {\n\t\t\t\t\t_prevState.openUnsub = trigger.opened.subscribe(() => {\n\t\t\t\t\t\tthis.open.set(true);\n\t\t\t\t\t\tthis.opened.emit();\n\t\t\t\t\t});\n\t\t\t\t}\n\n\t\t\t\tif (trigger.closed) {\n\t\t\t\t\t_prevState.closedUnsub = trigger.closed.subscribe(() => {\n\t\t\t\t\t\tthis.open.set(false);\n\t\t\t\t\t\tthis.closed.emit();\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\t/**\n\t\t * Model-to-trigger sync effect\n\t\t * Tracks last synced model value to detect external changes\n\t\t * Only syncs when model changes from what was previously synced\n\t\t * Prevents control loops when showcase updates model in response to trigger events\n\t\t */\n\t\tconst _lastSyncedModel = signal<boolean>(this.open());\n\n\t\teffect(() => {\n\t\t\tconst currentModel = this.open();\n\t\t\tconst lastSynced = _lastSyncedModel();\n\n\t\t\tif (currentModel === lastSynced) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tconst trigger = this.trigger();\n\t\t\tif (!trigger) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tconst triggerIsOpen = trigger.isOpen();\n\n\t\t\tif (currentModel && !triggerIsOpen) {\n\t\t\t\ttrigger.open();\n\t\t\t} else if (!currentModel && triggerIsOpen) {\n\t\t\t\ttrigger.close();\n\t\t\t}\n\n\t\t\t_lastSyncedModel.set(currentModel);\n\t\t});\n\t}\n\n\t/**\n\t * Get the current open state\n\t */\n\tisOpen = computed(() => this.open());\n}\n","<ng-content></ng-content>\n","import { Component, computed, inject, input, output } from '@angular/core';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { DropdownComponent } from '../src/dropdown.component';\n\n/**\n * DropdownItemCheckbox - Checkbox dropdown item\n * Provides checkbox functionality for dropdown selections\n */\n@Component({\n\tselector: 'st-dropdown-item-checkbox',\n\tstandalone: true,\n\timports: [],\n\ttemplateUrl: './dropdown-item-checkbox.component.html',\n})\nexport class DropdownItemCheckboxComponent {\n\tprivate readonly dropdown = inject(DropdownComponent, { optional: true });\n\n\t/**\n\t * Whether the checkbox is checked\n\t */\n\tchecked = input<boolean>(false);\n\n\t/**\n\t * Whether the menu item is disabled\n\t */\n\tdisabled = input<boolean>(false);\n\n\t/**\n\t * Custom indicator character or text\n\t */\n\tindicator = input<string>('✓');\n\n\t/**\n\t * Whether to show the indicator\n\t */\n\tshowIndicator = input<boolean>(true);\n\n\t/**\n\t * Custom CSS classes\n\t */\n\tclass = input<string>('');\n\n\t/**\n\t * Whether to close the dropdown when the item is selected\n\t * @defaultValue true\n\t */\n\tcloseOnSelect = input<boolean>(false);\n\n\t/**\n\t * Emitted when the checkbox state changes\n\t */\n\tcheckedChanged = output<boolean>();\n\n\t/**\n\t * Emitted when the menu item is triggered/clicked\n\t */\n\ttriggered = output<void>();\n\n\t/**\n\t * Stop event propagation for activation events\n\t * @defaultValue false\n\t */\n\tstopPropagation = input<boolean>(false);\n\n\t/**\n\t * Event emitted on click\n\t */\n\tclicked = output<MouseEvent>();\n\n\t/**\n\t * Event emitted on Enter keydown\n\t */\n\tkeyDownEnter = output<KeyboardEvent>();\n\n\t/**\n\t * Event emitted on Space keydown\n\t */\n\tkeyDownSpace = output<KeyboardEvent>();\n\n\t/**\n\t * Computed data state for ARIA\n\t */\n\tdataState = computed(() => {\n\t\treturn this.checked() ? 'checked' : 'unchecked';\n\t});\n\n\t/**\n\t * Handle item click - toggle checkbox state\n\t */\n\tonItemClick(): void {\n\t\tif (!this.disabled()) {\n\t\t\tconst newChecked = !this.checked();\n\t\t\tthis.checkedChanged.emit(newChecked);\n\t\t\tthis.triggered.emit();\n\t\t\tif (this.closeOnSelect()) {\n\t\t\t\tthis.dropdown?.trigger()?.close();\n\t\t\t}\n\t\t}\n\t}\n\n\t/**\n\t * @internal\n\t * Handle click activation\n\t */\n\thandleClick(event: MouseEvent): void {\n\t\tif (this.disabled()) return;\n\t\tif (this.stopPropagation()) {\n\t\t\tevent.stopPropagation();\n\t\t}\n\t\tthis.clicked.emit(event);\n\t\tthis.onItemClick();\n\t}\n\n\t/**\n\t * @internal\n\t * Handle Enter key activation\n\t */\n\thandleKeyDownEnter(event: Event): void {\n\t\tif (this.disabled()) return;\n\t\tif (this.stopPropagation()) {\n\t\t\tevent.stopPropagation();\n\t\t}\n\t\tthis.keyDownEnter.emit(event as KeyboardEvent);\n\t\tthis.onItemClick();\n\t}\n\n\t/**\n\t * @internal\n\t * Handle Space key activation\n\t */\n\thandleKeyDownSpace(event: Event): void {\n\t\tif (this.disabled()) return;\n\t\tevent.preventDefault();\n\t\tif (this.stopPropagation()) {\n\t\t\tevent.stopPropagation();\n\t\t}\n\t\tthis.keyDownSpace.emit(event as KeyboardEvent);\n\t\tthis.onItemClick();\n\t}\n\n\t/**\n\t * Computed CSS classes for the menu item\n\t */\n\titemClass = () =>\n\t\tcn(\n\t\t\t'group',\n\t\t\t'rounded-field',\n\t\t\t'transition-colors',\n\t\t\t'duration-200',\n\t\t\t{\n\t\t\t\t'menu-disabled pointer-events-none opacity-50': this.disabled(),\n\t\t\t},\n\t\t\tthis.class(),\n\t\t);\n}\n","<li\n\t[class]=\"itemClass()\"\n\t[attr.data-state]=\"dataState()\"\n\t(click)=\"handleClick($event)\"\n\t(keydown.enter)=\"handleKeyDownEnter($event)\"\n\t(keydown.space)=\"handleKeyDownSpace($event)\"\n\t[attr.tabindex]=\"disabled() ? -1 : 0\"\n\trole=\"menuitemcheckbox\"\n\t[attr.aria-checked]=\"checked()\"\n\t[attr.aria-disabled]=\"disabled()\"\n>\n\t<a class=\"flex items-center justify-between\">\n\t\t<span class=\"flex-1\">\n\t\t\t<ng-content></ng-content>\n\t\t</span>\n\t\t@if (showIndicator()) {\n\t\t\t<span\n\t\t\t\tclass=\"ml-auto text-xs transition-opacity duration-300 ease-in-out group-aria-[checked=false]:opacity-0 group-aria-[checked=true]:opacity-100\"\n\t\t\t>\n\t\t\t\t{{ indicator() }}\n\t\t\t</span>\n\t\t}\n\t</a>\n</li>\n","import { Component, computed, inject, input, output } from '@angular/core';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { DropdownComponent } from '../src/dropdown.component';\n\n/**\n * DropdownItemRadio - Radio dropdown item\n * Provides radio button functionality for dropdown selections\n */\n@Component({\n\tselector: 'st-dropdown-item-radio',\n\tstandalone: true,\n\timports: [],\n\ttemplateUrl: './dropdown-item-radio.component.html',\n})\nexport class DropdownItemRadioComponent {\n\tprivate readonly dropdown = inject(DropdownComponent, { optional: true });\n\n\t/**\n\t * Whether the radio is checked\n\t */\n\tchecked = input<boolean>(false);\n\n\t/**\n\t * The value of this radio item\n\t */\n\tvalue = input.required<string>();\n\n\t/**\n\t * Whether the menu item is disabled\n\t */\n\tdisabled = input<boolean>(false);\n\n\t/**\n\t * Custom indicator character or text\n\t */\n\tindicator = input<string>('●');\n\n\t/**\n\t * Whether to show the indicator\n\t */\n\tshowIndicator = input<boolean>(true);\n\n\t/**\n\t * Custom CSS classes\n\t */\n\tclass = input<string>('');\n\n\t/**\n\t * Whether to close the dropdown when the item is selected\n\t * @defaultValue true\n\t */\n\tcloseOnSelect = input<boolean>(true);\n\n\t/**\n\t * Emitted when the radio state changes\n\t */\n\tcheckedChanged = output<string>();\n\n\t/**\n\t * Emitted when the menu item is triggered/clicked\n\t */\n\ttriggered = output<void>();\n\n\t/**\n\t * Stop event propagation for activation events\n\t * @defaultValue false\n\t */\n\tstopPropagation = input<boolean>(false);\n\n\t/**\n\t * Event emitted on click\n\t */\n\tclicked = output<MouseEvent>();\n\n\t/**\n\t * Event emitted on Enter keydown\n\t */\n\tkeyDownEnter = output<KeyboardEvent>();\n\n\t/**\n\t * Event emitted on Space keydown\n\t */\n\tkeyDownSpace = output<KeyboardEvent>();\n\n\t/**\n\t * Computed data state for ARIA\n\t */\n\tdataState = computed(() => {\n\t\treturn this.checked() ? 'checked' : 'unchecked';\n\t});\n\n\t/**\n\t * Handle item click - select this radio option\n\t */\n\tonItemClick(): void {\n\t\tif (!this.disabled() && !this.checked()) {\n\t\t\tthis.checkedChanged.emit(this.value());\n\t\t\tthis.triggered.emit();\n\t\t\tif (this.closeOnSelect()) {\n\t\t\t\tthis.dropdown?.trigger()?.close();\n\t\t\t}\n\t\t}\n\t}\n\n\t/**\n\t * @internal\n\t * Handle click activation\n\t */\n\thandleClick(event: MouseEvent): void {\n\t\tif (this.disabled()) return;\n\t\tif (this.stopPropagation()) {\n\t\t\tevent.stopPropagation();\n\t\t}\n\t\tthis.clicked.emit(event);\n\t\tthis.onItemClick();\n\t}\n\n\t/**\n\t * @internal\n\t * Handle Enter key activation\n\t */\n\thandleKeyDownEnter(event: Event): void {\n\t\tif (this.disabled()) return;\n\t\tif (this.stopPropagation()) {\n\t\t\tevent.stopPropagation();\n\t\t}\n\t\tthis.keyDownEnter.emit(event as KeyboardEvent);\n\t\tthis.onItemClick();\n\t}\n\n\t/**\n\t * @internal\n\t * Handle Space key activation\n\t */\n\thandleKeyDownSpace(event: Event): void {\n\t\tif (this.disabled()) return;\n\t\tevent.preventDefault();\n\t\tif (this.stopPropagation()) {\n\t\t\tevent.stopPropagation();\n\t\t}\n\t\tthis.keyDownSpace.emit(event as KeyboardEvent);\n\t\tthis.onItemClick();\n\t}\n\n\t/**\n\t * Computed CSS classes for the menu item\n\t */\n\titemClass = () =>\n\t\tcn(\n\t\t\t'group',\n\t\t\t'rounded-field',\n\t\t\t'transition-colors',\n\t\t\t'duration-200',\n\t\t\t{\n\t\t\t\t'menu-disabled pointer-events-none opacity-50': this.disabled(),\n\t\t\t\t'menu-active': this.checked(),\n\t\t\t},\n\t\t\tthis.class(),\n\t\t);\n\n\t/**\n\t * Computed CSS classes for the interactive item surface\n\t */\n\tanchorClass = () =>\n\t\tcn('flex items-center justify-between', {\n\t\t\t'bg-primary text-primary-content': this.checked() && !this.disabled(),\n\t\t});\n}\n","<li\n\t[class]=\"itemClass()\"\n\t[attr.data-state]=\"dataState()\"\n\t(click)=\"handleClick($event)\"\n\t(keydown.enter)=\"handleKeyDownEnter($event)\"\n\t(keydown.space)=\"handleKeyDownSpace($event)\"\n\t[attr.tabindex]=\"disabled() ? -1 : 0\"\n\trole=\"menuitemradio\"\n\t[attr.aria-checked]=\"checked()\"\n\t[attr.aria-disabled]=\"disabled()\"\n>\n\t<a [class]=\"anchorClass()\">\n\t\t<span class=\"flex-1\">\n\t\t\t<ng-content></ng-content>\n\t\t</span>\n\t\t@if (showIndicator()) {\n\t\t\t<span\n\t\t\t\tclass=\"ml-auto text-xs transition-opacity duration-300 ease-in-out group-aria-[checked=false]:opacity-0 group-aria-[checked=true]:opacity-100\"\n\t\t\t>\n\t\t\t\t{{ indicator() }}\n\t\t\t</span>\n\t\t}\n\t</a>\n</li>\n","import { Component, inject, input, output } from '@angular/core';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { DropdownComponent } from '../src/dropdown.component';\n\n/**\n * A selectable item component for use within dropdown menus\n *\n * @remarks\n * Designed to be used inside `<st-dropdown-content>` components. Handles selection events\n * and automatically closes the parent dropdown when clicked.\n *\n * @example\n * ```html\n * <st-dropdown-item (selected)=\"handleItemSelect()\">\n * <st-icon icon=\"check\"></st-icon>\n * <span typography>Select Item</span>\n * </st-dropdown-item>\n * ```\n *\n * @example\n * ```html\n * <st-dropdown-item class=\"custom-item-style\" (selected)=\"logSelection()\" [disabled]=\"true\">\n * Disabled item\n * </st-dropdown-item>\n * ```\n */\n@Component({\n\tselector: 'st-dropdown-item',\n\tstandalone: true,\n\ttemplateUrl: './dropdown-item.component.html',\n})\nexport class DropdownItemComponent {\n\tprivate readonly dropdown = inject(DropdownComponent, { optional: true });\n\n\t/**\n\t * Whether the menu item is active\n\t */\n\tactive = input<boolean>(false);\n\n\t/**\n\t * Custom CSS classes\n\t */\n\tclass = input<string>('');\n\n\t/**\n\t * Whether the item is disabled\n\t * @defaultValue false\n\t */\n\tdisabled = input<boolean>(false);\n\n\t/**\n\t * Whether to close the dropdown when the item is selected\n\t * @defaultValue true\n\t */\n\tcloseOnSelect = input<boolean>(true);\n\n\t/**\n\t * Event emitted when the item is selected\n\t */\n\tselected = output<void>();\n\n\t/**\n\t * Stop event propagation for activation events\n\t * @defaultValue false\n\t */\n\tstopPropagation = input<boolean>(false);\n\n\t/**\n\t * Event emitted on click\n\t */\n\tclicked = output<MouseEvent>();\n\n\t/**\n\t * Event emitted on Enter keydown\n\t */\n\tkeyDownEnter = output<KeyboardEvent>();\n\n\t/**\n\t * Event emitted on Space keydown\n\t */\n\tkeyDownSpace = output<KeyboardEvent>();\n\n\t/**\n\t * Event emitted on activation (click or keyboard)\n\t */\n\ttriggered = output<void>();\n\n\t/**\n\t * @internal\n\t * Handles item selection and dropdown state\n\t */\n\thandleSelect() {\n\t\tif (this.disabled()) return;\n\n\t\tthis.selected.emit();\n\t\tif (this.closeOnSelect()) {\n\t\t\tthis.dropdown?.trigger()?.close();\n\t\t}\n\t}\n\n\t/**\n\t * @internal\n\t * Handle click activation\n\t */\n\thandleClick(event: MouseEvent) {\n\t\tif (this.disabled()) return;\n\t\tif (this.stopPropagation()) {\n\t\t\tevent.stopPropagation();\n\t\t}\n\t\tthis.clicked.emit(event);\n\t\tthis.triggered.emit();\n\t\tthis.handleSelect();\n\t}\n\n\t/**\n\t * @internal\n\t * Handle Enter key activation\n\t */\n\thandleKeyDownEnter(event: Event) {\n\t\tif (this.disabled()) return;\n\t\tif (this.stopPropagation()) {\n\t\t\tevent.stopPropagation();\n\t\t}\n\t\tthis.keyDownEnter.emit(event as KeyboardEvent);\n\t\tthis.triggered.emit();\n\t\tthis.handleSelect();\n\t}\n\n\t/**\n\t * @internal\n\t * Handle Space key activation\n\t */\n\thandleKeyDownSpace(event: Event) {\n\t\tif (this.disabled()) return;\n\t\tevent.preventDefault();\n\t\tif (this.stopPropagation()) {\n\t\t\tevent.stopPropagation();\n\t\t}\n\t\tthis.keyDownSpace.emit(event as KeyboardEvent);\n\t\tthis.triggered.emit();\n\t\tthis.handleSelect();\n\t}\n\n\t/**\n\t * Computed CSS classes for the menu item\n\t */\n\titemClass = () =>\n\t\tcn(\n\t\t\t'rounded-field',\n\t\t\t'transition-colors',\n\t\t\t'duration-200',\n\t\t\t{\n\t\t\t\t'menu-disabled pointer-events-none opacity-50': this.disabled(),\n\t\t\t\t'menu-active': this.active(),\n\t\t\t},\n\t\t\tthis.class(),\n\t\t);\n}\n","<li\n\t[class]=\"itemClass()\"\n\t(click)=\"handleClick($event)\"\n\t(keydown.enter)=\"handleKeyDownEnter($event)\"\n\t(keydown.space)=\"handleKeyDownSpace($event)\"\n\t[attr.tabindex]=\"disabled() ? -1 : 0\"\n\trole=\"menuitem\"\n\t[attr.aria-disabled]=\"disabled()\"\n>\n\t<a>\n\t\t<ng-content></ng-content>\n\t</a>\n</li>\n","import { Component, input } from '@angular/core';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\n\n/**\n * DropdownLabel - Label for dropdown sections\n * Provides section headers for dropdown content\n */\n@Component({\n\tselector: 'st-dropdown-label',\n\tstandalone: true,\n\ttemplateUrl: './dropdown-label.component.html',\n})\nexport class DropdownLabelComponent {\n\t/**\n\t * Custom CSS classes\n\t */\n\tclass = input<string>('');\n\n\t/**\n\t * Computed CSS classes for the label\n\t */\n\tlabelClass = () => cn('menu-title', this.class());\n}\n","<div [class]=\"labelClass()\">\n\t<ng-content></ng-content>\n</div>\n","import { Component } from '@angular/core';\n\n/**\n * DropdownSeparator - Visual separator for dropdown menu sections\n *\n * @remarks\n * A simple horizontal divider to separate groups of dropdown items.\n *\n * @example\n * ```html\n * <st-dropdown-content>\n * <st-dropdown-item>Item 1</st-dropdown-item>\n * <st-dropdown-item>Item 2</st-dropdown-item>\n * <st-dropdown-separator></st-dropdown-separator>\n * <st-dropdown-item>Item 3</st-dropdown-item>\n * </st-dropdown-content>\n * ```\n */\n@Component({\n\tselector: 'st-dropdown-separator',\n\tstandalone: true,\n\ttemplateUrl: './dropdown-separator.component.html',\n})\nexport class DropdownSeparatorComponent {}\n","<li class=\"pointer-events-none top-0 left-0 mx-0 my-1 w-full p-0\"></li>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;AAsBA;;;;;;;;;;;;;;;;;;;;;;AAsBG;MAOU,wBAAwB,CAAA;AACjB,IAAA,eAAe,GAAG,MAAM,CAAC,eAAe,CAAC;;AAG5D,IAAA,OAAO,GAAG,KAAK,CAAS,CAAC,CAAC;;AAG1B,IAAA,OAAO,GAAG,KAAK,CAAS,CAAC,CAAC;;AAG1B,IAAA,OAAO,GAAG,KAAK,CAAoB,OAAO,CAAC;;AAG3C,IAAA,OAAO,GAAG,KAAK,CAAoB,QAAQ,CAAC;;AAG5C,IAAA,QAAQ,GAAG,KAAK,CAAoB,OAAO,CAAC;;AAG5C,IAAA,QAAQ,GAAG,KAAK,CAAoB,KAAK,CAAC;;IAG1C,SAAS,GAAG,KAAK,CAA4B,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;IAG/D,MAAM,GAAG,MAAM,EAAQ;;IAGvB,MAAM,GAAG,MAAM,EAAQ;AAEvB;;;AAGG;AACH,IAAA,eAAe,GAAG,KAAK,CAAU,KAAK,CAAC;AAEvC;;;AAGG;AACH,IAAA,eAAe,GAAG,KAAK,CAAS,CAAC,CAAC,CAAC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AAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAA1B,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,0BAA0B,iFCvBvC,6EACA,EAAA,CAAA;;4FDsBa,0BAA0B,EAAA,UAAA,EAAA,CAAA;kBALtC,SAAS;AACC,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,uBAAuB,cACrB,IAAI,EAAA,QAAA,EAAA,6EAAA,EAAA;;;AEpBjB;;AAEG;;;;"}
|
|
@@ -126,6 +126,11 @@ class DropzoneComponent {
|
|
|
126
126
|
* @defaultValue false
|
|
127
127
|
*/
|
|
128
128
|
stopPropagation = input(false);
|
|
129
|
+
/**
|
|
130
|
+
* Color variant for the file-action tooltips (play, download, remove)
|
|
131
|
+
* @defaultValue 'base'
|
|
132
|
+
*/
|
|
133
|
+
tooltipVariant = input('base');
|
|
129
134
|
/**
|
|
130
135
|
* Event emitted on click
|
|
131
136
|
*/
|
|
@@ -485,13 +490,13 @@ class DropzoneComponent {
|
|
|
485
490
|
});
|
|
486
491
|
});
|
|
487
492
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: DropzoneComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
488
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.25", type: DropzoneComponent, isStandalone: true, selector: "st-file-dropzone", inputs: { maxFiles: { classPropertyName: "maxFiles", publicName: "maxFiles", isSignal: true, isRequired: false, transformFunction: null }, maxFileSize: { classPropertyName: "maxFileSize", publicName: "maxFileSize", isSignal: true, isRequired: false, transformFunction: null }, showFiles: { classPropertyName: "showFiles", publicName: "showFiles", isSignal: true, isRequired: false, transformFunction: null }, extensions: { classPropertyName: "extensions", publicName: "extensions", isSignal: true, isRequired: true, transformFunction: null }, uploading: { classPropertyName: "uploading", publicName: "uploading", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, multiple: { classPropertyName: "multiple", publicName: "multiple", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, parentForm: { classPropertyName: "parentForm", publicName: "parentForm", isSignal: true, isRequired: false, transformFunction: null }, formControlName: { classPropertyName: "formControlName", publicName: "formControlName", isSignal: true, isRequired: false, transformFunction: null }, stopPropagation: { classPropertyName: "stopPropagation", publicName: "stopPropagation", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { disabled: "disabledChange", fileDropped: "fileDropped", fileRemoved: "fileRemoved", clicked: "clicked", pointerDown: "pointerDown", keyDownEnter: "keyDownEnter", keyDownSpace: "keyDownSpace", triggered: "triggered" }, providers: [
|
|
493
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.25", type: DropzoneComponent, isStandalone: true, selector: "st-file-dropzone", inputs: { maxFiles: { classPropertyName: "maxFiles", publicName: "maxFiles", isSignal: true, isRequired: false, transformFunction: null }, maxFileSize: { classPropertyName: "maxFileSize", publicName: "maxFileSize", isSignal: true, isRequired: false, transformFunction: null }, showFiles: { classPropertyName: "showFiles", publicName: "showFiles", isSignal: true, isRequired: false, transformFunction: null }, extensions: { classPropertyName: "extensions", publicName: "extensions", isSignal: true, isRequired: true, transformFunction: null }, uploading: { classPropertyName: "uploading", publicName: "uploading", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, multiple: { classPropertyName: "multiple", publicName: "multiple", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, parentForm: { classPropertyName: "parentForm", publicName: "parentForm", isSignal: true, isRequired: false, transformFunction: null }, formControlName: { classPropertyName: "formControlName", publicName: "formControlName", isSignal: true, isRequired: false, transformFunction: null }, stopPropagation: { classPropertyName: "stopPropagation", publicName: "stopPropagation", isSignal: true, isRequired: false, transformFunction: null }, tooltipVariant: { classPropertyName: "tooltipVariant", publicName: "tooltipVariant", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { disabled: "disabledChange", fileDropped: "fileDropped", fileRemoved: "fileRemoved", clicked: "clicked", pointerDown: "pointerDown", keyDownEnter: "keyDownEnter", keyDownSpace: "keyDownSpace", triggered: "triggered" }, providers: [
|
|
489
494
|
{
|
|
490
495
|
provide: NG_VALUE_ACCESSOR,
|
|
491
496
|
useExisting: forwardRef(() => DropzoneComponent),
|
|
492
497
|
multi: true,
|
|
493
498
|
},
|
|
494
|
-
], viewQueries: [{ propertyName: "fileInput", first: true, predicate: ["fileInput"], descendants: true, isSignal: true }], ngImport: i0, template: "<div class=\"w-full\">\n\t<div\n\t\t[class]=\"dropzoneClass()\"\n\t\t(dragover)=\"handleDragOver($event)\"\n\t\t(dragleave)=\"handleDragLeave($event)\"\n\t\t(drop)=\"handleDrop($event)\"\n\t\t(pointerdown)=\"handlePointerDown($event)\"\n\t\t(click)=\"handleClick($event)\"\n\t\t(keydown.enter)=\"handleKeyDownEnter($event)\"\n\t\t(keydown.space)=\"handleKeyDownSpace($event)\"\n\t\t(blur)=\"handleBlur()\"\n\t\ttabindex=\"0\"\n\t>\n\t\t@if (parentForm()) {\n\t\t\t<input\n\t\t\t\t#fileInput\n\t\t\t\ttype=\"file\"\n\t\t\t\t[multiple]=\"multiple()\"\n\t\t\t\t[accept]=\"accept()\"\n\t\t\t\t(change)=\"handleFileSelect($event)\"\n\t\t\t\t[name]=\"name()\"\n\t\t\t\t(blur)=\"handleBlur()\"\n\t\t\t\trequired\n\t\t\t\thidden\n\t\t\t/>\n\t\t} @else {\n\t\t\t<input #fileInput type=\"file\" [multiple]=\"multiple()\" [accept]=\"accept()\" (change)=\"handleFileSelect($event)\" [name]=\"name()\" required hidden />\n\t\t}\n\n\t\t<div class=\"grid h-48 place-content-center\">\n\t\t\t@let errorMessageVar = this.errorMessage();\n\t\t\t@if (errorMessageVar) {\n\t\t\t\t<div>\n\t\t\t\t\t<st-icon [icon]=\"iconError\" size=\"xl\" class=\"text-error\" />\n\t\t\t\t\t<div stText=\"7\">\n\t\t\t\t\t\t{{ errorMessageVar }}\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t} @else if (!uploading()) {\n\t\t\t\t<div>\n\t\t\t\t\t<st-icon [icon]=\"iconCloudUpload\" size=\"xl\" class=\"text-accent\" />\n\t\t\t\t\t<div stText=\"7\">\n\t\t\t\t\t\t{{ 'sdk.fileUpload.dropzone.selectPrompt' | translate }}\n\t\t\t\t\t</div>\n\n\t\t\t\t\t@if (maxFileSize() > 0) {\n\t\t\t\t\t\t<div class=\"mt-1\">\n\t\t\t\t\t\t\t<span stText=\"8\" stTextWeight=\"medium\">\n\t\t\t\t\t\t\t\t{{ 'sdk.fileUpload.dropzone.maxSizeLabel' | translate }} <span class=\"text-accent\">{{ maxFileSize() | toBytes }}</span>\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t}\n\n\t\t\t\t\t@if (extensions().length > 0) {\n\t\t\t\t\t\t<div class=\"mt-1\">\n\t\t\t\t\t\t\t<span stText=\"8\" stTextWeight=\"medium\">\n\t\t\t\t\t\t\t\t{{ 'sdk.fileUpload.dropzone.allowedTypesLabel' | translate }} <span class=\"text-accent\">{{ extensions().join(', ') }}</span>\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t}\n\t\t\t\t</div>\n\t\t\t}\n\t\t</div>\n\t</div>\n\n\t@if (maxFiles() > 0) {\n\t\t<div class=\"mt-4 flex items-center justify-between\">\n\t\t\t<ng-content></ng-content>\n\t\t\t<span stText=\"8\" [ngClass]=\"{ 'text-error': files().length > maxFiles() }\">\n\t\t\t\t{{ 'sdk.fileUpload.dropzone.fileCounter' | translate: { current: files().length, max: maxFiles() } }}\n\t\t\t</span>\n\t\t</div>\n\t}\n\n\t@if (showFiles() && files().length > 0) {\n\t\t<div class=\"mt-4 space-y-2\">\n\t\t\t@for (file of files(); track $index) {\n\t\t\t\t<div class=\"file-dropzone-row bg-neutral/30 rounded-box flex items-center justify-between py-3 pr-5 pl-3\">\n\t\t\t\t\t<div class=\"flex items-center justify-start\">\n\t\t\t\t\t\t<div class=\"text-primary relative\">\n\t\t\t\t\t\t\t<st-icon [icon]=\"iconInsertDriveFile\" size=\"xl\" />\n\t\t\t\t\t\t\t<div class=\"absolute bottom-2 left-1/2 -translate-x-1/2\">\n\t\t\t\t\t\t\t\t<span class=\"text-primary-content\" stText=\"10\" stTextWeight=\"medium\">\n\t\t\t\t\t\t\t\t\t{{ file.name | extractExtension }}\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class=\"flex flex-col items-start justify-between\">\n\t\t\t\t\t\t\t<span stText=\"7\">\n\t\t\t\t\t\t\t\t{{ file.name }}
|
|
499
|
+
], viewQueries: [{ propertyName: "fileInput", first: true, predicate: ["fileInput"], descendants: true, isSignal: true }], ngImport: i0, template: "<div class=\"w-full\">\n\t<div\n\t\t[class]=\"dropzoneClass()\"\n\t\t(dragover)=\"handleDragOver($event)\"\n\t\t(dragleave)=\"handleDragLeave($event)\"\n\t\t(drop)=\"handleDrop($event)\"\n\t\t(pointerdown)=\"handlePointerDown($event)\"\n\t\t(click)=\"handleClick($event)\"\n\t\t(keydown.enter)=\"handleKeyDownEnter($event)\"\n\t\t(keydown.space)=\"handleKeyDownSpace($event)\"\n\t\t(blur)=\"handleBlur()\"\n\t\ttabindex=\"0\"\n\t>\n\t\t@if (parentForm()) {\n\t\t\t<input\n\t\t\t\t#fileInput\n\t\t\t\ttype=\"file\"\n\t\t\t\t[multiple]=\"multiple()\"\n\t\t\t\t[accept]=\"accept()\"\n\t\t\t\t(change)=\"handleFileSelect($event)\"\n\t\t\t\t[name]=\"name()\"\n\t\t\t\t(blur)=\"handleBlur()\"\n\t\t\t\trequired\n\t\t\t\thidden\n\t\t\t/>\n\t\t} @else {\n\t\t\t<input #fileInput type=\"file\" [multiple]=\"multiple()\" [accept]=\"accept()\" (change)=\"handleFileSelect($event)\" [name]=\"name()\" required hidden />\n\t\t}\n\n\t\t<div class=\"grid h-48 place-content-center\">\n\t\t\t@let errorMessageVar = this.errorMessage();\n\t\t\t@if (errorMessageVar) {\n\t\t\t\t<div>\n\t\t\t\t\t<st-icon [icon]=\"iconError\" size=\"xl\" class=\"text-error\" />\n\t\t\t\t\t<div stText=\"7\">\n\t\t\t\t\t\t{{ errorMessageVar }}\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t} @else if (!uploading()) {\n\t\t\t\t<div>\n\t\t\t\t\t<st-icon [icon]=\"iconCloudUpload\" size=\"xl\" class=\"text-accent\" />\n\t\t\t\t\t<div stText=\"7\">\n\t\t\t\t\t\t{{ 'sdk.fileUpload.dropzone.selectPrompt' | translate }}\n\t\t\t\t\t</div>\n\n\t\t\t\t\t@if (maxFileSize() > 0) {\n\t\t\t\t\t\t<div class=\"mt-1\">\n\t\t\t\t\t\t\t<span stText=\"8\" stTextWeight=\"medium\">\n\t\t\t\t\t\t\t\t{{ 'sdk.fileUpload.dropzone.maxSizeLabel' | translate }} <span class=\"text-accent\">{{ maxFileSize() | toBytes }}</span>\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t}\n\n\t\t\t\t\t@if (extensions().length > 0) {\n\t\t\t\t\t\t<div class=\"mt-1\">\n\t\t\t\t\t\t\t<span stText=\"8\" stTextWeight=\"medium\">\n\t\t\t\t\t\t\t\t{{ 'sdk.fileUpload.dropzone.allowedTypesLabel' | translate }} <span class=\"text-accent\">{{ extensions().join(', ') }}</span>\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t}\n\t\t\t\t</div>\n\t\t\t}\n\t\t</div>\n\t</div>\n\n\t@if (maxFiles() > 0) {\n\t\t<div class=\"mt-4 flex items-center justify-between\">\n\t\t\t<ng-content></ng-content>\n\t\t\t<span stText=\"8\" [ngClass]=\"{ 'text-error': files().length > maxFiles() }\">\n\t\t\t\t{{ 'sdk.fileUpload.dropzone.fileCounter' | translate: { current: files().length, max: maxFiles() } }}\n\t\t\t</span>\n\t\t</div>\n\t}\n\n\t@if (showFiles() && files().length > 0) {\n\t\t<div class=\"mt-4 space-y-2\">\n\t\t\t@for (file of files(); track $index) {\n\t\t\t\t<div class=\"file-dropzone-row bg-neutral/30 rounded-box flex items-center justify-between gap-4 py-3 pr-5 pl-3\">\n\t\t\t\t\t<div class=\"file-dropzone-info flex min-w-0 flex-1 items-center justify-start gap-2\">\n\t\t\t\t\t\t<div class=\"text-primary relative shrink-0\">\n\t\t\t\t\t\t\t<st-icon [icon]=\"iconInsertDriveFile\" size=\"xl\" />\n\t\t\t\t\t\t\t<div class=\"absolute bottom-2 left-1/2 -translate-x-1/2\">\n\t\t\t\t\t\t\t\t<span class=\"text-primary-content\" stText=\"10\" stTextWeight=\"medium\">\n\t\t\t\t\t\t\t\t\t{{ file.name | extractExtension }}\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class=\"flex min-w-0 flex-1 flex-col items-start justify-between\">\n\t\t\t\t\t\t\t<span class=\"block max-w-full overflow-hidden\" stText=\"7\">\n\t\t\t\t\t\t\t\t<span class=\"block truncate\" [title]=\"file.name\">{{ file.name }}</span>\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t<span class=\"text-base-content/60\" stText=\"9\">{{ file.size | toBytes }}</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\n\t\t\t\t\t<div class=\"file-dropzone-actions inline-flex shrink-0 items-center justify-end gap-1 align-top\">\n\t\t\t\t\t\t@if (checkIfIsAudioFile(file)) {\n\t\t\t\t\t\t\t<st-tooltip\n\t\t\t\t\t\t\t\t[label]=\"\n\t\t\t\t\t\t\t\t\t!this.audioService.isPlayingATrack()\n\t\t\t\t\t\t\t\t\t\t? ('sdk.fileUpload.dropzone.fileActions.play' | translate)\n\t\t\t\t\t\t\t\t\t\t: ('sdk.fileUpload.dropzone.fileActions.pause' | translate)\n\t\t\t\t\t\t\t\t\"\n\t\t\t\t\t\t\t\t[variant]=\"tooltipVariant()\"\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<st-button-play\n\t\t\t\t\t\t\t\t\t[outline]=\"true\"\n\t\t\t\t\t\t\t\t\t[square]=\"true\"\n\t\t\t\t\t\t\t\t\tsize=\"sm\"\n\t\t\t\t\t\t\t\t\t[asButton]=\"true\"\n\t\t\t\t\t\t\t\t\t[trackIndex]=\"getIndexForTracks(file)\"\n\t\t\t\t\t\t\t\t\t(togglePlay)=\"handleAudioPlayerOpen()\"\n\t\t\t\t\t\t\t\t></st-button-play>\n\t\t\t\t\t\t\t</st-tooltip>\n\t\t\t\t\t\t}\n\t\t\t\t\t\t<div></div>\n\t\t\t\t\t\t<st-tooltip [label]=\"'sdk.fileUpload.dropzone.fileActions.download' | translate\" [variant]=\"tooltipVariant()\">\n\t\t\t\t\t\t\t<st-button variant=\"info\" [outline]=\"true\" [square]=\"true\" size=\"sm\" (click)=\"handlefileDownload(file)\">\n\t\t\t\t\t\t\t\t<st-icon class=\"text-lg\" [icon]=\"iconDownload\"></st-icon>\n\t\t\t\t\t\t\t</st-button>\n\t\t\t\t\t\t</st-tooltip>\n\t\t\t\t\t\t<st-tooltip [label]=\"'sdk.fileUpload.dropzone.fileActions.remove' | translate\" [variant]=\"tooltipVariant()\">\n\t\t\t\t\t\t\t<st-button variant=\"error\" [outline]=\"true\" [square]=\"true\" size=\"sm\" (click)=\"handleRemove(file)\">\n\t\t\t\t\t\t\t\t<st-icon class=\"text-lg\" [icon]=\"iconDelete\"></st-icon>\n\t\t\t\t\t\t\t</st-button>\n\t\t\t\t\t\t</st-tooltip>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t}\n\t\t</div>\n\t}\n</div>\n@if (addAudioPlayer()) {\n\t<st-audio-player [tracks]=\"tracks()\" [showTrackList]=\"false\" variant=\"fixed\" [(opened)]=\"opened\"></st-audio-player>\n}\n", dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { 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"] }, { kind: "pipe", type: ToBytesPipe, name: "toBytes" }, { kind: "pipe", type: ExtractExtensionPipe, name: "extractExtension" }, { kind: "component", type: IconComponent, selector: "st-icon", inputs: ["color", "size", "icon"] }, { kind: "component", type: ButtonPlayComponent, selector: "st-button-play", inputs: ["variant", "ghost", "outline", "circle", "square", "glass", "size", "shadow", "asButton", "trackIndex"], outputs: ["togglePlay"] }, { kind: "component", type: AudioPlayerComponent, selector: "st-audio-player", inputs: ["variant", "shadow", "opened", "tracks", "showTrackList", "currentTrackIndex"], outputs: ["openedChange", "currentTrackIndexChange"] }, { kind: "ngmodule", type: FormsModule }, { kind: "pipe", type: TranslatePipe, name: "translate" }, { kind: "component", type: TooltipComponent, selector: "st-tooltip", inputs: ["variant", "position", "label", "icon", "iconPosition"] }] });
|
|
495
500
|
}
|
|
496
501
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: DropzoneComponent, decorators: [{
|
|
497
502
|
type: Component,
|
|
@@ -513,7 +518,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImpo
|
|
|
513
518
|
useExisting: forwardRef(() => DropzoneComponent),
|
|
514
519
|
multi: true,
|
|
515
520
|
},
|
|
516
|
-
], template: "<div class=\"w-full\">\n\t<div\n\t\t[class]=\"dropzoneClass()\"\n\t\t(dragover)=\"handleDragOver($event)\"\n\t\t(dragleave)=\"handleDragLeave($event)\"\n\t\t(drop)=\"handleDrop($event)\"\n\t\t(pointerdown)=\"handlePointerDown($event)\"\n\t\t(click)=\"handleClick($event)\"\n\t\t(keydown.enter)=\"handleKeyDownEnter($event)\"\n\t\t(keydown.space)=\"handleKeyDownSpace($event)\"\n\t\t(blur)=\"handleBlur()\"\n\t\ttabindex=\"0\"\n\t>\n\t\t@if (parentForm()) {\n\t\t\t<input\n\t\t\t\t#fileInput\n\t\t\t\ttype=\"file\"\n\t\t\t\t[multiple]=\"multiple()\"\n\t\t\t\t[accept]=\"accept()\"\n\t\t\t\t(change)=\"handleFileSelect($event)\"\n\t\t\t\t[name]=\"name()\"\n\t\t\t\t(blur)=\"handleBlur()\"\n\t\t\t\trequired\n\t\t\t\thidden\n\t\t\t/>\n\t\t} @else {\n\t\t\t<input #fileInput type=\"file\" [multiple]=\"multiple()\" [accept]=\"accept()\" (change)=\"handleFileSelect($event)\" [name]=\"name()\" required hidden />\n\t\t}\n\n\t\t<div class=\"grid h-48 place-content-center\">\n\t\t\t@let errorMessageVar = this.errorMessage();\n\t\t\t@if (errorMessageVar) {\n\t\t\t\t<div>\n\t\t\t\t\t<st-icon [icon]=\"iconError\" size=\"xl\" class=\"text-error\" />\n\t\t\t\t\t<div stText=\"7\">\n\t\t\t\t\t\t{{ errorMessageVar }}\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t} @else if (!uploading()) {\n\t\t\t\t<div>\n\t\t\t\t\t<st-icon [icon]=\"iconCloudUpload\" size=\"xl\" class=\"text-accent\" />\n\t\t\t\t\t<div stText=\"7\">\n\t\t\t\t\t\t{{ 'sdk.fileUpload.dropzone.selectPrompt' | translate }}\n\t\t\t\t\t</div>\n\n\t\t\t\t\t@if (maxFileSize() > 0) {\n\t\t\t\t\t\t<div class=\"mt-1\">\n\t\t\t\t\t\t\t<span stText=\"8\" stTextWeight=\"medium\">\n\t\t\t\t\t\t\t\t{{ 'sdk.fileUpload.dropzone.maxSizeLabel' | translate }} <span class=\"text-accent\">{{ maxFileSize() | toBytes }}</span>\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t}\n\n\t\t\t\t\t@if (extensions().length > 0) {\n\t\t\t\t\t\t<div class=\"mt-1\">\n\t\t\t\t\t\t\t<span stText=\"8\" stTextWeight=\"medium\">\n\t\t\t\t\t\t\t\t{{ 'sdk.fileUpload.dropzone.allowedTypesLabel' | translate }} <span class=\"text-accent\">{{ extensions().join(', ') }}</span>\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t}\n\t\t\t\t</div>\n\t\t\t}\n\t\t</div>\n\t</div>\n\n\t@if (maxFiles() > 0) {\n\t\t<div class=\"mt-4 flex items-center justify-between\">\n\t\t\t<ng-content></ng-content>\n\t\t\t<span stText=\"8\" [ngClass]=\"{ 'text-error': files().length > maxFiles() }\">\n\t\t\t\t{{ 'sdk.fileUpload.dropzone.fileCounter' | translate: { current: files().length, max: maxFiles() } }}\n\t\t\t</span>\n\t\t</div>\n\t}\n\n\t@if (showFiles() && files().length > 0) {\n\t\t<div class=\"mt-4 space-y-2\">\n\t\t\t@for (file of files(); track $index) {\n\t\t\t\t<div class=\"file-dropzone-row bg-neutral/30 rounded-box flex items-center justify-between py-3 pr-5 pl-3\">\n\t\t\t\t\t<div class=\"flex items-center justify-start\">\n\t\t\t\t\t\t<div class=\"text-primary relative\">\n\t\t\t\t\t\t\t<st-icon [icon]=\"iconInsertDriveFile\" size=\"xl\" />\n\t\t\t\t\t\t\t<div class=\"absolute bottom-2 left-1/2 -translate-x-1/2\">\n\t\t\t\t\t\t\t\t<span class=\"text-primary-content\" stText=\"10\" stTextWeight=\"medium\">\n\t\t\t\t\t\t\t\t\t{{ file.name | extractExtension }}\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class=\"flex flex-col items-start justify-between\">\n\t\t\t\t\t\t\t<span stText=\"7\">\n\t\t\t\t\t\t\t\t{{ file.name }}
|
|
521
|
+
], template: "<div class=\"w-full\">\n\t<div\n\t\t[class]=\"dropzoneClass()\"\n\t\t(dragover)=\"handleDragOver($event)\"\n\t\t(dragleave)=\"handleDragLeave($event)\"\n\t\t(drop)=\"handleDrop($event)\"\n\t\t(pointerdown)=\"handlePointerDown($event)\"\n\t\t(click)=\"handleClick($event)\"\n\t\t(keydown.enter)=\"handleKeyDownEnter($event)\"\n\t\t(keydown.space)=\"handleKeyDownSpace($event)\"\n\t\t(blur)=\"handleBlur()\"\n\t\ttabindex=\"0\"\n\t>\n\t\t@if (parentForm()) {\n\t\t\t<input\n\t\t\t\t#fileInput\n\t\t\t\ttype=\"file\"\n\t\t\t\t[multiple]=\"multiple()\"\n\t\t\t\t[accept]=\"accept()\"\n\t\t\t\t(change)=\"handleFileSelect($event)\"\n\t\t\t\t[name]=\"name()\"\n\t\t\t\t(blur)=\"handleBlur()\"\n\t\t\t\trequired\n\t\t\t\thidden\n\t\t\t/>\n\t\t} @else {\n\t\t\t<input #fileInput type=\"file\" [multiple]=\"multiple()\" [accept]=\"accept()\" (change)=\"handleFileSelect($event)\" [name]=\"name()\" required hidden />\n\t\t}\n\n\t\t<div class=\"grid h-48 place-content-center\">\n\t\t\t@let errorMessageVar = this.errorMessage();\n\t\t\t@if (errorMessageVar) {\n\t\t\t\t<div>\n\t\t\t\t\t<st-icon [icon]=\"iconError\" size=\"xl\" class=\"text-error\" />\n\t\t\t\t\t<div stText=\"7\">\n\t\t\t\t\t\t{{ errorMessageVar }}\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t} @else if (!uploading()) {\n\t\t\t\t<div>\n\t\t\t\t\t<st-icon [icon]=\"iconCloudUpload\" size=\"xl\" class=\"text-accent\" />\n\t\t\t\t\t<div stText=\"7\">\n\t\t\t\t\t\t{{ 'sdk.fileUpload.dropzone.selectPrompt' | translate }}\n\t\t\t\t\t</div>\n\n\t\t\t\t\t@if (maxFileSize() > 0) {\n\t\t\t\t\t\t<div class=\"mt-1\">\n\t\t\t\t\t\t\t<span stText=\"8\" stTextWeight=\"medium\">\n\t\t\t\t\t\t\t\t{{ 'sdk.fileUpload.dropzone.maxSizeLabel' | translate }} <span class=\"text-accent\">{{ maxFileSize() | toBytes }}</span>\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t}\n\n\t\t\t\t\t@if (extensions().length > 0) {\n\t\t\t\t\t\t<div class=\"mt-1\">\n\t\t\t\t\t\t\t<span stText=\"8\" stTextWeight=\"medium\">\n\t\t\t\t\t\t\t\t{{ 'sdk.fileUpload.dropzone.allowedTypesLabel' | translate }} <span class=\"text-accent\">{{ extensions().join(', ') }}</span>\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t}\n\t\t\t\t</div>\n\t\t\t}\n\t\t</div>\n\t</div>\n\n\t@if (maxFiles() > 0) {\n\t\t<div class=\"mt-4 flex items-center justify-between\">\n\t\t\t<ng-content></ng-content>\n\t\t\t<span stText=\"8\" [ngClass]=\"{ 'text-error': files().length > maxFiles() }\">\n\t\t\t\t{{ 'sdk.fileUpload.dropzone.fileCounter' | translate: { current: files().length, max: maxFiles() } }}\n\t\t\t</span>\n\t\t</div>\n\t}\n\n\t@if (showFiles() && files().length > 0) {\n\t\t<div class=\"mt-4 space-y-2\">\n\t\t\t@for (file of files(); track $index) {\n\t\t\t\t<div class=\"file-dropzone-row bg-neutral/30 rounded-box flex items-center justify-between gap-4 py-3 pr-5 pl-3\">\n\t\t\t\t\t<div class=\"file-dropzone-info flex min-w-0 flex-1 items-center justify-start gap-2\">\n\t\t\t\t\t\t<div class=\"text-primary relative shrink-0\">\n\t\t\t\t\t\t\t<st-icon [icon]=\"iconInsertDriveFile\" size=\"xl\" />\n\t\t\t\t\t\t\t<div class=\"absolute bottom-2 left-1/2 -translate-x-1/2\">\n\t\t\t\t\t\t\t\t<span class=\"text-primary-content\" stText=\"10\" stTextWeight=\"medium\">\n\t\t\t\t\t\t\t\t\t{{ file.name | extractExtension }}\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class=\"flex min-w-0 flex-1 flex-col items-start justify-between\">\n\t\t\t\t\t\t\t<span class=\"block max-w-full overflow-hidden\" stText=\"7\">\n\t\t\t\t\t\t\t\t<span class=\"block truncate\" [title]=\"file.name\">{{ file.name }}</span>\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t<span class=\"text-base-content/60\" stText=\"9\">{{ file.size | toBytes }}</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\n\t\t\t\t\t<div class=\"file-dropzone-actions inline-flex shrink-0 items-center justify-end gap-1 align-top\">\n\t\t\t\t\t\t@if (checkIfIsAudioFile(file)) {\n\t\t\t\t\t\t\t<st-tooltip\n\t\t\t\t\t\t\t\t[label]=\"\n\t\t\t\t\t\t\t\t\t!this.audioService.isPlayingATrack()\n\t\t\t\t\t\t\t\t\t\t? ('sdk.fileUpload.dropzone.fileActions.play' | translate)\n\t\t\t\t\t\t\t\t\t\t: ('sdk.fileUpload.dropzone.fileActions.pause' | translate)\n\t\t\t\t\t\t\t\t\"\n\t\t\t\t\t\t\t\t[variant]=\"tooltipVariant()\"\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<st-button-play\n\t\t\t\t\t\t\t\t\t[outline]=\"true\"\n\t\t\t\t\t\t\t\t\t[square]=\"true\"\n\t\t\t\t\t\t\t\t\tsize=\"sm\"\n\t\t\t\t\t\t\t\t\t[asButton]=\"true\"\n\t\t\t\t\t\t\t\t\t[trackIndex]=\"getIndexForTracks(file)\"\n\t\t\t\t\t\t\t\t\t(togglePlay)=\"handleAudioPlayerOpen()\"\n\t\t\t\t\t\t\t\t></st-button-play>\n\t\t\t\t\t\t\t</st-tooltip>\n\t\t\t\t\t\t}\n\t\t\t\t\t\t<div></div>\n\t\t\t\t\t\t<st-tooltip [label]=\"'sdk.fileUpload.dropzone.fileActions.download' | translate\" [variant]=\"tooltipVariant()\">\n\t\t\t\t\t\t\t<st-button variant=\"info\" [outline]=\"true\" [square]=\"true\" size=\"sm\" (click)=\"handlefileDownload(file)\">\n\t\t\t\t\t\t\t\t<st-icon class=\"text-lg\" [icon]=\"iconDownload\"></st-icon>\n\t\t\t\t\t\t\t</st-button>\n\t\t\t\t\t\t</st-tooltip>\n\t\t\t\t\t\t<st-tooltip [label]=\"'sdk.fileUpload.dropzone.fileActions.remove' | translate\" [variant]=\"tooltipVariant()\">\n\t\t\t\t\t\t\t<st-button variant=\"error\" [outline]=\"true\" [square]=\"true\" size=\"sm\" (click)=\"handleRemove(file)\">\n\t\t\t\t\t\t\t\t<st-icon class=\"text-lg\" [icon]=\"iconDelete\"></st-icon>\n\t\t\t\t\t\t\t</st-button>\n\t\t\t\t\t\t</st-tooltip>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t}\n\t\t</div>\n\t}\n</div>\n@if (addAudioPlayer()) {\n\t<st-audio-player [tracks]=\"tracks()\" [showTrackList]=\"false\" variant=\"fixed\" [(opened)]=\"opened\"></st-audio-player>\n}\n" }]
|
|
517
522
|
}] });
|
|
518
523
|
|
|
519
524
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|