@ngx-smz/ui-kit 21.9.0-next.3 → 21.9.0-next.4

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/ui-kit",
3
- "version": "21.9.0-next.3",
3
+ "version": "21.9.0-next.4",
4
4
  "peerDependencies": {
5
5
  "@angular/cdk": ">=21.0.0 <22.0.0",
6
6
  "@angular/common": ">=21.0.0 <22.0.0",
@@ -2126,5 +2126,330 @@ declare class SmzThemeService {
2126
2126
  static ɵprov: _angular_core.ɵɵInjectableDeclaration<SmzThemeService>;
2127
2127
  }
2128
2128
 
2129
- export { SMZ_DIALOG_CONTENT, SMZ_SOFT_TONE, SMZ_SOLID_TONE, SmzAccordionComponent, SmzAccordionContentComponent, SmzAccordionHeaderComponent, SmzAccordionPanelComponent, SmzAnchoredPanel, SmzAutoCompleteComponent, SmzAutoFocusDirective, SmzBadgeComponent, SmzBadgeDirective, SmzBlockUiComponent, SmzButtonComponent, SmzCheckboxComponent, SmzColorPickerComponent, SmzConnectedOverlayScrollHandler, SmzDataViewComponent, SmzDatePickerComponent, SmzDialogComponent, SmzDialogConfig, SmzDialogFrameComponent, SmzDialogRef, SmzDialogService, SmzDividerComponent, SmzDomHandler, SmzDrawerComponent, SmzFilterMatchMode, SmzFilterOperator, SmzFilterService, SmzIconComponent, SmzIconFieldComponent, SmzInputGroupAddonComponent, SmzInputGroupComponent, SmzInputIconComponent, SmzInputMaskComponent, SmzInputNumberComponent, SmzInputTextDirective, SmzListboxComponent, SmzLocaleService, SmzMenuListComponent, SmzMessageComponent, SmzMessageService, SmzMultiSelectComponent, SmzObjectUtils, SmzPaginatorComponent, SmzPasswordComponent, SmzPickListComponent, SmzPopoverComponent, SmzProgressBarComponent, SmzRadioButtonComponent, SmzRippleDirective, SmzSelectButtonComponent, SmzSelectComponent, SmzSkeletonComponent, SmzStyleClassDirective, SmzTabComponent, SmzTabListComponent, SmzTabPanelComponent, SmzTabPanelsComponent, SmzTabsComponent, SmzTagComponent, SmzTemplateDirective, SmzTextareaDirective, SmzThemeService, SmzToastContainerComponent, SmzToggleSwitchComponent, SmzToolbarComponent, SmzTooltipComponent, SmzTooltipDirective, SmzTranslationKeys, SmzTreeSelectComponent, SmzUiTimelineComponent, SmzUiTreeComponent, SmzValueAccessor, SmzZIndex, filterOptions, optionDisabled, optionLabel, optionValue, sameValue, smzCalendarStart, smzCx, smzFindTemplate, smzFormatDate, smzMergeClasses, smzNormalizeSeverity, smzNormalizeStyleClass, smzParseButtonStyleClass, smzParseDate, smzSameDay, smzStartOfDay, smzStaticHostClass, smzTwoDigits, smzUniqueId, smzVariants };
2130
- export type { SmzAccordionValue, SmzAnchoredPanelOptions, SmzAutoCompleteCompleteEvent, SmzAutoCompleteSelectEvent, SmzBlockTarget, SmzBlockableUi, SmzButtonIconPosition, SmzButtonLegacySeverity, SmzButtonSeverity, SmzButtonSize, SmzButtonVariant, SmzClassValue, SmzDataViewLayout, SmzDatePickerValue, SmzDateSelectionMode, SmzDividerLayout, SmzDrawerPosition, SmzFilterFunction, SmzFilterMatchModeValue, SmzFilterMetadata, SmzFilterMode, SmzFilterOperatorValue, SmzInputNumberInputEvent, SmzInputSize, SmzLegacySeverity, SmzListboxChangeEvent, SmzListboxClickEvent, SmzMessageSeverity, SmzMultiSelectChangeEvent, SmzOptionConfig, SmzPageEvent, SmzPalette, SmzPickListMoveEvent, SmzPopoverTarget, SmzProgressBarMode, SmzSelectButtonChangeEvent, SmzSelectChangeEvent, SmzSelectItem, SmzSeverity, SmzSkeletonShape, SmzSortMeta, SmzStyleClass, SmzTabValue, SmzTimelineAlign, SmzToastMessage, SmzToastPosition, SmzTooltipEvent, SmzTooltipOptions, SmzTooltipPosition, SmzTranslation, SmzTreeDropEvent, SmzTreeNodeEvent, SmzTreeSelectionMode, SmzUiMenuItem, SmzUiMenuItemCommandEvent, SmzUiTreeNode, SmzVariantProps, SmzVariantsConfig };
2129
+ /**
2130
+ * Card. Substitui o `p-card` do PrimeNG.
2131
+ * O conteudo padrao vai no corpo; `header`, `title`, `subtitle` e `footer` podem ser strings ou templates.
2132
+ *
2133
+ * <ui-card header="Titulo" subheader="Sub">conteudo<ng-template smzTemplate="footer">...</ng-template></ui-card>
2134
+ */
2135
+ declare class SmzCardComponent {
2136
+ /** Titulo em texto (equivale ao slot `title`). */
2137
+ readonly header: _angular_core.InputSignal<string>;
2138
+ /** Subtitulo em texto (equivale ao slot `subtitle`). */
2139
+ readonly subheader: _angular_core.InputSignal<string>;
2140
+ private readonly templates;
2141
+ protected readonly headerTemplate: _angular_core.Signal<_angular_core.TemplateRef<unknown>>;
2142
+ protected readonly titleTemplate: _angular_core.Signal<_angular_core.TemplateRef<unknown>>;
2143
+ protected readonly subtitleTemplate: _angular_core.Signal<_angular_core.TemplateRef<unknown>>;
2144
+ protected readonly footerTemplate: _angular_core.Signal<_angular_core.TemplateRef<unknown>>;
2145
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<SmzCardComponent, never>;
2146
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<SmzCardComponent, "ui-card", never, { "header": { "alias": "header"; "required": false; "isSignal": true; }; "subheader": { "alias": "subheader"; "required": false; "isSignal": true; }; }, {}, ["templates"], ["*"], true, never>;
2147
+ }
2148
+
2149
+ /**
2150
+ * Painel com cabecalho, recolhimento opcional e rodape. Substitui o `p-panel` do PrimeNG.
2151
+ *
2152
+ * <ui-panel header="Filtros" [toggleable]="true" [(collapsed)]="fechado">conteudo</ui-panel>
2153
+ */
2154
+ declare class SmzPanelComponent {
2155
+ readonly header: _angular_core.InputSignal<string>;
2156
+ readonly toggleable: _angular_core.InputSignalWithTransform<boolean, unknown>;
2157
+ readonly collapsed: _angular_core.ModelSignal<boolean>;
2158
+ /** Antes de alternar (cancelavel nao: apenas notifica). */
2159
+ readonly beforeToggle: _angular_core.OutputEmitterRef<{
2160
+ originalEvent: Event;
2161
+ collapsed: boolean;
2162
+ }>;
2163
+ readonly afterToggle: _angular_core.OutputEmitterRef<{
2164
+ originalEvent: Event;
2165
+ collapsed: boolean;
2166
+ }>;
2167
+ private readonly templates;
2168
+ protected readonly headerTemplate: _angular_core.Signal<_angular_core.TemplateRef<unknown>>;
2169
+ protected readonly iconsTemplate: _angular_core.Signal<_angular_core.TemplateRef<unknown>>;
2170
+ protected readonly footerTemplate: _angular_core.Signal<_angular_core.TemplateRef<unknown>>;
2171
+ protected readonly hasHeader: _angular_core.Signal<boolean>;
2172
+ protected toggle(event: Event): void;
2173
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<SmzPanelComponent, never>;
2174
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<SmzPanelComponent, "ui-panel", never, { "header": { "alias": "header"; "required": false; "isSignal": true; }; "toggleable": { "alias": "toggleable"; "required": false; "isSignal": true; }; "collapsed": { "alias": "collapsed"; "required": false; "isSignal": true; }; }, { "collapsed": "collapsedChange"; "beforeToggle": "beforeToggle"; "afterToggle": "afterToggle"; }, ["templates"], ["*"], true, never>;
2175
+ }
2176
+
2177
+ /**
2178
+ * Indicador de carregamento circular. Substitui o `p-progressspinner` do PrimeNG.
2179
+ * O tamanho vem das classes do host (ex.: `class="h-12 w-12"`); a cor, de `text-ui-primary` (herdavel).
2180
+ *
2181
+ * <ui-progress-spinner class="h-12 w-12" strokeWidth="4" />
2182
+ */
2183
+ declare class SmzProgressSpinnerComponent {
2184
+ readonly strokeWidth: _angular_core.InputSignal<string | number>;
2185
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<SmzProgressSpinnerComponent, never>;
2186
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<SmzProgressSpinnerComponent, "ui-progress-spinner", never, { "strokeWidth": { "alias": "strokeWidth"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
2187
+ }
2188
+
2189
+ type SmzFloatLabelVariant = 'over' | 'in' | 'on';
2190
+ /**
2191
+ * Rotulo flutuante. Substitui o `p-floatlabel` do PrimeNG.
2192
+ * O `<label>` projetado flutua quando o controle recebe foco ou tem valor
2193
+ * (detectado em `input`/`textarea` e em selects do kit; use `[filled]` para forcar).
2194
+ *
2195
+ * <ui-float-label variant="on"><input smzInputText id="n" /><label for="n">Nome</label></ui-float-label>
2196
+ */
2197
+ declare class SmzFloatLabelComponent {
2198
+ readonly variant: _angular_core.InputSignal<SmzFloatLabelVariant>;
2199
+ /** Forca o estado "preenchido" quando a deteccao automatica nao se aplica. */
2200
+ readonly filled: _angular_core.InputSignal<boolean>;
2201
+ protected readonly focused: _angular_core.WritableSignal<boolean>;
2202
+ private readonly detected;
2203
+ private readonly host;
2204
+ protected readonly floated: _angular_core.Signal<boolean>;
2205
+ protected readonly classes: _angular_core.Signal<string>;
2206
+ constructor();
2207
+ protected check(): void;
2208
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<SmzFloatLabelComponent, never>;
2209
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<SmzFloatLabelComponent, "ui-float-label", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "filled": { "alias": "filled"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
2210
+ }
2211
+
2212
+ /** Painel de um `ui-splitter`. O conteudo e projetado dentro da area do painel. */
2213
+ declare class SmzSplitterPanelComponent {
2214
+ readonly content: _angular_core.Signal<TemplateRef<unknown>>;
2215
+ /** Tamanho inicial em % (sobrescreve `panelSizes` do splitter). */
2216
+ readonly size: _angular_core.InputSignal<number>;
2217
+ readonly minSize: _angular_core.InputSignal<number>;
2218
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<SmzSplitterPanelComponent, never>;
2219
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<SmzSplitterPanelComponent, "ui-splitter-panel", never, { "size": { "alias": "size"; "required": false; "isSignal": true; }; "minSize": { "alias": "minSize"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
2220
+ }
2221
+ /**
2222
+ * Divisor redimensionavel. Substitui o `p-splitter` / `p-splitterPanel` do PrimeNG.
2223
+ *
2224
+ * <ui-splitter layout="horizontal" [panelSizes]="[30, 70]" [minSizes]="[10, 20]">
2225
+ * <ui-splitter-panel>A</ui-splitter-panel><ui-splitter-panel>B</ui-splitter-panel>
2226
+ * </ui-splitter>
2227
+ */
2228
+ declare class SmzSplitterComponent {
2229
+ readonly layout: _angular_core.InputSignal<"horizontal" | "vertical">;
2230
+ readonly panelSizes: _angular_core.InputSignal<number[]>;
2231
+ readonly minSizes: _angular_core.InputSignal<number[]>;
2232
+ readonly resizeEnd: _angular_core.OutputEmitterRef<{
2233
+ sizes: number[];
2234
+ }>;
2235
+ protected readonly panels: _angular_core.Signal<readonly SmzSplitterPanelComponent[]>;
2236
+ private readonly root;
2237
+ private readonly overrides;
2238
+ protected readonly sizes: _angular_core.Signal<number[]>;
2239
+ private min;
2240
+ protected startDrag(event: PointerEvent, index: number): void;
2241
+ protected onKey(event: KeyboardEvent, index: number): void;
2242
+ private resize;
2243
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<SmzSplitterComponent, never>;
2244
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<SmzSplitterComponent, "ui-splitter", never, { "layout": { "alias": "layout"; "required": false; "isSignal": true; }; "panelSizes": { "alias": "panelSizes"; "required": false; "isSignal": true; }; "minSizes": { "alias": "minSizes"; "required": false; "isSignal": true; }; }, { "resizeEnd": "resizeEnd"; }, ["panels"], never, true, never>;
2245
+ }
2246
+
2247
+ /** Linha achatada exposta aos templates (`let-rowNode`). */
2248
+ interface SmzTreeTableRowNode<T = any> {
2249
+ node: SmzUiTreeNode<T>;
2250
+ parent: SmzUiTreeNode<T> | null;
2251
+ level: number;
2252
+ }
2253
+ interface SmzTreeTableNodeEvent {
2254
+ node: SmzUiTreeNode;
2255
+ originalEvent?: Event;
2256
+ }
2257
+ type SmzTreeTableSelectionMode = 'single' | 'multiple' | 'checkbox';
2258
+ /**
2259
+ * Tabela em arvore. Substitui o `p-treeTable` do PrimeNG.
2260
+ * Os templates `header`, `body`, `caption`, `footer`, `emptymessage` e `summary` usam `smzTemplate`;
2261
+ * o `body` recebe `let-rowNode let-rowData="rowData" let-columns="columns"`.
2262
+ *
2263
+ * <ui-tree-table [value]="nodes" [columns]="cols" selectionMode="checkbox" [(selection)]="sel">
2264
+ * <ng-template smzTemplate="header" let-columns><tr><th *ngFor="let c of columns">{{ c.header }}</th></tr></ng-template>
2265
+ * <ng-template smzTemplate="body" let-rowNode let-rowData="rowData" let-columns="columns">
2266
+ * <tr [smzTtRow]="rowNode"><td><ui-tree-table-toggler [rowNode]="rowNode" />{{ rowData.name }}</td></tr>
2267
+ * </ng-template>
2268
+ * </ui-tree-table>
2269
+ */
2270
+ declare class SmzTreeTableComponent {
2271
+ readonly value: _angular_core.InputSignal<SmzUiTreeNode<any>[]>;
2272
+ readonly columns: _angular_core.InputSignal<any[]>;
2273
+ readonly selectionMode: _angular_core.InputSignal<string>;
2274
+ readonly selection: _angular_core.ModelSignal<any>;
2275
+ readonly propagateSelectionUp: _angular_core.InputSignalWithTransform<boolean, unknown>;
2276
+ readonly propagateSelectionDown: _angular_core.InputSignalWithTransform<boolean, unknown>;
2277
+ readonly loading: _angular_core.InputSignalWithTransform<boolean, unknown>;
2278
+ readonly scrollable: _angular_core.InputSignalWithTransform<boolean, unknown>;
2279
+ readonly scrollHeight: _angular_core.InputSignal<string>;
2280
+ readonly emptyMessage: _angular_core.InputSignal<string>;
2281
+ readonly tableStyleClass: _angular_core.InputSignal<string>;
2282
+ readonly paginator: _angular_core.InputSignalWithTransform<boolean, unknown>;
2283
+ readonly rows: _angular_core.ModelSignal<number>;
2284
+ readonly first: _angular_core.ModelSignal<number>;
2285
+ readonly rowsPerPageOptions: _angular_core.InputSignal<number[]>;
2286
+ readonly sortField: _angular_core.ModelSignal<string>;
2287
+ readonly sortOrder: _angular_core.ModelSignal<1 | -1>;
2288
+ readonly nodeSelect: _angular_core.OutputEmitterRef<SmzTreeTableNodeEvent>;
2289
+ readonly nodeUnselect: _angular_core.OutputEmitterRef<SmzTreeTableNodeEvent>;
2290
+ readonly nodeExpand: _angular_core.OutputEmitterRef<SmzTreeTableNodeEvent>;
2291
+ readonly nodeCollapse: _angular_core.OutputEmitterRef<SmzTreeTableNodeEvent>;
2292
+ readonly sorted: _angular_core.OutputEmitterRef<{
2293
+ field: string;
2294
+ order: 1 | -1;
2295
+ }>;
2296
+ readonly page: _angular_core.OutputEmitterRef<unknown>;
2297
+ private readonly templates;
2298
+ protected readonly headerTemplate: _angular_core.Signal<_angular_core.TemplateRef<unknown>>;
2299
+ protected readonly bodyTemplate: _angular_core.Signal<_angular_core.TemplateRef<unknown>>;
2300
+ protected readonly captionTemplate: _angular_core.Signal<_angular_core.TemplateRef<unknown>>;
2301
+ protected readonly footerTemplate: _angular_core.Signal<_angular_core.TemplateRef<unknown>>;
2302
+ protected readonly emptyTemplate: _angular_core.Signal<_angular_core.TemplateRef<unknown>>;
2303
+ protected readonly summaryTemplate: _angular_core.Signal<_angular_core.TemplateRef<unknown>>;
2304
+ /** Os nos sao mutaveis (`expanded`, `partialSelected`); este contador forca o recalculo das linhas. */
2305
+ private readonly version;
2306
+ protected readonly rootCount: _angular_core.Signal<number>;
2307
+ protected readonly flatRows: _angular_core.Signal<SmzTreeTableRowNode<any>[]>;
2308
+ /** Linhas visiveis; com paginador, a pagina atual e calculada sobre os nos raiz. */
2309
+ protected readonly pageRows: _angular_core.Signal<SmzTreeTableRowNode<any>[]>;
2310
+ refresh(): void;
2311
+ toggleNode(rowNode: SmzTreeTableRowNode, event?: Event): void;
2312
+ sortBy(field: string): void;
2313
+ isSelected(node: SmzUiTreeNode): boolean;
2314
+ selectionState(node: SmzUiTreeNode): 'checked' | 'partial' | 'unchecked';
2315
+ onRowClick(rowNode: SmzTreeTableRowNode, event: Event): void;
2316
+ toggleCheckbox(rowNode: SmzTreeTableRowNode, event?: Event): void;
2317
+ /** Marca/desmarca todos os nos (checkbox do cabecalho). */
2318
+ toggleAll(checked: boolean): void;
2319
+ allSelected(): boolean;
2320
+ private countNodes;
2321
+ private findParent;
2322
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<SmzTreeTableComponent, never>;
2323
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<SmzTreeTableComponent, "ui-tree-table", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "columns": { "alias": "columns"; "required": false; "isSignal": true; }; "selectionMode": { "alias": "selectionMode"; "required": false; "isSignal": true; }; "selection": { "alias": "selection"; "required": false; "isSignal": true; }; "propagateSelectionUp": { "alias": "propagateSelectionUp"; "required": false; "isSignal": true; }; "propagateSelectionDown": { "alias": "propagateSelectionDown"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "scrollable": { "alias": "scrollable"; "required": false; "isSignal": true; }; "scrollHeight": { "alias": "scrollHeight"; "required": false; "isSignal": true; }; "emptyMessage": { "alias": "emptyMessage"; "required": false; "isSignal": true; }; "tableStyleClass": { "alias": "tableStyleClass"; "required": false; "isSignal": true; }; "paginator": { "alias": "paginator"; "required": false; "isSignal": true; }; "rows": { "alias": "rows"; "required": false; "isSignal": true; }; "first": { "alias": "first"; "required": false; "isSignal": true; }; "rowsPerPageOptions": { "alias": "rowsPerPageOptions"; "required": false; "isSignal": true; }; "sortField": { "alias": "sortField"; "required": false; "isSignal": true; }; "sortOrder": { "alias": "sortOrder"; "required": false; "isSignal": true; }; }, { "selection": "selectionChange"; "rows": "rowsChange"; "first": "firstChange"; "sortField": "sortFieldChange"; "sortOrder": "sortOrderChange"; "nodeSelect": "nodeSelect"; "nodeUnselect": "nodeUnselect"; "nodeExpand": "nodeExpand"; "nodeCollapse": "nodeCollapse"; "sorted": "sorted"; "page": "page"; }, ["templates"], never, true, never>;
2324
+ }
2325
+ /** Linha do corpo: `<tr [smzTtRow]="rowNode">`. Cuida de estilo, aria e selecao por clique. */
2326
+ declare class SmzTreeTableRowDirective {
2327
+ protected readonly table: SmzTreeTableComponent;
2328
+ readonly rowNode: _angular_core.InputSignal<SmzTreeTableRowNode<any>>;
2329
+ protected readonly classes: _angular_core.Signal<string>;
2330
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<SmzTreeTableRowDirective, never>;
2331
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<SmzTreeTableRowDirective, "tr[smzTtRow]", never, { "rowNode": { "alias": "smzTtRow"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
2332
+ }
2333
+ /** Seta de expandir/recolher com recuo por nivel: `<ui-tree-table-toggler [rowNode]="rowNode" />`. */
2334
+ declare class SmzTreeTableTogglerComponent {
2335
+ protected readonly table: SmzTreeTableComponent;
2336
+ readonly rowNode: _angular_core.InputSignal<SmzTreeTableRowNode<any>>;
2337
+ protected hasChildren(): boolean;
2338
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<SmzTreeTableTogglerComponent, never>;
2339
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<SmzTreeTableTogglerComponent, "ui-tree-table-toggler", never, { "rowNode": { "alias": "rowNode"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
2340
+ }
2341
+ /** Checkbox de selecao da linha (modo `checkbox`): `<ui-tree-table-checkbox [value]="rowNode" />`. */
2342
+ declare class SmzTreeTableCheckboxComponent {
2343
+ protected readonly table: SmzTreeTableComponent;
2344
+ readonly value: _angular_core.InputSignal<SmzTreeTableRowNode<any>>;
2345
+ protected state(): 'checked' | 'partial' | 'unchecked';
2346
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<SmzTreeTableCheckboxComponent, never>;
2347
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<SmzTreeTableCheckboxComponent, "ui-tree-table-checkbox", never, { "value": { "alias": "value"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
2348
+ }
2349
+ /** Checkbox do cabecalho: seleciona/limpa todos os nos. */
2350
+ declare class SmzTreeTableHeaderCheckboxComponent {
2351
+ protected readonly table: SmzTreeTableComponent;
2352
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<SmzTreeTableHeaderCheckboxComponent, never>;
2353
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<SmzTreeTableHeaderCheckboxComponent, "ui-tree-table-header-checkbox", never, {}, {}, never, never, true, never>;
2354
+ }
2355
+ /** Cabecalho ordenavel: `<th [smzTtSortableColumn]="'nome'">Nome <ui-tree-table-sort-icon field="nome" /></th>`. */
2356
+ declare class SmzTreeTableSortableColumnDirective {
2357
+ protected readonly table: SmzTreeTableComponent;
2358
+ readonly field: _angular_core.InputSignal<string>;
2359
+ protected ariaSort(): string;
2360
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<SmzTreeTableSortableColumnDirective, never>;
2361
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<SmzTreeTableSortableColumnDirective, "th[smzTtSortableColumn]", never, { "field": { "alias": "smzTtSortableColumn"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
2362
+ }
2363
+ declare class SmzTreeTableSortIconComponent {
2364
+ protected readonly table: SmzTreeTableComponent;
2365
+ readonly field: _angular_core.InputSignal<string>;
2366
+ protected dir(): 0 | 1 | -1;
2367
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<SmzTreeTableSortIconComponent, never>;
2368
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<SmzTreeTableSortIconComponent, "ui-tree-table-sort-icon", never, { "field": { "alias": "field"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
2369
+ }
2370
+ declare const SMZ_TREE_TABLE: readonly [typeof SmzTreeTableComponent, typeof SmzTreeTableRowDirective, typeof SmzTreeTableTogglerComponent, typeof SmzTreeTableCheckboxComponent, typeof SmzTreeTableHeaderCheckboxComponent, typeof SmzTreeTableSortableColumnDirective, typeof SmzTreeTableSortIconComponent, typeof SmzTemplateDirective];
2371
+
2372
+ /** Opcoes de `SmzConfirmationService.confirm` (mesmos nomes do `Confirmation` do PrimeNG). */
2373
+ interface SmzConfirmation {
2374
+ message?: string;
2375
+ header?: string;
2376
+ /** Classe do icone exibido ao lado da mensagem (ex.: `fa-solid fa-triangle-exclamation`). */
2377
+ icon?: string;
2378
+ acceptLabel?: string;
2379
+ rejectLabel?: string;
2380
+ /** Esconde o botao de aceitar/rejeitar. */
2381
+ acceptVisible?: boolean;
2382
+ rejectVisible?: boolean;
2383
+ /** `danger` pinta o botao de aceitar como destrutivo. */
2384
+ acceptSeverity?: 'primary' | 'danger';
2385
+ accept?: () => void;
2386
+ reject?: () => void;
2387
+ width?: string;
2388
+ closeOnEscape?: boolean;
2389
+ }
2390
+ declare class SmzConfirmContentComponent {
2391
+ protected readonly options: SmzConfirmation;
2392
+ private readonly ref;
2393
+ protected close(accepted: boolean): void;
2394
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<SmzConfirmContentComponent, never>;
2395
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<SmzConfirmContentComponent, "ui-confirm-content", never, {}, {}, never, never, true, never>;
2396
+ }
2397
+ /**
2398
+ * Confirmacao modal. Substitui o `ConfirmationService` + `<p-confirmdialog>` do PrimeNG
2399
+ * (nao ha componente a declarar no template).
2400
+ *
2401
+ * confirm.confirm({ message: 'Excluir?', header: 'Confirmacao', icon: 'fa-solid fa-triangle-exclamation', accept: () => ..., reject: () => ... });
2402
+ */
2403
+ declare class SmzConfirmationService {
2404
+ private readonly dialogs;
2405
+ confirm(confirmation: SmzConfirmation): SmzDialogRef<boolean>;
2406
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<SmzConfirmationService, never>;
2407
+ static ɵprov: _angular_core.ɵɵInjectableDeclaration<SmzConfirmationService>;
2408
+ }
2409
+
2410
+ interface SmzFileSelectEvent {
2411
+ files: File[];
2412
+ originalEvent?: Event;
2413
+ }
2414
+ interface SmzFileErrorEvent {
2415
+ file: File;
2416
+ reason: 'size' | 'type';
2417
+ }
2418
+ /**
2419
+ * Selecao de arquivos com area de arrastar e soltar e lista de escolhidos.
2420
+ * Substitui o `p-fileupload` (modo `basic`/`advanced` sem envio automatico): o envio ao servidor
2421
+ * fica a cargo do app (ex.: `HttpClient` no handler de `(selected)`).
2422
+ *
2423
+ * <ui-file-upload accept="image/*" [multiple]="true" [maxFileSize]="1000000" (selected)="enviar($event.files)" />
2424
+ */
2425
+ declare class SmzFileUploadComponent {
2426
+ readonly accept: _angular_core.InputSignal<string>;
2427
+ readonly multiple: _angular_core.InputSignalWithTransform<boolean, unknown>;
2428
+ readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
2429
+ /** Tamanho maximo por arquivo, em bytes. */
2430
+ readonly maxFileSize: _angular_core.InputSignal<number>;
2431
+ readonly chooseLabel: _angular_core.InputSignal<string>;
2432
+ readonly dropLabel: _angular_core.InputSignal<string>;
2433
+ readonly selected: _angular_core.OutputEmitterRef<SmzFileSelectEvent>;
2434
+ readonly removed: _angular_core.OutputEmitterRef<{
2435
+ file: File;
2436
+ }>;
2437
+ readonly rejected: _angular_core.OutputEmitterRef<SmzFileErrorEvent>;
2438
+ protected readonly files: _angular_core.WritableSignal<File[]>;
2439
+ protected readonly dragging: _angular_core.WritableSignal<boolean>;
2440
+ private readonly fileInput;
2441
+ /** Limpa a lista (equivale a `clear()` do `p-fileupload`). */
2442
+ clear(): void;
2443
+ protected onPick(event: Event): void;
2444
+ protected onDragOver(event: DragEvent): void;
2445
+ protected onDrop(event: DragEvent): void;
2446
+ protected remove(file: File): void;
2447
+ protected size(file: File): string;
2448
+ private add;
2449
+ private matchesAccept;
2450
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<SmzFileUploadComponent, never>;
2451
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<SmzFileUploadComponent, "ui-file-upload", never, { "accept": { "alias": "accept"; "required": false; "isSignal": true; }; "multiple": { "alias": "multiple"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "maxFileSize": { "alias": "maxFileSize"; "required": false; "isSignal": true; }; "chooseLabel": { "alias": "chooseLabel"; "required": false; "isSignal": true; }; "dropLabel": { "alias": "dropLabel"; "required": false; "isSignal": true; }; }, { "selected": "selected"; "removed": "removed"; "rejected": "rejected"; }, never, never, true, never>;
2452
+ }
2453
+
2454
+ export { SMZ_DIALOG_CONTENT, SMZ_SOFT_TONE, SMZ_SOLID_TONE, SMZ_TREE_TABLE, SmzAccordionComponent, SmzAccordionContentComponent, SmzAccordionHeaderComponent, SmzAccordionPanelComponent, SmzAnchoredPanel, SmzAutoCompleteComponent, SmzAutoFocusDirective, SmzBadgeComponent, SmzBadgeDirective, SmzBlockUiComponent, SmzButtonComponent, SmzCardComponent, SmzCheckboxComponent, SmzColorPickerComponent, SmzConfirmContentComponent, SmzConfirmationService, SmzConnectedOverlayScrollHandler, SmzDataViewComponent, SmzDatePickerComponent, SmzDialogComponent, SmzDialogConfig, SmzDialogFrameComponent, SmzDialogRef, SmzDialogService, SmzDividerComponent, SmzDomHandler, SmzDrawerComponent, SmzFileUploadComponent, SmzFilterMatchMode, SmzFilterOperator, SmzFilterService, SmzFloatLabelComponent, SmzIconComponent, SmzIconFieldComponent, SmzInputGroupAddonComponent, SmzInputGroupComponent, SmzInputIconComponent, SmzInputMaskComponent, SmzInputNumberComponent, SmzInputTextDirective, SmzListboxComponent, SmzLocaleService, SmzMenuListComponent, SmzMessageComponent, SmzMessageService, SmzMultiSelectComponent, SmzObjectUtils, SmzPaginatorComponent, SmzPanelComponent, SmzPasswordComponent, SmzPickListComponent, SmzPopoverComponent, SmzProgressBarComponent, SmzProgressSpinnerComponent, SmzRadioButtonComponent, SmzRippleDirective, SmzSelectButtonComponent, SmzSelectComponent, SmzSkeletonComponent, SmzSplitterComponent, SmzSplitterPanelComponent, SmzStyleClassDirective, SmzTabComponent, SmzTabListComponent, SmzTabPanelComponent, SmzTabPanelsComponent, SmzTabsComponent, SmzTagComponent, SmzTemplateDirective, SmzTextareaDirective, SmzThemeService, SmzToastContainerComponent, SmzToggleSwitchComponent, SmzToolbarComponent, SmzTooltipComponent, SmzTooltipDirective, SmzTranslationKeys, SmzTreeSelectComponent, SmzTreeTableCheckboxComponent, SmzTreeTableComponent, SmzTreeTableHeaderCheckboxComponent, SmzTreeTableRowDirective, SmzTreeTableSortIconComponent, SmzTreeTableSortableColumnDirective, SmzTreeTableTogglerComponent, SmzUiTimelineComponent, SmzUiTreeComponent, SmzValueAccessor, SmzZIndex, filterOptions, optionDisabled, optionLabel, optionValue, sameValue, smzCalendarStart, smzCx, smzFindTemplate, smzFormatDate, smzMergeClasses, smzNormalizeSeverity, smzNormalizeStyleClass, smzParseButtonStyleClass, smzParseDate, smzSameDay, smzStartOfDay, smzStaticHostClass, smzTwoDigits, smzUniqueId, smzVariants };
2455
+ export type { SmzAccordionValue, SmzAnchoredPanelOptions, SmzAutoCompleteCompleteEvent, SmzAutoCompleteSelectEvent, SmzBlockTarget, SmzBlockableUi, SmzButtonIconPosition, SmzButtonLegacySeverity, SmzButtonSeverity, SmzButtonSize, SmzButtonVariant, SmzClassValue, SmzConfirmation, SmzDataViewLayout, SmzDatePickerValue, SmzDateSelectionMode, SmzDividerLayout, SmzDrawerPosition, SmzFileErrorEvent, SmzFileSelectEvent, SmzFilterFunction, SmzFilterMatchModeValue, SmzFilterMetadata, SmzFilterMode, SmzFilterOperatorValue, SmzFloatLabelVariant, SmzInputNumberInputEvent, SmzInputSize, SmzLegacySeverity, SmzListboxChangeEvent, SmzListboxClickEvent, SmzMessageSeverity, SmzMultiSelectChangeEvent, SmzOptionConfig, SmzPageEvent, SmzPalette, SmzPickListMoveEvent, SmzPopoverTarget, SmzProgressBarMode, SmzSelectButtonChangeEvent, SmzSelectChangeEvent, SmzSelectItem, SmzSeverity, SmzSkeletonShape, SmzSortMeta, SmzStyleClass, SmzTabValue, SmzTimelineAlign, SmzToastMessage, SmzToastPosition, SmzTooltipEvent, SmzTooltipOptions, SmzTooltipPosition, SmzTranslation, SmzTreeDropEvent, SmzTreeNodeEvent, SmzTreeSelectionMode, SmzTreeTableNodeEvent, SmzTreeTableRowNode, SmzTreeTableSelectionMode, SmzUiMenuItem, SmzUiMenuItemCommandEvent, SmzUiTreeNode, SmzVariantProps, SmzVariantsConfig };