@ngx-smz/core 21.10.0-next.21 → 21.10.0-next.25

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": "@ngx-smz/core",
3
- "version": "21.10.0-next.21",
3
+ "version": "21.10.0-next.25",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/smarza/ng-smz.git",
@@ -7,7 +7,7 @@ import { UntypedFormGroup, NgModel, NgControl, ValidatorFn, AsyncValidator, Abst
7
7
  import * as i2 from '@angular/common';
8
8
  import { NgStyle, Location } from '@angular/common';
9
9
  import * as i4 from '@ngx-smz/ui-kit';
10
- import { SmzSelectChangeEvent, SmzUiTreeNode, SmzUiMenuItem, SmzToastMessage, SmzFilterMetadata, SmzListboxClickEvent, SmzAutoCompleteCompleteEvent, SmzPopoverComponent, SmzMultiSelectChangeEvent, SmzDialogRef, SmzDialogConfig, SmzListboxComponent, SmzBlockableUi, SmzSortMeta, SmzTemplateDirective, SmzFilterService, SmzLocaleService, SmzSelectItem, SmzMenuListComponent, SmzMessageService, SmzTranslation, SmzUiTreeComponent, SmzTreeNodeEvent, SmzTreeDropEvent, SmzDataViewComponent, SmzTooltipDirective } from '@ngx-smz/ui-kit';
10
+ import { SmzSelectChangeEvent, SmzUiTreeNode, SmzUiMenuItem, SmzToastMessage, SmzFilterMetadata, SmzListboxClickEvent, SmzAutoCompleteCompleteEvent, SmzPopoverComponent, SmzMultiSelectChangeEvent, SmzDialogRef, SmzDialogConfig, SmzListboxComponent, SmzBlockableUi, SmzSortMeta, SmzTemplateDirective, SmzFilterService, SmzLocaleService, SmzSelectItem, SmzMenuListComponent, SmzMessageService, SmzToastHandle, SmzTranslation, SmzTooltipDefaults, SmzUiTreeComponent, SmzTreeNodeEvent, SmzTreeDropEvent, SmzDataViewComponent, SmzTooltipDirective } from '@ngx-smz/ui-kit';
11
11
  import * as _ngxs_store from '@ngxs/store';
12
12
  import { Actions, Store, StateContext } from '@ngxs/store';
13
13
  import { jsPDFOptions, HTMLOptions } from 'jspdf';
@@ -8753,6 +8753,21 @@ declare class NgxRbkUtilsConfig {
8753
8753
  errorTitle: string;
8754
8754
  infoTitle: string;
8755
8755
  debounceDistinctDelay: number;
8756
+ /** Barra de progresso do tempo de vida (padrão: true). */
8757
+ showProgress?: boolean;
8758
+ /** Mouse ou foco sobre a pilha seguram o fechamento (padrão: true). */
8759
+ pauseOnHover?: boolean;
8760
+ /** Máximo de toasts visíveis ao mesmo tempo; os excedentes entram quando abrir espaço (padrão: 5). */
8761
+ maxVisible?: number;
8762
+ /** Mensagem idêntica a uma ainda visível reinicia o tempo e mostra um contador em vez de empilhar (padrão: true). */
8763
+ groupDuplicates?: boolean;
8764
+ /** Tempo de vida (ms) por severidade; sem valor vale o `life`. Padrão: aviso e erro ficam 8s. */
8765
+ lifeBySeverity?: {
8766
+ success?: number;
8767
+ info?: number;
8768
+ warn?: number;
8769
+ error?: number;
8770
+ };
8756
8771
  };
8757
8772
  dialogsConfig: {
8758
8773
  errorDialogTitle: string;
@@ -9051,12 +9066,13 @@ declare class ToastService {
9051
9066
  lastUpdated: Date;
9052
9067
  constructor(messageService: SmzMessageService, zone: NgZone);
9053
9068
  add(message: Message): void;
9069
+ /**
9070
+ * Toast de carregamento que depois vira o resultado, no mesmo lugar:
9071
+ * `const toast = toastService.loading('Gerando Excel...'); ... toast.success('Excel gerado com sucesso.');`
9072
+ */
9073
+ loading(message: string | Message): SmzToastHandle;
9054
9074
  private send;
9055
- private initializeProgressOptions;
9056
- private startProgressTimer;
9057
- private finalizeMessage;
9058
9075
  private registry;
9059
- private test;
9060
9076
  static ɵfac: i0.ɵɵFactoryDeclaration<ToastService, never>;
9061
9077
  static ɵprov: i0.ɵɵInjectableDeclaration<ToastService>;
9062
9078
  }
@@ -10130,6 +10146,8 @@ declare class NgxSmzUiConfig {
10130
10146
  dialogs: SmzDialogsConfig;
10131
10147
  layouts: SmzLayoutsConfig;
10132
10148
  locale: SmzLocaleConfig;
10149
+ /** Padrões globais do `smzTooltip` (variante, seta, atrasos, janela de aquecimento). */
10150
+ tooltips?: Partial<SmzTooltipDefaults>;
10133
10151
  }
10134
10152
  interface SmzLocaleConfig {
10135
10153
  code: 'pt-BR' | 'en-US';
@@ -10434,6 +10452,16 @@ declare class SmzUiBuilder extends SmzBuilderUtilities<SmzUiBuilder> {
10434
10452
  setDiagnosticsThrottleTime(throttleTime: number): SmzUiBuilder;
10435
10453
  setJavascriptErrorBehavior(errorHandlingType: 'toast' | 'redirect' | 'none'): SmzUiBuilder;
10436
10454
  disableUiDefinitions(): SmzUiBuilder;
10455
+ /**
10456
+ * Padrões globais do `smzTooltip`: variante (`dark`/`light`), seta, `showDelay`, `hideDelay`, janela de aquecimento
10457
+ * (`warmupWindow`), evento e posição.
10458
+ */
10459
+ setTooltipDefaults(defaults: Partial<SmzTooltipDefaults>): SmzUiBuilder;
10460
+ /**
10461
+ * Padrões dos toasts (`ToastActions.*`, `ToastService`): `life`, `lifeBySeverity`, `showProgress`, `pauseOnHover`,
10462
+ * `maxVisible`, `groupDuplicates`, títulos padrão etc. Mescla com `rbkUtils.toastConfig`.
10463
+ */
10464
+ setToastDefaults(defaults: Partial<NgxRbkUtilsConfig['toastConfig']>): SmzUiBuilder;
10437
10465
  setDialogsConfigManually(config: SmzDialogsConfig): SmzUiBuilder;
10438
10466
  setRbkUtilsConfigManually(config: Partial<NgxRbkUtilsConfig>): SmzUiBuilder;
10439
10467
  layouts(config: SmzLayoutsConfig): SmzUiLayoutsBuilder;
@@ -16453,6 +16481,8 @@ declare class ApplicationState {
16453
16481
  pushLocalLoading$(ctx: StateContext<ApplicationStateModel>, action: ApplicationActions.PushLocalLoading): void;
16454
16482
  popLocalLoading$(ctx: StateContext<ApplicationStateModel>, action: ApplicationActions.PopLocalLoading): void;
16455
16483
  logout(ctx: StateContext<ApplicationStateModel>): void;
16484
+ /** Padrões do `toastConfig` para a mensagem, com o tempo de vida da severidade (`lifeBySeverity`) quando houver. */
16485
+ private toastDefaults;
16456
16486
  showToastMessage(ctx: StateContext<ApplicationStateModel>, action: ToastActions.Custom): void;
16457
16487
  showToastSuccessMessage(ctx: StateContext<ApplicationStateModel>, action: ToastActions.Success): void;
16458
16488
  showToastErrorMessage(ctx: StateContext<ApplicationStateModel>, action: ToastActions.Error): void;