@sixbell-telco/sdk 1.1.0 → 1.2.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.
Files changed (40) hide show
  1. package/CHANGELOG.md +86 -0
  2. package/README.md +600 -166
  3. package/_index.css +34 -4
  4. package/components/badge/src/badge.component.d.ts +0 -4
  5. package/components/dialog/dialog-actions/dialog-actions.component.d.ts +8 -0
  6. package/components/dialog/dialog-content/dialog-content.component.d.ts +5 -0
  7. package/components/dialog/dialog-sub-title/dialog-sub-title.component.d.ts +5 -0
  8. package/components/dialog/dialog-title/dialog-title.component.d.ts +9 -0
  9. package/components/{modal → dialog}/index.d.ts +1 -1
  10. package/components/dialog/public-api.d.ts +5 -0
  11. package/components/dialog/src/dialog.component.d.ts +146 -0
  12. package/directives/auto-focus/src/autofocus.directive.d.ts +3 -3
  13. package/fesm2022/sixbell-telco-sdk-components-badge.mjs +1 -1
  14. package/fesm2022/sixbell-telco-sdk-components-badge.mjs.map +1 -1
  15. package/fesm2022/sixbell-telco-sdk-components-dialog.mjs +356 -0
  16. package/fesm2022/sixbell-telco-sdk-components-dialog.mjs.map +1 -0
  17. package/fesm2022/sixbell-telco-sdk-components-forms-combobox.mjs +3 -0
  18. package/fesm2022/sixbell-telco-sdk-components-forms-combobox.mjs.map +1 -1
  19. package/fesm2022/sixbell-telco-sdk-components-toast.mjs +2 -2
  20. package/fesm2022/sixbell-telco-sdk-components-toast.mjs.map +1 -1
  21. package/fesm2022/sixbell-telco-sdk-directives-auto-focus.mjs +3 -3
  22. package/fesm2022/sixbell-telco-sdk-directives-auto-focus.mjs.map +1 -1
  23. package/fesm2022/sixbell-telco-sdk-utils-theme.mjs +221 -65
  24. package/fesm2022/sixbell-telco-sdk-utils-theme.mjs.map +1 -1
  25. package/fesm2022/sixbell-telco-sdk-utils-translation.mjs +210 -62
  26. package/fesm2022/sixbell-telco-sdk-utils-translation.mjs.map +1 -1
  27. package/package.json +17 -17
  28. package/utils/theme/README.md +185 -0
  29. package/utils/theme/src/theme.service.d.ts +168 -17
  30. package/utils/translation/README.md +274 -0
  31. package/utils/translation/public-api.d.ts +3 -0
  32. package/utils/translation/src/translation.service.d.ts +134 -49
  33. package/components/modal/modal-actions/modal-actions.component.d.ts +0 -8
  34. package/components/modal/modal-content/modal-content.component.d.ts +0 -5
  35. package/components/modal/modal-title/modal-title.component.d.ts +0 -5
  36. package/components/modal/public-api.d.ts +0 -4
  37. package/components/modal/src/modal.component.d.ts +0 -102
  38. package/fesm2022/sixbell-telco-sdk-components-modal.mjs +0 -202
  39. package/fesm2022/sixbell-telco-sdk-components-modal.mjs.map +0 -1
  40. package/sixbell-telco-sdk-1.1.0.tgz +0 -0
@@ -1,46 +1,89 @@
1
- import { InjectionToken } from '@angular/core';
1
+ import { HttpBackend, HttpClient } from '@angular/common/http';
2
+ import { EnvironmentProviders, InjectionToken, Provider } from '@angular/core';
3
+ import { MissingTranslationHandler, MissingTranslationHandlerParams } from '@ngx-translate/core';
4
+ import { TranslateHttpLoader } from '@ngx-translate/http-loader';
5
+ import { MultiTranslateHttpLoader } from 'ngx-translate-multi-http-loader';
2
6
  import * as i0 from "@angular/core";
3
- export interface Language {
7
+ /**
8
+ * Language definition interface
9
+ */
10
+ export interface LanguageDefinition {
11
+ /** Language code (ISO 639-1 format recommended) */
4
12
  code: string;
13
+ /** Display name for the language */
5
14
  name: string;
6
15
  }
7
- export interface Locale {
8
- lang: string;
9
- data: object;
10
- }
11
- export declare const DEFAULT_LANGUAGES: Language[];
16
+ /**
17
+ * Helper function to create a language definition with full type safety and IntelliSense
18
+ */
19
+ export declare function createLanguage(config: LanguageDefinition): LanguageDefinition;
20
+ export declare const DEFAULT_LANGUAGES: readonly LanguageDefinition[];
12
21
  export declare const DEFAULT_LANGUAGE_CODE = "en";
13
- export declare const AVAILABLE_LANGUAGES: InjectionToken<Language[]>;
14
- export declare const DEFAULT_LANG: InjectionToken<string>;
22
+ export declare const DEFAULT_LANGUAGE_CODES: readonly ["en", "es", "pt"];
23
+ export type DefaultLanguageCode = (typeof DEFAULT_LANGUAGE_CODES)[number];
24
+ type ExtractLanguageCode<T> = T extends readonly (infer U)[] ? (U extends LanguageDefinition ? U['code'] : never) : never;
25
+ export declare class PlaceholderMissingTranslationHandler implements MissingTranslationHandler {
26
+ handle(params: MissingTranslationHandlerParams): string;
27
+ }
28
+ /**
29
+ * Main translation configuration interface
30
+ */
31
+ export interface TranslationConfig {
32
+ /**
33
+ * Additional languages to make available beyond the default base languages (en, es, pt)
34
+ * When you add languages here, they become available in defaultLang and excludeLanguages
35
+ * @example [{ code: 'de', name: 'Deutsch' }, { code: 'fr', name: 'Français' }]
36
+ */
37
+ additionalLanguages?: readonly LanguageDefinition[];
38
+ /**
39
+ * Languages to exclude from the available set
40
+ * IntelliSense includes: base languages (en, es, pt) + any additionalLanguages you specified above
41
+ * @example ['pt'] to exclude Portuguese
42
+ */
43
+ excludeLanguages?: readonly string[];
44
+ /**
45
+ * Default language code
46
+ * IntelliSense includes: base languages (en, es, pt) + any additionalLanguages you specified above
47
+ * @example 'en'
48
+ */
49
+ defaultLang?: string;
50
+ /** Translation file paths */
51
+ translationPaths?: string[];
52
+ }
53
+ export declare const TRANSLATION_CONFIG_TOKEN: InjectionToken<TranslationConfig>;
54
+ /**
55
+ * Factory function to create HTTP loader for translations with custom paths
56
+ */
57
+ export declare function HttpLoaderFactory(http: HttpClient): TranslateHttpLoader;
58
+ /**
59
+ * Factory function to create multi-path HTTP loader for translations
60
+ */
61
+ export declare function MultiPathHttpLoaderFactory(httpBackend: HttpBackend, paths: string[]): MultiTranslateHttpLoader;
15
62
  /**
16
63
  * Utility function to extend default languages with additional ones
17
- *
18
- * @param additionalLanguages - Languages to add to the default set
19
- * @returns Combined array of default + additional languages
20
- *
21
- * @example
22
- * const extendedLanguages = extendDefaultLanguages([
23
- * { code: 'fr', name: 'Français' },
24
- * { code: 'de', name: 'Deutsch' }
25
- * ]);
26
64
  */
27
- export declare function extendDefaultLanguages(additionalLanguages: Language[]): Language[];
65
+ export declare function extendDefaultLanguages(additionalLanguages: LanguageDefinition[]): LanguageDefinition[];
28
66
  export declare class TranslationService {
67
+ private readonly translationConfig?;
29
68
  private readonly translate;
30
69
  private readonly document;
31
- private defaultLanguage;
32
- private languages;
33
- constructor();
70
+ private initialized;
71
+ private config;
72
+ constructor(translationConfig?: TranslationConfig | undefined);
34
73
  /**
35
- * Initialize the translation service with available languages
74
+ * Configure and initialize the translation service (used by provider)
36
75
  */
37
- init(langs?: string[], defaultLang?: string, availableLanguages?: Language[]): void; /**
38
- * Load available translations
76
+ configure(config?: TranslationConfig): void;
77
+ /**
78
+ * Initialize translation from localStorage and apply it immediately
79
+ */
80
+ private initializeFromStorage;
81
+ /**
82
+ * Apply the current language to the translate service and document
39
83
  */
40
- loadTranslations(langs: string[]): void;
84
+ private applyLanguage;
41
85
  /**
42
86
  * Set the current language and persist to localStorage
43
- * Also updates the HTML lang attribute for accessibility and SEO
44
87
  */
45
88
  setLanguage(lang: string): void;
46
89
  /**
@@ -74,7 +117,7 @@ export declare class TranslationService {
74
117
  /**
75
118
  * Get available languages configuration
76
119
  */
77
- getAvailableLanguagesConfig(): Language[];
120
+ getAvailableLanguagesConfig(): LanguageDefinition[];
78
121
  /**
79
122
  * Get available language codes
80
123
  */
@@ -82,31 +125,73 @@ export declare class TranslationService {
82
125
  /**
83
126
  * Get language configuration by code
84
127
  */
85
- getLanguageByCode(code: string): Language | undefined;
128
+ getLanguageByCode(code: string): LanguageDefinition | undefined;
86
129
  /**
87
130
  * Get language display name by code
88
131
  */
89
132
  getLanguageDisplayName(code: string): string;
90
133
  /**
91
- * Static utility to create provider configuration for apps with type-safe overloads
92
- */
93
- static createLanguageProviders(): Array<{
94
- provide: InjectionToken<unknown>;
95
- useValue: unknown;
96
- }>;
97
- static createLanguageProviders(options: {
98
- defaultLang: (typeof DEFAULT_LANGUAGES)[number]['code'];
99
- }): Array<{
100
- provide: InjectionToken<unknown>;
101
- useValue: unknown;
102
- }>;
103
- static createLanguageProviders<T extends readonly Language[]>(options: {
104
- languages: T;
105
- defaultLang?: T[number]['code'];
106
- }): Array<{
107
- provide: InjectionToken<unknown>;
108
- useValue: unknown;
109
- }>;
110
- static ɵfac: i0.ɵɵFactoryDeclaration<TranslationService, never>;
134
+ * Get localized language name by code using translations
135
+ * This automatically returns the localized name based on the current language
136
+ */
137
+ getLocalizedLanguageName(code: string): string;
138
+ /**
139
+ * Force initialization method for MFE environments
140
+ */
141
+ init(): void;
142
+ static ɵfac: i0.ɵɵFactoryDeclaration<TranslationService, [{ optional: true; }]>;
111
143
  static ɵprov: i0.ɵɵInjectableDeclaration<TranslationService>;
112
144
  }
145
+ /**
146
+ * Provider function for translation configuration in Angular applications
147
+ * This provides the translation configuration through dependency injection
148
+ *
149
+ * @example
150
+ * ```typescript
151
+ * // Basic usage - only default languages available (en, es, pt)
152
+ * provideTranslation({
153
+ * defaultLang: 'es' // IntelliSense shows: 'en', 'es', 'pt'
154
+ * }),
155
+ *
156
+ * // With additional languages - IntelliSense includes base + additional languages
157
+ * provideTranslation({
158
+ * additionalLanguages: [
159
+ * { code: 'de', name: 'Deutsch' },
160
+ * { code: 'fr', name: 'Français' }
161
+ * ] as const,
162
+ * defaultLang: 'de', // IntelliSense shows: 'en', 'es', 'pt', 'de', 'fr'
163
+ * excludeLanguages: ['pt'] as const // IntelliSense shows: 'en', 'es', 'pt', 'de', 'fr'
164
+ * })
165
+ * ```
166
+ */
167
+ export declare function provideTranslation(): (Provider | EnvironmentProviders)[];
168
+ export declare function provideTranslation(config: {
169
+ /**
170
+ * Default language code (from base languages: en, es, pt)
171
+ */
172
+ defaultLang?: DefaultLanguageCode;
173
+ /**
174
+ * Languages to exclude from the default base languages (en, es, pt)
175
+ */
176
+ excludeLanguages?: readonly DefaultLanguageCode[];
177
+ /** Translation file paths */
178
+ translationPaths?: string[];
179
+ additionalLanguages?: never;
180
+ }): (Provider | EnvironmentProviders)[];
181
+ export declare function provideTranslation<const T extends readonly LanguageDefinition[]>(config: {
182
+ /**
183
+ * Additional languages to make available beyond the default base languages (en, es, pt)
184
+ */
185
+ additionalLanguages: T;
186
+ /**
187
+ * Default language code (includes both base and additional languages)
188
+ */
189
+ defaultLang?: DefaultLanguageCode | ExtractLanguageCode<T>;
190
+ /**
191
+ * Languages to exclude from the available set (includes both base and additional languages)
192
+ */
193
+ excludeLanguages?: readonly (DefaultLanguageCode | ExtractLanguageCode<T>)[];
194
+ /** Translation file paths */
195
+ translationPaths?: string[];
196
+ }): (Provider | EnvironmentProviders)[];
197
+ export {};
@@ -1,8 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export type ModalActionsAligmentProps = 'left' | 'right' | 'center';
3
- export declare class ModalActionsComponent {
4
- alignment: import("@angular/core").InputSignal<ModalActionsAligmentProps>;
5
- componentClass: import("@angular/core").Signal<string>;
6
- static ɵfac: i0.ɵɵFactoryDeclaration<ModalActionsComponent, never>;
7
- static ɵcmp: i0.ɵɵComponentDeclaration<ModalActionsComponent, "st-modal-actions", never, { "alignment": { "alias": "alignment"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
8
- }
@@ -1,5 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export declare class ModalContentComponent {
3
- static ɵfac: i0.ɵɵFactoryDeclaration<ModalContentComponent, never>;
4
- static ɵcmp: i0.ɵɵComponentDeclaration<ModalContentComponent, "st-modal-content", never, {}, {}, never, ["*"], true, never>;
5
- }
@@ -1,5 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export declare class ModalTitleComponent {
3
- static ɵfac: i0.ɵɵFactoryDeclaration<ModalTitleComponent, never>;
4
- static ɵcmp: i0.ɵɵComponentDeclaration<ModalTitleComponent, "st-modal-title", never, {}, {}, never, ["*"], true, never>;
5
- }
@@ -1,4 +0,0 @@
1
- export * from './modal-actions/modal-actions.component';
2
- export * from './modal-content/modal-content.component';
3
- export * from './modal-title/modal-title.component';
4
- export * from './src/modal.component';
@@ -1,102 +0,0 @@
1
- import { ElementRef } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- /**
4
- * CSS class generator for modal component variants
5
- * @internal
6
- */
7
- export declare const modalComponent: (props?: ({
8
- width?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | null | undefined;
9
- aligment?: "center" | "top" | "bottom" | "start" | "end" | null | undefined;
10
- } & import("class-variance-authority/types").ClassProp) | undefined) => string;
11
- /** Possible width values for the modal component */
12
- export type ModalWidthProps = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | '4xl' | '5xl' | null | undefined;
13
- /** Possible vertical alignment values for the modal component */
14
- export type ModalAlignmentProps = 'top' | 'center' | 'bottom' | 'start' | 'end' | null | undefined;
15
- /** Configuration properties for the modal component */
16
- export type ModalProps = {
17
- width?: ModalWidthProps;
18
- alignment?: ModalAlignmentProps;
19
- };
20
- /**
21
- * A customizable modal dialog component with Tailwind CSS integration
22
- *
23
- * @remarks
24
- * Uses Angular's signal-based inputs and outputs for reactive state management.
25
- * Supports various sizes and vertical alignments through input properties.
26
- *
27
- * @example
28
- * ```html
29
- * <st-modal
30
- * modalId="confirmDialog"
31
- * [(opened)]="isOpen"
32
- * width="lg"
33
- * alignment="top"
34
- * (close)="handleClose()"
35
- * (clickOutside)="handleClickOustide()"
36
- * />
37
- * ```
38
- */
39
- export declare class ModalComponent {
40
- /**
41
- * Specifies the maximum width of the modal content
42
- * @defaultValue 'md'
43
- */
44
- width: import("@angular/core").InputSignal<ModalWidthProps>;
45
- /**
46
- * Controls the vertical positioning of the modal
47
- * @defaultValue 'center'
48
- */
49
- alignment: import("@angular/core").InputSignal<ModalAlignmentProps>;
50
- /** Required unique identifier for the modal dialog */
51
- modalId: import("@angular/core").InputSignal<string>;
52
- /** Event emitted when clicking outside the modal content */
53
- clickOutside: import("@angular/core").OutputEmitterRef<void>;
54
- /** Event emitted when the modal closes */
55
- closed: import("@angular/core").OutputEmitterRef<void>;
56
- /** @internal Icon reference for close button */
57
- iconClose: string;
58
- /** @internal Reference to the underlying dialog element */
59
- dialog: import("@angular/core").Signal<ElementRef<HTMLDialogElement> | undefined>;
60
- /**
61
- * Controls the visibility state of the modal
62
- * Supports two-way binding via Angular's model
63
- */
64
- opened: import("@angular/core").ModelSignal<boolean>;
65
- /** @internal Handles open/close state changes */
66
- openedEffect: import("@angular/core").EffectRef;
67
- /**
68
- * Computes CSS classes for modal content based on current configuration
69
- * @returns Combined Tailwind classes string
70
- * @internal
71
- */
72
- componentClass: import("@angular/core").Signal<string>;
73
- /**
74
- * Computes CSS classes for modal overlay positioning
75
- * @returns Combined positioning classes string
76
- * @internal
77
- */
78
- modalClass: import("@angular/core").Signal<string>;
79
- /** @internal Opens the native dialog element */
80
- handleOpen(): void;
81
- /** @internal Closes the native dialog element */
82
- handleClose(): void;
83
- /**
84
- * Public method to close the modal and emit close event
85
- * Can be called directly from parent components
86
- */
87
- handleCloseClick(): void;
88
- /**
89
- * Handles cancel events from the dialog element
90
- * @param event - Native dialog cancel event
91
- * @internal
92
- */
93
- handleCancelClick(event: Event): void;
94
- /**
95
- * Handles click events outside the modal content
96
- * @param event - Native mouse event
97
- * @internal
98
- */
99
- handleClickOutside(event: Event): void;
100
- static ɵfac: i0.ɵɵFactoryDeclaration<ModalComponent, never>;
101
- static ɵcmp: i0.ɵɵComponentDeclaration<ModalComponent, "st-modal", never, { "width": { "alias": "width"; "required": false; "isSignal": true; }; "alignment": { "alias": "alignment"; "required": false; "isSignal": true; }; "modalId": { "alias": "modalId"; "required": true; "isSignal": true; }; "opened": { "alias": "opened"; "required": false; "isSignal": true; }; }, { "clickOutside": "clickOutside"; "closed": "closed"; "opened": "openedChange"; }, never, ["st-modal-title", "st-modal-content", "st-modal-actions"], true, never>;
102
- }
@@ -1,202 +0,0 @@
1
- import { CommonModule } from '@angular/common';
2
- import * as i0 from '@angular/core';
3
- import { input, computed, ChangeDetectionStrategy, Component, output, viewChild, model, effect } from '@angular/core';
4
- import { cn } from '@sixbell-telco/sdk/utils/cn';
5
- import { TypographyDirective } from '@sixbell-telco/sdk/directives/typography';
6
- import { matCloseOutline } from '@sixbell-telco/sdk/components/icon/material/outline';
7
- import { cva } from 'class-variance-authority';
8
-
9
- class ModalActionsComponent {
10
- // Base table properties
11
- alignment = input('left');
12
- componentClass = computed(() => cn('modal-action text-pretty font-body leading-normal', {
13
- 'justify-start': this.alignment() === 'left',
14
- 'justify-end': this.alignment() === 'right',
15
- 'justify-center': this.alignment() === 'center',
16
- }));
17
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: ModalActionsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
18
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "19.2.0", type: ModalActionsComponent, isStandalone: true, selector: "st-modal-actions", inputs: { alignment: { classPropertyName: "alignment", publicName: "alignment", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<div [class]=\"componentClass()\">\n\t<ng-content></ng-content>\n</div>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
19
- }
20
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: ModalActionsComponent, decorators: [{
21
- type: Component,
22
- args: [{ selector: 'st-modal-actions', imports: [CommonModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div [class]=\"componentClass()\">\n\t<ng-content></ng-content>\n</div>\n" }]
23
- }] });
24
-
25
- class ModalContentComponent {
26
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: ModalContentComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
27
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.0", type: ModalContentComponent, isStandalone: true, selector: "st-modal-content", ngImport: i0, template: "<ng-content></ng-content>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
28
- }
29
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: ModalContentComponent, decorators: [{
30
- type: Component,
31
- args: [{ selector: 'st-modal-content', imports: [CommonModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-content></ng-content>\n" }]
32
- }] });
33
-
34
- class ModalTitleComponent {
35
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: ModalTitleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
36
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.0", type: ModalTitleComponent, isStandalone: true, selector: "st-modal-title", ngImport: i0, template: "<div class=\"mb-6\">\n\t<h2 typography tyFontWeight=\"medium\" tyColor=\"base\" tyVariant=\"h2\">\n\t\t<ng-content></ng-content>\n\t</h2>\n</div>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: TypographyDirective, selector: "[typography]", inputs: ["tyVariant", "tyColor", "tyFontWeight", "tyTextOverflow"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
37
- }
38
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: ModalTitleComponent, decorators: [{
39
- type: Component,
40
- args: [{ selector: 'st-modal-title', imports: [CommonModule, TypographyDirective], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"mb-6\">\n\t<h2 typography tyFontWeight=\"medium\" tyColor=\"base\" tyVariant=\"h2\">\n\t\t<ng-content></ng-content>\n\t</h2>\n</div>\n" }]
41
- }] });
42
-
43
- /**
44
- * CSS class generator for modal component variants
45
- * @internal
46
- */
47
- const modalComponent = cva(['modal-box', 'bg-base-200', 'p-6', 'text-base-content', 'w-11/12'], {
48
- variants: {
49
- width: {
50
- xs: ['max-w-xs'],
51
- sm: ['max-w-sm'],
52
- md: ['max-w-md'],
53
- lg: ['max-w-lg'],
54
- xl: ['max-w-xl'],
55
- '2xl': ['max-w-2xl'],
56
- '3xl': ['max-w-3xl'],
57
- '4xl': ['max-w-4xl'],
58
- '5xl': ['max-w-5xl'],
59
- },
60
- aligment: {
61
- top: ['modal-top'],
62
- center: ['modal-middle'],
63
- bottom: ['modal-bottom'],
64
- start: ['modal-start'],
65
- end: ['modal-end'],
66
- },
67
- },
68
- compoundVariants: [],
69
- defaultVariants: {
70
- width: 'md',
71
- aligment: 'center',
72
- },
73
- });
74
- /**
75
- * A customizable modal dialog component with Tailwind CSS integration
76
- *
77
- * @remarks
78
- * Uses Angular's signal-based inputs and outputs for reactive state management.
79
- * Supports various sizes and vertical alignments through input properties.
80
- *
81
- * @example
82
- * ```html
83
- * <st-modal
84
- * modalId="confirmDialog"
85
- * [(opened)]="isOpen"
86
- * width="lg"
87
- * alignment="top"
88
- * (close)="handleClose()"
89
- * (clickOutside)="handleClickOustide()"
90
- * />
91
- * ```
92
- */
93
- class ModalComponent {
94
- /**
95
- * Specifies the maximum width of the modal content
96
- * @defaultValue 'md'
97
- */
98
- width = input();
99
- /**
100
- * Controls the vertical positioning of the modal
101
- * @defaultValue 'center'
102
- */
103
- alignment = input('center');
104
- /** Required unique identifier for the modal dialog */
105
- modalId = input.required();
106
- /** Event emitted when clicking outside the modal content */
107
- clickOutside = output();
108
- /** Event emitted when the modal closes */
109
- closed = output();
110
- /** @internal Icon reference for close button */
111
- iconClose = matCloseOutline;
112
- /** @internal Reference to the underlying dialog element */
113
- dialog = viewChild('dialog');
114
- /**
115
- * Controls the visibility state of the modal
116
- * Supports two-way binding via Angular's model
117
- */
118
- opened = model(false);
119
- /** @internal Handles open/close state changes */
120
- openedEffect = effect(() => {
121
- if (this.opened()) {
122
- this.handleOpen();
123
- }
124
- else {
125
- this.handleClose();
126
- }
127
- });
128
- /**
129
- * Computes CSS classes for modal content based on current configuration
130
- * @returns Combined Tailwind classes string
131
- * @internal
132
- */
133
- componentClass = computed(() => {
134
- return cn(modalComponent({
135
- width: this.width(),
136
- aligment: this.alignment(),
137
- }));
138
- });
139
- /**
140
- * Computes CSS classes for modal overlay positioning
141
- * @returns Combined positioning classes string
142
- * @internal
143
- */
144
- modalClass = computed(() => {
145
- return cn('modal', {
146
- 'modal-top': this.alignment() === 'top',
147
- 'modal-middle': this.alignment() === 'center',
148
- 'modal-bottom': this.alignment() === 'bottom',
149
- 'modal-start': this.alignment() === 'start',
150
- 'modal-end': this.alignment() === 'end',
151
- });
152
- });
153
- /** @internal Opens the native dialog element */
154
- handleOpen() {
155
- this.dialog()?.nativeElement.showModal();
156
- }
157
- /** @internal Closes the native dialog element */
158
- handleClose() {
159
- this.dialog()?.nativeElement.close();
160
- }
161
- /**
162
- * Public method to close the modal and emit close event
163
- * Can be called directly from parent components
164
- */
165
- handleCloseClick() {
166
- this.opened.set(false);
167
- this.closed.emit();
168
- }
169
- /**
170
- * Handles cancel events from the dialog element
171
- * @param event - Native dialog cancel event
172
- * @internal
173
- */
174
- handleCancelClick(event) {
175
- event.preventDefault();
176
- this.opened.set(false);
177
- this.closed.emit();
178
- }
179
- /**
180
- * Handles click events outside the modal content
181
- * @param event - Native mouse event
182
- * @internal
183
- */
184
- handleClickOutside(event) {
185
- event.preventDefault();
186
- this.opened.set(false);
187
- this.clickOutside.emit();
188
- }
189
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: ModalComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
190
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "19.2.0", type: ModalComponent, isStandalone: true, selector: "st-modal", inputs: { width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null }, alignment: { classPropertyName: "alignment", publicName: "alignment", isSignal: true, isRequired: false, transformFunction: null }, modalId: { classPropertyName: "modalId", publicName: "modalId", isSignal: true, isRequired: true, transformFunction: null }, opened: { classPropertyName: "opened", publicName: "opened", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { clickOutside: "clickOutside", closed: "closed", opened: "openedChange" }, viewQueries: [{ propertyName: "dialog", first: true, predicate: ["dialog"], descendants: true, isSignal: true }], ngImport: i0, template: "<!-- eslint-disable @angular-eslint/template/elements-content -->\n<dialog #dialog [id]=\"modalId()\" [class]=\"modalClass()\" (cancel)=\"handleCancelClick($event)\">\n\t<div [class]=\"componentClass()\">\n\t\t<div class=\"absolute top-2 right-2\">\n\t\t\t<button class=\"btn btn-circle btn-ghost btn-sm absolute top-0 right-0\" (click)=\"handleCloseClick()\">\u2715</button>\n\t\t</div>\n\t\t<ng-content select=\"st-modal-title\"></ng-content>\n\t\t<ng-content select=\"st-modal-content\"></ng-content>\n\t\t<ng-content select=\"st-modal-actions\"></ng-content>\n\t</div>\n\t<form method=\"dialog\" class=\"modal-backdrop\">\n\t\t<button (click)=\"handleClickOutside($event)\"></button>\n\t</form>\n</dialog>\n", styles: [""] });
191
- }
192
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: ModalComponent, decorators: [{
193
- type: Component,
194
- args: [{ selector: 'st-modal', imports: [], template: "<!-- eslint-disable @angular-eslint/template/elements-content -->\n<dialog #dialog [id]=\"modalId()\" [class]=\"modalClass()\" (cancel)=\"handleCancelClick($event)\">\n\t<div [class]=\"componentClass()\">\n\t\t<div class=\"absolute top-2 right-2\">\n\t\t\t<button class=\"btn btn-circle btn-ghost btn-sm absolute top-0 right-0\" (click)=\"handleCloseClick()\">\u2715</button>\n\t\t</div>\n\t\t<ng-content select=\"st-modal-title\"></ng-content>\n\t\t<ng-content select=\"st-modal-content\"></ng-content>\n\t\t<ng-content select=\"st-modal-actions\"></ng-content>\n\t</div>\n\t<form method=\"dialog\" class=\"modal-backdrop\">\n\t\t<button (click)=\"handleClickOutside($event)\"></button>\n\t</form>\n</dialog>\n" }]
195
- }] });
196
-
197
- /**
198
- * Generated bundle index. Do not edit.
199
- */
200
-
201
- export { ModalActionsComponent, ModalComponent, ModalContentComponent, ModalTitleComponent, modalComponent };
202
- //# sourceMappingURL=sixbell-telco-sdk-components-modal.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sixbell-telco-sdk-components-modal.mjs","sources":["../../../projects/sdk/components/modal/modal-actions/modal-actions.component.ts","../../../projects/sdk/components/modal/modal-actions/modal-actions.component.html","../../../projects/sdk/components/modal/modal-content/modal-content.component.ts","../../../projects/sdk/components/modal/modal-content/modal-content.component.html","../../../projects/sdk/components/modal/modal-title/modal-title.component.ts","../../../projects/sdk/components/modal/modal-title/modal-title.component.html","../../../projects/sdk/components/modal/src/modal.component.ts","../../../projects/sdk/components/modal/src/modal.component.html","../../../projects/sdk/components/modal/sixbell-telco-sdk-components-modal.ts"],"sourcesContent":["import { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, computed, input } from '@angular/core';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\n\nexport type ModalActionsAligmentProps = 'left' | 'right' | 'center';\n\n@Component({\n\tselector: 'st-modal-actions',\n\timports: [CommonModule],\n\ttemplateUrl: './modal-actions.component.html',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class ModalActionsComponent {\n\t// Base table properties\n\talignment = input<ModalActionsAligmentProps>('left');\n\n\tcomponentClass = computed(() =>\n\t\tcn('modal-action text-pretty font-body leading-normal', {\n\t\t\t'justify-start': this.alignment() === 'left',\n\t\t\t'justify-end': this.alignment() === 'right',\n\t\t\t'justify-center': this.alignment() === 'center',\n\t\t}),\n\t);\n}\n","<div [class]=\"componentClass()\">\n\t<ng-content></ng-content>\n</div>\n","import { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component } from '@angular/core';\n\n@Component({\n\n selector: 'st-modal-content',\n imports: [CommonModule],\n templateUrl: './modal-content.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class ModalContentComponent {}\n","<ng-content></ng-content>\n","import { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component } from '@angular/core';\nimport { TypographyDirective } from '@sixbell-telco/sdk/directives/typography';\n\n@Component({\n\n selector: 'st-modal-title',\n imports: [CommonModule, TypographyDirective],\n templateUrl: './modal-title.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class ModalTitleComponent {}\n","<div class=\"mb-6\">\n\t<h2 typography tyFontWeight=\"medium\" tyColor=\"base\" tyVariant=\"h2\">\n\t\t<ng-content></ng-content>\n\t</h2>\n</div>\n","import { Component, computed, effect, ElementRef, input, model, output, viewChild } from '@angular/core';\nimport { matCloseOutline } from '@sixbell-telco/sdk/components/icon/material/outline';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { cva } from 'class-variance-authority';\n\n/**\n * CSS class generator for modal component variants\n * @internal\n */\nexport const modalComponent = cva(['modal-box', 'bg-base-200', 'p-6', 'text-base-content', 'w-11/12'], {\n\tvariants: {\n\t\twidth: {\n\t\t\txs: ['max-w-xs'],\n\t\t\tsm: ['max-w-sm'],\n\t\t\tmd: ['max-w-md'],\n\t\t\tlg: ['max-w-lg'],\n\t\t\txl: ['max-w-xl'],\n\t\t\t'2xl': ['max-w-2xl'],\n\t\t\t'3xl': ['max-w-3xl'],\n\t\t\t'4xl': ['max-w-4xl'],\n\t\t\t'5xl': ['max-w-5xl'],\n\t\t},\n\t\taligment: {\n\t\t\ttop: ['modal-top'],\n\t\t\tcenter: ['modal-middle'],\n\t\t\tbottom: ['modal-bottom'],\n\t\t\tstart: ['modal-start'],\n\t\t\tend: ['modal-end'],\n\t\t},\n\t},\n\tcompoundVariants: [],\n\tdefaultVariants: {\n\t\twidth: 'md',\n\t\taligment: 'center',\n\t},\n});\n\n/** Possible width values for the modal component */\nexport type ModalWidthProps = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | '4xl' | '5xl' | null | undefined;\n\n/** Possible vertical alignment values for the modal component */\nexport type ModalAlignmentProps = 'top' | 'center' | 'bottom' | 'start' | 'end' | null | undefined;\n\n/** Configuration properties for the modal component */\nexport type ModalProps = {\n\twidth?: ModalWidthProps;\n\talignment?: ModalAlignmentProps;\n};\n\n/**\n * A customizable modal dialog component with Tailwind CSS integration\n *\n * @remarks\n * Uses Angular's signal-based inputs and outputs for reactive state management.\n * Supports various sizes and vertical alignments through input properties.\n *\n * @example\n * ```html\n * <st-modal\n * modalId=\"confirmDialog\"\n * [(opened)]=\"isOpen\"\n * width=\"lg\"\n * alignment=\"top\"\n * (close)=\"handleClose()\"\n * (clickOutside)=\"handleClickOustide()\"\n * />\n * ```\n */\n@Component({\n\tselector: 'st-modal',\n\timports: [],\n\ttemplateUrl: './modal.component.html',\n\tstyles: '',\n})\nexport class ModalComponent {\n\t/**\n\t * Specifies the maximum width of the modal content\n\t * @defaultValue 'md'\n\t */\n\twidth = input<ModalWidthProps>();\n\n\t/**\n\t * Controls the vertical positioning of the modal\n\t * @defaultValue 'center'\n\t */\n\talignment = input<ModalAlignmentProps>('center');\n\n\t/** Required unique identifier for the modal dialog */\n\tmodalId = input.required<string>();\n\n\t/** Event emitted when clicking outside the modal content */\n\tclickOutside = output<void>();\n\n\t/** Event emitted when the modal closes */\n\tclosed = output<void>();\n\n\t/** @internal Icon reference for close button */\n\ticonClose = matCloseOutline;\n\n\t/** @internal Reference to the underlying dialog element */\n\tdialog = viewChild<ElementRef<HTMLDialogElement>>('dialog');\n\n\t/**\n\t * Controls the visibility state of the modal\n\t * Supports two-way binding via Angular's model\n\t */\n\topened = model<boolean>(false);\n\n\t/** @internal Handles open/close state changes */\n\topenedEffect = effect(() => {\n\t\tif (this.opened()) {\n\t\t\tthis.handleOpen();\n\t\t} else {\n\t\t\tthis.handleClose();\n\t\t}\n\t});\n\n\t/**\n\t * Computes CSS classes for modal content based on current configuration\n\t * @returns Combined Tailwind classes string\n\t * @internal\n\t */\n\tcomponentClass = computed(() => {\n\t\treturn cn(\n\t\t\tmodalComponent({\n\t\t\t\twidth: this.width(),\n\t\t\t\taligment: this.alignment(),\n\t\t\t}),\n\t\t);\n\t});\n\n\t/**\n\t * Computes CSS classes for modal overlay positioning\n\t * @returns Combined positioning classes string\n\t * @internal\n\t */\n\tmodalClass = computed(() => {\n\t\treturn cn('modal', {\n\t\t\t'modal-top': this.alignment() === 'top',\n\t\t\t'modal-middle': this.alignment() === 'center',\n\t\t\t'modal-bottom': this.alignment() === 'bottom',\n\t\t\t'modal-start': this.alignment() === 'start',\n\t\t\t'modal-end': this.alignment() === 'end',\n\t\t});\n\t});\n\n\t/** @internal Opens the native dialog element */\n\thandleOpen() {\n\t\tthis.dialog()?.nativeElement.showModal();\n\t}\n\n\t/** @internal Closes the native dialog element */\n\thandleClose() {\n\t\tthis.dialog()?.nativeElement.close();\n\t}\n\n\t/**\n\t * Public method to close the modal and emit close event\n\t * Can be called directly from parent components\n\t */\n\thandleCloseClick() {\n\t\tthis.opened.set(false);\n\t\tthis.closed.emit();\n\t}\n\n\t/**\n\t * Handles cancel events from the dialog element\n\t * @param event - Native dialog cancel event\n\t * @internal\n\t */\n\thandleCancelClick(event: Event) {\n\t\tevent.preventDefault();\n\t\tthis.opened.set(false);\n\t\tthis.closed.emit();\n\t}\n\n\t/**\n\t * Handles click events outside the modal content\n\t * @param event - Native mouse event\n\t * @internal\n\t */\n\thandleClickOutside(event: Event) {\n\t\tevent.preventDefault();\n\t\tthis.opened.set(false);\n\t\tthis.clickOutside.emit();\n\t}\n}\n","<!-- eslint-disable @angular-eslint/template/elements-content -->\n<dialog #dialog [id]=\"modalId()\" [class]=\"modalClass()\" (cancel)=\"handleCancelClick($event)\">\n\t<div [class]=\"componentClass()\">\n\t\t<div class=\"absolute top-2 right-2\">\n\t\t\t<button class=\"btn btn-circle btn-ghost btn-sm absolute top-0 right-0\" (click)=\"handleCloseClick()\">✕</button>\n\t\t</div>\n\t\t<ng-content select=\"st-modal-title\"></ng-content>\n\t\t<ng-content select=\"st-modal-content\"></ng-content>\n\t\t<ng-content select=\"st-modal-actions\"></ng-content>\n\t</div>\n\t<form method=\"dialog\" class=\"modal-backdrop\">\n\t\t<button (click)=\"handleClickOutside($event)\"></button>\n\t</form>\n</dialog>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;MAYa,qBAAqB,CAAA;;AAEjC,IAAA,SAAS,GAAG,KAAK,CAA4B,MAAM,CAAC;IAEpD,cAAc,GAAG,QAAQ,CAAC,MACzB,EAAE,CAAC,mDAAmD,EAAE;AACvD,QAAA,eAAe,EAAE,IAAI,CAAC,SAAS,EAAE,KAAK,MAAM;AAC5C,QAAA,aAAa,EAAE,IAAI,CAAC,SAAS,EAAE,KAAK,OAAO;AAC3C,QAAA,gBAAgB,EAAE,IAAI,CAAC,SAAS,EAAE,KAAK,QAAQ;AAC/C,KAAA,CAAC,CACF;uGAVW,qBAAqB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;2FAArB,qBAAqB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,kBAAA,EAAA,MAAA,EAAA,EAAA,SAAA,EAAA,EAAA,iBAAA,EAAA,WAAA,EAAA,UAAA,EAAA,WAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,ECZlC,2EAGA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EDKW,YAAY,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;2FAIV,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBANjC,SAAS;AACC,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,kBAAkB,WACnB,CAAC,YAAY,CAAC,EAEN,eAAA,EAAA,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,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