@sixbell-telco/sdk 0.5.2 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/README.md +17 -3
- package/_index.scss +6 -0
- package/components/audio-player/audio-timeline/audio-timeline.component.d.ts +20 -0
- package/components/audio-player/button-play/button-play.component.d.ts +23 -0
- package/components/audio-player/index.d.ts +5 -0
- package/components/audio-player/public-api.d.ts +3 -0
- package/components/audio-player/services/audio.service.d.ts +50 -0
- package/components/audio-player/src/audio-player.component.d.ts +31 -0
- package/components/audio-player/track-info/track-info.component.d.ts +8 -0
- package/components/audio-player/volume-control/volume-control.component.d.ts +24 -0
- package/components/button/src/button.component.d.ts +2 -1
- package/components/icon/heroicons/mini/index.d.ts +5 -0
- package/components/icon/heroicons/mini/public-api.d.ts +1 -0
- package/components/icon/heroicons/outline/index.d.ts +5 -0
- package/components/icon/heroicons/outline/public-api.d.ts +1 -0
- package/components/icon/heroicons/solid/index.d.ts +5 -0
- package/components/icon/heroicons/solid/public-api.d.ts +1 -0
- package/components/icon/ionicons/index.d.ts +5 -0
- package/components/icon/ionicons/public-api.d.ts +1 -0
- package/components/toast/services/toast.service.d.ts +0 -1
- package/components/toast/toasts-container/toasts-container.component.d.ts +0 -1
- package/directives/typography/src/typography.directive.d.ts +4 -1
- package/esm2022/components/accordion/accordion-item/accordion-item.component.mjs +1 -1
- package/esm2022/components/audio-player/audio-timeline/audio-timeline.component.mjs +76 -0
- package/esm2022/components/audio-player/button-play/button-play.component.mjs +62 -0
- package/esm2022/components/audio-player/public-api.mjs +4 -0
- package/esm2022/components/audio-player/services/audio.service.mjs +160 -0
- package/esm2022/components/audio-player/sixbell-telco-sdk-components-audio-player.mjs +5 -0
- package/esm2022/components/audio-player/src/audio-player.component.mjs +79 -0
- package/esm2022/components/audio-player/track-info/track-info.component.mjs +17 -0
- package/esm2022/components/audio-player/volume-control/volume-control.component.mjs +83 -0
- package/esm2022/components/avatar/src/avatar.component.mjs +1 -1
- package/esm2022/components/button/src/button.component.mjs +5 -3
- package/esm2022/components/dual-list/src/dual-list.component.mjs +2 -2
- package/esm2022/components/file-upload/file-dropzone/src/file-dropzone.component.mjs +2 -2
- package/esm2022/components/file-upload/file-uploader/src/file-uploader.component.mjs +1 -1
- package/esm2022/components/forms/checkbox/src/checkbox.component.mjs +1 -1
- package/esm2022/components/forms/combobox/src/combobox.component.mjs +2 -2
- package/esm2022/components/forms/form-error/src/form-error.component.mjs +1 -1
- package/esm2022/components/forms/input/src/input.component.mjs +5 -2
- package/esm2022/components/forms/radio/src/radio.component.mjs +1 -1
- package/esm2022/components/forms/range/src/range.component.mjs +2 -2
- package/esm2022/components/forms/select/src/select.component.mjs +1 -1
- package/esm2022/components/forms/switch/src/switch.component.mjs +1 -1
- package/esm2022/components/forms/textarea/src/textarea.component.mjs +2 -2
- package/esm2022/components/forms/toggle/src/toggle.component.mjs +1 -1
- package/esm2022/components/icon/heroicons/mini/public-api.mjs +2 -0
- package/esm2022/components/icon/heroicons/mini/sixbell-telco-sdk-components-icon-heroicons-mini.mjs +5 -0
- package/esm2022/components/icon/heroicons/outline/public-api.mjs +2 -0
- package/esm2022/components/icon/heroicons/outline/sixbell-telco-sdk-components-icon-heroicons-outline.mjs +5 -0
- package/esm2022/components/icon/heroicons/solid/public-api.mjs +2 -0
- package/esm2022/components/icon/heroicons/solid/sixbell-telco-sdk-components-icon-heroicons-solid.mjs +5 -0
- package/esm2022/components/icon/ionicons/public-api.mjs +2 -0
- package/esm2022/components/icon/ionicons/sixbell-telco-sdk-components-icon-ionicons.mjs +5 -0
- package/esm2022/components/modal/modal-title/modal-title.component.mjs +3 -3
- package/esm2022/components/paginator/components/pagination-item/pagination-item.component.mjs +1 -1
- package/esm2022/components/product-card/src/product-card.component.mjs +2 -2
- package/esm2022/components/progress/src/progress.component.mjs +1 -1
- package/esm2022/components/table/src/table.component.mjs +3 -3
- package/esm2022/components/toast/services/toast.service.mjs +3 -13
- package/esm2022/components/toast/toast-message/toast-message.component.mjs +2 -2
- package/esm2022/components/toast/toasts-container/toasts-container.component.mjs +3 -11
- package/esm2022/components/wizard/wizard-marker/wizard-marker.component.mjs +1 -1
- package/esm2022/components/wizard/wizard-step/wizard-step.component.mjs +2 -2
- package/esm2022/components/wizard/wizard-wrapper/wizard-wrapper.component.mjs +2 -2
- package/esm2022/directives/typography/src/typography.directive.mjs +9 -2
- package/esm2022/utils/pipes/time/public-api.mjs +2 -0
- package/esm2022/utils/pipes/time/sixbell-telco-sdk-utils-pipes-time.mjs +5 -0
- package/esm2022/utils/pipes/time/src/time.pipe.mjs +19 -0
- package/fesm2022/sixbell-telco-sdk-components-accordion.mjs +1 -1
- package/fesm2022/sixbell-telco-sdk-components-accordion.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-audio-player.mjs +450 -0
- package/fesm2022/sixbell-telco-sdk-components-audio-player.mjs.map +1 -0
- package/fesm2022/sixbell-telco-sdk-components-avatar.mjs +1 -1
- package/fesm2022/sixbell-telco-sdk-components-avatar.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-button.mjs +4 -2
- package/fesm2022/sixbell-telco-sdk-components-button.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dual-list.mjs +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dual-list.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-file-upload-file-dropzone.mjs +1 -1
- package/fesm2022/sixbell-telco-sdk-components-file-upload-file-dropzone.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-file-upload-file-uploader.mjs +1 -1
- package/fesm2022/sixbell-telco-sdk-components-file-upload-file-uploader.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-checkbox.mjs +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-checkbox.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-combobox.mjs +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-combobox.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-form-error.mjs +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-form-error.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-input.mjs +4 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-input.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-radio.mjs +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-radio.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-range.mjs +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-range.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-select.mjs +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-select.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-switch.mjs +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-switch.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-textarea.mjs +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-textarea.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-toggle.mjs +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-toggle.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-icon-heroicons-mini.mjs +6 -0
- package/fesm2022/sixbell-telco-sdk-components-icon-heroicons-mini.mjs.map +1 -0
- package/fesm2022/sixbell-telco-sdk-components-icon-heroicons-outline.mjs +6 -0
- package/fesm2022/sixbell-telco-sdk-components-icon-heroicons-outline.mjs.map +1 -0
- package/fesm2022/sixbell-telco-sdk-components-icon-heroicons-solid.mjs +6 -0
- package/fesm2022/sixbell-telco-sdk-components-icon-heroicons-solid.mjs.map +1 -0
- package/fesm2022/sixbell-telco-sdk-components-icon-ionicons.mjs +6 -0
- package/fesm2022/sixbell-telco-sdk-components-icon-ionicons.mjs.map +1 -0
- package/fesm2022/sixbell-telco-sdk-components-modal.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-modal.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-paginator.mjs +1 -1
- package/fesm2022/sixbell-telco-sdk-components-paginator.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-product-card.mjs +1 -1
- package/fesm2022/sixbell-telco-sdk-components-product-card.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-progress.mjs +1 -1
- package/fesm2022/sixbell-telco-sdk-components-progress.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-table.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-table.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-toast.mjs +4 -22
- package/fesm2022/sixbell-telco-sdk-components-toast.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-wizard.mjs +3 -3
- package/fesm2022/sixbell-telco-sdk-components-wizard.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-directives-typography.mjs +8 -1
- package/fesm2022/sixbell-telco-sdk-directives-typography.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-utils-pipes-time.mjs +26 -0
- package/fesm2022/sixbell-telco-sdk-utils-pipes-time.mjs.map +1 -0
- package/package.json +68 -29
- package/utils/pipes/time/index.d.ts +5 -0
- package/utils/pipes/time/public-api.d.ts +1 -0
- package/utils/pipes/time/src/time.pipe.d.ts +7 -0
package/CHANGELOG.md
CHANGED
|
@@ -96,6 +96,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
96
96
|
- **Background Color**: Added background color to accordion items for improved visibility (`8d9621c`)
|
|
97
97
|
- **Badge Component**: Add Badge component with customizable variants and sizes (`6a36b66`)
|
|
98
98
|
- **Showcase**: Integrate Badge component with various styles and sizes (`0f0799f`)
|
|
99
|
+
- **Showcase**: Add multiple input variants with disabled state example (`a960358`)
|
|
100
|
+
- **Audio Player**: Implemented audio player service with track management and playback controls (`9b2c680`)
|
|
99
101
|
|
|
100
102
|
### Fixed
|
|
101
103
|
|
|
@@ -115,6 +117,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
115
117
|
- **Modal**: Change modal title from div to h2 for improved semantics (`d8c0793`)
|
|
116
118
|
- **Tab**: Add rounded-box class and default variant to tab component (`0717fea`)
|
|
117
119
|
- **Typography**: Adjust typography sizes for heading elements (`91b7d82`)
|
|
120
|
+
- **Modal**: Update font weight to medium for improved readability (`3055292`)
|
|
121
|
+
- **Input**: Add logic to handle disable state properly with related styles (`07e84f2`)
|
|
118
122
|
|
|
119
123
|
### Removed
|
|
120
124
|
|
|
@@ -362,3 +366,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
362
366
|
- Add onClose and onClickOutside event handlers with improved logging (`26fe6ba`)
|
|
363
367
|
- Enhance click handling and emit onClose event (`5a4c688`)
|
|
364
368
|
- **Showcase**: Update typography in button section (`829a6f1`)
|
|
369
|
+
- **Audio Player**:
|
|
370
|
+
- Update audio player implementation with dynamic track handling and new table layout (`30fc483`)
|
|
371
|
+
- Enhance track info layout with improved styling and overflow handling (`c16ea02`)
|
|
372
|
+
- Simplify track list rendering and add dynamic title (`08f3261`)
|
|
373
|
+
- Remove unused progress and duration variables for cleaner template (`72a4d0e`)
|
|
374
|
+
- Export audio service for improved component integration (`039059c`)
|
|
375
|
+
- Integrate audio service for track management and simplify component logic (`8f2d608`)
|
|
376
|
+
- Replace direct volume manipulation with audio service integration (`addd3ed`)
|
|
377
|
+
- Integrate audio service for play state management and update icon rendering (`214f58c`)
|
|
378
|
+
- Simplify progress and duration calculations using audio service (`f519558`)
|
package/README.md
CHANGED
|
@@ -89,9 +89,16 @@ npm i -D @sixbell-telco/sdk @tailwindcss/typography daisyui @midudev/tailwind-an
|
|
|
89
89
|
|
|
90
90
|
```js
|
|
91
91
|
/** @type {import('tailwindcss').Config} */
|
|
92
|
+
// const plugin = require('tailwindcss/plugin');
|
|
92
93
|
|
|
93
94
|
module.exports = {
|
|
94
|
-
content: [
|
|
95
|
+
content: [
|
|
96
|
+
'./src/**/*.{html,ts}',
|
|
97
|
+
'./projects/showcase/**/*.{html,ts}',
|
|
98
|
+
'./projects/sdk/**/*.{html,ts}',
|
|
99
|
+
'./dist/sdk/**/*.{html,ts}',
|
|
100
|
+
'./node_modules/sdk/**/*.{html,ts}',
|
|
101
|
+
],
|
|
95
102
|
theme: {
|
|
96
103
|
extend: {
|
|
97
104
|
colors: {
|
|
@@ -123,12 +130,19 @@ module.exports = {
|
|
|
123
130
|
'ease-out-back': 'cubic-bezier(0.34, 1.56, 0.64, 1)',
|
|
124
131
|
'ease-in-and-out-back': 'cubic-bezier(0.68, -0.55, 0.27, 1.55)',
|
|
125
132
|
},
|
|
133
|
+
keyframes: {
|
|
134
|
+
wave: {
|
|
135
|
+
'0%, 100%': { transform: 'scaleY(0)' },
|
|
136
|
+
'50%': { transform: 'scaleY(1)' },
|
|
137
|
+
},
|
|
138
|
+
},
|
|
126
139
|
animation: {
|
|
127
140
|
'slide-in': 'slideIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1)',
|
|
128
141
|
'slide-out': 'slideOut 0.8s cubic-bezier(0.34, 1.56, 0.64, 1)',
|
|
129
142
|
'toast-slide-out': 'toastSlideOut 0.8s cubic-bezier(0.68, -0.55, 0.27, 1.55)',
|
|
130
143
|
'fade-in': 'fadeIn 1s',
|
|
131
144
|
'fade-out': 'fadeOut 1s',
|
|
145
|
+
wave: 'wave 1s linear infinite',
|
|
132
146
|
},
|
|
133
147
|
},
|
|
134
148
|
},
|
|
@@ -236,7 +250,7 @@ module.exports = {
|
|
|
236
250
|
},
|
|
237
251
|
],
|
|
238
252
|
},
|
|
239
|
-
plugins: [require('@midudev/tailwind-animations'), require('@tailwindcss/typography'), require('daisyui')],
|
|
253
|
+
plugins: [require('@midudev/tailwind-animations'), require('@tailwindcss/typography'), require('tailwind-scrollbar'), require('daisyui')],
|
|
240
254
|
};
|
|
241
255
|
```
|
|
242
256
|
|
|
@@ -310,4 +324,4 @@ For detailed component documentation, visit our [Storybook](https://storybook.js
|
|
|
310
324
|
|
|
311
325
|
## Last update
|
|
312
326
|
|
|
313
|
-
This file was last updated on January
|
|
327
|
+
This file was last updated on January 29th, 2025.
|
package/_index.scss
CHANGED
|
@@ -9,12 +9,14 @@
|
|
|
9
9
|
* {
|
|
10
10
|
margin: 0;
|
|
11
11
|
padding: 0;
|
|
12
|
+
@apply overscroll-contain scroll-smooth scrollbar-thin;
|
|
12
13
|
}
|
|
13
14
|
|
|
14
15
|
*,
|
|
15
16
|
*::before,
|
|
16
17
|
*::after {
|
|
17
18
|
box-sizing: border-box;
|
|
19
|
+
@apply overscroll-contain scroll-smooth scrollbar-thin;
|
|
18
20
|
}
|
|
19
21
|
|
|
20
22
|
body {
|
|
@@ -131,4 +133,8 @@
|
|
|
131
133
|
opacity: 0;
|
|
132
134
|
}
|
|
133
135
|
}
|
|
136
|
+
|
|
137
|
+
.animate-wave {
|
|
138
|
+
animation-delay: calc(1s - var(--i));
|
|
139
|
+
}
|
|
134
140
|
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ElementRef } from '@angular/core';
|
|
2
|
+
import { AudioPlayerService } from '../services/audio.service';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class AudioTimelineComponent {
|
|
5
|
+
timeline: import("@angular/core").Signal<ElementRef<HTMLAudioElement> | undefined>;
|
|
6
|
+
audioService: AudioPlayerService;
|
|
7
|
+
isDragging: import("@angular/core").WritableSignal<boolean>;
|
|
8
|
+
isHovered: import("@angular/core").WritableSignal<boolean>;
|
|
9
|
+
get timelineClass(): string;
|
|
10
|
+
get timelineCircleClass(): string;
|
|
11
|
+
handleTimelineHover(isHovered: boolean): void;
|
|
12
|
+
startDrag(event: MouseEvent | TouchEvent): void;
|
|
13
|
+
onDrag(event: MouseEvent | TouchEvent): void;
|
|
14
|
+
stopDrag(): void;
|
|
15
|
+
updateProgress(event: MouseEvent | TouchEvent): void;
|
|
16
|
+
private getClientX;
|
|
17
|
+
seek(event: MouseEvent): void;
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AudioTimelineComponent, never>;
|
|
19
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AudioTimelineComponent, "st-timeline", never, {}, {}, never, never, true, never>;
|
|
20
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { AudioPlayerService } from '../services/audio.service';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class ButtonPlayComponent {
|
|
4
|
+
audioService: AudioPlayerService;
|
|
5
|
+
isHovered: import("@angular/core").WritableSignal<boolean>;
|
|
6
|
+
trackIndex: import("@angular/core").InputSignal<number>;
|
|
7
|
+
onTogglePlay: import("@angular/core").OutputEmitterRef<void>;
|
|
8
|
+
iconMusicNote: string;
|
|
9
|
+
iconPlay: string;
|
|
10
|
+
iconPause: string;
|
|
11
|
+
waveBars: {
|
|
12
|
+
delay: string;
|
|
13
|
+
class: string;
|
|
14
|
+
}[];
|
|
15
|
+
get ButtonClass(): string;
|
|
16
|
+
get WaveBarsClass(): string;
|
|
17
|
+
get IconClass(): string;
|
|
18
|
+
get Icon(): string;
|
|
19
|
+
handleHover(isHovered: boolean): void;
|
|
20
|
+
handleTogglePlay(): Promise<void>;
|
|
21
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ButtonPlayComponent, never>;
|
|
22
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ButtonPlayComponent, "st-button-play", never, { "trackIndex": { "alias": "trackIndex"; "required": true; "isSignal": true; }; }, { "onTogglePlay": "onTogglePlay"; }, never, never, true, never>;
|
|
23
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { Track } from '../src/audio-player.component';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class AudioPlayerService {
|
|
4
|
+
private audio;
|
|
5
|
+
private _tracks;
|
|
6
|
+
private _currentTrackIndex;
|
|
7
|
+
private _isPlaying;
|
|
8
|
+
private _duration;
|
|
9
|
+
private _currentTime;
|
|
10
|
+
private _volume;
|
|
11
|
+
private _isMuted;
|
|
12
|
+
private _lastVolume;
|
|
13
|
+
private _isBuffering;
|
|
14
|
+
private _isInitializing;
|
|
15
|
+
private _autoPlayNext;
|
|
16
|
+
private _error;
|
|
17
|
+
tracks: import("@angular/core").Signal<Track[]>;
|
|
18
|
+
currentTrackIndex: import("@angular/core").Signal<number>;
|
|
19
|
+
isPlaying: import("@angular/core").Signal<boolean>;
|
|
20
|
+
duration: import("@angular/core").Signal<number>;
|
|
21
|
+
currentTime: import("@angular/core").Signal<number>;
|
|
22
|
+
volume: import("@angular/core").Signal<number>;
|
|
23
|
+
isMuted: import("@angular/core").Signal<boolean>;
|
|
24
|
+
isBuffering: import("@angular/core").Signal<boolean>;
|
|
25
|
+
isInitializing: import("@angular/core").Signal<boolean>;
|
|
26
|
+
currentTrack: import("@angular/core").Signal<Track>;
|
|
27
|
+
autoPlayNext: import("@angular/core").Signal<boolean>;
|
|
28
|
+
error: import("@angular/core").Signal<ErrorEvent | null>;
|
|
29
|
+
constructor();
|
|
30
|
+
private setupAudioListeners;
|
|
31
|
+
playTrack(index: number): Promise<void>;
|
|
32
|
+
togglePlay(): Promise<void>;
|
|
33
|
+
previous(): Promise<void>;
|
|
34
|
+
next(): Promise<void>;
|
|
35
|
+
setTracks(tracks: Track[]): void;
|
|
36
|
+
setCurrentTrackIndex(index: number): void;
|
|
37
|
+
private setPlaying;
|
|
38
|
+
setAutoPlayNext(autoPlayNext: boolean): void;
|
|
39
|
+
setVolume(volume: number): void;
|
|
40
|
+
setMuted(muted: boolean): void;
|
|
41
|
+
seekTo(time: number): void;
|
|
42
|
+
private updateDuration;
|
|
43
|
+
private updateTime;
|
|
44
|
+
private handleEnded;
|
|
45
|
+
private clearCurrentTime;
|
|
46
|
+
private restoreVolumeSettings;
|
|
47
|
+
private checkIfTrackIsLoaded;
|
|
48
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AudioPlayerService, never>;
|
|
49
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AudioPlayerService>;
|
|
50
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { AudioPlayerService } from '../services/audio.service';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export interface Track {
|
|
4
|
+
title: string;
|
|
5
|
+
description: string;
|
|
6
|
+
url: string;
|
|
7
|
+
}
|
|
8
|
+
export type AudioPlayerVariantProps = 'default' | 'fixed';
|
|
9
|
+
export declare class AudioPlayerComponent {
|
|
10
|
+
audioService: AudioPlayerService;
|
|
11
|
+
variant: import("@angular/core").InputSignal<AudioPlayerVariantProps>;
|
|
12
|
+
opened: import("@angular/core").InputSignal<boolean>;
|
|
13
|
+
trackListTitle: import("@angular/core").InputSignal<string>;
|
|
14
|
+
currentTrackIndex: import("@angular/core").ModelSignal<number>;
|
|
15
|
+
tracks: import("@angular/core").InputSignal<Track[]>;
|
|
16
|
+
showTrackList: import("@angular/core").InputSignal<boolean>;
|
|
17
|
+
iconSkipPrevious: string;
|
|
18
|
+
iconSkipNext: string;
|
|
19
|
+
iconPlay: string;
|
|
20
|
+
iconPause: string;
|
|
21
|
+
iconMusicNote: string;
|
|
22
|
+
get playerClass(): string;
|
|
23
|
+
get currentTrack(): Track | undefined;
|
|
24
|
+
constructor(audioService: AudioPlayerService);
|
|
25
|
+
playTrack(index: number): Promise<void>;
|
|
26
|
+
togglePlay(): Promise<void>;
|
|
27
|
+
previous(): Promise<void>;
|
|
28
|
+
next(): Promise<void>;
|
|
29
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AudioPlayerComponent, never>;
|
|
30
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AudioPlayerComponent, "st-audio-player", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "opened": { "alias": "opened"; "required": false; "isSignal": true; }; "trackListTitle": { "alias": "trackListTitle"; "required": false; "isSignal": true; }; "currentTrackIndex": { "alias": "currentTrackIndex"; "required": false; "isSignal": true; }; "tracks": { "alias": "tracks"; "required": false; "isSignal": true; }; "showTrackList": { "alias": "showTrackList"; "required": false; "isSignal": true; }; }, { "currentTrackIndex": "currentTrackIndexChange"; }, never, never, true, never>;
|
|
31
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Track } from '../src/audio-player.component';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class TrackInfoComponent {
|
|
4
|
+
currentTrack: import("@angular/core").InputSignal<Track | undefined>;
|
|
5
|
+
iconMusicNote: string;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TrackInfoComponent, never>;
|
|
7
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TrackInfoComponent, "st-track-info", never, { "currentTrack": { "alias": "currentTrack"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ElementRef } from '@angular/core';
|
|
2
|
+
import { AudioPlayerService } from '../services/audio.service';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class VolumeControlComponent {
|
|
5
|
+
volumeTimeline: import("@angular/core").Signal<ElementRef<HTMLAudioElement> | undefined>;
|
|
6
|
+
audioService: AudioPlayerService;
|
|
7
|
+
isVolumeDragging: import("@angular/core").WritableSignal<boolean>;
|
|
8
|
+
isVolumeHovered: import("@angular/core").WritableSignal<boolean>;
|
|
9
|
+
iconVolumeUp: string;
|
|
10
|
+
iconVolumeDown: string;
|
|
11
|
+
iconVolumeMute: string;
|
|
12
|
+
get volumeTimelineClass(): string;
|
|
13
|
+
get volumeTimelineCircleClass(): string;
|
|
14
|
+
handleVolumeHover(isHovered: boolean): void;
|
|
15
|
+
startVolumeDrag(event: MouseEvent | TouchEvent): void;
|
|
16
|
+
onVolumeDrag(event: MouseEvent | TouchEvent): void;
|
|
17
|
+
stopVolumeDrag(): void;
|
|
18
|
+
private getClientX;
|
|
19
|
+
updateVolume(event: MouseEvent | TouchEvent): void;
|
|
20
|
+
seekVolume(event: MouseEvent): void;
|
|
21
|
+
toggleMute(): void;
|
|
22
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<VolumeControlComponent, never>;
|
|
23
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<VolumeControlComponent, "st-volume-control", never, {}, {}, never, never, true, never>;
|
|
24
|
+
}
|
|
@@ -23,12 +23,13 @@ export declare class ButtonComponent {
|
|
|
23
23
|
block: import("@angular/core").InputSignal<boolean>;
|
|
24
24
|
loader: import("@angular/core").InputSignal<boolean>;
|
|
25
25
|
size: import("@angular/core").InputSignal<ButtonSizeProps>;
|
|
26
|
+
shadow: import("@angular/core").InputSignal<boolean>;
|
|
26
27
|
icon: import("@angular/core").InputSignal<string | undefined>;
|
|
27
28
|
iconPosition: import("@angular/core").InputSignal<ButtonIconPositionProps>;
|
|
28
29
|
type: import("@angular/core").InputSignal<HTMLButtonType>;
|
|
29
30
|
disabled: import("@angular/core").InputSignal<boolean>;
|
|
30
31
|
get containerClass(): string;
|
|
31
32
|
static ɵfac: i0.ɵɵFactoryDeclaration<ButtonComponent, never>;
|
|
32
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ButtonComponent, "st-button", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "ghost": { "alias": "ghost"; "required": false; "isSignal": true; }; "outline": { "alias": "outline"; "required": false; "isSignal": true; }; "circle": { "alias": "circle"; "required": false; "isSignal": true; }; "square": { "alias": "square"; "required": false; "isSignal": true; }; "glass": { "alias": "glass"; "required": false; "isSignal": true; }; "block": { "alias": "block"; "required": false; "isSignal": true; }; "loader": { "alias": "loader"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "iconPosition": { "alias": "iconPosition"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
33
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ButtonComponent, "st-button", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "ghost": { "alias": "ghost"; "required": false; "isSignal": true; }; "outline": { "alias": "outline"; "required": false; "isSignal": true; }; "circle": { "alias": "circle"; "required": false; "isSignal": true; }; "square": { "alias": "square"; "required": false; "isSignal": true; }; "glass": { "alias": "glass"; "required": false; "isSignal": true; }; "block": { "alias": "block"; "required": false; "isSignal": true; }; "loader": { "alias": "loader"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "shadow": { "alias": "shadow"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "iconPosition": { "alias": "iconPosition"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
33
34
|
}
|
|
34
35
|
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@ng-icons/heroicons/mini';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@ng-icons/heroicons/outline';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@ng-icons/heroicons/solid';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@ng-icons/ionicons';
|
|
@@ -19,7 +19,6 @@ export declare class ToastService {
|
|
|
19
19
|
readonly toasts: import("@angular/core").Signal<Toast[]>;
|
|
20
20
|
readonly expanded: import("@angular/core").Signal<boolean>;
|
|
21
21
|
readonly isEmpty: import("@angular/core").Signal<boolean>;
|
|
22
|
-
constructor();
|
|
23
22
|
notify(type: ToastTypes, message: string, title?: string, duration?: number): void;
|
|
24
23
|
scheduleDismiss(toast: Toast): void;
|
|
25
24
|
animateRemoval(toast: Toast): void;
|
|
@@ -2,18 +2,21 @@ import * as i0 from "@angular/core";
|
|
|
2
2
|
export type TypographyVariantProps = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'body' | 'body-sm' | 'body-xs' | 'inherit' | null | undefined;
|
|
3
3
|
export type TypographyColorProps = 'base' | 'base-placeholder' | 'inherit' | null | undefined;
|
|
4
4
|
export type TypographyFontWeightProps = 'bold' | 'semibold' | 'medium' | 'normal' | 'inherit' | null | undefined;
|
|
5
|
+
export type TypographyTextOverflowProps = 'clip' | 'ellipsis' | 'truncate' | null | undefined;
|
|
5
6
|
export type TypographyProps = {
|
|
6
7
|
variant?: TypographyVariantProps;
|
|
7
8
|
color?: TypographyColorProps;
|
|
8
9
|
fontWeight?: TypographyFontWeightProps;
|
|
10
|
+
textOverflow?: TypographyTextOverflowProps;
|
|
9
11
|
};
|
|
10
12
|
export declare class TypographyDirective {
|
|
11
13
|
variant: import("@angular/core").InputSignal<TypographyVariantProps>;
|
|
12
14
|
color: import("@angular/core").InputSignal<TypographyColorProps>;
|
|
13
15
|
fontWeight: import("@angular/core").InputSignal<TypographyFontWeightProps>;
|
|
16
|
+
textOverflow: import("@angular/core").InputSignal<TypographyTextOverflowProps>;
|
|
14
17
|
private element;
|
|
15
18
|
private renderer;
|
|
16
19
|
classListEffect: import("@angular/core").EffectRef;
|
|
17
20
|
static ɵfac: i0.ɵɵFactoryDeclaration<TypographyDirective, never>;
|
|
18
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<TypographyDirective, "[typography]", never, { "variant": { "alias": "tyVariant"; "required": false; "isSignal": true; }; "color": { "alias": "tyColor"; "required": false; "isSignal": true; }; "fontWeight": { "alias": "tyFontWeight"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
21
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TypographyDirective, "[typography]", never, { "variant": { "alias": "tyVariant"; "required": false; "isSignal": true; }; "color": { "alias": "tyColor"; "required": false; "isSignal": true; }; "fontWeight": { "alias": "tyFontWeight"; "required": false; "isSignal": true; }; "textOverflow": { "alias": "tyTextOverflow"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
19
22
|
}
|
|
@@ -32,7 +32,7 @@ export class AccordionItemComponent {
|
|
|
32
32
|
return cn(accordionItemComponent({ variant: this.variant() }));
|
|
33
33
|
}
|
|
34
34
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: AccordionItemComponent, deps: [{ token: i1.AccordionComponent, host: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
35
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "18.2.12", type: AccordionItemComponent, isStandalone: true, selector: "st-accordion-item", inputs: { header: { classPropertyName: "header", publicName: "header", isSignal: true, isRequired: false, transformFunction: null }, opened: { classPropertyName: "opened", publicName: "opened", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<div [class]=\"componentClass\">\n\t<input [type]=\"type\" [name]=\"name\" [checked]=\"opened()\" />\n\t<div class=\"collapse-title\">\n\t\t<div typography [tyVariant]=\"'body'\" [tyColor]=\"'inherit'\" [tyFontWeight]=\"'normal'\">\n\t\t\t{{ header() }}\n\t\t</div>\n\t</div>\n\t<div class=\"collapse-content\">\n\t\t<ng-content></ng-content>\n\t</div>\n</div>\n", dependencies: [{ kind: "directive", type: TypographyDirective, selector: "[typography]", inputs: ["tyVariant", "tyColor", "tyFontWeight"] }] });
|
|
35
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "18.2.12", type: AccordionItemComponent, isStandalone: true, selector: "st-accordion-item", inputs: { header: { classPropertyName: "header", publicName: "header", isSignal: true, isRequired: false, transformFunction: null }, opened: { classPropertyName: "opened", publicName: "opened", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<div [class]=\"componentClass\">\n\t<input [type]=\"type\" [name]=\"name\" [checked]=\"opened()\" />\n\t<div class=\"collapse-title\">\n\t\t<div typography [tyVariant]=\"'body'\" [tyColor]=\"'inherit'\" [tyFontWeight]=\"'normal'\">\n\t\t\t{{ header() }}\n\t\t</div>\n\t</div>\n\t<div class=\"collapse-content\">\n\t\t<ng-content></ng-content>\n\t</div>\n</div>\n", dependencies: [{ kind: "directive", type: TypographyDirective, selector: "[typography]", inputs: ["tyVariant", "tyColor", "tyFontWeight", "tyTextOverflow"] }] });
|
|
36
36
|
}
|
|
37
37
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: AccordionItemComponent, decorators: [{
|
|
38
38
|
type: Component,
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { CommonModule } from '@angular/common';
|
|
2
|
+
import { ChangeDetectionStrategy, Component, HostListener, inject, signal, viewChild } from '@angular/core';
|
|
3
|
+
import { TypographyDirective } from '@sixbell-telco/sdk/directives/typography';
|
|
4
|
+
import { cn } from '@sixbell-telco/sdk/utils/cn';
|
|
5
|
+
import { TimePipe } from '@sixbell-telco/sdk/utils/pipes/time';
|
|
6
|
+
import { AudioPlayerService } from '../services/audio.service';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export class AudioTimelineComponent {
|
|
9
|
+
timeline = viewChild('timeline');
|
|
10
|
+
audioService = inject(AudioPlayerService);
|
|
11
|
+
isDragging = signal(false);
|
|
12
|
+
isHovered = signal(false);
|
|
13
|
+
get timelineClass() {
|
|
14
|
+
return cn('relative h-1 w-full cursor-pointer rounded-full bg-neutral ', { 'h-[6px]': this.isHovered() || this.isDragging() });
|
|
15
|
+
}
|
|
16
|
+
get timelineCircleClass() {
|
|
17
|
+
return cn('transition-opacity duration-200 absolute top-1/2 h-3 w-3 -translate-y-1/2 transform cursor-grab rounded-full bg-tertiary shadow-main', this.isHovered() || this.isDragging() ? 'opacity-100' : 'opacity-0');
|
|
18
|
+
}
|
|
19
|
+
// Handle timeline hover
|
|
20
|
+
handleTimelineHover(isHovered) {
|
|
21
|
+
this.isHovered.set(isHovered);
|
|
22
|
+
}
|
|
23
|
+
// Start dragging
|
|
24
|
+
startDrag(event) {
|
|
25
|
+
event.preventDefault(); // Prevent default behavior
|
|
26
|
+
event.stopPropagation(); // Stop event propagation
|
|
27
|
+
this.isDragging.set(true);
|
|
28
|
+
this.updateProgress(event);
|
|
29
|
+
}
|
|
30
|
+
// Handle dragging
|
|
31
|
+
onDrag(event) {
|
|
32
|
+
if (this.isDragging()) {
|
|
33
|
+
this.updateProgress(event);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
// Stop dragging
|
|
37
|
+
stopDrag() {
|
|
38
|
+
this.isDragging.set(false);
|
|
39
|
+
}
|
|
40
|
+
// Update progress based on mouse/touch position
|
|
41
|
+
updateProgress(event) {
|
|
42
|
+
const timelineRect = this.timeline()?.nativeElement.getBoundingClientRect();
|
|
43
|
+
if (!timelineRect)
|
|
44
|
+
return;
|
|
45
|
+
const clientX = this.getClientX(event);
|
|
46
|
+
const newProgress = Math.max(0, Math.min(1, (clientX - timelineRect.left) / timelineRect.width));
|
|
47
|
+
this.audioService.seekTo(newProgress * this.audioService.duration());
|
|
48
|
+
}
|
|
49
|
+
getClientX(event) {
|
|
50
|
+
return event instanceof MouseEvent ? event.clientX : event.touches[0].clientX;
|
|
51
|
+
}
|
|
52
|
+
seek(event) {
|
|
53
|
+
if (!this.isDragging()) {
|
|
54
|
+
this.updateProgress(event);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: AudioTimelineComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
58
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.12", type: AudioTimelineComponent, isStandalone: true, selector: "st-timeline", host: { listeners: { "document:mousemove": "onDrag($event)", "document:touchmove": "onDrag($event)", "document:mouseup": "stopDrag()", "document:touchend": "stopDrag()" } }, viewQueries: [{ propertyName: "timeline", first: true, predicate: ["timeline"], descendants: true, isSignal: true }], ngImport: i0, template: "<!-- eslint-disable @angular-eslint/template/interactive-supports-focus -->\n<!-- eslint-disable @angular-eslint/template/click-events-have-key-events -->\n\n<!-- Progress Bar -->\n<div class=\"grid w-full grid-cols-[1fr_5fr_1fr] items-center gap-4\">\n\t<!-- Current Time Display -->\n\t<div class=\"inline-flex min-h-5 select-none items-center justify-end text-tertiary\">\n\t\t@if (!audioService.isInitializing()) {\n\t\t\t@if (audioService.isBuffering()) {\n\t\t\t\t<span class=\"loading loading-ring loading-xs\"></span>\n\t\t\t} @else {\n\t\t\t\t<span typography tyVariant=\"body-sm\">{{ audioService.currentTime() | time }}</span>\n\t\t\t}\n\t\t}\n\t</div>\n\n\t<div [class]=\"timelineClass\" (click)=\"seek($event)\" #timeline (mouseenter)=\"handleTimelineHover(true)\" (mouseleave)=\"handleTimelineHover(false)\">\n\t\t<!-- Progress Bar Background -->\n\t\t<div class=\"absolute h-full rounded-full bg-primary\" [style.width]=\"(audioService.currentTime() / audioService.duration()) * 100 + '%'\"></div>\n\n\t\t<!-- Draggable Circle -->\n\t\t<div\n\t\t\t[style.left]=\"\n\t\t\t\t'calc(' +\n\t\t\t\t(audioService.currentTime() / audioService.duration()) * 100 +\n\t\t\t\t'% - ' +\n\t\t\t\t(audioService.currentTime() / audioService.duration() === 1 ? '6px' : '3px') +\n\t\t\t\t')'\n\t\t\t\"\n\t\t\t[class]=\"timelineCircleClass\"\n\t\t\t#circle\n\t\t\t(mousedown)=\"startDrag($event)\"\n\t\t\t(touchstart)=\"startDrag($event)\"\n\t\t></div>\n\t</div>\n\n\t<!-- Total Time Display -->\n\t<div class=\"inline-flex min-h-5 select-none items-center justify-start text-tertiary\">\n\t\t@if (audioService.isInitializing()) {\n\t\t\t<span class=\"loading loading-ring loading-xs\"></span>\n\t\t} @else {\n\t\t\t<span typography tyVariant=\"body-sm\">{{ audioService.duration() | time }}</span>\n\t\t}\n\t</div>\n</div>\n", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "pipe", type: TimePipe, name: "time" }, { kind: "directive", type: TypographyDirective, selector: "[typography]", inputs: ["tyVariant", "tyColor", "tyFontWeight", "tyTextOverflow"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
59
|
+
}
|
|
60
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: AudioTimelineComponent, decorators: [{
|
|
61
|
+
type: Component,
|
|
62
|
+
args: [{ selector: 'st-timeline', standalone: true, imports: [CommonModule, TimePipe, TypographyDirective], changeDetection: ChangeDetectionStrategy.OnPush, template: "<!-- eslint-disable @angular-eslint/template/interactive-supports-focus -->\n<!-- eslint-disable @angular-eslint/template/click-events-have-key-events -->\n\n<!-- Progress Bar -->\n<div class=\"grid w-full grid-cols-[1fr_5fr_1fr] items-center gap-4\">\n\t<!-- Current Time Display -->\n\t<div class=\"inline-flex min-h-5 select-none items-center justify-end text-tertiary\">\n\t\t@if (!audioService.isInitializing()) {\n\t\t\t@if (audioService.isBuffering()) {\n\t\t\t\t<span class=\"loading loading-ring loading-xs\"></span>\n\t\t\t} @else {\n\t\t\t\t<span typography tyVariant=\"body-sm\">{{ audioService.currentTime() | time }}</span>\n\t\t\t}\n\t\t}\n\t</div>\n\n\t<div [class]=\"timelineClass\" (click)=\"seek($event)\" #timeline (mouseenter)=\"handleTimelineHover(true)\" (mouseleave)=\"handleTimelineHover(false)\">\n\t\t<!-- Progress Bar Background -->\n\t\t<div class=\"absolute h-full rounded-full bg-primary\" [style.width]=\"(audioService.currentTime() / audioService.duration()) * 100 + '%'\"></div>\n\n\t\t<!-- Draggable Circle -->\n\t\t<div\n\t\t\t[style.left]=\"\n\t\t\t\t'calc(' +\n\t\t\t\t(audioService.currentTime() / audioService.duration()) * 100 +\n\t\t\t\t'% - ' +\n\t\t\t\t(audioService.currentTime() / audioService.duration() === 1 ? '6px' : '3px') +\n\t\t\t\t')'\n\t\t\t\"\n\t\t\t[class]=\"timelineCircleClass\"\n\t\t\t#circle\n\t\t\t(mousedown)=\"startDrag($event)\"\n\t\t\t(touchstart)=\"startDrag($event)\"\n\t\t></div>\n\t</div>\n\n\t<!-- Total Time Display -->\n\t<div class=\"inline-flex min-h-5 select-none items-center justify-start text-tertiary\">\n\t\t@if (audioService.isInitializing()) {\n\t\t\t<span class=\"loading loading-ring loading-xs\"></span>\n\t\t} @else {\n\t\t\t<span typography tyVariant=\"body-sm\">{{ audioService.duration() | time }}</span>\n\t\t}\n\t</div>\n</div>\n" }]
|
|
63
|
+
}], propDecorators: { onDrag: [{
|
|
64
|
+
type: HostListener,
|
|
65
|
+
args: ['document:mousemove', ['$event']]
|
|
66
|
+
}, {
|
|
67
|
+
type: HostListener,
|
|
68
|
+
args: ['document:touchmove', ['$event']]
|
|
69
|
+
}], stopDrag: [{
|
|
70
|
+
type: HostListener,
|
|
71
|
+
args: ['document:mouseup']
|
|
72
|
+
}, {
|
|
73
|
+
type: HostListener,
|
|
74
|
+
args: ['document:touchend']
|
|
75
|
+
}] } });
|
|
76
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXVkaW8tdGltZWxpbmUuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvc2RrL2NvbXBvbmVudHMvYXVkaW8tcGxheWVyL2F1ZGlvLXRpbWVsaW5lL2F1ZGlvLXRpbWVsaW5lLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3Nkay9jb21wb25lbnRzL2F1ZGlvLXBsYXllci9hdWRpby10aW1lbGluZS9hdWRpby10aW1lbGluZS5jb21wb25lbnQuaHRtbCJdLCJuYW1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DetectionStrategy, Component, inject, input, output, signal } from '@angular/core';
|
|
3
|
+
import { matPause, matPlayArrow } from '@ng-icons/material-icons/baseline';
|
|
4
|
+
import { ButtonComponent } from '@sixbell-telco/sdk/components/button';
|
|
5
|
+
import { IconComponent } from '@sixbell-telco/sdk/components/icon';
|
|
6
|
+
import { heroMusicalNoteMini } from '@sixbell-telco/sdk/components/icon/heroicons/mini';
|
|
7
|
+
import { cn } from '@sixbell-telco/sdk/utils/cn';
|
|
8
|
+
import { AudioPlayerService } from '../services/audio.service';
|
|
9
|
+
import * as i0 from "@angular/core";
|
|
10
|
+
export class ButtonPlayComponent {
|
|
11
|
+
audioService = inject(AudioPlayerService);
|
|
12
|
+
isHovered = signal(false);
|
|
13
|
+
trackIndex = input.required();
|
|
14
|
+
onTogglePlay = output();
|
|
15
|
+
iconMusicNote = heroMusicalNoteMini;
|
|
16
|
+
iconPlay = matPlayArrow;
|
|
17
|
+
iconPause = matPause;
|
|
18
|
+
waveBars = [
|
|
19
|
+
{ delay: '0.4s', class: 'h-1/5 animate-wave w-[2px] rounded-full bg-current' },
|
|
20
|
+
{ delay: '0.3s', class: 'h-3/5 animate-wave w-[2px] rounded-full bg-current' },
|
|
21
|
+
{ delay: '0.2s', class: 'h-full animate-wave w-[2px] rounded-full bg-current' },
|
|
22
|
+
{ delay: '0.3s', class: 'h-3/5 animate-wave w-[2px] rounded-full bg-current' },
|
|
23
|
+
{ delay: '0.4s', class: 'h-1/5 animate-wave w-[2px] rounded-full bg-current' },
|
|
24
|
+
];
|
|
25
|
+
get ButtonClass() {
|
|
26
|
+
return cn('absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 opacity-0 transition-opacity duration-200', {
|
|
27
|
+
'opacity-100': (this.audioService.isPlaying() && this.trackIndex() === this.audioService.currentTrackIndex()) || this.isHovered(),
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
get WaveBarsClass() {
|
|
31
|
+
return cn('h-6 w-6 opacity-0 absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 transition-opacity duration-200', {
|
|
32
|
+
'opacity-100': this.audioService.isPlaying() && this.trackIndex() === this.audioService.currentTrackIndex() && !this.isHovered(),
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
get IconClass() {
|
|
36
|
+
return cn('opacity-0 absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 transition-opacity duration-200', {
|
|
37
|
+
'opacity-100': !this.audioService.isPlaying() || this.trackIndex() !== this.audioService.currentTrackIndex() || this.isHovered(),
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
get Icon() {
|
|
41
|
+
return this.audioService.isPlaying() && this.trackIndex() === this.audioService.currentTrackIndex() ? this.iconPause : this.iconPlay;
|
|
42
|
+
}
|
|
43
|
+
handleHover(isHovered) {
|
|
44
|
+
this.isHovered.set(isHovered);
|
|
45
|
+
}
|
|
46
|
+
async handleTogglePlay() {
|
|
47
|
+
if (this.trackIndex() !== undefined && this.trackIndex() !== this.audioService.currentTrackIndex()) {
|
|
48
|
+
await this.audioService.playTrack(this.trackIndex());
|
|
49
|
+
}
|
|
50
|
+
else {
|
|
51
|
+
await this.audioService.togglePlay();
|
|
52
|
+
}
|
|
53
|
+
this.onTogglePlay.emit();
|
|
54
|
+
}
|
|
55
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: ButtonPlayComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
56
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.12", type: ButtonPlayComponent, isStandalone: true, selector: "st-button-play", inputs: { trackIndex: { classPropertyName: "trackIndex", publicName: "trackIndex", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { onTogglePlay: "onTogglePlay" }, ngImport: i0, template: "<!-- eslint-disable @angular-eslint/template/interactive-supports-focus -->\n<!-- eslint-disable @angular-eslint/template/click-events-have-key-events -->\n\n<div\n\tclass=\"relative grid h-10 min-h-10 w-10 min-w-10 place-content-center rounded bg-gradient-to-br from-primary to-primary-content text-white\"\n\t(mouseenter)=\"handleHover(true)\"\n\t(mouseleave)=\"handleHover(false)\"\n>\n\t<st-icon [icon]=\"iconMusicNote\"></st-icon>\n\n\t<div [class]=\"ButtonClass\">\n\t\t<st-button [circle]=\"true\" size=\"sm\" [shadow]=\"true\" variant=\"secondary\" (click)=\"handleTogglePlay()\">\n\t\t\t<div class=\"relative h-full w-full\">\n\t\t\t\t<div [class]=\"WaveBarsClass\">\n\t\t\t\t\t<div class=\"flex h-full w-full items-center justify-between\">\n\t\t\t\t\t\t@for (bar of waveBars; track $index) {\n\t\t\t\t\t\t\t<div [class]=\"bar.class\" [style.--i]=\"bar.delay\"></div>\n\t\t\t\t\t\t}\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<div [class]=\"IconClass\">\n\t\t\t\t\t<st-icon [icon]=\"Icon\"></st-icon>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</st-button>\n\t</div>\n</div>\n", styles: [""], dependencies: [{ kind: "component", type: IconComponent, selector: "st-icon", inputs: ["color", "size", "classes", "icon"] }, { kind: "ngmodule", type: CommonModule }, { kind: "component", type: ButtonComponent, selector: "st-button", inputs: ["variant", "ghost", "outline", "circle", "square", "glass", "block", "loader", "size", "shadow", "icon", "iconPosition", "type", "disabled"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
57
|
+
}
|
|
58
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: ButtonPlayComponent, decorators: [{
|
|
59
|
+
type: Component,
|
|
60
|
+
args: [{ selector: 'st-button-play', standalone: true, imports: [IconComponent, CommonModule, ButtonComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: "<!-- eslint-disable @angular-eslint/template/interactive-supports-focus -->\n<!-- eslint-disable @angular-eslint/template/click-events-have-key-events -->\n\n<div\n\tclass=\"relative grid h-10 min-h-10 w-10 min-w-10 place-content-center rounded bg-gradient-to-br from-primary to-primary-content text-white\"\n\t(mouseenter)=\"handleHover(true)\"\n\t(mouseleave)=\"handleHover(false)\"\n>\n\t<st-icon [icon]=\"iconMusicNote\"></st-icon>\n\n\t<div [class]=\"ButtonClass\">\n\t\t<st-button [circle]=\"true\" size=\"sm\" [shadow]=\"true\" variant=\"secondary\" (click)=\"handleTogglePlay()\">\n\t\t\t<div class=\"relative h-full w-full\">\n\t\t\t\t<div [class]=\"WaveBarsClass\">\n\t\t\t\t\t<div class=\"flex h-full w-full items-center justify-between\">\n\t\t\t\t\t\t@for (bar of waveBars; track $index) {\n\t\t\t\t\t\t\t<div [class]=\"bar.class\" [style.--i]=\"bar.delay\"></div>\n\t\t\t\t\t\t}\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<div [class]=\"IconClass\">\n\t\t\t\t\t<st-icon [icon]=\"Icon\"></st-icon>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</st-button>\n\t</div>\n</div>\n" }]
|
|
61
|
+
}] });
|
|
62
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnV0dG9uLXBsYXkuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvc2RrL2NvbXBvbmVudHMvYXVkaW8tcGxheWVyL2J1dHRvbi1wbGF5L2J1dHRvbi1wbGF5LmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3Nkay9jb21wb25lbnRzL2F1ZGlvLXBsYXllci9idXR0b24tcGxheS9idXR0b24tcGxheS5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFDL0MsT0FBTyxFQUFFLHVCQUF1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iSWNvblwiPjwvc3QtaWNvbj5cblx0XHRcdFx0PC9kaXY+XG5cdFx0XHQ8L2Rpdj5cblx0XHQ8L3N0LWJ1dHRvbj5cblx0PC9kaXY+XG48L2Rpdj5cbiJdfQ==
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export * from './button-play/button-play.component';
|
|
2
|
+
export * from './services/audio.service';
|
|
3
|
+
export * from './src/audio-player.component';
|
|
4
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3Nkay9jb21wb25lbnRzL2F1ZGlvLXBsYXllci9wdWJsaWMtYXBpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMscUNBQXFDLENBQUM7QUFDcEQsY0FBYywwQkFBMEIsQ0FBQztBQUN6QyxjQUFjLDhCQUE4QixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9idXR0b24tcGxheS9idXR0b24tcGxheS5jb21wb25lbnQnO1xuZXhwb3J0ICogZnJvbSAnLi9zZXJ2aWNlcy9hdWRpby5zZXJ2aWNlJztcbmV4cG9ydCAqIGZyb20gJy4vc3JjL2F1ZGlvLXBsYXllci5jb21wb25lbnQnO1xuIl19
|