@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-cookie-notice.mjs","names":[],"sources":["../../../../packages/blocks/cookie-notice/src/cookie-notice.icons.ts","../../../../packages/blocks/cookie-notice/src/cookie-notice.theme.ts","../../../../packages/blocks/cookie-notice/src/cookie-notice.component.ts","../../../../packages/blocks/cookie-notice/src/cookie-notice.component.html"],"sourcesContent":["import { TxIconSet, txIconLink, txIconShield, txIconText } from '@tectra-ng/icons';\n\nexport const COOKIE_NOTICE_ICON_DEFAULTS: TxIconSet = {\n link: txIconLink,\n shield: txIconShield,\n text: txIconText,\n};\n","import { cookieNoticeTokens } from '@tectra-ng/themes';\n\nexport const COOKIE_NOTICE_THEME = {\n cookieNotice: cookieNoticeTokens,\n};\n","import { ChangeDetectionStrategy, Component, DOCUMENT, afterNextRender, booleanAttribute, computed, effect, inject, input, numberAttribute, output, signal, untracked } from '@angular/core';\nimport { ActivatedRoute, Router, RouterLink } from '@angular/router';\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, TxIcon, TxIconName } from '@tectra-ng/icons';\nimport { TectraCookieNoticeTokens, TectraDeepPartial, toStyleObject } from '@tectra-ng/themes';\nimport { TxButton } from '@tectra-ng/ui/button';\nimport { TxCookieNoticePart } from './cookie-notice.types';\nimport { COOKIE_NOTICE_ICON_DEFAULTS } from './cookie-notice.icons';\nimport { COOKIE_NOTICE_THEME } from './cookie-notice.theme';\n\nconst DAY_SECONDS = 86400;\n\n@Component({\n selector: 'tx-cookie-notice',\n imports: [RouterLink, TxButton, TxIcon],\n templateUrl: './cookie-notice.component.html',\n styleUrl: './cookie-notice.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-cookie-notice',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[attr.title]': 'null',\n },\n viewProviders: [provideTxIconDefaults(COOKIE_NOTICE_ICON_DEFAULTS)],\n})\nexport class TxCookieNotice {\n private readonly cookieNoticeTheme = injectTokens(COOKIE_NOTICE_THEME);\n\n private readonly document = inject(DOCUMENT);\n protected readonly router = inject(ActivatedRoute, { optional: true }) ? inject(Router) : null;\n\n readonly title = input<string | undefined>(undefined);\n readonly text = input<string | undefined>(undefined);\n readonly icon = input<TxIconName | (string & {})>('shield');\n readonly link = input<string | readonly unknown[] | undefined>(undefined);\n readonly href = input<string | undefined>(undefined);\n readonly linkLabel = input<string | undefined>(undefined);\n readonly acceptLabel = input<string | undefined>(undefined);\n readonly label = input<string | undefined>(undefined);\n readonly cookieName = input<string>('cookieNoticeDismissed');\n readonly maxAgeDays = input<number, unknown>(365, { transform: numberAttribute });\n readonly sharedDomain = input<string | undefined>(undefined);\n readonly autoShow = input(true, { transform: booleanAttribute });\n readonly preview = input(false, { transform: booleanAttribute });\n readonly dt = input<TectraDeepPartial<TectraCookieNoticeTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxCookieNoticePart, TxCookieNotice> | undefined>(undefined);\n readonly ptOptions = input<TxPassThroughOptions | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly dismissed = output<void>();\n\n readonly isUnstyled = injectUnstyled(this.unstyled);\n readonly passThrough = injectPassThrough('cookieNotice', this, this.pt, this.ptOptions);\n protected readonly translations = injectTranslations();\n readonly hostStyle = computed(() => ({ ...toStyleObject(this.dt(), '--tx-cookie-notice'), ...this.passThrough().root?.style }));\n\n readonly visible = signal(false);\n private readonly rendered = signal(false);\n\n constructor() {\n afterNextRender(() => this.rendered.set(true));\n effect(() => {\n if (!this.rendered()) {\n return;\n }\n const preview = this.preview();\n untracked(() => this.visible.set(preview || (this.autoShow() && !this.readDismissed())));\n });\n }\n\n show(): void {\n this.visible.set(true);\n }\n\n dismiss(): void {\n if (!this.preview()) {\n this.writeDismissed();\n }\n this.visible.set(false);\n this.dismissed.emit();\n }\n\n private readDismissed(): boolean {\n const name = `${encodeURIComponent(this.cookieName())}=`;\n return this.document.cookie.split('; ').some((entry) => entry === `${name}1`);\n }\n\n private writeDismissed(): void {\n const location = this.document.location;\n const shared = this.sharedDomain();\n const domain = shared && location?.hostname.endsWith(`.${shared}`) ? `; domain=.${shared}` : '';\n const secure = location?.protocol === 'https:' ? '; secure' : '';\n const maxAge = Math.round(this.maxAgeDays() * DAY_SECONDS);\n this.document.cookie = `${encodeURIComponent(this.cookieName())}=1; max-age=${maxAge}; path=/${domain}${secure}; samesite=lax`;\n }\n}\n","@if (visible()) {\n <section\n class=\"tx-cookie-notice__panel\"\n role=\"region\"\n animate.enter=\"tx-cookie-notice__panel--enter\"\n animate.leave=\"tx-cookie-notice__panel--leave\"\n [attr.aria-label]=\"label() ?? translations().cookieLabel\"\n >\n <span class=\"tx-cookie-notice__icon\" aria-hidden=\"true\" [class]=\"passThrough().icon?.class\" [style]=\"passThrough().icon?.style\">\n <tx-icon [name]=\"icon()\" />\n </span>\n <div class=\"tx-cookie-notice__body\" [class]=\"passThrough().body?.class\" [style]=\"passThrough().body?.style\">\n <p class=\"tx-cookie-notice__title\" [class]=\"passThrough().title?.class\" [style]=\"passThrough().title?.style\">{{ title() ?? translations().cookieTitle }}</p>\n <p class=\"tx-cookie-notice__text\" [class]=\"passThrough().text?.class\" [style]=\"passThrough().text?.style\">{{ text() ?? translations().cookieText }}</p>\n <div class=\"tx-cookie-notice__actions\" [class]=\"passThrough().actions?.class\" [style]=\"passThrough().actions?.style\">\n @if (link() !== undefined && router) {\n <a class=\"tx-cookie-notice__link\" [routerLink]=\"link()\" [class]=\"passThrough().link?.class\" [style]=\"passThrough().link?.style\">{{ linkLabel() ?? translations().cookieLearnMore }}</a>\n } @else if (href(); as href) {\n <a class=\"tx-cookie-notice__link\" [href]=\"href\" [class]=\"passThrough().link?.class\" [style]=\"passThrough().link?.style\">{{ linkLabel() ?? translations().cookieLearnMore }}</a>\n }\n <button\n txButton\n type=\"button\"\n size=\"small\"\n class=\"tx-cookie-notice__accept\"\n [unstyled]=\"isUnstyled()\"\n [class]=\"passThrough().accept?.class\"\n [style]=\"passThrough().accept?.style\"\n (click)=\"dismiss()\"\n >\n {{ acceptLabel() ?? translations().cookieAccept }}\n </button>\n </div>\n </div>\n </section>\n}\n"],"mappings":";;;;;;;;;AAEA,MAAa,8BAAyC;CACpD,MAAM;CACN,QAAQ;CACR,MAAM;AACP;ACJD,MAAa,sBAAsB,EACjC,cAAc,mBACf;ACQD,MAAM,cAAc;AAiBpB,IAAa,iBAAb,MAAa,eAAc;CACR,oBAAoB,aAAa,mBAAmB;CAEpD,WAAW,OAAO,QAAQ;CACxB,SAAS,OAAO,gBAAgB,EAAE,UAAU,KAAI,CAAE,IAAI,OAAO,MAAM,IAAI;CAEjF,QAAQ,MAA0B,QAAU,GAAA,YAAA,CAAA,EAAA,WAAA,QAAA,CAAA,+BAAA,CAAA,CAAA;CAC5C,OAAO,MAA0B,QAAU,GAAA,YAAA,CAAA,EAAA,WAAA,OAAA,CAAA,+BAAA,CAAA,CAAA;CAC3C,OAAO,MAAkC,UAAS,GAAA,YAAA,CAAA,EAAA,WAAA,OAAA,CAAA,+BAAA,CAAA,CAAA;CAClD,OAAO,MAA+C,QAAU,GAAA,YAAA,CAAA,EAAA,WAAA,OAAA,CAAA,+BAAA,CAAA,CAAA;CAChE,OAAO,MAA0B,QAAU,GAAA,YAAA,CAAA,EAAA,WAAA,OAAA,CAAA,+BAAA,CAAA,CAAA;CAC3C,YAAY,MAA0B,QAAU,GAAA,YAAA,CAAA,EAAA,WAAA,YAAA,CAAA,+BAAA,CAAA,CAAA;CAChD,cAAc,MAA0B,QAAU,GAAA,YAAA,CAAA,EAAA,WAAA,cAAA,CAAA,+BAAA,CAAA,CAAA;CAClD,QAAQ,MAA0B,QAAU,GAAA,YAAA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;GAAA,QAAA,CAAA,++GAAA;EAAA,CAAA"}
|
|
1
|
+
{"version":3,"file":"tectra-ng-blocks-cookie-notice.mjs","names":[],"sources":["../../../../packages/blocks/cookie-notice/src/cookie-notice.icons.ts","../../../../packages/blocks/cookie-notice/src/cookie-notice.theme.ts","../../../../packages/blocks/cookie-notice/src/cookie-notice.component.ts","../../../../packages/blocks/cookie-notice/src/cookie-notice.component.html"],"sourcesContent":["import { TxIconSet, txIconLink, txIconShield, txIconText } from '@tectra-ng/icons';\n\nexport const COOKIE_NOTICE_ICON_DEFAULTS: TxIconSet = {\n link: txIconLink,\n shield: txIconShield,\n text: txIconText,\n};\n","import { cookieNoticeTokens } from '@tectra-ng/themes';\n\nexport const COOKIE_NOTICE_THEME = {\n cookieNotice: cookieNoticeTokens,\n};\n","import { ChangeDetectionStrategy, Component, DOCUMENT, afterNextRender, booleanAttribute, computed, effect, inject, input, numberAttribute, output, signal, untracked } from '@angular/core';\nimport { ActivatedRoute, Router, RouterLink } from '@angular/router';\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, TxIcon, TxIconName } from '@tectra-ng/icons';\nimport { TectraCookieNoticeTokens, TectraDeepPartial, toStyleObject } from '@tectra-ng/themes';\nimport { TxButton } from '@tectra-ng/ui/button';\nimport { TxCookieNoticePart } from './cookie-notice.types';\nimport { COOKIE_NOTICE_ICON_DEFAULTS } from './cookie-notice.icons';\nimport { COOKIE_NOTICE_THEME } from './cookie-notice.theme';\n\nconst DAY_SECONDS = 86400;\n\n@Component({\n selector: 'tx-cookie-notice',\n imports: [RouterLink, TxButton, TxIcon],\n templateUrl: './cookie-notice.component.html',\n styleUrl: './cookie-notice.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-cookie-notice',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[attr.title]': 'null',\n },\n viewProviders: [provideTxIconDefaults(COOKIE_NOTICE_ICON_DEFAULTS)],\n})\nexport class TxCookieNotice {\n private readonly cookieNoticeTheme = injectTokens(COOKIE_NOTICE_THEME);\n\n private readonly document = inject(DOCUMENT);\n protected readonly router = inject(ActivatedRoute, { optional: true }) ? inject(Router) : null;\n\n readonly title = input<string | null | undefined>(undefined);\n readonly text = input<string | null | undefined>(undefined);\n readonly icon = input<TxIconName | (string & {})>('shield');\n readonly link = input<string | readonly unknown[] | undefined>(undefined);\n readonly href = input<string | undefined>(undefined);\n readonly linkLabel = input<string | null | undefined>(undefined);\n readonly acceptLabel = input<string | null | undefined>(undefined);\n readonly label = input<string | null | undefined>(undefined);\n readonly cookieName = input<string>('cookieNoticeDismissed');\n readonly maxAgeDays = input<number, unknown>(365, { transform: numberAttribute });\n readonly sharedDomain = input<string | undefined>(undefined);\n readonly autoShow = input(true, { transform: booleanAttribute });\n readonly preview = input(false, { transform: booleanAttribute });\n readonly dt = input<TectraDeepPartial<TectraCookieNoticeTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxCookieNoticePart, TxCookieNotice> | undefined>(undefined);\n readonly ptOptions = input<TxPassThroughOptions | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly dismissed = output<void>();\n\n readonly isUnstyled = injectUnstyled(this.unstyled);\n readonly passThrough = injectPassThrough('cookieNotice', this, this.pt, this.ptOptions);\n protected readonly translations = injectTranslations();\n readonly hostStyle = computed(() => ({ ...toStyleObject(this.dt(), '--tx-cookie-notice'), ...this.passThrough().root?.style }));\n\n readonly visible = signal(false);\n private readonly rendered = signal(false);\n\n constructor() {\n afterNextRender(() => this.rendered.set(true));\n effect(() => {\n if (!this.rendered()) {\n return;\n }\n const preview = this.preview();\n untracked(() => this.visible.set(preview || (this.autoShow() && !this.readDismissed())));\n });\n }\n\n show(): void {\n this.visible.set(true);\n }\n\n dismiss(): void {\n if (!this.preview()) {\n this.writeDismissed();\n }\n this.visible.set(false);\n this.dismissed.emit();\n }\n\n private readDismissed(): boolean {\n const name = `${encodeURIComponent(this.cookieName())}=`;\n return this.document.cookie.split('; ').some((entry) => entry === `${name}1`);\n }\n\n private writeDismissed(): void {\n const location = this.document.location;\n const shared = this.sharedDomain();\n const domain = shared && location?.hostname.endsWith(`.${shared}`) ? `; domain=.${shared}` : '';\n const secure = location?.protocol === 'https:' ? '; secure' : '';\n const maxAge = Math.round(this.maxAgeDays() * DAY_SECONDS);\n this.document.cookie = `${encodeURIComponent(this.cookieName())}=1; max-age=${maxAge}; path=/${domain}${secure}; samesite=lax`;\n }\n}\n","@if (visible()) {\n <section\n class=\"tx-cookie-notice__panel\"\n role=\"region\"\n animate.enter=\"tx-cookie-notice__panel--enter\"\n animate.leave=\"tx-cookie-notice__panel--leave\"\n [attr.aria-label]=\"label() || translations().cookieLabel\"\n >\n <span class=\"tx-cookie-notice__icon\" aria-hidden=\"true\" [class]=\"passThrough().icon?.class\" [style]=\"passThrough().icon?.style\">\n <tx-icon [name]=\"icon()\" />\n </span>\n <div class=\"tx-cookie-notice__body\" [class]=\"passThrough().body?.class\" [style]=\"passThrough().body?.style\">\n <p class=\"tx-cookie-notice__title\" [class]=\"passThrough().title?.class\" [style]=\"passThrough().title?.style\">{{ title() || translations().cookieTitle }}</p>\n <p class=\"tx-cookie-notice__text\" [class]=\"passThrough().text?.class\" [style]=\"passThrough().text?.style\">{{ text() || translations().cookieText }}</p>\n <div class=\"tx-cookie-notice__actions\" [class]=\"passThrough().actions?.class\" [style]=\"passThrough().actions?.style\">\n @if (link() !== undefined && router) {\n <a class=\"tx-cookie-notice__link\" [routerLink]=\"link()\" [class]=\"passThrough().link?.class\" [style]=\"passThrough().link?.style\">{{ linkLabel() || translations().cookieLearnMore }}</a>\n } @else if (href(); as href) {\n <a class=\"tx-cookie-notice__link\" [href]=\"href\" [class]=\"passThrough().link?.class\" [style]=\"passThrough().link?.style\">{{ linkLabel() || translations().cookieLearnMore }}</a>\n }\n <button\n txButton\n type=\"button\"\n size=\"small\"\n class=\"tx-cookie-notice__accept\"\n [unstyled]=\"isUnstyled()\"\n [class]=\"passThrough().accept?.class\"\n [style]=\"passThrough().accept?.style\"\n (click)=\"dismiss()\"\n >\n {{ acceptLabel() || translations().cookieAccept }}\n </button>\n </div>\n </div>\n </section>\n}\n"],"mappings":";;;;;;;;;AAEA,MAAa,8BAAyC;CACpD,MAAM;CACN,QAAQ;CACR,MAAM;AACP;ACJD,MAAa,sBAAsB,EACjC,cAAc,mBACf;ACQD,MAAM,cAAc;AAiBpB,IAAa,iBAAb,MAAa,eAAc;CACR,oBAAoB,aAAa,mBAAmB;CAEpD,WAAW,OAAO,QAAQ;CACxB,SAAS,OAAO,gBAAgB,EAAE,UAAU,KAAI,CAAE,IAAI,OAAO,MAAM,IAAI;CAEjF,QAAQ,MAAiC,QAAU,GAAA,YAAA,CAAA,EAAA,WAAA,QAAA,CAAA,+BAAA,CAAA,CAAA;CACnD,OAAO,MAAiC,QAAU,GAAA,YAAA,CAAA,EAAA,WAAA,OAAA,CAAA,+BAAA,CAAA,CAAA;CAClD,OAAO,MAAkC,UAAS,GAAA,YAAA,CAAA,EAAA,WAAA,OAAA,CAAA,+BAAA,CAAA,CAAA;CAClD,OAAO,MAA+C,QAAU,GAAA,YAAA,CAAA,EAAA,WAAA,OAAA,CAAA,+BAAA,CAAA,CAAA;CAChE,OAAO,MAA0B,QAAU,GAAA,YAAA,CAAA,EAAA,WAAA,OAAA,CAAA,+BAAA,CAAA,CAAA;CAC3C,YAAY,MAAiC,QAAU,GAAA,YAAA,CAAA,EAAA,WAAA,YAAA,CAAA,+BAAA,CAAA,CAAA;CACvD,cAAc,MAAiC,QAAU,GAAA,YAAA,CAAA,EAAA,WAAA,cAAA,CAAA,+BAAA,CAAA,CAAA;CACzD,QAAQ,MAAiC,QAAU,GAAA,YAA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;GAAA,QAAA,CAAA,++GAAA;EAAA,CAAA"}
|
|
@@ -33,7 +33,7 @@ var TxEmptyState = class TxEmptyState {
|
|
|
33
33
|
}), ...ngDevMode ? [{ debugName: "hostStyle" }] : /* istanbul ignore next */ []);
|
|
34
34
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
35
35
|
minVersion: "12.0.0",
|
|
36
|
-
version: "22.2.
|
|
36
|
+
version: "22.2.6",
|
|
37
37
|
ngImport: i0,
|
|
38
38
|
type: TxEmptyState,
|
|
39
39
|
deps: [],
|
|
@@ -41,7 +41,7 @@ var TxEmptyState = class TxEmptyState {
|
|
|
41
41
|
});
|
|
42
42
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
43
43
|
minVersion: "17.0.0",
|
|
44
|
-
version: "22.2.
|
|
44
|
+
version: "22.2.6",
|
|
45
45
|
type: TxEmptyState,
|
|
46
46
|
isStandalone: true,
|
|
47
47
|
selector: "tx-empty-state",
|
|
@@ -161,7 +161,7 @@ var TxEmptyState = class TxEmptyState {
|
|
|
161
161
|
};
|
|
162
162
|
i0.ɵɵngDeclareClassMetadata({
|
|
163
163
|
minVersion: "12.0.0",
|
|
164
|
-
version: "22.2.
|
|
164
|
+
version: "22.2.6",
|
|
165
165
|
ngImport: i0,
|
|
166
166
|
type: TxEmptyState,
|
|
167
167
|
decorators: [{
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
|
-
import { ChangeDetectionStrategy, Component, DOCUMENT, DestroyRef, Directive, ElementRef, InjectionToken, Injector, Pipe, afterNextRender, booleanAttribute, computed, contentChild, contentChildren, effect, forwardRef, inject, input, linkedSignal, numberAttribute, output, signal, untracked, viewChild } from "@angular/core";
|
|
2
|
+
import { ChangeDetectionStrategy, Component, DOCUMENT, DestroyRef, Directive, ElementRef, Injectable, InjectionToken, Injector, Pipe, afterNextRender, booleanAttribute, computed, contentChild, contentChildren, effect, forwardRef, inject, input, linkedSignal, numberAttribute, output, signal, untracked, viewChild } from "@angular/core";
|
|
3
3
|
import { TxFluid } from "@tectra-ng/core/fluid";
|
|
4
4
|
import { TxIcon, provideTxIconDefaults, txIconBars, txIconCheck, txIconChevronDown, txIconFilter, txIconFilterSlash, txIconSearch, txIconSlidersH } from "@tectra-ng/icons";
|
|
5
5
|
import { injectPassThrough, injectTokens, injectUnstyled } from "@tectra-ng/core/config";
|
|
@@ -29,6 +29,7 @@ const TX_FILTERS_PANEL = new InjectionToken("TX_FILTERS_PANEL");
|
|
|
29
29
|
var TxFilterField = class TxFilterField {
|
|
30
30
|
filtersPanelTheme = injectTokens(FILTERS_PANEL_THEME);
|
|
31
31
|
panel = inject(TX_FILTERS_PANEL, { optional: true });
|
|
32
|
+
destroyRef = inject(DestroyRef);
|
|
32
33
|
txFilterField = input.required(...ngDevMode ? [{ debugName: "txFilterField" }] : /* istanbul ignore next */ []);
|
|
33
34
|
filterLabel = input.required(...ngDevMode ? [{ debugName: "filterLabel" }] : /* istanbul ignore next */ []);
|
|
34
35
|
filterActive = input(false, {
|
|
@@ -37,9 +38,13 @@ var TxFilterField = class TxFilterField {
|
|
|
37
38
|
});
|
|
38
39
|
hidden = computed(() => this.panel?.isFieldHidden(this.txFilterField()) ?? false, ...ngDevMode ? [{ debugName: "hidden" }] : /* istanbul ignore next */ []);
|
|
39
40
|
order = computed(() => this.panel?.fieldOrder(this.txFilterField()) ?? null, ...ngDevMode ? [{ debugName: "order" }] : /* istanbul ignore next */ []);
|
|
41
|
+
ngOnInit() {
|
|
42
|
+
const unregister = this.panel?.registerField?.(this);
|
|
43
|
+
if (unregister) this.destroyRef.onDestroy(unregister);
|
|
44
|
+
}
|
|
40
45
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
41
46
|
minVersion: "12.0.0",
|
|
42
|
-
version: "22.2.
|
|
47
|
+
version: "22.2.6",
|
|
43
48
|
ngImport: i0,
|
|
44
49
|
type: TxFilterField,
|
|
45
50
|
deps: [],
|
|
@@ -47,7 +52,7 @@ var TxFilterField = class TxFilterField {
|
|
|
47
52
|
});
|
|
48
53
|
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
49
54
|
minVersion: "17.1.0",
|
|
50
|
-
version: "22.2.
|
|
55
|
+
version: "22.2.6",
|
|
51
56
|
type: TxFilterField,
|
|
52
57
|
isStandalone: true,
|
|
53
58
|
selector: "[txFilterField]",
|
|
@@ -91,7 +96,7 @@ var TxFilterField = class TxFilterField {
|
|
|
91
96
|
};
|
|
92
97
|
i0.ɵɵngDeclareClassMetadata({
|
|
93
98
|
minVersion: "12.0.0",
|
|
94
|
-
version: "22.2.
|
|
99
|
+
version: "22.2.6",
|
|
95
100
|
ngImport: i0,
|
|
96
101
|
type: TxFilterField,
|
|
97
102
|
decorators: [{
|
|
@@ -140,12 +145,16 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
140
145
|
var TxFiltersReset = class TxFiltersReset {
|
|
141
146
|
filtersPanelTheme = injectTokens(FILTERS_PANEL_THEME);
|
|
142
147
|
host = inject(ElementRef);
|
|
148
|
+
constructor() {
|
|
149
|
+
const unregister = inject(TX_FILTERS_PANEL, { optional: true })?.registerReset?.(this);
|
|
150
|
+
if (unregister) inject(DestroyRef).onDestroy(unregister);
|
|
151
|
+
}
|
|
143
152
|
trigger() {
|
|
144
153
|
this.host.nativeElement.click();
|
|
145
154
|
}
|
|
146
155
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
147
156
|
minVersion: "12.0.0",
|
|
148
|
-
version: "22.2.
|
|
157
|
+
version: "22.2.6",
|
|
149
158
|
ngImport: i0,
|
|
150
159
|
type: TxFiltersReset,
|
|
151
160
|
deps: [],
|
|
@@ -153,7 +162,7 @@ var TxFiltersReset = class TxFiltersReset {
|
|
|
153
162
|
});
|
|
154
163
|
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
155
164
|
minVersion: "14.0.0",
|
|
156
|
-
version: "22.2.
|
|
165
|
+
version: "22.2.6",
|
|
157
166
|
type: TxFiltersReset,
|
|
158
167
|
isStandalone: true,
|
|
159
168
|
selector: "[txFiltersReset]",
|
|
@@ -164,7 +173,7 @@ var TxFiltersReset = class TxFiltersReset {
|
|
|
164
173
|
};
|
|
165
174
|
i0.ɵɵngDeclareClassMetadata({
|
|
166
175
|
minVersion: "12.0.0",
|
|
167
|
-
version: "22.2.
|
|
176
|
+
version: "22.2.6",
|
|
168
177
|
ngImport: i0,
|
|
169
178
|
type: TxFiltersReset,
|
|
170
179
|
decorators: [{
|
|
@@ -174,8 +183,64 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
174
183
|
host: { class: "tx-filters-panel__reset" },
|
|
175
184
|
providers: [provideTxIconDefaults(FILTERS_PANEL_ICON_DEFAULTS)]
|
|
176
185
|
}]
|
|
177
|
-
}]
|
|
186
|
+
}],
|
|
187
|
+
ctorParameters: () => []
|
|
188
|
+
});
|
|
189
|
+
var TxFiltersPanelRelay = class TxFiltersPanelRelay {
|
|
190
|
+
target = signal(null, ...ngDevMode ? [{ debugName: "target" }] : /* istanbul ignore next */ []);
|
|
191
|
+
fieldList = signal([], ...ngDevMode ? [{ debugName: "fieldList" }] : /* istanbul ignore next */ []);
|
|
192
|
+
resetList = signal([], ...ngDevMode ? [{ debugName: "resetList" }] : /* istanbul ignore next */ []);
|
|
193
|
+
fields = this.fieldList.asReadonly();
|
|
194
|
+
resets = this.resetList.asReadonly();
|
|
195
|
+
isFieldHidden(key) {
|
|
196
|
+
return this.target()?.isFieldHidden(key) ?? false;
|
|
197
|
+
}
|
|
198
|
+
fieldOrder(key) {
|
|
199
|
+
return this.target()?.fieldOrder(key) ?? null;
|
|
200
|
+
}
|
|
201
|
+
registerField(field) {
|
|
202
|
+
return register(this.fieldList, field);
|
|
203
|
+
}
|
|
204
|
+
registerReset(reset) {
|
|
205
|
+
return register(this.resetList, reset);
|
|
206
|
+
}
|
|
207
|
+
connect(panel) {
|
|
208
|
+
if (this.target()) return null;
|
|
209
|
+
this.target.set(panel);
|
|
210
|
+
return () => this.target.set(null);
|
|
211
|
+
}
|
|
212
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
213
|
+
minVersion: "12.0.0",
|
|
214
|
+
version: "22.2.6",
|
|
215
|
+
ngImport: i0,
|
|
216
|
+
type: TxFiltersPanelRelay,
|
|
217
|
+
deps: [],
|
|
218
|
+
target: i0.ɵɵFactoryTarget.Injectable
|
|
219
|
+
});
|
|
220
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({
|
|
221
|
+
minVersion: "12.0.0",
|
|
222
|
+
version: "22.2.6",
|
|
223
|
+
ngImport: i0,
|
|
224
|
+
type: TxFiltersPanelRelay
|
|
225
|
+
});
|
|
226
|
+
};
|
|
227
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
228
|
+
minVersion: "12.0.0",
|
|
229
|
+
version: "22.2.6",
|
|
230
|
+
ngImport: i0,
|
|
231
|
+
type: TxFiltersPanelRelay,
|
|
232
|
+
decorators: [{ type: Injectable }]
|
|
178
233
|
});
|
|
234
|
+
function provideTxFiltersPanelRelay() {
|
|
235
|
+
return [TxFiltersPanelRelay, {
|
|
236
|
+
provide: TX_FILTERS_PANEL,
|
|
237
|
+
useExisting: TxFiltersPanelRelay
|
|
238
|
+
}];
|
|
239
|
+
}
|
|
240
|
+
function register(list, item) {
|
|
241
|
+
list.update((items) => [...items, item]);
|
|
242
|
+
return () => list.update((items) => items.filter((entry) => entry !== item));
|
|
243
|
+
}
|
|
179
244
|
function hasFilterValue(...values) {
|
|
180
245
|
return values.some((value) => {
|
|
181
246
|
if (value === null || value === void 0) return false;
|
|
@@ -190,7 +255,7 @@ var TxHasFilterValuePipe = class TxHasFilterValuePipe {
|
|
|
190
255
|
}
|
|
191
256
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
192
257
|
minVersion: "12.0.0",
|
|
193
|
-
version: "22.2.
|
|
258
|
+
version: "22.2.6",
|
|
194
259
|
ngImport: i0,
|
|
195
260
|
type: TxHasFilterValuePipe,
|
|
196
261
|
deps: [],
|
|
@@ -198,7 +263,7 @@ var TxHasFilterValuePipe = class TxHasFilterValuePipe {
|
|
|
198
263
|
});
|
|
199
264
|
static ɵpipe = i0.ɵɵngDeclarePipe({
|
|
200
265
|
minVersion: "14.0.0",
|
|
201
|
-
version: "22.2.
|
|
266
|
+
version: "22.2.6",
|
|
202
267
|
ngImport: i0,
|
|
203
268
|
type: TxHasFilterValuePipe,
|
|
204
269
|
isStandalone: true,
|
|
@@ -207,7 +272,7 @@ var TxHasFilterValuePipe = class TxHasFilterValuePipe {
|
|
|
207
272
|
};
|
|
208
273
|
i0.ɵɵngDeclareClassMetadata({
|
|
209
274
|
minVersion: "12.0.0",
|
|
210
|
-
version: "22.2.
|
|
275
|
+
version: "22.2.6",
|
|
211
276
|
ngImport: i0,
|
|
212
277
|
type: TxHasFilterValuePipe,
|
|
213
278
|
decorators: [{
|
|
@@ -250,14 +315,23 @@ var TxFiltersPanel = class TxFiltersPanel {
|
|
|
250
315
|
passThrough = injectPassThrough("filtersPanel", this, this.pt, this.ptOptions);
|
|
251
316
|
translations = injectTranslations();
|
|
252
317
|
id = uniqueId("tx-filters-panel");
|
|
253
|
-
|
|
254
|
-
...ngDevMode ? { debugName: "
|
|
318
|
+
queriedFields = contentChildren(TxFilterField, {
|
|
319
|
+
...ngDevMode ? { debugName: "queriedFields" } : /* istanbul ignore next */ {},
|
|
255
320
|
descendants: true
|
|
256
321
|
});
|
|
257
|
-
|
|
258
|
-
|
|
322
|
+
readyFields = signal([], ...ngDevMode ? [{ debugName: "readyFields" }] : /* istanbul ignore next */ []);
|
|
323
|
+
resetSlot = contentChild(TxFiltersReset, {
|
|
324
|
+
...ngDevMode ? { debugName: "resetSlot" } : /* istanbul ignore next */ {},
|
|
259
325
|
descendants: true
|
|
260
326
|
});
|
|
327
|
+
registeredResets = signal([], ...ngDevMode ? [{ debugName: "registeredResets" }] : /* istanbul ignore next */ []);
|
|
328
|
+
relay = signal(null, ...ngDevMode ? [{ debugName: "relay" }] : /* istanbul ignore next */ []);
|
|
329
|
+
fields = computed(() => {
|
|
330
|
+
const ready = [...this.readyFields(), ...this.relay()?.fields() ?? []];
|
|
331
|
+
const queried = this.queriedFields().filter((field) => ready.includes(field));
|
|
332
|
+
return [...queried, ...ready.filter((field) => !queried.includes(field))];
|
|
333
|
+
}, ...ngDevMode ? [{ debugName: "fields" }] : /* istanbul ignore next */ []);
|
|
334
|
+
resetAction = computed(() => this.resetSlot() ?? [...this.registeredResets(), ...this.relay()?.resets() ?? []][0] ?? null, ...ngDevMode ? [{ debugName: "resetAction" }] : /* istanbul ignore next */ []);
|
|
261
335
|
fieldsContainer = viewChild.required("fieldsContainer", ...ngDevMode ? [{ debugName: "fieldsContainer" }] : /* istanbul ignore next */ []);
|
|
262
336
|
toggleButton = viewChild("toggleButton", ...ngDevMode ? [{ debugName: "toggleButton" }] : /* istanbul ignore next */ []);
|
|
263
337
|
menuList = viewChild("menuList", ...ngDevMode ? [{ debugName: "menuList" }] : /* istanbul ignore next */ []);
|
|
@@ -318,7 +392,14 @@ var TxFiltersPanel = class TxFiltersPanel {
|
|
|
318
392
|
};
|
|
319
393
|
menuPopoverPt = computed(() => ({ root: { style: this.tokenStyle() } }), ...ngDevMode ? [{ debugName: "menuPopoverPt" }] : /* istanbul ignore next */ []);
|
|
320
394
|
constructor() {
|
|
321
|
-
inject(DestroyRef)
|
|
395
|
+
const destroyRef = inject(DestroyRef);
|
|
396
|
+
destroyRef.onDestroy(() => clearTimeout(this.closingTimer));
|
|
397
|
+
const relay = inject(TxFiltersPanelRelay, { optional: true });
|
|
398
|
+
const disconnect = relay?.connect(this);
|
|
399
|
+
if (relay && disconnect) {
|
|
400
|
+
this.relay.set(relay);
|
|
401
|
+
destroyRef.onDestroy(disconnect);
|
|
402
|
+
}
|
|
322
403
|
effect((onCleanup) => {
|
|
323
404
|
const view = this.document.defaultView;
|
|
324
405
|
if (!view?.matchMedia) return;
|
|
@@ -335,6 +416,14 @@ var TxFiltersPanel = class TxFiltersPanel {
|
|
|
335
416
|
ngAfterViewInit() {
|
|
336
417
|
this.projectedCount.set(this.fieldsContainer().nativeElement.children.length);
|
|
337
418
|
}
|
|
419
|
+
registerField(field) {
|
|
420
|
+
this.readyFields.update((fields) => [...fields, field]);
|
|
421
|
+
return () => this.readyFields.update((fields) => fields.filter((item) => item !== field));
|
|
422
|
+
}
|
|
423
|
+
registerReset(reset) {
|
|
424
|
+
this.registeredResets.update((resets) => [...resets, reset]);
|
|
425
|
+
return () => this.registeredResets.update((resets) => resets.filter((item) => item !== reset));
|
|
426
|
+
}
|
|
338
427
|
isFieldHidden(key) {
|
|
339
428
|
return this.customizable() && !this.folded() && !this.visibleKeys().has(key);
|
|
340
429
|
}
|
|
@@ -478,7 +567,7 @@ var TxFiltersPanel = class TxFiltersPanel {
|
|
|
478
567
|
}
|
|
479
568
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
480
569
|
minVersion: "12.0.0",
|
|
481
|
-
version: "22.2.
|
|
570
|
+
version: "22.2.6",
|
|
482
571
|
ngImport: i0,
|
|
483
572
|
type: TxFiltersPanel,
|
|
484
573
|
deps: [],
|
|
@@ -486,7 +575,7 @@ var TxFiltersPanel = class TxFiltersPanel {
|
|
|
486
575
|
});
|
|
487
576
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
488
577
|
minVersion: "17.0.0",
|
|
489
|
-
version: "22.2.
|
|
578
|
+
version: "22.2.6",
|
|
490
579
|
type: TxFiltersPanel,
|
|
491
580
|
isStandalone: true,
|
|
492
581
|
selector: "tx-filters-panel",
|
|
@@ -599,12 +688,12 @@ var TxFiltersPanel = class TxFiltersPanel {
|
|
|
599
688
|
useExisting: forwardRef(() => TxFiltersPanel)
|
|
600
689
|
}],
|
|
601
690
|
queries: [{
|
|
602
|
-
propertyName: "
|
|
691
|
+
propertyName: "queriedFields",
|
|
603
692
|
predicate: TxFilterField,
|
|
604
693
|
descendants: true,
|
|
605
694
|
isSignal: true
|
|
606
695
|
}, {
|
|
607
|
-
propertyName: "
|
|
696
|
+
propertyName: "resetSlot",
|
|
608
697
|
first: true,
|
|
609
698
|
predicate: TxFiltersReset,
|
|
610
699
|
descendants: true,
|
|
@@ -805,7 +894,7 @@ var TxFiltersPanel = class TxFiltersPanel {
|
|
|
805
894
|
};
|
|
806
895
|
i0.ɵɵngDeclareClassMetadata({
|
|
807
896
|
minVersion: "12.0.0",
|
|
808
|
-
version: "22.2.
|
|
897
|
+
version: "22.2.6",
|
|
809
898
|
ngImport: i0,
|
|
810
899
|
type: TxFiltersPanel,
|
|
811
900
|
decorators: [{
|
|
@@ -947,14 +1036,14 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
947
1036
|
type: i0.Output,
|
|
948
1037
|
args: ["expandedChange"]
|
|
949
1038
|
}],
|
|
950
|
-
|
|
1039
|
+
queriedFields: [{
|
|
951
1040
|
type: i0.ContentChildren,
|
|
952
1041
|
args: [i0.forwardRef(() => TxFilterField), {
|
|
953
1042
|
descendants: true,
|
|
954
1043
|
isSignal: true
|
|
955
1044
|
}]
|
|
956
1045
|
}],
|
|
957
|
-
|
|
1046
|
+
resetSlot: [{
|
|
958
1047
|
type: i0.ContentChild,
|
|
959
1048
|
args: [i0.forwardRef(() => TxFiltersReset), {
|
|
960
1049
|
descendants: true,
|
|
@@ -975,6 +1064,6 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
975
1064
|
}]
|
|
976
1065
|
}
|
|
977
1066
|
});
|
|
978
|
-
export { TX_FILTERS_PANEL, TxFilterField, TxFiltersPanel, TxFiltersReset, TxHasFilterValuePipe, hasFilterValue };
|
|
1067
|
+
export { TX_FILTERS_PANEL, TxFilterField, TxFiltersPanel, TxFiltersPanelRelay, TxFiltersReset, TxHasFilterValuePipe, hasFilterValue, provideTxFiltersPanelRelay };
|
|
979
1068
|
|
|
980
1069
|
//# sourceMappingURL=tectra-ng-blocks-filters-panel.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tectra-ng-blocks-filters-panel.mjs","names":[],"sources":["../../../../packages/blocks/filters-panel/src/filters-panel.icons.ts","../../../../packages/blocks/filters-panel/src/filters-panel.theme.ts","../../../../packages/blocks/filters-panel/src/filter-field.directive.ts","../../../../packages/blocks/filters-panel/src/has-filter-value.pipe.ts","../../../../packages/blocks/filters-panel/src/filters-panel.component.ts","../../../../packages/blocks/filters-panel/src/filters-panel.component.html"],"sourcesContent":["import { TxIconSet, txIconBars, txIconCheck, txIconChevronDown, txIconFilter, txIconFilterSlash, txIconSearch, txIconSlidersH } from '@tectra-ng/icons';\n\nexport const FILTERS_PANEL_ICON_DEFAULTS: TxIconSet = {\n bars: txIconBars,\n check: txIconCheck,\n 'chevron-down': txIconChevronDown,\n filter: txIconFilter,\n 'filter-slash': txIconFilterSlash,\n search: txIconSearch,\n 'sliders-h': txIconSlidersH,\n};\n","import { filtersPanelTokens, iconTokens, skeletonTokens } from '@tectra-ng/themes';\n\nexport const FILTERS_PANEL_THEME = {\n filtersPanel: filtersPanelTokens,\n icon: iconTokens,\n skeleton: skeletonTokens,\n};\n","import { Directive, ElementRef, InjectionToken, Signal, booleanAttribute, computed, inject, input } from '@angular/core';\nimport { TxFluid } from '@tectra-ng/core/fluid';\nimport { provideTxIconDefaults } from '@tectra-ng/icons';\nimport { FILTERS_PANEL_ICON_DEFAULTS } from './filters-panel.icons';\nimport { injectTokens } from '@tectra-ng/core/config';\nimport { FILTERS_PANEL_THEME } from './filters-panel.theme';\n\n/** What a `txFilterField` asks its panel: whether it is hidden and where it sits. */\nexport interface TxFiltersPanelContext {\n /** Tells whether the field with this key is hidden. */\n isFieldHidden(key: string): boolean;\n /** Position of the field with this key, or `null` when the order is not customised. */\n fieldOrder(key: string): number | null;\n}\n\n/** Injection token through which `txFilterField` finds its `tx-filters-panel`. */\nexport const TX_FILTERS_PANEL = new InjectionToken<TxFiltersPanelContext>('TX_FILTERS_PANEL');\n\n/** Marks a field inside `tx-filters-panel` so the user can show, hide and reorder it. */\n@Directive({\n selector: '[txFilterField]',\n providers: [provideTxIconDefaults(FILTERS_PANEL_ICON_DEFAULTS), { provide: TxFluid, useFactory: () => new TxFluid() }],\n host: {\n class: 'tx-filter-field',\n '[attr.hidden]': 'hidden() ? \"\" : null',\n '[style.display]': 'hidden() ? \"none\" : null',\n '[style.order]': 'order()',\n },\n})\nexport class TxFilterField {\n private readonly filtersPanelTheme = injectTokens(FILTERS_PANEL_THEME);\n\n private readonly panel = inject(TX_FILTERS_PANEL, { optional: true });\n\n readonly txFilterField = input.required<string>();\n readonly filterLabel = input.required<string>();\n readonly filterActive = input<boolean, unknown>(false, { transform: booleanAttribute });\n\n readonly hidden: Signal<boolean> = computed(() => this.panel?.isFieldHidden(this.txFilterField()) ?? false);\n readonly order: Signal<number | null> = computed(() => this.panel?.fieldOrder(this.txFilterField()) ?? null);\n}\n\n@Directive({\n selector: '[txFiltersReset]',\n host: { class: 'tx-filters-panel__reset' },\n providers: [provideTxIconDefaults(FILTERS_PANEL_ICON_DEFAULTS)],\n})\nexport class TxFiltersReset {\n private readonly filtersPanelTheme = injectTokens(FILTERS_PANEL_THEME);\n\n private readonly host = inject<ElementRef<HTMLElement>>(ElementRef);\n\n trigger(): void {\n this.host.nativeElement.click();\n }\n}\n","import { Pipe, PipeTransform } from '@angular/core';\n\n/** Whether any value is set: not `null`, `undefined`, a blank string or an empty array. */\nexport function hasFilterValue(...values: unknown[]): boolean {\n return values.some((value) => {\n if (value === null || value === undefined) {\n return false;\n }\n if (typeof value === 'string') {\n return value.trim().length > 0;\n }\n if (Array.isArray(value)) {\n return value.length > 0;\n }\n return true;\n });\n}\n\n/** `hasFilterValue`: whether any of the values is set, see `hasFilterValue`. */\n@Pipe({ name: 'hasFilterValue' })\nexport class TxHasFilterValuePipe implements PipeTransform {\n transform(...values: unknown[]): boolean {\n return hasFilterValue(...values);\n }\n}\n","import { CdkDrag, CdkDragDrop, CdkDragHandle, CdkDropList, moveItemInArray } from '@angular/cdk/drag-drop';\nimport {\n AfterViewInit,\n Injector,\n afterNextRender,\n ChangeDetectionStrategy,\n Component,\n DOCUMENT,\n DestroyRef,\n ElementRef,\n booleanAttribute,\n computed,\n contentChild,\n contentChildren,\n effect,\n forwardRef,\n inject,\n input,\n linkedSignal,\n numberAttribute,\n output,\n signal,\n untracked,\n viewChild,\n} from '@angular/core';\nimport { uniqueId } from '@tectra-ng/core/a11y';\nimport { injectPassThrough, injectTokens, injectUnstyled, TxPassThrough, TxPassThroughOptions } from '@tectra-ng/core/config';\nimport { TxLocaleService, injectTranslations } from '@tectra-ng/core/i18n';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\nimport { provideTxIconDefaults, TxIcon } from '@tectra-ng/icons';\nimport { TectraDeepPartial, TectraFiltersPanelTokens, toStyleObject } from '@tectra-ng/themes';\nimport { TxButton } from '@tectra-ng/ui/button';\nimport { TxPopover, TxPopoverTrigger } from '@tectra-ng/ui/popover';\nimport { TxTooltip } from '@tectra-ng/ui/tooltip';\nimport { TX_FILTERS_PANEL, TxFilterField, TxFiltersPanelContext, TxFiltersReset } from './filter-field.directive';\nimport {\n TxFiltersPanelCollapse,\n TxFiltersPanelLayout,\n TxFiltersPanelOption,\n TxFiltersPanelPart,\n TxFiltersPanelStateStorage,\n TxFiltersPanelVariant,\n} from './filters-panel.types';\nimport { FILTERS_PANEL_ICON_DEFAULTS } from './filters-panel.icons';\nimport { FILTERS_PANEL_THEME } from './filters-panel.theme';\n\nconst COLLAPSE_QUERY = '(width < 64rem)';\nconst OVERLAY_CONTAINER = '.cdk-overlay-container';\nconst CLOSE_FALLBACK_MS = 400;\n\n/** A row of filter fields with reset, a \"Filters\" fold on narrow screens and an optional saved layout. */\n@Component({\n selector: 'tx-filters-panel',\n imports: [CdkDropList, CdkDrag, CdkDragHandle, TxIcon, TxButton, TxPopover, TxPopoverTrigger, TxTooltip],\n templateUrl: './filters-panel.component.html',\n styleUrl: './filters-panel.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [{ provide: TX_FILTERS_PANEL, useExisting: forwardRef(() => TxFiltersPanel) }],\n host: {\n class: 'tx-filters-panel',\n role: 'search',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[attr.data-variant]': 'variant()',\n '[attr.data-collapse]': 'collapse()',\n '[attr.aria-label]': 'ariaLabel() ?? null',\n '[attr.aria-busy]': 'busy() || null',\n '[class.tx-filters-panel--busy]': 'busy()',\n '[class.tx-filters-panel--collapsible]': 'collapsible()',\n '[class.tx-filters-panel--expanded]': 'expanded()',\n '[class.tx-filters-panel--closing]': 'closing()',\n '(document:click)': 'closeOnOutsideClick($event)',\n '(document:keydown.escape)': 'closeOnEscape($event)',\n },\n viewProviders: [provideTxIconDefaults(FILTERS_PANEL_ICON_DEFAULTS)],\n})\nexport class TxFiltersPanel implements TxFiltersPanelContext, AfterViewInit {\n private readonly filtersPanelTheme = injectTokens(FILTERS_PANEL_THEME);\n\n private readonly document = inject(DOCUMENT);\n private readonly host = inject<ElementRef<HTMLElement>>(ElementRef);\n private readonly injector = inject(Injector);\n private readonly locale = inject(TxLocaleService);\n\n readonly variant = input<TxFiltersPanelVariant>('card');\n readonly busy = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly stateKey = input<string | undefined>(undefined);\n readonly stateStorage = input<TxFiltersPanelStateStorage>('local');\n readonly defaultVisible = input<number, unknown>(3, { transform: numberAttribute });\n readonly collapse = input<TxFiltersPanelCollapse>('auto');\n readonly ariaLabel = input<string | undefined>(undefined);\n readonly dt = input<TectraDeepPartial<TectraFiltersPanelTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxFiltersPanelPart, TxFiltersPanel> | undefined>(undefined);\n readonly ptOptions = input<TxPassThroughOptions | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly layoutChange = output<TxFiltersPanelLayout | null>();\n readonly expandedChange = output<boolean>();\n\n readonly isUnstyled = injectUnstyled(this.unstyled);\n readonly passThrough = injectPassThrough('filtersPanel', this, this.pt, this.ptOptions);\n protected readonly translations = injectTranslations();\n protected readonly id = uniqueId('tx-filters-panel');\n\n private readonly fields = contentChildren(TxFilterField, { descendants: true });\n protected readonly resetAction = contentChild(TxFiltersReset, { descendants: true });\n private readonly fieldsContainer = viewChild.required<ElementRef<HTMLElement>>('fieldsContainer');\n private readonly toggleButton = viewChild<ElementRef<HTMLButtonElement>>('toggleButton');\n private readonly menuList = viewChild<ElementRef<HTMLElement>>('menuList');\n\n private readonly projectedCount = signal(0);\n private readonly narrow = signal(false);\n readonly expanded = signal(false);\n protected readonly closing = signal(false);\n private closingTimer: ReturnType<typeof setTimeout> | undefined;\n protected readonly menuOpen = signal(false);\n\n readonly collapsible = computed(() => this.collapse() !== 'never' && Math.max(this.fields().length, this.projectedCount()) > 1);\n readonly folded = computed(() => this.collapsible() && (this.collapse() === 'always' || this.narrow()));\n readonly activeCount = computed(() => this.fields().filter((field) => field.filterActive()).length);\n readonly customizable = computed(() => !!this.stateKey() && this.fields().length > 0);\n\n private readonly layout = linkedSignal<TxFiltersPanelLayout | null>(() => this.readLayout(this.stateKey()));\n\n private readonly orderedKeys = computed(() => {\n const keys = this.fields().map((field) => field.txFilterField());\n const stored = (this.layout()?.order ?? []).filter((key) => keys.includes(key));\n return [...stored, ...keys.filter((key) => !stored.includes(key))];\n });\n\n private readonly chosenKeys = computed(() => this.layout()?.visible ?? this.orderedKeys().slice(0, this.defaultVisible()));\n\n private readonly visibleKeys = computed(\n () =>\n new Set([\n ...this.chosenKeys(),\n ...this.fields()\n .filter((field) => field.filterActive())\n .map((field) => field.txFilterField()),\n ]),\n );\n\n readonly options = computed<TxFiltersPanelOption[]>(() => {\n const fields = new Map(this.fields().map((field) => [field.txFilterField(), field]));\n const visible = this.visibleKeys();\n return this.orderedKeys().map((key) => ({\n key,\n label: fields.get(key)?.filterLabel() ?? key,\n visible: visible.has(key),\n active: fields.get(key)?.filterActive() ?? false,\n }));\n });\n\n readonly visibleCount = computed(() => this.options().filter((option) => option.visible).length);\n readonly hiddenCount = computed(() => this.options().length - this.visibleCount());\n protected readonly counterText = computed(() => this.locale.translate('filtersShown', { shown: this.visibleCount(), total: this.options().length }));\n protected readonly menuButtonLabel = computed(() => {\n const label = this.translations().showFilters;\n const count = this.hiddenCount();\n return count ? this.locale.translate('filtersHidden', { label, count }) : label;\n });\n\n\n protected readonly tokenStyle = computed(() => toStyleObject(this.dt(), '--tx-filters-panel'));\n readonly hostStyle = computed(() => ({ ...this.tokenStyle(), ...this.passThrough().root?.style }));\n protected readonly menuPopoverDt = {\n root: {\n borderRadius: 'var(--tx-filters-panel-menu-border-radius)',\n shadow: 'var(--tx-filters-panel-menu-shadow)',\n padding: '0',\n },\n content: { padding: '0' },\n };\n protected readonly menuPopoverPt = computed(() => ({ root: { style: this.tokenStyle() } }));\n\n constructor() {\n inject(DestroyRef).onDestroy(() => clearTimeout(this.closingTimer));\n effect((onCleanup) => {\n const view = this.document.defaultView;\n if (!view?.matchMedia) {\n return;\n }\n const media = view.matchMedia(COLLAPSE_QUERY);\n const update = () => {\n this.narrow.set(media.matches);\n if (!this.folded()) {\n this.setExpanded(false);\n }\n };\n untracked(update);\n media.addEventListener?.('change', update);\n onCleanup(() => media.removeEventListener?.('change', update));\n });\n }\n\n ngAfterViewInit(): void {\n this.projectedCount.set(this.fieldsContainer().nativeElement.children.length);\n }\n\n isFieldHidden(key: string): boolean {\n return this.customizable() && !this.folded() && !this.visibleKeys().has(key);\n }\n\n fieldOrder(key: string): number | null {\n return this.customizable() ? this.orderedKeys().indexOf(key) : null;\n }\n\n toggle(key: string): void {\n const option = this.options().find((item) => item.key === key);\n if (!option || option.active) {\n return;\n }\n const chosen = this.chosenKeys();\n const next = chosen.includes(key) ? chosen.filter((item) => item !== key) : [...chosen, key];\n const order = this.orderedKeys();\n this.saveLayout({ order, visible: order.filter((item) => next.includes(item)) });\n }\n\n move(key: string, offset: number): void {\n const order = [...this.orderedKeys()];\n const from = order.indexOf(key);\n const to = from + offset;\n if (from < 0 || to < 0 || to >= order.length) {\n return;\n }\n moveItemInArray(order, from, to);\n this.saveLayout({ order, visible: this.chosenKeys() });\n }\n\n reset(): void {\n this.layout.set(null);\n this.writeLayout(null);\n this.layoutChange.emit(null);\n }\n\n setExpanded(expanded: boolean): void {\n if (this.expanded() === expanded) {\n return;\n }\n this.finishClosing();\n if (!expanded && this.folded() && !this.isUnstyled() && !this.document.defaultView?.matchMedia?.('(prefers-reduced-motion: reduce)').matches) {\n this.closing.set(true);\n this.closingTimer = setTimeout(() => this.finishClosing(), CLOSE_FALLBACK_MS);\n }\n this.expanded.set(expanded);\n this.expandedChange.emit(expanded);\n }\n\n protected onPanelAnimationEnd(event: AnimationEvent): void {\n if (event.target === event.currentTarget && this.closing()) {\n this.finishClosing();\n }\n }\n\n private finishClosing(): void {\n clearTimeout(this.closingTimer);\n this.closing.set(false);\n }\n\n protected clearFilters(): void {\n this.resetAction()?.trigger();\n }\n\n protected drop(event: CdkDragDrop<unknown>): void {\n if (event.previousIndex === event.currentIndex) {\n return;\n }\n const order = [...this.orderedKeys()];\n moveItemInArray(order, event.previousIndex, event.currentIndex);\n this.saveLayout({ order, visible: this.chosenKeys() });\n }\n\n protected onMenuKeydown(event: KeyboardEvent, key: string): void {\n const menu = (event.currentTarget as HTMLElement | null)?.closest('.tx-filters-panel-menu');\n const items = Array.from(menu?.querySelectorAll<HTMLElement>('[role^=\"menuitem\"]') ?? []);\n const index = items.indexOf(event.target as HTMLElement);\n if (event.altKey && (event.key === 'ArrowUp' || event.key === 'ArrowDown')) {\n event.preventDefault();\n this.move(key, event.key === 'ArrowUp' ? -1 : 1);\n afterNextRender(() => this.focusMenuItem(key), { injector: this.injector });\n return;\n }\n const target = {\n ArrowDown: (index + 1) % items.length,\n ArrowUp: (index - 1 + items.length) % items.length,\n Home: 0,\n End: items.length - 1,\n }[event.key];\n if (target !== undefined && items.length) {\n event.preventDefault();\n items[target].focus();\n }\n }\n\n protected closeOnOutsideClick(event: Event): void {\n if (!this.expanded()) {\n return;\n }\n const target = event.target as HTMLElement | null;\n if (!target?.isConnected || target.closest(OVERLAY_CONTAINER)) {\n return;\n }\n const host = this.host.nativeElement;\n const inside = host.contains(target) && !!target.closest('.tx-filters-panel__panel, .tx-filters-panel__toggle');\n if (!inside) {\n this.setExpanded(false);\n }\n }\n\n protected closeOnEscape(event: Event): void {\n if (!this.expanded() || (event.target as HTMLElement | null)?.closest?.(OVERLAY_CONTAINER)) {\n return;\n }\n const hadFocus = this.host.nativeElement.contains(this.document.activeElement);\n this.setExpanded(false);\n if (hadFocus) {\n this.toggleButton()?.nativeElement.focus();\n }\n }\n\n private focusMenuItem(key: string): void {\n const items = Array.from(this.menuList()?.nativeElement.querySelectorAll<HTMLElement>('[data-key]') ?? []);\n items.find((item) => item.getAttribute('data-key') === key)?.focus();\n }\n\n private saveLayout(layout: TxFiltersPanelLayout): void {\n this.layout.set(layout);\n this.writeLayout(layout);\n this.layoutChange.emit(layout);\n }\n\n private storage(): Storage | null {\n try {\n const view = this.document.defaultView;\n return (this.stateStorage() === 'session' ? view?.sessionStorage : view?.localStorage) ?? null;\n } catch {\n return null;\n }\n }\n\n private readLayout(key: string | undefined): TxFiltersPanelLayout | null {\n if (!key) {\n return null;\n }\n try {\n const stored: unknown = JSON.parse(this.storage()?.getItem(key) ?? 'null');\n if (Array.isArray(stored)) {\n return { order: [], visible: stored.map(String) };\n }\n if (stored && typeof stored === 'object') {\n const { order, visible } = stored as Partial<TxFiltersPanelLayout>;\n return {\n order: Array.isArray(order) ? order.map(String) : [],\n visible: Array.isArray(visible) ? visible.map(String) : null,\n };\n }\n return null;\n } catch {\n return null;\n }\n }\n\n private writeLayout(layout: TxFiltersPanelLayout | null): void {\n const key = this.stateKey();\n if (!key) {\n return;\n }\n try {\n if (layout) {\n this.storage()?.setItem(key, JSON.stringify(layout));\n } else {\n this.storage()?.removeItem(key);\n }\n } catch {\n return;\n }\n }\n}\n\n","@if (collapsible()) {\n <button\n #toggleButton\n type=\"button\"\n class=\"tx-filters-panel__toggle\"\n [class]=\"passThrough().toggle?.class\"\n [style]=\"passThrough().toggle?.style\"\n [attr.aria-expanded]=\"expanded()\"\n [attr.aria-controls]=\"id + '-panel'\"\n (click)=\"setExpanded(!expanded())\"\n >\n <tx-icon name=\"filter\" aria-hidden=\"true\" />\n <span>{{ translations().filters }}</span>\n @if (activeCount()) {\n <span class=\"tx-filters-panel__count tx-filters-panel__count--inline\">{{ activeCount() }}</span>\n }\n <tx-icon class=\"tx-filters-panel__chevron\" name=\"chevron-down\" aria-hidden=\"true\" />\n </button>\n}\n<div\n class=\"tx-filters-panel__panel\"\n [id]=\"id + '-panel'\"\n [class]=\"passThrough().panel?.class\"\n [style]=\"passThrough().panel?.style\"\n (animationend)=\"onPanelAnimationEnd($event)\"\n>\n <div\n #fieldsContainer\n class=\"tx-filters-panel__fields\"\n [class]=\"passThrough().fields?.class\"\n [style]=\"passThrough().fields?.style\"\n >\n <ng-content />\n </div>\n @if (collapsible() && resetAction()) {\n <div class=\"tx-filters-panel__panel-footer\">\n <button\n txButton\n type=\"button\"\n severity=\"warn\"\n outlined\n fluid\n icon=\"filter-slash\"\n [unstyled]=\"isUnstyled()\"\n (click)=\"clearFilters()\"\n >\n {{ translations().clearFilters }}\n </button>\n </div>\n }\n</div>\n<div class=\"tx-filters-panel__actions\" [class]=\"passThrough().actions?.class\" [style]=\"passThrough().actions?.style\">\n @if (customizable()) {\n <button\n type=\"button\"\n class=\"tx-filters-panel__menu-button\"\n aria-haspopup=\"menu\"\n [class]=\"passThrough().menuButton?.class\"\n [style]=\"passThrough().menuButton?.style\"\n [class.tx-filters-panel__menu-button--open]=\"menuOpen()\"\n [attr.aria-label]=\"menuButtonLabel()\"\n [txTooltip]=\"menuOpen() ? undefined : translations().filters\"\n tooltipPlacement=\"top\"\n [txPopoverTrigger]=\"menu\"\n >\n <tx-icon name=\"sliders-h\" aria-hidden=\"true\" />\n @if (hiddenCount()) {\n <span class=\"tx-filters-panel__count tx-filters-panel__count--corner\" aria-hidden=\"true\">{{ hiddenCount() }}</span>\n }\n </button>\n <tx-popover\n #menu\n placement=\"bottom-end\"\n [offset]=\"8\"\n [ariaLabel]=\"translations().showFilters\"\n [dt]=\"menuPopoverDt\"\n [pt]=\"menuPopoverPt()\"\n [unstyled]=\"isUnstyled()\"\n (opened)=\"menuOpen.set(true)\"\n (closed)=\"menuOpen.set(false)\"\n >\n <div class=\"tx-filters-panel-menu\" [attr.data-styled]=\"!isUnstyled() || null\" [class]=\"passThrough().menu?.class\" [style]=\"passThrough().menu?.style\">\n <div class=\"tx-filters-panel-menu__head\">\n <span class=\"tx-filters-panel-menu__title\" [id]=\"id + '-menu-title'\">{{ translations().showFilters }}</span>\n <span class=\"tx-filters-panel-menu__counter\">{{ counterText() }}</span>\n </div>\n <div\n #menuList\n class=\"tx-filters-panel-menu__list\"\n role=\"menu\"\n cdkDropList\n cdkDropListLockAxis=\"y\"\n [attr.aria-labelledby]=\"id + '-menu-title'\"\n (cdkDropListDropped)=\"drop($event)\"\n >\n @for (option of options(); track option.key) {\n <div\n cdkDrag\n cdkDragLockAxis=\"y\"\n cdkDragPreviewContainer=\"parent\"\n class=\"tx-filters-panel-menu__row\"\n role=\"none\"\n [cdkDragBoundary]=\"menuList\"\n [class.tx-filters-panel-menu__row--on]=\"option.visible\"\n [class.tx-filters-panel-menu__row--locked]=\"option.active\"\n >\n <button\n type=\"button\"\n class=\"tx-filters-panel-menu__toggle\"\n role=\"menuitemcheckbox\"\n [attr.data-key]=\"option.key\"\n [attr.aria-checked]=\"option.visible\"\n [attr.aria-disabled]=\"option.active || null\"\n [attr.aria-description]=\"option.active ? translations().filterHasValue : null\"\n [title]=\"option.active ? translations().filterHasValue : ''\"\n (click)=\"toggle(option.key)\"\n (keydown)=\"onMenuKeydown($event, option.key)\"\n >\n <span class=\"tx-filters-panel-menu__check\" aria-hidden=\"true\"><tx-icon name=\"check\" /></span>\n <span class=\"tx-filters-panel-menu__label\">{{ option.label }}</span>\n @if (option.active) {\n <span class=\"tx-filters-panel-menu__dot\" aria-hidden=\"true\"></span>\n }\n </button>\n <span class=\"tx-filters-panel-menu__handle\" cdkDragHandle aria-hidden=\"true\" [title]=\"translations().reorderFilter\">\n <tx-icon name=\"bars\" />\n </span>\n </div>\n }\n </div>\n <div class=\"tx-filters-panel-menu__footer\" role=\"none\">\n <button type=\"button\" class=\"tx-filters-panel-menu__reset\" role=\"menuitem\" (click)=\"reset()\" (keydown)=\"onMenuKeydown($event, '')\">\n {{ translations().resetFiltersLayout }}\n </button>\n </div>\n </div>\n </tx-popover>\n }\n <ng-content select=\"[txFiltersActions]\" />\n</div>\n"],"mappings":";;;;;;;;;;;;;AAEA,MAAa,8BAAyC;CACpD,MAAM;CACN,OAAO;CACP,gBAAgB;CAChB,QAAQ;CACR,gBAAgB;CAChB,QAAQ;CACR,aAAa;AACd;ACRD,MAAa,sBAAsB;CACjC,cAAc;CACd,MAAM;CACN,UAAU;AACX;ACUD,MAAa,mBAAmB,IAAI,eAAsC,kBAAkB;AAa5F,IAAa,gBAAb,MAAa,cAAa;CACP,oBAAoB,aAAa,mBAAmB;CAEpD,QAAQ,OAAO,kBAAkB,EAAE,UAAU,KAAI,CAAE;CAE3D,gBAAgB,MAAM,SAAkB,GAAA,YAAA,CAAA,EAAA,WAAA,gBAAA,CAAA,+BAAA,CAAA,CAAA;CACxC,cAAc,MAAM,SAAkB,GAAA,YAAA,CAAA,EAAA,WAAA,cAAA,CAAA,+BAAA,CAAA,CAAA;CACtC,eAAe,MAAwB,OAAK;EAAA,GAAA,YAAA,EAAA,WAAA,eAAA,+BAAA,CAAA;EAAI,WAAW;CAAgB,CAAA;CAE3E,SAA0B,eAAe,KAAK,OAAO,cAAc,KAAK,cAAa,CAAE,KAAK,OAAM,GAAA,YAAA,CAAA,EAAA,WAAA,SAAA,CAAA,+BAAA,CAAA,CAAA;CAClG,QAA+B,eAAe,KAAK,OAAO,WAAW,KAAK,cAAa,CAAE,KAAK,MAAK,GAA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EAAA,CAAA;EAAA,cAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CACvB,gBAAc,EAAA,UAAA,KAAA,CAAA;EAAA,CAAA;EAAA,UAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CACxB,YAAU,EAAA,UAAA,KAAA,CAAA;EAAA,CAAA;CAAA;AAAA,CAAA"}
|
|
1
|
+
{"version":3,"file":"tectra-ng-blocks-filters-panel.mjs","names":[],"sources":["../../../../packages/blocks/filters-panel/src/filters-panel.icons.ts","../../../../packages/blocks/filters-panel/src/filters-panel.theme.ts","../../../../packages/blocks/filters-panel/src/filter-field.directive.ts","../../../../packages/blocks/filters-panel/src/has-filter-value.pipe.ts","../../../../packages/blocks/filters-panel/src/filters-panel.component.ts","../../../../packages/blocks/filters-panel/src/filters-panel.component.html"],"sourcesContent":["import { TxIconSet, txIconBars, txIconCheck, txIconChevronDown, txIconFilter, txIconFilterSlash, txIconSearch, txIconSlidersH } from '@tectra-ng/icons';\n\nexport const FILTERS_PANEL_ICON_DEFAULTS: TxIconSet = {\n bars: txIconBars,\n check: txIconCheck,\n 'chevron-down': txIconChevronDown,\n filter: txIconFilter,\n 'filter-slash': txIconFilterSlash,\n search: txIconSearch,\n 'sliders-h': txIconSlidersH,\n};\n","import { filtersPanelTokens, iconTokens, skeletonTokens } from '@tectra-ng/themes';\n\nexport const FILTERS_PANEL_THEME = {\n filtersPanel: filtersPanelTokens,\n icon: iconTokens,\n skeleton: skeletonTokens,\n};\n","import {\n DestroyRef,\n Directive,\n ElementRef,\n Injectable,\n InjectionToken,\n OnInit,\n Provider,\n Signal,\n WritableSignal,\n booleanAttribute,\n computed,\n inject,\n input,\n signal,\n} from '@angular/core';\nimport { TxFluid } from '@tectra-ng/core/fluid';\nimport { provideTxIconDefaults } from '@tectra-ng/icons';\nimport { FILTERS_PANEL_ICON_DEFAULTS } from './filters-panel.icons';\nimport { injectTokens } from '@tectra-ng/core/config';\nimport { FILTERS_PANEL_THEME } from './filters-panel.theme';\n\n/** What a `txFilterField` asks its panel: whether it is hidden and where it sits. */\nexport interface TxFiltersPanelContext {\n /** Tells whether the field with this key is hidden. */\n isFieldHidden(key: string): boolean;\n /** Position of the field with this key, or `null` when the order is not customised. */\n fieldOrder(key: string): number | null;\n /** Adds a field once its inputs are set; returns the function that removes it. */\n registerField?(field: TxFilterField): () => void;\n /** Adds a reset action; returns the function that removes it. */\n registerReset?(reset: TxFiltersReset): () => void;\n}\n\n/** Injection token through which `txFilterField` finds its `tx-filters-panel`. */\nexport const TX_FILTERS_PANEL = new InjectionToken<TxFiltersPanelContext>('TX_FILTERS_PANEL');\n\n/** Marks a field inside `tx-filters-panel` so the user can show, hide and reorder it. */\n@Directive({\n selector: '[txFilterField]',\n providers: [provideTxIconDefaults(FILTERS_PANEL_ICON_DEFAULTS), { provide: TxFluid, useFactory: () => new TxFluid() }],\n host: {\n class: 'tx-filter-field',\n '[attr.hidden]': 'hidden() ? \"\" : null',\n '[style.display]': 'hidden() ? \"none\" : null',\n '[style.order]': 'order()',\n },\n})\nexport class TxFilterField implements OnInit {\n private readonly filtersPanelTheme = injectTokens(FILTERS_PANEL_THEME);\n\n private readonly panel = inject(TX_FILTERS_PANEL, { optional: true });\n private readonly destroyRef = inject(DestroyRef);\n\n readonly txFilterField = input.required<string>();\n readonly filterLabel = input.required<string>();\n readonly filterActive = input<boolean, unknown>(false, { transform: booleanAttribute });\n\n readonly hidden: Signal<boolean> = computed(() => this.panel?.isFieldHidden(this.txFilterField()) ?? false);\n readonly order: Signal<number | null> = computed(() => this.panel?.fieldOrder(this.txFilterField()) ?? null);\n\n ngOnInit(): void {\n const unregister = this.panel?.registerField?.(this);\n if (unregister) {\n this.destroyRef.onDestroy(unregister);\n }\n }\n}\n\n@Directive({\n selector: '[txFiltersReset]',\n host: { class: 'tx-filters-panel__reset' },\n providers: [provideTxIconDefaults(FILTERS_PANEL_ICON_DEFAULTS)],\n})\nexport class TxFiltersReset {\n private readonly filtersPanelTheme = injectTokens(FILTERS_PANEL_THEME);\n\n private readonly host = inject<ElementRef<HTMLElement>>(ElementRef);\n\n constructor() {\n const unregister = inject(TX_FILTERS_PANEL, { optional: true })?.registerReset?.(this);\n if (unregister) {\n inject(DestroyRef).onDestroy(unregister);\n }\n }\n\n trigger(): void {\n this.host.nativeElement.click();\n }\n}\n\n/**\n * Passes the fields projected into a wrapper component to the `tx-filters-panel` inside that wrapper, which\n * Angular cannot find through the wrapper. Provide it with `provideTxFiltersPanelRelay()`.\n */\n@Injectable()\nexport class TxFiltersPanelRelay implements TxFiltersPanelContext {\n private readonly target = signal<TxFiltersPanelContext | null>(null);\n private readonly fieldList = signal<readonly TxFilterField[]>([]);\n private readonly resetList = signal<readonly TxFiltersReset[]>([]);\n\n /** Fields registered through the relay, in the order they were created. */\n readonly fields = this.fieldList.asReadonly();\n /** Reset actions registered through the relay. */\n readonly resets = this.resetList.asReadonly();\n\n /** Whether the connected panel hides the field with this key; `false` before a panel connects. */\n isFieldHidden(key: string): boolean {\n return this.target()?.isFieldHidden(key) ?? false;\n }\n\n /** Position the connected panel gives the field with this key; `null` before a panel connects. */\n fieldOrder(key: string): number | null {\n return this.target()?.fieldOrder(key) ?? null;\n }\n\n /** Adds a projected field to the relay; returns the function that removes it. */\n registerField(field: TxFilterField): () => void {\n return register(this.fieldList, field);\n }\n\n /** Adds a projected reset action to the relay; returns the function that removes it. */\n registerReset(reset: TxFiltersReset): () => void {\n return register(this.resetList, reset);\n }\n\n /** Connects the first panel created inside the wrapper; returns the function that disconnects it, or `null` when another panel is connected. */\n connect(panel: TxFiltersPanelContext): (() => void) | null {\n if (this.target()) {\n return null;\n }\n this.target.set(panel);\n return () => this.target.set(null);\n }\n}\n\n/**\n * Providers for a component that wraps `tx-filters-panel` and projects `txFilterField` elements into it:\n * `providers: [provideTxFiltersPanelRelay()]`.\n */\nexport function provideTxFiltersPanelRelay(): Provider[] {\n return [TxFiltersPanelRelay, { provide: TX_FILTERS_PANEL, useExisting: TxFiltersPanelRelay }];\n}\n\nfunction register<T>(list: WritableSignal<readonly T[]>, item: T): () => void {\n list.update((items) => [...items, item]);\n return () => list.update((items) => items.filter((entry) => entry !== item));\n}\n","import { Pipe, PipeTransform } from '@angular/core';\n\n/** Whether any value is set: not `null`, `undefined`, a blank string or an empty array. */\nexport function hasFilterValue(...values: unknown[]): boolean {\n return values.some((value) => {\n if (value === null || value === undefined) {\n return false;\n }\n if (typeof value === 'string') {\n return value.trim().length > 0;\n }\n if (Array.isArray(value)) {\n return value.length > 0;\n }\n return true;\n });\n}\n\n/** `hasFilterValue`: whether any of the values is set, see `hasFilterValue`. */\n@Pipe({ name: 'hasFilterValue' })\nexport class TxHasFilterValuePipe implements PipeTransform {\n transform(...values: unknown[]): boolean {\n return hasFilterValue(...values);\n }\n}\n","import { CdkDrag, CdkDragDrop, CdkDragHandle, CdkDropList, moveItemInArray } from '@angular/cdk/drag-drop';\nimport {\n AfterViewInit,\n Injector,\n afterNextRender,\n ChangeDetectionStrategy,\n Component,\n DOCUMENT,\n DestroyRef,\n ElementRef,\n booleanAttribute,\n computed,\n contentChild,\n contentChildren,\n effect,\n forwardRef,\n inject,\n input,\n linkedSignal,\n numberAttribute,\n output,\n signal,\n untracked,\n viewChild,\n} from '@angular/core';\nimport { uniqueId } from '@tectra-ng/core/a11y';\nimport { injectPassThrough, injectTokens, injectUnstyled, TxPassThrough, TxPassThroughOptions } from '@tectra-ng/core/config';\nimport { TxLocaleService, injectTranslations } from '@tectra-ng/core/i18n';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\nimport { provideTxIconDefaults, TxIcon } from '@tectra-ng/icons';\nimport { TectraDeepPartial, TectraFiltersPanelTokens, toStyleObject } from '@tectra-ng/themes';\nimport { TxButton } from '@tectra-ng/ui/button';\nimport { TxPopover, TxPopoverTrigger } from '@tectra-ng/ui/popover';\nimport { TxTooltip } from '@tectra-ng/ui/tooltip';\nimport { TX_FILTERS_PANEL, TxFilterField, TxFiltersPanelContext, TxFiltersPanelRelay, TxFiltersReset } from './filter-field.directive';\nimport {\n TxFiltersPanelCollapse,\n TxFiltersPanelLayout,\n TxFiltersPanelOption,\n TxFiltersPanelPart,\n TxFiltersPanelStateStorage,\n TxFiltersPanelVariant,\n} from './filters-panel.types';\nimport { FILTERS_PANEL_ICON_DEFAULTS } from './filters-panel.icons';\nimport { FILTERS_PANEL_THEME } from './filters-panel.theme';\n\nconst COLLAPSE_QUERY = '(width < 64rem)';\nconst OVERLAY_CONTAINER = '.cdk-overlay-container';\nconst CLOSE_FALLBACK_MS = 400;\n\n/** A row of filter fields with reset, a \"Filters\" fold on narrow screens and an optional saved layout. */\n@Component({\n selector: 'tx-filters-panel',\n imports: [CdkDropList, CdkDrag, CdkDragHandle, TxIcon, TxButton, TxPopover, TxPopoverTrigger, TxTooltip],\n templateUrl: './filters-panel.component.html',\n styleUrl: './filters-panel.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [{ provide: TX_FILTERS_PANEL, useExisting: forwardRef(() => TxFiltersPanel) }],\n host: {\n class: 'tx-filters-panel',\n role: 'search',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[attr.data-variant]': 'variant()',\n '[attr.data-collapse]': 'collapse()',\n '[attr.aria-label]': 'ariaLabel() ?? null',\n '[attr.aria-busy]': 'busy() || null',\n '[class.tx-filters-panel--busy]': 'busy()',\n '[class.tx-filters-panel--collapsible]': 'collapsible()',\n '[class.tx-filters-panel--expanded]': 'expanded()',\n '[class.tx-filters-panel--closing]': 'closing()',\n '(document:click)': 'closeOnOutsideClick($event)',\n '(document:keydown.escape)': 'closeOnEscape($event)',\n },\n viewProviders: [provideTxIconDefaults(FILTERS_PANEL_ICON_DEFAULTS)],\n})\nexport class TxFiltersPanel implements TxFiltersPanelContext, AfterViewInit {\n private readonly filtersPanelTheme = injectTokens(FILTERS_PANEL_THEME);\n\n private readonly document = inject(DOCUMENT);\n private readonly host = inject<ElementRef<HTMLElement>>(ElementRef);\n private readonly injector = inject(Injector);\n private readonly locale = inject(TxLocaleService);\n\n readonly variant = input<TxFiltersPanelVariant>('card');\n readonly busy = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly stateKey = input<string | undefined>(undefined);\n readonly stateStorage = input<TxFiltersPanelStateStorage>('local');\n readonly defaultVisible = input<number, unknown>(3, { transform: numberAttribute });\n readonly collapse = input<TxFiltersPanelCollapse>('auto');\n readonly ariaLabel = input<string | undefined>(undefined);\n readonly dt = input<TectraDeepPartial<TectraFiltersPanelTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxFiltersPanelPart, TxFiltersPanel> | undefined>(undefined);\n readonly ptOptions = input<TxPassThroughOptions | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly layoutChange = output<TxFiltersPanelLayout | null>();\n readonly expandedChange = output<boolean>();\n\n readonly isUnstyled = injectUnstyled(this.unstyled);\n readonly passThrough = injectPassThrough('filtersPanel', this, this.pt, this.ptOptions);\n protected readonly translations = injectTranslations();\n protected readonly id = uniqueId('tx-filters-panel');\n\n private readonly queriedFields = contentChildren(TxFilterField, { descendants: true });\n private readonly readyFields = signal<readonly TxFilterField[]>([]);\n private readonly resetSlot = contentChild(TxFiltersReset, { descendants: true });\n private readonly registeredResets = signal<readonly TxFiltersReset[]>([]);\n private readonly relay = signal<TxFiltersPanelRelay | null>(null);\n private readonly fields = computed(() => {\n const ready = [...this.readyFields(), ...(this.relay()?.fields() ?? [])];\n const queried = this.queriedFields().filter((field) => ready.includes(field));\n return [...queried, ...ready.filter((field) => !queried.includes(field))];\n });\n protected readonly resetAction = computed(() => this.resetSlot() ?? [...this.registeredResets(), ...(this.relay()?.resets() ?? [])][0] ?? null);\n private readonly fieldsContainer = viewChild.required<ElementRef<HTMLElement>>('fieldsContainer');\n private readonly toggleButton = viewChild<ElementRef<HTMLButtonElement>>('toggleButton');\n private readonly menuList = viewChild<ElementRef<HTMLElement>>('menuList');\n\n private readonly projectedCount = signal(0);\n private readonly narrow = signal(false);\n readonly expanded = signal(false);\n protected readonly closing = signal(false);\n private closingTimer: ReturnType<typeof setTimeout> | undefined;\n protected readonly menuOpen = signal(false);\n\n readonly collapsible = computed(() => this.collapse() !== 'never' && Math.max(this.fields().length, this.projectedCount()) > 1);\n readonly folded = computed(() => this.collapsible() && (this.collapse() === 'always' || this.narrow()));\n readonly activeCount = computed(() => this.fields().filter((field) => field.filterActive()).length);\n readonly customizable = computed(() => !!this.stateKey() && this.fields().length > 0);\n\n private readonly layout = linkedSignal<TxFiltersPanelLayout | null>(() => this.readLayout(this.stateKey()));\n\n private readonly orderedKeys = computed(() => {\n const keys = this.fields().map((field) => field.txFilterField());\n const stored = (this.layout()?.order ?? []).filter((key) => keys.includes(key));\n return [...stored, ...keys.filter((key) => !stored.includes(key))];\n });\n\n private readonly chosenKeys = computed(() => this.layout()?.visible ?? this.orderedKeys().slice(0, this.defaultVisible()));\n\n private readonly visibleKeys = computed(\n () =>\n new Set([\n ...this.chosenKeys(),\n ...this.fields()\n .filter((field) => field.filterActive())\n .map((field) => field.txFilterField()),\n ]),\n );\n\n readonly options = computed<TxFiltersPanelOption[]>(() => {\n const fields = new Map(this.fields().map((field) => [field.txFilterField(), field]));\n const visible = this.visibleKeys();\n return this.orderedKeys().map((key) => ({\n key,\n label: fields.get(key)?.filterLabel() ?? key,\n visible: visible.has(key),\n active: fields.get(key)?.filterActive() ?? false,\n }));\n });\n\n readonly visibleCount = computed(() => this.options().filter((option) => option.visible).length);\n readonly hiddenCount = computed(() => this.options().length - this.visibleCount());\n protected readonly counterText = computed(() => this.locale.translate('filtersShown', { shown: this.visibleCount(), total: this.options().length }));\n protected readonly menuButtonLabel = computed(() => {\n const label = this.translations().showFilters;\n const count = this.hiddenCount();\n return count ? this.locale.translate('filtersHidden', { label, count }) : label;\n });\n\n\n protected readonly tokenStyle = computed(() => toStyleObject(this.dt(), '--tx-filters-panel'));\n readonly hostStyle = computed(() => ({ ...this.tokenStyle(), ...this.passThrough().root?.style }));\n protected readonly menuPopoverDt = {\n root: {\n borderRadius: 'var(--tx-filters-panel-menu-border-radius)',\n shadow: 'var(--tx-filters-panel-menu-shadow)',\n padding: '0',\n },\n content: { padding: '0' },\n };\n protected readonly menuPopoverPt = computed(() => ({ root: { style: this.tokenStyle() } }));\n\n constructor() {\n const destroyRef = inject(DestroyRef);\n destroyRef.onDestroy(() => clearTimeout(this.closingTimer));\n const relay = inject(TxFiltersPanelRelay, { optional: true });\n const disconnect = relay?.connect(this);\n if (relay && disconnect) {\n this.relay.set(relay);\n destroyRef.onDestroy(disconnect);\n }\n effect((onCleanup) => {\n const view = this.document.defaultView;\n if (!view?.matchMedia) {\n return;\n }\n const media = view.matchMedia(COLLAPSE_QUERY);\n const update = () => {\n this.narrow.set(media.matches);\n if (!this.folded()) {\n this.setExpanded(false);\n }\n };\n untracked(update);\n media.addEventListener?.('change', update);\n onCleanup(() => media.removeEventListener?.('change', update));\n });\n }\n\n ngAfterViewInit(): void {\n this.projectedCount.set(this.fieldsContainer().nativeElement.children.length);\n }\n\n registerField(field: TxFilterField): () => void {\n this.readyFields.update((fields) => [...fields, field]);\n return () => this.readyFields.update((fields) => fields.filter((item) => item !== field));\n }\n\n registerReset(reset: TxFiltersReset): () => void {\n this.registeredResets.update((resets) => [...resets, reset]);\n return () => this.registeredResets.update((resets) => resets.filter((item) => item !== reset));\n }\n\n isFieldHidden(key: string): boolean {\n return this.customizable() && !this.folded() && !this.visibleKeys().has(key);\n }\n\n fieldOrder(key: string): number | null {\n return this.customizable() ? this.orderedKeys().indexOf(key) : null;\n }\n\n toggle(key: string): void {\n const option = this.options().find((item) => item.key === key);\n if (!option || option.active) {\n return;\n }\n const chosen = this.chosenKeys();\n const next = chosen.includes(key) ? chosen.filter((item) => item !== key) : [...chosen, key];\n const order = this.orderedKeys();\n this.saveLayout({ order, visible: order.filter((item) => next.includes(item)) });\n }\n\n move(key: string, offset: number): void {\n const order = [...this.orderedKeys()];\n const from = order.indexOf(key);\n const to = from + offset;\n if (from < 0 || to < 0 || to >= order.length) {\n return;\n }\n moveItemInArray(order, from, to);\n this.saveLayout({ order, visible: this.chosenKeys() });\n }\n\n reset(): void {\n this.layout.set(null);\n this.writeLayout(null);\n this.layoutChange.emit(null);\n }\n\n setExpanded(expanded: boolean): void {\n if (this.expanded() === expanded) {\n return;\n }\n this.finishClosing();\n if (!expanded && this.folded() && !this.isUnstyled() && !this.document.defaultView?.matchMedia?.('(prefers-reduced-motion: reduce)').matches) {\n this.closing.set(true);\n this.closingTimer = setTimeout(() => this.finishClosing(), CLOSE_FALLBACK_MS);\n }\n this.expanded.set(expanded);\n this.expandedChange.emit(expanded);\n }\n\n protected onPanelAnimationEnd(event: AnimationEvent): void {\n if (event.target === event.currentTarget && this.closing()) {\n this.finishClosing();\n }\n }\n\n private finishClosing(): void {\n clearTimeout(this.closingTimer);\n this.closing.set(false);\n }\n\n protected clearFilters(): void {\n this.resetAction()?.trigger();\n }\n\n protected drop(event: CdkDragDrop<unknown>): void {\n if (event.previousIndex === event.currentIndex) {\n return;\n }\n const order = [...this.orderedKeys()];\n moveItemInArray(order, event.previousIndex, event.currentIndex);\n this.saveLayout({ order, visible: this.chosenKeys() });\n }\n\n protected onMenuKeydown(event: KeyboardEvent, key: string): void {\n const menu = (event.currentTarget as HTMLElement | null)?.closest('.tx-filters-panel-menu');\n const items = Array.from(menu?.querySelectorAll<HTMLElement>('[role^=\"menuitem\"]') ?? []);\n const index = items.indexOf(event.target as HTMLElement);\n if (event.altKey && (event.key === 'ArrowUp' || event.key === 'ArrowDown')) {\n event.preventDefault();\n this.move(key, event.key === 'ArrowUp' ? -1 : 1);\n afterNextRender(() => this.focusMenuItem(key), { injector: this.injector });\n return;\n }\n const target = {\n ArrowDown: (index + 1) % items.length,\n ArrowUp: (index - 1 + items.length) % items.length,\n Home: 0,\n End: items.length - 1,\n }[event.key];\n if (target !== undefined && items.length) {\n event.preventDefault();\n items[target].focus();\n }\n }\n\n protected closeOnOutsideClick(event: Event): void {\n if (!this.expanded()) {\n return;\n }\n const target = event.target as HTMLElement | null;\n if (!target?.isConnected || target.closest(OVERLAY_CONTAINER)) {\n return;\n }\n const host = this.host.nativeElement;\n const inside = host.contains(target) && !!target.closest('.tx-filters-panel__panel, .tx-filters-panel__toggle');\n if (!inside) {\n this.setExpanded(false);\n }\n }\n\n protected closeOnEscape(event: Event): void {\n if (!this.expanded() || (event.target as HTMLElement | null)?.closest?.(OVERLAY_CONTAINER)) {\n return;\n }\n const hadFocus = this.host.nativeElement.contains(this.document.activeElement);\n this.setExpanded(false);\n if (hadFocus) {\n this.toggleButton()?.nativeElement.focus();\n }\n }\n\n private focusMenuItem(key: string): void {\n const items = Array.from(this.menuList()?.nativeElement.querySelectorAll<HTMLElement>('[data-key]') ?? []);\n items.find((item) => item.getAttribute('data-key') === key)?.focus();\n }\n\n private saveLayout(layout: TxFiltersPanelLayout): void {\n this.layout.set(layout);\n this.writeLayout(layout);\n this.layoutChange.emit(layout);\n }\n\n private storage(): Storage | null {\n try {\n const view = this.document.defaultView;\n return (this.stateStorage() === 'session' ? view?.sessionStorage : view?.localStorage) ?? null;\n } catch {\n return null;\n }\n }\n\n private readLayout(key: string | undefined): TxFiltersPanelLayout | null {\n if (!key) {\n return null;\n }\n try {\n const stored: unknown = JSON.parse(this.storage()?.getItem(key) ?? 'null');\n if (Array.isArray(stored)) {\n return { order: [], visible: stored.map(String) };\n }\n if (stored && typeof stored === 'object') {\n const { order, visible } = stored as Partial<TxFiltersPanelLayout>;\n return {\n order: Array.isArray(order) ? order.map(String) : [],\n visible: Array.isArray(visible) ? visible.map(String) : null,\n };\n }\n return null;\n } catch {\n return null;\n }\n }\n\n private writeLayout(layout: TxFiltersPanelLayout | null): void {\n const key = this.stateKey();\n if (!key) {\n return;\n }\n try {\n if (layout) {\n this.storage()?.setItem(key, JSON.stringify(layout));\n } else {\n this.storage()?.removeItem(key);\n }\n } catch {\n return;\n }\n }\n}\n\n","@if (collapsible()) {\n <button\n #toggleButton\n type=\"button\"\n class=\"tx-filters-panel__toggle\"\n [class]=\"passThrough().toggle?.class\"\n [style]=\"passThrough().toggle?.style\"\n [attr.aria-expanded]=\"expanded()\"\n [attr.aria-controls]=\"id + '-panel'\"\n (click)=\"setExpanded(!expanded())\"\n >\n <tx-icon name=\"filter\" aria-hidden=\"true\" />\n <span>{{ translations().filters }}</span>\n @if (activeCount()) {\n <span class=\"tx-filters-panel__count tx-filters-panel__count--inline\">{{ activeCount() }}</span>\n }\n <tx-icon class=\"tx-filters-panel__chevron\" name=\"chevron-down\" aria-hidden=\"true\" />\n </button>\n}\n<div\n class=\"tx-filters-panel__panel\"\n [id]=\"id + '-panel'\"\n [class]=\"passThrough().panel?.class\"\n [style]=\"passThrough().panel?.style\"\n (animationend)=\"onPanelAnimationEnd($event)\"\n>\n <div\n #fieldsContainer\n class=\"tx-filters-panel__fields\"\n [class]=\"passThrough().fields?.class\"\n [style]=\"passThrough().fields?.style\"\n >\n <ng-content />\n </div>\n @if (collapsible() && resetAction()) {\n <div class=\"tx-filters-panel__panel-footer\">\n <button\n txButton\n type=\"button\"\n severity=\"warn\"\n outlined\n fluid\n icon=\"filter-slash\"\n [unstyled]=\"isUnstyled()\"\n (click)=\"clearFilters()\"\n >\n {{ translations().clearFilters }}\n </button>\n </div>\n }\n</div>\n<div class=\"tx-filters-panel__actions\" [class]=\"passThrough().actions?.class\" [style]=\"passThrough().actions?.style\">\n @if (customizable()) {\n <button\n type=\"button\"\n class=\"tx-filters-panel__menu-button\"\n aria-haspopup=\"menu\"\n [class]=\"passThrough().menuButton?.class\"\n [style]=\"passThrough().menuButton?.style\"\n [class.tx-filters-panel__menu-button--open]=\"menuOpen()\"\n [attr.aria-label]=\"menuButtonLabel()\"\n [txTooltip]=\"menuOpen() ? undefined : translations().filters\"\n tooltipPlacement=\"top\"\n [txPopoverTrigger]=\"menu\"\n >\n <tx-icon name=\"sliders-h\" aria-hidden=\"true\" />\n @if (hiddenCount()) {\n <span class=\"tx-filters-panel__count tx-filters-panel__count--corner\" aria-hidden=\"true\">{{ hiddenCount() }}</span>\n }\n </button>\n <tx-popover\n #menu\n placement=\"bottom-end\"\n [offset]=\"8\"\n [ariaLabel]=\"translations().showFilters\"\n [dt]=\"menuPopoverDt\"\n [pt]=\"menuPopoverPt()\"\n [unstyled]=\"isUnstyled()\"\n (opened)=\"menuOpen.set(true)\"\n (closed)=\"menuOpen.set(false)\"\n >\n <div class=\"tx-filters-panel-menu\" [attr.data-styled]=\"!isUnstyled() || null\" [class]=\"passThrough().menu?.class\" [style]=\"passThrough().menu?.style\">\n <div class=\"tx-filters-panel-menu__head\">\n <span class=\"tx-filters-panel-menu__title\" [id]=\"id + '-menu-title'\">{{ translations().showFilters }}</span>\n <span class=\"tx-filters-panel-menu__counter\">{{ counterText() }}</span>\n </div>\n <div\n #menuList\n class=\"tx-filters-panel-menu__list\"\n role=\"menu\"\n cdkDropList\n cdkDropListLockAxis=\"y\"\n [attr.aria-labelledby]=\"id + '-menu-title'\"\n (cdkDropListDropped)=\"drop($event)\"\n >\n @for (option of options(); track option.key) {\n <div\n cdkDrag\n cdkDragLockAxis=\"y\"\n cdkDragPreviewContainer=\"parent\"\n class=\"tx-filters-panel-menu__row\"\n role=\"none\"\n [cdkDragBoundary]=\"menuList\"\n [class.tx-filters-panel-menu__row--on]=\"option.visible\"\n [class.tx-filters-panel-menu__row--locked]=\"option.active\"\n >\n <button\n type=\"button\"\n class=\"tx-filters-panel-menu__toggle\"\n role=\"menuitemcheckbox\"\n [attr.data-key]=\"option.key\"\n [attr.aria-checked]=\"option.visible\"\n [attr.aria-disabled]=\"option.active || null\"\n [attr.aria-description]=\"option.active ? translations().filterHasValue : null\"\n [title]=\"option.active ? translations().filterHasValue : ''\"\n (click)=\"toggle(option.key)\"\n (keydown)=\"onMenuKeydown($event, option.key)\"\n >\n <span class=\"tx-filters-panel-menu__check\" aria-hidden=\"true\"><tx-icon name=\"check\" /></span>\n <span class=\"tx-filters-panel-menu__label\">{{ option.label }}</span>\n @if (option.active) {\n <span class=\"tx-filters-panel-menu__dot\" aria-hidden=\"true\"></span>\n }\n </button>\n <span class=\"tx-filters-panel-menu__handle\" cdkDragHandle aria-hidden=\"true\" [title]=\"translations().reorderFilter\">\n <tx-icon name=\"bars\" />\n </span>\n </div>\n }\n </div>\n <div class=\"tx-filters-panel-menu__footer\" role=\"none\">\n <button type=\"button\" class=\"tx-filters-panel-menu__reset\" role=\"menuitem\" (click)=\"reset()\" (keydown)=\"onMenuKeydown($event, '')\">\n {{ translations().resetFiltersLayout }}\n </button>\n </div>\n </div>\n </tx-popover>\n }\n <ng-content select=\"[txFiltersActions]\" />\n</div>\n"],"mappings":";;;;;;;;;;;;;AAEA,MAAa,8BAAyC;CACpD,MAAM;CACN,OAAO;CACP,gBAAgB;CAChB,QAAQ;CACR,gBAAgB;CAChB,QAAQ;CACR,aAAa;AACd;ACRD,MAAa,sBAAsB;CACjC,cAAc;CACd,MAAM;CACN,UAAU;AACX;AC6BD,MAAa,mBAAmB,IAAI,eAAsC,kBAAkB;AAa5F,IAAa,gBAAb,MAAa,cAAa;CACP,oBAAoB,aAAa,mBAAmB;CAEpD,QAAQ,OAAO,kBAAkB,EAAE,UAAU,KAAI,CAAE;CACnD,aAAa,OAAO,UAAU;CAEtC,gBAAgB,MAAM,SAAkB,GAAA,YAAA,CAAA,EAAA,WAAA,gBAAA,CAAA,+BAAA,CAAA,CAAA;CACxC,cAAc,MAAM,SAAkB,GAAA,YAAA,CAAA,EAAA,WAAA,cAAA,CAAA,+BAAA,CAAA,CAAA;CACtC,eAAe,MAAwB,OAAK;EAAA,GAAA,YAAA,EAAA,WAAA,eAAA,+BAAA,CAAA;EAAI,WAAW;CAAgB,CAAA;CAE3E,SAA0B,eAAe,KAAK,OAAO,cAAc,KAAK,cAAa,CAAE,KAAK,OAAM,GAAA,YAAA,CAAA,EAAA,WAAA,SAAA,CAAA,+BAAA,CAAA,CAAA;CAClG,QAA+B,eAAe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A;EAAA,UAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,cAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,cAAA;EAAA,CAAA;EAAA,gBAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,gBAAA;EAAA,CAAA;EAAA,eAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,GAAA,iBAAA,aAAa,GAAA;IAAI,aAAa;IAAM,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,WAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,GAAA,iBAE3C,cAAc,GAAA;IAAI,aAAa;IAAM,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,iBAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CASA,mBAAiB,EAAA,UAAA,KAAA,CAAA;EAAA,CAAA;EAAA,cAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CACvB,gBAAc,EAAA,UAAA,KAAA,CAAA;EAAA,CAAA;EAAA,UAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CACxB,YAAU,EAAA,UAAA,KAAA,CAAA;EAAA,CAAA;CAAA;AAAA,CAAA"}
|
|
@@ -63,7 +63,7 @@ var TxHoverEffect = class TxHoverEffect {
|
|
|
63
63
|
}
|
|
64
64
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
65
65
|
minVersion: "12.0.0",
|
|
66
|
-
version: "22.2.
|
|
66
|
+
version: "22.2.6",
|
|
67
67
|
ngImport: i0,
|
|
68
68
|
type: TxHoverEffect,
|
|
69
69
|
deps: [],
|
|
@@ -71,7 +71,7 @@ var TxHoverEffect = class TxHoverEffect {
|
|
|
71
71
|
});
|
|
72
72
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
73
73
|
minVersion: "17.2.0",
|
|
74
|
-
version: "22.2.
|
|
74
|
+
version: "22.2.6",
|
|
75
75
|
type: TxHoverEffect,
|
|
76
76
|
isStandalone: true,
|
|
77
77
|
selector: "tx-hover-effect",
|
|
@@ -159,7 +159,7 @@ var TxHoverEffect = class TxHoverEffect {
|
|
|
159
159
|
};
|
|
160
160
|
i0.ɵɵngDeclareClassMetadata({
|
|
161
161
|
minVersion: "12.0.0",
|
|
162
|
-
version: "22.2.
|
|
162
|
+
version: "22.2.6",
|
|
163
163
|
ngImport: i0,
|
|
164
164
|
type: TxHoverEffect,
|
|
165
165
|
decorators: [{
|