@gipisistemas/ngx-core 1.0.20 → 1.0.21
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/index.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ import { OnDestroy, OnInit, AfterViewInit, DestroyRef, TemplateRef, ElementRef,
|
|
|
7
7
|
import { Observable, Subject, BehaviorSubject } from 'rxjs';
|
|
8
8
|
import { HttpClient, HttpParams, HttpHeaders, HttpInterceptorFn } from '@angular/common/http';
|
|
9
9
|
import * as _gipisistemas_ngx_core from '@gipisistemas/ngx-core';
|
|
10
|
-
import { ActivatedRoute, Router, Params, QueryParamsHandling, OnSameUrlNavigation, CanActivateFn, CanActivateChildFn } from '@angular/router';
|
|
10
|
+
import { ActivatedRoute, Router, Params, QueryParamsHandling, OnSameUrlNavigation, CanActivateFn, CanActivateChildFn, ParamMap } from '@angular/router';
|
|
11
11
|
import { SelectionModel } from '@angular/cdk/collections';
|
|
12
12
|
import { PageEvent, MatPaginator, MatPaginatorIntl } from '@angular/material/paginator';
|
|
13
13
|
import { ControlValueAccessor, AbstractControl, ValidationErrors, NgControl } from '@angular/forms';
|
|
@@ -3352,14 +3352,9 @@ declare class ScrollFadeModule {
|
|
|
3352
3352
|
static ɵinj: _angular_core.ɵɵInjectorDeclaration<ScrollFadeModule>;
|
|
3353
3353
|
}
|
|
3354
3354
|
|
|
3355
|
-
type tSearchOptions<TValue> = WritableSignal<TValue> & {
|
|
3356
|
-
/** O valor com debounce aplicado */
|
|
3357
|
-
term: Signal<TValue>;
|
|
3358
|
-
};
|
|
3359
|
-
|
|
3360
3355
|
declare class SelectClientSide<TOption = any, TValue = any> extends BaseControlValueAccessor {
|
|
3361
3356
|
protected _uniqueId: string;
|
|
3362
|
-
protected search: tSearchOptions<string | null>;
|
|
3357
|
+
protected search: _gipisistemas_ngx_core.tSearchOptions<string | null>;
|
|
3363
3358
|
protected filteredOptions: _angular_core.Signal<TOption[]>;
|
|
3364
3359
|
readonly label: _angular_core.InputSignal<string>;
|
|
3365
3360
|
readonly placeholder: _angular_core.InputSignal<string>;
|
|
@@ -3395,7 +3390,7 @@ interface iInternalOptions {
|
|
|
3395
3390
|
}
|
|
3396
3391
|
declare class SelectEnum<TValue = string | number> extends BaseControlValueAccessor {
|
|
3397
3392
|
protected _uniqueId: string;
|
|
3398
|
-
protected search: tSearchOptions<string | null>;
|
|
3393
|
+
protected search: _gipisistemas_ngx_core.tSearchOptions<string | null>;
|
|
3399
3394
|
protected propertyLabel: () => string;
|
|
3400
3395
|
protected propertyValue: () => string;
|
|
3401
3396
|
protected filteredOptions: _angular_core.Signal<iInternalOptions[]>;
|
|
@@ -3433,7 +3428,7 @@ declare class SelectServerSide<TOption = any, TValue = any> extends BaseControlV
|
|
|
3433
3428
|
private _hasLoadedOnce;
|
|
3434
3429
|
private _isLoadingRequest;
|
|
3435
3430
|
private _lastScrollLoadTime;
|
|
3436
|
-
protected search: tSearchOptions<string | null>;
|
|
3431
|
+
protected search: _gipisistemas_ngx_core.tSearchOptions<string | null>;
|
|
3437
3432
|
protected options: _angular_core.WritableSignal<TOption[]>;
|
|
3438
3433
|
protected loading: _angular_core.WritableSignal<boolean>;
|
|
3439
3434
|
protected currentPage: _angular_core.WritableSignal<number>;
|
|
@@ -5159,6 +5154,68 @@ interface iLinkedFilterOptions<T, F> {
|
|
|
5159
5154
|
*/
|
|
5160
5155
|
declare function useLinkedFilter<T = any, F = any>(initialValue: T, options: iLinkedFilterOptions<T, F>): WritableSignal<T>;
|
|
5161
5156
|
|
|
5157
|
+
/**
|
|
5158
|
+
* Cria um signal que rastreia um parâmetro de rota específico.
|
|
5159
|
+
* Atualiza de forma reativa quando o parâmetro muda.
|
|
5160
|
+
*
|
|
5161
|
+
* @param paramName Nome do parâmetro de rota a ser rastreado
|
|
5162
|
+
* @returns Um signal contendo o valor do parâmetro ou null.
|
|
5163
|
+
*
|
|
5164
|
+
* @example
|
|
5165
|
+
* ```typescript
|
|
5166
|
+
* // Para a rota /users/:id
|
|
5167
|
+
* const userId = useRouteParam('id');
|
|
5168
|
+
* ```
|
|
5169
|
+
*/
|
|
5170
|
+
declare function useRouteParams<T = string | null>(paramName: string): Signal<T>;
|
|
5171
|
+
/**
|
|
5172
|
+
* Cria um signal que rastreia todo o mapa de parâmetros da rota.
|
|
5173
|
+
* Útil quando você precisa acessar vários parâmetros.
|
|
5174
|
+
*
|
|
5175
|
+
* @returns Um signal contendo o ParamMap completo
|
|
5176
|
+
*
|
|
5177
|
+
* @example
|
|
5178
|
+
* ```typescript
|
|
5179
|
+
* const params = useRouteParamsMap();
|
|
5180
|
+
* const id = params().get('id');
|
|
5181
|
+
* ```
|
|
5182
|
+
*/
|
|
5183
|
+
declare function useRouteParamsMap(): Signal<ParamMap>;
|
|
5184
|
+
|
|
5185
|
+
/**
|
|
5186
|
+
* Cria um signal que rastreia um parâmetro de consulta específico.
|
|
5187
|
+
* Atualiza reativamente quando o parâmetro de consulta muda.
|
|
5188
|
+
*
|
|
5189
|
+
* @param paramName - Nome do parâmetro de consulta a ser rastreado
|
|
5190
|
+
* @returns Um signal contendo o valor do parâmetro ou null
|
|
5191
|
+
*
|
|
5192
|
+
* @example
|
|
5193
|
+
* ```typescript
|
|
5194
|
+
* // Para URL: /search?q=angular
|
|
5195
|
+
* const query = useRouteQueryParams('q');
|
|
5196
|
+
* ```
|
|
5197
|
+
*/
|
|
5198
|
+
declare function useRouteQueryParams<T = string | null>(paramName: string): Signal<T>;
|
|
5199
|
+
/**
|
|
5200
|
+
* Cria um signal que rastreia todo o mapa de parâmetros de consulta.
|
|
5201
|
+
* Útil quando você precisa acessar vários parâmetros de consulta.
|
|
5202
|
+
*
|
|
5203
|
+
* @returns Um signal contendo o mapa completo de parâmetros de consulta (ParamMap)
|
|
5204
|
+
*
|
|
5205
|
+
* @example
|
|
5206
|
+
* ```typescript
|
|
5207
|
+
* const params = useRouteQueryParamsMap();
|
|
5208
|
+
* const sort = params().get('sort');
|
|
5209
|
+
* ```
|
|
5210
|
+
*/
|
|
5211
|
+
declare function useRouteQueryParamsMap(): Signal<ParamMap>;
|
|
5212
|
+
|
|
5213
|
+
type tSearchOptions<TValue> = WritableSignal<TValue> & {
|
|
5214
|
+
/** O valor com debounce aplicado */
|
|
5215
|
+
term: Signal<TValue>;
|
|
5216
|
+
};
|
|
5217
|
+
declare function useSearch<TValue>(initialValue: TValue, delayMs?: number): tSearchOptions<TValue>;
|
|
5218
|
+
|
|
5162
5219
|
/**
|
|
5163
5220
|
* Token de injeção para definir rotas públicas permitidas mesmo quando o usuário está autenticado.
|
|
5164
5221
|
*
|
|
@@ -6093,5 +6150,5 @@ declare class UUIDUtil {
|
|
|
6093
6150
|
static isEmpty(inp: unknown): inp is null | undefined;
|
|
6094
6151
|
}
|
|
6095
6152
|
|
|
6096
|
-
export { ActionRow, ActionRowModule, AllowedPublicRoutesToken, AppMessagesToken, ArrayUtil, AutoFocusDirective, AutoFocusModule, Avatar, AvatarModule, BaseAppliedFilter, BaseAuthService, BaseAuthServiceToken, BaseAuthorityModel, BaseComponent, BaseControlValueAccessor, BaseCrudService, BaseFilterModel, BaseFormComponent, BaseFormDialogComponent, BaseFormDialogDataModel, BaseInput, BaseListComponent, BaseListDialogComponent, BaseListDialogDataModel, BaseMenuModel, BaseModel, BasePageModel, BaseQueryParams, BaseReportComponent, BaseService, BaseSortModel, BaseTokenModel, BaseUserModel, Button, ButtonGroup, ButtonGroupModule, ButtonModule, CAPITALIZE_ACRONYMS, CAPITALIZE_PREPOSITIONS, CURRENCY_OPTIONS_DEFAULT, CacheableService, Checkbox, CheckboxGroup, CheckboxModule, Chips, ChipsModule, ConfirmDialog, ConfirmDialogIcon, ConfirmDialogModel, ConfirmDialogModule, ConfirmDialogService, CssUtil, CurrencyDirective, CurrencyModule, CurrencyUtil, DEFAULT_MESSAGES, DatePicker, DatePickerModule, DateUtil, Debounce, DialogConfig, DialogService, DisableAutoFillDirective, DocumentPipe, DocumentUtil, EchartsConfigToken, EchartsDirective, EchartsModule, EmailUtil, Empty, EmptyModule, ExpansionPanel, ExpansionPanelModule, Fieldset, FieldsetModule, FileDragAndDrop, FileDragAndDropModule, FileSaverService, FilterListbox, FilterListboxModule, FilterPersistenceService, FilterService, FilterURLService, FlexLayoutDirective, FlexLayoutModule, FormField, FormFieldErrors, FormFieldInputDirective, FormFieldModule, FormFieldPrefixDirective, FormFieldSuffixDirective, FormWrapper, FormWrapperDialog, FormWrapperModule, HelpfulTip, HelpfulTipModule, Icon, IconModule, Input, InputCurrency, InputCurrencyModule, InputFile, InputFileModule, InputGroup, InputGroupAddon, InputGroupModule, InputModule, InputPhone, InputPhoneModule, Label, LabelModule, Loading, LoadingModule, LocalStorageToken, Lozenge, LozengeModule, MoneyPipe, NomalizeTextPipe, NumberToWordsUtil, NumberUtil, ObjectUtil, PAGINATOR_INTL_PT_BR, PageAdjustService, Paginator, PaginatorIntlToken, PaginatorModule, PaginatorPipe, PasswordRequirements, PasswordRequirementsModule, PasswordValidationUtil, PdfViewer, PdfViewerDialog, PdfViewerDialogModel, PdfViewerDialogModule, PdfViewerService, PhoneUtil, Popover, PopoverModule, PopoverTargetDirective, PopoverTriggerDirective, RadioGroup, RadioGroupModule, STATES_DATA, ScrollFadeDirective, ScrollFadeModule, SelectClientSide, SelectEnum, SelectModule, SelectServerSide, SessionStorageToken, Sidenav, SidenavContainer, SidenavContent, SidenavMenuItem, SidenavModule, Skeleton, SkeletonModule, SplitButton, SplitButtonModule, StateUtil, Step, Stepper, StepperModule, StringUtil, SvgRegisterService, Tab, TabGroup, Table, TableColumn, TableColumnBuilder, TableMenuItemContext, TableMenuItemContextBuilder, TableModule, TabsModule, Tag, TagModule, TextCapitalizeDirective, TextCapitalizeModule, TextEllipsisDirective, TextEllipsisModule, Textarea, TextareaModule, Toast, ToastIcon, ToastModel, ToastModule, ToastService, ToggleSwitch, ToggleSwitchModule, Toolbar, ToolbarModule, TooltipDirective, TooltipModule, TopNav, TopNavModule, TreeTable, TreeTableColumn, TreeTableColumnBuilder, TreeTableMenuItemContext, TreeTableMenuItemContextBuilder, TreeTableModule, UUIDUtil, UserProfile, UserProfileModule, animationFlyInOut, authChildGuard, authGuard, authInterceptor, eConfirmDialogTypes, eCurrencyInputMode, eMenuType, eSortDirection, eToastTypes, eTypeOperationCloseDialogEnum, eTypeOperationDialog, entityFilterSignal, errorInterceptor, filterSignal, provideAllowedPublicRoutes, provideAppMessages, provideBaseAuthService, provideEchartsCore, providePaginatorIntl, provideValueAccessor, publicChildGuard, publicGuard, rotateAnimation, rotateArrowTreeTableExpand, stateNamesMap, transformFilterSignal, useFilterPersistence, useLinkedFilter };
|
|
6097
|
-
export type { Booleanish, GIPIUuid, MixableObject, Nullable, Numberish, VoidListener, iAPIError, iAppMessages, iBaseReportType, iButtonGroup, iCurrencyConfig, iDatePreset, iDateRange, iEchartsConfig, iFileUploadEvent, iFilterListbox, iFilterPersistenceConfig, iFilterSignal, iFilterSignalConfig, iLinkedFilterOptions, iMonthRange, iMonthValue, iPageAdjust, iPaginatorArgs, iPasswordRequirement, iPermission, iSplitButtonMenuItem, iTimeValue, iToggleSwitchChange, iUseFilterPersistence, iYearRange, tCheckboxGroupOption, tCheckboxState, tConfirmDialogTypes, tDateFilterFn, tDatePickerMode, tDatePickerValue, tEchartsThemeOption, tFilterListboxMode, tIconFontSet, tIconGrade, tIconOptical, tIconVariation, tIconWeight, tImplicitTemplateRef, tLozengeFill, tLozengeVariant, tMenuType, tMonthsEnglish, tOptionRadioGroup, tPageEvent, tPermissionKey, tRotateState, tSortDirection, tStateName, tTableColumnActionType, tTableColumnAlignHorizontal, tTableColumnAlignText, tTableColumnAlignVertical, tTableColumnCondition, tTableColumnPartial, tTimeFormat, tToastTypes, tTreeTableColumnCondition, tTreeTableColumnPartial, tTypeOperationCloseDialog, tTypeOperationDialog, tUFState, tVariantType, tWeekdaysEnglish };
|
|
6153
|
+
export { ActionRow, ActionRowModule, AllowedPublicRoutesToken, AppMessagesToken, ArrayUtil, AutoFocusDirective, AutoFocusModule, Avatar, AvatarModule, BaseAppliedFilter, BaseAuthService, BaseAuthServiceToken, BaseAuthorityModel, BaseComponent, BaseControlValueAccessor, BaseCrudService, BaseFilterModel, BaseFormComponent, BaseFormDialogComponent, BaseFormDialogDataModel, BaseInput, BaseListComponent, BaseListDialogComponent, BaseListDialogDataModel, BaseMenuModel, BaseModel, BasePageModel, BaseQueryParams, BaseReportComponent, BaseService, BaseSortModel, BaseTokenModel, BaseUserModel, Button, ButtonGroup, ButtonGroupModule, ButtonModule, CAPITALIZE_ACRONYMS, CAPITALIZE_PREPOSITIONS, CURRENCY_OPTIONS_DEFAULT, CacheableService, Checkbox, CheckboxGroup, CheckboxModule, Chips, ChipsModule, ConfirmDialog, ConfirmDialogIcon, ConfirmDialogModel, ConfirmDialogModule, ConfirmDialogService, CssUtil, CurrencyDirective, CurrencyModule, CurrencyUtil, DEFAULT_MESSAGES, DatePicker, DatePickerModule, DateUtil, Debounce, DialogConfig, DialogService, DisableAutoFillDirective, DocumentPipe, DocumentUtil, EchartsConfigToken, EchartsDirective, EchartsModule, EmailUtil, Empty, EmptyModule, ExpansionPanel, ExpansionPanelModule, Fieldset, FieldsetModule, FileDragAndDrop, FileDragAndDropModule, FileSaverService, FilterListbox, FilterListboxModule, FilterPersistenceService, FilterService, FilterURLService, FlexLayoutDirective, FlexLayoutModule, FormField, FormFieldErrors, FormFieldInputDirective, FormFieldModule, FormFieldPrefixDirective, FormFieldSuffixDirective, FormWrapper, FormWrapperDialog, FormWrapperModule, HelpfulTip, HelpfulTipModule, Icon, IconModule, Input, InputCurrency, InputCurrencyModule, InputFile, InputFileModule, InputGroup, InputGroupAddon, InputGroupModule, InputModule, InputPhone, InputPhoneModule, Label, LabelModule, Loading, LoadingModule, LocalStorageToken, Lozenge, LozengeModule, MoneyPipe, NomalizeTextPipe, NumberToWordsUtil, NumberUtil, ObjectUtil, PAGINATOR_INTL_PT_BR, PageAdjustService, Paginator, PaginatorIntlToken, PaginatorModule, PaginatorPipe, PasswordRequirements, PasswordRequirementsModule, PasswordValidationUtil, PdfViewer, PdfViewerDialog, PdfViewerDialogModel, PdfViewerDialogModule, PdfViewerService, PhoneUtil, Popover, PopoverModule, PopoverTargetDirective, PopoverTriggerDirective, RadioGroup, RadioGroupModule, STATES_DATA, ScrollFadeDirective, ScrollFadeModule, SelectClientSide, SelectEnum, SelectModule, SelectServerSide, SessionStorageToken, Sidenav, SidenavContainer, SidenavContent, SidenavMenuItem, SidenavModule, Skeleton, SkeletonModule, SplitButton, SplitButtonModule, StateUtil, Step, Stepper, StepperModule, StringUtil, SvgRegisterService, Tab, TabGroup, Table, TableColumn, TableColumnBuilder, TableMenuItemContext, TableMenuItemContextBuilder, TableModule, TabsModule, Tag, TagModule, TextCapitalizeDirective, TextCapitalizeModule, TextEllipsisDirective, TextEllipsisModule, Textarea, TextareaModule, Toast, ToastIcon, ToastModel, ToastModule, ToastService, ToggleSwitch, ToggleSwitchModule, Toolbar, ToolbarModule, TooltipDirective, TooltipModule, TopNav, TopNavModule, TreeTable, TreeTableColumn, TreeTableColumnBuilder, TreeTableMenuItemContext, TreeTableMenuItemContextBuilder, TreeTableModule, UUIDUtil, UserProfile, UserProfileModule, animationFlyInOut, authChildGuard, authGuard, authInterceptor, eConfirmDialogTypes, eCurrencyInputMode, eMenuType, eSortDirection, eToastTypes, eTypeOperationCloseDialogEnum, eTypeOperationDialog, entityFilterSignal, errorInterceptor, filterSignal, provideAllowedPublicRoutes, provideAppMessages, provideBaseAuthService, provideEchartsCore, providePaginatorIntl, provideValueAccessor, publicChildGuard, publicGuard, rotateAnimation, rotateArrowTreeTableExpand, stateNamesMap, transformFilterSignal, useFilterPersistence, useLinkedFilter, useRouteParams, useRouteParamsMap, useRouteQueryParams, useRouteQueryParamsMap, useSearch };
|
|
6154
|
+
export type { Booleanish, GIPIUuid, MixableObject, Nullable, Numberish, VoidListener, iAPIError, iAppMessages, iBaseReportType, iButtonGroup, iCurrencyConfig, iDatePreset, iDateRange, iEchartsConfig, iFileUploadEvent, iFilterListbox, iFilterPersistenceConfig, iFilterSignal, iFilterSignalConfig, iLinkedFilterOptions, iMonthRange, iMonthValue, iPageAdjust, iPaginatorArgs, iPasswordRequirement, iPermission, iSplitButtonMenuItem, iTimeValue, iToggleSwitchChange, iUseFilterPersistence, iYearRange, tCheckboxGroupOption, tCheckboxState, tConfirmDialogTypes, tDateFilterFn, tDatePickerMode, tDatePickerValue, tEchartsThemeOption, tFilterListboxMode, tIconFontSet, tIconGrade, tIconOptical, tIconVariation, tIconWeight, tImplicitTemplateRef, tLozengeFill, tLozengeVariant, tMenuType, tMonthsEnglish, tOptionRadioGroup, tPageEvent, tPermissionKey, tRotateState, tSearchOptions, tSortDirection, tStateName, tTableColumnActionType, tTableColumnAlignHorizontal, tTableColumnAlignText, tTableColumnAlignVertical, tTableColumnCondition, tTableColumnPartial, tTimeFormat, tToastTypes, tTreeTableColumnCondition, tTreeTableColumnPartial, tTypeOperationCloseDialog, tTypeOperationDialog, tUFState, tVariantType, tWeekdaysEnglish };
|