ngx-sp-infra 5.2.11 → 5.2.12

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.
@@ -4774,13 +4774,13 @@ class OrderingComponent {
4774
4774
  }
4775
4775
  // #region ==========> UTILS <==========
4776
4776
  /** Chamada quando o botão de ordenação é clicado */
4777
- emitSort() {
4777
+ emitSort(direction) {
4778
4778
  // Inverte a direção de ordenação atual
4779
- this.sortDirection = this.sortDirection === 'asc' ? 'desc' : 'asc';
4779
+ this.sortDirection = direction;
4780
4780
  // Emite o evento com a nova direção de ordenação
4781
4781
  this.sortDirectionChange.emit(this.sortDirection);
4782
4782
  // Emite o evento de mudança na ordenação com a direção e os atributos de ordenação
4783
- this.sortChange.emit({ direction: this.sortDirection, column: this.sortAttributes });
4783
+ this.sortChange.emit({ direction: direction, column: this.sortAttributes });
4784
4784
  }
4785
4785
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: OrderingComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
4786
4786
  static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.14", type: OrderingComponent, isStandalone: true, selector: "app-ordering, lib-ordering", inputs: { sortDirection: "sortDirection", sortAttributes: "sortAttributes" }, outputs: { sortDirectionChange: "sortDirectionChange", sortChange: "sortChange" }, ngImport: i0, template: `
@@ -4788,17 +4788,17 @@ class OrderingComponent {
4788
4788
  @case ('asc') {
4789
4789
  <lib-icon tooltip="Crescente" class="glb-cursor-pointer"
4790
4790
  iconName="seta-cima" iconColor="blue"
4791
- [iconSize]="20" (click)="emitSort()" />
4791
+ [iconSize]="20" (click)="emitSort('desc')" />
4792
4792
  }
4793
4793
  @case ('desc') {
4794
4794
  <lib-icon tooltip="Decrescente" class="glb-cursor-pointer"
4795
- iconName="seta-baixo" iconColor="blue"
4796
- [iconSize]="20" (click)="emitSort()" />
4795
+ iconName="seta-baixo" iconColor="blue"
4796
+ [iconSize]="20" (click)="emitSort('asc')" />
4797
4797
  }
4798
4798
  @default {
4799
4799
  <lib-icon tooltip="Sem ordenação aplicada" class="glb-cursor-pointer"
4800
- iconName="cimabaixo" iconColor="gray"
4801
- [iconSize]="20" (click)="emitSort()" />
4800
+ iconName="cimabaixo" iconColor="gray"
4801
+ [iconSize]="20" (click)="emitSort('asc')" />
4802
4802
  }
4803
4803
  }
4804
4804
  `, isInline: true, styles: [""], dependencies: [{ kind: "component", type: LibIconsComponent, selector: "lib-icon", inputs: ["iconName", "iconColor", "iconSize", "iconFill"] }, { kind: "ngmodule", type: TooltipModule }, { kind: "directive", type: i1$3.TooltipDirective, selector: "[tooltip], [tooltipHtml]", inputs: ["adaptivePosition", "tooltip", "placement", "triggers", "container", "containerClass", "boundariesElement", "isOpen", "isDisabled", "delay", "tooltipHtml", "tooltipPlacement", "tooltipIsOpen", "tooltipEnable", "tooltipAppendToBody", "tooltipAnimation", "tooltipClass", "tooltipContext", "tooltipPopupDelay", "tooltipFadeDuration", "tooltipTrigger"], outputs: ["tooltipChange", "onShown", "onHidden", "tooltipStateChanged"], exportAs: ["bs-tooltip"] }] }); }
@@ -4810,17 +4810,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImpo
4810
4810
  @case ('asc') {
4811
4811
  <lib-icon tooltip="Crescente" class="glb-cursor-pointer"
4812
4812
  iconName="seta-cima" iconColor="blue"
4813
- [iconSize]="20" (click)="emitSort()" />
4813
+ [iconSize]="20" (click)="emitSort('desc')" />
4814
4814
  }
4815
4815
  @case ('desc') {
4816
4816
  <lib-icon tooltip="Decrescente" class="glb-cursor-pointer"
4817
- iconName="seta-baixo" iconColor="blue"
4818
- [iconSize]="20" (click)="emitSort()" />
4817
+ iconName="seta-baixo" iconColor="blue"
4818
+ [iconSize]="20" (click)="emitSort('asc')" />
4819
4819
  }
4820
4820
  @default {
4821
4821
  <lib-icon tooltip="Sem ordenação aplicada" class="glb-cursor-pointer"
4822
- iconName="cimabaixo" iconColor="gray"
4823
- [iconSize]="20" (click)="emitSort()" />
4822
+ iconName="cimabaixo" iconColor="gray"
4823
+ [iconSize]="20" (click)="emitSort('asc')" />
4824
4824
  }
4825
4825
  }
4826
4826
  ` }]