@masterkeymaterial/ui 0.2.35 → 1.0.2
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": "@masterkeymaterial/ui",
|
|
3
|
-
"version": "0.2
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "Biblioteca Angular de componentes UI e campos de formulário reutilizáveis para construir formulários dinâmicos.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"angular",
|
|
@@ -20,7 +20,6 @@
|
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@angular/cdk": "^21.2.7",
|
|
23
|
-
"@floating-ui/dom": "^1.7.6",
|
|
24
23
|
"tslib": "^2.3.0"
|
|
25
24
|
},
|
|
26
25
|
"publishConfig": {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
|
-
import { WritableSignal, Type, OnInit, OnDestroy, Signal, ElementRef, AfterViewInit, InjectionToken } from '@angular/core';
|
|
2
|
+
import { WritableSignal, Type, OnInit, OnDestroy, Signal, ElementRef, AfterViewInit, TemplateRef, InjectionToken } from '@angular/core';
|
|
3
3
|
import * as _masterkeymaterial_ui from '@masterkeymaterial/ui';
|
|
4
|
+
import { SafeResourceUrl } from '@angular/platform-browser';
|
|
4
5
|
import { CdkDragDrop } from '@angular/cdk/drag-drop';
|
|
5
6
|
|
|
6
7
|
interface IKV {
|
|
@@ -29,7 +30,7 @@ interface IFileMetadata {
|
|
|
29
30
|
type: string;
|
|
30
31
|
lastModifiedIso: string;
|
|
31
32
|
}
|
|
32
|
-
type
|
|
33
|
+
type IPosicaoOverlay = "top" | "right" | "bottom" | "left" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end";
|
|
33
34
|
type IUiProgressMode = 'determinate' | 'indeterminate' | 'buffer' | 'query';
|
|
34
35
|
interface IBreadcrumbItem {
|
|
35
36
|
label: string;
|
|
@@ -75,6 +76,10 @@ interface IModalConfig {
|
|
|
75
76
|
tamanho?: IModalTamanho;
|
|
76
77
|
closeable?: boolean;
|
|
77
78
|
acoes?: IModalAcao[];
|
|
79
|
+
/** Componente ou TemplateRef renderizado no corpo do modal (alternativa a `mensagem`) */
|
|
80
|
+
conteudo?: _angular_core.Type<unknown> | _angular_core.TemplateRef<unknown>;
|
|
81
|
+
/** Dados passados para o componente/template via injeção (token MODAL_DADOS) */
|
|
82
|
+
dados?: unknown;
|
|
78
83
|
}
|
|
79
84
|
|
|
80
85
|
declare class Formulario {
|
|
@@ -578,6 +583,7 @@ declare class UiButton {
|
|
|
578
583
|
rippleEffect: _angular_core.Signal<ElementRef<any> | undefined>;
|
|
579
584
|
ripple: _angular_core.Signal<ElementRef<any> | undefined>;
|
|
580
585
|
icone: _angular_core.ModelSignal<string | null | undefined>;
|
|
586
|
+
iconeNome: _angular_core.InputSignal<string | null | undefined>;
|
|
581
587
|
iconeAntes: _angular_core.ModelSignal<boolean>;
|
|
582
588
|
iconeDepois: _angular_core.ModelSignal<boolean>;
|
|
583
589
|
iconeCategory: _angular_core.ModelSignal<string>;
|
|
@@ -600,7 +606,7 @@ declare class UiButton {
|
|
|
600
606
|
onClickExpanded(ev: PointerEvent): void;
|
|
601
607
|
createRipple(e: PointerEvent): void;
|
|
602
608
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<UiButton, never>;
|
|
603
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<UiButton, "ui-button", never, { "icone": { "alias": "icone"; "required": false; "isSignal": true; }; "iconeAntes": { "alias": "iconeAntes"; "required": false; "isSignal": true; }; "iconeDepois": { "alias": "iconeDepois"; "required": false; "isSignal": true; }; "iconeCategory": { "alias": "iconeCategory"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "eventPropagation": { "alias": "eventPropagation"; "required": false; "isSignal": true; }; "radiusTabFormat": { "alias": "radiusTabFormat"; "required": false; "isSignal": true; }; "tabindex": { "alias": "tabindex"; "required": false; "isSignal": true; }; "tipo": { "alias": "tipo"; "required": false; "isSignal": true; }; "tema": { "alias": "tema"; "required": false; "isSignal": true; }; "classes": { "alias": "classes"; "required": false; "isSignal": true; }; "ativo": { "alias": "ativo"; "required": false; "isSignal": true; }; }, { "icone": "iconeChange"; "iconeAntes": "iconeAntesChange"; "iconeDepois": "iconeDepoisChange"; "iconeCategory": "iconeCategoryChange"; "clicked": "clicked"; "tema": "temaChange"; }, never, ["*"], true, never>;
|
|
609
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<UiButton, "ui-button", never, { "icone": { "alias": "icone"; "required": false; "isSignal": true; }; "iconeNome": { "alias": "iconeNome"; "required": false; "isSignal": true; }; "iconeAntes": { "alias": "iconeAntes"; "required": false; "isSignal": true; }; "iconeDepois": { "alias": "iconeDepois"; "required": false; "isSignal": true; }; "iconeCategory": { "alias": "iconeCategory"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "eventPropagation": { "alias": "eventPropagation"; "required": false; "isSignal": true; }; "radiusTabFormat": { "alias": "radiusTabFormat"; "required": false; "isSignal": true; }; "tabindex": { "alias": "tabindex"; "required": false; "isSignal": true; }; "tipo": { "alias": "tipo"; "required": false; "isSignal": true; }; "tema": { "alias": "tema"; "required": false; "isSignal": true; }; "classes": { "alias": "classes"; "required": false; "isSignal": true; }; "ativo": { "alias": "ativo"; "required": false; "isSignal": true; }; }, { "icone": "iconeChange"; "iconeAntes": "iconeAntesChange"; "iconeDepois": "iconeDepoisChange"; "iconeCategory": "iconeCategoryChange"; "clicked": "clicked"; "tema": "temaChange"; }, never, ["*"], true, never>;
|
|
604
610
|
}
|
|
605
611
|
|
|
606
612
|
declare class UiChip {
|
|
@@ -618,7 +624,7 @@ declare class UiDropZone {
|
|
|
618
624
|
changed: _angular_core.OutputEmitterRef<IDropOutput>;
|
|
619
625
|
rippleEffect: _angular_core.Signal<ElementRef<any> | undefined>;
|
|
620
626
|
ripple: _angular_core.Signal<ElementRef<any> | undefined>;
|
|
621
|
-
isDragging: boolean
|
|
627
|
+
isDragging: _angular_core.WritableSignal<boolean>;
|
|
622
628
|
onDropZone(tipo: IDropZoneEvent, ev: Event): Promise<void>;
|
|
623
629
|
onDrop(ev: DragEvent): Promise<void>;
|
|
624
630
|
createRipple(ev: DragEvent, classColor?: string): void;
|
|
@@ -639,9 +645,11 @@ declare class UiFilePreview {
|
|
|
639
645
|
arquivo: _angular_core.InputSignal<IFileMetadata>;
|
|
640
646
|
removivel: _angular_core.InputSignal<boolean>;
|
|
641
647
|
remover: _angular_core.OutputEmitterRef<IFileMetadata>;
|
|
648
|
+
private readonly sanitizer;
|
|
642
649
|
tipoDisplay: _angular_core.Signal<"png" | "jpg" | "svg" | "pdf" | "other">;
|
|
643
650
|
isImage: _angular_core.Signal<boolean>;
|
|
644
651
|
isPdf: _angular_core.Signal<boolean>;
|
|
652
|
+
safePdfUrl: _angular_core.Signal<SafeResourceUrl | null>;
|
|
645
653
|
onRemover(): void;
|
|
646
654
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<UiFilePreview, never>;
|
|
647
655
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<UiFilePreview, "ui-file-preview", never, { "arquivo": { "alias": "arquivo"; "required": true; "isSignal": true; }; "removivel": { "alias": "removivel"; "required": false; "isSignal": true; }; }, { "remover": "remover"; }, never, never, true, never>;
|
|
@@ -663,6 +671,8 @@ declare class UiArquivos {
|
|
|
663
671
|
changed: _angular_core.OutputEmitterRef<IFileMetadata[]>;
|
|
664
672
|
fileInput: _angular_core.Signal<ElementRef<HTMLInputElement> | undefined>;
|
|
665
673
|
temArquivos: _angular_core.Signal<boolean>;
|
|
674
|
+
private readonly _cdr;
|
|
675
|
+
constructor();
|
|
666
676
|
onDropChanged(dropOutput: IDropOutput): void;
|
|
667
677
|
onDropClicked(): void;
|
|
668
678
|
onFileInputChange(event: Event): Promise<void>;
|
|
@@ -682,6 +692,8 @@ interface IKVSeletor extends IKV {
|
|
|
682
692
|
}
|
|
683
693
|
declare class UiSelect implements OnDestroy, AfterViewInit {
|
|
684
694
|
elementRef: ElementRef;
|
|
695
|
+
private overlay;
|
|
696
|
+
private vcr;
|
|
685
697
|
value: _angular_core.ModelSignal<string | number | string[] | number[] | undefined>;
|
|
686
698
|
options: _angular_core.InputSignal<IKV[] | null | undefined>;
|
|
687
699
|
name: _angular_core.InputSignal<string | number | undefined>;
|
|
@@ -693,23 +705,18 @@ declare class UiSelect implements OnDestroy, AfterViewInit {
|
|
|
693
705
|
changed: _angular_core.OutputEmitterRef<IOptionValue>;
|
|
694
706
|
isOpenedOptions: _angular_core.WritableSignal<boolean>;
|
|
695
707
|
markedOptionKey: _angular_core.WritableSignal<string | number | null | undefined>;
|
|
696
|
-
elementoAcima: HTMLElement | null;
|
|
697
708
|
isSmallScreen: _angular_core.WritableSignal<boolean>;
|
|
709
|
+
optionMinWidth: _angular_core.WritableSignal<number>;
|
|
698
710
|
textoFiltrado: _angular_core.WritableSignal<string>;
|
|
711
|
+
private overlayRef;
|
|
712
|
+
private outsideSub;
|
|
713
|
+
readonly optionsTemplate: _angular_core.Signal<TemplateRef<unknown> | undefined>;
|
|
714
|
+
readonly displayText: _angular_core.Signal<ElementRef<any> | undefined>;
|
|
715
|
+
readonly triggerElement: _angular_core.Signal<ElementRef<any> | undefined>;
|
|
699
716
|
readonly optionsList: _angular_core.Signal<IKVSeletor[]>;
|
|
700
717
|
readonly optionsFiltered: _angular_core.Signal<IKVSeletor[]>;
|
|
701
718
|
readonly textoExibindo: _angular_core.Signal<string>;
|
|
702
|
-
readonly
|
|
703
|
-
readonly triggerElement: _angular_core.Signal<ElementRef<any> | undefined>;
|
|
704
|
-
readonly optionsOverlay: _angular_core.Signal<ElementRef<any> | undefined>;
|
|
705
|
-
readonly optionsContainer: _angular_core.Signal<ElementRef<any> | undefined>;
|
|
706
|
-
readonly optionSearchInput: _angular_core.Signal<ElementRef<any> | undefined>;
|
|
707
|
-
optionMinWidth: _angular_core.WritableSignal<number>;
|
|
708
|
-
menuPosition: _angular_core.WritableSignal<{
|
|
709
|
-
top: string;
|
|
710
|
-
left: string;
|
|
711
|
-
}>;
|
|
712
|
-
constructor();
|
|
719
|
+
readonly hostClasses: _angular_core.Signal<"" | "opened">;
|
|
713
720
|
ngOnDestroy(): void;
|
|
714
721
|
ngAfterViewInit(): void;
|
|
715
722
|
onChange(valueOfK: string | number | null): string | number | string[] | number[];
|
|
@@ -722,13 +729,10 @@ declare class UiSelect implements OnDestroy, AfterViewInit {
|
|
|
722
729
|
focusToSearchInput(): void;
|
|
723
730
|
focusToDisplayText(): void;
|
|
724
731
|
markKey(event: KeyboardEvent): void;
|
|
725
|
-
readonly hostClasses: _angular_core.Signal<"" | "opened">;
|
|
726
|
-
onDocumentClick(event: MouseEvent): void;
|
|
727
|
-
private updatePosition;
|
|
728
|
-
setOverlaySizeToSizeViewport(): void;
|
|
729
732
|
onChangeMediaQuery(e: MediaQueryListEvent | MediaQueryList): void;
|
|
730
733
|
checkScreenSize(): void;
|
|
731
734
|
private moveScrollToMarkedOption;
|
|
735
|
+
private _dispose;
|
|
732
736
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<UiSelect, never>;
|
|
733
737
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<UiSelect, "ui-select", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "options": { "alias": "options"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "multiple": { "alias": "multiple"; "required": false; "isSignal": true; }; "canUnselect": { "alias": "canUnselect"; "required": false; "isSignal": true; }; "textEmpty": { "alias": "textEmpty"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "changed": "changed"; }, never, never, true, never>;
|
|
734
738
|
}
|
|
@@ -826,43 +830,32 @@ declare class UiLoading {
|
|
|
826
830
|
|
|
827
831
|
declare class UiMenu implements OnDestroy, OnInit, AfterViewInit {
|
|
828
832
|
elementRef: ElementRef;
|
|
833
|
+
private overlay;
|
|
834
|
+
private vcr;
|
|
829
835
|
readonly disabled: _angular_core.InputSignal<boolean | undefined>;
|
|
830
836
|
readonly icone: _angular_core.InputSignal<string | null | undefined>;
|
|
831
837
|
autoCloseInCascade: _angular_core.ModelSignal<boolean>;
|
|
832
838
|
posicao: _angular_core.ModelSignal<"top" | "right" | "bottom" | "left" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end">;
|
|
833
839
|
isOpened: _angular_core.ModelSignal<boolean>;
|
|
834
840
|
id: _angular_core.WritableSignal<string>;
|
|
835
|
-
internalId: _angular_core.WritableSignal<{
|
|
836
|
-
id: string | undefined;
|
|
837
|
-
changed: boolean;
|
|
838
|
-
} | undefined>;
|
|
839
841
|
isSmallScreen: _angular_core.WritableSignal<boolean>;
|
|
840
842
|
optionMinWidth: _angular_core.WritableSignal<number>;
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
left: string;
|
|
844
|
-
}>;
|
|
845
|
-
zIndex: _angular_core.WritableSignal<string>;
|
|
846
|
-
closeOverlayObserver: MutationObserver;
|
|
843
|
+
private overlayRef;
|
|
844
|
+
private outsideSub;
|
|
847
845
|
readonly menuTrigger: _angular_core.Signal<ElementRef<any> | undefined>;
|
|
848
|
-
readonly
|
|
849
|
-
readonly menuContainer: _angular_core.Signal<ElementRef<any> | undefined>;
|
|
850
|
-
constructor();
|
|
846
|
+
readonly menuTemplate: _angular_core.Signal<TemplateRef<unknown> | undefined>;
|
|
851
847
|
ngOnInit(): void;
|
|
852
848
|
ngOnDestroy(): void;
|
|
853
849
|
ngAfterViewInit(): void;
|
|
854
850
|
onOpenOrCloseOptions(): void;
|
|
855
851
|
onClickSlotBotao(event: Event): void;
|
|
856
|
-
onClickOverlay(): void;
|
|
857
852
|
onClickContainer(event: Event): void;
|
|
858
853
|
protected closeOverlay(fromCascade?: boolean): void;
|
|
859
854
|
protected openOverlay(): void;
|
|
860
|
-
private updatePosition;
|
|
861
|
-
setOverlaySizeToSizeViewport(): void;
|
|
862
|
-
onChangeMediaQuery(e: MediaQueryListEvent | MediaQueryList): void;
|
|
863
|
-
checkScreenSize(): void;
|
|
864
855
|
onArrowUp(event: Event): void;
|
|
865
856
|
onArrowDown(event: Event): void;
|
|
857
|
+
onChangeMediaQuery(e: MediaQueryListEvent | MediaQueryList): void;
|
|
858
|
+
checkScreenSize(): void;
|
|
866
859
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<UiMenu, never>;
|
|
867
860
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<UiMenu, "ui-menu", never, { "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "icone": { "alias": "icone"; "required": false; "isSignal": true; }; "autoCloseInCascade": { "alias": "autoCloseInCascade"; "required": false; "isSignal": true; }; "posicao": { "alias": "posicao"; "required": false; "isSignal": true; }; "isOpened": { "alias": "isOpened"; "required": false; "isSignal": true; }; }, { "autoCloseInCascade": "autoCloseInCascadeChange"; "posicao": "posicaoChange"; "isOpened": "isOpenedChange"; }, never, ["[slot='botao']", "*"], true, never>;
|
|
868
861
|
}
|
|
@@ -897,7 +890,7 @@ declare class UiAvatar {
|
|
|
897
890
|
src: _angular_core.InputSignal<string | undefined>;
|
|
898
891
|
nome: _angular_core.InputSignal<string | undefined>;
|
|
899
892
|
tamanho: _angular_core.InputSignal<"sm" | "md" | "lg" | "xl" | "xs">;
|
|
900
|
-
formato: _angular_core.InputSignal<"
|
|
893
|
+
formato: _angular_core.InputSignal<"square" | "circle">;
|
|
901
894
|
tema: _angular_core.InputSignal<ITiposTema | undefined>;
|
|
902
895
|
iniciais: _angular_core.Signal<string>;
|
|
903
896
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<UiAvatar, never>;
|
|
@@ -917,9 +910,10 @@ declare class UiTag {
|
|
|
917
910
|
declare class UiEmptyState {
|
|
918
911
|
titulo: _angular_core.InputSignal<string>;
|
|
919
912
|
descricao: _angular_core.InputSignal<string | undefined>;
|
|
920
|
-
icone: _angular_core.InputSignal<string>;
|
|
913
|
+
icone: _angular_core.InputSignal<string | undefined>;
|
|
914
|
+
iconeNome: _angular_core.InputSignal<string>;
|
|
921
915
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<UiEmptyState, never>;
|
|
922
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<UiEmptyState, "ui-empty-state", never, { "titulo": { "alias": "titulo"; "required": false; "isSignal": true; }; "descricao": { "alias": "descricao"; "required": false; "isSignal": true; }; "icone": { "alias": "icone"; "required": false; "isSignal": true; }; }, {}, never, ["[slot=acao]"], true, never>;
|
|
916
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<UiEmptyState, "ui-empty-state", never, { "titulo": { "alias": "titulo"; "required": false; "isSignal": true; }; "descricao": { "alias": "descricao"; "required": false; "isSignal": true; }; "icone": { "alias": "icone"; "required": false; "isSignal": true; }; "iconeNome": { "alias": "iconeNome"; "required": false; "isSignal": true; }; }, {}, never, ["[slot=acao]"], true, never>;
|
|
923
917
|
}
|
|
924
918
|
|
|
925
919
|
declare class UiTabs {
|
|
@@ -932,19 +926,25 @@ declare class UiTabs {
|
|
|
932
926
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<UiTabs, "ui-tabs", never, { "abas": { "alias": "abas"; "required": false; "isSignal": true; }; "ativa": { "alias": "ativa"; "required": false; "isSignal": true; }; "tipo": { "alias": "tipo"; "required": false; "isSignal": true; }; }, { "ativa": "ativaChange"; "changed": "changed"; }, never, ["*"], true, never>;
|
|
933
927
|
}
|
|
934
928
|
|
|
935
|
-
|
|
936
|
-
titulo: string
|
|
937
|
-
icone
|
|
938
|
-
desabilitado
|
|
929
|
+
declare class UiAccordionItem {
|
|
930
|
+
titulo: _angular_core.InputSignal<string>;
|
|
931
|
+
icone: _angular_core.InputSignal<string | undefined>;
|
|
932
|
+
desabilitado: _angular_core.InputSignal<boolean>;
|
|
933
|
+
private accordion;
|
|
934
|
+
conteudo: _angular_core.Signal<TemplateRef<any> | undefined>;
|
|
935
|
+
aberto: _angular_core.Signal<boolean>;
|
|
936
|
+
toggle(): void;
|
|
937
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<UiAccordionItem, never>;
|
|
938
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<UiAccordionItem, "ui-accordion-item", never, { "titulo": { "alias": "titulo"; "required": true; "isSignal": true; }; "icone": { "alias": "icone"; "required": false; "isSignal": true; }; "desabilitado": { "alias": "desabilitado"; "required": false; "isSignal": true; }; }, {}, ["conteudo"], ["*"], true, never>;
|
|
939
939
|
}
|
|
940
|
+
|
|
940
941
|
declare class UiAccordion {
|
|
941
|
-
itens: _angular_core.InputSignal<IAccordionItem[]>;
|
|
942
942
|
multiplo: _angular_core.InputSignal<boolean>;
|
|
943
|
-
abertos
|
|
944
|
-
toggle(
|
|
945
|
-
|
|
943
|
+
private abertos;
|
|
944
|
+
toggle(item: UiAccordionItem): void;
|
|
945
|
+
estaAberto(item: UiAccordionItem): boolean;
|
|
946
946
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<UiAccordion, never>;
|
|
947
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<UiAccordion, "ui-accordion", never, { "
|
|
947
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<UiAccordion, "ui-accordion", never, { "multiplo": { "alias": "multiplo"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
948
948
|
}
|
|
949
949
|
|
|
950
950
|
declare class UiBreadcrumb {
|
|
@@ -989,10 +989,10 @@ declare class UiPagination {
|
|
|
989
989
|
|
|
990
990
|
declare class UiTooltip implements OnDestroy {
|
|
991
991
|
uiTooltip: _angular_core.InputSignal<string>;
|
|
992
|
-
uiTooltipPos: _angular_core.InputSignal<
|
|
992
|
+
uiTooltipPos: _angular_core.InputSignal<IPosicaoOverlay>;
|
|
993
993
|
private el;
|
|
994
|
-
private
|
|
995
|
-
private
|
|
994
|
+
private overlay;
|
|
995
|
+
private overlayRef;
|
|
996
996
|
onEnter(): void;
|
|
997
997
|
onFocus(): void;
|
|
998
998
|
onLeave(): void;
|
|
@@ -1024,7 +1024,11 @@ declare class UiToastContainer {
|
|
|
1024
1024
|
}
|
|
1025
1025
|
|
|
1026
1026
|
declare class UiModalService {
|
|
1027
|
+
private overlay;
|
|
1028
|
+
private injector;
|
|
1029
|
+
/** Sinal com os configs dos modais abertos */
|
|
1027
1030
|
readonly modais: _angular_core.WritableSignal<IModalConfig[]>;
|
|
1031
|
+
private _refs;
|
|
1028
1032
|
open(config: Omit<IModalConfig, 'id'>): string;
|
|
1029
1033
|
close(id: string): void;
|
|
1030
1034
|
closeAll(): void;
|
|
@@ -1032,6 +1036,10 @@ declare class UiModalService {
|
|
|
1032
1036
|
static ɵprov: _angular_core.ɵɵInjectableDeclaration<UiModalService>;
|
|
1033
1037
|
}
|
|
1034
1038
|
|
|
1039
|
+
/**
|
|
1040
|
+
* Inclua <ui-modal-outlet> no shell do app para habilitar o controle de Esc nos modais.
|
|
1041
|
+
* A renderização dos modais é gerenciada pelo CDK Overlay (não requer marcação adicional).
|
|
1042
|
+
*/
|
|
1035
1043
|
declare class UiModalOutlet {
|
|
1036
1044
|
readonly modalService: UiModalService;
|
|
1037
1045
|
onEscape(): void;
|
|
@@ -1068,16 +1076,30 @@ declare class UiRating {
|
|
|
1068
1076
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<UiRating, "ui-rating", never, { "valor": { "alias": "valor"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "meiaPasso": { "alias": "meiaPasso"; "required": false; "isSignal": true; }; }, { "valor": "valorChange"; "changed": "changed"; }, never, never, true, never>;
|
|
1069
1077
|
}
|
|
1070
1078
|
|
|
1071
|
-
|
|
1079
|
+
interface IUiTreeCtx {
|
|
1080
|
+
multiplo(): boolean;
|
|
1081
|
+
isSelecionado(id: string | number): boolean;
|
|
1082
|
+
isExpandido(id: string | number): boolean;
|
|
1083
|
+
toggleExpandir(no: ITreeNode): void;
|
|
1084
|
+
toggleSelecionar(no: ITreeNode): void;
|
|
1085
|
+
coletarTodosFilhos(no: ITreeNode): (string | number)[];
|
|
1086
|
+
selecionarTodos(no: ITreeNode): void;
|
|
1087
|
+
desselecionarTodos(no: ITreeNode): void;
|
|
1088
|
+
}
|
|
1089
|
+
|
|
1090
|
+
declare class UiTree implements IUiTreeCtx {
|
|
1072
1091
|
nos: _angular_core.InputSignal<ITreeNode[]>;
|
|
1073
1092
|
multiplo: _angular_core.InputSignal<boolean>;
|
|
1074
1093
|
selecionado: _angular_core.ModelSignal<(string | number)[]>;
|
|
1075
1094
|
expandidos: _angular_core.WritableSignal<Set<string | number>>;
|
|
1076
1095
|
carregarFilhos: _angular_core.OutputEmitterRef<ITreeNode>;
|
|
1077
|
-
toggleExpandir(no: ITreeNode): void;
|
|
1078
1096
|
isExpandido(id: string | number): boolean;
|
|
1079
|
-
toggleSelecionar(no: ITreeNode): void;
|
|
1080
1097
|
isSelecionado(id: string | number): boolean;
|
|
1098
|
+
toggleExpandir(no: ITreeNode): void;
|
|
1099
|
+
toggleSelecionar(no: ITreeNode): void;
|
|
1100
|
+
coletarTodosFilhos(no: ITreeNode): (string | number)[];
|
|
1101
|
+
selecionarTodos(no: ITreeNode): void;
|
|
1102
|
+
desselecionarTodos(no: ITreeNode): void;
|
|
1081
1103
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<UiTree, never>;
|
|
1082
1104
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<UiTree, "ui-tree", never, { "nos": { "alias": "nos"; "required": false; "isSignal": true; }; "multiplo": { "alias": "multiplo"; "required": false; "isSignal": true; }; "selecionado": { "alias": "selecionado"; "required": false; "isSignal": true; }; }, { "selecionado": "selecionadoChange"; "carregarFilhos": "carregarFilhos"; }, never, never, true, never>;
|
|
1083
1105
|
}
|
|
@@ -1102,7 +1124,8 @@ declare class FormFilter<T> extends BaseFieldsValues<T> {
|
|
|
1102
1124
|
|
|
1103
1125
|
interface ISaveTasks {
|
|
1104
1126
|
title: string;
|
|
1105
|
-
icone
|
|
1127
|
+
icone?: string;
|
|
1128
|
+
iconeNome?: string;
|
|
1106
1129
|
task: () => Promise<{
|
|
1107
1130
|
s: boolean;
|
|
1108
1131
|
m: string;
|
|
@@ -1600,5 +1623,5 @@ declare class GridCell {
|
|
|
1600
1623
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<GridCell, "lib-grid-cell", never, {}, {}, never, never, true, never>;
|
|
1601
1624
|
}
|
|
1602
1625
|
|
|
1603
|
-
export { BaseFieldsForm, BaseFieldsValues, CampoDe, FieldsGeneric, FiltroDe, FormAction, FormFilter, FormNoAction, FormatedValues, Formulario, GRID_CONFIG_DEFAULTS, GRID_PARAMS_TOKEN, GridCell, IField, IGridFilterType, IRegraTipo, LibUtil, MkGrid, PAGINATION_OPTIONS, Regra, ScreenMode, SingleValues, UiAccordion, UiArquivos, UiAvatar, UiBadge, UiBreadcrumb, UiButton, UiCard, UiCheckBox, UiChip, UiDivider, UiDrawer, UiDropZone, UiEmptyState, UiFileList, UiFilePreview, UiListErrors, UiLoading, UiMenu, UiMicroGallery, UiModalOutlet, UiModalService, UiPagination, UiProcurar, UiProgress, UiRating, UiSelect, UiSlide, UiStepper, UiTabs, UiTag, UiTimeline, UiToastContainer, UiToastService, UiTooltip, UiTree };
|
|
1604
|
-
export type {
|
|
1626
|
+
export { BaseFieldsForm, BaseFieldsValues, CampoDe, FieldsGeneric, FiltroDe, FormAction, FormFilter, FormNoAction, FormatedValues, Formulario, GRID_CONFIG_DEFAULTS, GRID_PARAMS_TOKEN, GridCell, IField, IGridFilterType, IRegraTipo, LibUtil, MkGrid, PAGINATION_OPTIONS, Regra, ScreenMode, SingleValues, UiAccordion, UiAccordionItem, UiArquivos, UiAvatar, UiBadge, UiBreadcrumb, UiButton, UiCard, UiCheckBox, UiChip, UiDivider, UiDrawer, UiDropZone, UiEmptyState, UiFileList, UiFilePreview, UiListErrors, UiLoading, UiMenu, UiMicroGallery, UiModalOutlet, UiModalService, UiPagination, UiProcurar, UiProgress, UiRating, UiSelect, UiSlide, UiStepper, UiTabs, UiTag, UiTimeline, UiToastContainer, UiToastService, UiTooltip, UiTree };
|
|
1627
|
+
export type { IActionClickEvent, IActionsDone, IActionsLineConfig, IBreadcrumbItem, IClassOf, IColuna, IColunaImage, IDadosDaLinha, IDisplayValue, IDropOutput, IDropType, IDropZoneEvent, IFaseCampos, IFaseCamposAgrupados, IFases, IFieldComponent, IFields, IFileMetadata, IFilterFields, IFormatter, IGridBaseActions, IGridCellComponentConfig, IGridConfig, IGridConfigActions, IGridEventAPI, IGridFilter, IGridParam, IKV, IKV_ext, IMkCellService, IModalAcao, IModalConfig, IModalTamanho, IModeShowEntidade, IOptionValue, IOrdenacao, IPageChangeEvent, IPaginacao, IRegra, ISaveTasks, IStepperStep, ITimelineItem, ITipoBotao, ITiposTema, IToastConfig, IToastTipo, ITreeNode, IUiProgressMode, IUtilFormatters, MapeamentoItem };
|