@tectra-ng/blocks 0.0.0-stage → 0.1.7

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.
Files changed (101) hide show
  1. package/README.md +16 -2
  2. package/action-tile/README.md +33 -0
  3. package/actions-menu/README.md +42 -0
  4. package/app-footer/README.md +30 -0
  5. package/app-layout/README.md +51 -0
  6. package/command-palette/README.md +63 -0
  7. package/console-layout/README.md +70 -0
  8. package/cookie-notice/README.md +45 -0
  9. package/empty-state/README.md +35 -0
  10. package/fesm2022/tectra-ng-blocks-action-tile.mjs +294 -0
  11. package/fesm2022/tectra-ng-blocks-action-tile.mjs.map +1 -0
  12. package/fesm2022/tectra-ng-blocks-actions-menu.mjs +380 -0
  13. package/fesm2022/tectra-ng-blocks-actions-menu.mjs.map +1 -0
  14. package/fesm2022/tectra-ng-blocks-app-footer.mjs +276 -0
  15. package/fesm2022/tectra-ng-blocks-app-footer.mjs.map +1 -0
  16. package/fesm2022/tectra-ng-blocks-app-layout.mjs +544 -0
  17. package/fesm2022/tectra-ng-blocks-app-layout.mjs.map +1 -0
  18. package/fesm2022/tectra-ng-blocks-command-palette.mjs +663 -0
  19. package/fesm2022/tectra-ng-blocks-command-palette.mjs.map +1 -0
  20. package/fesm2022/tectra-ng-blocks-console-layout.mjs +1060 -0
  21. package/fesm2022/tectra-ng-blocks-console-layout.mjs.map +1 -0
  22. package/fesm2022/tectra-ng-blocks-cookie-notice.mjs +416 -0
  23. package/fesm2022/tectra-ng-blocks-cookie-notice.mjs.map +1 -0
  24. package/fesm2022/tectra-ng-blocks-empty-state.mjs +278 -0
  25. package/fesm2022/tectra-ng-blocks-empty-state.mjs.map +1 -0
  26. package/fesm2022/tectra-ng-blocks-filters-panel.mjs +959 -0
  27. package/fesm2022/tectra-ng-blocks-filters-panel.mjs.map +1 -0
  28. package/fesm2022/tectra-ng-blocks-kanban.mjs +864 -0
  29. package/fesm2022/tectra-ng-blocks-kanban.mjs.map +1 -0
  30. package/fesm2022/tectra-ng-blocks-network-status.mjs +303 -0
  31. package/fesm2022/tectra-ng-blocks-network-status.mjs.map +1 -0
  32. package/fesm2022/tectra-ng-blocks-page-header.mjs +195 -0
  33. package/fesm2022/tectra-ng-blocks-page-header.mjs.map +1 -0
  34. package/fesm2022/tectra-ng-blocks-pinned-tabs.mjs +692 -0
  35. package/fesm2022/tectra-ng-blocks-pinned-tabs.mjs.map +1 -0
  36. package/fesm2022/tectra-ng-blocks-public-header.mjs +372 -0
  37. package/fesm2022/tectra-ng-blocks-public-header.mjs.map +1 -0
  38. package/fesm2022/tectra-ng-blocks-qr-code.mjs +487 -0
  39. package/fesm2022/tectra-ng-blocks-qr-code.mjs.map +1 -0
  40. package/fesm2022/tectra-ng-blocks-switch-language.mjs +316 -0
  41. package/fesm2022/tectra-ng-blocks-switch-language.mjs.map +1 -0
  42. package/fesm2022/tectra-ng-blocks-switch-theme.mjs +416 -0
  43. package/fesm2022/tectra-ng-blocks-switch-theme.mjs.map +1 -0
  44. package/fesm2022/tectra-ng-blocks-topbar-preferences.mjs +260 -0
  45. package/fesm2022/tectra-ng-blocks-topbar-preferences.mjs.map +1 -0
  46. package/fesm2022/tectra-ng-blocks-wizard.mjs +1284 -0
  47. package/fesm2022/tectra-ng-blocks-wizard.mjs.map +1 -0
  48. package/fesm2022/tectra-ng-blocks.mjs +4 -0
  49. package/fesm2022/tectra-ng-blocks.mjs.map +1 -0
  50. package/filters-panel/README.md +68 -0
  51. package/kanban/README.md +55 -0
  52. package/network-status/README.md +33 -0
  53. package/package.json +137 -3
  54. package/page-header/README.md +32 -0
  55. package/pinned-tabs/README.md +42 -0
  56. package/public-header/README.md +44 -0
  57. package/qr-code/README.md +52 -0
  58. package/switch-language/README.md +33 -0
  59. package/switch-theme/README.md +32 -0
  60. package/topbar-preferences/README.md +35 -0
  61. package/types/tectra-ng-blocks-action-tile.d.ts +114 -0
  62. package/types/tectra-ng-blocks-action-tile.d.ts.map +1 -0
  63. package/types/tectra-ng-blocks-actions-menu.d.ts +112 -0
  64. package/types/tectra-ng-blocks-actions-menu.d.ts.map +1 -0
  65. package/types/tectra-ng-blocks-app-footer.d.ts +111 -0
  66. package/types/tectra-ng-blocks-app-footer.d.ts.map +1 -0
  67. package/types/tectra-ng-blocks-app-layout.d.ts +212 -0
  68. package/types/tectra-ng-blocks-app-layout.d.ts.map +1 -0
  69. package/types/tectra-ng-blocks-command-palette.d.ts +291 -0
  70. package/types/tectra-ng-blocks-command-palette.d.ts.map +1 -0
  71. package/types/tectra-ng-blocks-console-layout.d.ts +454 -0
  72. package/types/tectra-ng-blocks-console-layout.d.ts.map +1 -0
  73. package/types/tectra-ng-blocks-cookie-notice.d.ts +168 -0
  74. package/types/tectra-ng-blocks-cookie-notice.d.ts.map +1 -0
  75. package/types/tectra-ng-blocks-empty-state.d.ts +138 -0
  76. package/types/tectra-ng-blocks-empty-state.d.ts.map +1 -0
  77. package/types/tectra-ng-blocks-filters-panel.d.ts +314 -0
  78. package/types/tectra-ng-blocks-filters-panel.d.ts.map +1 -0
  79. package/types/tectra-ng-blocks-kanban.d.ts +260 -0
  80. package/types/tectra-ng-blocks-kanban.d.ts.map +1 -0
  81. package/types/tectra-ng-blocks-network-status.d.ts +108 -0
  82. package/types/tectra-ng-blocks-network-status.d.ts.map +1 -0
  83. package/types/tectra-ng-blocks-page-header.d.ts +86 -0
  84. package/types/tectra-ng-blocks-page-header.d.ts.map +1 -0
  85. package/types/tectra-ng-blocks-pinned-tabs.d.ts +159 -0
  86. package/types/tectra-ng-blocks-pinned-tabs.d.ts.map +1 -0
  87. package/types/tectra-ng-blocks-public-header.d.ts +142 -0
  88. package/types/tectra-ng-blocks-public-header.d.ts.map +1 -0
  89. package/types/tectra-ng-blocks-qr-code.d.ts +160 -0
  90. package/types/tectra-ng-blocks-qr-code.d.ts.map +1 -0
  91. package/types/tectra-ng-blocks-switch-language.d.ts +106 -0
  92. package/types/tectra-ng-blocks-switch-language.d.ts.map +1 -0
  93. package/types/tectra-ng-blocks-switch-theme.d.ts +108 -0
  94. package/types/tectra-ng-blocks-switch-theme.d.ts.map +1 -0
  95. package/types/tectra-ng-blocks-topbar-preferences.d.ts +103 -0
  96. package/types/tectra-ng-blocks-topbar-preferences.d.ts.map +1 -0
  97. package/types/tectra-ng-blocks-wizard.d.ts +682 -0
  98. package/types/tectra-ng-blocks-wizard.d.ts.map +1 -0
  99. package/types/tectra-ng-blocks.d.ts +2 -0
  100. package/types/tectra-ng-blocks.d.ts.map +1 -0
  101. package/wizard/README.md +77 -0
@@ -0,0 +1,278 @@
1
+ import * as i0 from "@angular/core";
2
+ import { ChangeDetectionStrategy, Component, computed, input } from "@angular/core";
3
+ import { injectPassThrough, injectUnstyled } from "@tectra-ng/core/config";
4
+ import { optionalBoolean } from "@tectra-ng/core/utils";
5
+ import { TxIcon } from "@tectra-ng/icons";
6
+ import { toStyleObject } from "@tectra-ng/themes";
7
+ var TxEmptyState = class TxEmptyState {
8
+ icon = input("inbox", ...ngDevMode ? [{ debugName: "icon" }] : /* istanbul ignore next */ []);
9
+ title = input(void 0, ...ngDevMode ? [{ debugName: "title" }] : /* istanbul ignore next */ []);
10
+ text = input(void 0, ...ngDevMode ? [{ debugName: "text" }] : /* istanbul ignore next */ []);
11
+ variant = input("plain", ...ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []);
12
+ size = input("normal", ...ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []);
13
+ tone = input("primary", ...ngDevMode ? [{ debugName: "tone" }] : /* istanbul ignore next */ []);
14
+ dt = input(void 0, ...ngDevMode ? [{ debugName: "dt" }] : /* istanbul ignore next */ []);
15
+ pt = input(void 0, ...ngDevMode ? [{ debugName: "pt" }] : /* istanbul ignore next */ []);
16
+ ptOptions = input(void 0, ...ngDevMode ? [{ debugName: "ptOptions" }] : /* istanbul ignore next */ []);
17
+ unstyled = input(void 0, {
18
+ ...ngDevMode ? { debugName: "unstyled" } : /* istanbul ignore next */ {},
19
+ transform: optionalBoolean
20
+ });
21
+ isUnstyled = injectUnstyled(this.unstyled);
22
+ passThrough = injectPassThrough("emptyState", this, this.pt, this.ptOptions);
23
+ hostStyle = computed(() => ({
24
+ ...toStyleObject(this.dt(), "--tx-empty-state"),
25
+ ...this.passThrough().root?.style
26
+ }), ...ngDevMode ? [{ debugName: "hostStyle" }] : /* istanbul ignore next */ []);
27
+ static ɵfac = i0.ɵɵngDeclareFactory({
28
+ minVersion: "12.0.0",
29
+ version: "22.2.3",
30
+ ngImport: i0,
31
+ type: TxEmptyState,
32
+ deps: [],
33
+ target: i0.ɵɵFactoryTarget.Component
34
+ });
35
+ static ɵcmp = i0.ɵɵngDeclareComponent({
36
+ minVersion: "17.0.0",
37
+ version: "22.2.3",
38
+ type: TxEmptyState,
39
+ isStandalone: true,
40
+ selector: "tx-empty-state",
41
+ inputs: {
42
+ icon: {
43
+ classPropertyName: "icon",
44
+ publicName: "icon",
45
+ isSignal: true,
46
+ isRequired: false,
47
+ transformFunction: null
48
+ },
49
+ title: {
50
+ classPropertyName: "title",
51
+ publicName: "title",
52
+ isSignal: true,
53
+ isRequired: false,
54
+ transformFunction: null
55
+ },
56
+ text: {
57
+ classPropertyName: "text",
58
+ publicName: "text",
59
+ isSignal: true,
60
+ isRequired: false,
61
+ transformFunction: null
62
+ },
63
+ variant: {
64
+ classPropertyName: "variant",
65
+ publicName: "variant",
66
+ isSignal: true,
67
+ isRequired: false,
68
+ transformFunction: null
69
+ },
70
+ size: {
71
+ classPropertyName: "size",
72
+ publicName: "size",
73
+ isSignal: true,
74
+ isRequired: false,
75
+ transformFunction: null
76
+ },
77
+ tone: {
78
+ classPropertyName: "tone",
79
+ publicName: "tone",
80
+ isSignal: true,
81
+ isRequired: false,
82
+ transformFunction: null
83
+ },
84
+ dt: {
85
+ classPropertyName: "dt",
86
+ publicName: "dt",
87
+ isSignal: true,
88
+ isRequired: false,
89
+ transformFunction: null
90
+ },
91
+ pt: {
92
+ classPropertyName: "pt",
93
+ publicName: "pt",
94
+ isSignal: true,
95
+ isRequired: false,
96
+ transformFunction: null
97
+ },
98
+ ptOptions: {
99
+ classPropertyName: "ptOptions",
100
+ publicName: "ptOptions",
101
+ isSignal: true,
102
+ isRequired: false,
103
+ transformFunction: null
104
+ },
105
+ unstyled: {
106
+ classPropertyName: "unstyled",
107
+ publicName: "unstyled",
108
+ isSignal: true,
109
+ isRequired: false,
110
+ transformFunction: null
111
+ }
112
+ },
113
+ host: {
114
+ attributes: { "role": "status" },
115
+ properties: {
116
+ "class": "passThrough().root?.class",
117
+ "style": "hostStyle()",
118
+ "attr.data-styled": "!isUnstyled() || null",
119
+ "attr.data-variant": "variant()",
120
+ "attr.data-size": "size()",
121
+ "attr.data-tone": "tone()"
122
+ },
123
+ classAttribute: "tx-empty-state"
124
+ },
125
+ ngImport: i0,
126
+ template: `
127
+ <span class="tx-empty-state__icon" aria-hidden="true" [class]="passThrough().icon?.class" [style]="passThrough().icon?.style">
128
+ <tx-icon [name]="icon()" />
129
+ </span>
130
+ @if (title() || text()) {
131
+ <span class="tx-empty-state__body" [class]="passThrough().body?.class" [style]="passThrough().body?.style">
132
+ @if (title()) {
133
+ <span class="tx-empty-state__title" [class]="passThrough().title?.class" [style]="passThrough().title?.style">{{ title() }}</span>
134
+ }
135
+ @if (text()) {
136
+ <span class="tx-empty-state__text" [class]="passThrough().text?.class" [style]="passThrough().text?.style">{{ text() }}</span>
137
+ }
138
+ </span>
139
+ }
140
+ <ng-content />
141
+ `,
142
+ isInline: true,
143
+ styles: [":host{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}:host([data-size=compact]){flex-direction:row;justify-content:flex-start;text-align:start}.tx-empty-state__icon{display:flex;flex-shrink:0;align-items:center;justify-content:center}.tx-empty-state__body{display:flex;flex-direction:column;align-items:center;min-width:0}:host([data-size=compact]) .tx-empty-state__body{align-items:flex-start}:host([data-styled]){--_tone: var(--tx-empty-state-tone-primary);box-sizing:border-box;gap:var(--tx-empty-state-gap);padding:var(--tx-empty-state-padding);color:var(--tx-empty-state-color);font-family:var(--tx-font-family)}:host([data-styled][data-tone=neutral]){--_tone: var(--tx-empty-state-tone-neutral)}:host([data-styled][data-tone=success]){--_tone: var(--tx-empty-state-tone-success)}:host([data-styled][data-tone=info]){--_tone: var(--tx-empty-state-tone-info)}:host([data-styled][data-tone=warn]){--_tone: var(--tx-empty-state-tone-warn)}:host([data-styled][data-tone=danger]){--_tone: var(--tx-empty-state-tone-danger)}:host([data-styled][data-variant=framed]){min-height:var(--tx-empty-state-framed-min-height);padding:var(--tx-empty-state-framed-padding);border-radius:var(--tx-empty-state-framed-border-radius);background:var(--tx-empty-state-framed-background);box-shadow:0 0 0 1px var(--tx-empty-state-framed-border-color)}:host([data-styled][data-variant=inset]){padding:var(--tx-empty-state-inset-padding);border-radius:var(--tx-empty-state-inset-border-radius);background:var(--tx-empty-state-inset-background)}:host([data-styled][data-size=large]){padding:var(--tx-empty-state-large-padding)}:host([data-styled][data-size=compact]){gap:var(--tx-empty-state-compact-gap);padding:var(--tx-empty-state-compact-padding)}:host([data-styled]) .tx-empty-state__icon{width:var(--tx-empty-state-icon-size);height:var(--tx-empty-state-icon-size);border-radius:var(--tx-empty-state-icon-border-radius);background:color-mix(in srgb,var(--_tone) var(--tx-empty-state-icon-tint),transparent);color:var(--_tone);font-size:var(--tx-empty-state-icon-font-size)}:host([data-styled][data-size=large]) .tx-empty-state__icon{width:var(--tx-empty-state-large-icon-size);height:var(--tx-empty-state-large-icon-size);border-radius:var(--tx-empty-state-large-icon-border-radius);font-size:var(--tx-empty-state-large-icon-font-size)}:host([data-styled][data-size=compact]) .tx-empty-state__icon{width:var(--tx-empty-state-compact-icon-size);height:var(--tx-empty-state-compact-icon-size);font-size:var(--tx-empty-state-compact-icon-font-size)}:host([data-styled]) .tx-empty-state__body{gap:var(--tx-empty-state-body-gap)}:host([data-styled]) .tx-empty-state__title{color:var(--tx-empty-state-title-color);font-size:var(--tx-empty-state-title-font-size);font-weight:var(--tx-empty-state-title-font-weight)}:host([data-styled][data-size=large]) .tx-empty-state__title{font-size:var(--tx-empty-state-large-title-font-size)}:host([data-styled]) .tx-empty-state__text{max-width:var(--tx-empty-state-text-max-width);color:var(--tx-empty-state-text-color);font-size:var(--tx-empty-state-text-font-size);line-height:var(--tx-empty-state-text-line-height)}\n"],
144
+ dependencies: [{
145
+ kind: "component",
146
+ type: TxIcon,
147
+ selector: "tx-icon",
148
+ inputs: ["name"]
149
+ }],
150
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
151
+ });
152
+ };
153
+ i0.ɵɵngDeclareClassMetadata({
154
+ minVersion: "12.0.0",
155
+ version: "22.2.3",
156
+ ngImport: i0,
157
+ type: TxEmptyState,
158
+ decorators: [{
159
+ type: Component,
160
+ args: [{
161
+ selector: "tx-empty-state",
162
+ imports: [TxIcon],
163
+ template: `
164
+ <span class="tx-empty-state__icon" aria-hidden="true" [class]="passThrough().icon?.class" [style]="passThrough().icon?.style">
165
+ <tx-icon [name]="icon()" />
166
+ </span>
167
+ @if (title() || text()) {
168
+ <span class="tx-empty-state__body" [class]="passThrough().body?.class" [style]="passThrough().body?.style">
169
+ @if (title()) {
170
+ <span class="tx-empty-state__title" [class]="passThrough().title?.class" [style]="passThrough().title?.style">{{ title() }}</span>
171
+ }
172
+ @if (text()) {
173
+ <span class="tx-empty-state__text" [class]="passThrough().text?.class" [style]="passThrough().text?.style">{{ text() }}</span>
174
+ }
175
+ </span>
176
+ }
177
+ <ng-content />
178
+ `,
179
+ changeDetection: ChangeDetectionStrategy.OnPush,
180
+ host: {
181
+ class: "tx-empty-state",
182
+ role: "status",
183
+ "[class]": "passThrough().root?.class",
184
+ "[style]": "hostStyle()",
185
+ "[attr.data-styled]": "!isUnstyled() || null",
186
+ "[attr.data-variant]": "variant()",
187
+ "[attr.data-size]": "size()",
188
+ "[attr.data-tone]": "tone()"
189
+ },
190
+ styles: [":host{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}:host([data-size=compact]){flex-direction:row;justify-content:flex-start;text-align:start}.tx-empty-state__icon{display:flex;flex-shrink:0;align-items:center;justify-content:center}.tx-empty-state__body{display:flex;flex-direction:column;align-items:center;min-width:0}:host([data-size=compact]) .tx-empty-state__body{align-items:flex-start}:host([data-styled]){--_tone: var(--tx-empty-state-tone-primary);box-sizing:border-box;gap:var(--tx-empty-state-gap);padding:var(--tx-empty-state-padding);color:var(--tx-empty-state-color);font-family:var(--tx-font-family)}:host([data-styled][data-tone=neutral]){--_tone: var(--tx-empty-state-tone-neutral)}:host([data-styled][data-tone=success]){--_tone: var(--tx-empty-state-tone-success)}:host([data-styled][data-tone=info]){--_tone: var(--tx-empty-state-tone-info)}:host([data-styled][data-tone=warn]){--_tone: var(--tx-empty-state-tone-warn)}:host([data-styled][data-tone=danger]){--_tone: var(--tx-empty-state-tone-danger)}:host([data-styled][data-variant=framed]){min-height:var(--tx-empty-state-framed-min-height);padding:var(--tx-empty-state-framed-padding);border-radius:var(--tx-empty-state-framed-border-radius);background:var(--tx-empty-state-framed-background);box-shadow:0 0 0 1px var(--tx-empty-state-framed-border-color)}:host([data-styled][data-variant=inset]){padding:var(--tx-empty-state-inset-padding);border-radius:var(--tx-empty-state-inset-border-radius);background:var(--tx-empty-state-inset-background)}:host([data-styled][data-size=large]){padding:var(--tx-empty-state-large-padding)}:host([data-styled][data-size=compact]){gap:var(--tx-empty-state-compact-gap);padding:var(--tx-empty-state-compact-padding)}:host([data-styled]) .tx-empty-state__icon{width:var(--tx-empty-state-icon-size);height:var(--tx-empty-state-icon-size);border-radius:var(--tx-empty-state-icon-border-radius);background:color-mix(in srgb,var(--_tone) var(--tx-empty-state-icon-tint),transparent);color:var(--_tone);font-size:var(--tx-empty-state-icon-font-size)}:host([data-styled][data-size=large]) .tx-empty-state__icon{width:var(--tx-empty-state-large-icon-size);height:var(--tx-empty-state-large-icon-size);border-radius:var(--tx-empty-state-large-icon-border-radius);font-size:var(--tx-empty-state-large-icon-font-size)}:host([data-styled][data-size=compact]) .tx-empty-state__icon{width:var(--tx-empty-state-compact-icon-size);height:var(--tx-empty-state-compact-icon-size);font-size:var(--tx-empty-state-compact-icon-font-size)}:host([data-styled]) .tx-empty-state__body{gap:var(--tx-empty-state-body-gap)}:host([data-styled]) .tx-empty-state__title{color:var(--tx-empty-state-title-color);font-size:var(--tx-empty-state-title-font-size);font-weight:var(--tx-empty-state-title-font-weight)}:host([data-styled][data-size=large]) .tx-empty-state__title{font-size:var(--tx-empty-state-large-title-font-size)}:host([data-styled]) .tx-empty-state__text{max-width:var(--tx-empty-state-text-max-width);color:var(--tx-empty-state-text-color);font-size:var(--tx-empty-state-text-font-size);line-height:var(--tx-empty-state-text-line-height)}\n"]
191
+ }]
192
+ }],
193
+ propDecorators: {
194
+ icon: [{
195
+ type: i0.Input,
196
+ args: [{
197
+ isSignal: true,
198
+ alias: "icon",
199
+ required: false
200
+ }]
201
+ }],
202
+ title: [{
203
+ type: i0.Input,
204
+ args: [{
205
+ isSignal: true,
206
+ alias: "title",
207
+ required: false
208
+ }]
209
+ }],
210
+ text: [{
211
+ type: i0.Input,
212
+ args: [{
213
+ isSignal: true,
214
+ alias: "text",
215
+ required: false
216
+ }]
217
+ }],
218
+ variant: [{
219
+ type: i0.Input,
220
+ args: [{
221
+ isSignal: true,
222
+ alias: "variant",
223
+ required: false
224
+ }]
225
+ }],
226
+ size: [{
227
+ type: i0.Input,
228
+ args: [{
229
+ isSignal: true,
230
+ alias: "size",
231
+ required: false
232
+ }]
233
+ }],
234
+ tone: [{
235
+ type: i0.Input,
236
+ args: [{
237
+ isSignal: true,
238
+ alias: "tone",
239
+ required: false
240
+ }]
241
+ }],
242
+ dt: [{
243
+ type: i0.Input,
244
+ args: [{
245
+ isSignal: true,
246
+ alias: "dt",
247
+ required: false
248
+ }]
249
+ }],
250
+ pt: [{
251
+ type: i0.Input,
252
+ args: [{
253
+ isSignal: true,
254
+ alias: "pt",
255
+ required: false
256
+ }]
257
+ }],
258
+ ptOptions: [{
259
+ type: i0.Input,
260
+ args: [{
261
+ isSignal: true,
262
+ alias: "ptOptions",
263
+ required: false
264
+ }]
265
+ }],
266
+ unstyled: [{
267
+ type: i0.Input,
268
+ args: [{
269
+ isSignal: true,
270
+ alias: "unstyled",
271
+ required: false
272
+ }]
273
+ }]
274
+ }
275
+ });
276
+ export { TxEmptyState };
277
+
278
+ //# sourceMappingURL=tectra-ng-blocks-empty-state.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tectra-ng-blocks-empty-state.mjs","names":[],"sources":["../../../../packages/blocks/empty-state/src/empty-state.component.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, computed, input } from '@angular/core';\nimport { TxPassThrough, TxPassThroughOptions, injectPassThrough, injectUnstyled } from '@tectra-ng/core/config';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\nimport { TxIcon, TxIconName } from '@tectra-ng/icons';\nimport { TectraDeepPartial, TectraEmptyStateTokens, toStyleObject } from '@tectra-ng/themes';\nimport { TxEmptyStatePart, TxEmptyStateSize, TxEmptyStateTone, TxEmptyStateVariant } from './empty-state.types';\n\n@Component({\n selector: 'tx-empty-state',\n imports: [TxIcon],\n template: `\n <span class=\"tx-empty-state__icon\" aria-hidden=\"true\" [class]=\"passThrough().icon?.class\" [style]=\"passThrough().icon?.style\">\n <tx-icon [name]=\"icon()\" />\n </span>\n @if (title() || text()) {\n <span class=\"tx-empty-state__body\" [class]=\"passThrough().body?.class\" [style]=\"passThrough().body?.style\">\n @if (title()) {\n <span class=\"tx-empty-state__title\" [class]=\"passThrough().title?.class\" [style]=\"passThrough().title?.style\">{{ title() }}</span>\n }\n @if (text()) {\n <span class=\"tx-empty-state__text\" [class]=\"passThrough().text?.class\" [style]=\"passThrough().text?.style\">{{ text() }}</span>\n }\n </span>\n }\n <ng-content />\n `,\n styleUrl: './empty-state.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-empty-state',\n role: 'status',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[attr.data-variant]': 'variant()',\n '[attr.data-size]': 'size()',\n '[attr.data-tone]': 'tone()',\n },\n})\nexport class TxEmptyState {\n readonly icon = input<TxIconName | (string & {})>('inbox');\n readonly title = input<string | undefined>(undefined);\n readonly text = input<string | undefined>(undefined);\n readonly variant = input<TxEmptyStateVariant>('plain');\n readonly size = input<TxEmptyStateSize>('normal');\n readonly tone = input<TxEmptyStateTone>('primary');\n readonly dt = input<TectraDeepPartial<TectraEmptyStateTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxEmptyStatePart, TxEmptyState> | 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('emptyState', this, this.pt, this.ptOptions);\n readonly hostStyle = computed(() => ({ ...toStyleObject(this.dt(), '--tx-empty-state'), ...this.passThrough().root?.style }));\n}\n"],"mappings":";;;;;;AAuCA,IAAa,eAAb,MAAa,aAAY;CACd,OAAO,MAAkC,SAAQ,GAAA,YAAA,CAAA,EAAA,WAAA,OAAA,CAAA,+BAAA,CAAA,CAAA;CACjD,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,UAAU,MAA2B,SAAQ,GAAA,YAAA,CAAA,EAAA,WAAA,UAAA,CAAA,+BAAA,CAAA,CAAA;CAC7C,OAAO,MAAwB,UAAS,GAAA,YAAA,CAAA,EAAA,WAAA,OAAA,CAAA,+BAAA,CAAA,CAAA;CACxC,OAAO,MAAwB,WAAU,GAAA,YAAA,CAAA,EAAA,WAAA,OAAA,CAAA,+BAAA,CAAA,CAAA;CACzC,KAAK,MAA6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