@tectra-ng/blocks 0.4.2 → 0.4.3
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/app-layout/README.md +2 -0
- package/confetti/README.md +1 -1
- package/fesm2022/tectra-ng-blocks-app-layout.mjs +2 -2
- package/fesm2022/tectra-ng-blocks-app-layout.mjs.map +1 -1
- package/fesm2022/tectra-ng-blocks-confetti.mjs +13 -3
- package/fesm2022/tectra-ng-blocks-confetti.mjs.map +1 -1
- package/fesm2022/tectra-ng-blocks-filters-panel.mjs +2 -2
- package/fesm2022/tectra-ng-blocks-filters-panel.mjs.map +1 -1
- package/fesm2022/tectra-ng-blocks-kanban.mjs +90 -10
- package/fesm2022/tectra-ng-blocks-kanban.mjs.map +1 -1
- package/fesm2022/tectra-ng-blocks-network-status.mjs +28 -7
- package/fesm2022/tectra-ng-blocks-network-status.mjs.map +1 -1
- package/fesm2022/tectra-ng-blocks-pinned-tabs.mjs +22 -1
- package/fesm2022/tectra-ng-blocks-pinned-tabs.mjs.map +1 -1
- package/fesm2022/tectra-ng-blocks-theme-configurator.mjs +11 -3
- package/fesm2022/tectra-ng-blocks-theme-configurator.mjs.map +1 -1
- package/fesm2022/tectra-ng-blocks.mjs +1 -1
- package/kanban/README.md +13 -2
- package/network-status/README.md +1 -0
- package/package.json +6 -6
- package/pinned-tabs/README.md +1 -0
- package/theme-configurator/README.md +5 -5
- package/types/tectra-ng-blocks-confetti.d.ts +3 -0
- package/types/tectra-ng-blocks-confetti.d.ts.map +1 -1
- package/types/tectra-ng-blocks-kanban.d.ts +51 -11
- package/types/tectra-ng-blocks-kanban.d.ts.map +1 -1
- package/types/tectra-ng-blocks-network-status.d.ts +7 -0
- package/types/tectra-ng-blocks-network-status.d.ts.map +1 -1
- package/types/tectra-ng-blocks-pinned-tabs.d.ts +7 -0
- package/types/tectra-ng-blocks-pinned-tabs.d.ts.map +1 -1
- package/types/tectra-ng-blocks-theme-configurator.d.ts +1 -1
- package/types/tectra-ng-blocks.d.ts +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tectra-ng-blocks-theme-configurator.mjs","names":[],"sources":["../../../../packages/blocks/theme-configurator/src/theme-configurator.theme.ts","../../../../packages/blocks/theme-configurator/src/theme-configurator.component.ts","../../../../packages/blocks/theme-configurator/src/theme-configurator.component.html"],"sourcesContent":["import { themeConfiguratorTokens } from '@tectra-ng/themes';\n\nexport const THEME_CONFIGURATOR_THEME = {\n themeConfigurator: themeConfiguratorTokens,\n};\n","import { ChangeDetectionStrategy, Component, ElementRef, booleanAttribute, computed, inject, input, numberAttribute, output, viewChildren } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { uniqueId } from '@tectra-ng/core/a11y';\nimport { injectPassThrough, injectTokens, injectUnstyled, TxPassThrough, TxPassThroughOptions, TxThemeChoice, TxThemeService } from '@tectra-ng/core/config';\nimport { injectTranslations } from '@tectra-ng/core/i18n';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\nimport {\n TectraDeepPartial,\n TectraPresetSource,\n TectraPrimary,\n TectraStyle,\n TectraSurface,\n TectraThemeConfiguratorTokens,\n tectraPrimaryChoices,\n tectraSurfaceChoices,\n toStyleObject,\n} from '@tectra-ng/themes';\nimport { TxButton } from '@tectra-ng/ui/button';\nimport { TxButtonGroup } from '@tectra-ng/ui/button-group';\nimport { TxColorSwatchOption, TxColorSwatches } from '@tectra-ng/ui/color-swatches';\nimport { TxToggleSwitch } from '@tectra-ng/ui/toggle-switch';\nimport { TxThemeConfiguratorPart } from './theme-configurator.types';\nimport { THEME_CONFIGURATOR_THEME } from './theme-configurator.theme';\n\nconst STEPS: Record<string, number> = { ArrowRight: 1, ArrowDown: 1, ArrowLeft: -1, ArrowUp: -1 };\nconst ALL_PRIMARIES = tectraPrimaryChoices();\nconst ALL_SURFACES = tectraSurfaceChoices();\n\n/** Theme settings at run time: primary color, surface palette, style and ripple, applied through `TxThemeService`. */\n@Component({\n selector: 'tx-theme-configurator',\n imports: [FormsModule, TxButton, TxButtonGroup, TxColorSwatches, TxToggleSwitch],\n templateUrl: './theme-configurator.component.html',\n styleUrl: './theme-configurator.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-theme-configurator',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n },\n})\nexport class TxThemeConfigurator {\n private readonly themeConfiguratorTheme = injectTokens(THEME_CONFIGURATOR_THEME);\n\n protected readonly theme = inject(TxThemeService);\n\n readonly styles = input<readonly TectraStyle[]>([]);\n readonly primaries = input<readonly TxColorSwatchOption<TectraPrimary>[]>(ALL_PRIMARIES);\n readonly surfaces = input<readonly TxColorSwatchOption<TectraSurface>[]>(ALL_SURFACES);\n readonly columns = input<number, unknown>(9, { transform: numberAttribute });\n readonly showRipple = input<boolean, unknown>(true, { transform: booleanAttribute });\n readonly dt = input<TectraDeepPartial<TectraThemeConfiguratorTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxThemeConfiguratorPart, TxThemeConfigurator> | undefined>(undefined);\n readonly ptOptions = input<TxPassThroughOptions | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly themeChange = output<TectraPresetSource>();\n readonly rippleChange = output<boolean>();\n\n private readonly segmentButtons = viewChildren('segment', { read: ElementRef<HTMLButtonElement> });\n\n protected readonly id = uniqueId('tx-theme-configurator');\n protected readonly translations = injectTranslations();\n readonly isUnstyled = injectUnstyled(this.unstyled);\n readonly passThrough = injectPassThrough('themeConfigurator', this, this.pt, this.ptOptions);\n readonly hostStyle = computed(() => ({ ...toStyleObject(this.dt(), '--tx-theme-configurator'), ...this.passThrough().root?.style }));\n protected readonly styleIndex = computed(() => this.styles().findIndex((style) => style.name === this.theme.style().name));\n\n update(choice: TxThemeChoice): void {\n this.theme.updateTheme(choice);\n this.themeChange.emit({ style: this.theme.style(), primary: this.theme.primary(), surface: this.theme.surface() });\n }\n\n setRipple(enabled: boolean): void {\n this.theme.setRipple(enabled);\n this.rippleChange.emit(enabled);\n }\n\n protected selectStyle(index: number): void {\n if (index !== this.styleIndex()) {\n this.update({ style: this.styles()[index] });\n }\n }\n\n protected onSegmentKeydown(event: KeyboardEvent, index: number): void {\n const count = this.styles().length;\n const next = event.key === 'Home' ? 0 : event.key === 'End' ? count - 1 : event.key in STEPS ? (index + STEPS[event.key] + count) % count : -1;\n if (next < 0) {\n return;\n }\n event.preventDefault();\n this.segmentButtons()[next].nativeElement.focus();\n this.selectStyle(next);\n }\n}\n","@if (primaries().length) {\n <div class=\"tx-theme-configurator__section\" [class]=\"passThrough().section?.class\" [style]=\"passThrough().section?.style\">\n <span class=\"tx-theme-configurator__label\" [id]=\"id + '-primary'\" [class]=\"passThrough().label?.class\" [style]=\"passThrough().label?.style\">{{ translations().themePrimary }}</span>\n <tx-color-swatches\n class=\"tx-theme-configurator__swatches\"\n [class]=\"passThrough().swatches?.class\"\n [style]=\"passThrough().swatches?.style\"\n [options]=\"primaries()\"\n [columns]=\"columns()\"\n [ariaLabelledBy]=\"id + '-primary'\"\n [ngModel]=\"theme.primary()\"\n (ngModelChange)=\"update({ primary: $event })\"\n />\n </div>\n}\n@if (surfaces().length) {\n <div class=\"tx-theme-configurator__section\" [class]=\"passThrough().section?.class\" [style]=\"passThrough().section?.style\">\n <span class=\"tx-theme-configurator__label\" [id]=\"id + '-surface'\" [class]=\"passThrough().label?.class\" [style]=\"passThrough().label?.style\">{{ translations().themeSurface }}</span>\n <tx-color-swatches\n class=\"tx-theme-configurator__swatches\"\n [class]=\"passThrough().swatches?.class\"\n [style]=\"passThrough().swatches?.style\"\n [options]=\"surfaces()\"\n [columns]=\"columns()\"\n [ariaLabelledBy]=\"id + '-surface'\"\n [ngModel]=\"theme.surface()\"\n (ngModelChange)=\"update({ surface: $event })\"\n />\n </div>\n}\n@if (styles().length > 1) {\n <div class=\"tx-theme-configurator__section\" [class]=\"passThrough().section?.class\" [style]=\"passThrough().section?.style\">\n <span class=\"tx-theme-configurator__label\" [id]=\"id + '-style'\" [class]=\"passThrough().label?.class\" [style]=\"passThrough().label?.style\">{{ translations().themeStyle }}</span>\n <div class=\"tx-theme-configurator__segments\" role=\"radiogroup\" [attr.aria-labelledby]=\"id + '-style'\" [class]=\"passThrough().segments?.class\" [style]=\"passThrough().segments?.style\">\n <tx-button-group>\n @for (style of styles(); track style.name; let index = $index) {\n <button\n #segment\n txButton\n type=\"button\"\n role=\"radio\"\n size=\"small\"\n class=\"tx-theme-configurator__segment\"\n [class]=\"passThrough().segment?.class\"\n [style]=\"passThrough().segment?.style\"\n [severity]=\"index === styleIndex() ? 'primary' : 'secondary'\"\n [outlined]=\"index !== styleIndex()\"\n [attr.aria-checked]=\"index === styleIndex()\"\n [tabindex]=\"index === styleIndex() || (styleIndex() < 0 && index === 0) ? 0 : -1\"\n (click)=\"selectStyle(index)\"\n (keydown)=\"onSegmentKeydown($event, index)\"\n >\n {{ style.label }}\n </button>\n }\n </tx-button-group>\n </div>\n </div>\n}\n@if (showRipple()) {\n <div class=\"tx-theme-configurator__section tx-theme-configurator__section--row\" [class]=\"passThrough().section?.class\" [style]=\"passThrough().section?.style\">\n <span class=\"tx-theme-configurator__label\" [id]=\"id + '-ripple'\" [class]=\"passThrough().label?.class\" [style]=\"passThrough().label?.style\">{{ translations().themeRipple }}</span>\n <tx-toggle-switch [ariaLabelledBy]=\"id + '-ripple'\" [ngModel]=\"theme.ripple()\" (ngModelChange)=\"setRipple($event)\" />\n </div>\n}\n"],"mappings":";;;;;;;;;;;;;AAEA,MAAa,2BAA2B,EACtC,mBAAmB,wBACpB;ACoBD,MAAM,QAAgC;CAAE,YAAY;CAAG,WAAW;CAAG,WAAW;CAAI,SAAS;AAAE;AAC/F,MAAM,gBAAgB,qBAAoB;AAC1C,MAAM,eAAe,qBAAoB;AAgBzC,IAAa,sBAAb,MAAa,oBAAmB;CACb,yBAAyB,aAAa,wBAAwB;CAE5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IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,UAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,SAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,YAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,IAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,IAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,WAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,UAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,aAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,aAAA;EAAA,CAAA;EAAA,cAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,cAAA;EAAA,CAAA;EAAA,gBAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,WAAS;IAAI,MAAM;IAA+B,UAAA;GAAA,CAAA;EAAA,CAAA;CAAA;AAAA,CAAA"}
|
|
1
|
+
{"version":3,"file":"tectra-ng-blocks-theme-configurator.mjs","names":[],"sources":["../../../../packages/blocks/theme-configurator/src/theme-configurator.theme.ts","../../../../packages/blocks/theme-configurator/src/theme-configurator.component.ts","../../../../packages/blocks/theme-configurator/src/theme-configurator.component.html"],"sourcesContent":["import { themeConfiguratorTokens } from '@tectra-ng/themes';\n\nexport const THEME_CONFIGURATOR_THEME = {\n themeConfigurator: themeConfiguratorTokens,\n};\n","import { ChangeDetectionStrategy, Component, ElementRef, booleanAttribute, computed, inject, input, numberAttribute, output, viewChildren } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { uniqueId } from '@tectra-ng/core/a11y';\nimport { injectPassThrough, injectTokens, injectUnstyled, TxPassThrough, TxPassThroughOptions, TxThemeChoice, TxThemeService } from '@tectra-ng/core/config';\nimport { injectTranslations } from '@tectra-ng/core/i18n';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\nimport {\n TectraDeepPartial,\n TectraPresetSource,\n TectraPrimary,\n TectraStyle,\n TectraSurface,\n TectraThemeConfiguratorTokens,\n tectraPrimaryChoices,\n tectraSurfaceChoices,\n toStyleObject,\n} from '@tectra-ng/themes';\nimport { TxButton } from '@tectra-ng/ui/button';\nimport { TxButtonGroup } from '@tectra-ng/ui/button-group';\nimport { TxColorSwatchOption, TxColorSwatches } from '@tectra-ng/ui/color-swatches';\nimport { TxToggleSwitch } from '@tectra-ng/ui/toggle-switch';\nimport { TxThemeConfiguratorPart } from './theme-configurator.types';\nimport { THEME_CONFIGURATOR_THEME } from './theme-configurator.theme';\n\nconst STEPS: Record<string, number> = { ArrowRight: 1, ArrowDown: 1, ArrowLeft: -1, ArrowUp: -1 };\nconst ALL_PRIMARIES = tectraPrimaryChoices();\nconst ALL_SURFACES = tectraSurfaceChoices();\n\n/** Theme settings at run time: primary color, surface palette, style and ripple, applied through `TxThemeService`. */\n@Component({\n selector: 'tx-theme-configurator',\n imports: [FormsModule, TxButton, TxButtonGroup, TxColorSwatches, TxToggleSwitch],\n templateUrl: './theme-configurator.component.html',\n styleUrl: './theme-configurator.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-theme-configurator',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n },\n})\nexport class TxThemeConfigurator {\n private readonly themeConfiguratorTheme = injectTokens(THEME_CONFIGURATOR_THEME);\n\n protected readonly theme = inject(TxThemeService);\n\n readonly styles = input<readonly TectraStyle[]>([]);\n readonly primaries = input<readonly TxColorSwatchOption<TectraPrimary>[]>(ALL_PRIMARIES);\n readonly surfaces = input<readonly TxColorSwatchOption<TectraSurface>[]>(ALL_SURFACES);\n readonly columns = input<number, unknown>(9, { transform: numberAttribute });\n readonly showRipple = input<boolean, unknown>(true, { transform: booleanAttribute });\n readonly dt = input<TectraDeepPartial<TectraThemeConfiguratorTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxThemeConfiguratorPart, TxThemeConfigurator> | undefined>(undefined);\n readonly ptOptions = input<TxPassThroughOptions | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly themeChange = output<TectraPresetSource>();\n readonly rippleChange = output<boolean>();\n\n private readonly segmentButtons = viewChildren('segment', { read: ElementRef<HTMLButtonElement> });\n\n protected readonly id = uniqueId('tx-theme-configurator');\n protected readonly translations = injectTranslations();\n readonly isUnstyled = injectUnstyled(this.unstyled);\n readonly passThrough = injectPassThrough('themeConfigurator', this, this.pt, this.ptOptions);\n readonly hostStyle = computed(() => ({ ...toStyleObject(this.dt(), '--tx-theme-configurator'), ...this.passThrough().root?.style }));\n protected readonly styleIndex = computed(() => this.styles().findIndex((style) => style.name === this.theme.style().name));\n\n update(choice: TxThemeChoice): void {\n this.theme.updateTheme(choice);\n this.themeChange.emit({ style: this.theme.style(), primary: this.theme.primary(), surface: this.theme.surface() });\n }\n\n setRipple(enabled: boolean): void {\n this.theme.setRipple(enabled);\n this.rippleChange.emit(enabled);\n }\n\n protected selectStyle(index: number): void {\n if (index !== this.styleIndex()) {\n this.update({ style: this.styles()[index] });\n }\n }\n\n protected onSegmentKeydown(event: KeyboardEvent, index: number): void {\n const count = this.styles().length;\n const next = event.key === 'Home' ? 0 : event.key === 'End' ? count - 1 : event.key in STEPS ? (index + STEPS[event.key] + count) % count : -1;\n if (next < 0) {\n return;\n }\n event.preventDefault();\n this.segmentButtons()[next].nativeElement.focus();\n this.selectStyle(next);\n }\n}\n","@if (primaries().length) {\n <div\n class=\"tx-theme-configurator__section\"\n [class]=\"passThrough().section?.class\"\n [style]=\"passThrough().section?.style\"\n >\n <span\n class=\"tx-theme-configurator__label\"\n [id]=\"id + '-primary'\"\n [class]=\"passThrough().label?.class\"\n [style]=\"passThrough().label?.style\"\n >{{ translations().themePrimary }}</span\n >\n <tx-color-swatches\n class=\"tx-theme-configurator__swatches\"\n [class]=\"passThrough().swatches?.class\"\n [style]=\"passThrough().swatches?.style\"\n [options]=\"primaries()\"\n [columns]=\"columns()\"\n [ariaLabelledBy]=\"id + '-primary'\"\n [ngModel]=\"theme.primary()\"\n [ngModelOptions]=\"{ standalone: true }\"\n (ngModelChange)=\"update({ primary: $event })\"\n />\n </div>\n}\n@if (surfaces().length) {\n <div\n class=\"tx-theme-configurator__section\"\n [class]=\"passThrough().section?.class\"\n [style]=\"passThrough().section?.style\"\n >\n <span\n class=\"tx-theme-configurator__label\"\n [id]=\"id + '-surface'\"\n [class]=\"passThrough().label?.class\"\n [style]=\"passThrough().label?.style\"\n >{{ translations().themeSurface }}</span\n >\n <tx-color-swatches\n class=\"tx-theme-configurator__swatches\"\n [class]=\"passThrough().swatches?.class\"\n [style]=\"passThrough().swatches?.style\"\n [options]=\"surfaces()\"\n [columns]=\"columns()\"\n [ariaLabelledBy]=\"id + '-surface'\"\n [ngModel]=\"theme.surface()\"\n [ngModelOptions]=\"{ standalone: true }\"\n (ngModelChange)=\"update({ surface: $event })\"\n />\n </div>\n}\n@if (styles().length > 1) {\n <div\n class=\"tx-theme-configurator__section\"\n [class]=\"passThrough().section?.class\"\n [style]=\"passThrough().section?.style\"\n >\n <span\n class=\"tx-theme-configurator__label\"\n [id]=\"id + '-style'\"\n [class]=\"passThrough().label?.class\"\n [style]=\"passThrough().label?.style\"\n >{{ translations().themeStyle }}</span\n >\n <div\n class=\"tx-theme-configurator__segments\"\n role=\"radiogroup\"\n [attr.aria-labelledby]=\"id + '-style'\"\n [class]=\"passThrough().segments?.class\"\n [style]=\"passThrough().segments?.style\"\n >\n <tx-button-group>\n @for (style of styles(); track style.name; let index = $index) {\n <button\n #segment\n txButton\n type=\"button\"\n role=\"radio\"\n size=\"small\"\n class=\"tx-theme-configurator__segment\"\n [class]=\"passThrough().segment?.class\"\n [style]=\"passThrough().segment?.style\"\n [severity]=\"index === styleIndex() ? 'primary' : 'secondary'\"\n [outlined]=\"index !== styleIndex()\"\n [attr.aria-checked]=\"index === styleIndex()\"\n [tabindex]=\"index === styleIndex() || (styleIndex() < 0 && index === 0) ? 0 : -1\"\n (click)=\"selectStyle(index)\"\n (keydown)=\"onSegmentKeydown($event, index)\"\n >\n {{ style.label }}\n </button>\n }\n </tx-button-group>\n </div>\n </div>\n}\n@if (showRipple()) {\n <div\n class=\"tx-theme-configurator__section tx-theme-configurator__section--row\"\n [class]=\"passThrough().section?.class\"\n [style]=\"passThrough().section?.style\"\n >\n <span\n class=\"tx-theme-configurator__label\"\n [id]=\"id + '-ripple'\"\n [class]=\"passThrough().label?.class\"\n [style]=\"passThrough().label?.style\"\n >{{ translations().themeRipple }}</span\n >\n <tx-toggle-switch\n [ariaLabelledBy]=\"id + '-ripple'\"\n [ngModel]=\"theme.ripple()\"\n [ngModelOptions]=\"{ standalone: true }\"\n (ngModelChange)=\"setRipple($event)\"\n />\n </div>\n}\n"],"mappings":";;;;;;;;;;;;;AAEA,MAAa,2BAA2B,EACtC,mBAAmB,wBACpB;ACoBD,MAAM,QAAgC;CAAE,YAAY;CAAG,WAAW;CAAG,WAAW;CAAI,SAAS;AAAE;AAC/F,MAAM,gBAAgB,qBAAoB;AAC1C,MAAM,eAAe,qBAAoB;AAgBzC,IA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"}
|
package/kanban/README.md
CHANGED
|
@@ -4,7 +4,7 @@ A board of columns with cards. Cards move inside a column and between columns, w
|
|
|
4
4
|
|
|
5
5
|
```html
|
|
6
6
|
<tx-kanban [columns]="columns()" [itemId]="taskId" itemsDraggable (itemDropped)="moveTask($event)">
|
|
7
|
-
<ng-template txKanbanCard let-task>
|
|
7
|
+
<ng-template txKanbanCard [txKanbanCardOf]="columns()" let-task>
|
|
8
8
|
<task-card [task]="task" />
|
|
9
9
|
</ng-template>
|
|
10
10
|
</tx-kanban>
|
|
@@ -40,13 +40,24 @@ A board of columns with cards. Cards move inside a column and between columns, w
|
|
|
40
40
|
## Slots
|
|
41
41
|
| Name | Description |
|
|
42
42
|
|---|---|
|
|
43
|
-
| txKanbanCard | Required. `<ng-template txKanbanCard let-item let-column="column">` — the card |
|
|
43
|
+
| txKanbanCard | Required. `<ng-template txKanbanCard [txKanbanCardOf]="columns" let-item let-column="column">` — the card |
|
|
44
44
|
| txKanbanColumnHeader | `<ng-template txKanbanColumnHeader let-column>` — own header instead of the title and the count |
|
|
45
45
|
| txKanbanColumnTop | `<ng-template txKanbanColumnTop let-column>` — under the header, e.g. a quick-add field |
|
|
46
46
|
| txKanbanColumnFooter | `<ng-template txKanbanColumnFooter let-column>` — at the bottom of a column |
|
|
47
47
|
| txKanbanEmpty | `<ng-template txKanbanEmpty let-column>` — content of an empty column |
|
|
48
48
|
| default | After the last column, e.g. an "Add column" button |
|
|
49
49
|
|
|
50
|
+
The templates take the columns only for typing — `[txKanbanCardOf]="columns()"` gives `let-task` the card type in strict templates; without it the card stays untyped. Angular does not pass the type of the board `columns` to the templates inside it.
|
|
51
|
+
|
|
52
|
+
## Inputs — templates
|
|
53
|
+
| Name | Description |
|
|
54
|
+
|---|---|
|
|
55
|
+
| txKanbanCardOf | `txKanbanCard`: the columns of the board, only for the type of `let-item` and `column` |
|
|
56
|
+
| txKanbanColumnHeaderOf | `txKanbanColumnHeader`: the columns of the board, only for the type of `let-column` |
|
|
57
|
+
| txKanbanColumnTopOf | `txKanbanColumnTop`: the columns of the board, only for the type of `let-column` |
|
|
58
|
+
| txKanbanColumnFooterOf | `txKanbanColumnFooter`: the columns of the board, only for the type of `let-column` |
|
|
59
|
+
| txKanbanEmptyOf | `txKanbanEmpty`: the columns of the board, only for the type of `let-column` |
|
|
60
|
+
|
|
50
61
|
## Keyboard
|
|
51
62
|
| Key | Action |
|
|
52
63
|
|---|---|
|
package/network-status/README.md
CHANGED
|
@@ -27,6 +27,7 @@ While the pill is shown the body gets the `bodyClass` class (`tx-offline`), e.g.
|
|
|
27
27
|
| restoredText | Text after the connection is back (translated "Connection restored" by default) |
|
|
28
28
|
| restoredDuration | How long "Connection restored" stays, in ms (default 3000) |
|
|
29
29
|
| bodyClass | Class on `<body>` while the pill is shown (default `tx-offline`; empty — none) |
|
|
30
|
+
| contained | Shows the pill at the bottom of the nearest positioned parent instead of the window — for previews and demos. A contained pill leaves `<body>` alone: no `bodyClass`, no `--tx-bottom-overlay-offset` |
|
|
30
31
|
| dt | Design tokens of this instance (`networkStatus`) |
|
|
31
32
|
| pt | Classes and styles of the parts: `root`, `pill`, `icon`, `text` |
|
|
32
33
|
| ptOptions | How `pt` merges with the global pass-through |
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tectra-ng/blocks",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.3",
|
|
4
4
|
"description": "Ready page blocks for Angular consoles and admin apps on the tectra components: filters panel, page header, empty state, layouts, wizard, command palette and more.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://tectra-ng.com",
|
|
@@ -29,11 +29,11 @@
|
|
|
29
29
|
"@angular/core": "^22.2.0",
|
|
30
30
|
"@angular/forms": "^22.2.0",
|
|
31
31
|
"@angular/router": "^22.2.0",
|
|
32
|
-
"@tectra-ng/core": "^0.4.
|
|
33
|
-
"@tectra-ng/icons": "^0.4.
|
|
34
|
-
"@tectra-ng/qr": "^0.4.
|
|
35
|
-
"@tectra-ng/themes": "^0.4.
|
|
36
|
-
"@tectra-ng/ui": "^0.4.
|
|
32
|
+
"@tectra-ng/core": "^0.4.3",
|
|
33
|
+
"@tectra-ng/icons": "^0.4.3",
|
|
34
|
+
"@tectra-ng/qr": "^0.4.3",
|
|
35
|
+
"@tectra-ng/themes": "^0.4.3",
|
|
36
|
+
"@tectra-ng/ui": "^0.4.3"
|
|
37
37
|
},
|
|
38
38
|
"peerDependenciesMeta": {
|
|
39
39
|
"@angular/router": {
|
package/pinned-tabs/README.md
CHANGED
|
@@ -19,6 +19,7 @@ The server and the first render in the browser show `defaultPinned`; the saved c
|
|
|
19
19
|
| dialogTitle | Title of the settings dialog; the translated "Pinned tabs" by default |
|
|
20
20
|
| dialogText | Explanation in the settings dialog; a translated hint by default |
|
|
21
21
|
| ariaLabel | Name of the tab list |
|
|
22
|
+
| raised | Card background, ring and shadow on the tabs, as `raised` of `tx-tabs` — for tabs on the page background next to cards |
|
|
22
23
|
| dt | Design tokens of this instance (`pinnedTabs`) |
|
|
23
24
|
| pt | Classes and styles of the parts: `root`, `tabs`, `button` |
|
|
24
25
|
| ptOptions | How `pt` merges with the global pass-through |
|
|
@@ -7,9 +7,9 @@ Theme settings people change at run time: primary color, surface palette, style
|
|
|
7
7
|
```
|
|
8
8
|
|
|
9
9
|
```ts
|
|
10
|
-
import { edgeStyle,
|
|
10
|
+
import { edgeStyle, paperStyle, tectraStyle } from '@tectra-ng/themes';
|
|
11
11
|
|
|
12
|
-
readonly styles = [tectraStyle,
|
|
12
|
+
readonly styles = [tectraStyle, edgeStyle, paperStyle];
|
|
13
13
|
```
|
|
14
14
|
|
|
15
15
|
Styles are objects, and only the ones you list end up in the bundle; with fewer than two the style row is hidden. Put it in a popover, a drawer or a settings page.
|
|
@@ -23,18 +23,18 @@ provideTectra({
|
|
|
23
23
|
preset: Tectra,
|
|
24
24
|
presetOverrides: { light: { primary: { contrast: '#ffffff' } } },
|
|
25
25
|
storageKey: 'app-theme',
|
|
26
|
-
styles: [
|
|
26
|
+
styles: [edgeStyle, paperStyle],
|
|
27
27
|
});
|
|
28
28
|
```
|
|
29
29
|
|
|
30
30
|
- `presetOverrides` — your own changes to the preset (an object or `(preset) => overrides`), merged with `definePreset` at start and after every `updateTheme`. Keep them here instead of in `preset` so a new primary or style does not drop them.
|
|
31
31
|
- `storageKey` — remembers the style, primary, surface, ripple and color scheme in local storage and restores them while the app starts, before the first render. On the server nothing is read.
|
|
32
|
-
- `styles` — the styles a remembered choice may name; the style of `preset` is always known.
|
|
32
|
+
- `styles` — the styles a remembered choice may name; the style of `preset` is always known. A remembered style that is not among them falls back to the style of `preset`.
|
|
33
33
|
|
|
34
34
|
## Inputs
|
|
35
35
|
| Name | Description |
|
|
36
36
|
|---|---|
|
|
37
|
-
| styles | Style objects to pick from (`tectraStyle`, `
|
|
37
|
+
| styles | Style objects to pick from (`tectraStyle`, `edgeStyle`, `paperStyle` or your own) |
|
|
38
38
|
| primaries | Primary color dots, `{ value, color, label }`; every primary color of `createTectraPreset` by default; an empty list hides the row |
|
|
39
39
|
| surfaces | Surface palette dots; every surface palette by default; an empty list hides the row |
|
|
40
40
|
| columns | Dots per row (default 9) |
|
|
@@ -42,9 +42,12 @@ export declare class TxConfetti {
|
|
|
42
42
|
[x: string]: string;
|
|
43
43
|
}>;
|
|
44
44
|
private readonly run;
|
|
45
|
+
private readonly endedRun;
|
|
46
|
+
private endedPieces;
|
|
45
47
|
protected readonly runs: import("@angular/core").Signal<number[]>;
|
|
46
48
|
/** Plays the burst again */
|
|
47
49
|
play(): void;
|
|
50
|
+
protected pieceEnded(event: AnimationEvent): void;
|
|
48
51
|
static ɵfac: i0.ɵɵFactoryDeclaration<TxConfetti, never>;
|
|
49
52
|
static ɵcmp: i0.ɵɵComponentDeclaration<TxConfetti, "tx-confetti", never, {
|
|
50
53
|
"pieces": {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tectra-ng-blocks-confetti.d.ts","names":[],"sources":["../../../../packages/blocks/confetti/src/confetti.types.ts","../../../../packages/blocks/confetti/src/confetti.component.ts"],"mappings":";;;;YACY;;iBAGK;;EAEf;;EAEA;;EAEA;;EAEA,MAAM;;;YAII;;qBAGC,6BAA6B;;;;;
|
|
1
|
+
{"version":3,"file":"tectra-ng-blocks-confetti.d.ts","names":[],"sources":["../../../../packages/blocks/confetti/src/confetti.types.ts","../../../../packages/blocks/confetti/src/confetti.component.ts"],"mappings":";;;;YACY;;iBAGK;;EAEf;;EAEA;;EAEA;;EAEA,MAAM;;;YAII;;qBAGC,6BAA6B;;;;;qBCkB7B;mBACM;;WAER,gCAAM,qBAAA;;WACN,+BAAK;;WACL,4BAAE,YAAA,kBAAA;;WACF,4BAAE,YAAA,QAAA,OAAA,iDAAA,mBAAA;;WACF,mCAAS,YAAA;;WACT,kCAAQ;WAER,oCAAU;WACV,qCAAW,OAAA,QAAA,OAAA,iDAAA;WACX,mCAAS;;;mBAED;mBACA;UACT;qBACW,8BAAI;;EAEvB;YAKU,WAAW,OAAO;SAxBjB,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;IAAU;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA"}
|
|
@@ -63,14 +63,22 @@ export interface TxKanbanColumnView<T> {
|
|
|
63
63
|
/** Names of the parts of `tx-kanban` that its `pt` input can style. */
|
|
64
64
|
export type TxKanbanPart = 'root' | 'column' | 'header' | 'list' | 'card' | 'empty';
|
|
65
65
|
/**
|
|
66
|
-
* Required. `<ng-template txKanbanCard let-item let-column="column">` — the card
|
|
66
|
+
* Required. `<ng-template txKanbanCard [txKanbanCardOf]="columns" let-item let-column="column">` — the card
|
|
67
67
|
* @see https://tectra-ng.com/components/kanban
|
|
68
68
|
*/
|
|
69
69
|
export declare class TxKanbanCard<T> {
|
|
70
70
|
readonly template: TemplateRef<TxKanbanCardContext<T>>;
|
|
71
|
+
/** the columns of the board, only for the type of `let-item` and `column` */
|
|
72
|
+
readonly txKanbanCardOf: import("@angular/core").InputSignal<readonly TxKanbanColumn<T>[] | null | undefined>;
|
|
71
73
|
static ngTemplateContextGuard<T>(_directive: TxKanbanCard<T>, context: unknown): context is TxKanbanCardContext<T>;
|
|
72
74
|
static ɵfac: i0.ɵɵFactoryDeclaration<TxKanbanCard<any>, never>;
|
|
73
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<TxKanbanCard<any>, "ng-template[txKanbanCard]", never, {
|
|
75
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TxKanbanCard<any>, "ng-template[txKanbanCard]", never, {
|
|
76
|
+
"txKanbanCardOf": {
|
|
77
|
+
"alias": "txKanbanCardOf";
|
|
78
|
+
"required": false;
|
|
79
|
+
"isSignal": true;
|
|
80
|
+
};
|
|
81
|
+
}, {}, never, never, true, never>;
|
|
74
82
|
}
|
|
75
83
|
/**
|
|
76
84
|
* `<ng-template txKanbanColumnHeader let-column>` — own header instead of the title and the count
|
|
@@ -78,9 +86,17 @@ export declare class TxKanbanCard<T> {
|
|
|
78
86
|
*/
|
|
79
87
|
export declare class TxKanbanColumnHeader<T> {
|
|
80
88
|
readonly template: TemplateRef<TxKanbanColumnContext<T>>;
|
|
89
|
+
/** the columns of the board, only for the type of `let-column` */
|
|
90
|
+
readonly txKanbanColumnHeaderOf: import("@angular/core").InputSignal<readonly TxKanbanColumn<T>[] | null | undefined>;
|
|
81
91
|
static ngTemplateContextGuard<T>(_directive: TxKanbanColumnHeader<T>, context: unknown): context is TxKanbanColumnContext<T>;
|
|
82
92
|
static ɵfac: i0.ɵɵFactoryDeclaration<TxKanbanColumnHeader<any>, never>;
|
|
83
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<TxKanbanColumnHeader<any>, "ng-template[txKanbanColumnHeader]", never, {
|
|
93
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TxKanbanColumnHeader<any>, "ng-template[txKanbanColumnHeader]", never, {
|
|
94
|
+
"txKanbanColumnHeaderOf": {
|
|
95
|
+
"alias": "txKanbanColumnHeaderOf";
|
|
96
|
+
"required": false;
|
|
97
|
+
"isSignal": true;
|
|
98
|
+
};
|
|
99
|
+
}, {}, never, never, true, never>;
|
|
84
100
|
}
|
|
85
101
|
/**
|
|
86
102
|
* `<ng-template txKanbanColumnTop let-column>` — under the header, e.g. a quick-add field
|
|
@@ -88,9 +104,17 @@ export declare class TxKanbanColumnHeader<T> {
|
|
|
88
104
|
*/
|
|
89
105
|
export declare class TxKanbanColumnTop<T> {
|
|
90
106
|
readonly template: TemplateRef<TxKanbanColumnContext<T>>;
|
|
107
|
+
/** the columns of the board, only for the type of `let-column` */
|
|
108
|
+
readonly txKanbanColumnTopOf: import("@angular/core").InputSignal<readonly TxKanbanColumn<T>[] | null | undefined>;
|
|
91
109
|
static ngTemplateContextGuard<T>(_directive: TxKanbanColumnTop<T>, context: unknown): context is TxKanbanColumnContext<T>;
|
|
92
110
|
static ɵfac: i0.ɵɵFactoryDeclaration<TxKanbanColumnTop<any>, never>;
|
|
93
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<TxKanbanColumnTop<any>, "ng-template[txKanbanColumnTop]", never, {
|
|
111
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TxKanbanColumnTop<any>, "ng-template[txKanbanColumnTop]", never, {
|
|
112
|
+
"txKanbanColumnTopOf": {
|
|
113
|
+
"alias": "txKanbanColumnTopOf";
|
|
114
|
+
"required": false;
|
|
115
|
+
"isSignal": true;
|
|
116
|
+
};
|
|
117
|
+
}, {}, never, never, true, never>;
|
|
94
118
|
}
|
|
95
119
|
/**
|
|
96
120
|
* `<ng-template txKanbanColumnFooter let-column>` — at the bottom of a column
|
|
@@ -98,9 +122,17 @@ export declare class TxKanbanColumnTop<T> {
|
|
|
98
122
|
*/
|
|
99
123
|
export declare class TxKanbanColumnFooter<T> {
|
|
100
124
|
readonly template: TemplateRef<TxKanbanColumnContext<T>>;
|
|
125
|
+
/** the columns of the board, only for the type of `let-column` */
|
|
126
|
+
readonly txKanbanColumnFooterOf: import("@angular/core").InputSignal<readonly TxKanbanColumn<T>[] | null | undefined>;
|
|
101
127
|
static ngTemplateContextGuard<T>(_directive: TxKanbanColumnFooter<T>, context: unknown): context is TxKanbanColumnContext<T>;
|
|
102
128
|
static ɵfac: i0.ɵɵFactoryDeclaration<TxKanbanColumnFooter<any>, never>;
|
|
103
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<TxKanbanColumnFooter<any>, "ng-template[txKanbanColumnFooter]", never, {
|
|
129
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TxKanbanColumnFooter<any>, "ng-template[txKanbanColumnFooter]", never, {
|
|
130
|
+
"txKanbanColumnFooterOf": {
|
|
131
|
+
"alias": "txKanbanColumnFooterOf";
|
|
132
|
+
"required": false;
|
|
133
|
+
"isSignal": true;
|
|
134
|
+
};
|
|
135
|
+
}, {}, never, never, true, never>;
|
|
104
136
|
}
|
|
105
137
|
/**
|
|
106
138
|
* `<ng-template txKanbanEmpty let-column>` — content of an empty column
|
|
@@ -108,9 +140,17 @@ export declare class TxKanbanColumnFooter<T> {
|
|
|
108
140
|
*/
|
|
109
141
|
export declare class TxKanbanEmpty<T> {
|
|
110
142
|
readonly template: TemplateRef<TxKanbanColumnContext<T>>;
|
|
143
|
+
/** the columns of the board, only for the type of `let-column` */
|
|
144
|
+
readonly txKanbanEmptyOf: import("@angular/core").InputSignal<readonly TxKanbanColumn<T>[] | null | undefined>;
|
|
111
145
|
static ngTemplateContextGuard<T>(_directive: TxKanbanEmpty<T>, context: unknown): context is TxKanbanColumnContext<T>;
|
|
112
146
|
static ɵfac: i0.ɵɵFactoryDeclaration<TxKanbanEmpty<any>, never>;
|
|
113
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<TxKanbanEmpty<any>, "ng-template[txKanbanEmpty]", never, {
|
|
147
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TxKanbanEmpty<any>, "ng-template[txKanbanEmpty]", never, {
|
|
148
|
+
"txKanbanEmptyOf": {
|
|
149
|
+
"alias": "txKanbanEmptyOf";
|
|
150
|
+
"required": false;
|
|
151
|
+
"isSignal": true;
|
|
152
|
+
};
|
|
153
|
+
}, {}, never, never, true, never>;
|
|
114
154
|
}
|
|
115
155
|
/**
|
|
116
156
|
* A board of columns with cards that move inside a column and between columns; it reports the move and
|
|
@@ -164,11 +204,11 @@ export declare class TxKanban<T> {
|
|
|
164
204
|
readonly hostStyle: import("@angular/core").Signal<{
|
|
165
205
|
[x: string]: string;
|
|
166
206
|
}>;
|
|
167
|
-
protected readonly cardTemplate: import("@angular/core").Signal<TxKanbanCard<
|
|
168
|
-
protected readonly headerTemplate: import("@angular/core").Signal<TxKanbanColumnHeader<
|
|
169
|
-
protected readonly topTemplate: import("@angular/core").Signal<TxKanbanColumnTop<
|
|
170
|
-
protected readonly footerTemplate: import("@angular/core").Signal<TxKanbanColumnFooter<
|
|
171
|
-
protected readonly emptyTemplate: import("@angular/core").Signal<TxKanbanEmpty<
|
|
207
|
+
protected readonly cardTemplate: import("@angular/core").Signal<TxKanbanCard<T>>;
|
|
208
|
+
protected readonly headerTemplate: import("@angular/core").Signal<TxKanbanColumnHeader<T> | undefined>;
|
|
209
|
+
protected readonly topTemplate: import("@angular/core").Signal<TxKanbanColumnTop<T> | undefined>;
|
|
210
|
+
protected readonly footerTemplate: import("@angular/core").Signal<TxKanbanColumnFooter<T> | undefined>;
|
|
211
|
+
protected readonly emptyTemplate: import("@angular/core").Signal<TxKanbanEmpty<T> | undefined>;
|
|
172
212
|
private readonly shown;
|
|
173
213
|
protected readonly views: import("@angular/core").Signal<TxKanbanColumnView<T>[]>;
|
|
174
214
|
protected readonly listIds: import("@angular/core").Signal<string[]>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tectra-ng-blocks-kanban.d.ts","names":[],"sources":["../../../../packages/blocks/kanban/src/kanban.types.ts","../../../../packages/blocks/kanban/src/kanban-templates.directive.ts","../../../../packages/blocks/kanban/src/kanban.component.ts"],"mappings":";;;;;;iBACiB,eAAe;;EAE9B;;EAEA;;EAEA,OAAO;;;YAIG,eAAe,MAAM,MAAM;;iBAGtB;;EAEf;;EAEA;;EAEA;;EAEA;;EAEA;;;iBAIe;;EAEf;;EAEA;;EAEA;;;iBAIe,oBAAoB;;EAEnC,WAAW;;EAEX,QAAQ,eAAe;;;;;;iBAOR,sBAAsB;;EAErC,WAAW,eAAe;;;iBAIX,mBAAmB;;EAElC,QAAQ,eAAe;;EAEvB,OAAO;;EAEP;;;YAIU;;;;;qBC7DC,aAAa;WACf,UAAQ,YAAA,oBAAA;
|
|
1
|
+
{"version":3,"file":"tectra-ng-blocks-kanban.d.ts","names":[],"sources":["../../../../packages/blocks/kanban/src/kanban.types.ts","../../../../packages/blocks/kanban/src/kanban-templates.directive.ts","../../../../packages/blocks/kanban/src/kanban.component.ts"],"mappings":";;;;;;iBACiB,eAAe;;EAE9B;;EAEA;;EAEA,OAAO;;;YAIG,eAAe,MAAM,MAAM;;iBAGtB;;EAEf;;EAEA;;EAEA;;EAEA;;EAEA;;;iBAIe;;EAEf;;EAEA;;EAEA;;;iBAIe,oBAAoB;;EAEnC,WAAW;;EAEX,QAAQ,eAAe;;;;;;iBAOR,sBAAsB;;EAErC,WAAW,eAAe;;;iBAIX,mBAAmB;;EAElC,QAAQ,eAAe;;EAEvB,OAAO;;EAEP;;;YAIU;;;;;qBC7DC,aAAa;WACf,UAAQ,YAAA,oBAAA;;WACR,wCAAc,qBAAA,eAAA;SAEhB,uBAAuB,GAC5B,YAAY,aAAa,IACzB,mBACC,WAAW,oBAAoB;SAPvB,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;IAAY;MAAA;MAAA;MAAA;;;;;;;;qBAaZ,qBAAqB;WACvB,UAAQ,YAAA,sBAAA;;WACR,gDAA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OAAA,+CAAA;qBACD,sCAAY,wCAAA;qBACZ;WACV,mCAAS;;;qBAKC,sCAAY,OAAA,aAAA;qBACZ,wCAAc,OAAA,qBAAA;qBACd,qCAAW,OAAA,kBAAA;qBACX,wCAAc,OAAA,qBAAA;qBACd,uCAAa,OAAA,cAAA;mBAEf;qBACE,+BAAK,OAAA,mBAAA;qBAYL,iCAAO;qBAGP,mCAAS;qBACT,oCAAU;UAIrB;EAER,SAAS;YAaC,cAAc;YAId,SAAS,OAAO,YAAY,mBAAmB;YAkB/C,WAAW,OAAO,qBAAqB,eAAe;YAQtD,cAAc,OAAO,eAAe,qBAAqB;YA6CzD,gBAAgB,OAAO,eAAe;YAkBtC,cAAc,OAAO;YAcrB,cAAc,OAAO;YAQrB;UAIF;UAmBA;UAKA;UA0BA;SA1PG,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;IAAQ;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;;IAAA;IAAA"}
|
|
@@ -47,6 +47,8 @@ export declare class TxNetworkStatus {
|
|
|
47
47
|
readonly restoredDuration: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
48
48
|
/** Class on `<body>` while the pill is shown (default `tx-offline`; empty — none) */
|
|
49
49
|
readonly bodyClass: import("@angular/core").InputSignal<string>;
|
|
50
|
+
/** Shows the pill at the bottom of the nearest positioned parent instead of the window — for previews and demos. A contained pill leaves `<body>` alone: no `bodyClass`, no `--tx-bottom-overlay-offset` */
|
|
51
|
+
readonly contained: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
50
52
|
/** Design tokens of this instance (`networkStatus`) */
|
|
51
53
|
readonly dt: import("@angular/core").InputSignal<TectraDeepPartial<TectraNetworkStatusTokens> | undefined>;
|
|
52
54
|
/** Classes and styles of the parts: `root`, `pill`, `icon`, `text` */
|
|
@@ -94,6 +96,11 @@ export declare class TxNetworkStatus {
|
|
|
94
96
|
"required": false;
|
|
95
97
|
"isSignal": true;
|
|
96
98
|
};
|
|
99
|
+
"contained": {
|
|
100
|
+
"alias": "contained";
|
|
101
|
+
"required": false;
|
|
102
|
+
"isSignal": true;
|
|
103
|
+
};
|
|
97
104
|
"dt": {
|
|
98
105
|
"alias": "dt";
|
|
99
106
|
"required": false;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tectra-ng-blocks-network-status.d.ts","names":[],"sources":["../../../../packages/blocks/network-status/src/network-status.types.ts","../../../../packages/blocks/network-status/src/network.service.ts","../../../../packages/blocks/network-status/src/network-status.component.ts"],"mappings":";;;;;;;YAIY;;YAGA;;;;;;qBCIC;mBACM;mBACA;UACT;;WAGC,gCAAM,OAAA;;WAEN,0CAAgB;;;EAyBzB;;EAMA;SAvCW,MAAA,GAAA,qBAAA;;;;;;;
|
|
1
|
+
{"version":3,"file":"tectra-ng-blocks-network-status.d.ts","names":[],"sources":["../../../../packages/blocks/network-status/src/network-status.types.ts","../../../../packages/blocks/network-status/src/network.service.ts","../../../../packages/blocks/network-status/src/network-status.component.ts"],"mappings":";;;;;;;YAIY;;YAGA;;;;;;qBCIC;mBACM;mBACA;UACT;;WAGC,gCAAM,OAAA;;WAEN,0CAAgB;;;EAyBzB;;EAMA;SAvCW,MAAA,GAAA,qBAAA;;;;;;;qBCkCA;mBACM;mBAEA;mBACA;mBACA;mBACA;;WAER,qCAAW;;WACX,sCAAY;;WACZ,0CAAgB;;WAChB,mCAAS;;WACT,mCAAS;;WACT,4BAAE,YAAA,kBAAA;;WACF,4BAAE,YAAA,QAAA,OAAA,sDAAA,mBAAA;;WACF,mCAAS,YAAA;;WACT,kCAAQ;;WAER,sCAAY,iBAAA;WAEZ,oCAAU;WACV,qCAAW,OAAA,QAAA,OAAA,sDAAA;qBACD,sCAAY,wCAAA;WACtB,mCAAS;;;;WAET,gCAAM,OAAA;qBACI,iCAAO;qBACP,iCAAO;;;EAoC1B;;EAIA;SAnEW,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;IAAe;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;;IAAA"}
|
|
@@ -62,6 +62,8 @@ export declare class TxPinnedTabs {
|
|
|
62
62
|
readonly dialogText: import("@angular/core").InputSignal<string | undefined>;
|
|
63
63
|
/** Name of the tab list */
|
|
64
64
|
readonly ariaLabel: import("@angular/core").InputSignal<string | undefined>;
|
|
65
|
+
/** Card background, ring and shadow on the tabs, as `raised` of `tx-tabs` — for tabs on the page background next to cards */
|
|
66
|
+
readonly raised: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
65
67
|
/** Design tokens of this instance (`pinnedTabs`) */
|
|
66
68
|
readonly dt: import("@angular/core").InputSignal<TectraDeepPartial<TectraPinnedTabsTokens> | undefined>;
|
|
67
69
|
/** Classes and styles of the parts: `root`, `tabs`, `button` */
|
|
@@ -135,6 +137,11 @@ export declare class TxPinnedTabs {
|
|
|
135
137
|
"required": false;
|
|
136
138
|
"isSignal": true;
|
|
137
139
|
};
|
|
140
|
+
"raised": {
|
|
141
|
+
"alias": "raised";
|
|
142
|
+
"required": false;
|
|
143
|
+
"isSignal": true;
|
|
144
|
+
};
|
|
138
145
|
"dt": {
|
|
139
146
|
"alias": "dt";
|
|
140
147
|
"required": false;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tectra-ng-blocks-pinned-tabs.d.ts","names":[],"sources":["../../../../packages/blocks/pinned-tabs/src/pinned-tabs.types.ts","../../../../packages/blocks/pinned-tabs/src/pinned-tabs-dialog.component.ts","../../../../packages/blocks/pinned-tabs/src/pinned-tabs.component.ts"],"mappings":";;;;;iBACiB;;EAEf;;EAEA;;;iBAIe;;EAEf,kBAAkB;;EAElB;;EAEA;;EAEA;;;YAIU;;qBC+BC;mBACM;mBAEA;qBACE,MAAI;qBACJ,oCAAG;qBACH,sCAAY,wCAAA;qBACZ,+BAAK;qBACL,gCAAM;qBAIN,iCAAO;YAIhB,OAAO;YAIP;SApBC,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;;;;;;
|
|
1
|
+
{"version":3,"file":"tectra-ng-blocks-pinned-tabs.d.ts","names":[],"sources":["../../../../packages/blocks/pinned-tabs/src/pinned-tabs.types.ts","../../../../packages/blocks/pinned-tabs/src/pinned-tabs-dialog.component.ts","../../../../packages/blocks/pinned-tabs/src/pinned-tabs.component.ts"],"mappings":";;;;;iBACiB;;EAEf;;EAEA;;;iBAIe;;EAEf,kBAAkB;;EAElB;;EAEA;;EAEA;;;YAIU;;qBC+BC;mBACM;mBAEA;qBACE,MAAI;qBACJ,oCAAG;qBACH,sCAAY,wCAAA;qBACZ,+BAAK;qBACL,gCAAM;qBAIN,iCAAO;YAIhB,OAAO;YAIP;SApBC,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;;;;;;qBCiBA;mBACM;mBAEA;mBACA;mBACA;;WAER,kCAAQ;;WACR,iCAAO,qBAAA;;WACP,uCAAa;;WACb,kCAAQ;;WACR,kCAAQ;;WACR,qCAAW;;WACX,oCAAU;;WACV,mCAAS;;WACT,gCAAM;;WACN,4BAAE,YAAA,kBAAA;;WACF,4BAAE,YAAA,QAAA,OAAA,mDAAA,mBAAA;;WACF,mCAAS,YAAA;;WACT,kCAAQ;WAER,oCAAU;WACV,qCAAW,OAAA,QAAA,OAAA,mDAAA;qBACD,sCAAY,wCAAA;WACtB,mCAAS;;;mBAED;;WAER,gCAAM;WAMN,8BAAI,OAAA;qBAQM,mCAAS,OAAA;;;EAY5B,IAAI;;EAMJ,MAAM;YAMI,KAAK,OAAO;;EAItB;UAiBQ;UAQA;UAaA;UAKA;SAjHG,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;IAAY;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;;IAAA"}
|
|
@@ -8,7 +8,7 @@ export type TxThemeConfiguratorPart = 'root' | 'section' | 'label' | 'swatches'
|
|
|
8
8
|
export declare class TxThemeConfigurator {
|
|
9
9
|
private readonly themeConfiguratorTheme;
|
|
10
10
|
protected readonly theme: TxThemeService;
|
|
11
|
-
/** Style objects to pick from (`tectraStyle`, `
|
|
11
|
+
/** Style objects to pick from (`tectraStyle`, `edgeStyle`, `paperStyle` or your own) */
|
|
12
12
|
readonly styles: import("@angular/core").InputSignal<readonly TectraStyle[]>;
|
|
13
13
|
/** Primary color dots, `{ value, color, label }`; every primary color of `createTectraPreset` by default; an empty list hides the row */
|
|
14
14
|
readonly primaries: import("@angular/core").InputSignal<readonly TxColorSwatchOption<TectraPrimary>[]>;
|