@yuuvis/client-framework 2.1.16 → 2.1.18

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.
@@ -1,9 +1,11 @@
1
1
  import * as i0 from '@angular/core';
2
- import { inject, input, Component, computed, effect, signal, Injectable, ViewContainerRef, Injector, runInInjectionContext, Directive } from '@angular/core';
3
- import { SystemService, LocaleDatePipe, FileSizePipe, InternalFieldType, ContentStreamField } from '@yuuvis/client-core';
4
- import { MatIconRegistry, MatIcon } from '@angular/material/icon';
2
+ import { inject, input, Component, computed, effect, signal, Injectable, ViewContainerRef, Injector, Directive } from '@angular/core';
3
+ import * as i1 from '@yuuvis/client-core';
4
+ import { SystemService, LocaleDatePipe, FileSizePipe, TranslateModule, InternalFieldType, ContentStreamField } from '@yuuvis/client-core';
5
+ import { MatIcon, MatIconRegistry } from '@angular/material/icon';
5
6
  import { DomSanitizer } from '@angular/platform-browser';
6
7
  import { ObjectTypeIconComponent } from '@yuuvis/client-framework/icons';
8
+ import { CommonModule } from '@angular/common';
7
9
 
8
10
  /**
9
11
  * Abstract class to be extended by property renderers
@@ -26,18 +28,26 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.12", ngImpo
26
28
  type: Component,
27
29
  args: [{
28
30
  selector: 'yuv-abstract-renderer',
29
- standalone: true,
30
31
  template: ''
31
32
  }]
32
33
  }] });
33
34
 
35
+ class BooleanRendererComponent extends AbstractRendererComponent {
36
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.12", ngImport: i0, type: BooleanRendererComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
37
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.12", type: BooleanRendererComponent, isStandalone: true, selector: "yuv-boolean-renderer", usesInheritance: true, ngImport: i0, template: ` <mat-icon>{{ value() ? 'check_box' : 'check_box_outline_blank' }}</mat-icon>`, isInline: true, styles: [":host{--mdc-checkbox-state-layer-size: 18px;display:flex;padding:var(--tile-slot-padding)}\n"], dependencies: [{ kind: "component", type: MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }] }); }
38
+ }
39
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.12", ngImport: i0, type: BooleanRendererComponent, decorators: [{
40
+ type: Component,
41
+ args: [{ selector: 'yuv-boolean-renderer', imports: [MatIcon], template: ` <mat-icon>{{ value() ? 'check_box' : 'check_box_outline_blank' }}</mat-icon>`, styles: [":host{--mdc-checkbox-state-layer-size: 18px;display:flex;padding:var(--tile-slot-padding)}\n"] }]
42
+ }] });
43
+
34
44
  class DateTimeRendererComponent extends AbstractRendererComponent {
35
45
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.12", ngImport: i0, type: DateTimeRendererComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
36
46
  static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.12", type: DateTimeRendererComponent, isStandalone: true, selector: "yuv-datetime-renderer", usesInheritance: true, ngImport: i0, template: '{{(value() || undefined) | localeDate}}', isInline: true, styles: [":host{display:inline-block;padding:var(--tile-slot-padding)}\n"], dependencies: [{ kind: "pipe", type: LocaleDatePipe, name: "localeDate" }] }); }
37
47
  }
38
48
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.12", ngImport: i0, type: DateTimeRendererComponent, decorators: [{
39
49
  type: Component,
40
- args: [{ selector: 'yuv-datetime-renderer', standalone: true, imports: [LocaleDatePipe], template: '{{(value() || undefined) | localeDate}}', styles: [":host{display:inline-block;padding:var(--tile-slot-padding)}\n"] }]
50
+ args: [{ selector: 'yuv-datetime-renderer', imports: [LocaleDatePipe], template: '{{(value() || undefined) | localeDate}}', styles: [":host{display:inline-block;padding:var(--tile-slot-padding)}\n"] }]
41
51
  }] });
42
52
 
43
53
  class DecimalRendererComponent extends AbstractRendererComponent {
@@ -46,7 +56,7 @@ class DecimalRendererComponent extends AbstractRendererComponent {
46
56
  }
47
57
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.12", ngImport: i0, type: DecimalRendererComponent, decorators: [{
48
58
  type: Component,
49
- args: [{ selector: 'yuv-decimal-renderer', standalone: true, template: '{{value()}}', styles: [":host{display:inline-block;padding:var(--tile-slot-padding)}\n"] }]
59
+ args: [{ selector: 'yuv-decimal-renderer', template: '{{value()}}', styles: [":host{display:inline-block;padding:var(--tile-slot-padding)}\n"] }]
50
60
  }] });
51
61
 
52
62
  class FileSizeRendererComponent extends AbstractRendererComponent {
@@ -70,7 +80,7 @@ class FileSizeRendererComponent extends AbstractRendererComponent {
70
80
  }
71
81
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.12", ngImport: i0, type: FileSizeRendererComponent, decorators: [{
72
82
  type: Component,
73
- args: [{ selector: 'yuv-string-renderer', imports: [FileSizePipe], standalone: true, template: '{{parsedValue() | fileSize}}', styles: [":host{display:inline-block;padding:var(--tile-slot-padding)}\n"] }]
83
+ args: [{ selector: 'yuv-string-renderer', imports: [FileSizePipe], template: '{{parsedValue() | fileSize}}', styles: [":host{display:inline-block;padding:var(--tile-slot-padding)}\n"] }]
74
84
  }] });
75
85
 
76
86
  class IconRendererComponent extends AbstractRendererComponent {
@@ -104,7 +114,7 @@ class IconRendererComponent extends AbstractRendererComponent {
104
114
  }
105
115
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.12", ngImport: i0, type: IconRendererComponent, decorators: [{
106
116
  type: Component,
107
- args: [{ selector: 'yuv-icon-renderer', standalone: true, imports: [ObjectTypeIconComponent, MatIcon], template: ` @let icon = value();
117
+ args: [{ selector: 'yuv-icon-renderer', imports: [ObjectTypeIconComponent, MatIcon], template: ` @let icon = value();
108
118
  @if (propertyName() !== 'custom') {
109
119
  <yuv-object-type-icon [objectTypeId]="icon || ''"></yuv-object-type-icon>
110
120
  } @else if (icon !== null) {
@@ -123,7 +133,7 @@ class IntegerRendererComponent extends AbstractRendererComponent {
123
133
  }
124
134
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.12", ngImport: i0, type: IntegerRendererComponent, decorators: [{
125
135
  type: Component,
126
- args: [{ selector: 'yuv-integer-renderer', standalone: true, template: '{{value()}}', styles: [":host{display:inline-block;padding:var(--tile-slot-padding)}\n"] }]
136
+ args: [{ selector: 'yuv-integer-renderer', template: '{{value()}}', styles: [":host{display:inline-block;padding:var(--tile-slot-padding)}\n"] }]
127
137
  }] });
128
138
 
129
139
  class OrganizationRendererComponent extends AbstractRendererComponent {
@@ -139,7 +149,7 @@ class OrganizationRendererComponent extends AbstractRendererComponent {
139
149
  }
140
150
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.12", ngImport: i0, type: OrganizationRendererComponent, decorators: [{
141
151
  type: Component,
142
- args: [{ selector: 'yuv-organization-renderer', imports: [], standalone: true, template: '{{resolvedValue()}}', styles: [":host{padding:var(--tile-slot-padding);display:var(--yuv-renderer-display, inline-block)}\n"] }]
152
+ args: [{ selector: 'yuv-organization-renderer', standalone: true, template: '{{resolvedValue()}}', styles: [":host{padding:var(--tile-slot-padding);display:var(--yuv-renderer-display, inline-block)}\n"] }]
143
153
  }] });
144
154
 
145
155
  class StringRendererComponent extends AbstractRendererComponent {
@@ -148,7 +158,93 @@ class StringRendererComponent extends AbstractRendererComponent {
148
158
  }
149
159
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.12", ngImport: i0, type: StringRendererComponent, decorators: [{
150
160
  type: Component,
151
- args: [{ selector: 'yuv-string-renderer', standalone: true, template: '{{value()}}', styles: [":host{display:inline-block;padding:var(--tile-slot-padding)}\n"] }]
161
+ args: [{ selector: 'yuv-string-renderer', template: '{{value()}}', styles: [":host{display:inline-block;padding:var(--tile-slot-padding)}\n"] }]
162
+ }] });
163
+
164
+ class TableRendererComponent extends AbstractRendererComponent {
165
+ constructor() {
166
+ super(...arguments);
167
+ this.tableHeaders = computed(() => {
168
+ const value = this.value();
169
+ if (!value || !value.length)
170
+ return [];
171
+ // Extract all unique headers from the data
172
+ const headers = new Set();
173
+ value.forEach((item) => {
174
+ Object.keys(item).forEach((key) => headers.add(key));
175
+ });
176
+ return Array.from(headers);
177
+ });
178
+ this.tableData = computed(() => {
179
+ const data = this.value() || [];
180
+ if (data.length > 10) {
181
+ return data.slice(0, 10);
182
+ }
183
+ return data;
184
+ });
185
+ this.reducedData = computed(() => {
186
+ const data = this.value() || [];
187
+ return data.length > 10;
188
+ });
189
+ }
190
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.12", ngImport: i0, type: TableRendererComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
191
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.12", type: TableRendererComponent, isStandalone: true, selector: "yuv-table-renderer", usesInheritance: true, ngImport: i0, template: `
192
+ <div class="table-container">
193
+ <table>
194
+ <thead>
195
+ <tr>
196
+ @for (header of tableHeaders(); track header) {
197
+ <th>{{ header }}</th>
198
+ }
199
+ </tr>
200
+ </thead>
201
+ <tbody>
202
+ @for (row of tableData(); track $index) {
203
+ <tr>
204
+ @for (header of tableHeaders(); track header) {
205
+ <td>{{ row[header] }}</td>
206
+ }
207
+ </tr>
208
+ }
209
+ </tbody>
210
+ </table>
211
+ @if (reducedData()) {
212
+ <p>
213
+ {{ 'yuv.table.renderer.moreEntries' | translate: { count: value()?.length } }}
214
+ </p>
215
+ }
216
+ </div>
217
+ `, isInline: true, styles: [":host{display:flex;padding:var(--tile-slot-padding);width:100%}.table-container{width:100%;overflow-x:auto;max-width:100%}table{width:100%;border-collapse:collapse;min-width:400px}th,td{padding:8px;text-align:left;border-bottom:1px solid var(--ymt-outline-variant)}th{background-color:var(--_object-summary-section-background, #f2f2f2);font-weight:700}tr:hover{background-color:var(--ymt-hover-background)}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i1.TranslatePipe, name: "translate" }] }); }
218
+ }
219
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.12", ngImport: i0, type: TableRendererComponent, decorators: [{
220
+ type: Component,
221
+ args: [{ selector: 'yuv-table-renderer', standalone: true, imports: [CommonModule, TranslateModule], template: `
222
+ <div class="table-container">
223
+ <table>
224
+ <thead>
225
+ <tr>
226
+ @for (header of tableHeaders(); track header) {
227
+ <th>{{ header }}</th>
228
+ }
229
+ </tr>
230
+ </thead>
231
+ <tbody>
232
+ @for (row of tableData(); track $index) {
233
+ <tr>
234
+ @for (header of tableHeaders(); track header) {
235
+ <td>{{ row[header] }}</td>
236
+ }
237
+ </tr>
238
+ }
239
+ </tbody>
240
+ </table>
241
+ @if (reducedData()) {
242
+ <p>
243
+ {{ 'yuv.table.renderer.moreEntries' | translate: { count: value()?.length } }}
244
+ </p>
245
+ }
246
+ </div>
247
+ `, styles: [":host{display:flex;padding:var(--tile-slot-padding);width:100%}.table-container{width:100%;overflow-x:auto;max-width:100%}table{width:100%;border-collapse:collapse;min-width:400px}th,td{padding:8px;text-align:left;border-bottom:1px solid var(--ymt-outline-variant)}th{background-color:var(--_object-summary-section-background, #f2f2f2);font-weight:700}tr:hover{background-color:var(--ymt-hover-background)}\n"] }]
152
248
  }] });
153
249
 
154
250
  class UnknownRendererComponent extends AbstractRendererComponent {
@@ -157,7 +253,7 @@ class UnknownRendererComponent extends AbstractRendererComponent {
157
253
  }
158
254
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.12", ngImport: i0, type: UnknownRendererComponent, decorators: [{
159
255
  type: Component,
160
- args: [{ selector: 'yuv-unknown-renderer', standalone: true, imports: [], template: '{{value()}}', styles: [":host{display:inline-block;padding:var(--tile-slot-padding)}\n"] }]
256
+ args: [{ selector: 'yuv-unknown-renderer', template: '{{value()}}', styles: [":host{display:inline-block;padding:var(--tile-slot-padding)}\n"] }]
161
257
  }] });
162
258
 
163
259
  /**
@@ -177,7 +273,9 @@ class RendererService {
177
273
  decimal: DecimalRendererComponent,
178
274
  datetime: DateTimeRendererComponent,
179
275
  icon: IconRendererComponent,
180
- string: StringRendererComponent
276
+ string: StringRendererComponent,
277
+ boolean: BooleanRendererComponent,
278
+ table: TableRendererComponent
181
279
  };
182
280
  initialRenderers[InternalFieldType.STRING_ORGANIZATION] = OrganizationRendererComponent;
183
281
  initialRenderers[ContentStreamField.LENGTH] = FileSizeRendererComponent;
@@ -253,12 +351,12 @@ class RendererDirective {
253
351
  : this.rendererService.getRenderer(i.propertyName);
254
352
  this.component = this.containerRef.createComponent(cmp);
255
353
  // pass inputs to the renderer. As they are signals they need an injection context
256
- runInInjectionContext(this.injector, () => {
257
- this.component.setInput('propertyName', i.propertyName);
258
- this.component.setInput('value', i.value);
259
- if (i.meta)
260
- this.component.setInput('meta', i.meta);
261
- });
354
+ // runInInjectionContext(this.injector, () => { // FOLLOWUP: this is not needed anymore with the new input() API
355
+ this.component.setInput('propertyName', i.propertyName);
356
+ this.component.setInput('value', i.value);
357
+ if (i.meta)
358
+ this.component.setInput('meta', i.meta);
359
+ // });
262
360
  }
263
361
  else {
264
362
  this.containerRef.clear();
@@ -1 +1 @@
1
- {"version":3,"file":"yuuvis-client-framework-renderer.mjs","sources":["../../../../../libs/yuuvis/client-framework/renderer/src/lib/property-renderer/abstract.renderer.ts","../../../../../libs/yuuvis/client-framework/renderer/src/lib/property-renderer/datetime.renderer.ts","../../../../../libs/yuuvis/client-framework/renderer/src/lib/property-renderer/decimal.renderer.component.ts","../../../../../libs/yuuvis/client-framework/renderer/src/lib/property-renderer/filesize.renderer.component.ts","../../../../../libs/yuuvis/client-framework/renderer/src/lib/property-renderer/icon.renderer.component.ts","../../../../../libs/yuuvis/client-framework/renderer/src/lib/property-renderer/integer.renderer.component.ts","../../../../../libs/yuuvis/client-framework/renderer/src/lib/property-renderer/organization.renderer.ts","../../../../../libs/yuuvis/client-framework/renderer/src/lib/property-renderer/string.renderer.component.ts","../../../../../libs/yuuvis/client-framework/renderer/src/lib/property-renderer/unknown.renderer.ts","../../../../../libs/yuuvis/client-framework/renderer/src/lib/services/renderer/renderer.service.ts","../../../../../libs/yuuvis/client-framework/renderer/src/lib/renderer.directive.ts","../../../../../libs/yuuvis/client-framework/renderer/src/yuuvis-client-framework-renderer.ts"],"sourcesContent":["import { Component, inject, input } from '@angular/core';\nimport { SchemaResponseFieldDefinition, SystemService } from '@yuuvis/client-core';\n\n/**\n * Abstract class to be extended by property renderers\n */\n@Component({\n selector: 'yuv-abstract-renderer',\n standalone: true,\n template: ''\n})\nexport abstract class AbstractRendererComponent<T = string, U = null> {\n #system = inject(SystemService);\n\n propertyName = input.required<string>();\n value = input.required<T | null>();\n meta = input<Record<string, unknown> | U>();\n\n protected getProperty(): SchemaResponseFieldDefinition | undefined {\n return this.#system.system?.allFields[this.propertyName()];\n }\n}\n","import { Component } from '@angular/core';\nimport { AbstractRendererComponent } from './abstract.renderer';\nimport { LocaleDatePipe } from '@yuuvis/client-core';\n\n@Component({\n selector: 'yuv-datetime-renderer',\n standalone: true,\n imports: [LocaleDatePipe],\n template: '{{(value() || undefined) | localeDate}}',\n styles: [\n `\n :host {\n display: inline-block;\n padding: var(--tile-slot-padding);\n }\n `\n ]\n})\nexport class DateTimeRendererComponent extends AbstractRendererComponent<Date> {}\n","import { Component } from '@angular/core';\nimport { AbstractRendererComponent } from './abstract.renderer';\n\n@Component({\n selector: 'yuv-decimal-renderer',\n standalone: true,\n template: '{{value()}}',\n styles: [\n `\n :host {\n display: inline-block;\n padding: var(--tile-slot-padding);\n }\n `\n ]\n})\nexport class DecimalRendererComponent extends AbstractRendererComponent<number> {\n // TODO: deal with precision and scale\n}\n","import { Component, computed } from '@angular/core';\nimport { AbstractRendererComponent } from './abstract.renderer';\nimport { FileSizePipe } from '@yuuvis/client-core';\n\n@Component({\n selector: 'yuv-string-renderer',\n imports: [FileSizePipe],\n standalone: true,\n template: '{{parsedValue() | fileSize}}',\n styles: [\n `\n :host {\n display: inline-block;\n padding: var(--tile-slot-padding);\n }\n `\n ]\n})\nexport class FileSizeRendererComponent extends AbstractRendererComponent {\n parsedValue = computed<number>(() => {\n let n = 0;\n const v = this.value();\n if (v)\n try {\n n = parseInt(v);\n } catch (e) {\n console.error(e);\n }\n return n;\n });\n}\n","import { Component, effect, inject } from '@angular/core';\nimport { MatIcon, MatIconRegistry } from '@angular/material/icon';\nimport { DomSanitizer } from '@angular/platform-browser';\nimport { ObjectTypeIconComponent } from '@yuuvis/client-framework/icons';\nimport { AbstractRendererComponent } from './abstract.renderer';\n\n@Component({\n selector: 'yuv-icon-renderer',\n standalone: true,\n imports: [ObjectTypeIconComponent, MatIcon],\n template: ` @let icon = value();\n @if (propertyName() !== 'custom') {\n <yuv-object-type-icon [objectTypeId]=\"icon || ''\"></yuv-object-type-icon>\n } @else if (icon !== null) {\n @let metaData = meta();\n @if (metaData && metaData['isFontIcon']) {\n <mat-icon>{{ icon }}</mat-icon>\n } @else {\n <mat-icon [svgIcon]=\"customId\"></mat-icon>\n }\n }`,\n styles: [\n `\n :host {\n display: flex;\n align-items: center;\n justify-content: center;\n padding: var(--tile-slot-padding);\n yuv-icon,\n yuv-object-type-icon {\n --icon-size: var(--icon-renderer-icon-size);\n width: var(--icon-size);\n height: var(--icon-size);\n }\n }\n `\n ]\n})\nexport class IconRendererComponent extends AbstractRendererComponent {\n readonly #iconRegistry = inject(MatIconRegistry);\n\n readonly #sanitizer = inject(DomSanitizer);\n protected readonly customId = crypto.randomUUID();\n\n #registerIconsEffect = effect(async () => {\n const meta = this.meta();\n this.propertyName() === 'custom' &&\n !(meta && meta['isFontIcon']) &&\n this.#iconRegistry.addSvgIconLiteral(this.customId, this.#sanitizer.bypassSecurityTrustHtml(this.value() as string));\n });\n}\n","import { Component } from '@angular/core';\nimport { AbstractRendererComponent } from './abstract.renderer';\n\n@Component({\n selector: 'yuv-integer-renderer',\n standalone: true,\n template: '{{value()}}',\n styles: [\n `\n :host {\n display: inline-block;\n padding: var(--tile-slot-padding);\n }\n `\n ]\n})\nexport class IntegerRendererComponent extends AbstractRendererComponent<number> {}\n","import { Component, computed } from '@angular/core';\nimport { AbstractRendererComponent } from './abstract.renderer';\n\n@Component({\n selector: 'yuv-organization-renderer',\n imports: [],\n standalone: true,\n template: '{{resolvedValue()}}',\n styles: [\n `\n :host {\n padding: var(--tile-slot-padding);\n display: var(--yuv-renderer-display, inline-block);\n }\n `\n ]\n})\nexport class OrganizationRendererComponent extends AbstractRendererComponent {\n resolvedValue = computed<string>(() => {\n const m = this.meta();\n return (m ? m['title'] : this.value() || '') as string;\n });\n}\n","import { Component } from '@angular/core';\nimport { AbstractRendererComponent } from './abstract.renderer';\n\n@Component({\n selector: 'yuv-string-renderer',\n standalone: true,\n template: '{{value()}}',\n styles: [\n `\n :host {\n display: inline-block;\n padding: var(--tile-slot-padding);\n }\n `\n ]\n})\nexport class StringRendererComponent extends AbstractRendererComponent {}\n","import { Component } from '@angular/core';\nimport { AbstractRendererComponent } from './abstract.renderer';\n\n@Component({\n selector: 'yuv-unknown-renderer',\n standalone: true,\n imports: [],\n template: '{{value()}}',\n styles: [\n `\n :host {\n display: inline-block;\n padding: var(--tile-slot-padding);\n }\n `\n ]\n})\nexport class UnknownRendererComponent extends AbstractRendererComponent<any> {}\n","import { Injectable, Type, inject, signal } from '@angular/core';\nimport { ContentStreamField, InternalFieldType, RendererType, SchemaResponseFieldDefinition, SystemService } from '@yuuvis/client-core';\nimport { DateTimeRendererComponent } from '../../property-renderer/datetime.renderer';\nimport { DecimalRendererComponent } from '../../property-renderer/decimal.renderer.component';\nimport { FileSizeRendererComponent } from '../../property-renderer/filesize.renderer.component';\nimport { IconRendererComponent } from '../../property-renderer/icon.renderer.component';\nimport { IntegerRendererComponent } from '../../property-renderer/integer.renderer.component';\nimport { OrganizationRendererComponent } from '../../property-renderer/organization.renderer';\nimport { StringRendererComponent } from '../../property-renderer/string.renderer.component';\nimport { UnknownRendererComponent } from '../../property-renderer/unknown.renderer';\nimport { RendererComponent } from './renderer.interface';\nimport { AbstractRendererComponent } from '../../property-renderer/abstract.renderer';\n\n/**\n * Service for managing property type renderers. Renderers are components that will render certain\n * property types.\n *\n * You are able to register your own renderer to overwrite an existing one or provide a custom\n * renderer for your context.\n */\n@Injectable({\n providedIn: 'root'\n})\nexport class RendererService {\n private system = inject(SystemService);\n\n #renderers = signal<Record<string, Type<RendererComponent>>>({});\n\n constructor() {\n const initialRenderers: Record<string, Type<RendererComponent>> = {\n integer: IntegerRendererComponent,\n decimal: DecimalRendererComponent,\n datetime: DateTimeRendererComponent,\n icon: IconRendererComponent,\n string: StringRendererComponent\n };\n initialRenderers[InternalFieldType.STRING_ORGANIZATION] = OrganizationRendererComponent;\n initialRenderers[ContentStreamField.LENGTH] = FileSizeRendererComponent;\n this.#renderers.set(initialRenderers);\n }\n\n getRendererByType(type: RendererType): Type<RendererComponent> {\n return this.#renderers()[type] || UnknownRendererComponent;\n }\n\n getRenderer(propertyName: string, typeName?: string): Type<RendererComponent> {\n // try to find a renderer based on property and object type\n let r = this.#renderers()[this._getKey(propertyName, typeName)];\n if (!r) {\n // not special renderer found so we'll try to get one for the internal type\n // of the given property\n const srf: SchemaResponseFieldDefinition | undefined = this.system.system && this.system.system.allFields[propertyName];\n if (srf) {\n r = this.getRendererByType(this.system.getInternalFormElementType(srf.propertyType, srf.classifications));\n }\n }\n\n return r || UnknownRendererComponent;\n }\n\n /**\n * Register a renderer for a particular property. Providing `typeName` will register that renderer\n * for a certain context (use same inputs when calling `getRenderer()`).\n * @param cmp The component to actually render the property\n * @param propertyName property name (used for registering the renderer for a certain context)\n * @param typeName Optional type name (used for registering the renderer for a certain context)\n */\n registerRenderer(cmp: Type<AbstractRendererComponent>, propertyName: string, typeName?: string) {\n this.#renderers.update((curr) => ({ ...curr, ...{ [this._getKey(propertyName, typeName)]: cmp } }));\n }\n\n /**\n *\n * @param type The type of property this renderer is supposed to be used for\n */\n registerRendererByType(type: RendererType, cmp: Type<RendererComponent>) {\n this.#renderers.update((curr) => ({ ...curr, ...{ [type]: cmp } }));\n }\n\n // Generate the unique key for a renderer\n private _getKey(propertyName: string, typeName?: string): string {\n const k = [propertyName];\n typeName && k.push(typeName);\n return k.join('-');\n }\n}\n","import { ComponentRef, Directive, Injector, Type, ViewContainerRef, effect, inject, input, runInInjectionContext } from '@angular/core';\nimport { RendererComponent, RendererDirectiveInput } from './services/renderer/renderer.interface';\nimport { RendererService } from './services/renderer/renderer.service';\n\n/**\n * Structural directive for rendering an obect type property\n */\n@Directive({\n selector: '[yuvRenderer]',\n standalone: true\n})\nexport class RendererDirective {\n private readonly rendererService = inject(RendererService);\n private readonly containerRef = inject(ViewContainerRef);\n private readonly injector = inject(Injector);\n\n component!: ComponentRef<RendererComponent>;\n\n private _rendererInput?: RendererDirectiveInput;\n\n yuvRenderer = input<RendererDirectiveInput | undefined>(undefined);\n\n #yuvRendererEffect = effect(() => {\n const i = this.yuvRenderer();\n if (i && !this._alreadyRendered(i)) {\n this._rendererInput = i;\n\n if (i) {\n if (this.component) this.containerRef.clear();\n const cmp: Type<RendererComponent> = i.rendererType\n ? this.rendererService.getRendererByType(i.rendererType)\n : this.rendererService.getRenderer(i.propertyName);\n\n this.component = this.containerRef.createComponent(cmp);\n // pass inputs to the renderer. As they are signals they need an injection context\n runInInjectionContext(this.injector, () => {\n this.component.setInput('propertyName', i.propertyName);\n this.component.setInput('value', i.value);\n if (i.meta) this.component.setInput('meta', i.meta);\n });\n } else {\n this.containerRef.clear();\n }\n }\n });\n\n private _alreadyRendered(i: RendererDirectiveInput): boolean {\n return !!this._rendererInput && JSON.stringify(this._rendererInput) === JSON.stringify(i);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;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C,CAAC;;qBACG;AACL,oBAAA,IAAI,CAAC,YAAY,CAAC,KAAK,EAAE;;;AAG/B,SAAC,CAAC;AAKH;AA3BC,IAAA,kBAAkB;AAwBV,IAAA,gBAAgB,CAAC,CAAyB,EAAA;QAChD,OAAO,CAAC,CAAC,IAAI,CAAC,cAAc,IAAI,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,cAAc,CAAC,KAAK,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC;;+GApChF,iBAAiB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;mGAAjB,iBAAiB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,eAAA,EAAA,MAAA,EAAA,EAAA,WAAA,EAAA,EAAA,iBAAA,EAAA,aAAA,EAAA,UAAA,EAAA,aAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;4FAAjB,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAJ7B,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,eAAe;AACzB,oBAAA,UAAU,EAAE;AACb,iBAAA;;;ACVD;;AAEG;;;;"}
1
+ {"version":3,"file":"yuuvis-client-framework-renderer.mjs","sources":["../../../../../libs/yuuvis/client-framework/renderer/src/lib/property-renderer/abstract.renderer.ts","../../../../../libs/yuuvis/client-framework/renderer/src/lib/property-renderer/boolean.renderer.component.ts","../../../../../libs/yuuvis/client-framework/renderer/src/lib/property-renderer/datetime.renderer.ts","../../../../../libs/yuuvis/client-framework/renderer/src/lib/property-renderer/decimal.renderer.component.ts","../../../../../libs/yuuvis/client-framework/renderer/src/lib/property-renderer/filesize.renderer.component.ts","../../../../../libs/yuuvis/client-framework/renderer/src/lib/property-renderer/icon.renderer.component.ts","../../../../../libs/yuuvis/client-framework/renderer/src/lib/property-renderer/integer.renderer.component.ts","../../../../../libs/yuuvis/client-framework/renderer/src/lib/property-renderer/organization.renderer.ts","../../../../../libs/yuuvis/client-framework/renderer/src/lib/property-renderer/string.renderer.component.ts","../../../../../libs/yuuvis/client-framework/renderer/src/lib/property-renderer/table.renderer.component.ts","../../../../../libs/yuuvis/client-framework/renderer/src/lib/property-renderer/unknown.renderer.ts","../../../../../libs/yuuvis/client-framework/renderer/src/lib/services/renderer/renderer.service.ts","../../../../../libs/yuuvis/client-framework/renderer/src/lib/renderer.directive.ts","../../../../../libs/yuuvis/client-framework/renderer/src/yuuvis-client-framework-renderer.ts"],"sourcesContent":["import { Component, inject, input } from '@angular/core';\nimport { SchemaResponseFieldDefinition, SystemService } from '@yuuvis/client-core';\n\n/**\n * Abstract class to be extended by property renderers\n */\n@Component({\n selector: 'yuv-abstract-renderer',\n template: ''\n})\nexport abstract class AbstractRendererComponent<T = string, U = null> {\n #system = inject(SystemService);\n\n propertyName = input.required<string>();\n value = input.required<T | null>();\n meta = input<Record<string, unknown> | U>();\n\n protected getProperty(): SchemaResponseFieldDefinition | undefined {\n return this.#system.system?.allFields[this.propertyName()];\n }\n}\n","import { Component } from '@angular/core';\nimport { MatCheckbox } from '@angular/material/checkbox';\nimport { AbstractRendererComponent } from './abstract.renderer';\nimport { MatIcon } from '@angular/material/icon';\n\n@Component({\n selector: 'yuv-boolean-renderer',\n imports: [MatIcon],\n template: ` <mat-icon>{{ value() ? 'check_box' : 'check_box_outline_blank' }}</mat-icon>`,\n styles: [\n `\n :host {\n --mdc-checkbox-state-layer-size: 18px;\n display: flex;\n padding: var(--tile-slot-padding);\n }\n `\n ]\n})\nexport class BooleanRendererComponent extends AbstractRendererComponent {}\n","import { Component } from '@angular/core';\nimport { AbstractRendererComponent } from './abstract.renderer';\nimport { LocaleDatePipe } from '@yuuvis/client-core';\n\n@Component({\n selector: 'yuv-datetime-renderer',\n imports: [LocaleDatePipe],\n template: '{{(value() || undefined) | localeDate}}',\n styles: [\n `\n :host {\n display: inline-block;\n padding: var(--tile-slot-padding);\n }\n `\n ]\n})\nexport class DateTimeRendererComponent extends AbstractRendererComponent<Date> {}\n","import { Component } from '@angular/core';\nimport { AbstractRendererComponent } from './abstract.renderer';\n\n@Component({\n selector: 'yuv-decimal-renderer',\n template: '{{value()}}',\n styles: [\n `\n :host {\n display: inline-block;\n padding: var(--tile-slot-padding);\n }\n `\n ]\n})\nexport class DecimalRendererComponent extends AbstractRendererComponent<number> {\n // TODO: deal with precision and scale\n}\n","import { Component, computed } from '@angular/core';\nimport { AbstractRendererComponent } from './abstract.renderer';\nimport { FileSizePipe } from '@yuuvis/client-core';\n\n@Component({\n selector: 'yuv-string-renderer',\n imports: [FileSizePipe],\n template: '{{parsedValue() | fileSize}}',\n styles: [\n `\n :host {\n display: inline-block;\n padding: var(--tile-slot-padding);\n }\n `\n ]\n})\nexport class FileSizeRendererComponent extends AbstractRendererComponent {\n parsedValue = computed<number>(() => {\n let n = 0;\n const v = this.value();\n if (v)\n try {\n n = parseInt(v);\n } catch (e) {\n console.error(e);\n }\n return n;\n });\n}\n","import { Component, effect, inject } from '@angular/core';\nimport { MatIcon, MatIconRegistry } from '@angular/material/icon';\nimport { DomSanitizer } from '@angular/platform-browser';\nimport { ObjectTypeIconComponent } from '@yuuvis/client-framework/icons';\nimport { AbstractRendererComponent } from './abstract.renderer';\n\n@Component({\n selector: 'yuv-icon-renderer',\n imports: [ObjectTypeIconComponent, MatIcon],\n template: ` @let icon = value();\n @if (propertyName() !== 'custom') {\n <yuv-object-type-icon [objectTypeId]=\"icon || ''\"></yuv-object-type-icon>\n } @else if (icon !== null) {\n @let metaData = meta();\n @if (metaData && metaData['isFontIcon']) {\n <mat-icon>{{ icon }}</mat-icon>\n } @else {\n <mat-icon [svgIcon]=\"customId\"></mat-icon>\n }\n }`,\n styles: [\n `\n :host {\n display: flex;\n align-items: center;\n justify-content: center;\n padding: var(--tile-slot-padding);\n yuv-icon,\n yuv-object-type-icon {\n --icon-size: var(--icon-renderer-icon-size);\n width: var(--icon-size);\n height: var(--icon-size);\n }\n }\n `\n ]\n})\nexport class IconRendererComponent extends AbstractRendererComponent {\n readonly #iconRegistry = inject(MatIconRegistry);\n\n readonly #sanitizer = inject(DomSanitizer);\n protected readonly customId = crypto.randomUUID();\n\n #registerIconsEffect = effect(async () => {\n const meta = this.meta();\n this.propertyName() === 'custom' &&\n !(meta && meta['isFontIcon']) &&\n this.#iconRegistry.addSvgIconLiteral(this.customId, this.#sanitizer.bypassSecurityTrustHtml(this.value() as string));\n });\n}\n","import { Component } from '@angular/core';\nimport { AbstractRendererComponent } from './abstract.renderer';\n\n@Component({\n selector: 'yuv-integer-renderer',\n template: '{{value()}}',\n styles: [\n `\n :host {\n display: inline-block;\n padding: var(--tile-slot-padding);\n }\n `\n ]\n})\nexport class IntegerRendererComponent extends AbstractRendererComponent<number> {}\n","import { Component, computed } from '@angular/core';\nimport { AbstractRendererComponent } from './abstract.renderer';\n\n@Component({\n selector: 'yuv-organization-renderer',\n standalone: true,\n template: '{{resolvedValue()}}',\n styles: [\n `\n :host {\n padding: var(--tile-slot-padding);\n display: var(--yuv-renderer-display, inline-block);\n }\n `\n ]\n})\nexport class OrganizationRendererComponent extends AbstractRendererComponent {\n resolvedValue = computed<string>(() => {\n const m = this.meta();\n return (m ? m['title'] : this.value() || '') as string;\n });\n}\n","import { Component } from '@angular/core';\nimport { AbstractRendererComponent } from './abstract.renderer';\n\n@Component({\n selector: 'yuv-string-renderer',\n template: '{{value()}}',\n styles: [\n `\n :host {\n display: inline-block;\n padding: var(--tile-slot-padding);\n }\n `\n ]\n})\nexport class StringRendererComponent extends AbstractRendererComponent {}\n","import { CommonModule } from '@angular/common';\nimport { Component, computed } from '@angular/core';\nimport { TranslateModule } from '@yuuvis/client-core';\nimport { AbstractRendererComponent } from './abstract.renderer';\n@Component({\n selector: 'yuv-table-renderer',\n standalone: true,\n imports: [CommonModule, TranslateModule],\n template: `\n <div class=\"table-container\">\n <table>\n <thead>\n <tr>\n @for (header of tableHeaders(); track header) {\n <th>{{ header }}</th>\n }\n </tr>\n </thead>\n <tbody>\n @for (row of tableData(); track $index) {\n <tr>\n @for (header of tableHeaders(); track header) {\n <td>{{ row[header] }}</td>\n }\n </tr>\n }\n </tbody>\n </table>\n @if (reducedData()) {\n <p>\n {{ 'yuv.table.renderer.moreEntries' | translate: { count: value()?.length } }}\n </p>\n }\n </div>\n `,\n styles: [\n `\n :host {\n display: flex;\n padding: var(--tile-slot-padding);\n width: 100%;\n }\n\n .table-container {\n width: 100%;\n overflow-x: auto;\n max-width: 100%;\n }\n\n table {\n width: 100%;\n border-collapse: collapse;\n min-width: 400px;\n }\n\n th,\n td {\n padding: 8px;\n text-align: left;\n border-bottom: 1px solid var(--ymt-outline-variant);\n }\n\n th {\n background-color: var(--_object-summary-section-background, #f2f2f2);\n font-weight: bold;\n }\n\n tr:hover {\n background-color: var(--ymt-hover-background);\n }\n `\n ]\n})\nexport class TableRendererComponent extends AbstractRendererComponent<any[]> {\n protected tableHeaders = computed(() => {\n const value = this.value();\n if (!value || !value.length) return [];\n\n // Extract all unique headers from the data\n const headers = new Set<string>();\n value.forEach((item) => {\n Object.keys(item).forEach((key) => headers.add(key));\n });\n\n return Array.from(headers);\n });\n\n protected tableData = computed(() => {\n const data = this.value() || [];\n if (data.length > 10) {\n return data.slice(0, 10);\n }\n return data;\n });\n\n protected reducedData = computed(() => {\n const data = this.value() || [];\n return data.length > 10;\n });\n}\n","import { Component } from '@angular/core';\nimport { AbstractRendererComponent } from './abstract.renderer';\n\n@Component({\n selector: 'yuv-unknown-renderer',\n template: '{{value()}}',\n styles: [\n `\n :host {\n display: inline-block;\n padding: var(--tile-slot-padding);\n }\n `\n ]\n})\nexport class UnknownRendererComponent extends AbstractRendererComponent<any> {}\n","import { Injectable, Type, inject, signal } from '@angular/core';\nimport { ContentStreamField, InternalFieldType, RendererType, SchemaResponseFieldDefinition, SystemService } from '@yuuvis/client-core';\nimport { RendererComponent } from './renderer.interface';\nimport {\n AbstractRendererComponent,\n BooleanRendererComponent,\n DateTimeRendererComponent,\n DecimalRendererComponent,\n FileSizeRendererComponent,\n IconRendererComponent,\n IntegerRendererComponent,\n OrganizationRendererComponent,\n StringRendererComponent,\n UnknownRendererComponent\n} from '../../property-renderer';\nimport { TableRendererComponent } from '../../property-renderer/table.renderer.component';\n\n/**\n * Service for managing property type renderers. Renderers are components that will render certain\n * property types.\n *\n * You are able to register your own renderer to overwrite an existing one or provide a custom\n * renderer for your context.\n */\n@Injectable({\n providedIn: 'root'\n})\nexport class RendererService {\n private system = inject(SystemService);\n\n #renderers = signal<Record<string, Type<RendererComponent>>>({});\n\n constructor() {\n const initialRenderers: Record<string, Type<RendererComponent>> = {\n integer: IntegerRendererComponent,\n decimal: DecimalRendererComponent,\n datetime: DateTimeRendererComponent,\n icon: IconRendererComponent,\n string: StringRendererComponent,\n boolean: BooleanRendererComponent,\n table: TableRendererComponent\n };\n initialRenderers[InternalFieldType.STRING_ORGANIZATION] = OrganizationRendererComponent;\n initialRenderers[ContentStreamField.LENGTH] = FileSizeRendererComponent;\n this.#renderers.set(initialRenderers);\n }\n\n getRendererByType(type: RendererType): Type<RendererComponent> {\n return this.#renderers()[type] || UnknownRendererComponent;\n }\n\n getRenderer(propertyName: string, typeName?: string): Type<RendererComponent> {\n // try to find a renderer based on property and object type\n let r = this.#renderers()[this._getKey(propertyName, typeName)];\n\n if (!r) {\n // not special renderer found so we'll try to get one for the internal type\n // of the given property\n const srf: SchemaResponseFieldDefinition | undefined = this.system.system && this.system.system.allFields[propertyName];\n if (srf) {\n r = this.getRendererByType(this.system.getInternalFormElementType(srf.propertyType, srf.classifications));\n }\n }\n\n return r || UnknownRendererComponent;\n }\n\n /**\n * Register a renderer for a particular property. Providing `typeName` will register that renderer\n * for a certain context (use same inputs when calling `getRenderer()`).\n * @param cmp The component to actually render the property\n * @param propertyName property name (used for registering the renderer for a certain context)\n * @param typeName Optional type name (used for registering the renderer for a certain context)\n */\n registerRenderer(cmp: Type<AbstractRendererComponent>, propertyName: string, typeName?: string) {\n this.#renderers.update((curr) => ({ ...curr, ...{ [this._getKey(propertyName, typeName)]: cmp } }));\n }\n\n /**\n *\n * @param type The type of property this renderer is supposed to be used for\n */\n registerRendererByType(type: RendererType, cmp: Type<RendererComponent>) {\n this.#renderers.update((curr) => ({ ...curr, ...{ [type]: cmp } }));\n }\n\n // Generate the unique key for a renderer\n private _getKey(propertyName: string, typeName?: string): string {\n const k = [propertyName];\n typeName && k.push(typeName);\n return k.join('-');\n }\n}\n","import { ComponentRef, Directive, Injector, Type, ViewContainerRef, effect, inject, input, runInInjectionContext } from '@angular/core';\nimport { RendererComponent, RendererDirectiveInput } from './services/renderer/renderer.interface';\nimport { RendererService } from './services/renderer/renderer.service';\n\n/**\n * Structural directive for rendering an obect type property\n */\n@Directive({\n selector: '[yuvRenderer]',\n standalone: true\n})\nexport class RendererDirective {\n private readonly rendererService = inject(RendererService);\n private readonly containerRef = inject(ViewContainerRef);\n private readonly injector = inject(Injector);\n\n component!: ComponentRef<RendererComponent>;\n\n private _rendererInput?: RendererDirectiveInput;\n\n yuvRenderer = input<RendererDirectiveInput | undefined>(undefined);\n\n #yuvRendererEffect = effect(() => {\n const i = this.yuvRenderer();\n if (i && !this._alreadyRendered(i)) {\n this._rendererInput = i;\n\n if (i) {\n if (this.component) this.containerRef.clear();\n\n const cmp: Type<RendererComponent> = i.rendererType\n ? this.rendererService.getRendererByType(i.rendererType)\n : this.rendererService.getRenderer(i.propertyName);\n\n this.component = this.containerRef.createComponent(cmp);\n // pass inputs to the renderer. As they are signals they need an injection context\n // runInInjectionContext(this.injector, () => { // FOLLOWUP: this is not needed anymore with the new input() API\n this.component.setInput('propertyName', i.propertyName);\n this.component.setInput('value', i.value);\n if (i.meta) this.component.setInput('meta', i.meta);\n // });\n } else {\n this.containerRef.clear();\n }\n }\n });\n\n private _alreadyRendered(i: RendererDirectiveInput): boolean {\n return !!this._rendererInput && JSON.stringify(this._rendererInput) === JSON.stringify(i);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;AAGA;;AAEG;MAKmB,yBAAyB,CAAA;AAJ/C,IAAA,WAAA,GAAA;AAKE,QAAA,IAAA,CAAA,OAAO,GAAG,MAAM,CAAC,aAAa,CAAC;AAE/B,QAAA,IAAA,CAAA,YAAY,GAAG,KAAK,CAAC,QAAQ,EAAU;AACvC,QAAA,IAAA,CAAA,KAAK,GAAG,KAAK,CAAC,QAAQ,EAAY;QAClC,IAAI,CAAA,IAAA,GAAG,KAAK,EAA+B;AAK5C;AATC,IAAA,OAAO;IAMG,WAAW,GAAA;AACnB,QAAA,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,SAAS,CAAC,IAAI,CAAC,YAAY,EAAE,CAAC;;+GARxC,yBAAyB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAzB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,yBAAyB,qdAFnC,EAAE,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,CAAA;;4FAEQ,yBAAyB,EAAA,UAAA,EAAA,CAAA;kBAJ9C,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,uBAAuB;AACjC,oBAAA,QAAQ,EAAE;AACX,iBAAA;;;ACUK,MAAO,wBAAyB,SAAQ,yBAAyB,CAAA;+GAA1D,wBAAwB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;mGAAxB,wBAAwB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,sBAA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object-versions.list.version": "Version {{version}}",
125
125
  "yuv.object-versions.tabs.content.title": "Inhalt",
126
126
  "yuv.object-versions.tabs.indexdata.title": "Metadaten",
127
+ "yuv.table.renderer.moreEntries": "Es werden nur die ersten 10 Einträge angezeigt. Insgesamt: {{ count }}",
127
128
  "yuv.sequence-list.form.nextAssignee": "Empfänger",
128
129
  "yuv.sequence-list.form.task": "Aufgabe",
129
130
  "yuv.simple-search.label": "Suchen",
@@ -124,6 +124,7 @@
124
124
  "yuv.object-versions.list.version": "Version {{version}}",
125
125
  "yuv.object-versions.tabs.content.title": "Content",
126
126
  "yuv.object-versions.tabs.indexdata.title": "Metadata",
127
+ "yuv.table.renderer.moreEntries": "Showing only the first 10 entries. Total: {{ count }}",
127
128
  "yuv.sequence-list.form.nextAssignee": "Recipient",
128
129
  "yuv.sequence-list.form.task": "Task",
129
130
  "yuv.simple-search.label": "Search",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yuuvis/client-framework",
3
- "version": "2.1.16",
3
+ "version": "2.1.18",
4
4
  "author": "OPTIMAL SYSTEMS GmbH <npm@optimal-systems.de>",
5
5
  "license": "MIT",
6
6
  "peerDependencies": {
@@ -8,15 +8,15 @@
8
8
  "@angular/common": "^19.2.1",
9
9
  "@angular/core": "^19.2.1",
10
10
  "angular-gridster2": "^19.0.0",
11
- "@yuuvis/client-core": "^2.1.16",
12
- "@yuuvis/client-shell-core": "^2.1.16",
11
+ "@yuuvis/client-core": "^2.1.18",
12
+ "@yuuvis/client-shell-core": "^2.1.18",
13
13
  "ng-dynamic-component": "^10.8.2",
14
14
  "modern-normalize": "^3.0.1"
15
15
  },
16
16
  "dependencies": {
17
17
  "@angular/material": "^19.2.15",
18
18
  "@ngrx/signals": "^19.2.0",
19
- "@yuuvis/material": "2.1.16",
19
+ "@yuuvis/material": "2.1.18",
20
20
  "@yuuvis/media-viewer": "^2.0.4",
21
21
  "angular-split": "^19.0.0",
22
22
  "tslib": "^2.3.0"
@@ -115,14 +115,14 @@
115
115
  "types": "./pagination/index.d.ts",
116
116
  "default": "./fesm2022/yuuvis-client-framework-pagination.mjs"
117
117
  },
118
- "./popout": {
119
- "types": "./popout/index.d.ts",
120
- "default": "./fesm2022/yuuvis-client-framework-popout.mjs"
121
- },
122
118
  "./panel": {
123
119
  "types": "./panel/index.d.ts",
124
120
  "default": "./fesm2022/yuuvis-client-framework-panel.mjs"
125
121
  },
122
+ "./popout": {
123
+ "types": "./popout/index.d.ts",
124
+ "default": "./fesm2022/yuuvis-client-framework-popout.mjs"
125
+ },
126
126
  "./renderer": {
127
127
  "types": "./renderer/index.d.ts",
128
128
  "default": "./fesm2022/yuuvis-client-framework-renderer.mjs"
@@ -0,0 +1,6 @@
1
+ import { AbstractRendererComponent } from './abstract.renderer';
2
+ import * as i0 from "@angular/core";
3
+ export declare class BooleanRendererComponent extends AbstractRendererComponent {
4
+ static ɵfac: i0.ɵɵFactoryDeclaration<BooleanRendererComponent, never>;
5
+ static ɵcmp: i0.ɵɵComponentDeclaration<BooleanRendererComponent, "yuv-boolean-renderer", never, {}, {}, never, never, true, never>;
6
+ }
@@ -0,0 +1,11 @@
1
+ export * from './abstract.renderer';
2
+ export * from './boolean.renderer.component';
3
+ export * from './datetime.renderer';
4
+ export * from './decimal.renderer.component';
5
+ export * from './filesize.renderer.component';
6
+ export * from './icon.renderer.component';
7
+ export * from './integer.renderer.component';
8
+ export * from './organization.renderer';
9
+ export * from './string.renderer.component';
10
+ export * from './table.renderer.component';
11
+ export * from './unknown.renderer';
@@ -0,0 +1,9 @@
1
+ import { AbstractRendererComponent } from './abstract.renderer';
2
+ import * as i0 from "@angular/core";
3
+ export declare class TableRendererComponent extends AbstractRendererComponent<any[]> {
4
+ protected tableHeaders: import("@angular/core").Signal<string[]>;
5
+ protected tableData: import("@angular/core").Signal<any[]>;
6
+ protected reducedData: import("@angular/core").Signal<boolean>;
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<TableRendererComponent, never>;
8
+ static ɵcmp: i0.ɵɵComponentDeclaration<TableRendererComponent, "yuv-table-renderer", never, {}, {}, never, never, true, never>;
9
+ }
@@ -1,8 +1,4 @@
1
1
  import { ResolvedObjectConfigItem } from '@yuuvis/client-core';
2
- import { DateTimeRendererComponent } from '../../property-renderer/datetime.renderer';
3
- import { DecimalRendererComponent } from '../../property-renderer/decimal.renderer.component';
4
- import { IconRendererComponent } from '../../property-renderer/icon.renderer.component';
5
- import { IntegerRendererComponent } from '../../property-renderer/integer.renderer.component';
6
- import { StringRendererComponent } from '../../property-renderer/string.renderer.component';
7
- export type RendererComponent = IntegerRendererComponent | DecimalRendererComponent | DateTimeRendererComponent | IconRendererComponent | StringRendererComponent;
2
+ import { BooleanRendererComponent, DateTimeRendererComponent, DecimalRendererComponent, IconRendererComponent, IntegerRendererComponent, StringRendererComponent, TableRendererComponent } from '../../property-renderer';
3
+ export type RendererComponent = IntegerRendererComponent | DecimalRendererComponent | DateTimeRendererComponent | IconRendererComponent | StringRendererComponent | BooleanRendererComponent | TableRendererComponent;
8
4
  export type RendererDirectiveInput = ResolvedObjectConfigItem;
@@ -1,7 +1,7 @@
1
1
  import { Type } from '@angular/core';
2
2
  import { RendererType } from '@yuuvis/client-core';
3
3
  import { RendererComponent } from './renderer.interface';
4
- import { AbstractRendererComponent } from '../../property-renderer/abstract.renderer';
4
+ import { AbstractRendererComponent } from '../../property-renderer';
5
5
  import * as i0 from "@angular/core";
6
6
  /**
7
7
  * Service for managing property type renderers. Renderers are components that will render certain