@tectra-ng/blocks 0.4.3 → 0.4.5
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/actions-menu/README.md +9 -1
- package/app-layout/README.md +3 -2
- package/command-palette/README.md +7 -0
- package/console-layout/README.md +24 -0
- package/cookie-notice/README.md +1 -1
- package/fesm2022/tectra-ng-blocks-action-tile.mjs +3 -3
- package/fesm2022/tectra-ng-blocks-actions-menu.mjs +40 -18
- package/fesm2022/tectra-ng-blocks-actions-menu.mjs.map +1 -1
- package/fesm2022/tectra-ng-blocks-app-footer.mjs +3 -3
- package/fesm2022/tectra-ng-blocks-app-layout.mjs +22 -5
- package/fesm2022/tectra-ng-blocks-app-layout.mjs.map +1 -1
- package/fesm2022/tectra-ng-blocks-command-palette.mjs +40 -17
- package/fesm2022/tectra-ng-blocks-command-palette.mjs.map +1 -1
- package/fesm2022/tectra-ng-blocks-confetti.mjs +3 -3
- package/fesm2022/tectra-ng-blocks-console-layout.mjs +101 -22
- package/fesm2022/tectra-ng-blocks-console-layout.mjs.map +1 -1
- package/fesm2022/tectra-ng-blocks-cookie-notice.mjs +5 -5
- package/fesm2022/tectra-ng-blocks-cookie-notice.mjs.map +1 -1
- package/fesm2022/tectra-ng-blocks-empty-state.mjs +3 -3
- package/fesm2022/tectra-ng-blocks-filters-panel.mjs +113 -24
- package/fesm2022/tectra-ng-blocks-filters-panel.mjs.map +1 -1
- package/fesm2022/tectra-ng-blocks-hover-effect.mjs +3 -3
- package/fesm2022/tectra-ng-blocks-kanban.mjs +120 -35
- package/fesm2022/tectra-ng-blocks-kanban.mjs.map +1 -1
- package/fesm2022/tectra-ng-blocks-mascot.mjs +3 -3
- package/fesm2022/tectra-ng-blocks-network-status.mjs +6 -6
- package/fesm2022/tectra-ng-blocks-page-header.mjs +5 -5
- package/fesm2022/tectra-ng-blocks-page-header.mjs.map +1 -1
- package/fesm2022/tectra-ng-blocks-pinned-tabs.mjs +6 -6
- package/fesm2022/tectra-ng-blocks-public-header.mjs +23 -9
- package/fesm2022/tectra-ng-blocks-public-header.mjs.map +1 -1
- package/fesm2022/tectra-ng-blocks-qr-code.mjs +3 -3
- package/fesm2022/tectra-ng-blocks-switch-language.mjs +3 -3
- package/fesm2022/tectra-ng-blocks-switch-theme.mjs +9 -9
- package/fesm2022/tectra-ng-blocks-theme-configurator.mjs +3 -3
- package/fesm2022/tectra-ng-blocks-topbar-preferences.mjs +3 -3
- package/fesm2022/tectra-ng-blocks-wizard.mjs +160 -23
- package/fesm2022/tectra-ng-blocks-wizard.mjs.map +1 -1
- package/fesm2022/tectra-ng-blocks.mjs +1 -1
- package/filters-panel/README.md +20 -1
- package/kanban/README.md +19 -1
- package/package.json +6 -6
- package/page-header/README.md +1 -1
- package/public-header/README.md +6 -0
- package/switch-language/README.md +1 -1
- package/topbar-preferences/README.md +1 -1
- package/types/tectra-ng-blocks-actions-menu.d.ts +9 -0
- package/types/tectra-ng-blocks-actions-menu.d.ts.map +1 -1
- package/types/tectra-ng-blocks-app-layout.d.ts +10 -3
- package/types/tectra-ng-blocks-app-layout.d.ts.map +1 -1
- package/types/tectra-ng-blocks-command-palette.d.ts +38 -5
- package/types/tectra-ng-blocks-command-palette.d.ts.map +1 -1
- package/types/tectra-ng-blocks-console-layout.d.ts +58 -9
- package/types/tectra-ng-blocks-console-layout.d.ts.map +1 -1
- package/types/tectra-ng-blocks-cookie-notice.d.ts +5 -5
- package/types/tectra-ng-blocks-filters-panel.d.ts +48 -4
- package/types/tectra-ng-blocks-filters-panel.d.ts.map +1 -1
- package/types/tectra-ng-blocks-kanban.d.ts +47 -7
- package/types/tectra-ng-blocks-kanban.d.ts.map +1 -1
- package/types/tectra-ng-blocks-public-header.d.ts +9 -2
- package/types/tectra-ng-blocks-public-header.d.ts.map +1 -1
- package/types/tectra-ng-blocks-wizard.d.ts +34 -6
- package/types/tectra-ng-blocks-wizard.d.ts.map +1 -1
- package/types/tectra-ng-blocks.d.ts +1 -1
- package/wizard/README.md +21 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tectra-ng-blocks-wizard.mjs","names":[],"sources":["../../../../packages/blocks/wizard/src/wizard.icons.ts","../../../../packages/blocks/wizard/src/wizard.theme.ts","../../../../packages/blocks/wizard/src/wizard-layout.component.ts","../../../../packages/blocks/wizard/src/wizard-progress.component.ts","../../../../packages/blocks/wizard/src/wizard-step-head.component.ts","../../../../packages/blocks/wizard/src/wizard-stage.component.ts","../../../../packages/blocks/wizard/src/wizard-footer.component.ts"],"sourcesContent":["import { TxIconSet, txIconArrowLeft, txIconArrowRight, txIconForward } from '@tectra-ng/icons';\n\nexport const WIZARD_ICON_DEFAULTS: TxIconSet = {\n 'arrow-left': txIconArrowLeft,\n 'arrow-right': txIconArrowRight,\n forward: txIconForward,\n};\n","import { wizardTokens } from '@tectra-ng/themes';\n\nexport const WIZARD_THEME = {\n wizard: wizardTokens,\n};\n","import { ChangeDetectionStrategy, Component, computed, input } from '@angular/core';\nimport { injectPassThrough, injectTokens, injectUnstyled, TxPassThrough, TxPassThroughOptions } from '@tectra-ng/core/config';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\nimport { TectraDeepPartial, TectraWizardTokens, toStyleObject } from '@tectra-ng/themes';\nimport { TxWizardLayoutPart, TxWizardResponsive } from './wizard.types';\nimport { provideTxIconDefaults } from '@tectra-ng/icons';\nimport { WIZARD_ICON_DEFAULTS } from './wizard.icons';\nimport { WIZARD_THEME } from './wizard.theme';\n\n/**\n * The frame of a full-screen wizard: the step with its header, body and footer, and a visual stage\n * beside it.\n */\n@Component({\n selector: 'tx-wizard-layout',\n template: `\n <div class=\"tx-wizard-layout__grid\">\n <section class=\"tx-wizard-layout__panel\" [class]=\"passThrough().panel?.class\" [style]=\"passThrough().panel?.style\">\n <div class=\"tx-wizard-layout__inner\">\n <div class=\"tx-wizard-layout__header\" [class]=\"passThrough().header?.class\" [style]=\"passThrough().header?.style\">\n <ng-content select=\"[txWizardHeader]\" />\n </div>\n <div class=\"tx-wizard-layout__main\">\n <div class=\"tx-wizard-layout__body\" [class]=\"passThrough().body?.class\" [style]=\"passThrough().body?.style\">\n <ng-content select=\"[txWizardBody]\" />\n </div>\n <div class=\"tx-wizard-layout__footer\" [class]=\"passThrough().footer?.class\" [style]=\"passThrough().footer?.style\">\n <ng-content select=\"[txWizardFooter]\" />\n </div>\n </div>\n </div>\n </section>\n <aside class=\"tx-wizard-layout__visual\" [class]=\"passThrough().visual?.class\" [style]=\"passThrough().visual?.style\">\n <ng-content select=\"[txWizardVisual]\" />\n </aside>\n </div>\n `,\n styleUrl: './wizard-layout.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-wizard-layout',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[attr.data-responsive]': 'responsive()',\n },\n viewProviders: [provideTxIconDefaults(WIZARD_ICON_DEFAULTS)],\n})\nexport class TxWizardLayout {\n private readonly wizardTheme = injectTokens(WIZARD_THEME);\n\n readonly responsive = input<TxWizardResponsive>('viewport');\n readonly dt = input<TectraDeepPartial<TectraWizardTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxWizardLayoutPart, TxWizardLayout> | 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('wizardLayout', this, this.pt, this.ptOptions);\n readonly hostStyle = computed(() => ({ ...toStyleObject(this.dt(), '--tx-wizard'), ...this.passThrough().root?.style }));\n}\n","import { ChangeDetectionStrategy, Component, computed, input, numberAttribute } from '@angular/core';\nimport { injectPassThrough, injectTokens, injectUnstyled, TxPassThrough, TxPassThroughOptions } from '@tectra-ng/core/config';\nimport { injectTranslations } from '@tectra-ng/core/i18n';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\nimport { TectraDeepPartial, TectraWizardTokens, toStyleObject } from '@tectra-ng/themes';\nimport { TxWizardProgressPart } from './wizard.types';\nimport { provideTxIconDefaults } from '@tectra-ng/icons';\nimport { WIZARD_ICON_DEFAULTS } from './wizard.icons';\nimport { WIZARD_THEME } from './wizard.theme';\n\n/** The progress of a wizard as one segment per step. */\n@Component({\n selector: 'tx-wizard-progress',\n template: `\n @if (label()) {\n <span class=\"tx-wizard-progress__label\" aria-hidden=\"true\" [class]=\"passThrough().label?.class\" [style]=\"passThrough().label?.style\">{{ label() }}</span>\n }\n <ol class=\"tx-wizard-progress__segments\" [attr.aria-label]=\"label() || translations().wizardProgress\" [class]=\"passThrough().segments?.class\" [style]=\"passThrough().segments?.style\">\n @for (segment of segments(); track $index; let position = $index) {\n <li\n class=\"tx-wizard-progress__segment\"\n [class.tx-wizard-progress__segment--done]=\"position < current()\"\n [class.tx-wizard-progress__segment--current]=\"position === current()\"\n [attr.aria-current]=\"position === current() ? 'step' : null\"\n [attr.aria-label]=\"stepLabels()[position] || null\"\n [class]=\"passThrough().segment?.class\"\n [style]=\"passThrough().segment?.style\"\n >\n <span class=\"tx-wizard-progress__fill\"></span>\n </li>\n }\n </ol>\n `,\n styleUrl: './wizard-progress.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-wizard-progress',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n },\n viewProviders: [provideTxIconDefaults(WIZARD_ICON_DEFAULTS)],\n})\nexport class TxWizardProgress {\n private readonly wizardTheme = injectTokens(WIZARD_THEME);\n\n readonly total = input.required<number, unknown>({ transform: numberAttribute });\n readonly current = input.required<number, unknown>({ transform: numberAttribute });\n readonly label = input<string | undefined>(undefined);\n readonly stepLabels = input<readonly string[]>([]);\n readonly dt = input<TectraDeepPartial<TectraWizardTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxWizardProgressPart, TxWizardProgress> | 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('wizardProgress', this, this.pt, this.ptOptions);\n protected readonly translations = injectTranslations();\n protected readonly segments = computed(() => Array.from({ length: Math.max(this.total(), 0) }));\n readonly hostStyle = computed(() => ({ ...toStyleObject(this.dt(), '--tx-wizard'), ...this.passThrough().root?.style }));\n}\n","import { ChangeDetectionStrategy, Component, computed, input } from '@angular/core';\nimport { injectPassThrough, injectTokens, injectUnstyled, TxPassThrough, TxPassThroughOptions } from '@tectra-ng/core/config';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\nimport { provideTxIconDefaults, TxIcon, TxIconName } from '@tectra-ng/icons';\nimport { TectraDeepPartial, TectraWizardTokens, toStyleObject } from '@tectra-ng/themes';\nimport { TxPill } from '@tectra-ng/ui/pill';\nimport { TxWizardStepHeadPart } from './wizard.types';\nimport { WIZARD_ICON_DEFAULTS } from './wizard.icons';\nimport { WIZARD_THEME } from './wizard.theme';\n\n/** The heading of a wizard step: an icon, a title and a lead text. */\n@Component({\n selector: 'tx-wizard-step-head',\n imports: [TxIcon, TxPill],\n template: `\n @if (icon(); as name) {\n <span class=\"tx-wizard-step-head__icon\" aria-hidden=\"true\" [class]=\"passThrough().icon?.class\" [style]=\"passThrough().icon?.style\">\n <tx-icon [name]=\"name\" />\n </span>\n }\n <div class=\"tx-wizard-step-head__title-row\">\n <h1 class=\"tx-wizard-step-head__title\" [class]=\"passThrough().title?.class\" [style]=\"passThrough().title?.style\">{{ title() }}</h1>\n @if (badge()) {\n <tx-pill tone=\"neutral\" size=\"small\" [value]=\"badge()\" [unstyled]=\"isUnstyled()\" />\n }\n </div>\n @if (lead()) {\n <p class=\"tx-wizard-step-head__lead\" [class]=\"passThrough().lead?.class\" [style]=\"passThrough().lead?.style\">{{ lead() }}</p>\n }\n `,\n styleUrl: './wizard-step-head.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-wizard-step-head',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[attr.title]': 'null',\n },\n viewProviders: [provideTxIconDefaults(WIZARD_ICON_DEFAULTS)],\n})\nexport class TxWizardStepHead {\n private readonly wizardTheme = injectTokens(WIZARD_THEME);\n\n readonly title = input.required<string>();\n readonly icon = input<TxIconName | (string & {}) | undefined>(undefined);\n readonly lead = input<string | undefined>(undefined);\n readonly badge = input<string | undefined>(undefined);\n readonly dt = input<TectraDeepPartial<TectraWizardTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxWizardStepHeadPart, TxWizardStepHead> | 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('wizardStepHead', this, this.pt, this.ptOptions);\n readonly hostStyle = computed(() => ({ ...toStyleObject(this.dt(), '--tx-wizard'), ...this.passThrough().root?.style }));\n}\n","import { DecimalPipe } from '@angular/common';\nimport { afterRenderEffect, ChangeDetectionStrategy, Component, computed, ElementRef, inject, input, viewChild } from '@angular/core';\nimport { injectPassThrough, injectTokens, injectUnstyled, TxPassThrough, TxPassThroughOptions } from '@tectra-ng/core/config';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\nimport { TectraDeepPartial, TectraWizardTokens, toStyleObject } from '@tectra-ng/themes';\nimport { TxWizardLayout } from './wizard-layout.component';\nimport { TxWizardDirection, TxWizardStagePart } from './wizard.types';\nimport { provideTxIconDefaults } from '@tectra-ng/icons';\nimport { WIZARD_ICON_DEFAULTS } from './wizard.icons';\nimport { WIZARD_THEME } from './wizard.theme';\n\n/** The illustrated stage of a wizard; its scenes slide in the direction of the move. */\n@Component({\n selector: 'tx-wizard-stage',\n imports: [DecimalPipe],\n template: `\n <ng-content select=\"[txWizardBackdrop]\" />\n <div class=\"tx-wizard-stage__inner\">\n <div class=\"tx-wizard-stage__stage\" aria-hidden=\"true\" [class]=\"passThrough().stage?.class\" [style]=\"passThrough().stage?.style\">\n <ng-content />\n </div>\n @if (caption(); as text) {\n <div #captionElement class=\"tx-wizard-stage__caption\" animate.enter=\"tx-wizard-stage__caption--enter\" [class]=\"passThrough().caption?.class\" [style]=\"passThrough().caption?.style\">\n @if (number() !== undefined) {\n <span class=\"tx-wizard-stage__number\">{{ number() | number: '2.0-0' }}</span>\n }\n <span class=\"tx-wizard-stage__title\">{{ text }}</span>\n </div>\n }\n </div>\n `,\n styleUrl: './wizard-stage.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-wizard-stage',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[attr.data-direction]': 'direction()',\n '[attr.data-responsive]': 'responsive()',\n },\n viewProviders: [provideTxIconDefaults(WIZARD_ICON_DEFAULTS)],\n})\nexport class TxWizardStage {\n private readonly wizardTheme = injectTokens(WIZARD_THEME);\n\n private readonly layout = inject(TxWizardLayout, { optional: true });\n\n readonly direction = input<TxWizardDirection>('forward');\n readonly number = input<number | undefined>(undefined);\n readonly caption = input<string | undefined>(undefined);\n readonly dt = input<TectraDeepPartial<TectraWizardTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxWizardStagePart, TxWizardStage> | 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('wizardStage', this, this.pt, this.ptOptions);\n protected readonly responsive = computed(() => this.layout?.responsive() ?? 'viewport');\n readonly hostStyle = computed(() => ({ ...toStyleObject(this.dt(), '--tx-wizard'), ...this.passThrough().root?.style }));\n\n private readonly captionElement = viewChild<ElementRef<HTMLElement>>('captionElement');\n\n constructor() {\n let shown: string | undefined;\n afterRenderEffect(() => {\n const text = this.caption();\n const element = this.captionElement()?.nativeElement;\n if (element && shown !== undefined && text !== shown) {\n replayCaption(element);\n }\n shown = element ? text : undefined;\n });\n }\n}\n\nconst CAPTION_ENTER = 'tx-wizard-stage__caption--enter';\n\nfunction replayCaption(element: HTMLElement): void {\n element.classList.remove(CAPTION_ENTER);\n element.getBoundingClientRect();\n element.classList.add(CAPTION_ENTER);\n}\n","import { ChangeDetectionStrategy, Component, booleanAttribute, computed, input, output } from '@angular/core';\nimport { injectPassThrough, injectTokens, injectUnstyled, TxPassThrough, TxPassThroughOptions } from '@tectra-ng/core/config';\nimport { injectTranslations } from '@tectra-ng/core/i18n';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\nimport { provideTxIconDefaults, TxIconName } from '@tectra-ng/icons';\nimport { TectraDeepPartial, TectraWizardTokens, toStyleObject } from '@tectra-ng/themes';\nimport { TxButton } from '@tectra-ng/ui/button';\nimport { TxWizardFooterPart } from './wizard.types';\nimport { WIZARD_ICON_DEFAULTS } from './wizard.icons';\nimport { WIZARD_THEME } from './wizard.theme';\n\n/** The back, skip and next buttons of a wizard. */\n@Component({\n selector: 'tx-wizard-footer',\n imports: [TxButton],\n template: `\n @if (showBack()) {\n <button\n txButton\n type=\"button\"\n severity=\"secondary\"\n outlined\n icon=\"arrow-left\"\n [disabled]=\"loading()\"\n [unstyled]=\"isUnstyled()\"\n [class]=\"passThrough().back?.class\"\n [style]=\"passThrough().back?.style\"\n (click)=\"back.emit()\"\n >\n {{ backLabel() ?? translations().wizardBack }}\n </button>\n }\n <div class=\"tx-wizard-footer__end\">\n @if (skipLabel(); as skipText) {\n <button\n txButton\n type=\"button\"\n severity=\"secondary\"\n text\n [disabled]=\"loading()\"\n [unstyled]=\"isUnstyled()\"\n [class]=\"passThrough().skip?.class\"\n [style]=\"passThrough().skip?.style\"\n (click)=\"skip.emit()\"\n >\n {{ skipText }}\n </button>\n }\n <button\n txButton\n type=\"button\"\n [icon]=\"nextIcon()\"\n [loading]=\"loading()\"\n [disabled]=\"loading()\"\n [unstyled]=\"isUnstyled()\"\n [class]=\"passThrough().next?.class\"\n [style]=\"passThrough().next?.style\"\n (click)=\"next.emit()\"\n >\n {{ nextLabel() ?? translations().wizardNext }}\n </button>\n </div>\n `,\n styleUrl: './wizard-footer.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-wizard-footer',\n role: 'group',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n },\n viewProviders: [provideTxIconDefaults(WIZARD_ICON_DEFAULTS)],\n})\nexport class TxWizardFooter {\n private readonly wizardTheme = injectTokens(WIZARD_THEME);\n\n readonly nextLabel = input<string | undefined>(undefined);\n readonly nextIcon = input<TxIconName | (string & {})>('arrow-right');\n readonly backLabel = input<string | undefined>(undefined);\n readonly showBack = input<boolean, unknown>(true, { transform: booleanAttribute });\n readonly skipLabel = input<string | undefined>(undefined);\n readonly loading = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly dt = input<TectraDeepPartial<TectraWizardTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxWizardFooterPart, TxWizardFooter> | undefined>(undefined);\n readonly ptOptions = input<TxPassThroughOptions | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly back = output<void>();\n readonly next = output<void>();\n readonly skip = output<void>();\n\n readonly isUnstyled = injectUnstyled(this.unstyled);\n readonly passThrough = injectPassThrough('wizardFooter', this, this.pt, this.ptOptions);\n protected readonly translations = injectTranslations();\n readonly hostStyle = computed(() => ({ ...toStyleObject(this.dt(), '--tx-wizard'), ...this.passThrough().root?.style }));\n}\n"],"mappings":";;;;;;;;;;AAEA,MAAa,uBAAkC;CAC7C,cAAc;CACd,eAAe;CACf,SAAS;AACV;ACJ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AAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;GAAA;EAAA,CAAA;EAAA,eA0DH,CAAC,sBAAsB,oBAAoB,CAAC;EAAC,iBAAA,GAAA,wBAAA;CAAA,CAAA;;AAEjD,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAc,YAAA,CAAA;EA9D1B,MAAA;EACW,MAAA,CAAA;GAAA,UAAA;GAAkB,SACnB,CAAC,QAAQ;GAAC,UACT;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+CT,iBAEgB,wBAAwB;GAAM,MACzC;IACJ,OAAO;IACP,MAAM;IACN,WAAW;IACX,WAAW;IACX,sBAAsB;GACvB;GAAA,eACc,CAAC,sBAAsB,oBAAoB,CAAC;GAAC,QAAA,CAAA,yWAAA;EAAA,CAAA"}
|
|
1
|
+
{"version":3,"file":"tectra-ng-blocks-wizard.mjs","names":[],"sources":["../../../../packages/blocks/wizard/src/wizard.icons.ts","../../../../packages/blocks/wizard/src/wizard.theme.ts","../../../../packages/blocks/wizard/src/wizard-layout.component.ts","../../../../packages/blocks/wizard/src/wizard-progress.component.ts","../../../../packages/blocks/wizard/src/wizard-step-head.component.ts","../../../../packages/blocks/wizard/src/wizard-scene.styles.ts","../../../../packages/blocks/wizard/src/wizard-stage.component.ts","../../../../packages/blocks/wizard/src/wizard-scene.directive.ts","../../../../packages/blocks/wizard/src/wizard-footer.component.ts"],"sourcesContent":["import { TxIconSet, txIconArrowLeft, txIconArrowRight, txIconForward } from '@tectra-ng/icons';\n\nexport const WIZARD_ICON_DEFAULTS: TxIconSet = {\n 'arrow-left': txIconArrowLeft,\n 'arrow-right': txIconArrowRight,\n forward: txIconForward,\n};\n","import { wizardTokens } from '@tectra-ng/themes';\n\nexport const WIZARD_THEME = {\n wizard: wizardTokens,\n};\n","import { ChangeDetectionStrategy, Component, computed, input } from '@angular/core';\nimport { injectPassThrough, injectTokens, injectUnstyled, TxPassThrough, TxPassThroughOptions } from '@tectra-ng/core/config';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\nimport { TectraDeepPartial, TectraWizardTokens, toStyleObject } from '@tectra-ng/themes';\nimport { TxWizardLayoutPart, TxWizardResponsive } from './wizard.types';\nimport { provideTxIconDefaults } from '@tectra-ng/icons';\nimport { WIZARD_ICON_DEFAULTS } from './wizard.icons';\nimport { WIZARD_THEME } from './wizard.theme';\n\n/**\n * The frame of a full-screen wizard: the step with its header, body and footer, and a visual stage\n * beside it.\n */\n@Component({\n selector: 'tx-wizard-layout',\n template: `\n <div class=\"tx-wizard-layout__grid\">\n <section class=\"tx-wizard-layout__panel\" [class]=\"passThrough().panel?.class\" [style]=\"passThrough().panel?.style\">\n <div class=\"tx-wizard-layout__inner\">\n <div class=\"tx-wizard-layout__header\" [class]=\"passThrough().header?.class\" [style]=\"passThrough().header?.style\">\n <ng-content select=\"[txWizardHeader]\" />\n </div>\n <div class=\"tx-wizard-layout__main\">\n <div class=\"tx-wizard-layout__body\" [class]=\"passThrough().body?.class\" [style]=\"passThrough().body?.style\">\n <ng-content select=\"[txWizardBody]\" />\n </div>\n <div class=\"tx-wizard-layout__footer\" [class]=\"passThrough().footer?.class\" [style]=\"passThrough().footer?.style\">\n <ng-content select=\"[txWizardFooter]\" />\n </div>\n </div>\n </div>\n </section>\n <aside class=\"tx-wizard-layout__visual\" [class]=\"passThrough().visual?.class\" [style]=\"passThrough().visual?.style\">\n <ng-content select=\"[txWizardVisual]\" />\n </aside>\n </div>\n `,\n styleUrl: './wizard-layout.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-wizard-layout',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[attr.data-responsive]': 'responsive()',\n },\n viewProviders: [provideTxIconDefaults(WIZARD_ICON_DEFAULTS)],\n})\nexport class TxWizardLayout {\n private readonly wizardTheme = injectTokens(WIZARD_THEME);\n\n readonly responsive = input<TxWizardResponsive>('viewport');\n readonly dt = input<TectraDeepPartial<TectraWizardTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxWizardLayoutPart, TxWizardLayout> | 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('wizardLayout', this, this.pt, this.ptOptions);\n readonly hostStyle = computed(() => ({ ...toStyleObject(this.dt(), '--tx-wizard'), ...this.passThrough().root?.style }));\n}\n","import { ChangeDetectionStrategy, Component, computed, input, numberAttribute } from '@angular/core';\nimport { injectPassThrough, injectTokens, injectUnstyled, TxPassThrough, TxPassThroughOptions } from '@tectra-ng/core/config';\nimport { injectTranslations } from '@tectra-ng/core/i18n';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\nimport { TectraDeepPartial, TectraWizardTokens, toStyleObject } from '@tectra-ng/themes';\nimport { TxWizardProgressPart } from './wizard.types';\nimport { provideTxIconDefaults } from '@tectra-ng/icons';\nimport { WIZARD_ICON_DEFAULTS } from './wizard.icons';\nimport { WIZARD_THEME } from './wizard.theme';\n\n/** The progress of a wizard as one segment per step. */\n@Component({\n selector: 'tx-wizard-progress',\n template: `\n @if (label()) {\n <span class=\"tx-wizard-progress__label\" aria-hidden=\"true\" [class]=\"passThrough().label?.class\" [style]=\"passThrough().label?.style\">{{ label() }}</span>\n }\n <ol class=\"tx-wizard-progress__segments\" [attr.aria-label]=\"label() || translations().wizardProgress\" [class]=\"passThrough().segments?.class\" [style]=\"passThrough().segments?.style\">\n @for (segment of segments(); track $index; let position = $index) {\n <li\n class=\"tx-wizard-progress__segment\"\n [class.tx-wizard-progress__segment--done]=\"position < current()\"\n [class.tx-wizard-progress__segment--current]=\"position === current()\"\n [attr.aria-current]=\"position === current() ? 'step' : null\"\n [attr.aria-label]=\"stepLabels()[position] || null\"\n [class]=\"passThrough().segment?.class\"\n [style]=\"passThrough().segment?.style\"\n >\n <span class=\"tx-wizard-progress__fill\"></span>\n </li>\n }\n </ol>\n `,\n styleUrl: './wizard-progress.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-wizard-progress',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n },\n viewProviders: [provideTxIconDefaults(WIZARD_ICON_DEFAULTS)],\n})\nexport class TxWizardProgress {\n private readonly wizardTheme = injectTokens(WIZARD_THEME);\n\n readonly total = input.required<number, unknown>({ transform: numberAttribute });\n readonly current = input.required<number, unknown>({ transform: numberAttribute });\n readonly label = input<string | undefined>(undefined);\n readonly stepLabels = input<readonly string[]>([]);\n readonly dt = input<TectraDeepPartial<TectraWizardTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxWizardProgressPart, TxWizardProgress> | 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('wizardProgress', this, this.pt, this.ptOptions);\n protected readonly translations = injectTranslations();\n protected readonly segments = computed(() => Array.from({ length: Math.max(this.total(), 0) }));\n readonly hostStyle = computed(() => ({ ...toStyleObject(this.dt(), '--tx-wizard'), ...this.passThrough().root?.style }));\n}\n","import { ChangeDetectionStrategy, Component, computed, input } from '@angular/core';\nimport { injectPassThrough, injectTokens, injectUnstyled, TxPassThrough, TxPassThroughOptions } from '@tectra-ng/core/config';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\nimport { provideTxIconDefaults, TxIcon, TxIconName } from '@tectra-ng/icons';\nimport { TectraDeepPartial, TectraWizardTokens, toStyleObject } from '@tectra-ng/themes';\nimport { TxPill } from '@tectra-ng/ui/pill';\nimport { TxWizardStepHeadPart } from './wizard.types';\nimport { WIZARD_ICON_DEFAULTS } from './wizard.icons';\nimport { WIZARD_THEME } from './wizard.theme';\n\n/** The heading of a wizard step: an icon, a title and a lead text. */\n@Component({\n selector: 'tx-wizard-step-head',\n imports: [TxIcon, TxPill],\n template: `\n @if (icon(); as name) {\n <span class=\"tx-wizard-step-head__icon\" aria-hidden=\"true\" [class]=\"passThrough().icon?.class\" [style]=\"passThrough().icon?.style\">\n <tx-icon [name]=\"name\" />\n </span>\n }\n <div class=\"tx-wizard-step-head__title-row\">\n <h1 class=\"tx-wizard-step-head__title\" [class]=\"passThrough().title?.class\" [style]=\"passThrough().title?.style\">{{ title() }}</h1>\n @if (badge()) {\n <tx-pill tone=\"neutral\" size=\"small\" [value]=\"badge()\" [unstyled]=\"isUnstyled()\" />\n }\n </div>\n @if (lead()) {\n <p class=\"tx-wizard-step-head__lead\" [class]=\"passThrough().lead?.class\" [style]=\"passThrough().lead?.style\">{{ lead() }}</p>\n }\n `,\n styleUrl: './wizard-step-head.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-wizard-step-head',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[attr.title]': 'null',\n },\n viewProviders: [provideTxIconDefaults(WIZARD_ICON_DEFAULTS)],\n})\nexport class TxWizardStepHead {\n private readonly wizardTheme = injectTokens(WIZARD_THEME);\n\n readonly title = input.required<string>();\n readonly icon = input<TxIconName | (string & {}) | undefined>(undefined);\n readonly lead = input<string | undefined>(undefined);\n readonly badge = input<string | undefined>(undefined);\n readonly dt = input<TectraDeepPartial<TectraWizardTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxWizardStepHeadPart, TxWizardStepHead> | 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('wizardStepHead', this, this.pt, this.ptOptions);\n readonly hostStyle = computed(() => ({ ...toStyleObject(this.dt(), '--tx-wizard'), ...this.passThrough().root?.style }));\n}\n","import { ChangeDetectionStrategy, Component, ViewEncapsulation } from '@angular/core';\nimport { injectTokens } from '@tectra-ng/core/config';\nimport { WIZARD_THEME } from './wizard.theme';\nimport { provideTxIconDefaults } from '@tectra-ng/icons';\nimport { WIZARD_ICON_DEFAULTS } from './wizard.icons';\n\n@Component({\n selector: 'tx-wizard-scene-styles',\n template: '',\n styleUrl: './wizard-scene.styles.scss',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n viewProviders: [provideTxIconDefaults(WIZARD_ICON_DEFAULTS)],\n})\nexport class TxWizardSceneStyles {\n private readonly wizardTheme = injectTokens(WIZARD_THEME);\n}\n","import { DecimalPipe } from '@angular/common';\nimport { afterRenderEffect, ChangeDetectionStrategy, Component, computed, ElementRef, inject, input, viewChild } from '@angular/core';\nimport { TxStyleLoader } from '@tectra-ng/core/styles';\nimport { injectPassThrough, injectTokens, injectUnstyled, TxPassThrough, TxPassThroughOptions } from '@tectra-ng/core/config';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\nimport { TectraDeepPartial, TectraWizardTokens, toStyleObject } from '@tectra-ng/themes';\nimport { TxWizardLayout } from './wizard-layout.component';\nimport { TxWizardSceneStyles } from './wizard-scene.styles';\nimport { TxWizardDirection, TxWizardStagePart } from './wizard.types';\nimport { provideTxIconDefaults } from '@tectra-ng/icons';\nimport { WIZARD_ICON_DEFAULTS } from './wizard.icons';\nimport { WIZARD_THEME } from './wizard.theme';\n\n/** The illustrated stage of a wizard; its scenes slide in the direction of the move. */\n@Component({\n selector: 'tx-wizard-stage',\n imports: [DecimalPipe],\n template: `\n <ng-content select=\"[txWizardBackdrop]\" />\n <div class=\"tx-wizard-stage__inner\">\n <div class=\"tx-wizard-stage__stage\" aria-hidden=\"true\" [class]=\"passThrough().stage?.class\" [style]=\"passThrough().stage?.style\">\n <ng-content />\n </div>\n @if (caption(); as text) {\n <div #captionElement class=\"tx-wizard-stage__caption\" animate.enter=\"tx-wizard-stage__caption--enter\" [class]=\"passThrough().caption?.class\" [style]=\"passThrough().caption?.style\">\n @if (number() !== undefined) {\n <span class=\"tx-wizard-stage__number\">{{ number() | number: '2.0-0' }}</span>\n }\n <span class=\"tx-wizard-stage__title\">{{ text }}</span>\n </div>\n }\n </div>\n `,\n styleUrl: './wizard-stage.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-wizard-stage',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[attr.data-direction]': 'direction()',\n '[attr.data-responsive]': 'responsive()',\n },\n viewProviders: [provideTxIconDefaults(WIZARD_ICON_DEFAULTS)],\n})\nexport class TxWizardStage {\n private readonly wizardTheme = injectTokens(WIZARD_THEME);\n\n private readonly layout = inject(TxWizardLayout, { optional: true });\n\n readonly direction = input<TxWizardDirection>('forward');\n readonly number = input<number | undefined>(undefined);\n readonly caption = input<string | undefined>(undefined);\n readonly dt = input<TectraDeepPartial<TectraWizardTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxWizardStagePart, TxWizardStage> | 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('wizardStage', this, this.pt, this.ptOptions);\n protected readonly responsive = computed(() => this.layout?.responsive() ?? 'viewport');\n readonly hostStyle = computed(() => ({ ...toStyleObject(this.dt(), '--tx-wizard'), ...this.passThrough().root?.style }));\n\n private readonly captionElement = viewChild<ElementRef<HTMLElement>>('captionElement');\n\n constructor() {\n inject(TxStyleLoader).load(TxWizardSceneStyles);\n let shown: string | undefined;\n afterRenderEffect(() => {\n const text = this.caption();\n const element = this.captionElement()?.nativeElement;\n if (element && shown !== undefined && text !== shown) {\n replayCaption(element);\n }\n shown = element ? text : undefined;\n });\n }\n}\n\nconst CAPTION_ENTER = 'tx-wizard-stage__caption--enter';\n\nfunction replayCaption(element: HTMLElement): void {\n element.classList.remove(CAPTION_ENTER);\n element.getBoundingClientRect();\n element.classList.add(CAPTION_ENTER);\n}\n","import { Directive, computed, inject, input } from '@angular/core';\nimport { injectTokens, injectUnstyled } from '@tectra-ng/core/config';\nimport { TxStyleLoader } from '@tectra-ng/core/styles';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\nimport { TxWizardSceneStyles } from './wizard-scene.styles';\nimport { TxWizardDirection } from './wizard.types';\nimport { WIZARD_THEME } from './wizard.theme';\nimport { provideTxIconDefaults } from '@tectra-ng/icons';\nimport { WIZARD_ICON_DEFAULTS } from './wizard.icons';\n\n/**\n * Makes any element a wizard scene: with `animate.enter=\"tx-wizard-scene--enter\"` and\n * `animate.leave=\"tx-wizard-scene--leave\"` it slides in and out like the scenes of `tx-wizard-stage`, also\n * outside a stage.\n */\n@Directive({\n selector: '[txWizardScene]',\n host: {\n class: 'tx-wizard-scene',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[style.--tx-wizard-direction]': 'shift()',\n },\n providers: [provideTxIconDefaults(WIZARD_ICON_DEFAULTS)],\n})\nexport class TxWizardScene {\n private readonly wizardTheme = injectTokens(WIZARD_THEME);\n\n readonly direction = input<TxWizardDirection | null | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly isUnstyled = injectUnstyled(this.unstyled);\n protected readonly shift = computed(() => {\n const direction = this.direction();\n return direction ? (direction === 'back' ? -1 : 1) : null;\n });\n\n constructor() {\n inject(TxStyleLoader).load(TxWizardSceneStyles);\n }\n}\n","import { ChangeDetectionStrategy, Component, booleanAttribute, computed, input, output } from '@angular/core';\nimport { injectPassThrough, injectTokens, injectUnstyled, TxPassThrough, TxPassThroughOptions } from '@tectra-ng/core/config';\nimport { injectTranslations } from '@tectra-ng/core/i18n';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\nimport { provideTxIconDefaults, TxIconName } from '@tectra-ng/icons';\nimport { TectraDeepPartial, TectraWizardTokens, toStyleObject } from '@tectra-ng/themes';\nimport { TxButton } from '@tectra-ng/ui/button';\nimport { TxWizardFooterPart } from './wizard.types';\nimport { WIZARD_ICON_DEFAULTS } from './wizard.icons';\nimport { WIZARD_THEME } from './wizard.theme';\n\n/** The back, skip and next buttons of a wizard. */\n@Component({\n selector: 'tx-wizard-footer',\n imports: [TxButton],\n template: `\n @if (showBack()) {\n <button\n txButton\n type=\"button\"\n severity=\"secondary\"\n outlined\n icon=\"arrow-left\"\n [disabled]=\"loading()\"\n [unstyled]=\"isUnstyled()\"\n [class]=\"passThrough().back?.class\"\n [style]=\"passThrough().back?.style\"\n (click)=\"back.emit()\"\n >\n {{ backLabel() || translations().wizardBack }}\n </button>\n }\n <div class=\"tx-wizard-footer__end\">\n @if (skipLabel(); as skipText) {\n <button\n txButton\n type=\"button\"\n severity=\"secondary\"\n text\n [disabled]=\"loading()\"\n [unstyled]=\"isUnstyled()\"\n [class]=\"passThrough().skip?.class\"\n [style]=\"passThrough().skip?.style\"\n (click)=\"skip.emit()\"\n >\n {{ skipText }}\n </button>\n }\n <button\n txButton\n type=\"button\"\n [icon]=\"nextIcon()\"\n [loading]=\"loading()\"\n [disabled]=\"loading()\"\n [unstyled]=\"isUnstyled()\"\n [class]=\"passThrough().next?.class\"\n [style]=\"passThrough().next?.style\"\n (click)=\"next.emit()\"\n >\n {{ nextLabel() || translations().wizardNext }}\n </button>\n </div>\n `,\n styleUrl: './wizard-footer.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-wizard-footer',\n role: 'group',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n },\n viewProviders: [provideTxIconDefaults(WIZARD_ICON_DEFAULTS)],\n})\nexport class TxWizardFooter {\n private readonly wizardTheme = injectTokens(WIZARD_THEME);\n\n readonly nextLabel = input<string | null | undefined>(undefined);\n readonly nextIcon = input<TxIconName | (string & {})>('arrow-right');\n readonly backLabel = input<string | null | undefined>(undefined);\n readonly showBack = input<boolean, unknown>(true, { transform: booleanAttribute });\n readonly skipLabel = input<string | null | undefined>(undefined);\n readonly loading = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly dt = input<TectraDeepPartial<TectraWizardTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxWizardFooterPart, TxWizardFooter> | undefined>(undefined);\n readonly ptOptions = input<TxPassThroughOptions | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly back = output<void>();\n readonly next = output<void>();\n readonly skip = output<void>();\n\n readonly isUnstyled = injectUnstyled(this.unstyled);\n readonly passThrough = injectPassThrough('wizardFooter', this, this.pt, this.ptOptions);\n protected readonly translations = injectTranslations();\n readonly hostStyle = computed(() => ({ ...toStyleObject(this.dt(), '--tx-wizard'), ...this.passThrough().root?.style }));\n}\n"],"mappings":";;;;;;;;;;;AAEA,MAAa,uBAAkC;CAC7C,cAAc;CACd,eAAe;CACf,SAAS;AACV;ACJD,MAAa,eAAe,EAC1B,QAAQ,aACT;AC4CD,IAAa,iBAAb,MAAa,eAAc;CACR,cAAc,aAAa,YAAY;CAE/C,aAAa,MAA0B,YAAW,GAAA,YAAA,CAAA,EAAA,WAAA,aAAA,CAAA,+BAAA,CAAA,CAAA;CAClD,KAAK,MAAyD,QAAU,GAAA,YAAA,CAAA,EAAA,WAAA,KAAA,CAAA,+BAAA,CAAA,CAAA;CACxE,KAAK,MAAqE,QAAU,GAAA,YAAA,CAAA,EAAA,WAAA,KAAA,CAAA,+BAAA,CAAA,CAAA;CACpF,YAAY,MAAwC,QAAU,GAAA,YAAA,CAAA,EAAA,WAAA,YAAA,CAAA,+BAAA,C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;GAAA;EAAA;EAAA,SAAA;GAAA,MAAA;GAAA,MAAA;GAAA,MAAA;EAAA;EAAA,MAAA;GAAA,YAAA,EAAA,QAAA,QAAA;GAAA,YAAA;IAAA,SAAA;IAAA,SAAA;IAAA,oBAAA;GAAA;GAAA,gBAAA;EAAA;EAAA,UAAA;EAAA,UA3Df;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA+CT,UAAA;EAAA,QAAA,CAAA,yWAAA;EAAA,cAAA,CAAA;GAAA,MAAA;GAAA,MAhDS;GAAQ,UAAA;GAAA,QAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;GAAA;EAAA,CAAA;EAAA,eA0DH,CAAC,sBAAsB,oBAAoB,CAAC;EAAC,iBAAA,GAAA,wBAAA;CAAA,CAAA;;AAEjD,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAc,YAAA,CAAA;EA9D1B,MAAA;EACW,MAAA,CAAA;GAAA,UAAA;GAAkB,SACnB,CAAC,QAAQ;GAAC,UACT;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+CT,iBAEgB,wBAAwB;GAAM,MACzC;IACJ,OAAO;IACP,MAAM;IACN,WAAW;IACX,WAAW;IACX,sBAAsB;GACvB;GAAA,eACc,CAAC,sBAAsB,oBAAoB,CAAC;GAAC,QAAA,CAAA,yWAAA;EAAA,CAAA"}
|
package/filters-panel/README.md
CHANGED
|
@@ -16,7 +16,26 @@ A card that holds the filter fields above a table or a list. Users choose which
|
|
|
16
16
|
</tx-filters-panel>
|
|
17
17
|
```
|
|
18
18
|
|
|
19
|
-
Every field wrapper carries `txFilterField`; fields may sit at any depth
|
|
19
|
+
Every field wrapper carries `txFilterField`; fields may sit at any depth and may come from `@for` or `@if`, but only direct children of the panel follow the saved order. A field whose `filterActive` is `true` is always shown and cannot be hidden.
|
|
20
|
+
|
|
21
|
+
## Panel in a wrapper component
|
|
22
|
+
|
|
23
|
+
Fields and the reset action find their panel through the `TX_FILTERS_PANEL` token. When they are projected into a component that wraps `tx-filters-panel`, Angular resolves them where they are written and they cannot see the panel. Add `provideTxFiltersPanelRelay()` to the wrapper's `providers`: the panel inside it then lists, hides and orders the projected fields and clicks the projected reset action.
|
|
24
|
+
|
|
25
|
+
```ts
|
|
26
|
+
@Component({
|
|
27
|
+
selector: 'orders-filters',
|
|
28
|
+
imports: [TxFiltersPanel],
|
|
29
|
+
providers: [provideTxFiltersPanelRelay()],
|
|
30
|
+
template: `
|
|
31
|
+
<tx-filters-panel stateKey="orders-filters">
|
|
32
|
+
<ng-content />
|
|
33
|
+
<ng-content select="[txFiltersActions]" ngProjectAs="[txFiltersActions]" />
|
|
34
|
+
</tx-filters-panel>
|
|
35
|
+
`,
|
|
36
|
+
})
|
|
37
|
+
export class OrdersFilters {}
|
|
38
|
+
```
|
|
20
39
|
|
|
21
40
|
## Inputs
|
|
22
41
|
| Name | Description |
|
package/kanban/README.md
CHANGED
|
@@ -26,6 +26,11 @@ A board of columns with cards. Cards move inside a column and between columns, w
|
|
|
26
26
|
| columnDragLabel | Name of the column handle; translated by default |
|
|
27
27
|
| pageSize | Cards per column before "Show N more"; `0` shows all (default 30) |
|
|
28
28
|
| height | Height of the board, e.g. `70vh`; the columns then scroll inside |
|
|
29
|
+
| cardTemplate | The card as a `TemplateRef` (context `$implicit` item, `column`) — for a component that wraps the board and gets the template from its own content; wins over `txKanbanCard` |
|
|
30
|
+
| columnHeaderTemplate | Own column header as a `TemplateRef` (context `$implicit` column); wins over `txKanbanColumnHeader` |
|
|
31
|
+
| columnTopTemplate | Content under the header as a `TemplateRef`; wins over `txKanbanColumnTop` |
|
|
32
|
+
| columnFooterTemplate | Content at the bottom of a column as a `TemplateRef`; wins over `txKanbanColumnFooter` |
|
|
33
|
+
| emptyTemplate | Content of an empty column as a `TemplateRef`; wins over `txKanbanEmpty` |
|
|
29
34
|
| dt | Design tokens of this instance (`kanban`) |
|
|
30
35
|
| pt | Classes and styles of the parts: `root`, `column`, `header`, `list`, `card`, `empty` |
|
|
31
36
|
| ptOptions | How `pt` merges with the global pass-through |
|
|
@@ -40,13 +45,26 @@ A board of columns with cards. Cards move inside a column and between columns, w
|
|
|
40
45
|
## Slots
|
|
41
46
|
| Name | Description |
|
|
42
47
|
|---|---|
|
|
43
|
-
| txKanbanCard |
|
|
48
|
+
| txKanbanCard | `<ng-template txKanbanCard [txKanbanCardOf]="columns" let-item let-column="column">` — the card; needed unless `cardTemplate` is set |
|
|
44
49
|
| txKanbanColumnHeader | `<ng-template txKanbanColumnHeader let-column>` — own header instead of the title and the count |
|
|
45
50
|
| txKanbanColumnTop | `<ng-template txKanbanColumnTop let-column>` — under the header, e.g. a quick-add field |
|
|
46
51
|
| txKanbanColumnFooter | `<ng-template txKanbanColumnFooter let-column>` — at the bottom of a column |
|
|
47
52
|
| txKanbanEmpty | `<ng-template txKanbanEmpty let-column>` — content of an empty column |
|
|
48
53
|
| default | After the last column, e.g. an "Add column" button |
|
|
49
54
|
|
|
55
|
+
Every slot also has a template input (`cardTemplate`, `columnHeaderTemplate`, `columnTopTemplate`, `columnFooterTemplate`, `emptyTemplate`). Angular finds `<ng-template txKanbanCard>` only between the `tx-kanban` tags, so a component that wraps the board takes the template from its own content and passes it on; when both are there, the input wins.
|
|
56
|
+
|
|
57
|
+
```ts
|
|
58
|
+
@Component({
|
|
59
|
+
selector: 'task-board',
|
|
60
|
+
imports: [TxKanban],
|
|
61
|
+
template: `<tx-kanban [columns]="columns()" [itemId]="taskId" [cardTemplate]="card()?.template" />`,
|
|
62
|
+
})
|
|
63
|
+
export class TaskBoard<T> {
|
|
64
|
+
readonly card = contentChild(TxKanbanCard<T>);
|
|
65
|
+
}
|
|
66
|
+
```
|
|
67
|
+
|
|
50
68
|
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
69
|
|
|
52
70
|
## Inputs — templates
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tectra-ng/blocks",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.5",
|
|
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.5",
|
|
33
|
+
"@tectra-ng/icons": "^0.4.5",
|
|
34
|
+
"@tectra-ng/qr": "^0.4.5",
|
|
35
|
+
"@tectra-ng/themes": "^0.4.5",
|
|
36
|
+
"@tectra-ng/ui": "^0.4.5"
|
|
37
37
|
},
|
|
38
38
|
"peerDependenciesMeta": {
|
|
39
39
|
"@angular/router": {
|
package/page-header/README.md
CHANGED
|
@@ -8,7 +8,7 @@ The header of a page: a title, an optional subtitle and the page actions on the
|
|
|
8
8
|
</tx-page-header>
|
|
9
9
|
```
|
|
10
10
|
|
|
11
|
-
The space below the header is set from the outside (a class or a style on `tx-page-header`). A solid `secondary` button among the actions gets the card background and
|
|
11
|
+
The space below the header is set from the outside (a class or a style on `tx-page-header`). A solid `secondary` button among the actions gets the card background, border and shadow (`secondaryButton` tokens: `background`, `hoverBackground`, `activeBackground`, `borderColor`, `shadow` — none by default), so it stays visible on the page background.
|
|
12
12
|
|
|
13
13
|
## Inputs
|
|
14
14
|
| Name | Description |
|
package/public-header/README.md
CHANGED
|
@@ -30,6 +30,12 @@ The panel closes on a link or a button inside, on Escape (the focus goes back to
|
|
|
30
30
|
| ptOptions | How `pt` merges with the global pass-through |
|
|
31
31
|
| unstyled | Removes the tectra styles |
|
|
32
32
|
|
|
33
|
+
## Outputs
|
|
34
|
+
| Name | Description |
|
|
35
|
+
|---|---|
|
|
36
|
+
| languageChange | The code of the language chosen in the preferences; the tectra locale has already switched — mirror it into the app's own translations here, or app-wide with `provideTxLocaleSync` |
|
|
37
|
+
| modeChange | The theme mode chosen in the preferences |
|
|
38
|
+
|
|
33
39
|
## Slots
|
|
34
40
|
| Name | Description |
|
|
35
41
|
|---|---|
|
|
@@ -6,7 +6,7 @@ A segmented switch of the interface language: short codes in a capsule with a sl
|
|
|
6
6
|
<tx-switch-language [(value)]="language" (valueChange)="translate.use($event)" />
|
|
7
7
|
```
|
|
8
8
|
|
|
9
|
-
Give your own list with `languages` (`{ code, name, short }`). With `syncLocale` off the switch only reports the choice.
|
|
9
|
+
Give your own list with `languages` (`{ code, name, short }`). With `syncLocale` off the switch only reports the choice. With `syncLocale` on, `provideTectra({ localeStorageKey: 'locale' })` remembers the choice between visits and restores it before the first render, and `provideTxLocaleSync((code) => …)` from `@tectra-ng/core/i18n` mirrors every change into the app's own translations.
|
|
10
10
|
|
|
11
11
|
## Inputs
|
|
12
12
|
| Name | Description |
|
|
@@ -7,7 +7,7 @@ The language switch and the theme button together: in one capsule for a top bar,
|
|
|
7
7
|
<tx-topbar-preferences layout="stacked" />
|
|
8
8
|
```
|
|
9
9
|
|
|
10
|
-
It is built from `tx-switch-language` and `tx-switch-theme`; see their pages for the behaviour.
|
|
10
|
+
It is built from `tx-switch-language` and `tx-switch-theme`; see their pages for the behaviour. The theme choice is remembered with `storageKey` of `provideTectra`, the language with `localeStorageKey`.
|
|
11
11
|
|
|
12
12
|
## Inputs
|
|
13
13
|
| Name | Description |
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { TxIconName } from "@tectra-ng/icons";
|
|
2
2
|
import { TxPassThroughOptions } from "@tectra-ng/core/config";
|
|
3
3
|
import { TectraActionsMenuTokens, TectraDeepPartial } from "@tectra-ng/themes";
|
|
4
|
+
import { TxPopoverTarget } from "@tectra-ng/ui/popover";
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
6
|
/** One action of `tx-actions-menu`. */
|
|
6
7
|
export interface TxActionsMenuItem {
|
|
@@ -25,6 +26,7 @@ export declare class TxActionsMenu {
|
|
|
25
26
|
private readonly actionsMenuTheme;
|
|
26
27
|
private readonly popover;
|
|
27
28
|
private readonly list;
|
|
29
|
+
private readonly trigger;
|
|
28
30
|
private pending;
|
|
29
31
|
/** Required. Actions (`TxActionsMenuItem[]`: `id`, `label`, optional `icon` and `danger`) */
|
|
30
32
|
readonly items: import("@angular/core").InputSignal<readonly TxActionsMenuItem[]>;
|
|
@@ -57,6 +59,13 @@ export declare class TxActionsMenu {
|
|
|
57
59
|
};
|
|
58
60
|
};
|
|
59
61
|
protected readonly name: import("@angular/core").Signal<string>;
|
|
62
|
+
/** Signal: whether the menu is open */
|
|
63
|
+
readonly isOpen: import("@angular/core").Signal<boolean>;
|
|
64
|
+
/** Opens the menu at an element or at `event.currentTarget` — a row, a custom button, a context-menu click — or at its own button */
|
|
65
|
+
open(target?: TxPopoverTarget): void;
|
|
66
|
+
/** Closes the menu when it is open at that target, otherwise opens it there */
|
|
67
|
+
toggle(target?: TxPopoverTarget): void;
|
|
68
|
+
/** Closes the menu */
|
|
60
69
|
close(): void;
|
|
61
70
|
protected select(item: TxActionsMenuItem): void;
|
|
62
71
|
protected onClosed(): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tectra-ng-blocks-actions-menu.d.ts","names":[],"sources":["../../../../packages/blocks/actions-menu/src/actions-menu.types.ts","../../../../packages/blocks/actions-menu/src/actions-menu.component.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"tectra-ng-blocks-actions-menu.d.ts","names":[],"sources":["../../../../packages/blocks/actions-menu/src/actions-menu.types.ts","../../../../packages/blocks/actions-menu/src/actions-menu.component.ts"],"mappings":";;;;;;iBAGiB;;EAEf;;EAEA;;EAEA,OAAO;;EAEP;;;YAIU;;YAGA;;;;;qBCaC;mBACM;mBAEA;mBACA;mBACA;UACT;;WAEC,+BAAK,qBAAA;;WACL,iCAAO;;WACP,mCAAS;;WACT,8BAAI,YAAA;;WACJ,4BAAE,YAAA,kBAAA;;WACF,4BAAE,YAAA,QAAA,OAAA,oDAAA,mBAAA;;WACF,mCAAS,YAAA;;WACT,kCAAQ;;WAER,oCAAU;WAEV,oCAAU;WACV,qCAAW,OAAA,QAAA,OAAA,oDAAA;qBACD,sCAAY,wCAAA;qBACZ,oCAAU,OAAA;WACpB,mCAAS;;;qBACC;;;;;qBACA,8BAAI;;WACd,gCAAM;;EAEf,KAAK,SAAS;;EAId,OAAO,SAAS;;EAIhB;YAIU,OAAO,MAAM;YAKb;YAQA,UAAU,OAAO;SArDhB,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;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"}
|
|
@@ -2,7 +2,7 @@ import * as i0 from "@angular/core";
|
|
|
2
2
|
import { OnInit } from "@angular/core";
|
|
3
3
|
import { TxPassThroughOptions } from "@tectra-ng/core/config";
|
|
4
4
|
import { TectraAppLayoutTokens, TectraDeepPartial } from "@tectra-ng/themes";
|
|
5
|
-
import { TxPanelMenuItem } from "@tectra-ng/ui/panel-menu";
|
|
5
|
+
import { TxPanelMenuItem, TxPanelMenuTranslate } from "@tectra-ng/ui/panel-menu";
|
|
6
6
|
/**
|
|
7
7
|
* Look of the backdrop of `tx-app-layout`: `spectrum` (primary, purple and cyan tints) or `accent`
|
|
8
8
|
* (primary tints only).
|
|
@@ -11,7 +11,7 @@ export type TxAppLayoutBackdrop = 'spectrum' | 'accent';
|
|
|
11
11
|
/** What the layout breakpoint measures: the `viewport` (window) or the `container` (the layout itself). */
|
|
12
12
|
export type TxAppLayoutResponsive = 'viewport' | 'container';
|
|
13
13
|
/** Names of the parts of `tx-app-layout` that its `pt` input can style. */
|
|
14
|
-
export type TxAppLayoutPart = 'root' | 'sidebar' | 'brand' | 'menu' | 'topbar' | 'menuButton' | 'content' | 'mask';
|
|
14
|
+
export type TxAppLayoutPart = 'root' | 'sidebar' | 'brand' | 'logo' | 'menu' | 'topbar' | 'menuButton' | 'content' | 'mask';
|
|
15
15
|
/**
|
|
16
16
|
* The shell of a signed-in app: a sidebar menu, a top bar, the page and a footer. On a desktop the sidebar is a narrow rail of icons that opens over the page while the pointer or the keyboard focus is on it; its pin button keeps it open and moves the page aside. Below 1024px the menu hides behind a button in the top bar and slides in over a mask.
|
|
17
17
|
* @see https://tectra-ng.com/components/app-layout
|
|
@@ -43,9 +43,11 @@ export declare class TxAppLayout implements OnInit {
|
|
|
43
43
|
readonly responsive: import("@angular/core").InputSignal<TxAppLayoutResponsive>;
|
|
44
44
|
/** Name of the menu, its button and the sidebar; the translated "Menu" by default */
|
|
45
45
|
readonly menuLabel: import("@angular/core").InputSignal<string | undefined>;
|
|
46
|
+
/** Translate function of the menu: item labels, section titles and item titles are keys passed through it (as `translate` of `tx-panel-menu`) */
|
|
47
|
+
readonly translate: import("@angular/core").InputSignal<TxPanelMenuTranslate | undefined>;
|
|
46
48
|
/** Design tokens of this instance (`appLayout`) */
|
|
47
49
|
readonly dt: import("@angular/core").InputSignal<TectraDeepPartial<TectraAppLayoutTokens> | undefined>;
|
|
48
|
-
/** Classes and styles of the parts: `root`, `sidebar`, `brand`, `menu`, `topbar`, `menuButton`, `content`, `mask` */
|
|
50
|
+
/** Classes and styles of the parts: `root`, `sidebar`, `brand`, `logo`, `menu`, `topbar`, `menuButton`, `content`, `mask` */
|
|
49
51
|
readonly pt: import("@angular/core").InputSignal<Partial<Record<TxAppLayoutPart, import("@tectra-ng/core/config").TxPassThroughValue<TxAppLayout>>> | undefined>;
|
|
50
52
|
/** How `pt` merges with the global pass-through */
|
|
51
53
|
readonly ptOptions: import("@angular/core").InputSignal<TxPassThroughOptions | undefined>;
|
|
@@ -135,6 +137,11 @@ export declare class TxAppLayout implements OnInit {
|
|
|
135
137
|
"required": false;
|
|
136
138
|
"isSignal": true;
|
|
137
139
|
};
|
|
140
|
+
"translate": {
|
|
141
|
+
"alias": "translate";
|
|
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-app-layout.d.ts","names":[],"sources":["../../../../packages/blocks/app-layout/src/app-layout.types.ts","../../../../packages/blocks/app-layout/src/app-layout.component.ts"],"mappings":";;;;;;;;;YAIY;;YAGA;;YAGA;;;;;qBC8CC,uBAAuB;mBACjB;mBAEA;mBACA;mBACA;;WAER,+BAAK,YAAA;;WACL,8BAAI;;WACJ,+BAAK;;WACL,kCAAQ;;WACR,iCAAO;;WACP,kCAAQ;;WACR,kCAAQ;;WACR,kCAAQ;;WACR,yCAAe,YAAA;;WACf,oCAAU,YAAA;;WACV,mCAAS;;WACT,4BAAE,YAAA,kBAAA;;WACF,4BAAE,YAAA,QAAA,OAAA,kDAAA,mBAAA;;WACF,mCAAS,YAAA;;WACT,kCAAQ;WAER,oCAAU;WACV,qCAAW,OAAA,QAAA,OAAA,kDAAA;qBACD,sCAAY,wCAAA;qBACZ;WACV,mCAAS;;;WAET,gCAAM;WACN,oCAAU;mBACF;mBACA;WACR,kCAAQ;WACR,8BAAI;qBACM,kCAAQ;;EAqC3B;EAOA;EAOA;EAIA;YAIU,WAAW;YAIX,UAAU,OAAO;YAIjB,WAAW,OAAO;YAOlB,eAAe,OAAO;YAMtB;UAOF;UAQA;UAaA;
|
|
1
|
+
{"version":3,"file":"tectra-ng-blocks-app-layout.d.ts","names":[],"sources":["../../../../packages/blocks/app-layout/src/app-layout.types.ts","../../../../packages/blocks/app-layout/src/app-layout.component.ts"],"mappings":";;;;;;;;;YAIY;;YAGA;;YAGA;;;;;qBC8CC,uBAAuB;mBACjB;mBAEA;mBACA;mBACA;;WAER,+BAAK,YAAA;;WACL,8BAAI;;WACJ,+BAAK;;WACL,kCAAQ;;WACR,iCAAO;;WACP,kCAAQ;;WACR,kCAAQ;;WACR,kCAAQ;;WACR,yCAAe,YAAA;;WACf,oCAAU,YAAA;;WACV,mCAAS;;WACT,mCAAS,YAAA;;WACT,4BAAE,YAAA,kBAAA;;WACF,4BAAE,YAAA,QAAA,OAAA,kDAAA,mBAAA;;WACF,mCAAS,YAAA;;WACT,kCAAQ;WAER,oCAAU;WACV,qCAAW,OAAA,QAAA,OAAA,kDAAA;qBACD,sCAAY,wCAAA;qBACZ;WACV,mCAAS;;;WAET,gCAAM;WACN,oCAAU;mBACF;mBACA;WACR,kCAAQ;WACR,8BAAI;qBACM,kCAAQ;;EAqC3B;EAOA;EAOA;EAIA;YAIU,WAAW;YAIX,UAAU,OAAO;YAIjB,WAAW,OAAO;YAOlB,eAAe,OAAO;YAMtB;UAOF;UAQA;UAaA;SAhJG,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;IAAW;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;MAAA;MAAA;MAAA;;;IAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { TxIconName } from "@tectra-ng/icons";
|
|
2
|
+
import { TxPanelMenuItem } from "@tectra-ng/ui/panel-menu";
|
|
2
3
|
import * as i0 from "@angular/core";
|
|
3
4
|
import { PipeTransform } from "@angular/core";
|
|
4
|
-
import { TxPanelMenuItem } from "@tectra-ng/ui/panel-menu";
|
|
5
5
|
import { TxPassThroughOptions } from "@tectra-ng/core/config";
|
|
6
6
|
import { TectraCommandPaletteTokens, TectraDeepPartial } from "@tectra-ng/themes";
|
|
7
7
|
/** One entry of `tx-command-palette`: a page to open or a command to run. */
|
|
@@ -23,8 +23,30 @@ export interface TxCommandPaletteItem {
|
|
|
23
23
|
/** Function to run when the entry is picked. */
|
|
24
24
|
command?: () => void;
|
|
25
25
|
}
|
|
26
|
+
/** Own texts of the keyboard hints in the palette footer; a missing one stays translated. */
|
|
27
|
+
export interface TxCommandPaletteHints {
|
|
28
|
+
/** Text next to the arrow keys. */
|
|
29
|
+
navigate?: string;
|
|
30
|
+
/** Text next to the Enter key. */
|
|
31
|
+
open?: string;
|
|
32
|
+
/** Text next to the Escape key. */
|
|
33
|
+
close?: string;
|
|
34
|
+
}
|
|
26
35
|
/** Names of the parts of `tx-command-palette` that its `pt` input can style. */
|
|
27
36
|
export type TxCommandPalettePart = 'root' | 'trigger' | 'overlay' | 'panel' | 'search' | 'results' | 'item' | 'footer';
|
|
37
|
+
/** Maps the icon of a menu item to a palette icon: `{ 'old-name': 'new-name' }` or a function of the item. */
|
|
38
|
+
export type TxMenuPaletteIcon = Readonly<Record<string, string>> | ((item: TxPanelMenuItem) => string | null | undefined);
|
|
39
|
+
/** Options of `menuPaletteItems`. */
|
|
40
|
+
export interface TxMenuPaletteOptions {
|
|
41
|
+
/** Group of the items, `pages` by default. */
|
|
42
|
+
group?: string;
|
|
43
|
+
/** Turns a menu label into the shown text, for menus whose labels are translation keys; section and parent titles too. */
|
|
44
|
+
translate?: (key: string) => string;
|
|
45
|
+
/** Maps the icon of a menu item to the icon shown in the palette; an icon it does not map stays as it is. */
|
|
46
|
+
icon?: TxMenuPaletteIcon;
|
|
47
|
+
/** Icon of an entry whose menu item has none, `file` by default. */
|
|
48
|
+
defaultIcon?: TxIconName | (string & {});
|
|
49
|
+
}
|
|
28
50
|
/**
|
|
29
51
|
* Keeps the palette items whose label or sublabel contains the query, ignoring case; all items for an
|
|
30
52
|
* empty query.
|
|
@@ -32,18 +54,22 @@ export type TxCommandPalettePart = 'root' | 'trigger' | 'overlay' | 'panel' | 's
|
|
|
32
54
|
export declare function filterPaletteItems<T extends TxCommandPaletteItem>(items: readonly T[], query: string | null | undefined): T[];
|
|
33
55
|
/**
|
|
34
56
|
* Turns a sidebar menu into palette items for its pages; hidden, disabled and separator entries are
|
|
35
|
-
* left out. The
|
|
57
|
+
* left out. The second argument is the group (`pages` by default) or `TxMenuPaletteOptions` with a
|
|
58
|
+
* translate function for the labels and an icon mapping.
|
|
36
59
|
*/
|
|
37
|
-
export declare function menuPaletteItems(menu: readonly TxPanelMenuItem[] | null | undefined,
|
|
60
|
+
export declare function menuPaletteItems(menu: readonly TxPanelMenuItem[] | null | undefined, options?: string | TxMenuPaletteOptions): TxCommandPaletteItem[];
|
|
38
61
|
/** `commandPaletteFilter`: keeps the palette items that match a query, see `filterPaletteItems`. */
|
|
39
62
|
export declare class TxCommandPaletteFilterPipe implements PipeTransform {
|
|
40
63
|
transform<T extends TxCommandPaletteItem>(items: readonly T[], query: string | null | undefined): T[];
|
|
41
64
|
static ɵfac: i0.ɵɵFactoryDeclaration<TxCommandPaletteFilterPipe, never>;
|
|
42
65
|
static ɵpipe: i0.ɵɵPipeDeclaration<TxCommandPaletteFilterPipe, "commandPaletteFilter", true>;
|
|
43
66
|
}
|
|
44
|
-
/**
|
|
67
|
+
/**
|
|
68
|
+
* `menuPaletteItems`: turns a sidebar menu into palette items, see `menuPaletteItems`; pass a new options
|
|
69
|
+
* object when the language changes.
|
|
70
|
+
*/
|
|
45
71
|
export declare class TxMenuPaletteItemsPipe implements PipeTransform {
|
|
46
|
-
transform(menu: readonly TxPanelMenuItem[] | null | undefined,
|
|
72
|
+
transform(menu: readonly TxPanelMenuItem[] | null | undefined, options?: string | TxMenuPaletteOptions): TxCommandPaletteItem[];
|
|
47
73
|
static ɵfac: i0.ɵɵFactoryDeclaration<TxMenuPaletteItemsPipe, never>;
|
|
48
74
|
static ɵpipe: i0.ɵɵPipeDeclaration<TxMenuPaletteItemsPipe, "menuPaletteItems", true>;
|
|
49
75
|
}
|
|
@@ -77,6 +103,8 @@ export declare class TxCommandPalette {
|
|
|
77
103
|
readonly emptyText: import("@angular/core").InputSignal<string | undefined>;
|
|
78
104
|
/** Text of the loading row; translated by default */
|
|
79
105
|
readonly loadingText: import("@angular/core").InputSignal<string | undefined>;
|
|
106
|
+
/** Own texts of the footer key hints (`TxCommandPaletteHints`: `navigate`, `open`, `close`); a missing or empty one stays translated */
|
|
107
|
+
readonly hintTexts: import("@angular/core").InputSignal<TxCommandPaletteHints>;
|
|
80
108
|
/** Shortest term `searchChange` sends; shorter terms send `''` (default 2) */
|
|
81
109
|
readonly minQueryLength: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
82
110
|
/** Delay in ms before `searchChange` (default 300) */
|
|
@@ -184,6 +212,11 @@ export declare class TxCommandPalette {
|
|
|
184
212
|
"required": false;
|
|
185
213
|
"isSignal": true;
|
|
186
214
|
};
|
|
215
|
+
"hintTexts": {
|
|
216
|
+
"alias": "hintTexts";
|
|
217
|
+
"required": false;
|
|
218
|
+
"isSignal": true;
|
|
219
|
+
};
|
|
187
220
|
"minQueryLength": {
|
|
188
221
|
"alias": "minQueryLength";
|
|
189
222
|
"required": false;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tectra-ng-blocks-command-palette.d.ts","names":[],"sources":["../../../../packages/blocks/command-palette/src/command-palette.types.ts","../../../../packages/blocks/command-palette/src/command-palette.pipes.ts","../../../../packages/blocks/command-palette/src/command-palette.component.ts"],"mappings":";;;;;;;
|
|
1
|
+
{"version":3,"file":"tectra-ng-blocks-command-palette.d.ts","names":[],"sources":["../../../../packages/blocks/command-palette/src/command-palette.types.ts","../../../../packages/blocks/command-palette/src/command-palette.pipes.ts","../../../../packages/blocks/command-palette/src/command-palette.component.ts"],"mappings":";;;;;;;iBAIiB;;EAEf;;EAEA;;EAEA;;EAEA;;EAEA,OAAO;;EAEP;;EAEA,cAAc;;EAEd;;;iBAIe;;EAEf;;EAEA;;EAEA;;;YAIU;;YAGA,oBAAoB,SAAS,4BAA4B,MAAM;;iBAG1D;;EAEf;;EAEA,aAAa;;EAEb,OAAO;;EAEP,cAAc;;;;;;wBCxCA,mBAAmB,UAAU,sBAAsB,gBAAgB,KAAK,mCAAmC;;;;;;wBAa3G,iBAAiB,eAAe,sCAAsC,mBAAkB,uBAAiC;;qBA0C5H,sCAAsC;EACjD,UAAU,UAAU,sBAAsB,gBAAgB,KAAK,mCAAmC;SADvF,MAAA,GAAA,qBAAA;SAAA,OAAA,GAAA,kBAAA;;;;;;qBAWA,kCAAkC;EAC7C,UAAU,eAAe,sCAAsC,mBAAkB,uBAAiC;SADvG,MAAA,GAAA,qBAAA;SAAA,OAAA,GAAA,kBAAA;;;;;;qBCvBA;mBACM;mBAEA;mBACA;mBACA;mBACA;mBACA;mBACA;mBACA;UACT;;WAEC,+BAAK;;WACL,qCAAW;;WACX,8BAAI,YAAA;;WACJ,+BAAK,qBAAA;;WACL,qCAAW,YAAA;;WACX,iCAAO;;WACP,mCAAS;;WACT,qCAAW;;WACX,mCAAS,YAAA;;WACT,wCAAc;;WACd,sCAAY;;WACZ,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