@sixbell-telco/sdk 4.4.0 → 4.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 +272 -985
- package/GLOSSARY.md +76 -0
- package/README.md +143 -1346
- package/banner.webp +0 -0
- package/components/badge/src/badge.component.d.ts +6 -1
- package/components/dropdown-menu/README.md +1 -0
- package/components/dropdown-menu/bar/dropdown-menu-bar/dropdown-menu-bar.component.d.ts +2 -0
- package/components/dropdown-menu/bar/dropdown-menu-bar-sub-trigger/dropdown-menu-bar-sub-trigger.component.d.ts +9 -2
- package/components/dropdown-menu/bar/dropdown-menu-bar-trigger/dropdown-menu-bar-trigger.component.d.ts +6 -0
- package/components/dropdown-menu/context/dropdown-context-menu-trigger/dropdown-context-menu-trigger.component.d.ts +7 -0
- package/components/dropdown-menu/public-api.d.ts +1 -0
- package/components/dropdown-menu/src/directives/dropdown-menu-keyboard.directive.d.ts +54 -0
- package/components/dropdown-menu/src/dropdown-menu-sub-trigger/dropdown-menu-sub-trigger.component.d.ts +5 -0
- package/components/dropdown-menu/src/dropdown-menu-trigger/dropdown-menu-trigger.component.d.ts +15 -2
- package/components/forms/checkbox/src/checkbox.component.d.ts +12 -1
- package/components/status-illustration/README.md +38 -0
- package/components/status-illustration/index.d.ts +5 -0
- package/components/status-illustration/public-api.d.ts +1 -0
- package/components/status-illustration/src/status-illustration.component.d.ts +42 -0
- package/components/tab/directives/tab-content/tab-content.directive.d.ts +1 -1
- package/components/tree/README.md +11 -1
- package/components/tree/src/tree.component.d.ts +44 -5
- package/components/wizard/README.md +17 -0
- package/components/wizard/services/wizard.service.d.ts +9 -0
- package/components/wizard/wizard-indicator/wizard-indicator.component.d.ts +71 -0
- package/components/wizard/wizard-wrapper/wizard-wrapper.component.d.ts +24 -1
- package/directives/text/src/text.directive.d.ts +6 -2
- package/fesm2022/sixbell-telco-sdk-components-audio-player.mjs +5 -5
- package/fesm2022/sixbell-telco-sdk-components-audio-player.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-badge.mjs +8 -2
- package/fesm2022/sixbell-telco-sdk-components-badge.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-button.mjs +1 -1
- package/fesm2022/sixbell-telco-sdk-components-button.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-card.mjs +3 -3
- package/fesm2022/sixbell-telco-sdk-components-card.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-data-table.mjs +4 -4
- package/fesm2022/sixbell-telco-sdk-components-data-table.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dialog.mjs +3 -3
- package/fesm2022/sixbell-telco-sdk-components-dialog.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dropdown-menu-bar.mjs +92 -25
- package/fesm2022/sixbell-telco-sdk-components-dropdown-menu-bar.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dropdown-menu-context.mjs +29 -3
- package/fesm2022/sixbell-telco-sdk-components-dropdown-menu-context.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dropdown-menu.mjs +271 -21
- package/fesm2022/sixbell-telco-sdk-components-dropdown-menu.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dropdown.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-dropdown.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.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-file-upload.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-checkbox.mjs +14 -3
- package/fesm2022/sixbell-telco-sdk-components-forms-checkbox.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-combobox.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-forms-combobox.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-date-picker.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-forms-date-picker.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-form-error.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-forms-form-error.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-input.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-forms-input.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-select.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-forms-select.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-textarea.mjs +15 -5
- package/fesm2022/sixbell-telco-sdk-components-forms-textarea.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-paginator.mjs +2 -2
- 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-segmented-button.mjs +1 -1
- package/fesm2022/sixbell-telco-sdk-components-segmented-button.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-sonner-toaster.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-sonner-toaster.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-sonner.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-sonner.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-status-illustration.mjs +66 -0
- package/fesm2022/sixbell-telco-sdk-components-status-illustration.mjs.map +1 -0
- package/fesm2022/sixbell-telco-sdk-components-tab.mjs +1 -0
- package/fesm2022/sixbell-telco-sdk-components-tab.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-table.mjs +4 -4
- package/fesm2022/sixbell-telco-sdk-components-table.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-tooltip.mjs +1 -1
- package/fesm2022/sixbell-telco-sdk-components-tooltip.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-tree.mjs +171 -51
- package/fesm2022/sixbell-telco-sdk-components-tree.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-wizard.mjs +123 -356
- package/fesm2022/sixbell-telco-sdk-components-wizard.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-directives-text.mjs +4 -1
- package/fesm2022/sixbell-telco-sdk-directives-text.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-directives-truncate.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-directives-truncate.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-layouts.mjs +61 -17
- package/fesm2022/sixbell-telco-sdk-layouts.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-utils-theme.mjs +23 -4
- package/fesm2022/sixbell-telco-sdk-utils-theme.mjs.map +1 -1
- package/i18n/sdk/en.json +4 -1
- package/i18n/sdk/es.json +4 -1
- package/i18n/sdk/pt.json +4 -1
- package/layouts/README.md +24 -6
- package/layouts/public-api.d.ts +1 -1
- package/layouts/src/layout-account.d.ts +16 -0
- package/layouts/src/page-banner/page-banner.component.d.ts +37 -6
- package/layouts/src/user-menu/user-menu.component.d.ts +4 -2
- package/manifest.json +10943 -0
- package/package.json +50 -38
- package/schematics/lib/plan.cjs +179 -0
- package/schematics/lib/tokens.cjs +133 -0
- package/schematics/lib/workspace.cjs +118 -0
- package/schematics/manual-steps.json +90 -0
- package/schematics/migration.json +15 -0
- package/schematics/migrations/v4-0-0/assets.cjs +331 -0
- package/schematics/migrations/v4-0-0/canonical/enghouse_networks.json +360 -0
- package/schematics/migrations/v4-0-0/canonical/shell.json +25 -0
- package/schematics/migrations/v4-0-0/canonical/theme-assets.json +44 -0
- package/schematics/migrations/v4-0-0/canonical/themes.json +11 -0
- package/schematics/migrations/v4-0-0/index.cjs +96 -0
- package/schematics/migrations/v4-0-0/layout.cjs +269 -0
- package/schematics/migrations/v4-0-0/shell.cjs +1864 -0
- package/schematics/migrations/v4-6-0/index.cjs +394 -0
- package/src/_index.css +257 -26
- package/utils/theme/README.md +1 -1
- package/utils/theme/public-api.d.ts +1 -1
- package/utils/theme/src/models/theme.d.ts +10 -0
- package/utils/theme/src/theme-assets/theme-assets.service.d.ts +12 -1
- package/banner.png +0 -0
- package/components/wizard/wizard-marker/wizard-marker.component.d.ts +0 -85
- package/components/wizard/wizard-step/wizard-step.component.d.ts +0 -83
- package/components/wizard/wizard-sub-step/wizard-sub-step.component.d.ts +0 -95
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sixbell-telco-sdk-components-segmented-button.mjs","sources":["../../../projects/sdk/components/segmented-button/src/segmented-button.component.ts","../../../projects/sdk/components/segmented-button/sixbell-telco-sdk-components-segmented-button.ts"],"sourcesContent":["import {\n\tbooleanAttribute,\n\tChangeDetectionStrategy,\n\tComponent,\n\tcomputed,\n\tElementRef,\n\tforwardRef,\n\tinject,\n\tinput,\n\tmodel,\n\tsignal,\n\tviewChildren,\n} from '@angular/core';\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { IconComponent } from '@sixbell-telco/sdk/components/icon';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { cva } from 'class-variance-authority';\n\n/** Value carried by a segment */\nexport type SegmentedButtonValue = string | number | boolean;\n\n/** One segment of `st-segmented-button` */\nexport type SegmentedButtonOption = {\n\tvalue: SegmentedButtonValue;\n\t/** Visible text. Optional when `icon` is set, but then `ariaLabel` is required. */\n\tlabel?: string;\n\t/** Icon SVG (same format as `st-icon` `icon`) rendered before the label. */\n\ticon?: string;\n\t/** Accessible name for icon-only segments. */\n\tariaLabel?: string;\n\tdisabled?: boolean;\n};\n\n/** Possible segmented button color variants (selected segment) */\nexport type SegmentedButtonVariantProps =\n\t'base' | 'primary' | 'secondary' | 'tertiary' | 'accent' | 'info' | 'success' | 'warning' | 'error' | null | undefined;\n\n/** Possible segmented button sizes (same scale as `st-button`) */\nexport type SegmentedButtonSizeProps = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | null | undefined;\n\n/**\n * @internal\n * Track (radiogroup) classes\n */\nexport const segmentedButtonTrack = cva(\n\t['font-body', 'rounded-field', 'border', 'border-base-300', 'bg-base-100', 'max-w-full', 'items-stretch', 'gap-0.5', 'p-0.5'],\n\t{\n\t\tvariants: {\n\t\t\tsize: {\n\t\t\t\txs: ['h-6'],\n\t\t\t\tsm: ['h-8'],\n\t\t\t\tmd: ['h-10'],\n\t\t\t\tlg: ['h-12'],\n\t\t\t\txl: ['h-14'],\n\t\t\t},\n\t\t\tfullWidth: {\n\t\t\t\ttrue: ['flex', 'w-full'],\n\t\t\t\tfalse: ['inline-flex', 'w-max'],\n\t\t\t},\n\t\t\tdisabled: {\n\t\t\t\ttrue: ['opacity-50'],\n\t\t\t\tfalse: [],\n\t\t\t},\n\t\t},\n\t\tdefaultVariants: {\n\t\t\tsize: 'md',\n\t\t\tfullWidth: false,\n\t\t\tdisabled: false,\n\t\t},\n\t},\n);\n\n/**\n * @internal\n * Segment (radio) classes\n */\nexport const segmentedButtonSegment = cva(\n\t[\n\t\t'inline-flex',\n\t\t'min-w-0',\n\t\t'items-center',\n\t\t'justify-center',\n\t\t'gap-1.5',\n\t\t'rounded-selector',\n\t\t'font-medium',\n\t\t'leading-none',\n\t\t'whitespace-nowrap',\n\t\t'cursor-pointer',\n\t\t'transition-colors',\n\t\t'motion-reduce:transition-none',\n\t\t'focus-visible:outline-2',\n\t\t'focus-visible:outline-offset-1',\n\t\t'focus-visible:outline-base-content',\n\t\t'disabled:cursor-not-allowed',\n\t\t'disabled:opacity-50',\n\t],\n\t{\n\t\tvariants: {\n\t\t\tvariant: {\n\t\t\t\tbase: [],\n\t\t\t\tprimary: [],\n\t\t\t\tsecondary: [],\n\t\t\t\ttertiary: [],\n\t\t\t\taccent: [],\n\t\t\t\tinfo: [],\n\t\t\t\tsuccess: [],\n\t\t\t\twarning: [],\n\t\t\t\terror: [],\n\t\t\t},\n\t\t\tsize: {\n\t\t\t\txs: ['px-2', 'text-xs'],\n\t\t\t\tsm: ['px-3', 'text-[13px]'],\n\t\t\t\tmd: ['px-4', 'text-sm'],\n\t\t\t\tlg: ['px-5', 'text-[15px]'],\n\t\t\t\txl: ['px-6', 'text-base'],\n\t\t\t},\n\t\t\tselected: {\n\t\t\t\ttrue: [],\n\t\t\t\tfalse: ['text-base-content/70', 'enabled:hover:bg-base-content/5', 'enabled:hover:text-base-content'],\n\t\t\t},\n\t\t\tfullWidth: {\n\t\t\t\ttrue: ['flex-1'],\n\t\t\t\tfalse: ['shrink-0'],\n\t\t\t},\n\t\t},\n\t\tcompoundVariants: [\n\t\t\t{ selected: true, variant: 'base', class: 'bg-base-300 text-base-content' },\n\t\t\t{ selected: true, variant: 'primary', class: 'bg-primary text-primary-content' },\n\t\t\t{ selected: true, variant: 'secondary', class: 'bg-secondary text-secondary-content' },\n\t\t\t{ selected: true, variant: 'tertiary', class: 'bg-tertiary text-tertiary-content' },\n\t\t\t{ selected: true, variant: 'accent', class: 'bg-accent text-accent-content' },\n\t\t\t{ selected: true, variant: 'info', class: 'bg-info text-info-content' },\n\t\t\t{ selected: true, variant: 'success', class: 'bg-success text-success-content' },\n\t\t\t{ selected: true, variant: 'warning', class: 'bg-warning text-warning-content' },\n\t\t\t{ selected: true, variant: 'error', class: 'bg-error text-error-content' },\n\t\t],\n\t\tdefaultVariants: {\n\t\t\tvariant: 'base',\n\t\t\tsize: 'md',\n\t\t\tselected: false,\n\t\t\tfullWidth: false,\n\t\t},\n\t},\n);\n\nconst NEXT_KEYS = new Set(['ArrowRight', 'ArrowDown']);\nconst PREVIOUS_KEYS = new Set(['ArrowLeft', 'ArrowUp']);\n\n/**\n * A single-choice segmented control: a compact, keyboard-accessible radio group styled like a button bar.\n *\n * @remarks\n * - WAI-ARIA radio group pattern: `role=\"radiogroup\"` with `role=\"radio\"` segments, a single tab stop\n * (roving tabindex), arrow keys move focus and select (wrapping, disabled segments skipped), Home/End\n * jump to the first/last segment.\n * - Two-way binding through `[(value)]`, and a `ControlValueAccessor` for reactive and template forms\n * (`formControlName`, `ngModel`), including the disabled state.\n * - Name the group with `ariaLabel` or `ariaLabelledby`; icon-only segments need their own `ariaLabel`.\n * - Use it to pick a value. To switch between content panels, use `st-tab`.\n *\n * @example\n * ```html\n * <st-segmented-button ariaLabel=\"Period\" [options]=\"periods\" [(value)]=\"period\" />\n * <st-segmented-button ariaLabel=\"Format\" variant=\"primary\" fullWidth [options]=\"formats\" formControlName=\"format\" />\n * ```\n */\n@Component({\n\tselector: 'st-segmented-button',\n\tstandalone: true,\n\timports: [IconComponent],\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\tproviders: [\n\t\t{\n\t\t\tprovide: NG_VALUE_ACCESSOR,\n\t\t\tuseExisting: forwardRef(() => SegmentedButtonComponent),\n\t\t\tmulti: true,\n\t\t},\n\t],\n\thost: {\n\t\trole: 'radiogroup',\n\t\t'[class]': 'trackClass()',\n\t\t'[attr.aria-label]': 'ariaLabel() || null',\n\t\t'[attr.aria-labelledby]': 'ariaLabelledby() || null',\n\t\t'[attr.aria-disabled]': 'isDisabled() ? \"true\" : null',\n\t\t'(focusout)': 'onFocusOut($event)',\n\t},\n\ttemplate: `\n\t\t@for (option of options(); track option.value; let index = $index) {\n\t\t\t<button\n\t\t\t\t#segment\n\t\t\t\ttype=\"button\"\n\t\t\t\trole=\"radio\"\n\t\t\t\t[class]=\"segmentClass(option)\"\n\t\t\t\t[attr.aria-checked]=\"isSelected(option)\"\n\t\t\t\t[attr.aria-label]=\"option.ariaLabel || null\"\n\t\t\t\t[attr.tabindex]=\"index === tabStopIndex() ? 0 : -1\"\n\t\t\t\t[attr.data-value]=\"option.value\"\n\t\t\t\t[disabled]=\"isDisabled() || !!option.disabled\"\n\t\t\t\t(click)=\"select(option)\"\n\t\t\t\t(keydown)=\"onKeydown($event, index)\"\n\t\t\t>\n\t\t\t\t@if (option.icon) {\n\t\t\t\t\t<st-icon [icon]=\"option.icon\" color=\"inherit\" size=\"auto\" aria-hidden=\"true\" />\n\t\t\t\t}\n\t\t\t\t@if (option.label) {\n\t\t\t\t\t<span class=\"truncate\">{{ option.label }}</span>\n\t\t\t\t}\n\t\t\t</button>\n\t\t}\n\t`,\n})\nexport class SegmentedButtonComponent implements ControlValueAccessor {\n\t/** Segments to render, in order. */\n\treadonly options = input<SegmentedButtonOption[]>([]);\n\n\t/** Selected value (two-way: `[(value)]`). `null` selects nothing. */\n\treadonly value = model<SegmentedButtonValue | null>(null);\n\n\t/**\n\t * Color of the selected segment.\n\t * @defaultValue 'base'\n\t */\n\treadonly variant = input<SegmentedButtonVariantProps>();\n\n\t/**\n\t * Size, on the same scale as `st-button`.\n\t * @defaultValue 'md'\n\t */\n\treadonly size = input<SegmentedButtonSizeProps>();\n\n\t/** Stretch to the parent width; segments share the space equally. */\n\treadonly fullWidth = input(false, { transform: booleanAttribute });\n\n\t/** Disables every segment. */\n\treadonly disabled = input(false, { transform: booleanAttribute });\n\n\t/** Accessible name of the group. */\n\treadonly ariaLabel = input<string>('');\n\n\t/** Id(s) of the element(s) naming the group, such as a visible label. */\n\treadonly ariaLabelledby = input<string>('');\n\n\t/** Extra classes merged onto the track. */\n\treadonly class = input<string>('');\n\n\tprivate readonly formDisabled = signal(false);\n\tprivate readonly segments = viewChildren<ElementRef<HTMLButtonElement>>('segment');\n\tprivate readonly host = inject<ElementRef<HTMLElement>>(ElementRef).nativeElement;\n\tprivate onChange: (value: SegmentedButtonValue | null) => void = () => undefined;\n\tprivate onTouched: () => void = () => undefined;\n\n\t/** @internal */\n\treadonly isDisabled = computed(() => this.disabled() || this.formDisabled());\n\n\t/** @internal Index of the segment that holds the single tab stop. */\n\treadonly tabStopIndex = computed(() => {\n\t\tconst options = this.options();\n\t\tconst selected = options.findIndex((option) => option.value === this.value() && !option.disabled);\n\t\treturn selected >= 0 ? selected : options.findIndex((option) => !option.disabled);\n\t});\n\n\t/** @internal */\n\treadonly trackClass = computed(() =>\n\t\tcn(segmentedButtonTrack({ size: this.size() ?? 'md', fullWidth: this.fullWidth(), disabled: this.isDisabled() }), this.class()),\n\t);\n\n\t/** @internal */\n\tisSelected(option: SegmentedButtonOption): boolean {\n\t\treturn option.value === this.value();\n\t}\n\n\t/** @internal */\n\tsegmentClass(option: SegmentedButtonOption): string {\n\t\treturn segmentedButtonSegment({\n\t\t\tvariant: this.variant() ?? 'base',\n\t\t\tsize: this.size() ?? 'md',\n\t\t\tselected: this.isSelected(option),\n\t\t\tfullWidth: this.fullWidth(),\n\t\t});\n\t}\n\n\t/** Selects a segment, as a click or arrow key does. Ignored for disabled segments. */\n\tselect(option: SegmentedButtonOption): void {\n\t\tif (this.isDisabled() || option.disabled || this.isSelected(option)) return;\n\t\tthis.value.set(option.value);\n\t\tthis.onChange(option.value);\n\t}\n\n\t/** @internal */\n\tonKeydown(event: KeyboardEvent, index: number): void {\n\t\tconst options = this.options();\n\t\tconst rtl = getComputedStyle(this.host).direction === 'rtl';\n\t\tconst isHorizontal = event.key === 'ArrowLeft' || event.key === 'ArrowRight';\n\t\tlet step = 0;\n\t\tif (NEXT_KEYS.has(event.key)) step = 1;\n\t\telse if (PREVIOUS_KEYS.has(event.key)) step = -1;\n\t\tif (rtl && isHorizontal) step = -step;\n\n\t\tlet target = -1;\n\t\tif (event.key === 'Home') target = this.findEnabled(options, -1, 1);\n\t\telse if (event.key === 'End') target = this.findEnabled(options, options.length, -1);\n\t\telse if (step === 0) return;\n\t\telse target = this.findEnabled(options, index, step, true);\n\n\t\tevent.preventDefault();\n\t\tif (target < 0 || target === index) return;\n\t\tthis.select(options[target]);\n\t\tthis.segments()[target]?.nativeElement.focus();\n\t}\n\n\t/** @internal */\n\tonFocusOut(event: FocusEvent): void {\n\t\tconst next = event.relatedTarget;\n\t\tif (!(next instanceof Node) || !this.host.contains(next)) this.onTouched();\n\t}\n\n\twriteValue(value: SegmentedButtonValue | null): void {\n\t\tthis.value.set(value ?? null);\n\t}\n\n\tregisterOnChange(fn: (value: SegmentedButtonValue | null) => void): void {\n\t\tthis.onChange = fn;\n\t}\n\n\tregisterOnTouched(fn: () => void): void {\n\t\tthis.onTouched = fn;\n\t}\n\n\tsetDisabledState(isDisabled: boolean): void {\n\t\tthis.formDisabled.set(isDisabled);\n\t}\n\n\tprivate findEnabled(options: SegmentedButtonOption[], from: number, step: number, wrap = false): number {\n\t\tconst count = options.length;\n\t\tfor (let offset = 1; offset <= count; offset += 1) {\n\t\t\tlet index = from + step * offset;\n\t\t\tif (wrap) index = ((index % count) + count) % count;\n\t\t\tif (index < 0 || index >= count) return -1;\n\t\t\tif (!options[index].disabled) return index;\n\t\t}\n\t\treturn -1;\n\t}\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;AAwCA;;;AAGG;AACI,MAAM,oBAAoB,GAAG,GAAG,CACtC,CAAC,WAAW,EAAE,eAAe,EAAE,QAAQ,EAAE,iBAAiB,EAAE,aAAa,EAAE,YAAY,EAAE,eAAe,EAAE,SAAS,EAAE,OAAO,CAAC,EAC7H;AACC,IAAA,QAAQ,EAAE;AACT,QAAA,IAAI,EAAE;YACL,EAAE,EAAE,CAAC,KAAK,CAAC;YACX,EAAE,EAAE,CAAC,KAAK,CAAC;YACX,EAAE,EAAE,CAAC,MAAM,CAAC;YACZ,EAAE,EAAE,CAAC,MAAM,CAAC;YACZ,EAAE,EAAE,CAAC,MAAM,CAAC;AACZ,SAAA;AACD,QAAA,SAAS,EAAE;AACV,YAAA,IAAI,EAAE,CAAC,MAAM,EAAE,QAAQ,CAAC;AACxB,YAAA,KAAK,EAAE,CAAC,aAAa,EAAE,OAAO,CAAC;AAC/B,SAAA;AACD,QAAA,QAAQ,EAAE;YACT,IAAI,EAAE,CAAC,YAAY,CAAC;AACpB,YAAA,KAAK,EAAE,EAAE;AACT,SAAA;AACD,KAAA;AACD,IAAA,eAAe,EAAE;AAChB,Q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UAAA,EAAA,CAAA;kBA7CpC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,QAAQ,EAAE,qBAAqB;AAC/B,oBAAA,UAAU,EAAE,IAAI;oBAChB,OAAO,EAAE,CAAC,aAAa,CAAC;oBACxB,eAAe,EAAE,uBAAuB,CAAC,MAAM;AAC/C,oBAAA,SAAS,EAAE;AACV,wBAAA;AACC,4BAAA,OAAO,EAAE,iBAAiB;AAC1B,4BAAA,WAAW,EAAE,UAAU,CAAC,8BAA8B,CAAC;AACvD,4BAAA,KAAK,EAAE,IAAI;AACX,yBAAA;AACD,qBAAA;AACD,oBAAA,IAAI,EAAE;AACL,wBAAA,IAAI,EAAE,YAAY;AAClB,wBAAA,SAAS,EAAE,cAAc;AACzB,wBAAA,mBAAmB,EAAE,qBAAqB;AAC1C,wBAAA,wBAAwB,EAAE,0BAA0B;AACpD,wBAAA,sBAAsB,EAAE,8BAA8B;AACtD,wBAAA,YAAY,EAAE,oBAAoB;AAClC,qBAAA;AACD,oBAAA,QAAQ,EAAE;;;;;;;;;;;;;;;;;;;;;;;AAuBT,CAAA,CAAA;AACD,iBAAA;;;AClND;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"sixbell-telco-sdk-components-segmented-button.mjs","sources":["../../../projects/sdk/components/segmented-button/src/segmented-button.component.ts","../../../projects/sdk/components/segmented-button/sixbell-telco-sdk-components-segmented-button.ts"],"sourcesContent":["import {\n\tbooleanAttribute,\n\tChangeDetectionStrategy,\n\tComponent,\n\tcomputed,\n\tElementRef,\n\tforwardRef,\n\tinject,\n\tinput,\n\tmodel,\n\tsignal,\n\tviewChildren,\n} from '@angular/core';\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { IconComponent } from '@sixbell-telco/sdk/components/icon';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { cva } from 'class-variance-authority';\n\n/** Value carried by a segment */\nexport type SegmentedButtonValue = string | number | boolean;\n\n/** One segment of `st-segmented-button` */\nexport type SegmentedButtonOption = {\n\tvalue: SegmentedButtonValue;\n\t/** Visible text. Optional when `icon` is set, but then `ariaLabel` is required. */\n\tlabel?: string;\n\t/** Icon SVG (same format as `st-icon` `icon`) rendered before the label. */\n\ticon?: string;\n\t/** Accessible name for icon-only segments. */\n\tariaLabel?: string;\n\tdisabled?: boolean;\n};\n\n/** Possible segmented button color variants (selected segment) */\nexport type SegmentedButtonVariantProps =\n\t'base' | 'primary' | 'secondary' | 'tertiary' | 'accent' | 'info' | 'success' | 'warning' | 'error' | null | undefined;\n\n/** Possible segmented button sizes (same scale as `st-button`) */\nexport type SegmentedButtonSizeProps = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | null | undefined;\n\n/**\n * @internal\n * Track (radiogroup) classes\n */\nexport const segmentedButtonTrack = cva(\n\t['font-body', 'rounded-field', 'border', 'border-base-300', 'bg-base-100', 'max-w-full', 'items-stretch', 'gap-0.5', 'p-0.5'],\n\t{\n\t\tvariants: {\n\t\t\tsize: {\n\t\t\t\txs: ['h-6'],\n\t\t\t\tsm: ['h-8'],\n\t\t\t\tmd: ['h-10'],\n\t\t\t\tlg: ['h-12'],\n\t\t\t\txl: ['h-14'],\n\t\t\t},\n\t\t\tfullWidth: {\n\t\t\t\ttrue: ['flex', 'w-full'],\n\t\t\t\tfalse: ['inline-flex', 'w-max'],\n\t\t\t},\n\t\t\tdisabled: {\n\t\t\t\ttrue: ['opacity-50'],\n\t\t\t\tfalse: [],\n\t\t\t},\n\t\t},\n\t\tdefaultVariants: {\n\t\t\tsize: 'md',\n\t\t\tfullWidth: false,\n\t\t\tdisabled: false,\n\t\t},\n\t},\n);\n\n/**\n * @internal\n * Segment (radio) classes\n */\nexport const segmentedButtonSegment = cva(\n\t[\n\t\t'inline-flex',\n\t\t'min-w-0',\n\t\t'items-center',\n\t\t'justify-center',\n\t\t'gap-1.5',\n\t\t'rounded-selector',\n\t\t'font-medium',\n\t\t'leading-none',\n\t\t'whitespace-nowrap',\n\t\t'cursor-pointer',\n\t\t'transition-colors',\n\t\t'motion-reduce:transition-none',\n\t\t'focus-visible:outline-2',\n\t\t'focus-visible:outline-offset-1',\n\t\t'focus-visible:outline-base-content',\n\t\t'disabled:cursor-not-allowed',\n\t\t'disabled:opacity-50',\n\t],\n\t{\n\t\tvariants: {\n\t\t\tvariant: {\n\t\t\t\tbase: [],\n\t\t\t\tprimary: [],\n\t\t\t\tsecondary: [],\n\t\t\t\ttertiary: [],\n\t\t\t\taccent: [],\n\t\t\t\tinfo: [],\n\t\t\t\tsuccess: [],\n\t\t\t\twarning: [],\n\t\t\t\terror: [],\n\t\t\t},\n\t\t\tsize: {\n\t\t\t\txs: ['px-2', 'text-xs'],\n\t\t\t\tsm: ['px-3', 'text-[13px]'],\n\t\t\t\tmd: ['px-4', 'text-sm'],\n\t\t\t\tlg: ['px-5', 'text-[15px]'],\n\t\t\t\txl: ['px-6', 'text-base'],\n\t\t\t},\n\t\t\tselected: {\n\t\t\t\ttrue: [],\n\t\t\t\tfalse: ['text-base-content-secondary', 'enabled:hover:bg-base-content/5', 'enabled:hover:text-base-content'],\n\t\t\t},\n\t\t\tfullWidth: {\n\t\t\t\ttrue: ['flex-1'],\n\t\t\t\tfalse: ['shrink-0'],\n\t\t\t},\n\t\t},\n\t\tcompoundVariants: [\n\t\t\t{ selected: true, variant: 'base', class: 'bg-base-300 text-base-content' },\n\t\t\t{ selected: true, variant: 'primary', class: 'bg-primary text-primary-content' },\n\t\t\t{ selected: true, variant: 'secondary', class: 'bg-secondary text-secondary-content' },\n\t\t\t{ selected: true, variant: 'tertiary', class: 'bg-tertiary text-tertiary-content' },\n\t\t\t{ selected: true, variant: 'accent', class: 'bg-accent text-accent-content' },\n\t\t\t{ selected: true, variant: 'info', class: 'bg-info text-info-content' },\n\t\t\t{ selected: true, variant: 'success', class: 'bg-success text-success-content' },\n\t\t\t{ selected: true, variant: 'warning', class: 'bg-warning text-warning-content' },\n\t\t\t{ selected: true, variant: 'error', class: 'bg-error text-error-content' },\n\t\t],\n\t\tdefaultVariants: {\n\t\t\tvariant: 'base',\n\t\t\tsize: 'md',\n\t\t\tselected: false,\n\t\t\tfullWidth: false,\n\t\t},\n\t},\n);\n\nconst NEXT_KEYS = new Set(['ArrowRight', 'ArrowDown']);\nconst PREVIOUS_KEYS = new Set(['ArrowLeft', 'ArrowUp']);\n\n/**\n * A single-choice segmented control: a compact, keyboard-accessible radio group styled like a button bar.\n *\n * @remarks\n * - WAI-ARIA radio group pattern: `role=\"radiogroup\"` with `role=\"radio\"` segments, a single tab stop\n * (roving tabindex), arrow keys move focus and select (wrapping, disabled segments skipped), Home/End\n * jump to the first/last segment.\n * - Two-way binding through `[(value)]`, and a `ControlValueAccessor` for reactive and template forms\n * (`formControlName`, `ngModel`), including the disabled state.\n * - Name the group with `ariaLabel` or `ariaLabelledby`; icon-only segments need their own `ariaLabel`.\n * - Use it to pick a value. To switch between content panels, use `st-tab`.\n *\n * @example\n * ```html\n * <st-segmented-button ariaLabel=\"Period\" [options]=\"periods\" [(value)]=\"period\" />\n * <st-segmented-button ariaLabel=\"Format\" variant=\"primary\" fullWidth [options]=\"formats\" formControlName=\"format\" />\n * ```\n */\n@Component({\n\tselector: 'st-segmented-button',\n\tstandalone: true,\n\timports: [IconComponent],\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\tproviders: [\n\t\t{\n\t\t\tprovide: NG_VALUE_ACCESSOR,\n\t\t\tuseExisting: forwardRef(() => SegmentedButtonComponent),\n\t\t\tmulti: true,\n\t\t},\n\t],\n\thost: {\n\t\trole: 'radiogroup',\n\t\t'[class]': 'trackClass()',\n\t\t'[attr.aria-label]': 'ariaLabel() || null',\n\t\t'[attr.aria-labelledby]': 'ariaLabelledby() || null',\n\t\t'[attr.aria-disabled]': 'isDisabled() ? \"true\" : null',\n\t\t'(focusout)': 'onFocusOut($event)',\n\t},\n\ttemplate: `\n\t\t@for (option of options(); track option.value; let index = $index) {\n\t\t\t<button\n\t\t\t\t#segment\n\t\t\t\ttype=\"button\"\n\t\t\t\trole=\"radio\"\n\t\t\t\t[class]=\"segmentClass(option)\"\n\t\t\t\t[attr.aria-checked]=\"isSelected(option)\"\n\t\t\t\t[attr.aria-label]=\"option.ariaLabel || null\"\n\t\t\t\t[attr.tabindex]=\"index === tabStopIndex() ? 0 : -1\"\n\t\t\t\t[attr.data-value]=\"option.value\"\n\t\t\t\t[disabled]=\"isDisabled() || !!option.disabled\"\n\t\t\t\t(click)=\"select(option)\"\n\t\t\t\t(keydown)=\"onKeydown($event, index)\"\n\t\t\t>\n\t\t\t\t@if (option.icon) {\n\t\t\t\t\t<st-icon [icon]=\"option.icon\" color=\"inherit\" size=\"auto\" aria-hidden=\"true\" />\n\t\t\t\t}\n\t\t\t\t@if (option.label) {\n\t\t\t\t\t<span class=\"truncate\">{{ option.label }}</span>\n\t\t\t\t}\n\t\t\t</button>\n\t\t}\n\t`,\n})\nexport class SegmentedButtonComponent implements ControlValueAccessor {\n\t/** Segments to render, in order. */\n\treadonly options = input<SegmentedButtonOption[]>([]);\n\n\t/** Selected value (two-way: `[(value)]`). `null` selects nothing. */\n\treadonly value = model<SegmentedButtonValue | null>(null);\n\n\t/**\n\t * Color of the selected segment.\n\t * @defaultValue 'base'\n\t */\n\treadonly variant = input<SegmentedButtonVariantProps>();\n\n\t/**\n\t * Size, on the same scale as `st-button`.\n\t * @defaultValue 'md'\n\t */\n\treadonly size = input<SegmentedButtonSizeProps>();\n\n\t/** Stretch to the parent width; segments share the space equally. */\n\treadonly fullWidth = input(false, { transform: booleanAttribute });\n\n\t/** Disables every segment. */\n\treadonly disabled = input(false, { transform: booleanAttribute });\n\n\t/** Accessible name of the group. */\n\treadonly ariaLabel = input<string>('');\n\n\t/** Id(s) of the element(s) naming the group, such as a visible label. */\n\treadonly ariaLabelledby = input<string>('');\n\n\t/** Extra classes merged onto the track. */\n\treadonly class = input<string>('');\n\n\tprivate readonly formDisabled = signal(false);\n\tprivate readonly segments = viewChildren<ElementRef<HTMLButtonElement>>('segment');\n\tprivate readonly host = inject<ElementRef<HTMLElement>>(ElementRef).nativeElement;\n\tprivate onChange: (value: SegmentedButtonValue | null) => void = () => undefined;\n\tprivate onTouched: () => void = () => undefined;\n\n\t/** @internal */\n\treadonly isDisabled = computed(() => this.disabled() || this.formDisabled());\n\n\t/** @internal Index of the segment that holds the single tab stop. */\n\treadonly tabStopIndex = computed(() => {\n\t\tconst options = this.options();\n\t\tconst selected = options.findIndex((option) => option.value === this.value() && !option.disabled);\n\t\treturn selected >= 0 ? selected : options.findIndex((option) => !option.disabled);\n\t});\n\n\t/** @internal */\n\treadonly trackClass = computed(() =>\n\t\tcn(segmentedButtonTrack({ size: this.size() ?? 'md', fullWidth: this.fullWidth(), disabled: this.isDisabled() }), this.class()),\n\t);\n\n\t/** @internal */\n\tisSelected(option: SegmentedButtonOption): boolean {\n\t\treturn option.value === this.value();\n\t}\n\n\t/** @internal */\n\tsegmentClass(option: SegmentedButtonOption): string {\n\t\treturn segmentedButtonSegment({\n\t\t\tvariant: this.variant() ?? 'base',\n\t\t\tsize: this.size() ?? 'md',\n\t\t\tselected: this.isSelected(option),\n\t\t\tfullWidth: this.fullWidth(),\n\t\t});\n\t}\n\n\t/** Selects a segment, as a click or arrow key does. Ignored for disabled segments. */\n\tselect(option: SegmentedButtonOption): void {\n\t\tif (this.isDisabled() || option.disabled || this.isSelected(option)) return;\n\t\tthis.value.set(option.value);\n\t\tthis.onChange(option.value);\n\t}\n\n\t/** @internal */\n\tonKeydown(event: KeyboardEvent, index: number): void {\n\t\tconst options = this.options();\n\t\tconst rtl = getComputedStyle(this.host).direction === 'rtl';\n\t\tconst isHorizontal = event.key === 'ArrowLeft' || event.key === 'ArrowRight';\n\t\tlet step = 0;\n\t\tif (NEXT_KEYS.has(event.key)) step = 1;\n\t\telse if (PREVIOUS_KEYS.has(event.key)) step = -1;\n\t\tif (rtl && isHorizontal) step = -step;\n\n\t\tlet target = -1;\n\t\tif (event.key === 'Home') target = this.findEnabled(options, -1, 1);\n\t\telse if (event.key === 'End') target = this.findEnabled(options, options.length, -1);\n\t\telse if (step === 0) return;\n\t\telse target = this.findEnabled(options, index, step, true);\n\n\t\tevent.preventDefault();\n\t\tif (target < 0 || target === index) return;\n\t\tthis.select(options[target]);\n\t\tthis.segments()[target]?.nativeElement.focus();\n\t}\n\n\t/** @internal */\n\tonFocusOut(event: FocusEvent): void {\n\t\tconst next = event.relatedTarget;\n\t\tif (!(next instanceof Node) || !this.host.contains(next)) this.onTouched();\n\t}\n\n\twriteValue(value: SegmentedButtonValue | null): void {\n\t\tthis.value.set(value ?? null);\n\t}\n\n\tregisterOnChange(fn: (value: SegmentedButtonValue | null) => void): void {\n\t\tthis.onChange = fn;\n\t}\n\n\tregisterOnTouched(fn: () => void): void {\n\t\tthis.onTouched = fn;\n\t}\n\n\tsetDisabledState(isDisabled: boolean): void {\n\t\tthis.formDisabled.set(isDisabled);\n\t}\n\n\tprivate findEnabled(options: SegmentedButtonOption[], from: number, step: number, wrap = false): number {\n\t\tconst count = options.length;\n\t\tfor (let offset = 1; offset <= count; offset += 1) {\n\t\t\tlet index = from + step * offset;\n\t\t\tif (wrap) index = ((index % count) + count) % count;\n\t\t\tif (index < 0 || index >= count) return -1;\n\t\t\tif (!options[index].disabled) return index;\n\t\t}\n\t\treturn -1;\n\t}\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;AAwCA;;;AAGG;AACI,MAAM,oBAAoB,GAAG,GAAG,CACtC,CAAC,WAAW,EAAE,eAAe,EAAE,QAAQ,EAAE,iBAAiB,EAAE,aAAa,EAAE,YAAY,EAAE,eAAe,EAAE,SAAS,EAAE,OAAO,CAAC,EAC7H;AACC,IAAA,QAAQ,EAAE;AACT,QAAA,IAAI,EAAE;YACL,EAAE,EAAE,CAAC,KAAK,CAAC;YACX,EAAE,EAAE,CAAC,KAAK,CAAC;YACX,EAAE,EAAE,CAAC,MAAM,CAAC;YACZ,EAAE,E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loading]:border-neutral! data-[type=default]:border-neutral! text-base-content! rounded-box shadow-
|
|
69
|
+
toast: cn('bg-base-200! data-[type=loading]:border-neutral! data-[type=default]:border-neutral! text-base-content! rounded-box shadow-floating! w-[22rem]! border! p-4! text-pretty! transition-[transform,opacity,height,box-shadow,border-color,color]! duration-[400ms,400ms,400ms,200ms,200ms,200ms]!', { 'border-neutral!': this.richColors() === false }),
|
|
70
70
|
title: cn('font-heading! font-medium!'),
|
|
71
|
-
description: cn('text-base-content
|
|
71
|
+
description: cn('text-base-content-secondary!'),
|
|
72
72
|
actionButton: cn('btn! btn-primary! btn-xs! font-body! leading-normal! font-medium! text-pretty!'),
|
|
73
73
|
cancelButton: cn('btn! btn-secondary! btn-xs! font-body! leading-normal! font-medium! text-pretty!'),
|
|
74
74
|
closeButton: cn('btn! btn-circle! btn-xs! font-body! border-neutral! border! text-pretty!'),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sixbell-telco-sdk-components-sonner-toaster.mjs","sources":["../../../projects/sdk/components/sonner/toaster/src/toaster.component.ts","../../../projects/sdk/components/sonner/toaster/sixbell-telco-sdk-components-sonner-toaster.ts"],"sourcesContent":["import { CommonModule } from '@angular/common';\nimport { booleanAttribute, ChangeDetectionStrategy, Component, computed, input } from '@angular/core';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { NgxSonnerToaster } from 'ngx-sonner';\n\n/**\n * Sixbell Telco Sonner Toaster Component\n *\n * A wrapper around ngx-sonner-toaster that provides Tailwind CSS styling and semantic color variants.\n * This component proxies the ngx-sonner-toaster functionality while applying the SDK's design system.\n *\n * @example\n * ```html\n * <st-sonner-toaster\n * [theme]=\"'light'\"\n * [position]=\"'bottom-right'\"\n * [richColors]=\"true\"\n * />\n * ```\n */\n@Component({\n\tselector: 'st-sonner-toaster',\n\timports: [CommonModule, NgxSonnerToaster],\n\ttemplate: `\n\t\t<ngx-sonner-toaster\n\t\t\t[dir]=\"dir()\"\n\t\t\t[expand]=\"expand()\"\n\t\t\t[visibleToasts]=\"visibleToasts()\"\n\t\t\t[position]=\"position()\"\n\t\t\t[offset]=\"offset()\"\n\t\t\t[closeButton]=\"closeButton()\"\n\t\t\t[duration]=\"duration()\"\n\t\t\t[toastOptions]=\"toastOptions()\"\n\t\t/>\n\t`,\n\tstandalone: true,\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class SonnerToasterComponent {\n\t/**\n\t * Direction for the toasts\n\t * @defaultValue 'ltr'\n\t */\n\tdir = input<'ltr' | 'rtl'>('ltr');\n\n\t/**\n\t * Whether to use rich colors for semantic toasts\n\t * (semantic border and text color on the base-200 surface, applied through the SDK classes).\n\t * @defaultValue false\n\t */\n\trichColors = input(false, { transform: booleanAttribute });\n\n\t/**\n\t * Whether to expand the toast on hover\n\t * @defaultValue false\n\t */\n\texpand = input(false, { transform: booleanAttribute });\n\n\t/**\n\t * Maximum number of visible toasts\n\t * @defaultValue 3\n\t */\n\tvisibleToasts = input<number>(3);\n\n\t/**\n\t * Position of the toasts\n\t * @defaultValue 'bottom-right'\n\t */\n\tposition = input<'top-left' | 'top-right' | 'bottom-left' | 'bottom-right' | 'top-center' | 'bottom-center'>('bottom-right');\n\n\t/**\n\t * Offset from the edge of the screen\n\t * @defaultValue '16px'\n\t */\n\toffset = input<string>('16px');\n\n\t/**\n\t * Whether to show close button\n\t * @defaultValue false\n\t */\n\tcloseButton = input(false, { transform: booleanAttribute });\n\n\t/**\n\t * Duration for the toast in milliseconds\n\t * @defaultValue 4000\n\t */\n\tduration = input<number>(4000);\n\n\t/**\n\t * Default toast options with semantic styling\n\t */\n\ttoastOptions = computed(() => {\n\t\tconst baseClasses = {\n\t\t\ttoast: cn(\n\t\t\t\t'bg-base-200! data-[type=loading]:border-neutral! data-[type=default]:border-neutral! text-base-content! rounded-box shadow-
|
|
1
|
+
{"version":3,"file":"sixbell-telco-sdk-components-sonner-toaster.mjs","sources":["../../../projects/sdk/components/sonner/toaster/src/toaster.component.ts","../../../projects/sdk/components/sonner/toaster/sixbell-telco-sdk-components-sonner-toaster.ts"],"sourcesContent":["import { CommonModule } from '@angular/common';\nimport { booleanAttribute, ChangeDetectionStrategy, Component, computed, input } from '@angular/core';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { NgxSonnerToaster } from 'ngx-sonner';\n\n/**\n * Sixbell Telco Sonner Toaster Component\n *\n * A wrapper around ngx-sonner-toaster that provides Tailwind CSS styling and semantic color variants.\n * This component proxies the ngx-sonner-toaster functionality while applying the SDK's design system.\n *\n * @example\n * ```html\n * <st-sonner-toaster\n * [theme]=\"'light'\"\n * [position]=\"'bottom-right'\"\n * [richColors]=\"true\"\n * />\n * ```\n */\n@Component({\n\tselector: 'st-sonner-toaster',\n\timports: [CommonModule, NgxSonnerToaster],\n\ttemplate: `\n\t\t<ngx-sonner-toaster\n\t\t\t[dir]=\"dir()\"\n\t\t\t[expand]=\"expand()\"\n\t\t\t[visibleToasts]=\"visibleToasts()\"\n\t\t\t[position]=\"position()\"\n\t\t\t[offset]=\"offset()\"\n\t\t\t[closeButton]=\"closeButton()\"\n\t\t\t[duration]=\"duration()\"\n\t\t\t[toastOptions]=\"toastOptions()\"\n\t\t/>\n\t`,\n\tstandalone: true,\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class SonnerToasterComponent {\n\t/**\n\t * Direction for the toasts\n\t * @defaultValue 'ltr'\n\t */\n\tdir = input<'ltr' | 'rtl'>('ltr');\n\n\t/**\n\t * Whether to use rich colors for semantic toasts\n\t * (semantic border and text color on the base-200 surface, applied through the SDK classes).\n\t * @defaultValue false\n\t */\n\trichColors = input(false, { transform: booleanAttribute });\n\n\t/**\n\t * Whether to expand the toast on hover\n\t * @defaultValue false\n\t */\n\texpand = input(false, { transform: booleanAttribute });\n\n\t/**\n\t * Maximum number of visible toasts\n\t * @defaultValue 3\n\t */\n\tvisibleToasts = input<number>(3);\n\n\t/**\n\t * Position of the toasts\n\t * @defaultValue 'bottom-right'\n\t */\n\tposition = input<'top-left' | 'top-right' | 'bottom-left' | 'bottom-right' | 'top-center' | 'bottom-center'>('bottom-right');\n\n\t/**\n\t * Offset from the edge of the screen\n\t * @defaultValue '16px'\n\t */\n\toffset = input<string>('16px');\n\n\t/**\n\t * Whether to show close button\n\t * @defaultValue false\n\t */\n\tcloseButton = input(false, { transform: booleanAttribute });\n\n\t/**\n\t * Duration for the toast in milliseconds\n\t * @defaultValue 4000\n\t */\n\tduration = input<number>(4000);\n\n\t/**\n\t * Default toast options with semantic styling\n\t */\n\ttoastOptions = computed(() => {\n\t\tconst baseClasses = {\n\t\t\ttoast: cn(\n\t\t\t\t'bg-base-200! data-[type=loading]:border-neutral! data-[type=default]:border-neutral! text-base-content! rounded-box shadow-floating! w-[22rem]! border! p-4! text-pretty! transition-[transform,opacity,height,box-shadow,border-color,color]! duration-[400ms,400ms,400ms,200ms,200ms,200ms]!',\n\t\t\t\t{ 'border-neutral!': this.richColors() === false },\n\t\t\t),\n\t\t\ttitle: cn('font-heading! font-medium!'),\n\t\t\tdescription: cn('text-base-content-secondary!'),\n\t\t\tactionButton: cn('btn! btn-primary! btn-xs! font-body! leading-normal! font-medium! text-pretty!'),\n\t\t\tcancelButton: cn('btn! btn-secondary! btn-xs! font-body! leading-normal! font-medium! text-pretty!'),\n\t\t\tcloseButton: cn('btn! btn-circle! btn-xs! font-body! border-neutral! border! text-pretty!'),\n\t\t};\n\n\t\tconst semanticClasses = this.richColors()\n\t\t\t? {\n\t\t\t\t\tsuccess: cn('bg-base-200! border-success! text-success!'),\n\t\t\t\t\terror: cn('bg-base-200! border-error! text-error!'),\n\t\t\t\t\twarning: cn('bg-base-200! border-warning! text-warning!'),\n\t\t\t\t\tinfo: cn('bg-base-200! border-info! text-info!'),\n\t\t\t\t}\n\t\t\t: {};\n\n\t\treturn {\n\t\t\tunstyled: false,\n\t\t\tclasses: {\n\t\t\t\t...baseClasses,\n\t\t\t\t...semanticClasses,\n\t\t\t},\n\t\t};\n\t});\n}\n","/**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,OAAO,EAAE,CAAC,YAAY,EAAE,gBAAgB,CAAC;AACzC,oBAAA,QAAQ,EAAE;;;;;;;;;;;AAWT,CAAA,CAAA;AACD,oBAAA,UAAU,EAAE,IAAI;oBAChB,eAAe,EAAE,uBAAuB,CAAC,MAAM;AAC/C,iBAAA;;;ACrCD;;AAEG;;;;"}
|
|
@@ -113,9 +113,9 @@ class SonnerToasterComponent {
|
|
|
113
113
|
*/
|
|
114
114
|
toastOptions = computed(() => {
|
|
115
115
|
const baseClasses = {
|
|
116
|
-
toast: cn('bg-base-200! data-[type=loading]:border-neutral! data-[type=default]:border-neutral! text-base-content! rounded-box shadow-
|
|
116
|
+
toast: cn('bg-base-200! data-[type=loading]:border-neutral! data-[type=default]:border-neutral! text-base-content! rounded-box shadow-floating! w-[22rem]! border! p-4! text-pretty! transition-[transform,opacity,height,box-shadow,border-color,color]! duration-[400ms,400ms,400ms,200ms,200ms,200ms]!', { 'border-neutral!': this.richColors() === false }),
|
|
117
117
|
title: cn('font-heading! font-medium!'),
|
|
118
|
-
description: cn('text-base-content
|
|
118
|
+
description: cn('text-base-content-secondary!'),
|
|
119
119
|
actionButton: cn('btn! btn-primary! btn-xs! font-body! leading-normal! font-medium! text-pretty!'),
|
|
120
120
|
cancelButton: cn('btn! btn-secondary! btn-xs! font-body! leading-normal! font-medium! text-pretty!'),
|
|
121
121
|
closeButton: cn('btn! btn-circle! btn-xs! font-body! border-neutral! border! text-pretty!'),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sixbell-telco-sdk-components-sonner.mjs","sources":["../../../projects/sdk/components/sonner/src/sonner.component.ts","../../../projects/sdk/components/sonner/toaster/src/toaster.component.ts","../../../projects/sdk/components/sonner/sixbell-telco-sdk-components-sonner.ts"],"sourcesContent":["import { Type } from '@angular/core';\nimport { cva } from 'class-variance-authority';\nimport { toast as ngxToast } from 'ngx-sonner';\n\n/**\n * @internal\n * Generates base toast classes with style variants for semantic colors\n */\nexport const toastVariants = cva('', {\n\tvariants: {\n\t\tvariant: {\n\t\t\tbase: '',\n\t\t\tsuccess: 'text-success',\n\t\t\terror: 'text-error',\n\t\t\twarning: 'text-warning',\n\t\t\tinfo: 'text-info',\n\t\t},\n\t},\n\tdefaultVariants: {\n\t\tvariant: 'base',\n\t},\n});\n\n/** Possible toast style variants */\nexport type ToastVariantProps = 'base' | 'success' | 'error' | 'warning' | 'info' | null | undefined;\n\n/**\n * Toast function with semantic variants and Tailwind styling\n * Proxies ngx-sonner toast functionality with SDK styling\n */\nfunction createToast(message: string, options?: Record<string, unknown>) {\n\treturn ngxToast(message, options);\n}\n\n// Add methods to the function\ncreateToast.success = (message: string, options?: Record<string, unknown>) => {\n\treturn ngxToast.success(message, options);\n};\n\ncreateToast.error = (message: string, options?: Record<string, unknown>) => {\n\treturn ngxToast.error(message, options);\n};\n\n// IMPORTANT: use the variant helpers so ngx-sonner applies variant metadata (was plain toast before)\ncreateToast.warning = (message: string, options?: Record<string, unknown>) => {\n\treturn ngxToast.warning(message, options);\n};\n\ncreateToast.info = (message: string, options?: Record<string, unknown>) => {\n\treturn ngxToast.info(message, options);\n};\n\ncreateToast.loading = (message: string, options?: Record<string, unknown>) => ngxToast.loading(message, options);\n\ncreateToast.promise = (promise: Promise<unknown>, options: Record<string, unknown>) => ngxToast.promise(promise, options);\n\ncreateToast.custom = (component: Type<unknown>, options?: Record<string, unknown>) => ngxToast.custom(component, options);\n\ncreateToast.dismiss = (id?: string | number) => ngxToast.dismiss(id);\n\ncreateToast.dismissAll = () => ngxToast.dismiss();\n\nexport const toast = createToast as typeof createToast & {\n\tsuccess: (message: string, options?: Record<string, unknown>) => ReturnType<typeof ngxToast>;\n\terror: (message: string, options?: Record<string, unknown>) => ReturnType<typeof ngxToast>;\n\twarning: (message: string, options?: Record<string, unknown>) => ReturnType<typeof ngxToast>;\n\tinfo: (message: string, options?: Record<string, unknown>) => ReturnType<typeof ngxToast>;\n\tloading: (message: string, options?: Record<string, unknown>) => ReturnType<typeof ngxToast>;\n\tpromise: (promise: Promise<unknown>, options: Record<string, unknown>) => ReturnType<typeof ngxToast>;\n\tcustom: (component: Type<unknown>, options?: Record<string, unknown>) => ReturnType<typeof ngxToast>;\n\tdismiss: (id?: string | number) => ReturnType<typeof ngxToast>;\n\tdismissAll: () => ReturnType<typeof ngxToast>;\n};\n","import { CommonModule } from '@angular/common';\nimport { booleanAttribute, ChangeDetectionStrategy, Component, computed, input } from '@angular/core';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { NgxSonnerToaster } from 'ngx-sonner';\n\n/**\n * Sixbell Telco Sonner Toaster Component\n *\n * A wrapper around ngx-sonner-toaster that provides Tailwind CSS styling and semantic color variants.\n * This component proxies the ngx-sonner-toaster functionality while applying the SDK's design system.\n *\n * @example\n * ```html\n * <st-sonner-toaster\n * [theme]=\"'light'\"\n * [position]=\"'bottom-right'\"\n * [richColors]=\"true\"\n * />\n * ```\n */\n@Component({\n\tselector: 'st-sonner-toaster',\n\timports: [CommonModule, NgxSonnerToaster],\n\ttemplate: `\n\t\t<ngx-sonner-toaster\n\t\t\t[dir]=\"dir()\"\n\t\t\t[expand]=\"expand()\"\n\t\t\t[visibleToasts]=\"visibleToasts()\"\n\t\t\t[position]=\"position()\"\n\t\t\t[offset]=\"offset()\"\n\t\t\t[closeButton]=\"closeButton()\"\n\t\t\t[duration]=\"duration()\"\n\t\t\t[toastOptions]=\"toastOptions()\"\n\t\t/>\n\t`,\n\tstandalone: true,\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class SonnerToasterComponent {\n\t/**\n\t * Direction for the toasts\n\t * @defaultValue 'ltr'\n\t */\n\tdir = input<'ltr' | 'rtl'>('ltr');\n\n\t/**\n\t * Whether to use rich colors for semantic toasts\n\t * (semantic border and text color on the base-200 surface, applied through the SDK classes).\n\t * @defaultValue false\n\t */\n\trichColors = input(false, { transform: booleanAttribute });\n\n\t/**\n\t * Whether to expand the toast on hover\n\t * @defaultValue false\n\t */\n\texpand = input(false, { transform: booleanAttribute });\n\n\t/**\n\t * Maximum number of visible toasts\n\t * @defaultValue 3\n\t */\n\tvisibleToasts = input<number>(3);\n\n\t/**\n\t * Position of the toasts\n\t * @defaultValue 'bottom-right'\n\t */\n\tposition = input<'top-left' | 'top-right' | 'bottom-left' | 'bottom-right' | 'top-center' | 'bottom-center'>('bottom-right');\n\n\t/**\n\t * Offset from the edge of the screen\n\t * @defaultValue '16px'\n\t */\n\toffset = input<string>('16px');\n\n\t/**\n\t * Whether to show close button\n\t * @defaultValue false\n\t */\n\tcloseButton = input(false, { transform: booleanAttribute });\n\n\t/**\n\t * Duration for the toast in milliseconds\n\t * @defaultValue 4000\n\t */\n\tduration = input<number>(4000);\n\n\t/**\n\t * Default toast options with semantic styling\n\t */\n\ttoastOptions = computed(() => {\n\t\tconst baseClasses = {\n\t\t\ttoast: cn(\n\t\t\t\t'bg-base-200! data-[type=loading]:border-neutral! data-[type=default]:border-neutral! text-base-content! rounded-box shadow-main-lg! w-[22rem]! border! p-4! text-pretty! transition-[transform,opacity,height,box-shadow,border-color,color]! duration-[400ms,400ms,400ms,200ms,200ms,200ms]!',\n\t\t\t\t{ 'border-neutral!': this.richColors() === false },\n\t\t\t),\n\t\t\ttitle: cn('font-heading! font-medium!'),\n\t\t\tdescription: cn('text-base-content/70!'),\n\t\t\tactionButton: cn('btn! btn-primary! btn-xs! font-body! leading-normal! font-medium! text-pretty!'),\n\t\t\tcancelButton: cn('btn! btn-secondary! btn-xs! font-body! leading-normal! font-medium! text-pretty!'),\n\t\t\tcloseButton: cn('btn! btn-circle! btn-xs! font-body! border-neutral! border! text-pretty!'),\n\t\t};\n\n\t\tconst semanticClasses = this.richColors()\n\t\t\t? {\n\t\t\t\t\tsuccess: cn('bg-base-200! border-success! text-success!'),\n\t\t\t\t\terror: cn('bg-base-200! border-error! text-error!'),\n\t\t\t\t\twarning: cn('bg-base-200! border-warning! text-warning!'),\n\t\t\t\t\tinfo: cn('bg-base-200! border-info! text-info!'),\n\t\t\t\t}\n\t\t\t: {};\n\n\t\treturn {\n\t\t\tunstyled: false,\n\t\t\tclasses: {\n\t\t\t\t...baseClasses,\n\t\t\t\t...semanticClasses,\n\t\t\t},\n\t\t};\n\t});\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["ngxToast"],"mappings":";;;;;;;AAIA;;;AAGG;AACI,MAAM,aAAa,GAAG,GAAG,CAAC,EAAE,EAAE;AACpC,IAAA,QAAQ,EAAE;AACT,QAAA,OAAO,EAAE;AACR,YAAA,IAAI,EAAE,EAAE;AACR,YAAA,OAAO,EAAE,cAAc;AACvB,YAAA,KAAK,EAAE,YAAY;AACnB,YAAA,OAAO,EAAE,cAAc;AACvB,YAAA,IAAI,EAAE,WAAW;AACjB,SAAA;AACD,KAAA;AACD,IAAA,eAAe,EAAE;AAChB,QAAA,OAAO,EAAE,MAAM;AACf,KAAA;AACD,CAAA;AAKD;;;AAGG;AACH,SAAS,WAAW,CAAC,OAAe,EAAE,OAAiC,EAAA;AACtE,IAAA,OAAOA,OAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;AAClC;AAEA;AACA,WAAW,CAAC,OAAO,GAAG,CAAC,OAAe,EAAE,OAAiC,KAAI;IAC5E,OAAOA,OAAQ,CAAC,OAAO,CAAC,OAAO,EAAE,OAAO,CAAC;AAC1C,CAAC;AAED,WAAW,CAAC,KAAK,GAAG,CAAC,OAAe,EAAE,OAAiC,KAAI;IAC1E,OAAOA,OAAQ,CAAC,KAAK,CAAC,OAAO,EAAE,OAAO,CAAC;AACxC,CAAC;AAED;AACA,WAAW,CAAC,OAAO,GAAG,CAAC,OAAe,EAAE,OAAiC,KAAI;IAC5E,OAAOA,OAAQ,CAAC,OAAO,CAAC,OAAO,EAAE,OAAO,CAAC;AAC1C,CAAC;AAED,WAAW,CAAC,IAAI,GAAG,CAAC,OAAe,EAAE,OAAiC,KAAI;IACzE,OAAOA,OAAQ,CAAC,IAAI,CAAC,OAAO,EAAE,OAA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AAA,UAAA,EAAA,IAAA,EAZS,YAAY,+BAAE,gBAAgB,EAAA,QAAA,EAAA,oBAAA,EAAA,MAAA,EAAA,CAAA,QAAA,EAAA,OAAA,EAAA,UAAA,EAAA,QAAA,EAAA,YAAA,EAAA,QAAA,EAAA,UAAA,EAAA,eAAA,EAAA,aAAA,EAAA,cAAA,EAAA,QAAA,EAAA,KAAA,EAAA,OAAA,EAAA,OAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;4FAgB5B,sBAAsB,EAAA,UAAA,EAAA,CAAA;kBAlBlC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,QAAQ,EAAE,mBAAmB;AAC7B,oBAAA,OAAO,EAAE,CAAC,YAAY,EAAE,gBAAgB,CAAC;AACzC,oBAAA,QAAQ,EAAE;;;;;;;;;;;AAWT,CAAA,CAAA;AACD,oBAAA,UAAU,EAAE,IAAI;oBAChB,eAAe,EAAE,uBAAuB,CAAC,MAAM;AAC/C,iBAAA;;;ACrCD;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"sixbell-telco-sdk-components-sonner.mjs","sources":["../../../projects/sdk/components/sonner/src/sonner.component.ts","../../../projects/sdk/components/sonner/toaster/src/toaster.component.ts","../../../projects/sdk/components/sonner/sixbell-telco-sdk-components-sonner.ts"],"sourcesContent":["import { Type } from '@angular/core';\nimport { cva } from 'class-variance-authority';\nimport { toast as ngxToast } from 'ngx-sonner';\n\n/**\n * @internal\n * Generates base toast classes with style variants for semantic colors\n */\nexport const toastVariants = cva('', {\n\tvariants: {\n\t\tvariant: {\n\t\t\tbase: '',\n\t\t\tsuccess: 'text-success',\n\t\t\terror: 'text-error',\n\t\t\twarning: 'text-warning',\n\t\t\tinfo: 'text-info',\n\t\t},\n\t},\n\tdefaultVariants: {\n\t\tvariant: 'base',\n\t},\n});\n\n/** Possible toast style variants */\nexport type ToastVariantProps = 'base' | 'success' | 'error' | 'warning' | 'info' | null | undefined;\n\n/**\n * Toast function with semantic variants and Tailwind styling\n * Proxies ngx-sonner toast functionality with SDK styling\n */\nfunction createToast(message: string, options?: Record<string, unknown>) {\n\treturn ngxToast(message, options);\n}\n\n// Add methods to the function\ncreateToast.success = (message: string, options?: Record<string, unknown>) => {\n\treturn ngxToast.success(message, options);\n};\n\ncreateToast.error = (message: string, options?: Record<string, unknown>) => {\n\treturn ngxToast.error(message, options);\n};\n\n// IMPORTANT: use the variant helpers so ngx-sonner applies variant metadata (was plain toast before)\ncreateToast.warning = (message: string, options?: Record<string, unknown>) => {\n\treturn ngxToast.warning(message, options);\n};\n\ncreateToast.info = (message: string, options?: Record<string, unknown>) => {\n\treturn ngxToast.info(message, options);\n};\n\ncreateToast.loading = (message: string, options?: Record<string, unknown>) => ngxToast.loading(message, options);\n\ncreateToast.promise = (promise: Promise<unknown>, options: Record<string, unknown>) => ngxToast.promise(promise, options);\n\ncreateToast.custom = (component: Type<unknown>, options?: Record<string, unknown>) => ngxToast.custom(component, options);\n\ncreateToast.dismiss = (id?: string | number) => ngxToast.dismiss(id);\n\ncreateToast.dismissAll = () => ngxToast.dismiss();\n\nexport const toast = createToast as typeof createToast & {\n\tsuccess: (message: string, options?: Record<string, unknown>) => ReturnType<typeof ngxToast>;\n\terror: (message: string, options?: Record<string, unknown>) => ReturnType<typeof ngxToast>;\n\twarning: (message: string, options?: Record<string, unknown>) => ReturnType<typeof ngxToast>;\n\tinfo: (message: string, options?: Record<string, unknown>) => ReturnType<typeof ngxToast>;\n\tloading: (message: string, options?: Record<string, unknown>) => ReturnType<typeof ngxToast>;\n\tpromise: (promise: Promise<unknown>, options: Record<string, unknown>) => ReturnType<typeof ngxToast>;\n\tcustom: (component: Type<unknown>, options?: Record<string, unknown>) => ReturnType<typeof ngxToast>;\n\tdismiss: (id?: string | number) => ReturnType<typeof ngxToast>;\n\tdismissAll: () => ReturnType<typeof ngxToast>;\n};\n","import { CommonModule } from '@angular/common';\nimport { booleanAttribute, ChangeDetectionStrategy, Component, computed, input } from '@angular/core';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { NgxSonnerToaster } from 'ngx-sonner';\n\n/**\n * Sixbell Telco Sonner Toaster Component\n *\n * A wrapper around ngx-sonner-toaster that provides Tailwind CSS styling and semantic color variants.\n * This component proxies the ngx-sonner-toaster functionality while applying the SDK's design system.\n *\n * @example\n * ```html\n * <st-sonner-toaster\n * [theme]=\"'light'\"\n * [position]=\"'bottom-right'\"\n * [richColors]=\"true\"\n * />\n * ```\n */\n@Component({\n\tselector: 'st-sonner-toaster',\n\timports: [CommonModule, NgxSonnerToaster],\n\ttemplate: `\n\t\t<ngx-sonner-toaster\n\t\t\t[dir]=\"dir()\"\n\t\t\t[expand]=\"expand()\"\n\t\t\t[visibleToasts]=\"visibleToasts()\"\n\t\t\t[position]=\"position()\"\n\t\t\t[offset]=\"offset()\"\n\t\t\t[closeButton]=\"closeButton()\"\n\t\t\t[duration]=\"duration()\"\n\t\t\t[toastOptions]=\"toastOptions()\"\n\t\t/>\n\t`,\n\tstandalone: true,\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class SonnerToasterComponent {\n\t/**\n\t * Direction for the toasts\n\t * @defaultValue 'ltr'\n\t */\n\tdir = input<'ltr' | 'rtl'>('ltr');\n\n\t/**\n\t * Whether to use rich colors for semantic toasts\n\t * (semantic border and text color on the base-200 surface, applied through the SDK classes).\n\t * @defaultValue false\n\t */\n\trichColors = input(false, { transform: booleanAttribute });\n\n\t/**\n\t * Whether to expand the toast on hover\n\t * @defaultValue false\n\t */\n\texpand = input(false, { transform: booleanAttribute });\n\n\t/**\n\t * Maximum number of visible toasts\n\t * @defaultValue 3\n\t */\n\tvisibleToasts = input<number>(3);\n\n\t/**\n\t * Position of the toasts\n\t * @defaultValue 'bottom-right'\n\t */\n\tposition = input<'top-left' | 'top-right' | 'bottom-left' | 'bottom-right' | 'top-center' | 'bottom-center'>('bottom-right');\n\n\t/**\n\t * Offset from the edge of the screen\n\t * @defaultValue '16px'\n\t */\n\toffset = input<string>('16px');\n\n\t/**\n\t * Whether to show close button\n\t * @defaultValue false\n\t */\n\tcloseButton = input(false, { transform: booleanAttribute });\n\n\t/**\n\t * Duration for the toast in milliseconds\n\t * @defaultValue 4000\n\t */\n\tduration = input<number>(4000);\n\n\t/**\n\t * Default toast options with semantic styling\n\t */\n\ttoastOptions = computed(() => {\n\t\tconst baseClasses = {\n\t\t\ttoast: cn(\n\t\t\t\t'bg-base-200! data-[type=loading]:border-neutral! data-[type=default]:border-neutral! text-base-content! rounded-box shadow-floating! w-[22rem]! border! p-4! text-pretty! transition-[transform,opacity,height,box-shadow,border-color,color]! duration-[400ms,400ms,400ms,200ms,200ms,200ms]!',\n\t\t\t\t{ 'border-neutral!': this.richColors() === false },\n\t\t\t),\n\t\t\ttitle: cn('font-heading! font-medium!'),\n\t\t\tdescription: cn('text-base-content-secondary!'),\n\t\t\tactionButton: cn('btn! btn-primary! btn-xs! font-body! leading-normal! font-medium! text-pretty!'),\n\t\t\tcancelButton: cn('btn! btn-secondary! btn-xs! font-body! leading-normal! font-medium! text-pretty!'),\n\t\t\tcloseButton: cn('btn! btn-circle! btn-xs! font-body! border-neutral! border! text-pretty!'),\n\t\t};\n\n\t\tconst semanticClasses = this.richColors()\n\t\t\t? {\n\t\t\t\t\tsuccess: cn('bg-base-200! border-success! text-success!'),\n\t\t\t\t\terror: cn('bg-base-200! border-error! text-error!'),\n\t\t\t\t\twarning: cn('bg-base-200! border-warning! text-warning!'),\n\t\t\t\t\tinfo: cn('bg-base-200! border-info! text-info!'),\n\t\t\t\t}\n\t\t\t: {};\n\n\t\treturn {\n\t\t\tunstyled: false,\n\t\t\tclasses: {\n\t\t\t\t...baseClasses,\n\t\t\t\t...semanticClasses,\n\t\t\t},\n\t\t};\n\t});\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["ngxToast"],"mappings":";;;;;;;AAIA;;;AAGG;A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KAAA,EAAA,OAAA,EAAA,OAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;4FAgB5B,sBAAsB,EAAA,UAAA,EAAA,CAAA;kBAlBlC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,QAAQ,EAAE,mBAAmB;AAC7B,oBAAA,OAAO,EAAE,CAAC,YAAY,EAAE,gBAAgB,CAAC;AACzC,oBAAA,QAAQ,EAAE;;;;;;;;;;;AAWT,CAAA,CAAA;AACD,oBAAA,UAAU,EAAE,IAAI;oBAChB,eAAe,EAAE,uBAAuB,CAAC,MAAM;AAC/C,iBAAA;;;ACrCD;;AAEG;;;;"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { input, computed, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
3
|
+
import { cn } from '@sixbell-telco/sdk/utils/cn';
|
|
4
|
+
|
|
5
|
+
const VARIANTS = {
|
|
6
|
+
'not-found': ['depth', 'searching', 'disconnected', 'drift'],
|
|
7
|
+
'server-error': ['monitor', 'crash', 'overload'],
|
|
8
|
+
'no-access': ['shield', 'gate', 'key', 'signal'],
|
|
9
|
+
offline: [],
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Animated, theme-coloured artwork for status pages (404, 500, 403 and offline).
|
|
13
|
+
*
|
|
14
|
+
* @remarks
|
|
15
|
+
* Colours come from the active theme (`primary`, `accent`, `base-*`), so it follows light and dark schemes.
|
|
16
|
+
* The motion stops under `prefers-reduced-motion: reduce`.
|
|
17
|
+
* It is decorative (`aria-hidden`) unless `label` is set; the page heading should carry the message.
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* ```html
|
|
21
|
+
* <st-status-illustration kind="not-found" />
|
|
22
|
+
* <st-status-illustration kind="no-access" variant="key" label="Access denied" />
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
25
|
+
class StatusIllustrationComponent {
|
|
26
|
+
/** Status page the artwork illustrates */
|
|
27
|
+
kind = input.required();
|
|
28
|
+
/**
|
|
29
|
+
* Alternative artwork for the kind; `null` or a variant of another kind uses the kind's default
|
|
30
|
+
* @defaultValue null
|
|
31
|
+
*/
|
|
32
|
+
variant = input(null);
|
|
33
|
+
/** Accessible name. Empty keeps the illustration decorative (`aria-hidden`). */
|
|
34
|
+
label = input('');
|
|
35
|
+
/** Additional classes merged onto the host */
|
|
36
|
+
class = input('');
|
|
37
|
+
/** @internal Template case: `kind/variant`, or the kind alone when it has one artwork. */
|
|
38
|
+
illustration = computed(() => {
|
|
39
|
+
const kind = this.kind();
|
|
40
|
+
const variants = VARIANTS[kind];
|
|
41
|
+
if (!variants.length)
|
|
42
|
+
return kind;
|
|
43
|
+
const variant = this.variant();
|
|
44
|
+
return `${kind}/${variant && variants.includes(variant) ? variant : variants[0]}`;
|
|
45
|
+
});
|
|
46
|
+
/** @internal */
|
|
47
|
+
componentClass = computed(() => cn('flex items-center justify-center', this.class()));
|
|
48
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: StatusIllustrationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
49
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.25", type: StatusIllustrationComponent, isStandalone: true, selector: "st-status-illustration", inputs: { kind: { classPropertyName: "kind", publicName: "kind", isSignal: true, isRequired: true, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "componentClass()", "attr.role": "label() ? \"img\" : null", "attr.aria-label": "label() || null", "attr.aria-hidden": "label() ? null : \"true\"" } }, ngImport: i0, template: "@switch (illustration()) {\n\t@case ('not-found/depth') {\n\t\t<svg class=\"h-auto w-full max-w-sm\" [attr.data-illustration]=\"illustration()\" viewBox=\"0 0 320 220\" aria-hidden=\"true\" focusable=\"false\">\n\t\t\t<ellipse class=\"sp-shadow-pulse fill-base-content\" cx=\"160\" cy=\"185\" rx=\"100\" ry=\"12\" opacity=\"0.1\" />\n\t\t\t<g class=\"sp-text-float\">\n\t\t\t\t<text\n\t\t\t\t\tclass=\"fill-primary\"\n\t\t\t\t\tx=\"160\"\n\t\t\t\t\ty=\"148\"\n\t\t\t\t\ttext-anchor=\"middle\"\n\t\t\t\t\tfont-family=\"inherit\"\n\t\t\t\t\tfont-size=\"120\"\n\t\t\t\t\tfont-weight=\"900\"\n\t\t\t\t\topacity=\"0.9\"\n\t\t\t\t\tletter-spacing=\"-4\"\n\t\t\t\t>\n\t\t\t\t\t404\n\t\t\t\t</text>\n\t\t\t</g>\n\t\t</svg>\n\t}\n\t@case ('not-found/searching') {\n\t\t<svg class=\"h-auto w-full max-w-xs\" [attr.data-illustration]=\"illustration()\" viewBox=\"0 0 260 220\" aria-hidden=\"true\" focusable=\"false\">\n\t\t\t<text class=\"fill-primary\" x=\"70\" y=\"90\" font-family=\"inherit\" font-size=\"28\" font-weight=\"700\" opacity=\"0.12\">?</text>\n\t\t\t<text class=\"fill-primary\" x=\"150\" y=\"70\" font-family=\"inherit\" font-size=\"20\" font-weight=\"700\" opacity=\"0.1\">?</text>\n\t\t\t<text class=\"fill-primary\" x=\"190\" y=\"120\" font-family=\"inherit\" font-size=\"24\" font-weight=\"700\" opacity=\"0.08\">?</text>\n\t\t\t<g class=\"sp-scan\">\n\t\t\t\t<circle class=\"stroke-primary\" cx=\"130\" cy=\"110\" r=\"36\" fill=\"none\" stroke-width=\"6\" />\n\t\t\t\t<circle class=\"sp-lens-pulse fill-primary\" cx=\"130\" cy=\"110\" r=\"28\" opacity=\"0.06\" />\n\t\t\t\t<line class=\"stroke-base-content\" x1=\"156\" y1=\"136\" x2=\"180\" y2=\"160\" stroke-width=\"8\" stroke-linecap=\"round\" />\n\t\t\t</g>\n\t\t\t<line class=\"stroke-base-300\" x1=\"40\" y1=\"184\" x2=\"220\" y2=\"184\" stroke-width=\"2\" opacity=\"0.4\" />\n\t\t</svg>\n\t}\n\t@case ('not-found/disconnected') {\n\t\t<svg class=\"h-auto w-full max-w-sm\" [attr.data-illustration]=\"illustration()\" viewBox=\"0 0 320 220\" aria-hidden=\"true\" focusable=\"false\">\n\t\t\t<g class=\"sp-plug-left\">\n\t\t\t\t<line class=\"stroke-base-content\" x1=\"20\" y1=\"100\" x2=\"110\" y2=\"100\" stroke-width=\"8\" stroke-linecap=\"round\" opacity=\"0.6\" />\n\t\t\t\t<rect class=\"fill-base-content\" x=\"100\" y=\"84\" width=\"36\" height=\"32\" rx=\"8\" opacity=\"0.85\" />\n\t\t\t\t<rect class=\"fill-base-content\" x=\"136\" y=\"90\" width=\"14\" height=\"6\" rx=\"3\" opacity=\"0.7\" />\n\t\t\t\t<rect class=\"fill-base-content\" x=\"136\" y=\"104\" width=\"14\" height=\"6\" rx=\"3\" opacity=\"0.7\" />\n\t\t\t</g>\n\t\t\t<g>\n\t\t\t\t<line class=\"sp-spark stroke-accent\" x1=\"158\" y1=\"94\" x2=\"164\" y2=\"84\" stroke-width=\"2.5\" stroke-linecap=\"round\" />\n\t\t\t\t<line class=\"sp-spark stroke-primary sp-delay-500\" x1=\"162\" y1=\"100\" x2=\"168\" y2=\"100\" stroke-width=\"2\" stroke-linecap=\"round\" />\n\t\t\t\t<line class=\"sp-spark stroke-accent sp-delay-1000\" x1=\"158\" y1=\"106\" x2=\"164\" y2=\"116\" stroke-width=\"2.5\" stroke-linecap=\"round\" />\n\t\t\t</g>\n\t\t\t<g class=\"sp-plug-right\">\n\t\t\t\t<rect class=\"fill-base-content\" x=\"170\" y=\"84\" width=\"36\" height=\"32\" rx=\"8\" opacity=\"0.85\" />\n\t\t\t\t<rect class=\"fill-base-300\" x=\"166\" y=\"90\" width=\"10\" height=\"6\" rx=\"3\" />\n\t\t\t\t<rect class=\"fill-base-300\" x=\"166\" y=\"104\" width=\"10\" height=\"6\" rx=\"3\" />\n\t\t\t\t<line class=\"stroke-base-content\" x1=\"206\" y1=\"100\" x2=\"300\" y2=\"100\" stroke-width=\"8\" stroke-linecap=\"round\" opacity=\"0.6\" />\n\t\t\t</g>\n\t\t\t<text\n\t\t\t\tclass=\"fill-primary\"\n\t\t\t\tx=\"160\"\n\t\t\t\ty=\"186\"\n\t\t\t\ttext-anchor=\"middle\"\n\t\t\t\tfont-family=\"inherit\"\n\t\t\t\tfont-size=\"48\"\n\t\t\t\tfont-weight=\"900\"\n\t\t\t\topacity=\"0.25\"\n\t\t\t\tletter-spacing=\"-2\"\n\t\t\t>\n\t\t\t\t404\n\t\t\t</text>\n\t\t</svg>\n\t}\n\t@case ('not-found/drift') {\n\t\t<svg class=\"h-auto w-full max-w-xs\" [attr.data-illustration]=\"illustration()\" viewBox=\"0 0 260 200\" aria-hidden=\"true\" focusable=\"false\">\n\t\t\t<path\n\t\t\t\tclass=\"sp-trail stroke-primary\"\n\t\t\t\td=\"M30 140 Q80 150 110 130 Q140 110 150 100\"\n\t\t\t\tfill=\"none\"\n\t\t\t\tstroke-width=\"2\"\n\t\t\t\topacity=\"0.3\"\n\t\t\t\tstroke-linecap=\"round\"\n\t\t\t/>\n\t\t\t<g transform=\"translate(155 85)\">\n\t\t\t\t<g class=\"sp-drift\">\n\t\t\t\t\t<polygon class=\"fill-primary\" points=\"0,-18 36,4 0,8 -6,0\" opacity=\"0.85\" />\n\t\t\t\t\t<line class=\"stroke-base-100\" x1=\"0\" y1=\"-18\" x2=\"0\" y2=\"8\" stroke-width=\"1.5\" opacity=\"0.5\" />\n\t\t\t\t\t<polygon class=\"fill-primary\" points=\"0,8 36,4 0,-2\" opacity=\"0.55\" />\n\t\t\t\t</g>\n\t\t\t</g>\n\t\t\t<line class=\"stroke-base-300\" x1=\"30\" y1=\"170\" x2=\"230\" y2=\"170\" stroke-width=\"1.5\" opacity=\"0.3\" />\n\t\t</svg>\n\t}\n\t@case ('server-error/monitor') {\n\t\t<svg class=\"h-auto w-full max-w-xs\" [attr.data-illustration]=\"illustration()\" viewBox=\"0 0 260 240\" aria-hidden=\"true\" focusable=\"false\">\n\t\t\t<rect class=\"fill-base-100 stroke-base-300\" x=\"50\" y=\"50\" width=\"160\" height=\"110\" rx=\"10\" stroke-width=\"3\" />\n\t\t\t<g class=\"sp-static\">\n\t\t\t\t<rect class=\"fill-base-300\" x=\"60\" y=\"60\" width=\"140\" height=\"90\" rx=\"6\" opacity=\"0.35\" />\n\t\t\t\t<line class=\"stroke-base-content\" x1=\"68\" y1=\"76\" x2=\"120\" y2=\"76\" stroke-width=\"2\" opacity=\"0.1\" />\n\t\t\t\t<line class=\"stroke-base-content\" x1=\"90\" y1=\"90\" x2=\"180\" y2=\"90\" stroke-width=\"1.5\" opacity=\"0.08\" />\n\t\t\t\t<line class=\"stroke-base-content\" x1=\"68\" y1=\"104\" x2=\"150\" y2=\"104\" stroke-width=\"2\" opacity=\"0.12\" />\n\t\t\t\t<line class=\"stroke-base-content\" x1=\"100\" y1=\"118\" x2=\"190\" y2=\"118\" stroke-width=\"1.5\" opacity=\"0.08\" />\n\t\t\t\t<line class=\"stroke-base-content\" x1=\"68\" y1=\"132\" x2=\"140\" y2=\"132\" stroke-width=\"2\" opacity=\"0.1\" />\n\t\t\t</g>\n\t\t\t<rect class=\"fill-base-content\" x=\"114\" y=\"160\" width=\"32\" height=\"14\" rx=\"4\" opacity=\"0.45\" />\n\t\t\t<rect class=\"fill-base-content\" x=\"96\" y=\"172\" width=\"68\" height=\"8\" rx=\"4\" opacity=\"0.35\" />\n\t\t\t<path class=\"sp-smoke stroke-base-content\" d=\"M110 50 Q114 38 118 50\" fill=\"none\" stroke-width=\"2.5\" stroke-linecap=\"round\" opacity=\"0.35\" />\n\t\t\t<path\n\t\t\t\tclass=\"sp-smoke stroke-base-content sp-delay-800\"\n\t\t\t\td=\"M132 46 Q136 32 140 46\"\n\t\t\t\tfill=\"none\"\n\t\t\t\tstroke-width=\"2\"\n\t\t\t\tstroke-linecap=\"round\"\n\t\t\t\topacity=\"0.3\"\n\t\t\t/>\n\t\t\t<path\n\t\t\t\tclass=\"sp-smoke stroke-base-content sp-delay-1500\"\n\t\t\t\td=\"M152 50 Q156 36 160 50\"\n\t\t\t\tfill=\"none\"\n\t\t\t\tstroke-width=\"2.5\"\n\t\t\t\tstroke-linecap=\"round\"\n\t\t\t\topacity=\"0.3\"\n\t\t\t/>\n\t\t\t<g transform=\"translate(130 28)\">\n\t\t\t\t<g class=\"sp-warning-bob\">\n\t\t\t\t\t<polygon class=\"fill-base-100 stroke-accent\" points=\"0,-16 16,10 -16,10\" stroke-width=\"2.5\" stroke-linejoin=\"round\" />\n\t\t\t\t\t<text class=\"fill-accent\" x=\"0\" y=\"6\" text-anchor=\"middle\" font-family=\"inherit\" font-size=\"14\" font-weight=\"900\">!</text>\n\t\t\t\t</g>\n\t\t\t</g>\n\t\t\t<text\n\t\t\t\tclass=\"fill-primary\"\n\t\t\t\tx=\"130\"\n\t\t\t\ty=\"218\"\n\t\t\t\ttext-anchor=\"middle\"\n\t\t\t\tfont-family=\"inherit\"\n\t\t\t\tfont-size=\"32\"\n\t\t\t\tfont-weight=\"900\"\n\t\t\t\topacity=\"0.2\"\n\t\t\t\tletter-spacing=\"-1\"\n\t\t\t>\n\t\t\t\t500\n\t\t\t</text>\n\t\t</svg>\n\t}\n\t@case ('server-error/crash') {\n\t\t<svg class=\"h-auto w-full max-w-xs\" [attr.data-illustration]=\"illustration()\" viewBox=\"0 0 260 240\" aria-hidden=\"true\" focusable=\"false\">\n\t\t\t<rect class=\"fill-base-100 stroke-base-300\" x=\"52\" y=\"54\" width=\"156\" height=\"104\" rx=\"10\" stroke-width=\"3\" />\n\t\t\t<path\n\t\t\t\tclass=\"stroke-primary\"\n\t\t\t\td=\"M66 86 L104 110 L122 88 L148 116 L170 98 L194 122\"\n\t\t\t\tfill=\"none\"\n\t\t\t\tstroke-width=\"8\"\n\t\t\t\tstroke-linecap=\"round\"\n\t\t\t\tstroke-linejoin=\"round\"\n\t\t\t/>\n\t\t\t<path\n\t\t\t\tclass=\"sp-warning-bob stroke-accent\"\n\t\t\t\td=\"M124 54 L118 82 L134 82 L126 112\"\n\t\t\t\tfill=\"none\"\n\t\t\t\tstroke-width=\"5\"\n\t\t\t\tstroke-linecap=\"round\"\n\t\t\t\tstroke-linejoin=\"round\"\n\t\t\t/>\n\t\t\t<circle class=\"fill-base-content\" cx=\"86\" cy=\"146\" r=\"6\" opacity=\"0.16\" />\n\t\t\t<circle class=\"fill-base-content\" cx=\"174\" cy=\"146\" r=\"6\" opacity=\"0.16\" />\n\t\t\t<rect class=\"fill-base-content\" x=\"112\" y=\"164\" width=\"36\" height=\"12\" rx=\"4\" opacity=\"0.4\" />\n\t\t\t<rect class=\"fill-base-content\" x=\"96\" y=\"176\" width=\"68\" height=\"8\" rx=\"4\" opacity=\"0.28\" />\n\t\t\t<text\n\t\t\t\tclass=\"fill-primary\"\n\t\t\t\tx=\"130\"\n\t\t\t\ty=\"218\"\n\t\t\t\ttext-anchor=\"middle\"\n\t\t\t\tfont-family=\"inherit\"\n\t\t\t\tfont-size=\"32\"\n\t\t\t\tfont-weight=\"900\"\n\t\t\t\topacity=\"0.2\"\n\t\t\t\tletter-spacing=\"-1\"\n\t\t\t>\n\t\t\t\t500\n\t\t\t</text>\n\t\t</svg>\n\t}\n\t@case ('server-error/overload') {\n\t\t<svg class=\"h-auto w-full max-w-xs\" [attr.data-illustration]=\"illustration()\" viewBox=\"0 0 260 240\" aria-hidden=\"true\" focusable=\"false\">\n\t\t\t<rect class=\"fill-base-100 stroke-base-300\" x=\"58\" y=\"62\" width=\"144\" height=\"96\" rx=\"12\" stroke-width=\"3\" />\n\t\t\t<rect class=\"fill-primary\" x=\"74\" y=\"128\" width=\"20\" height=\"14\" rx=\"4\" opacity=\"0.4\" />\n\t\t\t<rect class=\"fill-primary\" x=\"102\" y=\"114\" width=\"20\" height=\"28\" rx=\"4\" opacity=\"0.55\" />\n\t\t\t<rect class=\"fill-primary\" x=\"130\" y=\"96\" width=\"20\" height=\"46\" rx=\"4\" opacity=\"0.75\" />\n\t\t\t<rect class=\"sp-warning-bob fill-accent\" x=\"158\" y=\"82\" width=\"20\" height=\"60\" rx=\"4\" opacity=\"0.85\" />\n\t\t\t<g transform=\"translate(182 74)\">\n\t\t\t\t<circle class=\"fill-base-100 stroke-accent\" cx=\"0\" cy=\"0\" r=\"16\" stroke-width=\"2.5\" />\n\t\t\t\t<path class=\"stroke-accent\" d=\"M0 -8 V1 L6 6\" fill=\"none\" stroke-width=\"2.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\" />\n\t\t\t</g>\n\t\t\t<text\n\t\t\t\tclass=\"fill-primary\"\n\t\t\t\tx=\"130\"\n\t\t\t\ty=\"218\"\n\t\t\t\ttext-anchor=\"middle\"\n\t\t\t\tfont-family=\"inherit\"\n\t\t\t\tfont-size=\"32\"\n\t\t\t\tfont-weight=\"900\"\n\t\t\t\topacity=\"0.2\"\n\t\t\t\tletter-spacing=\"-1\"\n\t\t\t>\n\t\t\t\t500\n\t\t\t</text>\n\t\t</svg>\n\t}\n\t@case ('no-access/shield') {\n\t\t<svg class=\"h-auto w-full max-w-xs\" [attr.data-illustration]=\"illustration()\" viewBox=\"0 0 240 240\" aria-hidden=\"true\" focusable=\"false\">\n\t\t\t<path\n\t\t\t\tclass=\"sp-shield-breathe stroke-primary\"\n\t\t\t\td=\"M120 28 L188 56 V116 C188 160 158 196 120 210 C82 196 52 160 52 116 V56 Z\"\n\t\t\t\tfill=\"none\"\n\t\t\t\tstroke-width=\"2.5\"\n\t\t\t\topacity=\"0.18\"\n\t\t\t/>\n\t\t\t<g class=\"sp-reject\">\n\t\t\t\t<path\n\t\t\t\t\tclass=\"stroke-base-content\"\n\t\t\t\t\td=\"M96 112 V96 C96 78 106 66 120 66 S144 78 144 96 V112\"\n\t\t\t\t\tfill=\"none\"\n\t\t\t\t\tstroke-width=\"8\"\n\t\t\t\t\tstroke-linecap=\"round\"\n\t\t\t\t/>\n\t\t\t\t<rect class=\"fill-base-content\" x=\"86\" y=\"110\" width=\"68\" height=\"56\" rx=\"14\" />\n\t\t\t\t<circle class=\"fill-base-100\" cx=\"120\" cy=\"134\" r=\"8\" />\n\t\t\t\t<line class=\"stroke-base-100\" x1=\"120\" y1=\"140\" x2=\"120\" y2=\"152\" stroke-width=\"5\" stroke-linecap=\"round\" />\n\t\t\t</g>\n\t\t</svg>\n\t}\n\t@case ('no-access/gate') {\n\t\t<svg class=\"h-auto w-full max-w-xs\" [attr.data-illustration]=\"illustration()\" viewBox=\"0 0 280 200\" aria-hidden=\"true\" focusable=\"false\">\n\t\t\t<rect class=\"fill-base-300\" x=\"0\" y=\"148\" width=\"280\" height=\"8\" rx=\"4\" opacity=\"0.5\" />\n\t\t\t<line class=\"stroke-base-content\" x1=\"0\" y1=\"152\" x2=\"280\" y2=\"152\" stroke-width=\"2\" stroke-dasharray=\"12 10\" opacity=\"0.15\" />\n\t\t\t<rect class=\"fill-base-content\" x=\"132\" y=\"64\" width=\"16\" height=\"92\" rx=\"6\" opacity=\"0.8\" />\n\t\t\t<g class=\"sp-bar-try\">\n\t\t\t\t<rect class=\"fill-accent\" x=\"140\" y=\"74\" width=\"120\" height=\"12\" rx=\"6\" opacity=\"0.85\" />\n\t\t\t\t<rect class=\"fill-base-100\" x=\"168\" y=\"74\" width=\"8\" height=\"12\" rx=\"2\" opacity=\"0.5\" />\n\t\t\t\t<rect class=\"fill-base-100\" x=\"196\" y=\"74\" width=\"8\" height=\"12\" rx=\"2\" opacity=\"0.5\" />\n\t\t\t\t<rect class=\"fill-base-100\" x=\"224\" y=\"74\" width=\"8\" height=\"12\" rx=\"2\" opacity=\"0.5\" />\n\t\t\t</g>\n\t\t\t<circle class=\"sp-blink fill-accent\" cx=\"140\" cy=\"58\" r=\"10\" opacity=\"0.9\" />\n\t\t\t<rect class=\"fill-base-content\" x=\"128\" y=\"56\" width=\"24\" height=\"6\" rx=\"3\" opacity=\"0.6\" />\n\t\t</svg>\n\t}\n\t@case ('no-access/key') {\n\t\t<svg class=\"h-auto w-full max-w-xs\" [attr.data-illustration]=\"illustration()\" viewBox=\"0 0 280 220\" aria-hidden=\"true\" focusable=\"false\">\n\t\t\t<circle class=\"fill-base-300\" cx=\"170\" cy=\"110\" r=\"40\" opacity=\"0.3\" />\n\t\t\t<circle class=\"fill-base-content\" cx=\"170\" cy=\"104\" r=\"12\" />\n\t\t\t<rect class=\"fill-base-content\" x=\"165\" y=\"114\" width=\"10\" height=\"18\" rx=\"4\" />\n\t\t\t<g class=\"sp-key-try\">\n\t\t\t\t<circle class=\"stroke-accent\" cx=\"90\" cy=\"110\" r=\"16\" fill=\"none\" stroke-width=\"6\" />\n\t\t\t\t<circle class=\"stroke-accent\" cx=\"90\" cy=\"110\" r=\"6\" fill=\"none\" stroke-width=\"3\" opacity=\"0.5\" />\n\t\t\t\t<line class=\"stroke-accent\" x1=\"106\" y1=\"110\" x2=\"140\" y2=\"110\" stroke-width=\"5\" stroke-linecap=\"round\" />\n\t\t\t\t<line class=\"stroke-accent\" x1=\"125\" y1=\"110\" x2=\"125\" y2=\"120\" stroke-width=\"4\" stroke-linecap=\"round\" />\n\t\t\t\t<line class=\"stroke-accent\" x1=\"133\" y1=\"110\" x2=\"133\" y2=\"118\" stroke-width=\"4\" stroke-linecap=\"round\" />\n\t\t\t</g>\n\t\t\t<g transform=\"translate(200 70)\">\n\t\t\t\t<g class=\"sp-x-pop\">\n\t\t\t\t\t<circle class=\"fill-base-100 stroke-accent\" cx=\"0\" cy=\"0\" r=\"14\" stroke-width=\"2.5\" />\n\t\t\t\t\t<line class=\"stroke-accent\" x1=\"-5\" y1=\"-5\" x2=\"5\" y2=\"5\" stroke-width=\"3\" stroke-linecap=\"round\" />\n\t\t\t\t\t<line class=\"stroke-accent\" x1=\"5\" y1=\"-5\" x2=\"-5\" y2=\"5\" stroke-width=\"3\" stroke-linecap=\"round\" />\n\t\t\t\t</g>\n\t\t\t</g>\n\t\t</svg>\n\t}\n\t@case ('no-access/signal') {\n\t\t<svg class=\"h-auto w-full max-w-xs\" [attr.data-illustration]=\"illustration()\" viewBox=\"0 0 240 220\" aria-hidden=\"true\" focusable=\"false\">\n\t\t\t<circle class=\"fill-base-content\" cx=\"120\" cy=\"160\" r=\"8\" />\n\t\t\t<path class=\"sp-wave-die stroke-primary\" d=\"M88 130 A50 50 0 0 1 152 130\" fill=\"none\" stroke-width=\"5\" stroke-linecap=\"round\" />\n\t\t\t<path class=\"sp-wave-die stroke-primary sp-delay-500\" d=\"M72 110 A70 70 0 0 1 168 110\" fill=\"none\" stroke-width=\"4.5\" stroke-linecap=\"round\" />\n\t\t\t<path class=\"sp-wave-die stroke-primary sp-delay-1000\" d=\"M56 90 A90 90 0 0 1 184 90\" fill=\"none\" stroke-width=\"4\" stroke-linecap=\"round\" />\n\t\t\t<line class=\"sp-slash-draw stroke-accent\" x1=\"56\" y1=\"170\" x2=\"184\" y2=\"80\" stroke-width=\"5\" stroke-linecap=\"round\" />\n\t\t</svg>\n\t}\n\t@case ('offline') {\n\t\t<svg class=\"h-auto w-full max-w-xs\" [attr.data-illustration]=\"illustration()\" viewBox=\"0 0 240 220\" aria-hidden=\"true\" focusable=\"false\">\n\t\t\t<g class=\"sp-cable-sway\">\n\t\t\t\t<path class=\"stroke-base-content\" d=\"M120 0 L120 70\" fill=\"none\" stroke-width=\"7\" stroke-linecap=\"round\" opacity=\"0.6\" />\n\t\t\t\t<rect class=\"fill-base-content\" x=\"108\" y=\"68\" width=\"24\" height=\"16\" rx=\"6\" opacity=\"0.8\" />\n\t\t\t\t<rect class=\"fill-base-content\" x=\"114\" y=\"84\" width=\"5\" height=\"10\" rx=\"2\" opacity=\"0.65\" />\n\t\t\t\t<rect class=\"fill-base-content\" x=\"125\" y=\"84\" width=\"5\" height=\"10\" rx=\"2\" opacity=\"0.65\" />\n\t\t\t</g>\n\t\t\t<g transform=\"translate(120 155)\">\n\t\t\t\t<path\n\t\t\t\t\tclass=\"sp-wifi-fade stroke-primary\"\n\t\t\t\t\td=\"M-36 -20 A50 50 0 0 1 36 -20\"\n\t\t\t\t\tfill=\"none\"\n\t\t\t\t\tstroke-width=\"4\"\n\t\t\t\t\tstroke-linecap=\"round\"\n\t\t\t\t\topacity=\"0.3\"\n\t\t\t\t/>\n\t\t\t\t<path\n\t\t\t\t\tclass=\"sp-wifi-fade stroke-primary sp-delay-700\"\n\t\t\t\t\td=\"M-24 -8 A34 34 0 0 1 24 -8\"\n\t\t\t\t\tfill=\"none\"\n\t\t\t\t\tstroke-width=\"3.5\"\n\t\t\t\t\tstroke-linecap=\"round\"\n\t\t\t\t\topacity=\"0.25\"\n\t\t\t\t/>\n\t\t\t\t<path\n\t\t\t\t\tclass=\"sp-wifi-fade stroke-primary sp-delay-1400\"\n\t\t\t\t\td=\"M-12 4 A18 18 0 0 1 12 4\"\n\t\t\t\t\tfill=\"none\"\n\t\t\t\t\tstroke-width=\"3\"\n\t\t\t\t\tstroke-linecap=\"round\"\n\t\t\t\t\topacity=\"0.2\"\n\t\t\t\t/>\n\t\t\t\t<circle class=\"fill-primary\" cx=\"0\" cy=\"14\" r=\"5\" opacity=\"0.4\" />\n\t\t\t</g>\n\t\t\t<g transform=\"translate(120 148)\">\n\t\t\t\t<g class=\"sp-x-blink\">\n\t\t\t\t\t<line class=\"stroke-accent\" x1=\"-18\" y1=\"-18\" x2=\"18\" y2=\"18\" stroke-width=\"4\" stroke-linecap=\"round\" />\n\t\t\t\t\t<line class=\"stroke-accent\" x1=\"18\" y1=\"-18\" x2=\"-18\" y2=\"18\" stroke-width=\"4\" stroke-linecap=\"round\" />\n\t\t\t\t</g>\n\t\t\t</g>\n\t\t</svg>\n\t}\n}\n", styles: ["@keyframes sp-text-float{0%,to{transform:translateY(0)}50%{transform:translateY(-12px)}}@keyframes sp-shadow-pulse{0%,to{transform:scaleX(1);opacity:.18}50%{transform:scaleX(.7);opacity:.08}}@keyframes sp-scan{0%,to{transform:translate(-30px)}50%{transform:translate(30px)}}@keyframes sp-lens-pulse{0%,to{transform:scale(1);opacity:.6}50%{transform:scale(1.12);opacity:1}}@keyframes sp-plug-left{0%,to{transform:translate(0)}30%,70%{transform:translate(-6px)}}@keyframes sp-plug-right{0%,to{transform:translate(0)}30%,70%{transform:translate(6px)}}@keyframes sp-spark{0%{opacity:0;transform:scale(.4)}15%{opacity:1;transform:scale(1.1)}40%{opacity:.7;transform:scale(.9)}to{opacity:0;transform:scale(.4)}}@keyframes sp-drift{0%,to{transform:translate(0) rotate(-2deg)}25%{transform:translate(8px,-6px) rotate(0)}50%{transform:translate(2px,-12px) rotate(1deg)}75%{transform:translate(-6px,-4px) rotate(-1deg)}}@keyframes sp-trail{0%{stroke-dashoffset:0}to{stroke-dashoffset:-60}}@keyframes sp-reject{0%,to{transform:translate(0)}10%,30%,50%{transform:translate(-4px)}20%,40%{transform:translate(4px)}60%{transform:translate(0)}}@keyframes sp-shield-breathe{0%,to{opacity:.15;transform:scale(1)}50%{opacity:.25;transform:scale(1.04)}}@keyframes sp-bar-try{0%,to{transform:rotate(0)}30%{transform:rotate(-3deg)}50%{transform:rotate(1deg)}70%{transform:rotate(-1deg)}}@keyframes sp-blink{0%,49%{opacity:1}50%,to{opacity:.2}}@keyframes sp-key-try{0%{transform:translate(-40px) rotate(-10deg);opacity:.5}40%{transform:translate(0) rotate(0);opacity:1}55%{transform:translate(4px) rotate(2deg);opacity:1}70%{transform:translate(-20px) rotate(-5deg);opacity:.7}to{transform:translate(-40px) rotate(-10deg);opacity:.5}}@keyframes sp-x-pop{0%,60%{opacity:0;transform:scale(.5)}70%{opacity:1;transform:scale(1.15)}80%{opacity:1;transform:scale(.95)}90%,to{opacity:0;transform:scale(1)}}@keyframes sp-wave-die{0%{opacity:.8;stroke-dashoffset:0}60%{opacity:.4}to{opacity:0;stroke-dashoffset:20}}@keyframes sp-slash-draw{0%{stroke-dashoffset:60}to{stroke-dashoffset:0}}@keyframes sp-static{0%{transform:translate(0)}2%{transform:translate(-2px)}4%{transform:translate(3px)}6%{transform:translate(-1px)}8%,to{transform:translate(0)}}@keyframes sp-smoke{0%{transform:translateY(0) scaleX(1);opacity:.5}to{transform:translateY(-28px) scaleX(.3);opacity:0}}@keyframes sp-warning-bob{0%,to{transform:translateY(0)}50%{transform:translateY(-4px)}}@keyframes sp-cable-sway{0%,to{transform:rotate(0)}30%{transform:rotate(-2deg)}70%{transform:rotate(2deg)}}@keyframes sp-wifi-fade{0%{opacity:.7}50%{opacity:.2}to{opacity:.7}}@keyframes sp-x-blink{0%,40%{opacity:1}50%,90%{opacity:.3}to{opacity:1}}.sp-text-float{animation:sp-text-float 4s ease-in-out infinite}.sp-shadow-pulse{transform-origin:center;animation:sp-shadow-pulse 4s ease-in-out infinite}.sp-scan{animation:sp-scan 3.5s ease-in-out infinite}.sp-lens-pulse{transform-origin:center;animation:sp-lens-pulse 2.5s ease-in-out infinite}.sp-plug-left{animation:sp-plug-left 4s ease-in-out infinite}.sp-plug-right{animation:sp-plug-right 4s ease-in-out infinite}.sp-spark{transform-origin:center;animation:sp-spark 2s ease-out infinite}.sp-drift{animation:sp-drift 6s ease-in-out infinite}.sp-trail{stroke-dasharray:8 12;animation:sp-trail 3s linear infinite}.sp-reject{animation:sp-reject 3s ease-in-out infinite}.sp-shield-breathe{transform-origin:center;animation:sp-shield-breathe 3.5s ease-in-out infinite}.sp-bar-try{transform-origin:140px 80px;animation:sp-bar-try 2.8s ease-in-out infinite}.sp-blink{animation:sp-blink 1.2s step-end infinite}.sp-key-try{animation:sp-key-try 3.5s ease-in-out infinite}.sp-x-pop{transform-box:fill-box;transform-origin:center;animation:sp-x-pop 3.5s ease-out infinite}.sp-wave-die{transform-origin:center bottom;animation:sp-wave-die 2.5s ease-out infinite}.sp-slash-draw{stroke-dasharray:60;animation:sp-slash-draw 2s ease-out forwards}.sp-static{animation:sp-static .3s steps(4) infinite}.sp-smoke{transform-origin:center bottom;animation:sp-smoke 2.5s ease-out infinite}.sp-warning-bob{animation:sp-warning-bob 2s ease-in-out infinite}.sp-cable-sway{transform-origin:120px 20px;animation:sp-cable-sway 4s ease-in-out infinite}.sp-wifi-fade{animation:sp-wifi-fade 3s ease-in-out infinite}.sp-x-blink{animation:sp-x-blink 2s step-end infinite}.sp-delay-500{animation-delay:-.5s}.sp-delay-700{animation-delay:-.7s}.sp-delay-800{animation-delay:-.8s}.sp-delay-1000{animation-delay:-1s}.sp-delay-1400{animation-delay:-1.4s}.sp-delay-1500{animation-delay:-1.5s}@media(prefers-reduced-motion:reduce){[class*=sp-]{animation:none}}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
50
|
+
}
|
|
51
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: StatusIllustrationComponent, decorators: [{
|
|
52
|
+
type: Component,
|
|
53
|
+
args: [{ selector: 'st-status-illustration', changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
54
|
+
'[class]': 'componentClass()',
|
|
55
|
+
'[attr.role]': 'label() ? "img" : null',
|
|
56
|
+
'[attr.aria-label]': 'label() || null',
|
|
57
|
+
'[attr.aria-hidden]': 'label() ? null : "true"',
|
|
58
|
+
}, template: "@switch (illustration()) {\n\t@case ('not-found/depth') {\n\t\t<svg class=\"h-auto w-full max-w-sm\" [attr.data-illustration]=\"illustration()\" viewBox=\"0 0 320 220\" aria-hidden=\"true\" focusable=\"false\">\n\t\t\t<ellipse class=\"sp-shadow-pulse fill-base-content\" cx=\"160\" cy=\"185\" rx=\"100\" ry=\"12\" opacity=\"0.1\" />\n\t\t\t<g class=\"sp-text-float\">\n\t\t\t\t<text\n\t\t\t\t\tclass=\"fill-primary\"\n\t\t\t\t\tx=\"160\"\n\t\t\t\t\ty=\"148\"\n\t\t\t\t\ttext-anchor=\"middle\"\n\t\t\t\t\tfont-family=\"inherit\"\n\t\t\t\t\tfont-size=\"120\"\n\t\t\t\t\tfont-weight=\"900\"\n\t\t\t\t\topacity=\"0.9\"\n\t\t\t\t\tletter-spacing=\"-4\"\n\t\t\t\t>\n\t\t\t\t\t404\n\t\t\t\t</text>\n\t\t\t</g>\n\t\t</svg>\n\t}\n\t@case ('not-found/searching') {\n\t\t<svg class=\"h-auto w-full max-w-xs\" [attr.data-illustration]=\"illustration()\" viewBox=\"0 0 260 220\" aria-hidden=\"true\" focusable=\"false\">\n\t\t\t<text class=\"fill-primary\" x=\"70\" y=\"90\" font-family=\"inherit\" font-size=\"28\" font-weight=\"700\" opacity=\"0.12\">?</text>\n\t\t\t<text class=\"fill-primary\" x=\"150\" y=\"70\" font-family=\"inherit\" font-size=\"20\" font-weight=\"700\" opacity=\"0.1\">?</text>\n\t\t\t<text class=\"fill-primary\" x=\"190\" y=\"120\" font-family=\"inherit\" font-size=\"24\" font-weight=\"700\" opacity=\"0.08\">?</text>\n\t\t\t<g class=\"sp-scan\">\n\t\t\t\t<circle class=\"stroke-primary\" cx=\"130\" cy=\"110\" r=\"36\" fill=\"none\" stroke-width=\"6\" />\n\t\t\t\t<circle class=\"sp-lens-pulse fill-primary\" cx=\"130\" cy=\"110\" r=\"28\" opacity=\"0.06\" />\n\t\t\t\t<line class=\"stroke-base-content\" x1=\"156\" y1=\"136\" x2=\"180\" y2=\"160\" stroke-width=\"8\" stroke-linecap=\"round\" />\n\t\t\t</g>\n\t\t\t<line class=\"stroke-base-300\" x1=\"40\" y1=\"184\" x2=\"220\" y2=\"184\" stroke-width=\"2\" opacity=\"0.4\" />\n\t\t</svg>\n\t}\n\t@case ('not-found/disconnected') {\n\t\t<svg class=\"h-auto w-full max-w-sm\" [attr.data-illustration]=\"illustration()\" viewBox=\"0 0 320 220\" aria-hidden=\"true\" focusable=\"false\">\n\t\t\t<g class=\"sp-plug-left\">\n\t\t\t\t<line class=\"stroke-base-content\" x1=\"20\" y1=\"100\" x2=\"110\" y2=\"100\" stroke-width=\"8\" stroke-linecap=\"round\" opacity=\"0.6\" />\n\t\t\t\t<rect class=\"fill-base-content\" x=\"100\" y=\"84\" width=\"36\" height=\"32\" rx=\"8\" opacity=\"0.85\" />\n\t\t\t\t<rect class=\"fill-base-content\" x=\"136\" y=\"90\" width=\"14\" height=\"6\" rx=\"3\" opacity=\"0.7\" />\n\t\t\t\t<rect class=\"fill-base-content\" x=\"136\" y=\"104\" width=\"14\" height=\"6\" rx=\"3\" opacity=\"0.7\" />\n\t\t\t</g>\n\t\t\t<g>\n\t\t\t\t<line class=\"sp-spark stroke-accent\" x1=\"158\" y1=\"94\" x2=\"164\" y2=\"84\" stroke-width=\"2.5\" stroke-linecap=\"round\" />\n\t\t\t\t<line class=\"sp-spark stroke-primary sp-delay-500\" x1=\"162\" y1=\"100\" x2=\"168\" y2=\"100\" stroke-width=\"2\" stroke-linecap=\"round\" />\n\t\t\t\t<line class=\"sp-spark stroke-accent sp-delay-1000\" x1=\"158\" y1=\"106\" x2=\"164\" y2=\"116\" stroke-width=\"2.5\" stroke-linecap=\"round\" />\n\t\t\t</g>\n\t\t\t<g class=\"sp-plug-right\">\n\t\t\t\t<rect class=\"fill-base-content\" x=\"170\" y=\"84\" width=\"36\" height=\"32\" rx=\"8\" opacity=\"0.85\" />\n\t\t\t\t<rect class=\"fill-base-300\" x=\"166\" y=\"90\" width=\"10\" height=\"6\" rx=\"3\" />\n\t\t\t\t<rect class=\"fill-base-300\" x=\"166\" y=\"104\" width=\"10\" height=\"6\" rx=\"3\" />\n\t\t\t\t<line class=\"stroke-base-content\" x1=\"206\" y1=\"100\" x2=\"300\" y2=\"100\" stroke-width=\"8\" stroke-linecap=\"round\" opacity=\"0.6\" />\n\t\t\t</g>\n\t\t\t<text\n\t\t\t\tclass=\"fill-primary\"\n\t\t\t\tx=\"160\"\n\t\t\t\ty=\"186\"\n\t\t\t\ttext-anchor=\"middle\"\n\t\t\t\tfont-family=\"inherit\"\n\t\t\t\tfont-size=\"48\"\n\t\t\t\tfont-weight=\"900\"\n\t\t\t\topacity=\"0.25\"\n\t\t\t\tletter-spacing=\"-2\"\n\t\t\t>\n\t\t\t\t404\n\t\t\t</text>\n\t\t</svg>\n\t}\n\t@case ('not-found/drift') {\n\t\t<svg class=\"h-auto w-full max-w-xs\" [attr.data-illustration]=\"illustration()\" viewBox=\"0 0 260 200\" aria-hidden=\"true\" focusable=\"false\">\n\t\t\t<path\n\t\t\t\tclass=\"sp-trail stroke-primary\"\n\t\t\t\td=\"M30 140 Q80 150 110 130 Q140 110 150 100\"\n\t\t\t\tfill=\"none\"\n\t\t\t\tstroke-width=\"2\"\n\t\t\t\topacity=\"0.3\"\n\t\t\t\tstroke-linecap=\"round\"\n\t\t\t/>\n\t\t\t<g transform=\"translate(155 85)\">\n\t\t\t\t<g class=\"sp-drift\">\n\t\t\t\t\t<polygon class=\"fill-primary\" points=\"0,-18 36,4 0,8 -6,0\" opacity=\"0.85\" />\n\t\t\t\t\t<line class=\"stroke-base-100\" x1=\"0\" y1=\"-18\" x2=\"0\" y2=\"8\" stroke-width=\"1.5\" opacity=\"0.5\" />\n\t\t\t\t\t<polygon class=\"fill-primary\" points=\"0,8 36,4 0,-2\" opacity=\"0.55\" />\n\t\t\t\t</g>\n\t\t\t</g>\n\t\t\t<line class=\"stroke-base-300\" x1=\"30\" y1=\"170\" x2=\"230\" y2=\"170\" stroke-width=\"1.5\" opacity=\"0.3\" />\n\t\t</svg>\n\t}\n\t@case ('server-error/monitor') {\n\t\t<svg class=\"h-auto w-full max-w-xs\" [attr.data-illustration]=\"illustration()\" viewBox=\"0 0 260 240\" aria-hidden=\"true\" focusable=\"false\">\n\t\t\t<rect class=\"fill-base-100 stroke-base-300\" x=\"50\" y=\"50\" width=\"160\" height=\"110\" rx=\"10\" stroke-width=\"3\" />\n\t\t\t<g class=\"sp-static\">\n\t\t\t\t<rect class=\"fill-base-300\" x=\"60\" y=\"60\" width=\"140\" height=\"90\" rx=\"6\" opacity=\"0.35\" />\n\t\t\t\t<line class=\"stroke-base-content\" x1=\"68\" y1=\"76\" x2=\"120\" y2=\"76\" stroke-width=\"2\" opacity=\"0.1\" />\n\t\t\t\t<line class=\"stroke-base-content\" x1=\"90\" y1=\"90\" x2=\"180\" y2=\"90\" stroke-width=\"1.5\" opacity=\"0.08\" />\n\t\t\t\t<line class=\"stroke-base-content\" x1=\"68\" y1=\"104\" x2=\"150\" y2=\"104\" stroke-width=\"2\" opacity=\"0.12\" />\n\t\t\t\t<line class=\"stroke-base-content\" x1=\"100\" y1=\"118\" x2=\"190\" y2=\"118\" stroke-width=\"1.5\" opacity=\"0.08\" />\n\t\t\t\t<line class=\"stroke-base-content\" x1=\"68\" y1=\"132\" x2=\"140\" y2=\"132\" stroke-width=\"2\" opacity=\"0.1\" />\n\t\t\t</g>\n\t\t\t<rect class=\"fill-base-content\" x=\"114\" y=\"160\" width=\"32\" height=\"14\" rx=\"4\" opacity=\"0.45\" />\n\t\t\t<rect class=\"fill-base-content\" x=\"96\" y=\"172\" width=\"68\" height=\"8\" rx=\"4\" opacity=\"0.35\" />\n\t\t\t<path class=\"sp-smoke stroke-base-content\" d=\"M110 50 Q114 38 118 50\" fill=\"none\" stroke-width=\"2.5\" stroke-linecap=\"round\" opacity=\"0.35\" />\n\t\t\t<path\n\t\t\t\tclass=\"sp-smoke stroke-base-content sp-delay-800\"\n\t\t\t\td=\"M132 46 Q136 32 140 46\"\n\t\t\t\tfill=\"none\"\n\t\t\t\tstroke-width=\"2\"\n\t\t\t\tstroke-linecap=\"round\"\n\t\t\t\topacity=\"0.3\"\n\t\t\t/>\n\t\t\t<path\n\t\t\t\tclass=\"sp-smoke stroke-base-content sp-delay-1500\"\n\t\t\t\td=\"M152 50 Q156 36 160 50\"\n\t\t\t\tfill=\"none\"\n\t\t\t\tstroke-width=\"2.5\"\n\t\t\t\tstroke-linecap=\"round\"\n\t\t\t\topacity=\"0.3\"\n\t\t\t/>\n\t\t\t<g transform=\"translate(130 28)\">\n\t\t\t\t<g class=\"sp-warning-bob\">\n\t\t\t\t\t<polygon class=\"fill-base-100 stroke-accent\" points=\"0,-16 16,10 -16,10\" stroke-width=\"2.5\" stroke-linejoin=\"round\" />\n\t\t\t\t\t<text class=\"fill-accent\" x=\"0\" y=\"6\" text-anchor=\"middle\" font-family=\"inherit\" font-size=\"14\" font-weight=\"900\">!</text>\n\t\t\t\t</g>\n\t\t\t</g>\n\t\t\t<text\n\t\t\t\tclass=\"fill-primary\"\n\t\t\t\tx=\"130\"\n\t\t\t\ty=\"218\"\n\t\t\t\ttext-anchor=\"middle\"\n\t\t\t\tfont-family=\"inherit\"\n\t\t\t\tfont-size=\"32\"\n\t\t\t\tfont-weight=\"900\"\n\t\t\t\topacity=\"0.2\"\n\t\t\t\tletter-spacing=\"-1\"\n\t\t\t>\n\t\t\t\t500\n\t\t\t</text>\n\t\t</svg>\n\t}\n\t@case ('server-error/crash') {\n\t\t<svg class=\"h-auto w-full max-w-xs\" [attr.data-illustration]=\"illustration()\" viewBox=\"0 0 260 240\" aria-hidden=\"true\" focusable=\"false\">\n\t\t\t<rect class=\"fill-base-100 stroke-base-300\" x=\"52\" y=\"54\" width=\"156\" height=\"104\" rx=\"10\" stroke-width=\"3\" />\n\t\t\t<path\n\t\t\t\tclass=\"stroke-primary\"\n\t\t\t\td=\"M66 86 L104 110 L122 88 L148 116 L170 98 L194 122\"\n\t\t\t\tfill=\"none\"\n\t\t\t\tstroke-width=\"8\"\n\t\t\t\tstroke-linecap=\"round\"\n\t\t\t\tstroke-linejoin=\"round\"\n\t\t\t/>\n\t\t\t<path\n\t\t\t\tclass=\"sp-warning-bob stroke-accent\"\n\t\t\t\td=\"M124 54 L118 82 L134 82 L126 112\"\n\t\t\t\tfill=\"none\"\n\t\t\t\tstroke-width=\"5\"\n\t\t\t\tstroke-linecap=\"round\"\n\t\t\t\tstroke-linejoin=\"round\"\n\t\t\t/>\n\t\t\t<circle class=\"fill-base-content\" cx=\"86\" cy=\"146\" r=\"6\" opacity=\"0.16\" />\n\t\t\t<circle class=\"fill-base-content\" cx=\"174\" cy=\"146\" r=\"6\" opacity=\"0.16\" />\n\t\t\t<rect class=\"fill-base-content\" x=\"112\" y=\"164\" width=\"36\" height=\"12\" rx=\"4\" opacity=\"0.4\" />\n\t\t\t<rect class=\"fill-base-content\" x=\"96\" y=\"176\" width=\"68\" height=\"8\" rx=\"4\" opacity=\"0.28\" />\n\t\t\t<text\n\t\t\t\tclass=\"fill-primary\"\n\t\t\t\tx=\"130\"\n\t\t\t\ty=\"218\"\n\t\t\t\ttext-anchor=\"middle\"\n\t\t\t\tfont-family=\"inherit\"\n\t\t\t\tfont-size=\"32\"\n\t\t\t\tfont-weight=\"900\"\n\t\t\t\topacity=\"0.2\"\n\t\t\t\tletter-spacing=\"-1\"\n\t\t\t>\n\t\t\t\t500\n\t\t\t</text>\n\t\t</svg>\n\t}\n\t@case ('server-error/overload') {\n\t\t<svg class=\"h-auto w-full max-w-xs\" [attr.data-illustration]=\"illustration()\" viewBox=\"0 0 260 240\" aria-hidden=\"true\" focusable=\"false\">\n\t\t\t<rect class=\"fill-base-100 stroke-base-300\" x=\"58\" y=\"62\" width=\"144\" height=\"96\" rx=\"12\" stroke-width=\"3\" />\n\t\t\t<rect class=\"fill-primary\" x=\"74\" y=\"128\" width=\"20\" height=\"14\" rx=\"4\" opacity=\"0.4\" />\n\t\t\t<rect class=\"fill-primary\" x=\"102\" y=\"114\" width=\"20\" height=\"28\" rx=\"4\" opacity=\"0.55\" />\n\t\t\t<rect class=\"fill-primary\" x=\"130\" y=\"96\" width=\"20\" height=\"46\" rx=\"4\" opacity=\"0.75\" />\n\t\t\t<rect class=\"sp-warning-bob fill-accent\" x=\"158\" y=\"82\" width=\"20\" height=\"60\" rx=\"4\" opacity=\"0.85\" />\n\t\t\t<g transform=\"translate(182 74)\">\n\t\t\t\t<circle class=\"fill-base-100 stroke-accent\" cx=\"0\" cy=\"0\" r=\"16\" stroke-width=\"2.5\" />\n\t\t\t\t<path class=\"stroke-accent\" d=\"M0 -8 V1 L6 6\" fill=\"none\" stroke-width=\"2.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\" />\n\t\t\t</g>\n\t\t\t<text\n\t\t\t\tclass=\"fill-primary\"\n\t\t\t\tx=\"130\"\n\t\t\t\ty=\"218\"\n\t\t\t\ttext-anchor=\"middle\"\n\t\t\t\tfont-family=\"inherit\"\n\t\t\t\tfont-size=\"32\"\n\t\t\t\tfont-weight=\"900\"\n\t\t\t\topacity=\"0.2\"\n\t\t\t\tletter-spacing=\"-1\"\n\t\t\t>\n\t\t\t\t500\n\t\t\t</text>\n\t\t</svg>\n\t}\n\t@case ('no-access/shield') {\n\t\t<svg class=\"h-auto w-full max-w-xs\" [attr.data-illustration]=\"illustration()\" viewBox=\"0 0 240 240\" aria-hidden=\"true\" focusable=\"false\">\n\t\t\t<path\n\t\t\t\tclass=\"sp-shield-breathe stroke-primary\"\n\t\t\t\td=\"M120 28 L188 56 V116 C188 160 158 196 120 210 C82 196 52 160 52 116 V56 Z\"\n\t\t\t\tfill=\"none\"\n\t\t\t\tstroke-width=\"2.5\"\n\t\t\t\topacity=\"0.18\"\n\t\t\t/>\n\t\t\t<g class=\"sp-reject\">\n\t\t\t\t<path\n\t\t\t\t\tclass=\"stroke-base-content\"\n\t\t\t\t\td=\"M96 112 V96 C96 78 106 66 120 66 S144 78 144 96 V112\"\n\t\t\t\t\tfill=\"none\"\n\t\t\t\t\tstroke-width=\"8\"\n\t\t\t\t\tstroke-linecap=\"round\"\n\t\t\t\t/>\n\t\t\t\t<rect class=\"fill-base-content\" x=\"86\" y=\"110\" width=\"68\" height=\"56\" rx=\"14\" />\n\t\t\t\t<circle class=\"fill-base-100\" cx=\"120\" cy=\"134\" r=\"8\" />\n\t\t\t\t<line class=\"stroke-base-100\" x1=\"120\" y1=\"140\" x2=\"120\" y2=\"152\" stroke-width=\"5\" stroke-linecap=\"round\" />\n\t\t\t</g>\n\t\t</svg>\n\t}\n\t@case ('no-access/gate') {\n\t\t<svg class=\"h-auto w-full max-w-xs\" [attr.data-illustration]=\"illustration()\" viewBox=\"0 0 280 200\" aria-hidden=\"true\" focusable=\"false\">\n\t\t\t<rect class=\"fill-base-300\" x=\"0\" y=\"148\" width=\"280\" height=\"8\" rx=\"4\" opacity=\"0.5\" />\n\t\t\t<line class=\"stroke-base-content\" x1=\"0\" y1=\"152\" x2=\"280\" y2=\"152\" stroke-width=\"2\" stroke-dasharray=\"12 10\" opacity=\"0.15\" />\n\t\t\t<rect class=\"fill-base-content\" x=\"132\" y=\"64\" width=\"16\" height=\"92\" rx=\"6\" opacity=\"0.8\" />\n\t\t\t<g class=\"sp-bar-try\">\n\t\t\t\t<rect class=\"fill-accent\" x=\"140\" y=\"74\" width=\"120\" height=\"12\" rx=\"6\" opacity=\"0.85\" />\n\t\t\t\t<rect class=\"fill-base-100\" x=\"168\" y=\"74\" width=\"8\" height=\"12\" rx=\"2\" opacity=\"0.5\" />\n\t\t\t\t<rect class=\"fill-base-100\" x=\"196\" y=\"74\" width=\"8\" height=\"12\" rx=\"2\" opacity=\"0.5\" />\n\t\t\t\t<rect class=\"fill-base-100\" x=\"224\" y=\"74\" width=\"8\" height=\"12\" rx=\"2\" opacity=\"0.5\" />\n\t\t\t</g>\n\t\t\t<circle class=\"sp-blink fill-accent\" cx=\"140\" cy=\"58\" r=\"10\" opacity=\"0.9\" />\n\t\t\t<rect class=\"fill-base-content\" x=\"128\" y=\"56\" width=\"24\" height=\"6\" rx=\"3\" opacity=\"0.6\" />\n\t\t</svg>\n\t}\n\t@case ('no-access/key') {\n\t\t<svg class=\"h-auto w-full max-w-xs\" [attr.data-illustration]=\"illustration()\" viewBox=\"0 0 280 220\" aria-hidden=\"true\" focusable=\"false\">\n\t\t\t<circle class=\"fill-base-300\" cx=\"170\" cy=\"110\" r=\"40\" opacity=\"0.3\" />\n\t\t\t<circle class=\"fill-base-content\" cx=\"170\" cy=\"104\" r=\"12\" />\n\t\t\t<rect class=\"fill-base-content\" x=\"165\" y=\"114\" width=\"10\" height=\"18\" rx=\"4\" />\n\t\t\t<g class=\"sp-key-try\">\n\t\t\t\t<circle class=\"stroke-accent\" cx=\"90\" cy=\"110\" r=\"16\" fill=\"none\" stroke-width=\"6\" />\n\t\t\t\t<circle class=\"stroke-accent\" cx=\"90\" cy=\"110\" r=\"6\" fill=\"none\" stroke-width=\"3\" opacity=\"0.5\" />\n\t\t\t\t<line class=\"stroke-accent\" x1=\"106\" y1=\"110\" x2=\"140\" y2=\"110\" stroke-width=\"5\" stroke-linecap=\"round\" />\n\t\t\t\t<line class=\"stroke-accent\" x1=\"125\" y1=\"110\" x2=\"125\" y2=\"120\" stroke-width=\"4\" stroke-linecap=\"round\" />\n\t\t\t\t<line class=\"stroke-accent\" x1=\"133\" y1=\"110\" x2=\"133\" y2=\"118\" stroke-width=\"4\" stroke-linecap=\"round\" />\n\t\t\t</g>\n\t\t\t<g transform=\"translate(200 70)\">\n\t\t\t\t<g class=\"sp-x-pop\">\n\t\t\t\t\t<circle class=\"fill-base-100 stroke-accent\" cx=\"0\" cy=\"0\" r=\"14\" stroke-width=\"2.5\" />\n\t\t\t\t\t<line class=\"stroke-accent\" x1=\"-5\" y1=\"-5\" x2=\"5\" y2=\"5\" stroke-width=\"3\" stroke-linecap=\"round\" />\n\t\t\t\t\t<line class=\"stroke-accent\" x1=\"5\" y1=\"-5\" x2=\"-5\" y2=\"5\" stroke-width=\"3\" stroke-linecap=\"round\" />\n\t\t\t\t</g>\n\t\t\t</g>\n\t\t</svg>\n\t}\n\t@case ('no-access/signal') {\n\t\t<svg class=\"h-auto w-full max-w-xs\" [attr.data-illustration]=\"illustration()\" viewBox=\"0 0 240 220\" aria-hidden=\"true\" focusable=\"false\">\n\t\t\t<circle class=\"fill-base-content\" cx=\"120\" cy=\"160\" r=\"8\" />\n\t\t\t<path class=\"sp-wave-die stroke-primary\" d=\"M88 130 A50 50 0 0 1 152 130\" fill=\"none\" stroke-width=\"5\" stroke-linecap=\"round\" />\n\t\t\t<path class=\"sp-wave-die stroke-primary sp-delay-500\" d=\"M72 110 A70 70 0 0 1 168 110\" fill=\"none\" stroke-width=\"4.5\" stroke-linecap=\"round\" />\n\t\t\t<path class=\"sp-wave-die stroke-primary sp-delay-1000\" d=\"M56 90 A90 90 0 0 1 184 90\" fill=\"none\" stroke-width=\"4\" stroke-linecap=\"round\" />\n\t\t\t<line class=\"sp-slash-draw stroke-accent\" x1=\"56\" y1=\"170\" x2=\"184\" y2=\"80\" stroke-width=\"5\" stroke-linecap=\"round\" />\n\t\t</svg>\n\t}\n\t@case ('offline') {\n\t\t<svg class=\"h-auto w-full max-w-xs\" [attr.data-illustration]=\"illustration()\" viewBox=\"0 0 240 220\" aria-hidden=\"true\" focusable=\"false\">\n\t\t\t<g class=\"sp-cable-sway\">\n\t\t\t\t<path class=\"stroke-base-content\" d=\"M120 0 L120 70\" fill=\"none\" stroke-width=\"7\" stroke-linecap=\"round\" opacity=\"0.6\" />\n\t\t\t\t<rect class=\"fill-base-content\" x=\"108\" y=\"68\" width=\"24\" height=\"16\" rx=\"6\" opacity=\"0.8\" />\n\t\t\t\t<rect class=\"fill-base-content\" x=\"114\" y=\"84\" width=\"5\" height=\"10\" rx=\"2\" opacity=\"0.65\" />\n\t\t\t\t<rect class=\"fill-base-content\" x=\"125\" y=\"84\" width=\"5\" height=\"10\" rx=\"2\" opacity=\"0.65\" />\n\t\t\t</g>\n\t\t\t<g transform=\"translate(120 155)\">\n\t\t\t\t<path\n\t\t\t\t\tclass=\"sp-wifi-fade stroke-primary\"\n\t\t\t\t\td=\"M-36 -20 A50 50 0 0 1 36 -20\"\n\t\t\t\t\tfill=\"none\"\n\t\t\t\t\tstroke-width=\"4\"\n\t\t\t\t\tstroke-linecap=\"round\"\n\t\t\t\t\topacity=\"0.3\"\n\t\t\t\t/>\n\t\t\t\t<path\n\t\t\t\t\tclass=\"sp-wifi-fade stroke-primary sp-delay-700\"\n\t\t\t\t\td=\"M-24 -8 A34 34 0 0 1 24 -8\"\n\t\t\t\t\tfill=\"none\"\n\t\t\t\t\tstroke-width=\"3.5\"\n\t\t\t\t\tstroke-linecap=\"round\"\n\t\t\t\t\topacity=\"0.25\"\n\t\t\t\t/>\n\t\t\t\t<path\n\t\t\t\t\tclass=\"sp-wifi-fade stroke-primary sp-delay-1400\"\n\t\t\t\t\td=\"M-12 4 A18 18 0 0 1 12 4\"\n\t\t\t\t\tfill=\"none\"\n\t\t\t\t\tstroke-width=\"3\"\n\t\t\t\t\tstroke-linecap=\"round\"\n\t\t\t\t\topacity=\"0.2\"\n\t\t\t\t/>\n\t\t\t\t<circle class=\"fill-primary\" cx=\"0\" cy=\"14\" r=\"5\" opacity=\"0.4\" />\n\t\t\t</g>\n\t\t\t<g transform=\"translate(120 148)\">\n\t\t\t\t<g class=\"sp-x-blink\">\n\t\t\t\t\t<line class=\"stroke-accent\" x1=\"-18\" y1=\"-18\" x2=\"18\" y2=\"18\" stroke-width=\"4\" stroke-linecap=\"round\" />\n\t\t\t\t\t<line class=\"stroke-accent\" x1=\"18\" y1=\"-18\" x2=\"-18\" y2=\"18\" stroke-width=\"4\" stroke-linecap=\"round\" />\n\t\t\t\t</g>\n\t\t\t</g>\n\t\t</svg>\n\t}\n}\n", styles: ["@keyframes sp-text-float{0%,to{transform:translateY(0)}50%{transform:translateY(-12px)}}@keyframes sp-shadow-pulse{0%,to{transform:scaleX(1);opacity:.18}50%{transform:scaleX(.7);opacity:.08}}@keyframes sp-scan{0%,to{transform:translate(-30px)}50%{transform:translate(30px)}}@keyframes sp-lens-pulse{0%,to{transform:scale(1);opacity:.6}50%{transform:scale(1.12);opacity:1}}@keyframes sp-plug-left{0%,to{transform:translate(0)}30%,70%{transform:translate(-6px)}}@keyframes sp-plug-right{0%,to{transform:translate(0)}30%,70%{transform:translate(6px)}}@keyframes sp-spark{0%{opacity:0;transform:scale(.4)}15%{opacity:1;transform:scale(1.1)}40%{opacity:.7;transform:scale(.9)}to{opacity:0;transform:scale(.4)}}@keyframes sp-drift{0%,to{transform:translate(0) rotate(-2deg)}25%{transform:translate(8px,-6px) rotate(0)}50%{transform:translate(2px,-12px) rotate(1deg)}75%{transform:translate(-6px,-4px) rotate(-1deg)}}@keyframes sp-trail{0%{stroke-dashoffset:0}to{stroke-dashoffset:-60}}@keyframes sp-reject{0%,to{transform:translate(0)}10%,30%,50%{transform:translate(-4px)}20%,40%{transform:translate(4px)}60%{transform:translate(0)}}@keyframes sp-shield-breathe{0%,to{opacity:.15;transform:scale(1)}50%{opacity:.25;transform:scale(1.04)}}@keyframes sp-bar-try{0%,to{transform:rotate(0)}30%{transform:rotate(-3deg)}50%{transform:rotate(1deg)}70%{transform:rotate(-1deg)}}@keyframes sp-blink{0%,49%{opacity:1}50%,to{opacity:.2}}@keyframes sp-key-try{0%{transform:translate(-40px) rotate(-10deg);opacity:.5}40%{transform:translate(0) rotate(0);opacity:1}55%{transform:translate(4px) rotate(2deg);opacity:1}70%{transform:translate(-20px) rotate(-5deg);opacity:.7}to{transform:translate(-40px) rotate(-10deg);opacity:.5}}@keyframes sp-x-pop{0%,60%{opacity:0;transform:scale(.5)}70%{opacity:1;transform:scale(1.15)}80%{opacity:1;transform:scale(.95)}90%,to{opacity:0;transform:scale(1)}}@keyframes sp-wave-die{0%{opacity:.8;stroke-dashoffset:0}60%{opacity:.4}to{opacity:0;stroke-dashoffset:20}}@keyframes sp-slash-draw{0%{stroke-dashoffset:60}to{stroke-dashoffset:0}}@keyframes sp-static{0%{transform:translate(0)}2%{transform:translate(-2px)}4%{transform:translate(3px)}6%{transform:translate(-1px)}8%,to{transform:translate(0)}}@keyframes sp-smoke{0%{transform:translateY(0) scaleX(1);opacity:.5}to{transform:translateY(-28px) scaleX(.3);opacity:0}}@keyframes sp-warning-bob{0%,to{transform:translateY(0)}50%{transform:translateY(-4px)}}@keyframes sp-cable-sway{0%,to{transform:rotate(0)}30%{transform:rotate(-2deg)}70%{transform:rotate(2deg)}}@keyframes sp-wifi-fade{0%{opacity:.7}50%{opacity:.2}to{opacity:.7}}@keyframes sp-x-blink{0%,40%{opacity:1}50%,90%{opacity:.3}to{opacity:1}}.sp-text-float{animation:sp-text-float 4s ease-in-out infinite}.sp-shadow-pulse{transform-origin:center;animation:sp-shadow-pulse 4s ease-in-out infinite}.sp-scan{animation:sp-scan 3.5s ease-in-out infinite}.sp-lens-pulse{transform-origin:center;animation:sp-lens-pulse 2.5s ease-in-out infinite}.sp-plug-left{animation:sp-plug-left 4s ease-in-out infinite}.sp-plug-right{animation:sp-plug-right 4s ease-in-out infinite}.sp-spark{transform-origin:center;animation:sp-spark 2s ease-out infinite}.sp-drift{animation:sp-drift 6s ease-in-out infinite}.sp-trail{stroke-dasharray:8 12;animation:sp-trail 3s linear infinite}.sp-reject{animation:sp-reject 3s ease-in-out infinite}.sp-shield-breathe{transform-origin:center;animation:sp-shield-breathe 3.5s ease-in-out infinite}.sp-bar-try{transform-origin:140px 80px;animation:sp-bar-try 2.8s ease-in-out infinite}.sp-blink{animation:sp-blink 1.2s step-end infinite}.sp-key-try{animation:sp-key-try 3.5s ease-in-out infinite}.sp-x-pop{transform-box:fill-box;transform-origin:center;animation:sp-x-pop 3.5s ease-out infinite}.sp-wave-die{transform-origin:center bottom;animation:sp-wave-die 2.5s ease-out infinite}.sp-slash-draw{stroke-dasharray:60;animation:sp-slash-draw 2s ease-out forwards}.sp-static{animation:sp-static .3s steps(4) infinite}.sp-smoke{transform-origin:center bottom;animation:sp-smoke 2.5s ease-out infinite}.sp-warning-bob{animation:sp-warning-bob 2s ease-in-out infinite}.sp-cable-sway{transform-origin:120px 20px;animation:sp-cable-sway 4s ease-in-out infinite}.sp-wifi-fade{animation:sp-wifi-fade 3s ease-in-out infinite}.sp-x-blink{animation:sp-x-blink 2s step-end infinite}.sp-delay-500{animation-delay:-.5s}.sp-delay-700{animation-delay:-.7s}.sp-delay-800{animation-delay:-.8s}.sp-delay-1000{animation-delay:-1s}.sp-delay-1400{animation-delay:-1.4s}.sp-delay-1500{animation-delay:-1.5s}@media(prefers-reduced-motion:reduce){[class*=sp-]{animation:none}}\n"] }]
|
|
59
|
+
}] });
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Generated bundle index. Do not edit.
|
|
63
|
+
*/
|
|
64
|
+
|
|
65
|
+
export { StatusIllustrationComponent };
|
|
66
|
+
//# sourceMappingURL=sixbell-telco-sdk-components-status-illustration.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sixbell-telco-sdk-components-status-illustration.mjs","sources":["../../../projects/sdk/components/status-illustration/src/status-illustration.component.ts","../../../projects/sdk/components/status-illustration/src/status-illustration.component.html","../../../projects/sdk/components/status-illustration/sixbell-telco-sdk-components-status-illustration.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, computed, input } from '@angular/core';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\n\n/** Status page the illustration belongs to. */\nexport type StatusIllustrationKind = 'not-found' | 'server-error' | 'no-access' | 'offline';\n\n/**\n * Alternative artwork for a kind: `not-found` takes `depth` (default), `searching`, `disconnected`, `drift`;\n * `server-error` takes `monitor` (default), `crash`, `overload`; `no-access` takes `shield` (default), `gate`, `key`, `signal`.\n * `offline` has one artwork. A variant of another kind falls back to the kind's default.\n */\nexport type StatusIllustrationVariant =\n\t'depth' | 'searching' | 'disconnected' | 'drift' | 'monitor' | 'crash' | 'overload' | 'shield' | 'gate' | 'key' | 'signal';\n\nconst VARIANTS: Record<StatusIllustrationKind, readonly StatusIllustrationVariant[]> = {\n\t'not-found': ['depth', 'searching', 'disconnected', 'drift'],\n\t'server-error': ['monitor', 'crash', 'overload'],\n\t'no-access': ['shield', 'gate', 'key', 'signal'],\n\toffline: [],\n};\n\n/**\n * Animated, theme-coloured artwork for status pages (404, 500, 403 and offline).\n *\n * @remarks\n * Colours come from the active theme (`primary`, `accent`, `base-*`), so it follows light and dark schemes.\n * The motion stops under `prefers-reduced-motion: reduce`.\n * It is decorative (`aria-hidden`) unless `label` is set; the page heading should carry the message.\n *\n * @example\n * ```html\n * <st-status-illustration kind=\"not-found\" />\n * <st-status-illustration kind=\"no-access\" variant=\"key\" label=\"Access denied\" />\n * ```\n */\n@Component({\n\tselector: 'st-status-illustration',\n\ttemplateUrl: './status-illustration.component.html',\n\tstyleUrl: './status-illustration.component.css',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\thost: {\n\t\t'[class]': 'componentClass()',\n\t\t'[attr.role]': 'label() ? \"img\" : null',\n\t\t'[attr.aria-label]': 'label() || null',\n\t\t'[attr.aria-hidden]': 'label() ? null : \"true\"',\n\t},\n})\nexport class StatusIllustrationComponent {\n\t/** Status page the artwork illustrates */\n\tkind = input.required<StatusIllustrationKind>();\n\n\t/**\n\t * Alternative artwork for the kind; `null` or a variant of another kind uses the kind's default\n\t * @defaultValue null\n\t */\n\tvariant = input<StatusIllustrationVariant | null>(null);\n\n\t/** Accessible name. Empty keeps the illustration decorative (`aria-hidden`). */\n\tlabel = input<string>('');\n\n\t/** Additional classes merged onto the host */\n\tclass = input<string>('');\n\n\t/** @internal Template case: `kind/variant`, or the kind alone when it has one artwork. */\n\tprotected readonly illustration = computed(() => {\n\t\tconst kind = this.kind();\n\t\tconst variants = VARIANTS[kind];\n\t\tif (!variants.length) return kind;\n\t\tconst variant = this.variant();\n\t\treturn `${kind}/${variant && variants.includes(variant) ? variant : variants[0]}`;\n\t});\n\n\t/** @internal */\n\treadonly componentClass = computed(() => cn('flex items-center justify-center', this.class()));\n}\n","@switch (illustration()) {\n\t@case ('not-found/depth') {\n\t\t<svg class=\"h-auto w-full max-w-sm\" [attr.data-illustration]=\"illustration()\" viewBox=\"0 0 320 220\" aria-hidden=\"true\" focusable=\"false\">\n\t\t\t<ellipse class=\"sp-shadow-pulse fill-base-content\" cx=\"160\" cy=\"185\" rx=\"100\" ry=\"12\" opacity=\"0.1\" />\n\t\t\t<g class=\"sp-text-float\">\n\t\t\t\t<text\n\t\t\t\t\tclass=\"fill-primary\"\n\t\t\t\t\tx=\"160\"\n\t\t\t\t\ty=\"148\"\n\t\t\t\t\ttext-anchor=\"middle\"\n\t\t\t\t\tfont-family=\"inherit\"\n\t\t\t\t\tfont-size=\"120\"\n\t\t\t\t\tfont-weight=\"900\"\n\t\t\t\t\topacity=\"0.9\"\n\t\t\t\t\tletter-spacing=\"-4\"\n\t\t\t\t>\n\t\t\t\t\t404\n\t\t\t\t</text>\n\t\t\t</g>\n\t\t</svg>\n\t}\n\t@case ('not-found/searching') {\n\t\t<svg class=\"h-auto w-full max-w-xs\" [attr.data-illustration]=\"illustration()\" viewBox=\"0 0 260 220\" aria-hidden=\"true\" focusable=\"false\">\n\t\t\t<text class=\"fill-primary\" x=\"70\" y=\"90\" font-family=\"inherit\" font-size=\"28\" font-weight=\"700\" opacity=\"0.12\">?</text>\n\t\t\t<text class=\"fill-primary\" x=\"150\" y=\"70\" font-family=\"inherit\" font-size=\"20\" font-weight=\"700\" opacity=\"0.1\">?</text>\n\t\t\t<text class=\"fill-primary\" x=\"190\" y=\"120\" font-family=\"inherit\" font-size=\"24\" font-weight=\"700\" opacity=\"0.08\">?</text>\n\t\t\t<g class=\"sp-scan\">\n\t\t\t\t<circle class=\"stroke-primary\" cx=\"130\" cy=\"110\" r=\"36\" fill=\"none\" stroke-width=\"6\" />\n\t\t\t\t<circle class=\"sp-lens-pulse fill-primary\" cx=\"130\" cy=\"110\" r=\"28\" opacity=\"0.06\" />\n\t\t\t\t<line class=\"stroke-base-content\" x1=\"156\" y1=\"136\" x2=\"180\" y2=\"160\" stroke-width=\"8\" stroke-linecap=\"round\" />\n\t\t\t</g>\n\t\t\t<line class=\"stroke-base-300\" x1=\"40\" y1=\"184\" x2=\"220\" y2=\"184\" stroke-width=\"2\" opacity=\"0.4\" />\n\t\t</svg>\n\t}\n\t@case ('not-found/disconnected') {\n\t\t<svg class=\"h-auto w-full max-w-sm\" [attr.data-illustration]=\"illustration()\" viewBox=\"0 0 320 220\" aria-hidden=\"true\" focusable=\"false\">\n\t\t\t<g class=\"sp-plug-left\">\n\t\t\t\t<line class=\"stroke-base-content\" x1=\"20\" y1=\"100\" x2=\"110\" y2=\"100\" stroke-width=\"8\" stroke-linecap=\"round\" opacity=\"0.6\" />\n\t\t\t\t<rect class=\"fill-base-content\" x=\"100\" y=\"84\" width=\"36\" height=\"32\" rx=\"8\" opacity=\"0.85\" />\n\t\t\t\t<rect class=\"fill-base-content\" x=\"136\" y=\"90\" width=\"14\" height=\"6\" rx=\"3\" opacity=\"0.7\" />\n\t\t\t\t<rect class=\"fill-base-content\" x=\"136\" y=\"104\" width=\"14\" height=\"6\" rx=\"3\" opacity=\"0.7\" />\n\t\t\t</g>\n\t\t\t<g>\n\t\t\t\t<line class=\"sp-spark stroke-accent\" x1=\"158\" y1=\"94\" x2=\"164\" y2=\"84\" stroke-width=\"2.5\" stroke-linecap=\"round\" />\n\t\t\t\t<line class=\"sp-spark stroke-primary sp-delay-500\" x1=\"162\" y1=\"100\" x2=\"168\" y2=\"100\" stroke-width=\"2\" stroke-linecap=\"round\" />\n\t\t\t\t<line class=\"sp-spark stroke-accent sp-delay-1000\" x1=\"158\" y1=\"106\" x2=\"164\" y2=\"116\" stroke-width=\"2.5\" stroke-linecap=\"round\" />\n\t\t\t</g>\n\t\t\t<g class=\"sp-plug-right\">\n\t\t\t\t<rect class=\"fill-base-content\" x=\"170\" y=\"84\" width=\"36\" height=\"32\" rx=\"8\" opacity=\"0.85\" />\n\t\t\t\t<rect class=\"fill-base-300\" x=\"166\" y=\"90\" width=\"10\" height=\"6\" rx=\"3\" />\n\t\t\t\t<rect class=\"fill-base-300\" x=\"166\" y=\"104\" width=\"10\" height=\"6\" rx=\"3\" />\n\t\t\t\t<line class=\"stroke-base-content\" x1=\"206\" y1=\"100\" x2=\"300\" y2=\"100\" stroke-width=\"8\" stroke-linecap=\"round\" opacity=\"0.6\" />\n\t\t\t</g>\n\t\t\t<text\n\t\t\t\tclass=\"fill-primary\"\n\t\t\t\tx=\"160\"\n\t\t\t\ty=\"186\"\n\t\t\t\ttext-anchor=\"middle\"\n\t\t\t\tfont-family=\"inherit\"\n\t\t\t\tfont-size=\"48\"\n\t\t\t\tfont-weight=\"900\"\n\t\t\t\topacity=\"0.25\"\n\t\t\t\tletter-spacing=\"-2\"\n\t\t\t>\n\t\t\t\t404\n\t\t\t</text>\n\t\t</svg>\n\t}\n\t@case ('not-found/drift') {\n\t\t<svg class=\"h-auto w-full max-w-xs\" [attr.data-illustration]=\"illustration()\" viewBox=\"0 0 260 200\" aria-hidden=\"true\" focusable=\"false\">\n\t\t\t<path\n\t\t\t\tclass=\"sp-trail stroke-primary\"\n\t\t\t\td=\"M30 140 Q80 150 110 130 Q140 110 150 100\"\n\t\t\t\tfill=\"none\"\n\t\t\t\tstroke-width=\"2\"\n\t\t\t\topacity=\"0.3\"\n\t\t\t\tstroke-linecap=\"round\"\n\t\t\t/>\n\t\t\t<g transform=\"translate(155 85)\">\n\t\t\t\t<g class=\"sp-drift\">\n\t\t\t\t\t<polygon class=\"fill-primary\" points=\"0,-18 36,4 0,8 -6,0\" opacity=\"0.85\" />\n\t\t\t\t\t<line class=\"stroke-base-100\" x1=\"0\" y1=\"-18\" x2=\"0\" y2=\"8\" stroke-width=\"1.5\" opacity=\"0.5\" />\n\t\t\t\t\t<polygon class=\"fill-primary\" points=\"0,8 36,4 0,-2\" opacity=\"0.55\" />\n\t\t\t\t</g>\n\t\t\t</g>\n\t\t\t<line class=\"stroke-base-300\" x1=\"30\" y1=\"170\" x2=\"230\" y2=\"170\" stroke-width=\"1.5\" opacity=\"0.3\" />\n\t\t</svg>\n\t}\n\t@case ('server-error/monitor') {\n\t\t<svg class=\"h-auto w-full max-w-xs\" [attr.data-illustration]=\"illustration()\" viewBox=\"0 0 260 240\" aria-hidden=\"true\" focusable=\"false\">\n\t\t\t<rect class=\"fill-base-100 stroke-base-300\" x=\"50\" y=\"50\" width=\"160\" height=\"110\" rx=\"10\" stroke-width=\"3\" />\n\t\t\t<g class=\"sp-static\">\n\t\t\t\t<rect class=\"fill-base-300\" x=\"60\" y=\"60\" width=\"140\" height=\"90\" rx=\"6\" opacity=\"0.35\" />\n\t\t\t\t<line class=\"stroke-base-content\" x1=\"68\" y1=\"76\" x2=\"120\" y2=\"76\" stroke-width=\"2\" opacity=\"0.1\" />\n\t\t\t\t<line class=\"stroke-base-content\" x1=\"90\" y1=\"90\" x2=\"180\" y2=\"90\" stroke-width=\"1.5\" opacity=\"0.08\" />\n\t\t\t\t<line class=\"stroke-base-content\" x1=\"68\" y1=\"104\" x2=\"150\" y2=\"104\" stroke-width=\"2\" opacity=\"0.12\" />\n\t\t\t\t<line class=\"stroke-base-content\" x1=\"100\" y1=\"118\" x2=\"190\" y2=\"118\" stroke-width=\"1.5\" opacity=\"0.08\" />\n\t\t\t\t<line class=\"stroke-base-content\" x1=\"68\" y1=\"132\" x2=\"140\" y2=\"132\" stroke-width=\"2\" opacity=\"0.1\" />\n\t\t\t</g>\n\t\t\t<rect class=\"fill-base-content\" x=\"114\" y=\"160\" width=\"32\" height=\"14\" rx=\"4\" opacity=\"0.45\" />\n\t\t\t<rect class=\"fill-base-content\" x=\"96\" y=\"172\" width=\"68\" height=\"8\" rx=\"4\" opacity=\"0.35\" />\n\t\t\t<path class=\"sp-smoke stroke-base-content\" d=\"M110 50 Q114 38 118 50\" fill=\"none\" stroke-width=\"2.5\" stroke-linecap=\"round\" opacity=\"0.35\" />\n\t\t\t<path\n\t\t\t\tclass=\"sp-smoke stroke-base-content sp-delay-800\"\n\t\t\t\td=\"M132 46 Q136 32 140 46\"\n\t\t\t\tfill=\"none\"\n\t\t\t\tstroke-width=\"2\"\n\t\t\t\tstroke-linecap=\"round\"\n\t\t\t\topacity=\"0.3\"\n\t\t\t/>\n\t\t\t<path\n\t\t\t\tclass=\"sp-smoke stroke-base-content sp-delay-1500\"\n\t\t\t\td=\"M152 50 Q156 36 160 50\"\n\t\t\t\tfill=\"none\"\n\t\t\t\tstroke-width=\"2.5\"\n\t\t\t\tstroke-linecap=\"round\"\n\t\t\t\topacity=\"0.3\"\n\t\t\t/>\n\t\t\t<g transform=\"translate(130 28)\">\n\t\t\t\t<g class=\"sp-warning-bob\">\n\t\t\t\t\t<polygon class=\"fill-base-100 stroke-accent\" points=\"0,-16 16,10 -16,10\" stroke-width=\"2.5\" stroke-linejoin=\"round\" />\n\t\t\t\t\t<text class=\"fill-accent\" x=\"0\" y=\"6\" text-anchor=\"middle\" font-family=\"inherit\" font-size=\"14\" font-weight=\"900\">!</text>\n\t\t\t\t</g>\n\t\t\t</g>\n\t\t\t<text\n\t\t\t\tclass=\"fill-primary\"\n\t\t\t\tx=\"130\"\n\t\t\t\ty=\"218\"\n\t\t\t\ttext-anchor=\"middle\"\n\t\t\t\tfont-family=\"inherit\"\n\t\t\t\tfont-size=\"32\"\n\t\t\t\tfont-weight=\"900\"\n\t\t\t\topacity=\"0.2\"\n\t\t\t\tletter-spacing=\"-1\"\n\t\t\t>\n\t\t\t\t500\n\t\t\t</text>\n\t\t</svg>\n\t}\n\t@case ('server-error/crash') {\n\t\t<svg class=\"h-auto w-full max-w-xs\" [attr.data-illustration]=\"illustration()\" viewBox=\"0 0 260 240\" aria-hidden=\"true\" focusable=\"false\">\n\t\t\t<rect class=\"fill-base-100 stroke-base-300\" x=\"52\" y=\"54\" width=\"156\" height=\"104\" rx=\"10\" stroke-width=\"3\" />\n\t\t\t<path\n\t\t\t\tclass=\"stroke-primary\"\n\t\t\t\td=\"M66 86 L104 110 L122 88 L148 116 L170 98 L194 122\"\n\t\t\t\tfill=\"none\"\n\t\t\t\tstroke-width=\"8\"\n\t\t\t\tstroke-linecap=\"round\"\n\t\t\t\tstroke-linejoin=\"round\"\n\t\t\t/>\n\t\t\t<path\n\t\t\t\tclass=\"sp-warning-bob stroke-accent\"\n\t\t\t\td=\"M124 54 L118 82 L134 82 L126 112\"\n\t\t\t\tfill=\"none\"\n\t\t\t\tstroke-width=\"5\"\n\t\t\t\tstroke-linecap=\"round\"\n\t\t\t\tstroke-linejoin=\"round\"\n\t\t\t/>\n\t\t\t<circle class=\"fill-base-content\" cx=\"86\" cy=\"146\" r=\"6\" opacity=\"0.16\" />\n\t\t\t<circle class=\"fill-base-content\" cx=\"174\" cy=\"146\" r=\"6\" opacity=\"0.16\" />\n\t\t\t<rect class=\"fill-base-content\" x=\"112\" y=\"164\" width=\"36\" height=\"12\" rx=\"4\" opacity=\"0.4\" />\n\t\t\t<rect class=\"fill-base-content\" x=\"96\" y=\"176\" width=\"68\" height=\"8\" rx=\"4\" opacity=\"0.28\" />\n\t\t\t<text\n\t\t\t\tclass=\"fill-primary\"\n\t\t\t\tx=\"130\"\n\t\t\t\ty=\"218\"\n\t\t\t\ttext-anchor=\"middle\"\n\t\t\t\tfont-family=\"inherit\"\n\t\t\t\tfont-size=\"32\"\n\t\t\t\tfont-weight=\"900\"\n\t\t\t\topacity=\"0.2\"\n\t\t\t\tletter-spacing=\"-1\"\n\t\t\t>\n\t\t\t\t500\n\t\t\t</text>\n\t\t</svg>\n\t}\n\t@case ('server-error/overload') {\n\t\t<svg class=\"h-auto w-full max-w-xs\" [attr.data-illustration]=\"illustration()\" viewBox=\"0 0 260 240\" aria-hidden=\"true\" focusable=\"false\">\n\t\t\t<rect class=\"fill-base-100 stroke-base-300\" x=\"58\" y=\"62\" width=\"144\" height=\"96\" rx=\"12\" stroke-width=\"3\" />\n\t\t\t<rect class=\"fill-primary\" x=\"74\" y=\"128\" width=\"20\" height=\"14\" rx=\"4\" opacity=\"0.4\" />\n\t\t\t<rect class=\"fill-primary\" x=\"102\" y=\"114\" width=\"20\" height=\"28\" rx=\"4\" opacity=\"0.55\" />\n\t\t\t<rect class=\"fill-primary\" x=\"130\" y=\"96\" width=\"20\" height=\"46\" rx=\"4\" opacity=\"0.75\" />\n\t\t\t<rect class=\"sp-warning-bob fill-accent\" x=\"158\" y=\"82\" width=\"20\" height=\"60\" rx=\"4\" opacity=\"0.85\" />\n\t\t\t<g transform=\"translate(182 74)\">\n\t\t\t\t<circle class=\"fill-base-100 stroke-accent\" cx=\"0\" cy=\"0\" r=\"16\" stroke-width=\"2.5\" />\n\t\t\t\t<path class=\"stroke-accent\" d=\"M0 -8 V1 L6 6\" fill=\"none\" stroke-width=\"2.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\" />\n\t\t\t</g>\n\t\t\t<text\n\t\t\t\tclass=\"fill-primary\"\n\t\t\t\tx=\"130\"\n\t\t\t\ty=\"218\"\n\t\t\t\ttext-anchor=\"middle\"\n\t\t\t\tfont-family=\"inherit\"\n\t\t\t\tfont-size=\"32\"\n\t\t\t\tfont-weight=\"900\"\n\t\t\t\topacity=\"0.2\"\n\t\t\t\tletter-spacing=\"-1\"\n\t\t\t>\n\t\t\t\t500\n\t\t\t</text>\n\t\t</svg>\n\t}\n\t@case ('no-access/shield') {\n\t\t<svg class=\"h-auto w-full max-w-xs\" [attr.data-illustration]=\"illustration()\" viewBox=\"0 0 240 240\" aria-hidden=\"true\" focusable=\"false\">\n\t\t\t<path\n\t\t\t\tclass=\"sp-shield-breathe stroke-primary\"\n\t\t\t\td=\"M120 28 L188 56 V116 C188 160 158 196 120 210 C82 196 52 160 52 116 V56 Z\"\n\t\t\t\tfill=\"none\"\n\t\t\t\tstroke-width=\"2.5\"\n\t\t\t\topacity=\"0.18\"\n\t\t\t/>\n\t\t\t<g class=\"sp-reject\">\n\t\t\t\t<path\n\t\t\t\t\tclass=\"stroke-base-content\"\n\t\t\t\t\td=\"M96 112 V96 C96 78 106 66 120 66 S144 78 144 96 V112\"\n\t\t\t\t\tfill=\"none\"\n\t\t\t\t\tstroke-width=\"8\"\n\t\t\t\t\tstroke-linecap=\"round\"\n\t\t\t\t/>\n\t\t\t\t<rect class=\"fill-base-content\" x=\"86\" y=\"110\" width=\"68\" height=\"56\" rx=\"14\" />\n\t\t\t\t<circle class=\"fill-base-100\" cx=\"120\" cy=\"134\" r=\"8\" />\n\t\t\t\t<line class=\"stroke-base-100\" x1=\"120\" y1=\"140\" x2=\"120\" y2=\"152\" stroke-width=\"5\" stroke-linecap=\"round\" />\n\t\t\t</g>\n\t\t</svg>\n\t}\n\t@case ('no-access/gate') {\n\t\t<svg class=\"h-auto w-full max-w-xs\" [attr.data-illustration]=\"illustration()\" viewBox=\"0 0 280 200\" aria-hidden=\"true\" focusable=\"false\">\n\t\t\t<rect class=\"fill-base-300\" x=\"0\" y=\"148\" width=\"280\" height=\"8\" rx=\"4\" opacity=\"0.5\" />\n\t\t\t<line class=\"stroke-base-content\" x1=\"0\" y1=\"152\" x2=\"280\" y2=\"152\" stroke-width=\"2\" stroke-dasharray=\"12 10\" opacity=\"0.15\" />\n\t\t\t<rect class=\"fill-base-content\" x=\"132\" y=\"64\" width=\"16\" height=\"92\" rx=\"6\" opacity=\"0.8\" />\n\t\t\t<g class=\"sp-bar-try\">\n\t\t\t\t<rect class=\"fill-accent\" x=\"140\" y=\"74\" width=\"120\" height=\"12\" rx=\"6\" opacity=\"0.85\" />\n\t\t\t\t<rect class=\"fill-base-100\" x=\"168\" y=\"74\" width=\"8\" height=\"12\" rx=\"2\" opacity=\"0.5\" />\n\t\t\t\t<rect class=\"fill-base-100\" x=\"196\" y=\"74\" width=\"8\" height=\"12\" rx=\"2\" opacity=\"0.5\" />\n\t\t\t\t<rect class=\"fill-base-100\" x=\"224\" y=\"74\" width=\"8\" height=\"12\" rx=\"2\" opacity=\"0.5\" />\n\t\t\t</g>\n\t\t\t<circle class=\"sp-blink fill-accent\" cx=\"140\" cy=\"58\" r=\"10\" opacity=\"0.9\" />\n\t\t\t<rect class=\"fill-base-content\" x=\"128\" y=\"56\" width=\"24\" height=\"6\" rx=\"3\" opacity=\"0.6\" />\n\t\t</svg>\n\t}\n\t@case ('no-access/key') {\n\t\t<svg class=\"h-auto w-full max-w-xs\" [attr.data-illustration]=\"illustration()\" viewBox=\"0 0 280 220\" aria-hidden=\"true\" focusable=\"false\">\n\t\t\t<circle class=\"fill-base-300\" cx=\"170\" cy=\"110\" r=\"40\" opacity=\"0.3\" />\n\t\t\t<circle class=\"fill-base-content\" cx=\"170\" cy=\"104\" r=\"12\" />\n\t\t\t<rect class=\"fill-base-content\" x=\"165\" y=\"114\" width=\"10\" height=\"18\" rx=\"4\" />\n\t\t\t<g class=\"sp-key-try\">\n\t\t\t\t<circle class=\"stroke-accent\" cx=\"90\" cy=\"110\" r=\"16\" fill=\"none\" stroke-width=\"6\" />\n\t\t\t\t<circle class=\"stroke-accent\" cx=\"90\" cy=\"110\" r=\"6\" fill=\"none\" stroke-width=\"3\" opacity=\"0.5\" />\n\t\t\t\t<line class=\"stroke-accent\" x1=\"106\" y1=\"110\" x2=\"140\" y2=\"110\" stroke-width=\"5\" stroke-linecap=\"round\" />\n\t\t\t\t<line class=\"stroke-accent\" x1=\"125\" y1=\"110\" x2=\"125\" y2=\"120\" stroke-width=\"4\" stroke-linecap=\"round\" />\n\t\t\t\t<line class=\"stroke-accent\" x1=\"133\" y1=\"110\" x2=\"133\" y2=\"118\" stroke-width=\"4\" stroke-linecap=\"round\" />\n\t\t\t</g>\n\t\t\t<g transform=\"translate(200 70)\">\n\t\t\t\t<g class=\"sp-x-pop\">\n\t\t\t\t\t<circle class=\"fill-base-100 stroke-accent\" cx=\"0\" cy=\"0\" r=\"14\" stroke-width=\"2.5\" />\n\t\t\t\t\t<line class=\"stroke-accent\" x1=\"-5\" y1=\"-5\" x2=\"5\" y2=\"5\" stroke-width=\"3\" stroke-linecap=\"round\" />\n\t\t\t\t\t<line class=\"stroke-accent\" x1=\"5\" y1=\"-5\" x2=\"-5\" y2=\"5\" stroke-width=\"3\" stroke-linecap=\"round\" />\n\t\t\t\t</g>\n\t\t\t</g>\n\t\t</svg>\n\t}\n\t@case ('no-access/signal') {\n\t\t<svg class=\"h-auto w-full max-w-xs\" [attr.data-illustration]=\"illustration()\" viewBox=\"0 0 240 220\" aria-hidden=\"true\" focusable=\"false\">\n\t\t\t<circle class=\"fill-base-content\" cx=\"120\" cy=\"160\" r=\"8\" />\n\t\t\t<path class=\"sp-wave-die stroke-primary\" d=\"M88 130 A50 50 0 0 1 152 130\" fill=\"none\" stroke-width=\"5\" stroke-linecap=\"round\" />\n\t\t\t<path class=\"sp-wave-die stroke-primary sp-delay-500\" d=\"M72 110 A70 70 0 0 1 168 110\" fill=\"none\" stroke-width=\"4.5\" stroke-linecap=\"round\" />\n\t\t\t<path class=\"sp-wave-die stroke-primary sp-delay-1000\" d=\"M56 90 A90 90 0 0 1 184 90\" fill=\"none\" stroke-width=\"4\" stroke-linecap=\"round\" />\n\t\t\t<line class=\"sp-slash-draw stroke-accent\" x1=\"56\" y1=\"170\" x2=\"184\" y2=\"80\" stroke-width=\"5\" stroke-linecap=\"round\" />\n\t\t</svg>\n\t}\n\t@case ('offline') {\n\t\t<svg class=\"h-auto w-full max-w-xs\" [attr.data-illustration]=\"illustration()\" viewBox=\"0 0 240 220\" aria-hidden=\"true\" focusable=\"false\">\n\t\t\t<g class=\"sp-cable-sway\">\n\t\t\t\t<path class=\"stroke-base-content\" d=\"M120 0 L120 70\" fill=\"none\" stroke-width=\"7\" stroke-linecap=\"round\" opacity=\"0.6\" />\n\t\t\t\t<rect class=\"fill-base-content\" x=\"108\" y=\"68\" width=\"24\" height=\"16\" rx=\"6\" opacity=\"0.8\" />\n\t\t\t\t<rect class=\"fill-base-content\" x=\"114\" y=\"84\" width=\"5\" height=\"10\" rx=\"2\" opacity=\"0.65\" />\n\t\t\t\t<rect class=\"fill-base-content\" x=\"125\" y=\"84\" width=\"5\" height=\"10\" rx=\"2\" opacity=\"0.65\" />\n\t\t\t</g>\n\t\t\t<g transform=\"translate(120 155)\">\n\t\t\t\t<path\n\t\t\t\t\tclass=\"sp-wifi-fade stroke-primary\"\n\t\t\t\t\td=\"M-36 -20 A50 50 0 0 1 36 -20\"\n\t\t\t\t\tfill=\"none\"\n\t\t\t\t\tstroke-width=\"4\"\n\t\t\t\t\tstroke-linecap=\"round\"\n\t\t\t\t\topacity=\"0.3\"\n\t\t\t\t/>\n\t\t\t\t<path\n\t\t\t\t\tclass=\"sp-wifi-fade stroke-primary sp-delay-700\"\n\t\t\t\t\td=\"M-24 -8 A34 34 0 0 1 24 -8\"\n\t\t\t\t\tfill=\"none\"\n\t\t\t\t\tstroke-width=\"3.5\"\n\t\t\t\t\tstroke-linecap=\"round\"\n\t\t\t\t\topacity=\"0.25\"\n\t\t\t\t/>\n\t\t\t\t<path\n\t\t\t\t\tclass=\"sp-wifi-fade stroke-primary sp-delay-1400\"\n\t\t\t\t\td=\"M-12 4 A18 18 0 0 1 12 4\"\n\t\t\t\t\tfill=\"none\"\n\t\t\t\t\tstroke-width=\"3\"\n\t\t\t\t\tstroke-linecap=\"round\"\n\t\t\t\t\topacity=\"0.2\"\n\t\t\t\t/>\n\t\t\t\t<circle class=\"fill-primary\" cx=\"0\" cy=\"14\" r=\"5\" opacity=\"0.4\" />\n\t\t\t</g>\n\t\t\t<g transform=\"translate(120 148)\">\n\t\t\t\t<g class=\"sp-x-blink\">\n\t\t\t\t\t<line class=\"stroke-accent\" x1=\"-18\" y1=\"-18\" x2=\"18\" y2=\"18\" stroke-width=\"4\" stroke-linecap=\"round\" />\n\t\t\t\t\t<line class=\"stroke-accent\" x1=\"18\" y1=\"-18\" x2=\"-18\" y2=\"18\" stroke-width=\"4\" stroke-linecap=\"round\" />\n\t\t\t\t</g>\n\t\t\t</g>\n\t\t</svg>\n\t}\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;AAcA,MAAM,QAAQ,GAAyE;IACtF,WAAW,EAAE,CAAC,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,OAAO,CAAC;AAC5D,IAAA,cAAc,EAAE,CAAC,SAAS,EAAE,OAAO,EAAE,UAAU,CAAC;IAChD,WAAW,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,CAAC;AAChD,IAAA,OAAO,EAAE,EAAE;CACX;AAED;;;;;;;;;;;;;AAaG;MAaU,2BAA2B,CAAA;;AAEvC,IAAA,IAAI,GAAG,KAAK,CAAC,QAAQ,EAA0B;AAE/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IAAA,EACzC;AACL,wBAAA,SAAS,EAAE,kBAAkB;AAC7B,wBAAA,aAAa,EAAE,wBAAwB;AACvC,wBAAA,mBAAmB,EAAE,iBAAiB;AACtC,wBAAA,oBAAoB,EAAE,yBAAyB;AAC/C,qBAAA,EAAA,QAAA,EAAA,00hBAAA,EAAA,MAAA,EAAA,CAAA,0/IAAA,CAAA,EAAA;;;AE7CF;;AAEG;;;;"}
|
|
@@ -42,6 +42,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImpo
|
|
|
42
42
|
const tabContentDirective = cva(['tab-content', 'border-base-300', 'bg-base-100', 'text-pretty', 'font-body', 'leading-normal'], {
|
|
43
43
|
variants: {
|
|
44
44
|
padding: {
|
|
45
|
+
none: 'p-0',
|
|
45
46
|
xs: 'p-2',
|
|
46
47
|
sm: 'p-5',
|
|
47
48
|
md: 'p-10',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sixbell-telco-sdk-components-tab.mjs","sources":["../../../projects/sdk/components/tab/src/tab.component.ts","../../../projects/sdk/components/tab/src/tab.component.html","../../../projects/sdk/components/tab/directives/tab-content/tab-content.directive.ts","../../../projects/sdk/components/tab/directives/tab-header/tab-header.directive.ts","../../../projects/sdk/components/tab/sixbell-telco-sdk-components-tab.ts"],"sourcesContent":["import { booleanAttribute, Component, computed, input } from '@angular/core';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { cva } from 'class-variance-authority';\nimport { TabHeaderVariantProps } from '../directives/tab-header/tab-header.directive';\n\nexport type Tab = {\n\tid: string;\n\tlabel: string;\n\tstatus: TabHeaderVariantProps;\n};\n\nexport const tabComponent = cva(['tabs'], {\n\tvariants: {\n\t\tvariant: {\n\t\t\tbox: ['tabs-box'],\n\t\t\tborder: ['tabs-border'],\n\t\t\tlift: ['tabs-lift'],\n\t\t},\n\t\tsize: {\n\t\t\txs: ['tabs-xs'],\n\t\t\tsm: ['tabs-sm'],\n\t\t\tmd: ['tabs-md'],\n\t\t\tlg: ['tabs-lg'],\n\t\t},\n\t},\n\tdefaultVariants: {\n\t\tvariant: 'box',\n\t\tsize: 'md',\n\t},\n});\n\nexport type TabVariantProps = 'box' | 'border' | 'lift' | null | undefined;\nexport type TabSizeProps = 'xs' | 'sm' | 'md' | 'lg' | null | undefined;\n\nexport type TabProps = {\n\tvariant?: TabVariantProps;\n\tsize?: TabSizeProps;\n};\n\n@Component({\n\tselector: 'st-tab',\n\timports: [],\n\ttemplateUrl: './tab.component.html',\n\tstyles: '',\n})\nexport class TabComponent {\n\tvariant = input<TabVariantProps>('box');\n\tsize = input<TabSizeProps>();\n\tdisabled = input(false, { transform: booleanAttribute });\n\tactive = input(false, { transform: booleanAttribute });\n\n\tcomponentClass = computed(() =>\n\t\tcn(\n\t\t\ttabComponent({\n\t\t\t\tvariant: this.variant(),\n\t\t\t\tsize: this.size(),\n\t\t\t}),\n\t\t),\n\t);\n}\n","<div role=\"tablist\" [class]=\"componentClass()\">\n\t<ng-content></ng-content>\n</div>\n","import { computed, Directive, effect, ElementRef, inject, input, Renderer2 } from '@angular/core';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { cva } from 'class-variance-authority';\nimport { TabComponent } from '../../src/tab.component';\n\nconst tabContentDirective = cva(['tab-content', 'border-base-300', 'bg-base-100', 'text-pretty', 'font-body', 'leading-normal'], {\n\tvariants: {\n\t\tpadding: {\n\t\t\txs: 'p-2',\n\t\t\tsm: 'p-5',\n\t\t\tmd: 'p-10',\n\t\t\tlg: 'p-20',\n\t\t},\n\t},\n\tdefaultVariants: {\n\t\tpadding: 'md',\n\t},\n});\n\nexport type TabContentVariantProps = 'xs' | 'sm' | 'md' | 'lg' | null | undefined;\n\nexport type TabContentDirectiveProps = {\n\tvariant?: TabContentVariantProps;\n};\n\n@Directive({\n\t// eslint-disable-next-line @angular-eslint/directive-selector\n\tselector: 'div[tab-content]',\n\tstandalone: true,\n})\nexport class TabContentDirective {\n\tpadding = input<TabContentVariantProps>();\n\tlabel = input<string>('');\n\n\tprivate readonly element: ElementRef = inject(ElementRef);\n\tprivate readonly renderer: Renderer2 = inject(Renderer2);\n\n\tprivate readonly tabComponent = inject(TabComponent, { host: true });\n\n\tconstructor() {}\n\n\tcomponentClass = computed(() => {\n\t\treturn cn(\n\t\t\ttabContentDirective({\n\t\t\t\tpadding: this.padding(),\n\t\t\t}),\n\t\t\t{ 'bg-base-100': this.tabComponent.variant() === 'lift' },\n\t\t);\n\t});\n\n\tclassListEffect = effect(() => {\n\t\tconst classList = this.componentClass();\n\t\tthis.renderer.setAttribute(this.element.nativeElement, 'class', classList);\n\t\tthis.renderer.setAttribute(this.element.nativeElement, 'role', 'tabpanel');\n\t});\n}\n","import { computed, Directive, effect, ElementRef, inject, input, Renderer2 } from '@angular/core';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { cva } from 'class-variance-authority';\n\nconst tabHeaderDirective = cva(['tab', 'text-pretty', 'font-heading', 'leading-normal'], {\n\tvariants: {\n\t\tvariant: {\n\t\t\tdefault: '',\n\t\t\tactive: 'tab-active',\n\t\t\tdisabled: 'tab-disabled',\n\t\t},\n\t},\n\tdefaultVariants: {\n\t\tvariant: 'default',\n\t},\n});\n\nexport type TabHeaderVariantProps = 'default' | 'active' | 'disabled' | null | undefined;\n\nexport type TabHeaderDirectiveProps = {\n\tvariant?: TabHeaderVariantProps;\n};\n\n@Directive({\n\t// eslint-disable-next-line @angular-eslint/directive-selector\n\tselector: 'a[tab-header]',\n\tstandalone: true,\n})\nexport class TabHeaderDirective {\n\tvariant = input<TabHeaderVariantProps>();\n\tclasses = input<string>('');\n\tstatus = input<TabHeaderVariantProps>();\n\tlabel = input<string>('');\n\n\tprivate readonly element: ElementRef = inject(ElementRef);\n\tprivate readonly renderer: Renderer2 = inject(Renderer2);\n\n\tcomponentClass = computed(() => {\n\t\tif (this.status()) {\n\t\t\treturn cn(\n\t\t\t\ttabHeaderDirective({\n\t\t\t\t\tvariant: this.status(),\n\t\t\t\t\tclass: this.classes(),\n\t\t\t\t}),\n\t\t\t);\n\t\t} else {\n\t\t\treturn cn(\n\t\t\t\ttabHeaderDirective({\n\t\t\t\t\tvariant: this.variant(),\n\t\t\t\t\tclass: this.classes(),\n\t\t\t\t}),\n\t\t\t);\n\t\t}\n\t});\n\n\tclassListEffect = effect(() => {\n\t\tconst classList = this.componentClass();\n\t\tthis.renderer.setAttribute(this.element.nativeElement, 'class', classList);\n\t\tthis.renderer.setAttribute(this.element.nativeElement, 'aria-label', this.label());\n\t\tthis.renderer.setAttribute(this.element.nativeElement, 'role', 'tab');\n\t\tthis.renderer.setAttribute(this.element.nativeElement, 'tabindex', '0');\n\t});\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;MAWa,YAAY,GAAG,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE;AACzC,IAAA,QAAQ,EAAE;AACT,QAAA,OAAO,EAAE;YACR,GAAG,EAAE,CAAC,UAAU,CAAC;YACjB,MAAM,EAAE,CAAC,aAAa,CAAC;YACvB,IAAI,EAAE,CAAC,WAAW,CAAC;AACnB,SAAA;AACD,QAAA,IAAI,EAAE;YACL,EAAE,EAAE,CAAC,SAAS,CAAC;YACf,EAAE,EAAE,CAAC,SAAS,CAAC;YACf,EAAE,EAAE,CAAC,SAAS,CAAC;YACf,EAAE,EAAE,CAAC,SAAS,CAAC;AACf,SAAA;AACD,KAAA;AACD,IAAA,eAAe,EAAE;AAChB,QAAA,OAAO,EAAE,KAAK;AACd,QAAA,IAAI,EAAE,IAAI;AACV,KAAA;AACD,CAAA;MAgBY,YAAY,CAAA;AACxB,IAAA,OAAO,GAAG,KAAK,CAAkB,KAAK,CAAC;IACvC,IAAI,GAAG,KAAK,EAAgB;IAC5B,QAAQ,GAAG,KAAK,CAAC,KAAK,EAAE,EAAE,SAAS,EAAE,gBAAgB,EAAE,CAAC;IACxD,MAAM,GAAG,KAAK,CAAC,KAAK,EAAE,E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AAA,KAAA,EAAA,EAAA,iBAAA,EAAA,OAAA,EAAA,UAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;4FAAlB,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAL9B,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;;AAEV,oBAAA,QAAQ,EAAE,eAAe;AACzB,oBAAA,UAAU,EAAE,IAAI;AAChB,iBAAA;;;AC3BD;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"sixbell-telco-sdk-components-tab.mjs","sources":["../../../projects/sdk/components/tab/src/tab.component.ts","../../../projects/sdk/components/tab/src/tab.component.html","../../../projects/sdk/components/tab/directives/tab-content/tab-content.directive.ts","../../../projects/sdk/components/tab/directives/tab-header/tab-header.directive.ts","../../../projects/sdk/components/tab/sixbell-telco-sdk-components-tab.ts"],"sourcesContent":["import { booleanAttribute, Component, computed, input } from '@angular/core';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { cva } from 'class-variance-authority';\nimport { TabHeaderVariantProps } from '../directives/tab-header/tab-header.directive';\n\nexport type Tab = {\n\tid: string;\n\tlabel: string;\n\tstatus: TabHeaderVariantProps;\n};\n\nexport const tabComponent = cva(['tabs'], {\n\tvariants: {\n\t\tvariant: {\n\t\t\tbox: ['tabs-box'],\n\t\t\tborder: ['tabs-border'],\n\t\t\tlift: ['tabs-lift'],\n\t\t},\n\t\tsize: {\n\t\t\txs: ['tabs-xs'],\n\t\t\tsm: ['tabs-sm'],\n\t\t\tmd: ['tabs-md'],\n\t\t\tlg: ['tabs-lg'],\n\t\t},\n\t},\n\tdefaultVariants: {\n\t\tvariant: 'box',\n\t\tsize: 'md',\n\t},\n});\n\nexport type TabVariantProps = 'box' | 'border' | 'lift' | null | undefined;\nexport type TabSizeProps = 'xs' | 'sm' | 'md' | 'lg' | null | undefined;\n\nexport type TabProps = {\n\tvariant?: TabVariantProps;\n\tsize?: TabSizeProps;\n};\n\n@Component({\n\tselector: 'st-tab',\n\timports: [],\n\ttemplateUrl: './tab.component.html',\n\tstyles: '',\n})\nexport class TabComponent {\n\tvariant = input<TabVariantProps>('box');\n\tsize = input<TabSizeProps>();\n\tdisabled = input(false, { transform: booleanAttribute });\n\tactive = input(false, { transform: booleanAttribute });\n\n\tcomponentClass = computed(() =>\n\t\tcn(\n\t\t\ttabComponent({\n\t\t\t\tvariant: this.variant(),\n\t\t\t\tsize: this.size(),\n\t\t\t}),\n\t\t),\n\t);\n}\n","<div role=\"tablist\" [class]=\"componentClass()\">\n\t<ng-content></ng-content>\n</div>\n","import { computed, Directive, effect, ElementRef, inject, input, Renderer2 } from '@angular/core';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { cva } from 'class-variance-authority';\nimport { TabComponent } from '../../src/tab.component';\n\nconst tabContentDirective = cva(['tab-content', 'border-base-300', 'bg-base-100', 'text-pretty', 'font-body', 'leading-normal'], {\n\tvariants: {\n\t\tpadding: {\n\t\t\tnone: 'p-0',\n\t\t\txs: 'p-2',\n\t\t\tsm: 'p-5',\n\t\t\tmd: 'p-10',\n\t\t\tlg: 'p-20',\n\t\t},\n\t},\n\tdefaultVariants: {\n\t\tpadding: 'md',\n\t},\n});\n\nexport type TabContentVariantProps = 'none' | 'xs' | 'sm' | 'md' | 'lg' | null | undefined;\n\nexport type TabContentDirectiveProps = {\n\tvariant?: TabContentVariantProps;\n};\n\n@Directive({\n\t// eslint-disable-next-line @angular-eslint/directive-selector\n\tselector: 'div[tab-content]',\n\tstandalone: true,\n})\nexport class TabContentDirective {\n\tpadding = input<TabContentVariantProps>();\n\tlabel = input<string>('');\n\n\tprivate readonly element: ElementRef = inject(ElementRef);\n\tprivate readonly renderer: Renderer2 = inject(Renderer2);\n\n\tprivate readonly tabComponent = inject(TabComponent, { host: true });\n\n\tconstructor() {}\n\n\tcomponentClass = computed(() => {\n\t\treturn cn(\n\t\t\ttabContentDirective({\n\t\t\t\tpadding: this.padding(),\n\t\t\t}),\n\t\t\t{ 'bg-base-100': this.tabComponent.variant() === 'lift' },\n\t\t);\n\t});\n\n\tclassListEffect = effect(() => {\n\t\tconst classList = this.componentClass();\n\t\tthis.renderer.setAttribute(this.element.nativeElement, 'class', classList);\n\t\tthis.renderer.setAttribute(this.element.nativeElement, 'role', 'tabpanel');\n\t});\n}\n","import { computed, Directive, effect, ElementRef, inject, input, Renderer2 } from '@angular/core';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { cva } from 'class-variance-authority';\n\nconst tabHeaderDirective = cva(['tab', 'text-pretty', 'font-heading', 'leading-normal'], {\n\tvariants: {\n\t\tvariant: {\n\t\t\tdefault: '',\n\t\t\tactive: 'tab-active',\n\t\t\tdisabled: 'tab-disabled',\n\t\t},\n\t},\n\tdefaultVariants: {\n\t\tvariant: 'default',\n\t},\n});\n\nexport type TabHeaderVariantProps = 'default' | 'active' | 'disabled' | null | undefined;\n\nexport type TabHeaderDirectiveProps = {\n\tvariant?: TabHeaderVariantProps;\n};\n\n@Directive({\n\t// eslint-disable-next-line @angular-eslint/directive-selector\n\tselector: 'a[tab-header]',\n\tstandalone: true,\n})\nexport class TabHeaderDirective {\n\tvariant = input<TabHeaderVariantProps>();\n\tclasses = input<string>('');\n\tstatus = input<TabHeaderVariantProps>();\n\tlabel = input<string>('');\n\n\tprivate readonly element: ElementRef = inject(ElementRef);\n\tprivate readonly renderer: Renderer2 = inject(Renderer2);\n\n\tcomponentClass = computed(() => {\n\t\tif (this.status()) {\n\t\t\treturn cn(\n\t\t\t\ttabHeaderDirective({\n\t\t\t\t\tvariant: this.status(),\n\t\t\t\t\tclass: this.classes(),\n\t\t\t\t}),\n\t\t\t);\n\t\t} else {\n\t\t\treturn cn(\n\t\t\t\ttabHeaderDirective({\n\t\t\t\t\tvariant: this.variant(),\n\t\t\t\t\tclass: this.classes(),\n\t\t\t\t}),\n\t\t\t);\n\t\t}\n\t});\n\n\tclassListEffect = effect(() => {\n\t\tconst classList = this.componentClass();\n\t\tthis.renderer.setAttribute(this.element.nativeElement, 'class', classList);\n\t\tthis.renderer.setAttribute(this.element.nativeElement, 'aria-label', this.label());\n\t\tthis.renderer.setAttribute(this.element.nativeElement, 'role', 'tab');\n\t\tthis.renderer.setAttribute(this.element.nativeElement, 'tabindex', '0');\n\t});\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;MAWa,YAAY,GAAG,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE;AACzC,IAAA,QAAQ,EAAE;AACT,QAAA,OAAO,EAAE;YACR,GAAG,EAAE,CAAC,UAAU,CAAC;YACjB,MAAM,EAAE,CAAC,aAAa,CAAC;YACvB,IAAI,EAAE,CAAC,WAAW,CAAC;AACnB,SAAA;AACD,QAAA,IAAI,EAAE;YACL,EAAE,EAAE,CAAC,SAAS,CAAC;YACf,EAAE,EAAE,CAAC,SAAS,CAAC;YACf,EAAE,EAAE,CAAC,SAAS,CAAC;YACf,EAAE,EAAE,CAAC,SAAS,CAAC;AACf,SAAA;AACD,KAAA;AACD,IAAA,eAAe,EAAE;AAChB,QAAA,OAAO,EAAE,KAAK;AACd,QAAA,IAAI,EAAE,IAAI;AACV,KAAA;AACD,CAAA;MAgBY,YAAY,CAAA;AACxB,IAAA,OAAO,GAAG,KAAK,CAAkB,KAAK,CAAC;IACvC,IAAI,GAAG,KAAK,EAAgB;IAC5B,QAAQ,GAAG,KAAK,CAAC,KAAK,EAAE,EAAE,SAAS,EAAE,gBAAgB,EAAE,CAAC;IACxD,MAAM,GAAG,KAAK,CAAC,KAAK,EAAE,EAAE,SAAS,EAAE,gBAAgB,EAAE,CAAC;IAEtD,cAAc,GAAG,QAAQ,CAAC,MACzB,EAAE,CACD,YAAY,CAAC;AACZ,QAAA,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE;AACvB,QAAA,IAAI,EAAE,IAAI,C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