@quadrel-enterprise-ui/framework 21.8.1 → 21.9.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quadrel-enterprise-ui/framework",
3
- "version": "21.8.1",
3
+ "version": "21.9.0",
4
4
  "exports": {
5
5
  "./jest-preset": "./jest-preset.js",
6
6
  "./package.json": {
@@ -193,6 +193,8 @@
193
193
  "i18n.qd.dialog.confirm.proceed": "Bestätigen",
194
194
  "i18n.qd.page.context.button.change": "Ändern",
195
195
  "i18n.qd.page.context.button.select": "Auswählen",
196
+ "i18n.qd.page.context.hiddenValues": "{{values}}",
197
+ "i18n.qd.page.context.hiddenValuesAndMore": "{{values}} und {{count}} weitere",
196
198
  "i18n.qd.page.context.noSelectionPlaceholder": "Keine Auswahl",
197
199
  "i18n.qd.context.dialog.cancelButtonLabel": "Abbrechen",
198
200
  "i18n.qd.context.dialog.confirmButtonLabel": "Bestätigen",
@@ -192,6 +192,8 @@
192
192
  "i18n.qd.dialog.confirm.proceed": "Confirm",
193
193
  "i18n.qd.page.context.button.change": "Change",
194
194
  "i18n.qd.page.context.button.select": "Select",
195
+ "i18n.qd.page.context.hiddenValues": "{{values}}",
196
+ "i18n.qd.page.context.hiddenValuesAndMore": "{{values}} and {{count}} more",
195
197
  "i18n.qd.page.context.noSelectionPlaceholder": "No selection",
196
198
  "i18n.qd.context.dialog.cancelButtonLabel": "Cancel",
197
199
  "i18n.qd.context.dialog.confirmButtonLabel": "Submit",
@@ -192,6 +192,8 @@
192
192
  "i18n.qd.dialog.confirm.proceed": "Confirmer",
193
193
  "i18n.qd.page.context.button.change": "Changer",
194
194
  "i18n.qd.page.context.button.select": "Choisir",
195
+ "i18n.qd.page.context.hiddenValues": "{{values}}",
196
+ "i18n.qd.page.context.hiddenValuesAndMore": "{{values}} et {{count}} autres",
195
197
  "i18n.qd.page.context.noSelectionPlaceholder": "Aucune sélection",
196
198
  "i18n.qd.context.dialog.cancelButtonLabel": "Annuler",
197
199
  "i18n.qd.context.dialog.confirmButtonLabel": "Confirmer",
@@ -175,9 +175,9 @@
175
175
  "i18n.qd.comments.add.author.label": "BAZG Dipendenti",
176
176
  "i18n.qd.stepper.previous": "Precedente",
177
177
  "i18n.qd.stepper.next": "Prossimo",
178
- "i18n.qd.stepper.submit": "Trasferire",
179
- "i18n.qd.stepper.cancel": "Annulla",
180
- "i18n.qd.page.footer.submit": "Trasferire",
178
+ "i18n.qd.stepper.submit": "Trasmettere",
179
+ "i18n.qd.stepper.cancel": "Annullare",
180
+ "i18n.qd.page.footer.submit": "Trasmettere",
181
181
  "i18n.qd.page.header.edit": "Modificare",
182
182
  "i18n.qd.page.header.actions": "Azioni",
183
183
  "i18n.qd.page.header.cancel": "Annulla",
@@ -191,6 +191,8 @@
191
191
  "i18n.qd.dialog.confirm.proceed": "Conferma",
192
192
  "i18n.qd.page.context.button.change": "Modifica",
193
193
  "i18n.qd.page.context.button.select": "Scegliere",
194
+ "i18n.qd.page.context.hiddenValues": "{{values}}",
195
+ "i18n.qd.page.context.hiddenValuesAndMore": "{{values}} e altri {{count}}",
194
196
  "i18n.qd.page.context.noSelectionPlaceholder": "Nessuna scelta",
195
197
  "i18n.qd.context.dialog.cancelButtonLabel": "Cancellare",
196
198
  "i18n.qd.context.dialog.confirmButtonLabel": "Confermare",
@@ -24,7 +24,7 @@ import * as i13 from '@angular/cdk/drag-drop';
24
24
  import * as i26 from '@ngrx/store';
25
25
  import * as i5$1 from '@angular/cdk/stepper';
26
26
  import { CdkStep, CdkStepper, StepState, CdkStepHeader } from '@angular/cdk/stepper';
27
- import * as i22 from '@angular/cdk/scrolling';
27
+ import * as i23 from '@angular/cdk/scrolling';
28
28
  import * as rxjs_internal_scheduler_AsyncScheduler from 'rxjs/internal/scheduler/AsyncScheduler';
29
29
  import { ComponentType } from '@angular/cdk/portal';
30
30
 
@@ -1835,16 +1835,22 @@ declare class QdPushEventsService {
1835
1835
  */
1836
1836
  interface QdTooltipContent {
1837
1837
  /**
1838
- * @description Defines the translation key for headline.
1838
+ * @description Defines the translation key for headline. Optional `params` fill its placeholders, for example `{{count}}`.
1839
1839
  */
1840
1840
  headline?: {
1841
1841
  i18n: string;
1842
+ params?: {
1843
+ [key: string]: string | number;
1844
+ };
1842
1845
  };
1843
1846
  /**
1844
- * @description Defines the translation keys for paragraph.
1847
+ * @description Defines the translation keys for paragraph. Optional `params` fill their placeholders, for example `{{count}}`.
1845
1848
  */
1846
1849
  paragraphs: {
1847
1850
  i18n: string;
1851
+ params?: {
1852
+ [key: string]: string | number;
1853
+ };
1848
1854
  }[];
1849
1855
  }
1850
1856
  interface QdTooltip {
@@ -5400,7 +5406,8 @@ interface QdPopoverSizeConstraints {
5400
5406
  * - Exposes latest measured content size for debugging or analytics.
5401
5407
  *
5402
5408
  * #### Notes & Best Practices
5403
- * - Internally, the service uses a hidden DOM clone to measure popover content, following best-practice patterns for measuring off-screen elements.
5409
+ * - The content is measured with `qdMeasureNaturalSize`: a hidden clone is added, read and removed again.
5410
+ * `QdOverflowFitService` uses the same function, so both measure in the same way.
5404
5411
  * - Use the `contentWidth` and `contentHeight` getters for debugging or if you need to react to the last measured content size.
5405
5412
  * - The service will automatically hide the overlay until sizing is complete, preventing layout flicker.
5406
5413
  * - The returned Observable emits `true` once initial sizing is applied and overlay is visible.
@@ -5417,9 +5424,6 @@ interface QdPopoverSizeConstraints {
5417
5424
  * - An open popover follows a window resize, so it keeps fitting the screen while the user rotates the device or
5418
5425
  * drags the window. Several resize events in the same frame are collapsed into one sizing pass, and the listener
5419
5426
  * only exists while a popover is open.
5420
- *
5421
- * #### For the hidden-content measuring
5422
- * @see https://stackoverflow.com/questions/1841124/find-the-potential-width-of-a-hidden-element
5423
5427
  */
5424
5428
  declare class QdPopoverSizingService {
5425
5429
  private _resizeObserver?;
@@ -9586,8 +9590,10 @@ declare class QdTooltipComponent {
9586
9590
  *
9587
9591
  * Content is capped at 512 characters across headline and paragraphs combined;
9588
9592
  * an ellipsis is appended only to a paragraph that is actually cut.
9593
+ *
9594
+ * An open tooltip follows changes of its content. Equal content in a new object changes nothing.
9589
9595
  */
9590
- declare class QdTooltipOnClickDirective implements OnDestroy {
9596
+ declare class QdTooltipOnClickDirective implements OnChanges, OnDestroy {
9591
9597
  /**
9592
9598
  * Tooltip content displayed on click — optional headline plus paragraphs.
9593
9599
  */
@@ -9598,6 +9604,8 @@ declare class QdTooltipOnClickDirective implements OnDestroy {
9598
9604
  private readonly elementRef;
9599
9605
  private readonly translateService;
9600
9606
  private _overlayRef?;
9607
+ private _tooltipRef;
9608
+ ngOnChanges(changes: SimpleChanges): void;
9601
9609
  ngOnDestroy(): void;
9602
9610
  /**
9603
9611
  * Opens the tooltip overlay positioned relative to the host element.
@@ -9607,6 +9615,7 @@ declare class QdTooltipOnClickDirective implements OnDestroy {
9607
9615
  * Closes and disposes the tooltip overlay if one is attached.
9608
9616
  */
9609
9617
  close(): void;
9618
+ private updateOpenTooltip;
9610
9619
  private getContent;
9611
9620
  private translate;
9612
9621
  static ɵfac: i0.ɵɵFactoryDeclaration<QdTooltipOnClickDirective, never>;
@@ -15819,6 +15828,28 @@ declare class QdContextSelectDialogComponent implements OnInit {
15819
15828
  static ɵcmp: i0.ɵɵComponentDeclaration<QdContextSelectDialogComponent, "qd-context-select-dialog", never, {}, {}, never, never, false, never>;
15820
15829
  }
15821
15830
 
15831
+ /**
15832
+ * @description Shows the selection of a context as one chip.
15833
+ *
15834
+ * * Note: The values are listed with commas. Values that do not fit are counted as "+n".
15835
+ * * Note: A click on "+n" lists the hidden values in a tooltip. Values that exceed the tooltip length limit
15836
+ * are counted as "and n more". At least one value is always listed.
15837
+ */
15838
+ declare class QdContextSelectionChipComponent {
15839
+ selection: QdPageSelectedContext[];
15840
+ removable: boolean;
15841
+ testId?: string;
15842
+ selectionCleared: EventEmitter<QdPageSelectedContext[]>;
15843
+ private readonly translateService;
15844
+ /**
15845
+ * Lists the values that do not fit into the chip, as one line for the tooltip.
15846
+ */
15847
+ hiddenValuesTooltip(visibleCount: number): QdTooltipContent;
15848
+ private isTooLong;
15849
+ static ɵfac: i0.ɵɵFactoryDeclaration<QdContextSelectionChipComponent, never>;
15850
+ static ɵcmp: i0.ɵɵComponentDeclaration<QdContextSelectionChipComponent, "qd-context-selection-chip", never, { "selection": { "alias": "selection"; "required": false; }; "removable": { "alias": "removable"; "required": false; }; "testId": { "alias": "testId"; "required": false; }; }, { "selectionCleared": "selectionCleared"; }, never, never, false, never>;
15851
+ }
15852
+
15822
15853
  /**
15823
15854
  * **Context**
15824
15855
  *
@@ -17655,9 +17686,40 @@ declare class QdTableModule {
17655
17686
  static ɵinj: i0.ɵɵInjectorDeclaration<QdTableModule>;
17656
17687
  }
17657
17688
 
17689
+ /**
17690
+ * Shows only as many children of a row as fit into the available width.
17691
+ *
17692
+ * #### Features:
17693
+ * - Children marked with `data-fit-item` are counted. `visibleCount` says how many of them fit.
17694
+ * - The child marked with `data-fit-measure` is the "+n" template. Its width is reserved.
17695
+ * - The row stays invisible until the first result is ready.
17696
+ *
17697
+ * #### Notes & Best Practices
17698
+ * - Mark children that do not fit with `data-fit-hidden` (see `isHidden`). They must stay in the DOM.
17699
+ * - Style hidden children and the "+n" template with `position: absolute; visibility: hidden`.
17700
+ * - Items and the "+n" template are measured as copies next to the row, not inside it.
17701
+ * So their styles must not depend on the row, for example `.row .item { … }` does not apply to the copy.
17702
+ * Put such styles directly on the item or its attribute, like `[data-fit-measure] { … }`.
17703
+ */
17704
+ declare class QdOverflowFitDirective implements AfterViewInit, OnDestroy {
17705
+ visibleCount: number;
17706
+ private readonly host;
17707
+ private readonly overflowFit;
17708
+ private readonly changeDetectorRef;
17709
+ private _subscription?;
17710
+ ngAfterViewInit(): void;
17711
+ ngOnDestroy(): void;
17712
+ isHidden(index: number): boolean;
17713
+ hiddenCount(total: number): number;
17714
+ private rowElements;
17715
+ private applyCount;
17716
+ static ɵfac: i0.ɵɵFactoryDeclaration<QdOverflowFitDirective, never>;
17717
+ static ɵdir: i0.ɵɵDirectiveDeclaration<QdOverflowFitDirective, "[qdOverflowFit]", ["qdOverflowFit"], {}, {}, never, never, true, never>;
17718
+ }
17719
+
17658
17720
  declare class QdPageModule {
17659
17721
  static ɵfac: i0.ɵɵFactoryDeclaration<QdPageModule, never>;
17660
- static ɵmod: i0.ɵɵNgModuleDeclaration<QdPageModule, [typeof QdPageComponent, typeof QdPageFooterComponent, typeof QdPageObjectHeaderComponent, typeof QdPageControlPanelComponent, typeof QdSingleSelectFacetComponent, typeof QdMultiSelectFacetComponent, typeof QdDateFacetComponent, typeof QdIconFacetComponent, typeof QdValueFacetComponent, typeof QdStatusFacetComponent, typeof QdDynamicFacetComponent, typeof QdDynamicFacetDirective, typeof QdCriticalityFacetComponent, typeof QdProgressFacetComponent, typeof QdReferencesFacetComponent, typeof QdConnectFormStateToPageDirective, typeof QdPageFooterCustomContentDirective, typeof QdPageHeaderExtensionDirective, typeof QdContextSelectDialogComponent, typeof QdPageInfoBannerComponent], [typeof i2.CommonModule, typeof i22.ScrollingModule, typeof i5.TranslateModule, typeof QdButtonModule, typeof QdButtonModule, typeof QdChipModule, typeof QdCoreModule, typeof QdDialogModule, typeof QdIconModule, typeof QdProgressBarModule, typeof QdSectionModule, typeof QdSpinnerModule, typeof QdStatusIndicatorModule, typeof QdTableModule, typeof QdTextSectionModule, typeof QdSearchModule, typeof QdPopoverModule], [typeof QdPageComponent, typeof QdPageFooterComponent, typeof QdConnectFormStateToPageDirective, typeof QdPageControlPanelComponent, typeof QdPageFooterCustomContentDirective, typeof QdPageHeaderExtensionDirective, typeof QdPageInfoBannerComponent]>;
17722
+ static ɵmod: i0.ɵɵNgModuleDeclaration<QdPageModule, [typeof QdPageComponent, typeof QdPageFooterComponent, typeof QdPageObjectHeaderComponent, typeof QdPageControlPanelComponent, typeof QdSingleSelectFacetComponent, typeof QdMultiSelectFacetComponent, typeof QdDateFacetComponent, typeof QdIconFacetComponent, typeof QdValueFacetComponent, typeof QdStatusFacetComponent, typeof QdDynamicFacetComponent, typeof QdDynamicFacetDirective, typeof QdCriticalityFacetComponent, typeof QdProgressFacetComponent, typeof QdReferencesFacetComponent, typeof QdConnectFormStateToPageDirective, typeof QdPageFooterCustomContentDirective, typeof QdPageHeaderExtensionDirective, typeof QdContextSelectDialogComponent, typeof QdContextSelectionChipComponent, typeof QdPageInfoBannerComponent], [typeof i2.CommonModule, typeof i23.ScrollingModule, typeof i5.TranslateModule, typeof QdButtonModule, typeof QdButtonModule, typeof QdChipModule, typeof QdCoreModule, typeof QdDialogModule, typeof QdIconModule, typeof QdProgressBarModule, typeof QdSectionModule, typeof QdSpinnerModule, typeof QdStatusIndicatorModule, typeof QdTableModule, typeof QdTextSectionModule, typeof QdSearchModule, typeof QdPopoverModule, typeof QdOverflowFitDirective, typeof QdTooltipModule], [typeof QdPageComponent, typeof QdPageFooterComponent, typeof QdConnectFormStateToPageDirective, typeof QdPageControlPanelComponent, typeof QdPageFooterCustomContentDirective, typeof QdPageHeaderExtensionDirective, typeof QdPageInfoBannerComponent]>;
17661
17723
  static ɵinj: i0.ɵɵInjectorDeclaration<QdPageModule>;
17662
17724
  }
17663
17725