thalamus2-ui 0.0.0-stage → 0.1.0

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/README.md CHANGED
@@ -1,3 +1,75 @@
1
- # Temporary Holding Version
1
+ # thalamus2-ui
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ Pacote compartilhado pela casca (`thalamus2-core/web`) e pelos frontends dos módulos (`thalamus2-<modulo>/web`) do Thalamus 2.0 oficial.
4
+
5
+ | Parte | O que entrega |
6
+ | --- | --- |
7
+ | `style.css` | Design system do mockup (tokens embutidos) e a seção "Sistema oficial" (login, estado vazio, erro de carga) |
8
+ | `session` | Sessão única do navegador (`t2.session`): token, refresh, empresa ativa, funcionalidades. A casca grava; os módulos leem |
9
+ | `api(servico)` | Cliente HTTP com Bearer, renovação única no 401 e erro como `ApiError { status, code, errors }` |
10
+ | `runtimeConfig()` | Endereços das APIs e dos remotos. `window.__T2_CONFIG__` (de `/config.js`) sobrescreve o padrão local |
11
+ | `defineModule` | Manifesto que cada módulo expõe em `./module`: rotas, menu e manual |
12
+ | Componentes | `BaseModal`, `StatusBadge`, `MetricCard`, `MoneyInput`, `ToastHost`, `LoadState`, `CrumbBack`, `ModuleTabs` |
13
+ | Utilidades | `useLoad`, `attempt`, `notify`, formatadores e ícones do design system |
14
+
15
+ É compartilhado como singleton pelo Module Federation: casca e módulos usam a mesma instância e, portanto, a mesma sessão.
16
+
17
+ ## Instalação pelo npm
18
+
19
+ Após a publicação:
20
+
21
+ ```bash
22
+ npm install thalamus2-ui
23
+ ```
24
+
25
+ No ponto de entrada da aplicação Vue 3:
26
+
27
+ ```ts
28
+ import 'thalamus2-ui/style.css'
29
+ import { BaseModal, api, fmtCurrency } from 'thalamus2-ui'
30
+ ```
31
+
32
+ O pacote distribui JavaScript ESM compilado, CSS e declarações TypeScript.
33
+ Vue, Vue Router, Pinia e Lucide são dependências compartilhadas, declaradas em
34
+ `peerDependencies`. Consulte `package.json` para as versões compatíveis.
35
+ No Module Federation, configure `thalamus2-ui` e Vue como singletons na casca
36
+ e nos módulos para compartilhar a sessão.
37
+
38
+ ## Publicação no npmjs
39
+
40
+ ```bash
41
+ npm ci
42
+ npm pack
43
+ npm login --registry=https://registry.npmjs.org/
44
+ npm publish
45
+ ```
46
+
47
+ `npm pack` e `npm publish` executam automaticamente a checagem de tipos,
48
+ os testes e o build pelo script `prepack`. Apenas `dist/`, `README.md` e os
49
+ metadados do pacote são incluídos. O registro de publicação está fixado em
50
+ `https://registry.npmjs.org/` e o acesso é público.
51
+
52
+ Para testar o pacote antes de publicar, instale o arquivo gerado em uma aplicação:
53
+
54
+ ```bash
55
+ npm install /caminho/thalamus2-ui-0.1.0.tgz
56
+ ```
57
+
58
+ Para versões seguintes, atualize a versão antes de publicar, por exemplo com
59
+ `npm version patch`. Cada combinação de nome e versão só pode ser publicada uma vez.
60
+ A conta autenticada precisa ter permissão sobre o nome escolhido. Antes da primeira
61
+ publicação pública, defina a licença de distribuição e registre-a em `LICENSE` e
62
+ no campo `license` do `package.json` conforme a política do projeto.
63
+
64
+ ## Uso local
65
+
66
+ Os `web/` dependem dele por caminho (`"thalamus2-ui": "file:../../thalamus2-shared/ui"`). O npm cria um link para esta pasta.
67
+
68
+ Atenção no Windows: não mova uma pasta `web/` e rode `npm install` com o link antigo ainda lá. O npm pode apagar o conteúdo do destino do link. Antes de mover, apague `node_modules` da pasta que vai mudar.
69
+
70
+ ## Verificação
71
+
72
+ ```bash
73
+ npx vue-tsc --noEmit
74
+ npx vitest run
75
+ ```
@@ -0,0 +1,30 @@
1
+ type __VLS_Props = {
2
+ open: boolean;
3
+ title: string;
4
+ subtitle?: string;
5
+ width?: string;
6
+ };
7
+ declare const __VLS_template: () => {
8
+ __VLS_Slots: {
9
+ default?: (props: {}) => any;
10
+ } & {
11
+ footer?: (props: {}) => any;
12
+ };
13
+ };
14
+ type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
15
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
16
+ close: () => any;
17
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
18
+ onClose?: (() => any) | undefined;
19
+ }>, {
20
+ subtitle: string;
21
+ width: string;
22
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
23
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
24
+ declare const _default: typeof __VLS_export;
25
+ export default _default;
26
+ type __VLS_WithSlots<T, S> = T & {
27
+ new (): {
28
+ $slots: S;
29
+ };
30
+ };
@@ -0,0 +1,8 @@
1
+ type __VLS_Props = {
2
+ fallback: string;
3
+ title: string;
4
+ onlyHistory?: boolean;
5
+ };
6
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
7
+ declare const _default: typeof __VLS_export;
8
+ export default _default;
@@ -0,0 +1,28 @@
1
+ type __VLS_Props = {
2
+ loading: boolean;
3
+ error: string;
4
+ empty?: boolean;
5
+ emptyText?: string;
6
+ emptyAction?: string;
7
+ };
8
+ declare const __VLS_template: () => {
9
+ __VLS_Slots: {
10
+ default?: (props: {}) => any;
11
+ };
12
+ };
13
+ type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
14
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
15
+ retry: () => any;
16
+ create: () => any;
17
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
18
+ onRetry?: (() => any) | undefined;
19
+ onCreate?: (() => any) | undefined;
20
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
21
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
22
+ declare const _default: typeof __VLS_export;
23
+ export default _default;
24
+ type __VLS_WithSlots<T, S> = T & {
25
+ new (): {
26
+ $slots: S;
27
+ };
28
+ };
@@ -0,0 +1,11 @@
1
+ import type { Component } from 'vue';
2
+ type __VLS_Props = {
3
+ label: string;
4
+ value: string | number;
5
+ detail?: string;
6
+ icon?: Component;
7
+ trend?: 'positive' | 'negative';
8
+ };
9
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
10
+ declare const _default: typeof __VLS_export;
11
+ export default _default;
@@ -0,0 +1,13 @@
1
+ export interface TabItem {
2
+ label: string;
3
+ to: string;
4
+ count?: number;
5
+ feature?: string;
6
+ }
7
+ type __VLS_Props = {
8
+ items: TabItem[];
9
+ exact?: boolean;
10
+ };
11
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
12
+ declare const _default: typeof __VLS_export;
13
+ export default _default;
@@ -0,0 +1,14 @@
1
+ type __VLS_Props = {
2
+ compact?: boolean;
3
+ };
4
+ type __VLS_ModelProps = {
5
+ modelValue: number;
6
+ };
7
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
8
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
9
+ "update:modelValue": (value: number) => any;
10
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
11
+ "onUpdate:modelValue"?: ((value: number) => any) | undefined;
12
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
13
+ declare const _default: typeof __VLS_export;
14
+ export default _default;
@@ -0,0 +1,7 @@
1
+ type __VLS_Props = {
2
+ value: string;
3
+ tone?: string;
4
+ };
5
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
6
+ declare const _default: typeof __VLS_export;
7
+ export default _default;
@@ -0,0 +1,3 @@
1
+ declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ declare const _default: typeof __VLS_export;
3
+ export default _default;
@@ -0,0 +1,17 @@
1
+ export type ServiceName = 'core' | 'pessoas' | 'comercial' | 'engenharia' | 'financas';
2
+ export interface RuntimeConfig {
3
+ apis: Record<ServiceName, string>;
4
+ remotes: Record<string, string>;
5
+ }
6
+ /** Endereços da máquina local. As APIs usam 127.0.0.1: no Windows, o IPv6 de "localhost" pode estar tomado por outro programa (o WSL faz isso). Em homologação e produção, `/config.js` sobrescreve na subida do contêiner. */
7
+ export declare const LOCAL_CONFIG: RuntimeConfig;
8
+ declare global {
9
+ interface Window {
10
+ __T2_CONFIG__?: Partial<{
11
+ apis: Partial<Record<ServiceName, string>>;
12
+ remotes: Record<string, string>;
13
+ }>;
14
+ }
15
+ }
16
+ export declare function runtimeConfig(): RuntimeConfig;
17
+ export declare const apiUrl: (service: ServiceName) => string;
@@ -0,0 +1,9 @@
1
+ export declare const fmtDate: (value?: string | Date | null) => string;
2
+ export declare const fmtShortDate: (value?: string | Date | null) => string;
3
+ export declare const fmtTime: (value?: string | Date | null) => string;
4
+ export declare const fmtDateTime: (value?: string | Date | null) => string;
5
+ export declare const fmtCurrency: (value?: number | string | null) => string;
6
+ export declare const fmtNumber: (value?: number | string | null, digits?: number) => string;
7
+ export declare const onlyDigits: (value?: string | null) => string;
8
+ export declare function todayIso(): string;
9
+ export declare const statusTone: (value: string) => string;
package/dist/http.d.ts ADDED
@@ -0,0 +1,17 @@
1
+ import { type ServiceName } from './config';
2
+ export declare class ApiError extends Error {
3
+ status: number;
4
+ code: string;
5
+ errors: Record<string, string[]>;
6
+ constructor(status: number, message: string, code?: string, errors?: Record<string, string[]>);
7
+ }
8
+ type Query = Record<string, string | number | boolean | undefined | null>;
9
+ export declare function request<T>(service: ServiceName, method: string, path: string, body?: unknown, query?: Query, retried?: boolean): Promise<T>;
10
+ export declare function api(service: ServiceName): {
11
+ get: <T>(path: string, query?: Query) => Promise<T>;
12
+ post: <T>(path: string, body?: unknown) => Promise<T>;
13
+ put: <T>(path: string, body?: unknown) => Promise<T>;
14
+ patch: <T>(path: string, body?: unknown) => Promise<T>;
15
+ del: <T>(path: string) => Promise<T>;
16
+ };
17
+ export {};
@@ -0,0 +1,300 @@
1
+ export declare function dsIcon(name: string): import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2
+ size: {
3
+ type: (StringConstructor | NumberConstructor)[];
4
+ default: number;
5
+ };
6
+ }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
7
+ [key: string]: any;
8
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
9
+ size: {
10
+ type: (StringConstructor | NumberConstructor)[];
11
+ default: number;
12
+ };
13
+ }>> & Readonly<{}>, {
14
+ size: string | number;
15
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
16
+ export declare const IconAdministracao: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
17
+ size: {
18
+ type: (StringConstructor | NumberConstructor)[];
19
+ default: number;
20
+ };
21
+ }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
22
+ [key: string]: any;
23
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
24
+ size: {
25
+ type: (StringConstructor | NumberConstructor)[];
26
+ default: number;
27
+ };
28
+ }>> & Readonly<{}>, {
29
+ size: string | number;
30
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
31
+ export declare const IconComercial: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
32
+ size: {
33
+ type: (StringConstructor | NumberConstructor)[];
34
+ default: number;
35
+ };
36
+ }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
37
+ [key: string]: any;
38
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
39
+ size: {
40
+ type: (StringConstructor | NumberConstructor)[];
41
+ default: number;
42
+ };
43
+ }>> & Readonly<{}>, {
44
+ size: string | number;
45
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
46
+ export declare const IconEngenharia: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
47
+ size: {
48
+ type: (StringConstructor | NumberConstructor)[];
49
+ default: number;
50
+ };
51
+ }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
52
+ [key: string]: any;
53
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
54
+ size: {
55
+ type: (StringConstructor | NumberConstructor)[];
56
+ default: number;
57
+ };
58
+ }>> & Readonly<{}>, {
59
+ size: string | number;
60
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
61
+ export declare const IconFinancas: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
62
+ size: {
63
+ type: (StringConstructor | NumberConstructor)[];
64
+ default: number;
65
+ };
66
+ }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
67
+ [key: string]: any;
68
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
69
+ size: {
70
+ type: (StringConstructor | NumberConstructor)[];
71
+ default: number;
72
+ };
73
+ }>> & Readonly<{}>, {
74
+ size: string | number;
75
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
76
+ export declare const IconGestao: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
77
+ size: {
78
+ type: (StringConstructor | NumberConstructor)[];
79
+ default: number;
80
+ };
81
+ }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
82
+ [key: string]: any;
83
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
84
+ size: {
85
+ type: (StringConstructor | NumberConstructor)[];
86
+ default: number;
87
+ };
88
+ }>> & Readonly<{}>, {
89
+ size: string | number;
90
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
91
+ export declare const IconOperacoes: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
92
+ size: {
93
+ type: (StringConstructor | NumberConstructor)[];
94
+ default: number;
95
+ };
96
+ }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
97
+ [key: string]: any;
98
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
99
+ size: {
100
+ type: (StringConstructor | NumberConstructor)[];
101
+ default: number;
102
+ };
103
+ }>> & Readonly<{}>, {
104
+ size: string | number;
105
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
106
+ export declare const IconPatrimonio: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
107
+ size: {
108
+ type: (StringConstructor | NumberConstructor)[];
109
+ default: number;
110
+ };
111
+ }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
112
+ [key: string]: any;
113
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
114
+ size: {
115
+ type: (StringConstructor | NumberConstructor)[];
116
+ default: number;
117
+ };
118
+ }>> & Readonly<{}>, {
119
+ size: string | number;
120
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
121
+ export declare const IconPessoas: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
122
+ size: {
123
+ type: (StringConstructor | NumberConstructor)[];
124
+ default: number;
125
+ };
126
+ }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
127
+ [key: string]: any;
128
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
129
+ size: {
130
+ type: (StringConstructor | NumberConstructor)[];
131
+ default: number;
132
+ };
133
+ }>> & Readonly<{}>, {
134
+ size: string | number;
135
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
136
+ export declare const IconServicos: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
137
+ size: {
138
+ type: (StringConstructor | NumberConstructor)[];
139
+ default: number;
140
+ };
141
+ }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
142
+ [key: string]: any;
143
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
144
+ size: {
145
+ type: (StringConstructor | NumberConstructor)[];
146
+ default: number;
147
+ };
148
+ }>> & Readonly<{}>, {
149
+ size: string | number;
150
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
151
+ export declare const IconSuprimentos: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
152
+ size: {
153
+ type: (StringConstructor | NumberConstructor)[];
154
+ default: number;
155
+ };
156
+ }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
157
+ [key: string]: any;
158
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
159
+ size: {
160
+ type: (StringConstructor | NumberConstructor)[];
161
+ default: number;
162
+ };
163
+ }>> & Readonly<{}>, {
164
+ size: string | number;
165
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
166
+ export declare const IconAjuda: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
167
+ size: {
168
+ type: (StringConstructor | NumberConstructor)[];
169
+ default: number;
170
+ };
171
+ }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
172
+ [key: string]: any;
173
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
174
+ size: {
175
+ type: (StringConstructor | NumberConstructor)[];
176
+ default: number;
177
+ };
178
+ }>> & Readonly<{}>, {
179
+ size: string | number;
180
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
181
+ export declare const IconAlerta: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
182
+ size: {
183
+ type: (StringConstructor | NumberConstructor)[];
184
+ default: number;
185
+ };
186
+ }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
187
+ [key: string]: any;
188
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
189
+ size: {
190
+ type: (StringConstructor | NumberConstructor)[];
191
+ default: number;
192
+ };
193
+ }>> & Readonly<{}>, {
194
+ size: string | number;
195
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
196
+ export declare const IconBusca: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
197
+ size: {
198
+ type: (StringConstructor | NumberConstructor)[];
199
+ default: number;
200
+ };
201
+ }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
202
+ [key: string]: any;
203
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
204
+ size: {
205
+ type: (StringConstructor | NumberConstructor)[];
206
+ default: number;
207
+ };
208
+ }>> & Readonly<{}>, {
209
+ size: string | number;
210
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
211
+ export declare const IconFabrica: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
212
+ size: {
213
+ type: (StringConstructor | NumberConstructor)[];
214
+ default: number;
215
+ };
216
+ }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
217
+ [key: string]: any;
218
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
219
+ size: {
220
+ type: (StringConstructor | NumberConstructor)[];
221
+ default: number;
222
+ };
223
+ }>> & Readonly<{}>, {
224
+ size: string | number;
225
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
226
+ export declare const IconTarefas: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
227
+ size: {
228
+ type: (StringConstructor | NumberConstructor)[];
229
+ default: number;
230
+ };
231
+ }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
232
+ [key: string]: any;
233
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
234
+ size: {
235
+ type: (StringConstructor | NumberConstructor)[];
236
+ default: number;
237
+ };
238
+ }>> & Readonly<{}>, {
239
+ size: string | number;
240
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
241
+ export declare const IconNotificacoes: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
242
+ size: {
243
+ type: (StringConstructor | NumberConstructor)[];
244
+ default: number;
245
+ };
246
+ }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
247
+ [key: string]: any;
248
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
249
+ size: {
250
+ type: (StringConstructor | NumberConstructor)[];
251
+ default: number;
252
+ };
253
+ }>> & Readonly<{}>, {
254
+ size: string | number;
255
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
256
+ export declare const IconPedido: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
257
+ size: {
258
+ type: (StringConstructor | NumberConstructor)[];
259
+ default: number;
260
+ };
261
+ }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
262
+ [key: string]: any;
263
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
264
+ size: {
265
+ type: (StringConstructor | NumberConstructor)[];
266
+ default: number;
267
+ };
268
+ }>> & Readonly<{}>, {
269
+ size: string | number;
270
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
271
+ export declare const IconSeta: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
272
+ size: {
273
+ type: (StringConstructor | NumberConstructor)[];
274
+ default: number;
275
+ };
276
+ }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
277
+ [key: string]: any;
278
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
279
+ size: {
280
+ type: (StringConstructor | NumberConstructor)[];
281
+ default: number;
282
+ };
283
+ }>> & Readonly<{}>, {
284
+ size: string | number;
285
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
286
+ export declare const IconTablet: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
287
+ size: {
288
+ type: (StringConstructor | NumberConstructor)[];
289
+ default: number;
290
+ };
291
+ }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
292
+ [key: string]: any;
293
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
294
+ size: {
295
+ type: (StringConstructor | NumberConstructor)[];
296
+ default: number;
297
+ };
298
+ }>> & Readonly<{}>, {
299
+ size: string | number;
300
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -0,0 +1,17 @@
1
+ import './style.css';
2
+ export * from './config';
3
+ export * from './session';
4
+ export * from './http';
5
+ export * from './format';
6
+ export * from './toast';
7
+ export * from './useLoad';
8
+ export * from './module';
9
+ export * from './icons';
10
+ export { default as BaseModal } from './components/BaseModal.vue';
11
+ export { default as StatusBadge } from './components/StatusBadge.vue';
12
+ export { default as MetricCard } from './components/MetricCard.vue';
13
+ export { default as MoneyInput } from './components/MoneyInput.vue';
14
+ export { default as ToastHost } from './components/ToastHost.vue';
15
+ export { default as LoadState } from './components/LoadState.vue';
16
+ export { default as CrumbBack } from './components/CrumbBack.vue';
17
+ export { default as ModuleTabs } from './components/ModuleTabs.vue';
@@ -0,0 +1,25 @@
1
+ import type { Component } from 'vue';
2
+ import type { RouteRecordRaw } from 'vue-router';
3
+ export interface ModuleMenuItem {
4
+ label: string;
5
+ to: string;
6
+ /** Funcionalidade exigida para ver o item. */
7
+ feature?: string;
8
+ hint?: string;
9
+ }
10
+ export interface ManualSection {
11
+ id: string;
12
+ title: string;
13
+ body: string[];
14
+ }
15
+ /** O que cada remoto expõe em `./module`. A casca monta menu, rotas e ajuda a partir disto. */
16
+ export interface ModuleManifest {
17
+ id: string;
18
+ label: string;
19
+ description: string;
20
+ icon?: Component;
21
+ routes: RouteRecordRaw[];
22
+ menu: ModuleMenuItem[];
23
+ manual: ManualSection[];
24
+ }
25
+ export declare const defineModule: (manifest: ModuleManifest) => ModuleManifest;