@tectra-ng/ui 0.1.2 → 0.1.4
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/README.md +36 -19
- package/accordion/README.md +61 -0
- package/analog-clock/README.md +31 -0
- package/breadcrumb/README.md +57 -0
- package/countdown/README.md +45 -0
- package/datepicker/README.md +109 -0
- package/export/README.md +79 -0
- package/export-font/OFL.txt +93 -0
- package/export-font/README.md +7 -0
- package/fesm2022/tectra-ng-ui-accordion.mjs +980 -0
- package/fesm2022/tectra-ng-ui-accordion.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-analog-clock.mjs +386 -0
- package/fesm2022/tectra-ng-ui-analog-clock.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-autocomplete.mjs +2 -2
- package/fesm2022/tectra-ng-ui-autocomplete.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-breadcrumb.mjs +382 -0
- package/fesm2022/tectra-ng-ui-breadcrumb.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-cascade-select.mjs +2 -2
- package/fesm2022/tectra-ng-ui-cascade-select.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-chips-input.mjs +2 -2
- package/fesm2022/tectra-ng-ui-chips-input.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-color-picker.mjs +2 -2
- package/fesm2022/tectra-ng-ui-color-picker.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-countdown.mjs +513 -0
- package/fesm2022/tectra-ng-ui-countdown.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-datepicker.mjs +2640 -0
- package/fesm2022/tectra-ng-ui-datepicker.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-export-font.mjs +7 -0
- package/fesm2022/tectra-ng-ui-export-font.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-export.mjs +2574 -0
- package/fesm2022/tectra-ng-ui-export.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-field.mjs +1 -1
- package/fesm2022/tectra-ng-ui-field.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-file-upload.mjs +1452 -0
- package/fesm2022/tectra-ng-ui-file-upload.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-input-group.mjs +2 -2
- package/fesm2022/tectra-ng-ui-input-group.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-input.mjs +2 -2
- package/fesm2022/tectra-ng-ui-input.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-label.mjs +4 -4
- package/fesm2022/tectra-ng-ui-label.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-listbox.mjs +2 -2
- package/fesm2022/tectra-ng-ui-listbox.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-menubar.mjs +742 -0
- package/fesm2022/tectra-ng-ui-menubar.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-month-calendar.mjs +601 -0
- package/fesm2022/tectra-ng-ui-month-calendar.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-multiselect.mjs +2 -2
- package/fesm2022/tectra-ng-ui-multiselect.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-panel-menu.mjs +610 -0
- package/fesm2022/tectra-ng-ui-panel-menu.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-scroll-panel.mjs +319 -0
- package/fesm2022/tectra-ng-ui-scroll-panel.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-select.mjs +2 -2
- package/fesm2022/tectra-ng-ui-select.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-sparkline.mjs +240 -0
- package/fesm2022/tectra-ng-ui-sparkline.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-splitter.mjs +750 -0
- package/fesm2022/tectra-ng-ui-splitter.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-stat-tiles.mjs +661 -0
- package/fesm2022/tectra-ng-ui-stat-tiles.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-stepper.mjs +1166 -0
- package/fesm2022/tectra-ng-ui-stepper.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-table.mjs +195 -71
- package/fesm2022/tectra-ng-ui-table.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-tabs.mjs +1218 -0
- package/fesm2022/tectra-ng-ui-tabs.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-textarea.mjs +4 -1
- package/fesm2022/tectra-ng-ui-textarea.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-timeline.mjs +407 -0
- package/fesm2022/tectra-ng-ui-timeline.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-toolbar.mjs +348 -0
- package/fesm2022/tectra-ng-ui-toolbar.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-tree-select.mjs +2 -2
- package/fesm2022/tectra-ng-ui-tree-select.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-tree-table.mjs +80 -2
- package/fesm2022/tectra-ng-ui-tree-table.mjs.map +1 -1
- package/field/README.md +1 -1
- package/file-upload/README.md +85 -0
- package/menubar/README.md +51 -0
- package/month-calendar/README.md +46 -0
- package/package.json +80 -4
- package/panel-menu/README.md +45 -0
- package/scroll-panel/README.md +35 -0
- package/sparkline/README.md +27 -0
- package/splitter/README.md +62 -0
- package/stat-tiles/README.md +53 -0
- package/stepper/README.md +66 -0
- package/table/README.md +1 -1
- package/tabs/README.md +69 -0
- package/timeline/README.md +42 -0
- package/toolbar/README.md +35 -0
- package/types/tectra-ng-ui-accordion.d.ts +304 -0
- package/types/tectra-ng-ui-accordion.d.ts.map +1 -0
- package/types/tectra-ng-ui-analog-clock.d.ts +127 -0
- package/types/tectra-ng-ui-analog-clock.d.ts.map +1 -0
- package/types/tectra-ng-ui-breadcrumb.d.ts +157 -0
- package/types/tectra-ng-ui-breadcrumb.d.ts.map +1 -0
- package/types/tectra-ng-ui-countdown.d.ts +150 -0
- package/types/tectra-ng-ui-countdown.d.ts.map +1 -0
- package/types/tectra-ng-ui-datepicker.d.ts +801 -0
- package/types/tectra-ng-ui-datepicker.d.ts.map +1 -0
- package/types/tectra-ng-ui-export-font.d.ts +5 -0
- package/types/tectra-ng-ui-export-font.d.ts.map +1 -0
- package/types/tectra-ng-ui-export.d.ts +427 -0
- package/types/tectra-ng-ui-export.d.ts.map +1 -0
- package/types/tectra-ng-ui-file-upload.d.ts +527 -0
- package/types/tectra-ng-ui-file-upload.d.ts.map +1 -0
- package/types/tectra-ng-ui-menubar.d.ts +201 -0
- package/types/tectra-ng-ui-menubar.d.ts.map +1 -0
- package/types/tectra-ng-ui-month-calendar.d.ts +287 -0
- package/types/tectra-ng-ui-month-calendar.d.ts.map +1 -0
- package/types/tectra-ng-ui-panel-menu.d.ts +244 -0
- package/types/tectra-ng-ui-panel-menu.d.ts.map +1 -0
- package/types/tectra-ng-ui-scroll-panel.d.ts +94 -0
- package/types/tectra-ng-ui-scroll-panel.d.ts.map +1 -0
- package/types/tectra-ng-ui-sparkline.d.ts +80 -0
- package/types/tectra-ng-ui-sparkline.d.ts.map +1 -0
- package/types/tectra-ng-ui-splitter.d.ts +226 -0
- package/types/tectra-ng-ui-splitter.d.ts.map +1 -0
- package/types/tectra-ng-ui-stat-tiles.d.ts +287 -0
- package/types/tectra-ng-ui-stat-tiles.d.ts.map +1 -0
- package/types/tectra-ng-ui-stepper.d.ts +446 -0
- package/types/tectra-ng-ui-stepper.d.ts.map +1 -0
- package/types/tectra-ng-ui-table.d.ts +2 -4
- package/types/tectra-ng-ui-table.d.ts.map +1 -1
- package/types/tectra-ng-ui-tabs.d.ts +420 -0
- package/types/tectra-ng-ui-tabs.d.ts.map +1 -0
- package/types/tectra-ng-ui-textarea.d.ts +1 -0
- package/types/tectra-ng-ui-textarea.d.ts.map +1 -1
- package/types/tectra-ng-ui-timeline.d.ts +129 -0
- package/types/tectra-ng-ui-timeline.d.ts.map +1 -0
- package/types/tectra-ng-ui-toolbar.d.ts +85 -0
- package/types/tectra-ng-ui-toolbar.d.ts.map +1 -0
- package/types/tectra-ng-ui-tree-table.d.ts.map +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tectra-ng-ui-accordion.mjs","names":[],"sources":["../../../../packages/ui/accordion/src/accordion.templates.ts","../../../../packages/ui/accordion/src/accordion.context.ts","../../../../packages/ui/accordion/src/accordion-content.component.ts","../../../../packages/ui/accordion/src/accordion-header.component.ts","../../../../packages/ui/accordion/src/accordion-panel.component.ts","../../../../packages/ui/accordion/src/accordion.component.ts","../../../../packages/ui/accordion/src/accordion.component.html"],"sourcesContent":["import { Directive, TemplateRef, inject } from '@angular/core';\nimport { TxAccordionItemContext, TxAccordionToggleIconContext } from './accordion.types';\n\n@Directive({ selector: 'ng-template[txAccordionHeader]' })\nexport class TxAccordionHeaderTemplate {\n readonly template = inject<TemplateRef<TxAccordionItemContext>>(TemplateRef);\n\n static ngTemplateContextGuard(_directive: TxAccordionHeaderTemplate, context: unknown): context is TxAccordionItemContext {\n return !!context;\n }\n}\n\n@Directive({ selector: 'ng-template[txAccordionContent]' })\nexport class TxAccordionContentTemplate {\n readonly template = inject<TemplateRef<TxAccordionItemContext>>(TemplateRef);\n\n static ngTemplateContextGuard(_directive: TxAccordionContentTemplate, context: unknown): context is TxAccordionItemContext {\n return !!context;\n }\n}\n\n@Directive({ selector: 'ng-template[txAccordionToggleIcon]' })\nexport class TxAccordionToggleIconTemplate {\n readonly template = inject<TemplateRef<TxAccordionToggleIconContext>>(TemplateRef);\n\n static ngTemplateContextGuard(_directive: TxAccordionToggleIconTemplate, context: unknown): context is TxAccordionToggleIconContext {\n return !!context;\n }\n}\n","import { InjectionToken, Signal, TemplateRef } from '@angular/core';\nimport { TxResolvedPassThrough } from '@tectra-ng/core/config';\nimport { TxAccordionIcon, TxAccordionItem, TxAccordionPanelValue, TxAccordionPart, TxAccordionToggleIconContext } from './accordion.types';\n\nexport interface TxAccordionContext {\n readonly element: HTMLElement;\n focusSelectPending: boolean;\n readonly isUnstyled: Signal<boolean>;\n readonly passThrough: Signal<TxResolvedPassThrough<TxAccordionPart>>;\n readonly expandIcon: Signal<TxAccordionIcon | undefined>;\n readonly collapseIcon: Signal<TxAccordionIcon | undefined>;\n readonly selectOnFocus: Signal<boolean>;\n readonly toggleIconTemplate: Signal<TemplateRef<TxAccordionToggleIconContext> | undefined>;\n isActive(value: TxAccordionPanelValue): boolean;\n toggle(value: TxAccordionPanelValue, panel: HTMLElement, item?: TxAccordionItem): void;\n open(value: TxAccordionPanelValue, panel: HTMLElement, item?: TxAccordionItem): void;\n}\n\nexport interface TxAccordionPanelContext {\n readonly value: Signal<TxAccordionPanelValue>;\n readonly active: Signal<boolean>;\n readonly disabled: Signal<boolean>;\n readonly item: Signal<TxAccordionItem | undefined>;\n readonly headerId: string;\n readonly contentId: string;\n toggle(): void;\n open(): void;\n}\n\nexport const TX_ACCORDION = new InjectionToken<TxAccordionContext>('TX_ACCORDION');\nexport const TX_ACCORDION_PANEL = new InjectionToken<TxAccordionPanelContext>('TX_ACCORDION_PANEL');\n","import { ChangeDetectionStrategy, Component, computed, contentChild, inject, linkedSignal } from '@angular/core';\nimport { NgTemplateOutlet } from '@angular/common';\nimport { TX_ACCORDION, TX_ACCORDION_PANEL } from './accordion.context';\nimport { TxAccordionContentTemplate } from './accordion.templates';\n\n@Component({\n selector: 'tx-accordion-content',\n imports: [NgTemplateOutlet],\n template: `\n <div class=\"tx-accordion-content__wrapper\">\n <div class=\"tx-accordion-content__inner\" [class]=\"accordion.passThrough().contentInner?.class\" [style]=\"accordion.passThrough().contentInner?.style\">\n <ng-content />\n @if (lazyContent(); as content) {\n @if (rendered()) {\n <ng-container *ngTemplateOutlet=\"content.template; context: templateContext()\" />\n }\n }\n </div>\n </div>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-accordion-content',\n role: 'region',\n '[class]': 'accordion.passThrough().content?.class',\n '[style]': 'accordion.passThrough().content?.style',\n '[id]': 'panel.contentId',\n '[attr.aria-labelledby]': 'panel.headerId',\n '[attr.inert]': 'panel.active() ? null : \"\"',\n },\n})\nexport class TxAccordionContent {\n protected readonly accordion = inject(TX_ACCORDION);\n protected readonly panel = inject(TX_ACCORDION_PANEL);\n\n protected readonly lazyContent = contentChild(TxAccordionContentTemplate);\n protected readonly rendered = linkedSignal<boolean, boolean>({\n source: () => this.panel.active(),\n computation: (active, previous) => active || (previous?.value ?? false),\n });\n protected readonly templateContext = computed(() => {\n const item = this.panel.item() ?? { header: '' };\n return { $implicit: item, item, index: -1, active: this.panel.active() };\n });\n}\n","import { ChangeDetectionStrategy, Component, computed, inject, input } from '@angular/core';\nimport { NgTemplateOutlet } from '@angular/common';\nimport { TxIcon, TxIconRegistry } from '@tectra-ng/icons';\nimport { TX_ACCORDION, TX_ACCORDION_PANEL } from './accordion.context';\n\n@Component({\n selector: 'tx-accordion-header',\n imports: [TxIcon, NgTemplateOutlet],\n template: `\n <button\n type=\"button\"\n class=\"tx-accordion-header__button\"\n [id]=\"panel.headerId\"\n [disabled]=\"panel.disabled()\"\n [attr.aria-expanded]=\"panel.active()\"\n [attr.aria-controls]=\"panel.contentId\"\n [class]=\"accordion.passThrough().header?.class\"\n [style]=\"accordion.passThrough().header?.style\"\n (click)=\"panel.toggle()\"\n (keydown)=\"onKeydown($event)\"\n (focus)=\"onFocus()\"\n >\n <span class=\"tx-accordion-header__content\" [class]=\"accordion.passThrough().headerContent?.class\" [style]=\"accordion.passThrough().headerContent?.style\"\n ><ng-content\n /></span>\n <span\n class=\"tx-accordion-header__toggle\"\n aria-hidden=\"true\"\n [class.tx-accordion-header__toggle--fixed]=\"hasCustomIcon()\"\n [class]=\"accordion.passThrough().toggleIcon?.class\"\n [style]=\"accordion.passThrough().toggleIcon?.style\"\n >\n @if (accordion.toggleIconTemplate(); as template) {\n <ng-container *ngTemplateOutlet=\"template; context: { $implicit: panel.active(), active: panel.active() }\" />\n } @else if (icon(); as icon) {\n @if (iconName(); as name) {\n <tx-icon [name]=\"name\" />\n } @else {\n <span [class]=\"icon\"></span>\n }\n }\n </span>\n </button>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-accordion-header',\n '[attr.role]': 'headingLevel() ? \"heading\" : null',\n '[attr.aria-level]': 'headingLevel() ?? null',\n },\n})\nexport class TxAccordionHeader {\n protected readonly accordion = inject(TX_ACCORDION);\n protected readonly panel = inject(TX_ACCORDION_PANEL);\n private txIconRegistry = inject(TxIconRegistry);\n\n readonly headingLevel = input<number | undefined>(undefined);\n\n protected readonly hasCustomIcon = computed(() => !!this.accordion.toggleIconTemplate() || !!this.accordion.expandIcon() || !!this.accordion.collapseIcon());\n protected readonly icon = computed(() => {\n const expand = this.accordion.expandIcon();\n const collapse = this.accordion.collapseIcon();\n if (!expand && !collapse) {\n return 'chevron-down';\n }\n return this.panel.active() ? (collapse ?? expand) : (expand ?? collapse);\n });\n protected readonly iconName = computed(() => {\n const icon = this.icon();\n return icon && this.txIconRegistry.has(icon) ? icon : null;\n });\n\n protected onKeydown(event: KeyboardEvent): void {\n const buttons = this.buttons();\n const current = buttons.indexOf(event.currentTarget as HTMLButtonElement);\n let target: HTMLButtonElement | undefined;\n switch (event.key) {\n case 'ArrowDown':\n target = buttons[(current + 1) % buttons.length];\n break;\n case 'ArrowUp':\n target = buttons[(current - 1 + buttons.length) % buttons.length];\n break;\n case 'Home':\n target = buttons[0];\n break;\n case 'End':\n target = buttons[buttons.length - 1];\n break;\n default:\n return;\n }\n event.preventDefault();\n this.accordion.focusSelectPending = this.accordion.selectOnFocus();\n target?.focus();\n this.accordion.focusSelectPending = false;\n }\n\n protected onFocus(): void {\n if (this.accordion.focusSelectPending) {\n this.accordion.focusSelectPending = false;\n this.panel.open();\n }\n }\n\n private buttons(): HTMLButtonElement[] {\n const host = this.accordion.element;\n return Array.from(host.querySelectorAll<HTMLButtonElement>('.tx-accordion-header__button')).filter(\n (button) => !button.disabled && button.closest('.tx-accordion') === host,\n );\n }\n}\n","import { ChangeDetectionStrategy, Component, ElementRef, booleanAttribute, computed, inject, input } from '@angular/core';\nimport { uniqueId } from '@tectra-ng/core/a11y';\nimport { TX_ACCORDION, TX_ACCORDION_PANEL, TxAccordionPanelContext } from './accordion.context';\nimport { TxAccordionItem, TxAccordionPanelValue, TxAccordionTone } from './accordion.types';\n\n@Component({\n selector: 'tx-accordion-panel',\n template: '<ng-content />',\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [{ provide: TX_ACCORDION_PANEL, useExisting: TxAccordionPanel }],\n host: {\n class: 'tx-accordion-panel',\n '[class]': 'accordion.passThrough().panel?.class',\n '[style]': 'accordion.passThrough().panel?.style',\n '[class.tx-accordion-panel--active]': 'active()',\n '[class.tx-accordion-panel--disabled]': 'disabled()',\n '[attr.data-tone]': 'tone() ?? null',\n '[attr.data-value]': 'value()',\n },\n})\nexport class TxAccordionPanel implements TxAccordionPanelContext {\n protected readonly accordion = inject(TX_ACCORDION);\n private element = inject<ElementRef<HTMLElement>>(ElementRef).nativeElement;\n private id = uniqueId('tx-accordion');\n\n readonly value = input.required<TxAccordionPanelValue>();\n readonly disabled = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly tone = input<TxAccordionTone | undefined>(undefined);\n readonly item = input<TxAccordionItem | undefined>(undefined);\n\n readonly headerId = `${this.id}-header`;\n readonly contentId = `${this.id}-content`;\n readonly active = computed(() => this.accordion.isActive(this.value()));\n\n toggle(): void {\n if (!this.disabled()) {\n this.accordion.toggle(this.value(), this.element, this.item());\n }\n }\n\n open(): void {\n if (!this.disabled()) {\n this.accordion.open(this.value(), this.element, this.item());\n }\n }\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n ViewEncapsulation,\n booleanAttribute,\n computed,\n contentChild,\n inject,\n input,\n model,\n output,\n} from '@angular/core';\nimport { NgTemplateOutlet } from '@angular/common';\nimport { TxPassThrough, TxPassThroughOptions, injectPassThrough, injectUnstyled } from '@tectra-ng/core/config';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\nimport { TectraAccordionTokens, TectraDeepPartial, toStyleObject } from '@tectra-ng/themes';\nimport { TxAccordionContent } from './accordion-content.component';\nimport { TxAccordionHeader } from './accordion-header.component';\nimport { TxAccordionPanel } from './accordion-panel.component';\nimport { TX_ACCORDION, TxAccordionContext } from './accordion.context';\nimport { TxAccordionContentTemplate, TxAccordionHeaderTemplate, TxAccordionToggleIconTemplate } from './accordion.templates';\nimport {\n TxAccordionIcon,\n TxAccordionItem,\n TxAccordionPanelValue,\n TxAccordionPart,\n TxAccordionToggleEvent,\n TxAccordionValue,\n} from './accordion.types';\n\n@Component({\n selector: 'tx-accordion',\n imports: [TxAccordionPanel, TxAccordionHeader, TxAccordionContent, TxAccordionContentTemplate, NgTemplateOutlet],\n templateUrl: './accordion.component.html',\n styleUrl: './accordion.component.scss',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [{ provide: TX_ACCORDION, useExisting: TxAccordion }],\n host: {\n class: 'tx-accordion',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n },\n})\nexport class TxAccordion implements TxAccordionContext {\n readonly element = inject<ElementRef<HTMLElement>>(ElementRef).nativeElement;\n focusSelectPending = false;\n\n readonly value = model<TxAccordionValue>(null);\n readonly multiple = input<boolean, unknown>(true, { transform: booleanAttribute });\n readonly items = input<TxAccordionItem[] | undefined>(undefined);\n readonly expandIcon = input<TxAccordionIcon | undefined>(undefined);\n readonly collapseIcon = input<TxAccordionIcon | undefined>(undefined);\n readonly selectOnFocus = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly dt = input<TectraDeepPartial<TectraAccordionTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxAccordionPart, TxAccordion> | undefined>(undefined);\n readonly ptOptions = input<TxPassThroughOptions | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly opened = output<TxAccordionToggleEvent>();\n readonly closed = output<TxAccordionToggleEvent>();\n\n protected readonly headerTemplate = contentChild(TxAccordionHeaderTemplate, { descendants: false });\n protected readonly contentTemplate = contentChild(TxAccordionContentTemplate, { descendants: false });\n private readonly toggleIcon = contentChild(TxAccordionToggleIconTemplate, { descendants: false });\n\n readonly toggleIconTemplate = computed(() => this.toggleIcon()?.template);\n readonly isUnstyled = injectUnstyled(this.unstyled);\n readonly passThrough = injectPassThrough('accordion', this, this.pt, this.ptOptions);\n readonly hostStyle = computed(() => ({ ...toStyleObject(this.dt(), '--tx-accordion'), ...this.passThrough().root?.style }));\n\n private readonly activeValues = computed<TxAccordionPanelValue[]>(() => {\n const value = this.value();\n if (value === null || value === undefined) {\n return [];\n }\n return Array.isArray(value) ? value : [value];\n });\n\n protected itemValue(item: TxAccordionItem, index: number): TxAccordionPanelValue {\n return item.value ?? index;\n }\n\n isActive(value: TxAccordionPanelValue): boolean {\n return this.activeValues().includes(value);\n }\n\n toggle(value: TxAccordionPanelValue, panel: HTMLElement, item?: TxAccordionItem): void {\n if (this.isActive(value)) {\n this.close(value, panel, item);\n } else {\n this.open(value, panel, item);\n }\n }\n\n open(value: TxAccordionPanelValue, panel: HTMLElement, item?: TxAccordionItem): void {\n if (this.isActive(value)) {\n return;\n }\n const previous = this.multiple() ? [] : this.activeValues();\n this.value.set(this.multiple() ? [...this.activeValues(), value] : value);\n for (const closedValue of previous) {\n const closedPanel = this.panelElement(closedValue);\n this.closed.emit({ value: closedValue, index: this.indexOf(closedPanel), item: this.itemOf(closedValue) });\n }\n this.opened.emit({ value, index: this.indexOf(panel), item });\n }\n\n private close(value: TxAccordionPanelValue, panel: HTMLElement, item?: TxAccordionItem): void {\n this.value.set(this.multiple() ? this.activeValues().filter((active) => active !== value) : null);\n this.closed.emit({ value, index: this.indexOf(panel), item });\n }\n\n private panels(): HTMLElement[] {\n return Array.from(this.element.children).filter((child): child is HTMLElement => child.classList.contains('tx-accordion-panel'));\n }\n\n private panelElement(value: TxAccordionPanelValue): HTMLElement | undefined {\n return this.panels().find((panel) => panel.dataset['value'] === String(value));\n }\n\n private indexOf(panel: HTMLElement | undefined): number {\n return panel ? this.panels().indexOf(panel) : -1;\n }\n\n private itemOf(value: TxAccordionPanelValue): TxAccordionItem | undefined {\n return this.items()?.find((item, index) => this.itemValue(item, index) === value);\n }\n}\n","@if (items(); as items) {\n @for (item of items; track $index; let index = $index) {\n <tx-accordion-panel [value]=\"itemValue(item, index)\" [disabled]=\"item.disabled ?? false\" [tone]=\"item.tone\" [item]=\"item\">\n <tx-accordion-header>\n @if (headerTemplate(); as header) {\n <ng-container\n *ngTemplateOutlet=\"header.template; context: { $implicit: item, item: item, index: index, active: isActive(itemValue(item, index)) }\"\n />\n } @else {\n {{ item.header }}\n }\n </tx-accordion-header>\n <tx-accordion-content>\n @if (contentTemplate(); as content) {\n <ng-template txAccordionContent>\n <ng-container\n *ngTemplateOutlet=\"content.template; context: { $implicit: item, item: item, index: index, active: isActive(itemValue(item, index)) }\"\n />\n </ng-template>\n } @else {\n {{ item.content }}\n }\n </tx-accordion-content>\n </tx-accordion-panel>\n }\n}\n<ng-content />\n"],"mappings":";;;;;;;;AAIA,IAAa,4BAAb,MAAa,0BAAyB;CAC3B,WAAW,OAA4C,WAAW;CAE3E,OAAO,uBAAuB,YAAuC,SAAgB;EACnF,OAAO,CAAC,CAAC;CACX;CALW,OAAA,OAAA,GAAA,mBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,UAAA;EAAA,MAAA;EAAyB,MAAA,CAAA;EAAA,QAAA,GAAA,gBAAA;CAAA,CAAA;CAAzB,OAAA,OAAA,GAAA,qBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,MAAA;EAAyB,cAAA;EAAA,UAAA;EAAA,UAAA;CAAA,CAAA;;AAAzB,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAyB,YAAA,CAAA;EADrC,MAAA;EAAU,MAAA,CAAA,EAAE,UAAU,iCAAgC,CAAE;;;AAUzD,IAAa,6BAAb,MAAa,2BAA0B;CAC5B,WAAW,OAA4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AA;GAAA,MAAA,CAAA,GAAA,iBAChD,0BAA0B,GAAA;IAAI,aAAa;IAAO,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,YAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,GAAA,iBACzD,6BAA6B,GAAA;IAAI,aAAa;IAAO,UAAA;GAAA,CAAA;EAAA,CAAA;CAAA;AAAA,CAAA"}
|
|
@@ -0,0 +1,386 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import { ChangeDetectionStrategy, Component, DestroyRef, Pipe, booleanAttribute, computed, effect, inject, input, linkedSignal, signal } from "@angular/core";
|
|
3
|
+
import { injectPassThrough, injectUnstyled } from "@tectra-ng/core/config";
|
|
4
|
+
import { optionalBoolean } from "@tectra-ng/core/utils";
|
|
5
|
+
import { toStyleObject } from "@tectra-ng/themes";
|
|
6
|
+
function validTimeZone(timezone) {
|
|
7
|
+
if (!timezone) return void 0;
|
|
8
|
+
try {
|
|
9
|
+
new Intl.DateTimeFormat("en-GB", { timeZone: timezone });
|
|
10
|
+
return timezone;
|
|
11
|
+
} catch {
|
|
12
|
+
return;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
function clockHands(now, timezone) {
|
|
16
|
+
const parts = Object.fromEntries(new Intl.DateTimeFormat("en-GB", {
|
|
17
|
+
hour: "2-digit",
|
|
18
|
+
minute: "2-digit",
|
|
19
|
+
second: "2-digit",
|
|
20
|
+
hourCycle: "h23",
|
|
21
|
+
timeZone: validTimeZone(timezone)
|
|
22
|
+
}).formatToParts(new Date(now)).map((part) => [part.type, part.value]));
|
|
23
|
+
const hours = Number(parts["hour"]);
|
|
24
|
+
const minutes = Number(parts["minute"]);
|
|
25
|
+
const seconds = Number(parts["second"]);
|
|
26
|
+
return {
|
|
27
|
+
time: `${String(hours).padStart(2, "0")}:${String(minutes).padStart(2, "0")}`,
|
|
28
|
+
hourAngle: (hours % 12 + minutes / 60) * 30,
|
|
29
|
+
minuteAngle: minutes * 6,
|
|
30
|
+
secondAngle: seconds * 6
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
function forwardAngle(previous, next) {
|
|
34
|
+
if (previous === null) return next;
|
|
35
|
+
let angle = Math.floor(previous / 360) * 360 + next;
|
|
36
|
+
if (angle < previous - .001) angle += 360;
|
|
37
|
+
return angle;
|
|
38
|
+
}
|
|
39
|
+
var TxAnalogClockHandsPipe = class TxAnalogClockHandsPipe {
|
|
40
|
+
transform(now, timezone = null) {
|
|
41
|
+
return clockHands(now, timezone);
|
|
42
|
+
}
|
|
43
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
44
|
+
minVersion: "12.0.0",
|
|
45
|
+
version: "22.2.3",
|
|
46
|
+
ngImport: i0,
|
|
47
|
+
type: TxAnalogClockHandsPipe,
|
|
48
|
+
deps: [],
|
|
49
|
+
target: i0.ɵɵFactoryTarget.Pipe
|
|
50
|
+
});
|
|
51
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({
|
|
52
|
+
minVersion: "14.0.0",
|
|
53
|
+
version: "22.2.3",
|
|
54
|
+
ngImport: i0,
|
|
55
|
+
type: TxAnalogClockHandsPipe,
|
|
56
|
+
isStandalone: true,
|
|
57
|
+
name: "txAnalogClockHands"
|
|
58
|
+
});
|
|
59
|
+
};
|
|
60
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
61
|
+
minVersion: "12.0.0",
|
|
62
|
+
version: "22.2.3",
|
|
63
|
+
ngImport: i0,
|
|
64
|
+
type: TxAnalogClockHandsPipe,
|
|
65
|
+
decorators: [{
|
|
66
|
+
type: Pipe,
|
|
67
|
+
args: [{ name: "txAnalogClockHands" }]
|
|
68
|
+
}]
|
|
69
|
+
});
|
|
70
|
+
var TxAnalogClock = class TxAnalogClock {
|
|
71
|
+
timezone = input(void 0, ...ngDevMode ? [{ debugName: "timezone" }] : /* istanbul ignore next */ []);
|
|
72
|
+
time = input(void 0, ...ngDevMode ? [{ debugName: "time" }] : /* istanbul ignore next */ []);
|
|
73
|
+
showSeconds = input(false, {
|
|
74
|
+
...ngDevMode ? { debugName: "showSeconds" } : /* istanbul ignore next */ {},
|
|
75
|
+
transform: booleanAttribute
|
|
76
|
+
});
|
|
77
|
+
ariaLabel = input(void 0, ...ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []);
|
|
78
|
+
dt = input(void 0, ...ngDevMode ? [{ debugName: "dt" }] : /* istanbul ignore next */ []);
|
|
79
|
+
pt = input(void 0, ...ngDevMode ? [{ debugName: "pt" }] : /* istanbul ignore next */ []);
|
|
80
|
+
ptOptions = input(void 0, ...ngDevMode ? [{ debugName: "ptOptions" }] : /* istanbul ignore next */ []);
|
|
81
|
+
unstyled = input(void 0, {
|
|
82
|
+
...ngDevMode ? { debugName: "unstyled" } : /* istanbul ignore next */ {},
|
|
83
|
+
transform: optionalBoolean
|
|
84
|
+
});
|
|
85
|
+
isUnstyled = injectUnstyled(this.unstyled);
|
|
86
|
+
passThrough = injectPassThrough("analogClock", this, this.pt, this.ptOptions);
|
|
87
|
+
hostStyle = computed(() => ({
|
|
88
|
+
...toStyleObject(this.dt(), "--tx-analog-clock"),
|
|
89
|
+
...this.passThrough().root?.style
|
|
90
|
+
}), ...ngDevMode ? [{ debugName: "hostStyle" }] : /* istanbul ignore next */ []);
|
|
91
|
+
ticks = [
|
|
92
|
+
0,
|
|
93
|
+
1,
|
|
94
|
+
2,
|
|
95
|
+
3,
|
|
96
|
+
4,
|
|
97
|
+
5,
|
|
98
|
+
6,
|
|
99
|
+
7,
|
|
100
|
+
8,
|
|
101
|
+
9,
|
|
102
|
+
10,
|
|
103
|
+
11
|
|
104
|
+
];
|
|
105
|
+
now = signal(Date.now(), ...ngDevMode ? [{ debugName: "now" }] : /* istanbul ignore next */ []);
|
|
106
|
+
timer = null;
|
|
107
|
+
hands = computed(() => clockHands(this.time() ?? this.now(), this.timezone()), ...ngDevMode ? [{ debugName: "hands" }] : /* istanbul ignore next */ []);
|
|
108
|
+
label = computed(() => this.ariaLabel() ? `${this.ariaLabel()}, ${this.hands().time}` : this.hands().time, ...ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []);
|
|
109
|
+
hourAngle = linkedSignal({
|
|
110
|
+
...ngDevMode ? { debugName: "hourAngle" } : /* istanbul ignore next */ {},
|
|
111
|
+
source: () => this.hands().hourAngle,
|
|
112
|
+
computation: (next, previous) => forwardAngle(previous?.value ?? null, next)
|
|
113
|
+
});
|
|
114
|
+
minuteAngle = linkedSignal({
|
|
115
|
+
...ngDevMode ? { debugName: "minuteAngle" } : /* istanbul ignore next */ {},
|
|
116
|
+
source: () => this.hands().minuteAngle,
|
|
117
|
+
computation: (next, previous) => forwardAngle(previous?.value ?? null, next)
|
|
118
|
+
});
|
|
119
|
+
secondAngle = linkedSignal({
|
|
120
|
+
...ngDevMode ? { debugName: "secondAngle" } : /* istanbul ignore next */ {},
|
|
121
|
+
source: () => this.hands().secondAngle,
|
|
122
|
+
computation: (next, previous) => forwardAngle(previous?.value ?? null, next)
|
|
123
|
+
});
|
|
124
|
+
schedule = effect((onCleanup) => {
|
|
125
|
+
this.now();
|
|
126
|
+
if (this.time() !== void 0 && this.time() !== null) return;
|
|
127
|
+
const step = this.showSeconds() ? 1e3 : 6e4;
|
|
128
|
+
this.timer = setTimeout(() => this.now.set(Date.now()), step - Date.now() % step + 5);
|
|
129
|
+
onCleanup(() => {
|
|
130
|
+
if (this.timer) clearTimeout(this.timer);
|
|
131
|
+
});
|
|
132
|
+
}, ...ngDevMode ? [{ debugName: "schedule" }] : /* istanbul ignore next */ []);
|
|
133
|
+
cleanup = inject(DestroyRef).onDestroy(() => {
|
|
134
|
+
if (this.timer) clearTimeout(this.timer);
|
|
135
|
+
});
|
|
136
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
137
|
+
minVersion: "12.0.0",
|
|
138
|
+
version: "22.2.3",
|
|
139
|
+
ngImport: i0,
|
|
140
|
+
type: TxAnalogClock,
|
|
141
|
+
deps: [],
|
|
142
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
143
|
+
});
|
|
144
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
145
|
+
minVersion: "17.0.0",
|
|
146
|
+
version: "22.2.3",
|
|
147
|
+
type: TxAnalogClock,
|
|
148
|
+
isStandalone: true,
|
|
149
|
+
selector: "tx-analog-clock",
|
|
150
|
+
inputs: {
|
|
151
|
+
timezone: {
|
|
152
|
+
classPropertyName: "timezone",
|
|
153
|
+
publicName: "timezone",
|
|
154
|
+
isSignal: true,
|
|
155
|
+
isRequired: false,
|
|
156
|
+
transformFunction: null
|
|
157
|
+
},
|
|
158
|
+
time: {
|
|
159
|
+
classPropertyName: "time",
|
|
160
|
+
publicName: "time",
|
|
161
|
+
isSignal: true,
|
|
162
|
+
isRequired: false,
|
|
163
|
+
transformFunction: null
|
|
164
|
+
},
|
|
165
|
+
showSeconds: {
|
|
166
|
+
classPropertyName: "showSeconds",
|
|
167
|
+
publicName: "showSeconds",
|
|
168
|
+
isSignal: true,
|
|
169
|
+
isRequired: false,
|
|
170
|
+
transformFunction: null
|
|
171
|
+
},
|
|
172
|
+
ariaLabel: {
|
|
173
|
+
classPropertyName: "ariaLabel",
|
|
174
|
+
publicName: "ariaLabel",
|
|
175
|
+
isSignal: true,
|
|
176
|
+
isRequired: false,
|
|
177
|
+
transformFunction: null
|
|
178
|
+
},
|
|
179
|
+
dt: {
|
|
180
|
+
classPropertyName: "dt",
|
|
181
|
+
publicName: "dt",
|
|
182
|
+
isSignal: true,
|
|
183
|
+
isRequired: false,
|
|
184
|
+
transformFunction: null
|
|
185
|
+
},
|
|
186
|
+
pt: {
|
|
187
|
+
classPropertyName: "pt",
|
|
188
|
+
publicName: "pt",
|
|
189
|
+
isSignal: true,
|
|
190
|
+
isRequired: false,
|
|
191
|
+
transformFunction: null
|
|
192
|
+
},
|
|
193
|
+
ptOptions: {
|
|
194
|
+
classPropertyName: "ptOptions",
|
|
195
|
+
publicName: "ptOptions",
|
|
196
|
+
isSignal: true,
|
|
197
|
+
isRequired: false,
|
|
198
|
+
transformFunction: null
|
|
199
|
+
},
|
|
200
|
+
unstyled: {
|
|
201
|
+
classPropertyName: "unstyled",
|
|
202
|
+
publicName: "unstyled",
|
|
203
|
+
isSignal: true,
|
|
204
|
+
isRequired: false,
|
|
205
|
+
transformFunction: null
|
|
206
|
+
}
|
|
207
|
+
},
|
|
208
|
+
host: {
|
|
209
|
+
properties: {
|
|
210
|
+
"class": "passThrough().root?.class",
|
|
211
|
+
"style": "hostStyle()",
|
|
212
|
+
"attr.data-styled": "!isUnstyled() || null"
|
|
213
|
+
},
|
|
214
|
+
classAttribute: "tx-analog-clock"
|
|
215
|
+
},
|
|
216
|
+
ngImport: i0,
|
|
217
|
+
template: `
|
|
218
|
+
<div class="tx-analog-clock__face" role="img" [attr.aria-label]="label()" [class]="passThrough().face?.class" [style]="passThrough().face?.style">
|
|
219
|
+
@for (tick of ticks; track tick) {
|
|
220
|
+
<span
|
|
221
|
+
class="tx-analog-clock__tick"
|
|
222
|
+
aria-hidden="true"
|
|
223
|
+
[class.tx-analog-clock__tick--major]="tick % 3 === 0"
|
|
224
|
+
[style.--tx-analog-clock-angle]="tick * 30 + 'deg'"
|
|
225
|
+
[class]="passThrough().tick?.class"
|
|
226
|
+
[style]="passThrough().tick?.style"
|
|
227
|
+
></span>
|
|
228
|
+
}
|
|
229
|
+
<span
|
|
230
|
+
class="tx-analog-clock__hand tx-analog-clock__hand--hour"
|
|
231
|
+
aria-hidden="true"
|
|
232
|
+
[style.--tx-analog-clock-angle]="hourAngle() + 'deg'"
|
|
233
|
+
[class]="passThrough().hourHand?.class"
|
|
234
|
+
[style]="passThrough().hourHand?.style"
|
|
235
|
+
></span>
|
|
236
|
+
<span
|
|
237
|
+
class="tx-analog-clock__hand tx-analog-clock__hand--minute"
|
|
238
|
+
aria-hidden="true"
|
|
239
|
+
[style.--tx-analog-clock-angle]="minuteAngle() + 'deg'"
|
|
240
|
+
[class]="passThrough().minuteHand?.class"
|
|
241
|
+
[style]="passThrough().minuteHand?.style"
|
|
242
|
+
></span>
|
|
243
|
+
@if (showSeconds()) {
|
|
244
|
+
<span
|
|
245
|
+
class="tx-analog-clock__hand tx-analog-clock__hand--second"
|
|
246
|
+
aria-hidden="true"
|
|
247
|
+
[style.--tx-analog-clock-angle]="secondAngle() + 'deg'"
|
|
248
|
+
[class]="passThrough().secondHand?.class"
|
|
249
|
+
[style]="passThrough().secondHand?.style"
|
|
250
|
+
></span>
|
|
251
|
+
}
|
|
252
|
+
<span class="tx-analog-clock__pin" aria-hidden="true" [class]="passThrough().pin?.class" [style]="passThrough().pin?.style"></span>
|
|
253
|
+
</div>
|
|
254
|
+
`,
|
|
255
|
+
isInline: true,
|
|
256
|
+
styles: [":host{display:block}.tx-analog-clock__face{position:relative;box-sizing:border-box;width:100%;height:100%;border-radius:50%}.tx-analog-clock__tick,.tx-analog-clock__hand,.tx-analog-clock__pin{position:absolute;left:50%;border-radius:9999px}:host([data-styled]){width:var(--tx-analog-clock-size);height:var(--tx-analog-clock-size)}:host([data-styled]) .tx-analog-clock__face{background:var(--tx-analog-clock-background);box-shadow:0 0 0 1px var(--tx-analog-clock-border-color),var(--tx-analog-clock-shadow)}:host([data-styled]) .tx-analog-clock__tick{top:50%;width:var(--tx-analog-clock-tick-width);height:var(--tx-analog-clock-tick-height);margin-top:calc(var(--tx-analog-clock-tick-height) / -2);margin-left:calc(var(--tx-analog-clock-tick-width) / -2);background:var(--tx-analog-clock-tick-color);transform:rotate(var(--tx-analog-clock-angle)) translateY(var(--tx-analog-clock-tick-offset))}:host([data-styled]) .tx-analog-clock__tick--major{height:var(--tx-analog-clock-tick-major-height);margin-top:calc(var(--tx-analog-clock-tick-major-height) / -2);background:var(--tx-analog-clock-tick-major-color);transform:rotate(var(--tx-analog-clock-angle)) translateY(var(--tx-analog-clock-tick-major-offset))}:host([data-styled]) .tx-analog-clock__hand{bottom:50%;transform-origin:bottom;rotate:var(--tx-analog-clock-angle);transition:rotate var(--tx-analog-clock-transition-duration) var(--tx-analog-clock-transition-easing)}:host([data-styled]) .tx-analog-clock__hand--hour{width:var(--tx-analog-clock-hour-hand-width);height:var(--tx-analog-clock-hour-hand-length);margin-left:calc(var(--tx-analog-clock-hour-hand-width) / -2);background:var(--tx-analog-clock-hour-hand-color)}:host([data-styled]) .tx-analog-clock__hand--minute{width:var(--tx-analog-clock-minute-hand-width);height:var(--tx-analog-clock-minute-hand-length);margin-left:calc(var(--tx-analog-clock-minute-hand-width) / -2);background:var(--tx-analog-clock-minute-hand-color)}:host([data-styled]) .tx-analog-clock__hand--second{width:var(--tx-analog-clock-second-hand-width);height:var(--tx-analog-clock-second-hand-length);margin-left:calc(var(--tx-analog-clock-second-hand-width) / -2);background:var(--tx-analog-clock-second-hand-color)}:host([data-styled]) .tx-analog-clock__pin{top:50%;width:var(--tx-analog-clock-pin-size);height:var(--tx-analog-clock-pin-size);background:var(--tx-analog-clock-pin-color);box-shadow:0 0 0 var(--tx-analog-clock-pin-ring-width) var(--tx-analog-clock-pin-ring-color);transform:translate(-50%,-50%)}@media(prefers-reduced-motion:reduce){:host([data-styled]) .tx-analog-clock__hand{transition:none}}\n"],
|
|
257
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
258
|
+
});
|
|
259
|
+
};
|
|
260
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
261
|
+
minVersion: "12.0.0",
|
|
262
|
+
version: "22.2.3",
|
|
263
|
+
ngImport: i0,
|
|
264
|
+
type: TxAnalogClock,
|
|
265
|
+
decorators: [{
|
|
266
|
+
type: Component,
|
|
267
|
+
args: [{
|
|
268
|
+
selector: "tx-analog-clock",
|
|
269
|
+
template: `
|
|
270
|
+
<div class="tx-analog-clock__face" role="img" [attr.aria-label]="label()" [class]="passThrough().face?.class" [style]="passThrough().face?.style">
|
|
271
|
+
@for (tick of ticks; track tick) {
|
|
272
|
+
<span
|
|
273
|
+
class="tx-analog-clock__tick"
|
|
274
|
+
aria-hidden="true"
|
|
275
|
+
[class.tx-analog-clock__tick--major]="tick % 3 === 0"
|
|
276
|
+
[style.--tx-analog-clock-angle]="tick * 30 + 'deg'"
|
|
277
|
+
[class]="passThrough().tick?.class"
|
|
278
|
+
[style]="passThrough().tick?.style"
|
|
279
|
+
></span>
|
|
280
|
+
}
|
|
281
|
+
<span
|
|
282
|
+
class="tx-analog-clock__hand tx-analog-clock__hand--hour"
|
|
283
|
+
aria-hidden="true"
|
|
284
|
+
[style.--tx-analog-clock-angle]="hourAngle() + 'deg'"
|
|
285
|
+
[class]="passThrough().hourHand?.class"
|
|
286
|
+
[style]="passThrough().hourHand?.style"
|
|
287
|
+
></span>
|
|
288
|
+
<span
|
|
289
|
+
class="tx-analog-clock__hand tx-analog-clock__hand--minute"
|
|
290
|
+
aria-hidden="true"
|
|
291
|
+
[style.--tx-analog-clock-angle]="minuteAngle() + 'deg'"
|
|
292
|
+
[class]="passThrough().minuteHand?.class"
|
|
293
|
+
[style]="passThrough().minuteHand?.style"
|
|
294
|
+
></span>
|
|
295
|
+
@if (showSeconds()) {
|
|
296
|
+
<span
|
|
297
|
+
class="tx-analog-clock__hand tx-analog-clock__hand--second"
|
|
298
|
+
aria-hidden="true"
|
|
299
|
+
[style.--tx-analog-clock-angle]="secondAngle() + 'deg'"
|
|
300
|
+
[class]="passThrough().secondHand?.class"
|
|
301
|
+
[style]="passThrough().secondHand?.style"
|
|
302
|
+
></span>
|
|
303
|
+
}
|
|
304
|
+
<span class="tx-analog-clock__pin" aria-hidden="true" [class]="passThrough().pin?.class" [style]="passThrough().pin?.style"></span>
|
|
305
|
+
</div>
|
|
306
|
+
`,
|
|
307
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
308
|
+
host: {
|
|
309
|
+
class: "tx-analog-clock",
|
|
310
|
+
"[class]": "passThrough().root?.class",
|
|
311
|
+
"[style]": "hostStyle()",
|
|
312
|
+
"[attr.data-styled]": "!isUnstyled() || null"
|
|
313
|
+
},
|
|
314
|
+
styles: [":host{display:block}.tx-analog-clock__face{position:relative;box-sizing:border-box;width:100%;height:100%;border-radius:50%}.tx-analog-clock__tick,.tx-analog-clock__hand,.tx-analog-clock__pin{position:absolute;left:50%;border-radius:9999px}:host([data-styled]){width:var(--tx-analog-clock-size);height:var(--tx-analog-clock-size)}:host([data-styled]) .tx-analog-clock__face{background:var(--tx-analog-clock-background);box-shadow:0 0 0 1px var(--tx-analog-clock-border-color),var(--tx-analog-clock-shadow)}:host([data-styled]) .tx-analog-clock__tick{top:50%;width:var(--tx-analog-clock-tick-width);height:var(--tx-analog-clock-tick-height);margin-top:calc(var(--tx-analog-clock-tick-height) / -2);margin-left:calc(var(--tx-analog-clock-tick-width) / -2);background:var(--tx-analog-clock-tick-color);transform:rotate(var(--tx-analog-clock-angle)) translateY(var(--tx-analog-clock-tick-offset))}:host([data-styled]) .tx-analog-clock__tick--major{height:var(--tx-analog-clock-tick-major-height);margin-top:calc(var(--tx-analog-clock-tick-major-height) / -2);background:var(--tx-analog-clock-tick-major-color);transform:rotate(var(--tx-analog-clock-angle)) translateY(var(--tx-analog-clock-tick-major-offset))}:host([data-styled]) .tx-analog-clock__hand{bottom:50%;transform-origin:bottom;rotate:var(--tx-analog-clock-angle);transition:rotate var(--tx-analog-clock-transition-duration) var(--tx-analog-clock-transition-easing)}:host([data-styled]) .tx-analog-clock__hand--hour{width:var(--tx-analog-clock-hour-hand-width);height:var(--tx-analog-clock-hour-hand-length);margin-left:calc(var(--tx-analog-clock-hour-hand-width) / -2);background:var(--tx-analog-clock-hour-hand-color)}:host([data-styled]) .tx-analog-clock__hand--minute{width:var(--tx-analog-clock-minute-hand-width);height:var(--tx-analog-clock-minute-hand-length);margin-left:calc(var(--tx-analog-clock-minute-hand-width) / -2);background:var(--tx-analog-clock-minute-hand-color)}:host([data-styled]) .tx-analog-clock__hand--second{width:var(--tx-analog-clock-second-hand-width);height:var(--tx-analog-clock-second-hand-length);margin-left:calc(var(--tx-analog-clock-second-hand-width) / -2);background:var(--tx-analog-clock-second-hand-color)}:host([data-styled]) .tx-analog-clock__pin{top:50%;width:var(--tx-analog-clock-pin-size);height:var(--tx-analog-clock-pin-size);background:var(--tx-analog-clock-pin-color);box-shadow:0 0 0 var(--tx-analog-clock-pin-ring-width) var(--tx-analog-clock-pin-ring-color);transform:translate(-50%,-50%)}@media(prefers-reduced-motion:reduce){:host([data-styled]) .tx-analog-clock__hand{transition:none}}\n"]
|
|
315
|
+
}]
|
|
316
|
+
}],
|
|
317
|
+
propDecorators: {
|
|
318
|
+
timezone: [{
|
|
319
|
+
type: i0.Input,
|
|
320
|
+
args: [{
|
|
321
|
+
isSignal: true,
|
|
322
|
+
alias: "timezone",
|
|
323
|
+
required: false
|
|
324
|
+
}]
|
|
325
|
+
}],
|
|
326
|
+
time: [{
|
|
327
|
+
type: i0.Input,
|
|
328
|
+
args: [{
|
|
329
|
+
isSignal: true,
|
|
330
|
+
alias: "time",
|
|
331
|
+
required: false
|
|
332
|
+
}]
|
|
333
|
+
}],
|
|
334
|
+
showSeconds: [{
|
|
335
|
+
type: i0.Input,
|
|
336
|
+
args: [{
|
|
337
|
+
isSignal: true,
|
|
338
|
+
alias: "showSeconds",
|
|
339
|
+
required: false
|
|
340
|
+
}]
|
|
341
|
+
}],
|
|
342
|
+
ariaLabel: [{
|
|
343
|
+
type: i0.Input,
|
|
344
|
+
args: [{
|
|
345
|
+
isSignal: true,
|
|
346
|
+
alias: "ariaLabel",
|
|
347
|
+
required: false
|
|
348
|
+
}]
|
|
349
|
+
}],
|
|
350
|
+
dt: [{
|
|
351
|
+
type: i0.Input,
|
|
352
|
+
args: [{
|
|
353
|
+
isSignal: true,
|
|
354
|
+
alias: "dt",
|
|
355
|
+
required: false
|
|
356
|
+
}]
|
|
357
|
+
}],
|
|
358
|
+
pt: [{
|
|
359
|
+
type: i0.Input,
|
|
360
|
+
args: [{
|
|
361
|
+
isSignal: true,
|
|
362
|
+
alias: "pt",
|
|
363
|
+
required: false
|
|
364
|
+
}]
|
|
365
|
+
}],
|
|
366
|
+
ptOptions: [{
|
|
367
|
+
type: i0.Input,
|
|
368
|
+
args: [{
|
|
369
|
+
isSignal: true,
|
|
370
|
+
alias: "ptOptions",
|
|
371
|
+
required: false
|
|
372
|
+
}]
|
|
373
|
+
}],
|
|
374
|
+
unstyled: [{
|
|
375
|
+
type: i0.Input,
|
|
376
|
+
args: [{
|
|
377
|
+
isSignal: true,
|
|
378
|
+
alias: "unstyled",
|
|
379
|
+
required: false
|
|
380
|
+
}]
|
|
381
|
+
}]
|
|
382
|
+
}
|
|
383
|
+
});
|
|
384
|
+
export { TxAnalogClock, TxAnalogClockHandsPipe, clockHands, forwardAngle, validTimeZone };
|
|
385
|
+
|
|
386
|
+
//# sourceMappingURL=tectra-ng-ui-analog-clock.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tectra-ng-ui-analog-clock.mjs","names":[],"sources":["../../../../packages/ui/analog-clock/src/analog-clock.utils.ts","../../../../packages/ui/analog-clock/src/analog-clock-hands.pipe.ts","../../../../packages/ui/analog-clock/src/analog-clock.component.ts"],"sourcesContent":["import { TxAnalogClockHands } from './analog-clock.types';\n\nexport function validTimeZone(timezone: string | null | undefined): string | undefined {\n if (!timezone) return undefined;\n try {\n new Intl.DateTimeFormat('en-GB', { timeZone: timezone });\n return timezone;\n } catch {\n return undefined;\n }\n}\n\nexport function clockHands(now: number | Date, timezone: string | null | undefined): TxAnalogClockHands {\n const parts = Object.fromEntries(\n new Intl.DateTimeFormat('en-GB', { hour: '2-digit', minute: '2-digit', second: '2-digit', hourCycle: 'h23', timeZone: validTimeZone(timezone) })\n .formatToParts(new Date(now))\n .map((part) => [part.type, part.value]),\n );\n const hours = Number(parts['hour']);\n const minutes = Number(parts['minute']);\n const seconds = Number(parts['second']);\n return {\n time: `${String(hours).padStart(2, '0')}:${String(minutes).padStart(2, '0')}`,\n hourAngle: ((hours % 12) + minutes / 60) * 30,\n minuteAngle: minutes * 6,\n secondAngle: seconds * 6,\n };\n}\n\nexport function forwardAngle(previous: number | null, next: number): number {\n if (previous === null) return next;\n const turns = Math.floor(previous / 360);\n let angle = turns * 360 + next;\n if (angle < previous - 0.001) angle += 360;\n return angle;\n}\n","import { Pipe, PipeTransform } from '@angular/core';\nimport { TxAnalogClockHands } from './analog-clock.types';\nimport { clockHands } from './analog-clock.utils';\n\n@Pipe({ name: 'txAnalogClockHands' })\nexport class TxAnalogClockHandsPipe implements PipeTransform {\n transform(now: number | Date, timezone: string | null = null): TxAnalogClockHands {\n return clockHands(now, timezone);\n }\n}\n","import { ChangeDetectionStrategy, Component, DestroyRef, booleanAttribute, computed, effect, inject, input, linkedSignal, signal } from '@angular/core';\nimport { TxPassThrough, TxPassThroughOptions, injectPassThrough, injectUnstyled } from '@tectra-ng/core/config';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\nimport { TectraAnalogClockTokens, TectraDeepPartial, toStyleObject } from '@tectra-ng/themes';\nimport { TxAnalogClockPart } from './analog-clock.types';\nimport { clockHands, forwardAngle } from './analog-clock.utils';\n\n@Component({\n selector: 'tx-analog-clock',\n template: `\n <div class=\"tx-analog-clock__face\" role=\"img\" [attr.aria-label]=\"label()\" [class]=\"passThrough().face?.class\" [style]=\"passThrough().face?.style\">\n @for (tick of ticks; track tick) {\n <span\n class=\"tx-analog-clock__tick\"\n aria-hidden=\"true\"\n [class.tx-analog-clock__tick--major]=\"tick % 3 === 0\"\n [style.--tx-analog-clock-angle]=\"tick * 30 + 'deg'\"\n [class]=\"passThrough().tick?.class\"\n [style]=\"passThrough().tick?.style\"\n ></span>\n }\n <span\n class=\"tx-analog-clock__hand tx-analog-clock__hand--hour\"\n aria-hidden=\"true\"\n [style.--tx-analog-clock-angle]=\"hourAngle() + 'deg'\"\n [class]=\"passThrough().hourHand?.class\"\n [style]=\"passThrough().hourHand?.style\"\n ></span>\n <span\n class=\"tx-analog-clock__hand tx-analog-clock__hand--minute\"\n aria-hidden=\"true\"\n [style.--tx-analog-clock-angle]=\"minuteAngle() + 'deg'\"\n [class]=\"passThrough().minuteHand?.class\"\n [style]=\"passThrough().minuteHand?.style\"\n ></span>\n @if (showSeconds()) {\n <span\n class=\"tx-analog-clock__hand tx-analog-clock__hand--second\"\n aria-hidden=\"true\"\n [style.--tx-analog-clock-angle]=\"secondAngle() + 'deg'\"\n [class]=\"passThrough().secondHand?.class\"\n [style]=\"passThrough().secondHand?.style\"\n ></span>\n }\n <span class=\"tx-analog-clock__pin\" aria-hidden=\"true\" [class]=\"passThrough().pin?.class\" [style]=\"passThrough().pin?.style\"></span>\n </div>\n `,\n styleUrl: './analog-clock.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-analog-clock',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n },\n})\nexport class TxAnalogClock {\n readonly timezone = input<string | null | undefined>(undefined);\n readonly time = input<Date | number | null | undefined>(undefined);\n readonly showSeconds = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly ariaLabel = input<string | undefined>(undefined);\n readonly dt = input<TectraDeepPartial<TectraAnalogClockTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxAnalogClockPart, TxAnalogClock> | undefined>(undefined);\n readonly ptOptions = input<TxPassThroughOptions | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly isUnstyled = injectUnstyled(this.unstyled);\n readonly passThrough = injectPassThrough('analogClock', this, this.pt, this.ptOptions);\n readonly hostStyle = computed(() => ({ ...toStyleObject(this.dt(), '--tx-analog-clock'), ...this.passThrough().root?.style }));\n\n protected readonly ticks = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11];\n private readonly now = signal(Date.now());\n private timer: ReturnType<typeof setTimeout> | null = null;\n\n readonly hands = computed(() => clockHands(this.time() ?? this.now(), this.timezone()));\n readonly label = computed(() => (this.ariaLabel() ? `${this.ariaLabel()}, ${this.hands().time}` : this.hands().time));\n readonly hourAngle = linkedSignal<number, number>({ source: () => this.hands().hourAngle, computation: (next, previous) => forwardAngle(previous?.value ?? null, next) });\n readonly minuteAngle = linkedSignal<number, number>({ source: () => this.hands().minuteAngle, computation: (next, previous) => forwardAngle(previous?.value ?? null, next) });\n readonly secondAngle = linkedSignal<number, number>({ source: () => this.hands().secondAngle, computation: (next, previous) => forwardAngle(previous?.value ?? null, next) });\n\n private readonly schedule = effect((onCleanup) => {\n this.now();\n if (this.time() !== undefined && this.time() !== null) return;\n const step = this.showSeconds() ? 1000 : 60000;\n this.timer = setTimeout(() => this.now.set(Date.now()), step - (Date.now() % step) + 5);\n onCleanup(() => {\n if (this.timer) clearTimeout(this.timer);\n });\n });\n\n private readonly cleanup = inject(DestroyRef).onDestroy(() => {\n if (this.timer) clearTimeout(this.timer);\n });\n}\n"],"mappings":";;;;;AAEA,SAAgB,cAAc,UAAmC;CAC/D,IAAI,CAAC,UAAU,OAAO;CACtB,IAAI;EACF,IAAI,KAAK,eAAe,SAAS,EAAE,UAAU,SAAQ,CAAE;EACvD,OAAO;CACT,QAAQ;EACN;CACF;AACF;AAEA,SAAgB,WAAW,KAAoB,UAAmC;CAChF,MAAM,QAAQ,OAAO,YACnB,IAAI,KAAK,eAAe,SAAS;EAAE,MAAM;EAAW,QAAQ;EAAW,QAAQ;EAAW,WAAW;EAAO,UAAU,cAAc,QAAQ;CAAC,CAAE,CAAC,CAC7I,cAAc,IAAI,KAAK,GAAG,CAAC,CAAC,CAC5B,KAAK,SAAS,CAAC,KAAK,MAAM,KAAK,KAAK,CAAC,CAAC;CAE3C,MAAM,QAAQ,OAAO,MAAM,OAAO;CAClC,MAAM,UAAU,OAAO,MAAM,SAAS;CACtC,MAAM,UAAU,OAAO,MAAM,SAAS;CACtC,OAAO;EACL,MAAM,GAAG,OAAO,KAAK,CAAC,CAAC,SAAS,GAAG,GAAG,EAAC,GAAI,OAAO,OAAO,CAAC,CAAC,SAAS,GAAG,GAAG;EAC1E,YAA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