mapa-library-ui 2.18.0 → 2.18.1

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.
@@ -5659,11 +5659,11 @@ class MapaClassificationTagComponent {
5659
5659
  (this.casing() === 'auto' && this.size() === 'large'), ...(ngDevMode ? [{ debugName: "usesNaturalCasing" }] : []));
5660
5660
  }
5661
5661
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: MapaClassificationTagComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
5662
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.3.21", type: MapaClassificationTagComponent, isStandalone: true, selector: "mapa-classification-tag", inputs: { classification: { classPropertyName: "classification", publicName: "classification", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, appearance: { classPropertyName: "appearance", publicName: "appearance", isSignal: true, isRequired: false, transformFunction: null }, shape: { classPropertyName: "shape", publicName: "shape", isSignal: true, isRequired: false, transformFunction: null }, casing: { classPropertyName: "casing", publicName: "casing", isSignal: true, isRequired: false, transformFunction: null }, fallbackLabel: { classPropertyName: "fallbackLabel", publicName: "fallbackLabel", isSignal: true, isRequired: false, transformFunction: null }, valueLabel: { classPropertyName: "valueLabel", publicName: "valueLabel", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class.mapa-classification-width-host": "hasWidthGroup" } }, ngImport: i0, template: "<span\n class=\"mapa-classification-tag\"\n [mapaClassificationWidthItem]=\"widthLabels()\"\n [class.mapa-classification-tag--medium]=\"size() === 'medium'\"\n [class.mapa-classification-tag--large]=\"size() === 'large'\"\n [class.mapa-classification-tag--solid]=\"appearance() === 'solid'\"\n [class.mapa-classification-tag--tonal]=\"appearance() === 'tonal'\"\n [class.mapa-classification-tag--rounded]=\"shape() === 'rounded'\"\n [class.mapa-classification-tag--natural-case]=\"usesNaturalCasing()\"\n [style.--mapa-classification-background]=\"background()\"\n [style.--mapa-classification-border]=\"border()\"\n [style.--mapa-classification-foreground]=\"foreground()\"\n [attr.aria-label]=\"valueLabel() ? valueLabel() + ': ' + label() : null\"\n [attr.title]=\"valueLabel() ? label() : null\"\n>\n <span>{{ valueLabel() ?? label() }}</span>\n</span>\n", styles: [":host(.mapa-classification-width-host){display:inline-block;max-width:100%;min-width:0;width:var(--mapa-classification-width, auto)}.mapa-classification-tag{align-items:center;background:var(--mapa-classification-background);border:var(--mapa-classification-tag-border-width, 1px) solid var(--mapa-classification-border);border-radius:var(--mapa-classification-tag-radius, 999px);box-sizing:border-box;color:var(--mapa-classification-foreground);display:inline-flex;gap:6px;font:600 var(--mapa-classification-tag-font-size, 10.5px)/1.2 var(--mapa-font-body, \"Asap\", sans-serif);justify-content:center;max-width:100%;height:var(--mapa-classification-tag-height, 22px);min-width:var(--mapa-classification-tag-min-width, 0);overflow-wrap:anywhere;padding:3px 7px;text-align:center;text-transform:uppercase;white-space:normal}.mapa-classification-tag--medium{--mapa-classification-tag-font-size: 11px;--mapa-classification-tag-height: 22px;padding:2px 10px}.mapa-classification-tag--large{--mapa-classification-tag-font-size: 12px;--mapa-classification-tag-height: 34px;padding:6px 14px}.mapa-classification-tag--rounded{border-radius:var(--mapa-classification-tag-radius, 6px)}.mapa-classification-tag__marker{background:currentColor;border-radius:50%;flex:0 0 6px;height:6px}.mapa-classification-tag>span{min-width:0;white-space:nowrap}.mapa-classification-tag--natural-case{text-transform:none}.mapa-classification-tag.mapa-classification-width-item{height:auto;min-height:var(--mapa-classification-tag-height, 22px);min-width:0;width:var(--mapa-classification-width, auto)}.mapa-classification-tag.mapa-classification-width-item>span{white-space:normal}\n"], dependencies: [{ kind: "directive", type: MapaClassificationWidthItemDirective, selector: "[mapaClassificationWidthItem]", inputs: ["mapaClassificationWidthItem"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
5662
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.3.21", type: MapaClassificationTagComponent, isStandalone: true, selector: "mapa-classification-tag", inputs: { classification: { classPropertyName: "classification", publicName: "classification", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, appearance: { classPropertyName: "appearance", publicName: "appearance", isSignal: true, isRequired: false, transformFunction: null }, shape: { classPropertyName: "shape", publicName: "shape", isSignal: true, isRequired: false, transformFunction: null }, casing: { classPropertyName: "casing", publicName: "casing", isSignal: true, isRequired: false, transformFunction: null }, fallbackLabel: { classPropertyName: "fallbackLabel", publicName: "fallbackLabel", isSignal: true, isRequired: false, transformFunction: null }, valueLabel: { classPropertyName: "valueLabel", publicName: "valueLabel", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class.mapa-classification-width-host": "hasWidthGroup" } }, ngImport: i0, template: "<span\n class=\"mapa-classification-tag\"\n [mapaClassificationWidthItem]=\"widthLabels()\"\n [class.mapa-classification-tag--medium]=\"size() === 'medium'\"\n [class.mapa-classification-tag--large]=\"size() === 'large'\"\n [class.mapa-classification-tag--solid]=\"appearance() === 'solid'\"\n [class.mapa-classification-tag--tonal]=\"appearance() === 'tonal'\"\n [class.mapa-classification-tag--rounded]=\"shape() === 'rounded'\"\n [class.mapa-classification-tag--natural-case]=\"usesNaturalCasing()\"\n [style.--mapa-classification-background]=\"background()\"\n [style.--mapa-classification-border]=\"border()\"\n [style.--mapa-classification-foreground]=\"foreground()\"\n [attr.aria-label]=\"valueLabel() ? valueLabel() + ': ' + label() : null\"\n [attr.title]=\"valueLabel() ? label() : null\"\n>\n <span>{{ valueLabel() ?? label() }}</span>\n</span>\n", styles: [":host(.mapa-classification-width-host){display:inline-block;max-width:100%;min-width:max-content;width:var(--mapa-classification-width, auto)}.mapa-classification-tag{align-items:center;background:var(--mapa-classification-background);border:var(--mapa-classification-tag-border-width, 1px) solid var(--mapa-classification-border);border-radius:var(--mapa-classification-tag-radius, 999px);box-sizing:border-box;color:var(--mapa-classification-foreground);display:inline-flex;gap:6px;font:600 var(--mapa-classification-tag-font-size, 10.5px)/1.2 var(--mapa-font-body, \"Asap\", sans-serif);justify-content:center;max-width:100%;height:var(--mapa-classification-tag-height, 22px);min-width:var(--mapa-classification-tag-min-width, 0);overflow-wrap:anywhere;padding:3px 7px;text-align:center;text-transform:uppercase;white-space:normal}.mapa-classification-tag--medium{--mapa-classification-tag-font-size: 11px;--mapa-classification-tag-height: 22px;padding:2px 10px}.mapa-classification-tag--large{--mapa-classification-tag-font-size: 12px;--mapa-classification-tag-height: 34px;padding:6px 14px}.mapa-classification-tag--rounded{border-radius:var(--mapa-classification-tag-radius, 6px)}.mapa-classification-tag__marker{background:currentColor;border-radius:50%;flex:0 0 6px;height:6px}.mapa-classification-tag>span{min-width:0;white-space:nowrap}.mapa-classification-tag--natural-case{text-transform:none}.mapa-classification-tag.mapa-classification-width-item{height:auto;min-height:var(--mapa-classification-tag-height, 22px);min-width:max-content;width:var(--mapa-classification-width, auto)}\n"], dependencies: [{ kind: "directive", type: MapaClassificationWidthItemDirective, selector: "[mapaClassificationWidthItem]", inputs: ["mapaClassificationWidthItem"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
5663
5663
  }
5664
5664
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: MapaClassificationTagComponent, decorators: [{
5665
5665
  type: Component,
5666
- args: [{ selector: 'mapa-classification-tag', standalone: true, imports: [MapaClassificationWidthItemDirective], host: { '[class.mapa-classification-width-host]': 'hasWidthGroup' }, changeDetection: ChangeDetectionStrategy.OnPush, template: "<span\n class=\"mapa-classification-tag\"\n [mapaClassificationWidthItem]=\"widthLabels()\"\n [class.mapa-classification-tag--medium]=\"size() === 'medium'\"\n [class.mapa-classification-tag--large]=\"size() === 'large'\"\n [class.mapa-classification-tag--solid]=\"appearance() === 'solid'\"\n [class.mapa-classification-tag--tonal]=\"appearance() === 'tonal'\"\n [class.mapa-classification-tag--rounded]=\"shape() === 'rounded'\"\n [class.mapa-classification-tag--natural-case]=\"usesNaturalCasing()\"\n [style.--mapa-classification-background]=\"background()\"\n [style.--mapa-classification-border]=\"border()\"\n [style.--mapa-classification-foreground]=\"foreground()\"\n [attr.aria-label]=\"valueLabel() ? valueLabel() + ': ' + label() : null\"\n [attr.title]=\"valueLabel() ? label() : null\"\n>\n <span>{{ valueLabel() ?? label() }}</span>\n</span>\n", styles: [":host(.mapa-classification-width-host){display:inline-block;max-width:100%;min-width:0;width:var(--mapa-classification-width, auto)}.mapa-classification-tag{align-items:center;background:var(--mapa-classification-background);border:var(--mapa-classification-tag-border-width, 1px) solid var(--mapa-classification-border);border-radius:var(--mapa-classification-tag-radius, 999px);box-sizing:border-box;color:var(--mapa-classification-foreground);display:inline-flex;gap:6px;font:600 var(--mapa-classification-tag-font-size, 10.5px)/1.2 var(--mapa-font-body, \"Asap\", sans-serif);justify-content:center;max-width:100%;height:var(--mapa-classification-tag-height, 22px);min-width:var(--mapa-classification-tag-min-width, 0);overflow-wrap:anywhere;padding:3px 7px;text-align:center;text-transform:uppercase;white-space:normal}.mapa-classification-tag--medium{--mapa-classification-tag-font-size: 11px;--mapa-classification-tag-height: 22px;padding:2px 10px}.mapa-classification-tag--large{--mapa-classification-tag-font-size: 12px;--mapa-classification-tag-height: 34px;padding:6px 14px}.mapa-classification-tag--rounded{border-radius:var(--mapa-classification-tag-radius, 6px)}.mapa-classification-tag__marker{background:currentColor;border-radius:50%;flex:0 0 6px;height:6px}.mapa-classification-tag>span{min-width:0;white-space:nowrap}.mapa-classification-tag--natural-case{text-transform:none}.mapa-classification-tag.mapa-classification-width-item{height:auto;min-height:var(--mapa-classification-tag-height, 22px);min-width:0;width:var(--mapa-classification-width, auto)}.mapa-classification-tag.mapa-classification-width-item>span{white-space:normal}\n"] }]
5666
+ args: [{ selector: 'mapa-classification-tag', standalone: true, imports: [MapaClassificationWidthItemDirective], host: { '[class.mapa-classification-width-host]': 'hasWidthGroup' }, changeDetection: ChangeDetectionStrategy.OnPush, template: "<span\n class=\"mapa-classification-tag\"\n [mapaClassificationWidthItem]=\"widthLabels()\"\n [class.mapa-classification-tag--medium]=\"size() === 'medium'\"\n [class.mapa-classification-tag--large]=\"size() === 'large'\"\n [class.mapa-classification-tag--solid]=\"appearance() === 'solid'\"\n [class.mapa-classification-tag--tonal]=\"appearance() === 'tonal'\"\n [class.mapa-classification-tag--rounded]=\"shape() === 'rounded'\"\n [class.mapa-classification-tag--natural-case]=\"usesNaturalCasing()\"\n [style.--mapa-classification-background]=\"background()\"\n [style.--mapa-classification-border]=\"border()\"\n [style.--mapa-classification-foreground]=\"foreground()\"\n [attr.aria-label]=\"valueLabel() ? valueLabel() + ': ' + label() : null\"\n [attr.title]=\"valueLabel() ? label() : null\"\n>\n <span>{{ valueLabel() ?? label() }}</span>\n</span>\n", styles: [":host(.mapa-classification-width-host){display:inline-block;max-width:100%;min-width:max-content;width:var(--mapa-classification-width, auto)}.mapa-classification-tag{align-items:center;background:var(--mapa-classification-background);border:var(--mapa-classification-tag-border-width, 1px) solid var(--mapa-classification-border);border-radius:var(--mapa-classification-tag-radius, 999px);box-sizing:border-box;color:var(--mapa-classification-foreground);display:inline-flex;gap:6px;font:600 var(--mapa-classification-tag-font-size, 10.5px)/1.2 var(--mapa-font-body, \"Asap\", sans-serif);justify-content:center;max-width:100%;height:var(--mapa-classification-tag-height, 22px);min-width:var(--mapa-classification-tag-min-width, 0);overflow-wrap:anywhere;padding:3px 7px;text-align:center;text-transform:uppercase;white-space:normal}.mapa-classification-tag--medium{--mapa-classification-tag-font-size: 11px;--mapa-classification-tag-height: 22px;padding:2px 10px}.mapa-classification-tag--large{--mapa-classification-tag-font-size: 12px;--mapa-classification-tag-height: 34px;padding:6px 14px}.mapa-classification-tag--rounded{border-radius:var(--mapa-classification-tag-radius, 6px)}.mapa-classification-tag__marker{background:currentColor;border-radius:50%;flex:0 0 6px;height:6px}.mapa-classification-tag>span{min-width:0;white-space:nowrap}.mapa-classification-tag--natural-case{text-transform:none}.mapa-classification-tag.mapa-classification-width-item{height:auto;min-height:var(--mapa-classification-tag-height, 22px);min-width:max-content;width:var(--mapa-classification-width, auto)}\n"] }]
5667
5667
  }], propDecorators: { classification: [{ type: i0.Input, args: [{ isSignal: true, alias: "classification", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], appearance: [{ type: i0.Input, args: [{ isSignal: true, alias: "appearance", required: false }] }], shape: [{ type: i0.Input, args: [{ isSignal: true, alias: "shape", required: false }] }], casing: [{ type: i0.Input, args: [{ isSignal: true, alias: "casing", required: false }] }], fallbackLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "fallbackLabel", required: false }] }], valueLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "valueLabel", required: false }] }] } });
5668
5668
 
5669
5669
  class ButtonIconComponent {
@@ -9539,8 +9539,8 @@ class ReportGroupProfileContent {
9539
9539
  this.showLegend = input(true, ...(ngDevMode ? [{ debugName: "showLegend" }] : []));
9540
9540
  /**
9541
9541
  * Replaces the legend derived from the slice classifications. Pass the
9542
- * GenerateReport captions in the order they were returned: that order is
9543
- * kept, and captions no slice draws are left out.
9542
+ * GenerateReport captions in the order they were returned: the whole list
9543
+ * is shown in that order, whether or not the current data draws them.
9544
9544
  */
9545
9545
  this.legend = input(...(ngDevMode ? [undefined, { debugName: "legend" }] : []));
9546
9546
  /** Overrides the caption above each pill; defaults to the i18n text. */
@@ -9567,7 +9567,7 @@ class ReportGroupProfileContent {
9567
9567
  this.legendItems = computed(() => {
9568
9568
  const explicit = this.legend();
9569
9569
  if (explicit)
9570
- return this.drawnCaptions(explicit);
9570
+ return explicit;
9571
9571
  const items = new Map();
9572
9572
  // Only the slices the pill actually draws deserve a legend entry.
9573
9573
  for (const dimension of this.dimensions()) {
@@ -9615,16 +9615,6 @@ class ReportGroupProfileContent {
9615
9615
  .filter((group) => group.items.length > 0);
9616
9616
  }, ...(ngDevMode ? [{ debugName: "legendGroups" }] : []));
9617
9617
  }
9618
- /**
9619
- * Keeps the caller's order (the captions returned by GenerateReport) and
9620
- * drops what no slice draws. If nothing matches, the slices carry no
9621
- * identity the captions can be matched against, so the list stays whole.
9622
- */
9623
- drawnCaptions(captions) {
9624
- const drawn = captions.filter((caption) => this.dimensions().some((dimension) => (!caption.direction || caption.direction === this.direction(dimension)) &&
9625
- this.slices(dimension).some((slice) => this.captionMatches(caption, slice))));
9626
- return drawn.length ? drawn : captions;
9627
- }
9628
9618
  captionMatches(caption, slice) {
9629
9619
  const captionIds = [caption.classification?.classificationId, caption.id];
9630
9620
  const sliceIds = [slice.classification?.classificationId, slice.id];